diff --git a/dist/apps/admin-gui/228.d7073fee712f12e7.js b/dist/apps/admin-gui/228.d7073fee712f12e7.js deleted file mode 100644 index efb64ceba..000000000 --- a/dist/apps/admin-gui/228.d7073fee712f12e7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[228],{15935:(y,g,r)=>{r.d(g,{D:()=>B});var x=r(20449),E=r(84847),_=r(32075),l=r(9244),d=r(36908),t=r(5e3),e=r(18750),C=r(77446),v=r(69808),f=r(98380),T=r(51062),M=r(37677);function D(i,c){if(1&i){const a=t.EpF();t.TgZ(0,"th",15),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(u){t.CHM(a);const o=t.oxw();return u?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const a=t.oxw();t.xp6(1),t.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function O(i,c){if(1&i){const a=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"mat-checkbox",18),t.NdJ("change",function(u){const m=t.CHM(a).$implicit,n=t.oxw();return u?n.selection.toggle(m):null})("click",function(u){return u.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const a=c.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(a))("checked",s.selection.isSelected(a))}}function S(i,c){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.EXT_SOURCES_LIST.ID")," "))}function A(i,c){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const a=c.$implicit;t.xp6(1),t.Oqu(a.id)}}function Z(i,c){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.EXT_SOURCES_LIST.NAME")," "))}function P(i,c){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const a=c.$implicit;t.xp6(1),t.Oqu(a.name)}}function L(i,c){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.EXT_SOURCES_LIST.TYPE")," "))}function I(i,c){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.ALo(2,"extSourceType"),t.qZA()),2&i){const a=c.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,a.type))}}function R(i,c){1&i&&t._UZ(0,"tr",22)}function w(i,c){1&i&&t._UZ(0,"tr",23)}function U(i,c){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.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function N(i,c){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.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let B=(()=>{class i{constructor(a,s){this.authResolver=a,this.tableCheckbox=s,this.selection=new x.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=l.f7}set matSort(a){this.sort=a,this.setDataSource()}static getDataForColumn(a,s){switch(s){case"id":return a.id.toString();case"type":return a.type.substring(40);case"name":return a.name;default:return""}}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(a=>"id"!==a)),this.dataSource=new _.by(this.extSources),this.setDataSource()}exportData(a){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),a)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(a,s)=>(0,l.Sd)(a,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(a,s)=>(0,l.pR)(a,s,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(a){return a?`${this.selection.isSelected(a)?"deselect":"select"} row ${a.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return i.\u0275fac=function(a){return new(a||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-ext-sources-list"]],viewQuery:function(a,s){if(1&a&&(t.Gf(l.l9,7),t.Gf(E.YE,7)),2&a){let u;t.iGM(u=t.CRH())&&(s.child=u.first),t.iGM(u=t.CRH())&&(s.matSort=u.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","type"],["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"],["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(a,s){1&a&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,D,2,3,"th",4),t.YNc(5,O,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,S,3,3,"th",7),t.YNc(8,A,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Z,3,3,"th",7),t.YNc(11,P,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,L,3,3,"th",7),t.YNc(14,I,3,3,"td",10),t.BQk(),t.YNc(15,R,1,0,"tr",12),t.YNc(16,w,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,U,3,3,"perun-web-apps-alert",14),t.YNc(18,N,3,3,"perun-web-apps-alert",14)),2&a&&(t.Q6J("hidden",0===s.extSources.length||0===s.dataSource.filteredData.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(13),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.extSources.length),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.extSources.length))},directives:[e.l,_.BZ,E.YE,_.w1,_.fO,_.ge,C.oG,_.Dz,_.ev,E.nU,_.as,_.XQ,_.nj,_.Gk,v.O5,f.w],pipes:[T.X$,M.A],styles:[""]}),i})()},60526:(y,g,r)=>{r.d(g,{b:()=>u});var x=r(32105),E=r(9244),_=r(16074),l=r(32075),d=r(36908),t=r(64080),e=r(5e3),C=r(48966),v=r(51062),f=r(9224),T=r(69808),M=r(20773),D=r(47423),O=r(25245),S=r(69773),A=r(21757),Z=r(21330),P=r(62383);function L(o,m){1&o&&e._UZ(0,"mat-spinner",4)}function I(o,m){1&o&&e._UZ(0,"th",12)}function R(o,m){if(1&o&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&o){const n=m.$implicit;e.xp6(1),e.hij("",n,":")}}function w(o,m){1&o&&e._UZ(0,"th",12)}function U(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){return e.CHM(n),e.oxw(4).changeStatus()}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA(),e.qZA()}}function N(o,m){if(1&o&&(e.TgZ(0,"div"),e.TgZ(1,"i"),e.ALo(2,"memberStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",15),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,U,3,0,"button",16),e.qZA()),2&o){const n=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center mr-1 ",e.lcZ(2,6,n.member.status),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,n.member.status)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,n.member.status)," "),e.xp6(2),e.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id))}}function B(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){return e.CHM(n),e.oxw(4).changeVoExpiration(!1)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA(),e.qZA()}}function i(o,m){if(1&o&&(e.TgZ(0,"div"),e.TgZ(1,"i",18),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,B,3,0,"button",16),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,n.voExpiration)," "),e.xp6(2),e.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id))}}function c(o,m){if(1&o&&(e.TgZ(0,"td",14),e.YNc(1,N,9,12,"div",3),e.YNc(2,i,5,4,"div",3),e.qZA()),2&o){const n=m.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===n),e.xp6(1),e.Q6J("ngIf","Expiration"===n)}}function a(o,m){1&o&&e._UZ(0,"tr",19)}function s(o,m){if(1&o&&(e.TgZ(0,"div"),e.TgZ(1,"table",5),e.ynx(2,6),e.YNc(3,I,1,0,"th",7),e.YNc(4,R,2,1,"td",8),e.BQk(),e.ynx(5,9),e.YNc(6,w,1,0,"th",7),e.YNc(7,c,3,2,"td",10),e.BQk(),e.YNc(8,a,1,0,"tr",11),e.qZA(),e.qZA()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("dataSource",n.voMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",n.displayedColumns)}}let u=(()=>{class o{constructor(n,p,b,h,Y,W){this.dialog=n,this.authResolver=p,this.apiRequest=b,this.attributesManager=h,this.translate=Y,this.notificator=W,this.voMembershipDataSource=new l.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new l.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const n=(0,E.kZ)();n.width="600px",n.data={member:this.member,voId:this.vo.id};const p=this.member.status;this.dialog.open(_.pf,n).afterClosed().subscribe(h=>{h&&(this.member=h,("VALID"===p&&("EXPIRED"===h.status||"DISABLED"===h.status)||"VALID"===h.status)&&this.changeVoExpiration(!0))})}changeVoExpiration(n){const p=(0,E.kZ)();p.width="400px",p.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:n},this.dialog.open(_.kZ,p).afterClosed().subscribe(h=>{h.success&&(h.member&&(this.member=h.member),this.refreshVoExpiration())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,t.r.MEMBER_DEF_EXPIRATION).subscribe(n=>{this.voExpirationAtt=n,this.voExpiration=n.value?n.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},n=>{const p=n.error;"PrivilegeException"!==p.name?this.notificator.showError(p.name):this.voMembershipDataSource=new l.by(["Status"]),this.loading=!1})}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(C.uw),e.Y36(d.x4),e.Y36(d.F5),e.Y36(x.H8),e.Y36(v.sK),e.Y36(d.V6))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[e.TTD],decls:9,vars:5,consts:[[1,"mat-elevation-z3","membership-card"],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-table","",1,"ml-auto","mr-auto",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(n,p){1&n&&(e.TgZ(0,"mat-card",0),e.TgZ(1,"mat-card-header"),e.TgZ(2,"mat-card-title"),e.TgZ(3,"h1",1),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"mat-card-content"),e.YNc(7,L,1,0,"mat-spinner",2),e.YNc(8,s,9,2,"div",3),e.qZA(),e.qZA()),2&n&&(e.xp6(4),e.hij(" ",e.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),e.xp6(3),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",!p.loading))},directives:[f.a8,f.dk,f.n5,f.dn,T.O5,M.$g,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,D.lW,O.Hw,l.nj,l.Gk],pipes:[v.X$,S.u,A.f,Z.r,P.M],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),o})()},21330:(y,g,r)=>{r.d(g,{r:()=>E});var x=r(5e3);let E=(()=>{class _{transform(d,t){return"valid"!==d.toLowerCase()||t&&"valid"!==d.toLowerCase()?d:"ACTIVE"}}return _.\u0275fac=function(d){return new(d||_)},_.\u0275pipe=x.Yjl({name:"transformMemberStatus",type:_,pure:!0}),_})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/243.5f974848de01a8dc.js b/dist/apps/admin-gui/243.5f974848de01a8dc.js deleted file mode 100644 index b21a3de1c..000000000 --- a/dist/apps/admin-gui/243.5f974848de01a8dc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[243],{15003:(z,J,n)=>{n.d(J,{G:()=>h});var C=n(5e3);let h=(()=>{class o{constructor(){this.entityDetailChange=new C.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return o.\u0275fac=function(b){return new(b||o)},o.\u0275prov=C.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},76023:(z,J,n)=>{n.d(J,{y:()=>V});var C=n(32105),h=n(10036),o=n(36908),d=n(5e3),b=n(11735),s=n(96214),t=n(64901),e=n(69808),L=n(20773),P=n(38383),a=n(51062);function G(U,N){1&U&&d._UZ(0,"mat-spinner",5)}const O=function(){return["id","fullName"]};function I(U,N){if(1&U){const f=d.EpF();d.TgZ(0,"perun-web-apps-members-list",6),d.NdJ("updateTable",function(){return d.CHM(f),d.oxw().refreshTable()}),d.qZA()}if(2&U){const f=d.oxw();d.Q6J("displayedColumns",d.DdM(5,O))("disableRouting",!f.routeAuth)("filter",f.filterValue)("members",f.members)("tableId",f.tableId)}}let V=(()=>{class U{constructor(f,y,Y,B){this.route=f,this.resourceService=y,this.authResolver=Y,this.entityStorageService=B,this.loading=!1,this.filterValue="",this.tableId=h.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(f=>{this.members=f,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(f){this.filterValue=f}}return U.\u0275fac=function(f){return new(f||U)(d.Y36(b.gz),d.Y36(C.xk),d.Y36(o.x4),d.Y36(o.fb))},U.\u0275cmp=d.Xpm({type:U,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(f,y){1&f&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return y.refreshTable()}),d.qZA(),d.TgZ(4,"perun-web-apps-debounce-filter",2),d.NdJ("filter",function(B){return y.applyFilter(B)}),d.qZA(),d.YNc(5,G,1,0,"mat-spinner",3),d.YNc(6,I,1,6,"perun-web-apps-members-list",4)),2&f&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),d.xp6(3),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),d.xp6(1),d.Q6J("ngIf",y.loading),d.xp6(1),d.Q6J("ngIf",!y.loading))},directives:[s.t,t.P,e.O5,L.$g,P.O],pipes:[a.X$],styles:[""]}),U})()},49546:(z,J,n)=>{n.d(J,{D:()=>S});var C=n(32105),h=n(10036),o=n(20449),d=n(9244),b=n(48966),s=n(36908),t=n(5e3),e=n(51062),L=n(69808),P=n(20773),a=n(53251),G=n(64901),O=n(60205),I=n(90439),V=n(47423);function U(l,_){1&l&&t._UZ(0,"mat-spinner",6)}const N=function(){return["id","name","enabled","description"]};function f(l,_){if(1&l&&t._UZ(0,"app-services-list",16),2&l){const c=t.oxw(2);t.Q6J("disableRouting",!0)("services",c.filteredServices)("displayedColumns",t.DdM(5,N))("selection",c.selection)("tableId",c.tableId)}}const y=function(){return["select","id","name","enabled","description"]};function Y(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){return t.CHM(c),t.oxw().tabChanged()}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10),t.TgZ(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(x){return t.CHM(c),t.oxw().applyFilter(x)}),t.ALo(6,"translate"),t.qZA(),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),t.TgZ(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(x){return t.CHM(c),t.oxw().servicePackageSelected(x)}),t.qZA(),t.qZA(),t.YNc(12,f,1,6,"app-services-list",15),t.qZA(),t.qZA(),t.qZA()}if(2&l){const c=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",c.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,y))("filterValue",c.filterValue)("selection",c.selection)("tableId",c.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",c.selectedPackage)("servicePackages",c.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==c.selectedPackage.id)}}let B=(()=>{class l{constructor(c,g,x,K,q,ce){this.dialogRef=c,this.data=g,this.notificator=x,this.translate=K,this.resourceManager=q,this.servicesManager=ce,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new o.Ov(!0,[]),this.tableId=h.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(c=>{this.servicesManager.getServices().subscribe(g=>{this.servicesManager.getServicesPackages().subscribe(x=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(x),this.unAssignedServices=g;for(const K of c)for(const q of g)K.id===q.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(q),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(c){this.filterValue=c}servicePackageSelected(c){this.selectedPackage=c,-1!==c.id?this.servicesManager.getServicesFromServicesPackage(c.id).subscribe(g=>{this.filteredServices=g}):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(c=>{this.notificator.showSuccess(c),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const c=[];for(const g of this.selection.selected)c.push(g.id);this.resourceManager.assignServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(g=>{this.notificator.showSuccess(g),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(b.so),t.Y36(b.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(C.xk),t.Y36(C.KK))},l.\u0275cmp=t.Xpm({type:l,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(c,g){1&c&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,U,1,0,"mat-spinner",1),t.YNc(5,Y,13,19,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return g.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return g.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.Tol(g.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===g.selection.selected.length&&-1===g.selectedPackage.id||g.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===g.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},directives:[b.uh,L.O5,P.$g,b.xY,a.SP,a.uX,G.P,O.Q,I.F,b.H8,V.lW],pipes:[e.X$],styles:[""]}),l})();var W=n(32075);function X(l,_){1&l&&t._UZ(0,"mat-spinner",6)}function te(l,_){1&l&&t._UZ(0,"th",15)}function se(l,_){if(1&l&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&l){const c=_.$implicit;t.xp6(1),t.Oqu(c.name)}}function M(l,_){1&l&&t._UZ(0,"tr",17)}function j(l,_){1&l&&t._UZ(0,"tr",18)}function m(l,_){if(1&l&&(t.TgZ(0,"div",7),t.TgZ(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,te,1,0,"th",11),t.YNc(10,se,2,1,"td",12),t.BQk(),t.YNc(11,M,1,0,"tr",13),t.YNc(12,j,1,0,"tr",14),t.qZA(),t.qZA()),2&l){const c=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",c.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",c.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",c.displayedColumns)}}let T=(()=>{class l{constructor(c,g,x,K,q){this.dialogRef=c,this.data=g,this.notificator=x,this.translate=K,this.resourcesManager=q,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new W.by(this.data.services)}onSubmit(){this.loading=!0;const c=[];for(const g of this.data.services)c.push(g.id);this.resourcesManager.removeServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(g=>{this.notificator.showSuccess(g),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(b.so),t.Y36(b.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(C.xk))},l.\u0275cmp=t.Xpm({type:l,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(c,g){1&c&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,X,1,0,"mat-spinner",1),t.YNc(5,m,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return g.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return g.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.Tol(g.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",g.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[b.uh,L.O5,P.$g,b.xY,W.BZ,W.w1,W.fO,W.ge,W.Dz,W.ev,W.as,W.XQ,W.nj,W.Gk,b.H8,V.lW],pipes:[e.X$],styles:[""]}),l})();var F=n(11735),$=n(96214),oe=n(7434);function ne(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(c),t.oxw().addService()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function re(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(c),t.oxw().removeServices()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&l){const c=t.oxw();t.Q6J("disabled",0===c.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function ae(l,_){1&l&&t._UZ(0,"mat-spinner",9)}function E(l,_){if(1&l&&t._UZ(0,"app-services-list",10),2&l){const c=t.oxw();t.Q6J("disableRouting",!c.serviceRoutingAuth)("selection",c.selected)("displayedColumns",c.displayedColumns)("filterValue",c.filterValue)("services",c.assignedServices)("tableId",c.tableId)}}let S=(()=>{class l{constructor(c,g,x,K,q){this.route=c,this.resourcesManager=g,this.dialog=x,this.guiAuthResolver=K,this.entityStorageService=q,this.assignedServices=[],this.selected=new o.Ov(!0,[]),this.tableId=h.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(c=>{this.assignedServices=c,this.selected.clear(),this.loading=!1})}addService(){const c=(0,d.kZ)();c.width="800px",c.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(B,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}removeServices(){const c=(0,d.kZ)();c.width="500px",c.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(T,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}applyFilter(c){this.filterValue=c}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 l.\u0275fac=function(c){return new(c||l)(t.Y36(F.gz),t.Y36(C.xk),t.Y36(b.uw),t.Y36(s.x4),t.Y36(s.fb))},l.\u0275cmp=t.Xpm({type:l,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(c,g){1&c&&(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 g.loadAllServices()}),t.qZA(),t.YNc(4,ne,3,3,"button",2),t.YNc(5,re,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(K){return g.applyFilter(K)}),t.qZA(),t.YNc(7,ae,1,0,"mat-spinner",5),t.YNc(8,E,1,6,"app-services-list",6)),2&c&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",g.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",g.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading))},directives:[$.t,L.O5,V.lW,oe.L,P.$g,O.Q],pipes:[e.X$],styles:[""]}),l})()},92090:(z,J,n)=>{n.d(J,{X:()=>N});var C=n(36908),h=n(32105),o=n(5e3),d=n(53251),b=n(12651),s=n(69808),t=n(19191),e=n(51062);function L(f,y){1&f&&(o._uU(0),o.ALo(1,"translate")),2&f&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function P(f,y){if(1&f&&o._UZ(0,"app-one-entity-attribute-page",4),2&f){const Y=o.oxw();o.Q6J("entityId",Y.resource.id)("entity","resource")}}function a(f,y){1&f&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&f&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function G(f,y){if(1&f&&o._UZ(0,"app-two-entity-attribute-page",5),2&f){const Y=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","member")}}function O(f,y){1&f&&(o.TgZ(0,"mat-tab"),o.YNc(1,a,3,6,"ng-template",1),o.YNc(2,G,1,3,"ng-template",2),o.qZA())}function I(f,y){1&f&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&f&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function V(f,y){if(1&f&&o._UZ(0,"app-two-entity-attribute-page",5),2&f){const Y=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","group")}}function U(f,y){1&f&&(o.TgZ(0,"mat-tab"),o.YNc(1,I,3,6,"ng-template",1),o.YNc(2,V,1,3,"ng-template",2),o.qZA())}let N=(()=>{class f{constructor(Y,B,W){this.authResolver=Y,this.resourceManager=B,this.entityStorageService=W}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 f.\u0275fac=function(Y){return new(Y||f)(o.Y36(C.x4),o.Y36(h.xk),o.Y36(C.fb))},f.\u0275cmp=o.Xpm({type:f,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(Y,B){2&Y&&o.ekj("router-component",B.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(Y,B){1&Y&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,L,2,3,"ng-template",1),o.YNc(7,P,1,2,"ng-template",2),o.qZA(),o.YNc(8,O,3,0,"mat-tab",3),o.YNc(9,U,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&Y&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",B.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",B.resourceGroupAttAuth))},directives:[d.SP,d.uX,d.uD,d.Vc,b.t,s.O5,t.Y],pipes:[e.X$],styles:[""]}),f})()},98918:(z,J,n)=>{n.d(J,{b:()=>E});var C=n(36769),h=n(69024),o=n(32105),d=n(9244),b=n(36908),s=n(19516),t=n(16074),e=n(533),L=n(22158),P=n(7625),a=n(5e3),G=n(11735),O=n(77968),I=n(48966),V=n(15003),U=n(4235),N=n(69808),f=n(20773),y=n(25245),Y=n(29772),B=n(47423),W=n(61283),X=n(51062);function te(S,l){1&S&&a._UZ(0,"mat-spinner",3)}function se(S,l){if(1&S){const _=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){return a.CHM(_),a.oxw(2).editResource()}),a.TgZ(1,"mat-icon"),a._uU(2,"edit"),a.qZA(),a.qZA()}}function M(S,l){if(1&S){const _=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(_),a.oxw(2).deleteResource()}),a.TgZ(1,"mat-icon"),a._uU(2,"delete_forever"),a.qZA(),a.qZA()}}const j=function(S){return["/organizations",S]};function m(S,l){if(1&S&&(a.TgZ(0,"a",8),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("routerLink",a.VKq(2,j,_.resource.vo.id)),a.xp6(1),a.Oqu(_.resource.vo.name)}}function T(S,l){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 F=function(S){return["/facilities",S]};function $(S,l){if(1&S&&(a.TgZ(0,"a",8),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("routerLink",a.VKq(2,F,_.resource.facilityId)),a.xp6(1),a.Oqu(_.resource.facility.name)}}function oe(S,l){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 ne=function(){return{color:"black"}},re=function(S){return[S]};function ae(S,l){if(1&S&&(a.TgZ(0,"div"),a.TgZ(1,"div",4),a._UZ(2,"mat-icon",5),a.ALo(3,"translate"),a.TgZ(4,"div",6),a.TgZ(5,"div",7),a.TgZ(6,"a",8),a._uU(7),a.qZA(),a.TgZ(8,"span",9),a._uU(9),a.qZA(),a.YNc(10,se,3,0,"button",10),a.YNc(11,M,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,m,2,4,"a",13),a.YNc(20,T,2,1,"span",2),a._uU(21),a.ALo(22,"translate"),a.YNc(23,$,2,4,"a",14),a.YNc(24,oe,2,1,"span",2),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.qZA(),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,20,"RESOURCE_DETAIL.ENTITY")),a.Q6J("ngStyle",a.DdM(32,ne)),a.xp6(4),a.Q6J("routerLink",a.VKq(33,re,_.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,22,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),a.xp6(3),a.AsE(" ",a.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",a.lcZ(18,26,"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,28,"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,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let E=(()=>{class S extends((0,L.T)()){constructor(_,c,g,x,K,q,ce,A,w,u,R){super(),this.route=_,this.facilityManager=c,this.vosManagerService=g,this.resourcesManager=x,this.sideMenuService=K,this.sideMenuItemService=q,this.dialog=ce,this.guiAuthResolver=A,this.router=w,this.entityStorageService=u,this.reloadEntityDetail=R,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,P.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(_=>{const c=Number(_.resourceId);this.resourcesManager.getRichResourceById(c).subscribe(g=>{this.resource=g,this.entityStorageService.setEntity({id:g.id,voId:g.voId,facilityId:g.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(g,!1),this.facilityManager.getFacilityById(g.facilityId).subscribe(x=>{this.facility=x,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(g,!0),this.vosManagerService.getVoById(g.voId).subscribe(x=>{this.vo=x,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,d.sF)("resources",this.resource)})})}setMenuItems(){let _;const c=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);_=this.underVoUrl?this.sideMenuItemService.parseVo(this.vo):this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setAccessMenuItems([_,c])}editResource(){let _;this.resourcesManager.getResourceById(this.resource.id).subscribe(c=>{_=c;const g=(0,d.kZ)();g.width="450px",g.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,g).afterClosed().subscribe(K=>{K&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(q=>{this.resource=q,this.setMenuItems()})})})}deleteResource(){const _=(0,d.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(g=>{g&&this.router.navigate(["../"],{relativeTo:this.route})})}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(G.gz),a.Y36(o.IQ),a.Y36(o.YF),a.Y36(o.xk),a.Y36(O.D),a.Y36(h.V),a.Y36(I.uw),a.Y36(b.x4),a.Y36(G.F0),a.Y36(b.fb),a.Y36(V.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"],["queryParamsHandling","merge",1,"resource-link",3,"routerLink"],[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"],["queryParamsHandling","merge","class","resource-link",3,"routerLink",4,"ngIf"],["class","resource-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(_,c){1&_&&(a.TgZ(0,"div",0),a._UZ(1,"perun-web-apps-back-button"),a.YNc(2,te,1,0,"mat-spinner",1),a.YNc(3,ae,28,35,"div",2),a.qZA()),2&_&&(a.xp6(2),a.Q6J("ngIf",c.loading),a.xp6(1),a.Q6J("ngIf",!c.loading&&void 0!==c.resource))},directives:[U.W,N.O5,f.$g,y.Hw,Y.gM,N.PC,G.yS,B.lW,W.A],pipes:[X.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[C.Ji]}}),S})()},258:(z,J,n)=>{n.d(J,{K:()=>ce});var C=n(32105),h=n(20449),o=n(48966),d=n(32075),b=n(36908),s=n(5e3),t=n(51062),e=n(69808),L=n(20773),P=n(47423);function a(A,w){1&A&&s._UZ(0,"mat-spinner",6)}function G(A,w){1&A&&s._UZ(0,"th",15)}function O(A,w){if(1&A&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&A){const u=w.$implicit;s.xp6(1),s.Oqu(u.name)}}function I(A,w){1&A&&s._UZ(0,"tr",17)}function V(A,w){1&A&&s._UZ(0,"tr",18)}function U(A,w){if(1&A&&(s.TgZ(0,"div",7),s.TgZ(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,G,1,0,"th",11),s.YNc(10,O,2,1,"td",12),s.BQk(),s.YNc(11,I,1,0,"tr",13),s.YNc(12,V,1,0,"tr",14),s.qZA(),s.qZA()),2&A){const u=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",u.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",u.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",u.displayedColumns)}}let N=(()=>{class A{constructor(u,R,Z,k,Q){this.dialogRef=u,this.data=R,this.notificator=Z,this.translate=k,this.resourceManager=Q,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const u=[];for(const R of this.data.groups)u.push(R.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(u,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(o.so),s.Y36(o.WI),s.Y36(b.V6),s.Y36(t.sK),s.Y36(C.xk))},A.\u0275cmp=s.Xpm({type:A,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","",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(u,R){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,a,1,0,"mat-spinner",1),s.YNc(5,U,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return R.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return R.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",R.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[o.uh,e.O5,L.$g,o.xY,d.BZ,d.w1,d.fO,d.ge,d.Dz,d.ev,d.as,d.XQ,d.nj,d.Gk,o.H8,P.lW],pipes:[t.X$],styles:[""]}),A})();var f=n(10036),y=n(92081),Y=n(64901),B=n(24179),W=n(32368),X=n(93075);const te=["stepper"];function se(A,w){1&A&&s._UZ(0,"mat-spinner",4)}function M(A,w){1&A&&(s._uU(0),s.ALo(1,"translate")),2&A&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function j(A,w){1&A&&(s._uU(0),s.ALo(1,"translate")),2&A&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const m=function(){return["select","id","name","description"]};function T(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"mat-stepper",6,7),s.TgZ(3,"mat-step",8),s.YNc(4,M,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(Z){return s.CHM(u),s.oxw().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,j,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){return s.CHM(u),s.oxw().changeSubgroupsMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().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(){return s.CHM(u),s.oxw().changeInactiveMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().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(){return s.CHM(u),s.oxw().changeAsyncMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().async=Z}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&A){const u=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==u.selection.selected.length&&u.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",u.unAssignedGroups)("selection",u.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,m))("filter",u.filterValue)("tableId",u.tableId),s.xp6(3),s.Q6J("ngModel",u.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",u.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",u.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",u.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",u.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",u.asyncHint," ")}}function F(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).stepperPrevious()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function $(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).stepperNext()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&A){const u=s.oxw(2);s.ekj("ml-2",void 0!==u.stepper&&0!==u.stepper.selectedIndex)("ml-auto",!(void 0!==u.stepper&&0!==u.stepper.selectedIndex)),s.Q6J("disabled",0===u.selection.selected.length||!u.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function oe(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function ne(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"div",15),s.TgZ(1,"button",16),s.NdJ("click",function(){return s.CHM(u),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,F,3,3,"button",17),s.YNc(5,$,3,8,"button",18),s.YNc(6,oe,3,3,"button",19),s.qZA()}if(2&A){const u=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!==u.stepper&&0!==u.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex!==u.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex===u.stepper._steps.length-1)}}let re=(()=>{class A{constructor(u,R,Z,k,Q,ee,pe,me){this.dialogRef=u,this.data=R,this.notificator=Z,this.translate=k,this.resourceManager=Q,this.groupService=ee,this.guiAuthResolver=pe,this.cd=me,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new h.Ov(!0,[]),this.filterValue="",this.tableId=f.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(u=>{this.groupService.getAllGroups(this.resource.voId).subscribe(R=>{for(const Z of R)-1===u.findIndex(k=>k.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 u=[];for(const R of this.selection.selected)u.push(R.id);this.resourceManager.assignGroupsToResource(u,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(u){this.filterValue=u}canAddGroups(){let u=!0;return this.selection.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}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 A.\u0275fac=function(u){return new(u||A)(s.Y36(o.so),s.Y36(o.WI),s.Y36(b.V6),s.Y36(t.sK),s.Y36(C.xk),s.Y36(C.ff),s.Y36(b.x4),s.Y36(s.sBO))},A.\u0275cmp=s.Xpm({type:A,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(u,R){if(1&u&&s.Gf(te,5),2&u){let Z;s.iGM(Z=s.CRH())&&(R.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",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"click"]],template:function(u,R){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,se,1,0,"mat-spinner",1),s.YNc(5,T,25,28,"div",2),s.YNc(6,ne,7,6,"div",3),s.qZA()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading&&R.stepper))},directives:[o.uh,e.O5,L.$g,o.xY,y.Vq,y.C0,y.VY,Y.P,B.W,W.Rr,X.JJ,X.On,o.H8,P.lW],pipes:[t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),A})();var ae=n(9244),E=n(64080),S=n(11735),l=n(96214),_=n(29772);function c(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(u),s.oxw().addGroup()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function g(A,w){1&A&&s._UZ(0,"mat-spinner",9)}const x=function(A){return[A]},K=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function q(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){return s.CHM(u),s.oxw().loadAllGroups()}),s.qZA()}if(2&A){const u=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",u.groupsToDisable)("disableMembers",!1)("groups",u.assignedGroups)("disableRouting",!!u.assignedGroups[0]&&!u.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,x,u.assignedGroups[0])))("displayedColumns",s.DdM(12,K))("filter",u.filteredValue)("resourceId",u.resource.id)("selection",u.selected)("tableId",u.tableId)}}let ce=(()=>{class A{constructor(u,R,Z,k,Q){this.route=u,this.resourcesManager=R,this.dialog=Z,this.guiAuthResolver=k,this.entityStorageService=Q,this.assignedGroups=[],this.selected=new h.Ov(!0,[]),this.filteredValue="",this.tableId=f.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[E.r.GROUP_SYNC_ENABLED]).subscribe(u=>{this.assignedGroups=u.map(Q=>{const ee=Q.enrichedGroup.group;return ee.status=Q.status,ee.failureCause=Q.failureCause,ee.sourceGroupId=Q.sourceGroupId,ee});const R=this.assignedGroups.map(Q=>Q.id),Z=this.assignedGroups.filter((Q,ee)=>R.indexOf(Q.id)===ee),k=this.assignedGroups.filter((Q,ee)=>{const pe=R.indexOf(Q.id);return pe!==ee&&(null===Q.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(Q=>Q.id);Z.forEach(Q=>{k.includes(Q.id)&&(Q.moreTypesOfAssignment=!0)}),this.assignedGroups=Z,this.groupsToDisable=new Set(this.assignedGroups.filter(Q=>!!Q.sourceGroupId&&!Q.moreTypesOfAssignment).map(Q=>Q.id)),this.selected.clear(),this.loading=!1})}addGroup(){const u=(0,ae.kZ)();u.width="1000px",u.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(Z=>this.groupsToDisable.has(Z.id))},this.dialog.open(re,u).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}removeGroups(){const u=(0,ae.kZ)();u.width="500px",u.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(N,u).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}canRemoveGroups(){let u=!0;return this.selected.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}applyFilter(u){this.filteredValue=u}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(S.gz),s.Y36(C.xk),s.Y36(o.uw),s.Y36(b.x4),s.Y36(b.fb))},A.\u0275cmp=s.Xpm({type:A,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","",3,"click",4,"ngIf"],["color","warn","mat-flat-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","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(u,R){1&u&&(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 R.loadAllGroups()}),s.qZA(),s.YNc(4,c,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return R.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(k){return R.applyFilter(k)}),s.qZA(),s.YNc(11,g,1,0,"mat-spinner",6),s.YNc(12,q,1,13,"perun-web-apps-groups-list",7)),2&u&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",R.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,x,R.resource))),s.xp6(1),s.Q6J("disabled",0===R.selected.selected.length||!R.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",R.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",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading))},directives:[l.t,e.O5,P.lW,_.gM,Y.P,L.$g,B.W],pipes:[t.X$],styles:[""]}),A})()},4675:(z,J,n)=>{n.d(J,{H:()=>P});var C=n(32105),h=n(36908),o=n(5e3),d=n(11735),b=n(69808),s=n(20773),t=n(71135);function e(a,G){1&a&&o._UZ(0,"mat-spinner",2)}function L(a,G){if(1&a&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&a){const O=o.oxw();o.xp6(1),o.Q6J("items",O.navItems)("size","small")}}let P=(()=>{class a{constructor(O,I,V,U){this.resourcesManager=O,this.route=I,this.guiAuthResolver=V,this.entityStorageService=U,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(O){const I=O?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:`${I}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:`/${I}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:`${I}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${I}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${I}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${I}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return a.\u0275fac=function(O){return new(O||a)(o.Y36(C.xk),o.Y36(d.gz),o.Y36(h.x4),o.Y36(h.fb))},a.\u0275cmp=o.Xpm({type:a,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(O,I){2&O&&o.ekj("router-component",I.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(O,I){1&O&&(o.YNc(0,e,1,0,"mat-spinner",0),o.YNc(1,L,2,2,"div",1)),2&O&&(o.Q6J("ngIf",I.loading),o.xp6(1),o.Q6J("ngIf",!I.loading))},directives:[b.O5,s.$g,t.L],styles:[""]}),a})()},20057:(z,J,n)=>{n.d(J,{O:()=>d});var C=n(36908),h=n(5e3),o=n(69815);let d=(()=>{class b{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 b.\u0275fac=function(t){return new(t||b)(h.Y36(C.x4),h.Y36(C.fb))},b.\u0275cmp=h.Xpm({type:b,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&h._UZ(0,"app-managers-page",0),2&t&&h.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},directives:[o.s],styles:[""]}),b})()},16500:(z,J,n)=>{n.d(J,{h:()=>P});var C=n(32105),h=n(36908),o=n(5e3),d=n(11735),b=n(69808),s=n(20773),t=n(71135);function e(a,G){1&a&&o._UZ(0,"mat-spinner",2)}function L(a,G){if(1&a&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&a){const O=o.oxw();o.xp6(1),o.Q6J("items",O.items)("size","small")}}let P=(()=>{class a{constructor(O,I,V,U){this.route=O,this.resourceManager=I,this.authResolver=V,this.entityStorageService=U,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(O){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${O?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return a.\u0275fac=function(O){return new(O||a)(o.Y36(d.gz),o.Y36(C.xk),o.Y36(h.x4),o.Y36(h.fb))},a.\u0275cmp=o.Xpm({type:a,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(O,I){2&O&&o.ekj("router-component",I.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(O,I){1&O&&(o.YNc(0,e,1,0,"mat-spinner",0),o.YNc(1,L,2,2,"div",1)),2&O&&(o.Q6J("ngIf",I.loading),o.xp6(1),o.Q6J("ngIf",!I.loading))},directives:[b.O5,s.$g,t.L],styles:[""]}),a})()},60113:(z,J,n)=>{n.d(J,{t:()=>d});var C=n(36769),h=n(5e3),o=n(61283);let d=(()=>{class b{}return b.\u0275fac=function(t){return new(t||b)},b.\u0275cmp=h.Xpm({type:b,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[C.Ji]}}),b})()},20872:(z,J,n)=>{n.d(J,{v:()=>se});var C=n(32105),h=n(20449),o=n(10036),d=n(9244),b=n(36908),s=n(16074),t=n(48966),e=n(5e3),L=n(69808),P=n(20773),a=n(17672),G=n(47423),O=n(51062);function I(M,j){1&M&&e._UZ(0,"mat-spinner",8)}function V(M,j){if(1&M&&e._UZ(0,"app-resources-tags-list",9),2&M){const m=e.oxw();e.Q6J("selection",m.selection)("displayedColumns",m.displayedColumns)("entity","resource")("filterValue",m.filterValue)("resourceTags",m.resourceTags)("tableId",m.tableId)}}let U=(()=>{class M{constructor(m,T,F){this.dialogRef=m,this.data=T,this.resourcesManager=F,this.tableId=o.g,this.selection=new h.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(m=>{this.resourceTags=m.filter(T=>!this.assignedTags.map(F=>F.id).includes(T.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(m){if(0===m.length)return this.dialogRef.close(!0);const T=m.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:T}).subscribe(()=>{this.onSubmit(m)})}applyFilter(m){this.filterValue=m}}return M.\u0275fac=function(m){return new(m||M)(e.Y36(t.so),e.Y36(t.WI),e.Y36(C.xk))},M.\u0275cmp=e.Xpm({type:M,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(m,T){1&m&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.YNc(6,I,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,V,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5),e.TgZ(9,"button",6),e.NdJ("click",function(){return T.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return T.onSubmit(T.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.qZA(),e.qZA()),2&m&&(e.Tol(T.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",T.loading||0===T.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[t.uh,t.xY,L.O5,P.$g,a.o,t.H8,G.lW],pipes:[O.X$],styles:[""]}),M})();var N=n(17584),f=n(96214),y=n(7434);function Y(M,j){if(1&M){const m=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(m),e.oxw().create()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&M&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function B(M,j){if(1&M){const m=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(m),e.oxw().addTag()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&M&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function W(M,j){if(1&M){const m=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){return e.CHM(m),e.oxw().removeTags()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&M){const m=e.oxw();e.Q6J("disabled",0===m.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function X(M,j){1&M&&e._UZ(0,"mat-spinner",9)}function te(M,j){if(1&M&&e._UZ(0,"app-resources-tags-list",10),2&M){const m=e.oxw();e.Q6J("displayedColumns",m.displayedColumns)("entity","resource")("resourceTags",m.resourceTags)("filterValue",m.filterValue)("selection",m.selection)("tableId",m.tableId)}}let se=(()=>{class M{constructor(m,T,F,$,oe,ne){this.authResolver=m,this.resourcesManager=T,this.dialog=F,this.notificator=$,this.translate=oe,this.entityStorageService=ne,this.loading=!1,this.resourceTags=[],this.selection=new h.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const m=(0,d.kZ)();m.width="450px",m.data={items:this.selection.selected.map(F=>F.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,m).afterClosed().subscribe(F=>{F&&this.removeTag(this.selection.selected)})}removeTag(m){if(0===m.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const T=m.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:T}).subscribe(()=>{this.removeTag(m)})}addTag(){const m=(0,d.kZ)();m.width="600px",m.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(U,m).afterClosed().subscribe(F=>{F&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const m=(0,d.kZ)();m.width="450px",m.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(N.p,m).afterClosed().subscribe(F=>{F&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe($=>{this.notificator.showSuccess($)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(m=>{this.resourceTags=m,this.selection.clear(),this.loading=!1})}setAuthRights(){const m={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[m]),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(m){this.filterValue=m}}return M.\u0275fac=function(m){return new(m||M)(e.Y36(b.x4),e.Y36(C.xk),e.Y36(t.uw),e.Y36(b.V6),e.Y36(O.sK),e.Y36(b.fb))},M.\u0275cmp=e.Xpm({type:M,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(m,T){1&m&&(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 T.updateData()}),e.qZA(),e.YNc(4,Y,3,3,"button",2),e.YNc(5,B,3,3,"button",2),e.YNc(6,W,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function($){return T.applyFilter($)}),e.qZA(),e.YNc(8,X,1,0,"mat-spinner",5),e.YNc(9,te,1,6,"app-resources-tags-list",6)),2&m&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",T.createAuth),e.xp6(1),e.Q6J("ngIf",T.addAuth),e.xp6(1),e.Q6J("ngIf",T.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading))},directives:[f.t,L.O5,G.lW,y.L,P.$g,a.o],pipes:[O.X$],styles:[""]}),M})()},17584:(z,J,n)=>{n.d(J,{p:()=>O});var C=n(48966),h=n(32105),o=n(5e3),d=n(69808),b=n(20773),s=n(67322),t=n(98833),e=n(93075),L=n(47423),P=n(51062);function a(I,V){1&I&&o._UZ(0,"mat-spinner",6)}function G(I,V){if(1&I){const U=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(f){return o.CHM(U),o.oxw().name=f}),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-error"),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA(),o.qZA()}if(2&I){const U=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),o.Q6J("ngModel",U.name),o.xp6(3),o.Oqu(o.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let O=(()=>{class I{constructor(U,N,f){this.dialogRef=U,this.data=N,this.resourceManager=f,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 I.\u0275fac=function(U){return new(U||I)(o.Y36(C.so),o.Y36(C.WI),o.Y36(h.xk))},I.\u0275cmp=o.Xpm({type:I,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(U,N){1&U&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,a,1,0,"mat-spinner",1),o.YNc(5,G,7,7,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return N.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return N.onSubmit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&U&&(o.Tol(N.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),o.xp6(2),o.Q6J("ngIf",N.loading),o.xp6(1),o.Q6J("ngIf",!N.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),o.xp6(2),o.Q6J("disabled",N.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[C.uh,d.O5,b.$g,C.xY,s.KE,t.Nt,e.Fj,e.Q7,e.JJ,e.On,s.TO,C.H8,L.lW],pipes:[P.X$],styles:[""]}),I})()},69815:(z,J,n)=>{n.d(J,{s:()=>Ne});var C=n(20449),h=n(48966),o=n(36908),d=n(32105),b=n(10036),s=n(64080),t=n(93075),e=n(5e3),L=n(51062),P=n(11735),a=n(67322),G=n(74107),O=n(69808),I=n(90508),V=n(98833),U=n(50301),N=n(47423),f=n(20773),y=n(98380),Y=n(64877);let B=(()=>{class r{constructor(i){this.translate=i,this.prefix="ROLES."}transform(i){const p=this.prefix.concat(i);return this.translate.instant(p)}}return r.\u0275fac=function(i){return new(i||r)(e.Y36(L.sK,16))},r.\u0275pipe=e.Yjl({name:"displayedRole",type:r,pure:!0}),r})();function W(r,v){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const i=v.$implicit;e.Q6J("value",i),e.xp6(1),e.Oqu(e.lcZ(2,2,i))}}function X(r,v){1&r&&e._UZ(0,"mat-spinner",16)}function te(r,v){1&r&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const se=function(){return["select","id","name","email","logins","organization"]};function M(r,v){if(1&r&&e._UZ(0,"app-users-list",21),2&r){const i=e.oxw(2);e.Q6J("disableRouting",!0)("selection",i.selection)("displayedColumns",e.DdM(5,se))("tableId",i.tableId)("users",i.users)}}function j(r,v){if(1&r&&(e.TgZ(0,"div",17),e.YNc(1,te,3,3,"perun-web-apps-alert",18),e.YNc(2,M,1,6,"app-users-list",19),e.qZA()),2&r){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 m=(()=>{class r{constructor(i,p,D,H,ie,le,ue,he,fe){this.dialogRef=i,this.data=p,this.authzService=D,this.usersService=H,this.translate=ie,this.notificator=le,this.storeService=ue,this.route=he,this.router=fe,this.selection=new C.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=b.H2,ie.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),ie.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.NI("",[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(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>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(p=>{this.users=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return r.\u0275fac=function(i){return new(i||r)(e.Y36(h.so),e.Y36(h.WI),e.Y36(d.Ct),e.Y36(d.Fv),e.Y36(L.sK),e.Y36(o.V6),e.Y36(o.d6),e.Y36(P.gz),e.Y36(P.F0))},r.\u0275cmp=e.Xpm({type:r,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,p){1&i&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(H){return p.selectedRole=H}),e.YNc(11,W,3,4,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(13,"input",7),e.NdJ("keyup.enter",function(){return p.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"button",8),e.NdJ("click",function(){return p.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,X,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,j,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12),e.TgZ(25,"button",13),e.NdJ("click",function(){return p.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return p.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA(),e.qZA(),e.qZA()),2&i&&(e.Tol(p.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",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",p.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.users&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||void 0===p.selectedRole||p.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[h.uh,h.xY,a.KE,a.hX,G.gD,O.sg,I.ey,V.Nt,t.Fj,U.hT,t.JJ,t.oH,a.TO,N.lW,O.O5,f.$g,y.w,Y.C,h.H8],pipes:[L.X$,B],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),r})();var T=n(32075);function F(r,v){1&r&&e._UZ(0,"th",15)}function $(r,v){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const i=v.$implicit;e.xp6(1),e.AsE("",i.firstName," ",i.lastName,"")}}function oe(r,v){1&r&&e._UZ(0,"tr",17)}function ne(r,v){1&r&&e._UZ(0,"tr",18)}const re=function(r){return{role:r}};function ae(r,v){if(1&r&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"displayedRole"),e.qZA()),2&r){const i=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,re,e.lcZ(3,4,i.data.role)))," ")}}function E(r,v){if(1&r&&(e.TgZ(0,"div",6),e.TgZ(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,F,1,0,"th",10),e.YNc(10,$,2,2,"td",11),e.BQk(),e.YNc(11,oe,1,0,"tr",12),e.YNc(12,ne,1,0,"tr",13),e.qZA(),e.YNc(13,ae,4,8,"perun-web-apps-alert",14),e.qZA()),2&r){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 S(r,v){1&r&&e._UZ(0,"mat-spinner",20)}let l=(()=>{class r{constructor(i,p,D,H,ie,le,ue){this.dialogRef=i,this.data=p,this.notificator=D,this.translate=H,this.authzService=ie,this.store=le,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.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 r.\u0275fac=function(i){return new(i||r)(e.Y36(h.so),e.Y36(h.WI),e.Y36(o.V6),e.Y36(L.sK),e.Y36(d.Ct),e.Y36(o.d6),e.Y36(o.x4))},r.\u0275cmp=e.Xpm({type:r,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,p){1&i&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,E,14,10,"div",1),e.YNc(5,S,1,0,"mat-spinner",2),e.TgZ(6,"div",3),e.TgZ(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.qZA()),2&i&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!p.loading),e.xp6(1),e.Q6J("ngIf",p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[h.uh,O.O5,h.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,y.w,f.$g,h.H8,N.lW],pipes:[L.X$,B],styles:[""]}),r})();function _(r,v){1&r&&e._UZ(0,"mat-spinner",6)}function c(r,v){1&r&&e._UZ(0,"th",15)}function g(r,v){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const i=v.$implicit;e.xp6(1),e.Oqu(i.name)}}function x(r,v){1&r&&e._UZ(0,"tr",17)}function K(r,v){1&r&&e._UZ(0,"tr",18)}function q(r,v){if(1&r&&(e.TgZ(0,"div",7),e.TgZ(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,c,1,0,"th",11),e.YNc(10,g,2,1,"td",12),e.BQk(),e.YNc(11,x,1,0,"tr",13),e.YNc(12,K,1,0,"tr",14),e.qZA(),e.qZA()),2&r){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 ce=(()=>{class r{constructor(i,p,D,H,ie){this.dialogRef=i,this.data=p,this.notificator=D,this.translate=H,this.authzService=ie,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.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 r.\u0275fac=function(i){return new(i||r)(e.Y36(h.so),e.Y36(h.WI),e.Y36(o.V6),e.Y36(L.sK),e.Y36(d.Ct))},r.\u0275cmp=e.Xpm({type:r,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,p){1&i&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,_,1,0,"mat-spinner",1),e.YNc(5,q,13,9,"div",2),e.TgZ(6,"div",3),e.TgZ(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.qZA()),2&i&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",!p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[h.uh,O.O5,f.$g,h.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,h.H8,N.lW],pipes:[L.X$],styles:[""]}),r})();var A=n(1059),w=n(24850),u=n(91079),R=n(64901),Z=n(24179);function k(r,v){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const i=v.$implicit;e.Q6J("value",i),e.xp6(1),e.Oqu(e.lcZ(2,2,i))}}function Q(r,v){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&r){const i=v.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i.name," ")}}function ee(r,v){if(1&r){const i=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(D){return e.CHM(i),e.oxw().applyFilter(D)}),e.ALo(1,"translate"),e.qZA()}2&r&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(r,v){1&r&&e._UZ(0,"mat-spinner",19)}const me=function(){return["select","id","name","description"]};function Ae(r,v){if(1&r&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&r){const i=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,me))("selection",i.selection)("filter",i.filterValue)("groups",i.groups)("tableId",i.tableId)}}let Re=(()=>{class r{constructor(i,p,D,H,ie,le,ue,he,fe){this.dialogRef=i,this.data=p,this.authzService=D,this.voService=H,this.groupService=ie,this.translate=le,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new C.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.NI,this.firstSearchDone=!1,this.tableId=b.kZ,le.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),le.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(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>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(i=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,A.O)(""),(0,w.U)(p=>this._filter(p))),this.vos=i,this.loading=!1},()=>this.loading=!1)}showVoGroups(i){this.loading=!0,this.groupService.getAllGroups(i.option.value.id).subscribe(p=>{this.groups=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(i){this.filterValue=i}_filter(i){const p="string"==typeof i?i.toLowerCase():i.name.toLowerCase();return this.vos.filter(D=>D.name.toLowerCase().includes(p))}}return r.\u0275fac=function(i){return new(i||r)(e.Y36(h.so),e.Y36(h.WI),e.Y36(d.Ct),e.Y36(d.YF),e.Y36(d.ff),e.Y36(L.sK),e.Y36(o.V6),e.Y36(P.gz),e.Y36(P.F0))},r.\u0275cmp=e.Xpm({type:r,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","filter","groups","tableId"]],template:function(i,p){if(1&i&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(H){return p.selectedRole=H}),e.YNc(11,k,3,4,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(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(H){return p.showVoGroups(H)}),e.YNc(20,Q,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA(),e.qZA(),e.qZA(),e.YNc(22,ee,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),e.TgZ(27,"button",15),e.NdJ("click",function(){return p.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return p.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.qZA(),e.qZA()),2&i){const D=e.MAs(19);e.Tol(p.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",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.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",p.myControl)("matAutocomplete",D),e.xp6(2),e.Q6J("displayWith",p.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,p.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==p.groups&&p.groups.length>0&&!p.loading),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.groups&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||p.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[h.uh,h.xY,a.KE,a.hX,G.gD,O.sg,I.ey,V.Nt,t.Fj,u.ZL,t.JJ,t.oH,u.XC,O.O5,R.P,f.$g,Z.W,h.H8,N.lW],pipes:[L.X$,B,O.Ov],styles:[""]}),r})();var de=n(9244),Te=n(15003),ge=n(53251),Ee=n(96214);function ve(r,v){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function Ce(r,v){if(1&r){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(i),e.oxw(2).addManager()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Se(r,v){if(1&r){const i=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){return e.CHM(i),e.oxw(2).removeManager()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){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 be(r,v){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const i=v.$implicit;e.Q6J("value",i),e.xp6(1),e.Oqu(e.lcZ(2,2,i))}}function Oe(r,v){1&r&&e._UZ(0,"mat-spinner",16)}function Ie(r,v){if(1&r&&e._UZ(0,"app-users-list",17),2&r){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(r,v){if(1&r){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){return e.CHM(i),e.oxw().refreshUsers()}),e.qZA(),e.YNc(1,Ce,3,3,"button",6),e.YNc(2,Se,3,4,"button",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){return e.CHM(i),e.oxw().refreshUsers()})("valueChange",function(D){return e.CHM(i),e.oxw().selectedRole=D}),e.YNc(8,be,3,4,"mat-option",10),e.qZA(),e.qZA(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&r){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 Ze(r,v){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Me(r,v){if(1&r){const i=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(i),e.oxw(2).addGroup()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function xe(r,v){if(1&r){const i=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){return e.CHM(i),e.oxw(2).removeGroup()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){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 Ue(r,v){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const i=v.$implicit;e.Q6J("value",i),e.xp6(1),e.Oqu(e.lcZ(2,2,i))}}function ye(r,v){1&r&&e._UZ(0,"mat-spinner",16)}function Le(r,v){if(1&r&&e._UZ(0,"perun-web-apps-groups-list",23),2&r){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(r,v){if(1&r){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){return e.CHM(i),e.oxw().refreshGroups()}),e.qZA(),e.YNc(1,Me,3,3,"button",18),e.YNc(2,xe,3,4,"button",19),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){return e.CHM(i),e.oxw().refreshGroups()})("valueChange",function(D){return e.CHM(i),e.oxw().selectedRole=D}),e.YNc(8,Ue,3,4,"mat-option",10),e.qZA(),e.qZA(),e.YNc(9,ye,1,0,"mat-spinner",11),e.YNc(10,Le,1,6,"perun-web-apps-groups-list",20)}if(2&r){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 Pe(r,v){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Ne=(()=>{class r{constructor(i,p,D,H,ie,le,ue){this.dialog=i,this.authzService=p,this.storeService=D,this.guiAuthResolver=H,this.router=ie,this.reloadEntityDetail=le,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 C.Ov(!0,[]),this.selectionGroups=new C.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=b.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).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(p=>this.availableRolesPrivileges.get(p).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(p=>"select"!==p),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(p=>"select"!==p),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let i=!1;for(const p of this.roleModes)if(this.selectedMode===p.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(p=>{this.managers=p,this.selectionUsers.clear(),this.loading=!1},()=>{this.loading=!1})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(i=>{this.groups=i,this.selectionGroups.clear(),this.loading=!1},()=>{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(m,i).afterClosed().subscribe(D=>{D&&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(l,i).afterClosed().subscribe(D=>{D&&(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(ce,i).afterClosed().subscribe(D=>{D&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),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(D=>{D&&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 r.\u0275fac=function(i){return new(i||r)(e.Y36(h.uw),e.Y36(d.Ct),e.Y36(o.d6),e.Y36(o.x4),e.Y36(P.F0),e.Y36(Te.G),e.Y36(P.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(i,p){2&i&&e.ekj("router-component",p.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"],[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"],[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,p){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(H){return p.tabChanged(H)}),e.TgZ(4,"mat-tab"),e.YNc(5,ve,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Ze,2,3,"ng-template",2),e.YNc(9,Ge,11,9,"ng-template",3),e.qZA(),e.qZA(),e.YNc(10,Pe,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===p.availableRoles.length))},directives:[ge.SP,ge.uX,ge.uD,ge.Vc,Ee.t,O.O5,N.lW,a.KE,a.hX,G.gD,O.sg,I.ey,f.$g,Y.C,Z.W,y.w],pipes:[L.X$,B],styles:[""]}),r})()},17672:(z,J,n)=>{n.d(J,{o:()=>ae});var C=n(84847),h=n(32075),o=n(20449),d=n(36908),b=n(32105),s=n(9244),t=n(5e3),e=n(51062),L=n(18750),P=n(77446),a=n(69808),G=n(67322),O=n(98833),I=n(93075),V=n(47423),U=n(29772),N=n(25245),f=n(98380);function y(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(c){t.CHM(l);const g=t.oxw();return c?g.masterToggle():null}),t.qZA(),t.qZA()}if(2&E){const l=t.oxw();t.xp6(1),t.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function Y(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(c){const x=t.CHM(l).$implicit,K=t.oxw();return c?K.selection.toggle(x):null})("click",function(c){return c.stopPropagation()}),t.qZA(),t.qZA()}if(2&E){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("aria-label",_.checkboxLabel(l))("checked",_.selection.isSelected(l))}}function B(E,S){1&E&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function W(E,S){if(1&E&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&E){const l=S.$implicit;t.xp6(1),t.Oqu(l.id)}}function X(E,S){1&E&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function te(E,S){if(1&E&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&E){const l=t.oxw().$implicit;t.xp6(1),t.hij(" ",l.tagName," ")}}function se(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"mat-form-field"),t.TgZ(2,"input",25),t.NdJ("ngModelChange",function(c){return t.CHM(l),t.oxw().$implicit.tagName=c}),t.qZA(),t.qZA(),t.qZA()}if(2&E){const l=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",l.tagName)}}function M(E,S){if(1&E&&(t.TgZ(0,"td",23),t.YNc(1,te,2,1,"div",24),t.YNc(2,se,3,1,"div",24),t.qZA()),2&E){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function j(E,S){1&E&&t._UZ(0,"th",22)}function m(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit;return t.oxw().edit(c)}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA(),t.qZA()}2&E&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function T(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit;return t.oxw().save(c)}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA(),t.qZA()}2&E&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function F(E,S){if(1&E&&(t.TgZ(0,"td",23),t.TgZ(1,"div",26),t.YNc(2,m,4,3,"button",27),t.YNc(3,T,4,3,"button",27),t.qZA(),t.qZA()),2&E){const l=S.$implicit,_=t.oxw();t.xp6(2),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function $(E,S){1&E&&t._UZ(0,"tr",29)}function oe(E,S){1&E&&t._UZ(0,"tr",30)}function ne(E,S){if(1&E&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&E){const l=t.oxw();t.xp6(1),t.hij(" ","vo"===l.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function re(E,S){1&E&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ae=(()=>{class E{constructor(l,_,c,g,x){this.resourceManager=l,this.notificator=_,this.translator=c,this.authResolver=g,this.tableCheckbox=x,this.resourceTags=[],this.selection=new o.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new o.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(l){this.sort=l,this.setDataSource()}static getDataForColumn(l,_){switch(_){case"id":return l.id.toString();case"name":return l.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.dataSource=new h.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(l){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,E.getDataForColumn),l)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(l,_)=>(0,s.Sd)(l,_,this.displayedColumns,E.getDataForColumn),this.dataSource.sortData=(l,_)=>(0,s.pR)(l,_,E.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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(l){this.resourceManager.updateResourceTag({resourceTag:l}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.isChanging.deselect(l)})}edit(l){this.isChanging.select(l)}}return E.\u0275fac=function(l){return new(l||E)(t.Y36(b.xk),t.Y36(d.V6),t.Y36(e.sK),t.Y36(d.x4),t.Y36(d.UA))},E.\u0275cmp=t.Xpm({type:E,selectors:[["app-resources-tags-list"]],viewQuery:function(l,_){if(1&l&&(t.Gf(s.l9,7),t.Gf(C.YE,7)),2&l){let c;t.iGM(c=t.CRH())&&(_.child=c.first),t.iGM(c=t.CRH())&&(_.matSort=c.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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-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"],["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(l,_){1&l&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(g){return _.exportData(g)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,y,2,3,"th",4),t.YNc(5,Y,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,B,3,3,"th",7),t.YNc(8,W,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,X,3,3,"th",10),t.YNc(11,M,3,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,j,1,0,"th",10),t.YNc(14,F,4,2,"td",11),t.BQk(),t.YNc(15,$,1,0,"tr",13),t.YNc(16,oe,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,ne,4,5,"perun-web-apps-alert",15),t.YNc(18,re,3,3,"perun-web-apps-alert",15)),2&l&&(t.Q6J("hidden",0===_.resourceTags.length||0===_.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),t.xp6(1),t.Q6J("dataSource",_.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",_.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",_.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===_.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.resourceTags.length))},directives:[L.l,h.BZ,C.YE,h.w1,h.fO,h.ge,P.oG,h.Dz,h.ev,C.nU,a.O5,G.KE,O.Nt,I.Fj,I.JJ,I.On,V.lW,U.gM,N.Hw,h.as,h.XQ,h.nj,h.Gk,f.w],pipes:[e.X$],styles:[""]}),E})()},22158:(z,J,n)=>{n.d(J,{T:()=>h});var C=n(8929);const h=(o=class{})=>class extends o{constructor(){super(...arguments),this.destroyed$=new C.xQ}ngOnDestroy(){this.destroyed$.next()}}},90439:(z,J,n)=>{n.d(J,{F:()=>d});var C=n(5e3),h=n(42377),o=n(51062);let d=(()=>{class b{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new C.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return b.\u0275fac=function(t){return new(t||b)},b.\u0275cmp=C.Xpm({type:b,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&&(C.TgZ(0,"perun-web-apps-entity-search-select",0),C.NdJ("entitySelected",function(P){return e.packageSelected.emit(P)}),C.ALo(1,"translate"),C.ALo(2,"translate"),C.ALo(3,"translate"),C.qZA()),2&t&&C.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",C.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",C.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",C.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},directives:[h.i],pipes:[o.X$],styles:[""]}),b})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/243.6d3d1f3024f100ed.js b/dist/apps/admin-gui/243.6d3d1f3024f100ed.js new file mode 100644 index 000000000..468dac0df --- /dev/null +++ b/dist/apps/admin-gui/243.6d3d1f3024f100ed.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[243],{15003:(z,J,i)=>{i.d(J,{G:()=>m});var C=i(5e3);let m=(()=>{class o{constructor(){this.entityDetailChange=new C.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return o.\u0275fac=function(b){return new(b||o)},o.\u0275prov=C.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},76023:(z,J,i)=>{i.d(J,{y:()=>V});var C=i(32105),m=i(10036),o=i(36908),d=i(5e3),b=i(11735),s=i(96214),t=i(64901),e=i(69808),G=i(20773),N=i(38383),a=i(51062);function P(U,y){1&U&&d._UZ(0,"mat-spinner",5)}const O=function(){return["id","fullName"]};function I(U,y){if(1&U){const f=d.EpF();d.TgZ(0,"perun-web-apps-members-list",6),d.NdJ("updateTable",function(){return d.CHM(f),d.oxw().refreshTable()}),d.qZA()}if(2&U){const f=d.oxw();d.Q6J("displayedColumns",d.DdM(5,O))("disableRouting",!f.routeAuth)("filter",f.filterValue)("members",f.members)("tableId",f.tableId)}}let V=(()=>{class U{constructor(f,L,Y,B){this.route=f,this.resourceService=L,this.authResolver=Y,this.entityStorageService=B,this.loading=!1,this.filterValue="",this.tableId=m.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(f=>{this.members=f,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(f){this.filterValue=f}}return U.\u0275fac=function(f){return new(f||U)(d.Y36(b.gz),d.Y36(C.xk),d.Y36(o.x4),d.Y36(o.fb))},U.\u0275cmp=d.Xpm({type:U,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(f,L){1&f&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return L.refreshTable()}),d.qZA(),d.TgZ(4,"perun-web-apps-debounce-filter",2),d.NdJ("filter",function(B){return L.applyFilter(B)}),d.qZA(),d.YNc(5,P,1,0,"mat-spinner",3),d.YNc(6,I,1,6,"perun-web-apps-members-list",4)),2&f&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),d.xp6(3),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),d.xp6(1),d.Q6J("ngIf",L.loading),d.xp6(1),d.Q6J("ngIf",!L.loading))},directives:[s.t,t.P,e.O5,G.$g,N.O],pipes:[a.X$],styles:[""]}),U})()},49546:(z,J,i)=>{i.d(J,{D:()=>S});var C=i(32105),m=i(10036),o=i(20449),d=i(9244),b=i(48966),s=i(36908),t=i(5e3),e=i(51062),G=i(69808),N=i(20773),a=i(53251),P=i(64901),O=i(60205),I=i(90439),V=i(47423);function U(l,_){1&l&&t._UZ(0,"mat-spinner",6)}const y=function(){return["id","name","enabled","description"]};function f(l,_){if(1&l&&t._UZ(0,"app-services-list",16),2&l){const c=t.oxw(2);t.Q6J("disableRouting",!0)("services",c.filteredServices)("displayedColumns",t.DdM(5,y))("selection",c.selection)("tableId",c.tableId)}}const L=function(){return["select","id","name","enabled","description"]};function Y(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){return t.CHM(c),t.oxw().tabChanged()}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10),t.TgZ(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(x){return t.CHM(c),t.oxw().applyFilter(x)}),t.ALo(6,"translate"),t.qZA(),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),t.TgZ(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(x){return t.CHM(c),t.oxw().servicePackageSelected(x)}),t.qZA(),t.qZA(),t.YNc(12,f,1,6,"app-services-list",15),t.qZA(),t.qZA(),t.qZA()}if(2&l){const c=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",c.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,L))("filterValue",c.filterValue)("selection",c.selection)("tableId",c.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",c.selectedPackage)("servicePackages",c.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==c.selectedPackage.id)}}let B=(()=>{class l{constructor(c,g,x,K,q,ce){this.dialogRef=c,this.data=g,this.notificator=x,this.translate=K,this.resourceManager=q,this.servicesManager=ce,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new o.Ov(!0,[]),this.tableId=m.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(c=>{this.servicesManager.getServices().subscribe(g=>{this.servicesManager.getServicesPackages().subscribe(x=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(x),this.unAssignedServices=g;for(const K of c)for(const q of g)K.id===q.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(q),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(c){this.filterValue=c}servicePackageSelected(c){this.selectedPackage=c,-1!==c.id?this.servicesManager.getServicesFromServicesPackage(c.id).subscribe(g=>{this.filteredServices=g}):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(c=>{this.notificator.showSuccess(c),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const c=[];for(const g of this.selection.selected)c.push(g.id);this.resourceManager.assignServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(g=>{this.notificator.showSuccess(g),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(b.so),t.Y36(b.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(C.xk),t.Y36(C.KK))},l.\u0275cmp=t.Xpm({type:l,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(c,g){1&c&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,U,1,0,"mat-spinner",1),t.YNc(5,Y,13,19,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return g.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return g.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.Tol(g.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===g.selection.selected.length&&-1===g.selectedPackage.id||g.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===g.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},directives:[b.uh,G.O5,N.$g,b.xY,a.SP,a.uX,P.P,O.Q,I.F,b.H8,V.lW],pipes:[e.X$],styles:[""]}),l})();var W=i(32075);function X(l,_){1&l&&t._UZ(0,"mat-spinner",6)}function te(l,_){1&l&&t._UZ(0,"th",15)}function se(l,_){if(1&l&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&l){const c=_.$implicit;t.xp6(1),t.Oqu(c.name)}}function M(l,_){1&l&&t._UZ(0,"tr",17)}function j(l,_){1&l&&t._UZ(0,"tr",18)}function h(l,_){if(1&l&&(t.TgZ(0,"div",7),t.TgZ(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,te,1,0,"th",11),t.YNc(10,se,2,1,"td",12),t.BQk(),t.YNc(11,M,1,0,"tr",13),t.YNc(12,j,1,0,"tr",14),t.qZA(),t.qZA()),2&l){const c=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",c.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",c.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",c.displayedColumns)}}let T=(()=>{class l{constructor(c,g,x,K,q){this.dialogRef=c,this.data=g,this.notificator=x,this.translate=K,this.resourcesManager=q,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new W.by(this.data.services)}onSubmit(){this.loading=!0;const c=[];for(const g of this.data.services)c.push(g.id);this.resourcesManager.removeServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(g=>{this.notificator.showSuccess(g),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(b.so),t.Y36(b.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(C.xk))},l.\u0275cmp=t.Xpm({type:l,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(c,g){1&c&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,X,1,0,"mat-spinner",1),t.YNc(5,h,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return g.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return g.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.Tol(g.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",g.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[b.uh,G.O5,N.$g,b.xY,W.BZ,W.w1,W.fO,W.ge,W.Dz,W.ev,W.as,W.XQ,W.nj,W.Gk,b.H8,V.lW],pipes:[e.X$],styles:[""]}),l})();var F=i(11735),$=i(96214),oe=i(7434);function ie(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(c),t.oxw().addService()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function re(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(c),t.oxw().removeServices()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&l){const c=t.oxw();t.Q6J("disabled",0===c.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function ae(l,_){1&l&&t._UZ(0,"mat-spinner",9)}function E(l,_){if(1&l&&t._UZ(0,"app-services-list",10),2&l){const c=t.oxw();t.Q6J("disableRouting",!c.serviceRoutingAuth)("selection",c.selected)("displayedColumns",c.displayedColumns)("filterValue",c.filterValue)("services",c.assignedServices)("tableId",c.tableId)}}let S=(()=>{class l{constructor(c,g,x,K,q){this.route=c,this.resourcesManager=g,this.dialog=x,this.guiAuthResolver=K,this.entityStorageService=q,this.assignedServices=[],this.selected=new o.Ov(!0,[]),this.tableId=m.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(c=>{this.assignedServices=c,this.selected.clear(),this.loading=!1})}addService(){const c=(0,d.kZ)();c.width="800px",c.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(B,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}removeServices(){const c=(0,d.kZ)();c.width="500px",c.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(T,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}applyFilter(c){this.filterValue=c}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 l.\u0275fac=function(c){return new(c||l)(t.Y36(F.gz),t.Y36(C.xk),t.Y36(b.uw),t.Y36(s.x4),t.Y36(s.fb))},l.\u0275cmp=t.Xpm({type:l,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(c,g){1&c&&(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 g.loadAllServices()}),t.qZA(),t.YNc(4,ie,3,3,"button",2),t.YNc(5,re,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(K){return g.applyFilter(K)}),t.qZA(),t.YNc(7,ae,1,0,"mat-spinner",5),t.YNc(8,E,1,6,"app-services-list",6)),2&c&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",g.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",g.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading))},directives:[$.t,G.O5,V.lW,oe.L,N.$g,O.Q],pipes:[e.X$],styles:[""]}),l})()},92090:(z,J,i)=>{i.d(J,{X:()=>y});var C=i(36908),m=i(32105),o=i(5e3),d=i(53251),b=i(12651),s=i(69808),t=i(19191),e=i(51062);function G(f,L){1&f&&(o._uU(0),o.ALo(1,"translate")),2&f&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function N(f,L){if(1&f&&o._UZ(0,"app-one-entity-attribute-page",4),2&f){const Y=o.oxw();o.Q6J("entityId",Y.resource.id)("entity","resource")}}function a(f,L){1&f&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&f&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function P(f,L){if(1&f&&o._UZ(0,"app-two-entity-attribute-page",5),2&f){const Y=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","member")}}function O(f,L){1&f&&(o.TgZ(0,"mat-tab"),o.YNc(1,a,3,6,"ng-template",1),o.YNc(2,P,1,3,"ng-template",2),o.qZA())}function I(f,L){1&f&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&f&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function V(f,L){if(1&f&&o._UZ(0,"app-two-entity-attribute-page",5),2&f){const Y=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","group")}}function U(f,L){1&f&&(o.TgZ(0,"mat-tab"),o.YNc(1,I,3,6,"ng-template",1),o.YNc(2,V,1,3,"ng-template",2),o.qZA())}let y=(()=>{class f{constructor(Y,B,W){this.authResolver=Y,this.resourceManager=B,this.entityStorageService=W}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 f.\u0275fac=function(Y){return new(Y||f)(o.Y36(C.x4),o.Y36(m.xk),o.Y36(C.fb))},f.\u0275cmp=o.Xpm({type:f,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(Y,B){2&Y&&o.ekj("router-component",B.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(Y,B){1&Y&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,G,2,3,"ng-template",1),o.YNc(7,N,1,2,"ng-template",2),o.qZA(),o.YNc(8,O,3,0,"mat-tab",3),o.YNc(9,U,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&Y&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",B.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",B.resourceGroupAttAuth))},directives:[d.SP,d.uX,d.uD,d.Vc,b.t,s.O5,t.Y],pipes:[e.X$],styles:[""]}),f})()},98918:(z,J,i)=>{i.d(J,{b:()=>E});var C=i(36769),m=i(69024),o=i(32105),d=i(9244),b=i(36908),s=i(19516),t=i(16074),e=i(533),G=i(22158),N=i(7625),a=i(5e3),P=i(11735),O=i(77968),I=i(48966),V=i(15003),U=i(4235),y=i(69808),f=i(20773),L=i(25245),Y=i(29772),B=i(47423),W=i(61283),X=i(51062);function te(S,l){1&S&&a._UZ(0,"mat-spinner",3)}function se(S,l){if(1&S){const _=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){return a.CHM(_),a.oxw(2).editResource()}),a.TgZ(1,"mat-icon"),a._uU(2,"edit"),a.qZA(),a.qZA()}}function M(S,l){if(1&S){const _=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(_),a.oxw(2).deleteResource()}),a.TgZ(1,"mat-icon"),a._uU(2,"delete_forever"),a.qZA(),a.qZA()}}const j=function(S){return["/organizations",S]};function h(S,l){if(1&S&&(a.TgZ(0,"a",8),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("routerLink",a.VKq(2,j,_.resource.vo.id)),a.xp6(1),a.Oqu(_.resource.vo.name)}}function T(S,l){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 F=function(S){return["/facilities",S]};function $(S,l){if(1&S&&(a.TgZ(0,"a",8),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("routerLink",a.VKq(2,F,_.resource.facilityId)),a.xp6(1),a.Oqu(_.resource.facility.name)}}function oe(S,l){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 ie=function(){return{color:"black"}},re=function(S){return[S]};function ae(S,l){if(1&S&&(a.TgZ(0,"div"),a.TgZ(1,"div",4),a._UZ(2,"mat-icon",5),a.ALo(3,"translate"),a.TgZ(4,"div",6),a.TgZ(5,"div",7),a.TgZ(6,"a",8),a._uU(7),a.qZA(),a.TgZ(8,"span",9),a._uU(9),a.qZA(),a.YNc(10,se,3,0,"button",10),a.YNc(11,M,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,h,2,4,"a",13),a.YNc(20,T,2,1,"span",2),a._uU(21),a.ALo(22,"translate"),a.YNc(23,$,2,4,"a",14),a.YNc(24,oe,2,1,"span",2),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.qZA(),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,20,"RESOURCE_DETAIL.ENTITY")),a.Q6J("ngStyle",a.DdM(32,ie)),a.xp6(4),a.Q6J("routerLink",a.VKq(33,re,_.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,22,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),a.xp6(3),a.AsE(" ",a.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",a.lcZ(18,26,"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,28,"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,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let E=(()=>{class S extends((0,G.T)()){constructor(_,c,g,x,K,q,ce,A,w,u,R){super(),this.route=_,this.facilityManager=c,this.vosManagerService=g,this.resourcesManager=x,this.sideMenuService=K,this.sideMenuItemService=q,this.dialog=ce,this.guiAuthResolver=A,this.router=w,this.entityStorageService=u,this.reloadEntityDetail=R,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,N.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(_=>{const c=Number(_.resourceId);this.resourcesManager.getRichResourceById(c).subscribe(g=>{this.resource=g,this.entityStorageService.setEntity({id:g.id,voId:g.voId,facilityId:g.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(g,!1),this.facilityManager.getFacilityById(g.facilityId).subscribe(x=>{this.facility=x,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(g,!0),this.vosManagerService.getVoById(g.voId).subscribe(x=>{this.vo=x,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,d.sF)("resources",this.resource)})})}setMenuItems(){let _;const c=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(_=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([_,c])):(_=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([_,c]))}editResource(){let _;this.resourcesManager.getResourceById(this.resource.id).subscribe(c=>{_=c;const g=(0,d.kZ)();g.width="450px",g.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,g).afterClosed().subscribe(K=>{K&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(q=>{this.resource=q,this.setMenuItems()})})})}deleteResource(){const _=(0,d.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(g=>{g&&this.router.navigate(["../"],{relativeTo:this.route})})}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(P.gz),a.Y36(o.IQ),a.Y36(o.YF),a.Y36(o.xk),a.Y36(O.D),a.Y36(m.V),a.Y36(I.uw),a.Y36(b.x4),a.Y36(P.F0),a.Y36(b.fb),a.Y36(V.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"],["queryParamsHandling","merge",1,"resource-link",3,"routerLink"],[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"],["queryParamsHandling","merge","class","resource-link",3,"routerLink",4,"ngIf"],["class","resource-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(_,c){1&_&&(a.TgZ(0,"div",0),a._UZ(1,"perun-web-apps-back-button"),a.YNc(2,te,1,0,"mat-spinner",1),a.YNc(3,ae,28,35,"div",2),a.qZA()),2&_&&(a.xp6(2),a.Q6J("ngIf",c.loading),a.xp6(1),a.Q6J("ngIf",!c.loading&&void 0!==c.resource))},directives:[U.W,y.O5,f.$g,L.Hw,Y.gM,y.PC,P.yS,B.lW,W.A],pipes:[X.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[C.Ji]}}),S})()},258:(z,J,i)=>{i.d(J,{K:()=>ce});var C=i(32105),m=i(20449),o=i(48966),d=i(32075),b=i(36908),s=i(5e3),t=i(51062),e=i(69808),G=i(20773),N=i(47423);function a(A,w){1&A&&s._UZ(0,"mat-spinner",6)}function P(A,w){1&A&&s._UZ(0,"th",15)}function O(A,w){if(1&A&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&A){const u=w.$implicit;s.xp6(1),s.Oqu(u.name)}}function I(A,w){1&A&&s._UZ(0,"tr",17)}function V(A,w){1&A&&s._UZ(0,"tr",18)}function U(A,w){if(1&A&&(s.TgZ(0,"div",7),s.TgZ(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,P,1,0,"th",11),s.YNc(10,O,2,1,"td",12),s.BQk(),s.YNc(11,I,1,0,"tr",13),s.YNc(12,V,1,0,"tr",14),s.qZA(),s.qZA()),2&A){const u=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",u.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",u.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",u.displayedColumns)}}let y=(()=>{class A{constructor(u,R,Z,k,Q){this.dialogRef=u,this.data=R,this.notificator=Z,this.translate=k,this.resourceManager=Q,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const u=[];for(const R of this.data.groups)u.push(R.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(u,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(o.so),s.Y36(o.WI),s.Y36(b.V6),s.Y36(t.sK),s.Y36(C.xk))},A.\u0275cmp=s.Xpm({type:A,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","",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(u,R){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,a,1,0,"mat-spinner",1),s.YNc(5,U,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return R.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return R.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",R.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[o.uh,e.O5,G.$g,o.xY,d.BZ,d.w1,d.fO,d.ge,d.Dz,d.ev,d.as,d.XQ,d.nj,d.Gk,o.H8,N.lW],pipes:[t.X$],styles:[""]}),A})();var f=i(10036),L=i(92081),Y=i(64901),B=i(24179),W=i(32368),X=i(93075);const te=["stepper"];function se(A,w){1&A&&s._UZ(0,"mat-spinner",4)}function M(A,w){1&A&&(s._uU(0),s.ALo(1,"translate")),2&A&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function j(A,w){1&A&&(s._uU(0),s.ALo(1,"translate")),2&A&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const h=function(){return["select","id","name","description"]};function T(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"mat-stepper",6,7),s.TgZ(3,"mat-step",8),s.YNc(4,M,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(Z){return s.CHM(u),s.oxw().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,j,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){return s.CHM(u),s.oxw().changeSubgroupsMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().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(){return s.CHM(u),s.oxw().changeInactiveMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().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(){return s.CHM(u),s.oxw().changeAsyncMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().async=Z}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&A){const u=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==u.selection.selected.length&&u.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",u.unAssignedGroups)("selection",u.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,h))("filter",u.filterValue)("tableId",u.tableId),s.xp6(3),s.Q6J("ngModel",u.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",u.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",u.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",u.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",u.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",u.asyncHint," ")}}function F(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).stepperPrevious()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function $(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).stepperNext()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&A){const u=s.oxw(2);s.ekj("ml-2",void 0!==u.stepper&&0!==u.stepper.selectedIndex)("ml-auto",!(void 0!==u.stepper&&0!==u.stepper.selectedIndex)),s.Q6J("disabled",0===u.selection.selected.length||!u.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function oe(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function ie(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"div",15),s.TgZ(1,"button",16),s.NdJ("click",function(){return s.CHM(u),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,F,3,3,"button",17),s.YNc(5,$,3,8,"button",18),s.YNc(6,oe,3,3,"button",19),s.qZA()}if(2&A){const u=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!==u.stepper&&0!==u.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex!==u.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex===u.stepper._steps.length-1)}}let re=(()=>{class A{constructor(u,R,Z,k,Q,ee,pe,me){this.dialogRef=u,this.data=R,this.notificator=Z,this.translate=k,this.resourceManager=Q,this.groupService=ee,this.guiAuthResolver=pe,this.cd=me,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new m.Ov(!0,[]),this.filterValue="",this.tableId=f.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(u=>{this.groupService.getAllGroups(this.resource.voId).subscribe(R=>{for(const Z of R)-1===u.findIndex(k=>k.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 u=[];for(const R of this.selection.selected)u.push(R.id);this.resourceManager.assignGroupsToResource(u,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(u){this.filterValue=u}canAddGroups(){let u=!0;return this.selection.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}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 A.\u0275fac=function(u){return new(u||A)(s.Y36(o.so),s.Y36(o.WI),s.Y36(b.V6),s.Y36(t.sK),s.Y36(C.xk),s.Y36(C.ff),s.Y36(b.x4),s.Y36(s.sBO))},A.\u0275cmp=s.Xpm({type:A,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(u,R){if(1&u&&s.Gf(te,5),2&u){let Z;s.iGM(Z=s.CRH())&&(R.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",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"click"]],template:function(u,R){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,se,1,0,"mat-spinner",1),s.YNc(5,T,25,28,"div",2),s.YNc(6,ie,7,6,"div",3),s.qZA()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading&&R.stepper))},directives:[o.uh,e.O5,G.$g,o.xY,L.Vq,L.C0,L.VY,Y.P,B.W,W.Rr,X.JJ,X.On,o.H8,N.lW],pipes:[t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),A})();var ae=i(9244),E=i(64080),S=i(11735),l=i(96214),_=i(29772);function c(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(u),s.oxw().addGroup()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function g(A,w){1&A&&s._UZ(0,"mat-spinner",9)}const x=function(A){return[A]},K=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function q(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){return s.CHM(u),s.oxw().loadAllGroups()}),s.qZA()}if(2&A){const u=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",u.groupsToDisable)("disableMembers",!1)("groups",u.assignedGroups)("disableRouting",!!u.assignedGroups[0]&&!u.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,x,u.assignedGroups[0])))("displayedColumns",s.DdM(12,K))("filter",u.filteredValue)("resourceId",u.resource.id)("selection",u.selected)("tableId",u.tableId)}}let ce=(()=>{class A{constructor(u,R,Z,k,Q){this.route=u,this.resourcesManager=R,this.dialog=Z,this.guiAuthResolver=k,this.entityStorageService=Q,this.assignedGroups=[],this.selected=new m.Ov(!0,[]),this.filteredValue="",this.tableId=f.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[E.r.GROUP_SYNC_ENABLED]).subscribe(u=>{this.assignedGroups=u.map(Q=>{const ee=Q.enrichedGroup.group;return ee.status=Q.status,ee.failureCause=Q.failureCause,ee.sourceGroupId=Q.sourceGroupId,ee});const R=this.assignedGroups.map(Q=>Q.id),Z=this.assignedGroups.filter((Q,ee)=>R.indexOf(Q.id)===ee),k=this.assignedGroups.filter((Q,ee)=>{const pe=R.indexOf(Q.id);return pe!==ee&&(null===Q.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(Q=>Q.id);Z.forEach(Q=>{k.includes(Q.id)&&(Q.moreTypesOfAssignment=!0)}),this.assignedGroups=Z,this.groupsToDisable=new Set(this.assignedGroups.filter(Q=>!!Q.sourceGroupId&&!Q.moreTypesOfAssignment).map(Q=>Q.id)),this.selected.clear(),this.loading=!1})}addGroup(){const u=(0,ae.kZ)();u.width="1000px",u.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(Z=>this.groupsToDisable.has(Z.id))},this.dialog.open(re,u).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}removeGroups(){const u=(0,ae.kZ)();u.width="500px",u.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(y,u).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}canRemoveGroups(){let u=!0;return this.selected.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}applyFilter(u){this.filteredValue=u}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(S.gz),s.Y36(C.xk),s.Y36(o.uw),s.Y36(b.x4),s.Y36(b.fb))},A.\u0275cmp=s.Xpm({type:A,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","",3,"click",4,"ngIf"],["color","warn","mat-flat-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","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(u,R){1&u&&(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 R.loadAllGroups()}),s.qZA(),s.YNc(4,c,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return R.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(k){return R.applyFilter(k)}),s.qZA(),s.YNc(11,g,1,0,"mat-spinner",6),s.YNc(12,q,1,13,"perun-web-apps-groups-list",7)),2&u&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",R.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,x,R.resource))),s.xp6(1),s.Q6J("disabled",0===R.selected.selected.length||!R.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",R.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",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading))},directives:[l.t,e.O5,N.lW,_.gM,Y.P,G.$g,B.W],pipes:[t.X$],styles:[""]}),A})()},4675:(z,J,i)=>{i.d(J,{H:()=>N});var C=i(32105),m=i(36908),o=i(5e3),d=i(11735),b=i(69808),s=i(20773),t=i(71135);function e(a,P){1&a&&o._UZ(0,"mat-spinner",2)}function G(a,P){if(1&a&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&a){const O=o.oxw();o.xp6(1),o.Q6J("items",O.navItems)("size","small")}}let N=(()=>{class a{constructor(O,I,V,U,y){this.resourcesManager=O,this.route=I,this.guiAuthResolver=V,this.entityStorageService=U,this.routePolicyService=y,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(O){const I=O?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${I}/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:`/${I}/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:`${I}/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:`${I}/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:`${I}/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:`${I}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return a.\u0275fac=function(O){return new(O||a)(o.Y36(C.xk),o.Y36(d.gz),o.Y36(m.x4),o.Y36(m.fb),o.Y36(m.Ip))},a.\u0275cmp=o.Xpm({type:a,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(O,I){2&O&&o.ekj("router-component",I.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(O,I){1&O&&(o.YNc(0,e,1,0,"mat-spinner",0),o.YNc(1,G,2,2,"div",1)),2&O&&(o.Q6J("ngIf",I.loading),o.xp6(1),o.Q6J("ngIf",!I.loading))},directives:[b.O5,s.$g,t.L],styles:[""]}),a})()},20057:(z,J,i)=>{i.d(J,{O:()=>d});var C=i(36908),m=i(5e3),o=i(69815);let d=(()=>{class b{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 b.\u0275fac=function(t){return new(t||b)(m.Y36(C.x4),m.Y36(C.fb))},b.\u0275cmp=m.Xpm({type:b,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&m._UZ(0,"app-managers-page",0),2&t&&m.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},directives:[o.s],styles:[""]}),b})()},16500:(z,J,i)=>{i.d(J,{h:()=>N});var C=i(32105),m=i(36908),o=i(5e3),d=i(11735),b=i(69808),s=i(20773),t=i(71135);function e(a,P){1&a&&o._UZ(0,"mat-spinner",2)}function G(a,P){if(1&a&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&a){const O=o.oxw();o.xp6(1),o.Q6J("items",O.items)("size","small")}}let N=(()=>{class a{constructor(O,I,V,U,y){this.route=O,this.resourceManager=I,this.authResolver=V,this.entityStorageService=U,this.routePolicyService=y,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(O){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${O?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return a.\u0275fac=function(O){return new(O||a)(o.Y36(d.gz),o.Y36(C.xk),o.Y36(m.x4),o.Y36(m.fb),o.Y36(m.Ip))},a.\u0275cmp=o.Xpm({type:a,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(O,I){2&O&&o.ekj("router-component",I.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(O,I){1&O&&(o.YNc(0,e,1,0,"mat-spinner",0),o.YNc(1,G,2,2,"div",1)),2&O&&(o.Q6J("ngIf",I.loading),o.xp6(1),o.Q6J("ngIf",!I.loading))},directives:[b.O5,s.$g,t.L],styles:[""]}),a})()},60113:(z,J,i)=>{i.d(J,{t:()=>d});var C=i(36769),m=i(5e3),o=i(61283);let d=(()=>{class b{}return b.\u0275fac=function(t){return new(t||b)},b.\u0275cmp=m.Xpm({type:b,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&m.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&m._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[C.Ji]}}),b})()},20872:(z,J,i)=>{i.d(J,{v:()=>se});var C=i(32105),m=i(20449),o=i(10036),d=i(9244),b=i(36908),s=i(16074),t=i(48966),e=i(5e3),G=i(69808),N=i(20773),a=i(17672),P=i(47423),O=i(51062);function I(M,j){1&M&&e._UZ(0,"mat-spinner",8)}function V(M,j){if(1&M&&e._UZ(0,"app-resources-tags-list",9),2&M){const h=e.oxw();e.Q6J("selection",h.selection)("displayedColumns",h.displayedColumns)("entity","resource")("filterValue",h.filterValue)("resourceTags",h.resourceTags)("tableId",h.tableId)}}let U=(()=>{class M{constructor(h,T,F){this.dialogRef=h,this.data=T,this.resourcesManager=F,this.tableId=o.g,this.selection=new m.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(h=>{this.resourceTags=h.filter(T=>!this.assignedTags.map(F=>F.id).includes(T.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(h){if(0===h.length)return this.dialogRef.close(!0);const T=h.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:T}).subscribe(()=>{this.onSubmit(h)})}applyFilter(h){this.filterValue=h}}return M.\u0275fac=function(h){return new(h||M)(e.Y36(t.so),e.Y36(t.WI),e.Y36(C.xk))},M.\u0275cmp=e.Xpm({type:M,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(h,T){1&h&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.YNc(6,I,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,V,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5),e.TgZ(9,"button",6),e.NdJ("click",function(){return T.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return T.onSubmit(T.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.qZA(),e.qZA()),2&h&&(e.Tol(T.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",T.loading||0===T.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[t.uh,t.xY,G.O5,N.$g,a.o,t.H8,P.lW],pipes:[O.X$],styles:[""]}),M})();var y=i(17584),f=i(96214),L=i(7434);function Y(M,j){if(1&M){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(h),e.oxw().create()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&M&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function B(M,j){if(1&M){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(h),e.oxw().addTag()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&M&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function W(M,j){if(1&M){const h=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){return e.CHM(h),e.oxw().removeTags()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&M){const h=e.oxw();e.Q6J("disabled",0===h.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function X(M,j){1&M&&e._UZ(0,"mat-spinner",9)}function te(M,j){if(1&M&&e._UZ(0,"app-resources-tags-list",10),2&M){const h=e.oxw();e.Q6J("displayedColumns",h.displayedColumns)("entity","resource")("resourceTags",h.resourceTags)("filterValue",h.filterValue)("selection",h.selection)("tableId",h.tableId)}}let se=(()=>{class M{constructor(h,T,F,$,oe,ie){this.authResolver=h,this.resourcesManager=T,this.dialog=F,this.notificator=$,this.translate=oe,this.entityStorageService=ie,this.loading=!1,this.resourceTags=[],this.selection=new m.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const h=(0,d.kZ)();h.width="450px",h.data={items:this.selection.selected.map(F=>F.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,h).afterClosed().subscribe(F=>{F&&this.removeTag(this.selection.selected)})}removeTag(h){if(0===h.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const T=h.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:T}).subscribe(()=>{this.removeTag(h)})}addTag(){const h=(0,d.kZ)();h.width="600px",h.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(U,h).afterClosed().subscribe(F=>{F&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const h=(0,d.kZ)();h.width="450px",h.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(y.p,h).afterClosed().subscribe(F=>{F&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe($=>{this.notificator.showSuccess($)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(h=>{this.resourceTags=h,this.selection.clear(),this.loading=!1})}setAuthRights(){const h={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[h]),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(h){this.filterValue=h}}return M.\u0275fac=function(h){return new(h||M)(e.Y36(b.x4),e.Y36(C.xk),e.Y36(t.uw),e.Y36(b.V6),e.Y36(O.sK),e.Y36(b.fb))},M.\u0275cmp=e.Xpm({type:M,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(h,T){1&h&&(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 T.updateData()}),e.qZA(),e.YNc(4,Y,3,3,"button",2),e.YNc(5,B,3,3,"button",2),e.YNc(6,W,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function($){return T.applyFilter($)}),e.qZA(),e.YNc(8,X,1,0,"mat-spinner",5),e.YNc(9,te,1,6,"app-resources-tags-list",6)),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",T.createAuth),e.xp6(1),e.Q6J("ngIf",T.addAuth),e.xp6(1),e.Q6J("ngIf",T.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading))},directives:[f.t,G.O5,P.lW,L.L,N.$g,a.o],pipes:[O.X$],styles:[""]}),M})()},17584:(z,J,i)=>{i.d(J,{p:()=>O});var C=i(48966),m=i(32105),o=i(5e3),d=i(69808),b=i(20773),s=i(67322),t=i(98833),e=i(93075),G=i(47423),N=i(51062);function a(I,V){1&I&&o._UZ(0,"mat-spinner",6)}function P(I,V){if(1&I){const U=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(f){return o.CHM(U),o.oxw().name=f}),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-error"),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA(),o.qZA()}if(2&I){const U=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),o.Q6J("ngModel",U.name),o.xp6(3),o.Oqu(o.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let O=(()=>{class I{constructor(U,y,f){this.dialogRef=U,this.data=y,this.resourceManager=f,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 I.\u0275fac=function(U){return new(U||I)(o.Y36(C.so),o.Y36(C.WI),o.Y36(m.xk))},I.\u0275cmp=o.Xpm({type:I,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(U,y){1&U&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,a,1,0,"mat-spinner",1),o.YNc(5,P,7,7,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return y.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return y.onSubmit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&U&&(o.Tol(y.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),o.xp6(2),o.Q6J("ngIf",y.loading),o.xp6(1),o.Q6J("ngIf",!y.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),o.xp6(2),o.Q6J("disabled",y.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[C.uh,d.O5,b.$g,C.xY,s.KE,t.Nt,e.Fj,e.Q7,e.JJ,e.On,s.TO,C.H8,G.lW],pipes:[N.X$],styles:[""]}),I})()},69815:(z,J,i)=>{i.d(J,{s:()=>Ne});var C=i(20449),m=i(48966),o=i(36908),d=i(32105),b=i(10036),s=i(64080),t=i(93075),e=i(5e3),G=i(51062),N=i(11735),a=i(67322),P=i(74107),O=i(69808),I=i(90508),V=i(98833),U=i(50301),y=i(47423),f=i(20773),L=i(98380),Y=i(64877);let B=(()=>{class r{constructor(n){this.translate=n,this.prefix="ROLES."}transform(n){const p=this.prefix.concat(n);return this.translate.instant(p)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(G.sK,16))},r.\u0275pipe=e.Yjl({name:"displayedRole",type:r,pure:!0}),r})();function W(r,v){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function X(r,v){1&r&&e._UZ(0,"mat-spinner",16)}function te(r,v){1&r&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const se=function(){return["select","id","name","email","logins","organization"]};function M(r,v){if(1&r&&e._UZ(0,"app-users-list",21),2&r){const n=e.oxw(2);e.Q6J("disableRouting",!0)("selection",n.selection)("displayedColumns",e.DdM(5,se))("tableId",n.tableId)("users",n.users)}}function j(r,v){if(1&r&&(e.TgZ(0,"div",17),e.YNc(1,te,3,3,"perun-web-apps-alert",18),e.YNc(2,M,1,6,"app-users-list",19),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",0===n.users.length&&n.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==n.users.length)}}let h=(()=>{class r{constructor(n,p,D,H,ne,le,ue,he,fe){this.dialogRef=n,this.data=p,this.authzService=D,this.usersService=H,this.translate=ne,this.notificator=le,this.storeService=ue,this.route=he,this.router=fe,this.selection=new C.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=b.H2,ne.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),ne.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.NI("",[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(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let n=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];n=n.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,n).subscribe(p=>{this.users=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(d.Ct),e.Y36(d.Fv),e.Y36(G.sK),e.Y36(o.V6),e.Y36(o.d6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,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(n,p){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(H){return p.selectedRole=H}),e.YNc(11,W,3,4,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(13,"input",7),e.NdJ("keyup.enter",function(){return p.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"button",8),e.NdJ("click",function(){return p.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,X,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,j,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12),e.TgZ(25,"button",13),e.NdJ("click",function(){return p.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return p.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Tol(p.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",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",p.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.users&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||void 0===p.selectedRole||p.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[m.uh,m.xY,a.KE,a.hX,P.gD,O.sg,I.ey,V.Nt,t.Fj,U.hT,t.JJ,t.oH,a.TO,y.lW,O.O5,f.$g,L.w,Y.C,m.H8],pipes:[G.X$,B],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),r})();var T=i(32075);function F(r,v){1&r&&e._UZ(0,"th",15)}function $(r,v){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const n=v.$implicit;e.xp6(1),e.AsE("",n.firstName," ",n.lastName,"")}}function oe(r,v){1&r&&e._UZ(0,"tr",17)}function ie(r,v){1&r&&e._UZ(0,"tr",18)}const re=function(r){return{role:r}};function ae(r,v){if(1&r&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"displayedRole"),e.qZA()),2&r){const n=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,re,e.lcZ(3,4,n.data.role)))," ")}}function E(r,v){if(1&r&&(e.TgZ(0,"div",6),e.TgZ(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,F,1,0,"th",10),e.YNc(10,$,2,2,"td",11),e.BQk(),e.YNc(11,oe,1,0,"tr",12),e.YNc(12,ie,1,0,"tr",13),e.qZA(),e.YNc(13,ae,4,8,"perun-web-apps-alert",14),e.qZA()),2&r){const n=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",n.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",n.removeSelf)}}function S(r,v){1&r&&e._UZ(0,"mat-spinner",20)}let l=(()=>{class r{constructor(n,p,D,H,ne,le,ue){this.dialogRef=n,this.data=p,this.notificator=D,this.translate=H,this.authzService=ne,this.store=le,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(n=>n.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(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(n=>{this.notificator.showSuccess(n),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(o.V6),e.Y36(G.sK),e.Y36(d.Ct),e.Y36(o.d6),e.Y36(o.x4))},r.\u0275cmp=e.Xpm({type:r,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(n,p){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,E,14,10,"div",1),e.YNc(5,S,1,0,"mat-spinner",2),e.TgZ(6,"div",3),e.TgZ(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!p.loading),e.xp6(1),e.Q6J("ngIf",p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[m.uh,O.O5,m.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,L.w,f.$g,m.H8,y.lW],pipes:[G.X$,B],styles:[""]}),r})();function _(r,v){1&r&&e._UZ(0,"mat-spinner",6)}function c(r,v){1&r&&e._UZ(0,"th",15)}function g(r,v){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const n=v.$implicit;e.xp6(1),e.Oqu(n.name)}}function x(r,v){1&r&&e._UZ(0,"tr",17)}function K(r,v){1&r&&e._UZ(0,"tr",18)}function q(r,v){if(1&r&&(e.TgZ(0,"div",7),e.TgZ(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,c,1,0,"th",11),e.YNc(10,g,2,1,"td",12),e.BQk(),e.YNc(11,x,1,0,"tr",13),e.YNc(12,K,1,0,"tr",14),e.qZA(),e.qZA()),2&r){const n=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",n.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns)}}let ce=(()=>{class r{constructor(n,p,D,H,ne){this.dialogRef=n,this.data=p,this.notificator=D,this.translate=H,this.authzService=ne,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.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(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(n=>{this.notificator.showSuccess(n),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(o.V6),e.Y36(G.sK),e.Y36(d.Ct))},r.\u0275cmp=e.Xpm({type:r,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(n,p){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,_,1,0,"mat-spinner",1),e.YNc(5,q,13,9,"div",2),e.TgZ(6,"div",3),e.TgZ(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",!p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[m.uh,O.O5,f.$g,m.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,m.H8,y.lW],pipes:[G.X$],styles:[""]}),r})();var A=i(1059),w=i(24850),u=i(91079),R=i(64901),Z=i(24179);function k(r,v){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function Q(r,v){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.hij(" ",n.name," ")}}function ee(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(D){return e.CHM(n),e.oxw().applyFilter(D)}),e.ALo(1,"translate"),e.qZA()}2&r&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(r,v){1&r&&e._UZ(0,"mat-spinner",19)}const me=function(){return["select","id","name","description"]};function Ae(r,v){if(1&r&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,me))("selection",n.selection)("filter",n.filterValue)("groups",n.groups)("tableId",n.tableId)}}let Re=(()=>{class r{constructor(n,p,D,H,ne,le,ue,he,fe){this.dialogRef=n,this.data=p,this.authzService=D,this.voService=H,this.groupService=ne,this.translate=le,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new C.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.NI,this.firstSearchDone=!1,this.tableId=b.kZ,le.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(n){return n?n.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>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(n=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,A.O)(""),(0,w.U)(p=>this._filter(p))),this.vos=n,this.loading=!1},()=>this.loading=!1)}showVoGroups(n){this.loading=!0,this.groupService.getAllGroups(n.option.value.id).subscribe(p=>{this.groups=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(n){this.filterValue=n}_filter(n){const p="string"==typeof n?n.toLowerCase():n.name.toLowerCase();return this.vos.filter(D=>D.name.toLowerCase().includes(p))}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(d.Ct),e.Y36(d.YF),e.Y36(d.ff),e.Y36(G.sK),e.Y36(o.V6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,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","filter","groups","tableId"]],template:function(n,p){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(H){return p.selectedRole=H}),e.YNc(11,k,3,4,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(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(H){return p.showVoGroups(H)}),e.YNc(20,Q,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA(),e.qZA(),e.qZA(),e.YNc(22,ee,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),e.TgZ(27,"button",15),e.NdJ("click",function(){return p.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return p.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n){const D=e.MAs(19);e.Tol(p.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",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.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",p.myControl)("matAutocomplete",D),e.xp6(2),e.Q6J("displayWith",p.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,p.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==p.groups&&p.groups.length>0&&!p.loading),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.groups&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||p.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[m.uh,m.xY,a.KE,a.hX,P.gD,O.sg,I.ey,V.Nt,t.Fj,u.ZL,t.JJ,t.oH,u.XC,O.O5,R.P,f.$g,Z.W,m.H8,y.lW],pipes:[G.X$,B,O.Ov],styles:[""]}),r})();var de=i(9244),Te=i(15003),ge=i(53251),Ee=i(96214);function ve(r,v){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function Ce(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).addManager()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Se(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).removeManager()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const n=e.oxw(2);e.Q6J("disabled",0===n.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function be(r,v){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function Oe(r,v){1&r&&e._UZ(0,"mat-spinner",16)}function Ie(r,v){if(1&r&&e._UZ(0,"app-users-list",17),2&r){const n=e.oxw(2);e.Q6J("disableSelf",n.disableSelf)("tableId",n.tableId)("disableRouting",!n.routeAuth||n.disableRouting)("displayedColumns",n.displayedUserColumns)("selection",n.selectionUsers)("users",n.managers)}}function De(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){return e.CHM(n),e.oxw().refreshUsers()}),e.qZA(),e.YNc(1,Ce,3,3,"button",6),e.YNc(2,Se,3,4,"button",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){return e.CHM(n),e.oxw().refreshUsers()})("valueChange",function(D){return e.CHM(n),e.oxw().selectedRole=D}),e.YNc(8,be,3,4,"mat-option",10),e.qZA(),e.qZA(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",n.selectedRole),e.xp6(1),e.Q6J("ngForOf",n.availableRoles),e.xp6(1),e.Q6J("ngIf",n.loading),e.xp6(1),e.Q6J("ngIf",!n.loading&&n.managers)}}function Ze(r,v){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Me(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).addGroup()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function xe(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).removeGroup()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const n=e.oxw(2);e.Q6J("disabled",0===n.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ue(r,v){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function ye(r,v){1&r&&e._UZ(0,"mat-spinner",16)}function Le(r,v){if(1&r&&e._UZ(0,"perun-web-apps-groups-list",23),2&r){const n=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",n.disableRouting)("displayedColumns",n.displayedGroupColumns)("groups",n.groups)("selection",n.selectionGroups)("tableId",n.tableId)}}function Ge(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){return e.CHM(n),e.oxw().refreshGroups()}),e.qZA(),e.YNc(1,Me,3,3,"button",18),e.YNc(2,xe,3,4,"button",19),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){return e.CHM(n),e.oxw().refreshGroups()})("valueChange",function(D){return e.CHM(n),e.oxw().selectedRole=D}),e.YNc(8,Ue,3,4,"mat-option",10),e.qZA(),e.qZA(),e.YNc(9,ye,1,0,"mat-spinner",11),e.YNc(10,Le,1,6,"perun-web-apps-groups-list",20)}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",n.selectedRole),e.xp6(1),e.Q6J("ngForOf",n.availableRoles),e.xp6(1),e.Q6J("ngIf",n.loading),e.xp6(1),e.Q6J("ngIf",!n.loading&&n.groups)}}function Pe(r,v){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Ne=(()=>{class r{constructor(n,p,D,H,ne,le,ue){this.dialog=n,this.authzService=p,this.storeService=D,this.guiAuthResolver=H,this.router=ne,this.reloadEntityDetail=le,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 C.Ov(!0,[]),this.selectionGroups=new C.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=b.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(n=>this.availableRolesPrivileges.get(n).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(p=>this.availableRolesPrivileges.get(p).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(p=>"select"!==p),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(p=>"select"!==p),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let n=!1;for(const p of this.roleModes)if(this.selectedMode===p.toLowerCase()){n=!0;break}n||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(n){this.loading=!0,0===n.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let n=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];n=n.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,n,!1,!0).subscribe(p=>{this.managers=p,this.selectionUsers.clear(),this.loading=!1},()=>{this.loading=!1})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(n=>{this.groups=n,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const n=(0,de.kZ)();n.width="1000px",n.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(h,n).afterClosed().subscribe(D=>{D&&this.refreshUsers()})}removeManager(){const n=(0,de.kZ)();n.width="450px",n.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(l,n).afterClosed().subscribe(D=>{D&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const n=(0,de.kZ)();n.width="450px",n.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(ce,n).afterClosed().subscribe(D=>{D&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshGroups()):this.redirectToAuthRoute())})}addGroup(){const n=(0,de.kZ)();n.width="1000px",n.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,n).afterClosed().subscribe(D=>{D&&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 r.\u0275fac=function(n){return new(n||r)(e.Y36(m.uw),e.Y36(d.Ct),e.Y36(o.d6),e.Y36(o.x4),e.Y36(N.F0),e.Y36(Te.G),e.Y36(N.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(n,p){2&n&&e.ekj("router-component",p.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"],[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"],[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(n,p){1&n&&(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(H){return p.tabChanged(H)}),e.TgZ(4,"mat-tab"),e.YNc(5,ve,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Ze,2,3,"ng-template",2),e.YNc(9,Ge,11,9,"ng-template",3),e.qZA(),e.qZA(),e.YNc(10,Pe,3,3,"perun-web-apps-alert",4)),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),e.xp6(9),e.Q6J("ngIf",0===p.availableRoles.length))},directives:[ge.SP,ge.uX,ge.uD,ge.Vc,Ee.t,O.O5,y.lW,a.KE,a.hX,P.gD,O.sg,I.ey,f.$g,Y.C,Z.W,L.w],pipes:[G.X$,B],styles:[""]}),r})()},17672:(z,J,i)=>{i.d(J,{o:()=>ae});var C=i(84847),m=i(32075),o=i(20449),d=i(36908),b=i(32105),s=i(9244),t=i(5e3),e=i(51062),G=i(18750),N=i(77446),a=i(69808),P=i(67322),O=i(98833),I=i(93075),V=i(47423),U=i(29772),y=i(25245),f=i(98380);function L(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(c){t.CHM(l);const g=t.oxw();return c?g.masterToggle():null}),t.qZA(),t.qZA()}if(2&E){const l=t.oxw();t.xp6(1),t.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function Y(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(c){const x=t.CHM(l).$implicit,K=t.oxw();return c?K.selection.toggle(x):null})("click",function(c){return c.stopPropagation()}),t.qZA(),t.qZA()}if(2&E){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("aria-label",_.checkboxLabel(l))("checked",_.selection.isSelected(l))}}function B(E,S){1&E&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function W(E,S){if(1&E&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&E){const l=S.$implicit;t.xp6(1),t.Oqu(l.id)}}function X(E,S){1&E&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function te(E,S){if(1&E&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&E){const l=t.oxw().$implicit;t.xp6(1),t.hij(" ",l.tagName," ")}}function se(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"mat-form-field"),t.TgZ(2,"input",25),t.NdJ("ngModelChange",function(c){return t.CHM(l),t.oxw().$implicit.tagName=c}),t.qZA(),t.qZA(),t.qZA()}if(2&E){const l=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",l.tagName)}}function M(E,S){if(1&E&&(t.TgZ(0,"td",23),t.YNc(1,te,2,1,"div",24),t.YNc(2,se,3,1,"div",24),t.qZA()),2&E){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function j(E,S){1&E&&t._UZ(0,"th",22)}function h(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit;return t.oxw().edit(c)}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA(),t.qZA()}2&E&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function T(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit;return t.oxw().save(c)}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA(),t.qZA()}2&E&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function F(E,S){if(1&E&&(t.TgZ(0,"td",23),t.TgZ(1,"div",26),t.YNc(2,h,4,3,"button",27),t.YNc(3,T,4,3,"button",27),t.qZA(),t.qZA()),2&E){const l=S.$implicit,_=t.oxw();t.xp6(2),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function $(E,S){1&E&&t._UZ(0,"tr",29)}function oe(E,S){1&E&&t._UZ(0,"tr",30)}function ie(E,S){if(1&E&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&E){const l=t.oxw();t.xp6(1),t.hij(" ","vo"===l.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function re(E,S){1&E&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ae=(()=>{class E{constructor(l,_,c,g,x){this.resourceManager=l,this.notificator=_,this.translator=c,this.authResolver=g,this.tableCheckbox=x,this.resourceTags=[],this.selection=new o.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new o.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(l){this.sort=l,this.setDataSource()}static getDataForColumn(l,_){switch(_){case"id":return l.id.toString();case"name":return l.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.dataSource=new m.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(l){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,E.getDataForColumn),l)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(l,_)=>(0,s.Sd)(l,_,this.displayedColumns,E.getDataForColumn),this.dataSource.sortData=(l,_)=>(0,s.pR)(l,_,E.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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(l){this.resourceManager.updateResourceTag({resourceTag:l}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.isChanging.deselect(l)})}edit(l){this.isChanging.select(l)}}return E.\u0275fac=function(l){return new(l||E)(t.Y36(b.xk),t.Y36(d.V6),t.Y36(e.sK),t.Y36(d.x4),t.Y36(d.UA))},E.\u0275cmp=t.Xpm({type:E,selectors:[["app-resources-tags-list"]],viewQuery:function(l,_){if(1&l&&(t.Gf(s.l9,7),t.Gf(C.YE,7)),2&l){let c;t.iGM(c=t.CRH())&&(_.child=c.first),t.iGM(c=t.CRH())&&(_.matSort=c.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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-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"],["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(l,_){1&l&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(g){return _.exportData(g)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,L,2,3,"th",4),t.YNc(5,Y,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,B,3,3,"th",7),t.YNc(8,W,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,X,3,3,"th",10),t.YNc(11,M,3,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,j,1,0,"th",10),t.YNc(14,F,4,2,"td",11),t.BQk(),t.YNc(15,$,1,0,"tr",13),t.YNc(16,oe,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,ie,4,5,"perun-web-apps-alert",15),t.YNc(18,re,3,3,"perun-web-apps-alert",15)),2&l&&(t.Q6J("hidden",0===_.resourceTags.length||0===_.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),t.xp6(1),t.Q6J("dataSource",_.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",_.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",_.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===_.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.resourceTags.length))},directives:[G.l,m.BZ,C.YE,m.w1,m.fO,m.ge,N.oG,m.Dz,m.ev,C.nU,a.O5,P.KE,O.Nt,I.Fj,I.JJ,I.On,V.lW,U.gM,y.Hw,m.as,m.XQ,m.nj,m.Gk,f.w],pipes:[e.X$],styles:[""]}),E})()},22158:(z,J,i)=>{i.d(J,{T:()=>m});var C=i(8929);const m=(o=class{})=>class extends o{constructor(){super(...arguments),this.destroyed$=new C.xQ}ngOnDestroy(){this.destroyed$.next()}}},90439:(z,J,i)=>{i.d(J,{F:()=>d});var C=i(5e3),m=i(42377),o=i(51062);let d=(()=>{class b{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new C.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return b.\u0275fac=function(t){return new(t||b)},b.\u0275cmp=C.Xpm({type:b,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&&(C.TgZ(0,"perun-web-apps-entity-search-select",0),C.NdJ("entitySelected",function(N){return e.packageSelected.emit(N)}),C.ALo(1,"translate"),C.ALo(2,"translate"),C.ALo(3,"translate"),C.qZA()),2&t&&C.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",C.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",C.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",C.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},directives:[m.i],pipes:[o.X$],styles:[""]}),b})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/417.897012db208fbc0e.js b/dist/apps/admin-gui/417.897012db208fbc0e.js deleted file mode 100644 index 3f9750fff..000000000 --- a/dist/apps/admin-gui/417.897012db208fbc0e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[417],{89397:function(w,I){!function(o){"use strict";function c(H,K){return K.forEach(function(lt){lt&&"string"!=typeof lt&&!Array.isArray(lt)&&Object.keys(lt).forEach(function(it){if("default"!==it&&!(it in H)){var z=Object.getOwnPropertyDescriptor(lt,it);Object.defineProperty(H,it,z.get?z:{enumerable:!0,get:function(){return lt[it]}})}})}),Object.freeze(H)}var it,lt,x={exports:{}};it="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,lt=function(z){var Ct,It,E=void 0!==(z=z||{})?z:{};E.ready=new Promise(function(b,M){Ct=b,It=M});var Ht,Rt={};for(Ht in E)E.hasOwnProperty(Ht)&&(Rt[Ht]=E[Ht]);var Nt,Qt,ne="./this.program",vt="";"undefined"!=typeof document&&document.currentScript&&(vt=document.currentScript.src),it&&(vt=it),vt=0!==vt.indexOf("blob:")?vt.substr(0,vt.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Nt=function(b){var M=new XMLHttpRequest;return M.open("GET",b,!1),M.send(null),M.responseText},Qt=function(b,M,B){var j=new XMLHttpRequest;j.open("GET",b,!0),j.responseType="arraybuffer",j.onload=function(){200==j.status||0==j.status&&j.response?M(j.response):B()},j.onerror=B,j.send(null)};var Be,ge=E.print||console.log.bind(console),ye=E.printErr||console.warn.bind(console);for(Ht in Rt)Rt.hasOwnProperty(Ht)&&(E[Ht]=Rt[Ht]);Rt=null,E.thisProgram&&(ne=E.thisProgram),E.wasmBinary&&(Be=E.wasmBinary),"object"!=typeof WebAssembly&&Ln("no native wasm support detected");var vn,Re=!1;function mn(b,M){b||Ln("Assertion failed: "+M)}var je,wn,In,ze,ci,Ve="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function Ce(b,M,B){for(var j=M+B,ct=M;b[ct]&&!(ct>=j);)++ct;if(ct-M>16&&b.subarray&&Ve)return Ve.decode(b.subarray(M,ct));for(var xt="";M>10,56320|1023&De)}}else xt+=String.fromCharCode((31&kt)<<6|Pt)}else xt+=String.fromCharCode(kt)}return xt}function Ae(b,M){return b?Ce(In,b,M):""}function Yn(b,M,B,j){if(!(j>0))return 0;for(var ct=B,xt=B+j-1,kt=0;kt=55296&&Pt<=57343&&(Pt=65536+((1023&Pt)<<10)|1023&b.charCodeAt(++kt)),Pt<=127){if(B>=xt)break;M[B++]=Pt}else if(Pt<=2047){if(B+1>=xt)break;M[B++]=192|Pt>>6,M[B++]=128|63&Pt}else if(Pt<=65535){if(B+2>=xt)break;M[B++]=224|Pt>>12,M[B++]=128|Pt>>6&63,M[B++]=128|63&Pt}else{if(B+3>=xt)break;M[B++]=240|Pt>>18,M[B++]=128|Pt>>12&63,M[B++]=128|Pt>>6&63,M[B++]=128|63&Pt}}return M[B]=0,B-ct}function ni(b){for(var M=0,B=0;B=55296&&j<=57343&&(j=65536+((1023&j)<<10)|1023&b.charCodeAt(++B)),j<=127?++M:M+=j<=2047?2:j<=65535?3:4}return M}function sn(b,M){return b%M>0&&(b+=M-b%M),b}function Mn(b){je=b,E.HEAP8=wn=new Int8Array(b),E.HEAP16=new Int16Array(b),E.HEAP32=ze=new Int32Array(b),E.HEAPU8=In=new Uint8Array(b),E.HEAPU16=new Uint16Array(b),E.HEAPU32=new Uint32Array(b),E.HEAPF32=new Float32Array(b),E.HEAPF64=ci=new Float64Array(b)}var Tn,Hn=[],Kn=[],Ne=[];var _e=0,Ue=null;function nn(b){_e++,E.monitorRunDependencies&&E.monitorRunDependencies(_e)}function Zn(b){if(_e--,E.monitorRunDependencies&&E.monitorRunDependencies(_e),0==_e&&Ue){var M=Ue;Ue=null,M()}}function Ln(b){E.onAbort&&E.onAbort(b),ye(b="Aborted("+b+")"),Re=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var M=new WebAssembly.RuntimeError(b);throw It(M),M}E.preloadedImages={},E.preloadedAudios={};var gn;function Di(b){return b.startsWith("data:application/octet-stream;base64,")}function ti(b){try{if(b==gn&&Be)return new Uint8Array(Be);throw"both async and sync fetching of the wasm failed"}catch(M){Ln(M)}}Di(gn="expatlib.wasm")||(gn=function ft(b){return E.locateFile?E.locateFile(b,vt):vt+b}(gn));var un,yn,ei={11694:function(b){var M=E.getCache(E.CExpatJS)[b];if(!M.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";M.startElement()},11912:function(b){var M=E.getCache(E.CExpatJS)[b];if(!M.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";M.endElement()},12124:function(b){var M=E.getCache(E.CExpatJS)[b];if(!M.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";M.characterData()}};function ui(b){for(;b.length>0;){var M=b.shift();if("function"!=typeof M){var B=M.func;"number"==typeof B?void 0===M.arg?Nn(B)():Nn(B)(M.arg):B(void 0===M.arg?null:M.arg)}else M(E)}}function Nn(b){return Tn.get(b)}var Le={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,M){for(var B=0,j=b.length-1;j>=0;j--){var ct=b[j];"."===ct?b.splice(j,1):".."===ct?(b.splice(j,1),B++):B&&(b.splice(j,1),B--)}if(M)for(;B;B--)b.unshift("..");return b},normalize:function(b){var M="/"===b.charAt(0),B="/"===b.substr(-1);return!(b=Le.normalizeArray(b.split("/").filter(function(j){return!!j}),!M).join("/"))&&!M&&(b="."),b&&B&&(b+="/"),(M?"/":"")+b},dirname:function(b){var M=Le.splitPath(b),B=M[0],j=M[1];return B||j?(j&&(j=j.substr(0,j.length-1)),B+j):"."},basename:function(b){if("/"===b)return"/";var M=(b=(b=Le.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===M?b:b.substr(M+1)},extname:function(b){return Le.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return Le.normalize(b.join("/"))},join2:function(b,M){return Le.normalize(b+"/"+M)}};var Bn={resolve:function(){for(var b="",M=!1,B=arguments.length-1;B>=-1&&!M;B--){var j=B>=0?arguments[B]:D.cwd();if("string"!=typeof j)throw new TypeError("Arguments to path.resolve must be strings");if(!j)return"";b=j+"/"+b,M="/"===j.charAt(0)}return(M?"/":"")+(b=Le.normalizeArray(b.split("/").filter(function(ct){return!!ct}),!M).join("/"))||"."},relative:function(b,M){function B(De){for(var Ge=0;Ge=0&&""===De[Ke];Ke--);return Ge>Ke?[]:De.slice(Ge,Ke-Ge+1)}b=Bn.resolve(b).substr(1),M=Bn.resolve(M).substr(1);for(var j=B(b.split("/")),ct=B(M.split("/")),xt=Math.min(j.length,ct.length),kt=xt,Pt=0;Pt0&&(ge(Ce(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,M){null===M||10===M?(ye(Ce(b.output,0)),b.output=[]):0!=M&&b.output.push(M)},flush:function(b){b.output&&b.output.length>0&&(ye(Ce(b.output,0)),b.output=[])}}};var X={ops_table:null,mount:function(b){return X.createNode(null,"/",16895,0)},createNode:function(b,M,B,j){if(D.isBlkdev(B)||D.isFIFO(B))throw new D.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:D.chrdev_stream_ops}});var ct=D.createNode(b,M,B,j);return D.isDir(ct.mode)?(ct.node_ops=X.ops_table.dir.node,ct.stream_ops=X.ops_table.dir.stream,ct.contents={}):D.isFile(ct.mode)?(ct.node_ops=X.ops_table.file.node,ct.stream_ops=X.ops_table.file.stream,ct.usedBytes=0,ct.contents=null):D.isLink(ct.mode)?(ct.node_ops=X.ops_table.link.node,ct.stream_ops=X.ops_table.link.stream):D.isChrdev(ct.mode)&&(ct.node_ops=X.ops_table.chrdev.node,ct.stream_ops=X.ops_table.chrdev.stream),ct.timestamp=Date.now(),b&&(b.contents[M]=ct,b.timestamp=ct.timestamp),ct},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,M){var B=b.contents?b.contents.length:0;if(!(B>=M)){M=Math.max(M,B*(B<1048576?2:1.125)>>>0),0!=B&&(M=Math.max(M,256));var ct=b.contents;b.contents=new Uint8Array(M),b.usedBytes>0&&b.contents.set(ct.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,M){if(b.usedBytes!=M)if(0==M)b.contents=null,b.usedBytes=0;else{var B=b.contents;b.contents=new Uint8Array(M),B&&b.contents.set(B.subarray(0,Math.min(M,b.usedBytes))),b.usedBytes=M}},node_ops:{getattr:function(b){var M={};return M.dev=D.isChrdev(b.mode)?b.id:1,M.ino=b.id,M.mode=b.mode,M.nlink=1,M.uid=0,M.gid=0,M.rdev=b.rdev,M.size=D.isDir(b.mode)?4096:D.isFile(b.mode)?b.usedBytes:D.isLink(b.mode)?b.link.length:0,M.atime=new Date(b.timestamp),M.mtime=new Date(b.timestamp),M.ctime=new Date(b.timestamp),M.blksize=4096,M.blocks=Math.ceil(M.size/M.blksize),M},setattr:function(b,M){void 0!==M.mode&&(b.mode=M.mode),void 0!==M.timestamp&&(b.timestamp=M.timestamp),void 0!==M.size&&X.resizeFileStorage(b,M.size)},lookup:function(b,M){throw D.genericErrors[44]},mknod:function(b,M,B,j){return X.createNode(b,M,B,j)},rename:function(b,M,B){if(D.isDir(b.mode)){var j;try{j=D.lookupNode(M,B)}catch(xt){}if(j)for(var ct in j.contents)throw new D.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=B,M.contents[B]=b,M.timestamp=b.parent.timestamp,b.parent=M},unlink:function(b,M){delete b.contents[M],b.timestamp=Date.now()},rmdir:function(b,M){var B=D.lookupNode(b,M);for(var j in B.contents)throw new D.ErrnoError(55);delete b.contents[M],b.timestamp=Date.now()},readdir:function(b){var M=[".",".."];for(var B in b.contents)!b.contents.hasOwnProperty(B)||M.push(B);return M},symlink:function(b,M,B){var j=X.createNode(b,M,41471,0);return j.link=B,j},readlink:function(b){if(!D.isLink(b.mode))throw new D.ErrnoError(28);return b.link}},stream_ops:{read:function(b,M,B,j,ct){var xt=b.node.contents;if(ct>=b.node.usedBytes)return 0;var kt=Math.min(b.node.usedBytes-ct,j);if(kt>8&&xt.subarray)M.set(xt.subarray(ct,ct+kt),B);else for(var Pt=0;Pt0||j+B8)throw new D.ErrnoError(32);for(var ct=Le.normalizeArray(b.split("/").filter(function(Ze){return!!Ze}),!1),xt=D.root,kt="/",Pt=0;Pt40)throw new D.ErrnoError(32)}}return{path:kt,node:xt}},getPath:function(b){for(var M;;){if(D.isRoot(b)){var B=b.mount.mountpoint;return M?"/"!==B[B.length-1]?B+"/"+M:B+M:B}M=M?b.name+"/"+M:b.name,b=b.parent}},hashName:function(b,M){for(var B=0,j=0;j>>0)%D.nameTable.length},hashAddNode:function(b){var M=D.hashName(b.parent.id,b.name);b.name_next=D.nameTable[M],D.nameTable[M]=b},hashRemoveNode:function(b){var M=D.hashName(b.parent.id,b.name);if(D.nameTable[M]===b)D.nameTable[M]=b.name_next;else for(var B=D.nameTable[M];B;){if(B.name_next===b){B.name_next=b.name_next;break}B=B.name_next}},lookupNode:function(b,M){var B=D.mayLookup(b);if(B)throw new D.ErrnoError(B,b);for(var j=D.hashName(b.id,M),ct=D.nameTable[j];ct;ct=ct.name_next)if(ct.parent.id===b.id&&ct.name===M)return ct;return D.lookup(b,M)},createNode:function(b,M,B,j){var ct=new D.FSNode(b,M,B,j);return D.hashAddNode(ct),ct},destroyNode:function(b){D.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 M=D.flagModes[b];if(void 0===M)throw new Error("Unknown file open mode: "+b);return M},flagsToPermissionString:function(b){var M=["r","w","rw"][3&b];return 512&b&&(M+="w"),M},nodePermissions:function(b,M){return D.ignorePermissions?0:M.includes("r")&&!(292&b.mode)||M.includes("w")&&!(146&b.mode)||M.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return D.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,M){try{return D.lookupNode(b,M),20}catch(j){}return D.nodePermissions(b,"wx")},mayDelete:function(b,M,B){var j;try{j=D.lookupNode(b,M)}catch(xt){return xt.errno}var ct=D.nodePermissions(b,"wx");if(ct)return ct;if(B){if(!D.isDir(j.mode))return 54;if(D.isRoot(j)||D.getPath(j)===D.cwd())return 10}else if(D.isDir(j.mode))return 31;return 0},mayOpen:function(b,M){return b?D.isLink(b.mode)?32:D.isDir(b.mode)&&("r"!==D.flagsToPermissionString(M)||512&M)?31:D.nodePermissions(b,D.flagsToPermissionString(M)):44},MAX_OPEN_FDS:4096,nextfd:function(b,M){M=M||D.MAX_OPEN_FDS;for(var B=b=b||0;B<=M;B++)if(!D.streams[B])return B;throw new D.ErrnoError(33)},getStream:function(b){return D.streams[b]},createStream:function(b,M,B){D.FSStream||(D.FSStream=function(){},D.FSStream.prototype={object:{get:function(){return this.node},set:function(kt){this.node=kt}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var j=new D.FSStream;for(var ct in b)j[ct]=b[ct];b=j;var xt=D.nextfd(M,B);return b.fd=xt,D.streams[xt]=b,b},closeStream:function(b){D.streams[b]=null},chrdev_stream_ops:{open:function(b){var M=D.getDevice(b.node.rdev);b.stream_ops=M.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new D.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,M){return b<<8|M},registerDevice:function(b,M){D.devices[b]={stream_ops:M}},getDevice:function(b){return D.devices[b]},getMounts:function(b){for(var M=[],B=[b];B.length;){var j=B.pop();M.push(j),B.push.apply(B,j.mounts)}return M},syncfs:function(b,M){"function"==typeof b&&(M=b,b=!1),D.syncFSRequests++,D.syncFSRequests>1&&ye("warning: "+D.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var B=D.getMounts(D.root.mount),j=0;function ct(kt){return D.syncFSRequests--,M(kt)}function xt(kt){if(kt)return xt.errored?void 0:(xt.errored=!0,ct(kt));++j>=B.length&&ct(null)}B.forEach(function(kt){if(!kt.type.syncfs)return xt(null);kt.type.syncfs(kt,b,xt)})},mount:function(b,M,B){var xt,j="/"===B,ct=!B;if(j&&D.root)throw new D.ErrnoError(10);if(!j&&!ct){var kt=D.lookupPath(B,{follow_mount:!1});if(B=kt.path,D.isMountpoint(xt=kt.node))throw new D.ErrnoError(10);if(!D.isDir(xt.mode))throw new D.ErrnoError(54)}var Pt={type:b,opts:M,mountpoint:B,mounts:[]},ae=b.mount(Pt);return ae.mount=Pt,Pt.root=ae,j?D.root=ae:xt&&(xt.mounted=Pt,xt.mount&&xt.mount.mounts.push(Pt)),ae},unmount:function(b){var M=D.lookupPath(b,{follow_mount:!1});if(!D.isMountpoint(M.node))throw new D.ErrnoError(28);var B=M.node,j=B.mounted,ct=D.getMounts(j);Object.keys(D.nameTable).forEach(function(kt){for(var Pt=D.nameTable[kt];Pt;){var ae=Pt.name_next;ct.includes(Pt.mount)&&D.destroyNode(Pt),Pt=ae}}),B.mounted=null;var xt=B.mount.mounts.indexOf(j);B.mount.mounts.splice(xt,1)},lookup:function(b,M){return b.node_ops.lookup(b,M)},mknod:function(b,M,B){var ct=D.lookupPath(b,{parent:!0}).node,xt=Le.basename(b);if(!xt||"."===xt||".."===xt)throw new D.ErrnoError(28);var kt=D.mayCreate(ct,xt);if(kt)throw new D.ErrnoError(kt);if(!ct.node_ops.mknod)throw new D.ErrnoError(63);return ct.node_ops.mknod(ct,xt,M,B)},create:function(b,M){return M=void 0!==M?M:438,M&=4095,D.mknod(b,M|=32768,0)},mkdir:function(b,M){return M=void 0!==M?M:511,M&=1023,D.mknod(b,M|=16384,0)},mkdirTree:function(b,M){for(var B=b.split("/"),j="",ct=0;ctthis.length-1||Ze<0)){var We=Ze%this.chunkSize;return this.getter(Ze/this.chunkSize|0)[We]}},xt.prototype.setDataGetter=function(Ze){this.getter=Ze},xt.prototype.cacheLength=function(){var Ze=new XMLHttpRequest;if(Ze.open("HEAD",B,!1),Ze.send(null),!(Ze.status>=200&&Ze.status<300||304===Ze.status))throw new Error("Couldn't load "+B+". Status: "+Ze.status);var An,We=Number(Ze.getResponseHeader("Content-length")),di=(An=Ze.getResponseHeader("Accept-Ranges"))&&"bytes"===An,rr=(An=Ze.getResponseHeader("Content-Encoding"))&&"gzip"===An,Li=1048576;di||(Li=We);var ii=this;ii.setDataGetter(function(Mi){var ar=Mi*Li,si=(Mi+1)*Li-1;if(si=Math.min(si,We-1),void 0===ii.chunks[Mi]&&(ii.chunks[Mi]=function(Mi,ar){if(Mi>ar)throw new Error("invalid range ("+Mi+", "+ar+") or no bytes requested!");if(ar>We-1)throw new Error("only "+We+" bytes available! programmer error!");var si=new XMLHttpRequest;if(si.open("GET",B,!1),We!==Li&&si.setRequestHeader("Range","bytes="+Mi+"-"+ar),"undefined"!=typeof Uint8Array&&(si.responseType="arraybuffer"),si.overrideMimeType&&si.overrideMimeType("text/plain; charset=x-user-defined"),si.send(null),!(si.status>=200&&si.status<300||304===si.status))throw new Error("Couldn't load "+B+". Status: "+si.status);return void 0!==si.response?new Uint8Array(si.response||[]):ve(si.responseText||"",!0)}(ar,si)),void 0===ii.chunks[Mi])throw new Error("doXHR failed!");return ii.chunks[Mi]}),(rr||!We)&&(Li=We=1,We=this.getter(0).length,Li=We,ge("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=We,this._chunkSize=Li,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Pt,ae=D.createFile(b,M,Pt={isDevice:!1,url:B},j,ct);Pt.contents?ae.contents=Pt.contents:Pt.url&&(ae.contents=null,ae.url=Pt.url),Object.defineProperties(ae,{usedBytes:{get:function(){return this.contents.length}}});var De={};return Object.keys(ae.stream_ops).forEach(function(Ke){var Ze=ae.stream_ops[Ke];De[Ke]=function(){return D.forceLoadFile(ae),Ze.apply(null,arguments)}}),De.read=function(Ze,We,An,di,rr){D.forceLoadFile(ae);var Li=Ze.node.contents;if(rr>=Li.length)return 0;var fi=Math.min(Li.length-rr,di);if(Li.slice)for(var ii=0;ii>2]=j.dev,ze[B+4>>2]=0,ze[B+8>>2]=j.ino,ze[B+12>>2]=j.mode,ze[B+16>>2]=j.nlink,ze[B+20>>2]=j.uid,ze[B+24>>2]=j.gid,ze[B+28>>2]=j.rdev,ze[B+32>>2]=0,yn=[j.size>>>0,(un=j.size,+Math.abs(un)>=1?un>0?(0|Math.min(+Math.floor(un/4294967296),4294967295))>>>0:~~+Math.ceil((un-+(~~un>>>0))/4294967296)>>>0:0)],ze[B+40>>2]=yn[0],ze[B+44>>2]=yn[1],ze[B+48>>2]=4096,ze[B+52>>2]=j.blocks,ze[B+56>>2]=j.atime.getTime()/1e3|0,ze[B+60>>2]=0,ze[B+64>>2]=j.mtime.getTime()/1e3|0,ze[B+68>>2]=0,ze[B+72>>2]=j.ctime.getTime()/1e3|0,ze[B+76>>2]=0,yn=[j.ino>>>0,(un=j.ino,+Math.abs(un)>=1?un>0?(0|Math.min(+Math.floor(un/4294967296),4294967295))>>>0:~~+Math.ceil((un-+(~~un>>>0))/4294967296)>>>0:0)],ze[B+80>>2]=yn[0],ze[B+84>>2]=yn[1],0},doMsync:function(b,M,B,j,ct){var xt=In.slice(b,b+B);D.msync(M,xt,ct,B,j)},doMkdir:function(b,M){return"/"===(b=Le.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),D.mkdir(b,M,0),0},doMknod:function(b,M,B){switch(61440&M){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return D.mknod(b,M,B),0},doReadlink:function(b,M,B){if(B<=0)return-28;var j=D.readlink(b),ct=Math.min(B,ni(j)),xt=wn[M+ct];return function Wn(b,M,B){return Yn(b,In,M,B)}(j,M,B+1),wn[M+ct]=xt,ct},doAccess:function(b,M){if(-8&M)return-28;var j=D.lookupPath(b,{follow:!0}).node;if(!j)return-44;var ct="";return 4&M&&(ct+="r"),2&M&&(ct+="w"),1&M&&(ct+="x"),ct&&D.nodePermissions(j,ct)?-2:0},doDup:function(b,M,B){var j=D.getStream(B);return j&&D.close(j),D.open(b,M,0,B,B).fd},doReadv:function(b,M,B,j){for(var ct=0,xt=0;xt>2],ae=D.read(b,wn,ze[M+8*xt>>2],Pt,j);if(ae<0)return-1;if(ct+=ae,ae>2],ze[M+(8*xt+4)>>2],j);if(ae<0)return-1;ct+=ae}return ct},varargs:void 0,get:function(){return At.varargs+=4,ze[At.varargs-4>>2]},getStr:function(b){return Ae(b)},getStreamFromFD:function(b){var M=D.getStream(b);if(!M)throw new D.ErrnoError(8);return M},get64:function(b,M){return b}};var Yt=[];function pt(b){try{return vn.grow(b-je.byteLength+65535>>>16),Mn(vn.buffer),1}catch(M){}}var wt={};function te(){if(!te.strings){var M={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",_:ne||"./this.program"};for(var B in wt)void 0===wt[B]?delete M[B]:M[B]=wt[B];var j=[];for(var B in M)j.push(B+"="+M[B]);te.strings=j}return te.strings}var He=function(b,M,B,j){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=D.nextInode++,this.name=M,this.mode=B,this.node_ops={},this.stream_ops={},this.rdev=j};function ve(b,M,B){var j=B>0?B:ni(b)+1,ct=new Array(j),xt=Yn(b,ct,0,ct.length);return M&&(ct.length=xt),ct}Object.defineProperties(He.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 D.isDir(this.mode)}},isDevice:{get:function(){return D.isChrdev(this.mode)}}}),D.FSNode=He,D.staticInit();var Qe={h:function Ot(b,M,B){At.varargs=B;try{var j=At.getStr(b),ct=B?At.get():0;return D.open(j,M,ct).fd}catch(kt){if(void 0===D||!(kt instanceof D.ErrnoError))throw kt;return-kt.errno}},b:function Bt(){Ln("")},a:function qt(b,M,B){var j=function re(b,M){var B;for(Yt.length=0,M>>=2;B=In[b++];){var j=B<105;j&&1&M&&M++,Yt.push(j?ci[M++>>1]:ze[M]),++M}return Yt}(M,B);return ei[b].apply(null,j)},k:function q(b,M,B){In.copyWithin(b,M,M+B)},e:function bt(b){var M=In.length,B=2147483648;if((b>>>=0)>B)return!1;for(var j=1;j<=4;j*=2){var ct=M*(1+.2/j);if(ct=Math.min(ct,b+100663296),pt(Math.min(B,sn(Math.max(b,ct),65536))))return!0}return!1},f:function Dt(b,M){var B=0;return te().forEach(function(j,ct){var xt=M+B;ze[b+4*ct>>2]=xt,function xn(b,M,B){for(var j=0;j>0]=b.charCodeAt(j);B||(wn[M>>0]=0)}(j,xt),B+=j.length+1}),0},g:function he(b,M){var B=te();ze[b>>2]=B.length;var j=0;return B.forEach(function(ct){j+=ct.length+1}),ze[M>>2]=j,0},d:function N(b){try{var M=At.getStreamFromFD(b);return D.close(M),0}catch(B){if(void 0===D||!(B instanceof D.ErrnoError))throw B;return B.errno}},i:function le(b,M,B,j){try{var ct=At.getStreamFromFD(b),xt=At.doReadv(ct,M,B);return ze[j>>2]=xt,0}catch(kt){if(void 0===D||!(kt instanceof D.ErrnoError))throw kt;return kt.errno}},j:function ke(b,M,B,j,ct){try{var xt=At.getStreamFromFD(b),Pt=4294967296*B+(M>>>0),ae=9007199254740992;return Pt<=-ae||Pt>=ae?-61:(D.llseek(xt,Pt,j),yn=[xt.position>>>0,(un=xt.position,+Math.abs(un)>=1?un>0?(0|Math.min(+Math.floor(un/4294967296),4294967295))>>>0:~~+Math.ceil((un-+(~~un>>>0))/4294967296)>>>0:0)],ze[ct>>2]=yn[0],ze[ct+4>>2]=yn[1],xt.getdents&&0===Pt&&0===j&&(xt.getdents=null),0)}catch(De){if(void 0===D||!(De instanceof D.ErrnoError))throw De;return De.errno}},c:function Oe(b,M,B,j){try{var ct=At.getStreamFromFD(b),xt=At.doWritev(ct,M,B);return ze[j>>2]=xt,0}catch(kt){if(void 0===D||!(kt instanceof D.ErrnoError))throw kt;return kt.errno}},l:function rn(b){var M=Date.now();return ze[b>>2]=M/1e3|0,ze[b+4>>2]=M%1e3*1e3|0,0}};(function On(){var b={a:Qe};function M(kt,Pt){E.asm=kt.exports,Mn((vn=E.asm.m).buffer),Tn=E.asm.G,function se(b){Kn.unshift(b)}(E.asm.n),Zn()}function B(kt){M(kt.instance)}function j(kt){return function wi(){return Be||"function"!=typeof fetch?Promise.resolve().then(function(){return ti(gn)}):fetch(gn,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+gn+"'";return b.arrayBuffer()}).catch(function(){return ti(gn)})}().then(function(Pt){return WebAssembly.instantiate(Pt,b)}).then(function(Pt){return Pt}).then(kt,function(Pt){ye("failed to asynchronously prepare wasm: "+Pt),Ln(Pt)})}if(nn(),E.instantiateWasm)try{return E.instantiateWasm(b,M)}catch(kt){return ye("Module.instantiateWasm callback failed with error: "+kt),!1}return function ct(){return Be||"function"!=typeof WebAssembly.instantiateStreaming||Di(gn)||"function"!=typeof fetch?j(B):fetch(gn,{credentials:"same-origin"}).then(function(kt){return WebAssembly.instantiateStreaming(kt,b).then(B,function(ae){return ye("wasm streaming compile failed: "+ae),ye("falling back to ArrayBuffer instantiation"),j(B)})})}().catch(It),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.n).apply(null,arguments)};var Fn,et=E._emscripten_bind_CExpat_CExpat_0=function(){return(et=E._emscripten_bind_CExpat_CExpat_0=E.asm.o).apply(null,arguments)},gt=E._emscripten_bind_CExpat_version_0=function(){return(gt=E._emscripten_bind_CExpat_version_0=E.asm.p).apply(null,arguments)},mt=E._emscripten_bind_CExpat_create_0=function(){return(mt=E._emscripten_bind_CExpat_create_0=E.asm.q).apply(null,arguments)},St=E._emscripten_bind_CExpat_destroy_0=function(){return(St=E._emscripten_bind_CExpat_destroy_0=E.asm.r).apply(null,arguments)},zt=E._emscripten_bind_CExpat_parse_1=function(){return(zt=E._emscripten_bind_CExpat_parse_1=E.asm.s).apply(null,arguments)},ee=E._emscripten_bind_CExpat_tag_0=function(){return(ee=E._emscripten_bind_CExpat_tag_0=E.asm.t).apply(null,arguments)},Jt=E._emscripten_bind_CExpat_attrs_0=function(){return(Jt=E._emscripten_bind_CExpat_attrs_0=E.asm.u).apply(null,arguments)},pe=E._emscripten_bind_CExpat_content_0=function(){return(pe=E._emscripten_bind_CExpat_content_0=E.asm.v).apply(null,arguments)},xe=E._emscripten_bind_CExpat_startElement_0=function(){return(xe=E._emscripten_bind_CExpat_startElement_0=E.asm.w).apply(null,arguments)},Wt=E._emscripten_bind_CExpat_endElement_0=function(){return(Wt=E._emscripten_bind_CExpat_endElement_0=E.asm.x).apply(null,arguments)},oe=E._emscripten_bind_CExpat_characterData_0=function(){return(oe=E._emscripten_bind_CExpat_characterData_0=E.asm.y).apply(null,arguments)},Ie=E._emscripten_bind_CExpat___destroy___0=function(){return(Ie=E._emscripten_bind_CExpat___destroy___0=E.asm.z).apply(null,arguments)},Me=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Me=E._emscripten_bind_VoidPtr___destroy___0=E.asm.A).apply(null,arguments)},Ye=E._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(Ye=E._emscripten_bind_CExpatJS_CExpatJS_0=E.asm.B).apply(null,arguments)},$n=E._emscripten_bind_CExpatJS_startElement_0=function(){return($n=E._emscripten_bind_CExpatJS_startElement_0=E.asm.C).apply(null,arguments)},En=E._emscripten_bind_CExpatJS_endElement_0=function(){return(En=E._emscripten_bind_CExpatJS_endElement_0=E.asm.D).apply(null,arguments)},Sn=E._emscripten_bind_CExpatJS_characterData_0=function(){return(Sn=E._emscripten_bind_CExpatJS_characterData_0=E.asm.E).apply(null,arguments)},we=E._emscripten_bind_CExpatJS___destroy___0=function(){return(we=E._emscripten_bind_CExpatJS___destroy___0=E.asm.F).apply(null,arguments)};function Qn(b){function M(){Fn||(Fn=!0,E.calledRun=!0,!Re&&(function jn(){!E.noFSInit&&!D.init.initialized&&D.init(),D.ignorePermissions=!1,ui(Kn)}(),Ct(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function yt(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)b=E.postRun.shift(),Ne.unshift(b);var b;ui(Ne)}()))}_e>0||(function Xn(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)b=E.preRun.shift(),Hn.unshift(b);var b;ui(Hn)}(),_e>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),M()},1)):M())}if(E._malloc=function(){return(E._malloc=E.asm.H).apply(null,arguments)},Ue=function b(){Fn||Qn(),Fn||(Ue=b)},E.run=Qn,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function on(){}function ln(b){return(b||on).__cache__}function Un(b,M){var B=ln(M),j=B[b];return j||((j=Object.create((M||on).prototype)).ptr=b,B[b]=j)}Qn(),(on.prototype=Object.create(on.prototype)).constructor=on,on.prototype.__class__=on,on.__cache__={},E.WrapperObject=on,E.getCache=ln,E.wrapPointer=Un,E.castObject=function Vi(b,M){return Un(b.ptr,M)},E.NULL=Un(0),E.destroy=function hi(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete ln(b.__class__)[b.ptr]},E.compare=function zi(b,M){return b.ptr===M.ptr},E.getPointer=function Jn(b){return b.ptr},E.getClass=function Ai(b){return b.__class__};var cn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(cn.needed){for(var b=0;b=cn.size?(mn(j>0),cn.needed+=j,ct=E._malloc(j),cn.temps.push(ct)):(ct=cn.buffer+cn.pos,cn.pos+=j),ct},copy:function(b,M,B){switch(B>>>=0,M.BYTES_PER_ELEMENT){case 2:B>>>=1;break;case 4:B>>>=2;break;case 8:B>>>=3}for(var ct=0;ct=$);)++dt;if(dt-L>16&&y.subarray&&ni)return ni.decode(y.subarray(L,dt));for(var Et="";L>10,56320|1023&Xe)}}else Et+=String.fromCharCode((31&Lt)<<6|Vt)}else Et+=String.fromCharCode(Lt)}return Et}function sn(y,L){return y?xn(Hn,y,L):""}function je(y,L,Z,$){if(!($>0))return 0;for(var dt=Z,Et=Z+$-1,Lt=0;Lt=55296&&Vt<=57343&&(Vt=65536+((1023&Vt)<<10)|1023&y.charCodeAt(++Lt)),Vt<=127){if(Z>=Et)break;L[Z++]=Vt}else if(Vt<=2047){if(Z+1>=Et)break;L[Z++]=192|Vt>>6,L[Z++]=128|63&Vt}else if(Vt<=65535){if(Z+2>=Et)break;L[Z++]=224|Vt>>12,L[Z++]=128|Vt>>6&63,L[Z++]=128|63&Vt}else{if(Z+3>=Et)break;L[Z++]=240|Vt>>18,L[Z++]=128|Vt>>12&63,L[Z++]=128|Vt>>6&63,L[Z++]=128|63&Vt}}return L[Z]=0,Z-dt}function In(y){for(var L=0,Z=0;Z=55296&&$<=57343&&($=65536+((1023&$)<<10)|1023&y.charCodeAt(++Z)),$<=127?++L:L+=$<=2047?2:$<=65535?3:4}return L}function ci(y,L){return y%L>0&&(y+=L-y%L),y}function jn(y){Mn=y,E.HEAP8=Tn=new Int8Array(y),E.HEAP16=Kn=new Int16Array(y),E.HEAP32=Ne=new Int32Array(y),E.HEAPU8=Hn=new Uint8Array(y),E.HEAPU16=new Uint16Array(y),E.HEAPU32=new Uint32Array(y),E.HEAPF32=new Float32Array(y),E.HEAPF64=Xn=new Float64Array(y)}var yt,Gt=[],se=[],de=[];var gn=0,ti=null;function On(y){gn++,E.monitorRunDependencies&&E.monitorRunDependencies(gn)}function un(y){if(gn--,E.monitorRunDependencies&&E.monitorRunDependencies(gn),0==gn&&ti){var L=ti;ti=null,L()}}function yn(y){E.onAbort&&E.onAbort(y),Be(y="Aborted("+y+")"),Yn=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var L=new WebAssembly.RuntimeError(y);throw It(L),L}E.preloadedImages={},E.preloadedAudios={};var Nn;function ui(y){return y.startsWith("data:application/octet-stream;base64,")}function Le(y){try{if(y==Nn&&Ve)return new Uint8Array(Ve);throw"both async and sync fetching of the wasm failed"}catch(L){yn(L)}}ui(Nn="graphvizlib.wasm")||(Nn=function Nt(y){return E.locateFile?E.locateFile(y,ft):ft+y}(Nn));var fn,G,At,X={161580:function(y,L){var Z=sn(y),$=sn(L);N.createPath("/",qt.dirname(Z)),N.writeFile(qt.join("/",Z),$)}};function ht(y){for(;y.length>0;){var L=y.shift();if("function"!=typeof L){var Z=L.func;"number"==typeof Z?void 0===L.arg?D(Z)():D(Z)(L.arg):Z(void 0===L.arg?null:L.arg)}else L(E)}}function D(y){return yt.get(y)}At=function(){return performance.now()};function Bt(y){return Ne[kt()>>2]=y,y}var qt={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,L){for(var Z=0,$=y.length-1;$>=0;$--){var dt=y[$];"."===dt?y.splice($,1):".."===dt?(y.splice($,1),Z++):Z&&(y.splice($,1),Z--)}if(L)for(;Z;Z--)y.unshift("..");return y},normalize:function(y){var L="/"===y.charAt(0),Z="/"===y.substr(-1);return!(y=qt.normalizeArray(y.split("/").filter(function($){return!!$}),!L).join("/"))&&!L&&(y="."),y&&Z&&(y+="/"),(L?"/":"")+y},dirname:function(y){var L=qt.splitPath(y),Z=L[0],$=L[1];return Z||$?($&&($=$.substr(0,$.length-1)),Z+$):"."},basename:function(y){if("/"===y)return"/";var L=(y=(y=qt.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===L?y:y.substr(L+1)},extname:function(y){return qt.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return qt.normalize(y.join("/"))},join2:function(y,L){return qt.normalize(y+"/"+L)}};var pt={resolve:function(){for(var y="",L=!1,Z=arguments.length-1;Z>=-1&&!L;Z--){var $=Z>=0?arguments[Z]:N.cwd();if("string"!=typeof $)throw new TypeError("Arguments to path.resolve must be strings");if(!$)return"";y=$+"/"+y,L="/"===$.charAt(0)}return(L?"/":"")+(y=qt.normalizeArray(y.split("/").filter(function(dt){return!!dt}),!L).join("/"))||"."},relative:function(y,L){function Z(Xe){for(var hn=0;hn=0&&""===Xe[bn];bn--);return hn>bn?[]:Xe.slice(hn,bn-hn+1)}y=pt.resolve(y).substr(1),L=pt.resolve(L).substr(1);for(var $=Z(y.split("/")),dt=Z(L.split("/")),Et=Math.min($.length,dt.length),Lt=Et,Vt=0;Vt0&&(ye(xn(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,L){null===L||10===L?(Be(xn(y.output,0)),y.output=[]):0!=L&&y.output.push(L)},flush:function(y){y.output&&y.output.length>0&&(Be(xn(y.output,0)),y.output=[])}}};function te(y){y=function Xt(y,L){return Math.ceil(y/L)*L}(y,65536);var L=Ge(65536,y);return L?(function wt(y,L){Hn.fill(0,y,y+L)}(L,y),L):0}var Dt={ops_table:null,mount:function(y){return Dt.createNode(null,"/",16895,0)},createNode:function(y,L,Z,$){if(N.isBlkdev(Z)||N.isFIFO(Z))throw new N.ErrnoError(63);Dt.ops_table||(Dt.ops_table={dir:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr,lookup:Dt.node_ops.lookup,mknod:Dt.node_ops.mknod,rename:Dt.node_ops.rename,unlink:Dt.node_ops.unlink,rmdir:Dt.node_ops.rmdir,readdir:Dt.node_ops.readdir,symlink:Dt.node_ops.symlink},stream:{llseek:Dt.stream_ops.llseek}},file:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr},stream:{llseek:Dt.stream_ops.llseek,read:Dt.stream_ops.read,write:Dt.stream_ops.write,allocate:Dt.stream_ops.allocate,mmap:Dt.stream_ops.mmap,msync:Dt.stream_ops.msync}},link:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr,readlink:Dt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr},stream:N.chrdev_stream_ops}});var dt=N.createNode(y,L,Z,$);return N.isDir(dt.mode)?(dt.node_ops=Dt.ops_table.dir.node,dt.stream_ops=Dt.ops_table.dir.stream,dt.contents={}):N.isFile(dt.mode)?(dt.node_ops=Dt.ops_table.file.node,dt.stream_ops=Dt.ops_table.file.stream,dt.usedBytes=0,dt.contents=null):N.isLink(dt.mode)?(dt.node_ops=Dt.ops_table.link.node,dt.stream_ops=Dt.ops_table.link.stream):N.isChrdev(dt.mode)&&(dt.node_ops=Dt.ops_table.chrdev.node,dt.stream_ops=Dt.ops_table.chrdev.stream),dt.timestamp=Date.now(),y&&(y.contents[L]=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,L){var Z=y.contents?y.contents.length:0;if(!(Z>=L)){L=Math.max(L,Z*(Z<1048576?2:1.125)>>>0),0!=Z&&(L=Math.max(L,256));var dt=y.contents;y.contents=new Uint8Array(L),y.usedBytes>0&&y.contents.set(dt.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,L){if(y.usedBytes!=L)if(0==L)y.contents=null,y.usedBytes=0;else{var Z=y.contents;y.contents=new Uint8Array(L),Z&&y.contents.set(Z.subarray(0,Math.min(L,y.usedBytes))),y.usedBytes=L}},node_ops:{getattr:function(y){var L={};return L.dev=N.isChrdev(y.mode)?y.id:1,L.ino=y.id,L.mode=y.mode,L.nlink=1,L.uid=0,L.gid=0,L.rdev=y.rdev,L.size=N.isDir(y.mode)?4096:N.isFile(y.mode)?y.usedBytes:N.isLink(y.mode)?y.link.length:0,L.atime=new Date(y.timestamp),L.mtime=new Date(y.timestamp),L.ctime=new Date(y.timestamp),L.blksize=4096,L.blocks=Math.ceil(L.size/L.blksize),L},setattr:function(y,L){void 0!==L.mode&&(y.mode=L.mode),void 0!==L.timestamp&&(y.timestamp=L.timestamp),void 0!==L.size&&Dt.resizeFileStorage(y,L.size)},lookup:function(y,L){throw N.genericErrors[44]},mknod:function(y,L,Z,$){return Dt.createNode(y,L,Z,$)},rename:function(y,L,Z){if(N.isDir(y.mode)){var $;try{$=N.lookupNode(L,Z)}catch(Et){}if($)for(var dt in $.contents)throw new N.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=Z,L.contents[Z]=y,L.timestamp=y.parent.timestamp,y.parent=L},unlink:function(y,L){delete y.contents[L],y.timestamp=Date.now()},rmdir:function(y,L){var Z=N.lookupNode(y,L);for(var $ in Z.contents)throw new N.ErrnoError(55);delete y.contents[L],y.timestamp=Date.now()},readdir:function(y){var L=[".",".."];for(var Z in y.contents)!y.contents.hasOwnProperty(Z)||L.push(Z);return L},symlink:function(y,L,Z){var $=Dt.createNode(y,L,41471,0);return $.link=Z,$},readlink:function(y){if(!N.isLink(y.mode))throw new N.ErrnoError(28);return y.link}},stream_ops:{read:function(y,L,Z,$,dt){var Et=y.node.contents;if(dt>=y.node.usedBytes)return 0;var Lt=Math.min(y.node.usedBytes-dt,$);if(Lt>8&&Et.subarray)L.set(Et.subarray(dt,dt+Lt),Z);else for(var Vt=0;Vt0||$+Z8)throw new N.ErrnoError(32);for(var dt=qt.normalizeArray(y.split("/").filter(function(Je){return!!Je}),!1),Et=N.root,Lt="/",Vt=0;Vt40)throw new N.ErrnoError(32)}}return{path:Lt,node:Et}},getPath:function(y){for(var L;;){if(N.isRoot(y)){var Z=y.mount.mountpoint;return L?"/"!==Z[Z.length-1]?Z+"/"+L:Z+L:Z}L=L?y.name+"/"+L:y.name,y=y.parent}},hashName:function(y,L){for(var Z=0,$=0;$>>0)%N.nameTable.length},hashAddNode:function(y){var L=N.hashName(y.parent.id,y.name);y.name_next=N.nameTable[L],N.nameTable[L]=y},hashRemoveNode:function(y){var L=N.hashName(y.parent.id,y.name);if(N.nameTable[L]===y)N.nameTable[L]=y.name_next;else for(var Z=N.nameTable[L];Z;){if(Z.name_next===y){Z.name_next=y.name_next;break}Z=Z.name_next}},lookupNode:function(y,L){var Z=N.mayLookup(y);if(Z)throw new N.ErrnoError(Z,y);for(var $=N.hashName(y.id,L),dt=N.nameTable[$];dt;dt=dt.name_next)if(dt.parent.id===y.id&&dt.name===L)return dt;return N.lookup(y,L)},createNode:function(y,L,Z,$){var dt=new N.FSNode(y,L,Z,$);return N.hashAddNode(dt),dt},destroyNode:function(y){N.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 L=N.flagModes[y];if(void 0===L)throw new Error("Unknown file open mode: "+y);return L},flagsToPermissionString:function(y){var L=["r","w","rw"][3&y];return 512&y&&(L+="w"),L},nodePermissions:function(y,L){return N.ignorePermissions?0:L.includes("r")&&!(292&y.mode)||L.includes("w")&&!(146&y.mode)||L.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return N.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,L){try{return N.lookupNode(y,L),20}catch($){}return N.nodePermissions(y,"wx")},mayDelete:function(y,L,Z){var $;try{$=N.lookupNode(y,L)}catch(Et){return Et.errno}var dt=N.nodePermissions(y,"wx");if(dt)return dt;if(Z){if(!N.isDir($.mode))return 54;if(N.isRoot($)||N.getPath($)===N.cwd())return 10}else if(N.isDir($.mode))return 31;return 0},mayOpen:function(y,L){return y?N.isLink(y.mode)?32:N.isDir(y.mode)&&("r"!==N.flagsToPermissionString(L)||512&L)?31:N.nodePermissions(y,N.flagsToPermissionString(L)):44},MAX_OPEN_FDS:4096,nextfd:function(y,L){L=L||N.MAX_OPEN_FDS;for(var Z=y=y||0;Z<=L;Z++)if(!N.streams[Z])return Z;throw new N.ErrnoError(33)},getStream:function(y){return N.streams[y]},createStream:function(y,L,Z){N.FSStream||(N.FSStream=function(){},N.FSStream.prototype={object:{get:function(){return this.node},set:function(Lt){this.node=Lt}},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 N.FSStream;for(var dt in y)$[dt]=y[dt];y=$;var Et=N.nextfd(L,Z);return y.fd=Et,N.streams[Et]=y,y},closeStream:function(y){N.streams[y]=null},chrdev_stream_ops:{open:function(y){var L=N.getDevice(y.node.rdev);y.stream_ops=L.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new N.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,L){return y<<8|L},registerDevice:function(y,L){N.devices[y]={stream_ops:L}},getDevice:function(y){return N.devices[y]},getMounts:function(y){for(var L=[],Z=[y];Z.length;){var $=Z.pop();L.push($),Z.push.apply(Z,$.mounts)}return L},syncfs:function(y,L){"function"==typeof y&&(L=y,y=!1),N.syncFSRequests++,N.syncFSRequests>1&&Be("warning: "+N.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var Z=N.getMounts(N.root.mount),$=0;function dt(Lt){return N.syncFSRequests--,L(Lt)}function Et(Lt){if(Lt)return Et.errored?void 0:(Et.errored=!0,dt(Lt));++$>=Z.length&&dt(null)}Z.forEach(function(Lt){if(!Lt.type.syncfs)return Et(null);Lt.type.syncfs(Lt,y,Et)})},mount:function(y,L,Z){var Et,$="/"===Z,dt=!Z;if($&&N.root)throw new N.ErrnoError(10);if(!$&&!dt){var Lt=N.lookupPath(Z,{follow_mount:!1});if(Z=Lt.path,N.isMountpoint(Et=Lt.node))throw new N.ErrnoError(10);if(!N.isDir(Et.mode))throw new N.ErrnoError(54)}var Vt={type:y,opts:L,mountpoint:Z,mounts:[]},ce=y.mount(Vt);return ce.mount=Vt,Vt.root=ce,$?N.root=ce:Et&&(Et.mounted=Vt,Et.mount&&Et.mount.mounts.push(Vt)),ce},unmount:function(y){var L=N.lookupPath(y,{follow_mount:!1});if(!N.isMountpoint(L.node))throw new N.ErrnoError(28);var Z=L.node,$=Z.mounted,dt=N.getMounts($);Object.keys(N.nameTable).forEach(function(Lt){for(var Vt=N.nameTable[Lt];Vt;){var ce=Vt.name_next;dt.includes(Vt.mount)&&N.destroyNode(Vt),Vt=ce}}),Z.mounted=null;var Et=Z.mount.mounts.indexOf($);Z.mount.mounts.splice(Et,1)},lookup:function(y,L){return y.node_ops.lookup(y,L)},mknod:function(y,L,Z){var dt=N.lookupPath(y,{parent:!0}).node,Et=qt.basename(y);if(!Et||"."===Et||".."===Et)throw new N.ErrnoError(28);var Lt=N.mayCreate(dt,Et);if(Lt)throw new N.ErrnoError(Lt);if(!dt.node_ops.mknod)throw new N.ErrnoError(63);return dt.node_ops.mknod(dt,Et,L,Z)},create:function(y,L){return L=void 0!==L?L:438,L&=4095,N.mknod(y,L|=32768,0)},mkdir:function(y,L){return L=void 0!==L?L:511,L&=1023,N.mknod(y,L|=16384,0)},mkdirTree:function(y,L){for(var Z=y.split("/"),$="",dt=0;dtthis.length-1||Je<0)){var tn=Je%this.chunkSize;return this.getter(Je/this.chunkSize|0)[tn]}},Et.prototype.setDataGetter=function(Je){this.getter=Je},Et.prototype.cacheLength=function(){var Je=new XMLHttpRequest;if(Je.open("HEAD",Z,!1),Je.send(null),!(Je.status>=200&&Je.status<300||304===Je.status))throw new Error("Couldn't load "+Z+". Status: "+Je.status);var kn,tn=Number(Je.getResponseHeader("Content-length")),Pi=(kn=Je.getResponseHeader("Accept-Ranges"))&&"bytes"===kn,Tr=(kn=Je.getResponseHeader("Content-Encoding"))&&"gzip"===kn,Ri=1048576;Pi||(Ri=tn);var ki=this;ki.setDataGetter(function($i){var br=$i*Ri,gi=($i+1)*Ri-1;if(gi=Math.min(gi,tn-1),void 0===ki.chunks[$i]&&(ki.chunks[$i]=function($i,br){if($i>br)throw new Error("invalid range ("+$i+", "+br+") or no bytes requested!");if(br>tn-1)throw new Error("only "+tn+" bytes available! programmer error!");var gi=new XMLHttpRequest;if(gi.open("GET",Z,!1),tn!==Ri&&gi.setRequestHeader("Range","bytes="+$i+"-"+br),"undefined"!=typeof Uint8Array&&(gi.responseType="arraybuffer"),gi.overrideMimeType&&gi.overrideMimeType("text/plain; charset=x-user-defined"),gi.send(null),!(gi.status>=200&&gi.status<300||304===gi.status))throw new Error("Couldn't load "+Z+". Status: "+gi.status);return void 0!==gi.response?new Uint8Array(gi.response||[]):Hi(gi.responseText||"",!0)}(br,gi)),void 0===ki.chunks[$i])throw new Error("doXHR failed!");return ki.chunks[$i]}),(Tr||!tn)&&(Ri=tn=1,tn=this.getter(0).length,Ri=tn,ye("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=tn,this._chunkSize=Ri,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Vt,ce=N.createFile(y,L,Vt={isDevice:!1,url:Z},$,dt);Vt.contents?ce.contents=Vt.contents:Vt.url&&(ce.contents=null,ce.url=Vt.url),Object.defineProperties(ce,{usedBytes:{get:function(){return this.contents.length}}});var Xe={};return Object.keys(ce.stream_ops).forEach(function(bn){var Je=ce.stream_ops[bn];Xe[bn]=function(){return N.forceLoadFile(ce),Je.apply(null,arguments)}}),Xe.read=function(Je,tn,kn,Pi,Tr){N.forceLoadFile(ce);var Ri=Je.node.contents;if(Tr>=Ri.length)return 0;var kr=Math.min(Ri.length-Tr,Pi);if(Ri.slice)for(var ki=0;ki>2]=$.dev,Ne[Z+4>>2]=0,Ne[Z+8>>2]=$.ino,Ne[Z+12>>2]=$.mode,Ne[Z+16>>2]=$.nlink,Ne[Z+20>>2]=$.uid,Ne[Z+24>>2]=$.gid,Ne[Z+28>>2]=$.rdev,Ne[Z+32>>2]=0,G=[$.size>>>0,(fn=$.size,+Math.abs(fn)>=1?fn>0?(0|Math.min(+Math.floor(fn/4294967296),4294967295))>>>0:~~+Math.ceil((fn-+(~~fn>>>0))/4294967296)>>>0:0)],Ne[Z+40>>2]=G[0],Ne[Z+44>>2]=G[1],Ne[Z+48>>2]=4096,Ne[Z+52>>2]=$.blocks,Ne[Z+56>>2]=$.atime.getTime()/1e3|0,Ne[Z+60>>2]=0,Ne[Z+64>>2]=$.mtime.getTime()/1e3|0,Ne[Z+68>>2]=0,Ne[Z+72>>2]=$.ctime.getTime()/1e3|0,Ne[Z+76>>2]=0,G=[$.ino>>>0,(fn=$.ino,+Math.abs(fn)>=1?fn>0?(0|Math.min(+Math.floor(fn/4294967296),4294967295))>>>0:~~+Math.ceil((fn-+(~~fn>>>0))/4294967296)>>>0:0)],Ne[Z+80>>2]=G[0],Ne[Z+84>>2]=G[1],0},doMsync:function(y,L,Z,$,dt){var Et=Hn.slice(y,y+Z);N.msync(L,Et,dt,Z,$)},doMkdir:function(y,L){return"/"===(y=qt.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),N.mkdir(y,L,0),0},doMknod:function(y,L,Z){switch(61440&L){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return N.mknod(y,L,Z),0},doReadlink:function(y,L,Z){if(Z<=0)return-28;var $=N.readlink(y),dt=Math.min(Z,In($)),Et=Tn[L+dt];return function wn(y,L,Z){return je(y,Hn,L,Z)}($,L,Z+1),Tn[L+dt]=Et,dt},doAccess:function(y,L){if(-8&L)return-28;var $=N.lookupPath(y,{follow:!0}).node;if(!$)return-44;var dt="";return 4&L&&(dt+="r"),2&L&&(dt+="w"),1&L&&(dt+="x"),dt&&N.nodePermissions($,dt)?-2:0},doDup:function(y,L,Z){var $=N.getStream(Z);return $&&N.close($),N.open(y,L,0,Z,Z).fd},doReadv:function(y,L,Z,$){for(var dt=0,Et=0;Et>2],ce=N.read(y,Tn,Ne[L+8*Et>>2],Vt,$);if(ce<0)return-1;if(dt+=ce,ce>2],Ne[L+(8*Et+4)>>2],$);if(ce<0)return-1;dt+=ce}return dt},varargs:void 0,get:function(){return le.varargs+=4,Ne[le.varargs-4>>2]},getStr:function(y){return sn(y)},getStreamFromFD:function(y){var L=N.getStream(y);if(!L)throw new N.ErrnoError(8);return L},get64:function(y,L){return y}};var Jt=[];function oe(y){try{return Ae.grow(y-Mn.byteLength+65535>>>16),jn(Ae.buffer),1}catch(L){}}var Me={};function $n(){if(!$n.strings){var L={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",_:ne||"./this.program"};for(var Z in Me)void 0===Me[Z]?delete L[Z]:L[Z]=Me[Z];var $=[];for(var Z in L)$.push(Z+"="+L[Z]);$n.strings=$}return $n.strings}var Jn=function(y,L,Z,$){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=N.nextInode++,this.name=L,this.mode=Z,this.node_ops={},this.stream_ops={},this.rdev=$};function Hi(y,L,Z){var $=Z>0?Z:In(y)+1,dt=new Array($),Et=je(y,dt,0,dt.length);return L&&(dt.length=Et),dt}Object.defineProperties(Jn.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 N.isDir(this.mode)}},isDevice:{get:function(){return N.isChrdev(this.mode)}}}),N.FSNode=Jn,N.staticInit();var Ft={A:function re(y,L){return function Yt(y,L){var Z;if(0===y)Z=Date.now();else{if(1!==y&&4!==y)return Bt(28),-1;Z=At()}return Ne[L>>2]=Z/1e3|0,Ne[L+4>>2]=Z%1e3*1e3*1e3|0,0}(y,L)},B:function ke(y,L){try{return y=le.getStr(y),le.doAccess(y,L)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},h:function Oe(y,L,Z){le.varargs=Z;try{var $=le.getStreamFromFD(y);switch(L){case 0:return(dt=le.get())<0?-28:N.open($.path,$.flags,0,dt).fd;case 1:case 2:case 6:case 7:return 0;case 3:return $.flags;case 4:var dt=le.get();return $.flags|=dt,0;case 5:return dt=le.get(),Kn[dt+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Bt(28),-1}}catch(Vt){if(void 0===N||!(Vt instanceof N.ErrnoError))throw Vt;return-Vt.errno}},x:function rn(y,L){try{var Z=le.getStreamFromFD(y);return le.doStat(N.stat,Z.path,L)}catch($){if(void 0===N||!($ instanceof N.ErrnoError))throw $;return-$.errno}},u:function He(y,L,Z,$){try{L=le.getStr(L);var dt=256&$,Et=4096&$;return $&=-4353,L=le.calculateAt(y,L,Et),le.doStat(dt?N.lstat:N.stat,L,Z)}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},y:function $e(y,L,Z){le.varargs=Z;try{var $=le.getStreamFromFD(y);switch(L){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=le.get();return Ne[dt>>2]=0,0;case 21520:return $.tty?-28:-59;case 21531:return dt=le.get(),N.ioctl($,L,dt);default:yn("bad ioctl syscall "+L)}}catch(Et){if(void 0===N||!(Et instanceof N.ErrnoError))throw Et;return-Et.errno}},k:function ve(y,L,Z,$,dt,Et){try{return function fe(y,L,Z,$,dt,Et){Et<<=12;var Lt,Vt=!1;if(0!=(16&$)&&y%65536!=0)return-28;if(0!=(32&$)){if(!(Lt=te(L)))return-48;Vt=!0}else{var ce=N.getStream(dt);if(!ce)return-8;var Xe=N.mmap(ce,y,L,Et,Z,$);Lt=Xe.ptr,Vt=Xe.allocated}return le.mappings[Lt]={malloc:Lt,len:L,allocated:Vt,fd:dt,prot:Z,flags:$,offset:Et},Lt}(y,L,Z,$,dt,Et)}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},j:function et(y,L){try{return function Qe(y,L){var Z=le.mappings[y];if(0===L||!Z)return-28;if(L===Z.len){var $=N.getStream(Z.fd);$&&2&Z.prot&&le.doMsync(y,$,L,Z.flags,Z.offset),le.mappings[y]=null,Z.allocated&&xt(Z.malloc)}return 0}(y,L)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},e:function gt(y,L,Z){le.varargs=Z;try{var $=le.getStr(y),dt=Z?le.get():0;return N.open($,L,dt).fd}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},v:function mt(y,L){try{return y=le.getStr(y),le.doStat(N.stat,y,L)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},z:function St(y){try{return y=le.getStr(y),N.unlink(y),0}catch(L){if(void 0===N||!(L instanceof N.ErrnoError))throw L;return-L.errno}},r:function zt(){throw"longjmp"},q:function ee(){yn("")},C:function xe(y,L,Z){var $=function pe(y,L){var Z;for(Jt.length=0,L>>=2;Z=Hn[y++];){var $=Z<105;$&&1&L&&L++,Jt.push($?Xn[L++>>1]:Ne[L]),++L}return Jt}(L,Z);return X[y].apply(null,$)},o:function Wt(y,L,Z){Hn.copyWithin(y,L,L+Z)},p:function Ie(y){var L=Hn.length,Z=2147483648;if((y>>>=0)>Z)return!1;for(var $=1;$<=4;$*=2){var dt=L*(1+.2/$);if(dt=Math.min(dt,y+100663296),oe(Math.min(Z,ci(Math.max(y,dt),65536))))return!0}return!1},s:function En(y,L){var Z=0;return $n().forEach(function($,dt){var Et=L+Z;Ne[y+4*dt>>2]=Et,function ze(y,L,Z){for(var $=0;$>0]=y.charCodeAt($);Z||(Tn[L>>0]=0)}($,Et),Z+=$.length+1}),0},t:function Sn(y,L){var Z=$n();Ne[y>>2]=Z.length;var $=0;return Z.forEach(function(dt){$+=dt.length+1}),Ne[L>>2]=$,0},a:function we(y){!function rr(y,L){!function Li(y){(function Ue(){return Ce||!1})()||(E.onExit&&E.onExit(y),Yn=!0),Ut(y,new An(y))}(y)}(y)},d:function Fn(y){try{var L=le.getStreamFromFD(y);return N.close(L),0}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return Z.errno}},i:function Qn(y,L,Z,$){try{var dt=le.getStreamFromFD(y),Et=le.doReadv(dt,L,Z);return Ne[$>>2]=Et,0}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return Lt.errno}},n:function on(y,L,Z,$,dt){try{var Et=le.getStreamFromFD(y),Vt=4294967296*Z+(L>>>0),ce=9007199254740992;return Vt<=-ce||Vt>=ce?-61:(N.llseek(Et,Vt,$),G=[Et.position>>>0,(fn=Et.position,+Math.abs(fn)>=1?fn>0?(0|Math.min(+Math.floor(fn/4294967296),4294967295))>>>0:~~+Math.ceil((fn-+(~~fn>>>0))/4294967296)>>>0:0)],Ne[dt>>2]=G[0],Ne[dt+4>>2]=G[1],Et.getdents&&0===Vt&&0===$&&(Et.getdents=null),0)}catch(Xe){if(void 0===N||!(Xe instanceof N.ErrnoError))throw Xe;return Xe.errno}},g:function ln(y,L,Z,$){try{var dt=le.getStreamFromFD(y),Et=le.doWritev(dt,L,Z);return Ne[$>>2]=Et,0}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return Lt.errno}},c:function Un(){return vn},w:function Vi(y){var L=Date.now();return Ne[y>>2]=L/1e3|0,Ne[y+4>>2]=L%1e3*1e3|0,0},l:function Ze(y,L,Z,$,dt,Et,Lt){var Vt=Pt();try{return D(y)(L,Z,$,dt,Et,Lt)}catch(ce){if(ae(Vt),ce!==ce+0&&"longjmp"!==ce)throw ce;De(1,0)}},m:function Ke(y,L){var Z=Pt();try{D(y)(L)}catch($){if(ae(Z),$!==$+0&&"longjmp"!==$)throw $;De(1,0)}},b:function hi(y){!function(y){vn=y}(y)},f:function zi(y){var L=Date.now()/1e3|0;return y&&(Ne[y>>2]=L),L}};(function Bn(){var y={a:Ft};function L(Lt,Vt){E.asm=Lt.exports,jn((Ae=E.asm.D).buffer),yt=E.asm.M,function qn(y){se.unshift(y)}(E.asm.E),un()}function Z(Lt){L(Lt.instance)}function $(Lt){return function Ii(){return Ve||"function"!=typeof fetch?Promise.resolve().then(function(){return Le(Nn)}):fetch(Nn,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+Nn+"'";return y.arrayBuffer()}).catch(function(){return Le(Nn)})}().then(function(Vt){return WebAssembly.instantiate(Vt,y)}).then(function(Vt){return Vt}).then(Lt,function(Vt){Be("failed to asynchronously prepare wasm: "+Vt),yn(Vt)})}if(On(),E.instantiateWasm)try{return E.instantiateWasm(y,L)}catch(Lt){return Be("Module.instantiateWasm callback failed with error: "+Lt),!1}return function dt(){return Ve||"function"!=typeof WebAssembly.instantiateStreaming||ui(Nn)||"function"!=typeof fetch?$(Z):fetch(Nn,{credentials:"same-origin"}).then(function(Lt){return WebAssembly.instantiateStreaming(Lt,y).then(Z,function(ce){return Be("wasm streaming compile failed: "+ce),Be("falling back to ArrayBuffer instantiation"),$(Z)})})}().catch(It),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.E).apply(null,arguments)};var be=E._emscripten_bind_VoidPtr___destroy___0=function(){return(be=E._emscripten_bind_VoidPtr___destroy___0=E.asm.F).apply(null,arguments)},jt=E._emscripten_bind_Graphviz_Graphviz_2=function(){return(jt=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)},M=E._emscripten_bind_Graphviz_lastError_0=function(){return(M=E._emscripten_bind_Graphviz_lastError_0=E.asm.I).apply(null,arguments)},B=E._emscripten_bind_Graphviz_layout_3=function(){return(B=E._emscripten_bind_Graphviz_layout_3=E.asm.J).apply(null,arguments)},j=E._emscripten_bind_Graphviz_createFile_2=function(){return(j=E._emscripten_bind_Graphviz_createFile_2=E.asm.K).apply(null,arguments)},ct=E._emscripten_bind_Graphviz___destroy___0=function(){return(ct=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 We,xt=E._free=function(){return(xt=E._free=E.asm.O).apply(null,arguments)},kt=E.___errno_location=function(){return(kt=E.___errno_location=E.asm.P).apply(null,arguments)},Pt=E.stackSave=function(){return(Pt=E.stackSave=E.asm.Q).apply(null,arguments)},ae=E.stackRestore=function(){return(ae=E.stackRestore=E.asm.R).apply(null,arguments)},De=E._setThrew=function(){return(De=E._setThrew=E.asm.S).apply(null,arguments)},Ge=E._memalign=function(){return(Ge=E._memalign=E.asm.T).apply(null,arguments)};function An(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function di(y){function L(){We||(We=!0,E.calledRun=!0,!Yn&&(function nn(){!E.noFSInit&&!N.init.initialized&&N.init(),N.ignorePermissions=!1,ht(se)}(),Ct(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Zn(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)y=E.postRun.shift(),de.unshift(y);var y;ht(de)}()))}gn>0||(function Fe(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)y=E.preRun.shift(),Gt.unshift(y);var y;ht(Gt)}(),gn>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),L()},1)):L())}if(ti=function y(){We||di(),We||(ti=y)},E.run=di,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function fi(){}function ii(y){return(y||fi).__cache__}function Mi(y,L){var Z=ii(L),$=Z[y];return $||(($=Object.create((L||fi).prototype)).ptr=y,Z[y]=$)}di(),(fi.prototype=Object.create(fi.prototype)).constructor=fi,fi.prototype.__class__=fi,fi.__cache__={},E.WrapperObject=fi,E.getCache=ii,E.wrapPointer=Mi,E.castObject=function ar(y,L){return Mi(y.ptr,L)},E.NULL=Mi(0),E.destroy=function si(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete ii(y.__class__)[y.ptr]},E.compare=function Da(y,L){return y.ptr===L.ptr},E.getPointer=function ls(y){return y.ptr},E.getClass=function cs(y){return y.__class__};var Pn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Pn.needed){for(var y=0;y=Pn.size?(Wn($>0),Pn.needed+=$,dt=E._malloc($),Pn.temps.push(dt)):(dt=Pn.buffer+Pn.pos,Pn.pos+=$),dt},copy:function(y,L,Z){switch(Z>>>=0,L.BYTES_PER_ELEMENT){case 2:Z>>>=1;break;case 4:Z>>>=2;break;case 8:Z>>>=3}for(var dt=0;dt\n\n')}}function ut(H,K){var lt=V({images:[],files:[]},K);W(W([],lt.files,!0),function nt(H){return H.map(rt)}(lt.images),!0).forEach(function(it){return H.createFile(it.path,it.data)})}var tt={layout:function(H,K,lt,it){return void 0===K&&(K="svg"),void 0===lt&&(lt="dot"),H?u(U,null==it?void 0:it.wasmFolder,null==it?void 0:it.wasmBinary).then(function(z){var E=new z.Graphviz(void 0!==(null==it?void 0:it.yInvert)&&(null==it?void 0:it.yInvert),void 0!==(null==it?void 0:it.nop)?null==it?void 0:it.nop:0);ut(E,it);var Ct=E.layout(H,K,lt);if(z.destroy(E),!Ct)throw new Error(z.Graphviz.prototype.lastError());return Ct}):Promise.resolve("")},circo:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"circo",lt)},dot:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"dot",lt)},fdp:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"fdp",lt)},sfdp:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"sfdp",lt)},neato:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"neato",lt)},osage:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"osage",lt)},patchwork:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"patchwork",lt)},twopi:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"twopi",lt)}},Q=function(){function H(K){this._wasm=K}return H.prototype.layout=function(K,lt,it,z){if(void 0===lt&&(lt="svg"),void 0===it&&(it="dot"),!K)return"";var E=new this._wasm.Graphviz((null==z?void 0:z.yInvert)?1:0,(null==z?void 0:z.nop)?null==z?void 0:z.nop:0);ut(E,z);var Ct=E.layout(K,lt,it);if(this._wasm.destroy(E),!Ct)throw new Error(this._wasm.Graphviz.prototype.lastError());return Ct},H.prototype.circo=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"circo",it)},H.prototype.dot=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"dot",it)},H.prototype.fdp=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"fdp",it)},H.prototype.sfdp=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"sfdp",it)},H.prototype.neato=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"neato",it)},H.prototype.osage=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"osage",it)},H.prototype.patchwork=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"patchwork",it)},H.prototype.twopi=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"twopi",it)},H}();o.GraphvizSync=Q,o.StackElement=g,o.StackParser=C,o.expatVersion=function k(H,K){return u(_,H,K).then(function(lt){return lt.CExpat.prototype.version()})},o.graphviz=tt,o.graphvizSync=function at(H,K){return u(U,H,K).then(function(lt){return new Q(lt)})},o.graphvizVersion=function J(H,K){return u(U,H,K).then(function(lt){return lt.Graphviz.prototype.version()})},o.parse=F,o.wasmFolder=l,Object.defineProperty(o,"__esModule",{value:!0})}(I)},78417:(w,I,o)=>{"use strict";o.r(I),o.d(I,{AdminModule:()=>Rb});var c={};o.r(c),o.d(c,{forceCenter:()=>Gf,forceCollide:()=>dl,forceLink:()=>_l,forceManyBody:()=>xl,forceRadial:()=>pp,forceSimulation:()=>vl,forceX:()=>mp,forceY:()=>gp});var x={};o.r(x),o.d(x,{dispatch:()=>ca.Z});var v={};o.r(v),o.d(v,{interval:()=>vp,now:()=>tr.zO,timeout:()=>ua.Z,timer:()=>tr.HT,timerFlush:()=>tr.R8});var _=o(69808),f=o(11735),t=o(5e3),p=o(77968),l=o(4235),h=o(25245),m=o(61283),u=o(51062);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(p.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")," "))},directives:[l.W,h.Hw,_.PC,m.A],pipes:[u.X$],styles:[""]}),n})();var A=o(71135);let k=(()=>{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"))},directives:[A.L],styles:[""]}),n})();var F=o(20449),O=o(48966),R=o(32075),U=o(36908),V=o(32105),W=o(20773),rt=o(98380),nt=o(47423);function ut(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function J(n,r){1&n&&t._UZ(0,"th",16)}function tt(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 Q(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function H(n,r){if(1&n&&(t.TgZ(0,"div",7),t.TgZ(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,tt,2,1,"td",12),t.BQk(),t.YNc(11,Q,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(),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 K=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=s,this.attributesManager=d,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(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.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","",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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ut,1,0,"mat-spinner",1),t.YNc(5,H,16,12,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[O.uh,_.O5,W.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,rt.w,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();var lt=o(45323),it=o(67322),z=o(98833),E=o(93075),Ct=o(74533),It=o(74107),Rt=o(90508),Ht=o(32368),ne=o(29772),Ut=o(77446);function vt(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function ft(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Nt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Qt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function me(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function ge(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function ye(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Be(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function vn(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Re(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function mn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"mat-form-field",9),t.TgZ(2,"label"),t.TgZ(3,"input",10),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.friendlyName=a}),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,ft,3,3,"mat-error",11),t.qZA(),t._UZ(6,"br"),t.TgZ(7,"mat-form-field",9),t.TgZ(8,"label"),t.TgZ(9,"input",10),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.displayName=a}),t.ALo(10,"translate"),t.qZA(),t.qZA(),t.YNc(11,Nt,3,3,"mat-error",11),t.qZA(),t._UZ(12,"br"),t.TgZ(13,"mat-form-field",9),t.TgZ(14,"label"),t.TgZ(15,"textarea",12),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.description=a}),t.ALo(16,"translate"),t._uU(17," "),t.qZA(),t.qZA(),t.YNc(18,Qt,3,3,"mat-error",11),t.qZA(),t._UZ(19,"br"),t.TgZ(20,"mat-form-field",9),t.TgZ(21,"mat-placeholder"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.TgZ(24,"mat-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().entity=a}),t.YNc(25,me,2,2,"mat-option",14),t.qZA(),t.YNc(26,ge,3,3,"mat-error",11),t.qZA(),t._UZ(27,"br"),t.TgZ(28,"mat-form-field",9),t.TgZ(29,"mat-placeholder"),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"mat-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().definitionType=a}),t.YNc(33,ye,2,2,"mat-option",14),t.qZA(),t.YNc(34,Be,3,3,"mat-error",11),t.qZA(),t._UZ(35,"br"),t.TgZ(36,"mat-form-field",9),t.TgZ(37,"mat-placeholder"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().valueType=a}),t.YNc(41,vn,2,2,"mat-option",14),t.qZA(),t.YNc(42,Re,3,3,"mat-error",11),t.qZA(),t._UZ(43,"br"),t.TgZ(44,"div",15),t.TgZ(45,"p"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t.TgZ(48,"p",16),t.NdJ("click",function(){return t.CHM(e),t.oxw().attDef.unique=!1}),t._uU(49,"OFF"),t.qZA(),t.TgZ(50,"mat-slide-toggle",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.unique=a}),t.ALo(51,"translate"),t._uU(52," ON "),t.qZA(),t.qZA(),t.TgZ(53,"div",18),t.TgZ(54,"p",19),t._uU(55),t.ALo(56,"translate"),t.qZA(),t.TgZ(57,"p",20),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.qZA(),t.TgZ(60,"div",21),t.TgZ(61,"p",22),t._uU(62),t.ALo(63,"translate"),t.qZA(),t.TgZ(64,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readSelf=a}),t.qZA(),t.TgZ(65,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeSelf=a}),t.qZA(),t.qZA(),t.TgZ(66,"div",21),t.TgZ(67,"p",22),t._uU(68),t.ALo(69,"translate"),t.qZA(),t.TgZ(70,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readSelfPublic=a}),t.qZA(),t.TgZ(71,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeSelfPublic=a}),t.qZA(),t.qZA(),t.TgZ(72,"div",21),t.TgZ(73,"p",22),t._uU(74),t.ALo(75,"translate"),t.qZA(),t.TgZ(76,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readSelfVo=a}),t.qZA(),t.TgZ(77,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeSelfVo=a}),t.qZA(),t.qZA(),t.TgZ(78,"div",21),t.TgZ(79,"p",22),t._uU(80),t.ALo(81,"translate"),t.qZA(),t.TgZ(82,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readVo=a}),t.qZA(),t.TgZ(83,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeVo=a}),t.qZA(),t.qZA(),t.TgZ(84,"div",21),t.TgZ(85,"p",22),t._uU(86),t.ALo(87,"translate"),t.qZA(),t.TgZ(88,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readGroup=a}),t.qZA(),t.TgZ(89,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeGroup=a}),t.qZA(),t.qZA(),t.TgZ(90,"div",21),t.TgZ(91,"p",22),t._uU(92),t.ALo(93,"translate"),t.qZA(),t.TgZ(94,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readFacility=a}),t.qZA(),t.TgZ(95,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeFacility=a}),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,46,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.Q6J("ngModel",e.attDef.friendlyName),t.xp6(2),t.Q6J("ngIf",""===e.attDef.friendlyName),t.xp6(4),t.s9C("placeholder",t.lcZ(10,48,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.Q6J("ngModel",e.attDef.displayName),t.xp6(2),t.Q6J("ngIf",""===e.attDef.displayName),t.xp6(4),t.s9C("placeholder",t.lcZ(16,50,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.Q6J("ngModel",e.attDef.description),t.xp6(3),t.Q6J("ngIf",""===e.attDef.description),t.xp6(4),t.Oqu(t.lcZ(23,52,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngModel",e.entity),t.xp6(1),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",""===e.attDef.entity),t.xp6(4),t.Oqu(t.lcZ(31,54,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngModel",e.definitionType),t.xp6(1),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",""===e.definitionType),t.xp6(4),t.Oqu(t.lcZ(39,56,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngModel",e.valueType),t.xp6(1),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",""===e.valueType),t.xp6(4),t.Oqu(t.lcZ(47,58,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.UNIQUE")),t.xp6(4),t.s9C("matTooltip",t.lcZ(51,60,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),t.Q6J("ngModel",e.attDef.unique)("disabled",e.disableUniqueToggle())("matTooltipDisabled",!e.disableUniqueToggle()),t.xp6(5),t.Oqu(t.lcZ(56,62,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),t.xp6(3),t.Oqu(t.lcZ(59,64,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),t.xp6(4),t.Oqu(t.lcZ(63,66,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),t.xp6(2),t.Q6J("ngModel",e.readSelf),t.xp6(1),t.Q6J("ngModel",e.writeSelf),t.xp6(3),t.Oqu(t.lcZ(69,68,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),t.xp6(2),t.Q6J("ngModel",e.readSelfPublic),t.xp6(1),t.Q6J("ngModel",e.writeSelfPublic),t.xp6(3),t.Oqu(t.lcZ(75,70,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),t.xp6(2),t.Q6J("ngModel",e.readSelfVo),t.xp6(1),t.Q6J("ngModel",e.writeSelfVo),t.xp6(3),t.Oqu(t.lcZ(81,72,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),t.xp6(2),t.Q6J("ngModel",e.readVo),t.xp6(1),t.Q6J("ngModel",e.writeVo),t.xp6(3),t.Oqu(t.lcZ(87,74,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),t.xp6(2),t.Q6J("ngModel",e.readGroup),t.xp6(1),t.Q6J("ngModel",e.writeGroup),t.xp6(3),t.Oqu(t.lcZ(93,76,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),t.xp6(2),t.Q6J("ngModel",e.readFacility),t.xp6(1),t.Q6J("ngModel",e.writeFacility)}}let Ve=(()=>{class n{constructor(e,i,a,s){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=s,this.loading=!1,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.definitionType="",this.valueTypes=["String","Integer","Boolean","Array","LinkedHashMap"],this.valueType="",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1}ngOnInit(){this.attDef={beanName:"",description:"",displayName:"",entity:"",friendlyName:"",id:void 0,namespace:"",type:"",unique:!1,writable:!1}}onSubmit(){this.loading=!0,this.attDef.namespace="urn:perun:"+this.entity+":attribute-def:"+this.definitionType,this.readValueType(),this.attributesManager.createAttributeDefinition({attribute:this.attDef}).subscribe(e=>{this.attDef=e,this.attributesManager.setAttributeRights({rights:this.readRights()}).subscribe(()=>{this.translate.get("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}disableConfirmButton(){return""===this.attDef.friendlyName||""===this.attDef.displayName||""===this.attDef.description||""===this.entity||""===this.definitionType||""===this.valueType||this.loading}disableUniqueToggle(){return("virt"===this.definitionType||"entityless"===this.entity)&&(this.attDef.unique=!1,!0)}readRights(){const e=[],i={};i.attributeId=this.attDef.id,i.role=lt.u.SELF,i.rights=[],this.readSelf&&i.rights.push("READ"),this.readSelfPublic&&i.rights.push("READ_PUBLIC"),this.readSelfVo&&i.rights.push("READ_VO"),this.writeSelf&&i.rights.push("WRITE"),this.writeSelfPublic&&i.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&i.rights.push("WRITE_VO"),e.push(i);const a={};a.attributeId=this.attDef.id,a.role=lt.u.VOADMIN,a.rights=[],this.readVo&&a.rights.push(V.Us.READ),this.writeVo&&a.rights.push(V.Us.WRITE),e.push(a);const s={};s.attributeId=this.attDef.id,s.role=lt.u.GROUPADMIN,s.rights=[],this.readGroup&&s.rights.push(V.Us.READ),this.writeGroup&&s.rights.push(V.Us.WRITE),e.push(s);const d={};return d.attributeId=this.attDef.id,d.role=lt.u.FACILITYADMIN,d.rights=[],this.readFacility&&d.rights.push(V.Us.READ),this.writeFacility&&d.rights.push(V.Us.WRITE),e.push(d),e}readValueType(){switch(this.valueType){case"String":this.attDef.type="java.lang.String";break;case"Integer":this.attDef.type="java.lang.Integer";break;case"Boolean":this.attDef.type="java.lang.Boolean";break;case"Array":this.attDef.type="java.util.ArrayList";break;case"LinkedHashMap":this.attDef.type="java.util.LinkedHashMap"}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],decls:14,vars:16,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"matTooltipDisabled","disabled","matTooltip","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"form-field-width"],["matInput","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],["required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","ngModel","disabled","matTooltipDisabled","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,vt,1,0,"mat-spinner",2),t.YNc(5,mn,96,78,"div",3),t.TgZ(6,"div",4),t.TgZ(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.onSubmit()}),t.ALo(11,"translate"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"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,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,12,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),t.Q6J("matTooltipDisabled",!i.disableConfirmButton())("disabled",i.disableConfirmButton()),t.xp6(2),t.hij(" ",t.lcZ(13,14,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[O.uh,_.O5,W.$g,O.xY,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.On,it.TO,Ct.IC,it.UY,It.gD,_.sg,Rt.ey,Ht.Rr,ne.gM,Ut.oG,O.H8,nt.lW],pipes:[u.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.form-field-width[_ngcontent-%COMP%]{width:450px}.pointer[_ngcontent-%COMP%]{cursor:pointer}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"]}),n})();var Ce=o(9244),Ae=o(10036);function Yn(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Wn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10),t.TgZ(5,"input",11),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().value=a}),t.ALo(6,"translate"),t.qZA(),t.qZA(),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 ni=(()=>{class n{constructor(e,i,a,s){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=s,this.value="",this.loading=!1}create(){try{this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).subscribe(e=>{for(const i of this.attributeData.attributeRights)i.attributeId=e.id;this.attributesManager.setAttributeRights({rights:this.attributeData.attributeRights}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)})},()=>this.loading=!1)}catch(e){this.notificator.showError(e),this.loading=!1}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},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","",1,"mt-3"],["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),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Yn,1,0,"mat-spinner",2),t.YNc(5,Wn,7,7,"div",3),t.TgZ(6,"div",4),t.TgZ(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(),t.qZA(),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")," "))},directives:[O.uh,_.O5,W.$g,O.xY,rt.w,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.On,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();var xn=o(96214),sn=o(7434),je=o(84847),wn=o(36769),In=o(69287),ze=o(60205),ci=o(387),Mn=o(18750),Tn=o(43532);function Hn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",22),t.TgZ(1,"mat-checkbox",23),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw(2);return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Kn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",24),t.TgZ(1,"mat-checkbox",25),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,T=t.oxw(2);return a?T.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function Ne(n,r){1&n&&(t.TgZ(0,"th",26),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 Xn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27),t.TgZ(1,"label"),t.TgZ(2,"input",28),t.NdJ("ngModelChange",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onValueChange(s)})("ngModelChange",function(a){return t.CHM(e).$implicit[0]=a}),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function jn(n,r){1&n&&(t.TgZ(0,"th",26),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 yt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27),t.TgZ(1,"perun-web-apps-attribute-value",29),t.NdJ("sendEventToParent2",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onValueChange(s)}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function Gt(n,r){1&n&&t._UZ(0,"tr",30)}function se(n,r){1&n&&t._UZ(0,"tr",31)}function de(n,r){if(1&n&&(t.TgZ(0,"div",10),t.TgZ(1,"perun-web-apps-table-wrapper",11),t.TgZ(2,"table",12),t.ynx(3,13),t.YNc(4,Hn,2,3,"th",14),t.YNc(5,Kn,2,2,"td",15),t.BQk(),t.ynx(6,16),t.YNc(7,Ne,3,3,"th",17),t.YNc(8,Xn,3,1,"td",18),t.BQk(),t.ynx(9,19),t.YNc(10,jn,3,3,"th",17),t.YNc(11,yt,2,1,"td",18),t.BQk(),t.YNc(12,Gt,1,0,"tr",20),t.YNc(13,se,1,0,"tr",21),t.qZA(),t.qZA(),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(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function _e(n,r){1&n&&t._UZ(0,"mat-spinner",32)}function Ue(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",33),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 Fe=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=s,this.attributesManager=d,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new R.by,this.selection=new F.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=Ce.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 s of e)this.records.push([s,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}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}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}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))}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(je.YE,7),t.Gf(ci.Mw,5),t.Gf(Ce.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"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["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",""],["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),t.TgZ(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.qZA(),t.TgZ(15,"div",6),t.YNc(16,de,14,7,"div",7),t.YNc(17,_e,1,0,"mat-spinner",8),t.YNc(18,Ue,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))},directives:[O.uh,O.H8,nt.lW,ne.gM,O.xY,_.O5,Mn.l,R.BZ,je.YE,R.w1,R.fO,R.ge,Ut.oG,R.Dz,R.ev,je.nU,z.Nt,E.Fj,E.JJ,E.On,Tn.M,R.as,R.XQ,R.nj,R.Gk,W.$g,rt.w],pipes:[u.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();const nn=["copiedTooltip"];function Zn(n,r){1&n&&t._UZ(0,"mat-spinner",12)}function Ln(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function qn(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}const Di=function(){return["id","name","enabled","script"]};function gn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"mat-form-field",3),t.TgZ(2,"label"),t.TgZ(3,"input",14),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).attDef.displayName=a}),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,Ln,3,3,"mat-error",2),t.qZA(),t._UZ(6,"br"),t.TgZ(7,"mat-form-field",3),t.TgZ(8,"label"),t.TgZ(9,"textarea",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).attDef.description=a}),t.ALo(10,"translate"),t._uU(11," "),t.qZA(),t.qZA(),t.YNc(12,qn,3,3,"mat-error",2),t.qZA(),t._UZ(13,"br"),t.TgZ(14,"div",16),t.TgZ(15,"p"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"p",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).attDef.unique=!1}),t._uU(19,"OFF"),t.qZA(),t.TgZ(20,"mat-slide-toggle",18),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).attDef.unique=a}),t.ALo(21,"translate"),t._uU(22," ON "),t.qZA(),t.qZA(),t.TgZ(23,"div",19),t.TgZ(24,"p",20),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.TgZ(27,"p",21),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.qZA(),t.TgZ(30,"div",22),t.TgZ(31,"p",23),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readSelf=a}),t.qZA(),t.TgZ(35,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeSelf=a}),t.qZA(),t.qZA(),t.TgZ(36,"div",22),t.TgZ(37,"p",23),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readSelfPublic=a}),t.qZA(),t.TgZ(41,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeSelfPublic=a}),t.qZA(),t.qZA(),t.TgZ(42,"div",22),t.TgZ(43,"p",23),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readSelfVo=a}),t.qZA(),t.TgZ(47,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeSelfVo=a}),t.qZA(),t.qZA(),t.TgZ(48,"div",22),t.TgZ(49,"p",23),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.TgZ(52,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readVo=a}),t.qZA(),t.TgZ(53,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeVo=a}),t.qZA(),t.qZA(),t.TgZ(54,"div",22),t.TgZ(55,"p",23),t._uU(56),t.ALo(57,"translate"),t.qZA(),t.TgZ(58,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readGroup=a}),t.qZA(),t.TgZ(59,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeGroup=a}),t.qZA(),t.qZA(),t.TgZ(60,"div",22),t.TgZ(61,"p",23),t._uU(62),t.ALo(63,"translate"),t.qZA(),t.TgZ(64,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readFacility=a}),t.qZA(),t.TgZ(65,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeFacility=a}),t.qZA(),t.qZA(),t.TgZ(66,"div",30),t.TgZ(67,"p"),t._uU(68),t.ALo(69,"translate"),t.qZA(),t._UZ(70,"app-services-list",31),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(3),t.s9C("placeholder",t.lcZ(4,35,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.Q6J("ngModel",e.attDef.displayName),t.xp6(2),t.Q6J("ngIf",""===e.attDef.displayName),t.xp6(4),t.s9C("placeholder",t.lcZ(10,37,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.Q6J("ngModel",e.attDef.description),t.xp6(3),t.Q6J("ngIf",""===e.attDef.description),t.xp6(4),t.Oqu(t.lcZ(17,39,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.UNIQUE")),t.xp6(4),t.s9C("matTooltip",t.lcZ(21,41,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),t.Q6J("ngModel",e.attDef.unique)("disabled",e.disableUniqueToggle())("matTooltipDisabled",!e.disableUniqueToggle()),t.xp6(5),t.Oqu(t.lcZ(26,43,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),t.xp6(3),t.Oqu(t.lcZ(29,45,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),t.xp6(4),t.Oqu(t.lcZ(33,47,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),t.xp6(2),t.Q6J("ngModel",e.readSelf),t.xp6(1),t.Q6J("ngModel",e.writeSelf),t.xp6(3),t.Oqu(t.lcZ(39,49,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),t.xp6(2),t.Q6J("ngModel",e.readSelfPublic),t.xp6(1),t.Q6J("ngModel",e.writeSelfPublic),t.xp6(3),t.Oqu(t.lcZ(45,51,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),t.xp6(2),t.Q6J("ngModel",e.readSelfVo),t.xp6(1),t.Q6J("ngModel",e.writeSelfVo),t.xp6(3),t.Oqu(t.lcZ(51,53,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),t.xp6(2),t.Q6J("ngModel",e.readVo),t.xp6(1),t.Q6J("ngModel",e.writeVo),t.xp6(3),t.Oqu(t.lcZ(57,55,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),t.xp6(2),t.Q6J("ngModel",e.readGroup),t.xp6(1),t.Q6J("ngModel",e.writeGroup),t.xp6(3),t.Oqu(t.lcZ(63,57,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),t.xp6(2),t.Q6J("ngModel",e.readFacility),t.xp6(1),t.Q6J("ngModel",e.writeFacility),t.xp6(3),t.Oqu(t.lcZ(69,59,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(61,Di))("services",e.services)}}function ti(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 wi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",3),t.TgZ(2,"h1",4),t._uU(3),t.qZA(),t.YNc(4,Zn,1,0,"mat-spinner",5),t.YNc(5,gn,71,62,"div",6),t.TgZ(6,"div",7),t.YNc(7,ti,3,3,"button",8),t.TgZ(8,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCopy()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t.ALo(15,"translate"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Oqu(e.attDef.namespace+":"+e.attDef.friendlyName),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===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.s9C("matTooltip",t.lcZ(15,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),t.Q6J("matTooltipDisabled",!e.disableConfirmButton())("disabled",e.disableConfirmButton()||e.loading),t.xp6(2),t.hij(" ",t.lcZ(17,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function On(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"app-entityless-attribute-keys-list",33),t.NdJ("switchView",function(){return t.CHM(e),t.oxw().switchShowKeys()}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let un=(()=>{class n{constructor(e,i,a,s,d,T,S,P){this.dialog=e,this.dialogRef=i,this.data=a,this.notificator=s,this.translate=d,this.clipboard=T,this.attributesManager=S,this.serviceService=P,this.showKeys=!1,this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1,this.tableId=Ae.Wv,this.loading=!1,this.activatedComponent="Edit"}ngOnInit(){this.loading=!0,this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attDef=this.data.attDef,this.serviceService.getServicesByAttributeDefinition(this.attDef.id).subscribe(e=>{this.services=e,this.attributesManager.getAttributeRights(this.attDef.id).subscribe(i=>{this.fromRightsToCheckboxes(i),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}disableConfirmButton(){return""===this.attDef.displayName||""===this.attDef.description}disableUniqueToggle(){return this.attDef.namespace.includes("virt")||this.attDef.namespace.includes("core")||"entityless"===this.attDef.entity}onSubmit(){this.loading=!0,this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).subscribe(e=>{this.attDef=e,this.attributesManager.setAttributeRights({rights:this.fromCheckboxesToRights()}).subscribe(()=>{this.translate.get("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.showKeys?(this.dialogRef.updateSize("800px"),this.activatedComponent="Entityless"):(this.dialogRef.updateSize("700px"),this.activatedComponent="Edit")}onCopy(){const e={attributeDefinition:this.attDef,attributeRights:this.fromCheckboxesToRights()};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"))}fromCheckboxesToRights(){const e=[],i={};i.attributeId=this.attDef.id,i.role=lt.u.SELF,i.rights=[],this.readSelf&&i.rights.push("READ"),this.readSelfPublic&&i.rights.push("READ_PUBLIC"),this.readSelfVo&&i.rights.push("READ_VO"),this.writeSelf&&i.rights.push("WRITE"),this.writeSelfPublic&&i.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&i.rights.push("WRITE_VO"),e.push(i);const a={};a.attributeId=this.attDef.id,a.role=lt.u.VOADMIN,a.rights=[],this.readVo&&a.rights.push("READ"),this.writeVo&&a.rights.push("WRITE"),e.push(a);const s={};s.attributeId=this.attDef.id,s.role=lt.u.GROUPADMIN,s.rights=[],this.readGroup&&s.rights.push(V.Us.READ),this.writeGroup&&s.rights.push("WRITE"),e.push(s);const d={};return d.attributeId=this.attDef.id,d.role=lt.u.FACILITYADMIN,d.rights=[],this.readFacility&&d.rights.push("READ"),this.writeFacility&&d.rights.push("WRITE"),e.push(d),e}fromRightsToCheckboxes(e){for(const i of e)switch(i.role){case lt.u.SELF:i.rights.includes("READ")&&(this.readSelf=!0),i.rights.includes("READ_PUBLIC")&&(this.readSelfPublic=!0),i.rights.includes("READ_VO")&&(this.readSelfVo=!0),i.rights.includes("WRITE")&&(this.writeSelf=!0),i.rights.includes("WRITE_PUBLIC")&&(this.writeSelfPublic=!0),i.rights.includes("WRITE_VO")&&(this.writeSelfVo=!0);break;case lt.u.GROUPADMIN:i.rights.includes("READ")&&(this.readGroup=!0),i.rights.includes("WRITE")&&(this.writeGroup=!0);break;case lt.u.FACILITYADMIN:i.rights.includes("READ")&&(this.readFacility=!0),i.rights.includes("WRITE")&&(this.writeFacility=!0);break;case lt.u.VOADMIN:i.rights.includes("READ")&&(this.readVo=!0),i.rights.includes("WRITE")&&(this.writeVo=!0)}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(In.TU),t.Y36(V.H8),t.Y36(V.KK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],viewQuery:function(e,i){if(1&e&&t.Gf(nn,5),2&e){let a;t.iGM(a=t.CRH())&&(i.copiedToolTip=a.first)}},decls:4,vars:2,consts:[[1,"admin-theme"],[1,"parent"],[4,"ngIf"],[1,"width-650"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["class","ml-0","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","","matTooltipPosition","above",1,"ml-2",3,"matTooltipDisabled","disabled","matTooltip","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["matInput","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],["matInput","","cdkTextareaAutosize","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","ngModel","disabled","matTooltipDisabled","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[1,"mt-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",1,"ml-0",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,wi,18,18,"div",2),t.YNc(3,On,2,2,"div",2),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},directives:[_.O5,O.uh,W.$g,O.xY,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.On,it.TO,Ct.IC,Ht.Rr,ne.gM,Ut.oG,ze.Q,O.H8,nt.lW,Fe],pipes:[u.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.width-650[_ngcontent-%COMP%]{width:650px!important}.pointer[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]{overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex}.parent[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[wn.SG,wn.GH,wn.Ls]}}),n})();var yn=o(70844);let ei=(()=>{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})(),ui=(()=>{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 Nn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",19),t.TgZ(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Le(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",21),t.TgZ(1,"mat-checkbox",22),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,T=t.oxw();return a?T.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.ALo(2,"consentRelatedAttribute"),t.ALo(3,"translate"),t.ALo(4,"consentRelatedAttribute"),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))("disabled",t.Dn7(2,5,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(3,9,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(4,11,e.namespace,i.serviceEnabled,i.consentRequired))}}function Ii(n,r){1&n&&(t.TgZ(0,"th",23),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 Bn(n,r){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function fn(n,r){1&n&&(t.TgZ(0,"th",23),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 G(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function X(n,r){1&n&&(t.TgZ(0,"th",23),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 ht(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function D(n,r){1&n&&(t.TgZ(0,"th",23),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 At(n,r){if(1&n&&(t.TgZ(0,"td",25),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 Ot(n,r){1&n&&(t.TgZ(0,"th",23),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 Bt(n,r){if(1&n&&(t.TgZ(0,"td",25),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 Yt(n,r){1&n&&(t.TgZ(0,"th",23),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 re(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function qt(n,r){1&n&&t._UZ(0,"tr",26)}function q(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",27),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onRowClick(s)}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function pt(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),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 bt(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),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"))}let wt=(()=>{class n{constructor(e,i,a,s){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=s,this.selection=new F.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=Ce.f7,this.canBeSelected=d=>!this.consentRelatedPipe.transform(d.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"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}exportData(e){(0,Ce.O6)((0,Ce.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,Ce.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,Ce.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(e){if(!this.disableRouting){const i=(0,Ce.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(un,i).afterClosed().subscribe(s=>{s&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.UA),t.Y36(yn.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ce.l9,7),t.Gf(je.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:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","friendlyName"],["mat-cell","",4,"matCellDef"],["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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return i.exportData(s)}),t.TgZ(2,"div",2),t.TgZ(3,"table",3),t.ynx(4,4),t.YNc(5,Nn,2,3,"th",5),t.YNc(6,Le,5,15,"td",6),t.BQk(),t.ynx(7,7),t.YNc(8,Ii,3,3,"th",8),t.YNc(9,Bn,2,1,"td",9),t.BQk(),t.ynx(10,10),t.YNc(11,fn,3,3,"th",8),t.YNc(12,G,2,1,"td",11),t.BQk(),t.ynx(13,12),t.YNc(14,X,3,3,"th",8),t.YNc(15,ht,2,1,"td",11),t.BQk(),t.ynx(16,13),t.YNc(17,D,3,3,"th",8),t.YNc(18,At,3,3,"td",11),t.BQk(),t.ynx(19,14),t.YNc(20,Ot,3,3,"th",8),t.YNc(21,Bt,3,3,"td",11),t.BQk(),t.ynx(22,15),t.YNc(23,Yt,3,3,"th",8),t.YNc(24,re,2,1,"td",11),t.BQk(),t.YNc(25,qt,1,0,"tr",16),t.YNc(26,q,1,2,"tr",17),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(27,pt,3,3,"perun-web-apps-alert",18),t.YNc(28,bt,3,3,"perun-web-apps-alert",18)),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(22),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))},directives:[Mn.l,R.BZ,je.YE,R.w1,R.fO,R.ge,Ut.oG,R.Dz,R.ev,ne.gM,je.nU,R.as,R.XQ,R.nj,R.Gk,_.O5,rt.w],pipes:[yn.u,u.X$,ei,ui],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function Xt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 te(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Dt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 he(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function N(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){return t.CHM(e),t.oxw().refreshTable()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdmin())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let le=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new F.Ov(!0,[]),this.filterValue="",this.tableId=Ae.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,Ce.kZ)();e.width="500px",this.dialog.open(Ve,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,Ce.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(K,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,Ce.kZ)();e.width="700px",this.dialog.open(ni,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(V.H8),t.Y36(U.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","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","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","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","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(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,Xt,3,3,"button",2),t.YNc(6,te,3,3,"button",2),t.YNc(7,Dt,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(9,he,1,0,"mat-spinner",5),t.YNc(10,N,1,5,"app-attr-def-list",6),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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,wt],pipes:[u.X$],styles:[""]}),n})(),ke=(()=>{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")},directives:[m.A],styles:[""]}),n})();var Oe=o(9921);let rn=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,Oe.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.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"))},pipes:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),He=(()=>{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"))},directives:[A.L],styles:[""]}),n})();var $e=o(80013),fe=o(75778),ve=o(22868),Qe=o(87545),et=o(92081),gt=o(91079),mt=o(79814);function St(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 zt(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function ee(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t.TgZ(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 Jt(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 pe(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 xe(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 Wt=(()=>{class n{constructor(e,i,a,s,d,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=s,this.router=d,this.notificator=T,this.searchField=new E.NI,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,$e.b)(400),(0,fe.x)(),(0,ve.b)(()=>this.loading=!0),(0,Qe.w)(e=>this.usersService.findUsers(e)),(0,ve.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(s=>{for(const d of s)d.destination===this.destination&&(this.availableServices.includes(d.service.name)||this.availableServices.push(d.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"}}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService}}):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(V.Fv),t.Y36(u.sK),t.Y36(V.IQ),t.Y36(V.KK),t.Y36(f.F0),t.Y36(U.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),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3),t.TgZ(6,"mat-step",4),t.YNc(7,St,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6),t.TgZ(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const d=t.MAs(5);return i.validateName(d)})("ngModelChange",function(){t.CHM(a);const d=t.MAs(5);return i.notCompleted(d)}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,zt,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,ee,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA(),t.qZA(),t.TgZ(19,"div"),t.TgZ(20,"button",12),t.NdJ("click",function(){t.CHM(a);const d=t.MAs(5);return i.validateName(d)}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(23,"mat-step",4),t.YNc(24,Jt,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6),t.TgZ(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const d=t.MAs(5);return i.validateDestination(d)})("ngModelChange",function(){t.CHM(a);const d=t.MAs(5);return i.notCompleted(d)})("ngModelChange",function(d){return i.destination=d}),t.ALo(27,"translate"),t.qZA(),t.qZA(),t.TgZ(28,"div"),t.TgZ(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 d=t.MAs(5);return i.validateDestination(d)}),t._uU(33),t.ALo(34,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(35,"mat-step"),t.YNc(36,pe,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(d){return i.chosenService=d}),t.YNc(38,xe,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div"),t.TgZ(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(),t.qZA(),t.qZA(),t.qZA(),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")," ")}},directives:[et.Vq,et.C0,et.VY,it.KE,z.Nt,E.Fj,gt.ZL,E.JJ,E.oH,_.O5,W.$g,it.R9,it.bx,gt.XC,_.sg,Rt.ey,nt.lW,E.On,et.fd,mt.VQ,mt.U0],pipes:[u.X$,_.Ov],styles:[""]}),n})();function oe(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 Ie(n){this._context=n}function Ye(n,r){this._basis=new Ie(n),this._beta=r}Ie.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:oe(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:oe(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},Ye.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 S,i=n[0],a=r[0],s=n[e]-i,d=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(S=T/e)*s),this._beta*r[T]+(1-this._beta)*(a+S*d));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const $n=function n(r){function e(i){return 1===r?new Ie(i):new Ye(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var En=o(8929),Sn=o(70655),we=o(41777);function Fn(){}function Qn(n){return null==n?Fn:function(){return this.querySelector(n)}}function ln(){return[]}function Jn(n){return new Array(n.length)}function cn(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function be(n,r,e,i,a,s){for(var T,d=0,S=r.length,P=s.length;dr?1:n>=r?0:NaN}cn.prototype={constructor:cn,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 We="http://www.w3.org/1999/xhtml";const An={svg:"http://www.w3.org/2000/svg",xhtml:We,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function di(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),An.hasOwnProperty(r)?{space:An[r],local:n}:n}function rr(n){return function(){this.removeAttribute(n)}}function Li(n){return function(){this.removeAttributeNS(n.space,n.local)}}function fi(n,r){return function(){this.setAttribute(n,r)}}function ii(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Mi(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function ar(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 Da(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function ls(n){return function(){this.style.removeProperty(n)}}function cs(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Pn(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function qi(n,r){return n.style.getPropertyValue(r)||Da(n).getComputedStyle(n,null).getPropertyValue(r)}function pi(n){return function(){delete this[n]}}function y(n,r){return function(){this[n]=r}}function L(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function $(n){return n.trim().split(/^|\s+/)}function dt(n){return n.classList||new Et(n)}function Et(n){this._node=n,this._names=$(n.getAttribute("class")||"")}function Lt(n,r){for(var e=dt(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 yo={},Ir=null;function Ru(n,r,e){return n=To(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function To(n,r,e){return function(i){var a=Ir;Ir=i;try{n.call(this,this.__data__,r,e)}finally{Ir=a}}}function Zu(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 Bu(n){return function(){var r=this.__on;if(r){for(var s,e=0,i=-1,a=r.length;e=Kt&&(Kt=ie+1);!(Pe=Tt[Kt])&&++Kt=0;)(d=i[a])&&(s&&4^d.compareDocumentPosition(s)&&s.parentNode.insertBefore(d,s),s=d);return this},sort:function xt(n){function r(ot,st){return ot&&st?n(ot.__data__,st.__data__):!ot-!st}n||(n=kt);for(var e=this._groups,i=e.length,a=new Array(i),s=0;s1?this.each((null==r?ls:"function"==typeof r?Pn:cs)(n,r,null==e?"":e)):qi(this.node(),n)},property:function Z(n,r){return arguments.length>1?this.each((null==r?pi:"function"==typeof r?L:y)(n,r)):this.node()[n]},classed:function bn(n,r){var e=$(n+"");if(arguments.length<2){for(var i=dt(this.node()),a=-1,s=e.length;++a0)for(var S,i=n[0],a=r[0],s=n[e]-i,d=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(S=T/e)*s),this._beta*r[T]+(1-this._beta)*(a+S*d));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Wu=function n(r){function e(i){return 1===r?new La(i):new Eo(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var us=Math.PI,hs=2*us,Mr=1e-6,Xu=hs-Mr;function ds(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function So(){return new ds}ds.prototype=So.prototype={constructor:ds,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,s){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(n,r,e,i,a){var s=this._x1,d=this._y1,T=(e=+e)-(n=+n),S=(i=+i)-(r=+r),P=s-n,Y=d-r,ot=P*P+Y*Y;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(ot>Mr)if(Math.abs(Y*T-S*P)>Mr&&a){var st=e-s,_t=i-d,Mt=T*T+S*S,Zt=st*st+_t*_t,Tt=Math.sqrt(Mt),$t=Math.sqrt(ot),ie=a*Math.tan((us-Math.acos((Mt+ot-Zt)/(2*Tt*$t)))/2),Kt=ie/$t,Se=ie/Tt;Math.abs(Kt-1)>Mr&&(this._+="L"+(n+Kt*P)+","+(r+Kt*Y)),this._+="A"+a+","+a+",0,0,"+ +(Y*st>P*_t)+","+(this._x1=n+Se*T)+","+(this._y1=r+Se*S)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,s){n=+n,r=+r,s=!!s;var d=(e=+e)*Math.cos(i),T=e*Math.sin(i),S=n+d,P=r+T,Y=1^s,ot=s?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+S+","+P:(Math.abs(this._x1-S)>Mr||Math.abs(this._y1-P)>Mr)&&(this._+="L"+S+","+P),e&&(ot<0&&(ot=ot%hs+hs),ot>Xu?this._+="A"+e+","+e+",0,1,"+Y+","+(n-d)+","+(r-T)+"A"+e+","+e+",0,1,"+Y+","+(this._x1=S)+","+(this._y1=P):ot>Mr&&(this._+="A"+e+","+e+",0,"+ +(ot>=us)+","+Y+","+(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 $u=So;function ka(n){return function(){return n}}function Do(n){this._context=n}function Qu(n){return new Do(n)}function Ju(n){return n[0]}function ju(n){return n[1]}Do.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 Lo=Math.PI;function Io(n){return(1-Math.cos(Lo*n))/2}function Ku(){}function fs(n){return null==n?Ku:function(){return this.querySelector(n)}}function eh(){return[]}function Mo(n){return null==n?eh:function(){return this.querySelectorAll(n)}}function Oo(n){return function(){return this.matches(n)}}function No(n){return new Array(n.length)}function Ia(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function sh(n,r,e,i,a,s){for(var T,d=0,S=r.length,P=s.length;dr?1:n>=r?0:NaN}Ia.prototype={constructor:Ia,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 ps="http://www.w3.org/1999/xhtml";const Po={svg:"http://www.w3.org/2000/svg",xhtml:ps,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ma(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Po.hasOwnProperty(r)?{space:Po[r],local:n}:n}function Th(n){return function(){this.removeAttribute(n)}}function bh(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Ch(n,r){return function(){this.setAttribute(n,r)}}function wh(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Ah(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Eh(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 Ro(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Dh(n){return function(){this.style.removeProperty(n)}}function Lh(n,r,e){return function(){this.style.setProperty(n,r,e)}}function kh(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function zr(n,r){return n.style.getPropertyValue(r)||Ro(n).getComputedStyle(n,null).getPropertyValue(r)}function Mh(n){return function(){delete this[n]}}function Oh(n,r){return function(){this[n]=r}}function Nh(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Zo(n){return n.trim().split(/^|\s+/)}function ms(n){return n.classList||new Bo(n)}function Bo(n){this._node=n,this._names=Zo(n.getAttribute("class")||"")}function Uo(n,r){for(var e=ms(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 zo={},Or=null;function ud(n,r,e){return n=Ho(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function Ho(n,r,e){return function(i){var a=Or;Or=i;try{n.call(this,this.__data__,r,e)}finally{Or=a}}}function hd(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 dd(n){return function(){var r=this.__on;if(r){for(var s,e=0,i=-1,a=r.length;e=Kt&&(Kt=ie+1);!(Pe=Tt[Kt])&&++Kt=0;)(d=i[a])&&(s&&4^d.compareDocumentPosition(s)&&s.parentNode.insertBefore(d,s),s=d);return this},sort:function fh(n){function r(ot,st){return ot&&st?n(ot.__data__,st.__data__):!ot-!st}n||(n=ph);for(var e=this._groups,i=e.length,a=new Array(i),s=0;s1?this.each((null==r?Dh:"function"==typeof r?kh:Lh)(n,r,null==e?"":e)):zr(this.node(),n)},property:function Fh(n,r){return arguments.length>1?this.each((null==r?Mh:"function"==typeof r?Nh:Oh)(n,r)):this.node()[n]},classed:function Bh(n,r){var e=Zo(n+"");if(arguments.length<2){for(var i=ms(this.node()),a=-1,s=e.length;++a0)throw new Error("too late; already scheduled");return e}function fr(n,r){var e=er(n,r);if(e.state>3)throw new Error("too late; already running");return e}function er(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}var Jo=o(75349);function wd(n,r){var e,i;return function(){var a=fr(this,n),s=a.tween;if(s!==e)for(var d=0,T=(i=e=s).length;d=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?vs:fr;return function(){var d=s(this,n),T=d.on;T!==i&&(a=(i=T).copy()).on(r,e),d.on=a}}var nf=la.prototype.constructor;function Ko(n){return function(){this.style.removeProperty(n)}}function uf(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function hf(n,r,e){var i,a;function s(){var d=r.apply(this,arguments);return d!==a&&(i=(a=d)&&uf(n,d,e)),i}return s._value=r,s}function gf(n){return function(r){this.textContent=n.call(this,r)}}function _f(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&gf(a)),r}return i._value=n,i}var Tf=0;function pr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function tl(){return++Tf}var Hr=la.prototype;pr.prototype=function bf(n){return la().transition(n)}.prototype={constructor:pr,select:function tf(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=fs(n));for(var i=this._groups,a=i.length,s=new Array(a),d=0;d2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[d]):s=!1;s&&delete n.__transition}}(this,n)})},la.prototype.transition=function wf(n){var r,e;n instanceof pr?(r=n._id,n=n._name):(r=tl(),(e=ys).time=(0,tr.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,s=0;s1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function Ba(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 cl=Symbol("implicit");function Ts(){var n=new Map,r=[],e=[],i=cl;function a(s){var d=s+"",T=n.get(d);if(!T){if(i!==cl)return i;n.set(d,T=r.push(s))}return e[(T-1)%e.length]}return a.domain=function(s){if(!arguments.length)return r.slice();r=[],n=new Map;for(const d of s){const T=d+"";n.has(T)||n.set(T,r.push(d))}return a},a.range=function(s){return arguments.length?(e=Array.from(s),a):e.slice()},a.unknown=function(s){return arguments.length?(i=s,a):i},a.copy=function(){return Ts(r,e).unknown(i)},Ba.apply(a,arguments),a}var Wr=o(59695);function Gf(n,r){var e;function i(){var a,d,s=e.length,T=0,S=0;for(a=0;a=(ot=(T+P)/2))?T=ot:P=ot,(Tt=e>=(st=(S+Y)/2))?S=st:Y=st,a=s,!(s=s[$t=Tt<<1|Zt]))return a[$t]=d,n;if(_t=+n._x.call(null,s.data),Mt=+n._y.call(null,s.data),r===_t&&e===Mt)return d.next=s,a?a[$t]=d:n._root=d,n;do{a=a?a[$t]=new Array(4):n._root=new Array(4),(Zt=r>=(ot=(T+P)/2))?T=ot:P=ot,(Tt=e>=(st=(S+Y)/2))?S=st:Y=st}while(($t=Tt<<1|Zt)==(ie=(Mt>=st)<<1|_t>=ot));return a[ie]=s,a[$t]=d,n}function Zi(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function tp(n){return n[0]}function np(n){return n[1]}function bs(n,r,e){var i=new Cs(null==r?tp:r,null==e?np:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function Cs(n,r,e,i,a,s){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=s,this._root=void 0}function hl(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var Bi=bs.prototype=Cs.prototype;function rp(n){return n.x+n.vx}function ap(n){return n.y+n.vy}function dl(n){var r,e,i=1,a=1;function s(){for(var S,Y,ot,st,_t,Mt,Zt,P=r.length,Tt=0;Ttst+Dn||Pe_t+Dn||Te<_t-Dn;if(dn.index>ot.index){var Vn=st-dn.x-dn.vx,zn=_t-dn.y-dn.vy,mi=Vn*Vn+zn*zn;miS.r&&(S.r=S[P].r)}function T(){if(r){var S,Y,P=r.length;for(e=new Array(P),S=0;SY&&(Y=a),sot&&(ot=s));if(S>Y||P>ot)return this;for(this.cover(S,P).cover(Y,ot),e=0;en||n>=a||i>r||r>=s;)switch(P=(rY||(T=Mt.y0)>ot||(S=Mt.x1)=$t)<<1|n>=Tt)&&(Mt=st[st.length-1],st[st.length-1]=st[st.length-1-Zt],st[st.length-1-Zt]=Mt)}else{var ie=n-+this._x.call(null,_t.data),Kt=r-+this._y.call(null,_t.data),Se=ie*ie+Kt*Kt;if(Se=(st=(d+S)/2))?d=st:S=st,(Zt=ot>=(_t=(T+P)/2))?T=_t:P=_t,r=e,!(e=e[Tt=Zt<<1|Mt]))return this;if(!e.length)break;(r[Tt+1&3]||r[Tt+2&3]||r[Tt+3&3])&&(i=r,$t=Tt)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(s=e.next)&&delete e.next,a?(s?a.next=s:delete a.next,this):r?(s?r[Tt]=s:delete r[Tt],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[$t]=e:this._root=e),this):(this._root=s,this)},Bi.removeAll=function Qf(n){for(var r=0,e=n.length;r1?(null==Zt?T.remove(Mt):T.set(Mt,_t(Zt)),r):T.get(Mt)},find:function(Mt,Zt,Tt){var Kt,Se,Pe,Te,dn,$t=0,ie=n.length;for(null==Tt?Tt=1/0:Tt*=Tt,$t=0;$t1?(P.on(Mt,Zt),r):P.on(Mt)}}}function xl(){var n,r,e,a,i=_i(-30),s=1,d=1/0,T=.81;function S(st){var _t,Mt=n.length,Zt=bs(n,up,hp).visitAfter(Y);for(e=st,_t=0;_t=d)){(st.data!==r||st.next)&&(0===Tt&&(Kt+=(Tt=Cr())*Tt),0===$t&&(Kt+=($t=Cr())*$t),Kt{return(n=Xr||(Xr={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Xr;var n})(),$r=(()=>{return(n=$r||($r={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",$r;var n})();function Hp(n,r,e){e=e||{};let i,a,s,d=null,T=0;function S(){T=!1===e.leading?0:+new Date,d=null,s=n.apply(i,a)}return function(){const P=+new Date;!T&&!1===e.leading&&(T=P);const Y=r-(P-T);return i=this,a=arguments,Y<=0?(clearTimeout(d),d=null,T=P,s=n.apply(i,a)):!d&&!1!==e.trailing&&(d=setTimeout(S,Y)),s}}function Yp(n,r){return function(i,a,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:s.enumerable,value:Hp(s.value,n,r)}),this[a]}}}}let Tl=[{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 Wp{constructor(r,e,i){"string"==typeof r&&(r=Tl.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=Tl.find(i=>i.name===r)),Ts().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 $p=(()=>{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 Qr=(()=>{return(n=Qr||(Qr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Qr;var n})();function Jr(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function Cl(n,r){return"number"==typeof r?n[r]:r}const wl={dagre:class Qp{constructor(){this.defaultSettings={orientation:Qr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Wr.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(s=>s.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(S=>S.id===e.source),a=r.nodes.find(S=>S.id===e.target),s=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-s*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+s*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Wr.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=mr()),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 Jp{constructor(){this.defaultSettings={orientation:Qr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Wr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},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(S=>S.id===e.source),a=r.nodes.find(S=>S.id===e.target),s=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-s*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+s*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Wr.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=mr()),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 qp{constructor(){this.defaultSettings={orientation:Qr.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),Wr.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(s=>s.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(Mt=>Mt.id===e.source),a=r.nodes.find(Mt=>Mt.id===e.target),s="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",d="y"===s?"x":"y",T="y"===s?"height":"width",S=i.position[s]<=a.position[s]?-1:1,P={[d]:i.position[d],[s]:i.position[s]-S*(i.dimension[T]/2)},Y={[d]:a.position[d],[s]:a.position[s]+S*(a.dimension[T]/2)},ot=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[P,{[d]:P[d],[s]:P[s]-S*ot},{[d]:Y[d],[s]:Y[s]+S*ot},Y];const _t=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return _t&&(_t.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Wr.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=mr()),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 Kp{constructor(){this.defaultSettings={force:vl().force("charge",xl().strength(-150)).force("collide",dl(5)),forceLink:_l().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new En.xQ}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},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=>Object.assign(Object.assign({},e),{id:e.id||mr(),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=>Object.assign(Object.assign({},e),{source:Jr(e.source).id,target:Jr(e.target).id,points:[{x:Jr(e.source).x,y:Jr(e.source).y},{x:Jr(e.target).x,y:Jr(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 tm{constructor(){this.defaultSettings={force:(0,_p.d3adaptor)(Object.assign(Object.assign(Object.assign({},x),c),v)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new En.xQ}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},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(s=>e.source===s.id),a=this.inputGraph.nodes.findIndex(s=>e.target===s.id);if(-1!==i&&-1!==a)return Object.assign(Object.assign({},e),{source:i,target:a})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(s=>e.source===s.id),a=this.inputGraph.nodes.findIndex(s=>e.target===s.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=>Object.assign(Object.assign({},e),{id:e.id||mr(),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=Cl(r.nodes,e.source),a=Cl(r.nodes,e.target);return Object.assign(Object.assign({},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),s=i||r.groups.find(T=>T.id===e.source),d=a||r.groups.find(T=>T.id===e.target);return Object.assign(Object.assign({},e),{source:s.id,target:d.id,points:[s.bounds.rayIntersection(d.bounds.cx(),d.bounds.cy()),d.bounds.rayIntersection(s.bounds.cx(),s.bounds.cy())]})})),this.outputGraph.clusters=r.groups.map((e,i)=>Object.assign(Object.assign({},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(s=>s.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(s=>s.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(s=>s.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let Al=(()=>{class n{getLayout(e){if(wl[e])return new wl[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})(),em=(()=>{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)),s=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):s&&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(s){return i.onMouseWheelChrome(s)})("DOMMouseScroll",function(s){return i.onMouseWheelFirefox(s)})("wheel",function(s){return i.onWheel(s)})("onmousewheel",function(s){return i.onMouseWheelIE(s)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),nm=(()=>{class n{constructor(e,i,a,s){this.el=e,this.zone=i,this.cd=a,this.layoutService=s,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Xr.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=$r.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 nl.w,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=d=>d.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${mr()}`}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 $p(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=Wu.beta(1)),this.zone.run(()=>{this.dims=function Xp({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 nl.w;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=mr()),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=mr()),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 il.y?e:(0,rl.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,Ef.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(s=>{s.transform=`translate(${s.position.x-s.dimension.width/2||0}, ${s.position.y-s.dimension.height/2||0})`,s.data||(s.data={}),s.data.color=this.colors.getColor(this.groupResultsBy(s)),e.add(s.id)});const i=new Set;(this.graph.clusters||[]).map(s=>{s.transform=`translate(${s.position.x-s.dimension.width/2||0}, ${s.position.y-s.dimension.height/2||0})`,s.data||(s.data={}),s.data.color=this.colors.getColor(this.groupResultsBy(s)),i.add(s.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const s in this.graph.edgeLabels){const d=this.graph.edgeLabels[s],T=s.replace(/[^\w-]*/g,""),S=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let P=this._oldLinks.find(S?Zt=>`${Zt.source}${Zt.target}${Zt.id}`===T:Zt=>`${Zt.source}${Zt.target}`===T);const Y=this.graph.edges.find(S?Zt=>`${Zt.source}${Zt.target}${Zt.id}`===T:Zt=>`${Zt.source}${Zt.target}`===T);P?P.data&&Y&&Y.data&&JSON.stringify(P.data)!==JSON.stringify(Y.data)&&(P.data=Y.data):P=Y||d,P.oldLine=P.line;const ot=d.points,st=this.generateLine(ot),_t=Object.assign({},P);_t.line=st,_t.points=ot,this.updateMidpointOnEdge(_t,ot);const Mt=ot[Math.floor(ot.length/2)];Mt&&(_t.textTransform=`translate(${Mt.x||0},${Mt.y||0})`),_t.textAngle=0,_t.oldLine||(_t.oldLine=_t.line),this.calcDominantBaseline(_t),a.push(_t)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(s=>{const d=Object.assign({},s);return d.oldLine=s.line,d})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case $r.UpperLeft:return"";case $r.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,s=-1/0;for(let d=0;di?T.position.x+T.dimension.width:i,s=T.position.y+T.dimension.height>s?T.position.y+T.dimension.height:s}e-=100,a-=100,i+=100,s+=100,this.graphDims.width=i-e,this.graphDims.height=s-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(d=>d.id===i.id);if(!a)return;let s;try{if(s=i.getBBox(),!s.width||!s.height)return}catch(d){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:s.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 d;try{for(const T of i.getElementsByTagName("text")){const S=T.getBBox();d?(S.width>d.width&&(d.width=S.width),S.height>d.height&&(d.height=S.height)):d=S}}catch(T){return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:d.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:s.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(s=>s.id===i.nativeElement.id);a&&(wo(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(Io).duration(e?500:0).attr("d",a.line),wo(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(Io).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),s=this.zoomLevel*a;if(!(s<=this.minZoomLevel||s>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const d=e.clientX,T=e.clientY,S=this.el.nativeElement.querySelector("svg"),P=S.querySelector("g.chart"),Y=S.createSVGPoint();Y.x=d,Y.y=T;const ot=Y.matrixTransform(P.getScreenCTM().inverse());this.pan(ot.x,ot.y,!0),this.zoom(a),this.pan(-ot.x,-ot.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const s=a?1:this.zoomLevel;this.transformationMatrix=ha(this.transformationMatrix,ll(e/s,i/s)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=ha(this.transformationMatrix,ll((-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=ha(this.transformationMatrix,function Ff(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Nf(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 d of this.graph.edges)if((d.target===i.id||d.source===i.id||d.target.id===i.id||d.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,d),S=T instanceof il.y?T:(0,rl.of)(T);this.graphSubscription.add(S.subscribe(P=>{this.graph=P,this.redrawEdge(d)}))}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 Rf(n){return function ol(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function Uf(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 Wp(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,s=i-this._touchLastX,d=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(s,d)}}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,s=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,s=-this.minimapScaleCoefficient*s*this.zoomLevel),e){case Xr.Horizontal:this.pan(a,0);break;case Xr.Vertical:this.pan(0,s);break;default:this.pan(a,s)}}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],s=i[i.length/2-1];e.midPoint={x:(a.x+s.x)/2,y:(a.y+s.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 s=a.parentNode.getBoundingClientRect();e=s.width,i=s.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,al.R)(window,"resize").pipe((0,$e.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(Al))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,xp,5),t.Suo(a,yp,5),t.Suo(a,Tp,5),t.Suo(a,bp,5),t.Suo(a,Cp,5)),2&e){let s;t.iGM(s=t.CRH())&&(i.linkTemplate=s.first),t.iGM(s=t.CRH())&&(i.nodeTemplate=s.first),t.iGM(s=t.CRH())&&(i.clusterTemplate=s.first),t.iGM(s=t.CRH())&&(i.defsTemplate=s.first),t.iGM(s=t.CRH())&&(i.miniMapNodeTemplate=s.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(wp,5),t.Gf(Ap,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(s){return i.onMouseMove(s)},!1,t.evT)("mousedown",function(s){return i.onMouseDown(s)},!1,t.evT)("click",function(s){return i.graphClick(s)},!1,t.evT)("touchmove",function(s){return i.onTouchMove(s)},!1,t.evT)("mouseup",function(s){return i.onMouseUp(s)},!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:zp,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(s){return i.onZoom(s,"in")})("mouseWheelDown",function(s){return i.onZoom(s,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,Rp,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,Vp,6,15,"g",3),t.qZA(),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))},directives:[em,_.O5,_.tP,_.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,we.X$)("animationState",[(0,we.eR)(":enter",[(0,we.oB)({opacity:0}),(0,we.jt)("500ms 100ms",(0,we.oB)({opacity:1}))])])]},changeDetection:0}),(0,Sn.gn)([Yp(500)],n.prototype,"updateMinimap",null),n})(),im=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Al],imports:[[_.ez]]}),n})(),rm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez],im]}),n})();var El=o(47429);function Es(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Sl(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function fa(){}o(52016);var Va=1/.7,jr="\\s*([+-]?\\d+)\\s*",ma="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",sr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",om=/^#([0-9a-f]{3,8})$/,lm=new RegExp("^rgb\\("+[jr,jr,jr]+"\\)$"),cm=new RegExp("^rgb\\("+[sr,sr,sr]+"\\)$"),um=new RegExp("^rgba\\("+[jr,jr,jr,ma]+"\\)$"),hm=new RegExp("^rgba\\("+[sr,sr,sr,ma]+"\\)$"),dm=new RegExp("^hsl\\("+[ma,sr,sr]+"\\)$"),fm=new RegExp("^hsla\\("+[ma,sr,sr,ma]+"\\)$"),Dl={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 Ll(){return this.rgb().formatHex()}function kl(){return this.rgb().formatRgb()}function Fr(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=om.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?Il(r):3===e?new Wi(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?za(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?za(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=lm.exec(n))?new Wi(r[1],r[2],r[3],1):(r=cm.exec(n))?new Wi(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=um.exec(n))?za(r[1],r[2],r[3],r[4]):(r=hm.exec(n))?za(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=dm.exec(n))?Nl(r[1],r[2]/100,r[3]/100,1):(r=fm.exec(n))?Nl(r[1],r[2]/100,r[3]/100,r[4]):Dl.hasOwnProperty(n)?Il(Dl[n]):"transparent"===n?new Wi(NaN,NaN,NaN,0):null}function Il(n){return new Wi(n>>16&255,n>>8&255,255&n,1)}function za(n,r,e,i){return i<=0&&(n=r=e=NaN),new Wi(n,r,e,i)}function mm(n){return n instanceof fa||(n=Fr(n)),n?new Wi((n=n.rgb()).r,n.g,n.b,n.opacity):new Wi}function Ha(n,r,e,i){return 1===arguments.length?mm(n):new Wi(n,r,e,null==i?1:i)}function Wi(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function Ml(){return"#"+Ss(this.r)+Ss(this.g)+Ss(this.b)}function Ol(){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 Ss(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Nl(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new or(n,r,e,i)}function Fl(n){if(n instanceof or)return new or(n.h,n.s,n.l,n.opacity);if(n instanceof fa||(n=Fr(n)),!n)return new or;if(n instanceof or)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),s=Math.max(r,e,i),d=NaN,T=s-a,S=(s+a)/2;return T?(d=r===s?(e-i)/T+6*(e0&&S<1?0:d,new or(d,T,S,n.opacity)}function or(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function Ds(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 Pl(n,r,e,i,a){var s=n*n,d=s*n;return((1-3*n+3*s-d)*r+(4-6*s+3*d)*e+(1+3*n+3*s-3*d)*i+d*a)/6}Es(fa,Fr,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Ll,formatHex:Ll,formatHsl:function pm(){return Fl(this).formatHsl()},formatRgb:kl,toString:kl}),Es(Wi,Ha,Sl(fa,{brighter:function(n){return n=null==n?Va:Math.pow(Va,n),new Wi(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Wi(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:Ml,formatHex:Ml,formatRgb:Ol,toString:Ol})),Es(or,function gm(n,r,e,i){return 1===arguments.length?Fl(n):new or(n,r,e,null==i?1:i)},Sl(fa,{brighter:function(n){return n=null==n?Va:Math.pow(Va,n),new or(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new or(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 Wi(Ds(n>=240?n-240:n+120,a,i),Ds(n,a,i),Ds(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 Ls=n=>()=>n;function Zl(n,r){var e=r-n;return e?function Rl(n,r){return function(e){return n+e*r}}(n,e):Ls(isNaN(n)?r:n)}const Ya=function n(r){var e=function ym(n){return 1==(n=+n)?Zl:function(r,e){return e-r?function xm(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):Ls(isNaN(r)?e:r)}}(r);function i(a,s){var d=e((a=Ha(a)).r,(s=Ha(s)).r),T=e(a.g,s.g),S=e(a.b,s.b),P=Zl(a.opacity,s.opacity);return function(Y){return a.r=d(Y),a.g=T(Y),a.b=S(Y),a.opacity=P(Y),a+""}}return i.gamma=n,i}(1);function Bl(n){return function(r){var d,T,e=r.length,i=new Array(e),a=new Array(e),s=new Array(e);for(d=0;d=1?(e=1,r-1):Math.floor(e*r),a=n[i],s=n[i+1];return Pl((e-i/r)*r,i>0?n[i-1]:2*a-s,a,s,ie&&(s=r.slice(e,s),T[d]?T[d]+=s:T[++d]=s),(i=i[0])===(a=a[0])?T[d]?T[d]+=a:T[++d]=a:(T[++d]=null,S.push({i:d,x:lr(i,a)})),e=Is.lastIndex;return e0)throw new Error("too late; already scheduled");return e}function cr(n,r){var e=ir(n,r);if(e.state>3)throw new Error("too late; already running");return e}function ir(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}var Qa,Wl=180/Math.PI,Rs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Xl(n,r,e,i,a,s){var d,T,S;return(d=Math.sqrt(n*n+r*r))&&(n/=d,r/=d),(S=n*e+r*i)&&(e-=n*S,i-=r*S),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,S/=T),n*i180?Y+=360:Y-P>180&&(P+=360),st.push({i:ot.push(a(ot)+"rotate(",null,i)-2,x:lr(P,Y)})):Y&&ot.push(a(ot)+"rotate("+Y+i)}(P.rotate,Y.rotate,ot,st),function T(P,Y,ot,st){P!==Y?st.push({i:ot.push(a(ot)+"skewX(",null,i)-2,x:lr(P,Y)}):Y&&ot.push(a(ot)+"skewX("+Y+i)}(P.skewX,Y.skewX,ot,st),function S(P,Y,ot,st,_t,Mt){if(P!==ot||Y!==st){var Zt=_t.push(a(_t)+"scale(",null,",",null,")");Mt.push({i:Zt-4,x:lr(P,ot)},{i:Zt-2,x:lr(Y,st)})}else(1!==ot||1!==st)&&_t.push(a(_t)+"scale("+ot+","+st+")")}(P.scaleX,P.scaleY,Y.scaleX,Y.scaleY,ot,st),P=Y=null,function(_t){for(var Tt,Mt=-1,Zt=st.length;++Mt=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Fs:cr;return function(){var d=s(this,n),T=d.on;T!==i&&(a=(i=T).copy()).on(r,e),d.on=a}}var pg=o(29742),gg=o(32037),vg=ga.ZP.prototype.constructor,_a=o(24476);function jl(n){return function(){this.style.removeProperty(n)}}function Ag(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Eg(n,r,e){var i,a;function s(){var d=r.apply(this,arguments);return d!==a&&(i=(a=d)&&Ag(n,d,e)),i}return s._value=r,s}function Ig(n){return function(r){this.textContent=n.call(this,r)}}function Mg(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&Ig(a)),r}return i._value=n,i}var Pg=0;function gr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function ql(){return++Pg}var Pr=ga.ZP.prototype;gr.prototype=function Rg(n){return(0,ga.ZP)().transition(n)}.prototype={constructor:gr,select:function mg(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=(0,pg.Z)(n));for(var i=this._groups,a=i.length,s=new Array(a),d=0;d2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[d]):s=!1;s&&delete n.__transition}}(this,n)})},ga.ZP.prototype.transition=function Ug(n){var r,e;n instanceof gr?(r=n._id,n=n._name):(r=ql(),(e=Zg).time=(0,tr.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,s=0;sr?1:n>=r?0:NaN}function Ys(n){let r=n,e=n;function i(d,T,S,P){for(null==S&&(S=0),null==P&&(P=d.length);S>>1;e(d[Y],T)<0?S=Y+1:P=Y}return S}return 1===n.length&&(r=(d,T)=>n(d)-T,e=function qg(n){return(r,e)=>rc(n(r),e)}(n)),{left:i,center:function s(d,T,S,P){null==S&&(S=0),null==P&&(P=d.length);const Y=i(d,T,S,P-1);return Y>S&&r(d[Y-1],T)>-r(d[Y],T)?Y-1:Y},right:function a(d,T,S,P){for(null==S&&(S=0),null==P&&(P=d.length);S>>1;e(d[Y],T)>0?P=Y:S=Y+1}return S}}}["w","e"].map(va),["n","s"].map(va),["n","w","e","s","nw","ne","sw","se"].map(va);var Ws=Math.sqrt(50),Xs=Math.sqrt(10),$s=Math.sqrt(2);function Qs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/a;return s>=Ws?a*=10:s>=Xs?a*=5:s>=$s&&(a*=2),r0))return S;do{S.push(P=new Date(+s)),r(s,T),n(s)}while(P=d)for(;n(d),!s(d);)d.setTime(d-1)},function(d,T){if(d>=d)if(T<0)for(;++T<=0;)for(;r(d,-1),!s(d););else for(;--T>=0;)for(;r(d,1),!s(d););})},e&&(a.count=function(s,d){return qs.setTime(+s),Ks.setTime(+d),n(qs),n(Ks),Math.floor(e(qs,Ks))},a.every=function(s){return s=Math.floor(s),isFinite(s)&&s>0?s>1?a.filter(i?function(d){return i(d)%s==0}:function(d){return a.count(0,d)%s==0}):a:null}),a}var qa=Ei(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});qa.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Ei(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):qa:null};const t_=qa;const xa=Ei(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*vr)},function(n,r){return(r-n)/vr},function(n){return n.getUTCSeconds()});const cc=Ei(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*vr)},function(n,r){n.setTime(+n+r*Ji)},function(n,r){return(r-n)/Ji},function(n){return n.getMinutes()});const hc=Ei(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*vr-n.getMinutes()*Ji)},function(n,r){n.setTime(+n+r*xr)},function(n,r){return(r-n)/xr},function(n){return n.getHours()});const fc=Ei(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Ji)/Rr,n=>n.getDate()-1);function Zr(n){return Ei(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())*Ji)/Js})}var to=Zr(0);const mc=(Zr(1),Zr(2),Zr(3),Zr(4),Zr(5),Zr(6),Ei(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 eo=Ei(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()});eo.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ei(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 gc=eo;const o_=Ei(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Ji)},function(n,r){return(r-n)/Ji},function(n){return n.getUTCMinutes()});const l_=Ei(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*xr)},function(n,r){return(r-n)/xr},function(n){return n.getUTCHours()});const c_=Ei(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Rr},function(n){return n.getUTCDate()-1});function Br(n){return Ei(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)/Js})}var yc=Br(0);const g_=(Br(1),Br(2),Br(3),Br(4),Br(5),Br(6),Ei(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 no=Ei(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()});no.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ei(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 __=no;function bc(n,r,e,i,a,s){const d=[[xa,1,vr],[xa,5,5e3],[xa,15,15e3],[xa,30,3e4],[s,1,Ji],[s,5,5*Ji],[s,15,15*Ji],[s,30,30*Ji],[a,1,xr],[a,3,3*xr],[a,6,6*xr],[a,12,12*xr],[i,1,Rr],[i,2,2*Rr],[e,1,Js],[r,1,sc],[r,3,3*sc],[n,1,js]];function S(P,Y,ot){const st=Math.abs(Y-P)/ot,_t=Ys(([,,Tt])=>Tt).right(d,st);if(_t===d.length)return n.every(Qs(P/js,Y/js,ot));if(0===_t)return t_.every(Math.max(Qs(P,Y,ot),1));const[Mt,Zt]=d[st/d[_t-1][2]0))return S;do{S.push(P=new Date(+s)),r(s,T),n(s)}while(P=d)for(;n(d),!s(d);)d.setTime(d-1)},function(d,T){if(d>=d)if(T<0)for(;++T<=0;)for(;r(d,-1),!s(d););else for(;--T>=0;)for(;r(d,1),!s(d););})},e&&(a.count=function(s,d){return io.setTime(+s),ro.setTime(+d),n(io),n(ro),Math.floor(e(io,ro))},a.every=function(s){return s=Math.floor(s),isFinite(s)&&s>0?s>1?a.filter(i?function(d){return i(d)%s==0}:function(d){return a.count(0,d)%s==0}):a:null}),a}var Ac=6048e5;function Ur(n){return yr(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)/Ac})}var Ec=Ur(0),Ka=Ur(1),ts=(Ur(2),Ur(3),Ur(4));const Dc=(Ur(5),Ur(6),yr(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}));function Gr(n){return yr(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-6e4*(e.getTimezoneOffset()-r.getTimezoneOffset()))/Ac})}var Lc=Gr(0),es=Gr(1),ns=(Gr(2),Gr(3),Gr(4));const Ic=(Gr(5),Gr(6),yr(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-6e4*(r.getTimezoneOffset()-n.getTimezoneOffset()))/864e5},function(n){return n.getDate()-1}));var ao=yr(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()});ao.every=function(n){return isFinite(n=Math.floor(n))&&n>0?yr(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 ya=ao;var so=yr(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()});so.every=function(n){return isFinite(n=Math.floor(n))&&n>0?yr(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 Ta=so;function oo(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function lo(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function ba(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Mc={"-":"",_:" ",0:"0"},Si=/^\s*\d+/,L_=/^%/,k_=/[\\^$*+?|[\]().{}]/g;function Gn(n,r,e){var i=n<0?"-":"",a=(i?-n:n)+"",s=a.length;return i+(s68?1900:2e3),e+i[0].length):-1}function B_(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 U_(n,r,e){var i=Si.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function G_(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Oc(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function V_(n,r,e){var i=Si.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Nc(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function z_(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function H_(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Y_(n,r,e){var i=Si.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function W_(n,r,e){var i=Si.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function X_(n,r,e){var i=L_.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function $_(n,r,e){var i=Si.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Q_(n,r,e){var i=Si.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Fc(n,r){return Gn(n.getDate(),r,2)}function J_(n,r){return Gn(n.getHours(),r,2)}function j_(n,r){return Gn(n.getHours()%12||12,r,2)}function q_(n,r){return Gn(1+Ic.count(ya(n),n),r,3)}function Pc(n,r){return Gn(n.getMilliseconds(),r,3)}function K_(n,r){return Pc(n,r)+"000"}function tv(n,r){return Gn(n.getMonth()+1,r,2)}function ev(n,r){return Gn(n.getMinutes(),r,2)}function nv(n,r){return Gn(n.getSeconds(),r,2)}function iv(n){var r=n.getDay();return 0===r?7:r}function rv(n,r){return Gn(Lc.count(ya(n)-1,n),r,2)}function av(n,r){var e=n.getDay();return n=e>=4||0===e?ns(n):ns.ceil(n),Gn(ns.count(ya(n),n)+(4===ya(n).getDay()),r,2)}function sv(n){return n.getDay()}function ov(n,r){return Gn(es.count(ya(n)-1,n),r,2)}function lv(n,r){return Gn(n.getFullYear()%100,r,2)}function cv(n,r){return Gn(n.getFullYear()%1e4,r,4)}function uv(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Gn(r/60|0,"0",2)+Gn(r%60,"0",2)}function Rc(n,r){return Gn(n.getUTCDate(),r,2)}function hv(n,r){return Gn(n.getUTCHours(),r,2)}function dv(n,r){return Gn(n.getUTCHours()%12||12,r,2)}function fv(n,r){return Gn(1+Dc.count(Ta(n),n),r,3)}function Zc(n,r){return Gn(n.getUTCMilliseconds(),r,3)}function pv(n,r){return Zc(n,r)+"000"}function mv(n,r){return Gn(n.getUTCMonth()+1,r,2)}function gv(n,r){return Gn(n.getUTCMinutes(),r,2)}function _v(n,r){return Gn(n.getUTCSeconds(),r,2)}function vv(n){var r=n.getUTCDay();return 0===r?7:r}function xv(n,r){return Gn(Ec.count(Ta(n)-1,n),r,2)}function yv(n,r){var e=n.getUTCDay();return n=e>=4||0===e?ts(n):ts.ceil(n),Gn(ts.count(Ta(n),n)+(4===Ta(n).getUTCDay()),r,2)}function Tv(n){return n.getUTCDay()}function bv(n,r){return Gn(Ka.count(Ta(n)-1,n),r,2)}function Cv(n,r){return Gn(n.getUTCFullYear()%100,r,2)}function wv(n,r){return Gn(n.getUTCFullYear()%1e4,r,4)}function Av(){return"+0000"}function Bc(){return"%"}function Uc(n){return+n}function Gc(n){return Math.floor(+n/1e3)}!function Lv(n){(function D_(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,s=n.days,d=n.shortDays,T=n.months,S=n.shortMonths,P=Ca(a),Y=wa(a),ot=Ca(s),st=wa(s),_t=Ca(d),Mt=wa(d),Zt=Ca(T),Tt=wa(T),$t=Ca(S),ie=wa(S),Kt={a:function Ti(Ee){return d[Ee.getDay()]},A:function dr(Ee){return s[Ee.getDay()]},b:function bi(Ee){return S[Ee.getMonth()]},B:function Ci(Ee){return T[Ee.getMonth()]},c:null,d:Fc,e:Fc,f:K_,H:J_,I:j_,j:q_,L:Pc,m:tv,M:ev,p:function oi(Ee){return a[+(Ee.getHours()>=12)]},q:function li(Ee){return 1+~~(Ee.getMonth()/3)},Q:Uc,s:Gc,S:nv,u:iv,U:rv,V:av,w:sv,W:ov,x:null,X:null,y:lv,Y:cv,Z:uv,"%":Bc},Se={a:function Ea(Ee){return d[Ee.getUTCDay()]},A:function aa(Ee){return s[Ee.getUTCDay()]},b:function sa(Ee){return S[Ee.getUTCMonth()]},B:function oa(Ee){return T[Ee.getUTCMonth()]},c:null,d:Rc,e:Rc,f:pv,H:hv,I:dv,j:fv,L:Zc,m:mv,M:gv,p:function Fi(Ee){return a[+(Ee.getUTCHours()>=12)]},q:function os(Ee){return 1+~~(Ee.getUTCMonth()/3)},Q:Uc,s:Gc,S:_v,u:vv,U:xv,V:yv,w:Tv,W:bv,x:null,X:null,y:Cv,Y:wv,Z:Av,"%":Bc},Pe={a:function Vn(Ee,an,Cn){var ue=_t.exec(an.slice(Cn));return ue?(Ee.w=Mt[ue[0].toLowerCase()],Cn+ue[0].length):-1},A:function zn(Ee,an,Cn){var ue=ot.exec(an.slice(Cn));return ue?(Ee.w=st[ue[0].toLowerCase()],Cn+ue[0].length):-1},b:function mi(Ee,an,Cn){var ue=$t.exec(an.slice(Cn));return ue?(Ee.m=ie[ue[0].toLowerCase()],Cn+ue[0].length):-1},B:function vi(Ee,an,Cn){var ue=Zt.exec(an.slice(Cn));return ue?(Ee.m=Tt[ue[0].toLowerCase()],Cn+ue[0].length):-1},c:function xi(Ee,an,Cn){return _n(Ee,r,an,Cn)},d:Oc,e:Oc,f:W_,H:Nc,I:Nc,j:V_,L:Y_,m:G_,M:z_,p:function Dn(Ee,an,Cn){var ue=P.exec(an.slice(Cn));return ue?(Ee.p=Y[ue[0].toLowerCase()],Cn+ue[0].length):-1},q:U_,Q:$_,s:Q_,S:H_,u:O_,U:N_,V:F_,w:M_,W:P_,x:function hr(Ee,an,Cn){return _n(Ee,e,an,Cn)},X:function yi(Ee,an,Cn){return _n(Ee,i,an,Cn)},y:Z_,Y:R_,Z:B_,"%":X_};function Te(Ee,an){return function(Cn){var Gi,en,ai,ue=[],ri=-1,Rn=0,Ui=Ee.length;for(Cn instanceof Date||(Cn=new Date(+Cn));++ri53)return null;"w"in ue||(ue.w=1),"Z"in ue?(Ui=(Rn=lo(ba(ue.y,0,1))).getUTCDay(),Rn=Ui>4||0===Ui?Ka.ceil(Rn):Ka(Rn),Rn=Dc.offset(Rn,7*(ue.V-1)),ue.y=Rn.getUTCFullYear(),ue.m=Rn.getUTCMonth(),ue.d=Rn.getUTCDate()+(ue.w+6)%7):(Ui=(Rn=oo(ba(ue.y,0,1))).getDay(),Rn=Ui>4||0===Ui?es.ceil(Rn):es(Rn),Rn=Ic.offset(Rn,7*(ue.V-1)),ue.y=Rn.getFullYear(),ue.m=Rn.getMonth(),ue.d=Rn.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),Ui="Z"in ue?lo(ba(ue.y,0,1)).getUTCDay():oo(ba(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+7*ue.W-(Ui+5)%7:ue.w+7*ue.U-(Ui+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,lo(ue)):oo(ue)}}function _n(Ee,an,Cn,ue){for(var Gi,en,ri=0,Rn=an.length,Ui=Cn.length;ri=Ui)return-1;if(37===(Gi=an.charCodeAt(ri++))){if(Gi=an.charAt(ri++),!(en=Pe[Gi in Mc?an.charAt(ri++):Gi])||(ue=en(Ee,Cn,ue))<0)return-1}else if(Gi!=Cn.charCodeAt(ue++))return-1}return ue}return Kt.x=Te(e,Kt),Kt.X=Te(i,Kt),Kt.c=Te(r,Kt),Se.x=Te(e,Se),Se.X=Te(i,Se),Se.c=Te(r,Se),{format:function(Ee){var an=Te(Ee+="",Kt);return an.toString=function(){return Ee},an},parse:function(Ee){var an=dn(Ee+="",!1);return an.toString=function(){return Ee},an},utcFormat:function(Ee){var an=Te(Ee+="",Se);return an.toString=function(){return Ee},an},utcParse:function(Ee){var an=dn(Ee+="",!0);return an.toString=function(){return Ee},an}}})(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"]}),Ys(rc),Ys(function kv(n){return null===n?NaN:+n}),o(47927),o(32517),o(38914),o(22910),o(65142),o(78986),o(16087);const r0=["caretElm"];function a0(n,r){}const s0=function(n){return{model:n}};function o0(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,a0,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,s0,e.context))}}function l0(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function fx(n,r,e){e=e||{};let i,a,s,d=null,T=0;function S(){T=!1===e.leading?0:+new Date,d=null,s=n.apply(i,a)}return function(){const P=+new Date;!T&&!1===e.leading&&(T=P);const Y=r-(P-T);return i=this,a=arguments,Y<=0?(clearTimeout(d),d=null,T=P,s=n.apply(i,a)):!d&&!1!==e.trailing&&(d=setTimeout(S,Y)),s}}function px(n,r){return function(i,a,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:s.enumerable,value:fx(s.value,n,r)}),this[a]}}}}var pn=(()=>{return(n=pn||(pn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",pn;var n})();function tu(n,r,e){return e===pn.Top?n.top-7:e===pn.Bottom?n.top+n.height-r.height+7:e===pn.Center?n.top+n.height/2-r.height/2:void 0}function eu(n,r,e){return e===pn.Left?n.left-7:e===pn.Right?n.left+n.width-r.width+7:e===pn.Center?n.left+n.width/2-r.width/2:void 0}class Xi{static calculateVerticalAlignment(r,e,i){let a=tu(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let s;a===pn.Top&&(s=r.height/2-i.height/2+7),a===pn.Bottom&&(s=e.height-r.height/2-i.height/2-7),a===pn.Center&&(s=e.height/2-i.height/2);const d=tu(r,e,a);return d+e.height>window.innerHeight&&(s+=d+e.height-window.innerHeight),s}static calculateHorizontalAlignment(r,e,i){let a=eu(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let s;a===pn.Left&&(s=r.width/2-i.width/2+7),a===pn.Right&&(s=e.width-r.width/2-i.width/2-7),a===pn.Center&&(s=e.width/2-i.width/2);const d=eu(r,e,a);return d+e.width>window.innerWidth&&(s+=d+e.width-window.innerWidth),s}static shouldFlip(r,e,i,a){let s=!1;return i===pn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(s=!0),i===pn.Left&&r.left-e.width-a<0&&(s=!0),i===pn.Top&&r.top-e.height-a<0&&(s=!0),i===pn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(s=!0),s}static positionCaret(r,e,i,a,s){let d=0,T=0;return r===pn.Right?(T=-7,d=Xi.calculateVerticalCaret(i,e,a,s)):r===pn.Left?(T=e.width,d=Xi.calculateVerticalCaret(i,e,a,s)):r===pn.Top?(d=e.height,T=Xi.calculateHorizontalCaret(i,e,a,s)):r===pn.Bottom&&(d=-7,T=Xi.calculateHorizontalCaret(i,e,a,s)),{top:d,left:T}}static positionContent(r,e,i,a,s){let d=0,T=0;return r===pn.Right?(T=i.left+i.width+a,d=Xi.calculateVerticalAlignment(i,e,s)):r===pn.Left?(T=i.left-e.width-a,d=Xi.calculateVerticalAlignment(i,e,s)):r===pn.Top?(d=i.top-e.height-a,T=Xi.calculateHorizontalAlignment(i,e,s)):r===pn.Bottom&&(d=i.top+i.height+a,T=Xi.calculateHorizontalAlignment(i,e,s)),{top:d,left:T}}static determinePlacement(r,e,i,a){if(Xi.shouldFlip(i,e,r,a)){if(r===pn.Right)return pn.Left;if(r===pn.Left)return pn.Right;if(r===pn.Top)return pn.Bottom;if(r===pn.Bottom)return pn.Top}return r}}let mx=(()=>{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,_.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:s,left:d}=Xi.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${s}px`),this.renderer.setStyle(e,"left",`${d}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,s=a.getBoundingClientRect(),{top:d,left:T}=Xi.positionCaret(this.placement,i,e,s,this.alignment);this.renderer.setStyle(a,"top",`${d}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=Xi.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(r0,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,o0,2,4,"span",3),t.YNc(5,l0,1,1,"span",4),t.qZA(),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))},directives:[_.O5,_.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,Sn.gn)([px(100)],n.prototype,"onWindowResize",null),n})(),nu=(()=>{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 _x(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 s of a)e.instance[s]=i.inputs[s]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const s of a)e.instance[s]=i.outputs[s]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const s=this.getComponentRootNode(a),d=new El.u0(s,this.componentFactoryResolver,this.applicationRef,this.injector),T=new El.C5(e),S=d.attach(T);return this.projectComponentBindings(S,i),S}}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})(),ho=(()=>{class n extends class gx{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=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs=Object.assign(Object.assign({},e),r.inputs)),i&&(r.outputs=Object.assign(Object.assign({},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=mx}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(nu))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),lu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez]]}),n})();var na=(()=>{return(n=na||(na={})).popover="popover",n.tooltip="tooltip",na;var n})(),Er=(()=>{return(n=Er||(Er={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",Er;var n})();let go,po=(()=>{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=pn.Top,this.tooltipAlignment=pn.Center,this.tooltipType=na.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Er.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Er.all||this.tooltipShowEvent===Er.focus}get listensForHover(){return this.tooltipShowEvent===Er.all||this.tooltipShowEvent===Er.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(ho),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(s){return i.onMouseLeave(s.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})(),cu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[nu,ho],imports:[[_.ez]]}),n})();"undefined"!=typeof window?go=window:"undefined"!=typeof global&&(go=global);let ji=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez,lu,cu],_.ez,lu,cu]}),n})(),Lx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),_u=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),kx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Ix=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Mx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})();Math;let vo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Fx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji,vo,vu]]}),n})(),Rx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Zx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Bx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji,vo,_u]]}),n})(),Gx=(()=>{class n{constructor(){!function Ux(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(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:[ji,Lx,_u,kx,Ix,Mx,vu,Fx,Rx,vo,Zx,Bx]}),n})();function Vx(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function zx(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(),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 Hx(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function Yx(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(),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 Wx(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16),t.TgZ(3,"textPath",17),t._uU(4),t.qZA(),t.qZA(),t.qZA()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const Xx=function(n,r){return[n,r]};function $x(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,zx,5,4,"span",4),t.TgZ(10,"div",5),t.TgZ(11,"ngx-graph",6),t.YNc(12,Hx,2,0,"ng-template",null,7,t.W1O),t.YNc(14,Yx,4,9,"ng-template",null,8,t.W1O),t.YNc(16,Wx,5,2,"ng-template",null,9,t.W1O),t.qZA(),t.qZA(),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,Xx,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function Qx(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(),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 Jx(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,Qx,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 jx(n,r){if(1&n&&(t.YNc(0,$x,18,19,"div",1),t.YNc(1,Jx,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 qx=(()=>{class n{constructor(e,i,a,s,d,T,S,P,Y){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=s,this.serviceService=d,this.resourceManager=T,this.groupService=S,this.voService=P,this.translate=Y,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=$n,this.zoomToFit$=new En.xQ,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const s of e)for(const d of i)s.id===d.id&&a.push(s);return a}static findConnectedResources(e,i){const a=[];for(const s of e)for(const d of i)s.id===d.id&&a.push(s);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(s=>{if(this.membership=s,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){var e,i;const a=""+this.id().toString(),s=null!==(i=null!==(e=this.user.firstName)&&void 0!==e?e:" "+this.user.lastName)&&void 0!==i?i:"",d=this.localUser,T="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:a,label:s,tooltip:d,color:"#FFFFCC",tip:T});const P=""+this.id().toString(),Y="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:P,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:Y}:{id:P,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:Y});for(const ot of this.facilities)this.serviceService.getAllRichDestinationsForFacility(ot.id).subscribe(st=>{this.connectToService(ot,st),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const s of this.membership)this.connectToGroups(e,s,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(s=>{0!==s.length&&this.groupService.getMemberGroups(i.id).subscribe(d=>{const T=n.findConnectedGroups(s,d);if(0!==T.length)for(const S of T)this.connectToResource(e,S,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(s=>{const d=n.findConnectedResources(s,a);for(const T of d)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(S=>{this.haveService(S)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,s){if(-1===this.findEntityInGraph("Facility: "+s.id.toString())){const d=""+this.id().toString(),T=this.localFacility+": "+s.name,S=s.description,P="Facility: "+s.id.toString();this.hierarchialGraph.nodes.push({id:d,label:T,tooltip:S,color:"#FFCCFF",tip:P});const ot={source:d,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(ot)}this.voService.getVoById(e).subscribe(d=>{if(-1===this.findEntityInGraph("Vo: "+d.id.toString())){const S=this.id().toString(),P=this.localVo+": "+d.shortName,Y=d.name,ot="Vo: "+d.id.toString();this.hierarchialGraph.nodes.push({id:S,label:P,tooltip:Y,color:"#E5FFCC",tip:ot});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const S=this.id().toString(),P=this.localGroup+": "+i.name,Y=i.description,ot="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:S,label:P,tooltip:Y,color:"#CCE5FF",tip:ot});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+d.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const S={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(S)}else{const S=this.id().toString(),P=this.localResource+": "+a.name,Y=a.description,ot="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:S,label:P,tooltip:Y,color:"#FFCCCC",tip:ot});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t);const Mt={source:S,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+s.id.toString())].id};this.hierarchialGraph.links.push(Mt)}})}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(f.gz),t.Y36(V.IQ),t.Y36(V.Fv),t.Y36(V.uq),t.Y36(V.KK),t.Y36(V.xk),t.Y36(V.ff),t.Y36(V.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(s){return i.onResize(s)},!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,Vx,2,0,"div",1),t.YNc(4,jx,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)}},directives:[_.O5,W.$g,nm,po],pipes:[u.X$],styles:[""]}),n})();var Kx=o(25828),xu=o(69024),ty=o(29862),Aa=o(16074),ey=o(31359);function ny(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function iy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t.TgZ(1,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editUser()}),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA(),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).anonymizeUser()}),t.TgZ(5,"mat-icon"),t._uU(6,"no_accounts"),t.qZA(),t.qZA(),t.qZA()}}const ry=function(){return{color:"black"}},ay=function(n){return["/admin/users",n]};function sy(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),t.TgZ(4,"div",7),t.TgZ(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,iy,7,0,"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(),t.qZA(),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,ry))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,ay,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 oy=(()=>{class n{constructor(e,i,a,s,d,T,S,P){this.route=e,this.usersService=i,this.sideMenuService=a,this.sideMenuItemService=s,this.dialog=d,this.authResolver=T,this.entityStorageService=S,this.router=P,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(a=>{this.user=a,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const s=this.sideMenuItemService.parseUser(a,this.path,this.regex);this.sideMenuService.setAdminItems([s]),this.loading=!1},()=>this.loading=!1)})}editUser(){const e=(0,Ce.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ty.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(s=>{this.user=s})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,Ce.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(Aa.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(V.Fv),t.Y36(p.D),t.Y36(xu.V),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.fb),t.Y36(f.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"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-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,ny,1,0,"mat-spinner",1),t.YNc(3,sy,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))},directives:[l.W,_.O5,W.$g,h.Hw,_.PC,ne.gM,f.yS,nt.lW,m.A],pipes:[u.X$,ey.d],styles:[""]}),n})();var ly=o(17755),cy=o(74837),uy=o(85985),hy=o(98973),dy=o(15935);function fy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().onLoad()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function py(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const my=function(){return["id","name","type"]};function gy(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",7),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,my))("tableId",e.tableId)}}let _y=(()=>{class n{constructor(e,i,a,s){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=s,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=Ae.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(d=>this.loadSuccess=d)}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(V.KG),t.Y36(U.V6),t.Y36(u.sK),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,fy,3,3,"button",1),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(6,py,1,0,"mat-spinner",3),t.YNc(7,gy,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[_.O5,nt.lW,sn.L,W.$g,dy.D],pipes:[u.X$],styles:[""]}),n})();var vy=o(6097),xy=o(97453),as=o(1059),ss=o(24850);function yy(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Ty(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 by(n,r){if(1&n&&(t.TgZ(0,"div"),t.TgZ(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.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,Ty,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA(),t.qZA(),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 Cy=(()=>{class n{constructor(e,i,a,s,d,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=s,this.translate=d,this.notificator=T,this.extSources=[],d.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(S=>this.successMessage=S)}ngOnInit(){this.loading=!0,this.loginControl=new E.NI("",[E.kI.required,E.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new E.NI("",[E.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,as.O)(""),(0,ss.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,as.O)(""),(0,ss.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(O.so),t.Y36(O.WI),t.Y36(V.KG),t.Y36(V.Fv),t.Y36(u.sK),t.Y36(U.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,yy,1,0,"mat-spinner",2),t.YNc(5,by,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4),t.TgZ(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(),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")," "))},directives:[O.uh,O.xY,_.O5,W.$g,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.oH,it.TO,gt.ZL,gt.XC,_.sg,Rt.ey,O.H8,nt.lW],pipes:[u.X$,_.Ov],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 wy=o(80275);function Ay(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ey(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Sy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Dy(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 Ly=(()=>{class n{constructor(e,i,a,s,d,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=s,this.route=d,this.authResolver=T,this.userExtSources=[],this.selection=new F.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=Ae.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,Ce.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(Cy,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,Ce.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(Aa.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.Fv),t.Y36(U.d6),t.Y36(V.tk),t.Y36(O.uw),t.Y36(f.gz),t.Y36(U.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,Ay,3,3,"button",2),t.YNc(5,Ey,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,Sy,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,Dy,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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,wy.j],pipes:[u.X$],styles:[""]}),n})();var ky=o(80774),Iy=o(62109);function My(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Oy=function(){return["id","name","vo","facility","description"]};function Ny(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,Oy))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Fy=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=Ae.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(V.Fv),t.Y36(f.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"),t.TgZ(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(s){return i.resourceFilter(s)}),t.qZA(),t.YNc(6,My,1,0,"mat-spinner",3),t.YNc(7,Ny,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))},directives:[xn.t,sn.L,_.O5,W.$g,Iy.C],pipes:[u.X$],styles:[""]}),n})();var Py=o(61365),Ry=o(71103),Zy=o(53984);const By=["list"];function Uy(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function Gy(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 Vy=(()=>{class n{constructor(e,i,a,s){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=s,this.loading=!1,this.selection=new F.Ov(!0,[]),this.tableId=Ae.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,Ce.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,Ce.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Ry.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,Ce.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Aa.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,Ce.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Py.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(V.H8),t.Y36(V.Fv),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(By,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"),t.TgZ(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,Uy,1,0,"mat-spinner",6),t.YNc(25,Gy,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))},directives:[xn.t,nt.lW,_.O5,W.$g,Zy.p],pipes:[u.X$,_.uU],styles:[""]}),n})();var zy=o(40009),Hy=o(90719);function Yy(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function Wy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editService()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Xy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).removeService()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function $y(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Qy=function(){return{color:"black"}},Jy=function(n){return["/admin/services",n]};function jy(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),t.TgZ(4,"div",7),t.TgZ(5,"a",8),t._uU(6),t.qZA(),t.TgZ(7,"span",9),t._uU(8),t.qZA(),t.YNc(9,Wy,3,0,"button",10),t.YNc(10,Xy,3,0,"button",11),t.qZA(),t.TgZ(11,"span",12),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",12),t._uU(15),t.ALo(16,"translate"),t.TgZ(17,"span"),t._uU(18),t.ALo(19,"translate"),t.ALo(20,"translate"),t.TgZ(21,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().changeServiceStatus()}),t.TgZ(22,"mat-icon",14),t._uU(23),t.qZA(),t.qZA(),t.qZA(),t._uU(24),t.ALo(25,"translate"),t.TgZ(26,"span"),t._uU(27),t.ALo(28,"translate"),t.ALo(29,"translate"),t.qZA(),t.YNc(30,$y,3,3,"button",15),t.qZA(),t.qZA(),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(31,Qy)),t.xp6(4),t.Q6J("routerLink",t.VKq(32,Jy,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(13,17,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.hij(" ",t.lcZ(16,19,"SERVICE_DETAIL.STATUS"),": "),t.xp6(3),t.hij(" ",e.service.enabled?t.lcZ(19,21,"SERVICE_DETAIL.ENABLED"):t.lcZ(20,23,"SERVICE_DETAIL.DISABLED")," "),t.xp6(5),t.hij(" ",e.service.enabled?"check_circle_outline":"block"," "),t.xp6(1),t.hij(" ",t.lcZ(25,25,"SERVICE_DETAIL.EXPIRED_MEMBERS"),": "),t.xp6(3),t.hij(" ",e.service.useExpiredMembers?t.lcZ(28,27,"SERVICE_DETAIL.PROPAGATED"):t.lcZ(29,29,"SERVICE_DETAIL.NOT_PROPAGATED")," "),t.xp6(3),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let qy=(()=>{class n{constructor(e,i,a,s,d,T,S,P,Y,ot,st){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=s,this.sideMenuService=d,this.sideMenuItemService=T,this.dialog=S,this.authResolver=P,this.translate=Y,this.notificator=ot,this.entityStorageService=st,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.refresh()})}editService(){const e=(0,Ce.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(zy.R,e).afterClosed().subscribe(a=>{a&&this.ngOnInit()})}removeService(){const e=(0,Ce.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Hy.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"])})}changeServiceStatus(){this.loading=!0,this.serviceManager.updateService({service:{name:this.service.name,description:this.service.description,delay:this.service.delay,recurrence:this.service.recurrence,enabled:!this.service.enabled,script:this.service.script,useExpiredMembers:this.service.useExpiredMembers,id:this.service.id,beanName:this.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS")),this.refresh()},()=>this.loading=!1)}evaluateConsents(){const e=(0,Ce.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(Aa.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,this.entityStorageService.setEntity({id:e.id,beanName:e.beanName});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(f.gz),t.Y36(f.F0),t.Y36(V.WY),t.Y36(V.KK),t.Y36(p.D),t.Y36(xu.V),t.Y36(O.uw),t.Y36(U.x4),t.Y36(u.sK),t.Y36(U.V6),t.Y36(U.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","d-flex page-title-headtitle",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",1,"icon-button","mr-2",3,"click"],[1,"align-bottom"],["color","accent","class","action-button ml-2","mat-flat-button","",3,"click",4,"ngIf"],["aria-label","Edit service","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["color","accent","mat-flat-button","",1,"action-button","ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Yy,1,0,"mat-spinner",1),t.YNc(3,jy,31,34,"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.service))},directives:[l.W,_.O5,W.$g,h.Hw,ne.gM,_.PC,f.yS,nt.lW,m.A],pipes:[u.X$],styles:[".icon-button[_ngcontent-%COMP%]{line-height:inherit!important;width:inherit!important;height:inherit!important}"],data:{animation:[wn.Ji]}}),n})(),Ky=(()=>{class n{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:"required-attributes",label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:"destinations",label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},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")},directives:[A.L],styles:[""]}),n})();var t1=o(5254),e1=o(21406),n1=o(826),i1=o(69054);class a1{constructor(r,e){this.keySelector=r,this.flushes=e}call(r,e){return e.subscribe(new s1(r,this.keySelector,this.flushes))}}class s1 extends n1.L{constructor(r,e,i){super(r),this.keySelector=e,this.values=new Set,i&&this.add((0,i1.D)(this,i))}notifyNext(r,e,i,a,s){this.values.clear()}notifyError(r,e){this._error(r)}_next(r){this.keySelector?this._useKeySelector(r):this._finalizeNext(r,r)}_useKeySelector(r){let e;const{destination:i}=this;try{e=this.keySelector(r)}catch(a){return void i.error(a)}this._finalizeNext(e,r)}_finalizeNext(r,e){const{values:i}=this;i.has(r)||(i.add(r),this.destination.next(e))}}var o1=o(61709),yu=o(92014),Tu=o(92821),l1=o(47314),bu=o(4843);function u1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function h1(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 d1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,h1,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){return t.CHM(e),t.oxw().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 f1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10),t.TgZ(1,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),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 p1=(()=>{class n{constructor(e,i,a,s,d,T,S,P){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=s,this.facilitiesService=d,this.consentHubService=T,this.notificator=S,this.translate=P,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,e1.b)(t1.D),(0,ss.U)(Y=>Y.id),function r1(n,r){return e=>e.lift(new a1(n,r))}(),(0,o1.zg)(Y=>this.consentHubService.getConsentHubByFacility(Y)),function c1(n,r){return arguments.length>=2?function(i){return(0,bu.z)((0,yu.R)(n,r),(0,Tu.h)(1),(0,l1.d)(r))(i)}:function(i){return(0,bu.z)((0,yu.R)((a,s,d)=>n(a,s,d+1)),(0,Tu.h)(1))(i)}}((Y,ot)=>Y||ot.enforceConsents,!1),(0,as.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,ss.U)(Y=>Y.enabled),(0,as.O)(!0)),this.attrDefinitions=[],this.selection=new F.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(O.so),t.Y36(O.WI),t.Y36(V.KK),t.Y36(V.H8),t.Y36(V.IQ),t.Y36(V.WY),t.Y36(U.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,u1,1,0,"mat-spinner",1),t.YNc(5,d1,7,14,"div",2),t.YNc(6,f1,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))},directives:[O.uh,_.O5,W.$g,O.xY,rt.w,sn.L,wt,O.H8,nt.lW],pipes:[u.X$,_.Ov],styles:[""]}),n})();function m1(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function g1(n,r){1&n&&t._UZ(0,"th",15)}function _1(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 v1(n,r){1&n&&t._UZ(0,"tr",17)}function x1(n,r){1&n&&t._UZ(0,"tr",18)}function y1(n,r){if(1&n&&(t.TgZ(0,"div",7),t.TgZ(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,g1,1,0,"th",11),t.YNc(10,_1,2,1,"td",12),t.BQk(),t.YNc(11,v1,1,0,"tr",13),t.YNc(12,x1,1,0,"tr",14),t.qZA(),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 T1=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=s,this.translate=d,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(O.so),t.Y36(O.WI),t.Y36(V.KK),t.Y36(U.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,m1,1,0,"mat-spinner",1),t.YNc(5,y1,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[O.uh,_.O5,W.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function b1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 C1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 w1(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function A1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){return t.CHM(e),t.oxw().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 E1=(()=>{class n{constructor(e,i,a,s){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=s,this.loading=!1,this.filterValue="",this.selection=new F.Ov(!0,[]),this.attrDefinitions=[],this.tableId=Ae.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,Ce.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(p1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,Ce.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(T1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.H8),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.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"),t.TgZ(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,b1,3,3,"button",2),t.YNc(6,C1,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(8,w1,1,0,"mat-spinner",5),t.YNc(9,A1,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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,wt],pipes:[u.X$],styles:[""]}),n})();var S1=o(46597),D1=o(89466),L1=o(70242);function k1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 I1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 M1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 O1(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const N1=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function F1(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,N1))("tableId",e.tableId)}}let P1=(()=>{class n{constructor(e,i,a,s,d,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=s,this.authResolver=d,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new F.Ov(!0,[]),this.tableId=Ae.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,Ce.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(D1.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.blockServiceOnDestination(this.service.id,i.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.unblockServiceOnDestinationById(this.service.id,i.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.KK),t.Y36(U.V6),t.Y36(u.sK),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.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"),t.TgZ(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,k1,3,4,"button",2),t.YNc(6,I1,3,4,"button",3),t.YNc(7,M1,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(9,O1,1,0,"mat-spinner",6),t.YNc(10,F1,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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,L1.q],pipes:[u.X$],styles:[""]}),n})();function R1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function Z1(n,r){1&n&&t._UZ(0,"th",13)}function B1(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 U1(n,r){1&n&&t._UZ(0,"tr",15)}function G1(n,r){1&n&&t._UZ(0,"tr",16)}function V1(n,r){if(1&n&&(t.TgZ(0,"div",5),t.TgZ(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,Z1,1,0,"th",9),t.YNc(10,B1,2,1,"td",10),t.BQk(),t.YNc(11,U1,1,0,"tr",11),t.YNc(12,G1,1,0,"tr",12),t.qZA(),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 z1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17),t.TgZ(1,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),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 H1=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=s,this.ownersManagerService=d,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,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.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,R1,1,0,"mat-spinner",1),t.YNc(4,V1,13,9,"div",2),t.YNc(5,z1,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))},directives:[O.uh,_.O5,W.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function Y1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function W1(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 X1(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 $1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",5),t.TgZ(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.qZA(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,W1,3,3,"mat-error",3),t.YNc(12,X1,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field"),t.TgZ(14,"mat-select",7),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().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.qZA(),t.qZA(),t.qZA(),t.TgZ(21,"div",10),t.TgZ(22,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().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(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.qZA(),t.qZA(),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 Q1=(()=>{class n{constructor(e,i,a,s){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=s,this.type="1",s.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new E.NI(null,[E.kI.required,E.kI.pattern(Ce.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(O.so),t.Y36(U.V6),t.Y36(V.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),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Y1,1,0,"mat-spinner",2),t.YNc(5,$1,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))},directives:[O.uh,_.O5,W.$g,O.xY,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.oH,it.TO,It.gD,Rt.ey,O.H8,nt.lW,ne.gM],pipes:[u.X$],styles:[""]}),n})();var J1=o(23256);function j1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 q1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 K1(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function tT(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 eT=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new F.Ov(!0,[]),this.filterValue="",this.tableId=Ae.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,Ce.kZ)();e.width="400px",e.data={},this.dialog.open(Q1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,Ce.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(H1,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.aC),t.Y36(O.uw),t.Y36(U.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"),t.TgZ(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,j1,3,3,"button",2),t.YNc(6,q1,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(8,K1,1,0,"mat-spinner",5),t.YNc(9,tT,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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,J1.Q],pipes:[u.X$],styles:[""]}),n})();var nT=o(74010);function iT(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function rT(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 aT=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=Ae.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(V.IQ),t.Y36(f.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"),t.TgZ(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(s){return i.applyFilter(s)}),t.qZA(),t.YNc(6,iT,1,0,"mat-spinner",3),t.YNc(7,rT,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))},directives:[xn.t,sn.L,_.O5,W.$g,nT.X],pipes:[u.X$],styles:[""]}),n})();var sT=o(64080),oT=o(62707),Sr=o(53251),lT=o(60526),cT=o(24179),uT=o(12651),hT=o(19191);function dT(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function fT(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw().loadMember(a)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function pT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function mT(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const gT=function(){return["id","recent","name","description","expiration"]};function _T(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",16),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return 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,gT))}}const vT=function(n,r){return["/organizations",n,"members",r]};function xT(n,r){if(1&n&&(t.TgZ(0,"div"),t.TgZ(1,"div",10),t.TgZ(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t._uU(6),t.qZA(),t.qZA(),t._UZ(7,"app-member-overview-membership",13),t.TgZ(8,"p",14),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,_T,1,5,"perun-web-apps-groups-list",15),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("routerLink",t.WLB(11,vT,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(1),t.Q6J("member",e.member)("vo",e.selectedVo),t.xp6(2),t.Oqu(t.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function yT(n,r){if(1&n&&(t.YNc(0,mT,1,0,"mat-spinner",1),t.YNc(1,xT,12,14,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function TT(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 bT(n,r){1&n&&t._UZ(0,"mat-spinner")}function CT(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",18),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function wT(n,r){if(1&n&&(t.YNc(0,bT,1,0,"mat-spinner",4),t.YNc(1,CT,1,2,"app-one-entity-attribute-page",17)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function AT(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 ET(n,r){1&n&&t._UZ(0,"mat-spinner")}function ST(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function DT(n,r){if(1&n&&(t.YNc(0,ET,1,0,"mat-spinner",4),t.YNc(1,ST,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function LT(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 kT(n,r){1&n&&t._UZ(0,"mat-spinner")}function IT(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function MT(n,r){if(1&n&&(t.YNc(0,kT,1,0,"mat-spinner",4),t.YNc(1,IT,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function OT(n,r){1&n&&(t.TgZ(0,"mat-tab-group"),t.TgZ(1,"mat-tab"),t.YNc(2,pT,2,3,"ng-template",8),t.YNc(3,yT,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,TT,2,3,"ng-template",8),t.YNc(6,wT,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,AT,2,3,"ng-template",8),t.YNc(9,DT,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,LT,2,3,"ng-template",8),t.YNc(12,MT,2,2,"ng-template",9),t.qZA(),t.qZA())}function NT(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",21),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 FT=(()=>{class n{constructor(e,i,a,s){this.route=e,this.usersService=i,this.membersService=a,this.groupService=s,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.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.member=i,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[sT.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(a=>{this.groups=a,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(V.Fv),t.Y36(V.uq),t.Y36(V.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"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[3,"member","vo"],[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,dT,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,fT,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,OT,13,0,"mat-tab-group",4),t.YNc(7,NT,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))},directives:[_.O5,W.$g,oT.M,Sr.SP,Sr.uX,Sr.uD,Sr.Vc,f.yS,lT.b,cT.W,uT.t,hT.Y,rt.w],pipes:[u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),n})(),Cu=(()=>{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 PT(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 RT(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 ZT(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 BT(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let UT=(()=>{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(O.so),t.Y36(O.WI),t.Y36(In.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"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2),t.TgZ(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(s){return i.tabChanged(s)}),t.TgZ(11,"mat-tab"),t.YNc(12,PT,2,3,"ng-template",4),t.YNc(13,RT,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,ZT,2,3,"ng-template",4),t.YNc(16,BT,2,1,"ng-template",5),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"div",6),t.TgZ(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(),t.qZA(),t.qZA(),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")," ")}},directives:[O.uh,O.xY,Sr.SP,Sr.uX,Sr.uD,Sr.Vc,O.H8,nt.lW,h.Hw],pipes:[u.X$,Cu],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var GT=o(86087),VT=o(36787),zT=o(62383);function HT(n,r){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"mat-spinner",17),t.qZA())}function YT(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 WT(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 XT(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 $T(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 QT(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 JT(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 jT(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 qT(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 KT(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 tb(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 eb(n,r){1&n&&t._UZ(0,"th",20)}function nb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19),t.TgZ(1,"button",21),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().viewDetails(s)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function ib(n,r){1&n&&t._UZ(0,"tr",22)}function rb(n,r){1&n&&t._UZ(0,"tr",23)}function ab(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 sb=(()=>{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=Ce.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,_.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,VT.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,ve.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new U.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING")}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")}viewDetails(e){const i=(0,Ce.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(UT,i)}exportData(e){(0,Ce.O6)((0,Ce.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(U.ly),t.Y36(Ae.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ce.l9,7),t.Gf(je.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",searchString:"searchString"},features:[t._Bn([{provide:GT.ye,useClass:U.Be}]),t.TTD],decls:28,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["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",""],["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("exportData",function(s){return i.exportData(s)}),t.YNc(3,HT,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,YT,3,3,"th",5),t.YNc(8,WT,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,XT,3,3,"th",5),t.YNc(11,$T,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,QT,3,3,"th",9),t.YNc(14,JT,3,3,"td",6),t.BQk(),t.ynx(15,10),t.YNc(16,jT,3,3,"th",9),t.YNc(17,qT,2,1,"td",6),t.BQk(),t.ynx(18,11),t.YNc(19,KT,3,3,"th",9),t.YNc(20,tb,2,1,"td",6),t.BQk(),t.ynx(21,12),t.YNc(22,eb,1,0,"th",9),t.YNc(23,nb,4,3,"td",6),t.BQk(),t.YNc(24,ib,1,0,"tr",13),t.YNc(25,rb,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(26,ab,3,3,"perun-web-apps-alert",15),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,9,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,11,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,13,i.dataSource.loading$)))},directives:[Mn.l,_.O5,W.$g,R.BZ,je.YE,R.w1,R.fO,R.ge,je.nU,R.Dz,R.ev,nt.lW,R.as,R.XQ,R.nj,R.Gk,rt.w],pipes:[_.Ov,u.X$,zT.M,Cu],styles:[""]}),n})(),ob=(()=>{class n{constructor(){this.tableId=Ae.yW,this.refresh=!1}refreshTable(){this.refresh=!this.refresh}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],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._UZ(4,"app-audit-messages-list",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(3),t.Q6J("refresh",i.refresh)("tableId",i.tableId))},directives:[xn.t,sb],pipes:[u.X$],styles:[""]}),n})();var lb=o(4834);let cb=(()=>{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(O.so),t.Y36(O.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1),t.TgZ(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.qZA(),t.TgZ(18,"div",4),t.TgZ(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(),t.qZA(),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")," "))},directives:[O.uh,O.xY,lb.d,rt.w,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function ub(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function hb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,T=t.oxw();return a?T.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function db(n,r){1&n&&(t.TgZ(0,"th",20),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 fb(n,r){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function pb(n,r){1&n&&(t.TgZ(0,"th",20),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 mb(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.name)}}function gb(n,r){1&n&&(t.TgZ(0,"th",20),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 _b(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"mat-slide-toggle",23),t.NdJ("change",function(a){const d=t.CHM(e).$implicit;return t.oxw().changeEnforceFlag(d,a)}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function vb(n,r){1&n&&(t.TgZ(0,"th",20),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 xb(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",25),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 yb(n,r){if(1&n&&(t.TgZ(0,"td",22),t.YNc(1,xb,5,2,"span",24),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function Tb(n,r){1&n&&t._UZ(0,"tr",26)}function bb(n,r){1&n&&t._UZ(0,"tr",27)}function Cb(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),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 wb(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),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"))}let Ab=(()=>{class n{constructor(e,i,a,s,d){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=s,this.consentsManager=d,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new F.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=Ce.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(s=>a+=s.name+" #"+String(s.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new R.by(this.consentHubs),this.setDataSource()}exportData(e){(0,Ce.O6)((0,Ce.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,Ce.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,Ce.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,Ce.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(cb,a).afterClosed().subscribe(d=>{d&&(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(S=>{this.notificator.showSuccess(S)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.UA),t.Y36(O.uw),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ce.l9,7),t.Gf(je.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:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","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","enforceConsents"],["matColumnDef","facilities"],["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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return i.exportData(s)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,ub,2,3,"th",4),t.YNc(5,hb,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,db,3,3,"th",7),t.YNc(8,fb,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,pb,3,3,"th",7),t.YNc(11,mb,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,gb,3,3,"th",7),t.YNc(14,_b,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,vb,3,3,"th",7),t.YNc(17,yb,2,1,"td",10),t.BQk(),t.YNc(18,Tb,1,0,"tr",13),t.YNc(19,bb,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,Cb,3,3,"perun-web-apps-alert",15),t.YNc(21,wb,3,3,"perun-web-apps-alert",15)),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(16),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))},directives:[Mn.l,R.BZ,je.YE,R.w1,R.fO,R.ge,Ut.oG,R.Dz,R.ev,je.nU,Ht.Rr,_.sg,R.as,R.XQ,R.nj,R.Gk,_.O5,rt.w],pipes:[u.X$],styles:[""]}),n})();function Eb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().evaluateConsents()}),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,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function Sb(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Db(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",8),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let Lb=(()=>{class n{constructor(e,i,a,s,d){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=s,this.dialog=d,this.loading=!1,this.tableId=Ae.HE,this.selection=new F.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){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,Ce.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(Aa.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHub(0)})}evaluateConsentsForConsentHub(e){if(e===this.selection.selected.length)return this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),void this.selection.clear();this.consentsManager.evaluateConsentsForConsentHub(this.selection.selected[e].id).subscribe(()=>{this.evaluateConsentsForConsentHub(++e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.WY),t.Y36(U.x4),t.Y36(U.V6),t.Y36(u.sK),t.Y36(O.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["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"],["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"),t.TgZ(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,Eb,3,4,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(7,Sb,1,0,"mat-spinner",4),t.YNc(8,Db,1,4,"app-perun-web-apps-consent-hubs-list",5),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(3),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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,Ab],pipes:[u.X$],styles:[""]}),n})();var kb=o(57788);const Ib=[{path:"",component:C,children:[{path:"",component:k,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:le,data:{animation:"AdminAttributesPage"}},{path:"users",component:Kx.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:eT,data:{animation:"AdminOwnersPage"}},{path:"services",component:ky.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:ob,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:ke,children:[{path:"",component:He,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:rn,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Wt,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:qx,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:_y,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:Lb,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:kb.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:oy,children:[{path:"",component:ly.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:FT,data:{animation:"UserAccountsPage"}},{path:"attributes",component:hy.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:cy.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:uy.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Ly,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:aT,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Fy,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Vy,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:vy.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:xy.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:S1.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:qy,children:[{path:"",component:Ky,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:E1,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:P1,data:{animation:"ServiceDestinationsPage"}}]}];let Mb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[f.Bz.forChild(Ib)],f.Bz]}),n})();var Ob=o(14264),Nb=o(63189),Fb=o(19516),Pb=o(46142);let Rb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[rm,Gx,_.ez,Mb,Ob.m,Nb.r,ci.ez,Fb.d4,Pb.UsersModule]]}),n})()},70242:(w,I,o)=>{"use strict";o.d(I,{q:()=>ne});var c=o(84847),x=o(20449),v=o(32075),_=o(9244),f=o(36908),t=o(5e3),p=o(18750),l=o(77446),h=o(69808),m=o(25245),u=o(29772),g=o(98380),C=o(51062);function A(Ut,vt){if(1&Ut){const ft=t.EpF();t.TgZ(0,"th",21),t.TgZ(1,"mat-checkbox",22),t.NdJ("change",function(Qt){t.CHM(ft);const me=t.oxw();return Qt?me.masterToggle():null}),t.qZA(),t.qZA()}if(2&Ut){const ft=t.oxw();t.xp6(1),t.Q6J("aria-label",ft.checkboxLabel())("checked",ft.selection.hasValue()&&ft.isAllSelected())("indeterminate",ft.selection.hasValue()&&!ft.isAllSelected())}}function k(Ut,vt){if(1&Ut){const ft=t.EpF();t.TgZ(0,"td",23),t.TgZ(1,"mat-checkbox",24),t.NdJ("change",function(Qt){const ge=t.CHM(ft).$implicit,ye=t.oxw();return Qt?ye.selection.toggle(ge):null})("click",function(Qt){return Qt.stopPropagation()}),t.qZA(),t.qZA()}if(2&Ut){const ft=vt.$implicit,Nt=t.oxw();t.xp6(1),t.Q6J("aria-label",Nt.checkboxLabel(ft))("checked",Nt.selection.isSelected(ft))}}function F(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function O(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.hij(" ",ft.id," ")}}function R(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function U(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.service.name)}}function V(Ut,vt){1&Ut&&t._UZ(0,"th",28)}function W(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",30),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function rt(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t.YNc(1,W,3,3,"mat-icon",29),t.qZA()),2&Ut){const ft=vt.$implicit,Nt=t.oxw();t.xp6(1),t.Q6J("ngIf",!Nt.services.has(ft.service.id))}}function nt(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function ut(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.facility.name)}}function J(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function tt(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.destination)}}function Q(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function at(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.type.toUpperCase())}}function H(Ut,vt){1&Ut&&t._UZ(0,"th",28)}function K(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function lt(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function it(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t.YNc(1,K,3,3,"mat-icon",31),t.YNc(2,lt,3,3,"mat-icon",31),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Q6J("ngIf",!ft.blocked),t.xp6(1),t.Q6J("ngIf",ft.blocked)}}function z(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function E(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.propagationType)}}function Ct(Ut,vt){1&Ut&&t._UZ(0,"tr",33)}function It(Ut,vt){1&Ut&&t._UZ(0,"tr",34)}function Rt(Ut,vt){1&Ut&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ht(Ut,vt){1&Ut&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let ne=(()=>{class Ut{constructor(ft,Nt){this.authResolver=ft,this.tableCheckbox=Nt,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=_.f7}set matSort(ft){this.sort=ft,this.setDataSource()}static getDataForColumn(ft,Nt){switch(Nt){case"destinationId":return ft.id.toString();case"service":return ft.service.name;case"facility":return ft.facility.name;case"destination":return ft.destination;case"type":return ft.type;case"status":return ft.blocked?"blocked":"allowed";case"propagationType":return ft.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ft=>"destinationId"!==ft)),this.dataSource=new v.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportData(ft){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,Ut.getDataForColumn),ft)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(ft,Nt)=>(0,_.Sd)(ft,Nt,this.displayedColumns,Ut.getDataForColumn),this.dataSource.sortData=(ft,Nt)=>(0,_.pR)(ft,Nt,Ut.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(ft){return ft?`${this.selection.isSelected(ft)?"deselect":"select"} row ${ft.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Ut.\u0275fac=function(ft){return new(ft||Ut)(t.Y36(f.x4),t.Y36(f.UA))},Ut.\u0275cmp=t.Xpm({type:Ut,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(ft,Nt){if(1&ft&&(t.Gf(_.l9,7),t.Gf(c.YE,7)),2&ft){let Qt;t.iGM(Qt=t.CRH())&&(Nt.child=Qt.first),t.iGM(Qt=t.CRH())&&(Nt.matSort=Qt.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["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"],["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(ft,Nt){1&ft&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(me){return Nt.exportData(me)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,A,2,3,"th",4),t.YNc(5,k,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,F,3,3,"th",7),t.YNc(8,O,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,R,3,3,"th",7),t.YNc(11,U,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,V,1,0,"th",12),t.YNc(14,rt,2,1,"td",10),t.BQk(),t.ynx(15,13),t.YNc(16,nt,3,3,"th",7),t.YNc(17,ut,2,1,"td",10),t.BQk(),t.ynx(18,14),t.YNc(19,J,3,3,"th",7),t.YNc(20,tt,2,1,"td",10),t.BQk(),t.ynx(21,15),t.YNc(22,Q,3,3,"th",7),t.YNc(23,at,2,1,"td",10),t.BQk(),t.ynx(24,16),t.YNc(25,H,1,0,"th",12),t.YNc(26,it,3,2,"td",10),t.BQk(),t.ynx(27,17),t.YNc(28,z,3,3,"th",7),t.YNc(29,E,2,1,"td",10),t.BQk(),t.YNc(30,Ct,1,0,"tr",18),t.YNc(31,It,1,0,"tr",19),t.qZA(),t.qZA(),t.qZA(),t.YNc(32,Rt,3,3,"perun-web-apps-alert",20),t.YNc(33,Ht,3,3,"perun-web-apps-alert",20)),2&ft&&(t.Q6J("hidden",0===Nt.dataSource.filteredData.length||0===Nt.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",Nt.pageSizeOptions)("dataLength",Nt.dataSource.filteredData.length)("tableId",Nt.tableId),t.xp6(1),t.Q6J("dataSource",Nt.dataSource),t.xp6(28),t.Q6J("matHeaderRowDef",Nt.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",Nt.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===Nt.dataSource.filteredData.length&&0!==Nt.destinations.length),t.xp6(1),t.Q6J("ngIf",0===Nt.destinations.length))},directives:[p.l,v.BZ,c.YE,v.w1,v.fO,v.ge,l.oG,v.Dz,v.ev,c.nU,h.O5,m.Hw,u.gM,v.as,v.XQ,v.nj,v.Gk,g.w],pipes:[C.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Ut})()},89466:(w,I,o)=>{"use strict";o.d(I,{u:()=>k});var c=o(32105),x=o(48966),v=o(32075),_=o(36908),f=o(5e3),t=o(51062),p=o(69808),l=o(20773),h=o(98380),m=o(70242),u=o(47423);function g(F,O){1&F&&f._UZ(0,"mat-spinner",6)}function C(F,O){if(1&F&&f._UZ(0,"app-perun-web-apps-destination-list",11),2&F){const R=f.oxw(2);f.Q6J("destinations",R.destinations)("displayedColumns",R.displayedColumns)}}function A(F,O){if(1&F&&(f.TgZ(0,"div",7),f.TgZ(1,"perun-web-apps-alert",8),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"p"),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.TgZ(7,"div",9),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),f.qZA()),2&F){const R=f.oxw();f.xp6(2),f.Oqu(f.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),f.xp6(3),f.Oqu(f.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),f.xp6(3),f.hij(" ",f.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),f.xp6(2),f.Q6J("ngIf",!R.loading)}}let k=(()=>{class F{constructor(R,U,V,W,rt){this.dialogRef=R,this.data=U,this.notificator=V,this.translate=W,this.serviceManager=rt,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 v.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);const R=this.destinations.pop();this.serviceManager.removeDestination(R.service.id,R.facility.id,R.destination,R.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return F.\u0275fac=function(R){return new(R||F)(f.Y36(x.so),f.Y36(x.WI),f.Y36(_.V6),f.Y36(t.sK),f.Y36(c.KK))},F.\u0275cmp=f.Xpm({type:F,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,U){1&R&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div"),f.YNc(4,g,1,0,"mat-spinner",1),f.YNc(5,A,11,10,"div",2),f.TgZ(6,"div",3),f.TgZ(7,"button",4),f.NdJ("click",function(){return U.onCancel()}),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"button",5),f.NdJ("click",function(){return U.onConfirm()}),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.qZA(),f.qZA()),2&R&&(f.xp6(1),f.Oqu(f.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),f.xp6(2),f.Tol(U.theme),f.xp6(1),f.Q6J("ngIf",U.loading),f.xp6(1),f.Q6J("ngIf",!U.loading),f.xp6(3),f.hij(" ",f.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),f.xp6(2),f.Q6J("disabled",U.loading),f.xp6(1),f.hij(" ",f.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},directives:[x.uh,p.O5,l.$g,x.xY,h.w,m.q,x.H8,u.lW],pipes:[t.X$],styles:[""]}),F})()},23256:(w,I,o)=>{"use strict";o.d(I,{Q:()=>tt});var c=o(84847),x=o(20449),v=o(32075),_=o(9244),f=o(36908),t=o(5e3),p=o(18750),l=o(77446),h=o(69808),m=o(98380),u=o(51062);function g(Q,at){if(1&Q){const H=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(lt){t.CHM(H);const it=t.oxw();return lt?it.masterToggle():null}),t.qZA(),t.qZA()}if(2&Q){const H=t.oxw();t.xp6(1),t.Q6J("aria-label",H.checkboxLabel())("checked",H.selection.hasValue()&&H.isAllSelected())("indeterminate",H.selection.hasValue()&&!H.isAllSelected())}}function C(Q,at){if(1&Q){const H=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(lt){const z=t.CHM(H).$implicit,E=t.oxw();return lt?E.selection.toggle(z):null})("click",function(lt){return lt.stopPropagation()}),t.qZA(),t.qZA()}if(2&Q){const H=at.$implicit,K=t.oxw();t.xp6(1),t.Q6J("aria-label",K.checkboxLabel(H))("checked",K.selection.isSelected(H))}}function A(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function k(Q,at){if(1&Q&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.hij(" ",H.id," ")}}function F(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function O(Q,at){if(1&Q&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.Oqu(H.name)}}function R(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function U(Q,at){if(1&Q&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.Oqu(H.contact)}}function V(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function W(Q,at){if(1&Q&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.Oqu(H.type)}}function rt(Q,at){1&Q&&t._UZ(0,"tr",23)}function nt(Q,at){1&Q&&t._UZ(0,"tr",24)}function ut(Q,at){1&Q&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function J(Q,at){1&Q&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let tt=(()=>{class Q{constructor(H,K){this.authResolver=H,this.tableCheckbox=K,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=_.f7}set matSort(H){this.sort=H,this.setDataSource()}static getDataForColumn(H,K){switch(K){case"id":return H.id.toString();case"name":return H.name;case"contact":return H.contact;case"type":return H.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportData(H){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,Q.getDataForColumn),H)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(H,K)=>(0,_.Sd)(H,K,this.displayedColumns,Q.getDataForColumn),this.dataSource.sortData=(H,K)=>(0,_.pR)(H,K,Q.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(H=>"id"!==H)),this.dataSource=new v.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(H){return H?`${this.selection.isSelected(H)?"deselect":"select"} row ${H.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Q.\u0275fac=function(H){return new(H||Q)(t.Y36(f.x4),t.Y36(f.UA))},Q.\u0275cmp=t.Xpm({type:Q,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(H,K){if(1&H&&(t.Gf(_.l9,7),t.Gf(c.YE,7)),2&H){let lt;t.iGM(lt=t.CRH())&&(K.child=lt.first),t.iGM(lt=t.CRH())&&(K.matSort=lt.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","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","contact"],["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","",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(H,K){1&H&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(it){return K.exportData(it)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,g,2,3,"th",4),t.YNc(5,C,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,A,3,3,"th",7),t.YNc(8,k,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,F,3,3,"th",7),t.YNc(11,O,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,R,3,3,"th",7),t.YNc(14,U,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,V,3,3,"th",7),t.YNc(17,W,2,1,"td",10),t.BQk(),t.YNc(18,rt,1,0,"tr",13),t.YNc(19,nt,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,ut,3,3,"perun-web-apps-alert",15),t.YNc(21,J,3,3,"perun-web-apps-alert",15)),2&H&&(t.Q6J("hidden",0===K.owners.length||0===K.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",K.tableId)("dataLength",K.dataSource.filteredData.length)("pageSizeOptions",K.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",K.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",K.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",K.displayedColumns),t.xp6(1),t.Q6J("ngIf",!K.owners.length),t.xp6(1),t.Q6J("ngIf",!K.dataSource.filteredData.length&&K.owners.length))},directives:[p.l,v.BZ,c.YE,v.w1,v.fO,v.ge,l.oG,v.Dz,v.ev,c.nU,v.as,v.XQ,v.nj,v.Gk,h.O5,m.w],pipes:[u.X$],styles:[""]}),Q})()},16087:(w,I,o)=>{"use strict";const c=o(34315),x=o(52872),v=o(40717);w.exports=function _(p,l){switch(x(p)){case"object":return function f(p,l){if("function"==typeof l)return l(p);if(l||v(p)){const h=new p.constructor;for(let m in p)h[m]=_(p[m],l);return h}return p}(p,l);case"array":return function t(p,l){const h=new p.constructor(p.length);for(let m=0;m{"use strict";o.d(I,{Il:()=>x,xV:()=>v,J5:()=>_,ZP:()=>U,SU:()=>rt,B8:()=>nt,Ss:()=>ut,Ym:()=>K});var c=o(68884);function x(){}var v=.7,_=1/v,f="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[f,f,f]+"\\)$"),m=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),u=new RegExp("^rgba\\("+[f,f,f,t]+"\\)$"),g=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,p,p]+"\\)$"),A=new RegExp("^hsla\\("+[t,p,p,t]+"\\)$"),k={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 F(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function U(z){var E,Ct;return z=(z+"").trim().toLowerCase(),(E=l.exec(z))?(Ct=E[1].length,E=parseInt(E[1],16),6===Ct?V(E):3===Ct?new ut(E>>8&15|E>>4&240,E>>4&15|240&E,(15&E)<<4|15&E,1):8===Ct?W(E>>24&255,E>>16&255,E>>8&255,(255&E)/255):4===Ct?W(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(z))?new ut(E[1],E[2],E[3],1):(E=m.exec(z))?new ut(255*E[1]/100,255*E[2]/100,255*E[3]/100,1):(E=u.exec(z))?W(E[1],E[2],E[3],E[4]):(E=g.exec(z))?W(255*E[1]/100,255*E[2]/100,255*E[3]/100,E[4]):(E=C.exec(z))?at(E[1],E[2]/100,E[3]/100,1):(E=A.exec(z))?at(E[1],E[2]/100,E[3]/100,E[4]):k.hasOwnProperty(z)?V(k[z]):"transparent"===z?new ut(NaN,NaN,NaN,0):null}function V(z){return new ut(z>>16&255,z>>8&255,255&z,1)}function W(z,E,Ct,It){return It<=0&&(z=E=Ct=NaN),new ut(z,E,Ct,It)}function rt(z){return z instanceof x||(z=U(z)),z?new ut((z=z.rgb()).r,z.g,z.b,z.opacity):new ut}function nt(z,E,Ct,It){return 1===arguments.length?rt(z):new ut(z,E,Ct,null==It?1:It)}function ut(z,E,Ct,It){this.r=+z,this.g=+E,this.b=+Ct,this.opacity=+It}function J(){return"#"+Q(this.r)+Q(this.g)+Q(this.b)}function tt(){var z=this.opacity;return(1===(z=isNaN(z)?1:Math.max(0,Math.min(1,z)))?"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===z?")":", "+z+")")}function Q(z){return((z=Math.max(0,Math.min(255,Math.round(z)||0)))<16?"0":"")+z.toString(16)}function at(z,E,Ct,It){return It<=0?z=E=Ct=NaN:Ct<=0||Ct>=1?z=E=NaN:E<=0&&(z=NaN),new lt(z,E,Ct,It)}function H(z){if(z instanceof lt)return new lt(z.h,z.s,z.l,z.opacity);if(z instanceof x||(z=U(z)),!z)return new lt;if(z instanceof lt)return z;var E=(z=z.rgb()).r/255,Ct=z.g/255,It=z.b/255,Rt=Math.min(E,Ct,It),Ht=Math.max(E,Ct,It),ne=NaN,Ut=Ht-Rt,vt=(Ht+Rt)/2;return Ut?(ne=E===Ht?(Ct-It)/Ut+6*(Ct0&&vt<1?0:ne,new lt(ne,Ut,vt,z.opacity)}function K(z,E,Ct,It){return 1===arguments.length?H(z):new lt(z,E,Ct,null==It?1:It)}function lt(z,E,Ct,It){this.h=+z,this.s=+E,this.l=+Ct,this.opacity=+It}function it(z,E,Ct){return 255*(z<60?E+(Ct-E)*z/60:z<180?Ct:z<240?E+(Ct-E)*(240-z)/60:E)}(0,c.Z)(x,U,{copy:function(z){return Object.assign(new this.constructor,this,z)},displayable:function(){return this.rgb().displayable()},hex:F,formatHex:F,formatHsl:function O(){return H(this).formatHsl()},formatRgb:R,toString:R}),(0,c.Z)(ut,nt,(0,c.l)(x,{brighter:function(z){return z=null==z?_:Math.pow(_,z),new ut(this.r*z,this.g*z,this.b*z,this.opacity)},darker:function(z){return z=null==z?v:Math.pow(v,z),new ut(this.r*z,this.g*z,this.b*z,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:tt,toString:tt})),(0,c.Z)(lt,K,(0,c.l)(x,{brighter:function(z){return z=null==z?_:Math.pow(_,z),new lt(this.h,this.s,this.l*z,this.opacity)},darker:function(z){return z=null==z?v:Math.pow(v,z),new lt(this.h,this.s,this.l*z,this.opacity)},rgb:function(){var z=this.h%360+360*(this.h<0),E=isNaN(z)||isNaN(this.s)?0:this.s,Ct=this.l,It=Ct+(Ct<.5?Ct:1-Ct)*E,Rt=2*Ct-It;return new ut(it(z>=240?z-240:z+120,Rt,It),it(z,Rt,It),it(z<120?z+240:z-120,Rt,It),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 z=this.opacity;return(1===(z=isNaN(z)?1:Math.max(0,Math.min(1,z)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===z?")":", "+z+")")}}))},68884:(w,I,o)=>{"use strict";function c(v,_,f){v.prototype=_.prototype=f,f.constructor=v}function x(v,_){var f=Object.create(v.prototype);for(var t in _)f[t]=_[t];return f}o.d(I,{Z:()=>c,l:()=>x})},25922:(w,I,o)=>{"use strict";o.d(I,{Z:()=>p});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,m={};l=0&&(u=m.slice(g+1),m=m.slice(0,g)),m&&!h.hasOwnProperty(m))throw new Error("unknown type: "+m);return{type:m,name:u}})}function f(l,h){for(var g,m=0,u=l.length;m0)for(var g,C,m=new Array(g),u=0;u{"use strict";function v(_){return((_*=2)<=1?_*_*_:(_-=2)*_*_+2)/2}o.d(I,{tw:()=>v})},22910:(w,I,o)=>{"use strict";o.d(I,{WU:()=>v,jH:()=>_,ZP:()=>f});var x,v,_,c=o(4753);function f(t){return x=(0,c.Z)(t),v=x.format,_=x.formatPrefix,x}f({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(5326);function x(v){return(v=(0,c.V)(Math.abs(v)))?v[1]:NaN}},5326:(w,I,o)=>{"use strict";function c(v){return Math.abs(v=Math.round(v))>=1e21?v.toLocaleString("en").replace(/,/g,""):v.toString(10)}function x(v,_){if((f=(v=_?v.toExponential(_-1):v.toExponential()).indexOf("e"))<0)return null;var f,t=v.slice(0,f);return[t.length>1?t[0]+t.slice(2):t,+v.slice(f+1)]}o.d(I,{Z:()=>c,V:()=>x})},32517:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x,v:()=>v});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(_){if(!(f=c.exec(_)))throw new Error("invalid format: "+_);var f;return new v({fill:f[1],align:f[2],sign:f[3],symbol:f[4],zero:f[5],width:f[6],comma:f[7],precision:f[8]&&f[8].slice(1),trim:f[9],type:f[10]})}function v(_){this.fill=void 0===_.fill?" ":_.fill+"",this.align=void 0===_.align?">":_.align+"",this.sign=void 0===_.sign?"-":_.sign+"",this.symbol=void 0===_.symbol?"":_.symbol+"",this.zero=!!_.zero,this.width=void 0===_.width?void 0:+_.width,this.comma=!!_.comma,this.precision=void 0===_.precision?void 0:+_.precision,this.trim=!!_.trim,this.type=void 0===_.type?"":_.type+""}x.prototype=v.prototype,v.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,I,o)=>{"use strict";o.r(I),o.d(I,{formatDefaultLocale:()=>c.ZP,format:()=>c.WU,formatPrefix:()=>c.jH,formatLocale:()=>x.Z,formatSpecifier:()=>v.Z,FormatSpecifier:()=>v.v,precisionFixed:()=>_.Z,precisionPrefix:()=>f.Z,precisionRound:()=>t.Z});var c=o(22910),x=o(4753),v=o(32517),_=o(78986),f=o(38914),t=o(65142)},4753:(w,I,o)=>{"use strict";o.d(I,{Z:()=>A});var p,c=o(68520),_=o(32517),t=o(5326);function h(k,F){var O=(0,t.V)(k,F);if(!O)return k+"";var R=O[0],U=O[1];return U<0?"0."+new Array(-U).join("0")+R:R.length>U+1?R.slice(0,U+1)+"."+R.slice(U+1):R+new Array(U-R.length+2).join("0")}const m={"%":(k,F)=>(100*k).toFixed(F),b:k=>Math.round(k).toString(2),c:k=>k+"",d:t.Z,e:(k,F)=>k.toExponential(F),f:(k,F)=>k.toFixed(F),g:(k,F)=>k.toPrecision(F),o:k=>Math.round(k).toString(8),p:(k,F)=>h(100*k,F),r:h,s:function l(k,F){var O=(0,t.V)(k,F);if(!O)return k+"";var R=O[0],U=O[1],V=U-(p=3*Math.max(-8,Math.min(8,Math.floor(U/3))))+1,W=R.length;return V===W?R:V>W?R+new Array(V-W+1).join("0"):V>0?R.slice(0,V)+"."+R.slice(V):"0."+new Array(1-V).join("0")+(0,t.V)(k,Math.max(0,F+V-1))[0]},X:k=>Math.round(k).toString(16).toUpperCase(),x:k=>Math.round(k).toString(16)};function u(k){return k}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function A(k){var F=void 0===k.grouping||void 0===k.thousands?u:function x(k,F){return function(O,R){for(var U=O.length,V=[],W=0,rt=k[0],nt=0;U>0&&rt>0&&(nt+rt+1>R&&(rt=Math.max(1,R-nt)),V.push(O.substring(U-=rt,U+rt)),!((nt+=rt+1)>R));)rt=k[W=(W+1)%k.length];return V.reverse().join(F)}}(g.call(k.grouping,Number),k.thousands+""),O=void 0===k.currency?"":k.currency[0]+"",R=void 0===k.currency?"":k.currency[1]+"",U=void 0===k.decimal?".":k.decimal+"",V=void 0===k.numerals?u:function v(k){return function(F){return F.replace(/[0-9]/g,function(O){return k[+O]})}}(g.call(k.numerals,String)),W=void 0===k.percent?"%":k.percent+"",rt=void 0===k.minus?"\u2212":k.minus+"",nt=void 0===k.nan?"NaN":k.nan+"";function ut(tt){var Q=(tt=(0,_.Z)(tt)).fill,at=tt.align,H=tt.sign,K=tt.symbol,lt=tt.zero,it=tt.width,z=tt.comma,E=tt.precision,Ct=tt.trim,It=tt.type;"n"===It?(z=!0,It="g"):m[It]||(void 0===E&&(E=12),Ct=!0,It="g"),(lt||"0"===Q&&"="===at)&&(lt=!0,Q="0",at="=");var Rt="$"===K?O:"#"===K&&/[boxX]/.test(It)?"0"+It.toLowerCase():"",Ht="$"===K?R:/[%p]/.test(It)?W:"",ne=m[It],Ut=/[defgprs%]/.test(It);function vt(ft){var me,ge,ye,Nt=Rt,Qt=Ht;if("c"===It)Qt=ne(ft)+Qt,ft="";else{var Be=(ft=+ft)<0||1/ft<0;if(ft=isNaN(ft)?nt:ne(Math.abs(ft),E),Ct&&(ft=function f(k){t:for(var U,F=k.length,O=1,R=-1;O0&&(R=0)}return R>0?k.slice(0,R)+k.slice(U+1):k}(ft)),Be&&0==+ft&&"+"!==H&&(Be=!1),Nt=(Be?"("===H?H:rt:"-"===H||"("===H?"":H)+Nt,Qt=("s"===It?C[8+p/3]:"")+Qt+(Be&&"("===H?")":""),Ut)for(me=-1,ge=ft.length;++me(ye=ft.charCodeAt(me))||ye>57){Qt=(46===ye?U+ft.slice(me+1):ft.slice(me))+Qt,ft=ft.slice(0,me);break}}z&&!lt&&(ft=F(ft,1/0));var vn=Nt.length+ft.length+Qt.length,Re=vn>1)+Nt+ft+Qt+Re.slice(vn);break;default:ft=Re+Nt+ft+Qt}return V(ft)}return E=void 0===E?6:/[gprs]/.test(It)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),vt.toString=function(){return tt+""},vt}return{format:ut,formatPrefix:function J(tt,Q){var at=ut(((tt=(0,_.Z)(tt)).type="f",tt)),H=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(Q)/3))),K=Math.pow(10,-H),lt=C[8+H/3];return function(it){return at(K*it)+lt}}}}},78986:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(68520);function x(v){return Math.max(0,-(0,c.Z)(Math.abs(v)))}},38914:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(68520);function x(v,_){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(_)/3)))-(0,c.Z)(Math.abs(v)))}},65142:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(68520);function x(v,_){return v=Math.abs(v),_=Math.abs(_)-v,Math.max(0,(0,c.Z)(_)-(0,c.Z)(v))+1}},9921:function(w,I,o){!function(c,x,v,_,f,t,p,l,h,m){"use strict";function u(q){if(q&&q.__esModule)return q;var pt=Object.create(null);return q&&Object.keys(q).forEach(function(bt){if("default"!==bt){var wt=Object.getOwnPropertyDescriptor(q,bt);Object.defineProperty(pt,bt,wt.get?wt:{enumerable:!0,get:function(){return q[bt]}})}}),pt.default=q,Object.freeze(pt)}var Ot,g=u(x);function C(q,pt,bt){return pt in q?Object.defineProperty(q,pt,{value:bt,enumerable:!0,configurable:!0,writable:!0}):q[pt]=bt,q}function A(q){return function k(q){if(Array.isArray(q))return R(q)}(q)||function F(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function O(q,pt){if(q){if("string"==typeof q)return R(q,pt);var bt=Object.prototype.toString.call(q).slice(8,-1);if("Object"===bt&&q.constructor&&(bt=q.constructor.name),"Map"===bt||"Set"===bt)return Array.from(q);if("Arguments"===bt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(bt))return R(q,pt)}}(q)||function U(){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 bt=0,wt=new Array(pt);bt1&&void 0!==arguments[1]?arguments[1]:0,bt=g.select(this),wt=q.attributes,Xt=bt.node().attributes;if(Xt)for(var te=0;te0?Me.children[0].text:"")}null==Wt.key&&(Xt&&("ellipse"==Ie||"polygon"==Ie)&&(Ie="path"),Wt.key=Ie+"-"+oe)}function He(Wt,oe){Wt.id=(oe?oe.id+".":"")+Wt.key}function $e(Wt){N[Wt.id]=Wt}function fe(Wt,oe){Xt&&Wt.id in le&&("polygon"==oe.tag||"ellipse"==oe.tag||"path"==oe.tag)&&(oe.tag!=Wt.tag||"polygon"==Wt.tag)&&("path"!=oe.tag&&(Wt.alternativeOld=Re(oe,Wt)),"path"!=Wt.tag&&(Wt.alternativeNew=Re(Wt,oe)))}function ve(Wt,oe){if(wt&&oe&&("path"==oe.tag||Wt.alternativeOld&&"path"==Wt.alternativeOld.tag)){var Ie=(Wt.alternativeNew||Wt).attributes.d;if(Wt.alternativeOld)var Me=nt(Wt.alternativeOld);else Me=nt(oe);(Wt.alternativeOld||(Wt.alternativeOld={})).points=function vt(q,pt,bt,wt){for(var Xt=q,te=Xt.cloneNode(),Dt=Xt.getTotalLength(),he=(te.setAttribute("d",pt),te).getTotalLength(),N=[0],le=0,ke=wt?bt:bt/Math.max(Dt,he);(le+=ke)<1;)N.push(le);return N.push(1),N.map(function(rn){var He=Xt.getPointAtLength(rn*Dt),$e=te.getPointAtLength(rn*he);return[[He.x,He.y],[$e.x,$e.y]]})}(Me,Ie,te,Dt)}}function Qe(Wt){var Ie=arguments.length>2?arguments[2]:void 0;rn(Wt,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),He(Wt,Ie);var Ye=le[Wt.id];$e(Wt),fe(Wt,Ye),ve(Wt,Ye);var $n={};Wt.children.forEach(function(En){var Sn=En.tag;("ellipse"==Sn||"polygon"==Sn)&&(Sn="path"),null==$n[Sn]&&($n[Sn]=0),Qe(En,$n[Sn]++,Wt)})}function mt(Wt){(function et(Wt){if(he&&Wt.parent&&"node"==Wt.parent.attributes.class&&"title"==Wt.tag){if(Wt.children.length>0)var Me=Wt.children[0].text;else Me="";ke[Me]=Wt.parent}})(Wt),function gt(Wt){var Ie=Wt.tag;if(he&&!le[Wt.id]&&Wt.parent&&Qt(Wt)&&("path"==Ie||"polygon"==Ie)){if("polygon"==Ie){var Ye=Wt.parent.children.find(function(Jn){return"path"==Jn.tag});Ye&&(Wt.totalLength=Ye.totalLength)}var En=function ge(q){return function me(q){return"edge"==q.parent.attributes.class?q.parent:q.parent.parent.parent}(q).children.find(function(pt){return"title"==pt.tag})}(Wt).children[0],Sn=En.text.split("->");2!=Sn.length&&(Sn=En.text.split("--"));var we=Sn[0],Fn=ke[we],Qn=Oe[we];if(Qn){if((ln=Fn.children.findIndex(function(Jn,Ai){return"g"==Jn.tag}))>=0){var on=Fn.children[ln].children.findIndex(function(Jn,Ai){return"a"==Jn.tag});Fn=Fn.children[ln].children[on]}(ln=Qn.children.findIndex(function(Jn,Ai){return"g"==Jn.tag}))>=0&&(on=Qn.children[ln].children.findIndex(function(Ai,cn){return"a"==Ai.tag}),Qn=Qn.children[ln].children[on]);for(var Un=Fn.children,ln=0;ln0&&this._queue.shift().call(this)}function Zn(q,pt,bt,wt){var Xt=[q*bt-(pt=-pt)*(wt=-wt),q*wt+pt*bt];return[q=Xt[0],pt=-(pt=Xt[1])]}function Di(q,pt,bt,wt,Xt,te,Dt){var N=W(yn.call(this,te));q.data([N]),at.call(q.node(),N),gn(q,pt,bt,wt,Xt,te,Dt)}function gn(q,pt,bt,wt,Xt,te,Dt){var he=Dt.shortening||0,Oe=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],rn=wt-pt,He=Xt-bt,$e=Math.sqrt(rn*rn+He*He);if(0==$e)var fe=1,ve=0;else fe=rn/$e,ve=He/$e;if(wt=pt+($e-he-10-.1)*fe,Xt=bt+($e-he-10-.1)*ve,te.URL||te.tooltip)var Qe=q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),et=Qe.selectWithoutDataPropagation("path"),gt=Qe.selectWithoutDataPropagation("polygon");else et=q.selectWithoutDataPropagation("path"),gt=q.selectWithoutDataPropagation("polygon");var mt=m.path();mt.moveTo(pt,bt),mt.lineTo(wt,Xt),et.attr("d",mt),wt=pt+($e-he-10)*fe,Xt=bt+($e-he-10)*ve;for(var St=0;St b ["+pt+"]}","svg","dot"),N=(new window.DOMParser).parseFromString(Dt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return N.documentElement}).select(".edge")}function Nn(q,pt,bt,wt,Xt,te){var he=W(X.call(this,wt,Xt));return q.data([he]),at.call(q.node(),he),Le(q,pt,bt,Xt),this}function Le(q,pt,bt,wt,Xt){if(wt.URL||wt.tooltip)var te=q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else te=q;var Dt=te.selectAll("ellipse,polygon,path,polyline"),he=q.selectWithoutDataPropagation("text");if(0!=Dt.size()){var N=Dt.node().getBBox();N.cx=N.x+N.width/2,N.cy=N.y+N.height/2}else 0!=he.size()&&(N={x:+he.attr("x"),y:+he.attr("y"),width:0,height:0,cx:+he.attr("x"),cy:+he.attr("y")});return Dt.each(function(le,ke){var Oe=g.select(this);if(Oe.attr("cx"))Oe.attr("cx",K(pt)).attr("cy",K(bt));else if(Oe.attr("points")){var rn=Oe.attr("points").trim();Oe.attr("points",function mn(te,pt,bt){var Xt,wt=(Xt=te.split(" ")).map(function(Dt){return Dt.split(",")});return wt=Xt.map(function(Dt){return[K(+pt+ +Dt.split(",")[0]),K(+bt+ +Dt.split(",")[1])]}),(Xt=wt.map(function(Dt){return Dt.join(",")})).join(" ")}(rn,pt-N.cx,bt-N.cy))}else{var He=Oe.attr("d");Oe.attr("d",function Ve(q,pt,bt){(te=q.split(/[A-Z ]/)).shift();var wt=q.split(/[^[A-Z ]+/),te=(te.map(function(Dt){return Dt.split(",")}),te.map(function(Dt){return[K(+pt+ +Dt.split(",")[0]),K(+bt+ +Dt.split(",")[1])]}).map(function(Dt){return Dt.join(",")}));return wt.reduce(function(Dt,he,N){return Dt.concat(he,te[N])},[]).join("")}(He,pt-N.cx,bt-N.cy))}}),0!=he.size()&&he.attr("x",K(+he.attr("x")+pt-N.cx)).attr("y",K(+he.attr("y")+bt-N.cy)),this}function Bn(){if(!this._drawnNode)return this;var q=this._drawnNode.g;return q.empty()||q.remove(),this._drawnNode=null,this}function G(){return this._drawnNode?this._drawnNode.g:g.select(null)}function X(q,pt){for(var bt="",wt=0,Xt=Object.keys(pt);wt2")(rn)+" ",ve+=He+" ".repeat(te-He.length),ve+=h.format(" >5")($e-bt)+" ","initEnd"!=He&&(ve+=h.format(" >5")($e-wt.start[fe])),"dataProcessEnd"==He&&(ve+=" prepare "+h.format(" >5")($e-wt.layoutEnd[fe])),"renderEnd"==He&&N._transition&&(ve+=" transition start margin "+h.format(" >5")(N._transition.delay()-($e-wt.renderStart[fe])),le=N._transition.delay(),ke=N._transition.duration()),"transitionStart"==He){var Qe=$e-wt.renderStart[fe];ve+=" transition delay "+h.format(" >5")($e-wt.renderStart[fe]),ve+=" expected "+h.format(" >5")(le),ve+=" diff "+h.format(" >5")(Qe-le)}if("transitionEnd"==He){var et=$e-wt.transitionStart[fe];ve+=" transition duration "+h.format(" >5")(et),ve+=" expected "+h.format(" >5")(ke),ve+=" diff "+h.format(" >5")(et-ke)}console.log(ve),bt=$e}:null)},he=0;he5&&void 0!==arguments[5]?arguments[5]:{};if((Xt=Object.assign({},Xt)).style&&Xt.style.includes("invis"))var Dt=g.select(null);else{var le=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Oe=W(yn.call(this,Xt));Dt=le.append("g").data([Oe]),at.call(Dt.node(),Oe),Di.call(this,Dt,q,pt,bt,wt,Xt,te)}return this._drawnEdge={g:Dt,x1:q,y1:pt,x2:bt,y2:wt,attributes:Xt},this},updateDrawnEdge:function qn(q,pt,bt,wt){var Xt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},te=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var Dt=this._drawnEdge.g;return Xt=Object.assign(this._drawnEdge.attributes,Xt),this._drawnEdge.x1=q,this._drawnEdge.y1=pt,this._drawnEdge.x2=bt,this._drawnEdge.y2=wt,!Dt.empty()||Xt.style&&Xt.style.includes("invis")||(Dt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=Dt),Dt.empty()||Di.call(this,Dt,q,pt,bt,wt,Xt,te),this},moveDrawnEdgeEndPoint:function ti(q,pt){var bt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var wt=this._drawnEdge.g,Xt=this._drawnEdge.x1,te=this._drawnEdge.y1,Dt=this._drawnEdge.attributes;return this._drawnEdge.x2=q,this._drawnEdge.y2=pt,gn(wt,Xt,te,q,pt,Dt,bt),this},insertDrawnEdge:function On(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 te=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Dt=te.datum(),he=this._extractData(pt,Dt.children.length,te.datum());return Dt.children.push(he),tt(pt,he),this._drawnEdge=null,this},removeDrawnEdge:wi},"removeDrawnEdge",wi),C(Ot,"drawnEdgeSelection",un),C(Ot,"drawnEdgeSelection",un),C(Ot,"drawNode",function ei(q,pt,bt){var wt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Xt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((wt=Object.assign({},wt)).style&&wt.style.includes("invis"))var te=g.select(null);else{var N=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),ke=W(X.call(this,bt,wt));te=N.append("g").data([ke]),at.call(te.node(),ke),Nn.call(this,te,q,pt,bt,wt,Xt)}return this._drawnNode={g:te,nodeId:bt,x:q,y:pt,attributes:wt},this}),C(Ot,"updateDrawnNode",function ui(q,pt,bt){var wt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Xt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var te=this._drawnNode.g;return null==bt&&(bt=this._drawnNode.nodeId),wt=Object.assign(this._drawnNode.attributes,wt),this._drawnNode.nodeId=bt,this._drawnNode.x=q,this._drawnNode.y=pt,!te.empty()||wt.style&&wt.style.includes("invis")||(te=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=te),te.empty()||Nn.call(this,te,q,pt,bt,wt,Xt),this}),C(Ot,"moveDrawnNode",function Ii(q,pt){if(!this._drawnNode)throw Error("No node has been drawn");var bt=this._drawnNode.g,wt=this._drawnNode.attributes;return this._drawnNode.x=q,this._drawnNode.y=pt,bt.empty()||Le(bt,q,pt,wt),this}),C(Ot,"insertDrawnNode",function fn(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 bt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(q),bt.URL||bt.tooltip){var te=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");te.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var Dt=te.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),Dt=pt.selectWithoutDataPropagation("text");Dt.text(bt.label||q);var le=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),ke=le.datum(),Oe=this._extractData(pt,ke.children.length,le.datum());return ke.children.push(Oe),tt(pt,Oe),this._drawnNode=null,this}),C(Ot,"removeDrawnNode",Bn),C(Ot,"removeDrawnNode",Bn),C(Ot,"drawnNodeSelection",G),C(Ot,"drawnNodeSelection",G),C(Ot,"graphvizVersion",function vn(){return this._graphvizVersion}),Ot),x.selection.prototype.graphviz=function re(q){var pt=this.node().__graphviz__;return pt?(pt.options(q),f.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Bt(this,q),pt},x.selection.prototype.selectWithoutDataPropagation=function qt(q){return g.select(this.size()>0?this.node().querySelector(q):null)},c.graphviz=Yt,Object.defineProperty(c,"__esModule",{value:!0})}(I,o(68557),o(18140),o(35011),o(31566),o(82683),o(60128),o(89397),o(41129),o(12218))},92940:(w,I,o)=>{"use strict";o.d(I,{Z:()=>p});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,m={};l=0&&(u=m.slice(g+1),m=m.slice(0,g)),m&&!h.hasOwnProperty(m))throw new Error("unknown type: "+m);return{type:m,name:u}})}function f(l,h){for(var g,m=0,u=l.length;m0)for(var g,C,m=new Array(g),u=0;u{"use strict";o.r(I),o.d(I,{dispatch:()=>c.Z});var c=o(92940)},97907:(w,I,o)=>{"use strict";function c(v,_,f,t,p){var l=v*v,h=l*v;return((1-3*v+3*l-h)*_+(4-6*l+3*h)*f+(1+3*v+3*l-3*h)*t+h*p)/6}function x(v){var _=v.length-1;return function(f){var t=f<=0?f=0:f>=1?(f=1,_-1):Math.floor(f*_),p=v[t],l=v[t+1];return c((f-t/_)*_,t>0?v[t-1]:2*p-l,p,l,t<_-1?v[t+2]:2*l-p)}}o.d(I,{t:()=>c,Z:()=>x})},77296:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(97907);function x(v){var _=v.length;return function(f){var t=Math.floor(((f%=1)<0?++f:f)*_);return(0,c.t)((f-t/_)*_,v[(t+_-1)%_],v[t%_],v[(t+1)%_],v[(t+2)%_])}}},87237:(w,I,o)=>{"use strict";o.d(I,{wx:()=>_,yi:()=>f,ZP:()=>t});var c=o(89783);function x(p,l){return function(h){return p+h*l}}function _(p,l){var h=l-p;return h?x(p,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(p)?l:p)}function f(p){return 1==(p=+p)?t:function(l,h){return h-l?function v(p,l,h){return p=Math.pow(p,h),l=Math.pow(l,h)-p,h=1/h,function(m){return Math.pow(p+m*l,h)}}(l,h,p):(0,c.Z)(isNaN(l)?h:l)}}function t(p,l){var h=l-p;return h?x(p,h):(0,c.Z)(isNaN(p)?l:p)}},89783:(w,I,o)=>{"use strict";o.d(I,{Z:()=>c});const c=x=>()=>x},82683:(w,I,o)=>{"use strict";o.r(I),o.d(I,{interpolate:()=>g,interpolateArray:()=>f,interpolateBasis:()=>C.Z,interpolateBasisClosed:()=>A.Z,interpolateCubehelix:()=>Kn,interpolateCubehelixLong:()=>Ne,interpolateDate:()=>p,interpolateDiscrete:()=>k,interpolateHcl:()=>Ae,interpolateHclLong:()=>Yn,interpolateHsl:()=>tt,interpolateHslLong:()=>Q,interpolateHue:()=>O,interpolateLab:()=>Ve,interpolateNumber:()=>l.Z,interpolateNumberArray:()=>v,interpolateObject:()=>h,interpolateRgb:()=>x.ZP,interpolateRgbBasis:()=>x.hD,interpolateRgbBasisClosed:()=>x.YD,interpolateRound:()=>R,interpolateString:()=>m.Z,interpolateTransformCss:()=>U.Y,interpolateTransformSvg:()=>U.w,interpolateZoom:()=>ut,piecewise:()=>Xn,quantize:()=>jn});var c=o(52786),x=o(8200);function v(yt,Gt){Gt||(Gt=[]);var _e,se=yt?Math.min(Gt.length,yt.length):0,de=Gt.slice();return function(Ue){for(_e=0;_e.008856451679035631?Math.pow(yt,1/3):yt/Rt+Ct}function Qt(yt){return yt>It?yt*yt*yt:Rt*(yt-Ct)}function me(yt){return 255*(yt<=.0031308?12.92*yt:1.055*Math.pow(yt,1/2.4)-.055)}function ge(yt){return(yt/=255)<=.04045?yt/12.92:Math.pow((yt+.055)/1.055,2.4)}function ye(yt){if(yt instanceof Re)return new Re(yt.h,yt.c,yt.l,yt.opacity);if(yt instanceof ft||(yt=ne(yt)),0===yt.a&&0===yt.b)return new Re(NaN,0{"use strict";function c(x,v){return x=+x,v=+v,function(_){return x*(1-_)+v*_}}o.d(I,{Z:()=>c})},8200:(w,I,o)=>{"use strict";o.d(I,{ZP:()=>f,hD:()=>p,YD:()=>l});var c=o(52786),x=o(97907),v=o(77296),_=o(87237);const f=function h(m){var u=(0,_.yi)(m);function g(C,A){var k=u((C=(0,c.B8)(C)).r,(A=(0,c.B8)(A)).r),F=u(C.g,A.g),O=u(C.b,A.b),R=(0,_.ZP)(C.opacity,A.opacity);return function(U){return C.r=k(U),C.g=F(U),C.b=O(U),C.opacity=R(U),C+""}}return g.gamma=h,g}(1);function t(h){return function(m){var k,F,u=m.length,g=new Array(u),C=new Array(u),A=new Array(u);for(k=0;k{"use strict";o.d(I,{Z:()=>t});var c=o(37815),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(x.source,"g");function t(p,l){var m,u,g,h=x.lastIndex=v.lastIndex=0,C=-1,A=[],k=[];for(p+="",l+="";(m=x.exec(p))&&(u=v.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),A[C]?A[C]+=g:A[++C]=g),(m=m[0])===(u=u[0])?A[C]?A[C]+=u:A[++C]=u:(A[++C]=null,k.push({i:C,x:(0,c.Z)(m,u)})),h=v.lastIndex;return h{"use strict";o.d(I,{Y:()=>h,w:()=>m});var f,c=o(37815),x=180/Math.PI,v={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _(u,g,C,A,k,F){var O,R,U;return(O=Math.sqrt(u*u+g*g))&&(u/=O,g/=O),(U=u*C+g*A)&&(C-=u*U,A-=g*U),(R=Math.sqrt(C*C+A*A))&&(C/=R,A/=R,U/=R),u*A180?W+=360:W-V>180&&(V+=360),nt.push({i:rt.push(k(rt)+"rotate(",null,A)-2,x:(0,c.Z)(V,W)})):W&&rt.push(k(rt)+"rotate("+W+A)}(V.rotate,W.rotate,rt,nt),function R(V,W,rt,nt){V!==W?nt.push({i:rt.push(k(rt)+"skewX(",null,A)-2,x:(0,c.Z)(V,W)}):W&&rt.push(k(rt)+"skewX("+W+A)}(V.skewX,W.skewX,rt,nt),function U(V,W,rt,nt,ut,J){if(V!==rt||W!==nt){var tt=ut.push(k(ut)+"scale(",null,",",null,")");J.push({i:tt-4,x:(0,c.Z)(V,rt)},{i:tt-2,x:(0,c.Z)(W,nt)})}else(1!==rt||1!==nt)&&ut.push(k(ut)+"scale("+rt+","+nt+")")}(V.scaleX,V.scaleY,W.scaleX,W.scaleY,rt,nt),V=W=null,function(ut){for(var Q,J=-1,tt=nt.length;++J{"use strict";o.r(I),o.d(I,{path:()=>p});const c=Math.PI,x=2*c,v=1e-6,_=x-v;function f(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new f}f.prototype=t.prototype={constructor:f,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,m,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+m)+","+(this._y1=+u)},bezierCurveTo:function(l,h,m,u,g,C){this._+="C"+ +l+","+ +h+","+ +m+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,m,u,g){var C=this._x1,A=this._y1,k=(m=+m)-(l=+l),F=(u=+u)-(h=+h),O=C-l,R=A-h,U=O*O+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(U>v)if(Math.abs(R*k-F*O)>v&&g){var V=m-C,W=u-A,rt=k*k+F*F,nt=V*V+W*W,ut=Math.sqrt(rt),J=Math.sqrt(U),tt=g*Math.tan((c-Math.acos((rt+U-nt)/(2*ut*J)))/2),Q=tt/J,at=tt/ut;Math.abs(Q-1)>v&&(this._+="L"+(l+Q*O)+","+(h+Q*R)),this._+="A"+g+","+g+",0,0,"+ +(R*V>O*W)+","+(this._x1=l+at*k)+","+(this._y1=h+at*F)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,m,u,g,C){l=+l,h=+h,C=!!C;var A=(m=+m)*Math.cos(u),k=m*Math.sin(u),F=l+A,O=h+k,R=1^C,U=C?u-g:g-u;if(m<0)throw new Error("negative radius: "+m);null===this._x1?this._+="M"+F+","+O:(Math.abs(this._x1-F)>v||Math.abs(this._y1-O)>v)&&(this._+="L"+F+","+O),m&&(U<0&&(U=U%x+x),U>_?this._+="A"+m+","+m+",0,1,"+R+","+(l-A)+","+(h-k)+"A"+m+","+m+",0,1,"+R+","+(this._x1=F)+","+(this._y1=O):U>v&&(this._+="A"+m+","+m+",0,"+ +(U>=c)+","+R+","+(this._x1=l+m*Math.cos(g))+","+(this._y1=h+m*Math.sin(g))))},rect:function(l,h,m,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +m+"v"+ +u+"h"+-m+"Z"},toString:function(){return this._}};const p=t},31566:(w,I,o)=>{"use strict";o.r(I),o.d(I,{interval:()=>v,now:()=>c.zO,timeout:()=>x.Z,timer:()=>c.HT,timerFlush:()=>c.R8});var c=o(78562),x=o(30406);function v(_,f,t){var p=new c.B7,l=f;return null==f?(p.restart(_,f,t),p):(p._restart=p.restart,p.restart=function(h,m,u){m=+m,u=null==u?(0,c.zO)():+u,p._restart(function g(C){C+=l,p._restart(g,l+=m,u),h(C)},m,u)},p.restart(_,f,t),p)}},30406:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(78562);function x(v,_,f){var t=new c.B7;return t.restart(p=>{t.stop(),v(p+_)},_=null==_?0:+_,f),t}},78562:(w,I,o)=>{"use strict";o.d(I,{zO:()=>g,B7:()=>A,HT:()=>k,R8:()=>F});var f,t,c=0,x=0,v=0,p=0,l=0,h=0,m="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(W){setTimeout(W,17)};function g(){return l||(u(C),l=m.now()+h)}function C(){l=0}function A(){this._call=this._time=this._next=null}function k(W,rt,nt){var ut=new A;return ut.restart(W,rt,nt),ut}function F(){g(),++c;for(var rt,W=f;W;)(rt=l-W._time)>=0&&W._call.call(null,rt),W=W._next;--c}function O(){l=(p=m.now())+h,c=x=0;try{F()}finally{c=0,function U(){for(var W,nt,rt=f,ut=1/0;rt;)rt._call?(ut>rt._time&&(ut=rt._time),W=rt,rt=rt._next):(nt=rt._next,rt._next=null,rt=W?W._next=nt:f=nt);t=W,V(ut)}(),l=0}}function R(){var W=m.now(),rt=W-p;rt>1e3&&(h-=rt,p=W)}function V(W){c||(x&&(x=clearTimeout(x)),W-l>24?(W<1/0&&(x=setTimeout(O,W-m.now()-h)),v&&(v=clearInterval(v))):(v||(p=m.now(),v=setInterval(R,1e3)),c=1,u(O)))}A.prototype=k.prototype={constructor:A,restart:function(W,rt,nt){if("function"!=typeof W)throw new TypeError("callback is not a function");nt=(null==nt?g():+nt)+(null==rt?0:+rt),!this._next&&t!==this&&(t?t._next=this:f=this,t=this),this._call=W,this._time=nt,V()},stop:function(){this._call&&(this._call=null,this._time=1/0,V())}}},35011:(w,I,o)=>{"use strict";o.r(I),o.d(I,{active:()=>fn,interrupt:()=>U,transition:()=>un});var c=o(37853),x=o(92940),v=o(78562),_=o(30406),f=(0,x.Z)("start","end","cancel","interrupt"),t=[];function A(G,X,ht,D,At,Ot){var Bt=G.__transition;if(Bt){if(ht in Bt)return}else G.__transition={};!function R(G,X,ht){var At,D=G.__transition;function Bt(qt){var q,pt,bt,wt;if(1!==ht.state)return re();for(q in D)if((wt=D[q]).name===ht.name){if(3===wt.state)return(0,_.Z)(Bt);4===wt.state?(wt.state=6,wt.timer.stop(),wt.on.call("interrupt",G,G.__data__,wt.index,wt.group),delete D[q]):+q0)throw new Error("too late; already scheduled");return ht}function F(G,X){var ht=O(G,X);if(ht.state>3)throw new Error("too late; already running");return ht}function O(G,X){var ht=G.__transition;if(!ht||!(ht=ht[X]))throw new Error("transition not found");return ht}function U(G,X){var D,At,Bt,ht=G.__transition,Ot=!0;if(ht){for(Bt in X=null==X?null:X+"",ht)(D=ht[Bt]).name===X?(At=D.state>2&&D.state<5,D.state=6,D.timer.stop(),D.on.call(At?"interrupt":"cancel",G,G.__data__,D.index,D.group),delete ht[Bt]):Ot=!1;Ot&&delete G.__transition}}var W=o(43349),rt=o(36175);function nt(G,X){var ht,D;return function(){var At=F(this,G),Ot=At.tween;if(Ot!==ht)for(var Bt=0,Yt=(D=ht=Ot).length;Bt=0&&(X=X.slice(0,ht)),!X||"start"===X})}(X)?k:F;return function(){var Bt=Ot(this,G),Yt=Bt.on;Yt!==D&&(At=(D=Yt).copy()).on(X,ht),Bt.on=At}}var In=o(29742),ci=o(32037),Tn=c.ZP.prototype.constructor,Kn=o(24476);function Xn(G){return function(){this.style.removeProperty(G)}}function de(G,X,ht){return function(D){this.style.setProperty(G,X.call(this,D),ht)}}function _e(G,X,ht){var D,At;function Ot(){var Bt=X.apply(this,arguments);return Bt!==At&&(D=(At=Bt)&&de(G,Bt,ht)),D}return Ot._value=X,Ot}function Ln(G){return function(X){this.textContent=G.call(this,X)}}function qn(G){var X,ht;function D(){var At=G.apply(this,arguments);return At!==ht&&(X=(ht=At)&&Ln(At)),X}return D._value=G,D}var wi=0;function On(G,X,ht,D){this._groups=G,this._parents=X,this._name=ht,this._id=D}function un(G){return(0,c.ZP)().transition(G)}function yn(){return++wi}var ei=c.ZP.prototype;On.prototype=un.prototype={constructor:On,select:function ze(G){var X=this._name,ht=this._id;"function"!=typeof G&&(G=(0,In.Z)(G));for(var D=this._groups,At=D.length,Ot=new Array(At),Bt=0;Bt1&&D.name===X)return new On([[G]],Bn,X,+At);return null}},47927:(w,I,o)=>{"use strict";function c(x){return function(){return x}}o.d(I,{Z:()=>c})},6738:(w,I,o)=>{"use strict";function c(x,v){return x=+x,v=+v,function(_){return x*(1-_)+v*_}}o.d(I,{Z:()=>c})},23534:(w,I,o)=>{"use strict";o.d(I,{ZP:()=>u});var c=o(52786);function x(k,F,O,R,U){var V=k*k,W=V*k;return((1-3*k+3*V-W)*F+(4-6*V+3*W)*O+(1+3*k+3*V-3*W)*R+W*U)/6}var f=o(47927);function m(k,F){var O=F-k;return O?function t(k,F){return function(O){return k+O*F}}(k,O):(0,f.Z)(isNaN(k)?F:k)}const u=function k(F){var O=function h(k){return 1==(k=+k)?m:function(F,O){return O-F?function p(k,F,O){return k=Math.pow(k,O),F=Math.pow(F,O)-k,O=1/O,function(R){return Math.pow(k+R*F,O)}}(F,O,k):(0,f.Z)(isNaN(F)?O:F)}}(F);function R(U,V){var W=O((U=(0,c.B8)(U)).r,(V=(0,c.B8)(V)).r),rt=O(U.g,V.g),nt=O(U.b,V.b),ut=m(U.opacity,V.opacity);return function(J){return U.r=W(J),U.g=rt(J),U.b=nt(J),U.opacity=ut(J),U+""}}return R.gamma=k,R}(1);function g(k){return function(F){var W,rt,O=F.length,R=new Array(O),U=new Array(O),V=new Array(O);for(W=0;W=1?(O=1,F-1):Math.floor(O*F),U=k[R],V=k[R+1];return x((O-R/F)*F,R>0?k[R-1]:2*U-V,U,V,R{"use strict";o.d(I,{Z:()=>t});var c=o(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(x.source,"g");function t(p,l){var m,u,g,h=x.lastIndex=v.lastIndex=0,C=-1,A=[],k=[];for(p+="",l+="";(m=x.exec(p))&&(u=v.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),A[C]?A[C]+=g:A[++C]=g),(m=m[0])===(u=u[0])?A[C]?A[C]+=u:A[++C]=u:(A[++C]=null,k.push({i:C,x:(0,c.Z)(m,u)})),h=v.lastIndex;return h{"use strict";o.d(I,{Y:()=>g,w:()=>C});var f,t,p,l,c=o(6738),x=180/Math.PI,v={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _(A,k,F,O,R,U){var V,W,rt;return(V=Math.sqrt(A*A+k*k))&&(A/=V,k/=V),(rt=A*F+k*O)&&(F-=A*rt,O-=k*rt),(W=Math.sqrt(F*F+O*O))&&(F/=W,O/=W,rt/=W),A*O180?ut+=360:ut-nt>180&&(nt+=360),tt.push({i:J.push(R(J)+"rotate(",null,O)-2,x:(0,c.Z)(nt,ut)})):ut&&J.push(R(J)+"rotate("+ut+O)}(nt.rotate,ut.rotate,J,tt),function W(nt,ut,J,tt){nt!==ut?tt.push({i:J.push(R(J)+"skewX(",null,O)-2,x:(0,c.Z)(nt,ut)}):ut&&J.push(R(J)+"skewX("+ut+O)}(nt.skewX,ut.skewX,J,tt),function rt(nt,ut,J,tt,Q,at){if(nt!==J||ut!==tt){var H=Q.push(R(Q)+"scale(",null,",",null,")");at.push({i:H-4,x:(0,c.Z)(nt,J)},{i:H-2,x:(0,c.Z)(ut,tt)})}else(1!==J||1!==tt)&&Q.push(R(Q)+"scale("+J+","+tt+")")}(nt.scaleX,nt.scaleY,ut.scaleX,ut.scaleY,J,tt),nt=ut=null,function(Q){for(var K,at=-1,H=tt.length;++at{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}o.d(I,{Z:()=>c})},7500:(w,I,o)=>{"use strict";o.d(I,{Z:()=>f});var c=o(36175),x=o(53517);function v(t){return function(){var p=this.ownerDocument,l=this.namespaceURI;return l===x.P&&p.documentElement.namespaceURI===x.P?p.createElement(t):p.createElementNS(l,t)}}function _(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function f(t){var p=(0,c.Z)(t);return(p.local?_:v)(p)}},68557:(w,I,o)=>{"use strict";o.r(I),o.d(I,{create:()=>v,creator:()=>c.Z,local:()=>f,matcher:()=>p.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>m.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>k,selection:()=>A.ZP,selector:()=>F.Z,selectorAll:()=>O.Z,style:()=>R.S,window:()=>U.Z});var c=o(7500),x=o(52016);function v(V){return(0,x.Z)((0,c.Z)(V).call(document.documentElement))}var _=0;function f(){return new t}function t(){this._="@"+(++_).toString(36)}t.prototype=f.prototype={constructor:t,get:function(V){for(var W=this._;!(W in V);)if(!(V=V.parentNode))return;return V[W]},set:function(V,W){return V[this._]=W},remove:function(V){return this._ in V&&delete V[this._]},toString:function(){return this._}};var p=o(97905),l=o(36175),h=o(53517),m=o(29132),u=o(75819);function g(V,W){return V.target&&(V=(0,u.Z)(V),void 0===W&&(W=V.currentTarget),V=V.touches||[V]),Array.from(V,rt=>(0,m.Z)(rt,W))}var C=o(34638),A=o(37853);function k(V){return"string"==typeof V?new A.Y1([document.querySelectorAll(V)],[document.documentElement]):new A.Y1([null==V?[]:(0,C.Z)(V)],A.Jz)}var F=o(29742),O=o(32037),R=o(24476),U=o(2442)},97905:(w,I,o)=>{"use strict";function c(v){return function(){return this.matches(v)}}function x(v){return function(_){return _.matches(v)}}o.d(I,{Z:()=>c,P:()=>x})},36175:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(53517);function x(v){var _=v+="",f=_.indexOf(":");return f>=0&&"xmlns"!==(_=v.slice(0,f))&&(v=v.slice(f+1)),c.Z.hasOwnProperty(_)?{space:c.Z[_],local:v}:v}},53517:(w,I,o)=>{"use strict";o.d(I,{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,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(75819);function x(v,_){if(v=(0,c.Z)(v),void 0===_&&(_=v.currentTarget),_){var f=_.ownerSVGElement||_;if(f.createSVGPoint){var t=f.createSVGPoint();return t.x=v.clientX,t.y=v.clientY,[(t=t.matrixTransform(_.getScreenCTM().inverse())).x,t.y]}if(_.getBoundingClientRect){var p=_.getBoundingClientRect();return[v.clientX-p.left-_.clientLeft,v.clientY-p.top-_.clientTop]}}return[v.pageX,v.pageY]}},52016:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(37853);function x(v){return"string"==typeof v?new c.Y1([[document.querySelector(v)]],[document.documentElement]):new c.Y1([[v]],c.Jz)}},37853:(w,I,o)=>{"use strict";o.d(I,{Y1:()=>Le,ZP:()=>fn,Jz:()=>Nn});var c=o(29742),v=o(34638),_=o(32037),p=o(97905),l=Array.prototype.find;function m(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function O(G){return new Array(G.length)}function U(G,X){this.ownerDocument=G.ownerDocument,this.namespaceURI=G.namespaceURI,this._next=null,this._parent=G,this.__data__=X}function V(G){return function(){return G}}function W(G,X,ht,D,At,Ot){for(var Yt,Bt=0,re=X.length,qt=Ot.length;BtX?1:G>=X?0:NaN}U.prototype={constructor:U,appendChild:function(G){return this._parent.insertBefore(G,this._next)},insertBefore:function(G,X){return this._parent.insertBefore(G,X)},querySelector:function(G){return this._parent.querySelector(G)},querySelectorAll:function(G){return this._parent.querySelectorAll(G)}};var Rt=o(36175);function Ht(G){return function(){this.removeAttribute(G)}}function ne(G){return function(){this.removeAttributeNS(G.space,G.local)}}function Ut(G,X){return function(){this.setAttribute(G,X)}}function vt(G,X){return function(){this.setAttributeNS(G.space,G.local,X)}}function ft(G,X){return function(){var ht=X.apply(this,arguments);null==ht?this.removeAttribute(G):this.setAttribute(G,ht)}}function Nt(G,X){return function(){var ht=X.apply(this,arguments);null==ht?this.removeAttributeNS(G.space,G.local):this.setAttributeNS(G.space,G.local,ht)}}var me=o(24476);function ge(G){return function(){delete this[G]}}function ye(G,X){return function(){this[G]=X}}function Be(G,X){return function(){var ht=X.apply(this,arguments);null==ht?delete this[G]:this[G]=ht}}function Re(G){return G.trim().split(/^|\s+/)}function mn(G){return G.classList||new Ve(G)}function Ve(G){this._node=G,this._names=Re(G.getAttribute("class")||"")}function Ce(G,X){for(var ht=mn(G),D=-1,At=X.length;++D=0&&(this._names.splice(X,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(G){return this._names.indexOf(G)>=0}};var jn=o(7500);function Gt(){return null}function de(){var G=this.parentNode;G&&G.removeChild(this)}function Ue(){var G=this.cloneNode(!1),X=this.parentNode;return X?X.insertBefore(G,this.nextSibling):G}function Fe(){var G=this.cloneNode(!0),X=this.parentNode;return X?X.insertBefore(G,this.nextSibling):G}function qn(G){return G.trim().split(/^|\s+/).map(function(X){var ht="",D=X.indexOf(".");return D>=0&&(ht=X.slice(D+1),X=X.slice(0,D)),{type:X,name:ht}})}function Di(G){return function(){var X=this.__on;if(X){for(var Ot,ht=0,D=-1,At=X.length;ht=le&&(le=N+1);!(Oe=Dt[le])&&++le=0;)(Bt=D[At])&&(Ot&&4^Bt.compareDocumentPosition(Ot)&&Ot.parentNode.insertBefore(Bt,Ot),Ot=Bt);return this},sort:function H(G){function X(pt,bt){return pt&&bt?G(pt.__data__,bt.__data__):!pt-!bt}G||(G=K);for(var ht=this._groups,D=ht.length,At=new Array(D),Ot=0;Ot1?this.each((null==X?ge:"function"==typeof X?Be:ye)(G,X)):this.node()[G]},classed:function xn(G,X){var ht=Re(G+"");if(arguments.length<2){for(var D=mn(this.node()),At=-1,Ot=ht.length;++At{"use strict";o.d(I,{Z:()=>f,S:()=>t});var c=o(2442);function x(p){return function(){this.style.removeProperty(p)}}function v(p,l,h){return function(){this.style.setProperty(p,l,h)}}function _(p,l,h){return function(){var m=l.apply(this,arguments);null==m?this.style.removeProperty(p):this.style.setProperty(p,m,h)}}function f(p,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?_:v)(p,l,null==h?"":h)):t(this.node(),p)}function t(p,l){return p.style.getPropertyValue(l)||(0,c.Z)(p).getComputedStyle(p,null).getPropertyValue(l)}},29742:(w,I,o)=>{"use strict";function c(){}function x(v){return null==v?c:function(){return this.querySelector(v)}}o.d(I,{Z:()=>x})},32037:(w,I,o)=>{"use strict";function c(){return[]}function x(v){return null==v?c:function(){return this.querySelectorAll(v)}}o.d(I,{Z:()=>x})},75819:(w,I,o)=>{"use strict";function c(x){let v;for(;v=x.sourceEvent;)x=v;return x}o.d(I,{Z:()=>c})},2442:(w,I,o)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}o.d(I,{Z:()=>c})},73339:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(49194);function x(v,_,f){var t=new c.B7;return t.restart(function(p){t.stop(),v(p+_)},_=null==_?0:+_,f),t}},49194:(w,I,o)=>{"use strict";o.d(I,{zO:()=>g,B7:()=>A,HT:()=>k,R8:()=>F});var f,t,c=0,x=0,v=0,p=0,l=0,h=0,m="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(W){setTimeout(W,17)};function g(){return l||(u(C),l=m.now()+h)}function C(){l=0}function A(){this._call=this._time=this._next=null}function k(W,rt,nt){var ut=new A;return ut.restart(W,rt,nt),ut}function F(){g(),++c;for(var rt,W=f;W;)(rt=l-W._time)>=0&&W._call.call(null,rt),W=W._next;--c}function O(){l=(p=m.now())+h,c=x=0;try{F()}finally{c=0,function U(){for(var W,nt,rt=f,ut=1/0;rt;)rt._call?(ut>rt._time&&(ut=rt._time),W=rt,rt=rt._next):(nt=rt._next,rt._next=null,rt=W?W._next=nt:f=nt);t=W,V(ut)}(),l=0}}function R(){var W=m.now(),rt=W-p;rt>1e3&&(h-=rt,p=W)}function V(W){c||(x&&(x=clearTimeout(x)),W-l>24?(W<1/0&&(x=setTimeout(O,W-m.now()-h)),v&&(v=clearInterval(v))):(v||(p=m.now(),v=setInterval(R,1e3)),c=1,u(O)))}A.prototype=k.prototype={constructor:A,restart:function(W,rt,nt){if("function"!=typeof W)throw new TypeError("callback is not a function");nt=(null==nt?g():+nt)+(null==rt?0:+rt),!this._next&&t!==this&&(t?t._next=this:f=this,t=this),this._call=W,this._time=nt,V()},stop:function(){this._call&&(this._call=null,this._time=1/0,V())}}},60128:(w,I,o)=>{"use strict";o.r(I),o.d(I,{zoom:()=>Qe,zoomIdentity:()=>he,zoomTransform:()=>N});var c=o(25922),x=o(52016);function _(et){et.preventDefault(),et.stopImmediatePropagation()}function f(et){var gt=et.document.documentElement,mt=(0,x.Z)(et).on("dragstart.drag",_,!0);"onselectstart"in gt?mt.on("selectstart.drag",_,!0):(gt.__noselect=gt.style.MozUserSelect,gt.style.MozUserSelect="none")}function t(et,gt){var mt=et.document.documentElement,St=(0,x.Z)(et).on("dragstart.drag",null);gt&&(St.on("click.drag",_,!0),setTimeout(function(){St.on("click.drag",null)},0)),"onselectstart"in mt?St.on("selectstart.drag",null):(mt.style.MozUserSelect=mt.__noselect,delete mt.__noselect)}var p=Math.SQRT2;function u(et){return((et=Math.exp(et))+1/et)/2}function A(et,gt){var Ie,Me,mt=et[0],St=et[1],zt=et[2],pe=gt[2],xe=gt[0]-mt,Wt=gt[1]-St,oe=xe*xe+Wt*Wt;if(oe<1e-12)Me=Math.log(pe/zt)/p,Ie=function(Fn){return[mt+Fn*xe,St+Fn*Wt,zt*Math.exp(p*Fn*Me)]};else{var Ye=Math.sqrt(oe),$n=(pe*pe-zt*zt+4*oe)/(2*zt*2*Ye),En=(pe*pe-zt*zt-4*oe)/(2*pe*2*Ye),Sn=Math.log(Math.sqrt($n*$n+1)-$n),we=Math.log(Math.sqrt(En*En+1)-En);Me=(we-Sn)/p,Ie=function(Fn){var Qn=Fn*Me,on=u(Sn),ln=zt/(2*Ye)*(on*function C(et){return((et=Math.exp(2*et))-1)/(et+1)}(p*Qn+Sn)-function g(et){return((et=Math.exp(et))-1/et)/2}(Sn));return[mt+ln*xe,St+ln*Wt,zt*on/u(p*Qn+Sn)]}}return Ie.duration=1e3*Me,Ie}var k=o(29132),F=o(37853),O=o(49194),R=o(73339),U=(0,c.Z)("start","end","cancel","interrupt"),V=[];function at(et,gt,mt,St,zt,ee){var Jt=et.__transition;if(Jt){if(mt in Jt)return}else et.__transition={};!function it(et,gt,mt){var zt,St=et.__transition;function Jt(Wt){var oe,Ie,Me,Ye;if(1!==mt.state)return xe();for(oe in St)if((Ye=St[oe]).name===mt.name){if(3===Ye.state)return(0,R.Z)(Jt);4===Ye.state?(Ye.state=6,Ye.timer.stop(),Ye.on.call("interrupt",et,et.__data__,Ye.index,Ye.group),delete St[oe]):+oe0)throw new Error("too late; already scheduled");return mt}function K(et,gt){var mt=lt(et,gt);if(mt.state>3)throw new Error("too late; already running");return mt}function lt(et,gt){var mt=et.__transition;if(!mt||!(mt=mt[gt]))throw new Error("transition not found");return mt}function z(et,gt){var St,zt,Jt,mt=et.__transition,ee=!0;if(mt){for(Jt in gt=null==gt?null:gt+"",mt)(St=mt[Jt]).name===gt?(zt=St.state>2&&St.state<5,St.state=6,St.timer.stop(),St.on.call(zt?"interrupt":"cancel",et,et.__data__,St.index,St.group),delete mt[Jt]):ee=!1;ee&&delete et.__transition}}var Ct=o(75349),It=o(36175);function Rt(et,gt){var mt,St;return function(){var zt=K(this,et),ee=zt.tween;if(ee!==mt)for(var Jt=0,pe=(St=mt=ee).length;Jt=0&&(gt=gt.slice(0,mt)),!gt||"start"===gt})}(gt)?H:K;return function(){var Jt=ee(this,et),pe=Jt.on;pe!==St&&(zt=(St=pe).copy()).on(gt,mt),Jt.on=zt}}var _e=o(29742),Fe=o(32037),Zn=F.ZP.prototype.constructor,qn=o(24476);function gn(et){return function(){this.style.removeProperty(et)}}function yn(et,gt,mt){return function(St){this.style.setProperty(et,gt.call(this,St),mt)}}function ei(et,gt,mt){var St,zt;function ee(){var Jt=gt.apply(this,arguments);return Jt!==zt&&(St=(zt=Jt)&&yn(et,Jt,mt)),St}return ee._value=gt,ee}function Bn(et){return function(gt){this.textContent=et.call(this,gt)}}function fn(et){var gt,mt;function St(){var zt=et.apply(this,arguments);return zt!==mt&&(gt=(mt=zt)&&Bn(zt)),gt}return St._value=et,St}var D=0;function At(et,gt,mt,St){this._groups=et,this._parents=gt,this._name=mt,this._id=St}function Bt(){return++D}var Yt=F.ZP.prototype;At.prototype=function Ot(et){return(0,F.ZP)().transition(et)}.prototype={constructor:At,select:function Ue(et){var gt=this._name,mt=this._id;"function"!=typeof et&&(et=(0,_e.Z)(et));for(var St=this._groups,zt=St.length,ee=new Array(zt),Jt=0;Jt()=>et;function te(et,{sourceEvent:gt,target:mt,transform:St,dispatch:zt}){Object.defineProperties(this,{type:{value:et,enumerable:!0,configurable:!0},sourceEvent:{value:gt,enumerable:!0,configurable:!0},target:{value:mt,enumerable:!0,configurable:!0},transform:{value:St,enumerable:!0,configurable:!0},_:{value:zt}})}function Dt(et,gt,mt){this.k=et,this.x=gt,this.y=mt}Dt.prototype={constructor:Dt,scale:function(et){return 1===et?this:new Dt(this.k*et,this.x,this.y)},translate:function(et,gt){return 0===et&0===gt?this:new Dt(this.k,this.x+this.k*et,this.y+this.k*gt)},apply:function(et){return[et[0]*this.k+this.x,et[1]*this.k+this.y]},applyX:function(et){return et*this.k+this.x},applyY:function(et){return et*this.k+this.y},invert:function(et){return[(et[0]-this.x)/this.k,(et[1]-this.y)/this.k]},invertX:function(et){return(et-this.x)/this.k},invertY:function(et){return(et-this.y)/this.k},rescaleX:function(et){return et.copy().domain(et.range().map(this.invertX,this).map(et.invert,et))},rescaleY:function(et){return et.copy().domain(et.range().map(this.invertY,this).map(et.invert,et))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var he=new Dt(1,0,0);function N(et){for(;!et.__zoom;)if(!(et=et.parentNode))return he;return et.__zoom}function le(et){et.stopImmediatePropagation()}function ke(et){et.preventDefault(),et.stopImmediatePropagation()}function Oe(et){return!(et.ctrlKey&&"wheel"!==et.type||et.button)}function rn(){var et=this;return et instanceof SVGElement?(et=et.ownerSVGElement||et).hasAttribute("viewBox")?[[(et=et.viewBox.baseVal).x,et.y],[et.x+et.width,et.y+et.height]]:[[0,0],[et.width.baseVal.value,et.height.baseVal.value]]:[[0,0],[et.clientWidth,et.clientHeight]]}function He(){return this.__zoom||he}function $e(et){return-et.deltaY*(1===et.deltaMode?.05:et.deltaMode?1:.002)*(et.ctrlKey?10:1)}function fe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ve(et,gt,mt){var St=et.invertX(gt[0][0])-mt[0][0],zt=et.invertX(gt[1][0])-mt[1][0],ee=et.invertY(gt[0][1])-mt[0][1],Jt=et.invertY(gt[1][1])-mt[1][1];return et.translate(zt>St?(St+zt)/2:Math.min(0,St)||Math.max(0,zt),Jt>ee?(ee+Jt)/2:Math.min(0,ee)||Math.max(0,Jt))}function Qe(){var oe,Ie,Me,et=Oe,gt=rn,mt=ve,St=$e,zt=fe,ee=[0,1/0],Jt=[[-1/0,-1/0],[1/0,1/0]],pe=250,xe=A,Wt=(0,c.Z)("start","zoom","end"),En=0,Sn=10;function we(Ft){Ft.property("__zoom",He).on("wheel.zoom",hi).on("mousedown.zoom",zi).on("dblclick.zoom",Jn).filter(zt).on("touchstart.zoom",Ai).on("touchmove.zoom",cn).on("touchend.zoom touchcancel.zoom",Hi).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Fn(Ft,be){return(be=Math.max(ee[0],Math.min(ee[1],be)))===Ft.k?Ft:new Dt(be,Ft.x,Ft.y)}function Qn(Ft,be,jt){var b=be[0]-jt[0]*Ft.k,M=be[1]-jt[1]*Ft.k;return b===Ft.x&&M===Ft.y?Ft:new Dt(Ft.k,b,M)}function on(Ft){return[(+Ft[0][0]+ +Ft[1][0])/2,(+Ft[0][1]+ +Ft[1][1])/2]}function ln(Ft,be,jt,b){Ft.on("start.zoom",function(){Un(this,arguments).event(b).start()}).on("interrupt.zoom end.zoom",function(){Un(this,arguments).event(b).end()}).tween("zoom",function(){var M=this,B=arguments,j=Un(M,B).event(b),ct=gt.apply(M,B),xt=null==jt?on(ct):"function"==typeof jt?jt.apply(M,B):jt,kt=Math.max(ct[1][0]-ct[0][0],ct[1][1]-ct[0][1]),Pt=M.__zoom,ae="function"==typeof be?be.apply(M,B):be,De=xe(Pt.invert(xt).concat(kt/Pt.k),ae.invert(xt).concat(kt/ae.k));return function(Ge){if(1===Ge)Ge=ae;else{var Ke=De(Ge),Ze=kt/Ke[2];Ge=new Dt(Ze,xt[0]-Ke[0]*Ze,xt[1]-Ke[1]*Ze)}j.zoom(null,Ge)}})}function Un(Ft,be,jt){return!jt&&Ft.__zooming||new Vi(Ft,be)}function Vi(Ft,be){this.that=Ft,this.args=be,this.active=0,this.sourceEvent=null,this.extent=gt.apply(Ft,be),this.taps=0}function hi(Ft,...be){if(et.apply(this,arguments)){var jt=Un(this,be).event(Ft),b=this.__zoom,M=Math.max(ee[0],Math.min(ee[1],b.k*Math.pow(2,St.apply(this,arguments)))),B=(0,k.Z)(Ft);if(jt.wheel)(jt.mouse[0][0]!==B[0]||jt.mouse[0][1]!==B[1])&&(jt.mouse[1]=b.invert(jt.mouse[0]=B)),clearTimeout(jt.wheel);else{if(b.k===M)return;jt.mouse=[B,b.invert(B)],z(this),jt.start()}ke(Ft),jt.wheel=setTimeout(j,150),jt.zoom("mouse",mt(Qn(Fn(b,M),jt.mouse[0],jt.mouse[1]),jt.extent,Jt))}function j(){jt.wheel=null,jt.end()}}function zi(Ft,...be){if(!Me&&et.apply(this,arguments)){var jt=Un(this,be,!0).event(Ft),b=(0,x.Z)(Ft.view).on("mousemove.zoom",xt,!0).on("mouseup.zoom",kt,!0),M=(0,k.Z)(Ft,B),B=Ft.currentTarget,j=Ft.clientX,ct=Ft.clientY;f(Ft.view),le(Ft),jt.mouse=[M,this.__zoom.invert(M)],z(this),jt.start()}function xt(Pt){if(ke(Pt),!jt.moved){var ae=Pt.clientX-j,De=Pt.clientY-ct;jt.moved=ae*ae+De*De>En}jt.event(Pt).zoom("mouse",mt(Qn(jt.that.__zoom,jt.mouse[0]=(0,k.Z)(Pt,B),jt.mouse[1]),jt.extent,Jt))}function kt(Pt){b.on("mousemove.zoom mouseup.zoom",null),t(Pt.view,jt.moved),ke(Pt),jt.event(Pt).end()}}function Jn(Ft,...be){if(et.apply(this,arguments)){var jt=this.__zoom,b=(0,k.Z)(Ft.changedTouches?Ft.changedTouches[0]:Ft,this),M=jt.invert(b),B=jt.k*(Ft.shiftKey?.5:2),j=mt(Qn(Fn(jt,B),b,M),gt.apply(this,be),Jt);ke(Ft),pe>0?(0,x.Z)(this).transition().duration(pe).call(ln,j,b,Ft):(0,x.Z)(this).call(we.transform,j,b,Ft)}}function Ai(Ft,...be){if(et.apply(this,arguments)){var B,j,ct,xt,jt=Ft.touches,b=jt.length,M=Un(this,be,Ft.changedTouches.length===b).event(Ft);for(le(Ft),j=0;j{w.exports={graphlib:o(36456),layout:o(14850),debug:o(71914),util:{time:o(11510).time,notime:o(11510).notime},version:o(28126)}},12234:(w,I,o)=>{"use strict";var c=o(45760),x=o(67365);w.exports={run:function v(t){var p="greedy"===t.graph().acyclicer?x(t,function l(h){return function(m){return h.edge(m).weight}}(t)):function _(t){var p=[],l={},h={};return c.forEach(t.nodes(),function m(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?p.push(g):m(g.w)}),delete l[u])}),p}(t);c.forEach(p,function(h){var m=t.edge(h);t.removeEdge(h),m.forwardName=h.name,m.reversed=!0,t.setEdge(h.w,h.v,m,c.uniqueId("rev"))})},undo:function f(t){c.forEach(t.edges(),function(p){var l=t.edge(p);if(l.reversed){t.removeEdge(p);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(p.w,p.v,l,h)}})}}},79999:(w,I,o)=>{var c=o(45760),x=o(11510);function _(f,t,p,l,h,m){var g=h[t][m-1],C=x.addDummyNode(f,"border",{width:0,height:0,rank:m,borderType:t},p);h[t][m]=C,f.setParent(C,l),g&&f.setEdge(g,C,{weight:1})}w.exports=function v(f){c.forEach(f.children(),function t(p){var l=f.children(p),h=f.node(p);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var m=h.minRank,u=h.maxRank+1;m{"use strict";var c=o(45760);function _(m){c.forEach(m.nodes(),function(u){f(m.node(u))}),c.forEach(m.edges(),function(u){f(m.edge(u))})}function f(m){var u=m.width;m.width=m.height,m.height=u}function p(m){m.y=-m.y}function h(m){var u=m.x;m.x=m.y,m.y=u}w.exports={adjust:function x(m){var u=m.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&_(m)},undo:function v(m){var u=m.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(m){c.forEach(m.nodes(),function(u){p(m.node(u))}),c.forEach(m.edges(),function(u){var g=m.edge(u);c.forEach(g.points,p),c.has(g,"y")&&p(g)})}(m),("lr"===u||"rl"===u)&&(function l(m){c.forEach(m.nodes(),function(u){h(m.node(u))}),c.forEach(m.edges(),function(u){var g=m.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(m),_(m))}}},3226:w=>{function I(){var x={};x._next=x._prev=x,this._sentinel=x}function o(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,v){if("_next"!==x&&"_prev"!==x)return v}w.exports=I,I.prototype.dequeue=function(){var x=this._sentinel,v=x._prev;if(v!==x)return o(v),v},I.prototype.enqueue=function(x){var v=this._sentinel;x._prev&&x._next&&o(x),x._next=v._next,v._next._prev=x,v._next=x,x._prev=v},I.prototype.toString=function(){for(var x=[],v=this._sentinel,_=v._prev;_!==v;)x.push(JSON.stringify(_,c)),_=_._prev;return"["+x.join(", ")+"]"}},71914:(w,I,o)=>{var c=o(45760),x=o(11510),v=o(36456).Graph;w.exports={debugOrdering:function _(f){var t=x.buildLayerMatrix(f),p=new v({compound:!0,multigraph:!0}).setGraph({});return c.forEach(f.nodes(),function(l){p.setNode(l,{label:l}),p.setParent(l,"layer"+f.node(l).rank)}),c.forEach(f.edges(),function(l){p.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){p.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return p.setEdge(u,g,{style:"invis"}),g})}),p}}},36456:(w,I,o)=>{var c;try{c=o(85510)}catch(x){}c||(c=window.graphlib),w.exports=c},67365:(w,I,o)=>{var c=o(45760),x=o(36456).Graph,v=o(3226);w.exports=function f(m,u){if(m.nodeCount()<=1)return[];var g=function l(m,u){var g=new x,C=0,A=0;c.forEach(m.nodes(),function(O){g.setNode(O,{v:O,in:0,out:0})}),c.forEach(m.edges(),function(O){var R=g.edge(O.v,O.w)||0,U=u(O);g.setEdge(O.v,O.w,R+U),A=Math.max(A,g.node(O.v).out+=U),C=Math.max(C,g.node(O.w).in+=U)});var k=c.range(A+C+3).map(function(){return new v}),F=C+1;return c.forEach(g.nodes(),function(O){h(k,F,g.node(O))}),{graph:g,buckets:k,zeroIdx:F}}(m,u||_),C=function t(m,u,g){for(var F,C=[],A=u[u.length-1],k=u[0];m.nodeCount();){for(;F=k.dequeue();)p(m,u,g,F);for(;F=A.dequeue();)p(m,u,g,F);if(m.nodeCount())for(var O=u.length-2;O>0;--O)if(F=u[O].dequeue()){C=C.concat(p(m,u,g,F,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(A){return m.outEdges(A.v,A.w)}),!0)};var _=c.constant(1);function p(m,u,g,C,A){var k=A?[]:void 0;return c.forEach(m.inEdges(C.v),function(F){var O=m.edge(F),R=m.node(F.v);A&&k.push({v:F.v,w:F.w}),R.out-=O,h(u,g,R)}),c.forEach(m.outEdges(C.v),function(F){var O=m.edge(F),U=m.node(F.w);U.in-=O,h(u,g,U)}),m.removeNode(C.v),k}function h(m,u,g){g.out?g.in?m[g.out-g.in+u].enqueue(g):m[m.length-1].enqueue(g):m[0].enqueue(g)}},14850:(w,I,o)=>{"use strict";var c=o(45760),x=o(12234),v=o(91496),_=o(94124),f=o(11510).normalizeRanks,t=o(60162),p=o(11510).removeEmptyRanks,l=o(1230),h=o(79999),m=o(83870),u=o(32974),g=o(78226),C=o(11510),A=o(36456).Graph;w.exports=function k(vt,ft){var Nt=ft&&ft.debugTiming?C.time:C.notime;Nt("layout",function(){var Qt=Nt(" buildLayoutGraph",function(){return function tt(vt){var ft=new A({multigraph:!0,compound:!0}),Nt=Ut(vt.graph());return ft.setGraph(c.merge({},U,ne(Nt,R),c.pick(Nt,V))),c.forEach(vt.nodes(),function(Qt){var me=Ut(vt.node(Qt));ft.setNode(Qt,c.defaults(ne(me,W),rt)),ft.setParent(Qt,vt.parent(Qt))}),c.forEach(vt.edges(),function(Qt){var me=Ut(vt.edge(Qt));ft.setEdge(Qt,c.merge({},ut,ne(me,nt),c.pick(me,J)))}),ft}(vt)});Nt(" runLayout",function(){!function F(vt,ft){ft(" makeSpaceForEdgeLabels",function(){!function Q(vt){var ft=vt.graph();ft.ranksep/=2,c.forEach(vt.edges(),function(Nt){var Qt=vt.edge(Nt);Qt.minlen*=2,"c"!==Qt.labelpos.toLowerCase()&&("TB"===ft.rankdir||"BT"===ft.rankdir?Qt.width+=Qt.labeloffset:Qt.height+=Qt.labeloffset)})}(vt)}),ft(" removeSelfEdges",function(){!function It(vt){c.forEach(vt.edges(),function(ft){if(ft.v===ft.w){var Nt=vt.node(ft.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:ft,label:vt.edge(ft)}),vt.removeEdge(ft)}})}(vt)}),ft(" acyclic",function(){x.run(vt)}),ft(" nestingGraph.run",function(){l.run(vt)}),ft(" rank",function(){_(C.asNonCompoundGraph(vt))}),ft(" injectEdgeLabelProxies",function(){!function at(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);if(Nt.width&&Nt.height){var Qt=vt.node(ft.v),me=vt.node(ft.w);C.addDummyNode(vt,"edge-proxy",{rank:(me.rank-Qt.rank)/2+Qt.rank,e:ft},"_ep")}})}(vt)}),ft(" removeEmptyRanks",function(){p(vt)}),ft(" nestingGraph.cleanup",function(){l.cleanup(vt)}),ft(" normalizeRanks",function(){f(vt)}),ft(" assignRankMinMax",function(){!function H(vt){var ft=0;c.forEach(vt.nodes(),function(Nt){var Qt=vt.node(Nt);Qt.borderTop&&(Qt.minRank=vt.node(Qt.borderTop).rank,Qt.maxRank=vt.node(Qt.borderBottom).rank,ft=c.max(ft,Qt.maxRank))}),vt.graph().maxRank=ft}(vt)}),ft(" removeEdgeLabelProxies",function(){!function K(vt){c.forEach(vt.nodes(),function(ft){var Nt=vt.node(ft);"edge-proxy"===Nt.dummy&&(vt.edge(Nt.e).labelRank=Nt.rank,vt.removeNode(ft))})}(vt)}),ft(" normalize.run",function(){v.run(vt)}),ft(" parentDummyChains",function(){t(vt)}),ft(" addBorderSegments",function(){h(vt)}),ft(" order",function(){u(vt)}),ft(" insertSelfEdges",function(){!function Rt(vt){var ft=C.buildLayerMatrix(vt);c.forEach(ft,function(Nt){var Qt=0;c.forEach(Nt,function(me,ge){var ye=vt.node(me);ye.order=ge+Qt,c.forEach(ye.selfEdges,function(Be){C.addDummyNode(vt,"selfedge",{width:Be.label.width,height:Be.label.height,rank:ye.rank,order:ge+ ++Qt,e:Be.e,label:Be.label},"_se")}),delete ye.selfEdges})})}(vt)}),ft(" adjustCoordinateSystem",function(){m.adjust(vt)}),ft(" position",function(){g(vt)}),ft(" positionSelfEdges",function(){!function Ht(vt){c.forEach(vt.nodes(),function(ft){var Nt=vt.node(ft);if("selfedge"===Nt.dummy){var Qt=vt.node(Nt.e.v),me=Qt.x+Qt.width/2,ge=Qt.y,ye=Nt.x-me,Be=Qt.height/2;vt.setEdge(Nt.e,Nt.label),vt.removeNode(ft),Nt.label.points=[{x:me+2*ye/3,y:ge-Be},{x:me+5*ye/6,y:ge-Be},{x:me+ye,y:ge},{x:me+5*ye/6,y:ge+Be},{x:me+2*ye/3,y:ge+Be}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})}(vt)}),ft(" removeBorderNodes",function(){!function Ct(vt){c.forEach(vt.nodes(),function(ft){if(vt.children(ft).length){var Nt=vt.node(ft),Qt=vt.node(Nt.borderTop),me=vt.node(Nt.borderBottom),ge=vt.node(c.last(Nt.borderLeft)),ye=vt.node(c.last(Nt.borderRight));Nt.width=Math.abs(ye.x-ge.x),Nt.height=Math.abs(me.y-Qt.y),Nt.x=ge.x+Nt.width/2,Nt.y=Qt.y+Nt.height/2}}),c.forEach(vt.nodes(),function(ft){"border"===vt.node(ft).dummy&&vt.removeNode(ft)})}(vt)}),ft(" normalize.undo",function(){v.undo(vt)}),ft(" fixupEdgeLabelCoords",function(){!function z(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);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}})}(vt)}),ft(" undoCoordinateSystem",function(){m.undo(vt)}),ft(" translateGraph",function(){!function lt(vt){var ft=Number.POSITIVE_INFINITY,Nt=0,Qt=Number.POSITIVE_INFINITY,me=0,ge=vt.graph(),ye=ge.marginx||0,Be=ge.marginy||0;function vn(Re){var mn=Re.x,Ve=Re.y,Ce=Re.width,Ae=Re.height;ft=Math.min(ft,mn-Ce/2),Nt=Math.max(Nt,mn+Ce/2),Qt=Math.min(Qt,Ve-Ae/2),me=Math.max(me,Ve+Ae/2)}c.forEach(vt.nodes(),function(Re){vn(vt.node(Re))}),c.forEach(vt.edges(),function(Re){var mn=vt.edge(Re);c.has(mn,"x")&&vn(mn)}),ft-=ye,Qt-=Be,c.forEach(vt.nodes(),function(Re){var mn=vt.node(Re);mn.x-=ft,mn.y-=Qt}),c.forEach(vt.edges(),function(Re){var mn=vt.edge(Re);c.forEach(mn.points,function(Ve){Ve.x-=ft,Ve.y-=Qt}),c.has(mn,"x")&&(mn.x-=ft),c.has(mn,"y")&&(mn.y-=Qt)}),ge.width=Nt-ft+ye,ge.height=me-Qt+Be}(vt)}),ft(" assignNodeIntersects",function(){!function it(vt){c.forEach(vt.edges(),function(ft){var ge,ye,Nt=vt.edge(ft),Qt=vt.node(ft.v),me=vt.node(ft.w);Nt.points?(ge=Nt.points[0],ye=Nt.points[Nt.points.length-1]):(Nt.points=[],ge=me,ye=Qt),Nt.points.unshift(C.intersectRect(Qt,ge)),Nt.points.push(C.intersectRect(me,ye))})}(vt)}),ft(" reversePoints",function(){!function E(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);Nt.reversed&&Nt.points.reverse()})}(vt)}),ft(" acyclic.undo",function(){x.undo(vt)})}(Qt,Nt)}),Nt(" updateInputGraph",function(){!function O(vt,ft){c.forEach(vt.nodes(),function(Nt){var Qt=vt.node(Nt),me=ft.node(Nt);Qt&&(Qt.x=me.x,Qt.y=me.y,ft.children(Nt).length&&(Qt.width=me.width,Qt.height=me.height))}),c.forEach(vt.edges(),function(Nt){var Qt=vt.edge(Nt),me=ft.edge(Nt);Qt.points=me.points,c.has(me,"x")&&(Qt.x=me.x,Qt.y=me.y)}),vt.graph().width=ft.graph().width,vt.graph().height=ft.graph().height}(vt,Qt)})})};var R=["nodesep","edgesep","ranksep","marginx","marginy"],U={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},V=["acyclicer","ranker","rankdir","align"],W=["width","height"],rt={width:0,height:0},nt=["minlen","weight","width","height","labeloffset"],ut={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},J=["labelpos"];function ne(vt,ft){return c.mapValues(c.pick(vt,ft),Number)}function Ut(vt){var ft={};return c.forEach(vt,function(Nt,Qt){ft[Qt.toLowerCase()]=Nt}),ft}},45760:(w,I,o)=>{var c;try{c={cloneDeep:o(90733),constant:o(76684),defaults:o(28800),each:o(35474),filter:o(35281),find:o(62516),flatten:o(22274),forEach:o(89851),forIn:o(41176),has:o(54842),isUndefined:o(34235),last:o(25809),map:o(19984),mapValues:o(10203),max:o(18176),merge:o(80567),min:o(29439),minBy:o(29525),now:o(31710),pick:o(16372),range:o(90361),reduce:o(81337),sortBy:o(12906),uniqueId:o(51541),values:o(90377),zipObject:o(21617)}}catch(x){}c||(c=window._),w.exports=c},1230:(w,I,o)=>{var c=o(45760),x=o(11510);function _(l,h,m,u,g,C,A){var k=l.children(A);if(k.length){var F=x.addBorderNode(l,"_bt"),O=x.addBorderNode(l,"_bb"),R=l.node(A);l.setParent(F,A),R.borderTop=F,l.setParent(O,A),R.borderBottom=O,c.forEach(k,function(U){_(l,h,m,u,g,C,U);var V=l.node(U),W=V.borderTop?V.borderTop:U,rt=V.borderBottom?V.borderBottom:U,nt=V.borderTop?u:2*u,ut=W!==rt?1:g-C[A]+1;l.setEdge(F,W,{weight:nt,minlen:ut,nestingEdge:!0}),l.setEdge(rt,O,{weight:nt,minlen:ut,nestingEdge:!0})}),l.parent(A)||l.setEdge(h,F,{weight:0,minlen:g+C[A]})}else A!==h&&l.setEdge(h,A,{weight:0,minlen:m})}w.exports={run:function v(l){var h=x.addDummyNode(l,"root",{},"_root"),m=function f(l){var h={};function m(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(A){m(A,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){m(u,1)}),h}(l),u=c.max(c.values(m))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(A){l.edge(A).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,m){return h+l.edge(m).weight},0)}(l)+1;c.forEach(l.children(),function(A){_(l,h,g,C,u,m,A)}),l.graph().nodeRankFactor=g},cleanup:function p(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(m){l.edge(m).nestingEdge&&l.removeEdge(m)})}}},91496:(w,I,o)=>{"use strict";var c=o(45760),x=o(11510);w.exports={run:function v(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(p){!function _(t,p){var l=p.v,h=t.node(l).rank,m=p.w,u=t.node(m).rank,g=p.name,C=t.edge(p),A=C.labelRank;if(u!==h+1){var k,F,O;for(t.removeEdge(p),O=0,++h;h{var c=o(45760);w.exports=function x(v,_,f){var p,t={};c.forEach(f,function(l){for(var m,u,h=v.parent(l);h;){if((m=v.parent(h))?(u=t[m],t[m]=h):(u=p,p=h),u&&u!==h)return void _.setEdge(u,h);h=m}})}},81323:(w,I,o)=>{var c=o(45760);w.exports=function x(v,_){return c.map(_,function(f){var t=v.inEdges(f);if(t.length){var p=c.reduce(t,function(l,h){var m=v.edge(h),u=v.node(h.v);return{sum:l.sum+m.weight*u.order,weight:l.weight+m.weight}},{sum:0,weight:0});return{v:f,barycenter:p.sum/p.weight,weight:p.weight}}return{v:f}})}},1686:(w,I,o)=>{var c=o(45760),x=o(36456).Graph;w.exports=function v(f,t,p){var l=function _(f){for(var t;f.hasNode(t=c.uniqueId("_root")););return t}(f),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(m){return f.node(m)});return c.forEach(f.nodes(),function(m){var u=f.node(m),g=f.parent(m);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(m),h.setParent(m,g||l),c.forEach(f[p](m),function(C){var A=C.v===m?C.w:C.v,k=h.edge(A,m),F=c.isUndefined(k)?0:k.weight;h.setEdge(A,m,{weight:f.edge(C).weight+F})}),c.has(u,"minRank")&&h.setNode(m,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,I,o)=>{"use strict";var c=o(45760);function v(_,f,t){for(var p=c.zipObject(t,c.map(t,function(C,A){return A})),l=c.flatten(c.map(f,function(C){return c.sortBy(c.map(_.outEdges(C),function(A){return{pos:p[A.w],weight:_.edge(A).weight}}),"pos")}),!0),h=1;h0;)A%2&&(k+=u[A+1]),u[A=A-1>>1]+=C.weight;g+=C.weight*k})),g}w.exports=function x(_,f){for(var t=0,p=1;p{"use strict";var c=o(45760),x=o(49402),v=o(18796),_=o(61057),f=o(1686),t=o(33034),p=o(36456).Graph,l=o(11510);function m(C,A,k){return c.map(A,function(F){return f(C,F,k)})}function u(C,A){var k=new p;c.forEach(C,function(F){var O=F.graph().root,R=_(F,O,k,A);c.forEach(R.vs,function(U,V){F.node(U).order=V}),t(F,k,R.vs)})}function g(C,A){c.forEach(A,function(k){c.forEach(k,function(F,O){C.node(F).order=O})})}w.exports=function h(C){var A=l.maxRank(C),k=m(C,c.range(1,A+1),"inEdges"),F=m(C,c.range(A-1,-1,-1),"outEdges"),O=x(C);g(C,O);for(var U,R=Number.POSITIVE_INFINITY,V=0,W=0;W<4;++V,++W){u(V%2?k:F,V%4>=2),O=l.buildLayerMatrix(C);var rt=v(C,O);rt{"use strict";var c=o(45760);w.exports=function x(v){var _={},f=c.filter(v.nodes(),function(m){return!v.children(m).length}),t=c.max(c.map(f,function(m){return v.node(m).rank})),p=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(f,function(m){return v.node(m).rank});return c.forEach(h,function l(m){if(!c.has(_,m)){_[m]=!0;var u=v.node(m);p[u.rank].push(m),c.forEach(v.successors(m),l)}}),p}},83826:(w,I,o)=>{"use strict";var c=o(45760);w.exports=function x(f,t){var p={};return c.forEach(f,function(h,m){var u=p[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:m};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var m=p[h.v],u=p[h.w];!c.isUndefined(m)&&!c.isUndefined(u)&&(u.indegree++,m.out.push(p[h.w]))}),function v(f){var t=[];function p(m){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(m.barycenter)||u.barycenter>=m.barycenter)&&function _(f,t){var p=0,l=0;f.weight&&(p+=f.barycenter*f.weight,l+=f.weight),t.weight&&(p+=t.barycenter*t.weight,l+=t.weight),f.vs=t.vs.concat(f.vs),f.barycenter=p/l,f.weight=l,f.i=Math.min(t.i,f.i),t.merged=!0}(m,u)}}function l(m){return function(u){u.in.push(m),0==--u.indegree&&f.push(u)}}for(;f.length;){var h=f.pop();t.push(h),c.forEach(h.in.reverse(),p(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(m){return!m.merged}),function(m){return c.pick(m,["vs","i","barycenter","weight"])})}(c.filter(p,function(h){return!h.indegree}))}},61057:(w,I,o)=>{var c=o(45760),x=o(81323),v=o(83826),_=o(93803);w.exports=function f(l,h,m,u){var g=l.children(h),C=l.node(h),A=C?C.borderLeft:void 0,k=C?C.borderRight:void 0,F={};A&&(g=c.filter(g,function(rt){return rt!==A&&rt!==k}));var O=x(l,g);c.forEach(O,function(rt){if(l.children(rt.v).length){var nt=f(l,rt.v,m,u);F[rt.v]=nt,c.has(nt,"barycenter")&&function p(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)}(rt,nt)}});var R=v(O,m);!function t(l,h){c.forEach(l,function(m){m.vs=c.flatten(m.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(R,F);var U=_(R,u);if(A&&(U.vs=c.flatten([A,U.vs,k],!0),l.predecessors(A).length)){var V=l.node(l.predecessors(A)[0]),W=l.node(l.predecessors(k)[0]);c.has(U,"barycenter")||(U.barycenter=0,U.weight=0),U.barycenter=(U.barycenter*U.weight+V.order+W.order)/(U.weight+2),U.weight+=2}return U}},93803:(w,I,o)=>{var c=o(45760),x=o(11510);function _(t,p,l){for(var h;p.length&&(h=c.last(p)).i<=l;)p.pop(),t.push(h.vs),l++;return l}w.exports=function v(t,p){var l=x.partition(t,function(F){return c.has(F,"barycenter")}),h=l.lhs,m=c.sortBy(l.rhs,function(F){return-F.i}),u=[],g=0,C=0,A=0;h.sort(function f(t){return function(p,l){return p.barycenterl.barycenter?1:t?l.i-p.i:p.i-l.i}}(!!p)),A=_(u,m,A),c.forEach(h,function(F){A+=F.vs.length,u.push(F.vs),g+=F.barycenter*F.weight,C+=F.weight,A=_(u,m,A)});var k={vs:c.flatten(u,!0)};return C&&(k.barycenter=g/C,k.weight=C),k}},60162:(w,I,o)=>{var c=o(45760);w.exports=function x(f){var t=function _(f){var t={},p=0;return c.forEach(f.children(),function l(h){var m=p;c.forEach(f.children(h),l),t[h]={low:m,lim:p++}}),t}(f);c.forEach(f.graph().dummyChains,function(p){for(var l=f.node(p),h=l.edgeObj,m=function v(f,t,p,l){var C,A,h=[],m=[],u=Math.min(t[p].low,t[l].low),g=Math.max(t[p].lim,t[l].lim);C=p;do{C=f.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(A=C,C=l;(C=f.parent(C))!==A;)m.push(C);return{path:h.concat(m.reverse()),lca:A}}(f,t,h.v,h.w),u=m.path,g=m.lca,C=0,A=u[C],k=!0;p!==h.w;){if(l=f.node(p),k){for(;(A=u[C])!==g&&f.node(A).maxRank{"use strict";var c=o(45760),x=o(36456).Graph,v=o(11510);function _(R,U){var V={};return c.reduce(U,function W(rt,nt){var ut=0,J=0,tt=rt.length,Q=c.last(nt);return c.forEach(nt,function(at,H){var K=function t(R,U){if(R.node(U).dummy)return c.find(R.predecessors(U),function(V){return R.node(V).dummy})}(R,at),lt=K?R.node(K).order:tt;(K||at===Q)&&(c.forEach(nt.slice(J,H+1),function(it){c.forEach(R.predecessors(it),function(z){var E=R.node(z),Ct=E.order;(CtQ)&&p(V,K,at)})})}return c.reduce(U,function rt(nt,ut){var tt,J=-1,Q=0;return c.forEach(ut,function(at,H){if("border"===R.node(at).dummy){var K=R.predecessors(at);K.length&&(tt=R.node(K[0]).order,W(ut,Q,H,J,tt),Q=H,J=tt)}W(ut,Q,ut.length,tt,nt.length)}),ut}),V}function p(R,U,V){if(U>V){var W=U;U=V,V=W}var rt=R[U];rt||(R[U]=rt={}),rt[V]=!0}function l(R,U,V){if(U>V){var W=U;U=V,V=W}return c.has(R[U],V)}function h(R,U,V,W){var rt={},nt={},ut={};return c.forEach(U,function(J){c.forEach(J,function(tt,Q){rt[tt]=tt,nt[tt]=tt,ut[tt]=Q})}),c.forEach(U,function(J){var tt=-1;c.forEach(J,function(Q){var at=W(Q);if(at.length)for(var H=((at=c.sortBy(at,function(z){return ut[z]})).length-1)/2,K=Math.floor(H),lt=Math.ceil(H);K<=lt;++K){var it=at[K];nt[Q]===Q&&tt{"use strict";var c=o(45760),x=o(11510),v=o(54058).positionX;w.exports=function _(t){(function f(t){var p=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(p,function(m){var u=c.max(c.map(m,function(g){return t.node(g).height}));c.forEach(m,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(v(t),function(p,l){t.node(l).x=p})}},96632:(w,I,o)=>{"use strict";var c=o(45760),x=o(36456).Graph,v=o(1916).slack;function f(l,h){return c.forEach(l.nodes(),function m(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,A=u===C?g.w:C;!l.hasNode(A)&&!v(h,g)&&(l.setNode(A,{}),l.setEdge(u,A,{}),m(A))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(m){if(l.hasNode(m.v)!==l.hasNode(m.w))return v(h,m)})}function p(l,h,m){c.forEach(l.nodes(),function(u){h.node(u).rank+=m})}w.exports=function _(l){var g,C,h=new x({directed:!1}),m=l.nodes()[0],u=l.nodeCount();for(h.setNode(m,{});f(h,l){"use strict";var x=o(1916).longestPath,v=o(96632),_=o(63804);w.exports=function f(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){_(h)}(h);break;case"tight-tree":!function p(h){x(h),v(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,I,o)=>{"use strict";var c=o(45760),x=o(96632),v=o(1916).slack,_=o(1916).longestPath,f=o(36456).alg.preorder,t=o(36456).alg.postorder,p=o(11510).simplify;function l(V){V=p(V),_(V);var rt,W=x(V);for(g(W),h(W,V);rt=A(W);)F(W,V,rt,k(W,V,rt))}function h(V,W){var rt=t(V,V.nodes());rt=rt.slice(0,rt.length-1),c.forEach(rt,function(nt){!function m(V,W,rt){var nt=V.node(rt);V.edge(rt,nt.parent).cutvalue=u(V,W,rt)}(V,W,nt)})}function u(V,W,rt){var ut=V.node(rt).parent,J=!0,tt=W.edge(rt,ut),Q=0;return tt||(J=!1,tt=W.edge(ut,rt)),Q=tt.weight,c.forEach(W.nodeEdges(rt),function(at){var H=at.v===rt,K=H?at.w:at.v;if(K!==ut){var lt=H===J,it=W.edge(at).weight;if(Q+=lt?it:-it,function R(V,W,rt){return V.hasEdge(W,rt)}(V,rt,K)){var z=V.edge(rt,K).cutvalue;Q+=lt?-z:z}}}),Q}function g(V,W){arguments.length<2&&(W=V.nodes()[0]),C(V,{},1,W)}function C(V,W,rt,nt,ut){var J=rt,tt=V.node(nt);return W[nt]=!0,c.forEach(V.neighbors(nt),function(Q){c.has(W,Q)||(rt=C(V,W,rt,Q,nt))}),tt.low=J,tt.lim=rt++,ut?tt.parent=ut:delete tt.parent,rt}function A(V){return c.find(V.edges(),function(W){return V.edge(W).cutvalue<0})}function k(V,W,rt){var nt=rt.v,ut=rt.w;W.hasEdge(nt,ut)||(nt=rt.w,ut=rt.v);var J=V.node(nt),tt=V.node(ut),Q=J,at=!1;J.lim>tt.lim&&(Q=tt,at=!0);var H=c.filter(W.edges(),function(K){return at===U(0,V.node(K.v),Q)&&at!==U(0,V.node(K.w),Q)});return c.minBy(H,function(K){return v(W,K)})}function F(V,W,rt,nt){V.removeEdge(rt.v,rt.w),V.setEdge(nt.v,nt.w,{}),g(V),h(V,W),function O(V,W){var rt=c.find(V.nodes(),function(ut){return!W.node(ut).parent}),nt=f(V,rt);nt=nt.slice(1),c.forEach(nt,function(ut){var J=V.node(ut).parent,tt=W.edge(ut,J),Q=!1;tt||(tt=W.edge(J,ut),Q=!0),W.node(ut).rank=W.node(J).rank+(Q?tt.minlen:-tt.minlen)})}(V,W)}function U(V,W,rt){return rt.low<=W.lim&&W.lim<=rt.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=A,l.enterEdge=k,l.exchangeEdges=F},1916:(w,I,o)=>{"use strict";var c=o(45760);w.exports={longestPath:function x(_){var f={};c.forEach(_.sources(),function t(p){var l=_.node(p);if(c.has(f,p))return l.rank;f[p]=!0;var h=c.min(c.map(_.outEdges(p),function(m){return t(m.w)-_.edge(m).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function v(_,f){return _.node(f.w).rank-_.node(f.v).rank-_.edge(f).minlen}}},11510:(w,I,o)=>{"use strict";var c=o(45760),x=o(36456).Graph;function v(O,R,U,V){var W;do{W=c.uniqueId(V)}while(O.hasNode(W));return U.dummy=R,O.setNode(W,U),W}function C(O){return c.max(c.map(O.nodes(),function(R){var U=O.node(R).rank;if(!c.isUndefined(U))return U}))}w.exports={addDummyNode:v,simplify:function _(O){var R=(new x).setGraph(O.graph());return c.forEach(O.nodes(),function(U){R.setNode(U,O.node(U))}),c.forEach(O.edges(),function(U){var V=R.edge(U.v,U.w)||{weight:0,minlen:1},W=O.edge(U);R.setEdge(U.v,U.w,{weight:V.weight+W.weight,minlen:Math.max(V.minlen,W.minlen)})}),R},asNonCompoundGraph:function f(O){var R=new x({multigraph:O.isMultigraph()}).setGraph(O.graph());return c.forEach(O.nodes(),function(U){O.children(U).length||R.setNode(U,O.node(U))}),c.forEach(O.edges(),function(U){R.setEdge(U,O.edge(U))}),R},successorWeights:function t(O){var R=c.map(O.nodes(),function(U){var V={};return c.forEach(O.outEdges(U),function(W){V[W.w]=(V[W.w]||0)+O.edge(W).weight}),V});return c.zipObject(O.nodes(),R)},predecessorWeights:function p(O){var R=c.map(O.nodes(),function(U){var V={};return c.forEach(O.inEdges(U),function(W){V[W.v]=(V[W.v]||0)+O.edge(W).weight}),V});return c.zipObject(O.nodes(),R)},intersectRect:function l(O,R){var J,tt,U=O.x,V=O.y,W=R.x-U,rt=R.y-V,nt=O.width/2,ut=O.height/2;if(!W&&!rt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(rt)*nt>Math.abs(W)*ut?(rt<0&&(ut=-ut),J=ut*W/rt,tt=ut):(W<0&&(nt=-nt),J=nt,tt=nt*rt/W),{x:U+J,y:V+tt}},buildLayerMatrix:function h(O){var R=c.map(c.range(C(O)+1),function(){return[]});return c.forEach(O.nodes(),function(U){var V=O.node(U),W=V.rank;c.isUndefined(W)||(R[W][V.order]=U)}),R},normalizeRanks:function m(O){var R=c.min(c.map(O.nodes(),function(U){return O.node(U).rank}));c.forEach(O.nodes(),function(U){var V=O.node(U);c.has(V,"rank")&&(V.rank-=R)})},removeEmptyRanks:function u(O){var R=c.min(c.map(O.nodes(),function(rt){return O.node(rt).rank})),U=[];c.forEach(O.nodes(),function(rt){var nt=O.node(rt).rank-R;U[nt]||(U[nt]=[]),U[nt].push(rt)});var V=0,W=O.graph().nodeRankFactor;c.forEach(U,function(rt,nt){c.isUndefined(rt)&&nt%W!=0?--V:V&&c.forEach(rt,function(ut){O.node(ut).rank+=V})})},addBorderNode:function g(O,R,U,V){var W={width:0,height:0};return arguments.length>=4&&(W.rank=U,W.order=V),v(O,"border",W,R)},maxRank:C,partition:function A(O,R){var U={lhs:[],rhs:[]};return c.forEach(O,function(V){R(V)?U.lhs.push(V):U.rhs.push(V)}),U},time:function k(O,R){var U=c.now();try{return R()}finally{console.log(O+" time: "+(c.now()-U)+"ms")}},notime:function F(O,R){return R()}}},28126:w=>{w.exports="0.8.5"},85510:(w,I,o)=>{var c=o(51838);w.exports={Graph:c.Graph,json:o(21088),alg:o(83430),version:c.version}},86730:(w,I,o)=>{var c=o(79138);w.exports=function x(v){var t,_={},f=[];function p(l){c.has(_,l)||(_[l]=!0,t.push(l),c.each(v.successors(l),p),c.each(v.predecessors(l),p))}return c.each(v.nodes(),function(l){t=[],p(l),t.length&&f.push(t)}),f}},22163:(w,I,o)=>{var c=o(79138);function v(_,f,t,p,l,h){c.has(p,f)||(p[f]=!0,t||h.push(f),c.each(l(f),function(m){v(_,m,t,p,l,h)}),t&&h.push(f))}w.exports=function x(_,f,t){c.isArray(f)||(f=[f]);var p=(_.isDirected()?_.successors:_.neighbors).bind(_),l=[],h={};return c.each(f,function(m){if(!_.hasNode(m))throw new Error("Graph does not have node: "+m);v(_,m,"post"===t,h,p,l)}),l}},25668:(w,I,o)=>{var c=o(61718),x=o(79138);w.exports=function v(_,f,t){return x.transform(_.nodes(),function(p,l){p[l]=c(_,l,f,t)},{})}},61718:(w,I,o)=>{var c=o(79138),x=o(31919);w.exports=function _(t,p,l,h){return function f(t,p,l,h){var g,C,m={},u=new x,A=function(k){var F=k.v!==g?k.v:k.w,O=m[F],R=l(k),U=C.distance+R;if(R<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+k+" Weight: "+R);U0&&(g=u.removeMin(),(C=m[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(A);return m}(t,String(p),l||v,h||function(m){return t.outEdges(m)})};var v=c.constant(1)},9611:(w,I,o)=>{var c=o(79138),x=o(73585);w.exports=function v(_){return c.filter(x(_),function(f){return f.length>1||1===f.length&&_.hasEdge(f[0],f[0])})}},22881:(w,I,o)=>{var c=o(79138);w.exports=function v(f,t,p){return function _(f,t,p){var l={},h=f.nodes();return h.forEach(function(m){l[m]={},l[m][m]={distance:0},h.forEach(function(u){m!==u&&(l[m][u]={distance:Number.POSITIVE_INFINITY})}),p(m).forEach(function(u){var g=u.v===m?u.w:u.v,C=t(u);l[m][g]={distance:C,predecessor:m}})}),h.forEach(function(m){var u=l[m];h.forEach(function(g){var C=l[g];h.forEach(function(A){var F=u[A],O=C[A],R=C[m].distance+F.distance;R{w.exports={components:o(86730),dijkstra:o(61718),dijkstraAll:o(25668),findCycles:o(9611),floydWarshall:o(22881),isAcyclic:o(46693),postorder:o(46694),preorder:o(5330),prim:o(46823),tarjan:o(73585),topsort:o(52180)}},46693:(w,I,o)=>{var c=o(52180);w.exports=function x(v){try{c(v)}catch(_){if(_ instanceof c.CycleException)return!1;throw _}return!0}},46694:(w,I,o)=>{var c=o(22163);w.exports=function x(v,_){return c(v,_,"post")}},5330:(w,I,o)=>{var c=o(22163);w.exports=function x(v,_){return c(v,_,"pre")}},46823:(w,I,o)=>{var c=o(79138),x=o(66568),v=o(31919);w.exports=function _(f,t){var m,p=new x,l={},h=new v;function u(C){var A=C.v===m?C.w:C.v,k=h.priority(A);if(void 0!==k){var F=t(C);F0;){if(m=h.removeMin(),c.has(l,m))p.setEdge(m,l[m]);else{if(g)throw new Error("Input graph is not connected: "+f);g=!0}f.nodeEdges(m).forEach(u)}return p}},73585:(w,I,o)=>{var c=o(79138);w.exports=function x(v){var _=0,f=[],t={},p=[];function l(h){var m=t[h]={onStack:!0,lowlink:_,index:_++};if(f.push(h),v.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(m.lowlink=Math.min(m.lowlink,t[C].index)):(l(C),m.lowlink=Math.min(m.lowlink,t[C].lowlink))}),m.lowlink===m.index){var g,u=[];do{g=f.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);p.push(u)}}return v.nodes().forEach(function(h){c.has(t,h)||l(h)}),p}},52180:(w,I,o)=>{var c=o(79138);function x(_){var f={},t={},p=[];if(c.each(_.sinks(),function l(h){if(c.has(t,h))throw new v;c.has(f,h)||(t[h]=!0,f[h]=!0,c.each(_.predecessors(h),l),delete t[h],p.push(h))}),c.size(f)!==_.nodeCount())throw new v;return p}function v(){}w.exports=x,x.CycleException=v,v.prototype=new Error},31919:(w,I,o)=>{var c=o(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(v){return v.key})},x.prototype.has=function(v){return c.has(this._keyIndices,v)},x.prototype.priority=function(v){var _=this._keyIndices[v];if(void 0!==_)return this._arr[_].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(v,_){var f=this._keyIndices;if(v=String(v),!c.has(f,v)){var t=this._arr,p=t.length;return f[v]=p,t.push({key:v,priority:_}),this._decrease(p),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var v=this._arr.pop();return delete this._keyIndices[v.key],this._heapify(0),v.key},x.prototype.decrease=function(v,_){var f=this._keyIndices[v];if(_>this._arr[f].priority)throw new Error("New priority is greater than current priority. Key: "+v+" Old: "+this._arr[f].priority+" New: "+_);this._arr[f].priority=_,this._decrease(f)},x.prototype._heapify=function(v){var _=this._arr,f=2*v,t=f+1,p=v;f<_.length&&(p=_[f].priority<_[p].priority?f:p,t<_.length&&(p=_[t].priority<_[p].priority?t:p),p!==v&&(this._swap(v,p),this._heapify(p)))},x.prototype._decrease=function(v){for(var t,_=this._arr,f=_[v].priority;0!==v&&!(_[t=v>>1].priority{"use strict";var c=o(79138);w.exports=f;var v="\0";function f(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[v]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function p(u,g){--u[g]||delete u[g]}function l(u,g,C,A){var k=""+g,F=""+C;if(!u&&k>F){var O=k;k=F,F=O}return k+"\x01"+F+"\x01"+(c.isUndefined(A)?"\0":A)}function h(u,g,C,A){var k=""+g,F=""+C;if(!u&&k>F){var O=k;k=F,F=O}var R={v:k,w:F};return A&&(R.name=A),R}function m(u,g){return l(u,g.v,g.w,g.name)}f.prototype._nodeCount=0,f.prototype._edgeCount=0,f.prototype.isDirected=function(){return this._isDirected},f.prototype.isMultigraph=function(){return this._isMultigraph},f.prototype.isCompound=function(){return this._isCompound},f.prototype.setGraph=function(u){return this._label=u,this},f.prototype.graph=function(){return this._label},f.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},f.prototype.nodeCount=function(){return this._nodeCount},f.prototype.nodes=function(){return c.keys(this._nodes)},f.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},f.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},f.prototype.setNodes=function(u,g){var C=arguments,A=this;return c.each(u,function(k){C.length>1?A.setNode(k,g):A.setNode(k)}),this},f.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]=v,this._children[u]={},this._children[v][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},f.prototype.node=function(u){return this._nodes[u]},f.prototype.hasNode=function(u){return c.has(this._nodes,u)},f.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(A){g.removeEdge(g._edgeObjs[A])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(A){g.setParent(A)}),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},f.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=v;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},f.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},f.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==v)return g}},f.prototype.children=function(u){if(c.isUndefined(u)&&(u=v),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===v)return this.nodes();if(this.hasNode(u))return[]}},f.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},f.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},f.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},f.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},f.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(F,O){u(O)&&g.setNode(O,F)}),c.each(this._edgeObjs,function(F){g.hasNode(F.v)&&g.hasNode(F.w)&&g.setEdge(F,C.edge(F))});var A={};function k(F){var O=C.parent(F);return void 0===O||g.hasNode(O)?(A[F]=O,O):O in A?A[O]:k(O)}return this._isCompound&&c.each(g.nodes(),function(F){g.setParent(F,k(F))}),g},f.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},f.prototype.edgeCount=function(){return this._edgeCount},f.prototype.edges=function(){return c.values(this._edgeObjs)},f.prototype.setPath=function(u,g){var C=this,A=arguments;return c.reduce(u,function(k,F){return A.length>1?C.setEdge(k,F,g):C.setEdge(k,F),F}),this},f.prototype.setEdge=function(){var u,g,C,A,k=!1,F=arguments[0];"object"==typeof F&&null!==F&&"v"in F?(u=F.v,g=F.w,C=F.name,2===arguments.length&&(A=arguments[1],k=!0)):(u=F,g=arguments[1],C=arguments[3],arguments.length>2&&(A=arguments[2],k=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var O=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,O))return k&&(this._edgeLabels[O]=A),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[O]=k?A: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[O]=R,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][O]=R,this._out[u][O]=R,this._edgeCount++,this},f.prototype.edge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[A]},f.prototype.hasEdge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,A)},f.prototype.removeEdge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),k=this._edgeObjs[A];return k&&(u=k.v,g=k.w,delete this._edgeLabels[A],delete this._edgeObjs[A],p(this._preds[g],u),p(this._sucs[u],g),delete this._in[g][A],delete this._out[u][A],this._edgeCount--),this},f.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var A=c.values(C);return g?c.filter(A,function(k){return k.v===g}):A}},f.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var A=c.values(C);return g?c.filter(A,function(k){return k.w===g}):A}},f.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,I,o)=>{w.exports={Graph:o(66568),version:o(75089)}},21088:(w,I,o)=>{var c=o(79138),x=o(66568);function _(p){return c.map(p.nodes(),function(l){var h=p.node(l),m=p.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(m)||(u.parent=m),u})}function f(p){return c.map(p.edges(),function(l){var h=p.edge(l),m={v:l.v,w:l.w};return c.isUndefined(l.name)||(m.name=l.name),c.isUndefined(h)||(m.value=h),m})}w.exports={write:function v(p){var l={options:{directed:p.isDirected(),multigraph:p.isMultigraph(),compound:p.isCompound()},nodes:_(p),edges:f(p)};return c.isUndefined(p.graph())||(l.value=c.clone(p.graph())),l},read:function t(p){var l=new x(p.options).setGraph(p.value);return c.each(p.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(p.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,I,o)=>{var c;try{c={clone:o(11094),constant:o(76684),each:o(35474),filter:o(35281),has:o(54842),isArray:o(21503),isEmpty:o(71973),isFunction:o(75946),isUndefined:o(34235),keys:o(118),map:o(19984),reduce:o(81337),size:o(55637),transform:o(89416),union:o(68921),values:o(90377)}}catch(x){}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},40717:(w,I,o)=>{"use strict";var c=o(50623);function x(v){return!0===c(v)&&"[object Object]"===Object.prototype.toString.call(v)}w.exports=function(_){var f,t;return!(!1===x(_)||(f=_.constructor,"function"!=typeof f)||(t=f.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},50623:w=>{"use strict";w.exports=function(o){return null!=o&&"object"==typeof o&&!1===Array.isArray(o)}},52872:w=>{var I=Object.prototype.toString;function o(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(m){if(void 0===m)return"undefined";if(null===m)return"null";var u=typeof m;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 f(h,m){return"GeneratorFunction"===o(h)}(m)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(m))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(m))return"buffer";if(function p(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(m){if(-1!==m.message.indexOf("callee"))return!0}return!1}(m))return"arguments";if(function v(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(m))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(m))return"error";if(function _(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(m))return"regexp";switch(o(m)){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}(m))return"generator";switch(u=I.call(m)){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,I,o)=>{var v=o(53436)(o(12119),"DataView");w.exports=v},54994:(w,I,o)=>{var c=o(64312),x=o(46421),v=o(15764),_=o(18685),f=o(26676);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var c=o(41840),x=o(34378),v=o(54981),_=o(67343),f=o(98895);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var v=o(53436)(o(12119),"Map");w.exports=v},99850:(w,I,o)=>{var c=o(10638),x=o(11184),v=o(70866),_=o(43771),f=o(51772);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var v=o(53436)(o(12119),"Promise");w.exports=v},46323:(w,I,o)=>{var v=o(53436)(o(12119),"Set");w.exports=v},58849:(w,I,o)=>{var c=o(99850),x=o(4600),v=o(31387);function _(f){var t=-1,p=null==f?0:f.length;for(this.__data__=new c;++t{var c=o(9215),x=o(13720),v=o(64410),_=o(45576),f=o(22247),t=o(41585);function p(l){var h=this.__data__=new c(l);this.size=h.size}p.prototype.clear=x,p.prototype.delete=v,p.prototype.get=_,p.prototype.has=f,p.prototype.set=t,w.exports=p},60443:(w,I,o)=>{var c=o(12119);w.exports=c.Symbol},73457:(w,I,o)=>{var c=o(12119);w.exports=c.Uint8Array},24243:(w,I,o)=>{var v=o(53436)(o(12119),"WeakMap");w.exports=v},26999:w=>{w.exports=function I(o,c,x){switch(x.length){case 0:return o.call(c);case 1:return o.call(c,x[0]);case 2:return o.call(c,x[0],x[1]);case 3:return o.call(c,x[0],x[1],x[2])}return o.apply(c,x)}},96837:w=>{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length;++x{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length,_=0,f=[];++x{var c=o(14164);w.exports=function x(v,_){return!(null==v||!v.length)&&c(v,_,0)>-1}},37609:w=>{w.exports=function I(o,c,x){for(var v=-1,_=null==o?0:o.length;++v<_;)if(x(c,o[v]))return!0;return!1}},72271:(w,I,o)=>{var c=o(85334),x=o(77151),v=o(21503),_=o(80891),f=o(58442),t=o(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(m,u){var g=v(m),C=!g&&x(m),A=!g&&!C&&_(m),k=!g&&!C&&!A&&t(m),F=g||C||A||k,O=F?c(m.length,String):[],R=O.length;for(var U in m)(u||l.call(m,U))&&(!F||!("length"==U||A&&("offset"==U||"parent"==U)||k&&("buffer"==U||"byteLength"==U||"byteOffset"==U)||f(U,R)))&&O.push(U);return O}},84633:w=>{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length,_=Array(v);++x{w.exports=function I(o,c){for(var x=-1,v=c.length,_=o.length;++x{w.exports=function I(o,c,x,v){var _=-1,f=null==o?0:o.length;for(v&&f&&(x=o[++_]);++_{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length;++x{var x=o(11847)("length");w.exports=x},49276:(w,I,o)=>{var c=o(85683),x=o(20217);w.exports=function v(_,f,t){(void 0!==t&&!x(_[f],t)||void 0===t&&!(f in _))&&c(_,f,t)}},89719:(w,I,o)=>{var c=o(85683),x=o(20217),_=Object.prototype.hasOwnProperty;w.exports=function f(t,p,l){var h=t[p];(!_.call(t,p)||!x(h,l)||void 0===l&&!(p in t))&&c(t,p,l)}},43503:(w,I,o)=>{var c=o(20217);w.exports=function x(v,_){for(var f=v.length;f--;)if(c(v[f][0],_))return f;return-1}},94121:(w,I,o)=>{var c=o(31989),x=o(118);w.exports=function v(_,f){return _&&c(f,x(f),_)}},99287:(w,I,o)=>{var c=o(31989),x=o(16555);w.exports=function v(_,f){return _&&c(f,x(f),_)}},85683:(w,I,o)=>{var c=o(56713);w.exports=function x(v,_,f){"__proto__"==_&&c?c(v,_,{configurable:!0,enumerable:!0,value:f,writable:!0}):v[_]=f}},44462:(w,I,o)=>{var c=o(2858),x=o(96837),v=o(89719),_=o(94121),f=o(99287),t=o(19292),p=o(99454),l=o(84444),h=o(59905),m=o(47597),u=o(6967),g=o(28794),C=o(76782),A=o(37878),k=o(4264),F=o(21503),O=o(80891),R=o(13222),U=o(25940),V=o(90799),W=o(118),rt=o(16555),tt="[object Arguments]",lt="[object Function]",Ct="[object Object]",Ve={};Ve[tt]=Ve["[object Array]"]=Ve["[object ArrayBuffer]"]=Ve["[object DataView]"]=Ve["[object Boolean]"]=Ve["[object Date]"]=Ve["[object Float32Array]"]=Ve["[object Float64Array]"]=Ve["[object Int8Array]"]=Ve["[object Int16Array]"]=Ve["[object Int32Array]"]=Ve["[object Map]"]=Ve["[object Number]"]=Ve[Ct]=Ve["[object RegExp]"]=Ve["[object Set]"]=Ve["[object String]"]=Ve["[object Symbol]"]=Ve["[object Uint8Array]"]=Ve["[object Uint8ClampedArray]"]=Ve["[object Uint16Array]"]=Ve["[object Uint32Array]"]=!0,Ve["[object Error]"]=Ve[lt]=Ve["[object WeakMap]"]=!1,w.exports=function Ce(Ae,Yn,Wn,ni,xn,sn){var je,wn=1&Yn,In=2&Yn,ze=4&Yn;if(Wn&&(je=xn?Wn(Ae,ni,xn,sn):Wn(Ae)),void 0!==je)return je;if(!U(Ae))return Ae;var ci=F(Ae);if(ci){if(je=C(Ae),!wn)return p(Ae,je)}else{var Mn=g(Ae),Tn=Mn==lt||"[object GeneratorFunction]"==Mn;if(O(Ae))return t(Ae,wn);if(Mn==Ct||Mn==tt||Tn&&!xn){if(je=In||Tn?{}:k(Ae),!wn)return In?h(Ae,f(je,Ae)):l(Ae,_(je,Ae))}else{if(!Ve[Mn])return xn?Ae:{};je=A(Ae,Mn,wn)}}sn||(sn=new c);var Hn=sn.get(Ae);if(Hn)return Hn;sn.set(Ae,je),V(Ae)?Ae.forEach(function(Xn){je.add(Ce(Xn,Yn,Wn,Xn,Ae,sn))}):R(Ae)&&Ae.forEach(function(Xn,jn){je.set(jn,Ce(Xn,Yn,Wn,jn,Ae,sn))});var Ne=ci?void 0:(ze?In?u:m:In?rt:W)(Ae);return x(Ne||Ae,function(Xn,jn){Ne&&(Xn=Ae[jn=Xn]),v(je,jn,Ce(Xn,Yn,Wn,jn,Ae,sn))}),je}},78858:(w,I,o)=>{var c=o(25940),x=Object.create,v=function(){function _(){}return function(f){if(!c(f))return{};if(x)return x(f);_.prototype=f;var t=new _;return _.prototype=void 0,t}}();w.exports=v},43132:(w,I,o)=>{var c=o(45184),v=o(16539)(c);w.exports=v},67308:(w,I,o)=>{var c=o(44129);w.exports=function x(v,_,f){for(var t=-1,p=v.length;++t{var c=o(43132);w.exports=function x(v,_){var f=[];return c(v,function(t,p,l){_(t,p,l)&&f.push(t)}),f}},65317:w=>{w.exports=function I(o,c,x,v){for(var _=o.length,f=x+(v?1:-1);v?f--:++f<_;)if(c(o[f],f,o))return f;return-1}},50686:(w,I,o)=>{var c=o(85059),x=o(75039);w.exports=function v(_,f,t,p,l){var h=-1,m=_.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?f>1?v(u,f-1,t,p,l):c(l,u):p||(l[l.length]=u)}return l}},30755:(w,I,o)=>{var x=o(40456)();w.exports=x},45184:(w,I,o)=>{var c=o(30755),x=o(118);w.exports=function v(_,f){return _&&c(_,f,x)}},15456:(w,I,o)=>{var c=o(65456),x=o(68533);w.exports=function v(_,f){for(var t=0,p=(f=c(f,_)).length;null!=_&&t{var c=o(85059),x=o(21503);w.exports=function v(_,f,t){var p=f(_);return x(_)?p:c(p,t(_))}},93337:(w,I,o)=>{var c=o(60443),x=o(21318),v=o(92902),t=c?c.toStringTag:void 0;w.exports=function p(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):v(l)}},31100:w=>{w.exports=function I(o,c){return o>c}},84781:w=>{var o=Object.prototype.hasOwnProperty;w.exports=function c(x,v){return null!=x&&o.call(x,v)}},69989:w=>{w.exports=function I(o,c){return null!=o&&c in Object(o)}},14164:(w,I,o)=>{var c=o(65317),x=o(70968),v=o(24977);w.exports=function _(f,t,p){return t==t?v(f,t,p):c(f,x,p)}},60186:(w,I,o)=>{var c=o(93337),x=o(72671);w.exports=function _(f){return x(f)&&"[object Arguments]"==c(f)}},85740:(w,I,o)=>{var c=o(58325),x=o(72671);w.exports=function v(_,f,t,p,l){return _===f||(null==_||null==f||!x(_)&&!x(f)?_!=_&&f!=f:c(_,f,t,p,v,l))}},58325:(w,I,o)=>{var c=o(2858),x=o(63914),v=o(78583),_=o(32286),f=o(28794),t=o(21503),p=o(80891),l=o(48159),m="[object Arguments]",u="[object Array]",g="[object Object]",A=Object.prototype.hasOwnProperty;w.exports=function k(F,O,R,U,V,W){var rt=t(F),nt=t(O),ut=rt?u:f(F),J=nt?u:f(O),tt=(ut=ut==m?g:ut)==g,Q=(J=J==m?g:J)==g,at=ut==J;if(at&&p(F)){if(!p(O))return!1;rt=!0,tt=!1}if(at&&!tt)return W||(W=new c),rt||l(F)?x(F,O,R,U,V,W):v(F,O,ut,R,U,V,W);if(!(1&R)){var H=tt&&A.call(F,"__wrapped__"),K=Q&&A.call(O,"__wrapped__");if(H||K){var lt=H?F.value():F,it=K?O.value():O;return W||(W=new c),V(lt,it,R,U,W)}}return!!at&&(W||(W=new c),_(F,O,R,U,V,W))}},97021:(w,I,o)=>{var c=o(28794),x=o(72671);w.exports=function _(f){return x(f)&&"[object Map]"==c(f)}},40431:(w,I,o)=>{var c=o(2858),x=o(85740);w.exports=function f(t,p,l,h){var m=l.length,u=m,g=!h;if(null==t)return!u;for(t=Object(t);m--;){var C=l[m];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++m{w.exports=function I(o){return o!=o}},37304:(w,I,o)=>{var c=o(75946),x=o(91943),v=o(25940),_=o(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!(!v(C)||x(C))&&(c(C)?u:t).test(_(C))}},771:(w,I,o)=>{var c=o(28794),x=o(72671);w.exports=function _(f){return x(f)&&"[object Set]"==c(f)}},1083:(w,I,o)=>{var c=o(93337),x=o(96231),v=o(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 H(K){return v(K)&&x(K.length)&&!!at[c(K)]}},96517:(w,I,o)=>{var c=o(98133),x=o(9458),v=o(32608),_=o(21503),f=o(87495);w.exports=function t(p){return"function"==typeof p?p:null==p?v:"object"==typeof p?_(p)?x(p[0],p[1]):c(p):f(p)}},81172:(w,I,o)=>{var c=o(45488),x=o(85491),_=Object.prototype.hasOwnProperty;w.exports=function f(t){if(!c(t))return x(t);var p=[];for(var l in Object(t))_.call(t,l)&&"constructor"!=l&&p.push(l);return p}},92809:(w,I,o)=>{var c=o(25940),x=o(45488),v=o(32158),f=Object.prototype.hasOwnProperty;w.exports=function t(p){if(!c(p))return v(p);var l=x(p),h=[];for(var m in p)"constructor"==m&&(l||!f.call(p,m))||h.push(m);return h}},99069:w=>{w.exports=function I(o,c){return o{var c=o(43132),x=o(56507);w.exports=function v(_,f){var t=-1,p=x(_)?Array(_.length):[];return c(_,function(l,h,m){p[++t]=f(l,h,m)}),p}},98133:(w,I,o)=>{var c=o(40431),x=o(22379),v=o(642);w.exports=function _(f){var t=x(f);return 1==t.length&&t[0][2]?v(t[0][0],t[0][1]):function(p){return p===f||c(p,f,t)}}},9458:(w,I,o)=>{var c=o(85740),x=o(8817),v=o(11172),_=o(45352),f=o(22442),t=o(642),p=o(68533);w.exports=function m(u,g){return _(u)&&f(g)?t(p(u),g):function(C){var A=x(C,u);return void 0===A&&A===g?v(C,u):c(g,A,3)}}},73842:(w,I,o)=>{var c=o(2858),x=o(49276),v=o(30755),_=o(33675),f=o(25940),t=o(16555),p=o(99351);w.exports=function l(h,m,u,g,C){h!==m&&v(m,function(A,k){if(C||(C=new c),f(A))_(h,m,k,u,l,g,C);else{var F=g?g(p(h,k),A,k+"",h,m,C):void 0;void 0===F&&(F=A),x(h,k,F)}},t)}},33675:(w,I,o)=>{var c=o(49276),x=o(19292),v=o(65208),_=o(99454),f=o(4264),t=o(77151),p=o(21503),l=o(92377),h=o(80891),m=o(75946),u=o(25940),g=o(97614),C=o(48159),A=o(99351),k=o(8067);w.exports=function F(O,R,U,V,W,rt,nt){var ut=A(O,U),J=A(R,U),tt=nt.get(J);if(tt)c(O,U,tt);else{var Q=rt?rt(ut,J,U+"",O,R,nt):void 0,at=void 0===Q;if(at){var H=p(J),K=!H&&h(J),lt=!H&&!K&&C(J);Q=J,H||K||lt?p(ut)?Q=ut:l(ut)?Q=_(ut):K?(at=!1,Q=x(J,!0)):lt?(at=!1,Q=v(J,!0)):Q=[]:g(J)||t(J)?(Q=ut,t(ut)?Q=k(ut):(!u(ut)||m(ut))&&(Q=f(J))):at=!1}at&&(nt.set(J,Q),W(Q,J,V,rt,nt),nt.delete(J)),c(O,U,Q)}}},6119:(w,I,o)=>{var c=o(84633),x=o(15456),v=o(96517),_=o(92046),f=o(42061),t=o(85647),p=o(41215),l=o(32608),h=o(21503);w.exports=function m(u,g,C){g=g.length?c(g,function(F){return h(F)?function(O){return x(O,1===F.length?F[0]:F)}:F}):[l];var A=-1;g=c(g,t(v));var k=_(u,function(F,O,R){return{criteria:c(g,function(V){return V(F)}),index:++A,value:F}});return f(k,function(F,O){return p(F,O,C)})}},83021:(w,I,o)=>{var c=o(95495),x=o(11172);w.exports=function v(_,f){return c(_,f,function(t,p){return x(_,p)})}},95495:(w,I,o)=>{var c=o(15456),x=o(55963),v=o(65456);w.exports=function _(f,t,p){for(var l=-1,h=t.length,m={};++l{w.exports=function I(o){return function(c){return null==c?void 0:c[o]}}},39222:(w,I,o)=>{var c=o(15456);w.exports=function x(v){return function(_){return c(_,v)}}},16307:w=>{var I=Math.ceil,o=Math.max;w.exports=function c(x,v,_,f){for(var t=-1,p=o(I((v-x)/(_||1)),0),l=Array(p);p--;)l[f?p:++t]=x,x+=_;return l}},13570:w=>{w.exports=function I(o,c,x,v,_){return _(o,function(f,t,p){x=v?(v=!1,f):c(x,f,t,p)}),x}},23269:(w,I,o)=>{var c=o(32608),x=o(53983),v=o(72185);w.exports=function _(f,t){return v(x(f,t,c),f+"")}},55963:(w,I,o)=>{var c=o(89719),x=o(65456),v=o(58442),_=o(25940),f=o(68533);w.exports=function t(p,l,h,m){if(!_(p))return p;for(var u=-1,g=(l=x(l,p)).length,C=g-1,A=p;null!=A&&++u{var c=o(76684),x=o(56713),v=o(32608);w.exports=x?function(f,t){return x(f,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:v},42061:w=>{w.exports=function I(o,c){var x=o.length;for(o.sort(c);x--;)o[x]=o[x].value;return o}},85334:w=>{w.exports=function I(o,c){for(var x=-1,v=Array(o);++x{var c=o(60443),x=o(84633),v=o(21503),_=o(44129),t=c?c.prototype:void 0,p=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(v(h))return x(h,l)+"";if(_(h))return p?p.call(h):"";var m=h+"";return"0"==m&&1/h==-1/0?"-0":m}},83348:(w,I,o)=>{var c=o(42760),x=/^\s+/;w.exports=function v(_){return _&&_.slice(0,c(_)+1).replace(x,"")}},85647:w=>{w.exports=function I(o){return function(c){return o(c)}}},80707:(w,I,o)=>{var c=o(58849),x=o(61253),v=o(37609),_=o(25972),f=o(14575),t=o(24174);w.exports=function l(h,m,u){var g=-1,C=x,A=h.length,k=!0,F=[],O=F;if(u)k=!1,C=v;else if(A>=200){var R=m?null:f(h);if(R)return t(R);k=!1,C=_,O=new c}else O=m?[]:F;t:for(;++g{var c=o(84633);w.exports=function x(v,_){return c(_,function(f){return v[f]})}},38645:w=>{w.exports=function I(o,c,x){for(var v=-1,_=o.length,f=c.length,t={};++v<_;)x(t,o[v],v{w.exports=function I(o,c){return o.has(c)}},21481:(w,I,o)=>{var c=o(32608);w.exports=function x(v){return"function"==typeof v?v:c}},65456:(w,I,o)=>{var c=o(21503),x=o(45352),v=o(32855),_=o(73943);w.exports=function f(t,p){return c(t)?t:x(t,p)?[t]:v(_(t))}},43362:(w,I,o)=>{var c=o(73457);w.exports=function x(v){var _=new v.constructor(v.byteLength);return new c(_).set(new c(v)),_}},19292:(w,I,o)=>{w=o.nmd(w);var c=o(12119),x=I&&!I.nodeType&&I,v=x&&w&&!w.nodeType&&w,f=v&&v.exports===x?c.Buffer:void 0,t=f?f.allocUnsafe:void 0;w.exports=function p(l,h){if(h)return l.slice();var m=l.length,u=t?t(m):new l.constructor(m);return l.copy(u),u}},17e3:(w,I,o)=>{var c=o(43362);w.exports=function x(v,_){var f=_?c(v.buffer):v.buffer;return new v.constructor(f,v.byteOffset,v.byteLength)}},74098:w=>{var I=/\w*$/;w.exports=function o(c){var x=new c.constructor(c.source,I.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,I,o)=>{var c=o(60443),x=c?c.prototype:void 0,v=x?x.valueOf:void 0;w.exports=function _(f){return v?Object(v.call(f)):{}}},65208:(w,I,o)=>{var c=o(43362);w.exports=function x(v,_){var f=_?c(v.buffer):v.buffer;return new v.constructor(f,v.byteOffset,v.length)}},13443:(w,I,o)=>{var c=o(44129);w.exports=function x(v,_){if(v!==_){var f=void 0!==v,t=null===v,p=v==v,l=c(v),h=void 0!==_,m=null===_,u=_==_,g=c(_);if(!m&&!g&&!l&&v>_||l&&h&&u&&!m&&!g||t&&h&&u||!f&&u||!p)return 1;if(!t&&!l&&!g&&v<_||g&&f&&p&&!t&&!l||m&&f&&p||!h&&p||!u)return-1}return 0}},41215:(w,I,o)=>{var c=o(13443);w.exports=function x(v,_,f){for(var t=-1,p=v.criteria,l=_.criteria,h=p.length,m=f.length;++t=m?u:u*("desc"==f[t]?-1:1)}return v.index-_.index}},99454:w=>{w.exports=function I(o,c){var x=-1,v=o.length;for(c||(c=Array(v));++x{var c=o(89719),x=o(85683);w.exports=function v(_,f,t,p){var l=!t;t||(t={});for(var h=-1,m=f.length;++h{var c=o(31989),x=o(39383);w.exports=function v(_,f){return c(_,x(_),f)}},59905:(w,I,o)=>{var c=o(31989),x=o(53051);w.exports=function v(_,f){return c(_,x(_),f)}},24610:(w,I,o)=>{var c=o(12119);w.exports=c["__core-js_shared__"]},84944:(w,I,o)=>{var c=o(23269),x=o(93342);w.exports=function v(_){return c(function(f,t){var p=-1,l=t.length,h=l>1?t[l-1]:void 0,m=l>2?t[2]:void 0;for(h=_.length>3&&"function"==typeof h?(l--,h):void 0,m&&x(t[0],t[1],m)&&(h=l<3?void 0:h,l=1),f=Object(f);++p{var c=o(56507);w.exports=function x(v,_){return function(f,t){if(null==f)return f;if(!c(f))return v(f,t);for(var p=f.length,l=_?p:-1,h=Object(f);(_?l--:++l{w.exports=function I(o){return function(c,x,v){for(var _=-1,f=Object(c),t=v(c),p=t.length;p--;){var l=t[o?p:++_];if(!1===x(f[l],l,f))break}return c}}},24653:(w,I,o)=>{var c=o(96517),x=o(56507),v=o(118);w.exports=function _(f){return function(t,p,l){var h=Object(t);if(!x(t)){var m=c(p,3);t=v(t),p=function(g){return m(h[g],g,h)}}var u=f(t,p,l);return u>-1?h[m?t[u]:u]:void 0}}},97509:(w,I,o)=>{var c=o(16307),x=o(93342),v=o(12232);w.exports=function _(f){return function(t,p,l){return l&&"number"!=typeof l&&x(t,p,l)&&(p=l=void 0),t=v(t),void 0===p?(p=t,t=0):p=v(p),l=void 0===l?t{var c=o(46323),x=o(12552),v=o(24174),f=c&&1/v(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=f},56713:(w,I,o)=>{var c=o(53436),x=function(){try{var v=c(Object,"defineProperty");return v({},"",{}),v}catch(_){}}();w.exports=x},63914:(w,I,o)=>{var c=o(58849),x=o(79503),v=o(25972);w.exports=function t(p,l,h,m,u,g){var C=1&h,A=p.length,k=l.length;if(A!=k&&!(C&&k>A))return!1;var F=g.get(p),O=g.get(l);if(F&&O)return F==l&&O==p;var R=-1,U=!0,V=2&h?new c:void 0;for(g.set(p,l),g.set(l,p);++R{var c=o(60443),x=o(73457),v=o(20217),_=o(63914),f=o(83205),t=o(24174),V=c?c.prototype:void 0,W=V?V.valueOf:void 0;w.exports=function rt(nt,ut,J,tt,Q,at,H){switch(J){case"[object DataView]":if(nt.byteLength!=ut.byteLength||nt.byteOffset!=ut.byteOffset)return!1;nt=nt.buffer,ut=ut.buffer;case"[object ArrayBuffer]":return!(nt.byteLength!=ut.byteLength||!at(new x(nt),new x(ut)));case"[object Boolean]":case"[object Date]":case"[object Number]":return v(+nt,+ut);case"[object Error]":return nt.name==ut.name&&nt.message==ut.message;case"[object RegExp]":case"[object String]":return nt==ut+"";case"[object Map]":var K=f;case"[object Set]":if(K||(K=t),nt.size!=ut.size&&!(1&tt))return!1;var it=H.get(nt);if(it)return it==ut;tt|=2,H.set(nt,ut);var z=_(K(nt),K(ut),tt,Q,at,H);return H.delete(nt),z;case"[object Symbol]":if(W)return W.call(nt)==W.call(ut)}return!1}},32286:(w,I,o)=>{var c=o(47597),_=Object.prototype.hasOwnProperty;w.exports=function f(t,p,l,h,m,u){var g=1&l,C=c(t),A=C.length;if(A!=c(p).length&&!g)return!1;for(var O=A;O--;){var R=C[O];if(!(g?R in p:_.call(p,R)))return!1}var U=u.get(t),V=u.get(p);if(U&&V)return U==p&&V==t;var W=!0;u.set(t,p),u.set(p,t);for(var rt=g;++O{var c=o(22274),x=o(53983),v=o(72185);w.exports=function _(f){return v(x(f,void 0,c),f+"")}},79122:w=>{var I="object"==typeof global&&global&&global.Object===Object&&global;w.exports=I},47597:(w,I,o)=>{var c=o(38247),x=o(39383),v=o(118);w.exports=function _(f){return c(f,v,x)}},6967:(w,I,o)=>{var c=o(38247),x=o(53051),v=o(16555);w.exports=function _(f){return c(f,v,x)}},54537:(w,I,o)=>{var c=o(23819);w.exports=function x(v,_){var f=v.__data__;return c(_)?f["string"==typeof _?"string":"hash"]:f.map}},22379:(w,I,o)=>{var c=o(22442),x=o(118);w.exports=function v(_){for(var f=x(_),t=f.length;t--;){var p=f[t],l=_[p];f[t]=[p,l,c(l)]}return f}},53436:(w,I,o)=>{var c=o(37304),x=o(51990);w.exports=function v(_,f){var t=x(_,f);return c(t)?t:void 0}},29519:(w,I,o)=>{var x=o(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,I,o)=>{var c=o(60443),x=Object.prototype,v=x.hasOwnProperty,_=x.toString,f=c?c.toStringTag:void 0;w.exports=function t(p){var l=v.call(p,f),h=p[f];try{p[f]=void 0;var m=!0}catch(g){}var u=_.call(p);return m&&(l?p[f]=h:delete p[f]),u}},39383:(w,I,o)=>{var c=o(69779),x=o(49975),_=Object.prototype.propertyIsEnumerable,f=Object.getOwnPropertySymbols;w.exports=f?function(p){return null==p?[]:(p=Object(p),c(f(p),function(l){return _.call(p,l)}))}:x},53051:(w,I,o)=>{var c=o(85059),x=o(29519),v=o(39383),_=o(49975);w.exports=Object.getOwnPropertySymbols?function(p){for(var l=[];p;)c(l,v(p)),p=x(p);return l}:_},28794:(w,I,o)=>{var c=o(37244),x=o(51501),v=o(44267),_=o(46323),f=o(24243),t=o(93337),p=o(52827),l="[object Map]",m="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",A=p(c),k=p(x),F=p(v),O=p(_),R=p(f),U=t;(c&&U(new c(new ArrayBuffer(1)))!=C||x&&U(new x)!=l||v&&U(v.resolve())!=m||_&&U(new _)!=u||f&&U(new f)!=g)&&(U=function(V){var W=t(V),rt="[object Object]"==W?V.constructor:void 0,nt=rt?p(rt):"";if(nt)switch(nt){case A:return C;case k:return l;case F:return m;case O:return u;case R:return g}return W}),w.exports=U},51990:w=>{w.exports=function I(o,c){return null==o?void 0:o[c]}},47283:(w,I,o)=>{var c=o(65456),x=o(77151),v=o(21503),_=o(58442),f=o(96231),t=o(68533);w.exports=function p(l,h,m){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 p(l){return t.test(l)}},64312:(w,I,o)=>{var c=o(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}},15764:(w,I,o)=>{var c=o(60862),_=Object.prototype.hasOwnProperty;w.exports=function f(t){var p=this.__data__;if(c){var l=p[t];return"__lodash_hash_undefined__"===l?void 0:l}return _.call(p,t)?p[t]:void 0}},18685:(w,I,o)=>{var c=o(60862),v=Object.prototype.hasOwnProperty;w.exports=function _(f){var t=this.__data__;return c?void 0!==t[f]:v.call(t,f)}},26676:(w,I,o)=>{var c=o(60862);w.exports=function v(_,f){var t=this.__data__;return this.size+=this.has(_)?0:1,t[_]=c&&void 0===f?"__lodash_hash_undefined__":f,this}},76782:w=>{var o=Object.prototype.hasOwnProperty;w.exports=function c(x){var v=x.length,_=new x.constructor(v);return v&&"string"==typeof x[0]&&o.call(x,"index")&&(_.index=x.index,_.input=x.input),_}},37878:(w,I,o)=>{var c=o(43362),x=o(17e3),v=o(74098),_=o(62533),f=o(65208);w.exports=function J(tt,Q,at){var H=tt.constructor;switch(Q){case"[object ArrayBuffer]":return c(tt);case"[object Boolean]":case"[object Date]":return new H(+tt);case"[object DataView]":return x(tt,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 f(tt,at);case"[object Map]":case"[object Set]":return new H;case"[object Number]":case"[object String]":return new H(tt);case"[object RegExp]":return v(tt);case"[object Symbol]":return _(tt)}}},4264:(w,I,o)=>{var c=o(78858),x=o(29519),v=o(45488);w.exports=function _(f){return"function"!=typeof f.constructor||v(f)?{}:c(x(f))}},75039:(w,I,o)=>{var c=o(60443),x=o(77151),v=o(21503),_=c?c.isConcatSpreadable:void 0;w.exports=function f(t){return v(t)||x(t)||!!(_&&t&&t[_])}},58442:w=>{var o=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,v){var _=typeof x;return!!(v=null==v?9007199254740991:v)&&("number"==_||"symbol"!=_&&o.test(x))&&x>-1&&x%1==0&&x{var c=o(20217),x=o(56507),v=o(58442),_=o(25940);w.exports=function f(t,p,l){if(!_(l))return!1;var h=typeof p;return!!("number"==h?x(l)&&v(p,l.length):"string"==h&&p in l)&&c(l[p],t)}},45352:(w,I,o)=>{var c=o(21503),x=o(44129),v=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;w.exports=function f(t,p){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||_.test(t)||!v.test(t)||null!=p&&t in Object(p)}},23819:w=>{w.exports=function I(o){var c=typeof o;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==o:null===o}},91943:(w,I,o)=>{var _,c=o(24610),x=(_=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"";w.exports=function v(_){return!!x&&x in _}},45488:w=>{var I=Object.prototype;w.exports=function o(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||I)}},22442:(w,I,o)=>{var c=o(25940);w.exports=function x(v){return v==v&&!c(v)}},41840:w=>{w.exports=function I(){this.__data__=[],this.size=0}},34378:(w,I,o)=>{var c=o(43503),v=Array.prototype.splice;w.exports=function _(f){var t=this.__data__,p=c(t,f);return!(p<0||(p==t.length-1?t.pop():v.call(t,p,1),--this.size,0))}},54981:(w,I,o)=>{var c=o(43503);w.exports=function x(v){var _=this.__data__,f=c(_,v);return f<0?void 0:_[f][1]}},67343:(w,I,o)=>{var c=o(43503);w.exports=function x(v){return c(this.__data__,v)>-1}},98895:(w,I,o)=>{var c=o(43503);w.exports=function x(v,_){var f=this.__data__,t=c(f,v);return t<0?(++this.size,f.push([v,_])):f[t][1]=_,this}},10638:(w,I,o)=>{var c=o(54994),x=o(9215),v=o(51501);w.exports=function _(){this.size=0,this.__data__={hash:new c,map:new(v||x),string:new c}}},11184:(w,I,o)=>{var c=o(54537);w.exports=function x(v){var _=c(this,v).delete(v);return this.size-=_?1:0,_}},70866:(w,I,o)=>{var c=o(54537);w.exports=function x(v){return c(this,v).get(v)}},43771:(w,I,o)=>{var c=o(54537);w.exports=function x(v){return c(this,v).has(v)}},51772:(w,I,o)=>{var c=o(54537);w.exports=function x(v,_){var f=c(this,v),t=f.size;return f.set(v,_),this.size+=f.size==t?0:1,this}},83205:w=>{w.exports=function I(o){var c=-1,x=Array(o.size);return o.forEach(function(v,_){x[++c]=[_,v]}),x}},642:w=>{w.exports=function I(o,c){return function(x){return null!=x&&x[o]===c&&(void 0!==c||o in Object(x))}}},15144:(w,I,o)=>{var c=o(30535);w.exports=function v(_){var f=c(_,function(p){return 500===t.size&&t.clear(),p}),t=f.cache;return f}},60862:(w,I,o)=>{var x=o(53436)(Object,"create");w.exports=x},85491:(w,I,o)=>{var x=o(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function I(o){var c=[];if(null!=o)for(var x in Object(o))c.push(x);return c}},73597:(w,I,o)=>{w=o.nmd(w);var c=o(79122),x=I&&!I.nodeType&&I,v=x&&w&&!w.nodeType&&w,f=v&&v.exports===x&&c.process,t=function(){try{return v&&v.require&&v.require("util").types||f&&f.binding&&f.binding("util")}catch(l){}}();w.exports=t},92902:w=>{var o=Object.prototype.toString;w.exports=function c(x){return o.call(x)}},69385:w=>{w.exports=function I(o,c){return function(x){return o(c(x))}}},53983:(w,I,o)=>{var c=o(26999),x=Math.max;w.exports=function v(_,f,t){return f=x(void 0===f?_.length-1:f,0),function(){for(var p=arguments,l=-1,h=x(p.length-f,0),m=Array(h);++l{var c=o(79122),x="object"==typeof self&&self&&self.Object===Object&&self,v=c||x||Function("return this")();w.exports=v},99351:w=>{w.exports=function I(o,c){if(("constructor"!==c||"function"!=typeof o[c])&&"__proto__"!=c)return o[c]}},4600:w=>{w.exports=function o(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function I(o){return this.__data__.has(o)}},24174:w=>{w.exports=function I(o){var c=-1,x=Array(o.size);return o.forEach(function(v){x[++c]=v}),x}},72185:(w,I,o)=>{var c=o(69510),v=o(10029)(c);w.exports=v},10029:w=>{var c=Date.now;w.exports=function x(v){var _=0,f=0;return function(){var t=c(),p=16-(t-f);if(f=t,p>0){if(++_>=800)return arguments[0]}else _=0;return v.apply(void 0,arguments)}}},13720:(w,I,o)=>{var c=o(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function I(o){var c=this.__data__,x=c.delete(o);return this.size=c.size,x}},45576:w=>{w.exports=function I(o){return this.__data__.get(o)}},22247:w=>{w.exports=function I(o){return this.__data__.has(o)}},41585:(w,I,o)=>{var c=o(9215),x=o(51501),v=o(99850);w.exports=function f(t,p){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,p]),this.size=++l.size,this;l=this.__data__=new v(h)}return l.set(t,p),this.size=l.size,this}},24977:w=>{w.exports=function I(o,c,x){for(var v=x-1,_=o.length;++v<_;)if(o[v]===c)return v;return-1}},52315:(w,I,o)=>{var c=o(75481),x=o(77609),v=o(81149);w.exports=function _(f){return x(f)?v(f):c(f)}},32855:(w,I,o)=>{var c=o(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,_=c(function(f){var t=[];return 46===f.charCodeAt(0)&&t.push(""),f.replace(x,function(p,l,h,m){t.push(h?m.replace(v,"$1"):l||p)}),t});w.exports=_},68533:(w,I,o)=>{var c=o(44129);w.exports=function v(_){if("string"==typeof _||c(_))return _;var f=_+"";return"0"==f&&1/_==-1/0?"-0":f}},52827:w=>{var o=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return o.call(x)}catch(v){}try{return x+""}catch(v){}}return""}},42760:w=>{var I=/\s/;w.exports=function o(c){for(var x=c.length;x--&&I.test(c.charAt(x)););return x}},81149:w=>{var I="\\ud800-\\udfff",f="["+I+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",p="\\ud83c[\\udffb-\\udfff]",h="[^"+I+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+p+")?",A="[\\ufe0e\\ufe0f]?",F=A+C+"(?:\\u200d(?:"+[h,m,u].join("|")+")"+A+C+")*",O="(?:"+[h+t+"?",t,m,u,f].join("|")+")",R=RegExp(p+"(?="+p+")|"+O+F,"g");w.exports=function U(V){for(var W=R.lastIndex=0;R.test(V);)++W;return W}},11094:(w,I,o)=>{var c=o(44462);w.exports=function v(_){return c(_,4)}},90733:(w,I,o)=>{var c=o(44462);w.exports=function _(f){return c(f,5)}},76684:w=>{w.exports=function I(o){return function(){return o}}},28800:(w,I,o)=>{var c=o(23269),x=o(20217),v=o(93342),_=o(16555),f=Object.prototype,t=f.hasOwnProperty,p=c(function(l,h){l=Object(l);var m=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&v(h[0],h[1],g)&&(u=1);++m{w.exports=o(89851)},20217:w=>{w.exports=function I(o,c){return o===c||o!=o&&c!=c}},35281:(w,I,o)=>{var c=o(69779),x=o(33609),v=o(96517),_=o(21503);w.exports=function f(t,p){return(_(t)?c:x)(t,v(p,3))}},62516:(w,I,o)=>{var v=o(24653)(o(36397));w.exports=v},36397:(w,I,o)=>{var c=o(65317),x=o(96517),v=o(44401),_=Math.max;w.exports=function f(t,p,l){var h=null==t?0:t.length;if(!h)return-1;var m=null==l?0:v(l);return m<0&&(m=_(h+m,0)),c(t,x(p,3),m)}},22274:(w,I,o)=>{var c=o(50686);w.exports=function x(v){return null!=v&&v.length?c(v,1):[]}},89851:(w,I,o)=>{var c=o(96837),x=o(43132),v=o(21481),_=o(21503);w.exports=function f(t,p){return(_(t)?c:x)(t,v(p))}},41176:(w,I,o)=>{var c=o(30755),x=o(21481),v=o(16555);w.exports=function _(f,t){return null==f?f:c(f,x(t),v)}},8817:(w,I,o)=>{var c=o(15456);w.exports=function x(v,_,f){var t=null==v?void 0:c(v,_);return void 0===t?f:t}},54842:(w,I,o)=>{var c=o(84781),x=o(47283);w.exports=function v(_,f){return null!=_&&x(_,f,c)}},11172:(w,I,o)=>{var c=o(69989),x=o(47283);w.exports=function v(_,f){return null!=_&&x(_,f,c)}},32608:w=>{w.exports=function I(o){return o}},77151:(w,I,o)=>{var c=o(60186),x=o(72671),v=Object.prototype,_=v.hasOwnProperty,f=v.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(p){return x(p)&&_.call(p,"callee")&&!f.call(p,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,I,o)=>{var c=o(75946),x=o(96231);w.exports=function v(_){return null!=_&&x(_.length)&&!c(_)}},92377:(w,I,o)=>{var c=o(56507),x=o(72671);w.exports=function v(_){return x(_)&&c(_)}},80891:(w,I,o)=>{w=o.nmd(w);var c=o(12119),x=o(63580),v=I&&!I.nodeType&&I,_=v&&w&&!w.nodeType&&w,t=_&&_.exports===v?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,I,o)=>{var c=o(81172),x=o(28794),v=o(77151),_=o(21503),f=o(56507),t=o(80891),p=o(45488),l=o(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(A){if(null==A)return!0;if(f(A)&&(_(A)||"string"==typeof A||"function"==typeof A.splice||t(A)||l(A)||v(A)))return!A.length;var k=x(A);if("[object Map]"==k||"[object Set]"==k)return!A.size;if(p(A))return!c(A).length;for(var F in A)if(g.call(A,F))return!1;return!0}},75946:(w,I,o)=>{var c=o(93337),x=o(25940);w.exports=function p(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 o(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,I,o)=>{var c=o(97021),x=o(85647),v=o(73597),_=v&&v.isMap,f=_?x(_):c;w.exports=f},25940:w=>{w.exports=function I(o){var c=typeof o;return null!=o&&("object"==c||"function"==c)}},72671:w=>{w.exports=function I(o){return null!=o&&"object"==typeof o}},97614:(w,I,o)=>{var c=o(93337),x=o(29519),v=o(72671),p=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=p.call(Object);w.exports=function m(u){if(!v(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&&p.call(C)==h}},90799:(w,I,o)=>{var c=o(771),x=o(85647),v=o(73597),_=v&&v.isSet,f=_?x(_):c;w.exports=f},30248:(w,I,o)=>{var c=o(93337),x=o(21503),v=o(72671);w.exports=function f(t){return"string"==typeof t||!x(t)&&v(t)&&"[object String]"==c(t)}},44129:(w,I,o)=>{var c=o(93337),x=o(72671);w.exports=function _(f){return"symbol"==typeof f||x(f)&&"[object Symbol]"==c(f)}},48159:(w,I,o)=>{var c=o(1083),x=o(85647),v=o(73597),_=v&&v.isTypedArray,f=_?x(_):c;w.exports=f},34235:w=>{w.exports=function I(o){return void 0===o}},118:(w,I,o)=>{var c=o(72271),x=o(81172),v=o(56507);w.exports=function _(f){return v(f)?c(f):x(f)}},16555:(w,I,o)=>{var c=o(72271),x=o(92809),v=o(56507);w.exports=function _(f){return v(f)?c(f,!0):x(f)}},25809:w=>{w.exports=function I(o){var c=null==o?0:o.length;return c?o[c-1]:void 0}},19984:(w,I,o)=>{var c=o(84633),x=o(96517),v=o(92046),_=o(21503);w.exports=function f(t,p){return(_(t)?c:v)(t,x(p,3))}},10203:(w,I,o)=>{var c=o(85683),x=o(45184),v=o(96517);w.exports=function _(f,t){var p={};return t=v(t,3),x(f,function(l,h,m){c(p,h,t(l,h,m))}),p}},18176:(w,I,o)=>{var c=o(67308),x=o(31100),v=o(32608);w.exports=function _(f){return f&&f.length?c(f,v,x):void 0}},30535:(w,I,o)=>{var c=o(99850);function v(_,f){if("function"!=typeof _||null!=f&&"function"!=typeof f)throw new TypeError("Expected a function");var t=function(){var p=arguments,l=f?f.apply(this,p):p[0],h=t.cache;if(h.has(l))return h.get(l);var m=_.apply(this,p);return t.cache=h.set(l,m)||h,m};return t.cache=new(v.Cache||c),t}v.Cache=c,w.exports=v},80567:(w,I,o)=>{var c=o(73842),v=o(84944)(function(_,f,t){c(_,f,t)});w.exports=v},29439:(w,I,o)=>{var c=o(67308),x=o(99069),v=o(32608);w.exports=function _(f){return f&&f.length?c(f,v,x):void 0}},29525:(w,I,o)=>{var c=o(67308),x=o(96517),v=o(99069);w.exports=function _(f,t){return f&&f.length?c(f,x(t,2),v):void 0}},12552:w=>{w.exports=function I(){}},31710:(w,I,o)=>{var c=o(12119);w.exports=function(){return c.Date.now()}},16372:(w,I,o)=>{var c=o(83021),v=o(3975)(function(_,f){return null==_?{}:c(_,f)});w.exports=v},87495:(w,I,o)=>{var c=o(11847),x=o(39222),v=o(45352),_=o(68533);w.exports=function f(t){return v(t)?c(_(t)):x(t)}},90361:(w,I,o)=>{var x=o(97509)();w.exports=x},81337:(w,I,o)=>{var c=o(8745),x=o(43132),v=o(96517),_=o(13570),f=o(21503);w.exports=function t(p,l,h){var m=f(p)?c:_,u=arguments.length<3;return m(p,v(l,4),h,u,x)}},55637:(w,I,o)=>{var c=o(81172),x=o(28794),v=o(56507),_=o(30248),f=o(52315);w.exports=function l(h){if(null==h)return 0;if(v(h))return _(h)?f(h):h.length;var m=x(h);return"[object Map]"==m||"[object Set]"==m?h.size:c(h).length}},12906:(w,I,o)=>{var c=o(50686),x=o(6119),v=o(23269),_=o(93342),f=v(function(t,p){if(null==t)return[];var l=p.length;return l>1&&_(t,p[0],p[1])?p=[]:l>2&&_(p[0],p[1],p[2])&&(p=[p[0]]),x(t,c(p,1),[])});w.exports=f},49975:w=>{w.exports=function I(){return[]}},63580:w=>{w.exports=function I(){return!1}},12232:(w,I,o)=>{var c=o(51467),x=1/0;w.exports=function _(f){return f?(f=c(f))===x||f===-x?17976931348623157e292*(f<0?-1:1):f==f?f:0:0===f?f:0}},44401:(w,I,o)=>{var c=o(12232);w.exports=function x(v){var _=c(v),f=_%1;return _==_?f?_-f:_:0}},51467:(w,I,o)=>{var c=o(83348),x=o(25940),v=o(44129),f=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,p=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(m){if("number"==typeof m)return m;if(v(m))return NaN;if(x(m)){var u="function"==typeof m.valueOf?m.valueOf():m;m=x(u)?u+"":u}if("string"!=typeof m)return 0===m?m:+m;m=c(m);var g=t.test(m);return g||p.test(m)?l(m.slice(2),g?2:8):f.test(m)?NaN:+m}},8067:(w,I,o)=>{var c=o(31989),x=o(16555);w.exports=function v(_){return c(_,x(_))}},73943:(w,I,o)=>{var c=o(93935);w.exports=function x(v){return null==v?"":c(v)}},89416:(w,I,o)=>{var c=o(96837),x=o(78858),v=o(45184),_=o(96517),f=o(29519),t=o(21503),p=o(80891),l=o(75946),h=o(25940),m=o(48159);w.exports=function u(g,C,A){var k=t(g),F=k||p(g)||m(g);if(C=_(C,4),null==A){var O=g&&g.constructor;A=F?k?new O:[]:h(g)&&l(O)?x(f(g)):{}}return(F?c:v)(g,function(R,U,V){return C(A,R,U,V)}),A}},68921:(w,I,o)=>{var c=o(50686),x=o(23269),v=o(80707),_=o(92377),f=x(function(t){return v(c(t,1,_,!0))});w.exports=f},51541:(w,I,o)=>{var c=o(73943),x=0;w.exports=function v(_){var f=++x;return c(_)+f}},90377:(w,I,o)=>{var c=o(19179),x=o(118);w.exports=function v(_){return null==_?[]:c(_,x(_))}},21617:(w,I,o)=>{var c=o(89719),x=o(38645);w.exports=function v(_,f){return x(_||[],f||[],c)}},34315:(w,I,o)=>{"use strict";const c=Symbol.prototype.valueOf,x=o(52872);w.exports=function v(h,m){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 p(h){const m=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(m):Buffer.from(m);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function f(h){const m=new h.constructor(h.byteLength);return new Uint8Array(m).set(new Uint8Array(h)),m}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,m){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function _(h){const m=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,m);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,I,o)=>{"use strict";function c(x){for(var v in x)I.hasOwnProperty(v)||(I[v]=x[v])}Object.defineProperty(I,"__esModule",{value:!0}),c(o(95085)),c(o(26243)),c(o(91786)),c(o(30225)),c(o(76767)),c(o(30345)),c(o(15675)),c(o(86461)),c(o(58802)),c(o(33900)),c(o(88866)),c(o(94655)),c(o(4068)),c(o(33858)),c(o(98237)),c(o(83292))},95085:function(w,I,o){"use strict";var f,c=this&&this.__extends||(f=function(t,p){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var m in h)h.hasOwnProperty(m)&&(l[m]=h[m])})(t,p)},function(t,p){function l(){this.constructor=t}f(t,p),t.prototype=null===p?Object.create(p):(l.prototype=p.prototype,new l)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(15675),v=function(f){function t(p){var l=f.call(this)||this,m=p;return m.trigger&&(l.trigger=m.trigger),m.kick&&(l.kick=m.kick),m.drag&&(l.drag=m.drag),m.on&&(l.on=m.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,f),t.prototype.trigger=function(p){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(p,l){return this},t}(x.Layout);I.LayoutAdaptor=v,I.adaptor=function _(f){return new v(f)}},83292:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(15675),x=o(76767);I.gridify=function v(t,p,l,h){t.cola.start(0,0,0,10,!1);var m=function _(t,p,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),p.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(void 0!==u.groups?u.groups.map(function(g){return t.length+g.id}):[]).concat(void 0!==u.leaves?u.leaves.map(function(g){return g.index}):[])}});var m=t.concat(p).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(m,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return m.routeEdges(t.powerGraph.powerEdges,p,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},I.powerGraphGridLayout=function f(t,p,l){var h;t.nodes.forEach(function(C,A){return C.index=A}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(A){return A.padding=l})});var m=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,A){return C.index=A}),h.groups.forEach(function(C){var A=C.index=C.id+m;g.push(C),void 0!==C.leaves&&C.leaves.forEach(function(k){return u.push({source:A,target:k.index})}),void 0!==C.groups&&C.groups.forEach(function(k){return u.push({source:A,target:k.id+m})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(p).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(p).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(A){A.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(49346),x=o(22487);I.d3adaptor=function v(f){return!f||function _(f){return f.version&&null!==f.version.match(/^3\./)}(f)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(f)}},49346:function(w,I,o){"use strict";var f,c=this&&this.__extends||(f=function(t,p){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var m in h)h.hasOwnProperty(m)&&(l[m]=h[m])})(t,p)},function(t,p){function l(){this.constructor=t}f(t,p),t.prototype=null===p?Object.create(p):(l.prototype=p.prototype,new l)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(15675),v=function(f){function t(){var p=f.call(this)||this;p.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=p;return p.drag=function(){if(!m)var m=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 m;this.call(m)},p}return c(t,f),t.prototype.trigger=function(p){var l={type:x.EventType[p.type],alpha:p.alpha,stress:p.stress};this.event[l.type](l)},t.prototype.kick=function(){var p=this;d3.timer(function(){return f.prototype.tick.call(p)})},t.prototype.on=function(p,l){return this.event.on("string"==typeof p?p:x.EventType[p],l),this},t}(x.Layout);I.D3StyleLayoutAdaptor=v,I.d3adaptor=function _(){return new v}},22487:function(w,I,o){"use strict";var _,c=this&&this.__extends||(_=function(f,t){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var h in l)l.hasOwnProperty(h)&&(p[h]=l[h])})(f,t)},function(f,t){function p(){this.constructor=f}_(f,t),f.prototype=null===t?Object.create(t):(p.prototype=t.prototype,new p)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(15675),v=function(_){function f(t){var p=_.call(this)||this;p.d3Context=t,p.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=p;return p.drag=function(){if(!m)var m=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 m;arguments[0].call(m)},p}return c(f,_),f.prototype.trigger=function(t){var p={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(p.type,p)},f.prototype.kick=function(){var t=this,p=this.d3Context.timer(function(){return _.prototype.tick.call(t)&&p.stop()})},f.prototype.on=function(t,p){return this.event.on("string"==typeof t?t:x.EventType[t],p),this},f}(x.Layout);I.D3StyleLayoutAdaptor=v},91786:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function(){function v(){this.locks={}}return v.prototype.add=function(_,f){this.locks[_]=f},v.prototype.clear=function(){this.locks={}},v.prototype.isEmpty=function(){for(var _ in this.locks)return!1;return!0},v.prototype.apply=function(_){for(var f in this.locks)_(Number(f),this.locks[f])},v}();I.Locks=o;var c=function(){function v(_,f,t){void 0===t&&(t=null),this.D=f,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=_,this.k=_.length;var p=this.n=_[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 o,this.minD=Number.MAX_VALUE;for(var h,l=p;l--;)for(h=p;--h>l;){var m=f[l][h];m>0&&m1e-9)break;var O=this.offsetDir();for(p=0;p1&&R>U||!isFinite(U)){for(p=0;p1&&(V=1);var W=U*U,rt=2*V*(R-U)/(W*R),nt=R*R*R,ut=2*-V/(W*nt);for(isFinite(rt)||console.log(rt),p=0;p0?K-(z+1)*tt:K-(z-1)*tt)&&F<=J&&(this.scaleSnapByMaxH?(this.g[p][g]+=u*at*F,this.H[p][g][g]+=u*at):(this.g[p][g]+=at*F,this.H[p][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(Ct,It){for(p=0;p0;)for(var l=f;l-- >0;)t(p,l)},v.prototype.matrixApply=function(_){v.mApply(this.k,this.n,_)},v.prototype.computeNextPosition=function(_,f){var t=this;this.computeDerivatives(_);var p=this.computeStepSize(this.g);if(this.stepAndProject(_,f,this.g,p),this.project){this.matrixApply(function(h,m){return t.e[h][m]=_[h][m]-f[h][m]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(_,f,this.e,l)}},v.prototype.run=function(_){for(var f=Number.MAX_VALUE,t=!1;!t&&_-- >0;){var p=this.rungeKutta();t=Math.abs(f/p-1)>16)/this.range},v.prototype.getNextBetween=function(_,f){return _+this.getNext()*(f-_)},v}();I.PseudoRandom=x},30225:function(w,I,o){"use strict";var it,c=this&&this.__extends||(it=function(z,E){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,It){Ct.__proto__=It}||function(Ct,It){for(var Rt in It)It.hasOwnProperty(Rt)&&(Ct[Rt]=It[Rt])})(z,E)},function(z,E){function Ct(){this.constructor=z}it(z,E),z.prototype=null===E?Object.create(E):(Ct.prototype=E.prototype,new Ct)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(4068),v=function it(){};I.Point=v;var _=function it(z,E,Ct,It){this.x1=z,this.y1=E,this.x2=Ct,this.y2=It};I.LineSegment=_;var f=function(it){function z(){return null!==it&&it.apply(this,arguments)||this}return c(z,it),z}(v);function t(it,z,E){return(z.x-it.x)*(E.y-it.y)-(E.x-it.x)*(z.y-it.y)}function p(it,z,E){return t(it,z,E)>0}function l(it,z,E){return t(it,z,E)<0}function C(it,z){var E=z.slice(0);return E.push(z[0]),{rtan:A(it,E),ltan:k(it,E)}}function A(it,z){var Ct,It,Rt,ne,E=z.length-1;if(l(it,z[1],z[0])&&!p(it,z[E-1],z[0]))return 0;for(Ct=0,It=E;;){if(It-Ct==1)return p(it,z[Ct],z[It])?Ct:It;if((ne=l(it,z[(Rt=Math.floor((Ct+It)/2))+1],z[Rt]))&&!p(it,z[Rt-1],z[Rt]))return Rt;p(it,z[Ct+1],z[Ct])?ne||p(it,z[Ct],z[Rt])?It=Rt:Ct=Rt:ne&&l(it,z[Ct],z[Rt])?It=Rt:Ct=Rt}}function k(it,z){var Ct,It,Rt,ne,E=z.length-1;if(p(it,z[E-1],z[0])&&!l(it,z[1],z[0]))return 0;for(Ct=0,It=E;;){if(It-Ct==1)return l(it,z[Ct],z[It])?Ct:It;if(ne=l(it,z[(Rt=Math.floor((Ct+It)/2))+1],z[Rt]),p(it,z[Rt-1],z[Rt])&&!ne)return Rt;l(it,z[Ct+1],z[Ct])?ne?l(it,z[Ct],z[Rt])?It=Rt:Ct=Rt:It=Rt:ne?Ct=Rt:p(it,z[Ct],z[Rt])?It=Rt:Ct=Rt}}function F(it,z,E,Ct,It,Rt){var Ht,ne;ne=Ct(it[Ht=E(z[0],it)],z);for(var Ut=!1;!Ut;){for(Ut=!0;Ht===it.length-1&&(Ht=0),!It(z[ne],it[Ht],it[Ht+1]);)++Ht;for(;0===ne&&(ne=z.length-1),!Rt(it[Ht],z[ne],z[ne-1]);)--ne,Ut=!1}return{t1:Ht,t2:ne}}function R(it,z){return F(it,z,A,k,p,l)}I.PolyPoint=f,I.isLeft=t,I.ConvexHull=function h(it){var Ct,z=it.slice(0).sort(function(Qt,me){return Qt.x!==me.x?me.x-Qt.x:me.y-Qt.y}),E=it.length,Rt=z[0].x;for(Ct=1;Ct=0&&z[Ct].x===ft;Ct--);for(Ut=Ct+1,Ct=Ht;++Ct<=Ut;)if(!(t(z[0],z[Ut],z[Ct])>=0&&Ct1&&!(t(ne[ne.length-2],ne[ne.length-1],z[Ct])>0);)ne.length-=1;0!=Ct&&ne.push(z[Ct])}vt!=Ut&&ne.push(z[vt]);var Nt=ne.length;for(Ct=Ut;--Ct>=Ht;)if(!(t(z[vt],z[Ht],z[Ct])>=0&&Ct>Ht)){for(;ne.length>Nt&&!(t(ne[ne.length-2],ne[ne.length-1],z[Ct])>0);)ne.length-=1;0!=Ct&&ne.push(z[Ct])}}return ne},I.clockwiseRadialSweep=function m(it,z,E){z.slice(0).sort(function(Ct,It){return Math.atan2(Ct.y-it.y,Ct.x-it.x)-Math.atan2(It.y-it.y,It.x-it.x)}).forEach(E)},I.tangent_PolyPolyC=F,I.LRtangent_PolyPolyC=function O(it,z){var E=R(z,it);return{t1:E.t2,t2:E.t1}},I.RLtangent_PolyPolyC=R,I.LLtangent_PolyPolyC=function U(it,z){return F(it,z,k,k,l,l)},I.RRtangent_PolyPolyC=function V(it,z){return F(it,z,A,A,p,p)};var W=function it(z,E){this.t1=z,this.t2=E};I.BiTangent=W;var rt=function it(){};I.BiTangents=rt;var nt=function(it){function z(){return null!==it&&it.apply(this,arguments)||this}return c(z,it),z}(v);I.TVGPoint=nt;var ut=function it(z,E,Ct,It){this.id=z,this.polyid=E,this.polyvertid=Ct,this.p=It,It.vv=this};I.VisibilityVertex=ut;var J=function(){function it(z,E){this.source=z,this.target=E}return it.prototype.length=function(){var z=this.source.p.x-this.target.p.x,E=this.source.p.y-this.target.p.y;return Math.sqrt(z*z+E*E)},it}();I.VisibilityEdge=J;var tt=function(){function it(z,E){if(this.P=z,this.V=[],this.E=[],E)this.V=E.V.slice(0),this.E=E.E.slice(0);else{for(var Ct=z.length,It=0;It0&&this.E.push(new J(Rt[Ht-1].vv,Ut))}Rt.length>1&&this.E.push(new J(Rt[0].vv,Rt[Rt.length-1].vv))}for(It=0;It0)return!0;return!1},it}();function Q(it,z){for(var E=[],Ct=1,It=z.length;Ct=0&&ge>=0&&ye<0&&Be>=0&&vn>=0&&Re<0?It.ll=new W(Rt,Ht):me<=0&&ge<=0&&ye>0&&Be<=0&&vn<=0&&Re>0?It.rr=new W(Rt,Ht):me<=0&&ge>0&&ye<=0&&Be>=0&&vn<0&&Re>=0?It.rl=new W(Rt,Ht):me>=0&&ge<0&&ye>=0&&Be<=0&&vn>0&&Re<=0&&(It.lr=new W(Rt,Ht))}return It}function K(it,z){return!it.every(function(E){return!function H(it,z){for(var E=1,Ct=z.length;E0)return!0}return!1}},76767:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(4068),x=o(98237),v=o(33858),_=function l(h,m,u){this.id=h,this.rect=m,this.children=u,this.leaf=void 0===u||0===u.length};I.NodeWrapper=_;var f=function l(h,m,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=m,this.y=u,this.node=g,this.line=C};I.Vert=f;var t=function(){function l(h,m){this.s=h,this.t=m;var u=l.findMatch(h,m),g=m.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=m.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,m){for(var u=h.length,g=m.length,C={length:0,si:-1,ti:-1},A=new Array(u),k=0;kC.length&&(C.length=O,C.si=k-O+1,C.ti=F-O+1)}else A[k][F]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();I.LongestCommonSubsequence=t;var p=function(){function l(h,m,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(nt,ut){return new _(ut,m.getBounds(nt),m.getChildren(nt))}),this.leaves=this.nodes.filter(function(nt){return nt.leaf}),this.groups=this.nodes.filter(function(nt){return!nt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(nt){return nt.children.forEach(function(ut){return g.nodes[ut].parent=nt})}),this.root={children:[]},this.nodes.forEach(function(nt){void 0===nt.parent&&(nt.parent=g.root,g.root.children.push(nt.id)),nt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(nt,ut){return g.getDepth(nt)-g.getDepth(ut)}),this.backToFront.slice(0).reverse().filter(function(nt){return!nt.leaf}).forEach(function(nt){var ut=c.Rectangle.empty();nt.children.forEach(function(J){return ut=ut.union(g.nodes[J].rect)}),nt.rect=ut.inflate(g.groupPadding)});var A=this.midPoints(this.cols.map(function(nt){return nt.pos})),k=this.midPoints(this.rows.map(function(nt){return nt.pos})),F=A[0],O=A[A.length-1],R=k[0],U=k[k.length-1],V=this.rows.map(function(nt){return{x1:F,x2:O,y1:nt.pos,y2:nt.pos}}).concat(k.map(function(nt){return{x1:F,x2:O,y1:nt,y2:nt}})),W=this.cols.map(function(nt){return{x1:nt.pos,x2:nt.pos,y1:R,y2:U}}).concat(A.map(function(nt){return{x1:nt,x2:nt,y1:R,y2:U}})),rt=V.concat(W);rt.forEach(function(nt){return nt.verts=[]}),this.verts=[],this.edges=[],V.forEach(function(nt){return W.forEach(function(ut){var J=new f(g.verts.length,ut.x1,nt.y1);nt.verts.push(J),ut.verts.push(J),g.verts.push(J);for(var tt=g.backToFront.length;tt-- >0;){var Q=g.backToFront[tt],at=Q.rect,H=Math.abs(J.x-at.cx()),K=Math.abs(J.y-at.cy());if(H0;){var g=u.filter(function(A){return A.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(A){return A.rect["c"+h]()}))};m.push(C),C.nodes.forEach(function(A){return u.splice(u.indexOf(A),1)})}return m.sort(function(A,k){return A.pos-k.pos}),m},l.prototype.getDepth=function(h){for(var m=0;h.parent!==this.root;)m++,h=h.parent;return m},l.prototype.midPoints=function(h){for(var m=h[1]-h[0],u=[h[0]-m/2],g=1;g.1)&&R.push(U={pos:F[0][m],segments:[]}),U.segments.push(F)}return R},l.nudgeSegs=function(h,m,u,g,C,A){var k=g.length;if(!(k<=1)){for(var F=g.map(function(Q){return new x.Variable(Q[0][h])}),O=[],R=0;R=0&&O.push(new x.Constraint(F[ut],F[J],A))}new x.Solver(F,O).solve(),F.forEach(function(Q,at){var H=g[at],K=Q.position();H[0][h]=H[1][h]=K;var lt=u[H.edgeid];H.i>0&&(lt[H.i-1][1][h]=K),H.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,m,u){return(m.x-h.x)*(u.y-h.y)-(m.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var m={},u=0;u=C.length||k.ti+k.length>=A.length)){m.push({l:u,r:g});continue}k.si+k.length>=C.length||k.ti+k.length>=A.length?(F=C[k.si+1],R=C[k.si-1],O=A[k.ti-1]):(F=C[k.si+k.length-2],O=C[k.si+k.length],R=A[k.ti+k.length]),l.isLeft(F,O,R)?m.push({l:g,r:u}):m.push({l:u,r:g})}}return l.getOrder(m)},l.makeSegments=function(h){function m(O){return{x:O.x,y:O.y}}for(var g=[],C=m(h[0]),A=1;A1&&it>1?1e3:0}).reverse().map(function(J){return u.verts[J]});return ut.push(this.nodes[C.id].ports[0]),ut.filter(function(J,tt){return!(tt0&&J.node===C&&ut[tt-1].node===C)})},l.getRoutePath=function(h,m,u,g){var k,F,O,lt,it,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var A=0;A0?F-=R/Math.abs(R)*m:O-=U/Math.abs(U)*m,C.routepath+="L "+F+" "+O+" ";var V=h[A+1],W=V[0].x,rt=V[0].y;R=V[1].x-W,U=V[1].y-rt;var tt,Q,J=l.angleBetween2Lines(k,V)<0?1:0;Math.abs(R)>0?(tt=W+R/Math.abs(R)*m,Q=rt):(tt=W,Q=rt+U/Math.abs(U)*m);var at=Math.abs(tt-F),H=Math.abs(Q-O);C.routepath+="A "+at+" "+H+" 0 0 "+J+" "+tt+" "+Q+" "}else{var K=[F,O];Math.abs(R)>0?(lt=[F-=R/Math.abs(R)*g,O+u],it=[F,O-u]):(lt=[F+u,O-=U/Math.abs(U)*g],it=[F-u,O]),C.routepath+="L "+F+" "+O+" ",g>0&&(C.arrowpath="M "+K[0]+" "+K[1]+" L "+lt[0]+" "+lt[1]+" L "+it[0]+" "+it[1])}}else R=(F=(k=h[0])[1].x)-k[0].x,U=(O=k[1].y)-k[0].y,K=[F,O],Math.abs(R)>0?(lt=[F-=R/Math.abs(R)*g,O+u],it=[F,O-u]):(lt=[F+u,O-=U/Math.abs(U)*g],it=[F-u,O]),C.routepath+="L "+F+" "+O+" ",g>0&&(C.arrowpath="M "+K[0]+" "+K[1]+" L "+lt[0]+" "+lt[1]+" L "+it[0]+" "+it[1]);return C},l}();I.GridRouter=p},30345:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o_GOLDEN_SECTION=(1+Math.sqrt(5))/2;I.applyPacking=function c(v,_,f,A,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=_,g=f,k=(C=void 0!==C?C:1,A=void 0!==A?A:0,0),F=0,O=0,R=0,U=[];function nt(Q,at){U=[],k=0,F=0,R=0;for(var H=0;H=Q.height&&U[K].x+U[K].width+Q.width+10-at<=1e-4){H=U[K];break}U.push(Q),void 0!==H?(Q.x=H.x+H.width+10,Q.y=H.bottom,Q.space_left=Q.height,Q.bottom=Q.y,H.space_left-=Q.height+10,H.bottom+=Q.height+10):(Q.y=R,R+=Q.height+10,Q.x=0,Q.bottom=Q.y,Q.space_left=Q.height),Q.y+Q.height-F>-1e-4&&(F=Q.y+Q.height-0),Q.x+Q.width-k>-1e-4&&(k=Q.x+Q.width-0)}0!=v.length&&(function V(Q){Q.forEach(function(H){!function at(H){var K=Number.MAX_VALUE,lt=Number.MAX_VALUE,it=0,z=0;H.array.forEach(function(E){var Ct=void 0!==E.width?E.width:A,It=void 0!==E.height?E.height:A;Ct/=2,It/=2,it=Math.max(E.x+Ct,it),K=Math.min(E.x-Ct,K),z=Math.max(E.y+It,z),lt=Math.min(E.y-It,lt)}),H.width=it-K,H.height=z-lt}(H)})}(v),function rt(Q,at){var H=Number.POSITIVE_INFINITY,K=0;Q.sort(function(vt,ft){return ft.height-vt.height});for(var lt=ne=O=Q.reduce(function(vt,ft){return vt.widthO||Ht>1e-4;){if(1!=It){var ne=it-(it-lt)/o_GOLDEN_SECTION;E=nt(Q,ne)}if(0!=It){var Ut=lt+(it-lt)/o_GOLDEN_SECTION;Ct=nt(Q,Ut)}if(Rt=Math.abs(ne-Ut),Ht=Math.abs(E-Ct),ECt?(lt=ne,ne=Ut,E=Ct,It=1):(it=Ut,Ut=ne,Ct=E,It=0),z++>100)break}nt(Q,K)}(v),l&&function W(Q){Q.forEach(function(at){var H={x:0,y:0};at.array.forEach(function(it){H.x+=it.x,H.y+=it.y}),H.x/=at.array.length,H.y/=at.array.length;var lt_x=at.x-(H.x-at.width/2)+u/2-k/2,lt_y=at.y-(H.y-at.height/2)+g/2-F/2;at.array.forEach(function(it){it.x+=lt_x,it.y+=lt_y})})}(v))},I.separateGraphs=function x(v,_){for(var f={},t={},p=[],l=0,h=0;h<_.length;h++){var m=_[h],u=m.source,g=m.target;t[u.index]?t[u.index].push(g):t[u.index]=[g],t[g.index]?t[g.index].push(u):t[g.index]=[u]}for(h=0;h{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var l,u,c=o(33900),x=o(58802),v=o(91786),_=o(4068),f=o(33858),t=o(30225),p=o(30345);function h(u){return void 0!==u.leaves||void 0!==u.groups}(u=l=I.EventType||(I.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var m=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&&void 0!==this.event[g.type]&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha0){var C=0;this._links.forEach(function(k){C=Math.max(C,k.source,k.target)}),this._nodes=new Array(++C);for(var A=0;A0?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 A=this;return void 0===C&&(C=1),this.linkDistance(function(k){return g*k.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(A._links,A.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var A=this;return void 0===C&&(C=1),this.linkDistance(function(k){return g*k.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(A._links,A.linkAccessor,C)},this},u.prototype.start=function(g,C,A,k,F,O){var R=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===A&&(A=0),void 0===k&&(k=0),void 0===F&&(F=!0),void 0===O&&(O=!0);var K,W=this.nodes().length,rt=W+2*this._groups.length,ut=this._canvasSize[0],J=this._canvasSize[1],tt=new Array(rt),Q=new Array(rt),at=null,H=this._avoidOverlaps;this._nodes.forEach(function(Rt,Ht){Rt.index=Ht,void 0===Rt.x&&(Rt.x=ut/2,Rt.y=J/2),tt[Ht]=Rt.x,Q[Ht]=Rt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?K=this._distanceMatrix:(K=new f.Calculator(rt,this._links,u.getSourceIndex,u.getTargetIndex,function(Rt){return R.getLinkLength(Rt)}).DistanceMatrix(),at=v.Descent.createSquareMatrix(rt,function(){return 2}),this._links.forEach(function(Rt){"number"==typeof Rt.source&&(Rt.source=R._nodes[Rt.source]),"number"==typeof Rt.target&&(Rt.target=R._nodes[Rt.target])}),this._links.forEach(function(Rt){var Ht=u.getSourceIndex(Rt),ne=u.getTargetIndex(Rt);at[Ht][ne]=at[ne][Ht]=Rt.weight||1}));var lt=v.Descent.createSquareMatrix(rt,function(Rt,Ht){return K[Rt][Ht]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var U=W;this._groups.forEach(function(Ht){(function(Ht,ne,Ut,vt){at[Ht][ne]=at[ne][Ht]=Ut,lt[Ht][ne]=lt[ne][Ht]=.1})(U,U+1,R._groupCompactness),tt[U]=0,Q[U++]=0,tt[U]=0,Q[U++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var z=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,z=z.concat(x.generateDirectedEdgeConstraints(W,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([tt,Q],lt),this._descent.locks.clear(),U=0;U0&&(this._descent.project=new _.Projection(this._nodes,this._groups,this._rootGroup,z).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(ut,J,O),this.avoidOverlaps(H),H&&(this._nodes.forEach(function(Rt,Ht){Rt.x=tt[Ht],Rt.y=Q[Ht]}),this._descent.project=new _.Projection(this._nodes,this._groups,this._rootGroup,z,!0).projectFunctions(),this._nodes.forEach(function(Rt,Ht){tt[Ht]=Rt.x,Q[Ht]=Rt.y})),this._descent.G=at,this._descent.run(A),k){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=W,this._descent.scaleSnapByMaxH=W!=rt;var It=v.Descent.createSquareMatrix(rt,function(Rt,Ht){return Rt>=W||Ht>=W?at[Rt][Ht]:0});this._descent.G=It,this._descent.run(k)}return this.updateNodePositions(),this.separateOverlappingComponents(ut,J,O),F?this.resume():this},u.prototype.initialLayout=function(g,C,A){if(this._groups.length>0&&g>0){var k=this._nodes.length,F=this._links.map(function(R){return{source:R.source.index,target:R.target.index}}),O=this._nodes.map(function(R){return{index:R.index}});this._groups.forEach(function(R,U){O.push({index:R.index=k+U})}),this._groups.forEach(function(R,U){void 0!==R.leaves&&R.leaves.forEach(function(V){return F.push({source:R.index,target:V.index})}),void 0!==R.groups&&R.groups.forEach(function(V){return F.push({source:R.index,target:V.index})})}),(new u).size(this.size()).nodes(O).links(F).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(R){C[R.index]=O[R.index].x,A[R.index]=O[R.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,A){var k=this;if(void 0===A&&(A=!0),!this._distanceMatrix&&this._handleDisconnected){var F=this._descent.x[0],O=this._descent.x[1];this._nodes.forEach(function(U,V){U.x=F[V],U.y=O[V]});var R=p.separateGraphs(this._nodes,this._links);p.applyPacking(R,g,C,this._defaultNodeSize,1,A),this._nodes.forEach(function(U,V){k._descent.x[0][V]=U.x,k._descent.x[1][V]=U.y,U.bounds&&(U.bounds.setXCentre(U.x),U.bounds.setYCentre(U.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,A){void 0===C&&(C=5);var k=[],F=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),O={x:g.source.x,y:g.source.y},R={x:g.target.x,y:g.target.y},U=F.addPoint(O,g.source.index),V=F.addPoint(R,g.target.index);F.addEdgeIfVisible(O,R,g.source.index,g.target.index),void 0!==A&&A(F);var J=new f.Calculator(F.V.length,F.E,function(lt){return lt.source.id},function(lt){return lt.target.id},function(lt){return lt.length()}).PathFromNodeToNode(U.id,V.id);if(1===J.length||J.length===F.V.length){var tt=_.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);k=[tt.sourceIntersection,tt.arrowStart]}else{for(var Q=J.length-2,at=F.V[J[Q]].p,H=F.V[J[0]].p,K=(k=[g.source.innerBounds.rayIntersection(at.x,at.y)],Q);K>=0;--K)k.push(F.V[J[K]].p);k.push(_.makeEdgeTo(H,g.target.innerBounds,C))}return k},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){void 0!==g.leaves&&g.leaves.forEach(function(A){A.fixed|=2,u.stopNode(A),A._dragGroupOffsetX=A.x-C.x,A._dragGroupOffsetY=A.y-C.y}),void 0!==g.groups&&g.groups.forEach(function(A){return u.storeOffset(A,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(void 0!==g.leaves&&g.leaves.forEach(function(A){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),A.px=A._dragGroupOffsetX+C.x,A.py=A._dragGroupOffsetY+C.y}),void 0!==g.groups&&g.groups.forEach(function(A){return u.drag(A,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(void 0!==g.leaves&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),void 0!==g.groups&&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}();I.Layout=m},86461:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(33858),x=o(91786),v=o(4068),_=o(58802),f=function(){function h(m,u){this.source=m,this.target=u}return h.prototype.actualLength=function(m){var u=this;return Math.sqrt(m.reduce(function(g,C){var A=C[u.target]-C[u.source];return g+A*A},0))},h}();I.Link3D=f,I.Node3D=function h(m,u,g){void 0===m&&(m=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=m,this.y=u,this.z=g};var p=function(){function h(m,u,g){var C=this;void 0===g&&(g=1),this.nodes=m,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var A=0;A{"use strict";function o(l,h){var m={};for(var u in l)m[u]={};for(var u in h)m[u]={};return Object.keys(m).length}function c(l,h){var m=0;for(var u in l)void 0!==h[u]&&++m;return m}function v(l,h,m,u){var g=function x(l,h){var m={},u=function(g,C){void 0===m[g]&&(m[g]={}),m[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),A=h.getTargetIndex(g);u(C,A),u(A,C)}),m}(l,u);l.forEach(function(C){var A=g[u.getSourceIndex(C)],k=g[u.getTargetIndex(C)];u.setLength(C,1+h*m(A,k))})}function p(l,h,m){var u=[],g=0,C=[],A=[];function k(J){J.index=J.lowlink=g++,C.push(J),J.onStack=!0;for(var tt=0,Q=J.out;tt{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function h(m,u,g){this.source=m,this.target=u,this.type=g};I.PowerEdge=o;var c=function(){function h(m,u,g,C){var A=this;if(this.linkAccessor=g,this.modules=new Array(m),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new f);for(var k=0;k=this.R))return this.merge(g.a,g.b,m),!0}},h.prototype.nEdges=function(m,u){var g=m.incoming.intersection(u.incoming),C=m.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(m){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(k){var F=u.modules[k.source],O=u.modules[k.target];m.push(new o(void 0===F.gid?k.source:g[F.gid],void 0===O.gid?k.target:g[O.gid],k.type))}),g},h.prototype.allEdges=function(){var m=[];return h.getEdges(this.roots[0],m),m},h.getEdges=function(m,u){m.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,m,u){h.forAll(function(g){if(g.isLeaf())m.leaves||(m.leaves=[]),m.leaves.push(g.id);else{var C=m;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var A in g.definition)C[A]=g.definition[A];m.groups||(m.groups=[]),m.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}I.Configuration=c;var v=function(){function h(m,u,g,C,A){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new f),this.id=m,this.outgoing=u,this.incoming=g,this.children=C,this.definition=A}return h.prototype.getEdges=function(m){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(A){m.push(new o(u.id,A.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 void 0!==this.definition},h}();I.Module=v;var f=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(m){var u=new h;return u.table=function _(h,m){var u={};for(var g in h)g in m&&(u[g]=h[g]);return u}(this.table,m.table),u},h.prototype.intersectionCount=function(m){return this.intersection(m).count()},h.prototype.contains=function(m){return m in this.table},h.prototype.add=function(m){this.table[m.id]=m},h.prototype.remove=function(m){delete this.table[m.id]},h.prototype.forAll=function(m){for(var u in this.table)m(this.table[u])},h.prototype.modules=function(){var m=[];return this.forAll(function(u){u.isPredefined()||m.push(u)}),m},h}();I.ModuleSet=f;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(m){var u=!1;return this.forAllModules(function(g){!u&&g.id==m&&(u=!0)}),u},h.prototype.add=function(m,u){(m in this.sets?this.sets[m]:this.sets[m]=new f).add(u),++this.n},h.prototype.remove=function(m,u){var g=this.sets[m];g.remove(u),0===g.count()&&delete this.sets[m],--this.n},h.prototype.forAll=function(m){for(var u in this.sets)m(this.sets[u],Number(u))},h.prototype.forAllModules=function(m){this.forAll(function(u,g){return u.forAll(m)})},h.prototype.intersection=function(m){var u=new h;return this.forAll(function(g,C){if(C in m.sets){var A=g.intersection(m.sets[C]),k=A.count();k>0&&(u.sets[C]=A,u.n+=k)}}),u},h}();I.LinkSets=t,I.getGroups=function l(h,m,u,g){for(var A=new c(h.length,m,u,g);A.greedyMerge(););var k=[],F=A.getGroupHierarchy(k);return k.forEach(function(O){var R=function(U){var V=O[U];"number"==typeof V&&(O[U]=h[V])};R("source"),R("target")}),{groups:F,powerEdges:k}}},88866:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function(){function x(v){this.elem=v,this.subheaps=[]}return x.prototype.toString=function(v){for(var _="",f=!1,t=0;t0)}return null}}return f.prototype.clear=function(){this._root=null,this.size=0},f.prototype.find=function(t){for(var p=this._root;null!==p;){var l=this._comparator(t,p.data);if(0===l)return p.data;p=p.get_child(l>0)}return null},f.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},f.prototype.upperBound=function(t){var p=this._comparator;return this._bound(t,function l(h,m){return p(m,h)})},f.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},f.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},f.prototype.iterator=function(){return new x(this)},f.prototype.each=function(t){for(var l,p=this.iterator();null!==(l=p.next());)t(l)},f.prototype.reach=function(t){for(var l,p=this.iterator();null!==(l=p.prev());)t(l)},f.prototype._bound=function(t,p){for(var l=this._root,h=this.iterator();null!==l;){var m=this._comparator(t,l.data);if(0===m)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(m>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(p(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},f}();I.TreeBase=c;var x=function(){function f(t){this._tree=t,this._ancestors=[],this._cursor=null}return f.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},f.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var p;do{if(p=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===p)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},f.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var p;do{if(p=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===p)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},f.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},f.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},f}();I.Iterator=x;var v=function(){function f(t){this.data=t,this.left=null,this.right=null,this.red=!0}return f.prototype.get_child=function(t){return t?this.right:this.left},f.prototype.set_child=function(t,p){t?this.right=p:this.left=p},f}(),_=function(f){function t(p){var l=f.call(this)||this;return l._root=null,l._comparator=p,l.size=0,l}return o(t,f),t.prototype.insert=function(p){var l=!1;if(null===this._root)this._root=new v(p),l=!0,this.size++;else{var h=new v(void 0),m=!1,u=!1,g=null,C=h,A=null,k=this._root;for(C.right=this._root;;){if(null===k?(k=new v(p),A.set_child(m,k),l=!0,this.size++):t.is_red(k.left)&&t.is_red(k.right)&&(k.red=!0,k.left.red=!1,k.right.red=!1),t.is_red(k)&&t.is_red(A)){var F=C.right===g;k===A.get_child(u)?C.set_child(F,t.single_rotate(g,!u)):C.set_child(F,t.double_rotate(g,!u))}var O=this._comparator(k.data,p);if(0===O)break;u=m,null!==g&&(C=g),g=A,A=k,k=k.get_child(m=O<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(p){if(null===this._root)return!1;var l=new v(void 0),h=l;h.right=this._root;for(var m=null,u=null,g=null,C=!0;null!==h.get_child(C);){var A=C;u=m,m=h,h=h.get_child(C);var k=this._comparator(p,h.data);if(C=k>0,0===k&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var F=t.single_rotate(h,C);m.set_child(A,F),m=F}else if(!t.is_red(h.get_child(!C))){var O=m.get_child(!A);if(null!==O)if(t.is_red(O.get_child(!A))||t.is_red(O.get_child(A))){var R=u.right===m;t.is_red(O.get_child(A))?u.set_child(R,t.double_rotate(m,A)):t.is_red(O.get_child(!A))&&u.set_child(R,t.single_rotate(m,A));var U=u.get_child(R);U.red=!0,h.red=!0,U.left.red=!1,U.right.red=!1}else m.red=!1,O.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,m.set_child(m.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(p){return null!==p&&p.red},t.single_rotate=function(p,l){var h=p.get_child(!l);return p.set_child(!l,h.get_child(l)),h.set_child(l,p),p.red=!0,h.red=!1,h},t.double_rotate=function(p,l){return p.set_child(!l,t.single_rotate(p.get_child(!l),!l)),t.single_rotate(p,l)},t}(c);I.RBTree=_},4068:function(w,I,o){"use strict";var J,c=this&&this.__extends||(J=function(tt,Q){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,H){at.__proto__=H}||function(at,H){for(var K in H)H.hasOwnProperty(K)&&(at[K]=H[K])})(tt,Q)},function(tt,Q){function at(){this.constructor=tt}J(tt,Q),tt.prototype=null===Q?Object.create(Q):(at.prototype=Q.prototype,new at)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(98237),v=o(94655);function _(J){return J.bounds=void 0!==J.leaves?J.leaves.reduce(function(tt,Q){return Q.bounds.union(tt)},f.empty()):f.empty(),void 0!==J.groups&&(J.bounds=J.groups.reduce(function(tt,Q){return _(Q).union(tt)},J.bounds)),J.bounds=J.bounds.inflate(J.padding),J.bounds}I.computeGroupBounds=_;var f=function(){function J(tt,Q,at,H){this.x=tt,this.X=Q,this.y=at,this.Y=H}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(tt){var Q=this.cx(),at=tt.cx();return Q<=at&&tt.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(tt,Q,at,H,K,lt,it,z){var E=at-tt,Ct=it-K,It=H-Q,Rt=z-lt,Ht=Rt*E-Ct*It;if(0==Ht)return null;var ne=tt-K,Ut=Q-lt,ft=(Ct*Ut-Rt*ne)/Ht,Qt=(E*Ut-It*ne)/Ht;return ft>=0&&ft<=1&&Qt>=0&&Qt<=1?{x:tt+ft*E,y:Q+ft*It}:null},J.prototype.inflate=function(tt){return new J(this.x-tt,this.X+tt,this.y-tt,this.Y+tt)},J}();I.Rectangle=f,I.makeEdgeBetween=function t(J,tt,Q){var at=J.rayIntersection(tt.cx(),tt.cy())||{x:J.cx(),y:J.cy()},H=tt.rayIntersection(J.cx(),J.cy())||{x:tt.cx(),y:tt.cy()},K=H.x-at.x,lt=H.y-at.y,it=Math.sqrt(K*K+lt*lt),z=it-Q;return{sourceIntersection:at,targetIntersection:H,arrowStart:{x:at.x+z*K/it,y:at.y+z*lt/it}}},I.makeEdgeTo=function p(J,tt,Q){var at=tt.rayIntersection(J.x,J.y);at||(at={x:tt.cx(),y:tt.cy()});var H=at.x-J.x,K=at.y-J.y,lt=Math.sqrt(H*H+K*K);return{x:at.x-Q*H/lt,y:at.y-Q*K/lt}};var l=function J(tt,Q,at){this.v=tt,this.r=Q,this.pos=at,this.prev=u(),this.next=u()},h=function J(tt,Q,at){this.isOpen=tt,this.v=Q,this.pos=at};function m(J,tt){return J.pos>tt.pos?1:J.pos0&&(J[at].insert(K),K[H].insert(J))};Q("next","prev"),Q("prev","next")}};function A(J,tt,Q,at){void 0===at&&(at=!1);var H=J.padding,K=void 0!==J.groups?J.groups.length:0,lt=void 0!==J.leaves?J.leaves.length:0,it=K?J.groups.reduce(function(ge,ye){return ge.concat(A(ye,tt,Q,!0))},[]):[],z=(at?2:0)+lt+K,E=new Array(z),Ct=new Array(z),It=0,Rt=function(ge,ye){Ct[It]=ge,E[It++]=ye};if(at){var Ht=J.bounds,ne=tt.getCentre(Ht),Ut=tt.getSize(Ht)/2,vt=tt.getOpen(Ht),ft=tt.getClose(Ht),Nt=ne-Ut+H/2,Qt=ne+Ut-H/2;J.minVar.desiredPosition=Nt,Rt(tt.makeRect(vt,ft,Nt,H),J.minVar),J.maxVar.desiredPosition=Qt,Rt(tt.makeRect(vt,ft,Qt,H),J.maxVar)}lt&&J.leaves.forEach(function(ge){return Rt(ge.bounds,ge.variable)}),K&&J.groups.forEach(function(ge){var ye=ge.bounds;Rt(tt.makeRect(tt.getOpen(ye),tt.getClose(ye),tt.getCentre(ye),tt.getSize(ye)),ge.minVar)});var me=k(Ct,E,tt,Q);return K&&(E.forEach(function(ge){ge.cOut=[],ge.cIn=[]}),me.forEach(function(ge){ge.left.cOut.push(ge),ge.right.cIn.push(ge)}),J.groups.forEach(function(ge){var ye=(ge.padding-tt.getSize(ge.bounds))/2;ge.minVar.cIn.forEach(function(Be){return Be.gap+=ye}),ge.minVar.cOut.forEach(function(Be){Be.left=ge.maxVar,Be.gap+=ye})})),it.concat(me)}function k(J,tt,Q,at){var H,K=J.length,lt=2*K;console.assert(tt.length>=K);var it=new Array(lt);for(H=0;Hit[at]&&(it[at]=z)}lt=it})}},J.prototype.createAlignment=function(tt){var Q=this,at=this.nodes[tt.offsets[0].node].variable;this.makeFeasible(tt);var H="x"===tt.axis?this.xConstraints:this.yConstraints;tt.offsets.slice(1).forEach(function(K){H.push(new x.Constraint(at,Q.nodes[K.node].variable,K.offset,!0))})},J.prototype.createConstraints=function(tt){var Q=this,at=function(H){return void 0===H.type||"separation"===H.type};this.xConstraints=tt.filter(function(H){return"x"===H.axis&&at(H)}).map(function(H){return Q.createSeparation(H)}),this.yConstraints=tt.filter(function(H){return"y"===H.axis&&at(H)}).map(function(H){return Q.createSeparation(H)}),tt.filter(function(H){return"alignment"===H.type}).forEach(function(H){return Q.createAlignment(H)})},J.prototype.setupVariablesAndBounds=function(tt,Q,at,H){this.nodes.forEach(function(K,lt){K.fixed?(K.variable.weight=K.fixedWeight?K.fixedWeight:1e3,at[lt]=H(K)):K.variable.weight=1;var it=(K.width||0)/2,z=(K.height||0)/2,E=tt[lt],Ct=Q[lt];K.bounds=new f(E-it,E+it,Ct-z,Ct+z)})},J.prototype.xProject=function(tt,Q,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(tt,Q,tt,at,function(H){return H.px},this.xConstraints,V,function(H){return H.bounds.setXCentre(at[H.variable.index]=H.variable.position())},function(H){var K=at[H.minVar.index]=H.minVar.position(),lt=at[H.maxVar.index]=H.maxVar.position(),it=H.padding/2;H.bounds.x=K-it,H.bounds.X=lt+it})},J.prototype.yProject=function(tt,Q,at){!this.rootGroup&&!this.yConstraints||this.project(tt,Q,Q,at,function(H){return H.py},this.yConstraints,W,function(H){return H.bounds.setYCentre(at[H.variable.index]=H.variable.position())},function(H){var K=at[H.minVar.index]=H.minVar.position(),lt=at[H.maxVar.index]=H.maxVar.position(),it=H.padding/2;H.bounds.y=K-it,H.bounds.Y=lt+it})},J.prototype.projectFunctions=function(){var tt=this;return[function(Q,at,H){return tt.xProject(Q,at,H)},function(Q,at,H){return tt.yProject(Q,at,H)}]},J.prototype.project=function(tt,Q,at,H,K,lt,it,z,E){this.setupVariablesAndBounds(tt,Q,H,K),this.rootGroup&&this.avoidOverlaps&&(_(this.rootGroup),lt=lt.concat(it(this.rootGroup))),this.solve(this.variables,lt,at,H),this.nodes.forEach(z),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(E),_(this.rootGroup))},J.prototype.solve=function(tt,Q,at,H){var K=new x.Solver(tt,Q);K.setStartingPositions(at),K.setDesiredPositions(H),K.solve()},J}();I.Projection=ut},33858:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(88866),x=function t(p,l){this.id=p,this.distance=l},v=function t(p){this.id=p,this.neighbours=[]},_=function t(p,l,h){this.node=p,this.prev=l,this.d=h},f=function(){function t(p,l,h,m,u){this.n=p,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new v(g);for(g=this.es.length;g--;){var C=this.es[g],A=h(C),k=m(C),F=u(C);this.neighbours[A].neighbours.push(new x(k,F)),this.neighbours[k].neighbours.push(new x(A,F))}}return t.prototype.DistanceMatrix=function(){for(var p=new Array(this.n),l=0;lO&&(k.d=O,k.prev=C,h.reduceKey(k.q,k,function(U,V){return U.q=V}))}}return u},t}();I.Calculator=f},98237:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function(){function p(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return p.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},p.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},p}();I.PositionStats=o;var c=function(){function p(l,h,m,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=m,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=m,this.equality=u}return p.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},p}();I.Constraint=c;var x=function(){function p(l,h,m){void 0===h&&(h=1),void 0===m&&(m=1),this.desiredPosition=l,this.weight=h,this.scale=m,this.offset=0}return p.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},p.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},p.prototype.visitNeighbours=function(l,h){var m=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return m(u,u.right)}),this.cIn.forEach(function(u){return m(u,u.left)})},p}();I.Variable=x;var v=function(){function p(l){this.vars=[],l.offset=0,this.ps=new o(l.scale),this.addVariable(l)}return p.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},p.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)}}},p.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},p.LAGRANGIAN_TOLERANCE=-1e-4,p.ZERO_UPPERBOUND=-1e-10,p}();I.Solver=f,I.removeOverlapInOneDimension=function t(p,l,h){for(var m=p.map(function(nt){return new x(nt.desiredCenter)}),u=[],g=p.length,C=0;C=j);)++ct;if(ct-M>16&&b.subarray&&Ve)return Ve.decode(b.subarray(M,ct));for(var xt="";M>10,56320|1023&De)}}else xt+=String.fromCharCode((31&kt)<<6|Pt)}else xt+=String.fromCharCode(kt)}return xt}function Ae(b,M){return b?Ce(In,b,M):""}function Yn(b,M,B,j){if(!(j>0))return 0;for(var ct=B,xt=B+j-1,kt=0;kt=55296&&Pt<=57343&&(Pt=65536+((1023&Pt)<<10)|1023&b.charCodeAt(++kt)),Pt<=127){if(B>=xt)break;M[B++]=Pt}else if(Pt<=2047){if(B+1>=xt)break;M[B++]=192|Pt>>6,M[B++]=128|63&Pt}else if(Pt<=65535){if(B+2>=xt)break;M[B++]=224|Pt>>12,M[B++]=128|Pt>>6&63,M[B++]=128|63&Pt}else{if(B+3>=xt)break;M[B++]=240|Pt>>18,M[B++]=128|Pt>>12&63,M[B++]=128|Pt>>6&63,M[B++]=128|63&Pt}}return M[B]=0,B-ct}function ni(b){for(var M=0,B=0;B=55296&&j<=57343&&(j=65536+((1023&j)<<10)|1023&b.charCodeAt(++B)),j<=127?++M:M+=j<=2047?2:j<=65535?3:4}return M}function sn(b,M){return b%M>0&&(b+=M-b%M),b}function Mn(b){je=b,E.HEAP8=wn=new Int8Array(b),E.HEAP16=new Int16Array(b),E.HEAP32=ze=new Int32Array(b),E.HEAPU8=In=new Uint8Array(b),E.HEAPU16=new Uint16Array(b),E.HEAPU32=new Uint32Array(b),E.HEAPF32=new Float32Array(b),E.HEAPF64=ci=new Float64Array(b)}var Tn,Hn=[],Kn=[],Ne=[];var _e=0,Ue=null;function nn(b){_e++,E.monitorRunDependencies&&E.monitorRunDependencies(_e)}function Zn(b){if(_e--,E.monitorRunDependencies&&E.monitorRunDependencies(_e),0==_e&&Ue){var M=Ue;Ue=null,M()}}function Ln(b){E.onAbort&&E.onAbort(b),ye(b="Aborted("+b+")"),Re=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var M=new WebAssembly.RuntimeError(b);throw It(M),M}E.preloadedImages={},E.preloadedAudios={};var gn;function Di(b){return b.startsWith("data:application/octet-stream;base64,")}function ti(b){try{if(b==gn&&Be)return new Uint8Array(Be);throw"both async and sync fetching of the wasm failed"}catch(M){Ln(M)}}Di(gn="expatlib.wasm")||(gn=function ft(b){return E.locateFile?E.locateFile(b,vt):vt+b}(gn));var un,yn,ei={11694:function(b){var M=E.getCache(E.CExpatJS)[b];if(!M.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";M.startElement()},11912:function(b){var M=E.getCache(E.CExpatJS)[b];if(!M.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";M.endElement()},12124:function(b){var M=E.getCache(E.CExpatJS)[b];if(!M.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";M.characterData()}};function ui(b){for(;b.length>0;){var M=b.shift();if("function"!=typeof M){var B=M.func;"number"==typeof B?void 0===M.arg?Nn(B)():Nn(B)(M.arg):B(void 0===M.arg?null:M.arg)}else M(E)}}function Nn(b){return Tn.get(b)}var Le={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,M){for(var B=0,j=b.length-1;j>=0;j--){var ct=b[j];"."===ct?b.splice(j,1):".."===ct?(b.splice(j,1),B++):B&&(b.splice(j,1),B--)}if(M)for(;B;B--)b.unshift("..");return b},normalize:function(b){var M="/"===b.charAt(0),B="/"===b.substr(-1);return!(b=Le.normalizeArray(b.split("/").filter(function(j){return!!j}),!M).join("/"))&&!M&&(b="."),b&&B&&(b+="/"),(M?"/":"")+b},dirname:function(b){var M=Le.splitPath(b),B=M[0],j=M[1];return B||j?(j&&(j=j.substr(0,j.length-1)),B+j):"."},basename:function(b){if("/"===b)return"/";var M=(b=(b=Le.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===M?b:b.substr(M+1)},extname:function(b){return Le.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return Le.normalize(b.join("/"))},join2:function(b,M){return Le.normalize(b+"/"+M)}};var Bn={resolve:function(){for(var b="",M=!1,B=arguments.length-1;B>=-1&&!M;B--){var j=B>=0?arguments[B]:D.cwd();if("string"!=typeof j)throw new TypeError("Arguments to path.resolve must be strings");if(!j)return"";b=j+"/"+b,M="/"===j.charAt(0)}return(M?"/":"")+(b=Le.normalizeArray(b.split("/").filter(function(ct){return!!ct}),!M).join("/"))||"."},relative:function(b,M){function B(De){for(var Ge=0;Ge=0&&""===De[Ke];Ke--);return Ge>Ke?[]:De.slice(Ge,Ke-Ge+1)}b=Bn.resolve(b).substr(1),M=Bn.resolve(M).substr(1);for(var j=B(b.split("/")),ct=B(M.split("/")),xt=Math.min(j.length,ct.length),kt=xt,Pt=0;Pt0&&(ge(Ce(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,M){null===M||10===M?(ye(Ce(b.output,0)),b.output=[]):0!=M&&b.output.push(M)},flush:function(b){b.output&&b.output.length>0&&(ye(Ce(b.output,0)),b.output=[])}}};var X={ops_table:null,mount:function(b){return X.createNode(null,"/",16895,0)},createNode:function(b,M,B,j){if(D.isBlkdev(B)||D.isFIFO(B))throw new D.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:D.chrdev_stream_ops}});var ct=D.createNode(b,M,B,j);return D.isDir(ct.mode)?(ct.node_ops=X.ops_table.dir.node,ct.stream_ops=X.ops_table.dir.stream,ct.contents={}):D.isFile(ct.mode)?(ct.node_ops=X.ops_table.file.node,ct.stream_ops=X.ops_table.file.stream,ct.usedBytes=0,ct.contents=null):D.isLink(ct.mode)?(ct.node_ops=X.ops_table.link.node,ct.stream_ops=X.ops_table.link.stream):D.isChrdev(ct.mode)&&(ct.node_ops=X.ops_table.chrdev.node,ct.stream_ops=X.ops_table.chrdev.stream),ct.timestamp=Date.now(),b&&(b.contents[M]=ct,b.timestamp=ct.timestamp),ct},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,M){var B=b.contents?b.contents.length:0;if(!(B>=M)){M=Math.max(M,B*(B<1048576?2:1.125)>>>0),0!=B&&(M=Math.max(M,256));var ct=b.contents;b.contents=new Uint8Array(M),b.usedBytes>0&&b.contents.set(ct.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,M){if(b.usedBytes!=M)if(0==M)b.contents=null,b.usedBytes=0;else{var B=b.contents;b.contents=new Uint8Array(M),B&&b.contents.set(B.subarray(0,Math.min(M,b.usedBytes))),b.usedBytes=M}},node_ops:{getattr:function(b){var M={};return M.dev=D.isChrdev(b.mode)?b.id:1,M.ino=b.id,M.mode=b.mode,M.nlink=1,M.uid=0,M.gid=0,M.rdev=b.rdev,M.size=D.isDir(b.mode)?4096:D.isFile(b.mode)?b.usedBytes:D.isLink(b.mode)?b.link.length:0,M.atime=new Date(b.timestamp),M.mtime=new Date(b.timestamp),M.ctime=new Date(b.timestamp),M.blksize=4096,M.blocks=Math.ceil(M.size/M.blksize),M},setattr:function(b,M){void 0!==M.mode&&(b.mode=M.mode),void 0!==M.timestamp&&(b.timestamp=M.timestamp),void 0!==M.size&&X.resizeFileStorage(b,M.size)},lookup:function(b,M){throw D.genericErrors[44]},mknod:function(b,M,B,j){return X.createNode(b,M,B,j)},rename:function(b,M,B){if(D.isDir(b.mode)){var j;try{j=D.lookupNode(M,B)}catch(xt){}if(j)for(var ct in j.contents)throw new D.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=B,M.contents[B]=b,M.timestamp=b.parent.timestamp,b.parent=M},unlink:function(b,M){delete b.contents[M],b.timestamp=Date.now()},rmdir:function(b,M){var B=D.lookupNode(b,M);for(var j in B.contents)throw new D.ErrnoError(55);delete b.contents[M],b.timestamp=Date.now()},readdir:function(b){var M=[".",".."];for(var B in b.contents)!b.contents.hasOwnProperty(B)||M.push(B);return M},symlink:function(b,M,B){var j=X.createNode(b,M,41471,0);return j.link=B,j},readlink:function(b){if(!D.isLink(b.mode))throw new D.ErrnoError(28);return b.link}},stream_ops:{read:function(b,M,B,j,ct){var xt=b.node.contents;if(ct>=b.node.usedBytes)return 0;var kt=Math.min(b.node.usedBytes-ct,j);if(kt>8&&xt.subarray)M.set(xt.subarray(ct,ct+kt),B);else for(var Pt=0;Pt0||j+B8)throw new D.ErrnoError(32);for(var ct=Le.normalizeArray(b.split("/").filter(function(Ze){return!!Ze}),!1),xt=D.root,kt="/",Pt=0;Pt40)throw new D.ErrnoError(32)}}return{path:kt,node:xt}},getPath:function(b){for(var M;;){if(D.isRoot(b)){var B=b.mount.mountpoint;return M?"/"!==B[B.length-1]?B+"/"+M:B+M:B}M=M?b.name+"/"+M:b.name,b=b.parent}},hashName:function(b,M){for(var B=0,j=0;j>>0)%D.nameTable.length},hashAddNode:function(b){var M=D.hashName(b.parent.id,b.name);b.name_next=D.nameTable[M],D.nameTable[M]=b},hashRemoveNode:function(b){var M=D.hashName(b.parent.id,b.name);if(D.nameTable[M]===b)D.nameTable[M]=b.name_next;else for(var B=D.nameTable[M];B;){if(B.name_next===b){B.name_next=b.name_next;break}B=B.name_next}},lookupNode:function(b,M){var B=D.mayLookup(b);if(B)throw new D.ErrnoError(B,b);for(var j=D.hashName(b.id,M),ct=D.nameTable[j];ct;ct=ct.name_next)if(ct.parent.id===b.id&&ct.name===M)return ct;return D.lookup(b,M)},createNode:function(b,M,B,j){var ct=new D.FSNode(b,M,B,j);return D.hashAddNode(ct),ct},destroyNode:function(b){D.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 M=D.flagModes[b];if(void 0===M)throw new Error("Unknown file open mode: "+b);return M},flagsToPermissionString:function(b){var M=["r","w","rw"][3&b];return 512&b&&(M+="w"),M},nodePermissions:function(b,M){return D.ignorePermissions?0:M.includes("r")&&!(292&b.mode)||M.includes("w")&&!(146&b.mode)||M.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return D.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,M){try{return D.lookupNode(b,M),20}catch(j){}return D.nodePermissions(b,"wx")},mayDelete:function(b,M,B){var j;try{j=D.lookupNode(b,M)}catch(xt){return xt.errno}var ct=D.nodePermissions(b,"wx");if(ct)return ct;if(B){if(!D.isDir(j.mode))return 54;if(D.isRoot(j)||D.getPath(j)===D.cwd())return 10}else if(D.isDir(j.mode))return 31;return 0},mayOpen:function(b,M){return b?D.isLink(b.mode)?32:D.isDir(b.mode)&&("r"!==D.flagsToPermissionString(M)||512&M)?31:D.nodePermissions(b,D.flagsToPermissionString(M)):44},MAX_OPEN_FDS:4096,nextfd:function(b,M){M=M||D.MAX_OPEN_FDS;for(var B=b=b||0;B<=M;B++)if(!D.streams[B])return B;throw new D.ErrnoError(33)},getStream:function(b){return D.streams[b]},createStream:function(b,M,B){D.FSStream||(D.FSStream=function(){},D.FSStream.prototype={object:{get:function(){return this.node},set:function(kt){this.node=kt}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var j=new D.FSStream;for(var ct in b)j[ct]=b[ct];b=j;var xt=D.nextfd(M,B);return b.fd=xt,D.streams[xt]=b,b},closeStream:function(b){D.streams[b]=null},chrdev_stream_ops:{open:function(b){var M=D.getDevice(b.node.rdev);b.stream_ops=M.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new D.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,M){return b<<8|M},registerDevice:function(b,M){D.devices[b]={stream_ops:M}},getDevice:function(b){return D.devices[b]},getMounts:function(b){for(var M=[],B=[b];B.length;){var j=B.pop();M.push(j),B.push.apply(B,j.mounts)}return M},syncfs:function(b,M){"function"==typeof b&&(M=b,b=!1),D.syncFSRequests++,D.syncFSRequests>1&&ye("warning: "+D.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var B=D.getMounts(D.root.mount),j=0;function ct(kt){return D.syncFSRequests--,M(kt)}function xt(kt){if(kt)return xt.errored?void 0:(xt.errored=!0,ct(kt));++j>=B.length&&ct(null)}B.forEach(function(kt){if(!kt.type.syncfs)return xt(null);kt.type.syncfs(kt,b,xt)})},mount:function(b,M,B){var xt,j="/"===B,ct=!B;if(j&&D.root)throw new D.ErrnoError(10);if(!j&&!ct){var kt=D.lookupPath(B,{follow_mount:!1});if(B=kt.path,D.isMountpoint(xt=kt.node))throw new D.ErrnoError(10);if(!D.isDir(xt.mode))throw new D.ErrnoError(54)}var Pt={type:b,opts:M,mountpoint:B,mounts:[]},ae=b.mount(Pt);return ae.mount=Pt,Pt.root=ae,j?D.root=ae:xt&&(xt.mounted=Pt,xt.mount&&xt.mount.mounts.push(Pt)),ae},unmount:function(b){var M=D.lookupPath(b,{follow_mount:!1});if(!D.isMountpoint(M.node))throw new D.ErrnoError(28);var B=M.node,j=B.mounted,ct=D.getMounts(j);Object.keys(D.nameTable).forEach(function(kt){for(var Pt=D.nameTable[kt];Pt;){var ae=Pt.name_next;ct.includes(Pt.mount)&&D.destroyNode(Pt),Pt=ae}}),B.mounted=null;var xt=B.mount.mounts.indexOf(j);B.mount.mounts.splice(xt,1)},lookup:function(b,M){return b.node_ops.lookup(b,M)},mknod:function(b,M,B){var ct=D.lookupPath(b,{parent:!0}).node,xt=Le.basename(b);if(!xt||"."===xt||".."===xt)throw new D.ErrnoError(28);var kt=D.mayCreate(ct,xt);if(kt)throw new D.ErrnoError(kt);if(!ct.node_ops.mknod)throw new D.ErrnoError(63);return ct.node_ops.mknod(ct,xt,M,B)},create:function(b,M){return M=void 0!==M?M:438,M&=4095,D.mknod(b,M|=32768,0)},mkdir:function(b,M){return M=void 0!==M?M:511,M&=1023,D.mknod(b,M|=16384,0)},mkdirTree:function(b,M){for(var B=b.split("/"),j="",ct=0;ctthis.length-1||Ze<0)){var We=Ze%this.chunkSize;return this.getter(Ze/this.chunkSize|0)[We]}},xt.prototype.setDataGetter=function(Ze){this.getter=Ze},xt.prototype.cacheLength=function(){var Ze=new XMLHttpRequest;if(Ze.open("HEAD",B,!1),Ze.send(null),!(Ze.status>=200&&Ze.status<300||304===Ze.status))throw new Error("Couldn't load "+B+". Status: "+Ze.status);var An,We=Number(Ze.getResponseHeader("Content-length")),di=(An=Ze.getResponseHeader("Accept-Ranges"))&&"bytes"===An,rr=(An=Ze.getResponseHeader("Content-Encoding"))&&"gzip"===An,Li=1048576;di||(Li=We);var ii=this;ii.setDataGetter(function(Mi){var ar=Mi*Li,si=(Mi+1)*Li-1;if(si=Math.min(si,We-1),void 0===ii.chunks[Mi]&&(ii.chunks[Mi]=function(Mi,ar){if(Mi>ar)throw new Error("invalid range ("+Mi+", "+ar+") or no bytes requested!");if(ar>We-1)throw new Error("only "+We+" bytes available! programmer error!");var si=new XMLHttpRequest;if(si.open("GET",B,!1),We!==Li&&si.setRequestHeader("Range","bytes="+Mi+"-"+ar),"undefined"!=typeof Uint8Array&&(si.responseType="arraybuffer"),si.overrideMimeType&&si.overrideMimeType("text/plain; charset=x-user-defined"),si.send(null),!(si.status>=200&&si.status<300||304===si.status))throw new Error("Couldn't load "+B+". Status: "+si.status);return void 0!==si.response?new Uint8Array(si.response||[]):ve(si.responseText||"",!0)}(ar,si)),void 0===ii.chunks[Mi])throw new Error("doXHR failed!");return ii.chunks[Mi]}),(rr||!We)&&(Li=We=1,We=this.getter(0).length,Li=We,ge("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=We,this._chunkSize=Li,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Pt,ae=D.createFile(b,M,Pt={isDevice:!1,url:B},j,ct);Pt.contents?ae.contents=Pt.contents:Pt.url&&(ae.contents=null,ae.url=Pt.url),Object.defineProperties(ae,{usedBytes:{get:function(){return this.contents.length}}});var De={};return Object.keys(ae.stream_ops).forEach(function(Ke){var Ze=ae.stream_ops[Ke];De[Ke]=function(){return D.forceLoadFile(ae),Ze.apply(null,arguments)}}),De.read=function(Ze,We,An,di,rr){D.forceLoadFile(ae);var Li=Ze.node.contents;if(rr>=Li.length)return 0;var fi=Math.min(Li.length-rr,di);if(Li.slice)for(var ii=0;ii>2]=j.dev,ze[B+4>>2]=0,ze[B+8>>2]=j.ino,ze[B+12>>2]=j.mode,ze[B+16>>2]=j.nlink,ze[B+20>>2]=j.uid,ze[B+24>>2]=j.gid,ze[B+28>>2]=j.rdev,ze[B+32>>2]=0,yn=[j.size>>>0,(un=j.size,+Math.abs(un)>=1?un>0?(0|Math.min(+Math.floor(un/4294967296),4294967295))>>>0:~~+Math.ceil((un-+(~~un>>>0))/4294967296)>>>0:0)],ze[B+40>>2]=yn[0],ze[B+44>>2]=yn[1],ze[B+48>>2]=4096,ze[B+52>>2]=j.blocks,ze[B+56>>2]=j.atime.getTime()/1e3|0,ze[B+60>>2]=0,ze[B+64>>2]=j.mtime.getTime()/1e3|0,ze[B+68>>2]=0,ze[B+72>>2]=j.ctime.getTime()/1e3|0,ze[B+76>>2]=0,yn=[j.ino>>>0,(un=j.ino,+Math.abs(un)>=1?un>0?(0|Math.min(+Math.floor(un/4294967296),4294967295))>>>0:~~+Math.ceil((un-+(~~un>>>0))/4294967296)>>>0:0)],ze[B+80>>2]=yn[0],ze[B+84>>2]=yn[1],0},doMsync:function(b,M,B,j,ct){var xt=In.slice(b,b+B);D.msync(M,xt,ct,B,j)},doMkdir:function(b,M){return"/"===(b=Le.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),D.mkdir(b,M,0),0},doMknod:function(b,M,B){switch(61440&M){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return D.mknod(b,M,B),0},doReadlink:function(b,M,B){if(B<=0)return-28;var j=D.readlink(b),ct=Math.min(B,ni(j)),xt=wn[M+ct];return function Wn(b,M,B){return Yn(b,In,M,B)}(j,M,B+1),wn[M+ct]=xt,ct},doAccess:function(b,M){if(-8&M)return-28;var j=D.lookupPath(b,{follow:!0}).node;if(!j)return-44;var ct="";return 4&M&&(ct+="r"),2&M&&(ct+="w"),1&M&&(ct+="x"),ct&&D.nodePermissions(j,ct)?-2:0},doDup:function(b,M,B){var j=D.getStream(B);return j&&D.close(j),D.open(b,M,0,B,B).fd},doReadv:function(b,M,B,j){for(var ct=0,xt=0;xt>2],ae=D.read(b,wn,ze[M+8*xt>>2],Pt,j);if(ae<0)return-1;if(ct+=ae,ae>2],ze[M+(8*xt+4)>>2],j);if(ae<0)return-1;ct+=ae}return ct},varargs:void 0,get:function(){return At.varargs+=4,ze[At.varargs-4>>2]},getStr:function(b){return Ae(b)},getStreamFromFD:function(b){var M=D.getStream(b);if(!M)throw new D.ErrnoError(8);return M},get64:function(b,M){return b}};var Yt=[];function pt(b){try{return vn.grow(b-je.byteLength+65535>>>16),Mn(vn.buffer),1}catch(M){}}var wt={};function te(){if(!te.strings){var M={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",_:ne||"./this.program"};for(var B in wt)void 0===wt[B]?delete M[B]:M[B]=wt[B];var j=[];for(var B in M)j.push(B+"="+M[B]);te.strings=j}return te.strings}var He=function(b,M,B,j){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=D.nextInode++,this.name=M,this.mode=B,this.node_ops={},this.stream_ops={},this.rdev=j};function ve(b,M,B){var j=B>0?B:ni(b)+1,ct=new Array(j),xt=Yn(b,ct,0,ct.length);return M&&(ct.length=xt),ct}Object.defineProperties(He.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 D.isDir(this.mode)}},isDevice:{get:function(){return D.isChrdev(this.mode)}}}),D.FSNode=He,D.staticInit();var Qe={h:function Ot(b,M,B){At.varargs=B;try{var j=At.getStr(b),ct=B?At.get():0;return D.open(j,M,ct).fd}catch(kt){if(void 0===D||!(kt instanceof D.ErrnoError))throw kt;return-kt.errno}},b:function Bt(){Ln("")},a:function qt(b,M,B){var j=function re(b,M){var B;for(Yt.length=0,M>>=2;B=In[b++];){var j=B<105;j&&1&M&&M++,Yt.push(j?ci[M++>>1]:ze[M]),++M}return Yt}(M,B);return ei[b].apply(null,j)},k:function q(b,M,B){In.copyWithin(b,M,M+B)},e:function bt(b){var M=In.length,B=2147483648;if((b>>>=0)>B)return!1;for(var j=1;j<=4;j*=2){var ct=M*(1+.2/j);if(ct=Math.min(ct,b+100663296),pt(Math.min(B,sn(Math.max(b,ct),65536))))return!0}return!1},f:function Dt(b,M){var B=0;return te().forEach(function(j,ct){var xt=M+B;ze[b+4*ct>>2]=xt,function xn(b,M,B){for(var j=0;j>0]=b.charCodeAt(j);B||(wn[M>>0]=0)}(j,xt),B+=j.length+1}),0},g:function he(b,M){var B=te();ze[b>>2]=B.length;var j=0;return B.forEach(function(ct){j+=ct.length+1}),ze[M>>2]=j,0},d:function N(b){try{var M=At.getStreamFromFD(b);return D.close(M),0}catch(B){if(void 0===D||!(B instanceof D.ErrnoError))throw B;return B.errno}},i:function le(b,M,B,j){try{var ct=At.getStreamFromFD(b),xt=At.doReadv(ct,M,B);return ze[j>>2]=xt,0}catch(kt){if(void 0===D||!(kt instanceof D.ErrnoError))throw kt;return kt.errno}},j:function ke(b,M,B,j,ct){try{var xt=At.getStreamFromFD(b),Pt=4294967296*B+(M>>>0),ae=9007199254740992;return Pt<=-ae||Pt>=ae?-61:(D.llseek(xt,Pt,j),yn=[xt.position>>>0,(un=xt.position,+Math.abs(un)>=1?un>0?(0|Math.min(+Math.floor(un/4294967296),4294967295))>>>0:~~+Math.ceil((un-+(~~un>>>0))/4294967296)>>>0:0)],ze[ct>>2]=yn[0],ze[ct+4>>2]=yn[1],xt.getdents&&0===Pt&&0===j&&(xt.getdents=null),0)}catch(De){if(void 0===D||!(De instanceof D.ErrnoError))throw De;return De.errno}},c:function Oe(b,M,B,j){try{var ct=At.getStreamFromFD(b),xt=At.doWritev(ct,M,B);return ze[j>>2]=xt,0}catch(kt){if(void 0===D||!(kt instanceof D.ErrnoError))throw kt;return kt.errno}},l:function rn(b){var M=Date.now();return ze[b>>2]=M/1e3|0,ze[b+4>>2]=M%1e3*1e3|0,0}};(function On(){var b={a:Qe};function M(kt,Pt){E.asm=kt.exports,Mn((vn=E.asm.m).buffer),Tn=E.asm.G,function se(b){Kn.unshift(b)}(E.asm.n),Zn()}function B(kt){M(kt.instance)}function j(kt){return function wi(){return Be||"function"!=typeof fetch?Promise.resolve().then(function(){return ti(gn)}):fetch(gn,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+gn+"'";return b.arrayBuffer()}).catch(function(){return ti(gn)})}().then(function(Pt){return WebAssembly.instantiate(Pt,b)}).then(function(Pt){return Pt}).then(kt,function(Pt){ye("failed to asynchronously prepare wasm: "+Pt),Ln(Pt)})}if(nn(),E.instantiateWasm)try{return E.instantiateWasm(b,M)}catch(kt){return ye("Module.instantiateWasm callback failed with error: "+kt),!1}return function ct(){return Be||"function"!=typeof WebAssembly.instantiateStreaming||Di(gn)||"function"!=typeof fetch?j(B):fetch(gn,{credentials:"same-origin"}).then(function(kt){return WebAssembly.instantiateStreaming(kt,b).then(B,function(ae){return ye("wasm streaming compile failed: "+ae),ye("falling back to ArrayBuffer instantiation"),j(B)})})}().catch(It),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.n).apply(null,arguments)};var Fn,et=E._emscripten_bind_CExpat_CExpat_0=function(){return(et=E._emscripten_bind_CExpat_CExpat_0=E.asm.o).apply(null,arguments)},gt=E._emscripten_bind_CExpat_version_0=function(){return(gt=E._emscripten_bind_CExpat_version_0=E.asm.p).apply(null,arguments)},mt=E._emscripten_bind_CExpat_create_0=function(){return(mt=E._emscripten_bind_CExpat_create_0=E.asm.q).apply(null,arguments)},St=E._emscripten_bind_CExpat_destroy_0=function(){return(St=E._emscripten_bind_CExpat_destroy_0=E.asm.r).apply(null,arguments)},zt=E._emscripten_bind_CExpat_parse_1=function(){return(zt=E._emscripten_bind_CExpat_parse_1=E.asm.s).apply(null,arguments)},ee=E._emscripten_bind_CExpat_tag_0=function(){return(ee=E._emscripten_bind_CExpat_tag_0=E.asm.t).apply(null,arguments)},Jt=E._emscripten_bind_CExpat_attrs_0=function(){return(Jt=E._emscripten_bind_CExpat_attrs_0=E.asm.u).apply(null,arguments)},pe=E._emscripten_bind_CExpat_content_0=function(){return(pe=E._emscripten_bind_CExpat_content_0=E.asm.v).apply(null,arguments)},xe=E._emscripten_bind_CExpat_startElement_0=function(){return(xe=E._emscripten_bind_CExpat_startElement_0=E.asm.w).apply(null,arguments)},Wt=E._emscripten_bind_CExpat_endElement_0=function(){return(Wt=E._emscripten_bind_CExpat_endElement_0=E.asm.x).apply(null,arguments)},oe=E._emscripten_bind_CExpat_characterData_0=function(){return(oe=E._emscripten_bind_CExpat_characterData_0=E.asm.y).apply(null,arguments)},Ie=E._emscripten_bind_CExpat___destroy___0=function(){return(Ie=E._emscripten_bind_CExpat___destroy___0=E.asm.z).apply(null,arguments)},Me=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Me=E._emscripten_bind_VoidPtr___destroy___0=E.asm.A).apply(null,arguments)},Ye=E._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(Ye=E._emscripten_bind_CExpatJS_CExpatJS_0=E.asm.B).apply(null,arguments)},$n=E._emscripten_bind_CExpatJS_startElement_0=function(){return($n=E._emscripten_bind_CExpatJS_startElement_0=E.asm.C).apply(null,arguments)},En=E._emscripten_bind_CExpatJS_endElement_0=function(){return(En=E._emscripten_bind_CExpatJS_endElement_0=E.asm.D).apply(null,arguments)},Sn=E._emscripten_bind_CExpatJS_characterData_0=function(){return(Sn=E._emscripten_bind_CExpatJS_characterData_0=E.asm.E).apply(null,arguments)},we=E._emscripten_bind_CExpatJS___destroy___0=function(){return(we=E._emscripten_bind_CExpatJS___destroy___0=E.asm.F).apply(null,arguments)};function Qn(b){function M(){Fn||(Fn=!0,E.calledRun=!0,!Re&&(function jn(){!E.noFSInit&&!D.init.initialized&&D.init(),D.ignorePermissions=!1,ui(Kn)}(),Ct(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function yt(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)b=E.postRun.shift(),Ne.unshift(b);var b;ui(Ne)}()))}_e>0||(function Xn(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)b=E.preRun.shift(),Hn.unshift(b);var b;ui(Hn)}(),_e>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),M()},1)):M())}if(E._malloc=function(){return(E._malloc=E.asm.H).apply(null,arguments)},Ue=function b(){Fn||Qn(),Fn||(Ue=b)},E.run=Qn,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function on(){}function ln(b){return(b||on).__cache__}function Un(b,M){var B=ln(M),j=B[b];return j||((j=Object.create((M||on).prototype)).ptr=b,B[b]=j)}Qn(),(on.prototype=Object.create(on.prototype)).constructor=on,on.prototype.__class__=on,on.__cache__={},E.WrapperObject=on,E.getCache=ln,E.wrapPointer=Un,E.castObject=function Vi(b,M){return Un(b.ptr,M)},E.NULL=Un(0),E.destroy=function hi(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete ln(b.__class__)[b.ptr]},E.compare=function zi(b,M){return b.ptr===M.ptr},E.getPointer=function Jn(b){return b.ptr},E.getClass=function Ai(b){return b.__class__};var cn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(cn.needed){for(var b=0;b=cn.size?(mn(j>0),cn.needed+=j,ct=E._malloc(j),cn.temps.push(ct)):(ct=cn.buffer+cn.pos,cn.pos+=j),ct},copy:function(b,M,B){switch(B>>>=0,M.BYTES_PER_ELEMENT){case 2:B>>>=1;break;case 4:B>>>=2;break;case 8:B>>>=3}for(var ct=0;ct=$);)++dt;if(dt-L>16&&y.subarray&&ni)return ni.decode(y.subarray(L,dt));for(var Et="";L>10,56320|1023&Xe)}}else Et+=String.fromCharCode((31&Lt)<<6|Vt)}else Et+=String.fromCharCode(Lt)}return Et}function sn(y,L){return y?xn(Hn,y,L):""}function je(y,L,Z,$){if(!($>0))return 0;for(var dt=Z,Et=Z+$-1,Lt=0;Lt=55296&&Vt<=57343&&(Vt=65536+((1023&Vt)<<10)|1023&y.charCodeAt(++Lt)),Vt<=127){if(Z>=Et)break;L[Z++]=Vt}else if(Vt<=2047){if(Z+1>=Et)break;L[Z++]=192|Vt>>6,L[Z++]=128|63&Vt}else if(Vt<=65535){if(Z+2>=Et)break;L[Z++]=224|Vt>>12,L[Z++]=128|Vt>>6&63,L[Z++]=128|63&Vt}else{if(Z+3>=Et)break;L[Z++]=240|Vt>>18,L[Z++]=128|Vt>>12&63,L[Z++]=128|Vt>>6&63,L[Z++]=128|63&Vt}}return L[Z]=0,Z-dt}function In(y){for(var L=0,Z=0;Z=55296&&$<=57343&&($=65536+((1023&$)<<10)|1023&y.charCodeAt(++Z)),$<=127?++L:L+=$<=2047?2:$<=65535?3:4}return L}function ci(y,L){return y%L>0&&(y+=L-y%L),y}function jn(y){Mn=y,E.HEAP8=Tn=new Int8Array(y),E.HEAP16=Kn=new Int16Array(y),E.HEAP32=Ne=new Int32Array(y),E.HEAPU8=Hn=new Uint8Array(y),E.HEAPU16=new Uint16Array(y),E.HEAPU32=new Uint32Array(y),E.HEAPF32=new Float32Array(y),E.HEAPF64=Xn=new Float64Array(y)}var yt,Gt=[],se=[],de=[];var gn=0,ti=null;function On(y){gn++,E.monitorRunDependencies&&E.monitorRunDependencies(gn)}function un(y){if(gn--,E.monitorRunDependencies&&E.monitorRunDependencies(gn),0==gn&&ti){var L=ti;ti=null,L()}}function yn(y){E.onAbort&&E.onAbort(y),Be(y="Aborted("+y+")"),Yn=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var L=new WebAssembly.RuntimeError(y);throw It(L),L}E.preloadedImages={},E.preloadedAudios={};var Nn;function ui(y){return y.startsWith("data:application/octet-stream;base64,")}function Le(y){try{if(y==Nn&&Ve)return new Uint8Array(Ve);throw"both async and sync fetching of the wasm failed"}catch(L){yn(L)}}ui(Nn="graphvizlib.wasm")||(Nn=function Nt(y){return E.locateFile?E.locateFile(y,ft):ft+y}(Nn));var fn,G,At,X={161580:function(y,L){var Z=sn(y),$=sn(L);N.createPath("/",qt.dirname(Z)),N.writeFile(qt.join("/",Z),$)}};function ht(y){for(;y.length>0;){var L=y.shift();if("function"!=typeof L){var Z=L.func;"number"==typeof Z?void 0===L.arg?D(Z)():D(Z)(L.arg):Z(void 0===L.arg?null:L.arg)}else L(E)}}function D(y){return yt.get(y)}At=function(){return performance.now()};function Bt(y){return Ne[kt()>>2]=y,y}var qt={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,L){for(var Z=0,$=y.length-1;$>=0;$--){var dt=y[$];"."===dt?y.splice($,1):".."===dt?(y.splice($,1),Z++):Z&&(y.splice($,1),Z--)}if(L)for(;Z;Z--)y.unshift("..");return y},normalize:function(y){var L="/"===y.charAt(0),Z="/"===y.substr(-1);return!(y=qt.normalizeArray(y.split("/").filter(function($){return!!$}),!L).join("/"))&&!L&&(y="."),y&&Z&&(y+="/"),(L?"/":"")+y},dirname:function(y){var L=qt.splitPath(y),Z=L[0],$=L[1];return Z||$?($&&($=$.substr(0,$.length-1)),Z+$):"."},basename:function(y){if("/"===y)return"/";var L=(y=(y=qt.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===L?y:y.substr(L+1)},extname:function(y){return qt.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return qt.normalize(y.join("/"))},join2:function(y,L){return qt.normalize(y+"/"+L)}};var pt={resolve:function(){for(var y="",L=!1,Z=arguments.length-1;Z>=-1&&!L;Z--){var $=Z>=0?arguments[Z]:N.cwd();if("string"!=typeof $)throw new TypeError("Arguments to path.resolve must be strings");if(!$)return"";y=$+"/"+y,L="/"===$.charAt(0)}return(L?"/":"")+(y=qt.normalizeArray(y.split("/").filter(function(dt){return!!dt}),!L).join("/"))||"."},relative:function(y,L){function Z(Xe){for(var hn=0;hn=0&&""===Xe[bn];bn--);return hn>bn?[]:Xe.slice(hn,bn-hn+1)}y=pt.resolve(y).substr(1),L=pt.resolve(L).substr(1);for(var $=Z(y.split("/")),dt=Z(L.split("/")),Et=Math.min($.length,dt.length),Lt=Et,Vt=0;Vt0&&(ye(xn(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,L){null===L||10===L?(Be(xn(y.output,0)),y.output=[]):0!=L&&y.output.push(L)},flush:function(y){y.output&&y.output.length>0&&(Be(xn(y.output,0)),y.output=[])}}};function te(y){y=function Xt(y,L){return Math.ceil(y/L)*L}(y,65536);var L=Ge(65536,y);return L?(function wt(y,L){Hn.fill(0,y,y+L)}(L,y),L):0}var Dt={ops_table:null,mount:function(y){return Dt.createNode(null,"/",16895,0)},createNode:function(y,L,Z,$){if(N.isBlkdev(Z)||N.isFIFO(Z))throw new N.ErrnoError(63);Dt.ops_table||(Dt.ops_table={dir:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr,lookup:Dt.node_ops.lookup,mknod:Dt.node_ops.mknod,rename:Dt.node_ops.rename,unlink:Dt.node_ops.unlink,rmdir:Dt.node_ops.rmdir,readdir:Dt.node_ops.readdir,symlink:Dt.node_ops.symlink},stream:{llseek:Dt.stream_ops.llseek}},file:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr},stream:{llseek:Dt.stream_ops.llseek,read:Dt.stream_ops.read,write:Dt.stream_ops.write,allocate:Dt.stream_ops.allocate,mmap:Dt.stream_ops.mmap,msync:Dt.stream_ops.msync}},link:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr,readlink:Dt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr},stream:N.chrdev_stream_ops}});var dt=N.createNode(y,L,Z,$);return N.isDir(dt.mode)?(dt.node_ops=Dt.ops_table.dir.node,dt.stream_ops=Dt.ops_table.dir.stream,dt.contents={}):N.isFile(dt.mode)?(dt.node_ops=Dt.ops_table.file.node,dt.stream_ops=Dt.ops_table.file.stream,dt.usedBytes=0,dt.contents=null):N.isLink(dt.mode)?(dt.node_ops=Dt.ops_table.link.node,dt.stream_ops=Dt.ops_table.link.stream):N.isChrdev(dt.mode)&&(dt.node_ops=Dt.ops_table.chrdev.node,dt.stream_ops=Dt.ops_table.chrdev.stream),dt.timestamp=Date.now(),y&&(y.contents[L]=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,L){var Z=y.contents?y.contents.length:0;if(!(Z>=L)){L=Math.max(L,Z*(Z<1048576?2:1.125)>>>0),0!=Z&&(L=Math.max(L,256));var dt=y.contents;y.contents=new Uint8Array(L),y.usedBytes>0&&y.contents.set(dt.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,L){if(y.usedBytes!=L)if(0==L)y.contents=null,y.usedBytes=0;else{var Z=y.contents;y.contents=new Uint8Array(L),Z&&y.contents.set(Z.subarray(0,Math.min(L,y.usedBytes))),y.usedBytes=L}},node_ops:{getattr:function(y){var L={};return L.dev=N.isChrdev(y.mode)?y.id:1,L.ino=y.id,L.mode=y.mode,L.nlink=1,L.uid=0,L.gid=0,L.rdev=y.rdev,L.size=N.isDir(y.mode)?4096:N.isFile(y.mode)?y.usedBytes:N.isLink(y.mode)?y.link.length:0,L.atime=new Date(y.timestamp),L.mtime=new Date(y.timestamp),L.ctime=new Date(y.timestamp),L.blksize=4096,L.blocks=Math.ceil(L.size/L.blksize),L},setattr:function(y,L){void 0!==L.mode&&(y.mode=L.mode),void 0!==L.timestamp&&(y.timestamp=L.timestamp),void 0!==L.size&&Dt.resizeFileStorage(y,L.size)},lookup:function(y,L){throw N.genericErrors[44]},mknod:function(y,L,Z,$){return Dt.createNode(y,L,Z,$)},rename:function(y,L,Z){if(N.isDir(y.mode)){var $;try{$=N.lookupNode(L,Z)}catch(Et){}if($)for(var dt in $.contents)throw new N.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=Z,L.contents[Z]=y,L.timestamp=y.parent.timestamp,y.parent=L},unlink:function(y,L){delete y.contents[L],y.timestamp=Date.now()},rmdir:function(y,L){var Z=N.lookupNode(y,L);for(var $ in Z.contents)throw new N.ErrnoError(55);delete y.contents[L],y.timestamp=Date.now()},readdir:function(y){var L=[".",".."];for(var Z in y.contents)!y.contents.hasOwnProperty(Z)||L.push(Z);return L},symlink:function(y,L,Z){var $=Dt.createNode(y,L,41471,0);return $.link=Z,$},readlink:function(y){if(!N.isLink(y.mode))throw new N.ErrnoError(28);return y.link}},stream_ops:{read:function(y,L,Z,$,dt){var Et=y.node.contents;if(dt>=y.node.usedBytes)return 0;var Lt=Math.min(y.node.usedBytes-dt,$);if(Lt>8&&Et.subarray)L.set(Et.subarray(dt,dt+Lt),Z);else for(var Vt=0;Vt0||$+Z8)throw new N.ErrnoError(32);for(var dt=qt.normalizeArray(y.split("/").filter(function(Je){return!!Je}),!1),Et=N.root,Lt="/",Vt=0;Vt40)throw new N.ErrnoError(32)}}return{path:Lt,node:Et}},getPath:function(y){for(var L;;){if(N.isRoot(y)){var Z=y.mount.mountpoint;return L?"/"!==Z[Z.length-1]?Z+"/"+L:Z+L:Z}L=L?y.name+"/"+L:y.name,y=y.parent}},hashName:function(y,L){for(var Z=0,$=0;$>>0)%N.nameTable.length},hashAddNode:function(y){var L=N.hashName(y.parent.id,y.name);y.name_next=N.nameTable[L],N.nameTable[L]=y},hashRemoveNode:function(y){var L=N.hashName(y.parent.id,y.name);if(N.nameTable[L]===y)N.nameTable[L]=y.name_next;else for(var Z=N.nameTable[L];Z;){if(Z.name_next===y){Z.name_next=y.name_next;break}Z=Z.name_next}},lookupNode:function(y,L){var Z=N.mayLookup(y);if(Z)throw new N.ErrnoError(Z,y);for(var $=N.hashName(y.id,L),dt=N.nameTable[$];dt;dt=dt.name_next)if(dt.parent.id===y.id&&dt.name===L)return dt;return N.lookup(y,L)},createNode:function(y,L,Z,$){var dt=new N.FSNode(y,L,Z,$);return N.hashAddNode(dt),dt},destroyNode:function(y){N.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 L=N.flagModes[y];if(void 0===L)throw new Error("Unknown file open mode: "+y);return L},flagsToPermissionString:function(y){var L=["r","w","rw"][3&y];return 512&y&&(L+="w"),L},nodePermissions:function(y,L){return N.ignorePermissions?0:L.includes("r")&&!(292&y.mode)||L.includes("w")&&!(146&y.mode)||L.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return N.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,L){try{return N.lookupNode(y,L),20}catch($){}return N.nodePermissions(y,"wx")},mayDelete:function(y,L,Z){var $;try{$=N.lookupNode(y,L)}catch(Et){return Et.errno}var dt=N.nodePermissions(y,"wx");if(dt)return dt;if(Z){if(!N.isDir($.mode))return 54;if(N.isRoot($)||N.getPath($)===N.cwd())return 10}else if(N.isDir($.mode))return 31;return 0},mayOpen:function(y,L){return y?N.isLink(y.mode)?32:N.isDir(y.mode)&&("r"!==N.flagsToPermissionString(L)||512&L)?31:N.nodePermissions(y,N.flagsToPermissionString(L)):44},MAX_OPEN_FDS:4096,nextfd:function(y,L){L=L||N.MAX_OPEN_FDS;for(var Z=y=y||0;Z<=L;Z++)if(!N.streams[Z])return Z;throw new N.ErrnoError(33)},getStream:function(y){return N.streams[y]},createStream:function(y,L,Z){N.FSStream||(N.FSStream=function(){},N.FSStream.prototype={object:{get:function(){return this.node},set:function(Lt){this.node=Lt}},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 N.FSStream;for(var dt in y)$[dt]=y[dt];y=$;var Et=N.nextfd(L,Z);return y.fd=Et,N.streams[Et]=y,y},closeStream:function(y){N.streams[y]=null},chrdev_stream_ops:{open:function(y){var L=N.getDevice(y.node.rdev);y.stream_ops=L.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new N.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,L){return y<<8|L},registerDevice:function(y,L){N.devices[y]={stream_ops:L}},getDevice:function(y){return N.devices[y]},getMounts:function(y){for(var L=[],Z=[y];Z.length;){var $=Z.pop();L.push($),Z.push.apply(Z,$.mounts)}return L},syncfs:function(y,L){"function"==typeof y&&(L=y,y=!1),N.syncFSRequests++,N.syncFSRequests>1&&Be("warning: "+N.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var Z=N.getMounts(N.root.mount),$=0;function dt(Lt){return N.syncFSRequests--,L(Lt)}function Et(Lt){if(Lt)return Et.errored?void 0:(Et.errored=!0,dt(Lt));++$>=Z.length&&dt(null)}Z.forEach(function(Lt){if(!Lt.type.syncfs)return Et(null);Lt.type.syncfs(Lt,y,Et)})},mount:function(y,L,Z){var Et,$="/"===Z,dt=!Z;if($&&N.root)throw new N.ErrnoError(10);if(!$&&!dt){var Lt=N.lookupPath(Z,{follow_mount:!1});if(Z=Lt.path,N.isMountpoint(Et=Lt.node))throw new N.ErrnoError(10);if(!N.isDir(Et.mode))throw new N.ErrnoError(54)}var Vt={type:y,opts:L,mountpoint:Z,mounts:[]},ce=y.mount(Vt);return ce.mount=Vt,Vt.root=ce,$?N.root=ce:Et&&(Et.mounted=Vt,Et.mount&&Et.mount.mounts.push(Vt)),ce},unmount:function(y){var L=N.lookupPath(y,{follow_mount:!1});if(!N.isMountpoint(L.node))throw new N.ErrnoError(28);var Z=L.node,$=Z.mounted,dt=N.getMounts($);Object.keys(N.nameTable).forEach(function(Lt){for(var Vt=N.nameTable[Lt];Vt;){var ce=Vt.name_next;dt.includes(Vt.mount)&&N.destroyNode(Vt),Vt=ce}}),Z.mounted=null;var Et=Z.mount.mounts.indexOf($);Z.mount.mounts.splice(Et,1)},lookup:function(y,L){return y.node_ops.lookup(y,L)},mknod:function(y,L,Z){var dt=N.lookupPath(y,{parent:!0}).node,Et=qt.basename(y);if(!Et||"."===Et||".."===Et)throw new N.ErrnoError(28);var Lt=N.mayCreate(dt,Et);if(Lt)throw new N.ErrnoError(Lt);if(!dt.node_ops.mknod)throw new N.ErrnoError(63);return dt.node_ops.mknod(dt,Et,L,Z)},create:function(y,L){return L=void 0!==L?L:438,L&=4095,N.mknod(y,L|=32768,0)},mkdir:function(y,L){return L=void 0!==L?L:511,L&=1023,N.mknod(y,L|=16384,0)},mkdirTree:function(y,L){for(var Z=y.split("/"),$="",dt=0;dtthis.length-1||Je<0)){var tn=Je%this.chunkSize;return this.getter(Je/this.chunkSize|0)[tn]}},Et.prototype.setDataGetter=function(Je){this.getter=Je},Et.prototype.cacheLength=function(){var Je=new XMLHttpRequest;if(Je.open("HEAD",Z,!1),Je.send(null),!(Je.status>=200&&Je.status<300||304===Je.status))throw new Error("Couldn't load "+Z+". Status: "+Je.status);var kn,tn=Number(Je.getResponseHeader("Content-length")),Pi=(kn=Je.getResponseHeader("Accept-Ranges"))&&"bytes"===kn,Tr=(kn=Je.getResponseHeader("Content-Encoding"))&&"gzip"===kn,Ri=1048576;Pi||(Ri=tn);var ki=this;ki.setDataGetter(function($i){var br=$i*Ri,gi=($i+1)*Ri-1;if(gi=Math.min(gi,tn-1),void 0===ki.chunks[$i]&&(ki.chunks[$i]=function($i,br){if($i>br)throw new Error("invalid range ("+$i+", "+br+") or no bytes requested!");if(br>tn-1)throw new Error("only "+tn+" bytes available! programmer error!");var gi=new XMLHttpRequest;if(gi.open("GET",Z,!1),tn!==Ri&&gi.setRequestHeader("Range","bytes="+$i+"-"+br),"undefined"!=typeof Uint8Array&&(gi.responseType="arraybuffer"),gi.overrideMimeType&&gi.overrideMimeType("text/plain; charset=x-user-defined"),gi.send(null),!(gi.status>=200&&gi.status<300||304===gi.status))throw new Error("Couldn't load "+Z+". Status: "+gi.status);return void 0!==gi.response?new Uint8Array(gi.response||[]):Hi(gi.responseText||"",!0)}(br,gi)),void 0===ki.chunks[$i])throw new Error("doXHR failed!");return ki.chunks[$i]}),(Tr||!tn)&&(Ri=tn=1,tn=this.getter(0).length,Ri=tn,ye("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=tn,this._chunkSize=Ri,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Vt,ce=N.createFile(y,L,Vt={isDevice:!1,url:Z},$,dt);Vt.contents?ce.contents=Vt.contents:Vt.url&&(ce.contents=null,ce.url=Vt.url),Object.defineProperties(ce,{usedBytes:{get:function(){return this.contents.length}}});var Xe={};return Object.keys(ce.stream_ops).forEach(function(bn){var Je=ce.stream_ops[bn];Xe[bn]=function(){return N.forceLoadFile(ce),Je.apply(null,arguments)}}),Xe.read=function(Je,tn,kn,Pi,Tr){N.forceLoadFile(ce);var Ri=Je.node.contents;if(Tr>=Ri.length)return 0;var kr=Math.min(Ri.length-Tr,Pi);if(Ri.slice)for(var ki=0;ki>2]=$.dev,Ne[Z+4>>2]=0,Ne[Z+8>>2]=$.ino,Ne[Z+12>>2]=$.mode,Ne[Z+16>>2]=$.nlink,Ne[Z+20>>2]=$.uid,Ne[Z+24>>2]=$.gid,Ne[Z+28>>2]=$.rdev,Ne[Z+32>>2]=0,G=[$.size>>>0,(fn=$.size,+Math.abs(fn)>=1?fn>0?(0|Math.min(+Math.floor(fn/4294967296),4294967295))>>>0:~~+Math.ceil((fn-+(~~fn>>>0))/4294967296)>>>0:0)],Ne[Z+40>>2]=G[0],Ne[Z+44>>2]=G[1],Ne[Z+48>>2]=4096,Ne[Z+52>>2]=$.blocks,Ne[Z+56>>2]=$.atime.getTime()/1e3|0,Ne[Z+60>>2]=0,Ne[Z+64>>2]=$.mtime.getTime()/1e3|0,Ne[Z+68>>2]=0,Ne[Z+72>>2]=$.ctime.getTime()/1e3|0,Ne[Z+76>>2]=0,G=[$.ino>>>0,(fn=$.ino,+Math.abs(fn)>=1?fn>0?(0|Math.min(+Math.floor(fn/4294967296),4294967295))>>>0:~~+Math.ceil((fn-+(~~fn>>>0))/4294967296)>>>0:0)],Ne[Z+80>>2]=G[0],Ne[Z+84>>2]=G[1],0},doMsync:function(y,L,Z,$,dt){var Et=Hn.slice(y,y+Z);N.msync(L,Et,dt,Z,$)},doMkdir:function(y,L){return"/"===(y=qt.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),N.mkdir(y,L,0),0},doMknod:function(y,L,Z){switch(61440&L){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return N.mknod(y,L,Z),0},doReadlink:function(y,L,Z){if(Z<=0)return-28;var $=N.readlink(y),dt=Math.min(Z,In($)),Et=Tn[L+dt];return function wn(y,L,Z){return je(y,Hn,L,Z)}($,L,Z+1),Tn[L+dt]=Et,dt},doAccess:function(y,L){if(-8&L)return-28;var $=N.lookupPath(y,{follow:!0}).node;if(!$)return-44;var dt="";return 4&L&&(dt+="r"),2&L&&(dt+="w"),1&L&&(dt+="x"),dt&&N.nodePermissions($,dt)?-2:0},doDup:function(y,L,Z){var $=N.getStream(Z);return $&&N.close($),N.open(y,L,0,Z,Z).fd},doReadv:function(y,L,Z,$){for(var dt=0,Et=0;Et>2],ce=N.read(y,Tn,Ne[L+8*Et>>2],Vt,$);if(ce<0)return-1;if(dt+=ce,ce>2],Ne[L+(8*Et+4)>>2],$);if(ce<0)return-1;dt+=ce}return dt},varargs:void 0,get:function(){return le.varargs+=4,Ne[le.varargs-4>>2]},getStr:function(y){return sn(y)},getStreamFromFD:function(y){var L=N.getStream(y);if(!L)throw new N.ErrnoError(8);return L},get64:function(y,L){return y}};var Jt=[];function oe(y){try{return Ae.grow(y-Mn.byteLength+65535>>>16),jn(Ae.buffer),1}catch(L){}}var Me={};function $n(){if(!$n.strings){var L={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",_:ne||"./this.program"};for(var Z in Me)void 0===Me[Z]?delete L[Z]:L[Z]=Me[Z];var $=[];for(var Z in L)$.push(Z+"="+L[Z]);$n.strings=$}return $n.strings}var Jn=function(y,L,Z,$){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=N.nextInode++,this.name=L,this.mode=Z,this.node_ops={},this.stream_ops={},this.rdev=$};function Hi(y,L,Z){var $=Z>0?Z:In(y)+1,dt=new Array($),Et=je(y,dt,0,dt.length);return L&&(dt.length=Et),dt}Object.defineProperties(Jn.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 N.isDir(this.mode)}},isDevice:{get:function(){return N.isChrdev(this.mode)}}}),N.FSNode=Jn,N.staticInit();var Ft={A:function re(y,L){return function Yt(y,L){var Z;if(0===y)Z=Date.now();else{if(1!==y&&4!==y)return Bt(28),-1;Z=At()}return Ne[L>>2]=Z/1e3|0,Ne[L+4>>2]=Z%1e3*1e3*1e3|0,0}(y,L)},B:function ke(y,L){try{return y=le.getStr(y),le.doAccess(y,L)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},h:function Oe(y,L,Z){le.varargs=Z;try{var $=le.getStreamFromFD(y);switch(L){case 0:return(dt=le.get())<0?-28:N.open($.path,$.flags,0,dt).fd;case 1:case 2:case 6:case 7:return 0;case 3:return $.flags;case 4:var dt=le.get();return $.flags|=dt,0;case 5:return dt=le.get(),Kn[dt+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Bt(28),-1}}catch(Vt){if(void 0===N||!(Vt instanceof N.ErrnoError))throw Vt;return-Vt.errno}},x:function rn(y,L){try{var Z=le.getStreamFromFD(y);return le.doStat(N.stat,Z.path,L)}catch($){if(void 0===N||!($ instanceof N.ErrnoError))throw $;return-$.errno}},u:function He(y,L,Z,$){try{L=le.getStr(L);var dt=256&$,Et=4096&$;return $&=-4353,L=le.calculateAt(y,L,Et),le.doStat(dt?N.lstat:N.stat,L,Z)}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},y:function $e(y,L,Z){le.varargs=Z;try{var $=le.getStreamFromFD(y);switch(L){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=le.get();return Ne[dt>>2]=0,0;case 21520:return $.tty?-28:-59;case 21531:return dt=le.get(),N.ioctl($,L,dt);default:yn("bad ioctl syscall "+L)}}catch(Et){if(void 0===N||!(Et instanceof N.ErrnoError))throw Et;return-Et.errno}},k:function ve(y,L,Z,$,dt,Et){try{return function fe(y,L,Z,$,dt,Et){Et<<=12;var Lt,Vt=!1;if(0!=(16&$)&&y%65536!=0)return-28;if(0!=(32&$)){if(!(Lt=te(L)))return-48;Vt=!0}else{var ce=N.getStream(dt);if(!ce)return-8;var Xe=N.mmap(ce,y,L,Et,Z,$);Lt=Xe.ptr,Vt=Xe.allocated}return le.mappings[Lt]={malloc:Lt,len:L,allocated:Vt,fd:dt,prot:Z,flags:$,offset:Et},Lt}(y,L,Z,$,dt,Et)}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},j:function et(y,L){try{return function Qe(y,L){var Z=le.mappings[y];if(0===L||!Z)return-28;if(L===Z.len){var $=N.getStream(Z.fd);$&&2&Z.prot&&le.doMsync(y,$,L,Z.flags,Z.offset),le.mappings[y]=null,Z.allocated&&xt(Z.malloc)}return 0}(y,L)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},e:function gt(y,L,Z){le.varargs=Z;try{var $=le.getStr(y),dt=Z?le.get():0;return N.open($,L,dt).fd}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},v:function mt(y,L){try{return y=le.getStr(y),le.doStat(N.stat,y,L)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},z:function St(y){try{return y=le.getStr(y),N.unlink(y),0}catch(L){if(void 0===N||!(L instanceof N.ErrnoError))throw L;return-L.errno}},r:function zt(){throw"longjmp"},q:function ee(){yn("")},C:function xe(y,L,Z){var $=function pe(y,L){var Z;for(Jt.length=0,L>>=2;Z=Hn[y++];){var $=Z<105;$&&1&L&&L++,Jt.push($?Xn[L++>>1]:Ne[L]),++L}return Jt}(L,Z);return X[y].apply(null,$)},o:function Wt(y,L,Z){Hn.copyWithin(y,L,L+Z)},p:function Ie(y){var L=Hn.length,Z=2147483648;if((y>>>=0)>Z)return!1;for(var $=1;$<=4;$*=2){var dt=L*(1+.2/$);if(dt=Math.min(dt,y+100663296),oe(Math.min(Z,ci(Math.max(y,dt),65536))))return!0}return!1},s:function En(y,L){var Z=0;return $n().forEach(function($,dt){var Et=L+Z;Ne[y+4*dt>>2]=Et,function ze(y,L,Z){for(var $=0;$>0]=y.charCodeAt($);Z||(Tn[L>>0]=0)}($,Et),Z+=$.length+1}),0},t:function Sn(y,L){var Z=$n();Ne[y>>2]=Z.length;var $=0;return Z.forEach(function(dt){$+=dt.length+1}),Ne[L>>2]=$,0},a:function we(y){!function rr(y,L){!function Li(y){(function Ue(){return Ce||!1})()||(E.onExit&&E.onExit(y),Yn=!0),Ut(y,new An(y))}(y)}(y)},d:function Fn(y){try{var L=le.getStreamFromFD(y);return N.close(L),0}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return Z.errno}},i:function Qn(y,L,Z,$){try{var dt=le.getStreamFromFD(y),Et=le.doReadv(dt,L,Z);return Ne[$>>2]=Et,0}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return Lt.errno}},n:function on(y,L,Z,$,dt){try{var Et=le.getStreamFromFD(y),Vt=4294967296*Z+(L>>>0),ce=9007199254740992;return Vt<=-ce||Vt>=ce?-61:(N.llseek(Et,Vt,$),G=[Et.position>>>0,(fn=Et.position,+Math.abs(fn)>=1?fn>0?(0|Math.min(+Math.floor(fn/4294967296),4294967295))>>>0:~~+Math.ceil((fn-+(~~fn>>>0))/4294967296)>>>0:0)],Ne[dt>>2]=G[0],Ne[dt+4>>2]=G[1],Et.getdents&&0===Vt&&0===$&&(Et.getdents=null),0)}catch(Xe){if(void 0===N||!(Xe instanceof N.ErrnoError))throw Xe;return Xe.errno}},g:function ln(y,L,Z,$){try{var dt=le.getStreamFromFD(y),Et=le.doWritev(dt,L,Z);return Ne[$>>2]=Et,0}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return Lt.errno}},c:function Un(){return vn},w:function Vi(y){var L=Date.now();return Ne[y>>2]=L/1e3|0,Ne[y+4>>2]=L%1e3*1e3|0,0},l:function Ze(y,L,Z,$,dt,Et,Lt){var Vt=Pt();try{return D(y)(L,Z,$,dt,Et,Lt)}catch(ce){if(ae(Vt),ce!==ce+0&&"longjmp"!==ce)throw ce;De(1,0)}},m:function Ke(y,L){var Z=Pt();try{D(y)(L)}catch($){if(ae(Z),$!==$+0&&"longjmp"!==$)throw $;De(1,0)}},b:function hi(y){!function(y){vn=y}(y)},f:function zi(y){var L=Date.now()/1e3|0;return y&&(Ne[y>>2]=L),L}};(function Bn(){var y={a:Ft};function L(Lt,Vt){E.asm=Lt.exports,jn((Ae=E.asm.D).buffer),yt=E.asm.M,function qn(y){se.unshift(y)}(E.asm.E),un()}function Z(Lt){L(Lt.instance)}function $(Lt){return function Ii(){return Ve||"function"!=typeof fetch?Promise.resolve().then(function(){return Le(Nn)}):fetch(Nn,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+Nn+"'";return y.arrayBuffer()}).catch(function(){return Le(Nn)})}().then(function(Vt){return WebAssembly.instantiate(Vt,y)}).then(function(Vt){return Vt}).then(Lt,function(Vt){Be("failed to asynchronously prepare wasm: "+Vt),yn(Vt)})}if(On(),E.instantiateWasm)try{return E.instantiateWasm(y,L)}catch(Lt){return Be("Module.instantiateWasm callback failed with error: "+Lt),!1}return function dt(){return Ve||"function"!=typeof WebAssembly.instantiateStreaming||ui(Nn)||"function"!=typeof fetch?$(Z):fetch(Nn,{credentials:"same-origin"}).then(function(Lt){return WebAssembly.instantiateStreaming(Lt,y).then(Z,function(ce){return Be("wasm streaming compile failed: "+ce),Be("falling back to ArrayBuffer instantiation"),$(Z)})})}().catch(It),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.E).apply(null,arguments)};var be=E._emscripten_bind_VoidPtr___destroy___0=function(){return(be=E._emscripten_bind_VoidPtr___destroy___0=E.asm.F).apply(null,arguments)},jt=E._emscripten_bind_Graphviz_Graphviz_2=function(){return(jt=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)},M=E._emscripten_bind_Graphviz_lastError_0=function(){return(M=E._emscripten_bind_Graphviz_lastError_0=E.asm.I).apply(null,arguments)},B=E._emscripten_bind_Graphviz_layout_3=function(){return(B=E._emscripten_bind_Graphviz_layout_3=E.asm.J).apply(null,arguments)},j=E._emscripten_bind_Graphviz_createFile_2=function(){return(j=E._emscripten_bind_Graphviz_createFile_2=E.asm.K).apply(null,arguments)},ct=E._emscripten_bind_Graphviz___destroy___0=function(){return(ct=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 We,xt=E._free=function(){return(xt=E._free=E.asm.O).apply(null,arguments)},kt=E.___errno_location=function(){return(kt=E.___errno_location=E.asm.P).apply(null,arguments)},Pt=E.stackSave=function(){return(Pt=E.stackSave=E.asm.Q).apply(null,arguments)},ae=E.stackRestore=function(){return(ae=E.stackRestore=E.asm.R).apply(null,arguments)},De=E._setThrew=function(){return(De=E._setThrew=E.asm.S).apply(null,arguments)},Ge=E._memalign=function(){return(Ge=E._memalign=E.asm.T).apply(null,arguments)};function An(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function di(y){function L(){We||(We=!0,E.calledRun=!0,!Yn&&(function nn(){!E.noFSInit&&!N.init.initialized&&N.init(),N.ignorePermissions=!1,ht(se)}(),Ct(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Zn(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)y=E.postRun.shift(),de.unshift(y);var y;ht(de)}()))}gn>0||(function Fe(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)y=E.preRun.shift(),Gt.unshift(y);var y;ht(Gt)}(),gn>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),L()},1)):L())}if(ti=function y(){We||di(),We||(ti=y)},E.run=di,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function fi(){}function ii(y){return(y||fi).__cache__}function Mi(y,L){var Z=ii(L),$=Z[y];return $||(($=Object.create((L||fi).prototype)).ptr=y,Z[y]=$)}di(),(fi.prototype=Object.create(fi.prototype)).constructor=fi,fi.prototype.__class__=fi,fi.__cache__={},E.WrapperObject=fi,E.getCache=ii,E.wrapPointer=Mi,E.castObject=function ar(y,L){return Mi(y.ptr,L)},E.NULL=Mi(0),E.destroy=function si(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete ii(y.__class__)[y.ptr]},E.compare=function Da(y,L){return y.ptr===L.ptr},E.getPointer=function ls(y){return y.ptr},E.getClass=function cs(y){return y.__class__};var Pn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Pn.needed){for(var y=0;y=Pn.size?(Wn($>0),Pn.needed+=$,dt=E._malloc($),Pn.temps.push(dt)):(dt=Pn.buffer+Pn.pos,Pn.pos+=$),dt},copy:function(y,L,Z){switch(Z>>>=0,L.BYTES_PER_ELEMENT){case 2:Z>>>=1;break;case 4:Z>>>=2;break;case 8:Z>>>=3}for(var dt=0;dt\n\n')}}function ut(H,K){var lt=V({images:[],files:[]},K);W(W([],lt.files,!0),function nt(H){return H.map(rt)}(lt.images),!0).forEach(function(it){return H.createFile(it.path,it.data)})}var tt={layout:function(H,K,lt,it){return void 0===K&&(K="svg"),void 0===lt&&(lt="dot"),H?u(U,null==it?void 0:it.wasmFolder,null==it?void 0:it.wasmBinary).then(function(z){var E=new z.Graphviz(void 0!==(null==it?void 0:it.yInvert)&&(null==it?void 0:it.yInvert),void 0!==(null==it?void 0:it.nop)?null==it?void 0:it.nop:0);ut(E,it);var Ct=E.layout(H,K,lt);if(z.destroy(E),!Ct)throw new Error(z.Graphviz.prototype.lastError());return Ct}):Promise.resolve("")},circo:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"circo",lt)},dot:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"dot",lt)},fdp:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"fdp",lt)},sfdp:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"sfdp",lt)},neato:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"neato",lt)},osage:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"osage",lt)},patchwork:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"patchwork",lt)},twopi:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"twopi",lt)}},Q=function(){function H(K){this._wasm=K}return H.prototype.layout=function(K,lt,it,z){if(void 0===lt&&(lt="svg"),void 0===it&&(it="dot"),!K)return"";var E=new this._wasm.Graphviz((null==z?void 0:z.yInvert)?1:0,(null==z?void 0:z.nop)?null==z?void 0:z.nop:0);ut(E,z);var Ct=E.layout(K,lt,it);if(this._wasm.destroy(E),!Ct)throw new Error(this._wasm.Graphviz.prototype.lastError());return Ct},H.prototype.circo=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"circo",it)},H.prototype.dot=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"dot",it)},H.prototype.fdp=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"fdp",it)},H.prototype.sfdp=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"sfdp",it)},H.prototype.neato=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"neato",it)},H.prototype.osage=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"osage",it)},H.prototype.patchwork=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"patchwork",it)},H.prototype.twopi=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"twopi",it)},H}();o.GraphvizSync=Q,o.StackElement=g,o.StackParser=C,o.expatVersion=function k(H,K){return u(_,H,K).then(function(lt){return lt.CExpat.prototype.version()})},o.graphviz=tt,o.graphvizSync=function at(H,K){return u(U,H,K).then(function(lt){return new Q(lt)})},o.graphvizVersion=function J(H,K){return u(U,H,K).then(function(lt){return lt.Graphviz.prototype.version()})},o.parse=F,o.wasmFolder=l,Object.defineProperty(o,"__esModule",{value:!0})}(I)},78417:(w,I,o)=>{"use strict";o.r(I),o.d(I,{AdminModule:()=>Zb});var c={};o.r(c),o.d(c,{forceCenter:()=>Vf,forceCollide:()=>fl,forceLink:()=>vl,forceManyBody:()=>yl,forceRadial:()=>mp,forceSimulation:()=>xl,forceX:()=>gp,forceY:()=>_p});var x={};o.r(x),o.d(x,{dispatch:()=>ca.Z});var v={};o.r(v),o.d(v,{interval:()=>xp,now:()=>tr.zO,timeout:()=>ua.Z,timer:()=>tr.HT,timerFlush:()=>tr.R8});var _=o(69808),f=o(11735),t=o(5e3),p=o(77968),l=o(4235),h=o(25245),m=o(61283),u=o(51062);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(p.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")," "))},directives:[l.W,h.Hw,_.PC,m.A],pipes:[u.X$],styles:[""]}),n})();var A=o(71135);let k=(()=>{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"))},directives:[A.L],styles:[""]}),n})();var F=o(20449),O=o(48966),R=o(32075),U=o(36908),V=o(32105),W=o(20773),rt=o(98380),nt=o(47423);function ut(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function J(n,r){1&n&&t._UZ(0,"th",16)}function tt(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 Q(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function H(n,r){if(1&n&&(t.TgZ(0,"div",7),t.TgZ(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,tt,2,1,"td",12),t.BQk(),t.YNc(11,Q,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(),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 K=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=s,this.attributesManager=d,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(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.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","",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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ut,1,0,"mat-spinner",1),t.YNc(5,H,16,12,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[O.uh,_.O5,W.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,rt.w,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();var lt=o(45323),it=o(67322),z=o(98833),E=o(93075),Ct=o(74533),It=o(74107),Rt=o(90508),Ht=o(32368),ne=o(29772),Ut=o(77446);function vt(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function ft(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Nt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Qt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function me(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function ge(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function ye(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Be(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function vn(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Re(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function mn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"mat-form-field",9),t.TgZ(2,"label"),t.TgZ(3,"input",10),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.friendlyName=a}),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,ft,3,3,"mat-error",11),t.qZA(),t._UZ(6,"br"),t.TgZ(7,"mat-form-field",9),t.TgZ(8,"label"),t.TgZ(9,"input",10),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.displayName=a}),t.ALo(10,"translate"),t.qZA(),t.qZA(),t.YNc(11,Nt,3,3,"mat-error",11),t.qZA(),t._UZ(12,"br"),t.TgZ(13,"mat-form-field",9),t.TgZ(14,"label"),t.TgZ(15,"textarea",12),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.description=a}),t.ALo(16,"translate"),t._uU(17," "),t.qZA(),t.qZA(),t.YNc(18,Qt,3,3,"mat-error",11),t.qZA(),t._UZ(19,"br"),t.TgZ(20,"mat-form-field",9),t.TgZ(21,"mat-placeholder"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.TgZ(24,"mat-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().entity=a}),t.YNc(25,me,2,2,"mat-option",14),t.qZA(),t.YNc(26,ge,3,3,"mat-error",11),t.qZA(),t._UZ(27,"br"),t.TgZ(28,"mat-form-field",9),t.TgZ(29,"mat-placeholder"),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"mat-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().definitionType=a}),t.YNc(33,ye,2,2,"mat-option",14),t.qZA(),t.YNc(34,Be,3,3,"mat-error",11),t.qZA(),t._UZ(35,"br"),t.TgZ(36,"mat-form-field",9),t.TgZ(37,"mat-placeholder"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().valueType=a}),t.YNc(41,vn,2,2,"mat-option",14),t.qZA(),t.YNc(42,Re,3,3,"mat-error",11),t.qZA(),t._UZ(43,"br"),t.TgZ(44,"div",15),t.TgZ(45,"p"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t.TgZ(48,"p",16),t.NdJ("click",function(){return t.CHM(e),t.oxw().attDef.unique=!1}),t._uU(49,"OFF"),t.qZA(),t.TgZ(50,"mat-slide-toggle",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.unique=a}),t.ALo(51,"translate"),t._uU(52," ON "),t.qZA(),t.qZA(),t.TgZ(53,"div",18),t.TgZ(54,"p",19),t._uU(55),t.ALo(56,"translate"),t.qZA(),t.TgZ(57,"p",20),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.qZA(),t.TgZ(60,"div",21),t.TgZ(61,"p",22),t._uU(62),t.ALo(63,"translate"),t.qZA(),t.TgZ(64,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readSelf=a}),t.qZA(),t.TgZ(65,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeSelf=a}),t.qZA(),t.qZA(),t.TgZ(66,"div",21),t.TgZ(67,"p",22),t._uU(68),t.ALo(69,"translate"),t.qZA(),t.TgZ(70,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readSelfPublic=a}),t.qZA(),t.TgZ(71,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeSelfPublic=a}),t.qZA(),t.qZA(),t.TgZ(72,"div",21),t.TgZ(73,"p",22),t._uU(74),t.ALo(75,"translate"),t.qZA(),t.TgZ(76,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readSelfVo=a}),t.qZA(),t.TgZ(77,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeSelfVo=a}),t.qZA(),t.qZA(),t.TgZ(78,"div",21),t.TgZ(79,"p",22),t._uU(80),t.ALo(81,"translate"),t.qZA(),t.TgZ(82,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readVo=a}),t.qZA(),t.TgZ(83,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeVo=a}),t.qZA(),t.qZA(),t.TgZ(84,"div",21),t.TgZ(85,"p",22),t._uU(86),t.ALo(87,"translate"),t.qZA(),t.TgZ(88,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readGroup=a}),t.qZA(),t.TgZ(89,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeGroup=a}),t.qZA(),t.qZA(),t.TgZ(90,"div",21),t.TgZ(91,"p",22),t._uU(92),t.ALo(93,"translate"),t.qZA(),t.TgZ(94,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readFacility=a}),t.qZA(),t.TgZ(95,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeFacility=a}),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,46,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.Q6J("ngModel",e.attDef.friendlyName),t.xp6(2),t.Q6J("ngIf",""===e.attDef.friendlyName),t.xp6(4),t.s9C("placeholder",t.lcZ(10,48,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.Q6J("ngModel",e.attDef.displayName),t.xp6(2),t.Q6J("ngIf",""===e.attDef.displayName),t.xp6(4),t.s9C("placeholder",t.lcZ(16,50,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.Q6J("ngModel",e.attDef.description),t.xp6(3),t.Q6J("ngIf",""===e.attDef.description),t.xp6(4),t.Oqu(t.lcZ(23,52,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngModel",e.entity),t.xp6(1),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",""===e.attDef.entity),t.xp6(4),t.Oqu(t.lcZ(31,54,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngModel",e.definitionType),t.xp6(1),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",""===e.definitionType),t.xp6(4),t.Oqu(t.lcZ(39,56,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngModel",e.valueType),t.xp6(1),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",""===e.valueType),t.xp6(4),t.Oqu(t.lcZ(47,58,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.UNIQUE")),t.xp6(4),t.s9C("matTooltip",t.lcZ(51,60,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),t.Q6J("ngModel",e.attDef.unique)("disabled",e.disableUniqueToggle())("matTooltipDisabled",!e.disableUniqueToggle()),t.xp6(5),t.Oqu(t.lcZ(56,62,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),t.xp6(3),t.Oqu(t.lcZ(59,64,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),t.xp6(4),t.Oqu(t.lcZ(63,66,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),t.xp6(2),t.Q6J("ngModel",e.readSelf),t.xp6(1),t.Q6J("ngModel",e.writeSelf),t.xp6(3),t.Oqu(t.lcZ(69,68,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),t.xp6(2),t.Q6J("ngModel",e.readSelfPublic),t.xp6(1),t.Q6J("ngModel",e.writeSelfPublic),t.xp6(3),t.Oqu(t.lcZ(75,70,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),t.xp6(2),t.Q6J("ngModel",e.readSelfVo),t.xp6(1),t.Q6J("ngModel",e.writeSelfVo),t.xp6(3),t.Oqu(t.lcZ(81,72,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),t.xp6(2),t.Q6J("ngModel",e.readVo),t.xp6(1),t.Q6J("ngModel",e.writeVo),t.xp6(3),t.Oqu(t.lcZ(87,74,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),t.xp6(2),t.Q6J("ngModel",e.readGroup),t.xp6(1),t.Q6J("ngModel",e.writeGroup),t.xp6(3),t.Oqu(t.lcZ(93,76,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),t.xp6(2),t.Q6J("ngModel",e.readFacility),t.xp6(1),t.Q6J("ngModel",e.writeFacility)}}let Ve=(()=>{class n{constructor(e,i,a,s){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=s,this.loading=!1,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.definitionType="",this.valueTypes=["String","Integer","Boolean","Array","LinkedHashMap"],this.valueType="",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1}ngOnInit(){this.attDef={beanName:"",description:"",displayName:"",entity:"",friendlyName:"",id:void 0,namespace:"",type:"",unique:!1,writable:!1}}onSubmit(){this.loading=!0,this.attDef.namespace="urn:perun:"+this.entity+":attribute-def:"+this.definitionType,this.readValueType(),this.attributesManager.createAttributeDefinition({attribute:this.attDef}).subscribe(e=>{this.attDef=e,this.attributesManager.setAttributeRights({rights:this.readRights()}).subscribe(()=>{this.translate.get("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}disableConfirmButton(){return""===this.attDef.friendlyName||""===this.attDef.displayName||""===this.attDef.description||""===this.entity||""===this.definitionType||""===this.valueType||this.loading}disableUniqueToggle(){return("virt"===this.definitionType||"entityless"===this.entity)&&(this.attDef.unique=!1,!0)}readRights(){const e=[],i={};i.attributeId=this.attDef.id,i.role=lt.u.SELF,i.rights=[],this.readSelf&&i.rights.push("READ"),this.readSelfPublic&&i.rights.push("READ_PUBLIC"),this.readSelfVo&&i.rights.push("READ_VO"),this.writeSelf&&i.rights.push("WRITE"),this.writeSelfPublic&&i.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&i.rights.push("WRITE_VO"),e.push(i);const a={};a.attributeId=this.attDef.id,a.role=lt.u.VOADMIN,a.rights=[],this.readVo&&a.rights.push(V.Us.READ),this.writeVo&&a.rights.push(V.Us.WRITE),e.push(a);const s={};s.attributeId=this.attDef.id,s.role=lt.u.GROUPADMIN,s.rights=[],this.readGroup&&s.rights.push(V.Us.READ),this.writeGroup&&s.rights.push(V.Us.WRITE),e.push(s);const d={};return d.attributeId=this.attDef.id,d.role=lt.u.FACILITYADMIN,d.rights=[],this.readFacility&&d.rights.push(V.Us.READ),this.writeFacility&&d.rights.push(V.Us.WRITE),e.push(d),e}readValueType(){switch(this.valueType){case"String":this.attDef.type="java.lang.String";break;case"Integer":this.attDef.type="java.lang.Integer";break;case"Boolean":this.attDef.type="java.lang.Boolean";break;case"Array":this.attDef.type="java.util.ArrayList";break;case"LinkedHashMap":this.attDef.type="java.util.LinkedHashMap"}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],decls:14,vars:16,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"matTooltipDisabled","disabled","matTooltip","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"form-field-width"],["matInput","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],["required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","ngModel","disabled","matTooltipDisabled","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,vt,1,0,"mat-spinner",2),t.YNc(5,mn,96,78,"div",3),t.TgZ(6,"div",4),t.TgZ(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.onSubmit()}),t.ALo(11,"translate"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"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,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,12,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),t.Q6J("matTooltipDisabled",!i.disableConfirmButton())("disabled",i.disableConfirmButton()),t.xp6(2),t.hij(" ",t.lcZ(13,14,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[O.uh,_.O5,W.$g,O.xY,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.On,it.TO,Ct.IC,it.UY,It.gD,_.sg,Rt.ey,Ht.Rr,ne.gM,Ut.oG,O.H8,nt.lW],pipes:[u.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.form-field-width[_ngcontent-%COMP%]{width:450px}.pointer[_ngcontent-%COMP%]{cursor:pointer}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"]}),n})();var Ce=o(9244),Ae=o(10036);function Yn(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Wn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10),t.TgZ(5,"input",11),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().value=a}),t.ALo(6,"translate"),t.qZA(),t.qZA(),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 ni=(()=>{class n{constructor(e,i,a,s){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=s,this.value="",this.loading=!1}create(){try{this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).subscribe(e=>{for(const i of this.attributeData.attributeRights)i.attributeId=e.id;this.attributesManager.setAttributeRights({rights:this.attributeData.attributeRights}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)})},()=>this.loading=!1)}catch(e){this.notificator.showError(e),this.loading=!1}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},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","",1,"mt-3"],["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),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Yn,1,0,"mat-spinner",2),t.YNc(5,Wn,7,7,"div",3),t.TgZ(6,"div",4),t.TgZ(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(),t.qZA(),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")," "))},directives:[O.uh,_.O5,W.$g,O.xY,rt.w,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.On,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();var xn=o(96214),sn=o(7434),je=o(84847),wn=o(36769),In=o(69287),ze=o(60205),ci=o(387),Mn=o(18750),Tn=o(43532);function Hn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",22),t.TgZ(1,"mat-checkbox",23),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw(2);return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Kn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",24),t.TgZ(1,"mat-checkbox",25),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,T=t.oxw(2);return a?T.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function Ne(n,r){1&n&&(t.TgZ(0,"th",26),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 Xn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27),t.TgZ(1,"label"),t.TgZ(2,"input",28),t.NdJ("ngModelChange",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onValueChange(s)})("ngModelChange",function(a){return t.CHM(e).$implicit[0]=a}),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function jn(n,r){1&n&&(t.TgZ(0,"th",26),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 yt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27),t.TgZ(1,"perun-web-apps-attribute-value",29),t.NdJ("sendEventToParent2",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onValueChange(s)}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function Gt(n,r){1&n&&t._UZ(0,"tr",30)}function se(n,r){1&n&&t._UZ(0,"tr",31)}function de(n,r){if(1&n&&(t.TgZ(0,"div",10),t.TgZ(1,"perun-web-apps-table-wrapper",11),t.TgZ(2,"table",12),t.ynx(3,13),t.YNc(4,Hn,2,3,"th",14),t.YNc(5,Kn,2,2,"td",15),t.BQk(),t.ynx(6,16),t.YNc(7,Ne,3,3,"th",17),t.YNc(8,Xn,3,1,"td",18),t.BQk(),t.ynx(9,19),t.YNc(10,jn,3,3,"th",17),t.YNc(11,yt,2,1,"td",18),t.BQk(),t.YNc(12,Gt,1,0,"tr",20),t.YNc(13,se,1,0,"tr",21),t.qZA(),t.qZA(),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(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function _e(n,r){1&n&&t._UZ(0,"mat-spinner",32)}function Ue(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",33),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 Fe=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=s,this.attributesManager=d,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new R.by,this.selection=new F.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=Ce.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 s of e)this.records.push([s,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}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}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}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))}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(je.YE,7),t.Gf(ci.Mw,5),t.Gf(Ce.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"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["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",""],["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),t.TgZ(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.qZA(),t.TgZ(15,"div",6),t.YNc(16,de,14,7,"div",7),t.YNc(17,_e,1,0,"mat-spinner",8),t.YNc(18,Ue,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))},directives:[O.uh,O.H8,nt.lW,ne.gM,O.xY,_.O5,Mn.l,R.BZ,je.YE,R.w1,R.fO,R.ge,Ut.oG,R.Dz,R.ev,je.nU,z.Nt,E.Fj,E.JJ,E.On,Tn.M,R.as,R.XQ,R.nj,R.Gk,W.$g,rt.w],pipes:[u.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();const nn=["copiedTooltip"];function Zn(n,r){1&n&&t._UZ(0,"mat-spinner",12)}function Ln(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function qn(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}const Di=function(){return["id","name","enabled","script"]};function gn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"mat-form-field",3),t.TgZ(2,"label"),t.TgZ(3,"input",14),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).attDef.displayName=a}),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,Ln,3,3,"mat-error",2),t.qZA(),t._UZ(6,"br"),t.TgZ(7,"mat-form-field",3),t.TgZ(8,"label"),t.TgZ(9,"textarea",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).attDef.description=a}),t.ALo(10,"translate"),t._uU(11," "),t.qZA(),t.qZA(),t.YNc(12,qn,3,3,"mat-error",2),t.qZA(),t._UZ(13,"br"),t.TgZ(14,"div",16),t.TgZ(15,"p"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"p",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).attDef.unique=!1}),t._uU(19,"OFF"),t.qZA(),t.TgZ(20,"mat-slide-toggle",18),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).attDef.unique=a}),t.ALo(21,"translate"),t._uU(22," ON "),t.qZA(),t.qZA(),t.TgZ(23,"div",19),t.TgZ(24,"p",20),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.TgZ(27,"p",21),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.qZA(),t.TgZ(30,"div",22),t.TgZ(31,"p",23),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readSelf=a}),t.qZA(),t.TgZ(35,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeSelf=a}),t.qZA(),t.qZA(),t.TgZ(36,"div",22),t.TgZ(37,"p",23),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readSelfPublic=a}),t.qZA(),t.TgZ(41,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeSelfPublic=a}),t.qZA(),t.qZA(),t.TgZ(42,"div",22),t.TgZ(43,"p",23),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readSelfVo=a}),t.qZA(),t.TgZ(47,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeSelfVo=a}),t.qZA(),t.qZA(),t.TgZ(48,"div",22),t.TgZ(49,"p",23),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.TgZ(52,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readVo=a}),t.qZA(),t.TgZ(53,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeVo=a}),t.qZA(),t.qZA(),t.TgZ(54,"div",22),t.TgZ(55,"p",23),t._uU(56),t.ALo(57,"translate"),t.qZA(),t.TgZ(58,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readGroup=a}),t.qZA(),t.TgZ(59,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeGroup=a}),t.qZA(),t.qZA(),t.TgZ(60,"div",22),t.TgZ(61,"p",23),t._uU(62),t.ALo(63,"translate"),t.qZA(),t.TgZ(64,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readFacility=a}),t.qZA(),t.TgZ(65,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeFacility=a}),t.qZA(),t.qZA(),t.TgZ(66,"div",30),t.TgZ(67,"p"),t._uU(68),t.ALo(69,"translate"),t.qZA(),t._UZ(70,"app-services-list",31),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(3),t.s9C("placeholder",t.lcZ(4,35,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.Q6J("ngModel",e.attDef.displayName),t.xp6(2),t.Q6J("ngIf",""===e.attDef.displayName),t.xp6(4),t.s9C("placeholder",t.lcZ(10,37,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.Q6J("ngModel",e.attDef.description),t.xp6(3),t.Q6J("ngIf",""===e.attDef.description),t.xp6(4),t.Oqu(t.lcZ(17,39,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.UNIQUE")),t.xp6(4),t.s9C("matTooltip",t.lcZ(21,41,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),t.Q6J("ngModel",e.attDef.unique)("disabled",e.disableUniqueToggle())("matTooltipDisabled",!e.disableUniqueToggle()),t.xp6(5),t.Oqu(t.lcZ(26,43,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),t.xp6(3),t.Oqu(t.lcZ(29,45,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),t.xp6(4),t.Oqu(t.lcZ(33,47,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),t.xp6(2),t.Q6J("ngModel",e.readSelf),t.xp6(1),t.Q6J("ngModel",e.writeSelf),t.xp6(3),t.Oqu(t.lcZ(39,49,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),t.xp6(2),t.Q6J("ngModel",e.readSelfPublic),t.xp6(1),t.Q6J("ngModel",e.writeSelfPublic),t.xp6(3),t.Oqu(t.lcZ(45,51,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),t.xp6(2),t.Q6J("ngModel",e.readSelfVo),t.xp6(1),t.Q6J("ngModel",e.writeSelfVo),t.xp6(3),t.Oqu(t.lcZ(51,53,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),t.xp6(2),t.Q6J("ngModel",e.readVo),t.xp6(1),t.Q6J("ngModel",e.writeVo),t.xp6(3),t.Oqu(t.lcZ(57,55,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),t.xp6(2),t.Q6J("ngModel",e.readGroup),t.xp6(1),t.Q6J("ngModel",e.writeGroup),t.xp6(3),t.Oqu(t.lcZ(63,57,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),t.xp6(2),t.Q6J("ngModel",e.readFacility),t.xp6(1),t.Q6J("ngModel",e.writeFacility),t.xp6(3),t.Oqu(t.lcZ(69,59,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(61,Di))("services",e.services)}}function ti(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 wi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",3),t.TgZ(2,"h1",4),t._uU(3),t.qZA(),t.YNc(4,Zn,1,0,"mat-spinner",5),t.YNc(5,gn,71,62,"div",6),t.TgZ(6,"div",7),t.YNc(7,ti,3,3,"button",8),t.TgZ(8,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCopy()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t.ALo(15,"translate"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Oqu(e.attDef.namespace+":"+e.attDef.friendlyName),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===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.s9C("matTooltip",t.lcZ(15,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),t.Q6J("matTooltipDisabled",!e.disableConfirmButton())("disabled",e.disableConfirmButton()||e.loading),t.xp6(2),t.hij(" ",t.lcZ(17,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function On(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"app-entityless-attribute-keys-list",33),t.NdJ("switchView",function(){return t.CHM(e),t.oxw().switchShowKeys()}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let un=(()=>{class n{constructor(e,i,a,s,d,T,S,P){this.dialog=e,this.dialogRef=i,this.data=a,this.notificator=s,this.translate=d,this.clipboard=T,this.attributesManager=S,this.serviceService=P,this.showKeys=!1,this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1,this.tableId=Ae.Wv,this.loading=!1,this.activatedComponent="Edit"}ngOnInit(){this.loading=!0,this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attDef=this.data.attDef,this.serviceService.getServicesByAttributeDefinition(this.attDef.id).subscribe(e=>{this.services=e,this.attributesManager.getAttributeRights(this.attDef.id).subscribe(i=>{this.fromRightsToCheckboxes(i),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}disableConfirmButton(){return""===this.attDef.displayName||""===this.attDef.description}disableUniqueToggle(){return this.attDef.namespace.includes("virt")||this.attDef.namespace.includes("core")||"entityless"===this.attDef.entity}onSubmit(){this.loading=!0,this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).subscribe(e=>{this.attDef=e,this.attributesManager.setAttributeRights({rights:this.fromCheckboxesToRights()}).subscribe(()=>{this.translate.get("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.showKeys?(this.dialogRef.updateSize("800px"),this.activatedComponent="Entityless"):(this.dialogRef.updateSize("700px"),this.activatedComponent="Edit")}onCopy(){const e={attributeDefinition:this.attDef,attributeRights:this.fromCheckboxesToRights()};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"))}fromCheckboxesToRights(){const e=[],i={};i.attributeId=this.attDef.id,i.role=lt.u.SELF,i.rights=[],this.readSelf&&i.rights.push("READ"),this.readSelfPublic&&i.rights.push("READ_PUBLIC"),this.readSelfVo&&i.rights.push("READ_VO"),this.writeSelf&&i.rights.push("WRITE"),this.writeSelfPublic&&i.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&i.rights.push("WRITE_VO"),e.push(i);const a={};a.attributeId=this.attDef.id,a.role=lt.u.VOADMIN,a.rights=[],this.readVo&&a.rights.push("READ"),this.writeVo&&a.rights.push("WRITE"),e.push(a);const s={};s.attributeId=this.attDef.id,s.role=lt.u.GROUPADMIN,s.rights=[],this.readGroup&&s.rights.push(V.Us.READ),this.writeGroup&&s.rights.push("WRITE"),e.push(s);const d={};return d.attributeId=this.attDef.id,d.role=lt.u.FACILITYADMIN,d.rights=[],this.readFacility&&d.rights.push("READ"),this.writeFacility&&d.rights.push("WRITE"),e.push(d),e}fromRightsToCheckboxes(e){for(const i of e)switch(i.role){case lt.u.SELF:i.rights.includes("READ")&&(this.readSelf=!0),i.rights.includes("READ_PUBLIC")&&(this.readSelfPublic=!0),i.rights.includes("READ_VO")&&(this.readSelfVo=!0),i.rights.includes("WRITE")&&(this.writeSelf=!0),i.rights.includes("WRITE_PUBLIC")&&(this.writeSelfPublic=!0),i.rights.includes("WRITE_VO")&&(this.writeSelfVo=!0);break;case lt.u.GROUPADMIN:i.rights.includes("READ")&&(this.readGroup=!0),i.rights.includes("WRITE")&&(this.writeGroup=!0);break;case lt.u.FACILITYADMIN:i.rights.includes("READ")&&(this.readFacility=!0),i.rights.includes("WRITE")&&(this.writeFacility=!0);break;case lt.u.VOADMIN:i.rights.includes("READ")&&(this.readVo=!0),i.rights.includes("WRITE")&&(this.writeVo=!0)}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(In.TU),t.Y36(V.H8),t.Y36(V.KK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],viewQuery:function(e,i){if(1&e&&t.Gf(nn,5),2&e){let a;t.iGM(a=t.CRH())&&(i.copiedToolTip=a.first)}},decls:4,vars:2,consts:[[1,"admin-theme"],[1,"parent"],[4,"ngIf"],[1,"width-650"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["class","ml-0","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","","matTooltipPosition","above",1,"ml-2",3,"matTooltipDisabled","disabled","matTooltip","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["matInput","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],["matInput","","cdkTextareaAutosize","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","ngModel","disabled","matTooltipDisabled","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[1,"mt-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",1,"ml-0",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,wi,18,18,"div",2),t.YNc(3,On,2,2,"div",2),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},directives:[_.O5,O.uh,W.$g,O.xY,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.On,it.TO,Ct.IC,Ht.Rr,ne.gM,Ut.oG,ze.Q,O.H8,nt.lW,Fe],pipes:[u.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.width-650[_ngcontent-%COMP%]{width:650px!important}.pointer[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]{overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex}.parent[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[wn.SG,wn.GH,wn.Ls]}}),n})();var yn=o(70844);let ei=(()=>{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})(),ui=(()=>{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 Nn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",19),t.TgZ(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Le(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",21),t.TgZ(1,"mat-checkbox",22),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,T=t.oxw();return a?T.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.ALo(2,"consentRelatedAttribute"),t.ALo(3,"translate"),t.ALo(4,"consentRelatedAttribute"),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))("disabled",t.Dn7(2,5,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(3,9,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(4,11,e.namespace,i.serviceEnabled,i.consentRequired))}}function Ii(n,r){1&n&&(t.TgZ(0,"th",23),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 Bn(n,r){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function fn(n,r){1&n&&(t.TgZ(0,"th",23),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 G(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function X(n,r){1&n&&(t.TgZ(0,"th",23),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 ht(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function D(n,r){1&n&&(t.TgZ(0,"th",23),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 At(n,r){if(1&n&&(t.TgZ(0,"td",25),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 Ot(n,r){1&n&&(t.TgZ(0,"th",23),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 Bt(n,r){if(1&n&&(t.TgZ(0,"td",25),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 Yt(n,r){1&n&&(t.TgZ(0,"th",23),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 re(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function qt(n,r){1&n&&t._UZ(0,"tr",26)}function q(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",27),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onRowClick(s)}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function pt(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),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 bt(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),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"))}let wt=(()=>{class n{constructor(e,i,a,s){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=s,this.selection=new F.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=Ce.f7,this.canBeSelected=d=>!this.consentRelatedPipe.transform(d.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"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}exportData(e){(0,Ce.O6)((0,Ce.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,Ce.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,Ce.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(e){if(!this.disableRouting){const i=(0,Ce.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(un,i).afterClosed().subscribe(s=>{s&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.UA),t.Y36(yn.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ce.l9,7),t.Gf(je.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:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","friendlyName"],["mat-cell","",4,"matCellDef"],["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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return i.exportData(s)}),t.TgZ(2,"div",2),t.TgZ(3,"table",3),t.ynx(4,4),t.YNc(5,Nn,2,3,"th",5),t.YNc(6,Le,5,15,"td",6),t.BQk(),t.ynx(7,7),t.YNc(8,Ii,3,3,"th",8),t.YNc(9,Bn,2,1,"td",9),t.BQk(),t.ynx(10,10),t.YNc(11,fn,3,3,"th",8),t.YNc(12,G,2,1,"td",11),t.BQk(),t.ynx(13,12),t.YNc(14,X,3,3,"th",8),t.YNc(15,ht,2,1,"td",11),t.BQk(),t.ynx(16,13),t.YNc(17,D,3,3,"th",8),t.YNc(18,At,3,3,"td",11),t.BQk(),t.ynx(19,14),t.YNc(20,Ot,3,3,"th",8),t.YNc(21,Bt,3,3,"td",11),t.BQk(),t.ynx(22,15),t.YNc(23,Yt,3,3,"th",8),t.YNc(24,re,2,1,"td",11),t.BQk(),t.YNc(25,qt,1,0,"tr",16),t.YNc(26,q,1,2,"tr",17),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(27,pt,3,3,"perun-web-apps-alert",18),t.YNc(28,bt,3,3,"perun-web-apps-alert",18)),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(22),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))},directives:[Mn.l,R.BZ,je.YE,R.w1,R.fO,R.ge,Ut.oG,R.Dz,R.ev,ne.gM,je.nU,R.as,R.XQ,R.nj,R.Gk,_.O5,rt.w],pipes:[yn.u,u.X$,ei,ui],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function Xt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 te(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Dt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 he(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function N(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){return t.CHM(e),t.oxw().refreshTable()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdmin())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let le=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new F.Ov(!0,[]),this.filterValue="",this.tableId=Ae.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,Ce.kZ)();e.width="500px",this.dialog.open(Ve,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,Ce.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(K,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,Ce.kZ)();e.width="700px",this.dialog.open(ni,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(V.H8),t.Y36(U.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","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","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","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","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(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,Xt,3,3,"button",2),t.YNc(6,te,3,3,"button",2),t.YNc(7,Dt,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(9,he,1,0,"mat-spinner",5),t.YNc(10,N,1,5,"app-attr-def-list",6),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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,wt],pipes:[u.X$],styles:[""]}),n})(),ke=(()=>{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")},directives:[m.A],styles:[""]}),n})();var Oe=o(9921);let rn=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,Oe.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.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"))},pipes:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),He=(()=>{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"))},directives:[A.L],styles:[""]}),n})();var $e=o(80013),fe=o(75778),ve=o(22868),Qe=o(87545),et=o(92081),gt=o(91079),mt=o(79814);function St(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 zt(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function ee(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t.TgZ(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 Jt(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 pe(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 xe(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 Wt=(()=>{class n{constructor(e,i,a,s,d,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=s,this.router=d,this.notificator=T,this.searchField=new E.NI,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,$e.b)(400),(0,fe.x)(),(0,ve.b)(()=>this.loading=!0),(0,Qe.w)(e=>this.usersService.findUsers(e)),(0,ve.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(s=>{for(const d of s)d.destination===this.destination&&(this.availableServices.includes(d.service.name)||this.availableServices.push(d.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"}}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService}}):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(V.Fv),t.Y36(u.sK),t.Y36(V.IQ),t.Y36(V.KK),t.Y36(f.F0),t.Y36(U.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),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3),t.TgZ(6,"mat-step",4),t.YNc(7,St,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6),t.TgZ(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const d=t.MAs(5);return i.validateName(d)})("ngModelChange",function(){t.CHM(a);const d=t.MAs(5);return i.notCompleted(d)}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,zt,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,ee,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA(),t.qZA(),t.TgZ(19,"div"),t.TgZ(20,"button",12),t.NdJ("click",function(){t.CHM(a);const d=t.MAs(5);return i.validateName(d)}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(23,"mat-step",4),t.YNc(24,Jt,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6),t.TgZ(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const d=t.MAs(5);return i.validateDestination(d)})("ngModelChange",function(){t.CHM(a);const d=t.MAs(5);return i.notCompleted(d)})("ngModelChange",function(d){return i.destination=d}),t.ALo(27,"translate"),t.qZA(),t.qZA(),t.TgZ(28,"div"),t.TgZ(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 d=t.MAs(5);return i.validateDestination(d)}),t._uU(33),t.ALo(34,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(35,"mat-step"),t.YNc(36,pe,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(d){return i.chosenService=d}),t.YNc(38,xe,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div"),t.TgZ(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(),t.qZA(),t.qZA(),t.qZA(),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")," ")}},directives:[et.Vq,et.C0,et.VY,it.KE,z.Nt,E.Fj,gt.ZL,E.JJ,E.oH,_.O5,W.$g,it.R9,it.bx,gt.XC,_.sg,Rt.ey,nt.lW,E.On,et.fd,mt.VQ,mt.U0],pipes:[u.X$,_.Ov],styles:[""]}),n})();function oe(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 Ie(n){this._context=n}function Ye(n,r){this._basis=new Ie(n),this._beta=r}Ie.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:oe(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:oe(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},Ye.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 S,i=n[0],a=r[0],s=n[e]-i,d=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(S=T/e)*s),this._beta*r[T]+(1-this._beta)*(a+S*d));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const $n=function n(r){function e(i){return 1===r?new Ie(i):new Ye(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var En=o(8929),Sn=o(70655),we=o(41777);function Fn(){}function Qn(n){return null==n?Fn:function(){return this.querySelector(n)}}function ln(){return[]}function Jn(n){return new Array(n.length)}function cn(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function be(n,r,e,i,a,s){for(var T,d=0,S=r.length,P=s.length;dr?1:n>=r?0:NaN}cn.prototype={constructor:cn,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 We="http://www.w3.org/1999/xhtml";const An={svg:"http://www.w3.org/2000/svg",xhtml:We,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function di(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),An.hasOwnProperty(r)?{space:An[r],local:n}:n}function rr(n){return function(){this.removeAttribute(n)}}function Li(n){return function(){this.removeAttributeNS(n.space,n.local)}}function fi(n,r){return function(){this.setAttribute(n,r)}}function ii(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Mi(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function ar(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 Da(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function ls(n){return function(){this.style.removeProperty(n)}}function cs(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Pn(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function qi(n,r){return n.style.getPropertyValue(r)||Da(n).getComputedStyle(n,null).getPropertyValue(r)}function pi(n){return function(){delete this[n]}}function y(n,r){return function(){this[n]=r}}function L(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function $(n){return n.trim().split(/^|\s+/)}function dt(n){return n.classList||new Et(n)}function Et(n){this._node=n,this._names=$(n.getAttribute("class")||"")}function Lt(n,r){for(var e=dt(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 To={},Ir=null;function Zu(n,r,e){return n=bo(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function bo(n,r,e){return function(i){var a=Ir;Ir=i;try{n.call(this,this.__data__,r,e)}finally{Ir=a}}}function Bu(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 Uu(n){return function(){var r=this.__on;if(r){for(var s,e=0,i=-1,a=r.length;e=Kt&&(Kt=ie+1);!(Pe=Tt[Kt])&&++Kt=0;)(d=i[a])&&(s&&4^d.compareDocumentPosition(s)&&s.parentNode.insertBefore(d,s),s=d);return this},sort:function xt(n){function r(ot,st){return ot&&st?n(ot.__data__,st.__data__):!ot-!st}n||(n=kt);for(var e=this._groups,i=e.length,a=new Array(i),s=0;s1?this.each((null==r?ls:"function"==typeof r?Pn:cs)(n,r,null==e?"":e)):qi(this.node(),n)},property:function Z(n,r){return arguments.length>1?this.each((null==r?pi:"function"==typeof r?L:y)(n,r)):this.node()[n]},classed:function bn(n,r){var e=$(n+"");if(arguments.length<2){for(var i=dt(this.node()),a=-1,s=e.length;++a0)for(var S,i=n[0],a=r[0],s=n[e]-i,d=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(S=T/e)*s),this._beta*r[T]+(1-this._beta)*(a+S*d));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Xu=function n(r){function e(i){return 1===r?new La(i):new So(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var us=Math.PI,hs=2*us,Mr=1e-6,$u=hs-Mr;function ds(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Do(){return new ds}ds.prototype=Do.prototype={constructor:ds,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,s){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(n,r,e,i,a){var s=this._x1,d=this._y1,T=(e=+e)-(n=+n),S=(i=+i)-(r=+r),P=s-n,Y=d-r,ot=P*P+Y*Y;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(ot>Mr)if(Math.abs(Y*T-S*P)>Mr&&a){var st=e-s,_t=i-d,Mt=T*T+S*S,Zt=st*st+_t*_t,Tt=Math.sqrt(Mt),$t=Math.sqrt(ot),ie=a*Math.tan((us-Math.acos((Mt+ot-Zt)/(2*Tt*$t)))/2),Kt=ie/$t,Se=ie/Tt;Math.abs(Kt-1)>Mr&&(this._+="L"+(n+Kt*P)+","+(r+Kt*Y)),this._+="A"+a+","+a+",0,0,"+ +(Y*st>P*_t)+","+(this._x1=n+Se*T)+","+(this._y1=r+Se*S)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,s){n=+n,r=+r,s=!!s;var d=(e=+e)*Math.cos(i),T=e*Math.sin(i),S=n+d,P=r+T,Y=1^s,ot=s?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+S+","+P:(Math.abs(this._x1-S)>Mr||Math.abs(this._y1-P)>Mr)&&(this._+="L"+S+","+P),e&&(ot<0&&(ot=ot%hs+hs),ot>$u?this._+="A"+e+","+e+",0,1,"+Y+","+(n-d)+","+(r-T)+"A"+e+","+e+",0,1,"+Y+","+(this._x1=S)+","+(this._y1=P):ot>Mr&&(this._+="A"+e+","+e+",0,"+ +(ot>=us)+","+Y+","+(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 Qu=Do;function ka(n){return function(){return n}}function Lo(n){this._context=n}function Ju(n){return new Lo(n)}function ju(n){return n[0]}function qu(n){return n[1]}Lo.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 ko=Math.PI;function Mo(n){return(1-Math.cos(ko*n))/2}function th(){}function fs(n){return null==n?th:function(){return this.querySelector(n)}}function nh(){return[]}function Oo(n){return null==n?nh:function(){return this.querySelectorAll(n)}}function No(n){return function(){return this.matches(n)}}function Fo(n){return new Array(n.length)}function Ia(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function oh(n,r,e,i,a,s){for(var T,d=0,S=r.length,P=s.length;dr?1:n>=r?0:NaN}Ia.prototype={constructor:Ia,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 ps="http://www.w3.org/1999/xhtml";const Ro={svg:"http://www.w3.org/2000/svg",xhtml:ps,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ma(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Ro.hasOwnProperty(r)?{space:Ro[r],local:n}:n}function bh(n){return function(){this.removeAttribute(n)}}function Ch(n){return function(){this.removeAttributeNS(n.space,n.local)}}function wh(n,r){return function(){this.setAttribute(n,r)}}function Ah(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Eh(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Sh(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 Zo(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Lh(n){return function(){this.style.removeProperty(n)}}function kh(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Ih(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function zr(n,r){return n.style.getPropertyValue(r)||Zo(n).getComputedStyle(n,null).getPropertyValue(r)}function Oh(n){return function(){delete this[n]}}function Nh(n,r){return function(){this[n]=r}}function Fh(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Bo(n){return n.trim().split(/^|\s+/)}function ms(n){return n.classList||new Uo(n)}function Uo(n){this._node=n,this._names=Bo(n.getAttribute("class")||"")}function Go(n,r){for(var e=ms(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 Ho={},Or=null;function hd(n,r,e){return n=Yo(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function Yo(n,r,e){return function(i){var a=Or;Or=i;try{n.call(this,this.__data__,r,e)}finally{Or=a}}}function dd(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 fd(n){return function(){var r=this.__on;if(r){for(var s,e=0,i=-1,a=r.length;e=Kt&&(Kt=ie+1);!(Pe=Tt[Kt])&&++Kt=0;)(d=i[a])&&(s&&4^d.compareDocumentPosition(s)&&s.parentNode.insertBefore(d,s),s=d);return this},sort:function ph(n){function r(ot,st){return ot&&st?n(ot.__data__,st.__data__):!ot-!st}n||(n=mh);for(var e=this._groups,i=e.length,a=new Array(i),s=0;s1?this.each((null==r?Lh:"function"==typeof r?Ih:kh)(n,r,null==e?"":e)):zr(this.node(),n)},property:function Ph(n,r){return arguments.length>1?this.each((null==r?Oh:"function"==typeof r?Fh:Nh)(n,r)):this.node()[n]},classed:function Uh(n,r){var e=Bo(n+"");if(arguments.length<2){for(var i=ms(this.node()),a=-1,s=e.length;++a0)throw new Error("too late; already scheduled");return e}function fr(n,r){var e=er(n,r);if(e.state>3)throw new Error("too late; already running");return e}function er(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}var jo=o(75349);function Ad(n,r){var e,i;return function(){var a=fr(this,n),s=a.tween;if(s!==e)for(var d=0,T=(i=e=s).length;d=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?vs:fr;return function(){var d=s(this,n),T=d.on;T!==i&&(a=(i=T).copy()).on(r,e),d.on=a}}var rf=la.prototype.constructor;function tl(n){return function(){this.style.removeProperty(n)}}function hf(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function df(n,r,e){var i,a;function s(){var d=r.apply(this,arguments);return d!==a&&(i=(a=d)&&hf(n,d,e)),i}return s._value=r,s}function _f(n){return function(r){this.textContent=n.call(this,r)}}function vf(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&_f(a)),r}return i._value=n,i}var bf=0;function pr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function el(){return++bf}var Hr=la.prototype;pr.prototype=function Cf(n){return la().transition(n)}.prototype={constructor:pr,select:function ef(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=fs(n));for(var i=this._groups,a=i.length,s=new Array(a),d=0;d2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[d]):s=!1;s&&delete n.__transition}}(this,n)})},la.prototype.transition=function Af(n){var r,e;n instanceof pr?(r=n._id,n=n._name):(r=el(),(e=ys).time=(0,tr.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,s=0;s1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function Ba(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 ul=Symbol("implicit");function Ts(){var n=new Map,r=[],e=[],i=ul;function a(s){var d=s+"",T=n.get(d);if(!T){if(i!==ul)return i;n.set(d,T=r.push(s))}return e[(T-1)%e.length]}return a.domain=function(s){if(!arguments.length)return r.slice();r=[],n=new Map;for(const d of s){const T=d+"";n.has(T)||n.set(T,r.push(d))}return a},a.range=function(s){return arguments.length?(e=Array.from(s),a):e.slice()},a.unknown=function(s){return arguments.length?(i=s,a):i},a.copy=function(){return Ts(r,e).unknown(i)},Ba.apply(a,arguments),a}var Wr=o(59695);function Vf(n,r){var e;function i(){var a,d,s=e.length,T=0,S=0;for(a=0;a=(ot=(T+P)/2))?T=ot:P=ot,(Tt=e>=(st=(S+Y)/2))?S=st:Y=st,a=s,!(s=s[$t=Tt<<1|Zt]))return a[$t]=d,n;if(_t=+n._x.call(null,s.data),Mt=+n._y.call(null,s.data),r===_t&&e===Mt)return d.next=s,a?a[$t]=d:n._root=d,n;do{a=a?a[$t]=new Array(4):n._root=new Array(4),(Zt=r>=(ot=(T+P)/2))?T=ot:P=ot,(Tt=e>=(st=(S+Y)/2))?S=st:Y=st}while(($t=Tt<<1|Zt)==(ie=(Mt>=st)<<1|_t>=ot));return a[ie]=s,a[$t]=d,n}function Zi(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function ep(n){return n[0]}function ip(n){return n[1]}function bs(n,r,e){var i=new Cs(null==r?ep:r,null==e?ip:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function Cs(n,r,e,i,a,s){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=s,this._root=void 0}function dl(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var Bi=bs.prototype=Cs.prototype;function ap(n){return n.x+n.vx}function sp(n){return n.y+n.vy}function fl(n){var r,e,i=1,a=1;function s(){for(var S,Y,ot,st,_t,Mt,Zt,P=r.length,Tt=0;Ttst+Dn||Pe_t+Dn||Te<_t-Dn;if(dn.index>ot.index){var Vn=st-dn.x-dn.vx,zn=_t-dn.y-dn.vy,mi=Vn*Vn+zn*zn;miS.r&&(S.r=S[P].r)}function T(){if(r){var S,Y,P=r.length;for(e=new Array(P),S=0;SY&&(Y=a),sot&&(ot=s));if(S>Y||P>ot)return this;for(this.cover(S,P).cover(Y,ot),e=0;en||n>=a||i>r||r>=s;)switch(P=(rY||(T=Mt.y0)>ot||(S=Mt.x1)=$t)<<1|n>=Tt)&&(Mt=st[st.length-1],st[st.length-1]=st[st.length-1-Zt],st[st.length-1-Zt]=Mt)}else{var ie=n-+this._x.call(null,_t.data),Kt=r-+this._y.call(null,_t.data),Se=ie*ie+Kt*Kt;if(Se=(st=(d+S)/2))?d=st:S=st,(Zt=ot>=(_t=(T+P)/2))?T=_t:P=_t,r=e,!(e=e[Tt=Zt<<1|Mt]))return this;if(!e.length)break;(r[Tt+1&3]||r[Tt+2&3]||r[Tt+3&3])&&(i=r,$t=Tt)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(s=e.next)&&delete e.next,a?(s?a.next=s:delete a.next,this):r?(s?r[Tt]=s:delete r[Tt],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[$t]=e:this._root=e),this):(this._root=s,this)},Bi.removeAll=function Jf(n){for(var r=0,e=n.length;r1?(null==Zt?T.remove(Mt):T.set(Mt,_t(Zt)),r):T.get(Mt)},find:function(Mt,Zt,Tt){var Kt,Se,Pe,Te,dn,$t=0,ie=n.length;for(null==Tt?Tt=1/0:Tt*=Tt,$t=0;$t1?(P.on(Mt,Zt),r):P.on(Mt)}}}function yl(){var n,r,e,a,i=_i(-30),s=1,d=1/0,T=.81;function S(st){var _t,Mt=n.length,Zt=bs(n,hp,dp).visitAfter(Y);for(e=st,_t=0;_t=d)){(st.data!==r||st.next)&&(0===Tt&&(Kt+=(Tt=Cr())*Tt),0===$t&&(Kt+=($t=Cr())*$t),Kt{return(n=Xr||(Xr={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Xr;var n})(),$r=(()=>{return(n=$r||($r={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",$r;var n})();function Yp(n,r,e){e=e||{};let i,a,s,d=null,T=0;function S(){T=!1===e.leading?0:+new Date,d=null,s=n.apply(i,a)}return function(){const P=+new Date;!T&&!1===e.leading&&(T=P);const Y=r-(P-T);return i=this,a=arguments,Y<=0?(clearTimeout(d),d=null,T=P,s=n.apply(i,a)):!d&&!1!==e.trailing&&(d=setTimeout(S,Y)),s}}function Wp(n,r){return function(i,a,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:s.enumerable,value:Yp(s.value,n,r)}),this[a]}}}}let bl=[{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 Xp{constructor(r,e,i){"string"==typeof r&&(r=bl.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=bl.find(i=>i.name===r)),Ts().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 Qp=(()=>{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 Qr=(()=>{return(n=Qr||(Qr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Qr;var n})();function Jr(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function wl(n,r){return"number"==typeof r?n[r]:r}const Al={dagre:class Jp{constructor(){this.defaultSettings={orientation:Qr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Wr.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(s=>s.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(S=>S.id===e.source),a=r.nodes.find(S=>S.id===e.target),s=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-s*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+s*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Wr.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=mr()),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 jp{constructor(){this.defaultSettings={orientation:Qr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Wr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},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(S=>S.id===e.source),a=r.nodes.find(S=>S.id===e.target),s=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-s*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+s*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Wr.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=mr()),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 Kp{constructor(){this.defaultSettings={orientation:Qr.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),Wr.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(s=>s.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(Mt=>Mt.id===e.source),a=r.nodes.find(Mt=>Mt.id===e.target),s="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",d="y"===s?"x":"y",T="y"===s?"height":"width",S=i.position[s]<=a.position[s]?-1:1,P={[d]:i.position[d],[s]:i.position[s]-S*(i.dimension[T]/2)},Y={[d]:a.position[d],[s]:a.position[s]+S*(a.dimension[T]/2)},ot=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[P,{[d]:P[d],[s]:P[s]-S*ot},{[d]:Y[d],[s]:Y[s]+S*ot},Y];const _t=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return _t&&(_t.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Wr.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=mr()),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 tm{constructor(){this.defaultSettings={force:xl().force("charge",yl().strength(-150)).force("collide",fl(5)),forceLink:vl().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new En.xQ}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},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=>Object.assign(Object.assign({},e),{id:e.id||mr(),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=>Object.assign(Object.assign({},e),{source:Jr(e.source).id,target:Jr(e.target).id,points:[{x:Jr(e.source).x,y:Jr(e.source).y},{x:Jr(e.target).x,y:Jr(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 em{constructor(){this.defaultSettings={force:(0,vp.d3adaptor)(Object.assign(Object.assign(Object.assign({},x),c),v)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new En.xQ}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},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(s=>e.source===s.id),a=this.inputGraph.nodes.findIndex(s=>e.target===s.id);if(-1!==i&&-1!==a)return Object.assign(Object.assign({},e),{source:i,target:a})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(s=>e.source===s.id),a=this.inputGraph.nodes.findIndex(s=>e.target===s.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=>Object.assign(Object.assign({},e),{id:e.id||mr(),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=wl(r.nodes,e.source),a=wl(r.nodes,e.target);return Object.assign(Object.assign({},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),s=i||r.groups.find(T=>T.id===e.source),d=a||r.groups.find(T=>T.id===e.target);return Object.assign(Object.assign({},e),{source:s.id,target:d.id,points:[s.bounds.rayIntersection(d.bounds.cx(),d.bounds.cy()),d.bounds.rayIntersection(s.bounds.cx(),s.bounds.cy())]})})),this.outputGraph.clusters=r.groups.map((e,i)=>Object.assign(Object.assign({},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(s=>s.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(s=>s.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(s=>s.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let El=(()=>{class n{getLayout(e){if(Al[e])return new Al[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})(),nm=(()=>{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)),s=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):s&&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(s){return i.onMouseWheelChrome(s)})("DOMMouseScroll",function(s){return i.onMouseWheelFirefox(s)})("wheel",function(s){return i.onWheel(s)})("onmousewheel",function(s){return i.onMouseWheelIE(s)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),im=(()=>{class n{constructor(e,i,a,s){this.el=e,this.zone=i,this.cd=a,this.layoutService=s,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Xr.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=$r.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 il.w,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=d=>d.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${mr()}`}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 Qp(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=Xu.beta(1)),this.zone.run(()=>{this.dims=function $p({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 il.w;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=mr()),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=mr()),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 rl.y?e:(0,al.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,Sf.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(s=>{s.transform=`translate(${s.position.x-s.dimension.width/2||0}, ${s.position.y-s.dimension.height/2||0})`,s.data||(s.data={}),s.data.color=this.colors.getColor(this.groupResultsBy(s)),e.add(s.id)});const i=new Set;(this.graph.clusters||[]).map(s=>{s.transform=`translate(${s.position.x-s.dimension.width/2||0}, ${s.position.y-s.dimension.height/2||0})`,s.data||(s.data={}),s.data.color=this.colors.getColor(this.groupResultsBy(s)),i.add(s.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const s in this.graph.edgeLabels){const d=this.graph.edgeLabels[s],T=s.replace(/[^\w-]*/g,""),S=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let P=this._oldLinks.find(S?Zt=>`${Zt.source}${Zt.target}${Zt.id}`===T:Zt=>`${Zt.source}${Zt.target}`===T);const Y=this.graph.edges.find(S?Zt=>`${Zt.source}${Zt.target}${Zt.id}`===T:Zt=>`${Zt.source}${Zt.target}`===T);P?P.data&&Y&&Y.data&&JSON.stringify(P.data)!==JSON.stringify(Y.data)&&(P.data=Y.data):P=Y||d,P.oldLine=P.line;const ot=d.points,st=this.generateLine(ot),_t=Object.assign({},P);_t.line=st,_t.points=ot,this.updateMidpointOnEdge(_t,ot);const Mt=ot[Math.floor(ot.length/2)];Mt&&(_t.textTransform=`translate(${Mt.x||0},${Mt.y||0})`),_t.textAngle=0,_t.oldLine||(_t.oldLine=_t.line),this.calcDominantBaseline(_t),a.push(_t)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(s=>{const d=Object.assign({},s);return d.oldLine=s.line,d})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case $r.UpperLeft:return"";case $r.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,s=-1/0;for(let d=0;di?T.position.x+T.dimension.width:i,s=T.position.y+T.dimension.height>s?T.position.y+T.dimension.height:s}e-=100,a-=100,i+=100,s+=100,this.graphDims.width=i-e,this.graphDims.height=s-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(d=>d.id===i.id);if(!a)return;let s;try{if(s=i.getBBox(),!s.width||!s.height)return}catch(d){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:s.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 d;try{for(const T of i.getElementsByTagName("text")){const S=T.getBBox();d?(S.width>d.width&&(d.width=S.width),S.height>d.height&&(d.height=S.height)):d=S}}catch(T){return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:d.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:s.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(s=>s.id===i.nativeElement.id);a&&(Ao(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(Mo).duration(e?500:0).attr("d",a.line),Ao(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(Mo).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),s=this.zoomLevel*a;if(!(s<=this.minZoomLevel||s>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const d=e.clientX,T=e.clientY,S=this.el.nativeElement.querySelector("svg"),P=S.querySelector("g.chart"),Y=S.createSVGPoint();Y.x=d,Y.y=T;const ot=Y.matrixTransform(P.getScreenCTM().inverse());this.pan(ot.x,ot.y,!0),this.zoom(a),this.pan(-ot.x,-ot.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const s=a?1:this.zoomLevel;this.transformationMatrix=ha(this.transformationMatrix,cl(e/s,i/s)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=ha(this.transformationMatrix,cl((-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=ha(this.transformationMatrix,function Pf(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Ff(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 d of this.graph.edges)if((d.target===i.id||d.source===i.id||d.target.id===i.id||d.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,d),S=T instanceof rl.y?T:(0,al.of)(T);this.graphSubscription.add(S.subscribe(P=>{this.graph=P,this.redrawEdge(d)}))}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 Zf(n){return function ll(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function Gf(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 Xp(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,s=i-this._touchLastX,d=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(s,d)}}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,s=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,s=-this.minimapScaleCoefficient*s*this.zoomLevel),e){case Xr.Horizontal:this.pan(a,0);break;case Xr.Vertical:this.pan(0,s);break;default:this.pan(a,s)}}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],s=i[i.length/2-1];e.midPoint={x:(a.x+s.x)/2,y:(a.y+s.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 s=a.parentNode.getBoundingClientRect();e=s.width,i=s.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,sl.R)(window,"resize").pipe((0,$e.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(El))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,yp,5),t.Suo(a,Tp,5),t.Suo(a,bp,5),t.Suo(a,Cp,5),t.Suo(a,wp,5)),2&e){let s;t.iGM(s=t.CRH())&&(i.linkTemplate=s.first),t.iGM(s=t.CRH())&&(i.nodeTemplate=s.first),t.iGM(s=t.CRH())&&(i.clusterTemplate=s.first),t.iGM(s=t.CRH())&&(i.defsTemplate=s.first),t.iGM(s=t.CRH())&&(i.miniMapNodeTemplate=s.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(Ap,5),t.Gf(Ep,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(s){return i.onMouseMove(s)},!1,t.evT)("mousedown",function(s){return i.onMouseDown(s)},!1,t.evT)("click",function(s){return i.graphClick(s)},!1,t.evT)("touchmove",function(s){return i.onTouchMove(s)},!1,t.evT)("mouseup",function(s){return i.onMouseUp(s)},!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:Hp,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(s){return i.onZoom(s,"in")})("mouseWheelDown",function(s){return i.onZoom(s,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,Zp,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,zp,6,15,"g",3),t.qZA(),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))},directives:[nm,_.O5,_.tP,_.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,we.X$)("animationState",[(0,we.eR)(":enter",[(0,we.oB)({opacity:0}),(0,we.jt)("500ms 100ms",(0,we.oB)({opacity:1}))])])]},changeDetection:0}),(0,Sn.gn)([Wp(500)],n.prototype,"updateMinimap",null),n})(),rm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[El],imports:[[_.ez]]}),n})(),am=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez],rm]}),n})();var Sl=o(47429);function Es(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Dl(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function fa(){}o(52016);var Va=1/.7,jr="\\s*([+-]?\\d+)\\s*",ma="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",sr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lm=/^#([0-9a-f]{3,8})$/,cm=new RegExp("^rgb\\("+[jr,jr,jr]+"\\)$"),um=new RegExp("^rgb\\("+[sr,sr,sr]+"\\)$"),hm=new RegExp("^rgba\\("+[jr,jr,jr,ma]+"\\)$"),dm=new RegExp("^rgba\\("+[sr,sr,sr,ma]+"\\)$"),fm=new RegExp("^hsl\\("+[ma,sr,sr]+"\\)$"),pm=new RegExp("^hsla\\("+[ma,sr,sr,ma]+"\\)$"),Ll={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 kl(){return this.rgb().formatHex()}function Il(){return this.rgb().formatRgb()}function Fr(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=lm.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?Ml(r):3===e?new Wi(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?za(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?za(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=cm.exec(n))?new Wi(r[1],r[2],r[3],1):(r=um.exec(n))?new Wi(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=hm.exec(n))?za(r[1],r[2],r[3],r[4]):(r=dm.exec(n))?za(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=fm.exec(n))?Fl(r[1],r[2]/100,r[3]/100,1):(r=pm.exec(n))?Fl(r[1],r[2]/100,r[3]/100,r[4]):Ll.hasOwnProperty(n)?Ml(Ll[n]):"transparent"===n?new Wi(NaN,NaN,NaN,0):null}function Ml(n){return new Wi(n>>16&255,n>>8&255,255&n,1)}function za(n,r,e,i){return i<=0&&(n=r=e=NaN),new Wi(n,r,e,i)}function gm(n){return n instanceof fa||(n=Fr(n)),n?new Wi((n=n.rgb()).r,n.g,n.b,n.opacity):new Wi}function Ha(n,r,e,i){return 1===arguments.length?gm(n):new Wi(n,r,e,null==i?1:i)}function Wi(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function Ol(){return"#"+Ss(this.r)+Ss(this.g)+Ss(this.b)}function Nl(){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 Ss(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Fl(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new or(n,r,e,i)}function Pl(n){if(n instanceof or)return new or(n.h,n.s,n.l,n.opacity);if(n instanceof fa||(n=Fr(n)),!n)return new or;if(n instanceof or)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),s=Math.max(r,e,i),d=NaN,T=s-a,S=(s+a)/2;return T?(d=r===s?(e-i)/T+6*(e0&&S<1?0:d,new or(d,T,S,n.opacity)}function or(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function Ds(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 Rl(n,r,e,i,a){var s=n*n,d=s*n;return((1-3*n+3*s-d)*r+(4-6*s+3*d)*e+(1+3*n+3*s-3*d)*i+d*a)/6}Es(fa,Fr,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:kl,formatHex:kl,formatHsl:function mm(){return Pl(this).formatHsl()},formatRgb:Il,toString:Il}),Es(Wi,Ha,Dl(fa,{brighter:function(n){return n=null==n?Va:Math.pow(Va,n),new Wi(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Wi(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:Ol,formatHex:Ol,formatRgb:Nl,toString:Nl})),Es(or,function _m(n,r,e,i){return 1===arguments.length?Pl(n):new or(n,r,e,null==i?1:i)},Dl(fa,{brighter:function(n){return n=null==n?Va:Math.pow(Va,n),new or(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new or(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 Wi(Ds(n>=240?n-240:n+120,a,i),Ds(n,a,i),Ds(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 Ls=n=>()=>n;function Bl(n,r){var e=r-n;return e?function Zl(n,r){return function(e){return n+e*r}}(n,e):Ls(isNaN(n)?r:n)}const Ya=function n(r){var e=function Tm(n){return 1==(n=+n)?Bl:function(r,e){return e-r?function ym(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):Ls(isNaN(r)?e:r)}}(r);function i(a,s){var d=e((a=Ha(a)).r,(s=Ha(s)).r),T=e(a.g,s.g),S=e(a.b,s.b),P=Bl(a.opacity,s.opacity);return function(Y){return a.r=d(Y),a.g=T(Y),a.b=S(Y),a.opacity=P(Y),a+""}}return i.gamma=n,i}(1);function Ul(n){return function(r){var d,T,e=r.length,i=new Array(e),a=new Array(e),s=new Array(e);for(d=0;d=1?(e=1,r-1):Math.floor(e*r),a=n[i],s=n[i+1];return Rl((e-i/r)*r,i>0?n[i-1]:2*a-s,a,s,ie&&(s=r.slice(e,s),T[d]?T[d]+=s:T[++d]=s),(i=i[0])===(a=a[0])?T[d]?T[d]+=a:T[++d]=a:(T[++d]=null,S.push({i:d,x:lr(i,a)})),e=Is.lastIndex;return e0)throw new Error("too late; already scheduled");return e}function cr(n,r){var e=ir(n,r);if(e.state>3)throw new Error("too late; already running");return e}function ir(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}var Qa,Xl=180/Math.PI,Rs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $l(n,r,e,i,a,s){var d,T,S;return(d=Math.sqrt(n*n+r*r))&&(n/=d,r/=d),(S=n*e+r*i)&&(e-=n*S,i-=r*S),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,S/=T),n*i180?Y+=360:Y-P>180&&(P+=360),st.push({i:ot.push(a(ot)+"rotate(",null,i)-2,x:lr(P,Y)})):Y&&ot.push(a(ot)+"rotate("+Y+i)}(P.rotate,Y.rotate,ot,st),function T(P,Y,ot,st){P!==Y?st.push({i:ot.push(a(ot)+"skewX(",null,i)-2,x:lr(P,Y)}):Y&&ot.push(a(ot)+"skewX("+Y+i)}(P.skewX,Y.skewX,ot,st),function S(P,Y,ot,st,_t,Mt){if(P!==ot||Y!==st){var Zt=_t.push(a(_t)+"scale(",null,",",null,")");Mt.push({i:Zt-4,x:lr(P,ot)},{i:Zt-2,x:lr(Y,st)})}else(1!==ot||1!==st)&&_t.push(a(_t)+"scale("+ot+","+st+")")}(P.scaleX,P.scaleY,Y.scaleX,Y.scaleY,ot,st),P=Y=null,function(_t){for(var Tt,Mt=-1,Zt=st.length;++Mt=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Fs:cr;return function(){var d=s(this,n),T=d.on;T!==i&&(a=(i=T).copy()).on(r,e),d.on=a}}var mg=o(29742),_g=o(32037),xg=ga.ZP.prototype.constructor,_a=o(24476);function ql(n){return function(){this.style.removeProperty(n)}}function Eg(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Sg(n,r,e){var i,a;function s(){var d=r.apply(this,arguments);return d!==a&&(i=(a=d)&&Eg(n,d,e)),i}return s._value=r,s}function Mg(n){return function(r){this.textContent=n.call(this,r)}}function Og(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&Mg(a)),r}return i._value=n,i}var Rg=0;function gr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Kl(){return++Rg}var Pr=ga.ZP.prototype;gr.prototype=function Zg(n){return(0,ga.ZP)().transition(n)}.prototype={constructor:gr,select:function gg(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=(0,mg.Z)(n));for(var i=this._groups,a=i.length,s=new Array(a),d=0;d2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[d]):s=!1;s&&delete n.__transition}}(this,n)})},ga.ZP.prototype.transition=function Gg(n){var r,e;n instanceof gr?(r=n._id,n=n._name):(r=Kl(),(e=Bg).time=(0,tr.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,s=0;sr?1:n>=r?0:NaN}function Ys(n){let r=n,e=n;function i(d,T,S,P){for(null==S&&(S=0),null==P&&(P=d.length);S>>1;e(d[Y],T)<0?S=Y+1:P=Y}return S}return 1===n.length&&(r=(d,T)=>n(d)-T,e=function Kg(n){return(r,e)=>ac(n(r),e)}(n)),{left:i,center:function s(d,T,S,P){null==S&&(S=0),null==P&&(P=d.length);const Y=i(d,T,S,P-1);return Y>S&&r(d[Y-1],T)>-r(d[Y],T)?Y-1:Y},right:function a(d,T,S,P){for(null==S&&(S=0),null==P&&(P=d.length);S>>1;e(d[Y],T)>0?P=Y:S=Y+1}return S}}}["w","e"].map(va),["n","s"].map(va),["n","w","e","s","nw","ne","sw","se"].map(va);var Ws=Math.sqrt(50),Xs=Math.sqrt(10),$s=Math.sqrt(2);function Qs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/a;return s>=Ws?a*=10:s>=Xs?a*=5:s>=$s&&(a*=2),r0))return S;do{S.push(P=new Date(+s)),r(s,T),n(s)}while(P=d)for(;n(d),!s(d);)d.setTime(d-1)},function(d,T){if(d>=d)if(T<0)for(;++T<=0;)for(;r(d,-1),!s(d););else for(;--T>=0;)for(;r(d,1),!s(d););})},e&&(a.count=function(s,d){return qs.setTime(+s),Ks.setTime(+d),n(qs),n(Ks),Math.floor(e(qs,Ks))},a.every=function(s){return s=Math.floor(s),isFinite(s)&&s>0?s>1?a.filter(i?function(d){return i(d)%s==0}:function(d){return a.count(0,d)%s==0}):a:null}),a}var qa=Ei(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});qa.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Ei(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):qa:null};const e_=qa;const xa=Ei(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*vr)},function(n,r){return(r-n)/vr},function(n){return n.getUTCSeconds()});const uc=Ei(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*vr)},function(n,r){n.setTime(+n+r*Ji)},function(n,r){return(r-n)/Ji},function(n){return n.getMinutes()});const dc=Ei(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*vr-n.getMinutes()*Ji)},function(n,r){n.setTime(+n+r*xr)},function(n,r){return(r-n)/xr},function(n){return n.getHours()});const pc=Ei(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Ji)/Rr,n=>n.getDate()-1);function Zr(n){return Ei(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())*Ji)/Js})}var to=Zr(0);const gc=(Zr(1),Zr(2),Zr(3),Zr(4),Zr(5),Zr(6),Ei(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 eo=Ei(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()});eo.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ei(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 _c=eo;const l_=Ei(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Ji)},function(n,r){return(r-n)/Ji},function(n){return n.getUTCMinutes()});const c_=Ei(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*xr)},function(n,r){return(r-n)/xr},function(n){return n.getUTCHours()});const u_=Ei(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Rr},function(n){return n.getUTCDate()-1});function Br(n){return Ei(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)/Js})}var Tc=Br(0);const __=(Br(1),Br(2),Br(3),Br(4),Br(5),Br(6),Ei(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 no=Ei(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()});no.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ei(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 v_=no;function Cc(n,r,e,i,a,s){const d=[[xa,1,vr],[xa,5,5e3],[xa,15,15e3],[xa,30,3e4],[s,1,Ji],[s,5,5*Ji],[s,15,15*Ji],[s,30,30*Ji],[a,1,xr],[a,3,3*xr],[a,6,6*xr],[a,12,12*xr],[i,1,Rr],[i,2,2*Rr],[e,1,Js],[r,1,oc],[r,3,3*oc],[n,1,js]];function S(P,Y,ot){const st=Math.abs(Y-P)/ot,_t=Ys(([,,Tt])=>Tt).right(d,st);if(_t===d.length)return n.every(Qs(P/js,Y/js,ot));if(0===_t)return e_.every(Math.max(Qs(P,Y,ot),1));const[Mt,Zt]=d[st/d[_t-1][2]0))return S;do{S.push(P=new Date(+s)),r(s,T),n(s)}while(P=d)for(;n(d),!s(d);)d.setTime(d-1)},function(d,T){if(d>=d)if(T<0)for(;++T<=0;)for(;r(d,-1),!s(d););else for(;--T>=0;)for(;r(d,1),!s(d););})},e&&(a.count=function(s,d){return io.setTime(+s),ro.setTime(+d),n(io),n(ro),Math.floor(e(io,ro))},a.every=function(s){return s=Math.floor(s),isFinite(s)&&s>0?s>1?a.filter(i?function(d){return i(d)%s==0}:function(d){return a.count(0,d)%s==0}):a:null}),a}var Ec=6048e5;function Ur(n){return yr(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)/Ec})}var Sc=Ur(0),Ka=Ur(1),ts=(Ur(2),Ur(3),Ur(4));const Lc=(Ur(5),Ur(6),yr(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}));function Gr(n){return yr(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-6e4*(e.getTimezoneOffset()-r.getTimezoneOffset()))/Ec})}var kc=Gr(0),es=Gr(1),ns=(Gr(2),Gr(3),Gr(4));const Mc=(Gr(5),Gr(6),yr(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-6e4*(r.getTimezoneOffset()-n.getTimezoneOffset()))/864e5},function(n){return n.getDate()-1}));var ao=yr(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()});ao.every=function(n){return isFinite(n=Math.floor(n))&&n>0?yr(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 ya=ao;var so=yr(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()});so.every=function(n){return isFinite(n=Math.floor(n))&&n>0?yr(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 Ta=so;function oo(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function lo(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function ba(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Oc={"-":"",_:" ",0:"0"},Si=/^\s*\d+/,k_=/^%/,I_=/[\\^$*+?|[\]().{}]/g;function Gn(n,r,e){var i=n<0?"-":"",a=(i?-n:n)+"",s=a.length;return i+(s68?1900:2e3),e+i[0].length):-1}function U_(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 G_(n,r,e){var i=Si.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function V_(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Nc(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function z_(n,r,e){var i=Si.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Fc(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function H_(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Y_(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function W_(n,r,e){var i=Si.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function X_(n,r,e){var i=Si.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function $_(n,r,e){var i=k_.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Q_(n,r,e){var i=Si.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function J_(n,r,e){var i=Si.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Pc(n,r){return Gn(n.getDate(),r,2)}function j_(n,r){return Gn(n.getHours(),r,2)}function q_(n,r){return Gn(n.getHours()%12||12,r,2)}function K_(n,r){return Gn(1+Mc.count(ya(n),n),r,3)}function Rc(n,r){return Gn(n.getMilliseconds(),r,3)}function tv(n,r){return Rc(n,r)+"000"}function ev(n,r){return Gn(n.getMonth()+1,r,2)}function nv(n,r){return Gn(n.getMinutes(),r,2)}function iv(n,r){return Gn(n.getSeconds(),r,2)}function rv(n){var r=n.getDay();return 0===r?7:r}function av(n,r){return Gn(kc.count(ya(n)-1,n),r,2)}function sv(n,r){var e=n.getDay();return n=e>=4||0===e?ns(n):ns.ceil(n),Gn(ns.count(ya(n),n)+(4===ya(n).getDay()),r,2)}function ov(n){return n.getDay()}function lv(n,r){return Gn(es.count(ya(n)-1,n),r,2)}function cv(n,r){return Gn(n.getFullYear()%100,r,2)}function uv(n,r){return Gn(n.getFullYear()%1e4,r,4)}function hv(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Gn(r/60|0,"0",2)+Gn(r%60,"0",2)}function Zc(n,r){return Gn(n.getUTCDate(),r,2)}function dv(n,r){return Gn(n.getUTCHours(),r,2)}function fv(n,r){return Gn(n.getUTCHours()%12||12,r,2)}function pv(n,r){return Gn(1+Lc.count(Ta(n),n),r,3)}function Bc(n,r){return Gn(n.getUTCMilliseconds(),r,3)}function mv(n,r){return Bc(n,r)+"000"}function gv(n,r){return Gn(n.getUTCMonth()+1,r,2)}function _v(n,r){return Gn(n.getUTCMinutes(),r,2)}function vv(n,r){return Gn(n.getUTCSeconds(),r,2)}function xv(n){var r=n.getUTCDay();return 0===r?7:r}function yv(n,r){return Gn(Sc.count(Ta(n)-1,n),r,2)}function Tv(n,r){var e=n.getUTCDay();return n=e>=4||0===e?ts(n):ts.ceil(n),Gn(ts.count(Ta(n),n)+(4===Ta(n).getUTCDay()),r,2)}function bv(n){return n.getUTCDay()}function Cv(n,r){return Gn(Ka.count(Ta(n)-1,n),r,2)}function wv(n,r){return Gn(n.getUTCFullYear()%100,r,2)}function Av(n,r){return Gn(n.getUTCFullYear()%1e4,r,4)}function Ev(){return"+0000"}function Uc(){return"%"}function Gc(n){return+n}function Vc(n){return Math.floor(+n/1e3)}!function kv(n){(function L_(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,s=n.days,d=n.shortDays,T=n.months,S=n.shortMonths,P=Ca(a),Y=wa(a),ot=Ca(s),st=wa(s),_t=Ca(d),Mt=wa(d),Zt=Ca(T),Tt=wa(T),$t=Ca(S),ie=wa(S),Kt={a:function Ti(Ee){return d[Ee.getDay()]},A:function dr(Ee){return s[Ee.getDay()]},b:function bi(Ee){return S[Ee.getMonth()]},B:function Ci(Ee){return T[Ee.getMonth()]},c:null,d:Pc,e:Pc,f:tv,H:j_,I:q_,j:K_,L:Rc,m:ev,M:nv,p:function oi(Ee){return a[+(Ee.getHours()>=12)]},q:function li(Ee){return 1+~~(Ee.getMonth()/3)},Q:Gc,s:Vc,S:iv,u:rv,U:av,V:sv,w:ov,W:lv,x:null,X:null,y:cv,Y:uv,Z:hv,"%":Uc},Se={a:function Ea(Ee){return d[Ee.getUTCDay()]},A:function aa(Ee){return s[Ee.getUTCDay()]},b:function sa(Ee){return S[Ee.getUTCMonth()]},B:function oa(Ee){return T[Ee.getUTCMonth()]},c:null,d:Zc,e:Zc,f:mv,H:dv,I:fv,j:pv,L:Bc,m:gv,M:_v,p:function Fi(Ee){return a[+(Ee.getUTCHours()>=12)]},q:function os(Ee){return 1+~~(Ee.getUTCMonth()/3)},Q:Gc,s:Vc,S:vv,u:xv,U:yv,V:Tv,w:bv,W:Cv,x:null,X:null,y:wv,Y:Av,Z:Ev,"%":Uc},Pe={a:function Vn(Ee,an,Cn){var ue=_t.exec(an.slice(Cn));return ue?(Ee.w=Mt[ue[0].toLowerCase()],Cn+ue[0].length):-1},A:function zn(Ee,an,Cn){var ue=ot.exec(an.slice(Cn));return ue?(Ee.w=st[ue[0].toLowerCase()],Cn+ue[0].length):-1},b:function mi(Ee,an,Cn){var ue=$t.exec(an.slice(Cn));return ue?(Ee.m=ie[ue[0].toLowerCase()],Cn+ue[0].length):-1},B:function vi(Ee,an,Cn){var ue=Zt.exec(an.slice(Cn));return ue?(Ee.m=Tt[ue[0].toLowerCase()],Cn+ue[0].length):-1},c:function xi(Ee,an,Cn){return _n(Ee,r,an,Cn)},d:Nc,e:Nc,f:X_,H:Fc,I:Fc,j:z_,L:W_,m:V_,M:H_,p:function Dn(Ee,an,Cn){var ue=P.exec(an.slice(Cn));return ue?(Ee.p=Y[ue[0].toLowerCase()],Cn+ue[0].length):-1},q:G_,Q:Q_,s:J_,S:Y_,u:N_,U:F_,V:P_,w:O_,W:R_,x:function hr(Ee,an,Cn){return _n(Ee,e,an,Cn)},X:function yi(Ee,an,Cn){return _n(Ee,i,an,Cn)},y:B_,Y:Z_,Z:U_,"%":$_};function Te(Ee,an){return function(Cn){var Gi,en,ai,ue=[],ri=-1,Rn=0,Ui=Ee.length;for(Cn instanceof Date||(Cn=new Date(+Cn));++ri53)return null;"w"in ue||(ue.w=1),"Z"in ue?(Ui=(Rn=lo(ba(ue.y,0,1))).getUTCDay(),Rn=Ui>4||0===Ui?Ka.ceil(Rn):Ka(Rn),Rn=Lc.offset(Rn,7*(ue.V-1)),ue.y=Rn.getUTCFullYear(),ue.m=Rn.getUTCMonth(),ue.d=Rn.getUTCDate()+(ue.w+6)%7):(Ui=(Rn=oo(ba(ue.y,0,1))).getDay(),Rn=Ui>4||0===Ui?es.ceil(Rn):es(Rn),Rn=Mc.offset(Rn,7*(ue.V-1)),ue.y=Rn.getFullYear(),ue.m=Rn.getMonth(),ue.d=Rn.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),Ui="Z"in ue?lo(ba(ue.y,0,1)).getUTCDay():oo(ba(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+7*ue.W-(Ui+5)%7:ue.w+7*ue.U-(Ui+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,lo(ue)):oo(ue)}}function _n(Ee,an,Cn,ue){for(var Gi,en,ri=0,Rn=an.length,Ui=Cn.length;ri=Ui)return-1;if(37===(Gi=an.charCodeAt(ri++))){if(Gi=an.charAt(ri++),!(en=Pe[Gi in Oc?an.charAt(ri++):Gi])||(ue=en(Ee,Cn,ue))<0)return-1}else if(Gi!=Cn.charCodeAt(ue++))return-1}return ue}return Kt.x=Te(e,Kt),Kt.X=Te(i,Kt),Kt.c=Te(r,Kt),Se.x=Te(e,Se),Se.X=Te(i,Se),Se.c=Te(r,Se),{format:function(Ee){var an=Te(Ee+="",Kt);return an.toString=function(){return Ee},an},parse:function(Ee){var an=dn(Ee+="",!1);return an.toString=function(){return Ee},an},utcFormat:function(Ee){var an=Te(Ee+="",Se);return an.toString=function(){return Ee},an},utcParse:function(Ee){var an=dn(Ee+="",!0);return an.toString=function(){return Ee},an}}})(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"]}),Ys(ac),Ys(function Iv(n){return null===n?NaN:+n}),o(47927),o(32517),o(38914),o(22910),o(65142),o(78986),o(16087);const a0=["caretElm"];function s0(n,r){}const o0=function(n){return{model:n}};function l0(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,s0,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,o0,e.context))}}function c0(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function px(n,r,e){e=e||{};let i,a,s,d=null,T=0;function S(){T=!1===e.leading?0:+new Date,d=null,s=n.apply(i,a)}return function(){const P=+new Date;!T&&!1===e.leading&&(T=P);const Y=r-(P-T);return i=this,a=arguments,Y<=0?(clearTimeout(d),d=null,T=P,s=n.apply(i,a)):!d&&!1!==e.trailing&&(d=setTimeout(S,Y)),s}}function mx(n,r){return function(i,a,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:s.enumerable,value:px(s.value,n,r)}),this[a]}}}}var pn=(()=>{return(n=pn||(pn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",pn;var n})();function eu(n,r,e){return e===pn.Top?n.top-7:e===pn.Bottom?n.top+n.height-r.height+7:e===pn.Center?n.top+n.height/2-r.height/2:void 0}function nu(n,r,e){return e===pn.Left?n.left-7:e===pn.Right?n.left+n.width-r.width+7:e===pn.Center?n.left+n.width/2-r.width/2:void 0}class Xi{static calculateVerticalAlignment(r,e,i){let a=eu(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let s;a===pn.Top&&(s=r.height/2-i.height/2+7),a===pn.Bottom&&(s=e.height-r.height/2-i.height/2-7),a===pn.Center&&(s=e.height/2-i.height/2);const d=eu(r,e,a);return d+e.height>window.innerHeight&&(s+=d+e.height-window.innerHeight),s}static calculateHorizontalAlignment(r,e,i){let a=nu(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let s;a===pn.Left&&(s=r.width/2-i.width/2+7),a===pn.Right&&(s=e.width-r.width/2-i.width/2-7),a===pn.Center&&(s=e.width/2-i.width/2);const d=nu(r,e,a);return d+e.width>window.innerWidth&&(s+=d+e.width-window.innerWidth),s}static shouldFlip(r,e,i,a){let s=!1;return i===pn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(s=!0),i===pn.Left&&r.left-e.width-a<0&&(s=!0),i===pn.Top&&r.top-e.height-a<0&&(s=!0),i===pn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(s=!0),s}static positionCaret(r,e,i,a,s){let d=0,T=0;return r===pn.Right?(T=-7,d=Xi.calculateVerticalCaret(i,e,a,s)):r===pn.Left?(T=e.width,d=Xi.calculateVerticalCaret(i,e,a,s)):r===pn.Top?(d=e.height,T=Xi.calculateHorizontalCaret(i,e,a,s)):r===pn.Bottom&&(d=-7,T=Xi.calculateHorizontalCaret(i,e,a,s)),{top:d,left:T}}static positionContent(r,e,i,a,s){let d=0,T=0;return r===pn.Right?(T=i.left+i.width+a,d=Xi.calculateVerticalAlignment(i,e,s)):r===pn.Left?(T=i.left-e.width-a,d=Xi.calculateVerticalAlignment(i,e,s)):r===pn.Top?(d=i.top-e.height-a,T=Xi.calculateHorizontalAlignment(i,e,s)):r===pn.Bottom&&(d=i.top+i.height+a,T=Xi.calculateHorizontalAlignment(i,e,s)),{top:d,left:T}}static determinePlacement(r,e,i,a){if(Xi.shouldFlip(i,e,r,a)){if(r===pn.Right)return pn.Left;if(r===pn.Left)return pn.Right;if(r===pn.Top)return pn.Bottom;if(r===pn.Bottom)return pn.Top}return r}}let gx=(()=>{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,_.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:s,left:d}=Xi.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${s}px`),this.renderer.setStyle(e,"left",`${d}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,s=a.getBoundingClientRect(),{top:d,left:T}=Xi.positionCaret(this.placement,i,e,s,this.alignment);this.renderer.setStyle(a,"top",`${d}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=Xi.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(a0,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,l0,2,4,"span",3),t.YNc(5,c0,1,1,"span",4),t.qZA(),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))},directives:[_.O5,_.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,Sn.gn)([mx(100)],n.prototype,"onWindowResize",null),n})(),iu=(()=>{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 vx(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 s of a)e.instance[s]=i.inputs[s]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const s of a)e.instance[s]=i.outputs[s]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const s=this.getComponentRootNode(a),d=new Sl.u0(s,this.componentFactoryResolver,this.applicationRef,this.injector),T=new Sl.C5(e),S=d.attach(T);return this.projectComponentBindings(S,i),S}}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})(),ho=(()=>{class n extends class _x{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=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs=Object.assign(Object.assign({},e),r.inputs)),i&&(r.outputs=Object.assign(Object.assign({},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=gx}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(iu))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),cu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez]]}),n})();var na=(()=>{return(n=na||(na={})).popover="popover",n.tooltip="tooltip",na;var n})(),Er=(()=>{return(n=Er||(Er={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",Er;var n})();let go,po=(()=>{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=pn.Top,this.tooltipAlignment=pn.Center,this.tooltipType=na.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Er.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Er.all||this.tooltipShowEvent===Er.focus}get listensForHover(){return this.tooltipShowEvent===Er.all||this.tooltipShowEvent===Er.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(ho),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(s){return i.onMouseLeave(s.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})(),uu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[iu,ho],imports:[[_.ez]]}),n})();"undefined"!=typeof window?go=window:"undefined"!=typeof global&&(go=global);let ji=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez,cu,uu],_.ez,cu,uu]}),n})(),kx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Ix=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Mx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Ox=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),xu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})();Math;let vo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Px=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji,vo,xu]]}),n})(),Zx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Bx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Ux=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji,vo,vu]]}),n})(),Vx=(()=>{class n{constructor(){!function Gx(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(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:[ji,kx,vu,Ix,Mx,Ox,xu,Px,Zx,vo,Bx,Ux]}),n})();function zx(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function Hx(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(),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 Yx(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function Wx(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(),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 Xx(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16),t.TgZ(3,"textPath",17),t._uU(4),t.qZA(),t.qZA(),t.qZA()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const $x=function(n,r){return[n,r]};function Qx(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,Hx,5,4,"span",4),t.TgZ(10,"div",5),t.TgZ(11,"ngx-graph",6),t.YNc(12,Yx,2,0,"ng-template",null,7,t.W1O),t.YNc(14,Wx,4,9,"ng-template",null,8,t.W1O),t.YNc(16,Xx,5,2,"ng-template",null,9,t.W1O),t.qZA(),t.qZA(),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,$x,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function Jx(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(),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 jx(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,Jx,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 qx(n,r){if(1&n&&(t.YNc(0,Qx,18,19,"div",1),t.YNc(1,jx,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 Kx=(()=>{class n{constructor(e,i,a,s,d,T,S,P,Y){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=s,this.serviceService=d,this.resourceManager=T,this.groupService=S,this.voService=P,this.translate=Y,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=$n,this.zoomToFit$=new En.xQ,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const s of e)for(const d of i)s.id===d.id&&a.push(s);return a}static findConnectedResources(e,i){const a=[];for(const s of e)for(const d of i)s.id===d.id&&a.push(s);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(s=>{if(this.membership=s,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){var e,i;const a=""+this.id().toString(),s=null!==(i=null!==(e=this.user.firstName)&&void 0!==e?e:" "+this.user.lastName)&&void 0!==i?i:"",d=this.localUser,T="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:a,label:s,tooltip:d,color:"#FFFFCC",tip:T});const P=""+this.id().toString(),Y="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:P,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:Y}:{id:P,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:Y});for(const ot of this.facilities)this.serviceService.getAllRichDestinationsForFacility(ot.id).subscribe(st=>{this.connectToService(ot,st),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const s of this.membership)this.connectToGroups(e,s,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(s=>{0!==s.length&&this.groupService.getMemberGroups(i.id).subscribe(d=>{const T=n.findConnectedGroups(s,d);if(0!==T.length)for(const S of T)this.connectToResource(e,S,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(s=>{const d=n.findConnectedResources(s,a);for(const T of d)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(S=>{this.haveService(S)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,s){if(-1===this.findEntityInGraph("Facility: "+s.id.toString())){const d=""+this.id().toString(),T=this.localFacility+": "+s.name,S=s.description,P="Facility: "+s.id.toString();this.hierarchialGraph.nodes.push({id:d,label:T,tooltip:S,color:"#FFCCFF",tip:P});const ot={source:d,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(ot)}this.voService.getVoById(e).subscribe(d=>{if(-1===this.findEntityInGraph("Vo: "+d.id.toString())){const S=this.id().toString(),P=this.localVo+": "+d.shortName,Y=d.name,ot="Vo: "+d.id.toString();this.hierarchialGraph.nodes.push({id:S,label:P,tooltip:Y,color:"#E5FFCC",tip:ot});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const S=this.id().toString(),P=this.localGroup+": "+i.name,Y=i.description,ot="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:S,label:P,tooltip:Y,color:"#CCE5FF",tip:ot});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+d.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const S={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(S)}else{const S=this.id().toString(),P=this.localResource+": "+a.name,Y=a.description,ot="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:S,label:P,tooltip:Y,color:"#FFCCCC",tip:ot});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t);const Mt={source:S,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+s.id.toString())].id};this.hierarchialGraph.links.push(Mt)}})}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(f.gz),t.Y36(V.IQ),t.Y36(V.Fv),t.Y36(V.uq),t.Y36(V.KK),t.Y36(V.xk),t.Y36(V.ff),t.Y36(V.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(s){return i.onResize(s)},!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,zx,2,0,"div",1),t.YNc(4,qx,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)}},directives:[_.O5,W.$g,im,po],pipes:[u.X$],styles:[""]}),n})();var ty=o(25828),yu=o(69024),ey=o(29862),Aa=o(16074),ny=o(31359);function iy(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function ry(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t.TgZ(1,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editUser()}),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA(),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).anonymizeUser()}),t.TgZ(5,"mat-icon"),t._uU(6,"no_accounts"),t.qZA(),t.qZA(),t.qZA()}}const ay=function(){return{color:"black"}},sy=function(n){return["/admin/users",n]};function oy(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),t.TgZ(4,"div",7),t.TgZ(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,ry,7,0,"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(),t.qZA(),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,ay))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,sy,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 ly=(()=>{class n{constructor(e,i,a,s,d,T,S,P){this.route=e,this.usersService=i,this.sideMenuService=a,this.sideMenuItemService=s,this.dialog=d,this.authResolver=T,this.entityStorageService=S,this.router=P,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(a=>{this.user=a,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const s=this.sideMenuItemService.parseUser(a,this.path,this.regex);this.sideMenuService.setAdminItems([s]),this.loading=!1},()=>this.loading=!1)})}editUser(){const e=(0,Ce.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ey.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(s=>{this.user=s})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,Ce.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(Aa.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(V.Fv),t.Y36(p.D),t.Y36(yu.V),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.fb),t.Y36(f.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"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-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,iy,1,0,"mat-spinner",1),t.YNc(3,oy,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))},directives:[l.W,_.O5,W.$g,h.Hw,_.PC,ne.gM,f.yS,nt.lW,m.A],pipes:[u.X$,ny.d],styles:[""]}),n})();var cy=o(17755),uy=o(74837),hy=o(85985),dy=o(98973),fy=o(15935);function py(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().onLoad()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function my(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const gy=function(){return["id","name","type"]};function _y(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",7),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,gy))("tableId",e.tableId)}}let vy=(()=>{class n{constructor(e,i,a,s){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=s,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=Ae.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(d=>this.loadSuccess=d)}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(V.KG),t.Y36(U.V6),t.Y36(u.sK),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,py,3,3,"button",1),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(6,my,1,0,"mat-spinner",3),t.YNc(7,_y,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[_.O5,nt.lW,sn.L,W.$g,fy.D],pipes:[u.X$],styles:[""]}),n})();var xy=o(6097),yy=o(97453),as=o(1059),ss=o(24850);function Ty(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function by(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 Cy(n,r){if(1&n&&(t.TgZ(0,"div"),t.TgZ(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.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,by,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA(),t.qZA(),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 wy=(()=>{class n{constructor(e,i,a,s,d,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=s,this.translate=d,this.notificator=T,this.extSources=[],d.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(S=>this.successMessage=S)}ngOnInit(){this.loading=!0,this.loginControl=new E.NI("",[E.kI.required,E.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new E.NI("",[E.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,as.O)(""),(0,ss.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,as.O)(""),(0,ss.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(O.so),t.Y36(O.WI),t.Y36(V.KG),t.Y36(V.Fv),t.Y36(u.sK),t.Y36(U.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,Ty,1,0,"mat-spinner",2),t.YNc(5,Cy,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4),t.TgZ(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(),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")," "))},directives:[O.uh,O.xY,_.O5,W.$g,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.oH,it.TO,gt.ZL,gt.XC,_.sg,Rt.ey,O.H8,nt.lW],pipes:[u.X$,_.Ov],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 Ay=o(80275);function Ey(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Sy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Dy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ly(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 ky=(()=>{class n{constructor(e,i,a,s,d,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=s,this.route=d,this.authResolver=T,this.userExtSources=[],this.selection=new F.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=Ae.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,Ce.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(wy,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,Ce.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(Aa.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.Fv),t.Y36(U.d6),t.Y36(V.tk),t.Y36(O.uw),t.Y36(f.gz),t.Y36(U.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,Ey,3,3,"button",2),t.YNc(5,Sy,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,Dy,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,Ly,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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,Ay.j],pipes:[u.X$],styles:[""]}),n})();var Iy=o(80774),My=o(62109);function Oy(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Ny=function(){return["id","name","vo","facility","description"]};function Fy(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,Ny))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Py=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=Ae.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(V.Fv),t.Y36(f.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"),t.TgZ(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(s){return i.resourceFilter(s)}),t.qZA(),t.YNc(6,Oy,1,0,"mat-spinner",3),t.YNc(7,Fy,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))},directives:[xn.t,sn.L,_.O5,W.$g,My.C],pipes:[u.X$],styles:[""]}),n})();var Ry=o(61365),Zy=o(71103),By=o(53984);const Uy=["list"];function Gy(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function Vy(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 zy=(()=>{class n{constructor(e,i,a,s){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=s,this.loading=!1,this.selection=new F.Ov(!0,[]),this.tableId=Ae.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,Ce.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,Ce.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Zy.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,Ce.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Aa.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,Ce.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Ry.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(V.H8),t.Y36(V.Fv),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(Uy,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"),t.TgZ(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,Gy,1,0,"mat-spinner",6),t.YNc(25,Vy,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))},directives:[xn.t,nt.lW,_.O5,W.$g,By.p],pipes:[u.X$,_.uU],styles:[""]}),n})();var Hy=o(40009),Yy=o(90719);function Wy(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function Xy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editService()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function $y(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).removeService()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function Qy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Jy=function(){return{color:"black"}},jy=function(n){return["/admin/services",n]};function qy(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),t.TgZ(4,"div",7),t.TgZ(5,"div",8),t.TgZ(6,"div",9),t.TgZ(7,"a",10),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,Xy,3,0,"button",12),t.YNc(12,$y,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(16,"div",15),t.TgZ(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){return t.CHM(e),t.oxw().changeServiceStatus()}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){return t.CHM(e),t.oxw().propagationChange()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Qy,3,3,"button",17),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,14,"SERVICE_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(22,Jy)),t.xp6(6),t.Q6J("routerLink",t.VKq(23,jy,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,16,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.Q6J("checked",e.service.enabled),t.xp6(1),t.hij(" ",t.lcZ(19,18,"SERVICE_DETAIL.ENABLE")," "),t.xp6(2),t.Q6J("checked",e.service.useExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(22,20,"SERVICE_DETAIL.PROPAGATE")," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let Ky=(()=>{class n{constructor(e,i,a,s,d,T,S,P,Y,ot,st){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=s,this.sideMenuService=d,this.sideMenuItemService=T,this.dialog=S,this.authResolver=P,this.translate=Y,this.notificator=ot,this.entityStorageService=st,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.refresh()})}editService(){const e=(0,Ce.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(Hy.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,Ce.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Yy.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"])})}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,Ce.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(Aa.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,this.entityStorageService.setEntity({id:e.id,beanName:e.beanName});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(f.gz),t.Y36(f.F0),t.Y36(V.WY),t.Y36(V.KK),t.Y36(p.D),t.Y36(yu.V),t.Y36(O.uw),t.Y36(U.x4),t.Y36(u.sK),t.Y36(U.V6),t.Y36(U.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"],["queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","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","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,Wy,1,0,"mat-spinner",1),t.YNc(3,qy,24,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))},directives:[l.W,_.O5,W.$g,h.Hw,ne.gM,_.PC,f.yS,nt.lW,Ht.Rr,m.A],pipes:[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:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"],data:{animation:[wn.Ji]}}),n})(),t1=(()=>{class n{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:"required-attributes",label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:"destinations",label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},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")},directives:[A.L],styles:[""]}),n})();var e1=o(5254),n1=o(21406),i1=o(826),r1=o(69054);class s1{constructor(r,e){this.keySelector=r,this.flushes=e}call(r,e){return e.subscribe(new o1(r,this.keySelector,this.flushes))}}class o1 extends i1.L{constructor(r,e,i){super(r),this.keySelector=e,this.values=new Set,i&&this.add((0,r1.D)(this,i))}notifyNext(r,e,i,a,s){this.values.clear()}notifyError(r,e){this._error(r)}_next(r){this.keySelector?this._useKeySelector(r):this._finalizeNext(r,r)}_useKeySelector(r){let e;const{destination:i}=this;try{e=this.keySelector(r)}catch(a){return void i.error(a)}this._finalizeNext(e,r)}_finalizeNext(r,e){const{values:i}=this;i.has(r)||(i.add(r),this.destination.next(e))}}var l1=o(61709),Tu=o(92014),bu=o(92821),c1=o(47314),Cu=o(4843);function h1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function d1(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 f1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,d1,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){return t.CHM(e),t.oxw().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 p1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10),t.TgZ(1,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),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 m1=(()=>{class n{constructor(e,i,a,s,d,T,S,P){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=s,this.facilitiesService=d,this.consentHubService=T,this.notificator=S,this.translate=P,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,n1.b)(e1.D),(0,ss.U)(Y=>Y.id),function a1(n,r){return e=>e.lift(new s1(n,r))}(),(0,l1.zg)(Y=>this.consentHubService.getConsentHubByFacility(Y)),function u1(n,r){return arguments.length>=2?function(i){return(0,Cu.z)((0,Tu.R)(n,r),(0,bu.h)(1),(0,c1.d)(r))(i)}:function(i){return(0,Cu.z)((0,Tu.R)((a,s,d)=>n(a,s,d+1)),(0,bu.h)(1))(i)}}((Y,ot)=>Y||ot.enforceConsents,!1),(0,as.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,ss.U)(Y=>Y.enabled),(0,as.O)(!0)),this.attrDefinitions=[],this.selection=new F.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(O.so),t.Y36(O.WI),t.Y36(V.KK),t.Y36(V.H8),t.Y36(V.IQ),t.Y36(V.WY),t.Y36(U.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,h1,1,0,"mat-spinner",1),t.YNc(5,f1,7,14,"div",2),t.YNc(6,p1,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))},directives:[O.uh,_.O5,W.$g,O.xY,rt.w,sn.L,wt,O.H8,nt.lW],pipes:[u.X$,_.Ov],styles:[""]}),n})();function g1(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function _1(n,r){1&n&&t._UZ(0,"th",15)}function v1(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 x1(n,r){1&n&&t._UZ(0,"tr",17)}function y1(n,r){1&n&&t._UZ(0,"tr",18)}function T1(n,r){if(1&n&&(t.TgZ(0,"div",7),t.TgZ(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,_1,1,0,"th",11),t.YNc(10,v1,2,1,"td",12),t.BQk(),t.YNc(11,x1,1,0,"tr",13),t.YNc(12,y1,1,0,"tr",14),t.qZA(),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 b1=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=s,this.translate=d,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(O.so),t.Y36(O.WI),t.Y36(V.KK),t.Y36(U.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,g1,1,0,"mat-spinner",1),t.YNc(5,T1,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[O.uh,_.O5,W.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function C1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 w1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 A1(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function E1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){return t.CHM(e),t.oxw().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 S1=(()=>{class n{constructor(e,i,a,s){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=s,this.loading=!1,this.filterValue="",this.selection=new F.Ov(!0,[]),this.attrDefinitions=[],this.tableId=Ae.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,Ce.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(m1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,Ce.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(b1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.H8),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.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"),t.TgZ(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,C1,3,3,"button",2),t.YNc(6,w1,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(8,A1,1,0,"mat-spinner",5),t.YNc(9,E1,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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,wt],pipes:[u.X$],styles:[""]}),n})();var D1=o(46597),L1=o(89466),k1=o(70242);function I1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 M1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 O1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 N1(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const F1=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function P1(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,F1))("tableId",e.tableId)}}let R1=(()=>{class n{constructor(e,i,a,s,d,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=s,this.authResolver=d,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new F.Ov(!0,[]),this.tableId=Ae.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,Ce.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(L1.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.blockServiceOnDestination(this.service.id,i.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.unblockServiceOnDestinationById(this.service.id,i.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.KK),t.Y36(U.V6),t.Y36(u.sK),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.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"),t.TgZ(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,I1,3,4,"button",2),t.YNc(6,M1,3,4,"button",3),t.YNc(7,O1,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(9,N1,1,0,"mat-spinner",6),t.YNc(10,P1,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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,k1.q],pipes:[u.X$],styles:[""]}),n})();function Z1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function B1(n,r){1&n&&t._UZ(0,"th",13)}function U1(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 G1(n,r){1&n&&t._UZ(0,"tr",15)}function V1(n,r){1&n&&t._UZ(0,"tr",16)}function z1(n,r){if(1&n&&(t.TgZ(0,"div",5),t.TgZ(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,B1,1,0,"th",9),t.YNc(10,U1,2,1,"td",10),t.BQk(),t.YNc(11,G1,1,0,"tr",11),t.YNc(12,V1,1,0,"tr",12),t.qZA(),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 H1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17),t.TgZ(1,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),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 Y1=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=s,this.ownersManagerService=d,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,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.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,Z1,1,0,"mat-spinner",1),t.YNc(4,z1,13,9,"div",2),t.YNc(5,H1,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))},directives:[O.uh,_.O5,W.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function W1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function X1(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 $1(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 Q1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",5),t.TgZ(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.qZA(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,X1,3,3,"mat-error",3),t.YNc(12,$1,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field"),t.TgZ(14,"mat-select",7),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().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.qZA(),t.qZA(),t.qZA(),t.TgZ(21,"div",10),t.TgZ(22,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().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(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.qZA(),t.qZA(),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 J1=(()=>{class n{constructor(e,i,a,s){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=s,this.type="1",s.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new E.NI(null,[E.kI.required,E.kI.pattern(Ce.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(O.so),t.Y36(U.V6),t.Y36(V.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),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,W1,1,0,"mat-spinner",2),t.YNc(5,Q1,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))},directives:[O.uh,_.O5,W.$g,O.xY,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.oH,it.TO,It.gD,Rt.ey,O.H8,nt.lW,ne.gM],pipes:[u.X$],styles:[""]}),n})();var j1=o(23256);function q1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 K1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 tT(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function eT(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 nT=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new F.Ov(!0,[]),this.filterValue="",this.tableId=Ae.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,Ce.kZ)();e.width="400px",e.data={},this.dialog.open(J1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,Ce.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(Y1,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.aC),t.Y36(O.uw),t.Y36(U.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"),t.TgZ(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,q1,3,3,"button",2),t.YNc(6,K1,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(8,tT,1,0,"mat-spinner",5),t.YNc(9,eT,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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,j1.Q],pipes:[u.X$],styles:[""]}),n})();var iT=o(74010);function rT(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function aT(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 sT=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=Ae.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(V.IQ),t.Y36(f.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"),t.TgZ(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(s){return i.applyFilter(s)}),t.qZA(),t.YNc(6,rT,1,0,"mat-spinner",3),t.YNc(7,aT,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))},directives:[xn.t,sn.L,_.O5,W.$g,iT.X],pipes:[u.X$],styles:[""]}),n})();var oT=o(64080),lT=o(62707),Sr=o(53251),cT=o(60526),uT=o(24179),hT=o(12651),dT=o(19191);function fT(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function pT(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw().loadMember(a)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function mT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function gT(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const _T=function(){return["id","recent","name","description","expiration"]};function vT(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",16),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return 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,_T))}}const xT=function(n,r){return["/organizations",n,"members",r]};function yT(n,r){if(1&n&&(t.TgZ(0,"div"),t.TgZ(1,"div",10),t.TgZ(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t._uU(6),t.qZA(),t.qZA(),t._UZ(7,"app-member-overview-membership",13),t.TgZ(8,"p",14),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,vT,1,5,"perun-web-apps-groups-list",15),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("routerLink",t.WLB(11,xT,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(1),t.Q6J("member",e.member)("vo",e.selectedVo),t.xp6(2),t.Oqu(t.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function TT(n,r){if(1&n&&(t.YNc(0,gT,1,0,"mat-spinner",1),t.YNc(1,yT,12,14,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function bT(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 CT(n,r){1&n&&t._UZ(0,"mat-spinner")}function wT(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",18),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function AT(n,r){if(1&n&&(t.YNc(0,CT,1,0,"mat-spinner",4),t.YNc(1,wT,1,2,"app-one-entity-attribute-page",17)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function ET(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 ST(n,r){1&n&&t._UZ(0,"mat-spinner")}function DT(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function LT(n,r){if(1&n&&(t.YNc(0,ST,1,0,"mat-spinner",4),t.YNc(1,DT,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function kT(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 IT(n,r){1&n&&t._UZ(0,"mat-spinner")}function MT(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function OT(n,r){if(1&n&&(t.YNc(0,IT,1,0,"mat-spinner",4),t.YNc(1,MT,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function NT(n,r){1&n&&(t.TgZ(0,"mat-tab-group"),t.TgZ(1,"mat-tab"),t.YNc(2,mT,2,3,"ng-template",8),t.YNc(3,TT,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,bT,2,3,"ng-template",8),t.YNc(6,AT,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,ET,2,3,"ng-template",8),t.YNc(9,LT,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,kT,2,3,"ng-template",8),t.YNc(12,OT,2,2,"ng-template",9),t.qZA(),t.qZA())}function FT(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",21),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 PT=(()=>{class n{constructor(e,i,a,s){this.route=e,this.usersService=i,this.membersService=a,this.groupService=s,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.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.member=i,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[oT.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(a=>{this.groups=a,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(V.Fv),t.Y36(V.uq),t.Y36(V.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"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[3,"member","vo"],[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,fT,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,pT,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,NT,13,0,"mat-tab-group",4),t.YNc(7,FT,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))},directives:[_.O5,W.$g,lT.M,Sr.SP,Sr.uX,Sr.uD,Sr.Vc,f.yS,cT.b,uT.W,hT.t,dT.Y,rt.w],pipes:[u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),n})(),wu=(()=>{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 RT(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 ZT(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 BT(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 UT(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let GT=(()=>{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(O.so),t.Y36(O.WI),t.Y36(In.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"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2),t.TgZ(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(s){return i.tabChanged(s)}),t.TgZ(11,"mat-tab"),t.YNc(12,RT,2,3,"ng-template",4),t.YNc(13,ZT,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,BT,2,3,"ng-template",4),t.YNc(16,UT,2,1,"ng-template",5),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"div",6),t.TgZ(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(),t.qZA(),t.qZA(),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")," ")}},directives:[O.uh,O.xY,Sr.SP,Sr.uX,Sr.uD,Sr.Vc,O.H8,nt.lW,h.Hw],pipes:[u.X$,wu],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var VT=o(86087),zT=o(36787),HT=o(62383);function YT(n,r){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"mat-spinner",17),t.qZA())}function WT(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 XT(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 $T(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 QT(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 JT(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 jT(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 qT(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 KT(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 tb(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 eb(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 nb(n,r){1&n&&t._UZ(0,"th",20)}function ib(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19),t.TgZ(1,"button",21),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().viewDetails(s)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function rb(n,r){1&n&&t._UZ(0,"tr",22)}function ab(n,r){1&n&&t._UZ(0,"tr",23)}function sb(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 ob=(()=>{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=Ce.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,_.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,zT.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,ve.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new U.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING")}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")}viewDetails(e){const i=(0,Ce.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(GT,i)}exportData(e){(0,Ce.O6)((0,Ce.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(U.ly),t.Y36(Ae.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ce.l9,7),t.Gf(je.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",searchString:"searchString"},features:[t._Bn([{provide:VT.ye,useClass:U.Be}]),t.TTD],decls:28,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["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",""],["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("exportData",function(s){return i.exportData(s)}),t.YNc(3,YT,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,WT,3,3,"th",5),t.YNc(8,XT,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,$T,3,3,"th",5),t.YNc(11,QT,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,JT,3,3,"th",9),t.YNc(14,jT,3,3,"td",6),t.BQk(),t.ynx(15,10),t.YNc(16,qT,3,3,"th",9),t.YNc(17,KT,2,1,"td",6),t.BQk(),t.ynx(18,11),t.YNc(19,tb,3,3,"th",9),t.YNc(20,eb,2,1,"td",6),t.BQk(),t.ynx(21,12),t.YNc(22,nb,1,0,"th",9),t.YNc(23,ib,4,3,"td",6),t.BQk(),t.YNc(24,rb,1,0,"tr",13),t.YNc(25,ab,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(26,sb,3,3,"perun-web-apps-alert",15),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,9,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,11,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,13,i.dataSource.loading$)))},directives:[Mn.l,_.O5,W.$g,R.BZ,je.YE,R.w1,R.fO,R.ge,je.nU,R.Dz,R.ev,nt.lW,R.as,R.XQ,R.nj,R.Gk,rt.w],pipes:[_.Ov,u.X$,HT.M,wu],styles:[""]}),n})(),lb=(()=>{class n{constructor(){this.tableId=Ae.yW,this.refresh=!1}refreshTable(){this.refresh=!this.refresh}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],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._UZ(4,"app-audit-messages-list",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(3),t.Q6J("refresh",i.refresh)("tableId",i.tableId))},directives:[xn.t,ob],pipes:[u.X$],styles:[""]}),n})();var cb=o(4834);let ub=(()=>{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(O.so),t.Y36(O.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1),t.TgZ(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.qZA(),t.TgZ(18,"div",4),t.TgZ(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(),t.qZA(),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")," "))},directives:[O.uh,O.xY,cb.d,rt.w,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function hb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function db(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,T=t.oxw();return a?T.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function fb(n,r){1&n&&(t.TgZ(0,"th",20),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 pb(n,r){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function mb(n,r){1&n&&(t.TgZ(0,"th",20),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 gb(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.name)}}function _b(n,r){1&n&&(t.TgZ(0,"th",20),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 vb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"mat-slide-toggle",23),t.NdJ("change",function(a){const d=t.CHM(e).$implicit;return t.oxw().changeEnforceFlag(d,a)}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function xb(n,r){1&n&&(t.TgZ(0,"th",20),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 yb(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",25),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 Tb(n,r){if(1&n&&(t.TgZ(0,"td",22),t.YNc(1,yb,5,2,"span",24),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function bb(n,r){1&n&&t._UZ(0,"tr",26)}function Cb(n,r){1&n&&t._UZ(0,"tr",27)}function wb(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),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 Ab(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),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"))}let Eb=(()=>{class n{constructor(e,i,a,s,d){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=s,this.consentsManager=d,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new F.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=Ce.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(s=>a+=s.name+" #"+String(s.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new R.by(this.consentHubs),this.setDataSource()}exportData(e){(0,Ce.O6)((0,Ce.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,Ce.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,Ce.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,Ce.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(ub,a).afterClosed().subscribe(d=>{d&&(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(S=>{this.notificator.showSuccess(S)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.UA),t.Y36(O.uw),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ce.l9,7),t.Gf(je.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:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","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","enforceConsents"],["matColumnDef","facilities"],["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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return i.exportData(s)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,hb,2,3,"th",4),t.YNc(5,db,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,fb,3,3,"th",7),t.YNc(8,pb,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,mb,3,3,"th",7),t.YNc(11,gb,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,_b,3,3,"th",7),t.YNc(14,vb,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,xb,3,3,"th",7),t.YNc(17,Tb,2,1,"td",10),t.BQk(),t.YNc(18,bb,1,0,"tr",13),t.YNc(19,Cb,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,wb,3,3,"perun-web-apps-alert",15),t.YNc(21,Ab,3,3,"perun-web-apps-alert",15)),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(16),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))},directives:[Mn.l,R.BZ,je.YE,R.w1,R.fO,R.ge,Ut.oG,R.Dz,R.ev,je.nU,Ht.Rr,_.sg,R.as,R.XQ,R.nj,R.Gk,_.O5,rt.w],pipes:[u.X$],styles:[""]}),n})();function Sb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().evaluateConsents()}),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,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function Db(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Lb(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",8),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let kb=(()=>{class n{constructor(e,i,a,s,d){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=s,this.dialog=d,this.loading=!1,this.tableId=Ae.HE,this.selection=new F.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){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,Ce.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(Aa.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHub(0)})}evaluateConsentsForConsentHub(e){if(e===this.selection.selected.length)return this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),void this.selection.clear();this.consentsManager.evaluateConsentsForConsentHub(this.selection.selected[e].id).subscribe(()=>{this.evaluateConsentsForConsentHub(++e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.WY),t.Y36(U.x4),t.Y36(U.V6),t.Y36(u.sK),t.Y36(O.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["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"],["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"),t.TgZ(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,Sb,3,4,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(7,Db,1,0,"mat-spinner",4),t.YNc(8,Lb,1,4,"app-perun-web-apps-consent-hubs-list",5),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(3),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))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,Eb],pipes:[u.X$],styles:[""]}),n})();var Ib=o(57788),xo=o(71992);const Mb=[{path:"",component:C,canActivateChild:[xo.a],children:[{path:"",component:k,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:le,data:{animation:"AdminAttributesPage"}},{path:"users",component:ty.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:nT,data:{animation:"AdminOwnersPage"}},{path:"services",component:Iy.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:lb,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:ke,children:[{path:"",component:He,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:rn,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Wt,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Kx,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:vy,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:kb,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:Ib.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:ly,canActivateChild:[xo.a],children:[{path:"",component:cy.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:PT,data:{animation:"UserAccountsPage"}},{path:"attributes",component:dy.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:uy.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:hy.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:ky,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:sT,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Py,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:zy,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:xy.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:yy.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:D1.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:Ky,canActivateChild:[xo.a],children:[{path:"",component:t1,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:S1,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:R1,data:{animation:"ServiceDestinationsPage"}}]}];let Ob=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[f.Bz.forChild(Mb)],f.Bz]}),n})();var Nb=o(14264),Fb=o(63189),Pb=o(19516),Rb=o(46142);let Zb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[am,Vx,_.ez,Ob,Nb.m,Fb.r,ci.ez,Pb.d4,Rb.UsersModule]]}),n})()},70242:(w,I,o)=>{"use strict";o.d(I,{q:()=>ne});var c=o(84847),x=o(20449),v=o(32075),_=o(9244),f=o(36908),t=o(5e3),p=o(18750),l=o(77446),h=o(69808),m=o(25245),u=o(29772),g=o(98380),C=o(51062);function A(Ut,vt){if(1&Ut){const ft=t.EpF();t.TgZ(0,"th",21),t.TgZ(1,"mat-checkbox",22),t.NdJ("change",function(Qt){t.CHM(ft);const me=t.oxw();return Qt?me.masterToggle():null}),t.qZA(),t.qZA()}if(2&Ut){const ft=t.oxw();t.xp6(1),t.Q6J("aria-label",ft.checkboxLabel())("checked",ft.selection.hasValue()&&ft.isAllSelected())("indeterminate",ft.selection.hasValue()&&!ft.isAllSelected())}}function k(Ut,vt){if(1&Ut){const ft=t.EpF();t.TgZ(0,"td",23),t.TgZ(1,"mat-checkbox",24),t.NdJ("change",function(Qt){const ge=t.CHM(ft).$implicit,ye=t.oxw();return Qt?ye.selection.toggle(ge):null})("click",function(Qt){return Qt.stopPropagation()}),t.qZA(),t.qZA()}if(2&Ut){const ft=vt.$implicit,Nt=t.oxw();t.xp6(1),t.Q6J("aria-label",Nt.checkboxLabel(ft))("checked",Nt.selection.isSelected(ft))}}function F(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function O(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.hij(" ",ft.id," ")}}function R(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function U(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.service.name)}}function V(Ut,vt){1&Ut&&t._UZ(0,"th",28)}function W(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",30),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function rt(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t.YNc(1,W,3,3,"mat-icon",29),t.qZA()),2&Ut){const ft=vt.$implicit,Nt=t.oxw();t.xp6(1),t.Q6J("ngIf",!Nt.services.has(ft.service.id))}}function nt(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function ut(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.facility.name)}}function J(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function tt(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.destination)}}function Q(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function at(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.type.toUpperCase())}}function H(Ut,vt){1&Ut&&t._UZ(0,"th",28)}function K(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function lt(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function it(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t.YNc(1,K,3,3,"mat-icon",31),t.YNc(2,lt,3,3,"mat-icon",31),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Q6J("ngIf",!ft.blocked),t.xp6(1),t.Q6J("ngIf",ft.blocked)}}function z(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function E(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.propagationType)}}function Ct(Ut,vt){1&Ut&&t._UZ(0,"tr",33)}function It(Ut,vt){1&Ut&&t._UZ(0,"tr",34)}function Rt(Ut,vt){1&Ut&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ht(Ut,vt){1&Ut&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let ne=(()=>{class Ut{constructor(ft,Nt){this.authResolver=ft,this.tableCheckbox=Nt,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=_.f7}set matSort(ft){this.sort=ft,this.setDataSource()}static getDataForColumn(ft,Nt){switch(Nt){case"destinationId":return ft.id.toString();case"service":return ft.service.name;case"facility":return ft.facility.name;case"destination":return ft.destination;case"type":return ft.type;case"status":return ft.blocked?"blocked":"allowed";case"propagationType":return ft.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ft=>"destinationId"!==ft)),this.dataSource=new v.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportData(ft){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,Ut.getDataForColumn),ft)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(ft,Nt)=>(0,_.Sd)(ft,Nt,this.displayedColumns,Ut.getDataForColumn),this.dataSource.sortData=(ft,Nt)=>(0,_.pR)(ft,Nt,Ut.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(ft){return ft?`${this.selection.isSelected(ft)?"deselect":"select"} row ${ft.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Ut.\u0275fac=function(ft){return new(ft||Ut)(t.Y36(f.x4),t.Y36(f.UA))},Ut.\u0275cmp=t.Xpm({type:Ut,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(ft,Nt){if(1&ft&&(t.Gf(_.l9,7),t.Gf(c.YE,7)),2&ft){let Qt;t.iGM(Qt=t.CRH())&&(Nt.child=Qt.first),t.iGM(Qt=t.CRH())&&(Nt.matSort=Qt.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["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"],["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(ft,Nt){1&ft&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(me){return Nt.exportData(me)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,A,2,3,"th",4),t.YNc(5,k,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,F,3,3,"th",7),t.YNc(8,O,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,R,3,3,"th",7),t.YNc(11,U,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,V,1,0,"th",12),t.YNc(14,rt,2,1,"td",10),t.BQk(),t.ynx(15,13),t.YNc(16,nt,3,3,"th",7),t.YNc(17,ut,2,1,"td",10),t.BQk(),t.ynx(18,14),t.YNc(19,J,3,3,"th",7),t.YNc(20,tt,2,1,"td",10),t.BQk(),t.ynx(21,15),t.YNc(22,Q,3,3,"th",7),t.YNc(23,at,2,1,"td",10),t.BQk(),t.ynx(24,16),t.YNc(25,H,1,0,"th",12),t.YNc(26,it,3,2,"td",10),t.BQk(),t.ynx(27,17),t.YNc(28,z,3,3,"th",7),t.YNc(29,E,2,1,"td",10),t.BQk(),t.YNc(30,Ct,1,0,"tr",18),t.YNc(31,It,1,0,"tr",19),t.qZA(),t.qZA(),t.qZA(),t.YNc(32,Rt,3,3,"perun-web-apps-alert",20),t.YNc(33,Ht,3,3,"perun-web-apps-alert",20)),2&ft&&(t.Q6J("hidden",0===Nt.dataSource.filteredData.length||0===Nt.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",Nt.pageSizeOptions)("dataLength",Nt.dataSource.filteredData.length)("tableId",Nt.tableId),t.xp6(1),t.Q6J("dataSource",Nt.dataSource),t.xp6(28),t.Q6J("matHeaderRowDef",Nt.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",Nt.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===Nt.dataSource.filteredData.length&&0!==Nt.destinations.length),t.xp6(1),t.Q6J("ngIf",0===Nt.destinations.length))},directives:[p.l,v.BZ,c.YE,v.w1,v.fO,v.ge,l.oG,v.Dz,v.ev,c.nU,h.O5,m.Hw,u.gM,v.as,v.XQ,v.nj,v.Gk,g.w],pipes:[C.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Ut})()},89466:(w,I,o)=>{"use strict";o.d(I,{u:()=>k});var c=o(32105),x=o(48966),v=o(32075),_=o(36908),f=o(5e3),t=o(51062),p=o(69808),l=o(20773),h=o(98380),m=o(70242),u=o(47423);function g(F,O){1&F&&f._UZ(0,"mat-spinner",6)}function C(F,O){if(1&F&&f._UZ(0,"app-perun-web-apps-destination-list",11),2&F){const R=f.oxw(2);f.Q6J("destinations",R.destinations)("displayedColumns",R.displayedColumns)}}function A(F,O){if(1&F&&(f.TgZ(0,"div",7),f.TgZ(1,"perun-web-apps-alert",8),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"p"),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.TgZ(7,"div",9),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),f.qZA()),2&F){const R=f.oxw();f.xp6(2),f.Oqu(f.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),f.xp6(3),f.Oqu(f.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),f.xp6(3),f.hij(" ",f.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),f.xp6(2),f.Q6J("ngIf",!R.loading)}}let k=(()=>{class F{constructor(R,U,V,W,rt){this.dialogRef=R,this.data=U,this.notificator=V,this.translate=W,this.serviceManager=rt,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 v.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);const R=this.destinations.pop();this.serviceManager.removeDestination(R.service.id,R.facility.id,R.destination,R.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return F.\u0275fac=function(R){return new(R||F)(f.Y36(x.so),f.Y36(x.WI),f.Y36(_.V6),f.Y36(t.sK),f.Y36(c.KK))},F.\u0275cmp=f.Xpm({type:F,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,U){1&R&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div"),f.YNc(4,g,1,0,"mat-spinner",1),f.YNc(5,A,11,10,"div",2),f.TgZ(6,"div",3),f.TgZ(7,"button",4),f.NdJ("click",function(){return U.onCancel()}),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"button",5),f.NdJ("click",function(){return U.onConfirm()}),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.qZA(),f.qZA()),2&R&&(f.xp6(1),f.Oqu(f.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),f.xp6(2),f.Tol(U.theme),f.xp6(1),f.Q6J("ngIf",U.loading),f.xp6(1),f.Q6J("ngIf",!U.loading),f.xp6(3),f.hij(" ",f.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),f.xp6(2),f.Q6J("disabled",U.loading),f.xp6(1),f.hij(" ",f.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},directives:[x.uh,p.O5,l.$g,x.xY,h.w,m.q,x.H8,u.lW],pipes:[t.X$],styles:[""]}),F})()},23256:(w,I,o)=>{"use strict";o.d(I,{Q:()=>tt});var c=o(84847),x=o(20449),v=o(32075),_=o(9244),f=o(36908),t=o(5e3),p=o(18750),l=o(77446),h=o(69808),m=o(98380),u=o(51062);function g(Q,at){if(1&Q){const H=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(lt){t.CHM(H);const it=t.oxw();return lt?it.masterToggle():null}),t.qZA(),t.qZA()}if(2&Q){const H=t.oxw();t.xp6(1),t.Q6J("aria-label",H.checkboxLabel())("checked",H.selection.hasValue()&&H.isAllSelected())("indeterminate",H.selection.hasValue()&&!H.isAllSelected())}}function C(Q,at){if(1&Q){const H=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(lt){const z=t.CHM(H).$implicit,E=t.oxw();return lt?E.selection.toggle(z):null})("click",function(lt){return lt.stopPropagation()}),t.qZA(),t.qZA()}if(2&Q){const H=at.$implicit,K=t.oxw();t.xp6(1),t.Q6J("aria-label",K.checkboxLabel(H))("checked",K.selection.isSelected(H))}}function A(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function k(Q,at){if(1&Q&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.hij(" ",H.id," ")}}function F(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function O(Q,at){if(1&Q&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.Oqu(H.name)}}function R(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function U(Q,at){if(1&Q&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.Oqu(H.contact)}}function V(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function W(Q,at){if(1&Q&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.Oqu(H.type)}}function rt(Q,at){1&Q&&t._UZ(0,"tr",23)}function nt(Q,at){1&Q&&t._UZ(0,"tr",24)}function ut(Q,at){1&Q&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function J(Q,at){1&Q&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let tt=(()=>{class Q{constructor(H,K){this.authResolver=H,this.tableCheckbox=K,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=_.f7}set matSort(H){this.sort=H,this.setDataSource()}static getDataForColumn(H,K){switch(K){case"id":return H.id.toString();case"name":return H.name;case"contact":return H.contact;case"type":return H.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportData(H){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,Q.getDataForColumn),H)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(H,K)=>(0,_.Sd)(H,K,this.displayedColumns,Q.getDataForColumn),this.dataSource.sortData=(H,K)=>(0,_.pR)(H,K,Q.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(H=>"id"!==H)),this.dataSource=new v.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(H){return H?`${this.selection.isSelected(H)?"deselect":"select"} row ${H.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Q.\u0275fac=function(H){return new(H||Q)(t.Y36(f.x4),t.Y36(f.UA))},Q.\u0275cmp=t.Xpm({type:Q,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(H,K){if(1&H&&(t.Gf(_.l9,7),t.Gf(c.YE,7)),2&H){let lt;t.iGM(lt=t.CRH())&&(K.child=lt.first),t.iGM(lt=t.CRH())&&(K.matSort=lt.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","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","contact"],["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","",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(H,K){1&H&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(it){return K.exportData(it)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,g,2,3,"th",4),t.YNc(5,C,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,A,3,3,"th",7),t.YNc(8,k,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,F,3,3,"th",7),t.YNc(11,O,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,R,3,3,"th",7),t.YNc(14,U,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,V,3,3,"th",7),t.YNc(17,W,2,1,"td",10),t.BQk(),t.YNc(18,rt,1,0,"tr",13),t.YNc(19,nt,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,ut,3,3,"perun-web-apps-alert",15),t.YNc(21,J,3,3,"perun-web-apps-alert",15)),2&H&&(t.Q6J("hidden",0===K.owners.length||0===K.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",K.tableId)("dataLength",K.dataSource.filteredData.length)("pageSizeOptions",K.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",K.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",K.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",K.displayedColumns),t.xp6(1),t.Q6J("ngIf",!K.owners.length),t.xp6(1),t.Q6J("ngIf",!K.dataSource.filteredData.length&&K.owners.length))},directives:[p.l,v.BZ,c.YE,v.w1,v.fO,v.ge,l.oG,v.Dz,v.ev,c.nU,v.as,v.XQ,v.nj,v.Gk,h.O5,m.w],pipes:[u.X$],styles:[""]}),Q})()},16087:(w,I,o)=>{"use strict";const c=o(34315),x=o(52872),v=o(40717);w.exports=function _(p,l){switch(x(p)){case"object":return function f(p,l){if("function"==typeof l)return l(p);if(l||v(p)){const h=new p.constructor;for(let m in p)h[m]=_(p[m],l);return h}return p}(p,l);case"array":return function t(p,l){const h=new p.constructor(p.length);for(let m=0;m{"use strict";o.d(I,{Il:()=>x,xV:()=>v,J5:()=>_,ZP:()=>U,SU:()=>rt,B8:()=>nt,Ss:()=>ut,Ym:()=>K});var c=o(68884);function x(){}var v=.7,_=1/v,f="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[f,f,f]+"\\)$"),m=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),u=new RegExp("^rgba\\("+[f,f,f,t]+"\\)$"),g=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,p,p]+"\\)$"),A=new RegExp("^hsla\\("+[t,p,p,t]+"\\)$"),k={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 F(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function U(z){var E,Ct;return z=(z+"").trim().toLowerCase(),(E=l.exec(z))?(Ct=E[1].length,E=parseInt(E[1],16),6===Ct?V(E):3===Ct?new ut(E>>8&15|E>>4&240,E>>4&15|240&E,(15&E)<<4|15&E,1):8===Ct?W(E>>24&255,E>>16&255,E>>8&255,(255&E)/255):4===Ct?W(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(z))?new ut(E[1],E[2],E[3],1):(E=m.exec(z))?new ut(255*E[1]/100,255*E[2]/100,255*E[3]/100,1):(E=u.exec(z))?W(E[1],E[2],E[3],E[4]):(E=g.exec(z))?W(255*E[1]/100,255*E[2]/100,255*E[3]/100,E[4]):(E=C.exec(z))?at(E[1],E[2]/100,E[3]/100,1):(E=A.exec(z))?at(E[1],E[2]/100,E[3]/100,E[4]):k.hasOwnProperty(z)?V(k[z]):"transparent"===z?new ut(NaN,NaN,NaN,0):null}function V(z){return new ut(z>>16&255,z>>8&255,255&z,1)}function W(z,E,Ct,It){return It<=0&&(z=E=Ct=NaN),new ut(z,E,Ct,It)}function rt(z){return z instanceof x||(z=U(z)),z?new ut((z=z.rgb()).r,z.g,z.b,z.opacity):new ut}function nt(z,E,Ct,It){return 1===arguments.length?rt(z):new ut(z,E,Ct,null==It?1:It)}function ut(z,E,Ct,It){this.r=+z,this.g=+E,this.b=+Ct,this.opacity=+It}function J(){return"#"+Q(this.r)+Q(this.g)+Q(this.b)}function tt(){var z=this.opacity;return(1===(z=isNaN(z)?1:Math.max(0,Math.min(1,z)))?"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===z?")":", "+z+")")}function Q(z){return((z=Math.max(0,Math.min(255,Math.round(z)||0)))<16?"0":"")+z.toString(16)}function at(z,E,Ct,It){return It<=0?z=E=Ct=NaN:Ct<=0||Ct>=1?z=E=NaN:E<=0&&(z=NaN),new lt(z,E,Ct,It)}function H(z){if(z instanceof lt)return new lt(z.h,z.s,z.l,z.opacity);if(z instanceof x||(z=U(z)),!z)return new lt;if(z instanceof lt)return z;var E=(z=z.rgb()).r/255,Ct=z.g/255,It=z.b/255,Rt=Math.min(E,Ct,It),Ht=Math.max(E,Ct,It),ne=NaN,Ut=Ht-Rt,vt=(Ht+Rt)/2;return Ut?(ne=E===Ht?(Ct-It)/Ut+6*(Ct0&&vt<1?0:ne,new lt(ne,Ut,vt,z.opacity)}function K(z,E,Ct,It){return 1===arguments.length?H(z):new lt(z,E,Ct,null==It?1:It)}function lt(z,E,Ct,It){this.h=+z,this.s=+E,this.l=+Ct,this.opacity=+It}function it(z,E,Ct){return 255*(z<60?E+(Ct-E)*z/60:z<180?Ct:z<240?E+(Ct-E)*(240-z)/60:E)}(0,c.Z)(x,U,{copy:function(z){return Object.assign(new this.constructor,this,z)},displayable:function(){return this.rgb().displayable()},hex:F,formatHex:F,formatHsl:function O(){return H(this).formatHsl()},formatRgb:R,toString:R}),(0,c.Z)(ut,nt,(0,c.l)(x,{brighter:function(z){return z=null==z?_:Math.pow(_,z),new ut(this.r*z,this.g*z,this.b*z,this.opacity)},darker:function(z){return z=null==z?v:Math.pow(v,z),new ut(this.r*z,this.g*z,this.b*z,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:tt,toString:tt})),(0,c.Z)(lt,K,(0,c.l)(x,{brighter:function(z){return z=null==z?_:Math.pow(_,z),new lt(this.h,this.s,this.l*z,this.opacity)},darker:function(z){return z=null==z?v:Math.pow(v,z),new lt(this.h,this.s,this.l*z,this.opacity)},rgb:function(){var z=this.h%360+360*(this.h<0),E=isNaN(z)||isNaN(this.s)?0:this.s,Ct=this.l,It=Ct+(Ct<.5?Ct:1-Ct)*E,Rt=2*Ct-It;return new ut(it(z>=240?z-240:z+120,Rt,It),it(z,Rt,It),it(z<120?z+240:z-120,Rt,It),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 z=this.opacity;return(1===(z=isNaN(z)?1:Math.max(0,Math.min(1,z)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===z?")":", "+z+")")}}))},68884:(w,I,o)=>{"use strict";function c(v,_,f){v.prototype=_.prototype=f,f.constructor=v}function x(v,_){var f=Object.create(v.prototype);for(var t in _)f[t]=_[t];return f}o.d(I,{Z:()=>c,l:()=>x})},25922:(w,I,o)=>{"use strict";o.d(I,{Z:()=>p});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,m={};l=0&&(u=m.slice(g+1),m=m.slice(0,g)),m&&!h.hasOwnProperty(m))throw new Error("unknown type: "+m);return{type:m,name:u}})}function f(l,h){for(var g,m=0,u=l.length;m0)for(var g,C,m=new Array(g),u=0;u{"use strict";function v(_){return((_*=2)<=1?_*_*_:(_-=2)*_*_+2)/2}o.d(I,{tw:()=>v})},22910:(w,I,o)=>{"use strict";o.d(I,{WU:()=>v,jH:()=>_,ZP:()=>f});var x,v,_,c=o(4753);function f(t){return x=(0,c.Z)(t),v=x.format,_=x.formatPrefix,x}f({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(5326);function x(v){return(v=(0,c.V)(Math.abs(v)))?v[1]:NaN}},5326:(w,I,o)=>{"use strict";function c(v){return Math.abs(v=Math.round(v))>=1e21?v.toLocaleString("en").replace(/,/g,""):v.toString(10)}function x(v,_){if((f=(v=_?v.toExponential(_-1):v.toExponential()).indexOf("e"))<0)return null;var f,t=v.slice(0,f);return[t.length>1?t[0]+t.slice(2):t,+v.slice(f+1)]}o.d(I,{Z:()=>c,V:()=>x})},32517:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x,v:()=>v});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(_){if(!(f=c.exec(_)))throw new Error("invalid format: "+_);var f;return new v({fill:f[1],align:f[2],sign:f[3],symbol:f[4],zero:f[5],width:f[6],comma:f[7],precision:f[8]&&f[8].slice(1),trim:f[9],type:f[10]})}function v(_){this.fill=void 0===_.fill?" ":_.fill+"",this.align=void 0===_.align?">":_.align+"",this.sign=void 0===_.sign?"-":_.sign+"",this.symbol=void 0===_.symbol?"":_.symbol+"",this.zero=!!_.zero,this.width=void 0===_.width?void 0:+_.width,this.comma=!!_.comma,this.precision=void 0===_.precision?void 0:+_.precision,this.trim=!!_.trim,this.type=void 0===_.type?"":_.type+""}x.prototype=v.prototype,v.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,I,o)=>{"use strict";o.r(I),o.d(I,{formatDefaultLocale:()=>c.ZP,format:()=>c.WU,formatPrefix:()=>c.jH,formatLocale:()=>x.Z,formatSpecifier:()=>v.Z,FormatSpecifier:()=>v.v,precisionFixed:()=>_.Z,precisionPrefix:()=>f.Z,precisionRound:()=>t.Z});var c=o(22910),x=o(4753),v=o(32517),_=o(78986),f=o(38914),t=o(65142)},4753:(w,I,o)=>{"use strict";o.d(I,{Z:()=>A});var p,c=o(68520),_=o(32517),t=o(5326);function h(k,F){var O=(0,t.V)(k,F);if(!O)return k+"";var R=O[0],U=O[1];return U<0?"0."+new Array(-U).join("0")+R:R.length>U+1?R.slice(0,U+1)+"."+R.slice(U+1):R+new Array(U-R.length+2).join("0")}const m={"%":(k,F)=>(100*k).toFixed(F),b:k=>Math.round(k).toString(2),c:k=>k+"",d:t.Z,e:(k,F)=>k.toExponential(F),f:(k,F)=>k.toFixed(F),g:(k,F)=>k.toPrecision(F),o:k=>Math.round(k).toString(8),p:(k,F)=>h(100*k,F),r:h,s:function l(k,F){var O=(0,t.V)(k,F);if(!O)return k+"";var R=O[0],U=O[1],V=U-(p=3*Math.max(-8,Math.min(8,Math.floor(U/3))))+1,W=R.length;return V===W?R:V>W?R+new Array(V-W+1).join("0"):V>0?R.slice(0,V)+"."+R.slice(V):"0."+new Array(1-V).join("0")+(0,t.V)(k,Math.max(0,F+V-1))[0]},X:k=>Math.round(k).toString(16).toUpperCase(),x:k=>Math.round(k).toString(16)};function u(k){return k}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function A(k){var F=void 0===k.grouping||void 0===k.thousands?u:function x(k,F){return function(O,R){for(var U=O.length,V=[],W=0,rt=k[0],nt=0;U>0&&rt>0&&(nt+rt+1>R&&(rt=Math.max(1,R-nt)),V.push(O.substring(U-=rt,U+rt)),!((nt+=rt+1)>R));)rt=k[W=(W+1)%k.length];return V.reverse().join(F)}}(g.call(k.grouping,Number),k.thousands+""),O=void 0===k.currency?"":k.currency[0]+"",R=void 0===k.currency?"":k.currency[1]+"",U=void 0===k.decimal?".":k.decimal+"",V=void 0===k.numerals?u:function v(k){return function(F){return F.replace(/[0-9]/g,function(O){return k[+O]})}}(g.call(k.numerals,String)),W=void 0===k.percent?"%":k.percent+"",rt=void 0===k.minus?"\u2212":k.minus+"",nt=void 0===k.nan?"NaN":k.nan+"";function ut(tt){var Q=(tt=(0,_.Z)(tt)).fill,at=tt.align,H=tt.sign,K=tt.symbol,lt=tt.zero,it=tt.width,z=tt.comma,E=tt.precision,Ct=tt.trim,It=tt.type;"n"===It?(z=!0,It="g"):m[It]||(void 0===E&&(E=12),Ct=!0,It="g"),(lt||"0"===Q&&"="===at)&&(lt=!0,Q="0",at="=");var Rt="$"===K?O:"#"===K&&/[boxX]/.test(It)?"0"+It.toLowerCase():"",Ht="$"===K?R:/[%p]/.test(It)?W:"",ne=m[It],Ut=/[defgprs%]/.test(It);function vt(ft){var me,ge,ye,Nt=Rt,Qt=Ht;if("c"===It)Qt=ne(ft)+Qt,ft="";else{var Be=(ft=+ft)<0||1/ft<0;if(ft=isNaN(ft)?nt:ne(Math.abs(ft),E),Ct&&(ft=function f(k){t:for(var U,F=k.length,O=1,R=-1;O0&&(R=0)}return R>0?k.slice(0,R)+k.slice(U+1):k}(ft)),Be&&0==+ft&&"+"!==H&&(Be=!1),Nt=(Be?"("===H?H:rt:"-"===H||"("===H?"":H)+Nt,Qt=("s"===It?C[8+p/3]:"")+Qt+(Be&&"("===H?")":""),Ut)for(me=-1,ge=ft.length;++me(ye=ft.charCodeAt(me))||ye>57){Qt=(46===ye?U+ft.slice(me+1):ft.slice(me))+Qt,ft=ft.slice(0,me);break}}z&&!lt&&(ft=F(ft,1/0));var vn=Nt.length+ft.length+Qt.length,Re=vn>1)+Nt+ft+Qt+Re.slice(vn);break;default:ft=Re+Nt+ft+Qt}return V(ft)}return E=void 0===E?6:/[gprs]/.test(It)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),vt.toString=function(){return tt+""},vt}return{format:ut,formatPrefix:function J(tt,Q){var at=ut(((tt=(0,_.Z)(tt)).type="f",tt)),H=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(Q)/3))),K=Math.pow(10,-H),lt=C[8+H/3];return function(it){return at(K*it)+lt}}}}},78986:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(68520);function x(v){return Math.max(0,-(0,c.Z)(Math.abs(v)))}},38914:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(68520);function x(v,_){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(_)/3)))-(0,c.Z)(Math.abs(v)))}},65142:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(68520);function x(v,_){return v=Math.abs(v),_=Math.abs(_)-v,Math.max(0,(0,c.Z)(_)-(0,c.Z)(v))+1}},9921:function(w,I,o){!function(c,x,v,_,f,t,p,l,h,m){"use strict";function u(q){if(q&&q.__esModule)return q;var pt=Object.create(null);return q&&Object.keys(q).forEach(function(bt){if("default"!==bt){var wt=Object.getOwnPropertyDescriptor(q,bt);Object.defineProperty(pt,bt,wt.get?wt:{enumerable:!0,get:function(){return q[bt]}})}}),pt.default=q,Object.freeze(pt)}var Ot,g=u(x);function C(q,pt,bt){return pt in q?Object.defineProperty(q,pt,{value:bt,enumerable:!0,configurable:!0,writable:!0}):q[pt]=bt,q}function A(q){return function k(q){if(Array.isArray(q))return R(q)}(q)||function F(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function O(q,pt){if(q){if("string"==typeof q)return R(q,pt);var bt=Object.prototype.toString.call(q).slice(8,-1);if("Object"===bt&&q.constructor&&(bt=q.constructor.name),"Map"===bt||"Set"===bt)return Array.from(q);if("Arguments"===bt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(bt))return R(q,pt)}}(q)||function U(){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 bt=0,wt=new Array(pt);bt1&&void 0!==arguments[1]?arguments[1]:0,bt=g.select(this),wt=q.attributes,Xt=bt.node().attributes;if(Xt)for(var te=0;te0?Me.children[0].text:"")}null==Wt.key&&(Xt&&("ellipse"==Ie||"polygon"==Ie)&&(Ie="path"),Wt.key=Ie+"-"+oe)}function He(Wt,oe){Wt.id=(oe?oe.id+".":"")+Wt.key}function $e(Wt){N[Wt.id]=Wt}function fe(Wt,oe){Xt&&Wt.id in le&&("polygon"==oe.tag||"ellipse"==oe.tag||"path"==oe.tag)&&(oe.tag!=Wt.tag||"polygon"==Wt.tag)&&("path"!=oe.tag&&(Wt.alternativeOld=Re(oe,Wt)),"path"!=Wt.tag&&(Wt.alternativeNew=Re(Wt,oe)))}function ve(Wt,oe){if(wt&&oe&&("path"==oe.tag||Wt.alternativeOld&&"path"==Wt.alternativeOld.tag)){var Ie=(Wt.alternativeNew||Wt).attributes.d;if(Wt.alternativeOld)var Me=nt(Wt.alternativeOld);else Me=nt(oe);(Wt.alternativeOld||(Wt.alternativeOld={})).points=function vt(q,pt,bt,wt){for(var Xt=q,te=Xt.cloneNode(),Dt=Xt.getTotalLength(),he=(te.setAttribute("d",pt),te).getTotalLength(),N=[0],le=0,ke=wt?bt:bt/Math.max(Dt,he);(le+=ke)<1;)N.push(le);return N.push(1),N.map(function(rn){var He=Xt.getPointAtLength(rn*Dt),$e=te.getPointAtLength(rn*he);return[[He.x,He.y],[$e.x,$e.y]]})}(Me,Ie,te,Dt)}}function Qe(Wt){var Ie=arguments.length>2?arguments[2]:void 0;rn(Wt,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),He(Wt,Ie);var Ye=le[Wt.id];$e(Wt),fe(Wt,Ye),ve(Wt,Ye);var $n={};Wt.children.forEach(function(En){var Sn=En.tag;("ellipse"==Sn||"polygon"==Sn)&&(Sn="path"),null==$n[Sn]&&($n[Sn]=0),Qe(En,$n[Sn]++,Wt)})}function mt(Wt){(function et(Wt){if(he&&Wt.parent&&"node"==Wt.parent.attributes.class&&"title"==Wt.tag){if(Wt.children.length>0)var Me=Wt.children[0].text;else Me="";ke[Me]=Wt.parent}})(Wt),function gt(Wt){var Ie=Wt.tag;if(he&&!le[Wt.id]&&Wt.parent&&Qt(Wt)&&("path"==Ie||"polygon"==Ie)){if("polygon"==Ie){var Ye=Wt.parent.children.find(function(Jn){return"path"==Jn.tag});Ye&&(Wt.totalLength=Ye.totalLength)}var En=function ge(q){return function me(q){return"edge"==q.parent.attributes.class?q.parent:q.parent.parent.parent}(q).children.find(function(pt){return"title"==pt.tag})}(Wt).children[0],Sn=En.text.split("->");2!=Sn.length&&(Sn=En.text.split("--"));var we=Sn[0],Fn=ke[we],Qn=Oe[we];if(Qn){if((ln=Fn.children.findIndex(function(Jn,Ai){return"g"==Jn.tag}))>=0){var on=Fn.children[ln].children.findIndex(function(Jn,Ai){return"a"==Jn.tag});Fn=Fn.children[ln].children[on]}(ln=Qn.children.findIndex(function(Jn,Ai){return"g"==Jn.tag}))>=0&&(on=Qn.children[ln].children.findIndex(function(Ai,cn){return"a"==Ai.tag}),Qn=Qn.children[ln].children[on]);for(var Un=Fn.children,ln=0;ln0&&this._queue.shift().call(this)}function Zn(q,pt,bt,wt){var Xt=[q*bt-(pt=-pt)*(wt=-wt),q*wt+pt*bt];return[q=Xt[0],pt=-(pt=Xt[1])]}function Di(q,pt,bt,wt,Xt,te,Dt){var N=W(yn.call(this,te));q.data([N]),at.call(q.node(),N),gn(q,pt,bt,wt,Xt,te,Dt)}function gn(q,pt,bt,wt,Xt,te,Dt){var he=Dt.shortening||0,Oe=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],rn=wt-pt,He=Xt-bt,$e=Math.sqrt(rn*rn+He*He);if(0==$e)var fe=1,ve=0;else fe=rn/$e,ve=He/$e;if(wt=pt+($e-he-10-.1)*fe,Xt=bt+($e-he-10-.1)*ve,te.URL||te.tooltip)var Qe=q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),et=Qe.selectWithoutDataPropagation("path"),gt=Qe.selectWithoutDataPropagation("polygon");else et=q.selectWithoutDataPropagation("path"),gt=q.selectWithoutDataPropagation("polygon");var mt=m.path();mt.moveTo(pt,bt),mt.lineTo(wt,Xt),et.attr("d",mt),wt=pt+($e-he-10)*fe,Xt=bt+($e-he-10)*ve;for(var St=0;St b ["+pt+"]}","svg","dot"),N=(new window.DOMParser).parseFromString(Dt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return N.documentElement}).select(".edge")}function Nn(q,pt,bt,wt,Xt,te){var he=W(X.call(this,wt,Xt));return q.data([he]),at.call(q.node(),he),Le(q,pt,bt,Xt),this}function Le(q,pt,bt,wt,Xt){if(wt.URL||wt.tooltip)var te=q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else te=q;var Dt=te.selectAll("ellipse,polygon,path,polyline"),he=q.selectWithoutDataPropagation("text");if(0!=Dt.size()){var N=Dt.node().getBBox();N.cx=N.x+N.width/2,N.cy=N.y+N.height/2}else 0!=he.size()&&(N={x:+he.attr("x"),y:+he.attr("y"),width:0,height:0,cx:+he.attr("x"),cy:+he.attr("y")});return Dt.each(function(le,ke){var Oe=g.select(this);if(Oe.attr("cx"))Oe.attr("cx",K(pt)).attr("cy",K(bt));else if(Oe.attr("points")){var rn=Oe.attr("points").trim();Oe.attr("points",function mn(te,pt,bt){var Xt,wt=(Xt=te.split(" ")).map(function(Dt){return Dt.split(",")});return wt=Xt.map(function(Dt){return[K(+pt+ +Dt.split(",")[0]),K(+bt+ +Dt.split(",")[1])]}),(Xt=wt.map(function(Dt){return Dt.join(",")})).join(" ")}(rn,pt-N.cx,bt-N.cy))}else{var He=Oe.attr("d");Oe.attr("d",function Ve(q,pt,bt){(te=q.split(/[A-Z ]/)).shift();var wt=q.split(/[^[A-Z ]+/),te=(te.map(function(Dt){return Dt.split(",")}),te.map(function(Dt){return[K(+pt+ +Dt.split(",")[0]),K(+bt+ +Dt.split(",")[1])]}).map(function(Dt){return Dt.join(",")}));return wt.reduce(function(Dt,he,N){return Dt.concat(he,te[N])},[]).join("")}(He,pt-N.cx,bt-N.cy))}}),0!=he.size()&&he.attr("x",K(+he.attr("x")+pt-N.cx)).attr("y",K(+he.attr("y")+bt-N.cy)),this}function Bn(){if(!this._drawnNode)return this;var q=this._drawnNode.g;return q.empty()||q.remove(),this._drawnNode=null,this}function G(){return this._drawnNode?this._drawnNode.g:g.select(null)}function X(q,pt){for(var bt="",wt=0,Xt=Object.keys(pt);wt2")(rn)+" ",ve+=He+" ".repeat(te-He.length),ve+=h.format(" >5")($e-bt)+" ","initEnd"!=He&&(ve+=h.format(" >5")($e-wt.start[fe])),"dataProcessEnd"==He&&(ve+=" prepare "+h.format(" >5")($e-wt.layoutEnd[fe])),"renderEnd"==He&&N._transition&&(ve+=" transition start margin "+h.format(" >5")(N._transition.delay()-($e-wt.renderStart[fe])),le=N._transition.delay(),ke=N._transition.duration()),"transitionStart"==He){var Qe=$e-wt.renderStart[fe];ve+=" transition delay "+h.format(" >5")($e-wt.renderStart[fe]),ve+=" expected "+h.format(" >5")(le),ve+=" diff "+h.format(" >5")(Qe-le)}if("transitionEnd"==He){var et=$e-wt.transitionStart[fe];ve+=" transition duration "+h.format(" >5")(et),ve+=" expected "+h.format(" >5")(ke),ve+=" diff "+h.format(" >5")(et-ke)}console.log(ve),bt=$e}:null)},he=0;he5&&void 0!==arguments[5]?arguments[5]:{};if((Xt=Object.assign({},Xt)).style&&Xt.style.includes("invis"))var Dt=g.select(null);else{var le=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Oe=W(yn.call(this,Xt));Dt=le.append("g").data([Oe]),at.call(Dt.node(),Oe),Di.call(this,Dt,q,pt,bt,wt,Xt,te)}return this._drawnEdge={g:Dt,x1:q,y1:pt,x2:bt,y2:wt,attributes:Xt},this},updateDrawnEdge:function qn(q,pt,bt,wt){var Xt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},te=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var Dt=this._drawnEdge.g;return Xt=Object.assign(this._drawnEdge.attributes,Xt),this._drawnEdge.x1=q,this._drawnEdge.y1=pt,this._drawnEdge.x2=bt,this._drawnEdge.y2=wt,!Dt.empty()||Xt.style&&Xt.style.includes("invis")||(Dt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=Dt),Dt.empty()||Di.call(this,Dt,q,pt,bt,wt,Xt,te),this},moveDrawnEdgeEndPoint:function ti(q,pt){var bt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var wt=this._drawnEdge.g,Xt=this._drawnEdge.x1,te=this._drawnEdge.y1,Dt=this._drawnEdge.attributes;return this._drawnEdge.x2=q,this._drawnEdge.y2=pt,gn(wt,Xt,te,q,pt,Dt,bt),this},insertDrawnEdge:function On(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 te=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Dt=te.datum(),he=this._extractData(pt,Dt.children.length,te.datum());return Dt.children.push(he),tt(pt,he),this._drawnEdge=null,this},removeDrawnEdge:wi},"removeDrawnEdge",wi),C(Ot,"drawnEdgeSelection",un),C(Ot,"drawnEdgeSelection",un),C(Ot,"drawNode",function ei(q,pt,bt){var wt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Xt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((wt=Object.assign({},wt)).style&&wt.style.includes("invis"))var te=g.select(null);else{var N=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),ke=W(X.call(this,bt,wt));te=N.append("g").data([ke]),at.call(te.node(),ke),Nn.call(this,te,q,pt,bt,wt,Xt)}return this._drawnNode={g:te,nodeId:bt,x:q,y:pt,attributes:wt},this}),C(Ot,"updateDrawnNode",function ui(q,pt,bt){var wt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Xt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var te=this._drawnNode.g;return null==bt&&(bt=this._drawnNode.nodeId),wt=Object.assign(this._drawnNode.attributes,wt),this._drawnNode.nodeId=bt,this._drawnNode.x=q,this._drawnNode.y=pt,!te.empty()||wt.style&&wt.style.includes("invis")||(te=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=te),te.empty()||Nn.call(this,te,q,pt,bt,wt,Xt),this}),C(Ot,"moveDrawnNode",function Ii(q,pt){if(!this._drawnNode)throw Error("No node has been drawn");var bt=this._drawnNode.g,wt=this._drawnNode.attributes;return this._drawnNode.x=q,this._drawnNode.y=pt,bt.empty()||Le(bt,q,pt,wt),this}),C(Ot,"insertDrawnNode",function fn(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 bt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(q),bt.URL||bt.tooltip){var te=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");te.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var Dt=te.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),Dt=pt.selectWithoutDataPropagation("text");Dt.text(bt.label||q);var le=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),ke=le.datum(),Oe=this._extractData(pt,ke.children.length,le.datum());return ke.children.push(Oe),tt(pt,Oe),this._drawnNode=null,this}),C(Ot,"removeDrawnNode",Bn),C(Ot,"removeDrawnNode",Bn),C(Ot,"drawnNodeSelection",G),C(Ot,"drawnNodeSelection",G),C(Ot,"graphvizVersion",function vn(){return this._graphvizVersion}),Ot),x.selection.prototype.graphviz=function re(q){var pt=this.node().__graphviz__;return pt?(pt.options(q),f.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Bt(this,q),pt},x.selection.prototype.selectWithoutDataPropagation=function qt(q){return g.select(this.size()>0?this.node().querySelector(q):null)},c.graphviz=Yt,Object.defineProperty(c,"__esModule",{value:!0})}(I,o(68557),o(18140),o(35011),o(31566),o(82683),o(60128),o(89397),o(41129),o(12218))},92940:(w,I,o)=>{"use strict";o.d(I,{Z:()=>p});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,m={};l=0&&(u=m.slice(g+1),m=m.slice(0,g)),m&&!h.hasOwnProperty(m))throw new Error("unknown type: "+m);return{type:m,name:u}})}function f(l,h){for(var g,m=0,u=l.length;m0)for(var g,C,m=new Array(g),u=0;u{"use strict";o.r(I),o.d(I,{dispatch:()=>c.Z});var c=o(92940)},97907:(w,I,o)=>{"use strict";function c(v,_,f,t,p){var l=v*v,h=l*v;return((1-3*v+3*l-h)*_+(4-6*l+3*h)*f+(1+3*v+3*l-3*h)*t+h*p)/6}function x(v){var _=v.length-1;return function(f){var t=f<=0?f=0:f>=1?(f=1,_-1):Math.floor(f*_),p=v[t],l=v[t+1];return c((f-t/_)*_,t>0?v[t-1]:2*p-l,p,l,t<_-1?v[t+2]:2*l-p)}}o.d(I,{t:()=>c,Z:()=>x})},77296:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(97907);function x(v){var _=v.length;return function(f){var t=Math.floor(((f%=1)<0?++f:f)*_);return(0,c.t)((f-t/_)*_,v[(t+_-1)%_],v[t%_],v[(t+1)%_],v[(t+2)%_])}}},87237:(w,I,o)=>{"use strict";o.d(I,{wx:()=>_,yi:()=>f,ZP:()=>t});var c=o(89783);function x(p,l){return function(h){return p+h*l}}function _(p,l){var h=l-p;return h?x(p,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(p)?l:p)}function f(p){return 1==(p=+p)?t:function(l,h){return h-l?function v(p,l,h){return p=Math.pow(p,h),l=Math.pow(l,h)-p,h=1/h,function(m){return Math.pow(p+m*l,h)}}(l,h,p):(0,c.Z)(isNaN(l)?h:l)}}function t(p,l){var h=l-p;return h?x(p,h):(0,c.Z)(isNaN(p)?l:p)}},89783:(w,I,o)=>{"use strict";o.d(I,{Z:()=>c});const c=x=>()=>x},82683:(w,I,o)=>{"use strict";o.r(I),o.d(I,{interpolate:()=>g,interpolateArray:()=>f,interpolateBasis:()=>C.Z,interpolateBasisClosed:()=>A.Z,interpolateCubehelix:()=>Kn,interpolateCubehelixLong:()=>Ne,interpolateDate:()=>p,interpolateDiscrete:()=>k,interpolateHcl:()=>Ae,interpolateHclLong:()=>Yn,interpolateHsl:()=>tt,interpolateHslLong:()=>Q,interpolateHue:()=>O,interpolateLab:()=>Ve,interpolateNumber:()=>l.Z,interpolateNumberArray:()=>v,interpolateObject:()=>h,interpolateRgb:()=>x.ZP,interpolateRgbBasis:()=>x.hD,interpolateRgbBasisClosed:()=>x.YD,interpolateRound:()=>R,interpolateString:()=>m.Z,interpolateTransformCss:()=>U.Y,interpolateTransformSvg:()=>U.w,interpolateZoom:()=>ut,piecewise:()=>Xn,quantize:()=>jn});var c=o(52786),x=o(8200);function v(yt,Gt){Gt||(Gt=[]);var _e,se=yt?Math.min(Gt.length,yt.length):0,de=Gt.slice();return function(Ue){for(_e=0;_e.008856451679035631?Math.pow(yt,1/3):yt/Rt+Ct}function Qt(yt){return yt>It?yt*yt*yt:Rt*(yt-Ct)}function me(yt){return 255*(yt<=.0031308?12.92*yt:1.055*Math.pow(yt,1/2.4)-.055)}function ge(yt){return(yt/=255)<=.04045?yt/12.92:Math.pow((yt+.055)/1.055,2.4)}function ye(yt){if(yt instanceof Re)return new Re(yt.h,yt.c,yt.l,yt.opacity);if(yt instanceof ft||(yt=ne(yt)),0===yt.a&&0===yt.b)return new Re(NaN,0{"use strict";function c(x,v){return x=+x,v=+v,function(_){return x*(1-_)+v*_}}o.d(I,{Z:()=>c})},8200:(w,I,o)=>{"use strict";o.d(I,{ZP:()=>f,hD:()=>p,YD:()=>l});var c=o(52786),x=o(97907),v=o(77296),_=o(87237);const f=function h(m){var u=(0,_.yi)(m);function g(C,A){var k=u((C=(0,c.B8)(C)).r,(A=(0,c.B8)(A)).r),F=u(C.g,A.g),O=u(C.b,A.b),R=(0,_.ZP)(C.opacity,A.opacity);return function(U){return C.r=k(U),C.g=F(U),C.b=O(U),C.opacity=R(U),C+""}}return g.gamma=h,g}(1);function t(h){return function(m){var k,F,u=m.length,g=new Array(u),C=new Array(u),A=new Array(u);for(k=0;k{"use strict";o.d(I,{Z:()=>t});var c=o(37815),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(x.source,"g");function t(p,l){var m,u,g,h=x.lastIndex=v.lastIndex=0,C=-1,A=[],k=[];for(p+="",l+="";(m=x.exec(p))&&(u=v.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),A[C]?A[C]+=g:A[++C]=g),(m=m[0])===(u=u[0])?A[C]?A[C]+=u:A[++C]=u:(A[++C]=null,k.push({i:C,x:(0,c.Z)(m,u)})),h=v.lastIndex;return h{"use strict";o.d(I,{Y:()=>h,w:()=>m});var f,c=o(37815),x=180/Math.PI,v={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _(u,g,C,A,k,F){var O,R,U;return(O=Math.sqrt(u*u+g*g))&&(u/=O,g/=O),(U=u*C+g*A)&&(C-=u*U,A-=g*U),(R=Math.sqrt(C*C+A*A))&&(C/=R,A/=R,U/=R),u*A180?W+=360:W-V>180&&(V+=360),nt.push({i:rt.push(k(rt)+"rotate(",null,A)-2,x:(0,c.Z)(V,W)})):W&&rt.push(k(rt)+"rotate("+W+A)}(V.rotate,W.rotate,rt,nt),function R(V,W,rt,nt){V!==W?nt.push({i:rt.push(k(rt)+"skewX(",null,A)-2,x:(0,c.Z)(V,W)}):W&&rt.push(k(rt)+"skewX("+W+A)}(V.skewX,W.skewX,rt,nt),function U(V,W,rt,nt,ut,J){if(V!==rt||W!==nt){var tt=ut.push(k(ut)+"scale(",null,",",null,")");J.push({i:tt-4,x:(0,c.Z)(V,rt)},{i:tt-2,x:(0,c.Z)(W,nt)})}else(1!==rt||1!==nt)&&ut.push(k(ut)+"scale("+rt+","+nt+")")}(V.scaleX,V.scaleY,W.scaleX,W.scaleY,rt,nt),V=W=null,function(ut){for(var Q,J=-1,tt=nt.length;++J{"use strict";o.r(I),o.d(I,{path:()=>p});const c=Math.PI,x=2*c,v=1e-6,_=x-v;function f(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new f}f.prototype=t.prototype={constructor:f,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,m,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+m)+","+(this._y1=+u)},bezierCurveTo:function(l,h,m,u,g,C){this._+="C"+ +l+","+ +h+","+ +m+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,m,u,g){var C=this._x1,A=this._y1,k=(m=+m)-(l=+l),F=(u=+u)-(h=+h),O=C-l,R=A-h,U=O*O+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(U>v)if(Math.abs(R*k-F*O)>v&&g){var V=m-C,W=u-A,rt=k*k+F*F,nt=V*V+W*W,ut=Math.sqrt(rt),J=Math.sqrt(U),tt=g*Math.tan((c-Math.acos((rt+U-nt)/(2*ut*J)))/2),Q=tt/J,at=tt/ut;Math.abs(Q-1)>v&&(this._+="L"+(l+Q*O)+","+(h+Q*R)),this._+="A"+g+","+g+",0,0,"+ +(R*V>O*W)+","+(this._x1=l+at*k)+","+(this._y1=h+at*F)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,m,u,g,C){l=+l,h=+h,C=!!C;var A=(m=+m)*Math.cos(u),k=m*Math.sin(u),F=l+A,O=h+k,R=1^C,U=C?u-g:g-u;if(m<0)throw new Error("negative radius: "+m);null===this._x1?this._+="M"+F+","+O:(Math.abs(this._x1-F)>v||Math.abs(this._y1-O)>v)&&(this._+="L"+F+","+O),m&&(U<0&&(U=U%x+x),U>_?this._+="A"+m+","+m+",0,1,"+R+","+(l-A)+","+(h-k)+"A"+m+","+m+",0,1,"+R+","+(this._x1=F)+","+(this._y1=O):U>v&&(this._+="A"+m+","+m+",0,"+ +(U>=c)+","+R+","+(this._x1=l+m*Math.cos(g))+","+(this._y1=h+m*Math.sin(g))))},rect:function(l,h,m,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +m+"v"+ +u+"h"+-m+"Z"},toString:function(){return this._}};const p=t},31566:(w,I,o)=>{"use strict";o.r(I),o.d(I,{interval:()=>v,now:()=>c.zO,timeout:()=>x.Z,timer:()=>c.HT,timerFlush:()=>c.R8});var c=o(78562),x=o(30406);function v(_,f,t){var p=new c.B7,l=f;return null==f?(p.restart(_,f,t),p):(p._restart=p.restart,p.restart=function(h,m,u){m=+m,u=null==u?(0,c.zO)():+u,p._restart(function g(C){C+=l,p._restart(g,l+=m,u),h(C)},m,u)},p.restart(_,f,t),p)}},30406:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(78562);function x(v,_,f){var t=new c.B7;return t.restart(p=>{t.stop(),v(p+_)},_=null==_?0:+_,f),t}},78562:(w,I,o)=>{"use strict";o.d(I,{zO:()=>g,B7:()=>A,HT:()=>k,R8:()=>F});var f,t,c=0,x=0,v=0,p=0,l=0,h=0,m="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(W){setTimeout(W,17)};function g(){return l||(u(C),l=m.now()+h)}function C(){l=0}function A(){this._call=this._time=this._next=null}function k(W,rt,nt){var ut=new A;return ut.restart(W,rt,nt),ut}function F(){g(),++c;for(var rt,W=f;W;)(rt=l-W._time)>=0&&W._call.call(null,rt),W=W._next;--c}function O(){l=(p=m.now())+h,c=x=0;try{F()}finally{c=0,function U(){for(var W,nt,rt=f,ut=1/0;rt;)rt._call?(ut>rt._time&&(ut=rt._time),W=rt,rt=rt._next):(nt=rt._next,rt._next=null,rt=W?W._next=nt:f=nt);t=W,V(ut)}(),l=0}}function R(){var W=m.now(),rt=W-p;rt>1e3&&(h-=rt,p=W)}function V(W){c||(x&&(x=clearTimeout(x)),W-l>24?(W<1/0&&(x=setTimeout(O,W-m.now()-h)),v&&(v=clearInterval(v))):(v||(p=m.now(),v=setInterval(R,1e3)),c=1,u(O)))}A.prototype=k.prototype={constructor:A,restart:function(W,rt,nt){if("function"!=typeof W)throw new TypeError("callback is not a function");nt=(null==nt?g():+nt)+(null==rt?0:+rt),!this._next&&t!==this&&(t?t._next=this:f=this,t=this),this._call=W,this._time=nt,V()},stop:function(){this._call&&(this._call=null,this._time=1/0,V())}}},35011:(w,I,o)=>{"use strict";o.r(I),o.d(I,{active:()=>fn,interrupt:()=>U,transition:()=>un});var c=o(37853),x=o(92940),v=o(78562),_=o(30406),f=(0,x.Z)("start","end","cancel","interrupt"),t=[];function A(G,X,ht,D,At,Ot){var Bt=G.__transition;if(Bt){if(ht in Bt)return}else G.__transition={};!function R(G,X,ht){var At,D=G.__transition;function Bt(qt){var q,pt,bt,wt;if(1!==ht.state)return re();for(q in D)if((wt=D[q]).name===ht.name){if(3===wt.state)return(0,_.Z)(Bt);4===wt.state?(wt.state=6,wt.timer.stop(),wt.on.call("interrupt",G,G.__data__,wt.index,wt.group),delete D[q]):+q0)throw new Error("too late; already scheduled");return ht}function F(G,X){var ht=O(G,X);if(ht.state>3)throw new Error("too late; already running");return ht}function O(G,X){var ht=G.__transition;if(!ht||!(ht=ht[X]))throw new Error("transition not found");return ht}function U(G,X){var D,At,Bt,ht=G.__transition,Ot=!0;if(ht){for(Bt in X=null==X?null:X+"",ht)(D=ht[Bt]).name===X?(At=D.state>2&&D.state<5,D.state=6,D.timer.stop(),D.on.call(At?"interrupt":"cancel",G,G.__data__,D.index,D.group),delete ht[Bt]):Ot=!1;Ot&&delete G.__transition}}var W=o(43349),rt=o(36175);function nt(G,X){var ht,D;return function(){var At=F(this,G),Ot=At.tween;if(Ot!==ht)for(var Bt=0,Yt=(D=ht=Ot).length;Bt=0&&(X=X.slice(0,ht)),!X||"start"===X})}(X)?k:F;return function(){var Bt=Ot(this,G),Yt=Bt.on;Yt!==D&&(At=(D=Yt).copy()).on(X,ht),Bt.on=At}}var In=o(29742),ci=o(32037),Tn=c.ZP.prototype.constructor,Kn=o(24476);function Xn(G){return function(){this.style.removeProperty(G)}}function de(G,X,ht){return function(D){this.style.setProperty(G,X.call(this,D),ht)}}function _e(G,X,ht){var D,At;function Ot(){var Bt=X.apply(this,arguments);return Bt!==At&&(D=(At=Bt)&&de(G,Bt,ht)),D}return Ot._value=X,Ot}function Ln(G){return function(X){this.textContent=G.call(this,X)}}function qn(G){var X,ht;function D(){var At=G.apply(this,arguments);return At!==ht&&(X=(ht=At)&&Ln(At)),X}return D._value=G,D}var wi=0;function On(G,X,ht,D){this._groups=G,this._parents=X,this._name=ht,this._id=D}function un(G){return(0,c.ZP)().transition(G)}function yn(){return++wi}var ei=c.ZP.prototype;On.prototype=un.prototype={constructor:On,select:function ze(G){var X=this._name,ht=this._id;"function"!=typeof G&&(G=(0,In.Z)(G));for(var D=this._groups,At=D.length,Ot=new Array(At),Bt=0;Bt1&&D.name===X)return new On([[G]],Bn,X,+At);return null}},47927:(w,I,o)=>{"use strict";function c(x){return function(){return x}}o.d(I,{Z:()=>c})},6738:(w,I,o)=>{"use strict";function c(x,v){return x=+x,v=+v,function(_){return x*(1-_)+v*_}}o.d(I,{Z:()=>c})},23534:(w,I,o)=>{"use strict";o.d(I,{ZP:()=>u});var c=o(52786);function x(k,F,O,R,U){var V=k*k,W=V*k;return((1-3*k+3*V-W)*F+(4-6*V+3*W)*O+(1+3*k+3*V-3*W)*R+W*U)/6}var f=o(47927);function m(k,F){var O=F-k;return O?function t(k,F){return function(O){return k+O*F}}(k,O):(0,f.Z)(isNaN(k)?F:k)}const u=function k(F){var O=function h(k){return 1==(k=+k)?m:function(F,O){return O-F?function p(k,F,O){return k=Math.pow(k,O),F=Math.pow(F,O)-k,O=1/O,function(R){return Math.pow(k+R*F,O)}}(F,O,k):(0,f.Z)(isNaN(F)?O:F)}}(F);function R(U,V){var W=O((U=(0,c.B8)(U)).r,(V=(0,c.B8)(V)).r),rt=O(U.g,V.g),nt=O(U.b,V.b),ut=m(U.opacity,V.opacity);return function(J){return U.r=W(J),U.g=rt(J),U.b=nt(J),U.opacity=ut(J),U+""}}return R.gamma=k,R}(1);function g(k){return function(F){var W,rt,O=F.length,R=new Array(O),U=new Array(O),V=new Array(O);for(W=0;W=1?(O=1,F-1):Math.floor(O*F),U=k[R],V=k[R+1];return x((O-R/F)*F,R>0?k[R-1]:2*U-V,U,V,R{"use strict";o.d(I,{Z:()=>t});var c=o(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(x.source,"g");function t(p,l){var m,u,g,h=x.lastIndex=v.lastIndex=0,C=-1,A=[],k=[];for(p+="",l+="";(m=x.exec(p))&&(u=v.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),A[C]?A[C]+=g:A[++C]=g),(m=m[0])===(u=u[0])?A[C]?A[C]+=u:A[++C]=u:(A[++C]=null,k.push({i:C,x:(0,c.Z)(m,u)})),h=v.lastIndex;return h{"use strict";o.d(I,{Y:()=>g,w:()=>C});var f,t,p,l,c=o(6738),x=180/Math.PI,v={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _(A,k,F,O,R,U){var V,W,rt;return(V=Math.sqrt(A*A+k*k))&&(A/=V,k/=V),(rt=A*F+k*O)&&(F-=A*rt,O-=k*rt),(W=Math.sqrt(F*F+O*O))&&(F/=W,O/=W,rt/=W),A*O180?ut+=360:ut-nt>180&&(nt+=360),tt.push({i:J.push(R(J)+"rotate(",null,O)-2,x:(0,c.Z)(nt,ut)})):ut&&J.push(R(J)+"rotate("+ut+O)}(nt.rotate,ut.rotate,J,tt),function W(nt,ut,J,tt){nt!==ut?tt.push({i:J.push(R(J)+"skewX(",null,O)-2,x:(0,c.Z)(nt,ut)}):ut&&J.push(R(J)+"skewX("+ut+O)}(nt.skewX,ut.skewX,J,tt),function rt(nt,ut,J,tt,Q,at){if(nt!==J||ut!==tt){var H=Q.push(R(Q)+"scale(",null,",",null,")");at.push({i:H-4,x:(0,c.Z)(nt,J)},{i:H-2,x:(0,c.Z)(ut,tt)})}else(1!==J||1!==tt)&&Q.push(R(Q)+"scale("+J+","+tt+")")}(nt.scaleX,nt.scaleY,ut.scaleX,ut.scaleY,J,tt),nt=ut=null,function(Q){for(var K,at=-1,H=tt.length;++at{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}o.d(I,{Z:()=>c})},7500:(w,I,o)=>{"use strict";o.d(I,{Z:()=>f});var c=o(36175),x=o(53517);function v(t){return function(){var p=this.ownerDocument,l=this.namespaceURI;return l===x.P&&p.documentElement.namespaceURI===x.P?p.createElement(t):p.createElementNS(l,t)}}function _(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function f(t){var p=(0,c.Z)(t);return(p.local?_:v)(p)}},68557:(w,I,o)=>{"use strict";o.r(I),o.d(I,{create:()=>v,creator:()=>c.Z,local:()=>f,matcher:()=>p.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>m.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>k,selection:()=>A.ZP,selector:()=>F.Z,selectorAll:()=>O.Z,style:()=>R.S,window:()=>U.Z});var c=o(7500),x=o(52016);function v(V){return(0,x.Z)((0,c.Z)(V).call(document.documentElement))}var _=0;function f(){return new t}function t(){this._="@"+(++_).toString(36)}t.prototype=f.prototype={constructor:t,get:function(V){for(var W=this._;!(W in V);)if(!(V=V.parentNode))return;return V[W]},set:function(V,W){return V[this._]=W},remove:function(V){return this._ in V&&delete V[this._]},toString:function(){return this._}};var p=o(97905),l=o(36175),h=o(53517),m=o(29132),u=o(75819);function g(V,W){return V.target&&(V=(0,u.Z)(V),void 0===W&&(W=V.currentTarget),V=V.touches||[V]),Array.from(V,rt=>(0,m.Z)(rt,W))}var C=o(34638),A=o(37853);function k(V){return"string"==typeof V?new A.Y1([document.querySelectorAll(V)],[document.documentElement]):new A.Y1([null==V?[]:(0,C.Z)(V)],A.Jz)}var F=o(29742),O=o(32037),R=o(24476),U=o(2442)},97905:(w,I,o)=>{"use strict";function c(v){return function(){return this.matches(v)}}function x(v){return function(_){return _.matches(v)}}o.d(I,{Z:()=>c,P:()=>x})},36175:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(53517);function x(v){var _=v+="",f=_.indexOf(":");return f>=0&&"xmlns"!==(_=v.slice(0,f))&&(v=v.slice(f+1)),c.Z.hasOwnProperty(_)?{space:c.Z[_],local:v}:v}},53517:(w,I,o)=>{"use strict";o.d(I,{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,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(75819);function x(v,_){if(v=(0,c.Z)(v),void 0===_&&(_=v.currentTarget),_){var f=_.ownerSVGElement||_;if(f.createSVGPoint){var t=f.createSVGPoint();return t.x=v.clientX,t.y=v.clientY,[(t=t.matrixTransform(_.getScreenCTM().inverse())).x,t.y]}if(_.getBoundingClientRect){var p=_.getBoundingClientRect();return[v.clientX-p.left-_.clientLeft,v.clientY-p.top-_.clientTop]}}return[v.pageX,v.pageY]}},52016:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(37853);function x(v){return"string"==typeof v?new c.Y1([[document.querySelector(v)]],[document.documentElement]):new c.Y1([[v]],c.Jz)}},37853:(w,I,o)=>{"use strict";o.d(I,{Y1:()=>Le,ZP:()=>fn,Jz:()=>Nn});var c=o(29742),v=o(34638),_=o(32037),p=o(97905),l=Array.prototype.find;function m(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function O(G){return new Array(G.length)}function U(G,X){this.ownerDocument=G.ownerDocument,this.namespaceURI=G.namespaceURI,this._next=null,this._parent=G,this.__data__=X}function V(G){return function(){return G}}function W(G,X,ht,D,At,Ot){for(var Yt,Bt=0,re=X.length,qt=Ot.length;BtX?1:G>=X?0:NaN}U.prototype={constructor:U,appendChild:function(G){return this._parent.insertBefore(G,this._next)},insertBefore:function(G,X){return this._parent.insertBefore(G,X)},querySelector:function(G){return this._parent.querySelector(G)},querySelectorAll:function(G){return this._parent.querySelectorAll(G)}};var Rt=o(36175);function Ht(G){return function(){this.removeAttribute(G)}}function ne(G){return function(){this.removeAttributeNS(G.space,G.local)}}function Ut(G,X){return function(){this.setAttribute(G,X)}}function vt(G,X){return function(){this.setAttributeNS(G.space,G.local,X)}}function ft(G,X){return function(){var ht=X.apply(this,arguments);null==ht?this.removeAttribute(G):this.setAttribute(G,ht)}}function Nt(G,X){return function(){var ht=X.apply(this,arguments);null==ht?this.removeAttributeNS(G.space,G.local):this.setAttributeNS(G.space,G.local,ht)}}var me=o(24476);function ge(G){return function(){delete this[G]}}function ye(G,X){return function(){this[G]=X}}function Be(G,X){return function(){var ht=X.apply(this,arguments);null==ht?delete this[G]:this[G]=ht}}function Re(G){return G.trim().split(/^|\s+/)}function mn(G){return G.classList||new Ve(G)}function Ve(G){this._node=G,this._names=Re(G.getAttribute("class")||"")}function Ce(G,X){for(var ht=mn(G),D=-1,At=X.length;++D=0&&(this._names.splice(X,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(G){return this._names.indexOf(G)>=0}};var jn=o(7500);function Gt(){return null}function de(){var G=this.parentNode;G&&G.removeChild(this)}function Ue(){var G=this.cloneNode(!1),X=this.parentNode;return X?X.insertBefore(G,this.nextSibling):G}function Fe(){var G=this.cloneNode(!0),X=this.parentNode;return X?X.insertBefore(G,this.nextSibling):G}function qn(G){return G.trim().split(/^|\s+/).map(function(X){var ht="",D=X.indexOf(".");return D>=0&&(ht=X.slice(D+1),X=X.slice(0,D)),{type:X,name:ht}})}function Di(G){return function(){var X=this.__on;if(X){for(var Ot,ht=0,D=-1,At=X.length;ht=le&&(le=N+1);!(Oe=Dt[le])&&++le=0;)(Bt=D[At])&&(Ot&&4^Bt.compareDocumentPosition(Ot)&&Ot.parentNode.insertBefore(Bt,Ot),Ot=Bt);return this},sort:function H(G){function X(pt,bt){return pt&&bt?G(pt.__data__,bt.__data__):!pt-!bt}G||(G=K);for(var ht=this._groups,D=ht.length,At=new Array(D),Ot=0;Ot1?this.each((null==X?ge:"function"==typeof X?Be:ye)(G,X)):this.node()[G]},classed:function xn(G,X){var ht=Re(G+"");if(arguments.length<2){for(var D=mn(this.node()),At=-1,Ot=ht.length;++At{"use strict";o.d(I,{Z:()=>f,S:()=>t});var c=o(2442);function x(p){return function(){this.style.removeProperty(p)}}function v(p,l,h){return function(){this.style.setProperty(p,l,h)}}function _(p,l,h){return function(){var m=l.apply(this,arguments);null==m?this.style.removeProperty(p):this.style.setProperty(p,m,h)}}function f(p,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?_:v)(p,l,null==h?"":h)):t(this.node(),p)}function t(p,l){return p.style.getPropertyValue(l)||(0,c.Z)(p).getComputedStyle(p,null).getPropertyValue(l)}},29742:(w,I,o)=>{"use strict";function c(){}function x(v){return null==v?c:function(){return this.querySelector(v)}}o.d(I,{Z:()=>x})},32037:(w,I,o)=>{"use strict";function c(){return[]}function x(v){return null==v?c:function(){return this.querySelectorAll(v)}}o.d(I,{Z:()=>x})},75819:(w,I,o)=>{"use strict";function c(x){let v;for(;v=x.sourceEvent;)x=v;return x}o.d(I,{Z:()=>c})},2442:(w,I,o)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}o.d(I,{Z:()=>c})},73339:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(49194);function x(v,_,f){var t=new c.B7;return t.restart(function(p){t.stop(),v(p+_)},_=null==_?0:+_,f),t}},49194:(w,I,o)=>{"use strict";o.d(I,{zO:()=>g,B7:()=>A,HT:()=>k,R8:()=>F});var f,t,c=0,x=0,v=0,p=0,l=0,h=0,m="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(W){setTimeout(W,17)};function g(){return l||(u(C),l=m.now()+h)}function C(){l=0}function A(){this._call=this._time=this._next=null}function k(W,rt,nt){var ut=new A;return ut.restart(W,rt,nt),ut}function F(){g(),++c;for(var rt,W=f;W;)(rt=l-W._time)>=0&&W._call.call(null,rt),W=W._next;--c}function O(){l=(p=m.now())+h,c=x=0;try{F()}finally{c=0,function U(){for(var W,nt,rt=f,ut=1/0;rt;)rt._call?(ut>rt._time&&(ut=rt._time),W=rt,rt=rt._next):(nt=rt._next,rt._next=null,rt=W?W._next=nt:f=nt);t=W,V(ut)}(),l=0}}function R(){var W=m.now(),rt=W-p;rt>1e3&&(h-=rt,p=W)}function V(W){c||(x&&(x=clearTimeout(x)),W-l>24?(W<1/0&&(x=setTimeout(O,W-m.now()-h)),v&&(v=clearInterval(v))):(v||(p=m.now(),v=setInterval(R,1e3)),c=1,u(O)))}A.prototype=k.prototype={constructor:A,restart:function(W,rt,nt){if("function"!=typeof W)throw new TypeError("callback is not a function");nt=(null==nt?g():+nt)+(null==rt?0:+rt),!this._next&&t!==this&&(t?t._next=this:f=this,t=this),this._call=W,this._time=nt,V()},stop:function(){this._call&&(this._call=null,this._time=1/0,V())}}},60128:(w,I,o)=>{"use strict";o.r(I),o.d(I,{zoom:()=>Qe,zoomIdentity:()=>he,zoomTransform:()=>N});var c=o(25922),x=o(52016);function _(et){et.preventDefault(),et.stopImmediatePropagation()}function f(et){var gt=et.document.documentElement,mt=(0,x.Z)(et).on("dragstart.drag",_,!0);"onselectstart"in gt?mt.on("selectstart.drag",_,!0):(gt.__noselect=gt.style.MozUserSelect,gt.style.MozUserSelect="none")}function t(et,gt){var mt=et.document.documentElement,St=(0,x.Z)(et).on("dragstart.drag",null);gt&&(St.on("click.drag",_,!0),setTimeout(function(){St.on("click.drag",null)},0)),"onselectstart"in mt?St.on("selectstart.drag",null):(mt.style.MozUserSelect=mt.__noselect,delete mt.__noselect)}var p=Math.SQRT2;function u(et){return((et=Math.exp(et))+1/et)/2}function A(et,gt){var Ie,Me,mt=et[0],St=et[1],zt=et[2],pe=gt[2],xe=gt[0]-mt,Wt=gt[1]-St,oe=xe*xe+Wt*Wt;if(oe<1e-12)Me=Math.log(pe/zt)/p,Ie=function(Fn){return[mt+Fn*xe,St+Fn*Wt,zt*Math.exp(p*Fn*Me)]};else{var Ye=Math.sqrt(oe),$n=(pe*pe-zt*zt+4*oe)/(2*zt*2*Ye),En=(pe*pe-zt*zt-4*oe)/(2*pe*2*Ye),Sn=Math.log(Math.sqrt($n*$n+1)-$n),we=Math.log(Math.sqrt(En*En+1)-En);Me=(we-Sn)/p,Ie=function(Fn){var Qn=Fn*Me,on=u(Sn),ln=zt/(2*Ye)*(on*function C(et){return((et=Math.exp(2*et))-1)/(et+1)}(p*Qn+Sn)-function g(et){return((et=Math.exp(et))-1/et)/2}(Sn));return[mt+ln*xe,St+ln*Wt,zt*on/u(p*Qn+Sn)]}}return Ie.duration=1e3*Me,Ie}var k=o(29132),F=o(37853),O=o(49194),R=o(73339),U=(0,c.Z)("start","end","cancel","interrupt"),V=[];function at(et,gt,mt,St,zt,ee){var Jt=et.__transition;if(Jt){if(mt in Jt)return}else et.__transition={};!function it(et,gt,mt){var zt,St=et.__transition;function Jt(Wt){var oe,Ie,Me,Ye;if(1!==mt.state)return xe();for(oe in St)if((Ye=St[oe]).name===mt.name){if(3===Ye.state)return(0,R.Z)(Jt);4===Ye.state?(Ye.state=6,Ye.timer.stop(),Ye.on.call("interrupt",et,et.__data__,Ye.index,Ye.group),delete St[oe]):+oe0)throw new Error("too late; already scheduled");return mt}function K(et,gt){var mt=lt(et,gt);if(mt.state>3)throw new Error("too late; already running");return mt}function lt(et,gt){var mt=et.__transition;if(!mt||!(mt=mt[gt]))throw new Error("transition not found");return mt}function z(et,gt){var St,zt,Jt,mt=et.__transition,ee=!0;if(mt){for(Jt in gt=null==gt?null:gt+"",mt)(St=mt[Jt]).name===gt?(zt=St.state>2&&St.state<5,St.state=6,St.timer.stop(),St.on.call(zt?"interrupt":"cancel",et,et.__data__,St.index,St.group),delete mt[Jt]):ee=!1;ee&&delete et.__transition}}var Ct=o(75349),It=o(36175);function Rt(et,gt){var mt,St;return function(){var zt=K(this,et),ee=zt.tween;if(ee!==mt)for(var Jt=0,pe=(St=mt=ee).length;Jt=0&&(gt=gt.slice(0,mt)),!gt||"start"===gt})}(gt)?H:K;return function(){var Jt=ee(this,et),pe=Jt.on;pe!==St&&(zt=(St=pe).copy()).on(gt,mt),Jt.on=zt}}var _e=o(29742),Fe=o(32037),Zn=F.ZP.prototype.constructor,qn=o(24476);function gn(et){return function(){this.style.removeProperty(et)}}function yn(et,gt,mt){return function(St){this.style.setProperty(et,gt.call(this,St),mt)}}function ei(et,gt,mt){var St,zt;function ee(){var Jt=gt.apply(this,arguments);return Jt!==zt&&(St=(zt=Jt)&&yn(et,Jt,mt)),St}return ee._value=gt,ee}function Bn(et){return function(gt){this.textContent=et.call(this,gt)}}function fn(et){var gt,mt;function St(){var zt=et.apply(this,arguments);return zt!==mt&&(gt=(mt=zt)&&Bn(zt)),gt}return St._value=et,St}var D=0;function At(et,gt,mt,St){this._groups=et,this._parents=gt,this._name=mt,this._id=St}function Bt(){return++D}var Yt=F.ZP.prototype;At.prototype=function Ot(et){return(0,F.ZP)().transition(et)}.prototype={constructor:At,select:function Ue(et){var gt=this._name,mt=this._id;"function"!=typeof et&&(et=(0,_e.Z)(et));for(var St=this._groups,zt=St.length,ee=new Array(zt),Jt=0;Jt()=>et;function te(et,{sourceEvent:gt,target:mt,transform:St,dispatch:zt}){Object.defineProperties(this,{type:{value:et,enumerable:!0,configurable:!0},sourceEvent:{value:gt,enumerable:!0,configurable:!0},target:{value:mt,enumerable:!0,configurable:!0},transform:{value:St,enumerable:!0,configurable:!0},_:{value:zt}})}function Dt(et,gt,mt){this.k=et,this.x=gt,this.y=mt}Dt.prototype={constructor:Dt,scale:function(et){return 1===et?this:new Dt(this.k*et,this.x,this.y)},translate:function(et,gt){return 0===et&0===gt?this:new Dt(this.k,this.x+this.k*et,this.y+this.k*gt)},apply:function(et){return[et[0]*this.k+this.x,et[1]*this.k+this.y]},applyX:function(et){return et*this.k+this.x},applyY:function(et){return et*this.k+this.y},invert:function(et){return[(et[0]-this.x)/this.k,(et[1]-this.y)/this.k]},invertX:function(et){return(et-this.x)/this.k},invertY:function(et){return(et-this.y)/this.k},rescaleX:function(et){return et.copy().domain(et.range().map(this.invertX,this).map(et.invert,et))},rescaleY:function(et){return et.copy().domain(et.range().map(this.invertY,this).map(et.invert,et))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var he=new Dt(1,0,0);function N(et){for(;!et.__zoom;)if(!(et=et.parentNode))return he;return et.__zoom}function le(et){et.stopImmediatePropagation()}function ke(et){et.preventDefault(),et.stopImmediatePropagation()}function Oe(et){return!(et.ctrlKey&&"wheel"!==et.type||et.button)}function rn(){var et=this;return et instanceof SVGElement?(et=et.ownerSVGElement||et).hasAttribute("viewBox")?[[(et=et.viewBox.baseVal).x,et.y],[et.x+et.width,et.y+et.height]]:[[0,0],[et.width.baseVal.value,et.height.baseVal.value]]:[[0,0],[et.clientWidth,et.clientHeight]]}function He(){return this.__zoom||he}function $e(et){return-et.deltaY*(1===et.deltaMode?.05:et.deltaMode?1:.002)*(et.ctrlKey?10:1)}function fe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ve(et,gt,mt){var St=et.invertX(gt[0][0])-mt[0][0],zt=et.invertX(gt[1][0])-mt[1][0],ee=et.invertY(gt[0][1])-mt[0][1],Jt=et.invertY(gt[1][1])-mt[1][1];return et.translate(zt>St?(St+zt)/2:Math.min(0,St)||Math.max(0,zt),Jt>ee?(ee+Jt)/2:Math.min(0,ee)||Math.max(0,Jt))}function Qe(){var oe,Ie,Me,et=Oe,gt=rn,mt=ve,St=$e,zt=fe,ee=[0,1/0],Jt=[[-1/0,-1/0],[1/0,1/0]],pe=250,xe=A,Wt=(0,c.Z)("start","zoom","end"),En=0,Sn=10;function we(Ft){Ft.property("__zoom",He).on("wheel.zoom",hi).on("mousedown.zoom",zi).on("dblclick.zoom",Jn).filter(zt).on("touchstart.zoom",Ai).on("touchmove.zoom",cn).on("touchend.zoom touchcancel.zoom",Hi).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Fn(Ft,be){return(be=Math.max(ee[0],Math.min(ee[1],be)))===Ft.k?Ft:new Dt(be,Ft.x,Ft.y)}function Qn(Ft,be,jt){var b=be[0]-jt[0]*Ft.k,M=be[1]-jt[1]*Ft.k;return b===Ft.x&&M===Ft.y?Ft:new Dt(Ft.k,b,M)}function on(Ft){return[(+Ft[0][0]+ +Ft[1][0])/2,(+Ft[0][1]+ +Ft[1][1])/2]}function ln(Ft,be,jt,b){Ft.on("start.zoom",function(){Un(this,arguments).event(b).start()}).on("interrupt.zoom end.zoom",function(){Un(this,arguments).event(b).end()}).tween("zoom",function(){var M=this,B=arguments,j=Un(M,B).event(b),ct=gt.apply(M,B),xt=null==jt?on(ct):"function"==typeof jt?jt.apply(M,B):jt,kt=Math.max(ct[1][0]-ct[0][0],ct[1][1]-ct[0][1]),Pt=M.__zoom,ae="function"==typeof be?be.apply(M,B):be,De=xe(Pt.invert(xt).concat(kt/Pt.k),ae.invert(xt).concat(kt/ae.k));return function(Ge){if(1===Ge)Ge=ae;else{var Ke=De(Ge),Ze=kt/Ke[2];Ge=new Dt(Ze,xt[0]-Ke[0]*Ze,xt[1]-Ke[1]*Ze)}j.zoom(null,Ge)}})}function Un(Ft,be,jt){return!jt&&Ft.__zooming||new Vi(Ft,be)}function Vi(Ft,be){this.that=Ft,this.args=be,this.active=0,this.sourceEvent=null,this.extent=gt.apply(Ft,be),this.taps=0}function hi(Ft,...be){if(et.apply(this,arguments)){var jt=Un(this,be).event(Ft),b=this.__zoom,M=Math.max(ee[0],Math.min(ee[1],b.k*Math.pow(2,St.apply(this,arguments)))),B=(0,k.Z)(Ft);if(jt.wheel)(jt.mouse[0][0]!==B[0]||jt.mouse[0][1]!==B[1])&&(jt.mouse[1]=b.invert(jt.mouse[0]=B)),clearTimeout(jt.wheel);else{if(b.k===M)return;jt.mouse=[B,b.invert(B)],z(this),jt.start()}ke(Ft),jt.wheel=setTimeout(j,150),jt.zoom("mouse",mt(Qn(Fn(b,M),jt.mouse[0],jt.mouse[1]),jt.extent,Jt))}function j(){jt.wheel=null,jt.end()}}function zi(Ft,...be){if(!Me&&et.apply(this,arguments)){var jt=Un(this,be,!0).event(Ft),b=(0,x.Z)(Ft.view).on("mousemove.zoom",xt,!0).on("mouseup.zoom",kt,!0),M=(0,k.Z)(Ft,B),B=Ft.currentTarget,j=Ft.clientX,ct=Ft.clientY;f(Ft.view),le(Ft),jt.mouse=[M,this.__zoom.invert(M)],z(this),jt.start()}function xt(Pt){if(ke(Pt),!jt.moved){var ae=Pt.clientX-j,De=Pt.clientY-ct;jt.moved=ae*ae+De*De>En}jt.event(Pt).zoom("mouse",mt(Qn(jt.that.__zoom,jt.mouse[0]=(0,k.Z)(Pt,B),jt.mouse[1]),jt.extent,Jt))}function kt(Pt){b.on("mousemove.zoom mouseup.zoom",null),t(Pt.view,jt.moved),ke(Pt),jt.event(Pt).end()}}function Jn(Ft,...be){if(et.apply(this,arguments)){var jt=this.__zoom,b=(0,k.Z)(Ft.changedTouches?Ft.changedTouches[0]:Ft,this),M=jt.invert(b),B=jt.k*(Ft.shiftKey?.5:2),j=mt(Qn(Fn(jt,B),b,M),gt.apply(this,be),Jt);ke(Ft),pe>0?(0,x.Z)(this).transition().duration(pe).call(ln,j,b,Ft):(0,x.Z)(this).call(we.transform,j,b,Ft)}}function Ai(Ft,...be){if(et.apply(this,arguments)){var B,j,ct,xt,jt=Ft.touches,b=jt.length,M=Un(this,be,Ft.changedTouches.length===b).event(Ft);for(le(Ft),j=0;j{w.exports={graphlib:o(36456),layout:o(14850),debug:o(71914),util:{time:o(11510).time,notime:o(11510).notime},version:o(28126)}},12234:(w,I,o)=>{"use strict";var c=o(45760),x=o(67365);w.exports={run:function v(t){var p="greedy"===t.graph().acyclicer?x(t,function l(h){return function(m){return h.edge(m).weight}}(t)):function _(t){var p=[],l={},h={};return c.forEach(t.nodes(),function m(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?p.push(g):m(g.w)}),delete l[u])}),p}(t);c.forEach(p,function(h){var m=t.edge(h);t.removeEdge(h),m.forwardName=h.name,m.reversed=!0,t.setEdge(h.w,h.v,m,c.uniqueId("rev"))})},undo:function f(t){c.forEach(t.edges(),function(p){var l=t.edge(p);if(l.reversed){t.removeEdge(p);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(p.w,p.v,l,h)}})}}},79999:(w,I,o)=>{var c=o(45760),x=o(11510);function _(f,t,p,l,h,m){var g=h[t][m-1],C=x.addDummyNode(f,"border",{width:0,height:0,rank:m,borderType:t},p);h[t][m]=C,f.setParent(C,l),g&&f.setEdge(g,C,{weight:1})}w.exports=function v(f){c.forEach(f.children(),function t(p){var l=f.children(p),h=f.node(p);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var m=h.minRank,u=h.maxRank+1;m{"use strict";var c=o(45760);function _(m){c.forEach(m.nodes(),function(u){f(m.node(u))}),c.forEach(m.edges(),function(u){f(m.edge(u))})}function f(m){var u=m.width;m.width=m.height,m.height=u}function p(m){m.y=-m.y}function h(m){var u=m.x;m.x=m.y,m.y=u}w.exports={adjust:function x(m){var u=m.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&_(m)},undo:function v(m){var u=m.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(m){c.forEach(m.nodes(),function(u){p(m.node(u))}),c.forEach(m.edges(),function(u){var g=m.edge(u);c.forEach(g.points,p),c.has(g,"y")&&p(g)})}(m),("lr"===u||"rl"===u)&&(function l(m){c.forEach(m.nodes(),function(u){h(m.node(u))}),c.forEach(m.edges(),function(u){var g=m.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(m),_(m))}}},3226:w=>{function I(){var x={};x._next=x._prev=x,this._sentinel=x}function o(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,v){if("_next"!==x&&"_prev"!==x)return v}w.exports=I,I.prototype.dequeue=function(){var x=this._sentinel,v=x._prev;if(v!==x)return o(v),v},I.prototype.enqueue=function(x){var v=this._sentinel;x._prev&&x._next&&o(x),x._next=v._next,v._next._prev=x,v._next=x,x._prev=v},I.prototype.toString=function(){for(var x=[],v=this._sentinel,_=v._prev;_!==v;)x.push(JSON.stringify(_,c)),_=_._prev;return"["+x.join(", ")+"]"}},71914:(w,I,o)=>{var c=o(45760),x=o(11510),v=o(36456).Graph;w.exports={debugOrdering:function _(f){var t=x.buildLayerMatrix(f),p=new v({compound:!0,multigraph:!0}).setGraph({});return c.forEach(f.nodes(),function(l){p.setNode(l,{label:l}),p.setParent(l,"layer"+f.node(l).rank)}),c.forEach(f.edges(),function(l){p.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){p.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return p.setEdge(u,g,{style:"invis"}),g})}),p}}},36456:(w,I,o)=>{var c;try{c=o(85510)}catch(x){}c||(c=window.graphlib),w.exports=c},67365:(w,I,o)=>{var c=o(45760),x=o(36456).Graph,v=o(3226);w.exports=function f(m,u){if(m.nodeCount()<=1)return[];var g=function l(m,u){var g=new x,C=0,A=0;c.forEach(m.nodes(),function(O){g.setNode(O,{v:O,in:0,out:0})}),c.forEach(m.edges(),function(O){var R=g.edge(O.v,O.w)||0,U=u(O);g.setEdge(O.v,O.w,R+U),A=Math.max(A,g.node(O.v).out+=U),C=Math.max(C,g.node(O.w).in+=U)});var k=c.range(A+C+3).map(function(){return new v}),F=C+1;return c.forEach(g.nodes(),function(O){h(k,F,g.node(O))}),{graph:g,buckets:k,zeroIdx:F}}(m,u||_),C=function t(m,u,g){for(var F,C=[],A=u[u.length-1],k=u[0];m.nodeCount();){for(;F=k.dequeue();)p(m,u,g,F);for(;F=A.dequeue();)p(m,u,g,F);if(m.nodeCount())for(var O=u.length-2;O>0;--O)if(F=u[O].dequeue()){C=C.concat(p(m,u,g,F,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(A){return m.outEdges(A.v,A.w)}),!0)};var _=c.constant(1);function p(m,u,g,C,A){var k=A?[]:void 0;return c.forEach(m.inEdges(C.v),function(F){var O=m.edge(F),R=m.node(F.v);A&&k.push({v:F.v,w:F.w}),R.out-=O,h(u,g,R)}),c.forEach(m.outEdges(C.v),function(F){var O=m.edge(F),U=m.node(F.w);U.in-=O,h(u,g,U)}),m.removeNode(C.v),k}function h(m,u,g){g.out?g.in?m[g.out-g.in+u].enqueue(g):m[m.length-1].enqueue(g):m[0].enqueue(g)}},14850:(w,I,o)=>{"use strict";var c=o(45760),x=o(12234),v=o(91496),_=o(94124),f=o(11510).normalizeRanks,t=o(60162),p=o(11510).removeEmptyRanks,l=o(1230),h=o(79999),m=o(83870),u=o(32974),g=o(78226),C=o(11510),A=o(36456).Graph;w.exports=function k(vt,ft){var Nt=ft&&ft.debugTiming?C.time:C.notime;Nt("layout",function(){var Qt=Nt(" buildLayoutGraph",function(){return function tt(vt){var ft=new A({multigraph:!0,compound:!0}),Nt=Ut(vt.graph());return ft.setGraph(c.merge({},U,ne(Nt,R),c.pick(Nt,V))),c.forEach(vt.nodes(),function(Qt){var me=Ut(vt.node(Qt));ft.setNode(Qt,c.defaults(ne(me,W),rt)),ft.setParent(Qt,vt.parent(Qt))}),c.forEach(vt.edges(),function(Qt){var me=Ut(vt.edge(Qt));ft.setEdge(Qt,c.merge({},ut,ne(me,nt),c.pick(me,J)))}),ft}(vt)});Nt(" runLayout",function(){!function F(vt,ft){ft(" makeSpaceForEdgeLabels",function(){!function Q(vt){var ft=vt.graph();ft.ranksep/=2,c.forEach(vt.edges(),function(Nt){var Qt=vt.edge(Nt);Qt.minlen*=2,"c"!==Qt.labelpos.toLowerCase()&&("TB"===ft.rankdir||"BT"===ft.rankdir?Qt.width+=Qt.labeloffset:Qt.height+=Qt.labeloffset)})}(vt)}),ft(" removeSelfEdges",function(){!function It(vt){c.forEach(vt.edges(),function(ft){if(ft.v===ft.w){var Nt=vt.node(ft.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:ft,label:vt.edge(ft)}),vt.removeEdge(ft)}})}(vt)}),ft(" acyclic",function(){x.run(vt)}),ft(" nestingGraph.run",function(){l.run(vt)}),ft(" rank",function(){_(C.asNonCompoundGraph(vt))}),ft(" injectEdgeLabelProxies",function(){!function at(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);if(Nt.width&&Nt.height){var Qt=vt.node(ft.v),me=vt.node(ft.w);C.addDummyNode(vt,"edge-proxy",{rank:(me.rank-Qt.rank)/2+Qt.rank,e:ft},"_ep")}})}(vt)}),ft(" removeEmptyRanks",function(){p(vt)}),ft(" nestingGraph.cleanup",function(){l.cleanup(vt)}),ft(" normalizeRanks",function(){f(vt)}),ft(" assignRankMinMax",function(){!function H(vt){var ft=0;c.forEach(vt.nodes(),function(Nt){var Qt=vt.node(Nt);Qt.borderTop&&(Qt.minRank=vt.node(Qt.borderTop).rank,Qt.maxRank=vt.node(Qt.borderBottom).rank,ft=c.max(ft,Qt.maxRank))}),vt.graph().maxRank=ft}(vt)}),ft(" removeEdgeLabelProxies",function(){!function K(vt){c.forEach(vt.nodes(),function(ft){var Nt=vt.node(ft);"edge-proxy"===Nt.dummy&&(vt.edge(Nt.e).labelRank=Nt.rank,vt.removeNode(ft))})}(vt)}),ft(" normalize.run",function(){v.run(vt)}),ft(" parentDummyChains",function(){t(vt)}),ft(" addBorderSegments",function(){h(vt)}),ft(" order",function(){u(vt)}),ft(" insertSelfEdges",function(){!function Rt(vt){var ft=C.buildLayerMatrix(vt);c.forEach(ft,function(Nt){var Qt=0;c.forEach(Nt,function(me,ge){var ye=vt.node(me);ye.order=ge+Qt,c.forEach(ye.selfEdges,function(Be){C.addDummyNode(vt,"selfedge",{width:Be.label.width,height:Be.label.height,rank:ye.rank,order:ge+ ++Qt,e:Be.e,label:Be.label},"_se")}),delete ye.selfEdges})})}(vt)}),ft(" adjustCoordinateSystem",function(){m.adjust(vt)}),ft(" position",function(){g(vt)}),ft(" positionSelfEdges",function(){!function Ht(vt){c.forEach(vt.nodes(),function(ft){var Nt=vt.node(ft);if("selfedge"===Nt.dummy){var Qt=vt.node(Nt.e.v),me=Qt.x+Qt.width/2,ge=Qt.y,ye=Nt.x-me,Be=Qt.height/2;vt.setEdge(Nt.e,Nt.label),vt.removeNode(ft),Nt.label.points=[{x:me+2*ye/3,y:ge-Be},{x:me+5*ye/6,y:ge-Be},{x:me+ye,y:ge},{x:me+5*ye/6,y:ge+Be},{x:me+2*ye/3,y:ge+Be}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})}(vt)}),ft(" removeBorderNodes",function(){!function Ct(vt){c.forEach(vt.nodes(),function(ft){if(vt.children(ft).length){var Nt=vt.node(ft),Qt=vt.node(Nt.borderTop),me=vt.node(Nt.borderBottom),ge=vt.node(c.last(Nt.borderLeft)),ye=vt.node(c.last(Nt.borderRight));Nt.width=Math.abs(ye.x-ge.x),Nt.height=Math.abs(me.y-Qt.y),Nt.x=ge.x+Nt.width/2,Nt.y=Qt.y+Nt.height/2}}),c.forEach(vt.nodes(),function(ft){"border"===vt.node(ft).dummy&&vt.removeNode(ft)})}(vt)}),ft(" normalize.undo",function(){v.undo(vt)}),ft(" fixupEdgeLabelCoords",function(){!function z(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);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}})}(vt)}),ft(" undoCoordinateSystem",function(){m.undo(vt)}),ft(" translateGraph",function(){!function lt(vt){var ft=Number.POSITIVE_INFINITY,Nt=0,Qt=Number.POSITIVE_INFINITY,me=0,ge=vt.graph(),ye=ge.marginx||0,Be=ge.marginy||0;function vn(Re){var mn=Re.x,Ve=Re.y,Ce=Re.width,Ae=Re.height;ft=Math.min(ft,mn-Ce/2),Nt=Math.max(Nt,mn+Ce/2),Qt=Math.min(Qt,Ve-Ae/2),me=Math.max(me,Ve+Ae/2)}c.forEach(vt.nodes(),function(Re){vn(vt.node(Re))}),c.forEach(vt.edges(),function(Re){var mn=vt.edge(Re);c.has(mn,"x")&&vn(mn)}),ft-=ye,Qt-=Be,c.forEach(vt.nodes(),function(Re){var mn=vt.node(Re);mn.x-=ft,mn.y-=Qt}),c.forEach(vt.edges(),function(Re){var mn=vt.edge(Re);c.forEach(mn.points,function(Ve){Ve.x-=ft,Ve.y-=Qt}),c.has(mn,"x")&&(mn.x-=ft),c.has(mn,"y")&&(mn.y-=Qt)}),ge.width=Nt-ft+ye,ge.height=me-Qt+Be}(vt)}),ft(" assignNodeIntersects",function(){!function it(vt){c.forEach(vt.edges(),function(ft){var ge,ye,Nt=vt.edge(ft),Qt=vt.node(ft.v),me=vt.node(ft.w);Nt.points?(ge=Nt.points[0],ye=Nt.points[Nt.points.length-1]):(Nt.points=[],ge=me,ye=Qt),Nt.points.unshift(C.intersectRect(Qt,ge)),Nt.points.push(C.intersectRect(me,ye))})}(vt)}),ft(" reversePoints",function(){!function E(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);Nt.reversed&&Nt.points.reverse()})}(vt)}),ft(" acyclic.undo",function(){x.undo(vt)})}(Qt,Nt)}),Nt(" updateInputGraph",function(){!function O(vt,ft){c.forEach(vt.nodes(),function(Nt){var Qt=vt.node(Nt),me=ft.node(Nt);Qt&&(Qt.x=me.x,Qt.y=me.y,ft.children(Nt).length&&(Qt.width=me.width,Qt.height=me.height))}),c.forEach(vt.edges(),function(Nt){var Qt=vt.edge(Nt),me=ft.edge(Nt);Qt.points=me.points,c.has(me,"x")&&(Qt.x=me.x,Qt.y=me.y)}),vt.graph().width=ft.graph().width,vt.graph().height=ft.graph().height}(vt,Qt)})})};var R=["nodesep","edgesep","ranksep","marginx","marginy"],U={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},V=["acyclicer","ranker","rankdir","align"],W=["width","height"],rt={width:0,height:0},nt=["minlen","weight","width","height","labeloffset"],ut={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},J=["labelpos"];function ne(vt,ft){return c.mapValues(c.pick(vt,ft),Number)}function Ut(vt){var ft={};return c.forEach(vt,function(Nt,Qt){ft[Qt.toLowerCase()]=Nt}),ft}},45760:(w,I,o)=>{var c;try{c={cloneDeep:o(90733),constant:o(76684),defaults:o(28800),each:o(35474),filter:o(35281),find:o(62516),flatten:o(22274),forEach:o(89851),forIn:o(41176),has:o(54842),isUndefined:o(34235),last:o(25809),map:o(19984),mapValues:o(10203),max:o(18176),merge:o(80567),min:o(29439),minBy:o(29525),now:o(31710),pick:o(16372),range:o(90361),reduce:o(81337),sortBy:o(12906),uniqueId:o(51541),values:o(90377),zipObject:o(21617)}}catch(x){}c||(c=window._),w.exports=c},1230:(w,I,o)=>{var c=o(45760),x=o(11510);function _(l,h,m,u,g,C,A){var k=l.children(A);if(k.length){var F=x.addBorderNode(l,"_bt"),O=x.addBorderNode(l,"_bb"),R=l.node(A);l.setParent(F,A),R.borderTop=F,l.setParent(O,A),R.borderBottom=O,c.forEach(k,function(U){_(l,h,m,u,g,C,U);var V=l.node(U),W=V.borderTop?V.borderTop:U,rt=V.borderBottom?V.borderBottom:U,nt=V.borderTop?u:2*u,ut=W!==rt?1:g-C[A]+1;l.setEdge(F,W,{weight:nt,minlen:ut,nestingEdge:!0}),l.setEdge(rt,O,{weight:nt,minlen:ut,nestingEdge:!0})}),l.parent(A)||l.setEdge(h,F,{weight:0,minlen:g+C[A]})}else A!==h&&l.setEdge(h,A,{weight:0,minlen:m})}w.exports={run:function v(l){var h=x.addDummyNode(l,"root",{},"_root"),m=function f(l){var h={};function m(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(A){m(A,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){m(u,1)}),h}(l),u=c.max(c.values(m))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(A){l.edge(A).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,m){return h+l.edge(m).weight},0)}(l)+1;c.forEach(l.children(),function(A){_(l,h,g,C,u,m,A)}),l.graph().nodeRankFactor=g},cleanup:function p(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(m){l.edge(m).nestingEdge&&l.removeEdge(m)})}}},91496:(w,I,o)=>{"use strict";var c=o(45760),x=o(11510);w.exports={run:function v(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(p){!function _(t,p){var l=p.v,h=t.node(l).rank,m=p.w,u=t.node(m).rank,g=p.name,C=t.edge(p),A=C.labelRank;if(u!==h+1){var k,F,O;for(t.removeEdge(p),O=0,++h;h{var c=o(45760);w.exports=function x(v,_,f){var p,t={};c.forEach(f,function(l){for(var m,u,h=v.parent(l);h;){if((m=v.parent(h))?(u=t[m],t[m]=h):(u=p,p=h),u&&u!==h)return void _.setEdge(u,h);h=m}})}},81323:(w,I,o)=>{var c=o(45760);w.exports=function x(v,_){return c.map(_,function(f){var t=v.inEdges(f);if(t.length){var p=c.reduce(t,function(l,h){var m=v.edge(h),u=v.node(h.v);return{sum:l.sum+m.weight*u.order,weight:l.weight+m.weight}},{sum:0,weight:0});return{v:f,barycenter:p.sum/p.weight,weight:p.weight}}return{v:f}})}},1686:(w,I,o)=>{var c=o(45760),x=o(36456).Graph;w.exports=function v(f,t,p){var l=function _(f){for(var t;f.hasNode(t=c.uniqueId("_root")););return t}(f),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(m){return f.node(m)});return c.forEach(f.nodes(),function(m){var u=f.node(m),g=f.parent(m);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(m),h.setParent(m,g||l),c.forEach(f[p](m),function(C){var A=C.v===m?C.w:C.v,k=h.edge(A,m),F=c.isUndefined(k)?0:k.weight;h.setEdge(A,m,{weight:f.edge(C).weight+F})}),c.has(u,"minRank")&&h.setNode(m,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,I,o)=>{"use strict";var c=o(45760);function v(_,f,t){for(var p=c.zipObject(t,c.map(t,function(C,A){return A})),l=c.flatten(c.map(f,function(C){return c.sortBy(c.map(_.outEdges(C),function(A){return{pos:p[A.w],weight:_.edge(A).weight}}),"pos")}),!0),h=1;h0;)A%2&&(k+=u[A+1]),u[A=A-1>>1]+=C.weight;g+=C.weight*k})),g}w.exports=function x(_,f){for(var t=0,p=1;p{"use strict";var c=o(45760),x=o(49402),v=o(18796),_=o(61057),f=o(1686),t=o(33034),p=o(36456).Graph,l=o(11510);function m(C,A,k){return c.map(A,function(F){return f(C,F,k)})}function u(C,A){var k=new p;c.forEach(C,function(F){var O=F.graph().root,R=_(F,O,k,A);c.forEach(R.vs,function(U,V){F.node(U).order=V}),t(F,k,R.vs)})}function g(C,A){c.forEach(A,function(k){c.forEach(k,function(F,O){C.node(F).order=O})})}w.exports=function h(C){var A=l.maxRank(C),k=m(C,c.range(1,A+1),"inEdges"),F=m(C,c.range(A-1,-1,-1),"outEdges"),O=x(C);g(C,O);for(var U,R=Number.POSITIVE_INFINITY,V=0,W=0;W<4;++V,++W){u(V%2?k:F,V%4>=2),O=l.buildLayerMatrix(C);var rt=v(C,O);rt{"use strict";var c=o(45760);w.exports=function x(v){var _={},f=c.filter(v.nodes(),function(m){return!v.children(m).length}),t=c.max(c.map(f,function(m){return v.node(m).rank})),p=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(f,function(m){return v.node(m).rank});return c.forEach(h,function l(m){if(!c.has(_,m)){_[m]=!0;var u=v.node(m);p[u.rank].push(m),c.forEach(v.successors(m),l)}}),p}},83826:(w,I,o)=>{"use strict";var c=o(45760);w.exports=function x(f,t){var p={};return c.forEach(f,function(h,m){var u=p[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:m};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var m=p[h.v],u=p[h.w];!c.isUndefined(m)&&!c.isUndefined(u)&&(u.indegree++,m.out.push(p[h.w]))}),function v(f){var t=[];function p(m){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(m.barycenter)||u.barycenter>=m.barycenter)&&function _(f,t){var p=0,l=0;f.weight&&(p+=f.barycenter*f.weight,l+=f.weight),t.weight&&(p+=t.barycenter*t.weight,l+=t.weight),f.vs=t.vs.concat(f.vs),f.barycenter=p/l,f.weight=l,f.i=Math.min(t.i,f.i),t.merged=!0}(m,u)}}function l(m){return function(u){u.in.push(m),0==--u.indegree&&f.push(u)}}for(;f.length;){var h=f.pop();t.push(h),c.forEach(h.in.reverse(),p(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(m){return!m.merged}),function(m){return c.pick(m,["vs","i","barycenter","weight"])})}(c.filter(p,function(h){return!h.indegree}))}},61057:(w,I,o)=>{var c=o(45760),x=o(81323),v=o(83826),_=o(93803);w.exports=function f(l,h,m,u){var g=l.children(h),C=l.node(h),A=C?C.borderLeft:void 0,k=C?C.borderRight:void 0,F={};A&&(g=c.filter(g,function(rt){return rt!==A&&rt!==k}));var O=x(l,g);c.forEach(O,function(rt){if(l.children(rt.v).length){var nt=f(l,rt.v,m,u);F[rt.v]=nt,c.has(nt,"barycenter")&&function p(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)}(rt,nt)}});var R=v(O,m);!function t(l,h){c.forEach(l,function(m){m.vs=c.flatten(m.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(R,F);var U=_(R,u);if(A&&(U.vs=c.flatten([A,U.vs,k],!0),l.predecessors(A).length)){var V=l.node(l.predecessors(A)[0]),W=l.node(l.predecessors(k)[0]);c.has(U,"barycenter")||(U.barycenter=0,U.weight=0),U.barycenter=(U.barycenter*U.weight+V.order+W.order)/(U.weight+2),U.weight+=2}return U}},93803:(w,I,o)=>{var c=o(45760),x=o(11510);function _(t,p,l){for(var h;p.length&&(h=c.last(p)).i<=l;)p.pop(),t.push(h.vs),l++;return l}w.exports=function v(t,p){var l=x.partition(t,function(F){return c.has(F,"barycenter")}),h=l.lhs,m=c.sortBy(l.rhs,function(F){return-F.i}),u=[],g=0,C=0,A=0;h.sort(function f(t){return function(p,l){return p.barycenterl.barycenter?1:t?l.i-p.i:p.i-l.i}}(!!p)),A=_(u,m,A),c.forEach(h,function(F){A+=F.vs.length,u.push(F.vs),g+=F.barycenter*F.weight,C+=F.weight,A=_(u,m,A)});var k={vs:c.flatten(u,!0)};return C&&(k.barycenter=g/C,k.weight=C),k}},60162:(w,I,o)=>{var c=o(45760);w.exports=function x(f){var t=function _(f){var t={},p=0;return c.forEach(f.children(),function l(h){var m=p;c.forEach(f.children(h),l),t[h]={low:m,lim:p++}}),t}(f);c.forEach(f.graph().dummyChains,function(p){for(var l=f.node(p),h=l.edgeObj,m=function v(f,t,p,l){var C,A,h=[],m=[],u=Math.min(t[p].low,t[l].low),g=Math.max(t[p].lim,t[l].lim);C=p;do{C=f.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(A=C,C=l;(C=f.parent(C))!==A;)m.push(C);return{path:h.concat(m.reverse()),lca:A}}(f,t,h.v,h.w),u=m.path,g=m.lca,C=0,A=u[C],k=!0;p!==h.w;){if(l=f.node(p),k){for(;(A=u[C])!==g&&f.node(A).maxRank{"use strict";var c=o(45760),x=o(36456).Graph,v=o(11510);function _(R,U){var V={};return c.reduce(U,function W(rt,nt){var ut=0,J=0,tt=rt.length,Q=c.last(nt);return c.forEach(nt,function(at,H){var K=function t(R,U){if(R.node(U).dummy)return c.find(R.predecessors(U),function(V){return R.node(V).dummy})}(R,at),lt=K?R.node(K).order:tt;(K||at===Q)&&(c.forEach(nt.slice(J,H+1),function(it){c.forEach(R.predecessors(it),function(z){var E=R.node(z),Ct=E.order;(CtQ)&&p(V,K,at)})})}return c.reduce(U,function rt(nt,ut){var tt,J=-1,Q=0;return c.forEach(ut,function(at,H){if("border"===R.node(at).dummy){var K=R.predecessors(at);K.length&&(tt=R.node(K[0]).order,W(ut,Q,H,J,tt),Q=H,J=tt)}W(ut,Q,ut.length,tt,nt.length)}),ut}),V}function p(R,U,V){if(U>V){var W=U;U=V,V=W}var rt=R[U];rt||(R[U]=rt={}),rt[V]=!0}function l(R,U,V){if(U>V){var W=U;U=V,V=W}return c.has(R[U],V)}function h(R,U,V,W){var rt={},nt={},ut={};return c.forEach(U,function(J){c.forEach(J,function(tt,Q){rt[tt]=tt,nt[tt]=tt,ut[tt]=Q})}),c.forEach(U,function(J){var tt=-1;c.forEach(J,function(Q){var at=W(Q);if(at.length)for(var H=((at=c.sortBy(at,function(z){return ut[z]})).length-1)/2,K=Math.floor(H),lt=Math.ceil(H);K<=lt;++K){var it=at[K];nt[Q]===Q&&tt{"use strict";var c=o(45760),x=o(11510),v=o(54058).positionX;w.exports=function _(t){(function f(t){var p=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(p,function(m){var u=c.max(c.map(m,function(g){return t.node(g).height}));c.forEach(m,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(v(t),function(p,l){t.node(l).x=p})}},96632:(w,I,o)=>{"use strict";var c=o(45760),x=o(36456).Graph,v=o(1916).slack;function f(l,h){return c.forEach(l.nodes(),function m(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,A=u===C?g.w:C;!l.hasNode(A)&&!v(h,g)&&(l.setNode(A,{}),l.setEdge(u,A,{}),m(A))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(m){if(l.hasNode(m.v)!==l.hasNode(m.w))return v(h,m)})}function p(l,h,m){c.forEach(l.nodes(),function(u){h.node(u).rank+=m})}w.exports=function _(l){var g,C,h=new x({directed:!1}),m=l.nodes()[0],u=l.nodeCount();for(h.setNode(m,{});f(h,l){"use strict";var x=o(1916).longestPath,v=o(96632),_=o(63804);w.exports=function f(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){_(h)}(h);break;case"tight-tree":!function p(h){x(h),v(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,I,o)=>{"use strict";var c=o(45760),x=o(96632),v=o(1916).slack,_=o(1916).longestPath,f=o(36456).alg.preorder,t=o(36456).alg.postorder,p=o(11510).simplify;function l(V){V=p(V),_(V);var rt,W=x(V);for(g(W),h(W,V);rt=A(W);)F(W,V,rt,k(W,V,rt))}function h(V,W){var rt=t(V,V.nodes());rt=rt.slice(0,rt.length-1),c.forEach(rt,function(nt){!function m(V,W,rt){var nt=V.node(rt);V.edge(rt,nt.parent).cutvalue=u(V,W,rt)}(V,W,nt)})}function u(V,W,rt){var ut=V.node(rt).parent,J=!0,tt=W.edge(rt,ut),Q=0;return tt||(J=!1,tt=W.edge(ut,rt)),Q=tt.weight,c.forEach(W.nodeEdges(rt),function(at){var H=at.v===rt,K=H?at.w:at.v;if(K!==ut){var lt=H===J,it=W.edge(at).weight;if(Q+=lt?it:-it,function R(V,W,rt){return V.hasEdge(W,rt)}(V,rt,K)){var z=V.edge(rt,K).cutvalue;Q+=lt?-z:z}}}),Q}function g(V,W){arguments.length<2&&(W=V.nodes()[0]),C(V,{},1,W)}function C(V,W,rt,nt,ut){var J=rt,tt=V.node(nt);return W[nt]=!0,c.forEach(V.neighbors(nt),function(Q){c.has(W,Q)||(rt=C(V,W,rt,Q,nt))}),tt.low=J,tt.lim=rt++,ut?tt.parent=ut:delete tt.parent,rt}function A(V){return c.find(V.edges(),function(W){return V.edge(W).cutvalue<0})}function k(V,W,rt){var nt=rt.v,ut=rt.w;W.hasEdge(nt,ut)||(nt=rt.w,ut=rt.v);var J=V.node(nt),tt=V.node(ut),Q=J,at=!1;J.lim>tt.lim&&(Q=tt,at=!0);var H=c.filter(W.edges(),function(K){return at===U(0,V.node(K.v),Q)&&at!==U(0,V.node(K.w),Q)});return c.minBy(H,function(K){return v(W,K)})}function F(V,W,rt,nt){V.removeEdge(rt.v,rt.w),V.setEdge(nt.v,nt.w,{}),g(V),h(V,W),function O(V,W){var rt=c.find(V.nodes(),function(ut){return!W.node(ut).parent}),nt=f(V,rt);nt=nt.slice(1),c.forEach(nt,function(ut){var J=V.node(ut).parent,tt=W.edge(ut,J),Q=!1;tt||(tt=W.edge(J,ut),Q=!0),W.node(ut).rank=W.node(J).rank+(Q?tt.minlen:-tt.minlen)})}(V,W)}function U(V,W,rt){return rt.low<=W.lim&&W.lim<=rt.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=A,l.enterEdge=k,l.exchangeEdges=F},1916:(w,I,o)=>{"use strict";var c=o(45760);w.exports={longestPath:function x(_){var f={};c.forEach(_.sources(),function t(p){var l=_.node(p);if(c.has(f,p))return l.rank;f[p]=!0;var h=c.min(c.map(_.outEdges(p),function(m){return t(m.w)-_.edge(m).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function v(_,f){return _.node(f.w).rank-_.node(f.v).rank-_.edge(f).minlen}}},11510:(w,I,o)=>{"use strict";var c=o(45760),x=o(36456).Graph;function v(O,R,U,V){var W;do{W=c.uniqueId(V)}while(O.hasNode(W));return U.dummy=R,O.setNode(W,U),W}function C(O){return c.max(c.map(O.nodes(),function(R){var U=O.node(R).rank;if(!c.isUndefined(U))return U}))}w.exports={addDummyNode:v,simplify:function _(O){var R=(new x).setGraph(O.graph());return c.forEach(O.nodes(),function(U){R.setNode(U,O.node(U))}),c.forEach(O.edges(),function(U){var V=R.edge(U.v,U.w)||{weight:0,minlen:1},W=O.edge(U);R.setEdge(U.v,U.w,{weight:V.weight+W.weight,minlen:Math.max(V.minlen,W.minlen)})}),R},asNonCompoundGraph:function f(O){var R=new x({multigraph:O.isMultigraph()}).setGraph(O.graph());return c.forEach(O.nodes(),function(U){O.children(U).length||R.setNode(U,O.node(U))}),c.forEach(O.edges(),function(U){R.setEdge(U,O.edge(U))}),R},successorWeights:function t(O){var R=c.map(O.nodes(),function(U){var V={};return c.forEach(O.outEdges(U),function(W){V[W.w]=(V[W.w]||0)+O.edge(W).weight}),V});return c.zipObject(O.nodes(),R)},predecessorWeights:function p(O){var R=c.map(O.nodes(),function(U){var V={};return c.forEach(O.inEdges(U),function(W){V[W.v]=(V[W.v]||0)+O.edge(W).weight}),V});return c.zipObject(O.nodes(),R)},intersectRect:function l(O,R){var J,tt,U=O.x,V=O.y,W=R.x-U,rt=R.y-V,nt=O.width/2,ut=O.height/2;if(!W&&!rt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(rt)*nt>Math.abs(W)*ut?(rt<0&&(ut=-ut),J=ut*W/rt,tt=ut):(W<0&&(nt=-nt),J=nt,tt=nt*rt/W),{x:U+J,y:V+tt}},buildLayerMatrix:function h(O){var R=c.map(c.range(C(O)+1),function(){return[]});return c.forEach(O.nodes(),function(U){var V=O.node(U),W=V.rank;c.isUndefined(W)||(R[W][V.order]=U)}),R},normalizeRanks:function m(O){var R=c.min(c.map(O.nodes(),function(U){return O.node(U).rank}));c.forEach(O.nodes(),function(U){var V=O.node(U);c.has(V,"rank")&&(V.rank-=R)})},removeEmptyRanks:function u(O){var R=c.min(c.map(O.nodes(),function(rt){return O.node(rt).rank})),U=[];c.forEach(O.nodes(),function(rt){var nt=O.node(rt).rank-R;U[nt]||(U[nt]=[]),U[nt].push(rt)});var V=0,W=O.graph().nodeRankFactor;c.forEach(U,function(rt,nt){c.isUndefined(rt)&&nt%W!=0?--V:V&&c.forEach(rt,function(ut){O.node(ut).rank+=V})})},addBorderNode:function g(O,R,U,V){var W={width:0,height:0};return arguments.length>=4&&(W.rank=U,W.order=V),v(O,"border",W,R)},maxRank:C,partition:function A(O,R){var U={lhs:[],rhs:[]};return c.forEach(O,function(V){R(V)?U.lhs.push(V):U.rhs.push(V)}),U},time:function k(O,R){var U=c.now();try{return R()}finally{console.log(O+" time: "+(c.now()-U)+"ms")}},notime:function F(O,R){return R()}}},28126:w=>{w.exports="0.8.5"},85510:(w,I,o)=>{var c=o(51838);w.exports={Graph:c.Graph,json:o(21088),alg:o(83430),version:c.version}},86730:(w,I,o)=>{var c=o(79138);w.exports=function x(v){var t,_={},f=[];function p(l){c.has(_,l)||(_[l]=!0,t.push(l),c.each(v.successors(l),p),c.each(v.predecessors(l),p))}return c.each(v.nodes(),function(l){t=[],p(l),t.length&&f.push(t)}),f}},22163:(w,I,o)=>{var c=o(79138);function v(_,f,t,p,l,h){c.has(p,f)||(p[f]=!0,t||h.push(f),c.each(l(f),function(m){v(_,m,t,p,l,h)}),t&&h.push(f))}w.exports=function x(_,f,t){c.isArray(f)||(f=[f]);var p=(_.isDirected()?_.successors:_.neighbors).bind(_),l=[],h={};return c.each(f,function(m){if(!_.hasNode(m))throw new Error("Graph does not have node: "+m);v(_,m,"post"===t,h,p,l)}),l}},25668:(w,I,o)=>{var c=o(61718),x=o(79138);w.exports=function v(_,f,t){return x.transform(_.nodes(),function(p,l){p[l]=c(_,l,f,t)},{})}},61718:(w,I,o)=>{var c=o(79138),x=o(31919);w.exports=function _(t,p,l,h){return function f(t,p,l,h){var g,C,m={},u=new x,A=function(k){var F=k.v!==g?k.v:k.w,O=m[F],R=l(k),U=C.distance+R;if(R<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+k+" Weight: "+R);U0&&(g=u.removeMin(),(C=m[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(A);return m}(t,String(p),l||v,h||function(m){return t.outEdges(m)})};var v=c.constant(1)},9611:(w,I,o)=>{var c=o(79138),x=o(73585);w.exports=function v(_){return c.filter(x(_),function(f){return f.length>1||1===f.length&&_.hasEdge(f[0],f[0])})}},22881:(w,I,o)=>{var c=o(79138);w.exports=function v(f,t,p){return function _(f,t,p){var l={},h=f.nodes();return h.forEach(function(m){l[m]={},l[m][m]={distance:0},h.forEach(function(u){m!==u&&(l[m][u]={distance:Number.POSITIVE_INFINITY})}),p(m).forEach(function(u){var g=u.v===m?u.w:u.v,C=t(u);l[m][g]={distance:C,predecessor:m}})}),h.forEach(function(m){var u=l[m];h.forEach(function(g){var C=l[g];h.forEach(function(A){var F=u[A],O=C[A],R=C[m].distance+F.distance;R{w.exports={components:o(86730),dijkstra:o(61718),dijkstraAll:o(25668),findCycles:o(9611),floydWarshall:o(22881),isAcyclic:o(46693),postorder:o(46694),preorder:o(5330),prim:o(46823),tarjan:o(73585),topsort:o(52180)}},46693:(w,I,o)=>{var c=o(52180);w.exports=function x(v){try{c(v)}catch(_){if(_ instanceof c.CycleException)return!1;throw _}return!0}},46694:(w,I,o)=>{var c=o(22163);w.exports=function x(v,_){return c(v,_,"post")}},5330:(w,I,o)=>{var c=o(22163);w.exports=function x(v,_){return c(v,_,"pre")}},46823:(w,I,o)=>{var c=o(79138),x=o(66568),v=o(31919);w.exports=function _(f,t){var m,p=new x,l={},h=new v;function u(C){var A=C.v===m?C.w:C.v,k=h.priority(A);if(void 0!==k){var F=t(C);F0;){if(m=h.removeMin(),c.has(l,m))p.setEdge(m,l[m]);else{if(g)throw new Error("Input graph is not connected: "+f);g=!0}f.nodeEdges(m).forEach(u)}return p}},73585:(w,I,o)=>{var c=o(79138);w.exports=function x(v){var _=0,f=[],t={},p=[];function l(h){var m=t[h]={onStack:!0,lowlink:_,index:_++};if(f.push(h),v.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(m.lowlink=Math.min(m.lowlink,t[C].index)):(l(C),m.lowlink=Math.min(m.lowlink,t[C].lowlink))}),m.lowlink===m.index){var g,u=[];do{g=f.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);p.push(u)}}return v.nodes().forEach(function(h){c.has(t,h)||l(h)}),p}},52180:(w,I,o)=>{var c=o(79138);function x(_){var f={},t={},p=[];if(c.each(_.sinks(),function l(h){if(c.has(t,h))throw new v;c.has(f,h)||(t[h]=!0,f[h]=!0,c.each(_.predecessors(h),l),delete t[h],p.push(h))}),c.size(f)!==_.nodeCount())throw new v;return p}function v(){}w.exports=x,x.CycleException=v,v.prototype=new Error},31919:(w,I,o)=>{var c=o(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(v){return v.key})},x.prototype.has=function(v){return c.has(this._keyIndices,v)},x.prototype.priority=function(v){var _=this._keyIndices[v];if(void 0!==_)return this._arr[_].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(v,_){var f=this._keyIndices;if(v=String(v),!c.has(f,v)){var t=this._arr,p=t.length;return f[v]=p,t.push({key:v,priority:_}),this._decrease(p),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var v=this._arr.pop();return delete this._keyIndices[v.key],this._heapify(0),v.key},x.prototype.decrease=function(v,_){var f=this._keyIndices[v];if(_>this._arr[f].priority)throw new Error("New priority is greater than current priority. Key: "+v+" Old: "+this._arr[f].priority+" New: "+_);this._arr[f].priority=_,this._decrease(f)},x.prototype._heapify=function(v){var _=this._arr,f=2*v,t=f+1,p=v;f<_.length&&(p=_[f].priority<_[p].priority?f:p,t<_.length&&(p=_[t].priority<_[p].priority?t:p),p!==v&&(this._swap(v,p),this._heapify(p)))},x.prototype._decrease=function(v){for(var t,_=this._arr,f=_[v].priority;0!==v&&!(_[t=v>>1].priority{"use strict";var c=o(79138);w.exports=f;var v="\0";function f(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[v]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function p(u,g){--u[g]||delete u[g]}function l(u,g,C,A){var k=""+g,F=""+C;if(!u&&k>F){var O=k;k=F,F=O}return k+"\x01"+F+"\x01"+(c.isUndefined(A)?"\0":A)}function h(u,g,C,A){var k=""+g,F=""+C;if(!u&&k>F){var O=k;k=F,F=O}var R={v:k,w:F};return A&&(R.name=A),R}function m(u,g){return l(u,g.v,g.w,g.name)}f.prototype._nodeCount=0,f.prototype._edgeCount=0,f.prototype.isDirected=function(){return this._isDirected},f.prototype.isMultigraph=function(){return this._isMultigraph},f.prototype.isCompound=function(){return this._isCompound},f.prototype.setGraph=function(u){return this._label=u,this},f.prototype.graph=function(){return this._label},f.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},f.prototype.nodeCount=function(){return this._nodeCount},f.prototype.nodes=function(){return c.keys(this._nodes)},f.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},f.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},f.prototype.setNodes=function(u,g){var C=arguments,A=this;return c.each(u,function(k){C.length>1?A.setNode(k,g):A.setNode(k)}),this},f.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]=v,this._children[u]={},this._children[v][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},f.prototype.node=function(u){return this._nodes[u]},f.prototype.hasNode=function(u){return c.has(this._nodes,u)},f.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(A){g.removeEdge(g._edgeObjs[A])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(A){g.setParent(A)}),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},f.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=v;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},f.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},f.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==v)return g}},f.prototype.children=function(u){if(c.isUndefined(u)&&(u=v),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===v)return this.nodes();if(this.hasNode(u))return[]}},f.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},f.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},f.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},f.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},f.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(F,O){u(O)&&g.setNode(O,F)}),c.each(this._edgeObjs,function(F){g.hasNode(F.v)&&g.hasNode(F.w)&&g.setEdge(F,C.edge(F))});var A={};function k(F){var O=C.parent(F);return void 0===O||g.hasNode(O)?(A[F]=O,O):O in A?A[O]:k(O)}return this._isCompound&&c.each(g.nodes(),function(F){g.setParent(F,k(F))}),g},f.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},f.prototype.edgeCount=function(){return this._edgeCount},f.prototype.edges=function(){return c.values(this._edgeObjs)},f.prototype.setPath=function(u,g){var C=this,A=arguments;return c.reduce(u,function(k,F){return A.length>1?C.setEdge(k,F,g):C.setEdge(k,F),F}),this},f.prototype.setEdge=function(){var u,g,C,A,k=!1,F=arguments[0];"object"==typeof F&&null!==F&&"v"in F?(u=F.v,g=F.w,C=F.name,2===arguments.length&&(A=arguments[1],k=!0)):(u=F,g=arguments[1],C=arguments[3],arguments.length>2&&(A=arguments[2],k=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var O=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,O))return k&&(this._edgeLabels[O]=A),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[O]=k?A: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[O]=R,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][O]=R,this._out[u][O]=R,this._edgeCount++,this},f.prototype.edge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[A]},f.prototype.hasEdge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,A)},f.prototype.removeEdge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),k=this._edgeObjs[A];return k&&(u=k.v,g=k.w,delete this._edgeLabels[A],delete this._edgeObjs[A],p(this._preds[g],u),p(this._sucs[u],g),delete this._in[g][A],delete this._out[u][A],this._edgeCount--),this},f.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var A=c.values(C);return g?c.filter(A,function(k){return k.v===g}):A}},f.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var A=c.values(C);return g?c.filter(A,function(k){return k.w===g}):A}},f.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,I,o)=>{w.exports={Graph:o(66568),version:o(75089)}},21088:(w,I,o)=>{var c=o(79138),x=o(66568);function _(p){return c.map(p.nodes(),function(l){var h=p.node(l),m=p.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(m)||(u.parent=m),u})}function f(p){return c.map(p.edges(),function(l){var h=p.edge(l),m={v:l.v,w:l.w};return c.isUndefined(l.name)||(m.name=l.name),c.isUndefined(h)||(m.value=h),m})}w.exports={write:function v(p){var l={options:{directed:p.isDirected(),multigraph:p.isMultigraph(),compound:p.isCompound()},nodes:_(p),edges:f(p)};return c.isUndefined(p.graph())||(l.value=c.clone(p.graph())),l},read:function t(p){var l=new x(p.options).setGraph(p.value);return c.each(p.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(p.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,I,o)=>{var c;try{c={clone:o(11094),constant:o(76684),each:o(35474),filter:o(35281),has:o(54842),isArray:o(21503),isEmpty:o(71973),isFunction:o(75946),isUndefined:o(34235),keys:o(118),map:o(19984),reduce:o(81337),size:o(55637),transform:o(89416),union:o(68921),values:o(90377)}}catch(x){}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},40717:(w,I,o)=>{"use strict";var c=o(50623);function x(v){return!0===c(v)&&"[object Object]"===Object.prototype.toString.call(v)}w.exports=function(_){var f,t;return!(!1===x(_)||(f=_.constructor,"function"!=typeof f)||(t=f.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},50623:w=>{"use strict";w.exports=function(o){return null!=o&&"object"==typeof o&&!1===Array.isArray(o)}},52872:w=>{var I=Object.prototype.toString;function o(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(m){if(void 0===m)return"undefined";if(null===m)return"null";var u=typeof m;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 f(h,m){return"GeneratorFunction"===o(h)}(m)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(m))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(m))return"buffer";if(function p(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(m){if(-1!==m.message.indexOf("callee"))return!0}return!1}(m))return"arguments";if(function v(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(m))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(m))return"error";if(function _(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(m))return"regexp";switch(o(m)){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}(m))return"generator";switch(u=I.call(m)){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,I,o)=>{var v=o(53436)(o(12119),"DataView");w.exports=v},54994:(w,I,o)=>{var c=o(64312),x=o(46421),v=o(15764),_=o(18685),f=o(26676);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var c=o(41840),x=o(34378),v=o(54981),_=o(67343),f=o(98895);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var v=o(53436)(o(12119),"Map");w.exports=v},99850:(w,I,o)=>{var c=o(10638),x=o(11184),v=o(70866),_=o(43771),f=o(51772);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var v=o(53436)(o(12119),"Promise");w.exports=v},46323:(w,I,o)=>{var v=o(53436)(o(12119),"Set");w.exports=v},58849:(w,I,o)=>{var c=o(99850),x=o(4600),v=o(31387);function _(f){var t=-1,p=null==f?0:f.length;for(this.__data__=new c;++t{var c=o(9215),x=o(13720),v=o(64410),_=o(45576),f=o(22247),t=o(41585);function p(l){var h=this.__data__=new c(l);this.size=h.size}p.prototype.clear=x,p.prototype.delete=v,p.prototype.get=_,p.prototype.has=f,p.prototype.set=t,w.exports=p},60443:(w,I,o)=>{var c=o(12119);w.exports=c.Symbol},73457:(w,I,o)=>{var c=o(12119);w.exports=c.Uint8Array},24243:(w,I,o)=>{var v=o(53436)(o(12119),"WeakMap");w.exports=v},26999:w=>{w.exports=function I(o,c,x){switch(x.length){case 0:return o.call(c);case 1:return o.call(c,x[0]);case 2:return o.call(c,x[0],x[1]);case 3:return o.call(c,x[0],x[1],x[2])}return o.apply(c,x)}},96837:w=>{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length;++x{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length,_=0,f=[];++x{var c=o(14164);w.exports=function x(v,_){return!(null==v||!v.length)&&c(v,_,0)>-1}},37609:w=>{w.exports=function I(o,c,x){for(var v=-1,_=null==o?0:o.length;++v<_;)if(x(c,o[v]))return!0;return!1}},72271:(w,I,o)=>{var c=o(85334),x=o(77151),v=o(21503),_=o(80891),f=o(58442),t=o(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(m,u){var g=v(m),C=!g&&x(m),A=!g&&!C&&_(m),k=!g&&!C&&!A&&t(m),F=g||C||A||k,O=F?c(m.length,String):[],R=O.length;for(var U in m)(u||l.call(m,U))&&(!F||!("length"==U||A&&("offset"==U||"parent"==U)||k&&("buffer"==U||"byteLength"==U||"byteOffset"==U)||f(U,R)))&&O.push(U);return O}},84633:w=>{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length,_=Array(v);++x{w.exports=function I(o,c){for(var x=-1,v=c.length,_=o.length;++x{w.exports=function I(o,c,x,v){var _=-1,f=null==o?0:o.length;for(v&&f&&(x=o[++_]);++_{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length;++x{var x=o(11847)("length");w.exports=x},49276:(w,I,o)=>{var c=o(85683),x=o(20217);w.exports=function v(_,f,t){(void 0!==t&&!x(_[f],t)||void 0===t&&!(f in _))&&c(_,f,t)}},89719:(w,I,o)=>{var c=o(85683),x=o(20217),_=Object.prototype.hasOwnProperty;w.exports=function f(t,p,l){var h=t[p];(!_.call(t,p)||!x(h,l)||void 0===l&&!(p in t))&&c(t,p,l)}},43503:(w,I,o)=>{var c=o(20217);w.exports=function x(v,_){for(var f=v.length;f--;)if(c(v[f][0],_))return f;return-1}},94121:(w,I,o)=>{var c=o(31989),x=o(118);w.exports=function v(_,f){return _&&c(f,x(f),_)}},99287:(w,I,o)=>{var c=o(31989),x=o(16555);w.exports=function v(_,f){return _&&c(f,x(f),_)}},85683:(w,I,o)=>{var c=o(56713);w.exports=function x(v,_,f){"__proto__"==_&&c?c(v,_,{configurable:!0,enumerable:!0,value:f,writable:!0}):v[_]=f}},44462:(w,I,o)=>{var c=o(2858),x=o(96837),v=o(89719),_=o(94121),f=o(99287),t=o(19292),p=o(99454),l=o(84444),h=o(59905),m=o(47597),u=o(6967),g=o(28794),C=o(76782),A=o(37878),k=o(4264),F=o(21503),O=o(80891),R=o(13222),U=o(25940),V=o(90799),W=o(118),rt=o(16555),tt="[object Arguments]",lt="[object Function]",Ct="[object Object]",Ve={};Ve[tt]=Ve["[object Array]"]=Ve["[object ArrayBuffer]"]=Ve["[object DataView]"]=Ve["[object Boolean]"]=Ve["[object Date]"]=Ve["[object Float32Array]"]=Ve["[object Float64Array]"]=Ve["[object Int8Array]"]=Ve["[object Int16Array]"]=Ve["[object Int32Array]"]=Ve["[object Map]"]=Ve["[object Number]"]=Ve[Ct]=Ve["[object RegExp]"]=Ve["[object Set]"]=Ve["[object String]"]=Ve["[object Symbol]"]=Ve["[object Uint8Array]"]=Ve["[object Uint8ClampedArray]"]=Ve["[object Uint16Array]"]=Ve["[object Uint32Array]"]=!0,Ve["[object Error]"]=Ve[lt]=Ve["[object WeakMap]"]=!1,w.exports=function Ce(Ae,Yn,Wn,ni,xn,sn){var je,wn=1&Yn,In=2&Yn,ze=4&Yn;if(Wn&&(je=xn?Wn(Ae,ni,xn,sn):Wn(Ae)),void 0!==je)return je;if(!U(Ae))return Ae;var ci=F(Ae);if(ci){if(je=C(Ae),!wn)return p(Ae,je)}else{var Mn=g(Ae),Tn=Mn==lt||"[object GeneratorFunction]"==Mn;if(O(Ae))return t(Ae,wn);if(Mn==Ct||Mn==tt||Tn&&!xn){if(je=In||Tn?{}:k(Ae),!wn)return In?h(Ae,f(je,Ae)):l(Ae,_(je,Ae))}else{if(!Ve[Mn])return xn?Ae:{};je=A(Ae,Mn,wn)}}sn||(sn=new c);var Hn=sn.get(Ae);if(Hn)return Hn;sn.set(Ae,je),V(Ae)?Ae.forEach(function(Xn){je.add(Ce(Xn,Yn,Wn,Xn,Ae,sn))}):R(Ae)&&Ae.forEach(function(Xn,jn){je.set(jn,Ce(Xn,Yn,Wn,jn,Ae,sn))});var Ne=ci?void 0:(ze?In?u:m:In?rt:W)(Ae);return x(Ne||Ae,function(Xn,jn){Ne&&(Xn=Ae[jn=Xn]),v(je,jn,Ce(Xn,Yn,Wn,jn,Ae,sn))}),je}},78858:(w,I,o)=>{var c=o(25940),x=Object.create,v=function(){function _(){}return function(f){if(!c(f))return{};if(x)return x(f);_.prototype=f;var t=new _;return _.prototype=void 0,t}}();w.exports=v},43132:(w,I,o)=>{var c=o(45184),v=o(16539)(c);w.exports=v},67308:(w,I,o)=>{var c=o(44129);w.exports=function x(v,_,f){for(var t=-1,p=v.length;++t{var c=o(43132);w.exports=function x(v,_){var f=[];return c(v,function(t,p,l){_(t,p,l)&&f.push(t)}),f}},65317:w=>{w.exports=function I(o,c,x,v){for(var _=o.length,f=x+(v?1:-1);v?f--:++f<_;)if(c(o[f],f,o))return f;return-1}},50686:(w,I,o)=>{var c=o(85059),x=o(75039);w.exports=function v(_,f,t,p,l){var h=-1,m=_.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?f>1?v(u,f-1,t,p,l):c(l,u):p||(l[l.length]=u)}return l}},30755:(w,I,o)=>{var x=o(40456)();w.exports=x},45184:(w,I,o)=>{var c=o(30755),x=o(118);w.exports=function v(_,f){return _&&c(_,f,x)}},15456:(w,I,o)=>{var c=o(65456),x=o(68533);w.exports=function v(_,f){for(var t=0,p=(f=c(f,_)).length;null!=_&&t{var c=o(85059),x=o(21503);w.exports=function v(_,f,t){var p=f(_);return x(_)?p:c(p,t(_))}},93337:(w,I,o)=>{var c=o(60443),x=o(21318),v=o(92902),t=c?c.toStringTag:void 0;w.exports=function p(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):v(l)}},31100:w=>{w.exports=function I(o,c){return o>c}},84781:w=>{var o=Object.prototype.hasOwnProperty;w.exports=function c(x,v){return null!=x&&o.call(x,v)}},69989:w=>{w.exports=function I(o,c){return null!=o&&c in Object(o)}},14164:(w,I,o)=>{var c=o(65317),x=o(70968),v=o(24977);w.exports=function _(f,t,p){return t==t?v(f,t,p):c(f,x,p)}},60186:(w,I,o)=>{var c=o(93337),x=o(72671);w.exports=function _(f){return x(f)&&"[object Arguments]"==c(f)}},85740:(w,I,o)=>{var c=o(58325),x=o(72671);w.exports=function v(_,f,t,p,l){return _===f||(null==_||null==f||!x(_)&&!x(f)?_!=_&&f!=f:c(_,f,t,p,v,l))}},58325:(w,I,o)=>{var c=o(2858),x=o(63914),v=o(78583),_=o(32286),f=o(28794),t=o(21503),p=o(80891),l=o(48159),m="[object Arguments]",u="[object Array]",g="[object Object]",A=Object.prototype.hasOwnProperty;w.exports=function k(F,O,R,U,V,W){var rt=t(F),nt=t(O),ut=rt?u:f(F),J=nt?u:f(O),tt=(ut=ut==m?g:ut)==g,Q=(J=J==m?g:J)==g,at=ut==J;if(at&&p(F)){if(!p(O))return!1;rt=!0,tt=!1}if(at&&!tt)return W||(W=new c),rt||l(F)?x(F,O,R,U,V,W):v(F,O,ut,R,U,V,W);if(!(1&R)){var H=tt&&A.call(F,"__wrapped__"),K=Q&&A.call(O,"__wrapped__");if(H||K){var lt=H?F.value():F,it=K?O.value():O;return W||(W=new c),V(lt,it,R,U,W)}}return!!at&&(W||(W=new c),_(F,O,R,U,V,W))}},97021:(w,I,o)=>{var c=o(28794),x=o(72671);w.exports=function _(f){return x(f)&&"[object Map]"==c(f)}},40431:(w,I,o)=>{var c=o(2858),x=o(85740);w.exports=function f(t,p,l,h){var m=l.length,u=m,g=!h;if(null==t)return!u;for(t=Object(t);m--;){var C=l[m];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++m{w.exports=function I(o){return o!=o}},37304:(w,I,o)=>{var c=o(75946),x=o(91943),v=o(25940),_=o(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!(!v(C)||x(C))&&(c(C)?u:t).test(_(C))}},771:(w,I,o)=>{var c=o(28794),x=o(72671);w.exports=function _(f){return x(f)&&"[object Set]"==c(f)}},1083:(w,I,o)=>{var c=o(93337),x=o(96231),v=o(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 H(K){return v(K)&&x(K.length)&&!!at[c(K)]}},96517:(w,I,o)=>{var c=o(98133),x=o(9458),v=o(32608),_=o(21503),f=o(87495);w.exports=function t(p){return"function"==typeof p?p:null==p?v:"object"==typeof p?_(p)?x(p[0],p[1]):c(p):f(p)}},81172:(w,I,o)=>{var c=o(45488),x=o(85491),_=Object.prototype.hasOwnProperty;w.exports=function f(t){if(!c(t))return x(t);var p=[];for(var l in Object(t))_.call(t,l)&&"constructor"!=l&&p.push(l);return p}},92809:(w,I,o)=>{var c=o(25940),x=o(45488),v=o(32158),f=Object.prototype.hasOwnProperty;w.exports=function t(p){if(!c(p))return v(p);var l=x(p),h=[];for(var m in p)"constructor"==m&&(l||!f.call(p,m))||h.push(m);return h}},99069:w=>{w.exports=function I(o,c){return o{var c=o(43132),x=o(56507);w.exports=function v(_,f){var t=-1,p=x(_)?Array(_.length):[];return c(_,function(l,h,m){p[++t]=f(l,h,m)}),p}},98133:(w,I,o)=>{var c=o(40431),x=o(22379),v=o(642);w.exports=function _(f){var t=x(f);return 1==t.length&&t[0][2]?v(t[0][0],t[0][1]):function(p){return p===f||c(p,f,t)}}},9458:(w,I,o)=>{var c=o(85740),x=o(8817),v=o(11172),_=o(45352),f=o(22442),t=o(642),p=o(68533);w.exports=function m(u,g){return _(u)&&f(g)?t(p(u),g):function(C){var A=x(C,u);return void 0===A&&A===g?v(C,u):c(g,A,3)}}},73842:(w,I,o)=>{var c=o(2858),x=o(49276),v=o(30755),_=o(33675),f=o(25940),t=o(16555),p=o(99351);w.exports=function l(h,m,u,g,C){h!==m&&v(m,function(A,k){if(C||(C=new c),f(A))_(h,m,k,u,l,g,C);else{var F=g?g(p(h,k),A,k+"",h,m,C):void 0;void 0===F&&(F=A),x(h,k,F)}},t)}},33675:(w,I,o)=>{var c=o(49276),x=o(19292),v=o(65208),_=o(99454),f=o(4264),t=o(77151),p=o(21503),l=o(92377),h=o(80891),m=o(75946),u=o(25940),g=o(97614),C=o(48159),A=o(99351),k=o(8067);w.exports=function F(O,R,U,V,W,rt,nt){var ut=A(O,U),J=A(R,U),tt=nt.get(J);if(tt)c(O,U,tt);else{var Q=rt?rt(ut,J,U+"",O,R,nt):void 0,at=void 0===Q;if(at){var H=p(J),K=!H&&h(J),lt=!H&&!K&&C(J);Q=J,H||K||lt?p(ut)?Q=ut:l(ut)?Q=_(ut):K?(at=!1,Q=x(J,!0)):lt?(at=!1,Q=v(J,!0)):Q=[]:g(J)||t(J)?(Q=ut,t(ut)?Q=k(ut):(!u(ut)||m(ut))&&(Q=f(J))):at=!1}at&&(nt.set(J,Q),W(Q,J,V,rt,nt),nt.delete(J)),c(O,U,Q)}}},6119:(w,I,o)=>{var c=o(84633),x=o(15456),v=o(96517),_=o(92046),f=o(42061),t=o(85647),p=o(41215),l=o(32608),h=o(21503);w.exports=function m(u,g,C){g=g.length?c(g,function(F){return h(F)?function(O){return x(O,1===F.length?F[0]:F)}:F}):[l];var A=-1;g=c(g,t(v));var k=_(u,function(F,O,R){return{criteria:c(g,function(V){return V(F)}),index:++A,value:F}});return f(k,function(F,O){return p(F,O,C)})}},83021:(w,I,o)=>{var c=o(95495),x=o(11172);w.exports=function v(_,f){return c(_,f,function(t,p){return x(_,p)})}},95495:(w,I,o)=>{var c=o(15456),x=o(55963),v=o(65456);w.exports=function _(f,t,p){for(var l=-1,h=t.length,m={};++l{w.exports=function I(o){return function(c){return null==c?void 0:c[o]}}},39222:(w,I,o)=>{var c=o(15456);w.exports=function x(v){return function(_){return c(_,v)}}},16307:w=>{var I=Math.ceil,o=Math.max;w.exports=function c(x,v,_,f){for(var t=-1,p=o(I((v-x)/(_||1)),0),l=Array(p);p--;)l[f?p:++t]=x,x+=_;return l}},13570:w=>{w.exports=function I(o,c,x,v,_){return _(o,function(f,t,p){x=v?(v=!1,f):c(x,f,t,p)}),x}},23269:(w,I,o)=>{var c=o(32608),x=o(53983),v=o(72185);w.exports=function _(f,t){return v(x(f,t,c),f+"")}},55963:(w,I,o)=>{var c=o(89719),x=o(65456),v=o(58442),_=o(25940),f=o(68533);w.exports=function t(p,l,h,m){if(!_(p))return p;for(var u=-1,g=(l=x(l,p)).length,C=g-1,A=p;null!=A&&++u{var c=o(76684),x=o(56713),v=o(32608);w.exports=x?function(f,t){return x(f,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:v},42061:w=>{w.exports=function I(o,c){var x=o.length;for(o.sort(c);x--;)o[x]=o[x].value;return o}},85334:w=>{w.exports=function I(o,c){for(var x=-1,v=Array(o);++x{var c=o(60443),x=o(84633),v=o(21503),_=o(44129),t=c?c.prototype:void 0,p=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(v(h))return x(h,l)+"";if(_(h))return p?p.call(h):"";var m=h+"";return"0"==m&&1/h==-1/0?"-0":m}},83348:(w,I,o)=>{var c=o(42760),x=/^\s+/;w.exports=function v(_){return _&&_.slice(0,c(_)+1).replace(x,"")}},85647:w=>{w.exports=function I(o){return function(c){return o(c)}}},80707:(w,I,o)=>{var c=o(58849),x=o(61253),v=o(37609),_=o(25972),f=o(14575),t=o(24174);w.exports=function l(h,m,u){var g=-1,C=x,A=h.length,k=!0,F=[],O=F;if(u)k=!1,C=v;else if(A>=200){var R=m?null:f(h);if(R)return t(R);k=!1,C=_,O=new c}else O=m?[]:F;t:for(;++g{var c=o(84633);w.exports=function x(v,_){return c(_,function(f){return v[f]})}},38645:w=>{w.exports=function I(o,c,x){for(var v=-1,_=o.length,f=c.length,t={};++v<_;)x(t,o[v],v{w.exports=function I(o,c){return o.has(c)}},21481:(w,I,o)=>{var c=o(32608);w.exports=function x(v){return"function"==typeof v?v:c}},65456:(w,I,o)=>{var c=o(21503),x=o(45352),v=o(32855),_=o(73943);w.exports=function f(t,p){return c(t)?t:x(t,p)?[t]:v(_(t))}},43362:(w,I,o)=>{var c=o(73457);w.exports=function x(v){var _=new v.constructor(v.byteLength);return new c(_).set(new c(v)),_}},19292:(w,I,o)=>{w=o.nmd(w);var c=o(12119),x=I&&!I.nodeType&&I,v=x&&w&&!w.nodeType&&w,f=v&&v.exports===x?c.Buffer:void 0,t=f?f.allocUnsafe:void 0;w.exports=function p(l,h){if(h)return l.slice();var m=l.length,u=t?t(m):new l.constructor(m);return l.copy(u),u}},17e3:(w,I,o)=>{var c=o(43362);w.exports=function x(v,_){var f=_?c(v.buffer):v.buffer;return new v.constructor(f,v.byteOffset,v.byteLength)}},74098:w=>{var I=/\w*$/;w.exports=function o(c){var x=new c.constructor(c.source,I.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,I,o)=>{var c=o(60443),x=c?c.prototype:void 0,v=x?x.valueOf:void 0;w.exports=function _(f){return v?Object(v.call(f)):{}}},65208:(w,I,o)=>{var c=o(43362);w.exports=function x(v,_){var f=_?c(v.buffer):v.buffer;return new v.constructor(f,v.byteOffset,v.length)}},13443:(w,I,o)=>{var c=o(44129);w.exports=function x(v,_){if(v!==_){var f=void 0!==v,t=null===v,p=v==v,l=c(v),h=void 0!==_,m=null===_,u=_==_,g=c(_);if(!m&&!g&&!l&&v>_||l&&h&&u&&!m&&!g||t&&h&&u||!f&&u||!p)return 1;if(!t&&!l&&!g&&v<_||g&&f&&p&&!t&&!l||m&&f&&p||!h&&p||!u)return-1}return 0}},41215:(w,I,o)=>{var c=o(13443);w.exports=function x(v,_,f){for(var t=-1,p=v.criteria,l=_.criteria,h=p.length,m=f.length;++t=m?u:u*("desc"==f[t]?-1:1)}return v.index-_.index}},99454:w=>{w.exports=function I(o,c){var x=-1,v=o.length;for(c||(c=Array(v));++x{var c=o(89719),x=o(85683);w.exports=function v(_,f,t,p){var l=!t;t||(t={});for(var h=-1,m=f.length;++h{var c=o(31989),x=o(39383);w.exports=function v(_,f){return c(_,x(_),f)}},59905:(w,I,o)=>{var c=o(31989),x=o(53051);w.exports=function v(_,f){return c(_,x(_),f)}},24610:(w,I,o)=>{var c=o(12119);w.exports=c["__core-js_shared__"]},84944:(w,I,o)=>{var c=o(23269),x=o(93342);w.exports=function v(_){return c(function(f,t){var p=-1,l=t.length,h=l>1?t[l-1]:void 0,m=l>2?t[2]:void 0;for(h=_.length>3&&"function"==typeof h?(l--,h):void 0,m&&x(t[0],t[1],m)&&(h=l<3?void 0:h,l=1),f=Object(f);++p{var c=o(56507);w.exports=function x(v,_){return function(f,t){if(null==f)return f;if(!c(f))return v(f,t);for(var p=f.length,l=_?p:-1,h=Object(f);(_?l--:++l{w.exports=function I(o){return function(c,x,v){for(var _=-1,f=Object(c),t=v(c),p=t.length;p--;){var l=t[o?p:++_];if(!1===x(f[l],l,f))break}return c}}},24653:(w,I,o)=>{var c=o(96517),x=o(56507),v=o(118);w.exports=function _(f){return function(t,p,l){var h=Object(t);if(!x(t)){var m=c(p,3);t=v(t),p=function(g){return m(h[g],g,h)}}var u=f(t,p,l);return u>-1?h[m?t[u]:u]:void 0}}},97509:(w,I,o)=>{var c=o(16307),x=o(93342),v=o(12232);w.exports=function _(f){return function(t,p,l){return l&&"number"!=typeof l&&x(t,p,l)&&(p=l=void 0),t=v(t),void 0===p?(p=t,t=0):p=v(p),l=void 0===l?t{var c=o(46323),x=o(12552),v=o(24174),f=c&&1/v(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=f},56713:(w,I,o)=>{var c=o(53436),x=function(){try{var v=c(Object,"defineProperty");return v({},"",{}),v}catch(_){}}();w.exports=x},63914:(w,I,o)=>{var c=o(58849),x=o(79503),v=o(25972);w.exports=function t(p,l,h,m,u,g){var C=1&h,A=p.length,k=l.length;if(A!=k&&!(C&&k>A))return!1;var F=g.get(p),O=g.get(l);if(F&&O)return F==l&&O==p;var R=-1,U=!0,V=2&h?new c:void 0;for(g.set(p,l),g.set(l,p);++R{var c=o(60443),x=o(73457),v=o(20217),_=o(63914),f=o(83205),t=o(24174),V=c?c.prototype:void 0,W=V?V.valueOf:void 0;w.exports=function rt(nt,ut,J,tt,Q,at,H){switch(J){case"[object DataView]":if(nt.byteLength!=ut.byteLength||nt.byteOffset!=ut.byteOffset)return!1;nt=nt.buffer,ut=ut.buffer;case"[object ArrayBuffer]":return!(nt.byteLength!=ut.byteLength||!at(new x(nt),new x(ut)));case"[object Boolean]":case"[object Date]":case"[object Number]":return v(+nt,+ut);case"[object Error]":return nt.name==ut.name&&nt.message==ut.message;case"[object RegExp]":case"[object String]":return nt==ut+"";case"[object Map]":var K=f;case"[object Set]":if(K||(K=t),nt.size!=ut.size&&!(1&tt))return!1;var it=H.get(nt);if(it)return it==ut;tt|=2,H.set(nt,ut);var z=_(K(nt),K(ut),tt,Q,at,H);return H.delete(nt),z;case"[object Symbol]":if(W)return W.call(nt)==W.call(ut)}return!1}},32286:(w,I,o)=>{var c=o(47597),_=Object.prototype.hasOwnProperty;w.exports=function f(t,p,l,h,m,u){var g=1&l,C=c(t),A=C.length;if(A!=c(p).length&&!g)return!1;for(var O=A;O--;){var R=C[O];if(!(g?R in p:_.call(p,R)))return!1}var U=u.get(t),V=u.get(p);if(U&&V)return U==p&&V==t;var W=!0;u.set(t,p),u.set(p,t);for(var rt=g;++O{var c=o(22274),x=o(53983),v=o(72185);w.exports=function _(f){return v(x(f,void 0,c),f+"")}},79122:w=>{var I="object"==typeof global&&global&&global.Object===Object&&global;w.exports=I},47597:(w,I,o)=>{var c=o(38247),x=o(39383),v=o(118);w.exports=function _(f){return c(f,v,x)}},6967:(w,I,o)=>{var c=o(38247),x=o(53051),v=o(16555);w.exports=function _(f){return c(f,v,x)}},54537:(w,I,o)=>{var c=o(23819);w.exports=function x(v,_){var f=v.__data__;return c(_)?f["string"==typeof _?"string":"hash"]:f.map}},22379:(w,I,o)=>{var c=o(22442),x=o(118);w.exports=function v(_){for(var f=x(_),t=f.length;t--;){var p=f[t],l=_[p];f[t]=[p,l,c(l)]}return f}},53436:(w,I,o)=>{var c=o(37304),x=o(51990);w.exports=function v(_,f){var t=x(_,f);return c(t)?t:void 0}},29519:(w,I,o)=>{var x=o(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,I,o)=>{var c=o(60443),x=Object.prototype,v=x.hasOwnProperty,_=x.toString,f=c?c.toStringTag:void 0;w.exports=function t(p){var l=v.call(p,f),h=p[f];try{p[f]=void 0;var m=!0}catch(g){}var u=_.call(p);return m&&(l?p[f]=h:delete p[f]),u}},39383:(w,I,o)=>{var c=o(69779),x=o(49975),_=Object.prototype.propertyIsEnumerable,f=Object.getOwnPropertySymbols;w.exports=f?function(p){return null==p?[]:(p=Object(p),c(f(p),function(l){return _.call(p,l)}))}:x},53051:(w,I,o)=>{var c=o(85059),x=o(29519),v=o(39383),_=o(49975);w.exports=Object.getOwnPropertySymbols?function(p){for(var l=[];p;)c(l,v(p)),p=x(p);return l}:_},28794:(w,I,o)=>{var c=o(37244),x=o(51501),v=o(44267),_=o(46323),f=o(24243),t=o(93337),p=o(52827),l="[object Map]",m="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",A=p(c),k=p(x),F=p(v),O=p(_),R=p(f),U=t;(c&&U(new c(new ArrayBuffer(1)))!=C||x&&U(new x)!=l||v&&U(v.resolve())!=m||_&&U(new _)!=u||f&&U(new f)!=g)&&(U=function(V){var W=t(V),rt="[object Object]"==W?V.constructor:void 0,nt=rt?p(rt):"";if(nt)switch(nt){case A:return C;case k:return l;case F:return m;case O:return u;case R:return g}return W}),w.exports=U},51990:w=>{w.exports=function I(o,c){return null==o?void 0:o[c]}},47283:(w,I,o)=>{var c=o(65456),x=o(77151),v=o(21503),_=o(58442),f=o(96231),t=o(68533);w.exports=function p(l,h,m){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 p(l){return t.test(l)}},64312:(w,I,o)=>{var c=o(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}},15764:(w,I,o)=>{var c=o(60862),_=Object.prototype.hasOwnProperty;w.exports=function f(t){var p=this.__data__;if(c){var l=p[t];return"__lodash_hash_undefined__"===l?void 0:l}return _.call(p,t)?p[t]:void 0}},18685:(w,I,o)=>{var c=o(60862),v=Object.prototype.hasOwnProperty;w.exports=function _(f){var t=this.__data__;return c?void 0!==t[f]:v.call(t,f)}},26676:(w,I,o)=>{var c=o(60862);w.exports=function v(_,f){var t=this.__data__;return this.size+=this.has(_)?0:1,t[_]=c&&void 0===f?"__lodash_hash_undefined__":f,this}},76782:w=>{var o=Object.prototype.hasOwnProperty;w.exports=function c(x){var v=x.length,_=new x.constructor(v);return v&&"string"==typeof x[0]&&o.call(x,"index")&&(_.index=x.index,_.input=x.input),_}},37878:(w,I,o)=>{var c=o(43362),x=o(17e3),v=o(74098),_=o(62533),f=o(65208);w.exports=function J(tt,Q,at){var H=tt.constructor;switch(Q){case"[object ArrayBuffer]":return c(tt);case"[object Boolean]":case"[object Date]":return new H(+tt);case"[object DataView]":return x(tt,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 f(tt,at);case"[object Map]":case"[object Set]":return new H;case"[object Number]":case"[object String]":return new H(tt);case"[object RegExp]":return v(tt);case"[object Symbol]":return _(tt)}}},4264:(w,I,o)=>{var c=o(78858),x=o(29519),v=o(45488);w.exports=function _(f){return"function"!=typeof f.constructor||v(f)?{}:c(x(f))}},75039:(w,I,o)=>{var c=o(60443),x=o(77151),v=o(21503),_=c?c.isConcatSpreadable:void 0;w.exports=function f(t){return v(t)||x(t)||!!(_&&t&&t[_])}},58442:w=>{var o=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,v){var _=typeof x;return!!(v=null==v?9007199254740991:v)&&("number"==_||"symbol"!=_&&o.test(x))&&x>-1&&x%1==0&&x{var c=o(20217),x=o(56507),v=o(58442),_=o(25940);w.exports=function f(t,p,l){if(!_(l))return!1;var h=typeof p;return!!("number"==h?x(l)&&v(p,l.length):"string"==h&&p in l)&&c(l[p],t)}},45352:(w,I,o)=>{var c=o(21503),x=o(44129),v=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;w.exports=function f(t,p){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||_.test(t)||!v.test(t)||null!=p&&t in Object(p)}},23819:w=>{w.exports=function I(o){var c=typeof o;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==o:null===o}},91943:(w,I,o)=>{var _,c=o(24610),x=(_=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"";w.exports=function v(_){return!!x&&x in _}},45488:w=>{var I=Object.prototype;w.exports=function o(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||I)}},22442:(w,I,o)=>{var c=o(25940);w.exports=function x(v){return v==v&&!c(v)}},41840:w=>{w.exports=function I(){this.__data__=[],this.size=0}},34378:(w,I,o)=>{var c=o(43503),v=Array.prototype.splice;w.exports=function _(f){var t=this.__data__,p=c(t,f);return!(p<0||(p==t.length-1?t.pop():v.call(t,p,1),--this.size,0))}},54981:(w,I,o)=>{var c=o(43503);w.exports=function x(v){var _=this.__data__,f=c(_,v);return f<0?void 0:_[f][1]}},67343:(w,I,o)=>{var c=o(43503);w.exports=function x(v){return c(this.__data__,v)>-1}},98895:(w,I,o)=>{var c=o(43503);w.exports=function x(v,_){var f=this.__data__,t=c(f,v);return t<0?(++this.size,f.push([v,_])):f[t][1]=_,this}},10638:(w,I,o)=>{var c=o(54994),x=o(9215),v=o(51501);w.exports=function _(){this.size=0,this.__data__={hash:new c,map:new(v||x),string:new c}}},11184:(w,I,o)=>{var c=o(54537);w.exports=function x(v){var _=c(this,v).delete(v);return this.size-=_?1:0,_}},70866:(w,I,o)=>{var c=o(54537);w.exports=function x(v){return c(this,v).get(v)}},43771:(w,I,o)=>{var c=o(54537);w.exports=function x(v){return c(this,v).has(v)}},51772:(w,I,o)=>{var c=o(54537);w.exports=function x(v,_){var f=c(this,v),t=f.size;return f.set(v,_),this.size+=f.size==t?0:1,this}},83205:w=>{w.exports=function I(o){var c=-1,x=Array(o.size);return o.forEach(function(v,_){x[++c]=[_,v]}),x}},642:w=>{w.exports=function I(o,c){return function(x){return null!=x&&x[o]===c&&(void 0!==c||o in Object(x))}}},15144:(w,I,o)=>{var c=o(30535);w.exports=function v(_){var f=c(_,function(p){return 500===t.size&&t.clear(),p}),t=f.cache;return f}},60862:(w,I,o)=>{var x=o(53436)(Object,"create");w.exports=x},85491:(w,I,o)=>{var x=o(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function I(o){var c=[];if(null!=o)for(var x in Object(o))c.push(x);return c}},73597:(w,I,o)=>{w=o.nmd(w);var c=o(79122),x=I&&!I.nodeType&&I,v=x&&w&&!w.nodeType&&w,f=v&&v.exports===x&&c.process,t=function(){try{return v&&v.require&&v.require("util").types||f&&f.binding&&f.binding("util")}catch(l){}}();w.exports=t},92902:w=>{var o=Object.prototype.toString;w.exports=function c(x){return o.call(x)}},69385:w=>{w.exports=function I(o,c){return function(x){return o(c(x))}}},53983:(w,I,o)=>{var c=o(26999),x=Math.max;w.exports=function v(_,f,t){return f=x(void 0===f?_.length-1:f,0),function(){for(var p=arguments,l=-1,h=x(p.length-f,0),m=Array(h);++l{var c=o(79122),x="object"==typeof self&&self&&self.Object===Object&&self,v=c||x||Function("return this")();w.exports=v},99351:w=>{w.exports=function I(o,c){if(("constructor"!==c||"function"!=typeof o[c])&&"__proto__"!=c)return o[c]}},4600:w=>{w.exports=function o(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function I(o){return this.__data__.has(o)}},24174:w=>{w.exports=function I(o){var c=-1,x=Array(o.size);return o.forEach(function(v){x[++c]=v}),x}},72185:(w,I,o)=>{var c=o(69510),v=o(10029)(c);w.exports=v},10029:w=>{var c=Date.now;w.exports=function x(v){var _=0,f=0;return function(){var t=c(),p=16-(t-f);if(f=t,p>0){if(++_>=800)return arguments[0]}else _=0;return v.apply(void 0,arguments)}}},13720:(w,I,o)=>{var c=o(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function I(o){var c=this.__data__,x=c.delete(o);return this.size=c.size,x}},45576:w=>{w.exports=function I(o){return this.__data__.get(o)}},22247:w=>{w.exports=function I(o){return this.__data__.has(o)}},41585:(w,I,o)=>{var c=o(9215),x=o(51501),v=o(99850);w.exports=function f(t,p){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,p]),this.size=++l.size,this;l=this.__data__=new v(h)}return l.set(t,p),this.size=l.size,this}},24977:w=>{w.exports=function I(o,c,x){for(var v=x-1,_=o.length;++v<_;)if(o[v]===c)return v;return-1}},52315:(w,I,o)=>{var c=o(75481),x=o(77609),v=o(81149);w.exports=function _(f){return x(f)?v(f):c(f)}},32855:(w,I,o)=>{var c=o(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,_=c(function(f){var t=[];return 46===f.charCodeAt(0)&&t.push(""),f.replace(x,function(p,l,h,m){t.push(h?m.replace(v,"$1"):l||p)}),t});w.exports=_},68533:(w,I,o)=>{var c=o(44129);w.exports=function v(_){if("string"==typeof _||c(_))return _;var f=_+"";return"0"==f&&1/_==-1/0?"-0":f}},52827:w=>{var o=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return o.call(x)}catch(v){}try{return x+""}catch(v){}}return""}},42760:w=>{var I=/\s/;w.exports=function o(c){for(var x=c.length;x--&&I.test(c.charAt(x)););return x}},81149:w=>{var I="\\ud800-\\udfff",f="["+I+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",p="\\ud83c[\\udffb-\\udfff]",h="[^"+I+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+p+")?",A="[\\ufe0e\\ufe0f]?",F=A+C+"(?:\\u200d(?:"+[h,m,u].join("|")+")"+A+C+")*",O="(?:"+[h+t+"?",t,m,u,f].join("|")+")",R=RegExp(p+"(?="+p+")|"+O+F,"g");w.exports=function U(V){for(var W=R.lastIndex=0;R.test(V);)++W;return W}},11094:(w,I,o)=>{var c=o(44462);w.exports=function v(_){return c(_,4)}},90733:(w,I,o)=>{var c=o(44462);w.exports=function _(f){return c(f,5)}},76684:w=>{w.exports=function I(o){return function(){return o}}},28800:(w,I,o)=>{var c=o(23269),x=o(20217),v=o(93342),_=o(16555),f=Object.prototype,t=f.hasOwnProperty,p=c(function(l,h){l=Object(l);var m=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&v(h[0],h[1],g)&&(u=1);++m{w.exports=o(89851)},20217:w=>{w.exports=function I(o,c){return o===c||o!=o&&c!=c}},35281:(w,I,o)=>{var c=o(69779),x=o(33609),v=o(96517),_=o(21503);w.exports=function f(t,p){return(_(t)?c:x)(t,v(p,3))}},62516:(w,I,o)=>{var v=o(24653)(o(36397));w.exports=v},36397:(w,I,o)=>{var c=o(65317),x=o(96517),v=o(44401),_=Math.max;w.exports=function f(t,p,l){var h=null==t?0:t.length;if(!h)return-1;var m=null==l?0:v(l);return m<0&&(m=_(h+m,0)),c(t,x(p,3),m)}},22274:(w,I,o)=>{var c=o(50686);w.exports=function x(v){return null!=v&&v.length?c(v,1):[]}},89851:(w,I,o)=>{var c=o(96837),x=o(43132),v=o(21481),_=o(21503);w.exports=function f(t,p){return(_(t)?c:x)(t,v(p))}},41176:(w,I,o)=>{var c=o(30755),x=o(21481),v=o(16555);w.exports=function _(f,t){return null==f?f:c(f,x(t),v)}},8817:(w,I,o)=>{var c=o(15456);w.exports=function x(v,_,f){var t=null==v?void 0:c(v,_);return void 0===t?f:t}},54842:(w,I,o)=>{var c=o(84781),x=o(47283);w.exports=function v(_,f){return null!=_&&x(_,f,c)}},11172:(w,I,o)=>{var c=o(69989),x=o(47283);w.exports=function v(_,f){return null!=_&&x(_,f,c)}},32608:w=>{w.exports=function I(o){return o}},77151:(w,I,o)=>{var c=o(60186),x=o(72671),v=Object.prototype,_=v.hasOwnProperty,f=v.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(p){return x(p)&&_.call(p,"callee")&&!f.call(p,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,I,o)=>{var c=o(75946),x=o(96231);w.exports=function v(_){return null!=_&&x(_.length)&&!c(_)}},92377:(w,I,o)=>{var c=o(56507),x=o(72671);w.exports=function v(_){return x(_)&&c(_)}},80891:(w,I,o)=>{w=o.nmd(w);var c=o(12119),x=o(63580),v=I&&!I.nodeType&&I,_=v&&w&&!w.nodeType&&w,t=_&&_.exports===v?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,I,o)=>{var c=o(81172),x=o(28794),v=o(77151),_=o(21503),f=o(56507),t=o(80891),p=o(45488),l=o(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(A){if(null==A)return!0;if(f(A)&&(_(A)||"string"==typeof A||"function"==typeof A.splice||t(A)||l(A)||v(A)))return!A.length;var k=x(A);if("[object Map]"==k||"[object Set]"==k)return!A.size;if(p(A))return!c(A).length;for(var F in A)if(g.call(A,F))return!1;return!0}},75946:(w,I,o)=>{var c=o(93337),x=o(25940);w.exports=function p(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 o(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,I,o)=>{var c=o(97021),x=o(85647),v=o(73597),_=v&&v.isMap,f=_?x(_):c;w.exports=f},25940:w=>{w.exports=function I(o){var c=typeof o;return null!=o&&("object"==c||"function"==c)}},72671:w=>{w.exports=function I(o){return null!=o&&"object"==typeof o}},97614:(w,I,o)=>{var c=o(93337),x=o(29519),v=o(72671),p=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=p.call(Object);w.exports=function m(u){if(!v(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&&p.call(C)==h}},90799:(w,I,o)=>{var c=o(771),x=o(85647),v=o(73597),_=v&&v.isSet,f=_?x(_):c;w.exports=f},30248:(w,I,o)=>{var c=o(93337),x=o(21503),v=o(72671);w.exports=function f(t){return"string"==typeof t||!x(t)&&v(t)&&"[object String]"==c(t)}},44129:(w,I,o)=>{var c=o(93337),x=o(72671);w.exports=function _(f){return"symbol"==typeof f||x(f)&&"[object Symbol]"==c(f)}},48159:(w,I,o)=>{var c=o(1083),x=o(85647),v=o(73597),_=v&&v.isTypedArray,f=_?x(_):c;w.exports=f},34235:w=>{w.exports=function I(o){return void 0===o}},118:(w,I,o)=>{var c=o(72271),x=o(81172),v=o(56507);w.exports=function _(f){return v(f)?c(f):x(f)}},16555:(w,I,o)=>{var c=o(72271),x=o(92809),v=o(56507);w.exports=function _(f){return v(f)?c(f,!0):x(f)}},25809:w=>{w.exports=function I(o){var c=null==o?0:o.length;return c?o[c-1]:void 0}},19984:(w,I,o)=>{var c=o(84633),x=o(96517),v=o(92046),_=o(21503);w.exports=function f(t,p){return(_(t)?c:v)(t,x(p,3))}},10203:(w,I,o)=>{var c=o(85683),x=o(45184),v=o(96517);w.exports=function _(f,t){var p={};return t=v(t,3),x(f,function(l,h,m){c(p,h,t(l,h,m))}),p}},18176:(w,I,o)=>{var c=o(67308),x=o(31100),v=o(32608);w.exports=function _(f){return f&&f.length?c(f,v,x):void 0}},30535:(w,I,o)=>{var c=o(99850);function v(_,f){if("function"!=typeof _||null!=f&&"function"!=typeof f)throw new TypeError("Expected a function");var t=function(){var p=arguments,l=f?f.apply(this,p):p[0],h=t.cache;if(h.has(l))return h.get(l);var m=_.apply(this,p);return t.cache=h.set(l,m)||h,m};return t.cache=new(v.Cache||c),t}v.Cache=c,w.exports=v},80567:(w,I,o)=>{var c=o(73842),v=o(84944)(function(_,f,t){c(_,f,t)});w.exports=v},29439:(w,I,o)=>{var c=o(67308),x=o(99069),v=o(32608);w.exports=function _(f){return f&&f.length?c(f,v,x):void 0}},29525:(w,I,o)=>{var c=o(67308),x=o(96517),v=o(99069);w.exports=function _(f,t){return f&&f.length?c(f,x(t,2),v):void 0}},12552:w=>{w.exports=function I(){}},31710:(w,I,o)=>{var c=o(12119);w.exports=function(){return c.Date.now()}},16372:(w,I,o)=>{var c=o(83021),v=o(3975)(function(_,f){return null==_?{}:c(_,f)});w.exports=v},87495:(w,I,o)=>{var c=o(11847),x=o(39222),v=o(45352),_=o(68533);w.exports=function f(t){return v(t)?c(_(t)):x(t)}},90361:(w,I,o)=>{var x=o(97509)();w.exports=x},81337:(w,I,o)=>{var c=o(8745),x=o(43132),v=o(96517),_=o(13570),f=o(21503);w.exports=function t(p,l,h){var m=f(p)?c:_,u=arguments.length<3;return m(p,v(l,4),h,u,x)}},55637:(w,I,o)=>{var c=o(81172),x=o(28794),v=o(56507),_=o(30248),f=o(52315);w.exports=function l(h){if(null==h)return 0;if(v(h))return _(h)?f(h):h.length;var m=x(h);return"[object Map]"==m||"[object Set]"==m?h.size:c(h).length}},12906:(w,I,o)=>{var c=o(50686),x=o(6119),v=o(23269),_=o(93342),f=v(function(t,p){if(null==t)return[];var l=p.length;return l>1&&_(t,p[0],p[1])?p=[]:l>2&&_(p[0],p[1],p[2])&&(p=[p[0]]),x(t,c(p,1),[])});w.exports=f},49975:w=>{w.exports=function I(){return[]}},63580:w=>{w.exports=function I(){return!1}},12232:(w,I,o)=>{var c=o(51467),x=1/0;w.exports=function _(f){return f?(f=c(f))===x||f===-x?17976931348623157e292*(f<0?-1:1):f==f?f:0:0===f?f:0}},44401:(w,I,o)=>{var c=o(12232);w.exports=function x(v){var _=c(v),f=_%1;return _==_?f?_-f:_:0}},51467:(w,I,o)=>{var c=o(83348),x=o(25940),v=o(44129),f=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,p=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(m){if("number"==typeof m)return m;if(v(m))return NaN;if(x(m)){var u="function"==typeof m.valueOf?m.valueOf():m;m=x(u)?u+"":u}if("string"!=typeof m)return 0===m?m:+m;m=c(m);var g=t.test(m);return g||p.test(m)?l(m.slice(2),g?2:8):f.test(m)?NaN:+m}},8067:(w,I,o)=>{var c=o(31989),x=o(16555);w.exports=function v(_){return c(_,x(_))}},73943:(w,I,o)=>{var c=o(93935);w.exports=function x(v){return null==v?"":c(v)}},89416:(w,I,o)=>{var c=o(96837),x=o(78858),v=o(45184),_=o(96517),f=o(29519),t=o(21503),p=o(80891),l=o(75946),h=o(25940),m=o(48159);w.exports=function u(g,C,A){var k=t(g),F=k||p(g)||m(g);if(C=_(C,4),null==A){var O=g&&g.constructor;A=F?k?new O:[]:h(g)&&l(O)?x(f(g)):{}}return(F?c:v)(g,function(R,U,V){return C(A,R,U,V)}),A}},68921:(w,I,o)=>{var c=o(50686),x=o(23269),v=o(80707),_=o(92377),f=x(function(t){return v(c(t,1,_,!0))});w.exports=f},51541:(w,I,o)=>{var c=o(73943),x=0;w.exports=function v(_){var f=++x;return c(_)+f}},90377:(w,I,o)=>{var c=o(19179),x=o(118);w.exports=function v(_){return null==_?[]:c(_,x(_))}},21617:(w,I,o)=>{var c=o(89719),x=o(38645);w.exports=function v(_,f){return x(_||[],f||[],c)}},34315:(w,I,o)=>{"use strict";const c=Symbol.prototype.valueOf,x=o(52872);w.exports=function v(h,m){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 p(h){const m=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(m):Buffer.from(m);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function f(h){const m=new h.constructor(h.byteLength);return new Uint8Array(m).set(new Uint8Array(h)),m}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,m){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function _(h){const m=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,m);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,I,o)=>{"use strict";function c(x){for(var v in x)I.hasOwnProperty(v)||(I[v]=x[v])}Object.defineProperty(I,"__esModule",{value:!0}),c(o(95085)),c(o(26243)),c(o(91786)),c(o(30225)),c(o(76767)),c(o(30345)),c(o(15675)),c(o(86461)),c(o(58802)),c(o(33900)),c(o(88866)),c(o(94655)),c(o(4068)),c(o(33858)),c(o(98237)),c(o(83292))},95085:function(w,I,o){"use strict";var f,c=this&&this.__extends||(f=function(t,p){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var m in h)h.hasOwnProperty(m)&&(l[m]=h[m])})(t,p)},function(t,p){function l(){this.constructor=t}f(t,p),t.prototype=null===p?Object.create(p):(l.prototype=p.prototype,new l)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(15675),v=function(f){function t(p){var l=f.call(this)||this,m=p;return m.trigger&&(l.trigger=m.trigger),m.kick&&(l.kick=m.kick),m.drag&&(l.drag=m.drag),m.on&&(l.on=m.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,f),t.prototype.trigger=function(p){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(p,l){return this},t}(x.Layout);I.LayoutAdaptor=v,I.adaptor=function _(f){return new v(f)}},83292:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(15675),x=o(76767);I.gridify=function v(t,p,l,h){t.cola.start(0,0,0,10,!1);var m=function _(t,p,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),p.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(void 0!==u.groups?u.groups.map(function(g){return t.length+g.id}):[]).concat(void 0!==u.leaves?u.leaves.map(function(g){return g.index}):[])}});var m=t.concat(p).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(m,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return m.routeEdges(t.powerGraph.powerEdges,p,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},I.powerGraphGridLayout=function f(t,p,l){var h;t.nodes.forEach(function(C,A){return C.index=A}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(A){return A.padding=l})});var m=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,A){return C.index=A}),h.groups.forEach(function(C){var A=C.index=C.id+m;g.push(C),void 0!==C.leaves&&C.leaves.forEach(function(k){return u.push({source:A,target:k.index})}),void 0!==C.groups&&C.groups.forEach(function(k){return u.push({source:A,target:k.id+m})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(p).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(p).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(A){A.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(49346),x=o(22487);I.d3adaptor=function v(f){return!f||function _(f){return f.version&&null!==f.version.match(/^3\./)}(f)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(f)}},49346:function(w,I,o){"use strict";var f,c=this&&this.__extends||(f=function(t,p){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var m in h)h.hasOwnProperty(m)&&(l[m]=h[m])})(t,p)},function(t,p){function l(){this.constructor=t}f(t,p),t.prototype=null===p?Object.create(p):(l.prototype=p.prototype,new l)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(15675),v=function(f){function t(){var p=f.call(this)||this;p.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=p;return p.drag=function(){if(!m)var m=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 m;this.call(m)},p}return c(t,f),t.prototype.trigger=function(p){var l={type:x.EventType[p.type],alpha:p.alpha,stress:p.stress};this.event[l.type](l)},t.prototype.kick=function(){var p=this;d3.timer(function(){return f.prototype.tick.call(p)})},t.prototype.on=function(p,l){return this.event.on("string"==typeof p?p:x.EventType[p],l),this},t}(x.Layout);I.D3StyleLayoutAdaptor=v,I.d3adaptor=function _(){return new v}},22487:function(w,I,o){"use strict";var _,c=this&&this.__extends||(_=function(f,t){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var h in l)l.hasOwnProperty(h)&&(p[h]=l[h])})(f,t)},function(f,t){function p(){this.constructor=f}_(f,t),f.prototype=null===t?Object.create(t):(p.prototype=t.prototype,new p)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(15675),v=function(_){function f(t){var p=_.call(this)||this;p.d3Context=t,p.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=p;return p.drag=function(){if(!m)var m=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 m;arguments[0].call(m)},p}return c(f,_),f.prototype.trigger=function(t){var p={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(p.type,p)},f.prototype.kick=function(){var t=this,p=this.d3Context.timer(function(){return _.prototype.tick.call(t)&&p.stop()})},f.prototype.on=function(t,p){return this.event.on("string"==typeof t?t:x.EventType[t],p),this},f}(x.Layout);I.D3StyleLayoutAdaptor=v},91786:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function(){function v(){this.locks={}}return v.prototype.add=function(_,f){this.locks[_]=f},v.prototype.clear=function(){this.locks={}},v.prototype.isEmpty=function(){for(var _ in this.locks)return!1;return!0},v.prototype.apply=function(_){for(var f in this.locks)_(Number(f),this.locks[f])},v}();I.Locks=o;var c=function(){function v(_,f,t){void 0===t&&(t=null),this.D=f,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=_,this.k=_.length;var p=this.n=_[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 o,this.minD=Number.MAX_VALUE;for(var h,l=p;l--;)for(h=p;--h>l;){var m=f[l][h];m>0&&m1e-9)break;var O=this.offsetDir();for(p=0;p1&&R>U||!isFinite(U)){for(p=0;p1&&(V=1);var W=U*U,rt=2*V*(R-U)/(W*R),nt=R*R*R,ut=2*-V/(W*nt);for(isFinite(rt)||console.log(rt),p=0;p0?K-(z+1)*tt:K-(z-1)*tt)&&F<=J&&(this.scaleSnapByMaxH?(this.g[p][g]+=u*at*F,this.H[p][g][g]+=u*at):(this.g[p][g]+=at*F,this.H[p][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(Ct,It){for(p=0;p0;)for(var l=f;l-- >0;)t(p,l)},v.prototype.matrixApply=function(_){v.mApply(this.k,this.n,_)},v.prototype.computeNextPosition=function(_,f){var t=this;this.computeDerivatives(_);var p=this.computeStepSize(this.g);if(this.stepAndProject(_,f,this.g,p),this.project){this.matrixApply(function(h,m){return t.e[h][m]=_[h][m]-f[h][m]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(_,f,this.e,l)}},v.prototype.run=function(_){for(var f=Number.MAX_VALUE,t=!1;!t&&_-- >0;){var p=this.rungeKutta();t=Math.abs(f/p-1)>16)/this.range},v.prototype.getNextBetween=function(_,f){return _+this.getNext()*(f-_)},v}();I.PseudoRandom=x},30225:function(w,I,o){"use strict";var it,c=this&&this.__extends||(it=function(z,E){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,It){Ct.__proto__=It}||function(Ct,It){for(var Rt in It)It.hasOwnProperty(Rt)&&(Ct[Rt]=It[Rt])})(z,E)},function(z,E){function Ct(){this.constructor=z}it(z,E),z.prototype=null===E?Object.create(E):(Ct.prototype=E.prototype,new Ct)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(4068),v=function it(){};I.Point=v;var _=function it(z,E,Ct,It){this.x1=z,this.y1=E,this.x2=Ct,this.y2=It};I.LineSegment=_;var f=function(it){function z(){return null!==it&&it.apply(this,arguments)||this}return c(z,it),z}(v);function t(it,z,E){return(z.x-it.x)*(E.y-it.y)-(E.x-it.x)*(z.y-it.y)}function p(it,z,E){return t(it,z,E)>0}function l(it,z,E){return t(it,z,E)<0}function C(it,z){var E=z.slice(0);return E.push(z[0]),{rtan:A(it,E),ltan:k(it,E)}}function A(it,z){var Ct,It,Rt,ne,E=z.length-1;if(l(it,z[1],z[0])&&!p(it,z[E-1],z[0]))return 0;for(Ct=0,It=E;;){if(It-Ct==1)return p(it,z[Ct],z[It])?Ct:It;if((ne=l(it,z[(Rt=Math.floor((Ct+It)/2))+1],z[Rt]))&&!p(it,z[Rt-1],z[Rt]))return Rt;p(it,z[Ct+1],z[Ct])?ne||p(it,z[Ct],z[Rt])?It=Rt:Ct=Rt:ne&&l(it,z[Ct],z[Rt])?It=Rt:Ct=Rt}}function k(it,z){var Ct,It,Rt,ne,E=z.length-1;if(p(it,z[E-1],z[0])&&!l(it,z[1],z[0]))return 0;for(Ct=0,It=E;;){if(It-Ct==1)return l(it,z[Ct],z[It])?Ct:It;if(ne=l(it,z[(Rt=Math.floor((Ct+It)/2))+1],z[Rt]),p(it,z[Rt-1],z[Rt])&&!ne)return Rt;l(it,z[Ct+1],z[Ct])?ne?l(it,z[Ct],z[Rt])?It=Rt:Ct=Rt:It=Rt:ne?Ct=Rt:p(it,z[Ct],z[Rt])?It=Rt:Ct=Rt}}function F(it,z,E,Ct,It,Rt){var Ht,ne;ne=Ct(it[Ht=E(z[0],it)],z);for(var Ut=!1;!Ut;){for(Ut=!0;Ht===it.length-1&&(Ht=0),!It(z[ne],it[Ht],it[Ht+1]);)++Ht;for(;0===ne&&(ne=z.length-1),!Rt(it[Ht],z[ne],z[ne-1]);)--ne,Ut=!1}return{t1:Ht,t2:ne}}function R(it,z){return F(it,z,A,k,p,l)}I.PolyPoint=f,I.isLeft=t,I.ConvexHull=function h(it){var Ct,z=it.slice(0).sort(function(Qt,me){return Qt.x!==me.x?me.x-Qt.x:me.y-Qt.y}),E=it.length,Rt=z[0].x;for(Ct=1;Ct=0&&z[Ct].x===ft;Ct--);for(Ut=Ct+1,Ct=Ht;++Ct<=Ut;)if(!(t(z[0],z[Ut],z[Ct])>=0&&Ct1&&!(t(ne[ne.length-2],ne[ne.length-1],z[Ct])>0);)ne.length-=1;0!=Ct&&ne.push(z[Ct])}vt!=Ut&&ne.push(z[vt]);var Nt=ne.length;for(Ct=Ut;--Ct>=Ht;)if(!(t(z[vt],z[Ht],z[Ct])>=0&&Ct>Ht)){for(;ne.length>Nt&&!(t(ne[ne.length-2],ne[ne.length-1],z[Ct])>0);)ne.length-=1;0!=Ct&&ne.push(z[Ct])}}return ne},I.clockwiseRadialSweep=function m(it,z,E){z.slice(0).sort(function(Ct,It){return Math.atan2(Ct.y-it.y,Ct.x-it.x)-Math.atan2(It.y-it.y,It.x-it.x)}).forEach(E)},I.tangent_PolyPolyC=F,I.LRtangent_PolyPolyC=function O(it,z){var E=R(z,it);return{t1:E.t2,t2:E.t1}},I.RLtangent_PolyPolyC=R,I.LLtangent_PolyPolyC=function U(it,z){return F(it,z,k,k,l,l)},I.RRtangent_PolyPolyC=function V(it,z){return F(it,z,A,A,p,p)};var W=function it(z,E){this.t1=z,this.t2=E};I.BiTangent=W;var rt=function it(){};I.BiTangents=rt;var nt=function(it){function z(){return null!==it&&it.apply(this,arguments)||this}return c(z,it),z}(v);I.TVGPoint=nt;var ut=function it(z,E,Ct,It){this.id=z,this.polyid=E,this.polyvertid=Ct,this.p=It,It.vv=this};I.VisibilityVertex=ut;var J=function(){function it(z,E){this.source=z,this.target=E}return it.prototype.length=function(){var z=this.source.p.x-this.target.p.x,E=this.source.p.y-this.target.p.y;return Math.sqrt(z*z+E*E)},it}();I.VisibilityEdge=J;var tt=function(){function it(z,E){if(this.P=z,this.V=[],this.E=[],E)this.V=E.V.slice(0),this.E=E.E.slice(0);else{for(var Ct=z.length,It=0;It0&&this.E.push(new J(Rt[Ht-1].vv,Ut))}Rt.length>1&&this.E.push(new J(Rt[0].vv,Rt[Rt.length-1].vv))}for(It=0;It0)return!0;return!1},it}();function Q(it,z){for(var E=[],Ct=1,It=z.length;Ct=0&&ge>=0&&ye<0&&Be>=0&&vn>=0&&Re<0?It.ll=new W(Rt,Ht):me<=0&&ge<=0&&ye>0&&Be<=0&&vn<=0&&Re>0?It.rr=new W(Rt,Ht):me<=0&&ge>0&&ye<=0&&Be>=0&&vn<0&&Re>=0?It.rl=new W(Rt,Ht):me>=0&&ge<0&&ye>=0&&Be<=0&&vn>0&&Re<=0&&(It.lr=new W(Rt,Ht))}return It}function K(it,z){return!it.every(function(E){return!function H(it,z){for(var E=1,Ct=z.length;E0)return!0}return!1}},76767:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(4068),x=o(98237),v=o(33858),_=function l(h,m,u){this.id=h,this.rect=m,this.children=u,this.leaf=void 0===u||0===u.length};I.NodeWrapper=_;var f=function l(h,m,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=m,this.y=u,this.node=g,this.line=C};I.Vert=f;var t=function(){function l(h,m){this.s=h,this.t=m;var u=l.findMatch(h,m),g=m.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=m.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,m){for(var u=h.length,g=m.length,C={length:0,si:-1,ti:-1},A=new Array(u),k=0;kC.length&&(C.length=O,C.si=k-O+1,C.ti=F-O+1)}else A[k][F]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();I.LongestCommonSubsequence=t;var p=function(){function l(h,m,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(nt,ut){return new _(ut,m.getBounds(nt),m.getChildren(nt))}),this.leaves=this.nodes.filter(function(nt){return nt.leaf}),this.groups=this.nodes.filter(function(nt){return!nt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(nt){return nt.children.forEach(function(ut){return g.nodes[ut].parent=nt})}),this.root={children:[]},this.nodes.forEach(function(nt){void 0===nt.parent&&(nt.parent=g.root,g.root.children.push(nt.id)),nt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(nt,ut){return g.getDepth(nt)-g.getDepth(ut)}),this.backToFront.slice(0).reverse().filter(function(nt){return!nt.leaf}).forEach(function(nt){var ut=c.Rectangle.empty();nt.children.forEach(function(J){return ut=ut.union(g.nodes[J].rect)}),nt.rect=ut.inflate(g.groupPadding)});var A=this.midPoints(this.cols.map(function(nt){return nt.pos})),k=this.midPoints(this.rows.map(function(nt){return nt.pos})),F=A[0],O=A[A.length-1],R=k[0],U=k[k.length-1],V=this.rows.map(function(nt){return{x1:F,x2:O,y1:nt.pos,y2:nt.pos}}).concat(k.map(function(nt){return{x1:F,x2:O,y1:nt,y2:nt}})),W=this.cols.map(function(nt){return{x1:nt.pos,x2:nt.pos,y1:R,y2:U}}).concat(A.map(function(nt){return{x1:nt,x2:nt,y1:R,y2:U}})),rt=V.concat(W);rt.forEach(function(nt){return nt.verts=[]}),this.verts=[],this.edges=[],V.forEach(function(nt){return W.forEach(function(ut){var J=new f(g.verts.length,ut.x1,nt.y1);nt.verts.push(J),ut.verts.push(J),g.verts.push(J);for(var tt=g.backToFront.length;tt-- >0;){var Q=g.backToFront[tt],at=Q.rect,H=Math.abs(J.x-at.cx()),K=Math.abs(J.y-at.cy());if(H0;){var g=u.filter(function(A){return A.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(A){return A.rect["c"+h]()}))};m.push(C),C.nodes.forEach(function(A){return u.splice(u.indexOf(A),1)})}return m.sort(function(A,k){return A.pos-k.pos}),m},l.prototype.getDepth=function(h){for(var m=0;h.parent!==this.root;)m++,h=h.parent;return m},l.prototype.midPoints=function(h){for(var m=h[1]-h[0],u=[h[0]-m/2],g=1;g.1)&&R.push(U={pos:F[0][m],segments:[]}),U.segments.push(F)}return R},l.nudgeSegs=function(h,m,u,g,C,A){var k=g.length;if(!(k<=1)){for(var F=g.map(function(Q){return new x.Variable(Q[0][h])}),O=[],R=0;R=0&&O.push(new x.Constraint(F[ut],F[J],A))}new x.Solver(F,O).solve(),F.forEach(function(Q,at){var H=g[at],K=Q.position();H[0][h]=H[1][h]=K;var lt=u[H.edgeid];H.i>0&&(lt[H.i-1][1][h]=K),H.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,m,u){return(m.x-h.x)*(u.y-h.y)-(m.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var m={},u=0;u=C.length||k.ti+k.length>=A.length)){m.push({l:u,r:g});continue}k.si+k.length>=C.length||k.ti+k.length>=A.length?(F=C[k.si+1],R=C[k.si-1],O=A[k.ti-1]):(F=C[k.si+k.length-2],O=C[k.si+k.length],R=A[k.ti+k.length]),l.isLeft(F,O,R)?m.push({l:g,r:u}):m.push({l:u,r:g})}}return l.getOrder(m)},l.makeSegments=function(h){function m(O){return{x:O.x,y:O.y}}for(var g=[],C=m(h[0]),A=1;A1&&it>1?1e3:0}).reverse().map(function(J){return u.verts[J]});return ut.push(this.nodes[C.id].ports[0]),ut.filter(function(J,tt){return!(tt0&&J.node===C&&ut[tt-1].node===C)})},l.getRoutePath=function(h,m,u,g){var k,F,O,lt,it,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var A=0;A0?F-=R/Math.abs(R)*m:O-=U/Math.abs(U)*m,C.routepath+="L "+F+" "+O+" ";var V=h[A+1],W=V[0].x,rt=V[0].y;R=V[1].x-W,U=V[1].y-rt;var tt,Q,J=l.angleBetween2Lines(k,V)<0?1:0;Math.abs(R)>0?(tt=W+R/Math.abs(R)*m,Q=rt):(tt=W,Q=rt+U/Math.abs(U)*m);var at=Math.abs(tt-F),H=Math.abs(Q-O);C.routepath+="A "+at+" "+H+" 0 0 "+J+" "+tt+" "+Q+" "}else{var K=[F,O];Math.abs(R)>0?(lt=[F-=R/Math.abs(R)*g,O+u],it=[F,O-u]):(lt=[F+u,O-=U/Math.abs(U)*g],it=[F-u,O]),C.routepath+="L "+F+" "+O+" ",g>0&&(C.arrowpath="M "+K[0]+" "+K[1]+" L "+lt[0]+" "+lt[1]+" L "+it[0]+" "+it[1])}}else R=(F=(k=h[0])[1].x)-k[0].x,U=(O=k[1].y)-k[0].y,K=[F,O],Math.abs(R)>0?(lt=[F-=R/Math.abs(R)*g,O+u],it=[F,O-u]):(lt=[F+u,O-=U/Math.abs(U)*g],it=[F-u,O]),C.routepath+="L "+F+" "+O+" ",g>0&&(C.arrowpath="M "+K[0]+" "+K[1]+" L "+lt[0]+" "+lt[1]+" L "+it[0]+" "+it[1]);return C},l}();I.GridRouter=p},30345:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o_GOLDEN_SECTION=(1+Math.sqrt(5))/2;I.applyPacking=function c(v,_,f,A,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=_,g=f,k=(C=void 0!==C?C:1,A=void 0!==A?A:0,0),F=0,O=0,R=0,U=[];function nt(Q,at){U=[],k=0,F=0,R=0;for(var H=0;H=Q.height&&U[K].x+U[K].width+Q.width+10-at<=1e-4){H=U[K];break}U.push(Q),void 0!==H?(Q.x=H.x+H.width+10,Q.y=H.bottom,Q.space_left=Q.height,Q.bottom=Q.y,H.space_left-=Q.height+10,H.bottom+=Q.height+10):(Q.y=R,R+=Q.height+10,Q.x=0,Q.bottom=Q.y,Q.space_left=Q.height),Q.y+Q.height-F>-1e-4&&(F=Q.y+Q.height-0),Q.x+Q.width-k>-1e-4&&(k=Q.x+Q.width-0)}0!=v.length&&(function V(Q){Q.forEach(function(H){!function at(H){var K=Number.MAX_VALUE,lt=Number.MAX_VALUE,it=0,z=0;H.array.forEach(function(E){var Ct=void 0!==E.width?E.width:A,It=void 0!==E.height?E.height:A;Ct/=2,It/=2,it=Math.max(E.x+Ct,it),K=Math.min(E.x-Ct,K),z=Math.max(E.y+It,z),lt=Math.min(E.y-It,lt)}),H.width=it-K,H.height=z-lt}(H)})}(v),function rt(Q,at){var H=Number.POSITIVE_INFINITY,K=0;Q.sort(function(vt,ft){return ft.height-vt.height});for(var lt=ne=O=Q.reduce(function(vt,ft){return vt.widthO||Ht>1e-4;){if(1!=It){var ne=it-(it-lt)/o_GOLDEN_SECTION;E=nt(Q,ne)}if(0!=It){var Ut=lt+(it-lt)/o_GOLDEN_SECTION;Ct=nt(Q,Ut)}if(Rt=Math.abs(ne-Ut),Ht=Math.abs(E-Ct),ECt?(lt=ne,ne=Ut,E=Ct,It=1):(it=Ut,Ut=ne,Ct=E,It=0),z++>100)break}nt(Q,K)}(v),l&&function W(Q){Q.forEach(function(at){var H={x:0,y:0};at.array.forEach(function(it){H.x+=it.x,H.y+=it.y}),H.x/=at.array.length,H.y/=at.array.length;var lt_x=at.x-(H.x-at.width/2)+u/2-k/2,lt_y=at.y-(H.y-at.height/2)+g/2-F/2;at.array.forEach(function(it){it.x+=lt_x,it.y+=lt_y})})}(v))},I.separateGraphs=function x(v,_){for(var f={},t={},p=[],l=0,h=0;h<_.length;h++){var m=_[h],u=m.source,g=m.target;t[u.index]?t[u.index].push(g):t[u.index]=[g],t[g.index]?t[g.index].push(u):t[g.index]=[u]}for(h=0;h{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var l,u,c=o(33900),x=o(58802),v=o(91786),_=o(4068),f=o(33858),t=o(30225),p=o(30345);function h(u){return void 0!==u.leaves||void 0!==u.groups}(u=l=I.EventType||(I.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var m=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&&void 0!==this.event[g.type]&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha0){var C=0;this._links.forEach(function(k){C=Math.max(C,k.source,k.target)}),this._nodes=new Array(++C);for(var A=0;A0?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 A=this;return void 0===C&&(C=1),this.linkDistance(function(k){return g*k.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(A._links,A.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var A=this;return void 0===C&&(C=1),this.linkDistance(function(k){return g*k.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(A._links,A.linkAccessor,C)},this},u.prototype.start=function(g,C,A,k,F,O){var R=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===A&&(A=0),void 0===k&&(k=0),void 0===F&&(F=!0),void 0===O&&(O=!0);var K,W=this.nodes().length,rt=W+2*this._groups.length,ut=this._canvasSize[0],J=this._canvasSize[1],tt=new Array(rt),Q=new Array(rt),at=null,H=this._avoidOverlaps;this._nodes.forEach(function(Rt,Ht){Rt.index=Ht,void 0===Rt.x&&(Rt.x=ut/2,Rt.y=J/2),tt[Ht]=Rt.x,Q[Ht]=Rt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?K=this._distanceMatrix:(K=new f.Calculator(rt,this._links,u.getSourceIndex,u.getTargetIndex,function(Rt){return R.getLinkLength(Rt)}).DistanceMatrix(),at=v.Descent.createSquareMatrix(rt,function(){return 2}),this._links.forEach(function(Rt){"number"==typeof Rt.source&&(Rt.source=R._nodes[Rt.source]),"number"==typeof Rt.target&&(Rt.target=R._nodes[Rt.target])}),this._links.forEach(function(Rt){var Ht=u.getSourceIndex(Rt),ne=u.getTargetIndex(Rt);at[Ht][ne]=at[ne][Ht]=Rt.weight||1}));var lt=v.Descent.createSquareMatrix(rt,function(Rt,Ht){return K[Rt][Ht]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var U=W;this._groups.forEach(function(Ht){(function(Ht,ne,Ut,vt){at[Ht][ne]=at[ne][Ht]=Ut,lt[Ht][ne]=lt[ne][Ht]=.1})(U,U+1,R._groupCompactness),tt[U]=0,Q[U++]=0,tt[U]=0,Q[U++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var z=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,z=z.concat(x.generateDirectedEdgeConstraints(W,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([tt,Q],lt),this._descent.locks.clear(),U=0;U0&&(this._descent.project=new _.Projection(this._nodes,this._groups,this._rootGroup,z).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(ut,J,O),this.avoidOverlaps(H),H&&(this._nodes.forEach(function(Rt,Ht){Rt.x=tt[Ht],Rt.y=Q[Ht]}),this._descent.project=new _.Projection(this._nodes,this._groups,this._rootGroup,z,!0).projectFunctions(),this._nodes.forEach(function(Rt,Ht){tt[Ht]=Rt.x,Q[Ht]=Rt.y})),this._descent.G=at,this._descent.run(A),k){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=W,this._descent.scaleSnapByMaxH=W!=rt;var It=v.Descent.createSquareMatrix(rt,function(Rt,Ht){return Rt>=W||Ht>=W?at[Rt][Ht]:0});this._descent.G=It,this._descent.run(k)}return this.updateNodePositions(),this.separateOverlappingComponents(ut,J,O),F?this.resume():this},u.prototype.initialLayout=function(g,C,A){if(this._groups.length>0&&g>0){var k=this._nodes.length,F=this._links.map(function(R){return{source:R.source.index,target:R.target.index}}),O=this._nodes.map(function(R){return{index:R.index}});this._groups.forEach(function(R,U){O.push({index:R.index=k+U})}),this._groups.forEach(function(R,U){void 0!==R.leaves&&R.leaves.forEach(function(V){return F.push({source:R.index,target:V.index})}),void 0!==R.groups&&R.groups.forEach(function(V){return F.push({source:R.index,target:V.index})})}),(new u).size(this.size()).nodes(O).links(F).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(R){C[R.index]=O[R.index].x,A[R.index]=O[R.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,A){var k=this;if(void 0===A&&(A=!0),!this._distanceMatrix&&this._handleDisconnected){var F=this._descent.x[0],O=this._descent.x[1];this._nodes.forEach(function(U,V){U.x=F[V],U.y=O[V]});var R=p.separateGraphs(this._nodes,this._links);p.applyPacking(R,g,C,this._defaultNodeSize,1,A),this._nodes.forEach(function(U,V){k._descent.x[0][V]=U.x,k._descent.x[1][V]=U.y,U.bounds&&(U.bounds.setXCentre(U.x),U.bounds.setYCentre(U.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,A){void 0===C&&(C=5);var k=[],F=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),O={x:g.source.x,y:g.source.y},R={x:g.target.x,y:g.target.y},U=F.addPoint(O,g.source.index),V=F.addPoint(R,g.target.index);F.addEdgeIfVisible(O,R,g.source.index,g.target.index),void 0!==A&&A(F);var J=new f.Calculator(F.V.length,F.E,function(lt){return lt.source.id},function(lt){return lt.target.id},function(lt){return lt.length()}).PathFromNodeToNode(U.id,V.id);if(1===J.length||J.length===F.V.length){var tt=_.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);k=[tt.sourceIntersection,tt.arrowStart]}else{for(var Q=J.length-2,at=F.V[J[Q]].p,H=F.V[J[0]].p,K=(k=[g.source.innerBounds.rayIntersection(at.x,at.y)],Q);K>=0;--K)k.push(F.V[J[K]].p);k.push(_.makeEdgeTo(H,g.target.innerBounds,C))}return k},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){void 0!==g.leaves&&g.leaves.forEach(function(A){A.fixed|=2,u.stopNode(A),A._dragGroupOffsetX=A.x-C.x,A._dragGroupOffsetY=A.y-C.y}),void 0!==g.groups&&g.groups.forEach(function(A){return u.storeOffset(A,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(void 0!==g.leaves&&g.leaves.forEach(function(A){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),A.px=A._dragGroupOffsetX+C.x,A.py=A._dragGroupOffsetY+C.y}),void 0!==g.groups&&g.groups.forEach(function(A){return u.drag(A,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(void 0!==g.leaves&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),void 0!==g.groups&&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}();I.Layout=m},86461:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(33858),x=o(91786),v=o(4068),_=o(58802),f=function(){function h(m,u){this.source=m,this.target=u}return h.prototype.actualLength=function(m){var u=this;return Math.sqrt(m.reduce(function(g,C){var A=C[u.target]-C[u.source];return g+A*A},0))},h}();I.Link3D=f,I.Node3D=function h(m,u,g){void 0===m&&(m=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=m,this.y=u,this.z=g};var p=function(){function h(m,u,g){var C=this;void 0===g&&(g=1),this.nodes=m,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var A=0;A{"use strict";function o(l,h){var m={};for(var u in l)m[u]={};for(var u in h)m[u]={};return Object.keys(m).length}function c(l,h){var m=0;for(var u in l)void 0!==h[u]&&++m;return m}function v(l,h,m,u){var g=function x(l,h){var m={},u=function(g,C){void 0===m[g]&&(m[g]={}),m[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),A=h.getTargetIndex(g);u(C,A),u(A,C)}),m}(l,u);l.forEach(function(C){var A=g[u.getSourceIndex(C)],k=g[u.getTargetIndex(C)];u.setLength(C,1+h*m(A,k))})}function p(l,h,m){var u=[],g=0,C=[],A=[];function k(J){J.index=J.lowlink=g++,C.push(J),J.onStack=!0;for(var tt=0,Q=J.out;tt{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function h(m,u,g){this.source=m,this.target=u,this.type=g};I.PowerEdge=o;var c=function(){function h(m,u,g,C){var A=this;if(this.linkAccessor=g,this.modules=new Array(m),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new f);for(var k=0;k=this.R))return this.merge(g.a,g.b,m),!0}},h.prototype.nEdges=function(m,u){var g=m.incoming.intersection(u.incoming),C=m.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(m){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(k){var F=u.modules[k.source],O=u.modules[k.target];m.push(new o(void 0===F.gid?k.source:g[F.gid],void 0===O.gid?k.target:g[O.gid],k.type))}),g},h.prototype.allEdges=function(){var m=[];return h.getEdges(this.roots[0],m),m},h.getEdges=function(m,u){m.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,m,u){h.forAll(function(g){if(g.isLeaf())m.leaves||(m.leaves=[]),m.leaves.push(g.id);else{var C=m;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var A in g.definition)C[A]=g.definition[A];m.groups||(m.groups=[]),m.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}I.Configuration=c;var v=function(){function h(m,u,g,C,A){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new f),this.id=m,this.outgoing=u,this.incoming=g,this.children=C,this.definition=A}return h.prototype.getEdges=function(m){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(A){m.push(new o(u.id,A.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 void 0!==this.definition},h}();I.Module=v;var f=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(m){var u=new h;return u.table=function _(h,m){var u={};for(var g in h)g in m&&(u[g]=h[g]);return u}(this.table,m.table),u},h.prototype.intersectionCount=function(m){return this.intersection(m).count()},h.prototype.contains=function(m){return m in this.table},h.prototype.add=function(m){this.table[m.id]=m},h.prototype.remove=function(m){delete this.table[m.id]},h.prototype.forAll=function(m){for(var u in this.table)m(this.table[u])},h.prototype.modules=function(){var m=[];return this.forAll(function(u){u.isPredefined()||m.push(u)}),m},h}();I.ModuleSet=f;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(m){var u=!1;return this.forAllModules(function(g){!u&&g.id==m&&(u=!0)}),u},h.prototype.add=function(m,u){(m in this.sets?this.sets[m]:this.sets[m]=new f).add(u),++this.n},h.prototype.remove=function(m,u){var g=this.sets[m];g.remove(u),0===g.count()&&delete this.sets[m],--this.n},h.prototype.forAll=function(m){for(var u in this.sets)m(this.sets[u],Number(u))},h.prototype.forAllModules=function(m){this.forAll(function(u,g){return u.forAll(m)})},h.prototype.intersection=function(m){var u=new h;return this.forAll(function(g,C){if(C in m.sets){var A=g.intersection(m.sets[C]),k=A.count();k>0&&(u.sets[C]=A,u.n+=k)}}),u},h}();I.LinkSets=t,I.getGroups=function l(h,m,u,g){for(var A=new c(h.length,m,u,g);A.greedyMerge(););var k=[],F=A.getGroupHierarchy(k);return k.forEach(function(O){var R=function(U){var V=O[U];"number"==typeof V&&(O[U]=h[V])};R("source"),R("target")}),{groups:F,powerEdges:k}}},88866:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function(){function x(v){this.elem=v,this.subheaps=[]}return x.prototype.toString=function(v){for(var _="",f=!1,t=0;t0)}return null}}return f.prototype.clear=function(){this._root=null,this.size=0},f.prototype.find=function(t){for(var p=this._root;null!==p;){var l=this._comparator(t,p.data);if(0===l)return p.data;p=p.get_child(l>0)}return null},f.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},f.prototype.upperBound=function(t){var p=this._comparator;return this._bound(t,function l(h,m){return p(m,h)})},f.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},f.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},f.prototype.iterator=function(){return new x(this)},f.prototype.each=function(t){for(var l,p=this.iterator();null!==(l=p.next());)t(l)},f.prototype.reach=function(t){for(var l,p=this.iterator();null!==(l=p.prev());)t(l)},f.prototype._bound=function(t,p){for(var l=this._root,h=this.iterator();null!==l;){var m=this._comparator(t,l.data);if(0===m)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(m>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(p(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},f}();I.TreeBase=c;var x=function(){function f(t){this._tree=t,this._ancestors=[],this._cursor=null}return f.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},f.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var p;do{if(p=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===p)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},f.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var p;do{if(p=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===p)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},f.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},f.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},f}();I.Iterator=x;var v=function(){function f(t){this.data=t,this.left=null,this.right=null,this.red=!0}return f.prototype.get_child=function(t){return t?this.right:this.left},f.prototype.set_child=function(t,p){t?this.right=p:this.left=p},f}(),_=function(f){function t(p){var l=f.call(this)||this;return l._root=null,l._comparator=p,l.size=0,l}return o(t,f),t.prototype.insert=function(p){var l=!1;if(null===this._root)this._root=new v(p),l=!0,this.size++;else{var h=new v(void 0),m=!1,u=!1,g=null,C=h,A=null,k=this._root;for(C.right=this._root;;){if(null===k?(k=new v(p),A.set_child(m,k),l=!0,this.size++):t.is_red(k.left)&&t.is_red(k.right)&&(k.red=!0,k.left.red=!1,k.right.red=!1),t.is_red(k)&&t.is_red(A)){var F=C.right===g;k===A.get_child(u)?C.set_child(F,t.single_rotate(g,!u)):C.set_child(F,t.double_rotate(g,!u))}var O=this._comparator(k.data,p);if(0===O)break;u=m,null!==g&&(C=g),g=A,A=k,k=k.get_child(m=O<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(p){if(null===this._root)return!1;var l=new v(void 0),h=l;h.right=this._root;for(var m=null,u=null,g=null,C=!0;null!==h.get_child(C);){var A=C;u=m,m=h,h=h.get_child(C);var k=this._comparator(p,h.data);if(C=k>0,0===k&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var F=t.single_rotate(h,C);m.set_child(A,F),m=F}else if(!t.is_red(h.get_child(!C))){var O=m.get_child(!A);if(null!==O)if(t.is_red(O.get_child(!A))||t.is_red(O.get_child(A))){var R=u.right===m;t.is_red(O.get_child(A))?u.set_child(R,t.double_rotate(m,A)):t.is_red(O.get_child(!A))&&u.set_child(R,t.single_rotate(m,A));var U=u.get_child(R);U.red=!0,h.red=!0,U.left.red=!1,U.right.red=!1}else m.red=!1,O.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,m.set_child(m.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(p){return null!==p&&p.red},t.single_rotate=function(p,l){var h=p.get_child(!l);return p.set_child(!l,h.get_child(l)),h.set_child(l,p),p.red=!0,h.red=!1,h},t.double_rotate=function(p,l){return p.set_child(!l,t.single_rotate(p.get_child(!l),!l)),t.single_rotate(p,l)},t}(c);I.RBTree=_},4068:function(w,I,o){"use strict";var J,c=this&&this.__extends||(J=function(tt,Q){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,H){at.__proto__=H}||function(at,H){for(var K in H)H.hasOwnProperty(K)&&(at[K]=H[K])})(tt,Q)},function(tt,Q){function at(){this.constructor=tt}J(tt,Q),tt.prototype=null===Q?Object.create(Q):(at.prototype=Q.prototype,new at)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(98237),v=o(94655);function _(J){return J.bounds=void 0!==J.leaves?J.leaves.reduce(function(tt,Q){return Q.bounds.union(tt)},f.empty()):f.empty(),void 0!==J.groups&&(J.bounds=J.groups.reduce(function(tt,Q){return _(Q).union(tt)},J.bounds)),J.bounds=J.bounds.inflate(J.padding),J.bounds}I.computeGroupBounds=_;var f=function(){function J(tt,Q,at,H){this.x=tt,this.X=Q,this.y=at,this.Y=H}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(tt){var Q=this.cx(),at=tt.cx();return Q<=at&&tt.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(tt,Q,at,H,K,lt,it,z){var E=at-tt,Ct=it-K,It=H-Q,Rt=z-lt,Ht=Rt*E-Ct*It;if(0==Ht)return null;var ne=tt-K,Ut=Q-lt,ft=(Ct*Ut-Rt*ne)/Ht,Qt=(E*Ut-It*ne)/Ht;return ft>=0&&ft<=1&&Qt>=0&&Qt<=1?{x:tt+ft*E,y:Q+ft*It}:null},J.prototype.inflate=function(tt){return new J(this.x-tt,this.X+tt,this.y-tt,this.Y+tt)},J}();I.Rectangle=f,I.makeEdgeBetween=function t(J,tt,Q){var at=J.rayIntersection(tt.cx(),tt.cy())||{x:J.cx(),y:J.cy()},H=tt.rayIntersection(J.cx(),J.cy())||{x:tt.cx(),y:tt.cy()},K=H.x-at.x,lt=H.y-at.y,it=Math.sqrt(K*K+lt*lt),z=it-Q;return{sourceIntersection:at,targetIntersection:H,arrowStart:{x:at.x+z*K/it,y:at.y+z*lt/it}}},I.makeEdgeTo=function p(J,tt,Q){var at=tt.rayIntersection(J.x,J.y);at||(at={x:tt.cx(),y:tt.cy()});var H=at.x-J.x,K=at.y-J.y,lt=Math.sqrt(H*H+K*K);return{x:at.x-Q*H/lt,y:at.y-Q*K/lt}};var l=function J(tt,Q,at){this.v=tt,this.r=Q,this.pos=at,this.prev=u(),this.next=u()},h=function J(tt,Q,at){this.isOpen=tt,this.v=Q,this.pos=at};function m(J,tt){return J.pos>tt.pos?1:J.pos0&&(J[at].insert(K),K[H].insert(J))};Q("next","prev"),Q("prev","next")}};function A(J,tt,Q,at){void 0===at&&(at=!1);var H=J.padding,K=void 0!==J.groups?J.groups.length:0,lt=void 0!==J.leaves?J.leaves.length:0,it=K?J.groups.reduce(function(ge,ye){return ge.concat(A(ye,tt,Q,!0))},[]):[],z=(at?2:0)+lt+K,E=new Array(z),Ct=new Array(z),It=0,Rt=function(ge,ye){Ct[It]=ge,E[It++]=ye};if(at){var Ht=J.bounds,ne=tt.getCentre(Ht),Ut=tt.getSize(Ht)/2,vt=tt.getOpen(Ht),ft=tt.getClose(Ht),Nt=ne-Ut+H/2,Qt=ne+Ut-H/2;J.minVar.desiredPosition=Nt,Rt(tt.makeRect(vt,ft,Nt,H),J.minVar),J.maxVar.desiredPosition=Qt,Rt(tt.makeRect(vt,ft,Qt,H),J.maxVar)}lt&&J.leaves.forEach(function(ge){return Rt(ge.bounds,ge.variable)}),K&&J.groups.forEach(function(ge){var ye=ge.bounds;Rt(tt.makeRect(tt.getOpen(ye),tt.getClose(ye),tt.getCentre(ye),tt.getSize(ye)),ge.minVar)});var me=k(Ct,E,tt,Q);return K&&(E.forEach(function(ge){ge.cOut=[],ge.cIn=[]}),me.forEach(function(ge){ge.left.cOut.push(ge),ge.right.cIn.push(ge)}),J.groups.forEach(function(ge){var ye=(ge.padding-tt.getSize(ge.bounds))/2;ge.minVar.cIn.forEach(function(Be){return Be.gap+=ye}),ge.minVar.cOut.forEach(function(Be){Be.left=ge.maxVar,Be.gap+=ye})})),it.concat(me)}function k(J,tt,Q,at){var H,K=J.length,lt=2*K;console.assert(tt.length>=K);var it=new Array(lt);for(H=0;Hit[at]&&(it[at]=z)}lt=it})}},J.prototype.createAlignment=function(tt){var Q=this,at=this.nodes[tt.offsets[0].node].variable;this.makeFeasible(tt);var H="x"===tt.axis?this.xConstraints:this.yConstraints;tt.offsets.slice(1).forEach(function(K){H.push(new x.Constraint(at,Q.nodes[K.node].variable,K.offset,!0))})},J.prototype.createConstraints=function(tt){var Q=this,at=function(H){return void 0===H.type||"separation"===H.type};this.xConstraints=tt.filter(function(H){return"x"===H.axis&&at(H)}).map(function(H){return Q.createSeparation(H)}),this.yConstraints=tt.filter(function(H){return"y"===H.axis&&at(H)}).map(function(H){return Q.createSeparation(H)}),tt.filter(function(H){return"alignment"===H.type}).forEach(function(H){return Q.createAlignment(H)})},J.prototype.setupVariablesAndBounds=function(tt,Q,at,H){this.nodes.forEach(function(K,lt){K.fixed?(K.variable.weight=K.fixedWeight?K.fixedWeight:1e3,at[lt]=H(K)):K.variable.weight=1;var it=(K.width||0)/2,z=(K.height||0)/2,E=tt[lt],Ct=Q[lt];K.bounds=new f(E-it,E+it,Ct-z,Ct+z)})},J.prototype.xProject=function(tt,Q,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(tt,Q,tt,at,function(H){return H.px},this.xConstraints,V,function(H){return H.bounds.setXCentre(at[H.variable.index]=H.variable.position())},function(H){var K=at[H.minVar.index]=H.minVar.position(),lt=at[H.maxVar.index]=H.maxVar.position(),it=H.padding/2;H.bounds.x=K-it,H.bounds.X=lt+it})},J.prototype.yProject=function(tt,Q,at){!this.rootGroup&&!this.yConstraints||this.project(tt,Q,Q,at,function(H){return H.py},this.yConstraints,W,function(H){return H.bounds.setYCentre(at[H.variable.index]=H.variable.position())},function(H){var K=at[H.minVar.index]=H.minVar.position(),lt=at[H.maxVar.index]=H.maxVar.position(),it=H.padding/2;H.bounds.y=K-it,H.bounds.Y=lt+it})},J.prototype.projectFunctions=function(){var tt=this;return[function(Q,at,H){return tt.xProject(Q,at,H)},function(Q,at,H){return tt.yProject(Q,at,H)}]},J.prototype.project=function(tt,Q,at,H,K,lt,it,z,E){this.setupVariablesAndBounds(tt,Q,H,K),this.rootGroup&&this.avoidOverlaps&&(_(this.rootGroup),lt=lt.concat(it(this.rootGroup))),this.solve(this.variables,lt,at,H),this.nodes.forEach(z),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(E),_(this.rootGroup))},J.prototype.solve=function(tt,Q,at,H){var K=new x.Solver(tt,Q);K.setStartingPositions(at),K.setDesiredPositions(H),K.solve()},J}();I.Projection=ut},33858:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(88866),x=function t(p,l){this.id=p,this.distance=l},v=function t(p){this.id=p,this.neighbours=[]},_=function t(p,l,h){this.node=p,this.prev=l,this.d=h},f=function(){function t(p,l,h,m,u){this.n=p,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new v(g);for(g=this.es.length;g--;){var C=this.es[g],A=h(C),k=m(C),F=u(C);this.neighbours[A].neighbours.push(new x(k,F)),this.neighbours[k].neighbours.push(new x(A,F))}}return t.prototype.DistanceMatrix=function(){for(var p=new Array(this.n),l=0;lO&&(k.d=O,k.prev=C,h.reduceKey(k.q,k,function(U,V){return U.q=V}))}}return u},t}();I.Calculator=f},98237:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function(){function p(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return p.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},p.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},p}();I.PositionStats=o;var c=function(){function p(l,h,m,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=m,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=m,this.equality=u}return p.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},p}();I.Constraint=c;var x=function(){function p(l,h,m){void 0===h&&(h=1),void 0===m&&(m=1),this.desiredPosition=l,this.weight=h,this.scale=m,this.offset=0}return p.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},p.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},p.prototype.visitNeighbours=function(l,h){var m=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return m(u,u.right)}),this.cIn.forEach(function(u){return m(u,u.left)})},p}();I.Variable=x;var v=function(){function p(l){this.vars=[],l.offset=0,this.ps=new o(l.scale),this.addVariable(l)}return p.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},p.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)}}},p.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},p.LAGRANGIAN_TOLERANCE=-1e-4,p.ZERO_UPPERBOUND=-1e-10,p}();I.Solver=f,I.removeOverlapInOneDimension=function t(p,l,h){for(var m=p.map(function(nt){return new x(nt.desiredCenter)}),u=[],g=p.length,C=0;C{a.d(b,{D:()=>B});var M=a(20449),v=a(84847),l=a(32075),c=a(9244),E=a(36908),e=a(5e3),t=a(18750),T=a(77446),f=a(69808),D=a(98380),p=a(51062),x=a(37677);function s(r,m){if(1&r){const i=e.EpF();e.TgZ(0,"th",15),e.TgZ(1,"mat-checkbox",16),e.NdJ("change",function(g){e.CHM(i);const o=e.oxw();return g?o.masterToggle():null}),e.qZA(),e.qZA()}if(2&r){const i=e.oxw();e.xp6(1),e.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function u(r,m){if(1&r){const i=e.EpF();e.TgZ(0,"td",17),e.TgZ(1,"mat-checkbox",18),e.NdJ("change",function(g){const d=e.CHM(i).$implicit,n=e.oxw();return g?n.selection.toggle(d):null})("click",function(g){return g.stopPropagation()}),e.qZA(),e.qZA()}if(2&r){const i=m.$implicit,_=e.oxw();e.xp6(1),e.Q6J("aria-label",_.checkboxLabel(i))("checked",_.selection.isSelected(i))}}function O(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")," "))}function A(r,m){if(1&r&&(e.TgZ(0,"td",20),e._uU(1),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(i.id)}}function S(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")," "))}function P(r,m){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(i.name)}}function L(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")," "))}function Z(r,m){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.ALo(2,"extSourceType"),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,i.type))}}function y(r,m){1&r&&e._UZ(0,"tr",22)}function U(r,m){1&r&&e._UZ(0,"tr",23)}function w(r,m){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function N(r,m){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let B=(()=>{class r{constructor(i,_){this.authResolver=i,this.tableCheckbox=_,this.selection=new M.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=c.f7}set matSort(i){this.sort=i,this.setDataSource()}static getDataForColumn(i,_){switch(_){case"id":return i.id.toString();case"type":return i.type.substring(40);case"name":return i.name;default:return""}}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(i=>"id"!==i)),this.dataSource=new l.by(this.extSources),this.setDataSource()}exportData(i){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,r.getDataForColumn),i)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(i,_)=>(0,c.Sd)(i,_,this.displayedColumns,r.getDataForColumn),this.dataSource.sortData=(i,_)=>(0,c.pR)(i,_,r.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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return r.\u0275fac=function(i){return new(i||r)(e.Y36(E.x4),e.Y36(E.UA))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-ext-sources-list"]],viewQuery:function(i,_){if(1&i&&(e.Gf(c.l9,7),e.Gf(v.YE,7)),2&i){let g;e.iGM(g=e.CRH())&&(_.child=g.first),e.iGM(g=e.CRH())&&(_.matSort=g.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[e.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","type"],["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"],["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(i,_){1&i&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(o){return _.exportData(o)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,s,2,3,"th",4),e.YNc(5,u,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,O,3,3,"th",7),e.YNc(8,A,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,S,3,3,"th",7),e.YNc(11,P,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,L,3,3,"th",7),e.YNc(14,Z,3,3,"td",10),e.BQk(),e.YNc(15,y,1,0,"tr",12),e.YNc(16,U,1,0,"tr",13),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,w,3,3,"perun-web-apps-alert",14),e.YNc(18,N,3,3,"perun-web-apps-alert",14)),2&i&&(e.Q6J("hidden",0===_.extSources.length||0===_.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),e.xp6(1),e.Q6J("dataSource",_.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",_.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",_.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===_.extSources.length),e.xp6(1),e.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.extSources.length))},directives:[t.l,l.BZ,v.YE,l.w1,l.fO,l.ge,T.oG,l.Dz,l.ev,v.nU,l.as,l.XQ,l.nj,l.Gk,f.O5,D.w],pipes:[p.X$,x.A],styles:[""]}),r})()},60526:(I,b,a)=>{a.d(b,{b:()=>g});var M=a(32105),v=a(9244),l=a(16074),c=a(32075),E=a(36908),e=a(64080),t=a(5e3),T=a(48966),f=a(51062),D=a(9224),p=a(69808),x=a(20773),s=a(47423),u=a(25245),O=a(69773),A=a(21757),S=a(21330),P=a(62383);function L(o,d){1&o&&t._UZ(0,"mat-spinner",4)}function Z(o,d){1&o&&t._UZ(0,"th",12)}function y(o,d){if(1&o&&(t.TgZ(0,"td",13),t._uU(1),t.qZA()),2&o){const n=d.$implicit;t.xp6(1),t.hij("",n,":")}}function U(o,d){1&o&&t._UZ(0,"th",12)}function w(o,d){if(1&o){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(n),t.oxw(4).changeStatus()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function N(o,d){if(1&o&&(t.TgZ(0,"div"),t.TgZ(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",15),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,w,3,0,"button",16),t.qZA()),2&o){const n=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,n.member.status),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,n.member.status)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,n.member.status)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id))}}function B(o,d){if(1&o){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(n),t.oxw(4).changeVoExpiration(!1)}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function r(o,d){if(1&o&&(t.TgZ(0,"div"),t.TgZ(1,"i",18),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,B,3,0,"button",16),t.qZA()),2&o){const n=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,n.voExpiration)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id))}}function m(o,d){if(1&o&&(t.TgZ(0,"td",14),t.YNc(1,N,9,12,"div",3),t.YNc(2,r,5,4,"div",3),t.qZA()),2&o){const n=d.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===n),t.xp6(1),t.Q6J("ngIf","Expiration"===n)}}function i(o,d){1&o&&t._UZ(0,"tr",19)}function _(o,d){if(1&o&&(t.TgZ(0,"div"),t.TgZ(1,"table",5),t.ynx(2,6),t.YNc(3,Z,1,0,"th",7),t.YNc(4,y,2,1,"td",8),t.BQk(),t.ynx(5,9),t.YNc(6,U,1,0,"th",7),t.YNc(7,m,3,2,"td",10),t.BQk(),t.YNc(8,i,1,0,"tr",11),t.qZA(),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("dataSource",n.voMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",n.displayedColumns)}}let g=(()=>{class o{constructor(n,h,R,C,W,K){this.dialog=n,this.authResolver=h,this.apiRequest=R,this.attributesManager=C,this.translate=W,this.notificator=K,this.voMembershipDataSource=new c.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new c.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const n=(0,v.kZ)();n.width="600px",n.data={member:this.member,voId:this.vo.id};const h=this.member.status;this.dialog.open(l.pf,n).afterClosed().subscribe(C=>{C&&(this.member=C,("VALID"===h&&("EXPIRED"===C.status||"DISABLED"===C.status)||"VALID"===C.status)&&this.changeVoExpiration(!0))})}changeVoExpiration(n){const h=(0,v.kZ)();h.width="400px",h.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:n},this.dialog.open(l.kZ,h).afterClosed().subscribe(C=>{C.success&&(C.member&&(this.member=C.member),this.refreshVoExpiration())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,e.r.MEMBER_DEF_EXPIRATION).subscribe(n=>{this.voExpirationAtt=n,this.voExpiration=n.value?n.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},n=>{const h=n.error;"PrivilegeException"!==h.name?this.notificator.showError(h.name):this.voMembershipDataSource=new c.by(["Status"]),this.loading=!1})}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(T.uw),t.Y36(E.x4),t.Y36(E.F5),t.Y36(M.H8),t.Y36(f.sK),t.Y36(E.V6))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[t.TTD],decls:9,vars:5,consts:[[1,"mat-elevation-z3","membership-card"],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-table","",1,"ml-auto","mr-auto",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(n,h){1&n&&(t.TgZ(0,"mat-card",0),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content"),t.YNc(7,L,1,0,"mat-spinner",2),t.YNc(8,_,9,2,"div",3),t.qZA(),t.qZA()),2&n&&(t.xp6(4),t.hij(" ",t.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),t.xp6(3),t.Q6J("ngIf",h.loading),t.xp6(1),t.Q6J("ngIf",!h.loading))},directives:[D.a8,D.dk,D.n5,D.dn,p.O5,x.$g,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,s.lW,u.Hw,c.nj,c.Gk],pipes:[f.X$,O.u,A.f,S.r,P.M],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),o})()},21330:(I,b,a)=>{a.d(b,{r:()=>v});var M=a(5e3);let v=(()=>{class l{transform(E,e){return"valid"!==E.toLowerCase()||e&&"valid"!==E.toLowerCase()?E:"ACTIVE"}}return l.\u0275fac=function(E){return new(E||l)},l.\u0275pipe=M.Yjl({name:"transformMemberStatus",type:l,pure:!0}),l})()},71992:(I,b,a)=>{a.d(b,{a:()=>T});var M=a(36908),v=a(32105),l=a(24850),c=a(27221),E=a(21086),e=a(5e3),t=a(11735);let T=(()=>{class f{constructor(p,x,s,u,O,A,S,P){this.authResolver=p,this.routePolicyService=x,this.router=s,this.notificator=u,this.apiRequest=O,this.memberManager=A,this.groupManager=S,this.resourceManager=P}static getBeanName(p){switch(p){case"organizations":return"Vo";case"groups":return"Group";case"facilities":case"services":return"Facility";case"resources":return"Resource";case"members":return"Member";default:return""}}static parseUrl(p){const x=p.slice(1).split("/").reverse(),s={key:"",entity:{id:-1,beanName:""}};for(const u of x){if(Number(u)){if(-1===s.entity.id){s.entity.id=Number(u);continue}"services-status-"===s.key&&(s.entity.id=Number(u));break}s.key=u.concat("-",s.key)}return s.key=s.key.slice(0,s.key.length-1),s.entity.beanName=f.getBeanName(s.key.split("-")[0]),s}canActivateChild(p,x){if(this.authResolver.isPerunAdminOrObserver())return!0;const s=f.parseUrl(x.url);return s.key.startsWith("members")?(this.apiRequest.dontHandleErrorForNext(),this.memberManager.getMemberById(s.entity.id).pipe((0,l.U)(u=>(s.entity.userId=u.userId,s.entity.voId=u.voId,this.finalizeCanActivateChild(s))),(0,c.K)(u=>this.errorRedirectUrl(u.error)))):s.key.startsWith("groups")?(this.apiRequest.dontHandleErrorForNext(),this.groupManager.getGroupById(s.entity.id).pipe((0,l.U)(u=>(s.entity.voId=u.voId,this.finalizeCanActivateChild(s))),(0,c.K)(u=>this.errorRedirectUrl(u.error)))):s.key.startsWith("resources")?(this.apiRequest.dontHandleErrorForNext(),this.resourceManager.getResourceById(s.entity.id).pipe((0,l.U)(u=>(s.entity.facilityId=u.facilityId,s.entity.voId=u.voId,this.finalizeCanActivateChild(s))),(0,c.K)(u=>this.errorRedirectUrl(u.error)))):this.finalizeCanActivateChild(s)}finalizeCanActivateChild(p){return!!this.routePolicyService.canNavigate(p.key,p.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}errorRedirectUrl(p){if("PrivilegeException"===p.name)return this.notificator.showRouteError(),(0,E.of)(this.router.parseUrl("/notAuthorized"))}}return f.\u0275fac=function(p){return new(p||f)(e.LFG(M.x4),e.LFG(M.Ip),e.LFG(t.F0),e.LFG(M.V6),e.LFG(M.F5),e.LFG(v.uq),e.LFG(v.ff),e.LFG(v.xk))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/858.89bd34484ea4bff6.js b/dist/apps/admin-gui/858.89bd34484ea4bff6.js new file mode 100644 index 000000000..1eefb4b3e --- /dev/null +++ b/dist/apps/admin-gui/858.89bd34484ea4bff6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[858],{60858:($p,dt,c)=>{c.r(dt),c.d(dt,{VosModule:()=>jp});var g=c(69808),b=c(11735),Yt=c(25309),z=c(69024),O=c(36769),h=c(32105),m=c(9244),u=c(36908),Z=c(64080),w=c(16074),Jt=c(41656),mt=c(22158),gt=c(7625),t=c(5e3),V=c(77968),p=c(48966),X=c(15003),W=c(4235),f=c(20773),P=c(25245),x=c(29772),I=c(47423),F=c(61283),d=c(51062),Qt=c(45942),kt=c(29218),Bt=c(28764);function Ht(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function jt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editGroup()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function $t(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteGroup()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function zt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onSyncDetail()}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA(),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 Xt(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",15),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,zt,6,11,"button",16),t.qZA(),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 Wt=function(){return{color:"black"}},Kt=function(i,n){return["/organizations",i,"groups",n]},te=function(i){return["/organizations",i]};function ee(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,jt,3,0,"button",10),t.YNc(11,$t,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",8),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,Xt,7,10,"span",2),t.qZA(),t.qZA(),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,16,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(26,Wt)),t.xp6(4),t.Q6J("routerLink",t.WLB(27,Kt,e.vo.id,e.group.id)),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,18,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,20,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,22,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("routerLink",t.VKq(30,te,e.vo.id)),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,24,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let ie=(()=>{class i extends((0,mt.T)()){constructor(e,o,a,s,r,_,A,v,R,ut){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.sideMenuItemService=s,this.groupService=r,this.dialog=_,this.guiAuthResolver=A,this.router=v,this.entityStorageService=R,this.reloadEntityDetail=ut,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[Z.r.GROUP_SYNC_ENABLED,Z.r.GROUP_LAST_SYNC_STATE,Z.r.GROUP_LAST_SYNC_TIMESTAMP,Z.r.GROUP_STRUCTURE_SYNC_ENABLED,Z.r.GROUP_LAST_STRUCTURE_SYNC_STATE,Z.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,gt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,m.kZ)();e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.Bp,e)}editGroup(){const e=(0,m.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:w.Eg.GROUP},this.dialog.open(w.rd,e).afterClosed().subscribe(a=>{a&&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),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(a).subscribe(r=>{this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,m.sF)("groups",this.group),(0,m.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(a,this.attrNames).subscribe(_=>{this.group=_,this.syncEnabled=(0,m.bx)(_),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,m.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(Jt.P,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["../"],{relativeTo:this.route})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(z.V),t.Y36(h.ff),t.Y36(p.uw),t.Y36(u.x4),t.Y36(b.F0),t.Y36(u.fb),t.Y36(X.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"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"],[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"],["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,Ht,1,0,"mat-spinner",1),t.YNc(3,ee,25,32,"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))},directives:[W.W,g.O5,f.$g,P.Hw,x.gM,g.PC,b.yS,I.lW,F.A],pipes:[d.X$,Qt.r,kt.J,Bt.F],styles:[""],data:{animation:[O.Ji]}}),i})();function oe(i,n){1&i&&t._UZ(0,"mat-spinner",3)}const ne=function(i){return["/admin","users",i]};function ae(i,n){if(1&i&&(t.TgZ(0,"a",8),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("routerLink",t.VKq(2,ne,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function se(i,n){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 re=function(){return{color:"black"}},le=function(i,n){return["/organizations",i,"members",n]};function ce(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.qZA(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,ae,2,4,"a",11),t.YNc(15,se,2,1,"span",2),t.qZA(),t.qZA(),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,9,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(15,re)),t.xp6(4),t.Q6J("routerLink",t.WLB(16,le,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,11,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let pe=(()=>{class i{constructor(e,o,a,s,r,_,A){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=a,this.membersService=s,this.voService=r,this.route=_,this.authResolver=A,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(a).subscribe(r=>{this.member=r;const _=this.sideMenuItemService.parseVo(this.vo),A=this.sideMenuItemService.parseMember(this.member);this.fullName=A.label,this.sideMenuService.setAccessMenuItems([_,A]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.V),t.Y36(d.sK),t.Y36(V.D),t.Y36(h.uq),t.Y36(h.YF),t.Y36(b.gz),t.Y36(u.x4))},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"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"]],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,17,19,"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))},directives:[W.W,g.O5,f.$g,P.Hw,x.gM,g.PC,b.yS,F.A],pipes:[d.X$],styles:[""],data:{animation:[O.Ji]}}),i})();var Y=c(71135);function ue(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function _e(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 de=(()=>{class i{constructor(e,o,a,s,r,_){this.sideMenuService=e,this.voService=o,this.router=a,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=_,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){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(V.D),t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.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,ue,1,0,"mat-spinner",0),t.YNc(1,_e,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var me=c(4732),ge=c(81847),he=c(11717),Te=c(50301);function Ae(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const fe=function(i){return["/organizations/",i]};function Ie(i,n){if(1&i&&(t.TgZ(0,"span"),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t.YNc(3,Ae,2,0,"span",1),t.qZA()),2&i){const e=n.$implicit,o=n.index,a=t.oxw();t.xp6(1),t.Q6J("perunWebAppsForceRouterLink",t.VKq(3,fe,e.id)),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Q6J("ngIf",a.vos.length>o+1)}}function be(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let ve=(()=>{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"],["queryParamsHandling","merge",1,"vo-link","pointer",3,"perunWebAppsForceRouterLink"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,Ie,4,5,"span",0),t.YNc(3,be,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))},directives:[g.sg,Te.Kd,g.O5],pipes:[d.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ee(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editVo()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Se(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).removeVo()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function xe(i,n){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 Ze(i,n){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 Ne=function(){return{color:"black"}},Oe=function(i){return["/organizations/",i]};function De(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ce,3,0,"button",10),t.YNc(11,Se,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,xe,1,2,"app-related-vos",13),t.YNc(17,Ze,1,2,"app-related-vos",13),t.qZA(),t.qZA(),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,13,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(19,Ne))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("routerLink",t.VKq(20,Oe,e.vo.id)),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,15,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,17,"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 Me=(()=>{class i extends((0,mt.T)()){constructor(e,o,a,s,r,_,A,v,R){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.router=s,this.sideMenuItemService=r,this.dialog=_,this.authResolver=A,this.entityStorageService=v,this.reloadEntityDetail=R,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,gt.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(a=>{this.vo=a.vo,this.enrichedVo=a,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,m.sF)("vos",this.vo),(0,m.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,m.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:w.Eg.VO},this.dialog.open(w.rd,e).afterClosed().subscribe(a=>{a&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const a=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([a])}removeVo(){const e=(0,m.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(he.o,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(b.F0),t.Y36(z.V),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.fb),t.Y36(X.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"],["queryParamsHandling","merge","data-cy","vo-name-link",1,"vo-link",3,"routerLink"],[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,Ee,1,0,"mat-spinner",1),t.YNc(3,De,19,22,"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))},directives:[W.W,g.O5,f.$g,P.Hw,x.gM,g.PC,b.yS,I.lW,ve,F.A],pipes:[d.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[O.Ji]}}),i})();var l=c(32075),Le=c(58964),Re=c(19352),N=c(9224),we=c(60526),ht=c(82322),D=c(98380),Tt=c(69773),At=c(21757),Ue=c(21330),ft=c(62383);function Ge(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",7),t.NdJ("groupSelected",function(a){return t.CHM(e),t.oxw().groupIsSelected(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("firstSelectedGroup",e.selectedGroup)("groups",e.groups)}}function Pe(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function ye(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.Oqu(t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function qe(i,n){1&i&&t._UZ(0,"th",17)}function Ve(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.hij("",e,":")}}function Fe(i,n){1&i&&t._UZ(0,"th",17)}function Ye(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).changeStatus()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Je(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",20),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,Ye,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,e.selectedMember.groupStatus),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,e.selectedMember.groupStatus)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,e.selectedMember.groupStatus)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function Qe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).changeExpiration()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function ke(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"i",2),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,Qe,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,e.expiration)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function Be(i,n){if(1&i&&(t.TgZ(0,"td",19),t.YNc(1,Je,9,12,"div",6),t.YNc(2,ke,5,4,"div",6),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===e),t.xp6(1),t.Q6J("ngIf","Expiration"===e)}}function He(i,n){1&i&&t._UZ(0,"tr",23)}function je(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"table",10),t.ynx(2,11),t.YNc(3,qe,1,0,"th",12),t.YNc(4,Ve,2,1,"td",13),t.BQk(),t.ynx(5,14),t.YNc(6,Fe,1,0,"th",12),t.YNc(7,Be,3,2,"td",15),t.BQk(),t.YNc(8,He,1,0,"tr",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("dataSource",e.groupMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns)}}let $e=(()=>{class i{constructor(e,o,a,s){this.groupsManager=e,this.authResolver=o,this.translate=a,this.dialog=s,this.noGroups=!1,this.groupMembershipDataSource=new l.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(e=>{if(this.groups=e,0===this.groups.length)return void(this.noGroups=!0);const o=this.findInitiallySelectedGroupId();this.groupIsSelected(o),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,m.vL)("groups"),this.recentIds){const e=this.groups.find(o=>o.id===this.recentIds[0]);if(e)return e}return this.groups[0]}groupIsSelected(e){this.loading=!0,this.selectedGroup=e,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[Z.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(o=>{this.selectedMember=o[0],this.expirationAtt=this.selectedMember.memberAttributes.find(a=>"groupMembershipExpiration"===a.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new l.by(["Status"]),this.loading=!1})}changeExpiration(e=!1){const o=(0,m.kZ)();o.width="400px",o.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(w.u3,o).afterClosed().subscribe(s=>{s&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const e=(0,m.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(w.pf,e).afterClosed().subscribe(a=>{a&&(this.selectedMember=a,this.changeExpiration(!0))})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.x4),t.Y36(d.sK),t.Y36(p.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[t.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",1,"ml-auto","mr-auto",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(e,o){1&e&&(t.TgZ(0,"mat-card",0),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content",2),t.YNc(7,Ge,1,2,"perun-web-apps-group-search-select",3),t.YNc(8,Pe,1,0,"mat-spinner",4),t.YNc(9,ye,3,3,"perun-web-apps-alert",5),t.YNc(10,je,9,2,"div",6),t.qZA(),t.qZA()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),t.xp6(3),t.Q6J("ngIf",!o.initLoading),t.xp6(1),t.Q6J("ngIf",(o.loading||o.initLoading)&&!o.noGroups),t.xp6(1),t.Q6J("ngIf",o.noGroups),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[N.a8,N.dk,N.n5,N.dn,g.O5,ht.h,f.$g,D.w,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,I.lW,P.Hw,l.nj,l.Gk],pipes:[d.X$,Tt.u,At.f,Ue.r,ft.M],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),i})(),ze=(()=>{class i{transform(e){return(0,m.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var B=c(31359);function Xe(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function We(i,n){1&i&&t._UZ(0,"th",17)}function Ke(i,n){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 ti(i,n){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 ei(i,n){if(1&i&&(t.TgZ(0,"td",18),t.YNc(1,Ke,2,1,"span",1),t.YNc(2,ti,3,3,"span",1),t.qZA()),2&i){const e=n.$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 ii(i,n){1&i&&t._UZ(0,"th",17)}function oi(i,n){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function ni(i,n){1&i&&t._UZ(0,"tr",20)}function ai(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content",21),t.TgZ(7,"div",22),t.ALo(8,"translate"),t.TgZ(9,"button",23),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).requestPwdReset()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.qZA(),t.qZA(),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 si(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,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function ri(i,n){if(1&i&&(t.TgZ(0,"td",33),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.user)," ")}}function li(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,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function ci(i,n){if(1&i&&(t.TgZ(0,"td",33),t.TgZ(1,"span",34),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.qZA()),2&i){const e=n.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function pi(i,n){1&i&&t._UZ(0,"tr",35)}function ui(i,n){1&i&&t._UZ(0,"tr",20)}const It=function(){return["sponsors","expiration"]};function _i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content"),t.TgZ(1,"h6",26),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).changeSponsors()}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"table",28),t.ynx(8,29),t.YNc(9,si,3,3,"th",9),t.YNc(10,ri,3,3,"td",30),t.BQk(),t.ynx(11,31),t.YNc(12,li,3,3,"th",9),t.YNc(13,ci,4,3,"td",30),t.BQk(),t.YNc(14,pi,1,0,"tr",32),t.YNc(15,ui,1,0,"tr",13),t.qZA(),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,It)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,It))}}function di(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"mat-card",24),t.TgZ(2,"mat-card-header"),t.TgZ(3,"mat-card-title"),t.TgZ(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-subtitle",25),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.qZA(),t.YNc(10,_i,16,8,"mat-card-content",1),t.qZA(),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 mi(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",3),t.TgZ(2,"div",4),t.TgZ(3,"mat-card",5),t.TgZ(4,"mat-card-header"),t.TgZ(5,"mat-card-title"),t.TgZ(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"mat-card-content"),t.TgZ(10,"table",7),t.ynx(11,8),t.YNc(12,We,1,0,"th",9),t.YNc(13,ei,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,ii,1,0,"th",9),t.YNc(16,oi,2,1,"td",12),t.BQk(),t.YNc(17,ni,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"div",4),t._UZ(19,"app-member-overview-membership",14),t._UZ(20,"app-member-overview-groups",14),t.qZA(),t.TgZ(21,"div",4),t.YNc(22,ai,12,11,"mat-card",15),t.YNc(23,di,11,7,"div",1),t.qZA(),t.qZA(),t.TgZ(24,"div"),t._UZ(25,"perun-web-apps-menu-buttons-field",16),t.qZA(),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(2),t.Q6J("member",e.member)("vo",e.vo),t.xp6(1),t.Q6J("member",e.member)("vo",e.vo),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 gi=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.attributesManager=e,this.membersService=o,this.usersManager=a,this.route=s,this.dialog=r,this.authResolver=_,this.storeService=A,this.routePolicyService=v,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new l.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new l.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(a=>{const s=this.storeService.get("password_namespace_attributes").map(r=>{const _=r.split(":");return _[_.length-1]});this.attributesManager.getLogins(a.userId).subscribe(r=>{this.logins=r.filter(_=>s.includes(_.friendlyNameParameter)),this.member=a,this.initAttributes(),this.dataSource=new l.by(Array.from(this.attributes.keys())),this.vo={id:a.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(_=>{this.sponsors=_,this.sponsorsDataSource=new l.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,m.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(Le.m,e)}changeSponsors(){const e=(0,m.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Re.H,e).afterClosed().subscribe(a=>{a&&(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"})}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(p.uw),t.Y36(u.x4),t.Y36(u.d6),t.Y36(u.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"],[3,"member","vo"],["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,Xe,1,0,"mat-spinner",0),t.YNc(1,mi,26,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,N.a8,N.dk,N.n5,N.dn,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.nj,l.Gk,we.b,$e,x.gM,I.lW,N.$j,P.Hw,l.as,l.XQ,Y.L],pipes:[d.X$,ze,B.d,ft.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}"]}),i})();var hi=c(85243);function Ti(i,n){1&i&&t._UZ(0,"mat-spinner",2)}const Ai=function(i,n){return["/organizations",i,"groups",n]};function fi(i,n){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t._uU(4),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("routerLink",t.WLB(5,Ai,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function Ii(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,fi,5,8,"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 bi=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R){this.route=e,this.groupService=o,this.voService=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=A,this.entityStorageService=v,this.routePolicyService=R,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),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(a).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,m.sF)("groups",this.group),(0,m.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"}),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"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"HttpErrorResponse"!==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(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.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"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"]],template:function(e,o){1&e&&(t.YNc(0,Ti,1,0,"mat-spinner",0),t.YNc(1,Ii,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,b.yS,Y.L],pipes:[d.X$],styles:[""]}),i})();var vi=c(15592);let Ei=(()=>{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")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var Ci=c(94856);let Si=(()=>{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(a=>{a instanceof b.m2&&(this.currentUrl=a.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")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var K=c(12651);let xi=(()=>{class i{constructor(e){this.entityStorageService=e}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.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"),t.TgZ(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"))},directives:[K.t],pipes:[d.X$],styles:[""]}),i})();function Zi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ni(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 Oi=(()=>{class i{constructor(e,o,a,s){this.voService=e,this.router=o,this.entityStorageService=a,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"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.fb),t.Y36(u.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,Zi,1,0,"mat-spinner",0),t.YNc(1,Ni,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var tt=c(32368),T=c(93075),j=c(79814),S=c(67322),y=c(98833),J=c(74107),Q=c(90508);const Di=["*"];let Mi=(()=>{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(tt.Rr,7),2&e){let a;t.iGM(a=t.CRH())&&(o.toggle=a.first)}},inputs:{title:"title",modelValue:"modelValue"},outputs:{modelChange:"modelChange"},ngContentSelectors:Di,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 a=t.EpF();t.F$t(),t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"label",2),t.NdJ("click",function(){return t.CHM(a),t.MAs(5).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.qZA(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!a.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",a.checked?"open":"closed")}},directives:[tt.Rr,T.JJ,T.On],styles:[""],data:{animation:[O.BQ]}}),i})();var H=c(77446);function Li(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25),t.TgZ(1,"mat-form-field",26),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodStatic=a}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),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 Ri(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function wi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18),t.TgZ(1,"mat-form-field",19),t.TgZ(2,"input",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodDynamic=a}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodDynamicUnit=a}),t.YNc(9,Ri,2,2,"mat-option",17),t.qZA(),t.qZA(),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 Ui(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Gi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Pi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function yi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25),t.TgZ(1,"mat-form-field",26),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodStatic=a}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),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 Vi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Fi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18),t.TgZ(1,"mat-form-field",19),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodDynamic=a}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=a}),t.YNc(9,Vi,2,2,"mat-option",17),t.qZA(),t.qZA(),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 Yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",29),t.TgZ(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.specialLoaPeriodType=a}),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.qZA(),t.YNc(10,qi,7,8,"div",13),t.YNc(11,Fi,10,10,"div",14),t.TgZ(12,"div"),t.TgZ(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=a}),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(3),o=t.MAs(7),a=t.oxw(2);t.xp6(1),t.Q6J("ngModel",a.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",a.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",1),t.TgZ(1,"div",2),t.TgZ(2,"h1",3),t.NdJ("click",function(){return t.CHM(e),t.MAs(6).toggle()}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.enabled=a}),t.qZA(),t.qZA(),t.TgZ(7,"div"),t.TgZ(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7),t.TgZ(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.periodType=a}),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.qZA(),t.YNc(21,Li,7,8,"div",13),t.YNc(22,wi,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotAllowLoasEnabled=a}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field"),t.TgZ(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotAllowLoas=a}),t.YNc(30,Ui,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotExtendLoasEnabled=a}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field"),t.TgZ(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotExtendLoas=a}),t.YNc(38,Gi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriodEnabled=a}),t.ALo(40,"translate"),t.TgZ(41,"div",18),t.TgZ(42,"mat-form-field",19),t.TgZ(43,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriod=a}),t.ALo(44,"translate"),t.qZA(),t.qZA(),t.TgZ(45,"mat-form-field"),t.TgZ(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriodUnit=a}),t.YNc(50,Pi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.specialLoaPeriodEnabled=a}),t.ALo(52,"translate"),t.TgZ(53,"div",7),t.TgZ(54,"div"),t.TgZ(55,"mat-form-field"),t.TgZ(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.specialLoa=a}),t.YNc(61,yi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.YNc(62,Yi,16,13,"div",22),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().saveChanges()}),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(6),o=t.MAs(14),a=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",a.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 bt=(()=>{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 a=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=a}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const a=[];return e.doNotAllowLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotAllowLoas=a,a.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const a=[];return e.doNotExtendLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotExtendLoas=a,a.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const a=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=a,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let a=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(a.startsWith("+")){a.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="dynamic";const s=a.charAt(a.length-1);o.specialLoaPeriodDynamic=a.substring(1,a.length-1),o.specialLoaPeriodDynamicUnit=s}else a.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=a;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(a=>o+=a.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(a=>o+=a.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),a=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),_=this.parseSpecialLoaPeriod(e),A={period:o};return null!==s&&(A.doNotExtendLoa=s),null!==a&&(A.doNotAllowLoa=a),null!==r&&(A.gracePeriod=r),null!==_&&(A.periodLoa=_),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,Ji,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},directives:[g.O5,tt.Rr,T.JJ,T.On,j.VQ,j.U0,S.KE,y.Nt,T.Fj,T.c5,S.bx,S.hX,J.gD,g.sg,Q.ey,Mi,S.UY,H.oG,x.gM,I.lW],pipes:[d.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:[O.BQ]}}),i})();function Qi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){return t.CHM(e),t.oxw().saveExpirationAttribute(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let ki=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>{this.notificator.showRPCError(o.error,this.errorMessage)})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,Z.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(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.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,Qi,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},directives:[g.O5,bt],styles:[""],data:{animation:[O.BQ]}}),i})();var Bi=c(55857),vt=c(69815);let Hi=(()=>{class i{constructor(e,o,a,s){this.dialog=e,this.voService=o,this.guiAuthResolver=a,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(p.uw),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.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)},directives:[vt.s],styles:[""]}),i})();function ji(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function $i(i,n){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 zi(i,n){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),t.TgZ(4,"textarea",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).reason=a}),t.qZA(),t.qZA(),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 Xi(i,n){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),t.TgZ(4,"mat-select",9),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().mailType=a}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,$i,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.qZA(),t.qZA(),t.YNc(24,zi,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 Wi=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,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(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ji,1,0,"mat-spinner",1),t.YNc(5,Xi,25,24,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,J.gD,Q.ey,y.Nt,T.Fj,T.JJ,T.On,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Ki(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function to(i,n){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),t.TgZ(4,"textarea",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().reason=a}),t.qZA(),t.qZA(),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 eo=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,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(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ki,1,0,"mat-spinner",1),t.YNc(5,to,5,4,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,T.Fj,T.JJ,T.On,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function io(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function oo(i,n){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 no(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t.TgZ(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,oo,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 ao(i,n){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 so(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,ao,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 ro(i,n){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,no,4,2,"mat-form-field",8),t.YNc(2,so,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 lo=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,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 T.NI(this.formItemData.value,[T.kI.required,T.kI.email]):this.inputControl=new T.NI(this.formItemData.value,[T.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(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,io,1,0,"mat-spinner",1),t.YNc(5,ro,3,2,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,T.Fj,T.Q7,T.JJ,T.oH,S.TO,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var et=c(4834),co=c(43157);function po(i,n){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 uo(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function _o(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 mo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 go(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 ho(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 To(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).resendNotification()}),t.TgZ(1,"i",14),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 Ao(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(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 fo(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(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 Io(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function bo(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function vo(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function Eo(i,n){if(1&i&&(t.TgZ(0,"div",20),t.TgZ(1,"mat-card-title"),t.TgZ(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA(),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 Co(i,n){if(1&i&&(t.TgZ(0,"div",20),t.TgZ(1,"mat-card-title"),t.TgZ(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA(),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 So(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(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 xo(i,n){1&i&&t._UZ(0,"th",31)}function Zo(i,n){if(1&i&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function No(i,n){1&i&&t._UZ(0,"th",31)}function Oo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw(3).editApplicationData(a)}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Do(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.YNc(2,Oo,3,0,"button",34),t.qZA()),2&i){const e=n.$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 Mo(i,n){1&i&&t._UZ(0,"tr",36)}function Lo(i,n){1&i&&t._UZ(0,"tr",37)}function Ro(i,n){if(1&i&&(t.TgZ(0,"table",23),t.ynx(1,24),t.YNc(2,xo,1,0,"th",25),t.YNc(3,Zo,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,No,1,0,"th",25),t.YNc(6,Do,3,2,"td",28),t.BQk(),t.YNc(7,Mo,1,0,"tr",29),t.YNc(8,Lo,1,0,"tr",30),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 wo(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,_o,3,3,"button",7),t.YNc(2,mo,3,3,"button",7),t.YNc(3,go,3,3,"button",8),t.YNc(4,ho,3,3,"button",8),t.YNc(5,To,5,3,"button",9),t.YNc(6,Ao,5,4,"div",4),t.YNc(7,fo,9,8,"div",4),t.TgZ(8,"div"),t.TgZ(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"),t.TgZ(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,Io,4,0,"span",4),t.YNc(21,bo,4,0,"span",4),t.YNc(22,vo,4,0,"span",4),t.qZA(),t.YNc(23,Eo,12,11,"div",12),t.YNc(24,Co,12,11,"div",12),t.TgZ(25,"div",13),t.TgZ(26,"mat-card-title"),t.TgZ(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,So,5,4,"div",4),t.TgZ(33,"div"),t.TgZ(34,"span",10),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37),t.qZA(),t.TgZ(38,"div"),t.TgZ(39,"span",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42),t.qZA(),t.TgZ(43,"div"),t.TgZ(44,"span",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47),t.ALo(48,"date"),t.qZA(),t.YNc(49,Ro,9,3,"table",15),t.qZA(),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,25,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,27,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,29,"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,31,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,33,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(3),t.Oqu(t.lcZ(36,35,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(41,37,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(46,39,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(48,41,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let it=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.registrarManager=e,this.dialog=o,this.translate=a,this.route=s,this.notificator=r,this.router=_,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 a=Number(e.applicationId);this.registrarManager.getApplicationById(a).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const _=r.userAttributes.find(A=>"preferredMail"===A.friendlyName);this.userMail=null==_?void 0:_.value,this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(r=>{this.userData=r,this.dataSource=new l.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 a=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==a.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):a}return e}resendNotification(){var e;const o=(0,m.kZ)();o.width="500px",o.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:null===(e=this.application.group)||void 0===e?void 0:e.id},this.dialog.open(Wi,o)}deleteApplication(){const e=(0,m.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(w.Ts,e).afterClosed().subscribe(a=>{a&&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,m.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(eo,e).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(a=>{this.application=a,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(e=>{this.application=e,this.loading=!1})})}editApplicationData(e){const o=(0,m.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(lo,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.uw),t.Y36(d.sK),t.Y36(b.gz),t.Y36(u.V6),t.Y36(b.F0),t.Y36(u.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"],["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,"align-text-top"],[1,"card","p-3","mt-2"],[1,"material-icons","red"],[1,"material-icons","green"],["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,po,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,uo,1,0,"mat-spinner",3),t.YNc(6,wo,50,44,"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))},directives:[g.O5,et.d,f.$g,I.lW,P.Hw,N.n5,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk],pipes:[d.X$,co.h,g.uU,B.d],styles:[""]}),i})();var Uo=c(75234),Go=c(37240);let Po=(()=>{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")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var M=c(53251),Et=c(19191);function yo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function qo(i,n){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 Vo(i,n){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 Fo(i,n){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 Yo(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Vo,3,6,"ng-template",1),t.YNc(2,Fo,1,3,"ng-template",2),t.qZA())}function Jo(i,n){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 Qo(i,n){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 ko(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Jo,3,6,"ng-template",1),t.YNc(2,Qo,1,3,"ng-template",2),t.qZA())}let Bo=(()=>{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(u.x4),t.Y36(u.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,yo,2,3,"ng-template",1),t.YNc(7,qo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Yo,3,0,"mat-tab",3),t.YNc(9,ko,3,0,"mat-tab",3),t.qZA(),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))},directives:[M.SP,M.uX,M.uD,M.Vc,K.t,g.O5,Et.Y],pipes:[d.X$],styles:[""]}),i})();function Ho(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function jo(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 $o=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R){this.sideMenuService=e,this.groupService=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=A,this.entityStorageService=v,this.routePolicyService=R,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,Z.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=>{"HttpErrorResponse"!==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"}),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(V.D),t.Y36(h.ff),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.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,Ho,1,0,"mat-spinner",0),t.YNc(1,jo,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var zo=c(10369),Xo=c(21963),Wo=c(28820);function Ko(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 en(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 on(i,n){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=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function nn(i,n){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,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA(),t.qZA(),t.TgZ(6,"div",20),t.YNc(7,nn,2,1,"mat-icon",21),t.YNc(8,an,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),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 rn(i,n){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 ln(i,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24),t._UZ(6,"br"),t._UZ(7,"input",19),t.qZA(),t.qZA(),t.TgZ(8,"div",20),t.YNc(9,rn,2,1,"mat-icon",21),t.YNc(10,ln,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA(),t.qZA(),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 pn(i,n){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=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function un(i,n){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 _n(i,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,pn,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA(),t.qZA(),t.TgZ(8,"div",20),t.YNc(9,un,2,1,"mat-icon",21),t.YNc(10,_n,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA(),t.qZA(),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 mn(i,n){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 gn(i,n){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function hn(i,n){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,n){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 An(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",28),t.YNc(6,gn,2,1,"option",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",20),t.YNc(8,hn,2,1,"mat-icon",21),t.YNc(9,Tn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA(),t.qZA(),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 fn(i,n){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,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,fn,2,1,"mat-icon",21),t.YNc(7,In,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA(),t.qZA(),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 vn(i,n){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function En(i,n){1&i&&(t.TgZ(0,"div",35),t.TgZ(1,"form"),t._UZ(2,"input",36),t.qZA(),t.qZA())}function Cn(i,n){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,n){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 xn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2).$implicit;return t.oxw(2).mapForCombobox[s.id]=a}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,vn,2,1,"option",32),t.qZA(),t.YNc(10,En,3,0,"div",33),t.qZA(),t.qZA(),t.TgZ(11,"div",20),t.YNc(12,Cn,2,1,"mat-icon",21),t.YNc(13,Sn,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA(),t.qZA(),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 Zn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function Nn(i,n){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 On(i,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"form",35),t.YNc(6,Zn,3,2,"div",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",20),t.YNc(8,Nn,2,1,"mat-icon",21),t.YNc(9,On,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA(),t.qZA(),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 Mn(i,n){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 Ln(i,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br"),t._UZ(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br"),t._UZ(12,"input",37),t._uU(13," example group3 "),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"div",20),t.YNc(15,Mn,2,1,"mat-icon",21),t.YNc(16,Ln,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA(),t.qZA(),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 wn(i,n){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 Un(i,n){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 Gn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,wn,2,1,"mat-icon",39),t.YNc(4,Un,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 Pn(i,n){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 yn(i,n){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 qn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Pn,2,1,"mat-icon",39),t.YNc(4,yn,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 Vn(i,n){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 Fn(i,n){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 Yn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",41),t.TgZ(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.qZA(),t.qZA(),t.qZA(),t.TgZ(89,"div",20),t.YNc(90,Vn,2,1,"mat-icon",21),t.YNc(91,Fn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA(),t.qZA(),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 Jn(i,n){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,n){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["Example 1","Example 2"]},Ct=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function Bn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",17),t.TgZ(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.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(),t.qZA(),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,Ct,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 Hn(i,n){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,n){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 $n=function(){return{key1:"value 1",key2:"value 2"}};function zn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",17),t.TgZ(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.qZA(),t.TgZ(6,"div",20),t.YNc(7,Hn,2,1,"mat-icon",21),t.YNc(8,jn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),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,Ct,t.DdM(5,$n))),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,n){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,sn,11,5,"div",15),t.YNc(2,cn,13,6,"div",15),t.YNc(3,dn,13,9,"div",15),t.YNc(4,mn,2,1,"div",2),t.YNc(5,An,12,6,"div",15),t.YNc(6,bn,10,5,"div",15),t.YNc(7,xn,16,11,"div",15),t.YNc(8,Dn,12,5,"div",15),t.YNc(9,Rn,19,7,"div",15),t.YNc(10,Gn,5,4,"div",15),t.YNc(11,qn,5,4,"div",2),t.YNc(12,Yn,94,8,"div",15),t.YNc(13,Bn,11,8,"div",2),t.YNc(14,zn,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||"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 Wn(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Xn,15,14,"div",13),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function Kn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",4),t.YNc(2,tn,5,3,"button",5),t.YNc(3,en,5,3,"button",5),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().currentLanguage=a}),t.YNc(9,on,4,6,"mat-option",7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(10,"div",8),t.YNc(11,Wn,2,1,"div",9),t.qZA(),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 St=(()=>{class i{constructor(e,o,a){this.route=e,this.translate=o,this.store=a,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.get("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 a=[];for(const s of o.split("|"))a.push(s.split("#")[1]);return a}}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,a,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"),a=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} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=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} ${a} ${s}`;default:return""}}hiddenTooltip(e){let o,a,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"),a=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} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=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} ${a} ${s}`;default:return""}}getLocalizedLabel(e){var o;return(null===(o=e.i18n[this.currentLanguage])||void 0===o?void 0:o.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(d.sK),t.Y36(u.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,Ko,1,0,"mat-spinner",1),t.YNc(4,Kn,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))},directives:[g.O5,f.$g,I.lW,S.KE,S.hX,J.gD,g.sg,Q.ey,P.Hw,x.gM,T._Y,T.JL,T.F,T.YN,T.Kr,T.EJ,T.JJ,T.On,Xo.H,Wo.$],pipes:[d.X$,g.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function ta(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function ea(i,n){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 ia(i,n){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 oa(i,n){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 na(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ia,3,6,"ng-template",1),t.YNc(2,oa,1,3,"ng-template",2),t.qZA())}function aa(i,n){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 sa(i,n){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 ra(i,n){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())}function la(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function ca(i,n){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 pa(i,n){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 ua(i,n){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 _a(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,pa,3,6,"ng-template",1),t.YNc(2,ua,1,3,"ng-template",2),t.qZA())}let da=(()=>{class i{constructor(e,o,a){this.route=e,this.authResolver=o,this.memberManager=a}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(u.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,ta,2,3,"ng-template",1),t.YNc(7,ea,1,2,"ng-template",2),t.qZA(),t.YNc(8,na,3,0,"mat-tab",3),t.YNc(9,ra,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,la,2,3,"ng-template",1),t.YNc(12,ca,1,2,"ng-template",2),t.qZA(),t.YNc(13,_a,3,0,"mat-tab",3),t.qZA(),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))},directives:[M.SP,M.uX,M.uD,M.Vc,K.t,g.O5,Et.Y],pipes:[d.X$],styles:[""]}),i})(),ma=(()=>{class i{constructor(e,o,a,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=a,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(V.D),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.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"))},directives:[Y.L],styles:[""]}),i})();var ga=c(68056),ha=c(24219),E=c(20449),Ta=c(17584);function Aa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function fa(i,n){1&i&&t._UZ(0,"th",15)}function Ia(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.tagName)}}function ba(i,n){1&i&&t._UZ(0,"tr",17)}function va(i,n){1&i&&t._UZ(0,"tr",18)}function Ea(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,fa,1,0,"th",11),t.YNc(10,Ia,2,1,"td",12),t.BQk(),t.YNc(11,ba,1,0,"tr",13),t.YNc(12,va,1,0,"tr",14),t.qZA(),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 Ca=(()=>{class i{constructor(e,o,a){this.dialogRef=e,this.data=o,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.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(p.so),t.Y36(p.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Aa,1,0,"mat-spinner",1),t.YNc(5,Ea,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var C=c(10036),G=c(96214),L=c(7434),Sa=c(17672);function xa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Za(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Na(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Oa(i,n){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 Da=(()=>{class i{constructor(e,o,a,s,r,_){this.resourceManager=e,this.dialog=o,this.notificator=a,this.translator=s,this.authResolver=r,this.entityStorageService=_,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,m.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ca,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,m.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ta.p,e).afterClosed().subscribe(a=>{a&&(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(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.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,xa,3,3,"button",2),t.YNc(5,Za,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,Na,1,0,"mat-spinner",5),t.YNc(8,Oa,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))},directives:[G.t,g.O5,I.lW,L.L,f.$g,Sa.o],pipes:[d.X$],styles:[""]}),i})();function Ma(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){return t.CHM(e),t.oxw().saveExpirationAttribute(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let La=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>this.notificator.showRPCError(o.error,this.errorMessage))}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,Z.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(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.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,Ma,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},directives:[g.O5,bt],styles:[""]}),i})(),Ra=(()=>{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(u.x4),t.Y36(u.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)},directives:[vt.s],styles:[""]}),i})();function wa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ua(i,n){1&i&&t._UZ(0,"th",15)}function Ga(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function Pa(i,n){1&i&&t._UZ(0,"tr",17)}function ya(i,n){1&i&&t._UZ(0,"tr",18)}function qa(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,Ua,1,0,"th",11),t.YNc(10,Ga,2,1,"td",12),t.BQk(),t.YNc(11,Pa,1,0,"tr",13),t.YNc(12,ya,1,0,"tr",14),t.qZA(),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 xt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.translate=s,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.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(a=>{o=a}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,wa,1,0,"mat-spinner",1),t.YNc(5,qa,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var Va=c(74533);function Fa(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ya(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"textarea",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().mailFooter=a}),t.qZA(),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij("",t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),":"),t.xp6(3),t.Q6J("ngModel",e.mailFooter)("cdkTextareaAutosize",!0),t.xp6(2),t.hij(" ",t.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let Zt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=a,this.notificator=s,this.data=r,this.mailFooter="",this.loading=!1}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.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(()=>{this.notificationSuccess(),this.dialogRef.close()},()=>this.loading=!1):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(()=>{this.notificationSuccess(),this.dialogRef.close()},()=>this.loading=!1)}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,Z.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.editAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,Z.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.editAuth=this.mailAttribute.writable,this.mailFooter=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(p.so),t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.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"],["matInput","",3,"ngModel","cdkTextareaAutosize","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Fa,1,0,"mat-spinner",1),t.YNc(5,Ya,9,8,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),t.qZA(),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.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.editAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,T.Fj,Va.IC,T.JJ,T.On,p.H8,I.lW,x.gM],pipes:[d.X$],styles:[""]}),i})();var Ja=c(53435);function Qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",1),t.TgZ(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().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.qZA(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=n.$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)},directives:[g.sg,I.lW,x.gM,et.d],pipes:[d.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(["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"]),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"]),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(["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),t.TgZ(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(),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))},directives:[D.w,Ja.PQ,ka],pipes:[d.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Ha(i,n){1&i&&(t.TgZ(0,"div"),t.TgZ(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function ja(i,n){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 $a(i,n){1&i&&t._UZ(0,"mat-spinner",10)}function za(i,n){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,n){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 Wa(i,n){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,n){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,n){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,n){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,n){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,n){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,n){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,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.message[s].subject=a})("focus",function(){return t.CHM(e),t.oxw(5).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.htmlMessage[s].subject=a})("focus",function(){return t.CHM(e),t.oxw(5).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.message[s].text=a})("focus",function(){return t.CHM(e),t.oxw(5).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.htmlMessage[s].text=a})("focus",function(){return t.CHM(e),t.oxw(5).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,n){1&i&&t._UZ(0,"mat-divider",61)}function us(i,n){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),t.TgZ(3,"div",47),t.TgZ(4,"div",48),t.TgZ(5,"button",49),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return a.showTags=!a.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),t.TgZ(13,"div",null,51),t.YNc(15,ss,1,1,"input",52),t.YNc(16,rs,1,1,"input",52),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18),t.TgZ(21,"div",null,54),t.YNc(23,ls,2,1,"textarea",55),t.YNc(24,cs,2,1,"textarea",55),t.qZA(),t.qZA(),t.qZA(),t.YNc(25,ps,1,0,"mat-divider",56),t.TgZ(26,"div"),t.TgZ(27,"app-tag-bar",57),t.NdJ("addedTag",function(a){const r=t.CHM(e).$implicit,_=t.MAs(14),A=t.MAs(22),v=t.oxw(2).$implicit;return t.oxw(2).addTag(_,A,v,a,r)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$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 _s(i,n){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 ds(i,n){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,_s,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_"+n.$implicit)))}function ms(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",11),t.TgZ(1,"div"),t.TgZ(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.TgZ(5,"mat-tab-group",13),t.TgZ(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15),t.TgZ(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17),t.TgZ(13,"mat-form-field",18),t.TgZ(14,"mat-select",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.mailType=a})("selectionChange",function(){return t.CHM(e),t.oxw().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.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,Xa,3,3,"div",30),t.YNc(40,Wa,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15),t.TgZ(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17),t.TgZ(46,"mat-form-field",18),t.TgZ(47,"mat-select",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.appType=a})("selectionChange",function(){return t.CHM(e),t.oxw().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.qZA(),t.qZA(),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),t.TgZ(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17),t.TgZ(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.send=a}),t.qZA(),t.qZA(),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.qZA(),t.qZA(),t.YNc(67,ds,4,5,"mat-tab",36),t.qZA(),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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){return t.CHM(e),t.oxw().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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 ot=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.registrarService=o,this.data=a,this.authResolver=s,this.groupsService=r,this.store=_,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.get("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,a,s,r){let _;_=this.isTextFocused?o.children.item("plain_text"===r?0:1):e.children.item("plain_text"===r?0:1);const A=_.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[a].text=this.applicationMail.htmlMessage[a].text.substring(0,A)+s+this.applicationMail.htmlMessage[a].text.substring(A):this.applicationMail.message[a].text=this.applicationMail.message[a].text.substring(0,A)+s+this.applicationMail.message[a].text.substring(A):"html"===r?this.applicationMail.htmlMessage[a].subject=this.applicationMail.htmlMessage[a].subject.substring(0,A)+s+this.applicationMail.htmlMessage[a].subject.substring(A):this.applicationMail.message[a].subject=this.applicationMail.message[a].subject.substring(0,A)+s+this.applicationMail.message[a].subject.substring(A),_.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(p.so),t.Y36(h.tk),t.Y36(p.WI),t.Y36(u.x4),t.Y36(h.ff),t.Y36(u.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"),t.TgZ(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,$a,1,0,"mat-spinner",3),t.YNc(6,ms,68,55,"div",4),t.TgZ(7,"div",5),t.TgZ(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(),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",a),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)}},directives:[g.O5,p.uh,f.$g,p.xY,D.w,M.SP,M.uX,S.KE,J.gD,T.JJ,T.On,Q.ey,H.oG,g.sg,M.Vc,M.uD,g.mk,I.lW,y.Nt,T.Fj,et.d,Ba,p.H8,x.gM],pipes:[d.X$,g.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[O.es,O.BQ]}}),i})();var nt=c(62707);function Ts(i,n){1&i&&t._UZ(0,"mat-spinner",9)}let Nt=(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialogRef=e,this.voService=o,this.groupService=a,this.translateService=s,this.registrarService=r,this.cd=_,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(p.so),t.Y36(h.YF),t.Y36(h.ff),t.Y36(d.sK),t.Y36(h.tk),t.Y36(t.sBO),t.Y36(p.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ts,1,0,"mat-spinner",1),t.TgZ(5,"div",2),t.TgZ(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.qZA(),t.TgZ(15,"div",6),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,nt.M,ht.h,p.H8,I.lW],pipes:[d.X$],styles:[""],data:{animation:[O.BQ]}}),i})();var k=c(84847),Ot=c(18750);function As(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return a?_.toggle(r):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))}}function Is(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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function bs(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 vs(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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Es(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Ss(i,n){1&i&&(t.TgZ(0,"div"),t.TgZ(1,"mat-icon",25),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 xs(i,n){1&i&&(t.TgZ(0,"mat-icon",26),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,n){if(1&i&&(t.TgZ(0,"td",22),t.YNc(1,Ss,5,3,"div",23),t.YNc(2,xs,4,3,"ng-template",null,24,t.W1O),t.qZA()),2&i){const e=n.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function Ns(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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Os(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"section"),t.TgZ(2,"mat-checkbox",27),t.NdJ("change",function(){const s=t.CHM(e).$implicit;return t.oxw().changeSending(s)})("click",function(a){return a.stopPropagation()}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$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 Ds(i,n){1&i&&t._UZ(0,"tr",28)}function Ms(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().openApplicationMailDetail(s)}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function Ls(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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let Dt=(()=>{class i{constructor(e,o,a,s,r,_){this.registrarService=e,this.translate=o,this.notificator=a,this.dialog=s,this.authResolver=r,this.tableCheckbox=_,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new E.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=m.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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,m.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(ot,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(a=>{o=a}),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 l.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(d.sK),t.Y36(u.V6),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(m.l9,7),t.Gf(k.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.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:21,vars:9,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"],["class","align-checkbox","mat-header-cell","",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","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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,As,2,3,"th",4),t.YNc(5,fs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Is,3,3,"th",7),t.YNc(8,bs,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,vs,3,3,"th",7),t.YNc(11,Es,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Cs,3,3,"th",7),t.YNc(14,Zs,4,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Ns,3,3,"th",7),t.YNc(17,Os,4,6,"td",10),t.BQk(),t.YNc(18,Ds,1,0,"tr",13),t.YNc(19,Ms,1,2,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,Ls,3,3,"perun-web-apps-alert",15)),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(16),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},directives:[Ot.l,l.BZ,k.YE,l.w1,l.fO,l.ge,H.oG,l.Dz,l.ev,k.nU,g.O5,P.Hw,x.gM,T.JJ,T.On,l.as,l.XQ,l.nj,l.Gk,D.w],pipes:[d.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Us(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().copy()}),t.TgZ(1,"i",5),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 Gs(i,n){1&i&&t._UZ(0,"mat-spinner",12)}function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",13),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().changeSelection(a)}),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,a,s,r,_,A,v,R){this.route=e,this.registrarService=o,this.translate=a,this.dialog=s,this.notificator=r,this.authResolver=_,this.voService=A,this.store=v,this.entityStorageService=R,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),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("copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.get("supported_languages"),o=(0,m.i5)(e);o.formId=this.applicationForm.id;const a=(0,m.kZ)();a.width="1400px",a.height="700px",a.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(ot,a).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Nt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Zt,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(d.sK),t.Y36(p.uw),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.YF),t.Y36(u.d6),t.Y36(u.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:14,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["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),t.YNc(4,Rs,3,3,"button",2),t.YNc(5,ws,3,4,"button",3),t.TgZ(6,"button",4),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(7,"i",5),t._uU(8,"email"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Us,5,3,"button",6),t.qZA(),t.YNc(12,Gs,1,0,"mat-spinner",7),t.YNc(13,Ps,1,7,"app-notification-list",8)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(10,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))},directives:[g.O5,I.lW,f.$g,Dt],pipes:[d.X$],styles:[""]}),i})();var qs=c(14336);function Vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Js(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Qs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw(2).changeSelection(a)}),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 ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",2),t.YNc(2,Vs,3,3,"button",3),t.YNc(3,Fs,3,4,"button",4),t.TgZ(4,"button",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().changeEmailFooter()}),t.TgZ(5,"i",6),t._uU(6,"email"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ys,5,3,"button",7),t.qZA(),t.YNc(10,Js,1,0,"mat-spinner",8),t.YNc(11,Qs,1,7,"app-notification-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(8,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 Bs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Hs(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-alert",15),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Bs,3,3,"button",16),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 js=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.registrarService=e,this.translate=o,this.dialog=a,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=_,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.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuthRights(),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,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},a=>{"HttpErrorResponse"!==a.name&&this.notificator.showRPCError(a),this.setAuthRights(),this.loading=!1})})},e=>{const o=e.error;"FormNotExistsException"===o.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(o)})}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("copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,m.i5)();e.formId=this.applicationForm.id;const o=(0,m.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(ot,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,m.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Nt,e).afterClosed().subscribe(a=>{a&&(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,m.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Zt,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(d.sK),t.Y36(p.uw),t.Y36(u.F5),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.H8),t.Y36(u.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"],["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,ks,12,8,"div",1),t.YNc(4,Hs,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))},directives:[g.O5,I.lW,f.$g,Dt,D.w],pipes:[d.X$],styles:[""]}),i})();var at=c(15935);function $s(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function zs(i,n){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 Mt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.extSourceService=a,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:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,o.id).subscribe(()=>{this.addVoExtSource(e)},()=>this.loading=!1)}addGroupExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,o.id).subscribe(()=>{this.addGroupExtSource(e)},()=>this.loading=!1)}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSource(this.selection.selected):this.addVoExtSource(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(d.sK))},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"),t.TgZ(1,"div",0),t.TgZ(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.qZA(),t.YNc(6,$s,1,0,"mat-spinner",3),t.YNc(7,zs,2,4,"div",4),t.TgZ(8,"div",5),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,L.L,g.O5,f.$g,p.xY,at.D,p.H8,I.lW],pipes:[d.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function Xs(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ws(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function Ks(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 tr(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function er(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.name)}}function ir(i,n){1&i&&t._UZ(0,"tr",19)}function or(i,n){1&i&&t._UZ(0,"tr",20)}function nr(i,n){if(1&i&&(t.TgZ(0,"div",8),t.TgZ(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,Ws,2,0,"th",12),t.YNc(10,Ks,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,tr,2,0,"th",12),t.YNc(13,er,2,1,"td",13),t.BQk(),t.YNc(14,ir,1,0,"tr",15),t.YNc(15,or,1,0,"tr",16),t.qZA(),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 Lt=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.tableConfigService=r,this.translate=_,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}removeGroupExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(C.dB),t.Y36(d.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"),t.TgZ(1,"div",0),t.TgZ(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,Xs,1,0,"mat-spinner",2),t.YNc(6,nr,16,9,"div",3),t.TgZ(7,"div",4),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function ar(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 sr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 rr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function lr(i,n){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 cr=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,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,m.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Mt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,m.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(Lt,e).afterClosed().subscribe(a=>{a&&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(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.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"),t.TgZ(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,ar,3,3,"button",2),t.YNc(6,sr,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,rr,1,0,"mat-spinner",5),t.YNc(9,lr,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))},directives:[G.t,g.O5,I.lW,L.L,f.$g,at.D],pipes:[d.X$],styles:[""]}),i})();var q=c(24179);function pr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function ur(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw(2).getGroupsToInclude(a.id)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const _r=function(){return["select","id","name","description"]};function dr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("authType","create-relation-dialog")("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,_r))("filter",e.filterValue)("tableId",e.tableId)}}function mr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function gr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,ur,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,dr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,mr,1,0,"mat-spinner",1),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),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 hr=(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialogRef=e,this.groupService=o,this.notificator=a,this.translate=s,this.guiAuthResolver=r,this.voService=_,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(a=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[a])),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(p.so),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(h.YF),t.Y36(p.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,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","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"],[3,"vo","vos","voSelected"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId"]],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,pr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,gr,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))},directives:[p.uh,g.O5,f.$g,nt.M,L.L,p.xY,q.W,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Tr(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ar(i,n){1&i&&t._UZ(0,"th",15)}function fr(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 Ir(i,n){1&i&&t._UZ(0,"tr",17)}function br(i,n){1&i&&t._UZ(0,"tr",18)}function vr(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,Ar,1,0,"th",11),t.YNc(10,fr,2,1,"td",12),t.BQk(),t.YNc(11,Ir,1,0,"tr",13),t.YNc(12,br,1,0,"tr",14),t.qZA(),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 Er=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(_=>this.successMessage=_)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.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(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(h.ff),t.Y36(d.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Tr,1,0,"mat-spinner",1),t.YNc(5,vr,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var Cr=c(387);const Sr=["list"];function xr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}const Zr=function(){return["select","id","vo","name","description"]};function Nr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10,11),2&i){const e=t.oxw();t.Q6J("authType","group-relations")("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(8,Zr))("filter",e.filterValue)("tableId",e.tableId)}}let Or=(()=>{class i{constructor(e,o,a){this.groupService=e,this.dialog=o,this.entityStorageService=a,this.selection=new E.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,m.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(hr,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,m.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Er,e).afterClosed().subscribe(a=>{a&&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(p.uw),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],viewQuery:function(e,o){if(1&e&&t.Gf(Sr,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:19,vars:21,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(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.TgZ(8,"span",3),t.ALo(9,"translate"),t.TgZ(10,"button",4),t.NdJ("click",function(){return o.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.TgZ(13,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(14,"mat-checkbox",6),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,xr,1,0,"mat-spinner",7),t.YNc(18,Nr,2,9,"perun-web-apps-groups-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,11,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,13,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(9,15,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||void 0!==o.list&&!o.list.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(12,17,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(16,19,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,I.lW,x.gM,L.L,H.oG,g.O5,f.$g,q.W],pipes:[d.X$],styles:[""]}),i})();var st=c(64901),Dr=c(9146);function Mr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Lr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Rr(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function wr(i,n){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 Ur=(()=>{class i{constructor(e,o,a){this.registrarManager=e,this.memberManager=o,this.route=a,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"),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,Mr,3,3,"button",2),t.YNc(6,Lr,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.qZA(),t.YNc(8,Rr,1,0,"mat-spinner",4),t.YNc(9,wr,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))},directives:[G.t,g.O5,I.lW,st.P,f.$g,Dr.S],pipes:[d.X$],styles:[""]}),i})();var Rt=c(1059),rt=c(24850),U=c(92081),wt=c(91079);function Gr(i,n){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 Pr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function yr(i,n){if(1&i&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qr(i,n){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),r.stepper.selected.completed=!0}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Vr(i,n){if(1&i&&(t.TgZ(0,"div",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Fr(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div"),t.TgZ(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,yr,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div"),t.TgZ(10,"mat-form-field",14),t.TgZ(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,qr,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div"),t.TgZ(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA(),t.qZA(),t.TgZ(21,"div"),t.TgZ(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,Vr,2,1,"div",23),t.qZA(),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 Yr(i,n){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 Jr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}const Qr=function(){return["select","id","name","description"]};function kr(i,n){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,Qr))("selection",e.selectedGroups)}}function Br(i,n){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 Hr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 jr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.stepperNext(),a.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 $r(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 zr=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.dialogRef=e,this.data=o,this.resourceManager=a,this.groupManager=s,this.notificator=r,this.translate=_,this.authResolver=A,this.cd=v,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new T.NI,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(a=>a.id)),this.groups.forEach(a=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[a])||this.membersGroupsId.add(a.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,Rt.O)(""),(0,rt.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Rt.O)(""),(0,rt.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(p.so),t.Y36(p.WI),t.Y36(h.xk),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.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(U.Vq,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(5,"mat-stepper",2),t.TgZ(6,"mat-step",3),t.YNc(7,Gr,2,3,"ng-template",4),t.YNc(8,Pr,1,0,"mat-spinner",5),t.YNc(9,Fr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,Yr,2,3,"ng-template",4),t.YNc(12,Jr,1,0,"mat-spinner",5),t.YNc(13,kr,2,8,"div",6),t.YNc(14,Br,3,3,"perun-web-apps-alert",7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",8),t.TgZ(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Hr,3,3,"button",10),t.YNc(20,jr,3,8,"button",11),t.YNc(21,$r,3,4,"button",12),t.qZA(),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))},directives:[p.uh,p.xY,U.Vq,U.C0,U.VY,g.O5,f.$g,S.KE,y.Nt,T.Fj,wt.ZL,T.JJ,T.oH,wt.XC,g.sg,Q.ey,J.gD,q.W,D.w,p.H8,I.lW],pipes:[d.X$,g.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var Xr=c(62109);function Wr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Kr(i,n){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 tl(i,n){1&i&&t._UZ(0,"mat-spinner",8)}let el=(()=>{class i{constructor(e,o,a,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=a,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(a=>{this.member=a,this.refreshTable()})})}addResource(){const e=(0,m.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(zr,e).afterClosed().subscribe(a=>{a&&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(p.uw),t.Y36(h.uq),t.Y36(h.xk),t.Y36(b.gz),t.Y36(u.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"),t.TgZ(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,Wr,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,Kr,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,tl,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))},directives:[G.t,g.O5,I.lW,L.L,Xr.C,f.$g],pipes:[d.X$],styles:[""]}),i})();var il=c(98918),ol=c(4675),nl=c(258),al=c(60113),sl=c(16500),rl=c(92090),ll=c(20057),cl=c(49546),pl=c(76023),ul=c(3246);function _l(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 dl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 ml(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function gl(i,n){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 hl=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,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,m.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Mt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,m.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(Lt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.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"),t.TgZ(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,_l,3,3,"button",2),t.YNc(6,dl,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,ml,1,0,"mat-spinner",5),t.YNc(9,gl,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))},directives:[G.t,g.O5,I.lW,L.L,f.$g,at.D],pipes:[d.X$],styles:[""]}),i})();function Tl(i,n){1&i&&t._UZ(0,"th",9)}function Al(i,n){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function fl(i,n){1&i&&t._UZ(0,"th",9)}function Il(i,n){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function bl(i,n){1&i&&t._UZ(0,"tr",12)}let Ut=(()=>{class i{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new l.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),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content"),t.TgZ(7,"table",2),t.ynx(8,3),t.YNc(9,Tl,1,0,"th",4),t.YNc(10,Al,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,fl,1,0,"th",4),t.YNc(13,Il,2,1,"td",7),t.BQk(),t.YNc(14,bl,1,0,"tr",8),t.qZA(),t.qZA(),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))},directives:[N.a8,N.dk,N.n5,N.dn,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.nj,l.Gk],pipes:[d.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function vl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function El(i,n){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 Cl=(()=>{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 l.by}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new l.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(u.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,vl,1,0,"mat-spinner",1),t.YNc(4,El,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))},directives:[g.O5,f.$g,Ut],pipes:[d.X$],styles:[""]}),i})();function Sl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function xl(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t._UZ(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 Zl=(()=>{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(([a,s])=>this.membersCountsByVoStatus.set(a.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(a=>{Object.entries(a).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(u.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,Sl,1,0,"mat-spinner",1),t.YNc(4,xl,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))},directives:[g.O5,f.$g,Ut],pipes:[d.X$],styles:[""]}),i})();function Nl(i,n){1&i&&t._UZ(0,"mat-spinner",6)}const Ol=function(){return["select","id","name","description"]};function Dl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),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,Ol))("filter",e.filterValue)("tableId",e.tableId)}}let Ml=(()=>{class i{constructor(e,o,a,s){this.dialogRef=e,this.data=o,this.groupService=a,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(p.so),t.Y36(p.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Nl,1,0,"mat-spinner",1),t.YNc(5,Dl,4,11,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,st.P,q.W,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();const Ll=["list"];function Rl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 wl(i,n){1&i&&t._UZ(0,"mat-spinner",10)}const Ul=function(){return["select","id","name","description"]};function Gl(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11,12),2&i){const e=t.oxw();t.Q6J("authType","application-form-manage-groups")("displayedColumns",t.DdM(7,Ul))("disableRouting",!0)("filter",e.filterValue)("groups",e.groups)("selection",e.selected)("tableId",e.tableId)}}let Pl=(()=>{class i{constructor(e,o,a,s){this.registrarService=e,this.authResolver=o,this.dialog=a,this.route=s,this.groups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.CE,this.filterValue=""}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,m.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(a=>a.id),theme:"vo-theme"},this.dialog.open(Ml,e).afterClosed().subscribe(a=>{a&&this.loadGroups()})}removeGroup(){const e=(0,m.kZ)();e.width="450px",e.data={items:this.selected.selected.map(a=>a.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(w.Ts,e).afterClosed().subscribe(a=>{a&&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(u.x4),t.Y36(p.uw),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],viewQuery:function(e,o){if(1&e&&t.Gf(Ll,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","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"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId"],["list",""]],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,Rl,3,3,"button",3),t.TgZ(9,"span",4),t.ALo(10,"translate"),t.TgZ(11,"button",5),t.NdJ("click",function(){return o.removeGroup()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.TgZ(14,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(15,wl,1,0,"mat-spinner",7),t.YNc(16,Gl,2,8,"perun-web-apps-groups-list",8)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.s9C("matTooltip",t.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",void 0===o.list||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||void 0!==o.list&&!o.list.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),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))},directives:[D.w,G.t,g.O5,I.lW,x.gM,L.L,f.$g,q.W],pipes:[d.X$],styles:[""]}),i})();var yl=c(20872),ql=c(80013),Vl=c(72986),Fl=c(87545),Gt=c(28499),Yl=c(13469),Pt=c(14623),yt=c(38383);const Jl=["stepper"];function Ql(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function kl(i,n){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 Bl(i,n){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 Hl(i,n){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 jl(i,n){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,n){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,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function Xl(i,n){if(1&i&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Wl(i,n){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,n){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.LOGIN_EXISTS")))}function tc(i,n){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.LOGIN_FORMAT")))}function ec(i,n){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.LOGIN_LONG")))}function ic(i,n){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.LOGIN_SHORT")))}function oc(i,n){if(1&i&&(t.TgZ(0,"span",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,1,"Not selected"===e.secondFormGroup.get("namespaceCtrl").value?"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED":"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}function nc(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function ac(i,n){if(1&i&&(t.TgZ(0,"span",38),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function sc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item"),t.TgZ(1,"p",33),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,ac,2,1,"span",34),t.TgZ(5,"span",35),t.ALo(6,"translate"),t.TgZ(7,"button",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).removeUser(s)}),t.TgZ(8,"mat-icon",37),t._uU(9,"close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$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 rc(i,n){1&i&&t._UZ(0,"mat-spinner",39)}const lc=function(){return["checkbox","id","fullName"]};function cc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",42),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,lc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function pc(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",43),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 uc(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,cc,1,6,"perun-web-apps-members-list",40),t.YNc(2,pc,3,3,"perun-web-apps-alert",41),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 _c(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"mat-stepper",6,7),t.TgZ(3,"mat-step",8),t.TgZ(4,"form",9),t.YNc(5,Ql,2,3,"ng-template",10),t.TgZ(6,"div",11),t.TgZ(7,"mat-form-field"),t.TgZ(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",12),t.YNc(12,kl,3,3,"mat-error",13),t.qZA(),t.TgZ(13,"mat-form-field"),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",14),t.YNc(18,Bl,3,3,"mat-error",13),t.YNc(19,Hl,3,3,"mat-error",13),t.qZA(),t.TgZ(20,"mat-form-field"),t.TgZ(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",15),t.YNc(25,jl,3,3,"mat-error",13),t.qZA(),t.TgZ(26,"mat-form-field"),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",16),t.YNc(31,$l,3,3,"mat-error",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"mat-step",8),t.TgZ(33,"form",9),t.YNc(34,zl,2,3,"ng-template",10),t.TgZ(35,"div",11),t.TgZ(36,"mat-form-field"),t.TgZ(37,"mat-label"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-select",17),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().onNamespaceChanged(a)}),t.YNc(41,Xl,2,2,"mat-option",18),t.qZA(),t.qZA(),t.TgZ(42,"mat-form-field",19),t.TgZ(43,"mat-label"),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._UZ(46,"input",20),t.YNc(47,Wl,3,3,"mat-error",13),t.YNc(48,Kl,3,3,"mat-error",13),t.YNc(49,tc,3,3,"mat-error",13),t.YNc(50,ec,3,3,"mat-error",13),t.YNc(51,ic,3,3,"mat-error",13),t.YNc(52,oc,3,3,"span",21),t.qZA(),t.TgZ(53,"mat-radio-group",22),t.NdJ("ngModelChange",function(){return t.CHM(e),t.oxw().passwordOptionChanged()}),t.ALo(54,"translate"),t.TgZ(55,"mat-radio-button",23),t._uU(56),t.ALo(57,"translate"),t.qZA(),t.TgZ(58,"mat-radio-button",23),t._uU(59),t.ALo(60,"translate"),t.qZA(),t.qZA(),t.TgZ(61,"div",11),t._UZ(62,"perun-web-apps-password-form",24),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(63,"mat-step"),t.YNc(64,nc,2,3,"ng-template",10),t.TgZ(65,"h6"),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.TgZ(68,"mat-list"),t.YNc(69,sc,10,9,"mat-list-item",25),t.qZA(),t.TgZ(70,"h6",26),t._uU(71),t.ALo(72,"translate"),t.qZA(),t.TgZ(73,"mat-form-field",27),t.TgZ(74,"input",28),t.NdJ("keyup.enter",function(){t.CHM(e);const a=t.oxw();return 0!==a.searchCtrl.value.length&&a.onSearchByString()}),t.ALo(75,"translate"),t.qZA(),t.qZA(),t.TgZ(76,"button",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSearchByString()}),t.TgZ(77,"mat-icon"),t._uU(78,"search"),t.qZA(),t.qZA(),t.TgZ(79,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().addUsers()}),t._uU(80),t.ALo(81,"translate"),t.qZA(),t.YNc(82,rc,1,0,"mat-spinner",3),t.YNc(83,uc,3,2,"div",13),t.qZA(),t.qZA(),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,50,"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,52,"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,54,"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,56,"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(5),t.Oqu(t.lcZ(39,58,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),t.xp6(3),t.Q6J("ngForOf",e.namespaceOptions),t.xp6(1),t.Q6J("floatLabel",e.secondFormGroup.get("loginCtrl").disabled?"always":null),t.xp6(2),t.Oqu(t.lcZ(45,60,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),t.xp6(2),t.Q6J("hidden",e.secondFormGroup.get("loginCtrl").disabled),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("loginExists")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("pattern")&&!e.secondFormGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("maxlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").disabled),t.xp6(1),t.s9C("matTooltip",t.lcZ(54,62,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),t.Q6J("matTooltipDisabled","Not selected"!==e.secondFormGroup.get("namespaceCtrl").value),t.xp6(2),t.Q6J("checked",e.secondFormGroup.get("generatePasswordCtrl").value&&e.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),t.xp6(1),t.hij(" ",t.lcZ(57,64,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),t.xp6(2),t.Q6J("checked",!e.secondFormGroup.get("generatePasswordCtrl").value&&e.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),t.xp6(1),t.hij(" ",t.lcZ(60,66,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),t.xp6(2),t.ekj("input-disabled",e.secondFormGroup.get("generatePasswordCtrl").value),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup)("namespace",e.selectedNamespace)("passwordRequired",!e.secondFormGroup.get("generatePasswordCtrl").value),t.xp6(4),t.Oqu(t.lcZ(67,68,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(72,70,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(75,72,"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(81,74,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function dc(i,n){1&i&&t._UZ(0,"mat-spinner",39)}function mc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",49),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 hc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onCreate()}),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 Tc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",44),t.TgZ(1,"button",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,mc,3,3,"button",46),t.YNc(5,gc,3,8,"button",47),t.YNc(6,hc,3,4,"button",48),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),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)}}let Ac=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R,ut){this.dialogRef=e,this.data=o,this.membersManagerService=a,this.usersManagerService=s,this.notificator=r,this.translate=_,this.store=A,this.apiRequestConfiguration=v,this._formBuilder=R,this.cd=ut,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new T.NI(""),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,_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(_t=>this.successMessageMember=_t),_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(_t=>this.successMessagePwd=_t)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",T.kI.required],emailCtrl:["",[T.kI.required,T.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[T.kI.pattern("^[a-z][a-z0-9_-]+$"),T.kI.maxLength(15),T.kI.minLength(2)]],passwordCtrl:["",T.kI.required,[(0,Gt.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:m.dN.passwordMatchValidator}),this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(o=>{this.namespaceRules=o,this.parseNamespaceRules(),this.loading=!1}),this.onNamespaceChanged("Not selected");const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let a={};for(const s of o)s.voId===this.data.voId&&(a=s);a.user=e,this.assignedMembers.push(a)})}existingLoginValidator(){return e=>{let o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,e.valueChanges.pipe((0,ql.b)(500),(0,Vl.q)(1),(0,Fl.w)(()=>this.usersManagerService.isLoginAvailable(o,e.value).pipe((0,rt.U)(a=>a?null:{loginExists:!0}))))}}onCreate(){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 e=this.firstFormGroup.get("subjectCtrl");(null==e?void 0:e.value)&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=e.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 o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),a=this.parsedRules.get(o),s=`urn:perun:user:attribute-def:def:login-namespace:${o}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===a.login?this.usersManagerService.generateAccountForName(o,this.firstFormGroup.get("nameCtrl").value).subscribe(r=>{this.candidate.attributes[s]=r[s],this.createSpecificMember()},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[s]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}createSpecificMember(){this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(e=>e.user),candidate:this.candidate}).subscribe(e=>{this.membersManagerService.validateMemberAsync(e.id).subscribe(o=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(o,this.secondFormGroup.get("generatePasswordCtrl").value):(this.dialogRef.close(!0),this.processing=!1)},()=>this.processing=!1)},()=>this.processing=!1)}parseNamespaceRules(){for(const e of this.namespaceRules){this.namespaceOptions.push(e.namespaceName);const o={login:"disabled"};this.parseAttributes(o,e.requiredAttributes,"required"),this.parseAttributes(o,e.optionalAttributes,"optional"),this.parsedRules.set(e.namespaceName,o)}}parseAttributes(e,o,a){for(const s of o)"login"===s&&(e.login=a)}setPassword(e,o){const a=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(a).login)return void this.validateMember(e.id);this.usersManagerService.reserveRandomPassword(e.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id,!1)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}else this.usersManagerService.reservePasswordForUser(e.userId,a,s).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}validateMember(e,o=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{o&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close(!0),this.processing=!1},()=>{this.processing=!1,this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[null],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)}onNamespaceChanged(e){this.selectedNamespace=e.toLowerCase();const o=this.secondFormGroup.get("loginCtrl"),a=this.secondFormGroup.get("passwordCtrl"),s=this.secondFormGroup.get("passwordAgainCtrl"),r=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==e){if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const _=[T.kI.required,T.kI.pattern("^[a-z][a-z0-9_-]+$"),T.kI.maxLength(15),T.kI.minLength(2)];(0,m.mH)(o,_,[this.existingLoginValidator()])}(0,m.mH)(r,[]),this.passwordOptionChanged()}else o.disable(),o.setValue(""),a.disable(),a.setValue(""),s.disable(),s.setValue(""),r.disable(),r.dirty||r.setValue(!0)}passwordOptionChanged(){const e=this.secondFormGroup.get("passwordCtrl"),o=this.secondFormGroup.get("passwordAgainCtrl");this.secondFormGroup.get("generatePasswordCtrl").value?(e.disable(),e.setValue(""),o.disable(),o.setValue("")):((0,m.mH)(e,[T.kI.required],[(0,Gt.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,m.mH)(o,[]))}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending||"Not selected"===this.secondFormGroup.get("namespaceCtrl").value;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.d6),t.Y36(u.F5),t.Y36(T.qu),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Jl,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:6,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","",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"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],["class","input-disabled",4,"ngIf"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"formGroup","namespace","passwordRequired"],[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"],[3,"value"],[1,"input-disabled"],[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",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_c,84,76,"div",2),t.YNc(5,dc,1,0,"mat-spinner",3),t.YNc(6,Tc,7,6,"div",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"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))},directives:[g.O5,p.xY,U.Vq,U.C0,T._Y,T.JL,T.sg,U.VY,S.KE,S.hX,T.Fj,y.Nt,T.JJ,T.u,T.Q7,S.TO,J.gD,g.sg,Q.ey,j.VQ,x.gM,j.U0,Yl.G,Pt.i$,Pt.Tg,I.lW,P.Hw,T.oH,f.$g,yt.O,D.w,p.H8],pipes:[d.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 fc=c(53455);function Ic(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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,n){1&i&&t._UZ(0,"mat-spinner",8)}const vc=function(){return["checkbox","id","type","fullName","status"]};function Ec(i,n){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,a,s,r){this.membersManager=e,this.dialog=o,this.authResolver=a,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,m.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(Ac,e).afterClosed().subscribe(a=>{a&&this.refresh()})}onRemoveMembers(){const e=(0,m.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(fc.X,e).afterClosed().subscribe(a=>{a&&(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(p.uw),t.Y36(u.x4),t.Y36(u.x4),t.Y36(u.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))},directives:[G.t,I.lW,g.O5,L.L,f.$g,yt.O],pipes:[d.X$],styles:[""]}),i})();var $=c(71992),qt=c(87831);const Sc=["stepper"];function xc(i,n){1&i&&t._UZ(0,"mat-spinner",4)}function Zc(i,n){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 Nc(i,n){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 Oc(i,n){1&i&&t._UZ(0,"th",19)}function Dc(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.name)}}function Mc(i,n){1&i&&t._UZ(0,"tr",21)}function Lc(i,n){1&i&&t._UZ(0,"tr",22)}function Rc(i,n){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,Oc,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,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"mat-stepper",6,7),t.TgZ(3,"mat-step"),t.YNc(4,Zc,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().voFilter=a}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,Nc,2,3,"ng-template",8),t.YNc(9,Rc,12,10,"ng-template",11),t.qZA(),t.qZA(),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 Uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",23),t.TgZ(1,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().close()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,Uc,3,3,"button",26),t.YNc(6,Gc,3,4,"button",27),t.YNc(7,Pc,3,3,"button",28),t.qZA(),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 qc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=a,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 a=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!a.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(p.so),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.V6),t.Y36(d.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 a;t.iGM(a=t.CRH())&&(o.stepper=a.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"),t.TgZ(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))},directives:[p.uh,g.O5,f.$g,p.xY,U.Vq,U.C0,U.VY,L.L,qt.Z,U.BY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,D.w,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Vc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Fc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Yc(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Jc(i,n){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 Qc=(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialog=e,this.vosService=o,this.entityStorage=a,this.authResolver=s,this.reloadDetailService=r,this.notificator=_,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,m.kZ)();e.width="750px",this.dialog.open(qc,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,m.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(w.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.x4),t.Y36(X.G),t.Y36(u.V6),t.Y36(d.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,Vc,3,3,"button",2),t.YNc(5,Fc,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,Yc,1,0,"mat-spinner",5),t.YNc(8,Jc,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))},directives:[G.t,g.O5,I.lW,L.L,f.$g,qt.Z],pipes:[d.X$],styles:[""]}),i})();const kc=function(){return["select","id","name","description"]};function Bc(i,n){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,kc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function Hc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function jc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",9),t.TgZ(1,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().close()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().confirm()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),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 $c=function(i){return{parentVo:i}};let zc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.groupService=a,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(){if(0===this.selected.selected.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS"));this.loading=!0,this.groupService.allowGroupToHierarchicalVo(this.selected.selected.pop().id,this.parentVo.id).subscribe(()=>{this.confirm(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK))},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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(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,$c,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))},directives:[p.uh,p.xY,D.w,L.L,g.O5,q.W,f.$g,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Xc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw().voSelected(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const Wc=function(){return["select","id","name","description"]};function Kc(i,n){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,Wc))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function tp(i,n){1&i&&t._UZ(0,"mat-spinner",11)}const ip=[{path:"",component:Yt.Y},{path:":voId",component:Me,canActivateChild:[$.a],children:[{path:"",component:de,data:{animation:"VoOverviewPage"}},{path:"attributes",component:xi,data:{animation:"VoAttributesPage"}},{path:"groups",component:me.G,data:{animation:"VoGroupsPage"}},{path:"members",component:ge.y,data:{animation:"VoMembersPage"}},{path:"resources",component:Ei,children:[{path:"",component:ma,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:ga.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ha.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Da,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:Ci.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:it,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:ul.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Cc,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Cl,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Si,children:[{path:"",component:Oi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:ki,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Hi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:zo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:St,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Pl},{path:"notifications",component:ys,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:cr,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:Qc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialog=e,this.entityStorage=o,this.voService=a,this.groupService=s,this.notificator=r,this.translate=_,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,m.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(zc,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,m.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(w.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroup()})}disallowGroup(){if(0===this.selected.selected.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),void this.loadAllowedGroups();this.loading=!0,this.groupService.disallowGroupToHierarchicalVo(this.selected.selected.pop().id,this.selectedParentVo.id).subscribe(()=>{this.disallowGroup(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(u.fb),t.Y36(h.YF),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),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),t.TgZ(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.qZA(),t.YNc(13,Kc,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))},directives:[G.t,I.lW,g.O5,nt.M,q.W,f.$g],pipes:[d.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})(),data:{animation:"VoSettingsHierarchicalInclusionComponent"}}]}]},{path:":voId/members/:memberId",component:pe,canActivateChild:[$.a],children:[{path:"",component:gi,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:da,data:{animation:"MemberAttributesPage"}},{path:"groups",component:hi.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Ur,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:it,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:el,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:ie,canActivateChild:[$.a],children:[{path:"",component:bi,data:{animation:"GroupOverviewPage"}},{path:"members",component:Uo.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:vi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Bi.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Go.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Bo,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Zl,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Po,children:[{path:"",component:$o,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:La,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Ra,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:qs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:St},{path:"notifications",component:js,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Or,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:hl,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:it,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:il.b,canActivateChild:[$.a],children:[{path:"",component:ol.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:nl.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:cl.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:rl.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:pl.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:yl.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:al.t,children:[{path:"",component:sl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:ll.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let op=(()=>{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(ip)],b.Bz]}),i})();var np=c(14264),ap=c(63189),sp=c(19516),rp=c(51525),lp=c(45256);let lt=(()=>{class i{transform(e){var o,a,s,r;return(null===(o=null==e?void 0:e.member)||void 0===o?void 0:o.sourceGroupId)&&"DIRECT"===(null===(a=null==e?void 0:e.member)||void 0===a?void 0:a.membershipType)?"Member of Group":(null===(s=null==e?void 0:e.member)||void 0===s?void 0:s.sourceGroupId)&&"INDIRECT"===(null===(r=null==e?void 0:e.member)||void 0===r?void 0:r.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 cp=c(86511);let ct=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){var a,s;return e.member?"vo"===this.addMemberService.getType()||(null===(a=e.member)||void 0===a?void 0:a.sourceGroupId)&&"DIRECT"===(null===(s=e.member)||void 0===s?void 0:s.membershipType):o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(cp.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})(),pp=(()=>{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})();var up=c(9954);function _p(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function dp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",20),t.TgZ(1,"div",21),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",22),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return a?_.itemSelectionToggle(r):null})("click",function(a){return a.stopPropagation()}),t.ALo(6,"disabledCandidate"),t.ALo(7,"lowercase"),t.ALo(8,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();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(7,16,t.lcZ(8,18,e.richUser?e.richUser.firstName:e.candidate.firstName)),"-checkbox"),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))("disabled",t.xi3(6,13,e,o.blockManualAdding))}}function mp(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,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function gp(i,n){if(1&i&&(t.TgZ(0,"i",26),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.status),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function hp(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,gp,4,9,"i",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}function Tp(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,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function Ap(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function fp(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,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function Ip(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userVo"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):o.getOrganization(e.candidate)," ")}}function bp(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,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function vp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function Ep(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,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function Cp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function Sp(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,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function xp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"memberType"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Zp(i,n){1&i&&t._UZ(0,"th",23)}function Np(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function Op(i,n){1&i&&t._UZ(0,"tr",27)}function Dp(i,n){1&i&&t._UZ(0,"tr",28)}function Mp(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),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"))}let Lp=(()=>{class i{constructor(e,o,a){this.memberTypePipe=e,this.disabledCandidatePipe=o,this.tableCheckbox=a,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=m.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 l.by(this.members),this.setDataSource()}getDataForColumn(e,o){var a,s;switch(o){case"status":return e.member&&null!==(a=e.member.status)&&void 0!==a?a:"";case"fullName":{const r=e.richUser?e.richUser:e.candidate;return r.lastName?r.lastName:null!==(s=r.firstName)&&void 0!==s?s:""}case"voExtSource":return e.richUser?(0,m.OV)(e.richUser):(0,m.v$)(e.candidate);case"email":return e.richUser||e.member?(0,m.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){var a;switch(o){case"status":return e.member&&null!==(a=e.member.status)&&void 0!==a?a:"";case"fullName":return(0,m.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,m.OV)(e.richUser):(0,m.v$)(e.candidate);case"email":return e.richUser||e.member?(0,m.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]}}exportData(e){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,m.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,m.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const a of e.richUser.userAttributes)if(a.namespace+":"+a.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=a;break}return null!=(null==o?void 0:o.value)?o.value.replace(","," "):""}return(0,m.Jc)(e.candidate)}getOrganization(e){return(0,m.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 a of e.userAttributes)a.friendlyName.startsWith("login-namespace")&&null!=a.value&&(o.length>0&&(o+=", "),o+=a.friendlyName.substring(16)+": "+a.value);return o}getLoginsForCandidate(e){let a="";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]&&(a.length>0&&(a+=", "),a+=s.substring(49)+": "+e.attributes[s]);return a}itemSelectionToggle(e){this.selection.toggle(e)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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)}checkboxLabel(e){return e?this.selection.isSelected(e)?"deselect":"select":(this.isAllSelected()?"select":"deselect")+" all"}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(lt),t.Y36(ct),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(m.l9,7),t.Gf(k.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.first)}},inputs:{members:"members",selection:"selection",tableId:"tableId",blockManualAdding:"blockManualAdding"},features:[t._Bn([lt,ct]),t.TTD],decls:30,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","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","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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return o.exportData(s)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,_p,2,3,"th",4),t.YNc(5,dp,9,20,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,mp,3,3,"th",7),t.YNc(8,hp,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Tp,3,3,"th",7),t.YNc(11,Ap,4,5,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,fp,3,3,"th",7),t.YNc(14,Ip,3,3,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,bp,3,3,"th",7),t.YNc(17,vp,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,Ep,3,3,"th",7),t.YNc(20,Cp,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Sp,3,3,"th",7),t.YNc(23,xp,3,3,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Zp,1,0,"th",7),t.YNc(26,Np,2,1,"td",8),t.BQk(),t.YNc(27,Op,1,0,"tr",15),t.YNc(28,Dp,1,0,"tr",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(29,Mp,3,3,"perun-web-apps-alert",17)),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(25),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},directives:[Ot.l,l.BZ,k.YE,l.w1,l.fO,l.ge,H.oG,l.Dz,l.ev,x.gM,k.nU,g.O5,l.as,l.XQ,l.nj,l.Gk,D.w],pipes:[d.X$,pp,ct,g.i8,Tt.u,At.f,B.d,up.Z,lt],styles:[""]}),i})();var pt=c(92181);function Rp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function wp(i,n){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 Up(i,n){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 Gp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).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=n.$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 Pp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",2),t.TgZ(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().search.emit(a)}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Rp,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,wp,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().cancel.emit(!1)}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,Up,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,Gp,6,11,"button",12),t.qZA(),t.qZA(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().add.emit()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.qZA(),t.qZA(),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 yp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function qp(i,n){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 Vp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$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 Fp(i,n){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 Yp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA(),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function Jp(i,n){1&i&&t._UZ(0,"tr",32)}function Qp(i,n){1&i&&t._UZ(0,"tr",33)}const Vt=function(){return["userName","error"]};function kp(i,n){if(1&i&&(t.TgZ(0,"div",2),t.TgZ(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,qp,3,3,"th",24),t.YNc(7,Vp,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,Fp,3,3,"th",24),t.YNc(10,Yp,4,2,"td",25),t.BQk(),t.YNc(11,Jp,1,0,"tr",27),t.YNc(12,Qp,1,0,"tr",28),t.qZA(),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,Vt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,Vt))}}function Bp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).cancel.emit(!0)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function Hp(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,yp,1,0,"mat-spinner",5),t.YNc(2,kp,13,9,"div",19),t.YNc(3,Bp,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 Ft=(()=>{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 T.NI("",[T.kI.required,T.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new l.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Pp,23,27,"div",1),t.YNc(5,Hp,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))},directives:[p.uh,g.O5,p.xY,st.P,f.$g,Lp,p.H8,I.lW,x.gM,pt.p6,pt.VK,g.sg,pt.OP,D.w,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk],pipes:[d.X$,g.gd,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})(),jp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[g.ez,op,np.m,ap.r,Cr.ez,sp.d4,m.Je]]}),i})();t.B6R(rp.H,[Ft],[g.Ov]),t.B6R(lp.k,[Ft],[g.Ov])}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/902.c803c25ce3764f9f.js b/dist/apps/admin-gui/902.c803c25ce3764f9f.js deleted file mode 100644 index 23ded5fd4..000000000 --- a/dist/apps/admin-gui/902.c803c25ce3764f9f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[902],{58902:(jc,lt,l)=>{l.r(lt),l.d(lt,{VosModule:()=>Hc});var g=l(69808),v=l(11735),Lt=l(25309),H=l(69024),O=l(36769),m=l(32105),A=l(9244),u=l(36908),Z=l(64080),D=l(16074),wt=l(41656),ct=l(22158),pt=l(7625),t=l(5e3),q=l(77968),p=l(48966),j=l(15003),z=l(4235),f=l(20773),P=l(25245),N=l(29772),I=l(47423),F=l(61283),d=l(51062),Gt=l(45942),Ut=l(29218),Pt=l(28764);function yt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function qt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editGroup()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Vt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteGroup()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function Ft(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onSyncDetail()}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA(),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 Yt(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",15),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,Ft,6,11,"button",16),t.qZA(),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 Jt=function(){return{color:"black"}},Qt=function(i,n){return["/organizations",i,"groups",n]},kt=function(i){return["/organizations",i]};function Bt(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,qt,3,0,"button",10),t.YNc(11,Vt,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",8),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,Yt,7,10,"span",2),t.qZA(),t.qZA(),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,16,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(26,Jt)),t.xp6(4),t.Q6J("routerLink",t.WLB(27,Qt,e.vo.id,e.group.id)),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,18,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,20,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,22,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("routerLink",t.VKq(30,kt,e.vo.id)),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,24,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let Ht=(()=>{class i extends((0,ct.T)()){constructor(e,o,a,s,r,_,T,b,U,st){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.sideMenuItemService=s,this.groupService=r,this.dialog=_,this.guiAuthResolver=T,this.router=b,this.entityStorageService=U,this.reloadEntityDetail=st,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[Z.r.GROUP_SYNC_ENABLED,Z.r.GROUP_LAST_SYNC_STATE,Z.r.GROUP_LAST_SYNC_TIMESTAMP,Z.r.GROUP_STRUCTURE_SYNC_ENABLED,Z.r.GROUP_LAST_STRUCTURE_SYNC_STATE,Z.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,pt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,A.kZ)();e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(D.Bp,e)}editGroup(){const e=(0,A.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:D.Eg.GROUP},this.dialog.open(D.rd,e).afterClosed().subscribe(a=>{a&&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),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(a).subscribe(r=>{this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,A.sF)("groups",this.group),(0,A.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(a,this.attrNames).subscribe(_=>{this.group=_,this.syncEnabled=(0,A.bx)(_),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,A.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(wt.P,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["../"],{relativeTo:this.route})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(q.D),t.Y36(m.YF),t.Y36(v.gz),t.Y36(H.V),t.Y36(m.ff),t.Y36(p.uw),t.Y36(u.x4),t.Y36(v.F0),t.Y36(u.fb),t.Y36(j.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"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"],[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"],["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,yt,1,0,"mat-spinner",1),t.YNc(3,Bt,25,32,"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))},directives:[z.W,g.O5,f.$g,P.Hw,N.gM,g.PC,v.yS,I.lW,F.A],pipes:[d.X$,Gt.r,Ut.J,Pt.F],styles:[""],data:{animation:[O.Ji]}}),i})();function jt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}const zt=function(i){return["/admin","users",i]};function $t(i,n){if(1&i&&(t.TgZ(0,"a",8),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("routerLink",t.VKq(2,zt,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function Xt(i,n){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 Wt=function(){return{color:"black"}},Kt=function(i,n){return["/organizations",i,"members",n]};function te(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.qZA(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,$t,2,4,"a",11),t.YNc(15,Xt,2,1,"span",2),t.qZA(),t.qZA(),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,9,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(15,Wt)),t.xp6(4),t.Q6J("routerLink",t.WLB(16,Kt,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,11,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let ee=(()=>{class i{constructor(e,o,a,s,r,_,T){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=a,this.membersService=s,this.voService=r,this.route=_,this.authResolver=T,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(a).subscribe(r=>{this.member=r;const _=this.sideMenuItemService.parseVo(this.vo),T=this.sideMenuItemService.parseMember(this.member,this.vo);this.fullName=T.label,this.sideMenuService.setAccessMenuItems([_,T]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(H.V),t.Y36(d.sK),t.Y36(q.D),t.Y36(m.uq),t.Y36(m.YF),t.Y36(v.gz),t.Y36(u.x4))},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"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,jt,1,0,"mat-spinner",1),t.YNc(3,te,17,19,"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))},directives:[z.W,g.O5,f.$g,P.Hw,N.gM,g.PC,v.yS,F.A],pipes:[d.X$],styles:[""],data:{animation:[O.Ji]}}),i})();var Y=l(71135);function ie(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function oe(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 ne=(()=>{class i{constructor(e,o,a,s,r){this.sideMenuService=e,this.voService=o,this.router=a,this.authResolver=s,this.entityStorageService=r,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[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.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&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(q.D),t.Y36(m.YF),t.Y36(v.F0),t.Y36(u.x4),t.Y36(u.fb))},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,ie,1,0,"mat-spinner",0),t.YNc(1,oe,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var ae=l(4732),se=l(81847),re=l(11717),le=l(50301);function ce(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const pe=function(i){return["/organizations/",i]};function ue(i,n){if(1&i&&(t.TgZ(0,"span"),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t.YNc(3,ce,2,0,"span",1),t.qZA()),2&i){const e=n.$implicit,o=n.index,a=t.oxw();t.xp6(1),t.Q6J("perunWebAppsForceRouterLink",t.VKq(3,pe,e.id)),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Q6J("ngIf",a.vos.length>o+1)}}function _e(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let de=(()=>{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"],["queryParamsHandling","merge",1,"vo-link","pointer",3,"perunWebAppsForceRouterLink"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,ue,4,5,"span",0),t.YNc(3,_e,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))},directives:[g.sg,le.Kd,g.O5],pipes:[d.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function me(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function ge(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editVo()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function he(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).removeVo()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function Ae(i,n){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 Te(i,n){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 fe=function(){return{color:"black"}},Ie=function(i){return["/organizations/",i]};function ve(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,ge,3,0,"button",10),t.YNc(11,he,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,Ae,1,2,"app-related-vos",13),t.YNc(17,Te,1,2,"app-related-vos",13),t.qZA(),t.qZA(),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,13,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(19,fe))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("routerLink",t.VKq(20,Ie,e.vo.id)),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,15,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,17,"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 be=(()=>{class i extends((0,ct.T)()){constructor(e,o,a,s,r,_,T,b,U){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.router=s,this.sideMenuItemService=r,this.dialog=_,this.authResolver=T,this.entityStorageService=b,this.reloadEntityDetail=U,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,pt.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(a=>{this.vo=a.vo,this.enrichedVo=a,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,A.sF)("vos",this.vo),(0,A.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,A.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:D.Eg.VO},this.dialog.open(D.rd,e).afterClosed().subscribe(a=>{a&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const a=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([a])}removeVo(){const e=(0,A.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(re.o,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(q.D),t.Y36(m.YF),t.Y36(v.gz),t.Y36(v.F0),t.Y36(H.V),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.fb),t.Y36(j.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"],["queryParamsHandling","merge","data-cy","vo-name-link",1,"vo-link",3,"routerLink"],[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,me,1,0,"mat-spinner",1),t.YNc(3,ve,19,22,"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))},directives:[z.W,g.O5,f.$g,P.Hw,N.gM,g.PC,v.yS,I.lW,de,F.A],pipes:[d.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[O.Ji]}}),i})();var c=l(32075),Ee=l(58964),Ce=l(19352),x=l(9224),Se=l(60526),ut=l(82322),w=l(98380),Ze=l(69773),xe=l(21757),Ne=l(21330),_t=l(62383);function Oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",7),t.NdJ("groupSelected",function(a){return t.CHM(e),t.oxw().groupIsSelected(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("firstSelectedGroup",e.selectedGroup)("groups",e.groups)}}function Re(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function De(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.Oqu(t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function Me(i,n){1&i&&t._UZ(0,"th",17)}function Le(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.hij("",e,":")}}function we(i,n){1&i&&t._UZ(0,"th",17)}function Ge(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).changeStatus()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Ue(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",20),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,Ge,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,e.selectedMember.groupStatus),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,e.selectedMember.groupStatus)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,e.selectedMember.groupStatus)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function Pe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).changeExpiration()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function ye(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"i",2),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,Pe,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,e.expiration)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function qe(i,n){if(1&i&&(t.TgZ(0,"td",19),t.YNc(1,Ue,9,12,"div",6),t.YNc(2,ye,5,4,"div",6),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===e),t.xp6(1),t.Q6J("ngIf","Expiration"===e)}}function Ve(i,n){1&i&&t._UZ(0,"tr",23)}function Fe(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"table",10),t.ynx(2,11),t.YNc(3,Me,1,0,"th",12),t.YNc(4,Le,2,1,"td",13),t.BQk(),t.ynx(5,14),t.YNc(6,we,1,0,"th",12),t.YNc(7,qe,3,2,"td",15),t.BQk(),t.YNc(8,Ve,1,0,"tr",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("dataSource",e.groupMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ye=(()=>{class i{constructor(e,o,a,s){this.groupsManager=e,this.authResolver=o,this.translate=a,this.dialog=s,this.noGroups=!1,this.groupMembershipDataSource=new c.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new c.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(e=>{if(this.groups=e,0===this.groups.length)return void(this.noGroups=!0);const o=this.findInitiallySelectedGroupId();this.groupIsSelected(o),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,A.vL)("groups"),this.recentIds){const e=this.groups.find(o=>o.id===this.recentIds[0]);if(e)return e}return this.groups[0]}groupIsSelected(e){this.loading=!0,this.selectedGroup=e,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[Z.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(o=>{this.selectedMember=o[0],this.expirationAtt=this.selectedMember.memberAttributes.find(a=>"groupMembershipExpiration"===a.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new c.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new c.by(["Status"]),this.loading=!1})}changeExpiration(e=!1){const o=(0,A.kZ)();o.width="400px",o.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(D.u3,o).afterClosed().subscribe(s=>{s&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const e=(0,A.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(D.pf,e).afterClosed().subscribe(a=>{a&&(this.selectedMember=a,this.changeExpiration(!0))})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(m.ff),t.Y36(u.x4),t.Y36(d.sK),t.Y36(p.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[t.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",1,"ml-auto","mr-auto",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(e,o){1&e&&(t.TgZ(0,"mat-card",0),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content",2),t.YNc(7,Oe,1,2,"perun-web-apps-group-search-select",3),t.YNc(8,Re,1,0,"mat-spinner",4),t.YNc(9,De,3,3,"perun-web-apps-alert",5),t.YNc(10,Fe,9,2,"div",6),t.qZA(),t.qZA()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),t.xp6(3),t.Q6J("ngIf",!o.initLoading),t.xp6(1),t.Q6J("ngIf",(o.loading||o.initLoading)&&!o.noGroups),t.xp6(1),t.Q6J("ngIf",o.noGroups),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[x.a8,x.dk,x.n5,x.dn,g.O5,ut.h,f.$g,w.w,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,I.lW,P.Hw,c.nj,c.Gk],pipes:[d.X$,Ze.u,xe.f,Ne.r,_t.M],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),i})(),Je=(()=>{class i{transform(e){return(0,A.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var $=l(31359);function Qe(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function ke(i,n){1&i&&t._UZ(0,"th",17)}function Be(i,n){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 He(i,n){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 je(i,n){if(1&i&&(t.TgZ(0,"td",18),t.YNc(1,Be,2,1,"span",1),t.YNc(2,He,3,3,"span",1),t.qZA()),2&i){const e=n.$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 ze(i,n){1&i&&t._UZ(0,"th",17)}function $e(i,n){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function Xe(i,n){1&i&&t._UZ(0,"tr",20)}function We(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content",21),t.TgZ(7,"div",22),t.ALo(8,"translate"),t.TgZ(9,"button",23),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).requestPwdReset()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.qZA(),t.qZA(),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,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,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function ti(i,n){if(1&i&&(t.TgZ(0,"td",33),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.user)," ")}}function ei(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,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function ii(i,n){if(1&i&&(t.TgZ(0,"td",33),t.TgZ(1,"span",34),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.qZA()),2&i){const e=n.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function oi(i,n){1&i&&t._UZ(0,"tr",35)}function ni(i,n){1&i&&t._UZ(0,"tr",20)}const dt=function(){return["sponsors","expiration"]};function ai(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content"),t.TgZ(1,"h6",26),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).changeSponsors()}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"table",28),t.ynx(8,29),t.YNc(9,Ke,3,3,"th",9),t.YNc(10,ti,3,3,"td",30),t.BQk(),t.ynx(11,31),t.YNc(12,ei,3,3,"th",9),t.YNc(13,ii,4,3,"td",30),t.BQk(),t.YNc(14,oi,1,0,"tr",32),t.YNc(15,ni,1,0,"tr",13),t.qZA(),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,dt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,dt))}}function si(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"mat-card",24),t.TgZ(2,"mat-card-header"),t.TgZ(3,"mat-card-title"),t.TgZ(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-subtitle",25),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.qZA(),t.YNc(10,ai,16,8,"mat-card-content",1),t.qZA(),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 ri(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",3),t.TgZ(2,"div",4),t.TgZ(3,"mat-card",5),t.TgZ(4,"mat-card-header"),t.TgZ(5,"mat-card-title"),t.TgZ(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"mat-card-content"),t.TgZ(10,"table",7),t.ynx(11,8),t.YNc(12,ke,1,0,"th",9),t.YNc(13,je,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,ze,1,0,"th",9),t.YNc(16,$e,2,1,"td",12),t.BQk(),t.YNc(17,Xe,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"div",4),t._UZ(19,"app-member-overview-membership",14),t._UZ(20,"app-member-overview-groups",14),t.qZA(),t.TgZ(21,"div",4),t.YNc(22,We,12,11,"mat-card",15),t.YNc(23,si,11,7,"div",1),t.qZA(),t.qZA(),t.TgZ(24,"div"),t._UZ(25,"perun-web-apps-menu-buttons-field",16),t.qZA(),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(2),t.Q6J("member",e.member)("vo",e.vo),t.xp6(1),t.Q6J("member",e.member)("vo",e.vo),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 li=(()=>{class i{constructor(e,o,a,s,r,_,T){this.attributesManager=e,this.membersService=o,this.usersManager=a,this.route=s,this.dialog=r,this.authResolver=_,this.storeService=T,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(a=>{const s=this.storeService.get("password_namespace_attributes").map(r=>{const _=r.split(":");return _[_.length-1]});this.attributesManager.getLogins(a.userId).subscribe(r=>{this.logins=r.filter(_=>s.includes(_.friendlyNameParameter)),this.member=a,this.initAttributes(),this.dataSource=new c.by(Array.from(this.attributes.keys())),this.vo={id:a.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(_=>{this.sponsors=_,this.sponsorsDataSource=new c.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,A.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(Ee.m,e)}changeSponsors(){const e=(0,A.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Ce.H,e).afterClosed().subscribe(a=>{a&&(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.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&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.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&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.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&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.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",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(m.H8),t.Y36(m.uq),t.Y36(m.Fv),t.Y36(v.gz),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.d6))},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"],[3,"member","vo"],["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,ri,26,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,x.a8,x.dk,x.n5,x.dn,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,c.nj,c.Gk,Se.b,Ye,N.gM,I.lW,x.$j,P.Hw,c.as,c.XQ,Y.L],pipes:[d.X$,Je,$.d,_t.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}"]}),i})();var ci=l(85243);function pi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}const ui=function(i,n){return["/organizations",i,"groups",n]};function _i(i,n){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t._uU(4),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("routerLink",t.WLB(5,ui,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function di(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,_i,5,8,"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,a,s,r,_,T,b){this.route=e,this.groupService=o,this.voService=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=T,this.entityStorageService=b,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),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(a).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,A.sF)("groups",this.group),(0,A.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.guiAuthResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[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.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[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.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[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"}),this.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[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.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});const e=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),a=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);e&&a&&o&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});let s=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{s=!0},U=>{"HttpErrorResponse"!==U.name&&this.notificator.showRPCError(U)});const r=this.guiAuthResolver.isManagerPagePrivileged(this.group),_=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),T=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),b=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(s||r||_||T||b)&&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(v.gz),t.Y36(m.ff),t.Y36(m.YF),t.Y36(u.x4),t.Y36(u.F5),t.Y36(m.H8),t.Y36(u.V6),t.Y36(u.fb))},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"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"]],template:function(e,o){1&e&&(t.YNc(0,pi,1,0,"mat-spinner",0),t.YNc(1,di,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,v.yS,Y.L],pipes:[d.X$],styles:[""]}),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(v.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")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var Ai=l(94856);let Ti=(()=>{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(a=>{a instanceof v.m2&&(this.currentUrl=a.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(v.gz),t.Y36(v.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")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var X=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(u.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"),t.TgZ(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"))},directives:[X.t],pipes:[d.X$],styles:[""]}),i})();function Ii(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function vi(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 bi=(()=>{class i{constructor(e,o,a,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=a,this.router=s,this.entityStorageService=r,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=[];const e=this.authResolver.isThisVoAdminOrObserver(this.vo.id);e&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),e&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),e&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[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.authResolver.isPerunAdmin()&&this.items.push({cssIcon:"perun-hierarchical-vo",url:`/organizations/${this.vo.id}/settings/memberOrganizations`,label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",style:"vo-btn"}),this.authResolver.isPerunAdmin()&&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"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(q.D),t.Y36(m.YF),t.Y36(u.x4),t.Y36(v.F0),t.Y36(u.fb))},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,vi,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var W=l(32368),h=l(93075),k=l(79814),S=l(67322),y=l(98833),J=l(74107),Q=l(90508);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(W.Rr,7),2&e){let a;t.iGM(a=t.CRH())&&(o.toggle=a.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 a=t.EpF();t.F$t(),t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"label",2),t.NdJ("click",function(){return t.CHM(a),t.MAs(5).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.qZA(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!a.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",a.checked?"open":"closed")}},directives:[W.Rr,h.JJ,h.On],styles:[""],data:{animation:[O.BQ]}}),i})();var B=l(77446);function Si(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25),t.TgZ(1,"mat-form-field",26),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodStatic=a}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),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 Zi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function xi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18),t.TgZ(1,"mat-form-field",19),t.TgZ(2,"input",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodDynamic=a}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodDynamicUnit=a}),t.YNc(9,Zi,2,2,"mat-option",17),t.qZA(),t.qZA(),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 Ni(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Oi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Ri(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Di(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Mi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25),t.TgZ(1,"mat-form-field",26),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodStatic=a}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),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 Li(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function wi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18),t.TgZ(1,"mat-form-field",19),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodDynamic=a}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=a}),t.YNc(9,Li,2,2,"mat-option",17),t.qZA(),t.qZA(),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,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",29),t.TgZ(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.specialLoaPeriodType=a}),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.qZA(),t.YNc(10,Mi,7,8,"div",13),t.YNc(11,wi,10,10,"div",14),t.TgZ(12,"div"),t.TgZ(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=a}),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(3),o=t.MAs(7),a=t.oxw(2);t.xp6(1),t.Q6J("ngModel",a.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",a.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ui(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",1),t.TgZ(1,"div",2),t.TgZ(2,"h1",3),t.NdJ("click",function(){return t.CHM(e),t.MAs(6).toggle()}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.enabled=a}),t.qZA(),t.qZA(),t.TgZ(7,"div"),t.TgZ(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7),t.TgZ(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.periodType=a}),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.qZA(),t.YNc(21,Si,7,8,"div",13),t.YNc(22,xi,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotAllowLoasEnabled=a}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field"),t.TgZ(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotAllowLoas=a}),t.YNc(30,Ni,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotExtendLoasEnabled=a}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field"),t.TgZ(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotExtendLoas=a}),t.YNc(38,Oi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriodEnabled=a}),t.ALo(40,"translate"),t.TgZ(41,"div",18),t.TgZ(42,"mat-form-field",19),t.TgZ(43,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriod=a}),t.ALo(44,"translate"),t.qZA(),t.qZA(),t.TgZ(45,"mat-form-field"),t.TgZ(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriodUnit=a}),t.YNc(50,Ri,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.specialLoaPeriodEnabled=a}),t.ALo(52,"translate"),t.TgZ(53,"div",7),t.TgZ(54,"div"),t.TgZ(55,"mat-form-field"),t.TgZ(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.specialLoa=a}),t.YNc(61,Di,2,2,"mat-option",17),t.qZA(),t.qZA(),t.YNc(62,Gi,16,13,"div",22),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().saveChanges()}),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(6),o=t.MAs(14),a=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",a.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 mt=(()=>{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 a=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=a}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const a=[];return e.doNotAllowLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotAllowLoas=a,a.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const a=[];return e.doNotExtendLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotExtendLoas=a,a.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const a=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=a,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let a=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(a.startsWith("+")){a.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="dynamic";const s=a.charAt(a.length-1);o.specialLoaPeriodDynamic=a.substring(1,a.length-1),o.specialLoaPeriodDynamicUnit=s}else a.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=a;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(a=>o+=a.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(a=>o+=a.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),a=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),_=this.parseSpecialLoaPeriod(e),T={period:o};return null!==s&&(T.doNotExtendLoa=s),null!==a&&(T.doNotAllowLoa=a),null!==r&&(T.gracePeriod=r),null!==_&&(T.periodLoa=_),T}}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)},directives:[g.O5,W.Rr,h.JJ,h.On,k.VQ,k.U0,S.KE,y.Nt,h.Fj,h.c5,S.bx,S.hX,J.gD,g.sg,Q.ey,Ci,S.UY,B.oG,N.gM,I.lW],pipes:[d.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:[O.BQ]}}),i})();function Pi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){return t.CHM(e),t.oxw().saveExpirationAttribute(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let yi=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>{this.notificator.showRPCError(o.error,this.errorMessage)})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,Z.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(m.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.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)},directives:[g.O5,mt],styles:[""],data:{animation:[O.BQ]}}),i})();var qi=l(55857),gt=l(69815);let Vi=(()=>{class i{constructor(e,o,a,s){this.dialog=e,this.voService=o,this.guiAuthResolver=a,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(p.uw),t.Y36(m.YF),t.Y36(u.x4),t.Y36(u.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)},directives:[gt.s],styles:[""]}),i})();function Fi(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Yi(i,n){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 Ji(i,n){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),t.TgZ(4,"textarea",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).reason=a}),t.qZA(),t.qZA(),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 Qi(i,n){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),t.TgZ(4,"mat-select",9),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().mailType=a}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,Yi,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.qZA(),t.qZA(),t.YNc(24,Ji,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 ki=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,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(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(m.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Fi,1,0,"mat-spinner",1),t.YNc(5,Qi,25,24,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,J.gD,Q.ey,y.Nt,h.Fj,h.JJ,h.On,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Bi(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Hi(i,n){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),t.TgZ(4,"textarea",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().reason=a}),t.qZA(),t.qZA(),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,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,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(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(m.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"),t.TgZ(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),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,h.Fj,h.JJ,h.On,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function zi(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function $i(i,n){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,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t.TgZ(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 Wi(i,n){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 Ki(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,Wi,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,n){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,Xi,4,2,"mat-form-field",8),t.YNc(2,Ki,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,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,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 h.NI(this.formItemData.value,[h.kI.required,h.kI.email]):this.inputControl=new h.NI(this.formItemData.value,[h.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(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(m.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"),t.TgZ(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),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,h.Fj,h.Q7,h.JJ,h.oH,S.TO,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var K=l(4834),io=l(43157);function oo(i,n){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,n){1&i&&t._UZ(0,"mat-spinner",6)}function ao(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).resendNotification()}),t.TgZ(1,"i",14),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,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(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,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(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,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function mo(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function go(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function ho(i,n){if(1&i&&(t.TgZ(0,"div",20),t.TgZ(1,"mat-card-title"),t.TgZ(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA(),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 Ao(i,n){if(1&i&&(t.TgZ(0,"div",20),t.TgZ(1,"mat-card-title"),t.TgZ(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA(),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 To(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(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 fo(i,n){1&i&&t._UZ(0,"th",31)}function Io(i,n){if(1&i&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function vo(i,n){1&i&&t._UZ(0,"th",31)}function bo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw(3).editApplicationData(a)}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Eo(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.YNc(2,bo,3,0,"button",34),t.qZA()),2&i){const e=n.$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,n){1&i&&t._UZ(0,"tr",36)}function So(i,n){1&i&&t._UZ(0,"tr",37)}function Zo(i,n){if(1&i&&(t.TgZ(0,"table",23),t.ynx(1,24),t.YNc(2,fo,1,0,"th",25),t.YNc(3,Io,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,vo,1,0,"th",25),t.YNc(6,Eo,3,2,"td",28),t.BQk(),t.YNc(7,Co,1,0,"tr",29),t.YNc(8,So,1,0,"tr",30),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,n){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"),t.TgZ(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"),t.TgZ(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,Ao,12,11,"div",12),t.TgZ(25,"div",13),t.TgZ(26,"mat-card-title"),t.TgZ(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,To,5,4,"div",4),t.TgZ(33,"div"),t.TgZ(34,"span",10),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37),t.qZA(),t.TgZ(38,"div"),t.TgZ(39,"span",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42),t.qZA(),t.TgZ(43,"div"),t.TgZ(44,"span",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47),t.ALo(48,"date"),t.qZA(),t.YNc(49,Zo,9,3,"table",15),t.qZA(),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,25,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,27,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,29,"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,31,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,33,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(3),t.Oqu(t.lcZ(36,35,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(41,37,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(46,39,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(48,41,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let tt=(()=>{class i{constructor(e,o,a,s,r,_,T,b){this.registrarManager=e,this.dialog=o,this.translate=a,this.route=s,this.notificator=r,this.router=_,this.authResolver=T,this.usersService=b,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 a=Number(e.applicationId);this.registrarManager.getApplicationById(a).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const _=r.userAttributes.find(T=>"preferredMail"===T.friendlyName);this.userMail=null==_?void 0:_.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 a=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==a.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):a}return e}resendNotification(){var e;const o=(0,A.kZ)();o.width="500px",o.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:null===(e=this.application.group)||void 0===e?void 0:e.id},this.dialog.open(ki,o)}deleteApplication(){const e=(0,A.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(D.Ts,e).afterClosed().subscribe(a=>{a&&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,A.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(a=>{this.application=a,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(e=>{this.application=e,this.loading=!1})})}editApplicationData(e){const o=(0,A.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(m.tk),t.Y36(p.uw),t.Y36(d.sK),t.Y36(v.gz),t.Y36(u.V6),t.Y36(v.F0),t.Y36(u.x4),t.Y36(m.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"],["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,"align-text-top"],[1,"card","p-3","mt-2"],[1,"material-icons","red"],[1,"material-icons","green"],["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,xo,50,44,"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))},directives:[g.O5,K.d,f.$g,I.lW,P.Hw,x.n5,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,c.as,c.XQ,c.nj,c.Gk],pipes:[d.X$,io.h,g.uU,$.d],styles:[""]}),i})();var No=l(75234),Oo=l(37240);let Ro=(()=>{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")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var M=l(53251),ht=l(19191);function Do(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function Mo(i,n){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,n){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,n){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,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Lo,3,6,"ng-template",1),t.YNc(2,wo,1,3,"ng-template",2),t.qZA())}function Uo(i,n){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,n){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,n){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 qo=(()=>{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(u.x4),t.Y36(u.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(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,Go,3,0,"mat-tab",3),t.YNc(9,yo,3,0,"mat-tab",3),t.qZA(),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))},directives:[M.SP,M.uX,M.uD,M.Vc,X.t,g.O5,ht.Y],pipes:[d.X$],styles:[""]}),i})();function Vo(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Fo(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 Yo=(()=>{class i{constructor(e,o,a,s,r,_,T,b){this.sideMenuService=e,this.groupService=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=T,this.entityStorageService=b,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,Z.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=>{"HttpErrorResponse"!==e.name&&this.notificator.showRPCError(e)}),this.guiAuthResolver.isManagerPagePrivileged(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"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[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.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[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.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[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.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[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(q.D),t.Y36(m.ff),t.Y36(v.F0),t.Y36(u.x4),t.Y36(u.F5),t.Y36(m.H8),t.Y36(u.V6),t.Y36(u.fb))},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))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var Jo=l(10369),Qo=l(21963),ko=l(28820);function Bo(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ho(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,n){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=n.$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,n){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,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA(),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(),t.qZA(),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 Ko(i,n){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,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24),t._UZ(6,"br"),t._UZ(7,"input",19),t.qZA(),t.qZA(),t.TgZ(8,"div",20),t.YNc(9,Ko,2,1,"mat-icon",21),t.YNc(10,tn,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA(),t.qZA(),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,n){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=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function nn(i,n){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,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(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.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(),t.qZA(),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,n){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,n){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function cn(i,n){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 pn(i,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",28),t.YNc(6,ln,2,1,"option",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",20),t.YNc(8,cn,2,1,"mat-icon",21),t.YNc(9,pn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA(),t.qZA(),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,n){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,n){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 mn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(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,dn,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA(),t.qZA(),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 gn(i,n){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function hn(i,n){1&i&&(t.TgZ(0,"div",35),t.TgZ(1,"form"),t._UZ(2,"input",36),t.qZA(),t.qZA())}function An(i,n){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,n){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 fn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2).$implicit;return t.oxw(2).mapForCombobox[s.id]=a}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,gn,2,1,"option",32),t.qZA(),t.YNc(10,hn,3,0,"div",33),t.qZA(),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(),t.qZA(),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 In(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function vn(i,n){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 bn(i,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"form",35),t.YNc(6,In,3,2,"div",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",20),t.YNc(8,vn,2,1,"mat-icon",21),t.YNc(9,bn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA(),t.qZA(),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 Cn(i,n){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,n){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 Zn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br"),t._UZ(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br"),t._UZ(12,"input",37),t._uU(13," example group3 "),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"div",20),t.YNc(15,Cn,2,1,"mat-icon",21),t.YNc(16,Sn,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA(),t.qZA(),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 xn(i,n){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 Nn(i,n){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 On(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,xn,2,1,"mat-icon",39),t.YNc(4,Nn,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 Rn(i,n){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,n){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,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Rn,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,n){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 wn(i,n){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,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",41),t.TgZ(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.qZA(),t.qZA(),t.qZA(),t.TgZ(89,"div",20),t.YNc(90,Ln,2,1,"mat-icon",21),t.YNc(91,wn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA(),t.qZA(),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 Un(i,n){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 Pn(i,n){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 yn=function(){return["Example 1","Example 2"]},At=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function qn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",17),t.TgZ(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.qZA(),t.TgZ(6,"div",20),t.YNc(7,Un,2,1,"mat-icon",21),t.YNc(8,Pn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),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,At,t.DdM(5,yn))),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,n){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 Fn(i,n){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 Yn=function(){return{key1:"value 1",key2:"value 2"}};function Jn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",17),t.TgZ(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.qZA(),t.TgZ(6,"div",20),t.YNc(7,Vn,2,1,"mat-icon",21),t.YNc(8,Fn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),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,At,t.DdM(5,Yn))),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,n){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,Wo,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,un,12,6,"div",15),t.YNc(6,mn,10,5,"div",15),t.YNc(7,fn,16,11,"div",15),t.YNc(8,En,12,5,"div",15),t.YNc(9,Zn,19,7,"div",15),t.YNc(10,On,5,4,"div",15),t.YNc(11,Mn,5,4,"div",2),t.YNc(12,Gn,94,8,"div",15),t.YNc(13,qn,11,8,"div",2),t.YNc(14,Jn,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||"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 kn(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Qn,15,14,"div",13),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function Bn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(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"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().currentLanguage=a}),t.YNc(9,zo,4,6,"mat-option",7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(10,"div",8),t.YNc(11,kn,2,1,"div",9),t.qZA(),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 Tt=(()=>{class i{constructor(e,o,a){this.route=e,this.translate=o,this.store=a,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.get("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 a=[];for(const s of o.split("|"))a.push(s.split("#")[1]);return a}}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,a,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"),a=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} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=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} ${a} ${s}`;default:return""}}hiddenTooltip(e){let o,a,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"),a=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} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=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} ${a} ${s}`;default:return""}}getLocalizedLabel(e){var o;return(null===(o=e.i18n[this.currentLanguage])||void 0===o?void 0:o.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(v.gz),t.Y36(d.sK),t.Y36(u.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,Bn,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))},directives:[g.O5,f.$g,I.lW,S.KE,S.hX,J.gD,g.sg,Q.ey,P.Hw,N.gM,h._Y,h.JL,h.F,h.YN,h.Kr,h.EJ,h.JJ,h.On,Qo.H,ko.$],pipes:[d.X$,g.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Hn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function jn(i,n){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 zn(i,n){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 $n(i,n){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 Xn(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,zn,3,6,"ng-template",1),t.YNc(2,$n,1,3,"ng-template",2),t.qZA())}function Wn(i,n){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 Kn(i,n){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 ta(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Wn,3,6,"ng-template",1),t.YNc(2,Kn,1,3,"ng-template",2),t.qZA())}function ea(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function ia(i,n){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 oa(i,n){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 na(i,n){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 aa(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,oa,3,6,"ng-template",1),t.YNc(2,na,1,3,"ng-template",2),t.qZA())}let sa=(()=>{class i{constructor(e,o,a){this.route=e,this.authResolver=o,this.memberManager=a}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(v.gz),t.Y36(u.x4),t.Y36(m.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,Hn,2,3,"ng-template",1),t.YNc(7,jn,1,2,"ng-template",2),t.qZA(),t.YNc(8,Xn,3,0,"mat-tab",3),t.YNc(9,ta,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,ea,2,3,"ng-template",1),t.YNc(12,ia,1,2,"ng-template",2),t.qZA(),t.YNc(13,aa,3,0,"mat-tab",3),t.qZA(),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))},directives:[M.SP,M.uX,M.uD,M.Vc,X.t,g.O5,ht.Y],pipes:[d.X$],styles:[""]}),i})(),ra=(()=>{class i{constructor(e,o,a,s){this.sideMenuService=e,this.voService=o,this.authResolver=a,this.entityStorageService=s,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.items=[{cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[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.authResolver.isAuthorized("getResourcesState_Vo_policy",[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(q.D),t.Y36(m.YF),t.Y36(u.x4),t.Y36(u.fb))},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"))},directives:[Y.L],styles:[""]}),i})();var la=l(68056),ca=l(24219),E=l(20449),pa=l(17584);function ua(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function _a(i,n){1&i&&t._UZ(0,"th",15)}function da(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.tagName)}}function ma(i,n){1&i&&t._UZ(0,"tr",17)}function ga(i,n){1&i&&t._UZ(0,"tr",18)}function ha(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,da,2,1,"td",12),t.BQk(),t.YNc(11,ma,1,0,"tr",13),t.YNc(12,ga,1,0,"tr",14),t.qZA(),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,a){this.dialogRef=e,this.data=o,this.resourceManager=a,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(p.so),t.Y36(p.WI),t.Y36(m.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ua,1,0,"mat-spinner",1),t.YNc(5,ha,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,c.as,c.XQ,c.nj,c.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var C=l(10036),G=l(96214),R=l(7434),Ta=l(17672);function fa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ia(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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,n){1&i&&t._UZ(0,"mat-spinner",9)}function ba(i,n){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 Ea=(()=>{class i{constructor(e,o,a,s,r,_){this.resourceManager=e,this.dialog=o,this.notificator=a,this.translator=s,this.authResolver=r,this.entityStorageService=_,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,A.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Aa,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,A.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(pa.p,e).afterClosed().subscribe(a=>{a&&(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(m.xk),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.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,fa,3,3,"button",2),t.YNc(5,Ia,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,ba,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))},directives:[G.t,g.O5,I.lW,R.L,f.$g,Ta.o],pipes:[d.X$],styles:[""]}),i})();function Ca(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){return t.CHM(e),t.oxw().saveExpirationAttribute(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Sa=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>this.notificator.showRPCError(o.error,this.errorMessage))}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(m.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.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,Ca,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},directives:[g.O5,mt],styles:[""]}),i})(),Za=(()=>{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(u.x4),t.Y36(u.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)},directives:[gt.s],styles:[""]}),i})();function xa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Na(i,n){1&i&&t._UZ(0,"th",15)}function Oa(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function Ra(i,n){1&i&&t._UZ(0,"tr",17)}function Da(i,n){1&i&&t._UZ(0,"tr",18)}function Ma(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,Na,1,0,"th",11),t.YNc(10,Oa,2,1,"td",12),t.BQk(),t.YNc(11,Ra,1,0,"tr",13),t.YNc(12,Da,1,0,"tr",14),t.qZA(),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 ft=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,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(a=>{o=a}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(m.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,xa,1,0,"mat-spinner",1),t.YNc(5,Ma,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,c.as,c.XQ,c.nj,c.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var La=l(74533);function wa(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ga(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"textarea",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().mailFooter=a}),t.qZA(),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij("",t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),":"),t.xp6(3),t.Q6J("ngModel",e.mailFooter)("cdkTextareaAutosize",!0),t.xp6(2),t.hij(" ",t.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let It=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=a,this.notificator=s,this.data=r,this.mailFooter="",this.loading=!1}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.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(()=>{this.notificationSuccess(),this.dialogRef.close()},()=>this.loading=!1):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(()=>{this.notificationSuccess(),this.dialogRef.close()},()=>this.loading=!1)}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,Z.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.editAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,Z.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.editAuth=this.mailAttribute.writable,this.mailFooter=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(p.so),t.Y36(m.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.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"],["matInput","",3,"ngModel","cdkTextareaAutosize","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,wa,1,0,"mat-spinner",1),t.YNc(5,Ga,9,8,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),t.qZA(),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.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.editAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,h.Fj,La.IC,h.JJ,h.On,p.H8,I.lW,N.gM],pipes:[d.X$],styles:[""]}),i})();var Ua=l(53435);function Pa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",1),t.TgZ(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().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.qZA(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=n.$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 ya=(()=>{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,Pa,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},directives:[g.sg,I.lW,N.gM,K.d],pipes:[d.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(["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"]),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"]),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(["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),t.TgZ(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(),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))},directives:[w.w,Ua.PQ,ya],pipes:[d.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Va(i,n){1&i&&(t.TgZ(0,"div"),t.TgZ(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Fa(i,n){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 Ya(i,n){1&i&&t._UZ(0,"mat-spinner",10)}function Ja(i,n){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 Qa(i,n){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,n){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 Ba(i,n){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 Ha(i,n){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 ja(i,n){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 za(i,n){1&i&&t._UZ(0,"mat-divider",52)}function $a(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"div",41),t.TgZ(2,"div",42),t.TgZ(3,"button",43),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return a.showTags=!a.showTags}),t._uU(4),t.ALo(5,"translate"),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"span",44),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-form-field",18),t.TgZ(11,"input",45,46),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw().$implicit;return t.oxw(2).applicationMail.message[s].subject=a})("focus",function(){return t.CHM(e),t.oxw(3).isTextFocused=!1}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(13,"div",47),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.TgZ(16,"mat-form-field",18),t.TgZ(17,"textarea",48,49),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw().$implicit;return t.oxw(2).applicationMail.message[s].text=a})("focus",function(){return t.CHM(e),t.oxw(3).isTextFocused=!0}),t._uU(19," "),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,za,1,0,"mat-divider",50),t.TgZ(21,"div"),t.TgZ(22,"app-tag-bar",51),t.NdJ("addedTag",function(a){t.CHM(e);const s=t.MAs(12),r=t.MAs(18),_=t.oxw().$implicit;return t.oxw(2).addTag(s,r,_,a)}),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(4),t.hij(" ",o.showTags?t.lcZ(5,7,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):t.lcZ(6,9,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),t.xp6(4),t.hij(" ",t.lcZ(9,11,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),t.xp6(3),t.Q6J("ngModel",o.applicationMail.message[e].subject),t.xp6(3),t.hij(" ",t.lcZ(15,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),t.xp6(3),t.Q6J("ngModel",o.applicationMail.message[e].text),t.xp6(3),t.Q6J("ngIf",o.showTags),t.xp6(1),t.Q6J("@tagsOpenClose",o.showTags?"open":"closed")}}function Xa(i,n){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,$a,23,15,"ng-template",39),t.qZA()),2&i&&t.s9C("label",t.lcZ(1,1,t.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+n.$implicit)))}function Wa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",11),t.TgZ(1,"div"),t.TgZ(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.TgZ(5,"mat-tab-group",13),t.TgZ(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15),t.TgZ(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17),t.TgZ(13,"mat-form-field",18),t.TgZ(14,"mat-select",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.mailType=a})("selectionChange",function(){return t.CHM(e),t.oxw().notificationExist()}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,Ja,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.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,Qa,3,3,"div",30),t.YNc(40,ka,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15),t.TgZ(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17),t.TgZ(46,"mat-form-field",18),t.TgZ(47,"mat-select",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.appType=a})("selectionChange",function(){return t.CHM(e),t.oxw().notificationExist()}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,Ba,3,3,"mat-option",33),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,Ha,3,3,"div",30),t.YNc(55,ja,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15),t.TgZ(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17),t.TgZ(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.send=a}),t.qZA(),t.qZA(),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.qZA(),t.qZA(),t.YNc(67,Xa,4,5,"mat-tab",36),t.qZA(),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 Ka(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",53),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",53),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 et=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.registrarService=o,this.data=a,this.authResolver=s,this.groupsService=r,this.store=_,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"]}ngOnInit(){this.languages=this.store.get("supported_languages"),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,a,s){let r;r=this.isTextFocused?o:e;const _=r.selectionStart;this.isTextFocused?this.applicationMail.message[a].text=this.applicationMail.message[a].text.substring(0,_)+s+this.applicationMail.message[a].text.substring(_):this.applicationMail.message[a].subject=this.applicationMail.message[a].subject.substring(0,_)+s+this.applicationMail.message[a].subject.substring(_),r.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(p.so),t.Y36(m.tk),t.Y36(p.WI),t.Y36(u.x4),t.Y36(m.ff),t.Y36(u.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",""],[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"],["matInput","",3,"ngModel","ngModelChange","focus"],["Input",""],[1,"font-weight-bold"],["matInput","","rows","17",3,"ngModel","ngModelChange","focus"],["Textarea",""],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],["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"),t.TgZ(1,"div",0),t.YNc(2,Va,4,3,"div",1),t.YNc(3,Fa,3,3,"ng-template",null,2,t.W1O),t.YNc(5,Ya,1,0,"mat-spinner",3),t.YNc(6,Wa,68,55,"div",4),t.TgZ(7,"div",5),t.TgZ(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Ka,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,ts,3,4,"button",7),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",a),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)}},directives:[g.O5,p.uh,f.$g,p.xY,w.w,M.SP,M.uX,S.KE,J.gD,h.JJ,h.On,Q.ey,B.oG,g.sg,M.Vc,I.lW,y.Nt,h.Fj,K.d,qa,p.H8,N.gM],pipes:[d.X$,g.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}"],data:{animation:[O.es,O.BQ]}}),i})();var it=l(62707);function es(i,n){1&i&&t._UZ(0,"mat-spinner",9)}let vt=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialogRef=e,this.voService=o,this.groupService=a,this.translateService=s,this.registrarService=r,this.cd=_,this.data=T,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=b=>b.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(p.so),t.Y36(m.YF),t.Y36(m.ff),t.Y36(d.sK),t.Y36(m.tk),t.Y36(t.sBO),t.Y36(p.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,es,1,0,"mat-spinner",1),t.TgZ(5,"div",2),t.TgZ(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.qZA(),t.TgZ(15,"div",6),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,it.M,ut.h,p.H8,I.lW],pipes:[d.X$],styles:[""],data:{animation:[O.BQ]}}),i})();var ot=l(84847),is=l(18750);function os(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ns(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return a?_.toggle(r):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))}}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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function ss(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 rs(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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function ls(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function ps(i,n){1&i&&(t.TgZ(0,"div"),t.TgZ(1,"mat-icon",25),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 us(i,n){1&i&&(t.TgZ(0,"mat-icon",26),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 _s(i,n){if(1&i&&(t.TgZ(0,"td",22),t.YNc(1,ps,5,3,"div",23),t.YNc(2,us,4,3,"ng-template",null,24,t.W1O),t.qZA()),2&i){const e=n.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function ds(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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function ms(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"section"),t.TgZ(2,"mat-checkbox",27),t.NdJ("change",function(){const s=t.CHM(e).$implicit;return t.oxw().changeSending(s)})("click",function(a){return a.stopPropagation()}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$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 gs(i,n){1&i&&t._UZ(0,"tr",28)}function hs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().openApplicationMailDetail(s)}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function As(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,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let bt=(()=>{class i{constructor(e,o,a,s,r,_){this.registrarService=e,this.translate=o,this.notificator=a,this.dialog=s,this.authResolver=r,this.tableCheckbox=_,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new E.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=A.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.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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,A.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(et,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(a=>{o=a}),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(m.tk),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(A.l9,7),t.Gf(ot.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.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:21,vars:9,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"],["class","align-checkbox","mat-header-cell","",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","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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,os,2,3,"th",4),t.YNc(5,ns,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,as,3,3,"th",7),t.YNc(8,ss,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,rs,3,3,"th",7),t.YNc(11,ls,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,cs,3,3,"th",7),t.YNc(14,_s,4,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ds,3,3,"th",7),t.YNc(17,ms,4,6,"td",10),t.BQk(),t.YNc(18,gs,1,0,"tr",13),t.YNc(19,hs,1,2,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,As,3,3,"perun-web-apps-alert",15)),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(16),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},directives:[is.l,c.BZ,ot.YE,c.w1,c.fO,c.ge,B.oG,c.Dz,c.ev,ot.nU,g.O5,P.Hw,N.gM,h.JJ,h.On,c.as,c.XQ,c.nj,c.Gk,w.w],pipes:[d.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Is(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().copy()}),t.TgZ(1,"i",5),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,n){1&i&&t._UZ(0,"mat-spinner",12)}function bs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",13),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().changeSelection(a)}),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 Es=(()=>{class i{constructor(e,o,a,s,r,_,T,b,U){this.route=e,this.registrarService=o,this.translate=a,this.dialog=s,this.notificator=r,this.authResolver=_,this.voService=T,this.store=b,this.entityStorageService=U,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),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("copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.get("supported_languages"),o=(0,A.i5)(e);o.formId=this.applicationForm.id;const a=(0,A.kZ)();a.width="1400px",a.height="700px",a.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(et,a).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,A.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(ft,e).afterClosed().subscribe(a=>{a&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,A.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(vt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,A.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(It,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(v.gz),t.Y36(m.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.V6),t.Y36(u.x4),t.Y36(m.YF),t.Y36(u.d6),t.Y36(u.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:14,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["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),t.YNc(4,Ts,3,3,"button",2),t.YNc(5,fs,3,4,"button",3),t.TgZ(6,"button",4),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(7,"i",5),t._uU(8,"email"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Is,5,3,"button",6),t.qZA(),t.YNc(12,vs,1,0,"mat-spinner",7),t.YNc(13,bs,1,7,"app-notification-list",8)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(10,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))},directives:[g.O5,I.lW,f.$g,bt],pipes:[d.X$],styles:[""]}),i})();var Cs=l(14336);function Ss(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Zs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 xs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Ns(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Os(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw(2).changeSelection(a)}),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 Rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",2),t.YNc(2,Ss,3,3,"button",3),t.YNc(3,Zs,3,4,"button",4),t.TgZ(4,"button",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().changeEmailFooter()}),t.TgZ(5,"i",6),t._uU(6,"email"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,xs,5,3,"button",7),t.qZA(),t.YNc(10,Ns,1,0,"mat-spinner",8),t.YNc(11,Os,1,7,"app-notification-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(8,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 Ds(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Ms(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-alert",15),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ds,3,3,"button",16),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 Ls=(()=>{class i{constructor(e,o,a,s,r,_,T,b){this.registrarService=e,this.translate=o,this.dialog=a,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=_,this.attributesService=T,this.entityStorageService=b,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.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuthRights(),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,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},a=>{"HttpErrorResponse"!==a.name&&this.notificator.showRPCError(a),this.setAuthRights(),this.loading=!1})})},e=>{const o=e.error;"FormNotExistsException"===o.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(o)})}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("copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,A.i5)();e.formId=this.applicationForm.id;const o=(0,A.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(et,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,A.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(ft,e).afterClosed().subscribe(a=>{a&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,A.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(vt,e).afterClosed().subscribe(a=>{a&&(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,A.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(It,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(m.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.F5),t.Y36(u.V6),t.Y36(u.x4),t.Y36(m.H8),t.Y36(u.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"],["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,Rs,12,8,"div",1),t.YNc(4,Ms,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))},directives:[g.O5,I.lW,f.$g,bt,w.w],pipes:[d.X$],styles:[""]}),i})();var nt=l(15935);function ws(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function Gs(i,n){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 Et=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.extSourceService=a,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:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,o.id).subscribe(()=>{this.addVoExtSource(e)},()=>this.loading=!1)}addGroupExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,o.id).subscribe(()=>{this.addGroupExtSource(e)},()=>this.loading=!1)}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSource(this.selection.selected):this.addVoExtSource(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(m.KG),t.Y36(u.V6),t.Y36(d.sK))},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"),t.TgZ(1,"div",0),t.TgZ(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.qZA(),t.YNc(6,ws,1,0,"mat-spinner",3),t.YNc(7,Gs,2,4,"div",4),t.TgZ(8,"div",5),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,R.L,g.O5,f.$g,p.xY,nt.D,p.H8,I.lW],pipes:[d.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function Us(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ps(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function ys(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 qs(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}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.name)}}function Fs(i,n){1&i&&t._UZ(0,"tr",19)}function Ys(i,n){1&i&&t._UZ(0,"tr",20)}function Js(i,n){if(1&i&&(t.TgZ(0,"div",8),t.TgZ(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,Ps,2,0,"th",12),t.YNc(10,ys,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,qs,2,0,"th",12),t.YNc(13,Vs,2,1,"td",13),t.BQk(),t.YNc(14,Fs,1,0,"tr",15),t.YNc(15,Ys,1,0,"tr",16),t.qZA(),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 Ct=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.tableConfigService=r,this.translate=_,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}removeGroupExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(m.KG),t.Y36(u.V6),t.Y36(C.dB),t.Y36(d.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"),t.TgZ(1,"div",0),t.TgZ(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,Us,1,0,"mat-spinner",2),t.YNc(6,Js,16,9,"div",3),t.TgZ(7,"div",4),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,c.as,c.XQ,c.nj,c.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Qs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Bs(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Hs(i,n){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 js=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,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(T=>this.successMessage=T)}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,A.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Et,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,A.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ct,e).afterClosed().subscribe(a=>{a&&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(m.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.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"),t.TgZ(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,Qs,3,3,"button",2),t.YNc(6,ks,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,Bs,1,0,"mat-spinner",5),t.YNc(9,Hs,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))},directives:[G.t,g.O5,I.lW,R.L,f.$g,nt.D],pipes:[d.X$],styles:[""]}),i})();var V=l(24179);function zs(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function $s(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw(2).getGroupsToInclude(a.id)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const Xs=function(){return["select","id","name","description"]};function Ws(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("authType","create-relation-dialog")("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,Xs))("filter",e.filterValue)("tableId",e.tableId)}}function Ks(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function tr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,$s,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,Ws,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,Ks,1,0,"mat-spinner",1),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),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 er=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialogRef=e,this.groupService=o,this.notificator=a,this.translate=s,this.guiAuthResolver=r,this.voService=_,this.data=T,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(b=>this.successMessage=b)}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(a=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[a])),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(p.so),t.Y36(m.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(m.YF),t.Y36(p.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,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","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"],[3,"vo","vos","voSelected"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId"]],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,zs,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))},directives:[p.uh,g.O5,f.$g,it.M,R.L,p.xY,V.W,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function ir(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function or(i,n){1&i&&t._UZ(0,"th",15)}function nr(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 ar(i,n){1&i&&t._UZ(0,"tr",17)}function sr(i,n){1&i&&t._UZ(0,"tr",18)}function rr(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,or,1,0,"th",11),t.YNc(10,nr,2,1,"td",12),t.BQk(),t.YNc(11,ar,1,0,"tr",13),t.YNc(12,sr,1,0,"tr",14),t.qZA(),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 lr=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(_=>this.successMessage=_)}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(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(m.ff),t.Y36(d.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ir,1,0,"mat-spinner",1),t.YNc(5,rr,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,c.as,c.XQ,c.nj,c.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var cr=l(387);const pr=["list"];function ur(i,n){1&i&&t._UZ(0,"mat-spinner",9)}const _r=function(){return["select","id","vo","name","description"]};function dr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10,11),2&i){const e=t.oxw();t.Q6J("authType","group-relations")("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(8,_r))("filter",e.filterValue)("tableId",e.tableId)}}let mr=(()=>{class i{constructor(e,o,a){this.groupService=e,this.dialog=o,this.entityStorageService=a,this.selection=new E.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,A.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(er,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,A.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(lr,e).afterClosed().subscribe(a=>{a&&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(m.ff),t.Y36(p.uw),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],viewQuery:function(e,o){if(1&e&&t.Gf(pr,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:19,vars:21,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(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.TgZ(8,"span",3),t.ALo(9,"translate"),t.TgZ(10,"button",4),t.NdJ("click",function(){return o.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.TgZ(13,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(14,"mat-checkbox",6),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,ur,1,0,"mat-spinner",7),t.YNc(18,dr,2,9,"perun-web-apps-groups-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,11,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,13,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(9,15,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||void 0!==o.list&&!o.list.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(12,17,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(16,19,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,I.lW,N.gM,R.L,B.oG,g.O5,f.$g,V.W],pipes:[d.X$],styles:[""]}),i})();var St=l(64901),gr=l(9146);function hr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ar(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Tr(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function fr(i,n){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 Ir=(()=>{class i{constructor(e,o,a){this.registrarManager=e,this.memberManager=o,this.route=a,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(m.tk),t.Y36(m.uq),t.Y36(v.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"),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,hr,3,3,"button",2),t.YNc(6,Ar,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.qZA(),t.YNc(8,Tr,1,0,"mat-spinner",4),t.YNc(9,fr,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))},directives:[G.t,g.O5,I.lW,St.P,f.$g,gr.S],pipes:[d.X$],styles:[""]}),i})();var Zt=l(1059),at=l(24850),L=l(92081),xt=l(91079);function vr(i,n){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 br(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Er(i,n){if(1&i&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Cr(i,n){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),r.stepper.selected.completed=!0}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Sr(i,n){if(1&i&&(t.TgZ(0,"div",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Zr(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div"),t.TgZ(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,Er,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div"),t.TgZ(10,"mat-form-field",14),t.TgZ(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,Cr,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div"),t.TgZ(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA(),t.qZA(),t.TgZ(21,"div"),t.TgZ(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,Sr,2,1,"div",23),t.qZA(),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 xr(i,n){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 Nr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}const Or=function(){return["select","id","name","description"]};function Rr(i,n){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,Or))("selection",e.selectedGroups)}}function Dr(i,n){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 Mr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Lr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.stepperNext(),a.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,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Gr=(()=>{class i{constructor(e,o,a,s,r,_,T,b){this.dialogRef=e,this.data=o,this.resourceManager=a,this.groupManager=s,this.notificator=r,this.translate=_,this.authResolver=T,this.cd=b,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new h.NI,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(a=>a.id)),this.groups.forEach(a=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[a])||this.membersGroupsId.add(a.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,Zt.O)(""),(0,at.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Zt.O)(""),(0,at.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(p.so),t.Y36(p.WI),t.Y36(m.xk),t.Y36(m.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.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(L.Vq,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(5,"mat-stepper",2),t.TgZ(6,"mat-step",3),t.YNc(7,vr,2,3,"ng-template",4),t.YNc(8,br,1,0,"mat-spinner",5),t.YNc(9,Zr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,xr,2,3,"ng-template",4),t.YNc(12,Nr,1,0,"mat-spinner",5),t.YNc(13,Rr,2,8,"div",6),t.YNc(14,Dr,3,3,"perun-web-apps-alert",7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",8),t.TgZ(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Mr,3,3,"button",10),t.YNc(20,Lr,3,8,"button",11),t.YNc(21,wr,3,4,"button",12),t.qZA(),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))},directives:[p.uh,p.xY,L.Vq,L.C0,L.VY,g.O5,f.$g,S.KE,y.Nt,h.Fj,xt.ZL,h.JJ,h.oH,xt.XC,g.sg,Q.ey,J.gD,V.W,w.w,p.H8,I.lW],pipes:[d.X$,g.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var Ur=l(62109);function Pr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 yr(i,n){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 qr(i,n){1&i&&t._UZ(0,"mat-spinner",8)}let Vr=(()=>{class i{constructor(e,o,a,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=a,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(a=>{this.member=a,this.refreshTable()})})}addResource(){const e=(0,A.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(Gr,e).afterClosed().subscribe(a=>{a&&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(p.uw),t.Y36(m.uq),t.Y36(m.xk),t.Y36(v.gz),t.Y36(u.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"),t.TgZ(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,Pr,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,yr,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,qr,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))},directives:[G.t,g.O5,I.lW,R.L,Ur.C,f.$g],pipes:[d.X$],styles:[""]}),i})();var Fr=l(98918),Yr=l(4675),Jr=l(258),Qr=l(60113),kr=l(16500),Br=l(92090),Hr=l(20057),jr=l(49546),zr=l(76023),$r=l(3246);function Xr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Wr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Kr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function tl(i,n){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 el=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,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(T=>this.successMessage=T)}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,A.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Et,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,A.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(Ct,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(m.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.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"),t.TgZ(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,Xr,3,3,"button",2),t.YNc(6,Wr,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,Kr,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))},directives:[G.t,g.O5,I.lW,R.L,f.$g,nt.D],pipes:[d.X$],styles:[""]}),i})();function il(i,n){1&i&&t._UZ(0,"th",9)}function ol(i,n){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function nl(i,n){1&i&&t._UZ(0,"th",9)}function al(i,n){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function sl(i,n){1&i&&t._UZ(0,"tr",12)}let Nt=(()=>{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),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content"),t.TgZ(7,"table",2),t.ynx(8,3),t.YNc(9,il,1,0,"th",4),t.YNc(10,ol,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,nl,1,0,"th",4),t.YNc(13,al,2,1,"td",7),t.BQk(),t.YNc(14,sl,1,0,"tr",8),t.qZA(),t.qZA(),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))},directives:[x.a8,x.dk,x.n5,x.dn,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,c.nj,c.Gk],pipes:[d.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function rl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function ll(i,n){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 cl=(()=>{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(m.YF),t.Y36(u.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,rl,1,0,"mat-spinner",1),t.YNc(4,ll,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))},directives:[g.O5,f.$g,Nt],pipes:[d.X$],styles:[""]}),i})();function pl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function ul(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t._UZ(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 _l=(()=>{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(([a,s])=>this.membersCountsByVoStatus.set(a.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(a=>{Object.entries(a).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(m.ff),t.Y36(u.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,pl,1,0,"mat-spinner",1),t.YNc(4,ul,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))},directives:[g.O5,f.$g,Nt],pipes:[d.X$],styles:[""]}),i})();function dl(i,n){1&i&&t._UZ(0,"mat-spinner",6)}const ml=function(){return["select","id","name","description"]};function gl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),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,ml))("filter",e.filterValue)("tableId",e.tableId)}}let hl=(()=>{class i{constructor(e,o,a,s){this.dialogRef=e,this.data=o,this.groupService=a,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(p.so),t.Y36(p.WI),t.Y36(m.ff),t.Y36(m.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,dl,1,0,"mat-spinner",1),t.YNc(5,gl,4,11,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[p.uh,g.O5,f.$g,p.xY,St.P,V.W,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();const Al=["list"];function Tl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().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,n){1&i&&t._UZ(0,"mat-spinner",10)}const Il=function(){return["select","id","name","description"]};function vl(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11,12),2&i){const e=t.oxw();t.Q6J("authType","application-form-manage-groups")("displayedColumns",t.DdM(7,Il))("disableRouting",!0)("filter",e.filterValue)("groups",e.groups)("selection",e.selected)("tableId",e.tableId)}}let bl=(()=>{class i{constructor(e,o,a,s){this.registrarService=e,this.authResolver=o,this.dialog=a,this.route=s,this.groups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.CE,this.filterValue=""}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,A.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(a=>a.id),theme:"vo-theme"},this.dialog.open(hl,e).afterClosed().subscribe(a=>{a&&this.loadGroups()})}removeGroup(){const e=(0,A.kZ)();e.width="450px",e.data={items:this.selected.selected.map(a=>a.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(D.Ts,e).afterClosed().subscribe(a=>{a&&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(m.tk),t.Y36(u.x4),t.Y36(p.uw),t.Y36(v.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],viewQuery:function(e,o){if(1&e&&t.Gf(Al,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","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"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId"],["list",""]],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,Tl,3,3,"button",3),t.TgZ(9,"span",4),t.ALo(10,"translate"),t.TgZ(11,"button",5),t.NdJ("click",function(){return o.removeGroup()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.TgZ(14,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(15,fl,1,0,"mat-spinner",7),t.YNc(16,vl,2,8,"perun-web-apps-groups-list",8)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.s9C("matTooltip",t.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",void 0===o.list||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||void 0!==o.list&&!o.list.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),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))},directives:[w.w,G.t,g.O5,I.lW,N.gM,R.L,f.$g,V.W],pipes:[d.X$],styles:[""]}),i})();var El=l(20872),Cl=l(80013),Sl=l(72986),Zl=l(87545),Ot=l(28499),xl=l(13469),Rt=l(14623),Dt=l(38383);const Nl=["stepper"];function Ol(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function Rl(i,n){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 Dl(i,n){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 Ml(i,n){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 Ll(i,n){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,n){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 Gl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function Ul(i,n){if(1&i&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Pl(i,n){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 yl(i,n){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.LOGIN_EXISTS")))}function ql(i,n){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.LOGIN_FORMAT")))}function Vl(i,n){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.LOGIN_LONG")))}function Fl(i,n){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.LOGIN_SHORT")))}function Yl(i,n){if(1&i&&(t.TgZ(0,"span",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,1,"Not selected"===e.secondFormGroup.get("namespaceCtrl").value?"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED":"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}function Jl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function Ql(i,n){if(1&i&&(t.TgZ(0,"span",38),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function kl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item"),t.TgZ(1,"p",33),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,Ql,2,1,"span",34),t.TgZ(5,"span",35),t.ALo(6,"translate"),t.TgZ(7,"button",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).removeUser(s)}),t.TgZ(8,"mat-icon",37),t._uU(9,"close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$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 Bl(i,n){1&i&&t._UZ(0,"mat-spinner",39)}const Hl=function(){return["checkbox","id","fullName"]};function jl(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",42),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,Hl))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function zl(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",43),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 $l(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,jl,1,6,"perun-web-apps-members-list",40),t.YNc(2,zl,3,3,"perun-web-apps-alert",41),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 Xl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"mat-stepper",6,7),t.TgZ(3,"mat-step",8),t.TgZ(4,"form",9),t.YNc(5,Ol,2,3,"ng-template",10),t.TgZ(6,"div",11),t.TgZ(7,"mat-form-field"),t.TgZ(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",12),t.YNc(12,Rl,3,3,"mat-error",13),t.qZA(),t.TgZ(13,"mat-form-field"),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",14),t.YNc(18,Dl,3,3,"mat-error",13),t.YNc(19,Ml,3,3,"mat-error",13),t.qZA(),t.TgZ(20,"mat-form-field"),t.TgZ(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",15),t.YNc(25,Ll,3,3,"mat-error",13),t.qZA(),t.TgZ(26,"mat-form-field"),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",16),t.YNc(31,wl,3,3,"mat-error",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"mat-step",8),t.TgZ(33,"form",9),t.YNc(34,Gl,2,3,"ng-template",10),t.TgZ(35,"div",11),t.TgZ(36,"mat-form-field"),t.TgZ(37,"mat-label"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-select",17),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().onNamespaceChanged(a)}),t.YNc(41,Ul,2,2,"mat-option",18),t.qZA(),t.qZA(),t.TgZ(42,"mat-form-field",19),t.TgZ(43,"mat-label"),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._UZ(46,"input",20),t.YNc(47,Pl,3,3,"mat-error",13),t.YNc(48,yl,3,3,"mat-error",13),t.YNc(49,ql,3,3,"mat-error",13),t.YNc(50,Vl,3,3,"mat-error",13),t.YNc(51,Fl,3,3,"mat-error",13),t.YNc(52,Yl,3,3,"span",21),t.qZA(),t.TgZ(53,"mat-radio-group",22),t.NdJ("ngModelChange",function(){return t.CHM(e),t.oxw().passwordOptionChanged()}),t.ALo(54,"translate"),t.TgZ(55,"mat-radio-button",23),t._uU(56),t.ALo(57,"translate"),t.qZA(),t.TgZ(58,"mat-radio-button",23),t._uU(59),t.ALo(60,"translate"),t.qZA(),t.qZA(),t.TgZ(61,"div",11),t._UZ(62,"perun-web-apps-password-form",24),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(63,"mat-step"),t.YNc(64,Jl,2,3,"ng-template",10),t.TgZ(65,"h6"),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.TgZ(68,"mat-list"),t.YNc(69,kl,10,9,"mat-list-item",25),t.qZA(),t.TgZ(70,"h6",26),t._uU(71),t.ALo(72,"translate"),t.qZA(),t.TgZ(73,"mat-form-field",27),t.TgZ(74,"input",28),t.NdJ("keyup.enter",function(){t.CHM(e);const a=t.oxw();return 0!==a.searchCtrl.value.length&&a.onSearchByString()}),t.ALo(75,"translate"),t.qZA(),t.qZA(),t.TgZ(76,"button",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSearchByString()}),t.TgZ(77,"mat-icon"),t._uU(78,"search"),t.qZA(),t.qZA(),t.TgZ(79,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().addUsers()}),t._uU(80),t.ALo(81,"translate"),t.qZA(),t.YNc(82,Bl,1,0,"mat-spinner",3),t.YNc(83,$l,3,2,"div",13),t.qZA(),t.qZA(),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,50,"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,52,"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,54,"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,56,"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(5),t.Oqu(t.lcZ(39,58,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),t.xp6(3),t.Q6J("ngForOf",e.namespaceOptions),t.xp6(1),t.Q6J("floatLabel",e.secondFormGroup.get("loginCtrl").disabled?"always":null),t.xp6(2),t.Oqu(t.lcZ(45,60,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),t.xp6(2),t.Q6J("hidden",e.secondFormGroup.get("loginCtrl").disabled),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("loginExists")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("pattern")&&!e.secondFormGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("maxlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").disabled),t.xp6(1),t.s9C("matTooltip",t.lcZ(54,62,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),t.Q6J("matTooltipDisabled","Not selected"!==e.secondFormGroup.get("namespaceCtrl").value),t.xp6(2),t.Q6J("checked",e.secondFormGroup.get("generatePasswordCtrl").value&&e.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),t.xp6(1),t.hij(" ",t.lcZ(57,64,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),t.xp6(2),t.Q6J("checked",!e.secondFormGroup.get("generatePasswordCtrl").value&&e.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),t.xp6(1),t.hij(" ",t.lcZ(60,66,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),t.xp6(2),t.ekj("input-disabled",e.secondFormGroup.get("generatePasswordCtrl").value),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup)("namespace",e.selectedNamespace)("passwordRequired",!e.secondFormGroup.get("generatePasswordCtrl").value),t.xp6(4),t.Oqu(t.lcZ(67,68,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(72,70,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(75,72,"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(81,74,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Wl(i,n){1&i&&t._UZ(0,"mat-spinner",39)}function Kl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",49),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 tc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 ec(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onCreate()}),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 ic(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",44),t.TgZ(1,"button",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Kl,3,3,"button",46),t.YNc(5,tc,3,8,"button",47),t.YNc(6,ec,3,4,"button",48),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),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)}}let oc=(()=>{class i{constructor(e,o,a,s,r,_,T,b,U,st){this.dialogRef=e,this.data=o,this.membersManagerService=a,this.usersManagerService=s,this.notificator=r,this.translate=_,this.store=T,this.apiRequestConfiguration=b,this._formBuilder=U,this.cd=st,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new h.NI(""),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,_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(rt=>this.successMessageMember=rt),_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(rt=>this.successMessagePwd=rt)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",h.kI.required],emailCtrl:["",[h.kI.required,h.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[h.kI.pattern("^[a-z][a-z0-9_-]+$"),h.kI.maxLength(15),h.kI.minLength(2)]],passwordCtrl:["",h.kI.required,[(0,Ot.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:A.dN.passwordMatchValidator}),this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(o=>{this.namespaceRules=o,this.parseNamespaceRules(),this.loading=!1}),this.onNamespaceChanged("Not selected");const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let a={};for(const s of o)s.voId===this.data.voId&&(a=s);a.user=e,this.assignedMembers.push(a)})}existingLoginValidator(){return e=>{let o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,e.valueChanges.pipe((0,Cl.b)(500),(0,Sl.q)(1),(0,Zl.w)(()=>this.usersManagerService.isLoginAvailable(o,e.value).pipe((0,at.U)(a=>a?null:{loginExists:!0}))))}}onCreate(){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 e=this.firstFormGroup.get("subjectCtrl");(null==e?void 0:e.value)&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=e.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 o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),a=this.parsedRules.get(o),s=`urn:perun:user:attribute-def:def:login-namespace:${o}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===a.login?this.usersManagerService.generateAccountForName(o,this.firstFormGroup.get("nameCtrl").value).subscribe(r=>{this.candidate.attributes[s]=r[s],this.createSpecificMember()},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[s]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}createSpecificMember(){this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(e=>e.user),candidate:this.candidate}).subscribe(e=>{this.membersManagerService.validateMemberAsync(e.id).subscribe(o=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(o,this.secondFormGroup.get("generatePasswordCtrl").value):(this.dialogRef.close(!0),this.processing=!1)},()=>this.processing=!1)},()=>this.processing=!1)}parseNamespaceRules(){for(const e of this.namespaceRules){this.namespaceOptions.push(e.namespaceName);const o={login:"disabled"};this.parseAttributes(o,e.requiredAttributes,"required"),this.parseAttributes(o,e.optionalAttributes,"optional"),this.parsedRules.set(e.namespaceName,o)}}parseAttributes(e,o,a){for(const s of o)"login"===s&&(e.login=a)}setPassword(e,o){const a=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(a).login)return void this.validateMember(e.id);this.usersManagerService.reserveRandomPassword(e.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id,!1)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}else this.usersManagerService.reservePasswordForUser(e.userId,a,s).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}validateMember(e,o=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{o&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close(!0),this.processing=!1},()=>{this.processing=!1,this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[null],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)}onNamespaceChanged(e){this.selectedNamespace=e.toLowerCase();const o=this.secondFormGroup.get("loginCtrl"),a=this.secondFormGroup.get("passwordCtrl"),s=this.secondFormGroup.get("passwordAgainCtrl"),r=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==e){if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const _=[h.kI.required,h.kI.pattern("^[a-z][a-z0-9_-]+$"),h.kI.maxLength(15),h.kI.minLength(2)];(0,A.mH)(o,_,[this.existingLoginValidator()])}(0,A.mH)(r,[]),this.passwordOptionChanged()}else o.disable(),o.setValue(""),a.disable(),a.setValue(""),s.disable(),s.setValue(""),r.disable(),r.dirty||r.setValue(!0)}passwordOptionChanged(){const e=this.secondFormGroup.get("passwordCtrl"),o=this.secondFormGroup.get("passwordAgainCtrl");this.secondFormGroup.get("generatePasswordCtrl").value?(e.disable(),e.setValue(""),o.disable(),o.setValue("")):((0,A.mH)(e,[h.kI.required],[(0,Ot.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,A.mH)(o,[]))}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending||"Not selected"===this.secondFormGroup.get("namespaceCtrl").value;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(m.uq),t.Y36(m.Fv),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.d6),t.Y36(u.F5),t.Y36(h.qu),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Nl,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:6,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","",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"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],["class","input-disabled",4,"ngIf"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"formGroup","namespace","passwordRequired"],[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"],[3,"value"],[1,"input-disabled"],[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",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Xl,84,76,"div",2),t.YNc(5,Wl,1,0,"mat-spinner",3),t.YNc(6,ic,7,6,"div",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"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))},directives:[g.O5,p.xY,L.Vq,L.C0,h._Y,h.JL,h.sg,L.VY,S.KE,S.hX,h.Fj,y.Nt,h.JJ,h.u,h.Q7,S.TO,J.gD,g.sg,Q.ey,k.VQ,N.gM,k.U0,xl.G,Rt.i$,Rt.Tg,I.lW,P.Hw,h.oH,f.$g,Dt.O,w.w,p.H8],pipes:[d.X$,$.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 nc=l(53455);function ac(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 sc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}const rc=function(){return["checkbox","id","type","fullName","status"]};function lc(i,n){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,rc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let cc=(()=>{class i{constructor(e,o,a,s,r){this.membersManager=e,this.dialog=o,this.authResolver=a,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,A.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(oc,e).afterClosed().subscribe(a=>{a&&this.refresh()})}onRemoveMembers(){const e=(0,A.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(nc.X,e).afterClosed().subscribe(a=>{a&&(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(m.uq),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.x4),t.Y36(u.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,ac,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,sc,1,0,"mat-spinner",5),t.YNc(10,lc,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))},directives:[G.t,I.lW,g.O5,R.L,f.$g,Dt.O],pipes:[d.X$],styles:[""]}),i})(),pc=(()=>{class i{constructor(e,o,a,s){this.authResolver=e,this.routePolicyService=o,this.router=a,this.notificator=s}static getBeanName(e){switch(e){case"organizations":return"Vo";case"groups":return"Group";case"facilities":return"Facility";case"resources":return"Resource";case"members":return"Member";default:return""}}static parseUrl(e){const o=e.slice(1).split("/").reverse(),a={key:"",entity:{id:-1,beanName:""}};for(const s of o){if(Number(s)){if(-1===a.entity.id){a.entity.id=Number(s);continue}break}a.key=s.concat("-",a.key)}return a.key=a.key.slice(0,a.key.length-1),a.entity.beanName=i.getBeanName(a.key.split("-")[0]),a}canActivateChild(e,o){if(this.authResolver.isPerunAdminOrObserver())return!0;const a=i.parseUrl(o.url);return!!this.routePolicyService.canNavigate(a.key,a.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(u.x4),t.LFG(u.Ip),t.LFG(v.F0),t.LFG(u.V6))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Mt=l(87831);const uc=["stepper"];function _c(i,n){1&i&&t._UZ(0,"mat-spinner",4)}function dc(i,n){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,n){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 gc(i,n){1&i&&t._UZ(0,"th",19)}function hc(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.name)}}function Ac(i,n){1&i&&t._UZ(0,"tr",21)}function Tc(i,n){1&i&&t._UZ(0,"tr",22)}function fc(i,n){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,gc,1,0,"th",14),t.YNc(6,hc,2,1,"td",15),t.BQk(),t.YNc(7,Ac,1,0,"tr",16),t.YNc(8,Tc,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 Ic(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"mat-stepper",6,7),t.TgZ(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(a){return t.CHM(e),t.oxw().voFilter=a}),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,fc,12,10,"ng-template",11),t.qZA(),t.qZA(),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 vc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 bc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Ec(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Cc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",23),t.TgZ(1,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().close()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,vc,3,3,"button",26),t.YNc(6,bc,3,4,"button",27),t.YNc(7,Ec,3,3,"button",28),t.qZA(),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 Sc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=a,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 a=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!a.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(p.so),t.Y36(m.YF),t.Y36(u.fb),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(uc,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_c,1,0,"mat-spinner",1),t.YNc(5,Ic,10,7,"div",2),t.YNc(6,Cc,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))},directives:[p.uh,g.O5,f.$g,p.xY,L.Vq,L.C0,L.VY,R.L,Mt.Z,L.BY,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,c.as,c.XQ,c.nj,c.Gk,w.w,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Zc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 xc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Nc(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Oc(i,n){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 Rc=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialog=e,this.vosService=o,this.entityStorage=a,this.authResolver=s,this.reloadDetailService=r,this.notificator=_,this.translator=T,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,A.kZ)();e.width="750px",this.dialog.open(Sc,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,A.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(D.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(m.YF),t.Y36(u.fb),t.Y36(u.x4),t.Y36(j.G),t.Y36(u.V6),t.Y36(d.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,Zc,3,3,"button",2),t.YNc(5,xc,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,Nc,1,0,"mat-spinner",5),t.YNc(8,Oc,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))},directives:[G.t,g.O5,I.lW,R.L,f.$g,Mt.Z],pipes:[d.X$],styles:[""]}),i})();const Dc=function(){return["select","id","name","description"]};function Mc(i,n){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,Dc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function Lc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function wc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",9),t.TgZ(1,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().close()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().confirm()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),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 Gc=function(i){return{parentVo:i}};let Uc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.groupService=a,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(){if(0===this.selected.selected.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS"));this.loading=!0,this.groupService.allowGroupToHierarchicalVo(this.selected.selected.pop().id,this.parentVo.id).subscribe(()=>{this.confirm(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(m.ff),t.Y36(u.V6),t.Y36(d.sK))},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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(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,Mc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,Lc,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,wc,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,Gc,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))},directives:[p.uh,p.xY,w.w,R.L,g.O5,V.W,f.$g,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Pc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw().voSelected(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const yc=function(){return["select","id","name","description"]};function qc(i,n){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,yc))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function Vc(i,n){1&i&&t._UZ(0,"mat-spinner",11)}const Yc=[{path:"",component:Lt.Y},{path:":voId",component:be,canActivateChild:[pc],children:[{path:"",component:ne,data:{animation:"VoOverviewPage"}},{path:"attributes",component:fi,data:{animation:"VoAttributesPage"}},{path:"groups",component:ae.G,data:{animation:"VoGroupsPage"}},{path:"members",component:se.y,data:{animation:"VoMembersPage"}},{path:"resources",component:hi,children:[{path:"",component:ra,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:la.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ca.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Ea,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:Ai.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:tt,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:$r.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:cc,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:cl,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Ti,children:[{path:"",component:bi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:yi,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Vi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:Jo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Tt,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:bl},{path:"notifications",component:Es,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:js,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:Rc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialog=e,this.entityStorage=o,this.voService=a,this.groupService=s,this.notificator=r,this.translate=_,this.changeDetector=T,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,A.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(Uc,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,A.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(D.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroup()})}disallowGroup(){if(0===this.selected.selected.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),void this.loadAllowedGroups();this.loading=!0,this.groupService.disallowGroupToHierarchicalVo(this.selected.selected.pop().id,this.selectedParentVo.id).subscribe(()=>{this.disallowGroup(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(u.fb),t.Y36(m.YF),t.Y36(m.ff),t.Y36(u.V6),t.Y36(d.sK),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),t.TgZ(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,Pc,1,1,"perun-web-apps-vo-search-select",6),t.qZA(),t.qZA(),t.YNc(13,qc,1,6,"perun-web-apps-groups-list",7),t.YNc(14,Vc,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))},directives:[G.t,I.lW,g.O5,it.M,V.W,f.$g],pipes:[d.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})(),data:{animation:"VoSettingsHierarchicalInclusionComponent"}}]}]},{path:":voId/members/:memberId",component:ee,children:[{path:"",component:li,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:sa,data:{animation:"MemberAttributesPage"}},{path:"groups",component:ci.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Ir,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:tt,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:Vr,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:Ht,children:[{path:"",component:mi,data:{animation:"GroupOverviewPage"}},{path:"members",component:No.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:gi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:qi.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Oo.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:qo,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:_l,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Ro,children:[{path:"",component:Yo,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Sa,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Za,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Cs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Tt},{path:"notifications",component:Ls,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:mr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:el,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:tt,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:Fr.b,children:[{path:"",component:Yr.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:Jr.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:jr.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:Br.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:zr.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:El.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:Qr.t,children:[{path:"",component:kr.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Hr.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Jc=(()=>{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(Yc)],v.Bz]}),i})();var Qc=l(14264),kc=l(63189),Bc=l(19516);let Hc=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[g.ez,Jc,Qc.m,kc.r,cr.ez,Bc.d4,A.Je]]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/958.41c0822d13d9697b.js b/dist/apps/admin-gui/958.41c0822d13d9697b.js deleted file mode 100644 index 4667ea0eb..000000000 --- a/dist/apps/admin-gui/958.41c0822d13d9697b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[958],{12958:(Yn,$,c)=>{c.r($),c.d($,{FacilitiesModule:()=>wn});var m=c(69808),v=c(11735),_t=c(86353),J=c(36769),mt=c(69024),f=c(32105),p=c(9244),_=c(36908),q=c(16074),ht=c(54037),ft=c(22158),gt=c(7625),t=c(5e3),u=c(48966),Tt=c(77968),St=c(15003),Ct=c(4235),T=c(20773),N=c(25245),H=c(29772),C=c(47423),z=c(61283),h=c(51062);function At(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function It(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editFacility()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function bt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteFacility()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}const yt=function(){return{color:"black"}},vt=function(i){return["/facilities",i]};function xt(i,a){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,It,3,0,"button",10),t.YNc(11,bt,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.qZA(),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,10,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(16,yt)),t.xp6(4),t.Q6J("routerLink",t.VKq(17,vt,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,12,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,14,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let Zt=(()=>{class i extends((0,ft.T)()){constructor(e,s,n,o,r,d,S,b,E){super(),this.dialog=e,this.facilityManager=s,this.route=n,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=d,this.router=S,this.entityStorageService=b,this.reloadEntityDetail=E,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,gt.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(n=>{this.facility=n,this.entityStorageService.setEntity({id:n.id,beanName:n.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:q.Eg.FACILITY},this.dialog.open(q.rd,e).afterClosed().subscribe(n=>{n&&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(ht.Y,e).afterClosed().subscribe(n=>{n&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(v.gz),t.Y36(Tt.D),t.Y36(mt.V),t.Y36(_.x4),t.Y36(v.F0),t.Y36(_.fb),t.Y36(St.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"],["queryParamsHandling","merge",1,"facility-link",3,"routerLink"],[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,At,1,0,"mat-spinner",1),t.YNc(3,xt,17,19,"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))},directives:[Ct.W,m.O5,T.$g,N.Hw,H.gM,m.PC,v.yS,C.lW,z.A],pipes:[h.X$],styles:[""],data:{animation:[J.Ji]}}),i})();var W=c(71135);function Et(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Dt(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 Lt=(()=>{class i{constructor(e,s,n){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[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.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[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.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[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.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[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.authResolver.isFacilityAdmin()&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),(this.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])||this.authResolver.isManagerPagePrivileged(this.facility)||this.authResolver.isAuthorized("getOwners_Facility_policy",[this.facility])||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[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(f.IQ),t.Y36(_.x4),t.Y36(_.fb))},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,Et,1,0,"mat-spinner",0),t.YNc(1,Dt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[m.O5,T.$g,W.L],styles:[""]}),i})();var Rt=c(34904),Ot=c(37380),Ft=c(98918),Nt=c(4675);let kt=(()=>{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")},directives:[z.A],styles:[""],data:{animation:[J.Ji]}}),i})();function wt(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Yt(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 Ut=(()=>{class i{constructor(e,s,n){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.authResolver.isAuthorized("getOwners_Facility_policy",[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.authResolver.isManagerPagePrivileged(this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[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.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(_.x4),t.Y36(_.fb))},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,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))},directives:[m.O5,T.$g,W.L],styles:[""]}),i})();var k=c(53251),Mt=c(12651),Jt=c(19191);function qt(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function Ht(i,a){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 Qt(i,a){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 Pt(i,a){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 Vt(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Qt,3,6,"ng-template",1),t.YNc(2,Pt,1,3,"ng-template",2),t.qZA())}let Gt=(()=>{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(_.x4),t.Y36(_.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,qt,2,3,"ng-template",1),t.YNc(7,Ht,1,2,"ng-template",2),t.qZA(),t.YNc(8,Vt,3,0,"mat-tab",3),t.qZA(),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))},directives:[k.SP,k.uX,k.uD,k.Vc,Mt.t,m.O5,Jt.Y],pipes:[h.X$],styles:[""]}),i})();var Bt=c(60113),jt=c(16500),$t=c(92090),zt=c(258),g=c(93075),w=c(1059),Y=c(24850),Q=c(19516),O=c(67322),P=c(98833),X=c(91079),K=c(90508),D=c(77446),tt=c(31359);function Wt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedService(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Xt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",7),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedSerVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.TgZ(5,"mat-option",10),t.NdJ("onSelectionChange",function(){return t.CHM(e),t.oxw(2).onSelectedService("NOT_SELECTED")}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){return t.CHM(e),t.oxw(2).onSelectedService("ALL")}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Wt,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA(),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 Kt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedResource(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function te(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",12),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedResVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,Kt,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA(),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 ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedGroup(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ie(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",12),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedGroupVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,ee,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA(),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 se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedMember(o)}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function ae(i,a){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,se,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA(),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 ne(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,Xt,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(n){return t.CHM(e),t.oxw().onOfferAllServices(n)}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,te,7,9,"mat-form-field",4),t.YNc(6,ie,7,9,"mat-form-field",4),t.YNc(7,ae,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 oe(i,a){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 le=(()=>{class i{constructor(e,s,n,o,r,d,S){this.facilityManager=e,this.resourceManager=s,this.serviceManager=n,this.membersManager=o,this.namePipe=r,this.translate=d,this.entityStorageService=S,this.serviceField=new g.NI,this.resourceField=new g.NI,this.groupField=new g.NI,this.memberField=new g.NI,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,w.O)(""),(0,Y.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,w.O)(""),(0,Y.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(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(n=>this.namePipe.transform(n.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.xk),t.Y36(f.KK),t.Y36(f.uq),t.Y36(Q.dp),t.Y36(h.sK),t.Y36(_.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ne,8,7,"div",1),t.YNc(5,oe,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))},directives:[m.O5,O.KE,P.Nt,g.Fj,X.ZL,g.JJ,g.oH,X.XC,K.ey,m.sg,D.oG,m.mk],pipes:[h.X$,m.Ov,tt.d],styles:[""]}),i})();var et=c(69815);let it=(()=>{class i{constructor(e,s,n){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=n,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(f.IQ),t.Y36(_.x4),t.Y36(_.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)},directives:[et.s],styles:[""]}),i})();var x=c(10036),A=c(20449),ce=c(89466),re=c(74107);function ue(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function pe(i,a){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 de(i,a){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 _e(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function me(i,a){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 he(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function fe(i,a){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 ge(i,a){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 Te(i,a){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,fe,3,3,"mat-error",13),t.YNc(3,ge,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 Se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw(2).useFacilityHost=n}),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 Ce(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Ae(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,pe,3,3,"mat-option",10),t.YNc(8,de,3,3,"mat-option",11),t.YNc(9,_e,2,2,"mat-option",12),t.qZA(),t.YNc(10,me,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){return t.CHM(e),t.oxw().getServices()})("ngModelChange",function(n){return t.CHM(e),t.oxw().servicesOnFacility=n}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field"),t.TgZ(15,"mat-select",15),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw().selectedType=n})("selectionChange",function(){return t.CHM(e),t.oxw().destinationControl.updateValueAndValidity()}),t.ALo(16,"translate"),t.YNc(17,he,2,2,"mat-option",12),t.qZA(),t.qZA(),t.YNc(18,Te,4,4,"mat-form-field",16),t.YNc(19,Se,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field"),t.TgZ(21,"mat-select",18),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw().selectedPropagation=n}),t.ALo(22,"translate"),t.YNc(23,Ce,2,2,"mat-option",12),t.qZA(),t.qZA(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA(),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 Ie=(()=>{class i{constructor(e,s,n,o){this.dialogRef=e,this.data=s,this.facilitiesManager=n,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.NI(void 0,g.kI.required),this.destinationControl=new g.NI("",this.getDestinationValidator()),this.emailControl=new g.NI("",[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(f.IQ),t.Y36(f.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ue,1,0,"mat-spinner",1),t.YNc(5,Ae,27,30,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,m.O5,T.$g,u.xY,O.KE,re.gD,g.Q7,g.JJ,g.oH,K.ey,m.sg,O.TO,D.oG,g.On,P.Nt,g.Fj,u.H8,C.lW],pipes:[h.X$],styles:[""],data:{animation:[J.BQ]}}),i})();var L=c(98380),R=c(96214),Z=c(7434),st=c(70242);function be(i,a){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 ye(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 ve(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 xe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ze(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ee(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function De(i,a){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 at=(()=>{class i{constructor(e,s,n,o,r,d,S,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=n,this.translate=o,this.notificator=r,this.authResolver=d,this.serviceManager=S,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(Ie,e).afterClosed().subscribe(n=>{n&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(o=>{this.refreshTable(),this.notificator.showSuccess(o)})})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(ce.u,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.blockServiceOnDestination(s.service.id,s.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.unblockServiceOnDestinationById(s.service.id,s.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(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(f.IQ),t.Y36(f.KK),t.Y36(h.sK),t.Y36(_.V6),t.Y36(_.x4),t.Y36(f.KK),t.Y36(_.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,be,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,ye,3,3,"button",3),t.YNc(7,ve,3,4,"button",4),t.YNc(8,xe,5,4,"button",5),t.YNc(9,Ze,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,Ee,1,0,"mat-spinner",7),t.YNc(12,De,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))},directives:[m.O5,L.w,R.t,C.lW,N.Hw,Z.L,T.$g,st.q],pipes:[h.X$],styles:[""]}),i})();var V=c(23256);function Le(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(n){return t.CHM(e),t.oxw().applyFilter(n)}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7),t.TgZ(5,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.qZA(),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 Oe=(()=>{class i{constructor(e,s,n,o,r,d){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=d,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(S=>this.successMessage=S)}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,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe(()=>this.onAdd(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(_.V6),t.Y36(h.sK),t.Y36(f.aC),t.Y36(f.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,Le,1,0,"mat-spinner",1),t.YNc(5,Re,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))},directives:[u.uh,m.O5,T.$g,Z.L,u.xY,V.Q,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var l=c(32075);function Fe(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Ne(i,a){1&i&&t._UZ(0,"th",15)}function ke(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 we(i,a){1&i&&t._UZ(0,"tr",17)}function Ye(i,a){1&i&&t._UZ(0,"tr",18)}function Ue(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,Ne,1,0,"th",11),t.YNc(10,ke,2,1,"td",12),t.BQk(),t.YNc(11,we,1,0,"tr",13),t.YNc(12,Ye,1,0,"tr",14),t.qZA(),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 Me=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"],o.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.dataSource=new l.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,0!==this.data.owners.length?this.facilitiesManagerService.removeFacilityOwner(this.data.facilityId,this.data.owners.pop().id).subscribe(()=>this.onSubmit(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(_.V6),t.Y36(h.sK),t.Y36(f.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,Fe,1,0,"mat-spinner",1),t.YNc(5,Ue,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,m.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();function Je(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 qe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 He(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Qe(i,a){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 nt=(()=>{class i{constructor(e,s,n,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=n,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(n=>n.id)},this.dialog.open(Oe,e).afterClosed().subscribe(n=>{n&&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(Me,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(u.uw),t.Y36(_.x4),t.Y36(_.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,qe,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,He,1,0,"mat-spinner",5),t.YNc(8,Qe,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))},directives:[R.t,m.O5,C.lW,Z.L,T.$g,V.Q],pipes:[h.X$],styles:[""]}),i})();var G=c(50301);function Pe(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Ve(i,a){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 Ge(i,a){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 Be(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"mat-form-field"),t.TgZ(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,Ve,3,3,"mat-error",9),t.YNc(6,Ge,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),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 je=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,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,n]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(n.substring(0,n.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.NI("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const n of e)s=s.concat(this.parseHostName(n));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 n=e.value.split("\n");for(const o of n)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"),n=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let d=0;d{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,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 l.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(f.IQ),t.Y36(_.V6),t.Y36(h.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,$e,1,0,"mat-spinner",1),t.YNc(5,ti,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,m.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var I=c(84847),F=c(18750);function ii(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",14),t.TgZ(1,"mat-checkbox",15),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw();return n?d.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ai(i,a){1&i&&(t.TgZ(0,"th",18),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 ni(i,a){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function oi(i,a){1&i&&(t.TgZ(0,"th",18),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 li(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.hostname)}}function ci(i,a){1&i&&t._UZ(0,"tr",21)}const ot=function(i,a){return["/facilities",i,"hosts",a]};function ri(i,a){if(1&i&&t._UZ(0,"tr",22),2&i){const e=a.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ot,s.facilityId,e.id))("routerLink",s.disableRouting?null:t.WLB(5,ot,s.facilityId,e.id))}}function ui(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),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 pi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),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"))}let lt=(()=>{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 l.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(_.x4),t.Y36(_.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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:16,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,ii,2,3,"th",4),t.YNc(5,si,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ai,3,3,"th",7),t.YNc(8,ni,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,oi,3,3,"th",7),t.YNc(11,li,2,1,"td",10),t.BQk(),t.YNc(12,ci,1,0,"tr",11),t.YNc(13,ri,1,8,"tr",12),t.qZA(),t.qZA(),t.qZA(),t.YNc(14,ui,3,3,"perun-web-apps-alert",13),t.YNc(15,pi,3,3,"perun-web-apps-alert",13)),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(10),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,G.YH,v.rH,m.O5,L.w],pipes:[h.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function di(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 _i(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 mi(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function hi(i,a){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 ct=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,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(je,e).afterClosed().subscribe(n=>{n&&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(ei,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(_.x4),t.Y36(_.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"),t.TgZ(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,di,3,3,"button",2),t.YNc(6,_i,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,mi,1,0,"mat-spinner",5),t.YNc(9,hi,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))},directives:[R.t,m.O5,C.lW,Z.L,T.$g,lt],pipes:[h.X$],styles:[""]}),i})();function fi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function gi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw();return n?d.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}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,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Si(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.hij(" ",e[1].id," ")}}function Ci(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,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function Ai(i,a){if(1&i&&(t.TgZ(0,"td",21),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[1])," ")}}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,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function bi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function yi(i,a){1&i&&t._UZ(0,"tr",22)}function vi(i,a){1&i&&t._UZ(0,"tr",23)}function xi(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,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Zi(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,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let Ei=(()=>{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 l.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(_.x4),t.Y36(_.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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,fi,2,3,"th",4),t.YNc(5,gi,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Ti,3,3,"th",7),t.YNc(8,Si,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Ci,3,3,"th",7),t.YNc(11,Ai,3,3,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Ii,3,3,"th",7),t.YNc(14,bi,2,1,"td",10),t.BQk(),t.YNc(15,yi,1,0,"tr",12),t.YNc(16,vi,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,xi,3,3,"perun-web-apps-alert",14),t.YNc(18,Zi,3,3,"perun-web-apps-alert",14)),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(13),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,m.O5,L.w],pipes:[h.X$,tt.d],styles:[""]}),i})();function Di(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function Li(i,a){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 Ri=(()=>{class i{constructor(e,s,n){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=n,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 n of s){let o;this.usersManager.getUserById(n.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([n,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.Fv),t.Y36(_.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"),t.TgZ(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,Di,1,0,"mat-spinner",3),t.YNc(8,Li,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))},directives:[R.t,Z.L,m.O5,T.$g,Ei],pipes:[h.X$],styles:[""]}),i})();var Oi=c(387),Fi=c(61365),Ni=c(71103),rt=c(53984);const ki=["list"];function wi(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Yi(i,a){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 Ui=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.attributesManager=s,this.facilityManager=n,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(q.wA,e).afterClosed().subscribe(n=>{n&&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(Ni.n,e).afterClosed().subscribe(n=>{"saved"===n&&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(Fi.k,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.H8),t.Y36(f.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(ki,5),2&e){let n;t.iGM(n=t.CRH())&&(s.list=n.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"),t.TgZ(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,wi,1,0,"mat-spinner",5),t.YNc(15,Yi,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))},directives:[R.t,C.lW,m.O5,T.$g,rt.p],pipes:[h.X$],styles:[""]}),i})();function Mi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Ji(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw();return n?d.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function qi(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,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function Hi(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.hij(" ",e.id," ")}}function Qi(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,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function Pi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Vi(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,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function Gi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.description)}}function Bi(i,a){1&i&&t._UZ(0,"tr",22)}function ji(i,a){1&i&&t._UZ(0,"tr",23)}function $i(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,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function zi(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,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Wi=(()=>{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 l.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(_.x4),t.Y36(_.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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","description"],["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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,Mi,2,3,"th",4),t.YNc(5,Ji,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,qi,3,3,"th",7),t.YNc(8,Hi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Qi,3,3,"th",7),t.YNc(11,Pi,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Vi,3,3,"th",7),t.YNc(14,Gi,2,1,"td",10),t.BQk(),t.YNc(15,Bi,1,0,"tr",12),t.YNc(16,ji,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,$i,3,3,"perun-web-apps-alert",14),t.YNc(18,zi,3,3,"perun-web-apps-alert",14)),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(13),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,m.O5,L.w],pipes:[h.X$],styles:[""]}),i})();function Xi(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function Ki(i,a){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,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,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(f.IQ),t.Y36(_.x4),t.Y36(_.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"),t.TgZ(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,Xi,1,0,"mat-spinner",3),t.YNc(7,Ki,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))},directives:[R.t,Z.L,m.O5,T.$g,Wi],pipes:[h.X$],styles:[""]}),i})();var es=c(20057),is=c(49546);function ss(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function as(i,a){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 ns(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 os(i,a){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 ls(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.destination.destination)}}function cs(i,a){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 rs(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function us(i,a){1&i&&t._UZ(0,"tr",19)}function ps(i,a){1&i&&t._UZ(0,"tr",20)}function ds(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,as,3,3,"th",11),t.YNc(10,ns,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,os,3,3,"th",11),t.YNc(13,ls,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,cs,3,3,"th",11),t.YNc(16,rs,3,4,"td",12),t.BQk(),t.YNc(17,us,1,0,"tr",15),t.YNc(18,ps,1,0,"tr",16),t.qZA(),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 ut=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.taskManager=n,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new l.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){if(this.loading=!0,0===this.taskResults.length)return this.dialogRef.close(!0),this.loading=!1,void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"));this.taskManager.deleteTaskResultById({taskResultId:this.taskResults.pop().id}).subscribe(()=>{this.onDelete()},()=>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(f.Ob),t.Y36(_.V6),t.Y36(h.sK))},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,ss,1,0,"mat-spinner",1),t.YNc(5,ds,19,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,m.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$,m.uU],styles:[""]}),i})();var _s=c(62109);function ms(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function hs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(n){return t.CHM(e),t.oxw(2).change(n)}),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 fs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(n){return t.CHM(e),t.oxw(2).change(n)}),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 gs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(n){return t.CHM(e),t.oxw(2).disableCheckboxes(n)}),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 Ts(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,hs,4,9,"mat-checkbox",8),t.YNc(6,fs,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(n){return t.CHM(e),t.oxw().change(n)}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA(),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,gs,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 Ss=(()=>{class i{constructor(e,s,n,o,r,d,S,b){this.dialogRef=e,this.data=s,this.resourcesManager=n,this.tasksManager=o,this.serviceManager=r,this.translate=d,this.notificator=S,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 l.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=>{e.forEach(s=>{this.tasksManager.deleteTaskResultById({taskResultId:s.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(e=>{e.forEach(s=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,s.destination,s.type).subscribe()})}),this.selected.selected.forEach(e=>{this.resourcesManager.removeService(e.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(s=>{this.notificator.showSuccess(s),this.dialogRef.close(!0)})},()=>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(f.xk),t.Y36(f.Ob),t.Y36(f.KK),t.Y36(h.sK),t.Y36(_.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,ms,1,0,"mat-spinner",1),t.YNc(5,Ts,18,21,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,m.O5,T.$g,u.xY,D.oG,H.gM,_s.C,u.H8,C.lW],pipes:[h.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function Cs(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function As(i,a){1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let Is=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.tasksManager=n,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(f.Ob),t.Y36(h.sK),t.Y36(_.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,Cs,1,0,"mat-spinner",1),t.YNc(5,As,4,3,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,m.O5,T.$g,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var B=c(92181);let bs=(()=>{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 ys(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n&&o.masterToggle(),o.selectionChange.emit()}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function vs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",20),t.TgZ(1,"mat-checkbox",21),t.NdJ("click",function(n){return n.stopPropagation()})("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw();return n&&d.selection.toggle(r),d.selectionChange.emit()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",s.checkboxLabel(e))}}function xs(i,a){1&i&&(t.TgZ(0,"th",22),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 Zs(i,a){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 Es(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Ds(i,a){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Zs,2,1,"div",24),t.YNc(2,Es,2,0,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function Ls(i,a){1&i&&(t.TgZ(0,"th",22),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 Rs(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.Oqu(e.service.name)}}function Os(i,a){1&i&&(t.TgZ(0,"th",22),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 Fs(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.Oqu(e.status)}}function Ns(i,a){1&i&&(t.TgZ(0,"th",22),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 ks(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function ws(i,a){1&i&&(t.TgZ(0,"th",22),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 Ys(i,a){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 Us(i,a){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 Ms(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Ys,3,4,"div",24),t.YNc(2,Us,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function Js(i,a){1&i&&(t.TgZ(0,"th",22),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 qs(i,a){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 Hs(i,a){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 Qs(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,qs,3,4,"div",24),t.YNc(2,Hs,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function Ps(i,a){1&i&&t._UZ(0,"tr",26)}const pt=function(i,a){return["/facilities",i,"services-status",a]};function Vs(i,a){if(1&i&&t._UZ(0,"tr",27),2&i){const e=a.$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,pt,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,pt,e.facility.id,e.taskId))}}function Gs(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",28),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 Bs(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",28),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"))}let js=(()=>{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){var n,o;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(null===(n=e.task)||void 0===n?void 0:n.startTime)?(0,m.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return(null===(o=e.task)||void 0===o?void 0:o.endTime)?(0,m.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){var n,o;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(null===(n=e.task)||void 0===n?void 0:n.startTime)?(0,m.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return(null===(o=e.task)||void 0===o?void 0:o.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 l.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const n=s.trim().toLowerCase(),o=r=>{let d="";return Object.values(r).forEach(S=>{"object"!=typeof S?d=d+" "+String(S):null!==S&&(d=d+" "+o(S))}),d.trim().toLowerCase()};return o(e).includes(n)},this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(_.x4),t.Y36(_.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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["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"],["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",""],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,ys,2,3,"th",4),t.YNc(5,vs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,xs,3,3,"th",7),t.YNc(8,Ds,3,2,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Ls,3,3,"th",7),t.YNc(11,Rs,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Os,3,3,"th",7),t.YNc(14,Fs,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Ns,3,3,"th",7),t.YNc(17,ks,3,3,"td",10),t.BQk(),t.ynx(18,13),t.YNc(19,ws,3,3,"th",7),t.YNc(20,Ms,3,2,"td",10),t.BQk(),t.ynx(21,14),t.YNc(22,Js,3,3,"th",7),t.YNc(23,Qs,3,2,"td",10),t.BQk(),t.YNc(24,Ps,1,0,"tr",15),t.YNc(25,Vs,1,18,"tr",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(26,Gs,3,3,"perun-web-apps-alert",17),t.YNc(27,Bs,3,3,"perun-web-apps-alert",17)),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(22),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,m.O5,l.as,l.XQ,l.nj,l.Gk,v.rH,G.YH,L.w],pipes:[h.X$,bs,m.uU],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 $s(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 zs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ws(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Xs(i,a){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 Ks(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 ta(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function ea(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){return t.CHM(e),t.oxw().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 ia=(()=>{class i{constructor(e,s,n,o,r,d,S,b,E){this.tasksManager=e,this.servicesManager=s,this.notificator=n,this.translate=o,this.authResolver=r,this.facilityManager=d,this.resourcesManager=S,this.dialog=b,this.entityStorageService=E,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(ut,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(Is,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(n=>n.id)).subscribe(n=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:n},this.dialog.open(Ss,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(f.Ob),t.Y36(f.KK),t.Y36(_.V6),t.Y36(h.sK),t.Y36(_.x4),t.Y36(f.IQ),t.Y36(f.xk),t.Y36(u.uw),t.Y36(_.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"),t.TgZ(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,$s,3,4,"button",2),t.YNc(6,zs,3,4,"button",2),t.YNc(7,Ws,3,4,"button",3),t.YNc(8,Xs,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,Ks,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.qZA(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,ta,1,0,"mat-spinner",9),t.YNc(17,ea,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))},directives:[R.t,m.O5,C.lW,B.p6,H.gM,B.VK,B.OP,Z.L,T.$g,js],pipes:[h.X$],styles:[""]}),i})();var sa=c(25610),aa=c(76023);function na(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",20),t.TgZ(1,"mat-checkbox",21),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function oa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"mat-checkbox",23),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw();return n?d.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function la(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function ca(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.Oqu(e.id)}}function ra(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function ua(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.destination.destination," ")}}function pa(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function da(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.destination.type.toUpperCase()," ")}}function _a(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function ma(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.service.name," ")}}function ha(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function fa(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.status," ")}}function ga(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Ta(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Sa(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Ca(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.returnCode," ")}}function Aa(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function Ia(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function ba(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Ia,3,1,"span",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function ya(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function va(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.errorMessage," ")}}function xa(i,a){1&i&&t._UZ(0,"tr",27)}function Za(i,a){if(1&i&&t._UZ(0,"tr",28),2&i){const e=a.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Ea(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),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 Da(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),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"))}let La=(()=>{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 l.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(_.x4),t.Y36(_.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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","time","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","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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,na,2,3,"th",4),t.YNc(5,oa,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,la,3,3,"th",7),t.YNc(8,ca,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,ra,3,3,"th",7),t.YNc(11,ua,2,1,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,pa,3,3,"th",7),t.YNc(14,da,2,1,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,_a,3,3,"th",7),t.YNc(17,ma,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,ha,3,3,"th",7),t.YNc(20,fa,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,ga,3,3,"th",7),t.YNc(23,Ta,3,4,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Sa,3,3,"th",7),t.YNc(26,Ca,2,1,"td",8),t.BQk(),t.ynx(27,15),t.YNc(28,Aa,3,3,"th",7),t.YNc(29,ba,2,1,"td",8),t.BQk(),t.ynx(30,16),t.YNc(31,ya,3,3,"th",7),t.YNc(32,va,2,1,"td",8),t.BQk(),t.YNc(33,xa,1,0,"tr",17),t.YNc(34,Za,1,6,"tr",18),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,Ea,3,3,"perun-web-apps-alert",19),t.YNc(36,Da,3,3,"perun-web-apps-alert",19)),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(31),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,m.sg,l.as,l.XQ,l.nj,l.Gk,m.O5,L.w],pipes:[h.X$,m.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function Ra(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Oa(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function Fa(i,a){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 Na=(()=>{class i{constructor(e,s,n,o,r){this.route=e,this.taskManager=s,this.authResolver=n,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(ut,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(v.gz),t.Y36(f.Ob),t.Y36(_.x4),t.Y36(u.uw),t.Y36(_.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.qZA(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Ra,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,Oa,1,0,"mat-spinner",5),t.YNc(9,Fa,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))},directives:[R.t,m.O5,C.lW,Z.L,T.$g,La],pipes:[h.X$],styles:[""]}),i})();var ka=c(20872);let wa=(()=>{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"),t.TgZ(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),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})(),Ya=(()=>{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"),t.TgZ(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),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();function Ua(i,a){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 Ma(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 Ja(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDelete()}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ma,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 qa=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilityService=n,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(f.IQ),t.Y36(_.V6),t.Y36(h.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ua,3,3,"div",1),t.YNc(5,Ja,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))},directives:[u.uh,m.O5,u.xY,u.H8,C.lW,N.Hw],pipes:[h.X$],styles:[""]}),i})();var Ha=c(66688),U=c(92081),Qa=c(90439),Pa=c(60205),Va=c(30540),M=c(81125);const Ga=["stepper"];function Ba(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function ja(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(n){return t.CHM(e),t.oxw().owners=n}),t.qZA()}}function $a(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function za(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(n){return t.CHM(e),t.oxw().hosts=n}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function Wa(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const Xa=function(){return["select","id","name","enabled","description"]};function Ka(i,a){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),t.TgZ(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(n){return t.CHM(e),t.oxw().applyFilter(n)}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(n){return t.CHM(e),t.oxw().packagesSelected(n)}),t.qZA(),t.qZA(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){return t.CHM(e),t.oxw().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,Xa))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function tn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function en(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(n){return t.CHM(e),t.oxw(2).filterAttributes(n)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function sn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}function an(i,a){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 nn(i,a){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),t.TgZ(7,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemoveAttributes()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSaveAttributes()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,en,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,sn,1,0,"mat-spinner",25),t.YNc(15,an,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 on(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const ln=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function cn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(n){return t.CHM(e),t.oxw().destinations=n}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,ln))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function rn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function un(i,a){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function pn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function dn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const _n=function(){return["id","name","contact","type"]};function mn(i,a){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,_n))("owners",e.owners)}}function hn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const fn=function(){return["id","name"]};function gn(i,a){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,fn))("hosts",e.hosts)}}function Tn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const Sn=function(){return["id","name","enabled","script","description"]},Cn=function(){return["id","displayName","value","description"]},An=function(){return["destinationId","service","warn","destination","type","propagationType"]},In=function(){return["id","vo","name","description"]},bn=function(){return["id","name","email","logins","organization"]};function yn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion"),t.TgZ(1,"mat-expansion-panel",34),t.TgZ(2,"mat-expansion-panel-header"),t.TgZ(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,dn,1,0,"mat-spinner",25),t.YNc(11,mn,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34),t.TgZ(13,"mat-expansion-panel-header"),t.TgZ(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,hn,1,0,"mat-spinner",25),t.YNc(22,gn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34),t.TgZ(24,"mat-expansion-panel-header"),t.TgZ(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA(),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(){return t.CHM(e),t.oxw(2).getNonEmptyAttributes()}),t.TgZ(34,"mat-expansion-panel-header"),t.TgZ(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA(),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(n){return t.CHM(e),t.oxw(2).destinationServiceMissing=n}),t.TgZ(44,"mat-expansion-panel-header"),t.TgZ(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.qZA(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Tn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel"),t.TgZ(55,"mat-expansion-panel-header"),t.TgZ(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.qZA(),t._UZ(60,"app-managers-page",47),t.qZA(),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,Sn))("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,Cn))("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,An))("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,In))("displayedUserColumns",t.DdM(75,bn))}}function vn(i,a){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,yn,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 xn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Zn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 En(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Dn=(()=>{class i{constructor(e,s,n,o,r,d,S,b,E,y){this.attributesManager=e,this.serviceManager=s,this.facilityService=n,this.cd=o,this.dialog=r,this.notificator=d,this.translate=S,this.router=b,this.guiAuthResolver=E,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.NI(!1,g.kI.requiredTrue),this.attributesControl=new g.NI(!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(j=>this.saveMsg=j),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(j=>this.removeMsg=j)}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(qa,e).afterClosed().subscribe(n=>{n&&(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(d=>s.add(d))}),0===s.size)return;const n=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(d=>d.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(d=>d.id===r.id)<0));for(const r of this.services)n.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(()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},()=>{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(()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const n of e)this.attributesPerService.get(n.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const n of this.attributes)s.has(n.id)&&this.filteredAttributes.push(n)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!(0,Ha.k)(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(n=>{this.services=n}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(n=>{this.servicesPerPackage.set(e[s].id,new Set([...n.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(n=>{n=n.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,n.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(n=>{this.servicesPerPackage.get(n.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(n=>!s.has(n)))}setIntersect(e,s){return new Set([...e].filter(n=>s.has(n)))}setSymDif(e,s){const n=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(n,o),d=this.setDiff(o,n);return new Set([...r,...d])}filterService(e,s){const n=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(d=>n.add(d))}return n}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(n=>n.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let n=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){n=!1;break}n&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(wa,e).afterClosed().subscribe(n=>{n&&(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(Ya,e).afterClosed().subscribe(n=>{n&&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(f.H8),t.Y36(f.KK),t.Y36(f.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(_.V6),t.Y36(h.sK),t.Y36(v.F0),t.Y36(_.x4),t.Y36(_.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(Ga,5),2&e){let n;t.iGM(n=t.CRH())&&(s.stepper=n.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),t.TgZ(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,Ba,2,3,"ng-template",4),t.YNc(8,ja,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,$a,2,3,"ng-template",4),t.YNc(11,za,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,Wa,2,3,"ng-template",4),t.YNc(14,Ka,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,tn,2,3,"ng-template",4),t.YNc(17,nn,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,on,2,3,"ng-template",4),t.YNc(20,cn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,rn,2,3,"ng-template",4),t.YNc(23,un,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,pn,2,3,"ng-template",4),t.YNc(26,vn,4,4,"ng-template",5),t.qZA(),t.qZA(),t.TgZ(27,"div",9),t.TgZ(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,xn,3,3,"button",11),t.YNc(32,Zn,3,7,"button",12),t.YNc(33,En,3,3,"button",13),t.qZA(),t.qZA()),2&e){const n=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!==n&&0!==n.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex!==n.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex===n.steps.length-1)}},directives:[U.Vq,U.C0,U.VY,U.BY,nt,ct,L.w,Z.L,Qa.F,Pa.Q,C.lW,m.O5,Va.J,T.$g,rt.p,at,it,M.pp,M.ib,M.yz,M.yK,N.Hw,V.Q,lt,st.q,et.s],pipes:[h.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})(),dt=(()=>{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})();const Ln=[{path:"",component:_t.P},{path:":facilityId",component:Zt,children:[{path:"",component:Lt,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:Gt,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Rt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:sa._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Ot.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:ia,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:Na,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:le,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:at,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:ct,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Ui,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:kt,children:[{path:"",component:Ut,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:nt,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:it,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:ts,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Ri,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:Dn,canActivate:[dt],canDeactivate:[dt]}]},{path:":facilityId/resources/:resourceId",component:Ft.b,children:[{path:"",component:Nt.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:$t.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:zt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:is.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:aa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:ka.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:Bt.t,children:[{path:"",component:jt.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:es.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Rn=(()=>{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(Ln)],v.Bz]}),i})();var On=c(14264),Fn=c(63189),Nn=c(46142),kn=c(78417);let wn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Q.dp],imports:[[m.ez,Rn,On.m,Fn.r,Oi.ez,Q.d4,Nn.UsersModule,kn.AdminModule]]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/958.4cd11592a5992446.js b/dist/apps/admin-gui/958.4cd11592a5992446.js new file mode 100644 index 000000000..bd8ee06c5 --- /dev/null +++ b/dist/apps/admin-gui/958.4cd11592a5992446.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[958],{12958:(Un,z,c)=>{c.r(z),c.d(z,{FacilitiesModule:()=>Yn});var _=c(69808),y=c(11735),W=c(86353),J=c(36769),ht=c(69024),f=c(32105),p=c(9244),d=c(36908),q=c(16074),ft=c(54037),gt=c(22158),Tt=c(7625),t=c(5e3),u=c(48966),St=c(77968),Ct=c(15003),At=c(4235),T=c(20773),N=c(25245),H=c(29772),C=c(47423),X=c(61283),h=c(51062);function It(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function bt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editFacility()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function vt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteFacility()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}const yt=function(){return{color:"black"}},xt=function(i){return["/facilities",i]};function Zt(i,a){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,bt,3,0,"button",10),t.YNc(11,vt,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.qZA(),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,10,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(16,yt)),t.xp6(4),t.Q6J("routerLink",t.VKq(17,xt,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,12,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,14,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let Et=(()=>{class i extends((0,gt.T)()){constructor(e,s,n,o,r,m,S,b,E){super(),this.dialog=e,this.facilityManager=s,this.route=n,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=m,this.router=S,this.entityStorageService=b,this.reloadEntityDetail=E,this.editFacilityAuth=!1,this.deleteAuth=!1,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 s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(n=>{this.facility=n,this.entityStorageService.setEntity({id:n.id,beanName:n.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:q.Eg.FACILITY},this.dialog.open(q.rd,e).afterClosed().subscribe(n=>{n&&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(ft.Y,e).afterClosed().subscribe(n=>{n&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(y.gz),t.Y36(St.D),t.Y36(ht.V),t.Y36(d.x4),t.Y36(y.F0),t.Y36(d.fb),t.Y36(Ct.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"],["queryParamsHandling","merge",1,"facility-link",3,"routerLink"],[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,It,1,0,"mat-spinner",1),t.YNc(3,Zt,17,19,"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))},directives:[At.W,_.O5,T.$g,N.Hw,H.gM,_.PC,y.yS,C.lW,X.A],pipes:[h.X$],styles:[""],data:{animation:[J.Ji]}}),i})();var K=c(71135);function Dt(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Lt(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 Ot=(()=>{class i{constructor(e,s,n,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,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(f.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,Dt,1,0,"mat-spinner",0),t.YNc(1,Lt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[_.O5,T.$g,K.L],styles:[""]}),i})();var Rt=c(34904),Ft=c(37380),Nt=c(98918),kt=c(4675);let wt=(()=>{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")},directives:[X.A],styles:[""],data:{animation:[J.Ji]}}),i})();function Yt(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ut(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 Mt=(()=>{class i{constructor(e,s,n,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,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"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.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,Yt,1,0,"mat-spinner",0),t.YNc(1,Ut,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[_.O5,T.$g,K.L],styles:[""]}),i})();var k=c(53251),Jt=c(12651),qt=c(19191);function Ht(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function Qt(i,a){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 Pt(i,a){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 Vt(i,a){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 Gt(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Pt,3,6,"ng-template",1),t.YNc(2,Vt,1,3,"ng-template",2),t.qZA())}let Bt=(()=>{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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,Ht,2,3,"ng-template",1),t.YNc(7,Qt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Gt,3,0,"mat-tab",3),t.qZA(),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))},directives:[k.SP,k.uX,k.uD,k.Vc,Jt.t,_.O5,qt.Y],pipes:[h.X$],styles:[""]}),i})();var jt=c(60113),$t=c(16500),zt=c(92090),Wt=c(258),g=c(93075),w=c(1059),Y=c(24850),Q=c(19516),R=c(67322),P=c(98833),tt=c(91079),et=c(90508),D=c(77446),it=c(31359);function Xt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedService(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Kt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",7),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedSerVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.TgZ(5,"mat-option",10),t.NdJ("onSelectionChange",function(){return t.CHM(e),t.oxw(2).onSelectedService("NOT_SELECTED")}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){return t.CHM(e),t.oxw(2).onSelectedService("ALL")}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Xt,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA(),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 te(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedResource(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",12),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedResVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,te,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA(),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 ie(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedGroup(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",12),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedGroupVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,ie,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA(),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 ae(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedMember(o)}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function ne(i,a){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,ae,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA(),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 oe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,Kt,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(n){return t.CHM(e),t.oxw().onOfferAllServices(n)}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,ee,7,9,"mat-form-field",4),t.YNc(6,se,7,9,"mat-form-field",4),t.YNc(7,ne,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 le(i,a){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 ce=(()=>{class i{constructor(e,s,n,o,r,m,S){this.facilityManager=e,this.resourceManager=s,this.serviceManager=n,this.membersManager=o,this.namePipe=r,this.translate=m,this.entityStorageService=S,this.serviceField=new g.NI,this.resourceField=new g.NI,this.groupField=new g.NI,this.memberField=new g.NI,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,w.O)(""),(0,Y.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,w.O)(""),(0,Y.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(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(n=>this.namePipe.transform(n.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.xk),t.Y36(f.KK),t.Y36(f.uq),t.Y36(Q.dp),t.Y36(h.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,oe,8,7,"div",1),t.YNc(5,le,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))},directives:[_.O5,R.KE,P.Nt,g.Fj,tt.ZL,g.JJ,g.oH,tt.XC,et.ey,_.sg,D.oG,_.mk],pipes:[h.X$,_.Ov,it.d],styles:[""]}),i})();var st=c(69815);let at=(()=>{class i{constructor(e,s,n){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=n,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(f.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)},directives:[st.s],styles:[""]}),i})();var x=c(10036),A=c(20449),re=c(89466),ue=c(74107);function pe(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function de(i,a){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 me(i,a){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 _e(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function he(i,a){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 fe(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function ge(i,a){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 Te(i,a){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 Se(i,a){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,ge,3,3,"mat-error",13),t.YNc(3,Te,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 Ce(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw(2).useFacilityHost=n}),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 Ae(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Ie(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,de,3,3,"mat-option",10),t.YNc(8,me,3,3,"mat-option",11),t.YNc(9,_e,2,2,"mat-option",12),t.qZA(),t.YNc(10,he,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){return t.CHM(e),t.oxw().getServices()})("ngModelChange",function(n){return t.CHM(e),t.oxw().servicesOnFacility=n}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field"),t.TgZ(15,"mat-select",15),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw().selectedType=n})("selectionChange",function(){return t.CHM(e),t.oxw().destinationControl.updateValueAndValidity()}),t.ALo(16,"translate"),t.YNc(17,fe,2,2,"mat-option",12),t.qZA(),t.qZA(),t.YNc(18,Se,4,4,"mat-form-field",16),t.YNc(19,Ce,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field"),t.TgZ(21,"mat-select",18),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw().selectedPropagation=n}),t.ALo(22,"translate"),t.YNc(23,Ae,2,2,"mat-option",12),t.qZA(),t.qZA(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA(),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 be=(()=>{class i{constructor(e,s,n,o){this.dialogRef=e,this.data=s,this.facilitiesManager=n,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.NI(void 0,g.kI.required),this.destinationControl=new g.NI("",this.getDestinationValidator()),this.emailControl=new g.NI("",[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(f.IQ),t.Y36(f.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,pe,1,0,"mat-spinner",1),t.YNc(5,Ie,27,30,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,_.O5,T.$g,u.xY,R.KE,ue.gD,g.Q7,g.JJ,g.oH,et.ey,_.sg,R.TO,D.oG,g.On,P.Nt,g.Fj,u.H8,C.lW],pipes:[h.X$],styles:[""],data:{animation:[J.BQ]}}),i})();var L=c(98380),O=c(96214),Z=c(7434),nt=c(70242);function ve(i,a){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 ye(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 xe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ze(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 De(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function Le(i,a){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 ot=(()=>{class i{constructor(e,s,n,o,r,m,S,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=n,this.translate=o,this.notificator=r,this.authResolver=m,this.serviceManager=S,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(be,e).afterClosed().subscribe(n=>{n&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(o=>{this.refreshTable(),this.notificator.showSuccess(o)})})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(re.u,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.blockServiceOnDestination(s.service.id,s.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.unblockServiceOnDestinationById(s.service.id,s.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(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(f.IQ),t.Y36(f.KK),t.Y36(h.sK),t.Y36(d.V6),t.Y36(d.x4),t.Y36(f.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ve,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,ye,3,3,"button",3),t.YNc(7,xe,3,4,"button",4),t.YNc(8,Ze,5,4,"button",5),t.YNc(9,Ee,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,De,1,0,"mat-spinner",7),t.YNc(12,Le,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))},directives:[_.O5,L.w,O.t,C.lW,N.Hw,Z.L,T.$g,nt.q],pipes:[h.X$],styles:[""]}),i})();var V=c(23256);function Oe(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(n){return t.CHM(e),t.oxw().applyFilter(n)}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7),t.TgZ(5,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.qZA(),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 Fe=(()=>{class i{constructor(e,s,n,o,r,m){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=m,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(S=>this.successMessage=S)}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,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe(()=>this.onAdd(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}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(h.sK),t.Y36(f.aC),t.Y36(f.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,Oe,1,0,"mat-spinner",1),t.YNc(5,Re,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))},directives:[u.uh,_.O5,T.$g,Z.L,u.xY,V.Q,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var l=c(32075);function Ne(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ke(i,a){1&i&&t._UZ(0,"th",15)}function we(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 Ye(i,a){1&i&&t._UZ(0,"tr",17)}function Ue(i,a){1&i&&t._UZ(0,"tr",18)}function Me(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,ke,1,0,"th",11),t.YNc(10,we,2,1,"td",12),t.BQk(),t.YNc(11,Ye,1,0,"tr",13),t.YNc(12,Ue,1,0,"tr",14),t.qZA(),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 Je=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"],o.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(m=>this.successMessage=m)}ngOnInit(){this.dataSource=new l.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,0!==this.data.owners.length?this.facilitiesManagerService.removeFacilityOwner(this.data.facilityId,this.data.owners.pop().id).subscribe(()=>this.onSubmit(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(h.sK),t.Y36(f.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,Ne,1,0,"mat-spinner",1),t.YNc(5,Me,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,_.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();function qe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 He(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Qe(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Pe(i,a){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 lt=(()=>{class i{constructor(e,s,n,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=n,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(n=>n.id)},this.dialog.open(Fe,e).afterClosed().subscribe(n=>{n&&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(Je,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.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,qe,3,3,"button",2),t.YNc(5,He,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,Qe,1,0,"mat-spinner",5),t.YNc(8,Pe,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))},directives:[O.t,_.O5,C.lW,Z.L,T.$g,V.Q],pipes:[h.X$],styles:[""]}),i})();var G=c(50301);function Ve(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Ge(i,a){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 Be(i,a){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 je(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"mat-form-field"),t.TgZ(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,Ge,3,3,"mat-error",9),t.YNc(6,Be,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),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 $e=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,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,n]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(n.substring(0,n.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.NI("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const n of e)s=s.concat(this.parseHostName(n));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 n=e.value.split("\n");for(const o of n)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"),n=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let m=0;m{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,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 l.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(f.IQ),t.Y36(d.V6),t.Y36(h.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,ze,1,0,"mat-spinner",1),t.YNc(5,ei,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,_.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var I=c(84847),F=c(18750);function si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",14),t.TgZ(1,"mat-checkbox",15),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ai(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ni(i,a){1&i&&(t.TgZ(0,"th",18),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 oi(i,a){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function li(i,a){1&i&&(t.TgZ(0,"th",18),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 ci(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.hostname)}}function ri(i,a){1&i&&t._UZ(0,"tr",21)}const ct=function(i,a){return["/facilities",i,"hosts",a]};function ui(i,a){if(1&i&&t._UZ(0,"tr",22),2&i){const e=a.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ct,s.facilityId,e.id))("routerLink",s.disableRouting?null:t.WLB(5,ct,s.facilityId,e.id))}}function pi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),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 di(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),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"))}let rt=(()=>{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 l.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:16,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,si,2,3,"th",4),t.YNc(5,ai,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ni,3,3,"th",7),t.YNc(8,oi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,li,3,3,"th",7),t.YNc(11,ci,2,1,"td",10),t.BQk(),t.YNc(12,ri,1,0,"tr",11),t.YNc(13,ui,1,8,"tr",12),t.qZA(),t.qZA(),t.qZA(),t.YNc(14,pi,3,3,"perun-web-apps-alert",13),t.YNc(15,di,3,3,"perun-web-apps-alert",13)),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(10),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,G.YH,y.rH,_.O5,L.w],pipes:[h.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function mi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 _i(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 hi(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function fi(i,a){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 ut=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,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($e,e).afterClosed().subscribe(n=>{n&&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(ii,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.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"),t.TgZ(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,mi,3,3,"button",2),t.YNc(6,_i,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,hi,1,0,"mat-spinner",5),t.YNc(9,fi,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))},directives:[O.t,_.O5,C.lW,Z.L,T.$g,rt],pipes:[h.X$],styles:[""]}),i})();function gi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Ti(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Si(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,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Ci(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.hij(" ",e[1].id," ")}}function Ai(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,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function Ii(i,a){if(1&i&&(t.TgZ(0,"td",21),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[1])," ")}}function bi(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,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function vi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function yi(i,a){1&i&&t._UZ(0,"tr",22)}function xi(i,a){1&i&&t._UZ(0,"tr",23)}function Zi(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,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ei(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,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let Di=(()=>{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 l.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,gi,2,3,"th",4),t.YNc(5,Ti,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Si,3,3,"th",7),t.YNc(8,Ci,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Ai,3,3,"th",7),t.YNc(11,Ii,3,3,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,bi,3,3,"th",7),t.YNc(14,vi,2,1,"td",10),t.BQk(),t.YNc(15,yi,1,0,"tr",12),t.YNc(16,xi,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,Zi,3,3,"perun-web-apps-alert",14),t.YNc(18,Ei,3,3,"perun-web-apps-alert",14)),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(13),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,_.O5,L.w],pipes:[h.X$,it.d],styles:[""]}),i})();function Li(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function Oi(i,a){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 Ri=(()=>{class i{constructor(e,s,n){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=n,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 n of s){let o;this.usersManager.getUserById(n.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([n,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.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"),t.TgZ(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,Li,1,0,"mat-spinner",3),t.YNc(8,Oi,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))},directives:[O.t,Z.L,_.O5,T.$g,Di],pipes:[h.X$],styles:[""]}),i})();var Fi=c(387),Ni=c(61365),ki=c(71103),pt=c(53984);const wi=["list"];function Yi(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Ui(i,a){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 Mi=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.attributesManager=s,this.facilityManager=n,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(q.wA,e).afterClosed().subscribe(n=>{n&&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(n=>{"saved"===n&&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(Ni.k,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.H8),t.Y36(f.IQ),t.Y36(y.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,s){if(1&e&&t.Gf(wi,5),2&e){let n;t.iGM(n=t.CRH())&&(s.list=n.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"),t.TgZ(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,Yi,1,0,"mat-spinner",5),t.YNc(15,Ui,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))},directives:[O.t,C.lW,_.O5,T.$g,pt.p],pipes:[h.X$],styles:[""]}),i})();function Ji(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function qi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Hi(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,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function Qi(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.hij(" ",e.id," ")}}function Pi(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,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function Vi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Gi(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,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function Bi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.description)}}function ji(i,a){1&i&&t._UZ(0,"tr",22)}function $i(i,a){1&i&&t._UZ(0,"tr",23)}function zi(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,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Wi(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,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Xi=(()=>{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 l.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","description"],["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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,Ji,2,3,"th",4),t.YNc(5,qi,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Hi,3,3,"th",7),t.YNc(8,Qi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Pi,3,3,"th",7),t.YNc(11,Vi,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Gi,3,3,"th",7),t.YNc(14,Bi,2,1,"td",10),t.BQk(),t.YNc(15,ji,1,0,"tr",12),t.YNc(16,$i,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,zi,3,3,"perun-web-apps-alert",14),t.YNc(18,Wi,3,3,"perun-web-apps-alert",14)),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(13),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,_.O5,L.w],pipes:[h.X$],styles:[""]}),i})();function Ki(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function ts(i,a){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 es=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,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(f.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"),t.TgZ(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,Ki,1,0,"mat-spinner",3),t.YNc(7,ts,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))},directives:[O.t,Z.L,_.O5,T.$g,Xi],pipes:[h.X$],styles:[""]}),i})();var is=c(20057),ss=c(49546);function as(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ns(i,a){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 os(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 ls(i,a){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 cs(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.destination.destination)}}function rs(i,a){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 us(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function ps(i,a){1&i&&t._UZ(0,"tr",19)}function ds(i,a){1&i&&t._UZ(0,"tr",20)}function ms(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(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,ns,3,3,"th",11),t.YNc(10,os,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,ls,3,3,"th",11),t.YNc(13,cs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,rs,3,3,"th",11),t.YNc(16,us,3,4,"td",12),t.BQk(),t.YNc(17,ps,1,0,"tr",15),t.YNc(18,ds,1,0,"tr",16),t.qZA(),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 dt=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.taskManager=n,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new l.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){if(this.loading=!0,0===this.taskResults.length)return this.dialogRef.close(!0),this.loading=!1,void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"));this.taskManager.deleteTaskResultById({taskResultId:this.taskResults.pop().id}).subscribe(()=>{this.onDelete()},()=>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(f.Ob),t.Y36(d.V6),t.Y36(h.sK))},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,ms,19,9,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,_.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$,_.uU],styles:[""]}),i})();var _s=c(62109);function hs(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function fs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(n){return t.CHM(e),t.oxw(2).change(n)}),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 gs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(n){return t.CHM(e),t.oxw(2).change(n)}),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 Ts(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(n){return t.CHM(e),t.oxw(2).disableCheckboxes(n)}),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 Ss(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(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,gs,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(n){return t.CHM(e),t.oxw().change(n)}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA(),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,Ts,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 Cs=(()=>{class i{constructor(e,s,n,o,r,m,S,b){this.dialogRef=e,this.data=s,this.resourcesManager=n,this.tasksManager=o,this.serviceManager=r,this.translate=m,this.notificator=S,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 l.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=>{e.forEach(s=>{this.tasksManager.deleteTaskResultById({taskResultId:s.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(e=>{e.forEach(s=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,s.destination,s.type).subscribe()})}),this.selected.selected.forEach(e=>{this.resourcesManager.removeService(e.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(s=>{this.notificator.showSuccess(s),this.dialogRef.close(!0)})},()=>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(f.xk),t.Y36(f.Ob),t.Y36(f.KK),t.Y36(h.sK),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,hs,1,0,"mat-spinner",1),t.YNc(5,Ss,18,21,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,_.O5,T.$g,u.xY,D.oG,H.gM,_s.C,u.H8,C.lW],pipes:[h.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function As(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Is(i,a){1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let bs=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.tasksManager=n,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(f.Ob),t.Y36(h.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,As,1,0,"mat-spinner",1),t.YNc(5,Is,4,3,"div",2),t.TgZ(6,"div",3),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,_.O5,T.$g,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var B=c(92181);let vs=(()=>{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 ys(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n&&o.masterToggle(),o.selectionChange.emit()}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function xs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",20),t.TgZ(1,"mat-checkbox",21),t.NdJ("click",function(n){return n.stopPropagation()})("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n&&m.selection.toggle(r),m.selectionChange.emit()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",s.checkboxLabel(e))}}function Zs(i,a){1&i&&(t.TgZ(0,"th",22),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 Es(i,a){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 Ds(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Ls(i,a){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Es,2,1,"div",24),t.YNc(2,Ds,2,0,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function Os(i,a){1&i&&(t.TgZ(0,"th",22),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 Rs(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.Oqu(e.service.name)}}function Fs(i,a){1&i&&(t.TgZ(0,"th",22),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 Ns(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.Oqu(e.status)}}function ks(i,a){1&i&&(t.TgZ(0,"th",22),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 ws(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Ys(i,a){1&i&&(t.TgZ(0,"th",22),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 Us(i,a){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 Ms(i,a){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 Js(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Us,3,4,"div",24),t.YNc(2,Ms,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function qs(i,a){1&i&&(t.TgZ(0,"th",22),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 Hs(i,a){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 Qs(i,a){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 Ps(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Hs,3,4,"div",24),t.YNc(2,Qs,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function Vs(i,a){1&i&&t._UZ(0,"tr",26)}const mt=function(i,a){return["/facilities",i,"services-status",a]};function Gs(i,a){if(1&i&&t._UZ(0,"tr",27),2&i){const e=a.$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,mt,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,mt,e.facility.id,e.taskId))}}function Bs(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",28),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 js(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",28),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"))}let $s=(()=>{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){var n,o;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(null===(n=e.task)||void 0===n?void 0:n.startTime)?(0,_.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return(null===(o=e.task)||void 0===o?void 0:o.endTime)?(0,_.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){var n,o;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(null===(n=e.task)||void 0===n?void 0:n.startTime)?(0,_.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return(null===(o=e.task)||void 0===o?void 0:o.endTime)?(0,_.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 l.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const n=s.trim().toLowerCase(),o=r=>{let m="";return Object.values(r).forEach(S=>{"object"!=typeof S?m=m+" "+String(S):null!==S&&(m=m+" "+o(S))}),m.trim().toLowerCase()};return o(e).includes(n)},this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["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"],["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",""],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,ys,2,3,"th",4),t.YNc(5,xs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Zs,3,3,"th",7),t.YNc(8,Ls,3,2,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Os,3,3,"th",7),t.YNc(11,Rs,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Fs,3,3,"th",7),t.YNc(14,Ns,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ks,3,3,"th",7),t.YNc(17,ws,3,3,"td",10),t.BQk(),t.ynx(18,13),t.YNc(19,Ys,3,3,"th",7),t.YNc(20,Js,3,2,"td",10),t.BQk(),t.ynx(21,14),t.YNc(22,qs,3,3,"th",7),t.YNc(23,Ps,3,2,"td",10),t.BQk(),t.YNc(24,Vs,1,0,"tr",15),t.YNc(25,Gs,1,18,"tr",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(26,Bs,3,3,"perun-web-apps-alert",17),t.YNc(27,js,3,3,"perun-web-apps-alert",17)),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(22),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,_.O5,l.as,l.XQ,l.nj,l.Gk,y.rH,G.YH,L.w],pipes:[h.X$,vs,_.uU],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 zs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ws(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Xs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ks(i,a){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 ta(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 ea(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function ia(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){return t.CHM(e),t.oxw().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 sa=(()=>{class i{constructor(e,s,n,o,r,m,S,b,E){this.tasksManager=e,this.servicesManager=s,this.notificator=n,this.translate=o,this.authResolver=r,this.facilityManager=m,this.resourcesManager=S,this.dialog=b,this.entityStorageService=E,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(v=>this.successFPMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(v=>this.successAllowMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(v=>this.successBlockMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(v=>this.successDeleteMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(v=>this.allreadyDeletedMessage=v)}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(dt,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(bs,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(n=>n.id)).subscribe(n=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:n},this.dialog.open(Cs,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(f.Ob),t.Y36(f.KK),t.Y36(d.V6),t.Y36(h.sK),t.Y36(d.x4),t.Y36(f.IQ),t.Y36(f.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"),t.TgZ(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,zs,3,4,"button",2),t.YNc(6,Ws,3,4,"button",2),t.YNc(7,Xs,3,4,"button",3),t.YNc(8,Ks,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,ta,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.qZA(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,ea,1,0,"mat-spinner",9),t.YNc(17,ia,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))},directives:[O.t,_.O5,C.lW,B.p6,H.gM,B.VK,B.OP,Z.L,T.$g,$s],pipes:[h.X$],styles:[""]}),i})();var aa=c(25610),na=c(76023);function oa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",20),t.TgZ(1,"mat-checkbox",21),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function la(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"mat-checkbox",23),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ca(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function ra(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.Oqu(e.id)}}function ua(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function pa(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.destination.destination," ")}}function da(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function ma(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.destination.type.toUpperCase()," ")}}function _a(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function ha(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.service.name," ")}}function fa(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function ga(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.status," ")}}function Ta(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Sa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ca(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Aa(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.returnCode," ")}}function Ia(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function ba(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function va(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,ba,3,1,"span",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function ya(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,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function xa(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.errorMessage," ")}}function Za(i,a){1&i&&t._UZ(0,"tr",27)}function Ea(i,a){if(1&i&&t._UZ(0,"tr",28),2&i){const e=a.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Da(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),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 La(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),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"))}let Oa=(()=>{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,_.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,_.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 l.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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 n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","time","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","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"],["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),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,oa,2,3,"th",4),t.YNc(5,la,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ca,3,3,"th",7),t.YNc(8,ra,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,ua,3,3,"th",7),t.YNc(11,pa,2,1,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,da,3,3,"th",7),t.YNc(14,ma,2,1,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,_a,3,3,"th",7),t.YNc(17,ha,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,fa,3,3,"th",7),t.YNc(20,ga,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Ta,3,3,"th",7),t.YNc(23,Sa,3,4,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Ca,3,3,"th",7),t.YNc(26,Aa,2,1,"td",8),t.BQk(),t.ynx(27,15),t.YNc(28,Ia,3,3,"th",7),t.YNc(29,va,2,1,"td",8),t.BQk(),t.ynx(30,16),t.YNc(31,ya,3,3,"th",7),t.YNc(32,xa,2,1,"td",8),t.BQk(),t.YNc(33,Za,1,0,"tr",17),t.YNc(34,Ea,1,6,"tr",18),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,Da,3,3,"perun-web-apps-alert",19),t.YNc(36,La,3,3,"perun-web-apps-alert",19)),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(31),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))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,_.sg,l.as,l.XQ,l.nj,l.Gk,_.O5,L.w],pipes:[h.X$,_.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function Ra(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Fa(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function Na(i,a){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 ka=(()=>{class i{constructor(e,s,n,o,r){this.route=e,this.taskManager=s,this.authResolver=n,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(dt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(y.gz),t.Y36(f.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.qZA(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Ra,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,Fa,1,0,"mat-spinner",5),t.YNc(9,Na,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))},directives:[O.t,_.O5,C.lW,Z.L,T.$g,Oa],pipes:[h.X$],styles:[""]}),i})();var wa=c(20872);let Ya=(()=>{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"),t.TgZ(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),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})(),Ua=(()=>{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"),t.TgZ(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),t.TgZ(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(),t.qZA(),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")," "))},directives:[u.uh,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();function Ma(i,a){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 Ja(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).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 qa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDelete()}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ja,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 Ha=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilityService=n,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(f.IQ),t.Y36(d.V6),t.Y36(h.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"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ma,3,3,"div",1),t.YNc(5,qa,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))},directives:[u.uh,_.O5,u.xY,u.H8,C.lW,N.Hw],pipes:[h.X$],styles:[""]}),i})();var Qa=c(66688),U=c(92081),Pa=c(90439),Va=c(60205),Ga=c(30540),M=c(81125);const Ba=["stepper"];function ja(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function $a(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(n){return t.CHM(e),t.oxw().owners=n}),t.qZA()}}function za(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function Wa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(n){return t.CHM(e),t.oxw().hosts=n}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function Xa(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const Ka=function(){return["select","id","name","enabled","description"]};function tn(i,a){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),t.TgZ(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(n){return t.CHM(e),t.oxw().applyFilter(n)}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(n){return t.CHM(e),t.oxw().packagesSelected(n)}),t.qZA(),t.qZA(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){return t.CHM(e),t.oxw().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,Ka))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function en(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function sn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(n){return t.CHM(e),t.oxw(2).filterAttributes(n)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function an(i,a){1&i&&t._UZ(0,"mat-spinner",28)}function nn(i,a){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 on(i,a){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),t.TgZ(7,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemoveAttributes()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSaveAttributes()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,sn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,an,1,0,"mat-spinner",25),t.YNc(15,nn,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 ln(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const cn=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function rn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(n){return t.CHM(e),t.oxw().destinations=n}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,cn))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function un(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function pn(i,a){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function dn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function mn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const _n=function(){return["id","name","contact","type"]};function hn(i,a){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,_n))("owners",e.owners)}}function fn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const gn=function(){return["id","name"]};function Tn(i,a){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,gn))("hosts",e.hosts)}}function Sn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const Cn=function(){return["id","name","enabled","script","description"]},An=function(){return["id","displayName","value","description"]},In=function(){return["destinationId","service","warn","destination","type","propagationType"]},bn=function(){return["id","vo","name","description"]},vn=function(){return["id","name","email","logins","organization"]};function yn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion"),t.TgZ(1,"mat-expansion-panel",34),t.TgZ(2,"mat-expansion-panel-header"),t.TgZ(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,mn,1,0,"mat-spinner",25),t.YNc(11,hn,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34),t.TgZ(13,"mat-expansion-panel-header"),t.TgZ(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,fn,1,0,"mat-spinner",25),t.YNc(22,Tn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34),t.TgZ(24,"mat-expansion-panel-header"),t.TgZ(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA(),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(){return t.CHM(e),t.oxw(2).getNonEmptyAttributes()}),t.TgZ(34,"mat-expansion-panel-header"),t.TgZ(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA(),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(n){return t.CHM(e),t.oxw(2).destinationServiceMissing=n}),t.TgZ(44,"mat-expansion-panel-header"),t.TgZ(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.qZA(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Sn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel"),t.TgZ(55,"mat-expansion-panel-header"),t.TgZ(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.qZA(),t._UZ(60,"app-managers-page",47),t.qZA(),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,Cn))("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,An))("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,In))("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,bn))("displayedUserColumns",t.DdM(75,vn))}}function xn(i,a){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,yn,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,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 En(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Dn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(e),t.oxw().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 Ln=(()=>{class i{constructor(e,s,n,o,r,m,S,b,E,v){this.attributesManager=e,this.serviceManager=s,this.facilityService=n,this.cd=o,this.dialog=r,this.notificator=m,this.translate=S,this.router=b,this.guiAuthResolver=E,this.entityStorageService=v,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.NI(!1,g.kI.requiredTrue),this.attributesControl=new g.NI(!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($=>this.saveMsg=$),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe($=>this.removeMsg=$)}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(Ha,e).afterClosed().subscribe(n=>{n&&(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(m=>s.add(m))}),0===s.size)return;const n=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(m=>m.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(m=>m.id===r.id)<0));for(const r of this.services)n.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(()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},()=>{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(()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const n of e)this.attributesPerService.get(n.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const n of this.attributes)s.has(n.id)&&this.filteredAttributes.push(n)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!(0,Qa.k)(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(n=>{this.services=n}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(n=>{this.servicesPerPackage.set(e[s].id,new Set([...n.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(n=>{n=n.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,n.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(n=>{this.servicesPerPackage.get(n.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(n=>!s.has(n)))}setIntersect(e,s){return new Set([...e].filter(n=>s.has(n)))}setSymDif(e,s){const n=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(n,o),m=this.setDiff(o,n);return new Set([...r,...m])}filterService(e,s){const n=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(m=>n.add(m))}return n}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(n=>n.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let n=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){n=!1;break}n&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ya,e).afterClosed().subscribe(n=>{n&&(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(Ua,e).afterClosed().subscribe(n=>{n&&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(f.H8),t.Y36(f.KK),t.Y36(f.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(d.V6),t.Y36(h.sK),t.Y36(y.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(Ba,5),2&e){let n;t.iGM(n=t.CRH())&&(s.stepper=n.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),t.TgZ(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,ja,2,3,"ng-template",4),t.YNc(8,$a,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,za,2,3,"ng-template",4),t.YNc(11,Wa,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,Xa,2,3,"ng-template",4),t.YNc(14,tn,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,en,2,3,"ng-template",4),t.YNc(17,on,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,ln,2,3,"ng-template",4),t.YNc(20,rn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,un,2,3,"ng-template",4),t.YNc(23,pn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,dn,2,3,"ng-template",4),t.YNc(26,xn,4,4,"ng-template",5),t.qZA(),t.qZA(),t.TgZ(27,"div",9),t.TgZ(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,En,3,7,"button",12),t.YNc(33,Dn,3,3,"button",13),t.qZA(),t.qZA()),2&e){const n=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!==n&&0!==n.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex!==n.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex===n.steps.length-1)}},directives:[U.Vq,U.C0,U.VY,U.BY,lt,ut,L.w,Z.L,Pa.F,Va.Q,C.lW,_.O5,Ga.J,T.$g,pt.p,ot,at,M.pp,M.ib,M.yz,M.yK,N.Hw,V.Q,rt,nt.q,st.s],pipes:[h.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})(),_t=(()=>{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(y.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var j=c(71992);const On=[{path:"",component:W.P,canActivateChild:[j.a],children:[{path:"",component:W.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:Et,canActivateChild:[j.a],children:[{path:"",component:Ot,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:Bt,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Rt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:aa._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Ft.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:sa,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:ka,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:ce,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:ot,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:ut,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Mi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:wt,children:[{path:"",component:Mt,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:lt,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:at,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:es,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Ri,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:Ln,canActivate:[_t],canDeactivate:[_t]}]},{path:":facilityId/resources/:resourceId",component:Nt.b,canActivateChild:[j.a],children:[{path:"",component:kt.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:zt.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:Wt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:ss.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:na.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:wa.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:jt.t,children:[{path:"",component:$t.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:is.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Rn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[y.Bz.forChild(On)],y.Bz]}),i})();var Fn=c(14264),Nn=c(63189),kn=c(46142),wn=c(78417);let Yn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Q.dp],imports:[[_.ez,Rn,Fn.m,Nn.r,Fi.ez,Q.d4,kn.UsersModule,wn.AdminModule]]}),i})()}}]); \ 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 e6bb766b2..cc755cc92 100644 --- a/dist/apps/admin-gui/assets/config/version.json +++ b/dist/apps/admin-gui/assets/config/version.json @@ -1 +1 @@ -{"version":"8.0.0"} +{"version":"8.1.0"} diff --git a/dist/apps/admin-gui/assets/i18n/en.json b/dist/apps/admin-gui/assets/i18n/en.json index a0e434e38..87177c2b6 100644 --- a/dist/apps/admin-gui/assets/i18n/en.json +++ b/dist/apps/admin-gui/assets/i18n/en.json @@ -827,18 +827,15 @@ }, "SERVICE_DETAIL": { "ENTITY": "Service", - "STATUS": "Status", "EVALUATE_CONSENTS": "Evaluate consents", "CONFIRM_DIALOG_TITLE": "Evaluate consents confirmation", "CONFIRM_DIALOG_DESCRIPTION": "Are you sure you want to evaluate consents for this service?", "EVALUATION_FINISH": "Consents evaluation completed", "STATUS_CHANGE_SUCCESS": "Service status was successfully changed", - "ENABLED": "Enabled", - "DISABLED": "Disabled", - "EXPIRED_MEMBERS": "Expired members", - "PROPAGATED": "Propagated", - "NOT_PROPAGATED": "Not propagated", + "PROPAGATION_CHANGE_SUCCESS": "Service propagation of expired members was successfully changed", "DESCRIPTION": "Description", + "ENABLE": "Enable service", + "PROPAGATE": "Propagate expired members", "REQUIRED_ATTRIBUTES": { "TITLE": "Required attributes", "ADD": "Add", @@ -1118,20 +1115,19 @@ "DESCRIPTION": "Search user by name, login or email", "SEARCH": "Search", "CANCEL": "Cancel", + "CLOSE": "Close", "CREATE": "Add", "INVITE": "Invite", "INVITE_IN_LANGUAGE": "Send invitation in", "LANGUAGE": "language", - "SUCCESS": "Selected members were added", + "SUCCESS_ADD": "Selected members were added", "SUCCESS_INVITE": "Invites were sent to given users", - "ERROR_ADD": "There was an error while adding members", - "ERROR_INVITE": "There was an error while inviting members" , - "ERROR_ADD_DESC": "Failed to add following users: \n", - "ERROR_INVITE_DESC": "Failed to invite following users: \n", - "VALIDATION_SUCCESS": "Member validation was successful", "NO_USERS_FOUND": "No users found", "ADD_MEMBER_PERMISSION_TOOLTIP": "You don't have permission to add a member", - "EMPTY_SEARCH_MESSAGE": "The search field cannot be empty" + "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" }, "ADD_GROUPS": { "TITLE": "Add group", @@ -1357,6 +1353,10 @@ "SENDING_ENABLED_DESCRIPTION": "If checked, a notification will be sent. Un-check it to temporarily disable sending.", "LANG_EN": "Language: en", "LANG_CS": "Language: cz", + "FORMAT_INFO": "
  • when the HTML notification is filled then this one will be sent to a user
    • the plain text will be used as an alternative for the email clients that do not support HTML in email
  • don't forget to change both (HTML + plain text) formats when updating some of the formats
", + "FORMAT_INFO_NOT_AUTHORIZED": "You are not authorized to create HTML notification, so you can create just plain text notification.", + "FORMAT_HTML": "HTML", + "FORMAT_PLAIN_TEXT": "Plain text", "AVAILABLE_TAGS": "Available tags", "SUBJECT": "Subject", "TEXT": "Text", @@ -2195,7 +2195,8 @@ "NO_MEMBERS_ALERT": "No members present", "NO_FILTER_RESULTS_ALERT": "No members are matching your query", "INDIRECT_MEMBER": "Indirect member", - "CHECKBOX_TOOLTIP": "Indirect members cannot be removed" + "CHECKBOX_TOOLTIP_INDIRECT": "Indirect members cannot be removed", + "CHECKBOX_TOOLTIP_UNALTERABLE": "Members from member organizations cannot be directly removed" }, "MEMBERS_CANDIDATES_LIST": { "STATUS": "Status", diff --git a/dist/apps/admin-gui/index.html b/dist/apps/admin-gui/index.html index bacbab5d1..4b033cd64 100644 --- a/dist/apps/admin-gui/index.html +++ b/dist/apps/admin-gui/index.html @@ -6,7 +6,7 @@ - + @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/admin-gui/main.61ec8808104c05a4.js b/dist/apps/admin-gui/main.61ec8808104c05a4.js new file mode 100644 index 000000000..786acabe5 --- /dev/null +++ b/dist/apps/admin-gui/main.61ec8808104c05a4.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:($e,_e,p)=>{"use strict";p.d(_e,{g:()=>nt});var e=p(32105),b=p(10036),_=p(5e3),w=p(53251),g=p(69808),A=p(9244),E=p(42377),C=p(64901),I=p(47423),P=p(29772),m=p(25245),L=p(51062);function O(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"div",6),_.TgZ(1,"div",7),_.TgZ(2,"perun-web-apps-entity-search-select",8),_.NdJ("entitySelected",function(D){return _.CHM(z).$implicit[0]=D.namespace+":"+D.friendlyName}),_.ALo(3,"translate"),_.ALo(4,"translate"),_.ALo(5,"translate"),_.qZA(),_.qZA(),_.TgZ(6,"div",9),_.TgZ(7,"perun-web-apps-debounce-filter",10),_.NdJ("filter",function(D){return _.CHM(z).$implicit[1]=D}),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"button",12),_.NdJ("click",function(){const H=_.CHM(z).$implicit;return _.oxw(2).removeOption(H)}),_.ALo(10,"translate"),_.TgZ(11,"mat-icon"),_._uU(12,"clear"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&Ve){const z=_.oxw(2);_.xp6(2),_.Q6J("entities",z.availableAttrDefs)("searchFunction",z.nameFunction)("mainTextFunction",z.nameFunction)("secondaryTextFunction",z.secondaryTextFunction)("selectPlaceholder",_.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",_.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",_.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),_.xp6(5),_.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),_.xp6(2),_.s9C("matTooltip",_.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),_.Q6J("disabled",1===z.options.length)}}function G(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"div",1),_.YNc(1,O,13,18,"div",2),_.TgZ(2,"button",3),_.NdJ("click",function(){return _.CHM(z),_.oxw().addOption()}),_._uU(3),_.ALo(4,"translate"),_.qZA(),_.TgZ(5,"span",4),_.ALo(6,"translate"),_.TgZ(7,"button",5),_.NdJ("click",function(){return _.CHM(z),_.oxw().searchEntities()}),_.TgZ(8,"mat-icon"),_._uU(9,"search"),_.qZA(),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.qZA(),_.qZA()}if(2&Ve){const z=_.oxw();_.xp6(1),_.Q6J("ngForOf",z.options),_.xp6(2),_.hij(" ",_.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),_.Q6J("matTooltipDisabled",!z.emptySearchString()),_.xp6(2),_.Q6J("disabled",z.emptySearchString()),_.xp6(3),_.hij(" ",_.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let ne=(()=>{class Ve{constructor(){this.attributeSelected=new _.vpe,this.search=new _.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=z=>z.displayName,this.secondaryTextFunction=z=>"#"+String(z.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(z=>z.entity===this.attributesForEntity).sort(A.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(z){this.options=this.options.filter(Q=>Q!==z)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(z=>0===z[1].length)}searchEntities(){const z={};this.options.forEach(Q=>{z[Q[0]]=Q[1]}),this.search.emit(z)}}return Ve.\u0275fac=function(z){return new(z||Ve)},Ve.\u0275cmp=_.Xpm({type:Ve,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[_.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"],["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(z,Q){1&z&&_.YNc(0,G,12,12,"div",0),2&z&&_.Q6J("ngIf",void 0!==Q.options)},directives:[g.O5,g.sg,E.i,C.P,I.lW,P.gM,m.Hw],pipes:[L.X$],styles:[""]}),Ve})();var ge=p(64877),J=p(62707),Me=p(38383),oe=p(74010),Re=p(62109),T=p(20773);function j(Ve,X){1&Ve&&(_._uU(0),_.ALo(1,"translate")),2&Ve&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function Y(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(D){return _.CHM(z),_.oxw(2).searchEntities(D,"user")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","user")}}const q=function(){return["user","id","name"]};function te(Ve,X){if(1&Ve&&_._UZ(0,"app-users-list",9),2&Ve){const z=_.oxw(2);_.Q6J("tableId",z.tableId)("displayedColumns",_.DdM(3,q))("users",z.entities)}}function ue(Ve,X){if(1&Ve&&(_.YNc(0,Y,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,te,1,4,"app-users-list",7)),2&Ve){const z=_.oxw();_.Q6J("ngIf",!z.loading),_.xp6(1),_.Q6J("ngIf",!z.loadingEntityData)}}function de(Ve,X){1&Ve&&(_._uU(0),_.ALo(1,"translate")),2&Ve&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function Le(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-vo-search-select",13),_.NdJ("voSelected",function(D){return _.CHM(z),_.oxw(2).voSelected(D)}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("vos",z.vos)}}function Ue(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(D){return _.CHM(z),_.oxw(2).searchEntities(D,"member")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","user")}}const ze=function(){return["id","voId","userId","status"]};function le(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-members-list",14),_.NdJ("updateTable",function(){_.CHM(z);const D=_.oxw(2);return D.searchEntities(D.searchInput,"member")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("tableId",z.tableId)("displayedColumns",_.DdM(4,ze))("disableExpirationChange",!0)("members",z.entities)}}function je(Ve,X){if(1&Ve&&(_.TgZ(0,"div",10),_.YNc(1,Le,1,1,"perun-web-apps-vo-search-select",11),_.qZA(),_.YNc(2,Ue,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(3,le,1,5,"perun-web-apps-members-list",12)),2&Ve){const z=_.oxw();_.xp6(1),_.Q6J("ngIf",z.vos.length>0),_.xp6(1),_.Q6J("ngIf",!z.loading),_.xp6(1),_.Q6J("ngIf",!z.loadingEntityData)}}function ye(Ve,X){1&Ve&&(_._uU(0),_.ALo(1,"translate")),2&Ve&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function Be(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(D){return _.CHM(z),_.oxw(2).searchEntities(D,"facility")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","facility")}}const W=function(){return["id","name","description"]};function R(Ve,X){if(1&Ve&&_._UZ(0,"perun-web-apps-facilities-list",16),2&Ve){const z=_.oxw(2);_.Q6J("tableId",z.tableId)("displayedColumns",_.DdM(3,W))("facilities",z.entities)}}function me(Ve,X){if(1&Ve&&(_.YNc(0,Be,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,R,1,4,"perun-web-apps-facilities-list",15)),2&Ve){const z=_.oxw();_.Q6J("ngIf",!z.loading),_.xp6(1),_.Q6J("ngIf",!z.loadingEntityData)}}function be(Ve,X){1&Ve&&(_._uU(0),_.ALo(1,"translate")),2&Ve&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function Ie(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(D){return _.CHM(z),_.oxw(2).searchEntities(D,"resource")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","resource")}}const pe=function(){return["id","name","description","voId","facilityId"]};function Se(Ve,X){if(1&Ve&&_._UZ(0,"perun-web-apps-resources-list",18),2&Ve){const z=_.oxw(2);_.Q6J("tableId",z.tableId)("displayedColumns",_.DdM(3,pe))("resources",z.entities)}}function Xe(Ve,X){if(1&Ve&&(_.YNc(0,Ie,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,Se,1,4,"perun-web-apps-resources-list",17)),2&Ve){const z=_.oxw();_.Q6J("ngIf",!z.loading),_.xp6(1),_.Q6J("ngIf",!z.loadingEntityData)}}function Je(Ve,X){1&Ve&&_._UZ(0,"mat-spinner",19)}let nt=(()=>{class Ve{constructor(z,Q,D){this.attributesManager=z,this.searcher=Q,this.voService=D,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=b.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(z=>{this.allAttrDefinitions=z,this.loading=!1})}tabChanged(z){switch(this.entities=[],z){case 0:this.tableId=b.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=b.FF;break;case 2:this.tableId=b.$I;break;case 3:this.tableId=b.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(z=>{this.vos=z,this.selectedVo=z[0],this.loadingEntityData=!1})}voSelected(z){void 0!==z&&(this.selectedVo=z)}searchEntities(z,Q){switch(this.searchInput=z,this.loadingEntityData=!0,Q){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(z=>{this.entities=z,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z.map(Q=>({facility:Q})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z,this.loadingEntityData=!1})}}return Ve.id="AdminSearcherComponent",Ve.\u0275fac=function(z){return new(z||Ve)(_.Y36(e.H8),_.Y36(e.t7),_.Y36(e.YF))},Ve.\u0275cmp=_.Xpm({type:Ve,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(z,Q){2&z&&_.ekj("router-component",Q.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","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","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(z,Q){1&z&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"mat-tab-group",1),_.NdJ("selectedIndexChange",function(H){return Q.tabChanged(H)}),_.TgZ(4,"mat-tab",2),_.YNc(5,j,2,3,"ng-template",3),_.YNc(6,ue,2,2,"ng-template",4),_.qZA(),_.TgZ(7,"mat-tab"),_.YNc(8,de,2,3,"ng-template",3),_.YNc(9,je,4,3,"ng-template",4),_.qZA(),_.TgZ(10,"mat-tab"),_.YNc(11,ye,2,3,"ng-template",3),_.YNc(12,me,2,2,"ng-template",4),_.qZA(),_.TgZ(13,"mat-tab"),_.YNc(14,be,2,3,"ng-template",3),_.YNc(15,Xe,2,2,"ng-template",4),_.qZA(),_.qZA(),_.YNc(16,Je,1,0,"mat-spinner",5)),2&z&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),_.xp6(15),_.Q6J("ngIf",Q.loading||Q.loadingEntityData))},directives:[w.SP,w.uX,w.uD,w.Vc,g.O5,ne,ge.C,J.M,Me.O,oe.X,Re.C,T.$g],pipes:[L.X$],styles:[""]}),Ve})()},80774:($e,_e,p)=>{"use strict";p.d(_e,{F:()=>T});var e=p(20449),b=p(32105),_=p(10036),w=p(9244),g=p(40009),A=p(90719),E=p(36908),C=p(5e3),I=p(48966),P=p(96214),m=p(69808),L=p(47423),O=p(7434),G=p(20773),ne=p(60205),ge=p(51062);function J(j,Y){if(1&j){const q=C.EpF();C.TgZ(0,"button",7),C.NdJ("click",function(){return C.CHM(q),C.oxw().createService()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function Me(j,Y){if(1&j){const q=C.EpF();C.TgZ(0,"button",8),C.NdJ("click",function(){return C.CHM(q),C.oxw().deleteService()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}if(2&j){const q=C.oxw();C.Q6J("disabled",0===q.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function oe(j,Y){1&j&&C._UZ(0,"mat-spinner",9)}function Re(j,Y){if(1&j&&C._UZ(0,"app-services-list",10),2&j){const q=C.oxw();C.Q6J("filterValue",q.filterValue)("selection",q.selection)("services",q.services)("tableId",q.tableId)}}let T=(()=>{class j{constructor(q,te,ue){this.serviceManager=q,this.dialog=te,this.authResolver=ue,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=_.NL}ngOnInit(){this.serviceManager.getServices().subscribe(q=>{this.services=q,this.refreshTable()})}createService(){const q=(0,w.kZ)();q.width="600px",q.data={theme:"admin-theme"},this.dialog.open(g.R,q).afterClosed().subscribe(ue=>{ue&&this.refreshTable()})}deleteService(){const q=(0,w.kZ)();q.width="600px",q.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(A.m,q).afterClosed().subscribe(ue=>{ue&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(q=>{this.services=q,this.selection.clear(),this.loading=!1})}applyFilter(q){this.filterValue=q}}return j.id="AdminServicesComponent",j.\u0275fac=function(q){return new(q||j)(C.Y36(b.KK),C.Y36(I.uw),C.Y36(E.x4))},j.\u0275cmp=C.Xpm({type:j,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","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","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(q,te){1&q&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return te.refreshTable()}),C.qZA(),C.YNc(5,J,3,3,"button",2),C.YNc(6,Me,3,4,"button",3),C.TgZ(7,"perun-web-apps-immediate-filter",4),C.NdJ("filter",function(de){return te.applyFilter(de)}),C.qZA(),C.YNc(8,oe,1,0,"mat-spinner",5),C.YNc(9,Re,1,4,"app-services-list",6),C.qZA()),2&q&&(C.xp6(2),C.Oqu(C.lcZ(3,6,"ADMIN.SERVICES.TITLE")),C.xp6(3),C.Q6J("ngIf",te.authResolver.isPerunAdmin()),C.xp6(1),C.Q6J("ngIf",te.authResolver.isPerunAdmin()),C.xp6(1),C.Q6J("placeholder","ADMIN.SERVICES.FILTER"),C.xp6(1),C.Q6J("ngIf",te.loading),C.xp6(1),C.Q6J("ngIf",!te.loading))},directives:[P.t,m.O5,L.lW,O.L,G.$g,ne.Q],pipes:[ge.X$],styles:[""]}),j})()},25828:($e,_e,p)=>{"use strict";p.d(_e,{t:()=>P});var e=p(10036),b=p(64080),_=p(36908),w=p(5e3),g=p(64901),A=p(77446),E=p(88561),C=p(51062);const I=function(){return["user","id","name","email","logins","organization"]};let P=(()=>{class m{constructor(O){this.storeService=O,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[]}ngOnInit(){this.attributes=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(O){this.searchString=O}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}}return m.id="AdminUsersComponent",m.\u0275fac=function(O){return new(O||m)(w.Y36(_.d6))},m.\u0275cmp=w.Xpm({type:m,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(O,G){2&O&&w.ekj("router-component",G.true)},decls:8,vars:16,consts:[[1,"page-subtitle"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo"]],template:function(O,G){1&O&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"perun-web-apps-debounce-filter",1),w.NdJ("filter",function(ge){return G.onSearchByString(ge)}),w.qZA(),w.TgZ(4,"mat-checkbox",2),w.NdJ("change",function(){return G.findUsersWithoutVO()}),w._uU(5),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"perun-web-apps-users-dynamic-list",3)),2&O&&(w.xp6(1),w.Oqu(w.lcZ(2,11,"ADMIN.USERS.TITLE")),w.xp6(2),w.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),w.xp6(1),w.Q6J("checked",G.usersWithoutVo),w.xp6(1),w.hij(" ",w.lcZ(6,13,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),w.xp6(2),w.Q6J("disableRouting",!1)("searchString",G.searchString)("attrNames",G.attributes)("displayedColumns",w.DdM(15,I))("tableId",G.tableId)("withoutVo",G.usersWithoutVo))},directives:[g.P,A.oG,E.M],pipes:[C.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),m})()},72077:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>Y});var e=p(36908),b=p(61715),_=p(40520),w=p(9244),g=p(5e3),A=p(48966),E=p(47423),C=p(51062);let I=(()=>{class q{constructor(ue){this.dialogRef=ue}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return q.\u0275fac=function(ue){return new(ue||q)(g.Y36(A.so))},q.\u0275cmp=g.Xpm({type:q,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(ue,de){1&ue&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g.TgZ(4,"div",2),g.TgZ(5,"p"),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.qZA(),g.TgZ(8,"div",3),g.TgZ(9,"button",4),g.NdJ("click",function(){return de.onClose()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",5),g.NdJ("click",function(){return de.onReload()}),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.qZA(),g.qZA()),2&ue&&(g.xp6(1),g.Oqu(g.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),g.xp6(5),g.hij(" ",g.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),g.xp6(4),g.hij(" ",g.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),g.xp6(3),g.hij(" ",g.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[A.uh,A.xY,A.H8,E.lW],pipes:[C.X$],styles:[""]}),q})();var P=p(11735),m=p(92198);let L=(()=>{class q{constructor(ue,de){this.router=ue,this.routeReuseStrategy=de;const Le=de;ue.events.subscribe(Ue=>{Ue instanceof P.OD&&Le.setLastNavigationType("popstate"===Ue.navigationTrigger?"back":"direct")})}init(){}}return q.\u0275fac=function(ue){return new(ue||q)(g.LFG(P.F0),g.LFG(P.wN))},q.\u0275prov=g.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const O=["footer"];function G(q,te){if(1&q&&(g.TgZ(0,"div",3),g.TgZ(1,"mat-icon"),g._uU(2,"alert"),g.qZA(),g._uU(3),g.qZA()),2&q){const ue=g.oxw();g.xp6(3),g.hij(" ",ue.warningMessage,"\n")}}const ne=function(q,te){return{top:q,background:te}},ge=function(q,te){return{"margin-top":q,"min-height":te}},J=function(q){return{"border-color":q}},Me=function(q){return{background:q}},oe=function(q){return{"background-color":q}},Re=function(q){return{"min-height":q}};function T(q,te){if(1&q&&(g._UZ(0,"app-perun-nav-menu",4),g.TgZ(1,"mat-sidenav-container",5),g.TgZ(2,"mat-sidenav",6,7),g.TgZ(4,"perfect-scrollbar",8),g._UZ(5,"app-side-menu",9),g.qZA(),g.qZA(),g.TgZ(6,"mat-sidenav-content",10),g.TgZ(7,"div",11),g._UZ(8,"router-outlet"),g.qZA(),g.TgZ(9,"div",null,12),g._UZ(11,"perun-web-apps-footer"),g.qZA(),g.qZA(),g.qZA()),2&q){const ue=g.MAs(3),de=g.oxw();g.Q6J("principal",de.principal)("ngStyle",g.WLB(14,ne,de.getNavMenuTop(),de.navBackgroundColor))("sideNav",ue),g.xp6(1),g.Q6J("ngStyle",g.WLB(17,ge,de.getSideNavMarginTop(),de.getSideNavMinHeight())),g.xp6(1),g.Q6J("fixedInViewport",!0)("mode",de.sidebarMode)("fixedTopGap",de.getTopGap())("ngStyle",g.VKq(20,J,de.sideBarBorderColor))("opened",!de.isMobile()),g.xp6(2),g.Q6J("ngStyle",g.VKq(22,Me,de.sideMenubackgroundColor))("scrollIndicators",!0),g.xp6(1),g.Q6J("sideNav",ue),g.xp6(1),g.Q6J("ngStyle",g.VKq(24,oe,de.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(26,Re,de.contentInnerMinHeight))}}function j(q,te){1&q&&g._UZ(0,"perun-web-apps-login-screen-base",13),2&q&&g.Q6J("application","admin-gui")}let Y=(()=>{class q{constructor(ue,de,Le,Ue,ze,le,je){this.cache=ue,this.store=de,this.http=Le,this.dialog=Ue,this.router=ze,this.initAuth=le,this.cd=je,this.sidebarMode="side",this.navBackgroundColor=this.store.get("theme","nav_bg_color"),this.sideBarBorderColor=this.store.get("theme","sidemenu_border_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.sideMenubackgroundColor=this.store.get("theme","sidemenu_bg_color"),this.displayWarning=this.store.get("display_warning"),this.warningMessage=this.store.get("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}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}isMobile(){return window.innerWidth<=q.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,b.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,m.h)(ue=>ue instanceof P.OD)).subscribe(ue=>{this.updateInitAccessedPage(ue)})}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(){var ue,de,Le,Ue;const ze=null!==(Ue=null===(Le=null===(de=null===(ue=this.footer)||void 0===ue?void 0:ue.nativeElement)||void 0===de?void 0:de.offsetHeight)||void 0===Le?void 0:Le.toString())&&void 0!==Ue?Ue:"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+ze+"px - 112px)":"calc(100vh - "+ze+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(ue){ue.url===sessionStorage.getItem("initPage")?("imperative"===ue.navigationTrigger&&ue.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===ue.navigationTrigger&&(ue.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(ue.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const ue=new _.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:ue}).subscribe(de=>{const Le=de.version;if(Le)if(this.version&&"SNAPSHOT"!==Le&&this.version!==Le){const Ue=(0,w.kZ)();this.dialog.open(I,Ue)}else this.version=Le})}}return q.minWidth=992,q.\u0275fac=function(ue){return new(ue||q)(g.Y36(L),g.Y36(e.d6),g.Y36(_.eN),g.Y36(A.uw),g.Y36(P.F0),g.Y36(e.v0),g.Y36(g.sBO))},q.\u0275cmp=g.Xpm({type:q,selectors:[["app-root"]],viewQuery:function(ue,de){if(1&ue&&g.Gf(O,5),2&ue){let Le;g.iGM(Le=g.CRH())&&(de.footer=Le.first)}},hostBindings:function(ue,de){1&ue&&g.NdJ("resize",function(Ue){return de.getScreenSize(Ue)},!1,g.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,"principal","ngStyle","sideNav"],[3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(ue,de){1&ue&&(g.YNc(0,G,4,1,"div",0),g._UZ(1,"perun-web-apps-notificator",1),g.YNc(2,T,12,28,"ng-template",2),g.YNc(3,j,1,1,"ng-template",2)),2&ue&&(g.Q6J("ngIf",de.displayWarning),g.xp6(1),g.Q6J("displayWarning",de.displayWarning),g.xp6(1),g.Q6J("ngIf",!de.isLoginScreenShow&&!de.isServiceAccess&&!de.isServiceLogin()),g.xp6(1),g.Q6J("ngIf",de.isLoginScreenShow||de.isServiceAccess||de.isServiceLogin()))},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}"]}),q})()},77968:($e,_e,p)=>{"use strict";p.d(_e,{D:()=>b});var e=p(5e3);let b=(()=>{class _{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(g){this.homeItemsChange.emit(g)}setAccessMenuItems(g){this.accessItemsChange.emit(g)}setFacilityMenuItems(g){this.facilityItemsChange.emit(g)}setAdminItems(g){this.adminItemsChange.emit(g)}setUserItems(g){this.userItemsChange.emit(g)}reset(){this.resetChange.emit()}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()},37380:($e,_e,p)=>{"use strict";p.d(_e,{o:()=>Me});var e=p(32105),b=p(10036),_=p(36908),w=p(5e3),g=p(96214),A=p(67322),E=p(74107),C=p(90508),I=p(69808),P=p(7434),m=p(20773),L=p(24179),O=p(51062);function G(oe,Re){if(1&oe&&(w.TgZ(0,"mat-option",9),w._uU(1),w.qZA()),2&oe){const T=Re.$implicit;w.Q6J("value",T.id),w.xp6(1),w.hij(" ",T.name," ")}}function ne(oe,Re){1&oe&&w._UZ(0,"mat-spinner",10)}const ge=function(){return["id","vo","name","description"]};function J(oe,Re){if(1&oe&&w._UZ(0,"perun-web-apps-groups-list",11),2&oe){const T=w.oxw();w.Q6J("displayedColumns",w.DdM(6,ge))("groups",T.groupsToShow)("disableMembers",!1)("filter",T.filterValue)("groupsToDisableRouting",T.groupsWithoutRouteAuth)("tableId",T.tableId)}}let Me=(()=>{class oe{constructor(T,j,Y){this.facilityManager=T,this.authResolver=j,this.entityStorageService=Y,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=b.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.vos.forEach(T=>{this.facilityManager.getAllowedGroups(this.facility.id,T.id).subscribe(j=>{this.groups=this.groups.concat(j),this.groupsToShow=this.groups,this.setAuthRights(T,j),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(T,j){j.forEach(Y=>{this.authResolver.isAuthorized("getGroupById_int_policy",[T,Y])||this.groupsWithoutRouteAuth.add(Y.id)})}applyFilter(T){this.filterValue=T}}return oe.id="FacilityAllowedGroupsComponent",oe.\u0275fac=function(T){return new(T||oe)(w.Y36(e.IQ),w.Y36(_.x4),w.Y36(_.fb))},oe.\u0275cmp=w.Xpm({type:oe,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(T,j){2&T&&w.ekj("router-component",j.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,j){1&T&&(w.TgZ(0,"div"),w.TgZ(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 j.refreshTable()}),w.qZA(),w.TgZ(5,"mat-form-field",2),w.TgZ(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-select",3),w.NdJ("selectionChange",function(){return j.showGroup()})("valueChange",function(q){return j.selected=q}),w.TgZ(10,"mat-option",4),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.YNc(13,G,2,2,"mat-option",5),w.qZA(),w.qZA(),w.TgZ(14,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(q){return j.applyFilter(q)}),w.qZA(),w.YNc(15,ne,1,0,"mat-spinner",7),w.YNc(16,J,1,7,"perun-web-apps-groups-list",8),w.qZA()),2&T&&(w.xp6(2),w.Oqu(w.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),w.xp6(5),w.Oqu(w.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),w.xp6(2),w.Q6J("value",j.selected),w.xp6(2),w.Oqu(w.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),w.xp6(2),w.Q6J("ngForOf",j.vos),w.xp6(1),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),w.xp6(1),w.Q6J("ngIf",j.loading),w.xp6(1),w.Q6J("ngIf",!j.loading))},directives:[g.t,A.KE,A.hX,E.gD,C.ey,I.sg,P.L,I.O5,m.$g,L.W],pipes:[O.X$],styles:[""]}),oe})()},25610:($e,_e,p)=>{"use strict";p.d(_e,{_:()=>q});var e=p(10036),b=p(32105),_=p(36908),w=p(64080),g=p(5e3),A=p(96214),E=p(64901),C=p(47423),I=p(25245),P=p(51062);let m=(()=>{class te{constructor(){this.changeAdvancedFilter=new g.vpe,this.clearFilters=new g.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return te.\u0275fac=function(de){return new(de||te)},te.\u0275cmp=g.Xpm({type:te,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(de,Le){1&de&&(g.TgZ(0,"button",0),g.NdJ("click",function(){return Le.toggleAdvancedFilter()}),g.TgZ(1,"mat-icon"),g._uU(2,"filter_list"),g.qZA(),g._uU(3),g.ALo(4,"translate"),g.TgZ(5,"mat-icon"),g._uU(6),g.qZA(),g.qZA(),g.TgZ(7,"button",0),g.NdJ("click",function(){return Le.clearFilters.emit()}),g.TgZ(8,"mat-icon"),g._uU(9,"filter_list_off"),g.qZA(),g._uU(10),g.ALo(11,"translate"),g.qZA()),2&de&&(g.Gre("mr-2 ",Le.filtersCount?"grey":"no-color",""),g.xp6(3),g.AsE(" ",g.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Le.filtersCount?"("+Le.filtersCount+")":null," "),g.xp6(3),g.Oqu(Le.advancedFilter?"arrow_drop_up":"arrow_drop_down"),g.xp6(4),g.hij(" ",g.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},directives:[C.lW,I.Hw],pipes:[P.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),te})();var L=p(69808),O=p(32368),G=p(93075),ne=p(62707),ge=p(45703),J=p(30540),Me=p(20773),oe=p(88561);function Re(te,ue){if(1&te){const de=g.EpF();g.TgZ(0,"div",8),g.TgZ(1,"div",9),g.TgZ(2,"mat-slide-toggle",10),g.NdJ("ngModelChange",function(Ue){return g.CHM(de),g.oxw().allowed=Ue})("change",function(){return g.CHM(de),g.oxw().changeFilter()}),g._uU(3),g.ALo(4,"translate"),g.qZA(),g.TgZ(5,"span",11),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.qZA(),g.TgZ(8,"div",1),g.TgZ(9,"perun-web-apps-vo-search-select",12),g.NdJ("voSelected",function(Ue){return g.CHM(de),g.oxw().voSelected(Ue)}),g.qZA(),g.TgZ(10,"perun-web-apps-resource-search-select",13),g.NdJ("resourceSelected",function(Ue){return g.CHM(de),g.oxw().resourceSelected(Ue)}),g.qZA(),g.TgZ(11,"perun-web-apps-service-search-select",14),g.NdJ("serviceSelected",function(Ue){return g.CHM(de),g.oxw().serviceSelected(Ue)}),g.qZA(),g.qZA(),g.qZA()}if(2&te){const de=g.oxw();g.xp6(2),g.Q6J("ngModel",de.allowed),g.xp6(1),g.hij(" ",g.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),g.xp6(3),g.Oqu(g.lcZ(7,12,de.toggle_messages[de.allowed?1:0])),g.xp6(3),g.Q6J("vos",de.vos)("vo",de.selectedVo),g.xp6(1),g.Q6J("resources",de.filteredResources)("displayStatus",!1)("resource",de.selectedResource),g.xp6(1),g.Q6J("services",de.filteredServices)("service",de.selectedService)}}function T(te,ue){1&te&&g._UZ(0,"mat-spinner",15)}const j=function(){return["id","name","email","logins","organization"]};function Y(te,ue){if(1&te&&g._UZ(0,"perun-web-apps-users-dynamic-list",16),2&te){const de=g.oxw();g.Q6J("attrNames",de.attributes)("disableRouting",!de.routeAuth)("displayedColumns",g.DdM(10,j))("onlyAllowed",de.allowed)("facilityId",de.facility.id)("searchString",de.filterValue)("resourceId",-1===de.selectedResource.id?null:de.selectedResource.id)("serviceId",-1===de.selectedService.id?null:de.selectedService.id)("tableId",de.tableId)("voId",-1===de.selectedVo.id?null:de.selectedVo.id)}}let q=(()=>{class te{constructor(de,Le,Ue,ze,le,je){this.facilityService=de,this.serviceService=Le,this.resourceService=Ue,this.authResolver=ze,this.storeService=le,this.entityStorageService=je,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.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.attributes=[w.r.USER_DEF_ORGANIZATION,w.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),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)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(de=>{this.resources=[this.emptyResource].concat(de),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Le=>{this.vos=[this.emptyVo].concat(Le),this.services=[],this.getAssignedServices(this.resources,this.resources.length-1)},()=>this.loading=!1)},()=>this.loading=!1)}getAssignedServices(de,Le){if(0===Le)return this.services=[this.emptyService].concat(this.services),this.filteredServices=this.services,this.changeFilter(),void(this.loading=!1);this.resourceService.getAssignedServicesToResource(de[Le].id).subscribe(Ue=>{this.services=this.services.concat(Ue),this.resourceAssignedServices.set(de[Le].id,Ue.map(ze=>ze.id)),this.getAssignedServices(de,Le-1)},()=>this.loading=!1)}getFilteredServices(de){const Le=new Set;return de.forEach(Ue=>{this.resourceAssignedServices.get(Ue.id).forEach(ze=>Le.add(ze))}),[this.emptyService].concat(this.services.filter(Ue=>Le.has(Ue.id)))}applyFilter(de){this.filterValue=de}voSelected(de){this.selectedVo.id!==de.id&&(this.selectedVo=de,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===de.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Le=>Le.voId===de.id),this.filteredServices=this.getFilteredServices(this.filteredResources),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(de){this.selectedResource.id!==de.id&&(this.selectedResource=de,this.selectedService=this.emptyService,this.filteredServices=-1===de.id?this.services:this.getFilteredServices([de]),this.changeFilter())}serviceSelected(de){this.selectedService=de,this.changeFilter()}}return te.id="FacilityAllowedUsersComponent",te.\u0275fac=function(de){return new(de||te)(g.Y36(b.IQ),g.Y36(b.KK),g.Y36(b.xk),g.Y36(_.x4),g.Y36(_.d6),g.Y36(_.fb))},te.\u0275cmp=g.Xpm({type:te,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",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"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId"]],template:function(de,Le){1&de&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"perun-web-apps-refresh-button",2),g.NdJ("refresh",function(){return Le.refreshPage()}),g.qZA(),g.TgZ(6,"perun-web-apps-debounce-filter",3),g.NdJ("filter",function(ze){return Le.applyFilter(ze)}),g.qZA(),g.TgZ(7,"perun-web-apps-advanced-filter",4),g.NdJ("changeAdvancedFilter",function(ze){return Le.advancedFilter=ze})("clearFilters",function(){return Le.clearFilters()}),g.qZA(),g.qZA(),g.YNc(8,Re,12,14,"div",5),g.YNc(9,T,1,0,"mat-spinner",6),g.YNc(10,Y,1,11,"perun-web-apps-users-dynamic-list",7),g.qZA()),2&de&&(g.xp6(2),g.Oqu(g.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),g.xp6(4),g.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),g.xp6(1),g.Q6J("advancedFilter",Le.advancedFilter)("filtersCount",Le.filtersCount),g.xp6(1),g.Q6J("ngIf",Le.advancedFilter),g.xp6(1),g.Q6J("ngIf",Le.loading),g.xp6(1),g.Q6J("ngIf",!Le.loading))},directives:[A.t,E.P,m,L.O5,O.Rr,G.JJ,G.On,ne.M,ge.L,J.J,Me.$g,oe.M],pipes:[P.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}"]}),te})()},34904:($e,_e,p)=>{"use strict";p.d(_e,{f:()=>de});var e=p(20449),b=p(533),_=p(32105),w=p(93075),g=p(48966),A=p(36908),E=p(5e3),C=p(51062),I=p(69808),P=p(20773),m=p(62707),L=p(67322),O=p(98833),G=p(47423);function ne(Le,Ue){1&Le&&E._UZ(0,"mat-spinner",5)}function ge(Le,Ue){if(1&Le){const ze=E.EpF();E.TgZ(0,"div",6),E.TgZ(1,"perun-web-apps-vo-search-select",7),E.NdJ("voSelected",function(je){return E.CHM(ze),E.oxw().selectedVo=je}),E.qZA(),E.TgZ(2,"mat-form-field"),E._UZ(3,"input",8),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA(),E.qZA(),E.TgZ(8,"mat-form-field"),E._UZ(9,"input",9),E.ALo(10,"translate"),E.TgZ(11,"mat-error"),E._uU(12),E.ALo(13,"translate"),E.qZA(),E.qZA(),E.qZA()}if(2&Le){const ze=E.oxw();E.xp6(1),E.Q6J("vos",ze.vos),E.xp6(2),E.s9C("placeholder",E.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),E.Q6J("formControl",ze.nameCtrl),E.xp6(3),E.hij(" ",E.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),E.xp6(3),E.s9C("placeholder",E.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),E.Q6J("formControl",ze.descriptionCtrl),E.xp6(3),E.hij(" ",E.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let J=(()=>{class Le{constructor(ze,le,je,ye,Be,W){this.dialogRef=ze,this.data=le,this.notificator=je,this.voService=ye,this.translate=Be,this.resourcesManager=W,this.vos=[],this.selectedVo=null,Be.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(R=>this.successMessage=R)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(ze=>{this.vos=ze,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new w.NI(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.NI("")}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 Le.\u0275fac=function(ze){return new(ze||Le)(E.Y36(g.so),E.Y36(g.WI),E.Y36(A.V6),E.Y36(_.YF),E.Y36(C.sK),E.Y36(_.xk))},Le.\u0275cmp=E.Xpm({type:Le,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(ze,le){1&ze&&(E.TgZ(0,"div"),E.YNc(1,ne,1,0,"mat-spinner",0),E.YNc(2,ge,14,15,"div",1),E.TgZ(3,"div",2),E.TgZ(4,"button",3),E.NdJ("click",function(){return le.onCancel()}),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"button",4),E.NdJ("click",function(){return le.onSubmit()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.qZA(),E.qZA()),2&ze&&(E.Tol(le.theme),E.xp6(1),E.Q6J("ngIf",le.loading),E.xp6(1),E.Q6J("ngIf",!le.loading),E.xp6(3),E.hij(" ",E.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),E.xp6(2),E.Q6J("disabled",le.nameCtrl.invalid||le.descriptionCtrl.invalid||null===le.selectedVo||le.loading),E.xp6(1),E.hij(" ",E.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},directives:[I.O5,P.$g,g.xY,m.M,L.KE,O.Nt,w.Fj,w.Q7,w.JJ,w.oH,L.TO,g.H8,G.lW],pipes:[C.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),Le})();var Me=p(10036),oe=p(9244),Re=p(96214),T=p(7434),j=p(62109);function Y(Le,Ue){if(1&Le){const ze=E.EpF();E.TgZ(0,"button",7),E.NdJ("click",function(){return E.CHM(ze),E.oxw().createResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function q(Le,Ue){if(1&Le){const ze=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){return E.CHM(ze),E.oxw().removeResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Le){const ze=E.oxw();E.Q6J("disabled",0===ze.selected.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function te(Le,Ue){1&Le&&E._UZ(0,"mat-spinner",9)}function ue(Le,Ue){if(1&Le&&E._UZ(0,"perun-web-apps-resources-list",10),2&Le){const ze=E.oxw();E.Q6J("tableId",ze.tableId)("filterValue",ze.filterValue)("resources",ze.resources)("selection",ze.selected)("disableRouting",!ze.routeAuth)("displayedColumns",ze.displayedColumns)}}let de=(()=>{class Le{constructor(ze,le,je,ye){this.dialog=ze,this.facilitiesManager=le,this.authResolver=je,this.entityStorageService=ye,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=Me.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}removeResource(){const ze=(0,oe.kZ)();ze.width="450px",ze.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(b.f,ze).afterClosed().subscribe(je=>{je&&this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(ze=>{this.resources=ze,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(ze){this.filterValue=ze}createResource(){const ze=(0,oe.kZ)();ze.width="1350px",ze.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(J,ze).afterClosed().subscribe(je=>{je&&this.refreshTable()})}}return Le.id="FacilityResourcesComponent",Le.\u0275fac=function(ze){return new(ze||Le)(E.Y36(g.uw),E.Y36(_.IQ),E.Y36(A.x4),E.Y36(A.fb))},Le.\u0275cmp=E.Xpm({type:Le,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(ze,le){2&ze&&E.ekj("router-component",le.true)},decls:10,vars:8,consts:[[1,"page-subtitle"],[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"],[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(ze,le){1&ze&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return le.refreshTable()}),E.qZA(),E.YNc(5,Y,3,3,"button",2),E.YNc(6,q,3,4,"button",3),E.TgZ(7,"perun-web-apps-immediate-filter",4),E.NdJ("filter",function(ye){return le.applyFilter(ye)}),E.qZA(),E.YNc(8,te,1,0,"mat-spinner",5),E.YNc(9,ue,1,6,"perun-web-apps-resources-list",6),E.qZA()),2&ze&&(E.xp6(2),E.Oqu(E.lcZ(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),E.xp6(3),E.Q6J("ngIf",le.addAuth),E.xp6(1),E.Q6J("ngIf",le.removeAuth),E.xp6(1),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",le.loading),E.xp6(1),E.Q6J("ngIf",!le.loading))},directives:[Re.t,I.O5,G.lW,T.L,P.$g,j.C],pipes:[C.X$],styles:[""]}),Le})()},86353:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>ye});var e=p(32105),b=p(9244),_=p(10036),w=p(20449),g=p(48966),A=p(36908),E=p(93075),C=p(5e3),I=p(51062),P=p(11735),m=p(69808),L=p(20773),O=p(67322),G=p(98833),ne=p(74107),ge=p(90508),J=p(98380),Me=p(47423);function oe(Be,W){1&Be&&C._UZ(0,"mat-spinner",7)}function Re(Be,W){if(1&Be){const R=C.EpF();C.TgZ(0,"mat-option",16),C.NdJ("click",function(){const Ie=C.CHM(R).$implicit;return C.oxw(2).srcFacility=Ie}),C._uU(1),C.qZA()}if(2&Be){const R=W.$implicit;C.Q6J("value",R),C.xp6(1),C.hij(" ",R.name," ")}}function T(Be,W){if(1&Be){const R=C.EpF();C.TgZ(0,"div",8),C.TgZ(1,"mat-form-field"),C._UZ(2,"input",9),C.ALo(3,"translate"),C.TgZ(4,"mat-error"),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.qZA(),C.TgZ(7,"mat-form-field"),C._UZ(8,"input",10),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"mat-form-field"),C.TgZ(11,"mat-select",11),C.ALo(12,"translate"),C.TgZ(13,"mat-option",12),C.NdJ("click",function(){return C.CHM(R),C.oxw().srcFacility=null}),C._uU(14),C.ALo(15,"translate"),C.qZA(),C.YNc(16,Re,2,2,"mat-option",13),C.qZA(),C.qZA(),C.TgZ(17,"perun-web-apps-alert",14),C._UZ(18,"i",15),C.ALo(19,"translate"),C.qZA(),C.qZA()}if(2&Be){const R=C.oxw();C.xp6(2),C.s9C("placeholder",C.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),C.Q6J("formControl",R.nameControl),C.xp6(3),C.Oqu(C.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),C.xp6(3),C.s9C("placeholder",C.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),C.Q6J("formControl",R.descControl),C.xp6(3),C.s9C("placeholder",C.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),C.xp6(3),C.hij(" ",C.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),C.xp6(2),C.Q6J("ngForOf",R.facilities),C.xp6(2),C.Q6J("innerHTML",C.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),C.oJD)}}let j=(()=>{class Be{constructor(R,me,be,Ie,pe,Se,Xe){this.dialogRef=R,this.data=me,this.facilitiesManager=be,this.notificator=Ie,this.translate=pe,this.router=Se,this.entityStorageService=Xe,this.nameControl=new E.NI("",[E.kI.required]),this.descControl=new E.NI(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(R=>{this.facilities=R,this.loading=!1},()=>this.loading=!1)}onCreate(R){this.loading=!0,this.configure=R,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(me=>{this.entityStorageService.setEntity({id:me.id,beanName:me.beanName}),sessionStorage.setItem("newFacilityId",String(me.id)),null!==this.srcFacility?this.copyFacilitySettings(me.id):this.handleSuccess(me.id)})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(R){this.facilitiesManager.copyAttributes(this.srcFacility.id,R).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,R).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,R).subscribe(()=>{this.handleSuccess(R)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(R){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",R.toString(),"configuration"]),this.dialogRef.close(!0)}}return Be.\u0275fac=function(R){return new(R||Be)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.IQ),C.Y36(A.V6),C.Y36(I.sK),C.Y36(P.F0),C.Y36(A.fb))},Be.\u0275cmp=C.Xpm({type:Be,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(R,me){1&R&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,oe,1,0,"mat-spinner",1),C.YNc(5,T,20,21,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return me.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return me.onCreate(!1)}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"button",6),C.NdJ("click",function(){return me.onCreate(!0)}),C._uU(14),C.ALo(15,"translate"),C.qZA(),C.qZA(),C.qZA()),2&R&&(C.Tol(me.theme),C.xp6(2),C.Oqu(C.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),C.xp6(2),C.Q6J("ngIf",me.loading),C.xp6(1),C.Q6J("ngIf",!me.loading),C.xp6(3),C.hij(" ",C.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),C.xp6(2),C.Q6J("disabled",0===me.nameControl.value.trim().length||me.loading),C.xp6(1),C.hij(" ",C.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),C.xp6(2),C.Q6J("disabled",0===me.nameControl.value.trim().length||!!me.srcFacility||me.loading),C.xp6(1),C.hij(" ",C.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},directives:[m.O5,L.$g,g.xY,O.KE,G.Nt,E.Fj,E.Q7,E.JJ,E.oH,O.TO,ne.gD,ge.ey,m.sg,J.w,g.H8,Me.lW],pipes:[I.X$],styles:[""]}),Be})();var Y=p(54037),q=p(77968),te=p(4235),ue=p(25245),de=p(96214),Le=p(7434),Ue=p(74010);function ze(Be,W){1&Be&&C._UZ(0,"mat-spinner",9)}function le(Be,W){if(1&Be&&C._UZ(0,"perun-web-apps-facilities-list",10),2&Be){const R=C.oxw();C.Q6J("tableId",R.tableId)("selection",R.selection)("filterValue",R.filterValue)("facilities",R.facilities)("recentIds",R.recentIds)}}const je=function(){return{color:"black"}};let ye=(()=>{class Be{constructor(R,me,be){this.facilityManager=R,this.sideMenuService=me,this.dialog=be,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=_.xt,this.selection=new w.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(R=>{this.selection.clear(),this.facilities=R,this.recentIds=(0,b.vL)("facilities"),this.loading=!1})}onCreate(){const R=(0,b.kZ)();R.width="800px",R.data={theme:"facility-theme"},this.dialog.open(j,R).afterClosed().subscribe(be=>{be&&(this.loading=!0,this.refreshTable())})}onDelete(){const R=(0,b.kZ)();R.width="500px",R.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(Y.Y,R).afterClosed().subscribe(be=>{be&&this.refreshTable()})}applyFilter(R){this.filterValue=R}}return Be.id="FacilitySelectPageComponent",Be.\u0275fac=function(R){return new(R||Be)(C.Y36(e.IQ),C.Y36(q.D),C.Y36(g.uw))},Be.\u0275cmp=C.Xpm({type:Be,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(R,me){2&R&&C.ekj("router-component",me.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(R,me){1&R&&(C.TgZ(0,"div",0),C._UZ(1,"perun-web-apps-back-button"),C.TgZ(2,"h1",1),C._UZ(3,"mat-icon",2),C._uU(4),C.ALo(5,"translate"),C.qZA(),C.TgZ(6,"perun-web-apps-refresh-button",3),C.NdJ("refresh",function(){return me.refreshTable()}),C.qZA(),C.TgZ(7,"button",4),C.NdJ("click",function(){return me.onCreate()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return me.onDelete()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"perun-web-apps-immediate-filter",6),C.NdJ("filter",function(Ie){return me.applyFilter(Ie)}),C.qZA(),C.YNc(14,ze,1,0,"mat-spinner",7),C.YNc(15,le,1,5,"perun-web-apps-facilities-list",8),C.qZA()),2&R&&(C.xp6(3),C.Q6J("ngStyle",C.DdM(15,je)),C.xp6(1),C.hij(" ",C.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),C.xp6(4),C.hij(" ",C.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),C.xp6(2),C.Q6J("disabled",0===me.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),C.xp6(2),C.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),C.xp6(1),C.Q6J("ngIf",me.loading),C.xp6(1),C.Q6J("ngIf",!me.loading))},directives:[te.W,ue.Hw,m.PC,de.t,Me.lW,Le.L,m.O5,L.$g,Ue.X],pipes:[I.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),Be})()},51076:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>Me});var e=p(48966),b=p(36908),_=p(32105),w=p(9244),g=p(93075),A=p(5e3),E=p(51062),C=p(67322),I=p(98833),P=p(74107),m=p(69808),L=p(90508),O=p(47423),G=p(57706);let ne=(()=>{class oe{constructor(T){this.translateService=T,this.returnData=""}transform(T){switch(T){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(j=>{this.returnData=j});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(j=>{this.returnData=j});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(j=>{this.returnData=j});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(j=>{this.returnData=j});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(j=>{this.returnData=j});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(j=>{this.returnData=j});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(j=>{this.returnData=j});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(j=>{this.returnData=j});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(j=>{this.returnData=j});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(j=>{this.returnData=j});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(j=>{this.returnData=j});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(j=>{this.returnData=j});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(j=>{this.returnData=j});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(j=>{this.returnData=j});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(j=>{this.returnData=j});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.LIST_INPUT_BOX").subscribe(j=>{this.returnData=j});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.MAP_INPUT_BOX").subscribe(j=>{this.returnData=j});break;default:return T}return this.returnData}}return oe.\u0275fac=function(T){return new(T||oe)(A.Y36(E.sK,16))},oe.\u0275pipe=A.Yjl({name:"applicationFormWidgetDescription",type:oe,pure:!0}),oe})();function ge(oe,Re){if(1&oe&&(A.TgZ(0,"mat-option",9),A._uU(1),A.ALo(2,"applicationFormItemType"),A.qZA()),2&oe){const T=Re.$implicit;A.Q6J("value",T),A.xp6(1),A.hij(" ",A.lcZ(2,2,T)," ")}}function J(oe,Re){if(1&oe&&(A.TgZ(0,"mat-option",9),A._uU(1),A.qZA()),2&oe){const T=Re.$implicit;A.Q6J("value",T),A.xp6(1),A.hij(" ",T," ")}}let Me=(()=>{class oe{constructor(T,j,Y,q){this.dialogRef=T,this.data=j,this.translateService=Y,this.store=q,this.languages=this.store.get("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 g.NI("",[g.kI.required,g.kI.pattern(".*[\\S]+.*"),g.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(T);for(const j of this.data.applicationFormItems)this.items.push(j.shortname),j.type===_.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(Y=>Y!==_.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=T})}cancel(){this.dialogRef.close(void 0)}submit(){const T=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,T])}createApplicationItem(){const T=(0,w.dv)(this.languages);T.id=this.data.fakeId,T.shortname=this.nameCtrl.value,T.type=this.selectedWidget;for(let j=0;j{"use strict";p.d(_e,{W:()=>L});var e=p(48966),b=p(32105),_=p(36908),w=p(5e3),g=p(51062),A=p(69808),E=p(20773),C=p(62707),I=p(82322),P=p(47423);function m(O,G){1&O&&w._UZ(0,"mat-spinner",9)}let L=(()=>{class O{constructor(ne,ge,J,Me,oe,Re,T,j,Y){this.dialogRef=ne,this.voService=ge,this.groupService=J,this.translateService=Me,this.registrarManager=oe,this.notificatorService=Re,this.apiRequest=T,this.cd=j,this.data=Y,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=q=>q.name,Me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(q=>this.successMessage=q),Me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(q=>this.privilegeMessage=q),Me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(q=>this.noFormMessage=q)}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=>{const ge=ne.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.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=>{const ge=ne.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.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=>{const ge=ne.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.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=>{const ge=ne.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.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)(w.Y36(e.so),w.Y36(b.YF),w.Y36(b.ff),w.Y36(g.sK),w.Y36(b.tk),w.Y36(_.V6),w.Y36(_.F5),w.Y36(w.sBO),w.Y36(e.WI))},O.\u0275cmp=w.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,ge){1&ne&&(w.TgZ(0,"div"),w.TgZ(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,m,1,0,"mat-spinner",1),w.TgZ(5,"div",2),w.TgZ(6,"div",3),w._uU(7),w.ALo(8,"translate"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.TgZ(11,"perun-web-apps-vo-search-select",4),w.NdJ("voSelected",function(Me){return ge.voSelected(Me)}),w.qZA(),w._uU(12),w.ALo(13,"translate"),w.TgZ(14,"perun-web-apps-group-search-select",5),w.NdJ("groupSelected",function(Me){return ge.selectedGroup=Me}),w.qZA(),w.qZA(),w.TgZ(15,"div",6),w.TgZ(16,"button",7),w.NdJ("click",function(){return ge.cancel()}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"button",8),w.NdJ("click",function(){return ge.submit()}),w._uU(20),w.ALo(21,"translate"),w.qZA(),w.qZA(),w.qZA()),2&ne&&(w.Tol(ge.theme),w.xp6(2),w.Oqu(w.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),w.xp6(2),w.Q6J("ngIf",ge.loading),w.xp6(1),w.Q6J("hidden",ge.loading),w.xp6(2),w.hij(" ",w.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),w.xp6(2),w.hij(" ",w.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),w.xp6(2),w.Q6J("vos",ge.vos),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),w.xp6(2),w.Q6J("groups",ge.groups)("disableAutoSelect",!0),w.xp6(3),w.hij(" ",w.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),w.xp6(2),w.Q6J("disabled",!ge.selectedVo&&!ge.selectedGroup||ge.loading),w.xp6(1),w.hij(" ",w.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},directives:[e.uh,A.O5,E.$g,e.xY,C.M,I.h,e.H8,P.lW],pipes:[g.X$],styles:[""]}),O})()},40009:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>ge});var e=p(48966),b=p(36908),_=p(93075),w=p(32105),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),I=p(67322),P=p(98833),m=p(77446),L=p(47423);function O(J,Me){1&J&&g._UZ(0,"mat-spinner",4)}function G(J,Me){if(1&J){const oe=g.EpF();g.TgZ(0,"div",5),g.TgZ(1,"mat-form-field"),g.TgZ(2,"input",6),g.NdJ("change",function(){return g.CHM(oe),g.oxw().makePath()}),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-error"),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.qZA(),g.TgZ(7,"mat-form-field"),g.TgZ(8,"input",7),g.NdJ("ngModelChange",function(T){return g.CHM(oe),g.oxw().description=T}),g.ALo(9,"translate"),g.qZA(),g.qZA(),g.TgZ(10,"mat-form-field"),g._UZ(11,"input",8),g.ALo(12,"translate"),g.TgZ(13,"mat-error"),g._uU(14),g.ALo(15,"translate"),g.qZA(),g.qZA(),g.TgZ(16,"mat-form-field"),g._UZ(17,"input",9),g.ALo(18,"translate"),g.TgZ(19,"mat-error"),g._uU(20),g.ALo(21,"translate"),g.qZA(),g.qZA(),g.TgZ(22,"mat-form-field"),g._UZ(23,"input",8),g.ALo(24,"translate"),g.TgZ(25,"mat-error"),g._uU(26),g.ALo(27,"translate"),g.qZA(),g.qZA(),g.TgZ(28,"span",10),g._uU(29),g.ALo(30,"translate"),g.TgZ(31,"mat-checkbox",11),g.NdJ("ngModelChange",function(T){return g.CHM(oe),g.oxw().status=T}),g._uU(32),g.ALo(33,"translate"),g.qZA(),g.qZA(),g.TgZ(34,"span",10),g._uU(35),g.ALo(36,"translate"),g.TgZ(37,"mat-checkbox",11),g.NdJ("ngModelChange",function(T){return g.CHM(oe),g.oxw().propagateExpiredMembers=T}),g._uU(38),g.ALo(39,"translate"),g.qZA(),g.qZA(),g.qZA()}if(2&J){const oe=g.oxw();g.xp6(2),g.s9C("placeholder",g.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),g.Q6J("formControl",oe.nameControl),g.xp6(3),g.Oqu(g.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),g.xp6(3),g.s9C("placeholder",g.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),g.Q6J("ngModel",oe.description),g.xp6(3),g.s9C("placeholder",g.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),g.Q6J("formControl",oe.delayControl),g.xp6(3),g.Oqu(g.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),g.xp6(3),g.s9C("placeholder",g.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),g.Q6J("formControl",oe.recurrenceControl),g.xp6(3),g.Oqu(g.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),g.xp6(3),g.s9C("placeholder",g.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),g.Q6J("formControl",oe.pathControl),g.xp6(3),g.Oqu(g.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),g.xp6(3),g.hij("",g.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),g.xp6(2),g.Q6J("ngModel",oe.status),g.xp6(1),g.Oqu(g.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),g.xp6(3),g.hij("",g.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),g.xp6(2),g.Q6J("ngModel",oe.propagateExpiredMembers),g.xp6(1),g.Oqu(g.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function ne(J,Me){if(1&J){const oe=g.EpF();g.TgZ(0,"div",12),g.TgZ(1,"button",13),g.NdJ("click",function(){return g.CHM(oe),g.oxw().onCancel()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",14),g.NdJ("click",function(){g.CHM(oe);const T=g.oxw();return T.asEdit?T.onEdit():T.onCreate()}),g._uU(5),g.qZA(),g.qZA()}if(2&J){const oe=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",oe.nameControl.invalid||oe.delayControl.invalid||oe.recurrenceControl.invalid||oe.pathControl.invalid),g.xp6(1),g.hij(" ",oe.buttonText," ")}}let ge=(()=>{class J{constructor(oe,Re,T,j,Y){this.dialogRef=oe,this.data=Re,this.serviceManager=T,this.notificator=j,this.translate=Y,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new _.NI("",[_.kI.required,_.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new _.NI(10,[_.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new _.NI(2,[_.kI.pattern("^[0-9]*$")]),this.pathControl=new _.NI("",[_.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 oe="./".concat(this.nameControl.value);this.pathControl.setValue(oe)}}return J.\u0275fac=function(oe){return new(oe||J)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.KK),g.Y36(b.V6),g.Y36(A.sK))},J.\u0275cmp=g.Xpm({type:J,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","","required","",3,"placeholder","formControl","change"],["matInput","",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","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(oe,Re){1&oe&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.qZA(),g.YNc(3,O,1,0,"mat-spinner",1),g.YNc(4,G,40,46,"div",2),g.YNc(5,ne,6,5,"div",3),g.qZA()),2&oe&&(g.Tol(Re.theme),g.xp6(2),g.Oqu(Re.title),g.xp6(1),g.Q6J("ngIf",Re.loading),g.xp6(1),g.Q6J("ngIf",!Re.loading),g.xp6(1),g.Q6J("ngIf",!Re.loading))},directives:[e.uh,E.O5,C.$g,e.xY,I.KE,P.Nt,_.Fj,_.Q7,_.JJ,_.oH,I.TO,_.On,m.oG,e.H8,L.lW],pipes:[A.X$],styles:[""]}),J})()},81889:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>Me});var e=p(48966),b=p(36908),_=p(32105),w=p(93075),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),I=p(67322),P=p(98833),m=p(77446),L=p(82322),O=p(47423);function G(oe,Re){1&oe&&g._UZ(0,"mat-spinner",3)}function ne(oe,Re){if(1&oe){const T=g.EpF();g.TgZ(0,"mat-checkbox",14),g.NdJ("ngModelChange",function(Y){return g.CHM(T),g.oxw(2).asSubgroup=Y})("click",function(){return g.CHM(T),g.oxw(2).loadVoGroups()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&oe){const T=g.oxw(2);g.Q6J("ngModel",T.asSubgroup)("labelPosition","before"),g.xp6(1),g.hij(" ",g.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function ge(oe,Re){if(1&oe){const T=g.EpF();g.TgZ(0,"perun-web-apps-group-search-select",15),g.NdJ("groupSelected",function(Y){return g.CHM(T),g.oxw(2).selectedParent=Y}),g.qZA()}if(2&oe){const T=g.oxw(2);g.Q6J("disableAutoSelect",!0)("groups",T.voGroups)}}function J(oe,Re){if(1&oe){const T=g.EpF();g.TgZ(0,"div"),g.TgZ(1,"div",4),g.TgZ(2,"mat-form-field"),g.TgZ(3,"label",5),g._UZ(4,"input",6),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"mat-error"),g._uU(7),g.ALo(8,"translate"),g.qZA(),g.qZA(),g.TgZ(9,"mat-form-field",7),g.TgZ(10,"label",5),g.TgZ(11,"textarea",8),g.ALo(12,"translate"),g._uU(13," "),g.qZA(),g.qZA(),g.qZA(),g.YNc(14,ne,3,5,"mat-checkbox",9),g.YNc(15,ge,1,2,"perun-web-apps-group-search-select",10),g.qZA(),g.TgZ(16,"div",11),g.TgZ(17,"button",12),g.NdJ("click",function(){return g.CHM(T),g.oxw().onCancel()}),g._uU(18),g.ALo(19,"translate"),g.qZA(),g.TgZ(20,"button",13),g.NdJ("click",function(){return g.CHM(T),g.oxw().onSubmit()}),g._uU(21),g.ALo(22,"translate"),g.qZA(),g.qZA(),g.qZA()}if(2&oe){const T=g.oxw();g.xp6(4),g.s9C("placeholder",g.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),g.Q6J("formControl",T.nameControl),g.xp6(3),g.hij(" ",T.invalidNameMessage.length?T.invalidNameMessage:g.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),g.xp6(4),g.s9C("placeholder",g.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),g.Q6J("formControl",T.descriptionControl),g.xp6(3),g.Q6J("ngIf",T.isNotSubGroup),g.xp6(1),g.Q6J("ngIf",T.asSubgroup),g.xp6(3),g.hij(" ",g.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),g.xp6(2),g.Q6J("disabled",T.nameControl.invalid||T.descriptionControl.invalid||T.asSubgroup&&null===T.selectedParent||T.loading),g.xp6(1),g.hij(" ",g.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let Me=(()=>{class oe{constructor(T,j,Y,q,te,ue){this.dialogRef=T,this.data=j,this.groupService=Y,this.translate=q,this.notificator=te,this.store=ue,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameFunction=de=>de.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?q.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(de=>this.title=de):q.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(de=>{this.title=de+this.data.parentGroup.name}),q.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(de=>this.successMessage=de),q.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(de=>this.successSubGroupMessage=de)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new w.NI("",[w.kI.required,w.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),w.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new w.NI(""),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(j=>"members"!==j.name)})}}return oe.\u0275fac=function(T){return new(T||oe)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.ff),g.Y36(A.sK),g.Y36(b.V6),g.Y36(b.d6))},oe.\u0275cmp=g.Xpm({type:oe,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,j){1&T&&(g.TgZ(0,"h1",0),g._uU(1),g.qZA(),g.TgZ(2,"div"),g.YNc(3,G,1,0,"mat-spinner",1),g.YNc(4,J,23,20,"div",2),g.qZA()),2&T&&(g.xp6(1),g.Oqu(j.title),g.xp6(1),g.Tol(j.theme),g.xp6(1),g.Q6J("ngIf",j.loading),g.xp6(1),g.Q6J("ngIf",!j.loading))},directives:[e.uh,E.O5,C.$g,e.xY,I.KE,P.Nt,w.Fj,w.Q7,w.JJ,w.oH,I.TO,m.oG,w.On,L.h,e.H8,O.lW],pipes:[A.X$],styles:[""]}),oe})()},54037:($e,_e,p)=>{"use strict";p.d(_e,{Y:()=>C});var e=p(32105),b=p(48966),_=p(36908),w=p(32075),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.facilitiesManager=O,this.notificator=G,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 w.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(m){this.force=m.force,m.deleted?this.onConfirm():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(b.so),g.Y36(b.WI),g.Y36(e.IQ),g.Y36(_.V6),g.Y36(A.sK))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","facilities")("loading",L.loading)("relations",L.relations))},directives:[E.e],styles:[""]}),I})()},41656:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>C});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.notificator=O,this.translate=G,this.groupService=ne,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.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 m=this.data.groups.map(L=>L.id);this.groupService.deleteGroups({groups:m,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(m){this.force=m.force,m.deleted?this.onDelete():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(A.sK),g.Y36(w.ff))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","groups")("loading",L.loading)("relations",L.relations))},directives:[E.e],styles:[""]}),I})()},90719:($e,_e,p)=>{"use strict";p.d(_e,{m:()=>C});var e=p(32105),b=p(48966),_=p(36908),w=p(32075),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.serviceManager=O,this.notificator=G,this.translate=ne,this.dataSource=new w.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(){if(0===this.services.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS"));this.loading=!0,this.serviceManager.deleteService(this.services.pop().id,this.force).subscribe(()=>{this.onConfirm(),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(m){this.force=m.force,m.deleted?this.onConfirm():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(b.so),g.Y36(b.WI),g.Y36(e.KK),g.Y36(_.V6),g.Y36(A.sK))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","services")("anotherMessage",L.anotherMessage)("loading",L.loading)("relations",L.relations))},directives:[E.e],styles:[""]}),I})()},83491:($e,_e,p)=>{"use strict";p.d(_e,{_:()=>V});var e=p(48966),b=p(32105),_=p(9244),w=p(387),g=p(36908),A=p(5e3),E=p(51062),C=p(69808),I=p(20773),P=p(53251);const m=["*"];let L=(()=>{class xe{}return xe.\u0275fac=function(Te){return new(Te||xe)},xe.\u0275cmp=A.Xpm({type:xe,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:m,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(Te,Ae){1&Te&&(A.F$t(),A.TgZ(0,"div",0),A.TgZ(1,"span",1),A._uU(2),A.qZA(),A.TgZ(3,"div",2),A.Hsn(4),A.qZA(),A.qZA(),A.TgZ(5,"div",3),A._UZ(6,"span",4),A.TgZ(7,"div",5),A._uU(8),A.qZA(),A.qZA()),2&Te&&(A.xp6(2),A.hij("",Ae.label,":"),A.xp6(6),A.hij(" ",Ae.description," "))},styles:[""]}),xe})();var O=p(67322),G=p(98833),ne=p(93075),ge=p(77446),J=p(52170),Me=p(74107),oe=p(90508),Re=p(63312),T=p(74533),j=p(47423),Y=p(29772),q=p(25245),te=p(57706);let ue=(()=>{class xe{constructor(Te){this.translateService=Te}transform(Te){switch(Te){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+Te);default:return Te}}}return xe.\u0275fac=function(Te){return new(Te||xe)(A.Y36(E.sK,16))},xe.\u0275pipe=A.Yjl({name:"applicationFormItemDisabled",type:xe,pure:!0}),xe})(),de=(()=>{class xe{constructor(Te){this.translateService=Te}transform(Te){switch(Te){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+Te);default:return Te}}}return xe.\u0275fac=function(Te){return new(Te||xe)(A.Y36(E.sK,16))},xe.\u0275pipe=A.Yjl({name:"applicationFormItemHidden",type:xe,pure:!0}),xe})();function Le(xe,Qe){1&xe&&A._UZ(0,"mat-spinner",8)}function Ue(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"section"),A.TgZ(5,"mat-checkbox",22),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw(3).applicationFormItem.updatable=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(3);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.updatable)}}function ze(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div",13),A.TgZ(1,"mat-form-field",13),A.TgZ(2,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw(3).applicationFormItem.federationAttribute=ae}),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(3);A.xp6(2),A.Q6J("ngModel",Te.applicationFormItem.federationAttribute)}}function le(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"section"),A.TgZ(5,"mat-checkbox",22),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.required=ae}),A.qZA(),A.qZA(),A.qZA(),A.YNc(6,Ue,6,7,"div",17),A.TgZ(7,"app-edit-application-form-item-line",12),A.ALo(8,"translate"),A.ALo(9,"translate"),A.TgZ(10,"div",13),A.TgZ(11,"perun-web-apps-selection-item-search-select",23),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.perunSourceAttribute=ae.value}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(12,"app-edit-application-form-item-line",12),A.ALo(13,"translate"),A.ALo(14,"translate"),A.TgZ(15,"div",13),A.TgZ(16,"perun-web-apps-selection-item-search-select",23),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.perunDestinationAttribute=ae.value}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(17,"app-edit-application-form-item-line",12),A.ALo(18,"translate"),A.ALo(19,"translate"),A.TgZ(20,"div",13),A.TgZ(21,"perun-web-apps-selection-item-search-select",24),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(2).changeFederationAttribute(ae)}),A.qZA(),A.qZA(),A.YNc(22,ze,3,1,"div",25),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",A.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.required),A.xp6(1),A.Q6J("ngIf",Te.typesWithUpdatable.indexOf(Te.applicationFormItem.type)>-1),A.xp6(1),A.Q6J("description",A.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),A.xp6(4),A.Q6J("attributes",Te.sourceAttributes)("selectedAttribute",Te.applicationFormItem.perunSourceAttribute)("asGroup",!!Te.data.group)("type",Te.itemType.SOURCE),A.xp6(1),A.Q6J("description",A.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),A.xp6(4),A.Q6J("attributes",Te.destinationAttributes)("selectedAttribute",Te.applicationFormItem.perunDestinationAttribute)("asGroup",!!Te.data.group)("type",Te.itemType.DESTINATION),A.xp6(1),A.Q6J("description",A.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),A.xp6(4),A.Q6J("selectedAttribute",Te.applicationFormItem.federationAttribute)("asGroup",!!Te.data.group)("type",Te.itemType.FEDERATION),A.xp6(1),A.Q6J("ngIf"," -- custom value -- "===Te.federationAttributeDN)}}function je(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.regex=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.regex)}}function ye(xe,Qe){if(1&xe&&(A.TgZ(0,"mat-option",26),A._uU(1),A.ALo(2,"applicationFormItemDisabled"),A.qZA()),2&xe){const Te=Qe.$implicit;A.Q6J("value",Te),A.xp6(1),A.hij(" ",A.lcZ(2,2,Te)," ")}}function Be(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"perun-web-apps-app-form-item-search-select",27),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(3).disabledDependencyItem=ae}),A.qZA()}if(2&xe){const Te=A.oxw(3);A.Q6J("item",Te.disabledDependencyItem)("items",Te.possibleDependencyItems)}}function W(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"mat-select",18),A.NdJ("valueChange",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.disabled=ae}),A.YNc(6,ye,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"app-edit-application-form-item-line",12),A.ALo(8,"translate"),A.ALo(9,"translate"),A.TgZ(10,"div",13),A.YNc(11,Be,1,2,"perun-web-apps-app-form-item-search-select",20),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",A.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),A.xp6(4),A.Q6J("value",Te.applicationFormItem.disabled),A.xp6(1),A.Q6J("ngForOf",Te.disabledValues),A.xp6(1),A.Q6J("description",A.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",A.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),A.xp6(4),A.Q6J("ngIf",null!==Te.disabledDependencyItem)}}function R(xe,Qe){if(1&xe&&(A.TgZ(0,"mat-option",26),A._uU(1),A.ALo(2,"applicationFormItemHidden"),A.qZA()),2&xe){const Te=Qe.$implicit;A.Q6J("value",Te),A.xp6(1),A.hij(" ",A.lcZ(2,2,Te)," ")}}function me(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"perun-web-apps-app-form-item-search-select",27),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(2).hiddenDependencyItem=ae}),A.qZA()}if(2&xe){const Te=A.oxw(2);A.Q6J("item",Te.hiddenDependencyItem)("items",Te.possibleDependencyItems)}}function be(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",28),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].label=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw().$implicit,Ae=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",A.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),A.xp6(4),A.Q6J("cdkTextareaAutosize",!0)("ngModel",Ae.applicationFormItem.i18n[Te].label)}}function Ie(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",14),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].label=ae}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(6,"app-edit-application-form-item-line",12),A.ALo(7,"translate"),A.ALo(8,"translate"),A.TgZ(9,"mat-form-field",13),A.TgZ(10,"textarea",14),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].help=ae}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(11,"app-edit-application-form-item-line",12),A.ALo(12,"translate"),A.ALo(13,"translate"),A.TgZ(14,"mat-form-field",13),A.TgZ(15,"textarea",14),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].errorMessage=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw().$implicit,Ae=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",A.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),A.xp6(4),A.Q6J("ngModel",Ae.applicationFormItem.i18n[Te].label),A.xp6(1),A.Q6J("description",A.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",A.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),A.xp6(4),A.Q6J("ngModel",Ae.applicationFormItem.i18n[Te].help),A.xp6(1),A.Q6J("description",A.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",A.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),A.xp6(4),A.Q6J("ngModel",Ae.applicationFormItem.i18n[Te].errorMessage)}}function pe(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",14),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].label=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw().$implicit,Ae=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),A.xp6(4),A.Q6J("ngModel",Ae.applicationFormItem.i18n[Te].label)}}function Se(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.TgZ(3,"mat-form-field"),A.TgZ(4,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te).$implicit[0]=ae}),A.qZA(),A.qZA(),A._uU(5),A.ALo(6,"translate"),A.TgZ(7,"mat-form-field"),A.TgZ(8,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te).$implicit[1]=ae}),A.qZA(),A.qZA(),A.TgZ(9,"button",37),A.NdJ("click",function(){const i=A.CHM(Te).$implicit,o=A.oxw(2).$implicit;return A.oxw(2).removeOption(i,o)}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=Qe.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),A.xp6(3),A.Q6J("ngModel",Te[0]),A.xp6(1),A.hij(" ",A.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),A.xp6(3),A.Q6J("ngModel",Te[1]),A.xp6(1),A.s9C("matTooltip",A.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function Xe(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"div",29),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",30),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"div",31),A.TgZ(8,"button",32),A.NdJ("click",function(){A.CHM(Te);const ae=A.oxw().$implicit;return A.oxw(2).sortOptionsAZ(ae)}),A.TgZ(9,"i",33),A._uU(10,"arrow_downward"),A.qZA(),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.TgZ(13,"button",34),A.NdJ("click",function(){A.CHM(Te);const ae=A.oxw().$implicit;return A.oxw(2).sortOptionsZA(ae)}),A.TgZ(14,"i",33),A._uU(15,"arrow_upward"),A.qZA(),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.qZA(),A.YNc(18,Se,13,11,"div",35),A.TgZ(19,"button",36),A.NdJ("click",function(){A.CHM(Te);const ae=A.oxw().$implicit;return A.oxw(2).addOption(ae)}),A._uU(20),A.ALo(21,"translate"),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw().$implicit,Ae=A.oxw(2);A.xp6(2),A.hij(" ",A.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),A.xp6(3),A.hij(" ",A.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),A.xp6(6),A.hij(" ",A.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),A.xp6(5),A.hij(" ",A.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),A.xp6(2),A.Q6J("ngForOf",Ae.options[Te]),A.xp6(2),A.hij(" ",A.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Je=function(){return["HEADING","HTML_COMMENT"]},nt=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Ve=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},X=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function z(xe,Qe){if(1&xe&&(A.TgZ(0,"mat-tab",11),A.ALo(1,"translate"),A.ALo(2,"uppercase"),A.YNc(3,be,6,8,"div",17),A.YNc(4,Ie,16,21,"div",17),A.YNc(5,pe,6,7,"div",17),A.YNc(6,Xe,22,16,"div",17),A.qZA()),2&xe){const Te=Qe.$implicit,Ae=A.oxw(2);A.s9C("label",A.lcZ(1,5,A.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+Te))),A.xp6(3),A.Q6J("ngIf",Ae.isApplicationFormItemOfType(A.DdM(9,Je))),A.xp6(1),A.Q6J("ngIf",Ae.isApplicationFormItemOfType(A.DdM(10,nt))),A.xp6(1),A.Q6J("ngIf",Ae.isApplicationFormItemOfType(A.DdM(11,Ve))),A.xp6(1),A.Q6J("ngIf",Ae.isApplicationFormItemOfType(A.DdM(12,X)))}}const Q=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},D=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function H(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div",9),A.TgZ(1,"mat-tab-group",10),A.TgZ(2,"mat-tab",11),A.ALo(3,"translate"),A.TgZ(4,"app-edit-application-form-item-line",12),A.ALo(5,"translate"),A.ALo(6,"translate"),A.TgZ(7,"mat-form-field",13),A.TgZ(8,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw().applicationFormItem.shortname=ae}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(9,"app-edit-application-form-item-line",12),A.ALo(10,"translate"),A.ALo(11,"translate"),A._uU(12),A.ALo(13,"applicationFormItemType"),A.qZA(),A.TgZ(14,"app-edit-application-form-item-line",12),A.ALo(15,"translate"),A.ALo(16,"translate"),A.TgZ(17,"section"),A.TgZ(18,"mat-checkbox",15),A.NdJ("change",function(){return A.CHM(Te),A.oxw().onChangingType("INITIAL")}),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-checkbox",16),A.NdJ("change",function(){return A.CHM(Te),A.oxw().onChangingType("EXTENSION")}),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.qZA(),A.qZA(),A.YNc(24,le,23,38,"div",17),A.YNc(25,je,6,7,"div",17),A.YNc(26,W,12,15,"div",17),A.TgZ(27,"app-edit-application-form-item-line",12),A.ALo(28,"translate"),A.ALo(29,"translate"),A.TgZ(30,"mat-form-field",13),A.TgZ(31,"mat-select",18),A.NdJ("valueChange",function(ae){return A.CHM(Te),A.oxw().applicationFormItem.hidden=ae}),A.YNc(32,R,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(33,"app-edit-application-form-item-line",12),A.ALo(34,"translate"),A.ALo(35,"translate"),A.TgZ(36,"div",13),A.YNc(37,me,1,2,"perun-web-apps-app-form-item-search-select",20),A.qZA(),A.qZA(),A.qZA(),A.YNc(38,z,7,13,"mat-tab",21),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw();A.xp6(2),A.s9C("label",A.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),A.xp6(2),A.Q6J("description",A.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",A.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.shortname),A.xp6(1),A.Q6J("description",A.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",A.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),A.xp6(3),A.hij(" ",A.lcZ(13,34,Te.applicationFormItem.type)," "),A.xp6(2),A.Q6J("description",A.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",A.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.applicationTypes.includes("INITIAL")),A.xp6(1),A.hij(" ",A.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),A.xp6(2),A.Q6J("ngModel",Te.applicationFormItem.applicationTypes.includes("EXTENSION")),A.xp6(1),A.hij(" ",A.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),A.xp6(2),A.Q6J("ngIf",Te.isApplicationFormItemOfType(A.DdM(52,Q))),A.xp6(1),A.Q6J("ngIf",Te.isApplicationFormItemOfType(A.DdM(53,D))),A.xp6(1),A.Q6J("ngIf",Te.typesWithDisabled.indexOf(Te.applicationFormItem.type)>-1),A.xp6(1),A.Q6J("description",A.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",A.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),A.xp6(4),A.Q6J("value",Te.applicationFormItem.hidden),A.xp6(1),A.Q6J("ngForOf",Te.hiddenValues),A.xp6(1),A.Q6J("description",A.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",A.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),A.xp6(4),A.Q6J("ngIf",null!==Te.hiddenDependencyItem),A.xp6(1),A.Q6J("ngForOf",Te.languages)}}let V=(()=>{class xe{constructor(Te,Ae,ae,i,o,d){this.dialogRef=Te,this.data=Ae,this.attributesManager=ae,this.translateService=i,this.store=o,this.cd=d,this.federationAttributeDN="",this.itemType=w.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.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(Te=>Te.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=w.Sx),this.disabledDependencyItem=this.data.allItems.find(Te=>Te.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=w.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,_.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Te=>{const Ae=this.filterAttributesForWidget(Te);this.sourceAttributes=Ae.concat(this.findAttribute(Te,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=Ae.concat(this.findAttribute(Te,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===w.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===w.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(Te){if(this.applicationFormItem.applicationTypes.includes(Te)){const Ae=this.applicationFormItem.applicationTypes.indexOf(Te);this.applicationFormItem.applicationTypes.splice(Ae,1)}else this.applicationFormItem.applicationTypes.push(Te)}addOption(Te){this.options[Te].push(["",""])}removeOption(Te,Ae){this.options[Ae]=this.options[Ae].filter(ae=>!(ae[0]===Te[0]&&ae[1]===Te[1]))}sortOptionsAZ(Te){this.options[Te]=this.options[Te].sort((Ae,ae)=>Ae[1]>ae[1]?1:Ae[1]Ae[1]>ae[1]?-1:Ae[1]this.dependencyTypes.includes(Te.type)).filter(Te=>Te.id!==this.data.applicationFormItem.id))}updateOption(Te){var Ae;let ae="";if(null!==(Ae=this.options[Te])&&void 0!==Ae&&Ae)for(const i of this.options[Te])""!==i[0]&&""!==i[1]&&(ae=""===ae?i[0]+"#"+i[1]:ae+"|"+i[0]+"#"+i[1]);this.applicationFormItem.i18n[Te].options=ae}updateOptions(){for(const Te of this.languages)this.updateOption(Te)}findAttribute(Te,Ae){return Te.find(ae=>Ae.includes(ae.friendlyName))}filterAttributesForWidget(Te){return Te.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?Ae=>Ae.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?Ae=>Ae.type.includes("ArrayList"):Ae=>!Ae.type.includes("ArrayList")&&!Ae.type.includes("LinkedHashMap"))}}return xe.\u0275fac=function(Te){return new(Te||xe)(A.Y36(e.so),A.Y36(e.WI),A.Y36(b.H8),A.Y36(E.sK),A.Y36(g.d6),A.Y36(A.sBO))},xe.\u0275cmp=A.Xpm({type:xe,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(Te,Ae){1&Te&&(A.TgZ(0,"div"),A.TgZ(1,"div",0),A.TgZ(2,"h1",1),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.YNc(5,Le,1,0,"mat-spinner",2),A.YNc(6,H,39,54,"div",3),A.TgZ(7,"div",4),A.TgZ(8,"button",5),A.NdJ("click",function(){return Ae.cancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"div",6),A.ALo(12,"translate"),A.TgZ(13,"button",7),A.NdJ("click",function(){return Ae.submit()}),A._uU(14),A.ALo(15,"translate"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&Te&&(A.Gre("",Ae.theme," h-100"),A.xp6(3),A.AsE(" ",A.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",Ae.applicationFormItem.shortname," "),A.xp6(2),A.Q6J("ngIf",Ae.loading),A.xp6(1),A.Q6J("ngIf",!Ae.loading),A.xp6(3),A.hij(" ",A.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),A.Q6J("matTooltipDisabled",!Ae.applicationFormItem.required||""!==Ae.applicationFormItem.perunSourceAttribute||""!==Ae.applicationFormItem.federationAttribute||"ALWAYS"!==Ae.applicationFormItem.disabled&&"ALWAYS"!==Ae.applicationFormItem.hidden),A.xp6(2),A.Q6J("disabled",Ae.loading||Ae.applicationFormItem.required&&""===Ae.applicationFormItem.perunSourceAttribute&&""===Ae.applicationFormItem.federationAttribute&&("ALWAYS"===Ae.applicationFormItem.disabled||"ALWAYS"===Ae.applicationFormItem.hidden)),A.xp6(1),A.hij(" ",A.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[e.uh,C.O5,I.$g,e.xY,P.SP,P.uX,L,O.KE,G.Nt,ne.Fj,ne.JJ,ne.On,ge.oG,J.$x,Me.gD,C.sg,oe.ey,Re.Y,T.IC,j.lW,Y.gM,q.Hw,e.H8],pipes:[E.X$,te.c,ue,de,C.gd],styles:[""]}),xe})()},19352:($e,_e,p)=>{"use strict";p.d(_e,{H:()=>ze});var e=p(32105),b=p(48966),_=p(36908),w=p(32075),g=p(9244),A=p(16074),E=p(69808),C=p(5e3),I=p(51062),P=p(20773),m=p(47423),L=p(25245),O=p(29772),G=p(31359);function ne(le,je){1&le&&C._UZ(0,"mat-spinner",6)}function ge(le,je){1&le&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function J(le,je){if(1&le&&(C.TgZ(0,"td",18),C._uU(1),C.qZA()),2&le){const ye=je.$implicit;C.xp6(1),C.Oqu(ye.user.id)}}function Me(le,je){1&le&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function oe(le,je){if(1&le&&(C.TgZ(0,"td",18),C._uU(1),C.ALo(2,"userFullName"),C.qZA()),2&le){const ye=je.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,ye.user))}}function Re(le,je){1&le&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function T(le,je){if(1&le){const ye=C.EpF();C.TgZ(0,"button",20),C.NdJ("click",function(){C.CHM(ye);const W=C.oxw().$implicit;return C.oxw(2).changeExpiration(W)}),C.TgZ(1,"mat-icon"),C._uU(2," today "),C.qZA(),C.qZA()}}function j(le,je){if(1&le&&(C.TgZ(0,"td",18),C.TgZ(1,"span"),C._uU(2),C.qZA(),C.YNc(3,T,3,0,"button",19),C.qZA()),2&le){const ye=je.$implicit,Be=C.oxw(2);C.xp6(2),C.Oqu(Be.parseDate(ye.validityTo)),C.xp6(1),C.Q6J("ngIf",Be.isExpirationAuthorized(ye))}}function Y(le,je){1&le&&C._UZ(0,"th",17)}function q(le,je){1&le&&(C.TgZ(0,"mat-icon",25),C._uU(1,"clear"),C.qZA())}function te(le,je){1&le&&(C.TgZ(0,"mat-icon"),C._uU(1,"settings_backup_restore"),C.qZA())}function ue(le,je){if(1&le){const ye=C.EpF();C.TgZ(0,"td",18),C.TgZ(1,"div",21),C.ALo(2,"translate"),C.TgZ(3,"button",22),C.NdJ("click",function(){const R=C.CHM(ye).$implicit;return C.oxw(2).markSponsor(R)}),C.YNc(4,q,2,0,"mat-icon",23),C.YNc(5,te,2,0,"mat-icon",24),C.qZA(),C.qZA(),C.qZA()}if(2&le){const ye=je.$implicit,Be=C.oxw(2);C.xp6(1),C.s9C("matTooltip",C.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),C.Q6J("matTooltipDisabled",Be.isRemoveAuthorized(ye))("matTooltipPosition","above"),C.xp6(2),C.Q6J("disabled",!Be.isRemoveAuthorized(ye)),C.xp6(1),C.Q6J("ngIf",!Be.sponsorsToRemove.has(ye.user.id)),C.xp6(1),C.Q6J("ngIf",Be.sponsorsToRemove.has(ye.user.id))}}function de(le,je){1&le&&C._UZ(0,"tr",26)}function Le(le,je){if(1&le&&C._UZ(0,"tr",27),2&le){const ye=je.$implicit,Be=C.oxw(2);C.ekj("make-red",Be.sponsorsToRemove.has(ye.user.id))}}function Ue(le,je){if(1&le&&(C.TgZ(0,"div",7),C.TgZ(1,"table",8),C.ynx(2,9),C.YNc(3,ge,3,3,"th",10),C.YNc(4,J,2,1,"td",11),C.BQk(),C.ynx(5,12),C.YNc(6,Me,3,3,"th",10),C.YNc(7,oe,3,3,"td",11),C.BQk(),C.ynx(8,13),C.YNc(9,Re,3,3,"th",10),C.YNc(10,j,4,2,"td",11),C.BQk(),C.ynx(11,14),C.YNc(12,Y,1,0,"th",10),C.YNc(13,ue,6,8,"td",11),C.BQk(),C.YNc(14,de,1,0,"tr",15),C.YNc(15,Le,1,2,"tr",16),C.qZA(),C.qZA()),2&le){const ye=C.oxw();C.xp6(1),C.Q6J("dataSource",ye.dataSource),C.xp6(13),C.Q6J("matHeaderRowDef",ye.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",ye.displayedColumns)}}let ze=(()=>{class le{constructor(ye,Be,W,R,me,be,Ie,pe){this.dialogRef=ye,this.data=Be,this.memberService=W,this.userService=R,this.notificator=me,this.authResolver=be,this.translate=Ie,this.dialog=pe,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 w.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(ye){this.sponsorsToRemove.has(ye.user.id)?this.sponsorsToRemove.delete(ye.user.id):this.sponsorsToRemove.add(ye.user.id)}onSubmit(){this.loading=!0;const ye=Array.from(this.sponsorsToRemove);this.removeSponsors(ye)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(ye){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[ye.user])}isExpirationAuthorized(ye){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[ye.user,this.vo])}parseDate(ye){return null===ye?"Never expire":(0,E.p6)(ye,"d.M.y","en")}changeExpiration(ye){const Be=(0,g.kZ)();Be.width="400px",Be.data={memberId:this.data.member.id,sponsor:ye},this.dialog.open(A.hd,Be).afterClosed().subscribe(R=>{R&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(me=>{this.sponsors=me,this.dataSource=new w.by(this.sponsors),this.loading=!1}))})}removeSponsors(ye){if(0===ye.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const Be=ye.pop();this.memberService.removeSponsor(this.data.member.id,Be).subscribe(()=>{this.removeSponsors(ye)},()=>this.loading=!1)}}return le.\u0275fac=function(ye){return new(ye||le)(C.Y36(b.so),C.Y36(b.WI),C.Y36(e.uq),C.Y36(e.Fv),C.Y36(_.V6),C.Y36(_.x4),C.Y36(I.sK),C.Y36(b.uw))},le.\u0275cmp=C.Xpm({type:le,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"],["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(ye,Be){1&ye&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div"),C.YNc(4,ne,1,0,"mat-spinner",1),C.YNc(5,Ue,16,3,"div",2),C.TgZ(6,"div",3),C.TgZ(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.onSubmit()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.qZA()),2&ye&&(C.xp6(1),C.Oqu(C.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),C.xp6(2),C.Tol(Be.theme),C.xp6(1),C.Q6J("ngIf",Be.loading),C.xp6(1),C.Q6J("ngIf",!Be.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),C.xp6(2),C.Q6J("disabled",Be.loading||0===Be.sponsorsToRemove.size),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},directives:[b.uh,E.O5,P.$g,b.xY,w.BZ,w.w1,w.fO,w.ge,w.Dz,w.ev,m.lW,L.Hw,O.gM,w.as,w.XQ,w.nj,w.Gk,b.H8],pipes:[I.X$,G.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),le})()},74414:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>T});var e=p(48966),b=p(93075),_=p(32105),w=p(36908),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),I=p(67322),P=p(98833),m=p(74107),L=p(90508),O=p(47423);function G(j,Y){1&j&&g._UZ(0,"mat-spinner",6)}function ne(j,Y){1&j&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&j&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function ge(j,Y){1&j&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&j&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function J(j,Y){1&j&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&j&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function Me(j,Y){1&j&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&j&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function oe(j,Y){if(1&j&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"uppercase"),g.qZA()),2&j){const q=Y.$implicit;g.s9C("value",q),g.xp6(1),g.Oqu(g.lcZ(2,2,g.lcZ(3,4,"SHARED_LIB.LANGUAGES."+q)))}}function Re(j,Y){if(1&j){const q=g.EpF();g.TgZ(0,"div",7),g.YNc(1,ne,3,3,"div",8),g.YNc(2,ge,3,3,"div",8),g.TgZ(3,"mat-form-field",9),g._UZ(4,"input",10),g.ALo(5,"translate"),g.YNc(6,J,3,3,"mat-error",11),g.qZA(),g.TgZ(7,"mat-form-field",9),g._UZ(8,"textarea",10),g.ALo(9,"translate"),g.YNc(10,Me,3,3,"mat-error",11),g.qZA(),g.TgZ(11,"mat-form-field",9),g.TgZ(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-select",12),g.NdJ("valueChange",function(ue){return g.CHM(q),g.oxw().currentLanguage=ue}),g.YNc(16,oe,4,6,"mat-option",13),g.qZA(),g.qZA(),g.qZA()}if(2&j){const q=g.oxw();g.xp6(1),g.Q6J("ngIf",!q.data.groupId),g.xp6(1),g.Q6J("ngIf",q.data.groupId),g.xp6(2),g.s9C("placeholder",g.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),g.Q6J("formControl",q.name),g.xp6(2),g.Q6J("ngIf",q.name.invalid),g.xp6(2),g.s9C("placeholder",g.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),g.Q6J("formControl",q.emailForm),g.xp6(2),g.Q6J("ngIf",q.emailForm.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),g.xp6(2),g.Q6J("value",q.currentLanguage),g.xp6(1),g.Q6J("ngForOf",q.languages)}}let T=(()=>{class j{constructor(q,te,ue,de,Le,Ue){this.dialogRef=q,this.data=te,this.registrarManager=ue,this.notificator=de,this.translate=Le,this.store=Ue,this.emailForm=new b.NI("",[b.kI.required,b.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new b.NI("",b.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.get("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(q=>{this.notificator.showSuccess(q),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(q=>{this.notificator.showSuccess(q),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return j.\u0275fac=function(q){return new(q||j)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.tk),g.Y36(w.V6),g.Y36(A.sK),g.Y36(w.d6))},j.\u0275cmp=g.Xpm({type:j,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(q,te){1&q&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,G,1,0,"mat-spinner",1),g.YNc(5,Re,17,17,"div",2),g.TgZ(6,"div",3),g.TgZ(7,"button",4),g.NdJ("click",function(){return te.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return te.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA(),g.qZA(),g.qZA()),2&q&&(g.Tol(te.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),g.xp6(2),g.Q6J("ngIf",te.loading),g.xp6(1),g.Q6J("ngIf",!te.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),g.xp6(2),g.Q6J("disabled",te.emailForm.invalid||te.name.invalid||te.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[e.uh,E.O5,C.$g,e.xY,I.KE,P.Nt,b.Fj,b.Q7,b.JJ,b.oH,I.TO,I.hX,m.gD,E.sg,L.ey,e.H8,O.lW],pipes:[A.X$,E.gd],styles:[""]}),j})()},87842:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>ue});var e=p(48966),b=p(93075),_=p(1059),w=p(24850),g=p(36769),A=p(36908),E=p(32105),C=p(5e3),I=p(51062),P=p(79814),m=p(69808),L=p(98380),O=p(67322),G=p(98833),ne=p(91079),ge=p(90508),J=p(20773),Me=p(47423),oe=p(29772);function Re(de,Le){1&de&&(C.TgZ(0,"mat-radio-button",12),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(de,Le){1&de&&(C.TgZ(0,"mat-radio-button",13),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function j(de,Le){1&de&&(C.TgZ(0,"perun-web-apps-alert",14),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function Y(de,Le){if(1&de){const Ue=C.EpF();C.TgZ(0,"mat-option",20),C.NdJ("click",function(){const je=C.CHM(Ue).$implicit;return C.oxw(2).selectedGroup=je}),C.TgZ(1,"span"),C._uU(2),C.qZA(),C.qZA()}if(2&de){const Ue=Le.$implicit;C.Q6J("value",Ue),C.xp6(2),C.Oqu(Ue.name)}}function q(de,Le){if(1&de){const Ue=C.EpF();C.TgZ(0,"mat-form-field",15),C.TgZ(1,"input",16),C.NdJ("change",function(){return C.CHM(Ue),C.oxw().selectedGroup=null}),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"mat-autocomplete",17,18),C.YNc(5,Y,3,2,"mat-option",19),C.ALo(6,"async"),C.qZA(),C.qZA()}if(2&de){const Ue=C.MAs(4),ze=C.oxw();C.Q6J("@openClose","toGroup"===ze.moveOption?"open":"closed"),C.xp6(1),C.s9C("placeholder",C.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),C.Q6J("formControl",ze.otherGroupsCtrl)("matAutocomplete",Ue),C.xp6(2),C.Q6J("displayWith",ze.displayFn),C.xp6(2),C.Q6J("ngForOf",C.lcZ(6,8,ze.filteredGroups))}}function te(de,Le){1&de&&C._UZ(0,"mat-spinner",21)}let ue=(()=>{class de{constructor(Ue,ze,le,je,ye,Be,W){this.dialogRef=Ue,this.data=ze,this.groupService=le,this.notificator=je,this.translate=ye,this.apiRequest=Be,this.authResolver=W,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new b.NI(null,[b.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(R=>this.successMessage=R),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(R=>this.errorMessage=R)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(Ue=>{this.otherGroups=Ue.filter(ze=>ze.id!==this.data.group.id&&"members"!==ze.name&&this.canMove(ze)),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,_.O)(""),(0,w.U)(ze=>ze?this._filterGroups(ze):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(Ue){return Ue&&Ue.name}canMove(Ue){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[Ue,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,Ue])}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)},Ue=>{this.notificator.showRPCError(Ue,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(Ue){if("object"==typeof Ue)return[];const ze=Ue.toLowerCase();return Ue?this.otherGroups.filter(le=>le.name.toLowerCase().includes(ze)):this.otherGroups}}return de.\u0275fac=function(Ue){return new(Ue||de)(C.Y36(e.so),C.Y36(e.WI),C.Y36(E.ff),C.Y36(A.V6),C.Y36(I.sK),C.Y36(A.F5),C.Y36(A.x4))},de.\u0275cmp=C.Xpm({type:de,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(Ue,ze){1&Ue&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",1),C.TgZ(5,"p"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.TgZ(8,"mat-radio-group",2),C.NdJ("ngModelChange",function(je){return ze.moveOption=je}),C.YNc(9,Re,3,3,"mat-radio-button",3),C.YNc(10,T,3,3,"mat-radio-button",4),C.qZA(),C.YNc(11,j,3,3,"perun-web-apps-alert",5),C.YNc(12,q,7,10,"mat-form-field",6),C.qZA(),C.YNc(13,te,1,0,"mat-spinner",7),C.TgZ(14,"div",8),C.TgZ(15,"button",9),C.NdJ("click",function(){return ze.close()}),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"span",10),C.ALo(19,"translate"),C.TgZ(20,"button",11),C.NdJ("click",function(){return ze.confirm()}),C._uU(21),C.ALo(22,"translate"),C.qZA(),C.qZA(),C.qZA(),C.qZA()),2&Ue&&(C.Tol(ze.data.theme),C.xp6(2),C.AsE("",C.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",ze.data.group.name,""),C.xp6(4),C.hij(" ",C.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),C.xp6(2),C.Q6J("ngModel",ze.moveOption),C.xp6(1),C.Q6J("ngIf",!ze.toRootOptionDisabled),C.xp6(1),C.Q6J("ngIf",!ze.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",ze.toRootOptionDisabled&&ze.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",!ze.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",ze.loading),C.xp6(3),C.hij(" ",C.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),C.Q6J("matTooltipDisabled",null!==ze.selectedGroup||"toRoot"===ze.moveOption)("matTooltipPosition","above"),C.xp6(2),C.Q6J("disabled",(ze.otherGroupsCtrl.invalid||null===ze.selectedGroup)&&"toRoot"!==ze.moveOption||ze.loading),C.xp6(1),C.hij(" ",C.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[e.uh,e.xY,P.VQ,b.JJ,b.On,m.O5,P.U0,L.w,O.KE,G.Nt,b.Fj,ne.ZL,b.Q7,b.oH,ne.XC,m.sg,ge.ey,J.$g,e.H8,Me.lW,oe.gM],pipes:[I.X$,m.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[g.BQ]}}),de})()},58964:($e,_e,p)=>{"use strict";p.d(_e,{m:()=>J});var e=p(48966),b=p(32105),_=p(36908),w=p(5e3),g=p(51062),A=p(69808),E=p(20773),C=p(67322),I=p(74107),P=p(90508),m=p(47423);function L(Me,oe){1&Me&&w._UZ(0,"mat-spinner",7)}function O(Me,oe){if(1&Me&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&Me){const Re=oe.$implicit;w.Q6J("value",Re),w.xp6(1),w.hij(" ",Re.friendlyNameParameter," ")}}function G(Me,oe){if(1&Me&&(w.TgZ(0,"mat-option",13),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Me){const Re=oe.$implicit;w.Q6J("value",Re),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Re))," ")}}function ne(Me,oe){if(1&Me&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&Me){const Re=oe.$implicit;w.Q6J("value",Re),w.xp6(1),w.hij(" ",Re," ")}}function ge(Me,oe){if(1&Me){const Re=w.EpF();w.TgZ(0,"div",8),w.TgZ(1,"mat-form-field"),w.TgZ(2,"mat-label"),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-select",9),w.NdJ("valueChange",function(j){return w.CHM(Re),w.oxw().selectedLogin=j}),w.YNc(6,O,2,2,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(7,"mat-form-field"),w.TgZ(8,"mat-label"),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"mat-select",9),w.NdJ("valueChange",function(j){return w.CHM(Re),w.oxw().selectedLang=j}),w.YNc(12,G,4,6,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(13,"mat-form-field"),w.TgZ(14,"mat-label"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"mat-select",9),w.NdJ("valueChange",function(j){return w.CHM(Re),w.oxw().selectedMail=j}),w.YNc(18,ne,2,2,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(19,"div",11),w.TgZ(20,"p",12),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"p"),w._uU(24),w.qZA(),w.qZA(),w.qZA()}if(2&Me){const Re=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),w.xp6(2),w.Q6J("value",Re.selectedLogin),w.xp6(1),w.Q6J("ngForOf",Re.logins),w.xp6(3),w.Oqu(w.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),w.xp6(2),w.Q6J("value",Re.selectedLang),w.xp6(1),w.Q6J("ngForOf",Re.languages),w.xp6(3),w.Oqu(w.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),w.xp6(2),w.Q6J("value",Re.selectedMail),w.xp6(1),w.Q6J("ngForOf",Re.mails),w.xp6(3),w.Oqu(w.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),w.xp6(3),w.Oqu(Re.selectedLogin.value)}}let J=(()=>{class Me{constructor(Re,T,j,Y,q,te,ue){this.dialogRef=Re,this.data=T,this.membersManagerService=j,this.attributesManagerService=Y,this.store=q,this.translate=te,this.notificator=ue,this.languages=this.store.get("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(de=>this.successMessage=de)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const Re=this.selectedLogin.friendlyNameParameter,j=window.location.href.split("/"),Y=j[0]+"//"+j[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,Re,this.pwdMails.get(this.selectedMail),this.selectedLang,Y).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 Me.\u0275fac=function(Re){return new(Re||Me)(w.Y36(e.so),w.Y36(e.WI),w.Y36(b.uq),w.Y36(b.H8),w.Y36(_.d6),w.Y36(g.sK),w.Y36(_.V6))},Me.\u0275cmp=w.Xpm({type:Me,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"],["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(Re,T){1&Re&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"div",1),w.YNc(4,L,1,0,"mat-spinner",2),w.qZA(),w.YNc(5,ge,25,19,"div",3),w.TgZ(6,"div",4),w.TgZ(7,"button",5),w.NdJ("click",function(){return T.onCancel()}),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"button",6),w.NdJ("click",function(){return T.onSubmit()}),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.qZA()),2&Re&&(w.xp6(1),w.Oqu(w.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),w.xp6(3),w.Q6J("ngIf",T.loading),w.xp6(1),w.Q6J("ngIf",!T.loading),w.xp6(3),w.hij(" ",w.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),w.xp6(2),w.Q6J("disabled",T.loading),w.xp6(1),w.hij(" ",w.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[e.uh,A.O5,E.$g,e.xY,C.KE,C.hX,I.gD,A.sg,P.ey,e.H8,m.lW],pipes:[g.X$,A.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),Me})()},53455:($e,_e,p)=>{"use strict";p.d(_e,{X:()=>Re});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),I=p(47423),P=p(31359);function m(T,j){1&T&&g._UZ(0,"th",13)}function L(T,j){if(1&T&&(g.TgZ(0,"td",14),g._uU(1),g.qZA()),2&T){const Y=j.$implicit;g.xp6(1),g.Oqu(Y.id)}}function O(T,j){1&T&&g._UZ(0,"th",13)}function G(T,j){if(1&T&&(g.TgZ(0,"td",14),g._uU(1),g.ALo(2,"userFullName"),g.qZA()),2&T){const Y=j.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,Y.user))}}function ne(T,j){1&T&&g._UZ(0,"tr",15)}function ge(T,j){1&T&&g._UZ(0,"tr",16)}function J(T,j){if(1&T&&(g.TgZ(0,"div",4),g.TgZ(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",5),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",6),g.ynx(8,7),g.YNc(9,m,1,0,"th",8),g.YNc(10,L,2,1,"td",9),g.BQk(),g.ynx(11,10),g.YNc(12,O,1,0,"th",8),g.YNc(13,G,3,3,"td",9),g.BQk(),g.YNc(14,ne,1,0,"tr",11),g.YNc(15,ge,1,0,"tr",12),g.qZA(),g.qZA()),2&T){const Y=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,Y.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),g.xp6(2),g.Q6J("dataSource",Y.dataSource),g.xp6(7),g.Q6J("matHeaderRowDef",Y.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",Y.displayedColumns)}}function Me(T,j){1&T&&g._UZ(0,"mat-spinner",17)}function oe(T,j){if(1&T){const Y=g.EpF();g.TgZ(0,"div",18),g.TgZ(1,"button",19),g.NdJ("click",function(){return g.CHM(Y),g.oxw().onCancel()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",20),g.NdJ("click",function(){return g.CHM(Y),g.oxw().onSubmit()}),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.qZA()}if(2&T){const Y=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(6,4,Y.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let Re=(()=>{class T{constructor(Y,q,te,ue,de,Le){this.dialogRef=Y,this.data=q,this.membersService=te,this.groupService=ue,this.notificator=de,this.translate=Le,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.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(Y=>Y.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(Y=>Y.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const Y=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(Y),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return T.\u0275fac=function(Y){return new(Y||T)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.uq),g.Y36(w.ff),g.Y36(_.V6),g.Y36(A.sK))},T.\u0275cmp=g.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(Y,q){1&Y&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,J,16,9,"div",1),g.YNc(5,Me,1,0,"mat-spinner",2),g.YNc(6,oe,7,6,"div",3),g.qZA()),2&Y&&(g.Tol(q.theme),g.xp6(2),g.Oqu(g.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),g.xp6(2),g.Q6J("ngIf",!q.loading),g.xp6(1),g.Q6J("ngIf",q.loading),g.xp6(1),g.Q6J("ngIf",!q.loading))},directives:[e.uh,E.O5,e.xY,b.BZ,b.w1,b.fO,b.ge,b.Dz,b.ev,b.as,b.XQ,b.nj,b.Gk,C.$g,e.H8,I.lW],pipes:[A.X$,P.d],styles:[""]}),T})()},533:($e,_e,p)=>{"use strict";p.d(_e,{f:()=>C});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.notificator=O,this.translate=G,this.resourcesManager=ne,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.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(m=>{this.loading=!1,this.notificator.showSuccess(m),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(m){m.deleted?this.onDelete():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(A.sK),g.Y36(w.xk))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","resources")("disableForce",!0)("loading",L.loading))},directives:[E.e],styles:[""]}),I})()},11717:($e,_e,p)=>{"use strict";p.d(_e,{o:()=>C});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.notificator=O,this.voService=G,this.translate=ne,this.force=!1,this.displayedColumns=["name"],this.relations=[],ne.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(ge=>this.successMessage=ge)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.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(m){this.force=m.force,m.deleted?this.onDelete():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(w.YF),g.Y36(A.sK))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","organizations")("loading",L.loading)("relations",L.relations))},directives:[E.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),I})()},1186:($e,_e,p)=>{"use strict";p.d(_e,{E:()=>ge});var e=p(48966),b=p(32105),_=p(5e3),w=p(69808),g=p(20773),A=p(67322),E=p(98833),C=p(93075),I=p(74107),P=p(90508),m=p(47423),L=p(51062);function O(J,Me){1&J&&_._UZ(0,"mat-spinner",6)}function G(J,Me){if(1&J){const oe=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"mat-form-field",9),_.TgZ(2,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(oe),_.oxw(2).embeddedState=T}),_.ALo(3,"translate"),_.TgZ(4,"mat-option",11),_._uU(5),_.ALo(6,"translate"),_.qZA(),_.TgZ(7,"mat-option",12),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&J){const oe=_.oxw(2);_.xp6(2),_.MGl("placeholder","",_.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),_.Q6J("value",oe.embeddedState),_.xp6(3),_.Oqu(_.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function ne(J,Me){if(1&J){const oe=_.EpF();_.TgZ(0,"div",7),_.TgZ(1,"mat-form-field"),_.TgZ(2,"input",8),_.NdJ("ngModelChange",function(T){return _.CHM(oe),_.oxw().moduleName=T}),_.ALo(3,"translate"),_.qZA(),_.qZA(),_.TgZ(4,"mat-form-field",9),_.TgZ(5,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(oe),_.oxw().initialState=T}),_.ALo(6,"translate"),_.TgZ(7,"mat-option",11),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"mat-option",12),_._uU(11),_.ALo(12,"translate"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"mat-form-field",9),_.TgZ(14,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(oe),_.oxw().extensionState=T}),_.ALo(15,"translate"),_.TgZ(16,"mat-option",11),_._uU(17),_.ALo(18,"translate"),_.qZA(),_.TgZ(19,"mat-option",12),_._uU(20),_.ALo(21,"translate"),_.qZA(),_.qZA(),_.qZA(),_.YNc(22,G,10,10,"div",13),_.qZA()}if(2&J){const oe=_.oxw();_.xp6(2),_.s9C("placeholder",_.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),_.Q6J("ngModel",oe.moduleName),_.xp6(3),_.MGl("placeholder","",_.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),_.Q6J("value",oe.initialState),_.xp6(3),_.Oqu(_.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),_.xp6(3),_.MGl("placeholder","",_.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),_.Q6J("value",oe.extensionState),_.xp6(3),_.Oqu(_.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),_.xp6(2),_.Q6J("ngIf","group"===oe.entity&&oe.autoRegistrationEnabled)}}let ge=(()=>{class J{constructor(oe,Re,T){this.dialogRef=oe,this.data=Re,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(oe=>{this.dialogRef.close(oe)},()=>this.loading=!1)}}return J.\u0275fac=function(oe){return new(oe||J)(_.Y36(e.so),_.Y36(e.WI),_.Y36(b.tk))},J.\u0275cmp=_.Xpm({type:J,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(oe,Re){1&oe&&(_.TgZ(0,"div"),_.TgZ(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,O,1,0,"mat-spinner",1),_.YNc(5,ne,23,25,"div",2),_.TgZ(6,"div",3),_.TgZ(7,"button",4),_.NdJ("click",function(){return Re.onCancel()}),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"button",5),_.NdJ("click",function(){return Re.submit()}),_._uU(11),_.ALo(12,"translate"),_.qZA(),_.qZA(),_.qZA()),2&oe&&(_.Tol(Re.theme),_.xp6(2),_.Oqu(_.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),_.xp6(2),_.Q6J("ngIf",Re.loading),_.xp6(1),_.Q6J("ngIf",!Re.loading),_.xp6(3),_.hij(" ",_.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),_.xp6(2),_.Q6J("disabled",Re.loading),_.xp6(1),_.hij(" ",_.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[e.uh,w.O5,g.$g,e.xY,A.KE,E.Nt,C.Fj,C.JJ,C.On,I.gD,P.ey,e.H8,m.lW],pipes:[L.X$],styles:[""]}),J})()},60205:($e,_e,p)=>{"use strict";p.d(_e,{Q:()=>W});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(36908),E=p(18750),C=p(77446),I=p(69808),P=p(25245),m=p(29772),L=p(50301),O=p(11735),G=p(98380),ne=p(51062);function ge(R,me){if(1&R){const be=e.EpF();e.TgZ(0,"th",18),e.TgZ(1,"mat-checkbox",19),e.NdJ("change",function(pe){e.CHM(be);const Se=e.oxw();return pe?Se.masterToggle():null}),e.qZA(),e.qZA()}if(2&R){const be=e.oxw();e.xp6(1),e.Q6J("aria-label",be.checkboxLabel())("checked",be.selection.hasValue()&&be.isAllSelected())("indeterminate",be.selection.hasValue()&&!be.isAllSelected())}}function J(R,me){if(1&R){const be=e.EpF();e.TgZ(0,"td",20),e.TgZ(1,"mat-checkbox",21),e.NdJ("change",function(pe){const Xe=e.CHM(be).$implicit,Je=e.oxw();return pe?Je.selection.toggle(Xe):null})("click",function(pe){return pe.stopPropagation()}),e.qZA(),e.qZA()}if(2&R){const be=me.$implicit,Ie=e.oxw();e.xp6(1),e.Q6J("aria-label",Ie.checkboxLabel(be))("checked",Ie.selection.isSelected(be))}}function Me(R,me){1&R&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function oe(R,me){if(1&R&&(e.TgZ(0,"td",23),e._uU(1),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Oqu(be.id)}}function Re(R,me){1&R&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function T(R,me){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Oqu(be.name)}}function j(R,me){1&R&&e._UZ(0,"th",25)}function Y(R,me){1&R&&(e.TgZ(0,"mat-icon",27),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&R&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function q(R,me){1&R&&(e.TgZ(0,"mat-icon",27),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&R&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function te(R,me){if(1&R&&(e.TgZ(0,"td",24),e.YNc(1,Y,3,3,"mat-icon",26),e.YNc(2,q,3,3,"mat-icon",26),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Q6J("ngIf",be.enabled),e.xp6(1),e.Q6J("ngIf",!be.enabled)}}function ue(R,me){1&R&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function de(R,me){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Oqu(be.script)}}function Le(R,me){1&R&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function Ue(R,me){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Oqu(be.description)}}function ze(R,me){1&R&&e._UZ(0,"tr",28)}const le=function(R){return["/admin/services",R]};function je(R,me){if(1&R&&e._UZ(0,"tr",29),2&R){const be=me.$implicit,Ie=e.oxw();e.ekj("cursor-pointer",!Ie.disableRouting)("disable-outline",Ie.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",Ie.disableRouting?null:e.VKq(6,le,be.id))("routerLink",Ie.disableRouting?null:e.VKq(8,le,be.id))}}function ye(R,me){1&R&&(e.TgZ(0,"perun-web-apps-alert",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Be(R,me){1&R&&(e.TgZ(0,"perun-web-apps-alert",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let W=(()=>{class R{constructor(be,Ie){this.authResolver=be,this.tableCheckbox=Ie,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=g.f7}set matSort(be){this.sort=be,this.setDataSource()}static getDataForColumn(be,Ie){switch(Ie){case"id":return be.id.toString();case"name":return be.name;case"enabled":return be.enabled?"true":"false";case"script":return be.script;case"description":return be.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(be=>"id"!==be)),this.dataSource=new _.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportData(be){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,R.getDataForColumn),be)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(be,Ie)=>(0,g.Sd)(be,Ie,this.displayedColumns,R.getDataForColumn),this.dataSource.sortData=(be,Ie)=>(0,g.pR)(be,Ie,R.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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(be){return be?`${this.selection.isSelected(be)?"deselect":"select"} row ${be.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return R.\u0275fac=function(be){return new(be||R)(e.Y36(A.x4),e.Y36(A.UA))},R.\u0275cmp=e.Xpm({type:R,selectors:[["app-services-list"]],viewQuery:function(be,Ie){if(1&be&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&be){let pe;e.iGM(pe=e.CRH())&&(Ie.child=pe.first),e.iGM(pe=e.CRH())&&(Ie.matSort=pe.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","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"],["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",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(be,Ie){1&be&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(Se){return Ie.exportData(Se)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ge,2,3,"th",4),e.YNc(5,J,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Me,3,3,"th",7),e.YNc(8,oe,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Re,3,3,"th",7),e.YNc(11,T,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,j,1,0,"th",12),e.YNc(14,te,3,2,"td",10),e.BQk(),e.ynx(15,13),e.YNc(16,ue,3,3,"th",12),e.YNc(17,de,2,1,"td",10),e.BQk(),e.ynx(18,14),e.YNc(19,Le,3,3,"th",7),e.YNc(20,Ue,2,1,"td",10),e.BQk(),e.YNc(21,ze,1,0,"tr",15),e.YNc(22,je,1,10,"tr",16),e.qZA(),e.qZA(),e.qZA(),e.YNc(23,ye,3,3,"perun-web-apps-alert",17),e.YNc(24,Be,3,3,"perun-web-apps-alert",17)),2&be&&(e.Q6J("hidden",void 0===Ie.services||0===Ie.services.length||0===Ie.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",Ie.pageSizeOptions)("dataLength",Ie.dataSource.filteredData.length)("tableId",Ie.tableId),e.xp6(1),e.Q6J("dataSource",Ie.dataSource),e.xp6(19),e.Q6J("matHeaderRowDef",Ie.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ie.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Ie.dataSource.filteredData.length&&void 0!==Ie.services&&0!==Ie.services.length),e.xp6(1),e.Q6J("ngIf",void 0===Ie.services||0===Ie.services.length))},directives:[E.l,_.BZ,b.YE,_.w1,_.fO,_.ge,C.oG,_.Dz,_.ev,b.nU,I.O5,P.Hw,m.gM,_.as,_.XQ,_.nj,_.Gk,L.YH,O.rH,G.w],pipes:[ne.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),R})()},64877:($e,_e,p)=>{"use strict";p.d(_e,{C:()=>Xe});var e=p(84847),b=p(32075),_=p(20449),w=p(9244),g=p(36908),A=p(5e3),E=p(18750),C=p(69808),I=p(77446),P=p(25245),m=p(29772),L=p(50301),O=p(98380),G=p(51062),ne=p(31359),ge=p(9954),J=p(16119),Me=p(7598);function oe(Je,nt){if(1&Je){const Ve=A.EpF();A.TgZ(0,"mat-checkbox",21),A.NdJ("change",function(z){A.CHM(Ve);const Q=A.oxw(2);return z?Q.masterToggle():null}),A.qZA()}if(2&Je){const Ve=A.oxw(2);A.Q6J("aria-label",Ve.checkboxLabel())("checked",Ve.selection.hasValue()&&Ve.isAllSelected())("indeterminate",Ve.selection.hasValue()&&!Ve.isAllSelected())}}function Re(Je,nt){if(1&Je&&(A.TgZ(0,"th",19),A.YNc(1,oe,1,3,"mat-checkbox",20),A.qZA()),2&Je){const Ve=A.oxw();A.xp6(1),A.Q6J("ngIf",Ve.selection.isMultipleSelection())}}function T(Je,nt){if(1&Je){const Ve=A.EpF();A.TgZ(0,"td",22),A.TgZ(1,"mat-checkbox",23),A.NdJ("change",function(z){const D=A.CHM(Ve).$implicit,H=A.oxw();return z?H.selection.toggle(D):null})("click",function(z){return z.stopPropagation()}),A.ALo(2,"lowercase"),A.qZA(),A.qZA()}if(2&Je){const Ve=nt.$implicit,X=A.oxw();A.xp6(1),A.Q2q("data-cy","",A.lcZ(2,4,Ve.firstName),"-checkbox"),A.Q6J("aria-label",X.checkboxLabel(Ve))("checked",X.selection.isSelected(Ve))("disabled",X.disableSelf&&Ve.id===X.principalId&&!X.authResolver.isPerunAdmin())}}function j(Je,nt){1&Je&&A._UZ(0,"th",24)}function Y(Je,nt){1&Je&&(A.TgZ(0,"mat-icon",28),A.ALo(1,"translate"),A._uU(2," account_circle "),A.qZA()),2&Je&&A.s9C("matTooltip",A.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function q(Je,nt){if(1&Je&&(A._UZ(0,"mat-icon",29),A.ALo(1,"translate")),2&Je){const Ve=A.oxw(2);A.s9C("matTooltip",A.lcZ(1,2,"MANAGERS_LIST.SERVICE")),A.Q6J("svgIcon",Ve.svgIcon)}}function te(Je,nt){if(1&Je&&(A.TgZ(0,"td",25),A.YNc(1,Y,3,3,"mat-icon",26),A.YNc(2,q,2,4,"mat-icon",27),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Q6J("ngIf",!Ve.serviceUser),A.xp6(1),A.Q6J("ngIf",Ve.serviceUser)}}function ue(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function de(Je,nt){if(1&Je&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.hij(" ",Ve.id," ")}}function Le(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Ue(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userFullName"),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,Ve))}}function ze(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function le(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userVo"),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,Ve))}}function je(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function ye(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userEmail"),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,Ve))}}function Be(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function W(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userLogins"),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,Ve))}}function R(Je,nt){1&Je&&A._UZ(0,"tr",32)}const me=function(Je){return["/admin/users",Je]},be=function(Je){return["/myProfile/service-identities",Je]};function Ie(Je,nt){if(1&Je&&A._UZ(0,"tr",33),2&Je){const Ve=nt.$implicit,X=A.oxw();A.ekj("cursor-pointer",!X.disableRouting),A.Q6J("perunWebAppsForceRouterLink",X.disableRouting?null:X.routeToAdmin?A.VKq(4,me,Ve.id):A.VKq(6,be,Ve.id))("perunWebAppsMiddleClickRouterLink",X.disableRouting?null:X.routeToAdmin?A.VKq(8,me,Ve.id):A.VKq(10,be,Ve.id))}}function pe(Je,nt){if(1&Je&&(A.TgZ(0,"perun-web-apps-alert",34),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je){const Ve=A.oxw();A.xp6(1),A.hij(" ",Ve.noUsersFoundLabel?Ve.noUsersFoundLabel:A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function Se(Je,nt){1&Je&&(A.TgZ(0,"perun-web-apps-alert",34),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Xe=(()=>{class Je{constructor(Ve,X,z){this.authResolver=Ve,this.tableCheckbox=X,this.storeService=z,this.selection=new _.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=w.f7}set matSort(Ve){this.sort=Ve}static getDataForColumn(Ve,X){var z;switch(X){case"id":return Ve.id.toString();case"user":return Ve.serviceUser?"true":"false";case"name":return Ve?Ve.lastName?Ve.lastName:null!==(z=Ve.firstName)&&void 0!==z?z:"":"";case"organization":return(0,w.OV)(Ve);case"email":return(0,w.kN)(Ve);case"logins":return(0,w.lt)(Ve);default:return""}}static getExportDataForColumn(Ve,X){switch(X){case"id":return Ve.id.toString();case"user":return Ve.serviceUser?"service-user":"user";case"name":return Ve?(0,w.bD)(Ve):"";case"organization":return(0,w.OV)(Ve);case"email":return(0,w.kN)(Ve);case"logins":return(0,w.lt)(Ve);default:return""}}exportData(Ve){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Je.getExportDataForColumn),Ve)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ve,X)=>(0,w.Sd)(Ve,X,this.displayedColumns,Je.getDataForColumn),this.dataSource.sortData=(Ve,X)=>(0,w.pR)(Ve,X,Je.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(Ve=>"id"!==Ve)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(Ve){return Ve?`${this.selection.isSelected(Ve)?"deselect":"select"} row ${Ve.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Je.\u0275fac=function(Ve){return new(Ve||Je)(A.Y36(g.x4),A.Y36(g.UA),A.Y36(g.d6))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["app-users-list"]],viewQuery:function(Ve,X){if(1&Ve&&(A.Gf(w.l9,7),A.Gf(e.YE,7)),2&Ve){let z;A.iGM(z=A.CRH())&&(X.child=z.first),A.iGM(z=A.CRH())&&(X.matSort=z.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[A.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["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","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["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,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(Ve,X){1&Ve&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(Q){return X.exportData(Q)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,Re,2,1,"th",4),A.YNc(5,T,3,6,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,j,1,0,"th",7),A.YNc(8,te,3,2,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,ue,3,3,"th",10),A.YNc(11,de,2,1,"td",8),A.BQk(),A.ynx(12,11),A.YNc(13,Le,3,3,"th",10),A.YNc(14,Ue,3,3,"td",12),A.BQk(),A.ynx(15,13),A.YNc(16,ze,3,3,"th",10),A.YNc(17,le,3,3,"td",12),A.BQk(),A.ynx(18,14),A.YNc(19,je,3,3,"th",10),A.YNc(20,ye,3,3,"td",12),A.BQk(),A.ynx(21,15),A.YNc(22,Be,3,3,"th",10),A.YNc(23,W,3,3,"td",12),A.BQk(),A.YNc(24,R,1,0,"tr",16),A.YNc(25,Ie,1,12,"tr",17),A.qZA(),A.qZA(),A.qZA(),A.YNc(26,pe,3,3,"perun-web-apps-alert",18),A.YNc(27,Se,3,3,"perun-web-apps-alert",18)),2&Ve&&(A.Q6J("hidden",0===X.users.length||!X.dataSource||0===X.dataSource.filteredData.length),A.xp6(1),A.Q6J("dataLength",X.dataSource.filteredData.length)("pageSizeOptions",X.pageSizeOptions)("tableId",X.tableId),A.xp6(1),A.Q6J("dataSource",X.dataSource),A.xp6(22),A.Q6J("matHeaderRowDef",X.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",X.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===X.users.length),A.xp6(1),A.Q6J("ngIf",0===X.dataSource.filteredData.length&&0!==X.users.length))},directives:[E.l,b.BZ,e.YE,b.w1,b.fO,b.ge,C.O5,I.oG,b.Dz,b.ev,P.Hw,m.gM,e.nU,b.as,b.XQ,b.nj,b.Gk,L.Kd,L.YH,O.w],pipes:[C.i8,G.X$,ne.d,ge.Z,J.S,Me.g],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Je})()},57706:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>_});var e=p(5e3),b=p(51062);let _=(()=>{class w{constructor(A){this.translateService=A,this.returnData=""}transform(A){switch(A){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(E=>{this.returnData=E});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(E=>{this.returnData=E});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(E=>{this.returnData=E});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(E=>{this.returnData=E});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(E=>{this.returnData=E});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(E=>{this.returnData=E});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(E=>{this.returnData=E});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(E=>{this.returnData=E});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(E=>{this.returnData=E});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(E=>{this.returnData=E});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(E=>{this.returnData=E});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(E=>{this.returnData=E});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(E=>{this.returnData=E});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(E=>{this.returnData=E});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(E=>{this.returnData=E});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.LIST_INPUT_BOX").subscribe(E=>{this.returnData=E});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.MAP_INPUT_BOX").subscribe(E=>{this.returnData=E});break;default:return A}return this.returnData}}return w.\u0275fac=function(A){return new(A||w)(e.Y36(b.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:w,pure:!0}),w})()},43157:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>_});var e=p(5e3),b=p(51062);let _=(()=>{class w{constructor(A){this.translate=A,this.returnData=""}transform(A){switch(A){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(E=>{this.returnData=`done${E}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(E=>{this.returnData=`clear${E}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(E=>{this.returnData=`contact_mail ${E}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(E=>{this.returnData=`gavel${E}`});break;default:this.returnData=A}return this.returnData}}return w.\u0275fac=function(A){return new(A||w)(e.Y36(b.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationState",type:w,pure:!1}),w})()},70844:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>_});var e=p(36908),b=p(5e3);let _=(()=>{class w{constructor(A){this.storeService=A,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(A,E,C){return!!(this.storeService.get("enforce_consents")&&C&&E)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((P,m)=>P||A.startsWith(m),!1)}}return w.\u0275fac=function(A){return new(A||w)(b.Y36(e.d6,16))},w.\u0275pipe=b.Yjl({name:"consentRelatedAttribute",type:w,pure:!0}),w})()},37677:($e,_e,p)=>{"use strict";p.d(_e,{A:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.substring(40)}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"extSourceType",type:_,pure:!0}),_})()},14264:($e,_e,p)=>{"use strict";p.d(_e,{m:()=>ce});var e=p(69808),b=p(11735),_=p(91079),w=p(47423),g=p(77446),A=p(90508),E=p(86856),C=p(48966),I=p(4834),P=p(81125),m=p(67322),L=p(25245),O=p(98833),G=p(86087),ne=p(85899),ge=p(20773),J=p(79814),Me=p(74107),oe=p(2638),Re=p(32368),T=p(57261),j=p(84847),Y=p(32075),q=p(53251),te=p(29772),ue=p(90149),de=p(9224),Le=p(27544),Ue=p(26688),ze=p(92181),le=p(92081),je=p(93075),ye=p(73228),Be=p(36769),W=p(36908),R=p(5e3),me=p(50301),be=p(51062);const Ie=["collapse"],pe=function(){return{color:"linkTextColor"}};function Se(He,ct){1&He&&(R.TgZ(0,"mat-icon",14),R._uU(1,"keyboard_arrow_right"),R.qZA()),2&He&&R.Q6J("ngStyle",R.DdM(1,pe))}function Xe(He,ct){1&He&&(R.TgZ(0,"mat-icon",14),R._uU(1,"keyboard_arrow_down"),R.qZA()),2&He&&R.Q6J("ngStyle",R.DdM(1,pe))}function Je(He,ct){if(1&He&&(R.TgZ(0,"span",12),R.YNc(1,Se,2,2,"mat-icon",13),R.YNc(2,Xe,2,2,"mat-icon",13),R.qZA()),2&He){const bt=R.oxw().$implicit,xt=R.oxw(2);R.xp6(1),R.Q6J("ngIf",!xt.isActive(xt.currentUrl,bt.showChildrenRegex)),R.xp6(1),R.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const nt=function(He,ct){return{color:He,"border-color":ct}};function Ve(He,ct){if(1&He){const bt=R.EpF();R.TgZ(0,"a",17),R.NdJ("click",function(){const It=R.CHM(bt).$implicit;return R.oxw(4).navigate(It.url)}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&He){const bt=ct.$implicit,xt=R.oxw(4);R.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",R.WLB(9,nt,xt.linkTextColor,xt.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(2,7,bt.label)," ")}}function X(He,ct){if(1&He&&(R.TgZ(0,"div",15),R.YNc(1,Ve,3,12,"a",16),R.qZA()),2&He){const bt=R.oxw().$implicit;R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",null==bt?null:bt.children)}}function z(He,ct){if(1&He){const bt=R.EpF();R.TgZ(0,"div"),R.TgZ(1,"a",9),R.NdJ("click",function(){const It=R.CHM(bt).$implicit;return R.oxw(2).navigate(It.url)}),R._uU(2),R.ALo(3,"translate"),R.YNc(4,Je,3,2,"span",10),R.qZA(),R.YNc(5,X,2,2,"div",11),R.qZA()}if(2&He){const bt=ct.$implicit,xt=R.oxw(2);R.xp6(1),R.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",R.WLB(11,nt,xt.linkTextColor,xt.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(3,9,bt.label)," "),R.xp6(2),R.Q6J("ngIf",bt.children),R.xp6(1),R.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}function Q(He,ct){if(1&He&&(R.TgZ(0,"div"),R.YNc(1,z,6,14,"div",8),R.qZA()),2&He){const bt=R.oxw();R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",bt.item.links)}}const D=function(He,ct){return{background:He,"border-top":ct}},H=function(He){return{color:He}},V=function(){return{color:"currentColor"}},xe=function(He){return{background:He}};let Qe=(()=>{class He{constructor(bt,xt){this.router=bt,this.store=xt,this.expanded=!0,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=bt.url,bt.events.subscribe(Yt=>{Yt instanceof b.m2&&(this.currentUrl=Yt.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(bt,xt){return new RegExp(xt).test(bt)}navigate(bt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(bt)):this.router.navigate(bt)}}return He.\u0275fac=function(bt){return new(bt||He)(R.Y36(b.F0),R.Y36(W.d6))},He.\u0275cmp=R.Xpm({type:He,selectors:[["app-side-menu-item"]],viewQuery:function(bt,xt){if(1&bt&&R.Gf(Ie,5),2&bt){let Yt;R.iGM(Yt=R.CRH())&&(xt.collapseDiv=Yt.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(bt,xt){1&bt&&(R.TgZ(0,"div",0),R.TgZ(1,"div",1),R.NdJ("click",function(){return xt.toggle()}),R.TgZ(2,"div",2),R.TgZ(3,"a",3),R.TgZ(4,"div"),R._UZ(5,"mat-icon",4),R.qZA(),R.TgZ(6,"div",5),R._uU(7),R.ALo(8,"translate"),R.qZA(),R.qZA(),R.qZA(),R.qZA(),R.TgZ(9,"div"),R.TgZ(10,"div",6),R.YNc(11,Q,2,2,"div",7),R.qZA(),R.qZA(),R.qZA()),2&bt&&(R.xp6(1),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.WLB(18,D,xt.item.backgroundColorCss,xt.index?xt.dividerStyle:"none")),R.xp6(1),R.Gre("entity-menu-item-link ",xt.item.labelClass,""),R.Q6J("perunWebAppsMiddleClickRouterLink",xt.item.baseLink),R.xp6(1),R.Q6J("ngStyle",R.VKq(21,H,xt.item.textColorCss)),R.xp6(2),R.Q6J("ngStyle",R.DdM(23,V))("svgIcon",xt.item.icon),R.xp6(2),R.Oqu(R.lcZ(8,16,xt.item.label)),R.xp6(2),R.Q6J("@openClose",xt.expanded?"open":"closed"),R.xp6(1),R.Gre("side-entity-menu ",xt.item.linksClass,""),R.Q6J("ngStyle",R.VKq(24,xe,xt.linkBgColor)),R.xp6(1),R.Q6J("ngIf",xt.showLinks))},directives:[A.wG,e.PC,me.YH,L.Hw,e.O5,e.sg,e.mk],pipes:[be.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-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:[Be.BQ,Be.Ly]}}),He})(),Te=(()=>{class He{transform(bt){if(void 0===bt.value)return"";switch(bt.type){case"java.lang.String":return bt.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(bt.value);case"java.util.ArrayList":return this.whenValueIsArray(bt.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(bt.value)}}whenValueIsArray(bt){let xt="";return bt.forEach(function(Yt){xt=xt.concat(Yt+", ")}),xt}whenValueIsMap(bt){let xt="";return bt.forEach((Yt,It)=>{xt=xt.concat(It+": "+Yt+", ")}),xt}}return He.\u0275fac=function(bt){return new(bt||He)},He.\u0275pipe=R.Yjl({name:"anyToString",type:He,pure:!0}),He})();const Ae=["collapse"],ae=function(){return{color:"linkTextColor"}};function i(He,ct){1&He&&(R.TgZ(0,"mat-icon",12),R._uU(1,"keyboard_arrow_right"),R.qZA()),2&He&&R.Q6J("ngStyle",R.DdM(1,ae))}function o(He,ct){1&He&&(R.TgZ(0,"mat-icon",12),R._uU(1,"keyboard_arrow_down"),R.qZA()),2&He&&R.Q6J("ngStyle",R.DdM(1,ae))}function d(He,ct){if(1&He&&(R.TgZ(0,"span",10),R.YNc(1,i,2,2,"mat-icon",11),R.YNc(2,o,2,2,"mat-icon",11),R.qZA()),2&He){const bt=R.oxw().$implicit,xt=R.oxw();R.xp6(1),R.Q6J("ngIf",!xt.isActive(xt.currentUrl,bt.showChildrenRegex)),R.xp6(1),R.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const l=function(He,ct){return{color:He,"border-color":ct}};function s(He,ct){if(1&He){const bt=R.EpF();R.TgZ(0,"a",14),R.NdJ("click",function(){const It=R.CHM(bt).$implicit;return R.oxw(3).navigate(It.url)}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&He){const bt=ct.$implicit,xt=R.oxw(3);R.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.WLB(9,l,xt.linkTextColor,xt.linkTextColor))("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",bt.url),R.xp6(1),R.hij(" ",R.lcZ(2,7,bt.label)," ")}}function r(He,ct){if(1&He&&(R.TgZ(0,"div"),R.YNc(1,s,3,12,"a",13),R.qZA()),2&He){const bt=R.oxw().$implicit;R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",null==bt?null:bt.children)}}function t(He,ct){if(1&He){const bt=R.EpF();R.TgZ(0,"div"),R.TgZ(1,"a",7),R.NdJ("click",function(){const It=R.CHM(bt).$implicit;return R.oxw().navigate(It.url)}),R._uU(2),R.ALo(3,"translate"),R.YNc(4,d,3,2,"span",8),R.qZA(),R.YNc(5,r,2,2,"div",9),R.qZA()}if(2&He){const bt=ct.$implicit,xt=R.oxw();R.xp6(1),R.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",R.WLB(11,l,xt.linkTextColor,xt.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(3,9,bt.label)," "),R.xp6(2),R.Q6J("ngIf",bt.children),R.xp6(1),R.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const n=function(He){return{background:He}},a=function(He){return{color:He}},c=function(){return{color:"currentColor"}};let h=(()=>{class He{constructor(bt,xt){this.router=bt,this.store=xt,this.id="",this.expanded=!1,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.currentUrl=bt.url,bt.events.subscribe(Yt=>{Yt instanceof b.m2&&(this.currentUrl=Yt.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(bt,xt){return new RegExp(xt).test(bt)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(bt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(bt)):this.router.navigate(bt)}}return He.\u0275fac=function(bt){return new(bt||He)(R.Y36(b.F0),R.Y36(W.d6))},He.\u0275cmp=R.Xpm({type:He,selectors:[["app-side-menu-root-item"]],viewQuery:function(bt,xt){if(1&bt&&R.Gf(Ae,5),2&bt){let Yt;R.iGM(Yt=R.CRH())&&(xt.collapseDiv=Yt.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[R.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(bt,xt){1&bt&&(R.TgZ(0,"div",0),R.TgZ(1,"div",1),R.NdJ("click",function(){return xt.toggle()}),R.TgZ(2,"div"),R.TgZ(3,"a",2),R.TgZ(4,"div"),R._UZ(5,"mat-icon",3),R.qZA(),R.TgZ(6,"div",4),R._uU(7),R.ALo(8,"translate"),R.qZA(),R.qZA(),R.qZA(),R.qZA(),R.TgZ(9,"div"),R.TgZ(10,"div",5),R.YNc(11,t,6,14,"div",6),R.qZA(),R.qZA(),R.qZA()),2&bt&&(R.s9C("id",xt.id),R.xp6(1),R.ekj("root-header-activated",xt.isActive(xt.currentUrl,xt.item.baseColorClassRegex)),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.VKq(21,n,xt.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",xt.item.baseLink),R.xp6(1),R.Gre("entity-menu-item-link ",xt.item.labelClass,""),R.xp6(1),R.Q6J("ngStyle",R.VKq(23,a,xt.item.textColorCss)),R.xp6(2),R.Q6J("ngStyle",R.DdM(25,c))("svgIcon",xt.item.icon),R.xp6(2),R.Oqu(R.lcZ(8,19,xt.item.label)),R.xp6(2),R.Q6J("@openClose",xt.expanded?"open":"closed"),R.xp6(1),R.Gre("side-entity-menu ",xt.item.linksClass,""),R.Q6J("ngStyle",R.VKq(26,n,xt.linkBgColor)),R.xp6(1),R.Q6J("ngForOf",xt.item.links))},directives:[A.wG,e.PC,me.YH,L.Hw,e.sg,e.mk,e.O5],pipes:[be.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}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-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}.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:[Be.BQ,Be.Ly]}}),He})();var x=p(44409),We=p(53435),At=p(63189),Ht=p(37677),lt=p(387),Ut=p(11243),mt=p(19516),Lt=p(43586),Ee=p(14623),Ge=p(9244),U=p(28499),k=p(70844),ie=p(16074);let ce=(()=>{class He{constructor(bt){this.translate=bt,bt.addLangs(["en","cs"])}}return He.\u0275fac=function(bt){return new(bt||He)(R.LFG(be.sK))},He.\u0275mod=R.oAB({type:He}),He.\u0275inj=R.cJS({providers:[Te,Ht.A,k.u],imports:[[e.ez,b.Bz,_.Bb,O.c,m.lN,je.UX,je.u5,L.Ps,oe.SJ,P.To,be.aw.forChild({}),w.ot,j.JX,Y.p0,q.Nh,ue.dp,w.ot,g.p9,C.Is,Me.LD,T.ZX,ge.Cq,ne.Cv,te.AV,Re.rP,E.FA,A.XK,J.Fk,I.t,A.si,G.TU,de.QW,le.T5,x._t,de.QW,Ue.Hi,ze.Tx,We.Cl,At.r,Le.g,lt.ez,Ut.r,mt.d4,Lt.Co,Ee.ie,Ge.Je,U.E3,ie.jD],Lt.Co,_.Bb,O.c,b.Bz,je.UX,je.u5,L.Ps,oe.SJ,be.aw,j.JX,Y.p0,q.Nh,ue.dp,w.ot,g.p9,C.Is,Me.LD,T.ZX,ge.Cq,ne.Cv,te.AV,Re.rP,E.FA,A.XK,J.Fk,I.t,de.QW,le.T5,A.si,G.TU,x._t,Ue.Hi,Ue.Hi,P.To,ze.Tx,We.Cl,We.Cl,We.Cl,Ut.r]}),He})();R.B6R(ye.V,[h,e.sg,Qe,e.O5],[])},69024:($e,_e,p)=>{"use strict";p.d(_e,{V:()=>C});var e=p(36908),b=p(32105),_=p(9244),w=p(19516),g=p(64080),A=p(5e3),E=p(51062);let C=(()=>{class I{constructor(m,L,O,G,ne,ge,J,Me){this.translate=m,this.authResolver=L,this.store=O,this.apiRequest=G,this.attributesManager=ne,this.notificator=ge,this.guiAuthResolver=J,this.routePolicyService=Me,this.baseItemColor=this.store.get("theme","sidemenu_bg_color"),this.voBgColor=this.store.get("theme","sidemenu_vo_bg_color"),this.memberBgColor=this.store.get("theme","sidemenu_member_bg_color"),this.groupBgColor=this.store.get("theme","sidemenu_group_bg_color"),this.facilityBgColor=this.store.get("theme","sidemenu_facility_bg_color"),this.resourceBgColor=this.store.get("theme","sidemenu_resource_bg_color"),this.userBgColor=this.store.get("theme","sidemenu_user_bg_color"),this.serviceBgColor=this.store.get("theme","sidemenu_service_bg_color"),this.baseItemTextColor=this.store.get("theme","sidemenu_text_color"),this.voTextColor=this.store.get("theme","sidemenu_vo_text_color"),this.memberTextColor=this.store.get("theme","sidemenu_member_text_color"),this.groupTextColor=this.store.get("theme","sidemenu_group_text_color"),this.facilityTextColor=this.store.get("theme","sidemenu_facility_text_color"),this.resourceTextColor=this.store.get("theme","sidemenu_resource_text_color"),this.userTextColor=this.store.get("theme","sidemenu_user_text_color"),this.serviceTextColor=this.store.get("theme","sidemenu_service_text_color")}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.baseItemColor,textColorCss:this.baseItemTextColor}}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.baseItemColor,textColorCss:this.baseItemTextColor}}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.baseItemColor,textColorCss:this.baseItemTextColor,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.baseItemColor,textColorCss:this.baseItemTextColor,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.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.baseItemColor,textColorCss:this.baseItemTextColor,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(m){return{label:m.name,baseLink:[`/facilities/${m.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(m),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(m,L){const O=(new w.r5).transform(m,L);return{label:m.name,baseLink:[O],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(O,L?"/organizations":"/facilities",m),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(m){return{label:m.name,baseLink:[`/organizations/${m.voId}/groups/${m.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(m),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(m,L=!1,O=!1){return{label:m.name,baseLink:[`/organizations/${m.id}`],links:this.getVoLinks(m,O),colorClass:"vo-item",icon:L?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(m){return{label:(0,_.bD)(m.user),baseLink:[`/organizations/${m.voId}/members/${m.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(m),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(m,L,O){return{label:(0,_.bD)(m),baseLink:[L],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(m,L,O),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(m){return{label:(0,_.bD)(m),baseLink:[`/myProfile/service-identities/${m.id}`],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${m.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${m.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(m){return{label:m.name,baseLink:[`/admin/services/${m.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${m.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${m.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${m.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(m,L){const O=[];if(O.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${m.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",m)&&O.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${m.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",m)&&O.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${m.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",m)){const G=[];this.routePolicyService.canNavigate("organizations-resources-preview",m)&&G.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${m.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",m)&&G.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${m.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",m)&&G.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${m.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),O.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${m.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:G,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",m)&&O.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${m.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",m)&&O.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${m.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",m)&&O.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${m.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",m)&&O.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",m)&&O.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${m.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",m)){const G=[];this.routePolicyService.canNavigate("organizations-settings-expiration",m)&&G.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${m.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",m)&&G.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${m.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",m)&&G.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${m.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",m)&&G.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${m.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",m)&&G.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${m.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",m)&&G.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${m.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",m)&&L&&G.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${m.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),O.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${m.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:G,showChildrenRegex:"/organizations/\\d+/settings"})}return O}getUserLinks(m,L,O){const G=[];return G.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[L],activatedRegex:`${O}$`}),G.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${L}/organizations`],activatedRegex:`${O}/organizations`}),G.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${L}/groups`],activatedRegex:`${O}/groups`}),G.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${L}/accounts`],activatedRegex:`${O}/accounts`}),G.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${L}/identities`],activatedRegex:`${O}/identities`}),G.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${L}/facilities`],activatedRegex:`${O}/facilities`}),G.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${L}/resources`],activatedRegex:`${O}/resources`}),G.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${L}/attributes`],activatedRegex:`${O}/attributes`}),G.push({label:"MENU_ITEMS.USER.ROLES",url:[`${L}/roles`],activatedRegex:`^${L}/roles`}),G.push(m.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`}),G}getMemberLinks(m){const L=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${m.voId}/members/${m.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",m)&&L.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`//organizations/${m.voId}/members/${m.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",m)&&L.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`//organizations/${m.voId}/members/${m.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",m)&&L.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${m.voId}/members/${m.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",m)&&L.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${m.voId}/members/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),L}getFacilityLinks(m){const L=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${m.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",m)&&L.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${m.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",m)&&L.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${m.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",m)&&L.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${m.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",m)&&L.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${m.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",m)&&L.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${m.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",m)&&L.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${m.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",m)&&L.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",m.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",m)){const O=[];this.routePolicyService.canNavigate("facilities-settings-owners",m)&&O.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",m.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",m)&&O.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",m.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",m)&&O.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${m.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",m)&&O.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",m.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),L.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",m.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:O,showChildrenRegex:"/facilities/\\d+/settings"})}return L}getGroupLinks(m){const L=[],O=[];return L.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${m.voId}/groups/${m.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",m)&&L.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${m.voId}/groups/${m.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",m)&&"members"!==m.name&&L.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${m.voId}/groups/${m.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",m)&&L.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${m.voId}/groups/${m.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.routePolicyService.canNavigate("groups-applications",m)&&L.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",m)&&L.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${m.voId}/groups/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",m)&&L.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${m.voId}/groups/${m.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(m.id,g.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{O.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${m.voId}/groups/${m.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},G=>{"HttpErrorResponse"!==G.name&&this.notificator.showRPCError(G)}),this.routePolicyService.canNavigate("groups-settings-managers",m)&&O.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",m)&&O.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${m.voId}/groups/${m.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",m)&&O.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",m)&&O.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",m)&&O.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${m.voId}/groups/${m.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==O.length&&L.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${m.voId}/groups/${m.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:O,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),L}getResourceLinks(m,L,O){const G=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[m],activatedRegex:`${L}/\\d+/resources/\\d+$`}];return this.routePolicyService.canNavigate("resources-groups",O)&&G.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[m,"groups"],activatedRegex:`${L}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",O)&&G.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[m,"services"],activatedRegex:`${L}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",O)&&G.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[m,"members"],activatedRegex:`${L}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",O)&&G.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[m,"tags"],activatedRegex:`${L}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",O)&&G.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[m,"attributes"],activatedRegex:`${L}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",O)&&G.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[m,"settings"],activatedRegex:`${L}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[m,"settings","managers"],activatedRegex:`${L}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${L}/\\d+/resources/\\d+/settings`}),G}}return I.\u0275fac=function(m){return new(m||I)(A.LFG(E.sK),A.LFG(e.x4),A.LFG(e.d6),A.LFG(e.F5),A.LFG(b.H8),A.LFG(e.V6),A.LFG(e.x4),A.LFG(e.Ip))},I.\u0275prov=A.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},73228:($e,_e,p)=>{"use strict";p.d(_e,{V:()=>ge});var e=p(72077),b=p(69024),_=p(36908),w=p(36769),g=p(5e3),A=p(77968);function E(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",10),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("sideNav",T.sideNav)}}function C(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("showLinks",Re===T.accessItems.length-1)("sideNav",T.sideNav)}}function I(J,Me){if(1&J&&g._UZ(0,"app-side-menu-root-item",2),2&J){const oe=g.oxw();g.Q6J("id","facilities-item-btn")("item",oe.facilityItem)("sideNav",oe.sideNav)}}function P(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("showLinks",Re===T.facilityItems.length-1)("sideNav",T.sideNav)}}function m(J,Me){if(1&J&&(g.TgZ(0,"div"),g.YNc(1,P,2,5,"div",3),g.qZA()),2&J){const oe=g.oxw();g.xp6(1),g.Q6J("ngForOf",oe.facilityItems)}}function L(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("showLinks",Re===T.userItems.length-1)("sideNav",T.sideNav)}}function O(J,Me){if(1&J&&g._UZ(0,"app-side-menu-root-item",7),2&J){const oe=g.oxw();g.Q6J("id","admin-item-btn")("item",oe.adminItem)("showOpen",oe.adminItemOpened)("sideNav",oe.sideNav)}}function G(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("showLinks",!0)("sideNav",T.sideNav)}}function ne(J,Me){if(1&J&&(g.TgZ(0,"div"),g.YNc(1,G,2,5,"div",3),g.qZA()),2&J){const oe=g.oxw();g.xp6(1),g.Q6J("ngForOf",oe.adminItems)}}let ge=(()=>{class J{constructor(oe,Re,T){this.sideMenuService=oe,this.sideMenuItemService=Re,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(oe,Re){return oe.label===Re.label&&oe.labelClass===Re.labelClass}static areSameLinks(oe,Re){if(oe.links.length!==Re.links.length)return!1;for(let T=0;TRe.length?oe.length:Re.length;for(let j=0;joe.length-1)oe.push(Re[j]);else{if(j>Re.length-1){const Y=oe.length;for(let q=0;q{this.setFacilityItems(oe)}),this.sideMenuService.accessItemsChange.subscribe(oe=>{this.setAccessItems(oe)}),this.sideMenuService.adminItemsChange.subscribe(oe=>{this.setAdminItems(oe)}),this.sideMenuService.userItemsChange.subscribe(oe=>{this.setUserItems(oe)}),this.sideMenuService.homeItemsChange.subscribe(oe=>{this.setHomeItems(oe)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,J.setNewItems(this.homeItems,[]),J.setNewItems(this.adminItems,[]),J.setNewItems(this.accessItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,J.setNewItems(this.adminItems,[]),J.setNewItems(this.accessItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,J.setNewItems(this.homeItems,[]),J.setNewItems(this.adminItems,[]),J.setNewItems(this.accessItems,[]),J.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,J.setNewItems(this.homeItems,[]),J.setNewItems(this.adminItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,J.setNewItems(this.homeItems,[]),J.setNewItems(this.accessItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,J.setNewItems(this.accessItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.adminItems,[])}setHomeItems(oe){this.resetExceptHome(),J.setNewItems(this.homeItems,oe)}setFacilityItems(oe){this.resetExceptFacility(),J.setNewItems(this.facilityItems,oe)}setAccessItems(oe){this.resetExceptAccess(),J.setNewItems(this.accessItems,oe)}setUserItems(oe){this.userItemOpened=0===oe.length,this.resetExceptUser(),J.setNewItems(this.userItems,oe)}setAdminItems(oe){this.adminItemOpened=0===oe.length,this.resetExceptAdmin(),J.setNewItems(this.adminItems,oe)}}return J.\u0275fac=function(oe){return new(oe||J)(g.Y36(A.D),g.Y36(b.V),g.Y36(_.x4))},J.\u0275cmp=g.Xpm({type:J,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"],[3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],[3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"]],template:function(oe,Re){1&oe&&(g.TgZ(0,"div",0),g.TgZ(1,"div",1),g._UZ(2,"app-side-menu-root-item",2),g.YNc(3,E,2,4,"div",3),g._UZ(4,"app-side-menu-root-item",4),g.TgZ(5,"div"),g.YNc(6,C,2,5,"div",3),g.qZA(),g.YNc(7,I,1,3,"app-side-menu-root-item",5),g.YNc(8,m,2,1,"div",6),g._UZ(9,"app-side-menu-root-item",7),g.YNc(10,L,2,5,"div",3),g.YNc(11,O,1,4,"app-side-menu-root-item",8),g.YNc(12,ne,2,1,"div",6),g.qZA(),g.qZA()),2&oe&&(g.xp6(2),g.Q6J("id","home-item-btn")("item",Re.homeItem)("sideNav",Re.sideNav),g.xp6(1),g.Q6J("ngForOf",Re.homeItems),g.xp6(1),g.Q6J("item",Re.accessItem)("id","access-item-btn")("sideNav",Re.sideNav),g.xp6(2),g.Q6J("ngForOf",Re.accessItems),g.xp6(1),g.Q6J("ngIf",Re.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("ngIf",Re.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("id","profile-item-btn")("item",Re.userItem)("showOpen",Re.userItemOpened)("sideNav",Re.sideNav),g.xp6(1),g.Q6J("ngForOf",Re.userItems),g.xp6(1),g.Q6J("ngIf",Re.authResolver.isPerunAdminOrObserver()),g.xp6(1),g.Q6J("ngIf",Re.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:[w.Ly]}}),J})()},86511:($e,_e,p)=>{"use strict";p.d(_e,{A:()=>w});var e=p(36908),b=p(5e3),_=p(51062);let w=(()=>{class g{constructor(E,C){this.notificator=E,this.translate=C}setDialogRef(E){this.dialogRef=E}setType(E){this.entityType=E}getType(){return this.entityType}createCandidate(E){return{userExtSource:E.userExtSource,additionalUserExtSources:E.additionalUserExtSources,attributes:E.attributes,firstName:E.firstName,lastName:E.lastName,middleName:E.middleName,titleBefore:E.titleBefore,titleAfter:E.titleAfter,id:E.id}}getFormattedGroup(E){return{id:E.id,beanName:E.beanName,name:E.name,voId:E.voId}}success(E){this.notificator.showSuccess(this.translate.instant(E)),this.dialogRef.close(!0)}getCandidateWithError(E,C){const I=C.error,P=I.message.split(":").splice(1).join();return{candidate:E,errorName:I.name,errorMsg:P}}}return g.\u0275fac=function(E){return new(E||g)(b.LFG(e.V6),b.LFG(_.sK))},g.\u0275prov=b.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},157:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>Lt});var e=p(5e3),b=p(44409),_=p(48966),w=p(47423),g=p(51062);let A=(()=>{class Ee{constructor(U){this.dialogRef=U}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(_.so))},Ee.\u0275cmp=e.Xpm({type:Ee,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(U,k){1&U&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1),e.TgZ(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.qZA(),e.TgZ(13,"div",4),e.TgZ(14,"button",5),e.NdJ("click",function(){return k.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return k.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.qZA()),2&U&&(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")," "))},directives:[_.uh,_.xY,_.H8,w.lW],pipes:[g.X$],styles:[""]}),Ee})();var E=p(36908),C=p(83491),I=p(9244),P=p(11735),m=p(69808),L=p(20773),O=p(32075),G=p(25245),ne=p(29772),ge=p(93075),J=p(21963),Me=p(28820),oe=p(98380),Re=p(57706),T=p(64597);const j=["table"];function Y(Ee,Ge){1&Ee&&e._UZ(0,"mat-spinner",3)}function q(Ee,Ge){1&Ee&&e._UZ(0,"th",24)}function te(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"td",25),e.TgZ(1,"button",26),e.NdJ("mousedown",function(){return e.CHM(U),e.oxw(2).dragDisabled=!1}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA(),e.qZA(),e.qZA()}}function ue(Ee,Ge){1&Ee&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function de(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.AsE(" ",U.shortname,"",U.required?"*":""," ")}}function Le(Ee,Ge){1&Ee&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function Ue(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,U.type)," ")}}function ze(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,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function le(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",k.disabledTooltip(U)),e.xp6(3),e.hij(" ",k.disabledHiddenDependency(U,U.disabled,U.disabledDependencyItemId)," ")}}function je(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",28),e.YNc(1,le,5,2,"div",29),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==U.disabled)}}function ye(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,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function Be(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",k.hiddenTooltip(U)),e.xp6(3),e.hij(" ",k.disabledHiddenDependency(U,U.hidden,U.hiddenDependencyItemId)," ")}}function W(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",28),e.YNc(1,Be,5,2,"div",29),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==U.hidden)}}function R(Ee,Ge){1&Ee&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function me(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",31),e.qZA(),e.qZA())}function be(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",32),e._UZ(3,"br"),e._UZ(4,"input",31),e.qZA(),e.qZA())}function Ie(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(2),e.hij(" ",U,"")}}function pe(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.YNc(2,Ie,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",k.getLocalizedOptions(U)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function Se(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",k.getLocalizedLabel(U),e.oJD)}}function Xe(Ee,Ge){if(1&Ee&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.hij(" ",U," ")}}function Je(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"select"),e.YNc(2,Xe,2,1,"option",33),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",k.getLocalizedOptions(U))}}function nt(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function Ve(Ee,Ge){if(1&Ee&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.hij(" ",U," ")}}function X(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",31),e.qZA(),e.qZA())}function z(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"select",37),e.NdJ("ngModelChange",function(ie){e.CHM(U);const ce=e.oxw().$implicit;return e.oxw(2).mapForCombobox[ce.id]=ie}),e.YNc(2,Ve,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.YNc(6,X,3,0,"div",29),e.qZA()}if(2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(1),e.Q6J("ngModel",k.mapForCombobox[U.id]),e.xp6(1),e.Q6J("ngForOf",k.getLocalizedOptions(U)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===k.mapForCombobox[U.id])}}function Q(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(2),e.hij(" ",U," ")}}function D(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.YNc(2,Q,3,1,"div",33),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",k.getLocalizedOptions(U))}}function H(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"button",42),e._uU(2),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.hij(" ",k.getLocalizedLabel(U)," ")}}function V(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"select",43),e.TgZ(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(),e.qZA(),e.qZA()),2&Ee&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function xe(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"button",42),e._uU(2),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.hij(" ",k.getLocalizedLabel(U)," ")}}function Qe(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br"),e._UZ(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br"),e._UZ(8,"input",41),e._uU(9," example group3 "),e.qZA(),e.qZA())}const Te=function(){return["Example 1","Example 2"]},Ae=function(Ee){return{id:0,beanName:"Attribute",namespace:"",value:Ee}};function ae(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&Ee&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,Ae,e.DdM(1,Te))))}const i=function(){return{key1:"value 1",key2:"value 2"}};function o(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&Ee&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,Ae,e.DdM(1,i))))}function d(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e.YNc(1,me,3,0,"div",29),e.YNc(2,be,5,0,"div",29),e.YNc(3,pe,5,4,"div",29),e.YNc(4,Se,2,1,"div",29),e.YNc(5,Je,3,1,"div",29),e.YNc(6,nt,2,0,"div",29),e.YNc(7,z,7,6,"div",29),e.YNc(8,D,3,1,"div",29),e.YNc(9,H,3,1,"div",29),e.YNc(10,V,85,3,"div",29),e.YNc(11,xe,3,1,"div",29),e.YNc(12,Qe,10,0,"div",29),e.YNc(13,ae,2,4,"div",29),e.YNc(14,o,2,4,"div",29),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===U.type||"VALIDATED_EMAIL"===U.type||"USERNAME"===U.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===U.type),e.xp6(1),e.Q6J("ngIf","RADIO"===U.type),e.xp6(1),e.Q6J("ngIf","HEADING"===U.type||"HTML_COMMENT"===U.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===U.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===U.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===U.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===U.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===U.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===U.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===U.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===U.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===U.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===U.type)}}function l(Ee,Ge){1&Ee&&e._UZ(0,"th",24)}function s(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){return e.CHM(U),e.oxw(3).openManagingGroups()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA(),e.qZA()}2&Ee&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function r(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e.YNc(1,s,4,3,"button",86),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===U.type&&!U.forDelete)}}function t(Ee,Ge){1&Ee&&e._UZ(0,"th",24)}function n(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(U);const ie=e.oxw().$implicit;return e.oxw(2).edit(ie)}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA(),e.qZA()}2&Ee&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function a(Ee,Ge){1&Ee&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function c(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e.YNc(1,n,4,3,"button",88),e.YNc(2,a,3,3,"div",89),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf",!U.forDelete),e.xp6(1),e.Q6J("ngIf",U.forDelete)}}function h(Ee,Ge){1&Ee&&e._UZ(0,"th",24)}function x(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(U);const ie=e.oxw().$implicit;return e.oxw(2).delete(ie)}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA(),e.qZA()}if(2&Ee){const U=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,U.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function We(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(U);const ie=e.oxw().$implicit;return e.oxw(2).restore(ie)}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA(),e.qZA()}2&Ee&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function At(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e.YNc(1,x,5,6,"button",92),e.YNc(2,We,4,3,"button",86),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf",!U.forDelete),e.xp6(1),e.Q6J("ngIf",U.forDelete)}}function Ht(Ee,Ge){1&Ee&&e._UZ(0,"tr",94)}function lt(Ee,Ge){if(1&Ee&&e._UZ(0,"tr",95),2&Ee){const U=Ge.$implicit,k=e.oxw(2);e.ekj("make-green",U.id<=0)("make-red",U.forDelete)("make-yellow",-1!==k.itemsChanged.indexOf(U.id)&&!U.forDelete&&U.id>0),e.Q6J("cdkDragData",U)}}function Ut(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e.TgZ(3,"table",7,8),e.NdJ("cdkDropListDropped",function(ie){return e.CHM(U),e.oxw().drop(ie)}),e.ynx(5,9),e.YNc(6,q,1,0,"th",10),e.YNc(7,te,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,ue,3,3,"th",10),e.YNc(10,de,2,2,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,Le,3,3,"th",10),e.YNc(13,Ue,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,ze,3,3,"th",15),e.YNc(16,je,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,ye,3,3,"th",15),e.YNc(19,W,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,R,3,3,"th",10),e.YNc(22,d,15,14,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,l,1,0,"th",10),e.YNc(25,r,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,t,1,0,"th",10),e.YNc(28,c,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,h,1,0,"th",10),e.YNc(31,At,3,2,"td",11),e.BQk(),e.YNc(32,Ht,1,0,"tr",22),e.YNc(33,lt,1,7,"tr",23),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&Ee){const U=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",U.dragDisabled)("dataSource",U.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",U.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",U.displayedColumns)}}function mt(Ee,Ge){1&Ee&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let Lt=(()=>{class Ee{constructor(U,k,ie,ce){this.dialog=U,this.notificator=k,this.router=ie,this.translate=ce,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(U,k,ie){let ce="";if("IF_EMPTY"===k||"IF_PREFILLED"===k){const He=null===ie?"":this.applicationFormItems.find(ct=>ct.id===ie).shortname;ce="IF_EMPTY"===k?`(${this.ifEmpty} ${He})`:`(${this.ifPrefilled} ${He})`}return ce}disabledTooltip(U){let k;switch(U.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return k=null===U.disabledDependencyItemId?"":this.applicationFormItems.find(ie=>ie.id===U.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${k} ${this.isEmpty}`;case"IF_PREFILLED":return k=null===U.disabledDependencyItemId?"":this.applicationFormItems.find(ie=>ie.id===U.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${k} ${this.isPrefilled}`}}hiddenTooltip(U){let k;switch(U.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return k=null===U.hiddenDependencyItemId?"":this.applicationFormItems.find(ie=>ie.id===U.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${k} ${this.isEmpty}`;case"IF_PREFILLED":return k=null===U.hiddenDependencyItemId?"":this.applicationFormItems.find(ie=>ie.id===U.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${k} ${this.isPrefilled}`}}edit(U){const k=(0,I.kZ)();k.width="600px",k.height="600px",k.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:U,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(C._,k).afterClosed().subscribe(ce=>{ce&&(this.itemsChanged.push(U.id),this.applicationFormItemsChange.emit())})}delete(U){const k=(0,I.kZ)();k.width="500px",this.dialog.open(A,k).afterClosed().subscribe(ce=>{ce&&(U.forDelete=!0,0===U.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(U),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(U){this.dragDisabled=!0;const k=this.applicationFormItems.indexOf(U.item.data);(0,b.bA)(this.applicationFormItems,k,U.currentIndex),this.itemsChanged.push(this.applicationFormItems[U.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(U){if(U.i18n[this.translate.getDefaultLang()]){const k=U.i18n[this.translate.getDefaultLang()].options;if(null!==k&&""!==k){const ie=[];for(const ce of k.split("|"))ie.push(ce.split("#")[1]);return ie}}return[]}getLocalizedLabel(U){return U.i18n[this.translate.getDefaultLang()]?U.i18n[this.translate.getDefaultLang()].label:U.shortname}restore(U){U.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(_.uw),e.Y36(E.V6),e.Y36(P.F0),e.Y36(g.sK))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-application-form-list"]],viewQuery:function(U,k){if(1&U&&e.Gf(j,5),2&U){let ie;e.iGM(ie=e.CRH())&&(k.table=ie.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(U,k){1&U&&(e.YNc(0,Y,1,0,"mat-spinner",0),e.YNc(1,Ut,34,4,"div",1),e.YNc(2,mt,3,3,"perun-web-apps-alert",2)),2&U&&(e.Q6J("ngIf",k.loading),e.xp6(1),e.Q6J("ngIf",0!==k.applicationFormItems.length&&!k.loading),e.xp6(1),e.Q6J("ngIf",0===k.applicationFormItems.length&&!k.loading))},directives:[m.O5,L.$g,O.BZ,b.Wj,O.w1,O.fO,O.ge,O.Dz,O.ev,w.lW,G.Hw,ne.gM,ge._Y,ge.JL,ge.F,m.sg,ge.YN,ge.Kr,ge.EJ,ge.JJ,ge.On,J.H,Me.$,O.as,O.XQ,O.nj,O.Gk,b.Zt,oe.w],pipes:[g.X$,Re.c,T.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}"]}),Ee})()},9146:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>n});var e=p(32105),b=p(9244),_=p(84847),w=p(36908),g=p(36787),A=p(22868),E=p(69808),C=p(5e3),I=p(10036),P=p(18750),m=p(20773),L=p(32075),O=p(25245),G=p(29772);function ne(a,c){1&a&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",1),C._uU(2,"arrow_right_alt"),C.qZA(),C.qZA())}function ge(a,c){1&a&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",2),C._uU(2,"restore"),C.qZA(),C.qZA())}function J(a,c){1&a&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",3),C._uU(2,"nat"),C.qZA(),C.qZA())}let Me=(()=>{class a{}return a.\u0275fac=function(h){return new(h||a)},a.\u0275cmp=C.Xpm({type:a,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(h,x){1&h&&(C.TgZ(0,"div"),C.YNc(1,ne,3,0,"div",0),C.YNc(2,ge,3,0,"div",0),C.YNc(3,J,3,0,"div",0),C.qZA()),2&h&&(C.xp6(1),C.Q6J("ngIf","INITIAL"===x.applicationType),C.xp6(1),C.Q6J("ngIf","EXTENSION"===x.applicationType),C.xp6(1),C.Q6J("ngIf","EMBEDDED"===x.applicationType))},directives:[E.O5,O.Hw,G.gM],styles:[""]}),a})();var oe=p(50301),Re=p(11735),T=p(98380),j=p(51062),Y=p(43157),q=p(31359);function te(a,c){1&a&&(C.TgZ(0,"div",26),C._UZ(1,"mat-spinner",27),C.qZA())}function ue(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function de(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.id)}}function Le(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function Ue(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.ALo(2,"date"),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(C.xi3(2,1,h.createdAt,"d.M.y"))}}function ze(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function le(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.vo.id)}}function je(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function ye(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.vo.name)}}function Be(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function W(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.hij(" ",h.group?h.group.id:""," ")}}function R(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function me(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.hij(" ",h.group?h.group.name:""," ")}}function be(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function Ie(a,c){if(1&a&&(C.TgZ(0,"td",29),C._UZ(1,"app-application-type-icon",31),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Q6J("applicationType",h.type)}}function pe(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function Se(a,c){if(1&a&&(C.TgZ(0,"td",29),C._UZ(1,"span",32),C.ALo(2,"applicationState"),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Q6J("outerHTML",C.lcZ(2,1,h.state),C.oJD)}}function Xe(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function Je(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.extSourceName)}}function nt(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function Ve(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.extSourceType)}}function X(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function z(a,c){if(1&a&&(C.TgZ(0,"div"),C._uU(1),C.qZA()),2&a){const h=C.oxw().$implicit;C.xp6(1),C.hij(" ",h.createdBy.slice(h.createdBy.lastIndexOf("=")+1,h.createdBy.length)," ")}}function Q(a,c){if(1&a&&(C._uU(0),C.ALo(1,"userFullName")),2&a){const h=C.oxw().$implicit;C.hij(" ",C.lcZ(1,1,h.user)," ")}}function D(a,c){if(1&a&&(C.TgZ(0,"td",29),C.YNc(1,z,2,1,"div",33),C.YNc(2,Q,2,3,"ng-template",null,34,C.W1O),C.qZA()),2&a){const h=c.$implicit,x=C.MAs(3);C.xp6(1),C.Q6J("ngIf",null===h.user)("ngIfElse",x)}}function H(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function V(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.hij(" ",h.createdBy.slice(h.createdBy.lastIndexOf("=")+1,h.createdBy.length)," ")}}function xe(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function Qe(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit,x=C.oxw();C.xp6(1),C.Oqu(x.getFriendlyName(h.modifiedBy))}}function Te(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function Ae(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.ALo(2,"date"),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(C.xi3(2,1,h.modifiedAt,"d.M.y"))}}function ae(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function i(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.fedInfo)}}function o(a,c){if(1&a&&(C.TgZ(0,"th",30),C._uU(1),C.qZA()),2&a){const h=C.oxw().$implicit;C.xp6(1),C.Oqu(h)}}function d(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit,x=C.oxw().$implicit,We=C.oxw();C.xp6(1),C.hij(" ",We.getValue(h.formData,x)," ")}}function l(a,c){1&a&&(C.ynx(0,35),C.YNc(1,o,2,1,"th",9),C.YNc(2,d,2,1,"td",6),C.BQk()),2&a&&C.s9C("matColumnDef",c.$implicit)}function s(a,c){1&a&&C._UZ(0,"tr",36)}function r(a,c){if(1&a&&C._UZ(0,"tr",37),2&a){const h=c.$implicit,x=C.oxw();C.ekj("cursor-pointer",!x.disableRouting),C.Q6J("perunWebAppsMiddleClickRouterLink",x.selectApplication(h))("routerLink",x.selectApplication(h))}}function t(a,c){1&a&&(C.TgZ(0,"perun-web-apps-alert",38),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.Q6J("alert_type","warn"),C.xp6(1),C.hij(" ",C.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let n=(()=>{class a{constructor(h,x,We){this.authResolver=h,this.tableConfigService=x,this.dynamicPaginatingService=We,this.displayedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=b.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){var h,x,We,At;this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ht=>"id"!==Ht)),this.dataSource=new w.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),null!==(x=null===(h=this.member)||void 0===h?void 0:h.userId)&&void 0!==x?x:null,null!==(At=null===(We=this.group)||void 0===We?void 0:We.id)&&void 0!==At?At:null,this.getVoId()),this.dataSource.loading$.subscribe(Ht=>{if(Ht||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(Ut=>!this.parsedColumns.includes(Ut)),this.parsedColumns=[];const lt=this.dataSource.getData()[0];lt&&this.parseColumns(lt.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){var h,x,We,At;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),null!==(x=null===(h=this.member)||void 0===h?void 0:h.userId)&&void 0!==x?x:null,null!==(At=null===(We=this.group)||void 0===We?void 0:We.id)&&void 0!==At?At:null,this.getVoId(),!0)}exportData(h){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),h)}selectApplication(h){return this.disableRouting?null:this.group?["/organizations",h.vo.id,"groups",this.group.id,"applications",h.id]:this.member?["/organizations",h.vo.id,"members",this.member.id,"applications",h.id]:["/organizations",h.vo.id,"applications",h.id]}getExportDataForColumn(h,x){var We,At,Ht,lt;switch(x){case"id":return h.id.toString();case"voId":return h.vo.id.toString();case"voName":return h.vo.name;case"groupId":return null!==(At=null===(We=h.group)||void 0===We?void 0:We.id.toString())&&void 0!==At?At:"";case"groupName":return null!==(lt=null===(Ht=h.group)||void 0===Ht?void 0:Ht.name)&&void 0!==lt?lt:"";case"type":return h.type;case"fedInfo":return h.fedInfo;case"formData":return this.stringify(h.formData);case"state":return h.state;case"extSourceName":return h.extSourceName;case"extSourceType":return h.extSourceType;case"user":return h.user?(0,b.bD)(h.user):"";case"createdBy":return h.createdBy;case"createdAt":return h.createdAt;case"modifiedBy":return h.modifiedBy;case"modifiedAt":return h.modifiedAt;default:return h[x]}}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(h){const x=h.lastIndexOf("/CN=");if(-1!==x){const We=h.slice(x+4,h.length).replace("/unstructuredName="," ");return-1!==We.lastIndexOf("\\")?h.slice(h.lastIndexOf("=")+1,h.length):We}return h}yearAgo(){const h=new Date;return h.setDate(h.getDate()-365),h}dateToString(h){return(0,E.p6)(h,"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(h){const x=At=>Object.entries(At).reduce((Ht,[lt,Ut])=>Ht[lt]instanceof Object?Ht[lt]=x(Ht[lt]):(null==Ut||"null"===Ut||0===Ut.length||(Ht[lt]=Ut),Ht),{});let We=JSON.stringify(x(h));return We=We.replace("{","["),We=We.replace("}","]"),We}getFormDataString(h){return this.stringify(h.formItem)}parseColumns(h){h.forEach(x=>{this.displayedColumns.includes(x.shortname)||this.displayedColumns.push(x.shortname),this.parsedColumns.includes(x.shortname)||this.parsedColumns.push(x.shortname)})}getValue(h,x){var We;const At=h.filter(Ht=>Ht.shortname===x);return 0===At.length?"":null!==(We=At[0].value)&&void 0!==We?We:At[0].prefilledValue}}return a.\u0275fac=function(h){return new(h||a)(C.Y36(w.x4),C.Y36(I.dB),C.Y36(w.ly))},a.\u0275cmp=C.Xpm({type:a,selectors:[["app-applications-dynamic-list"]],viewQuery:function(h,x){if(1&h&&(C.Gf(b.l9,7),C.Gf(_.YE,5)),2&h){let We;C.iGM(We=C.CRH())&&(x.child=We.first),C.iGM(We=C.CRH())&&(x.sort=We.first)}},inputs:{displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",refreshTable:"refreshTable"},features:[C.TTD],decls:55,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["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(h,x){1&h&&(C.TgZ(0,"div",0),C.TgZ(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportData",function(At){return x.exportData(At)}),C.YNc(2,te,2,0,"div",2),C.ALo(3,"async"),C.TgZ(4,"table",3),C.ynx(5,4),C.YNc(6,ue,3,3,"th",5),C.YNc(7,de,2,1,"td",6),C.BQk(),C.ynx(8,7),C.YNc(9,Le,3,3,"th",5),C.YNc(10,Ue,3,4,"td",6),C.BQk(),C.ynx(11,8),C.YNc(12,ze,3,3,"th",9),C.YNc(13,le,2,1,"td",6),C.BQk(),C.ynx(14,10),C.YNc(15,je,3,3,"th",9),C.YNc(16,ye,2,1,"td",6),C.BQk(),C.ynx(17,11),C.YNc(18,Be,3,3,"th",9),C.YNc(19,W,2,1,"td",6),C.BQk(),C.ynx(20,12),C.YNc(21,R,3,3,"th",9),C.YNc(22,me,2,1,"td",6),C.BQk(),C.ynx(23,13),C.YNc(24,be,3,3,"th",5),C.YNc(25,Ie,2,1,"td",6),C.BQk(),C.ynx(26,14),C.YNc(27,pe,3,3,"th",5),C.YNc(28,Se,3,3,"td",6),C.BQk(),C.ynx(29,15),C.YNc(30,Xe,3,3,"th",9),C.YNc(31,Je,2,1,"td",6),C.BQk(),C.ynx(32,16),C.YNc(33,nt,3,3,"th",9),C.YNc(34,Ve,2,1,"td",6),C.BQk(),C.ynx(35,17),C.YNc(36,X,3,3,"th",5),C.YNc(37,D,4,2,"td",6),C.BQk(),C.ynx(38,18),C.YNc(39,H,3,3,"th",9),C.YNc(40,V,2,1,"td",6),C.BQk(),C.ynx(41,19),C.YNc(42,xe,3,3,"th",5),C.YNc(43,Qe,2,1,"td",6),C.BQk(),C.ynx(44,20),C.YNc(45,Te,3,3,"th",9),C.YNc(46,Ae,3,4,"td",6),C.BQk(),C.ynx(47,21),C.YNc(48,ae,3,3,"th",9),C.YNc(49,i,2,1,"td",6),C.BQk(),C.YNc(50,l,3,1,"ng-container",22),C.YNc(51,s,1,0,"tr",23),C.YNc(52,r,1,4,"tr",24),C.qZA(),C.qZA(),C.qZA(),C.YNc(53,t,3,4,"perun-web-apps-alert",25),C.ALo(54,"async")),2&h&&(C.Q6J("hidden",0===x.dataSource.allObjectCount),C.xp6(1),C.Q6J("dataLength",x.dataSource.allObjectCount)("pageSizeOptions",x.pageSizeOptions)("tableId",x.tableId),C.xp6(1),C.Q6J("ngIf",C.lcZ(3,10,x.dataSource.loading$)),C.xp6(2),C.Q6J("dataSource",x.dataSource),C.xp6(46),C.Q6J("ngForOf",x.parsedColumns),C.xp6(1),C.Q6J("matHeaderRowDef",x.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",x.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===x.dataSource.allObjectCount&&!1===C.lcZ(54,12,x.dataSource.loading$)))},directives:[P.l,E.O5,m.$g,L.BZ,_.YE,L.w1,L.fO,L.ge,_.nU,L.Dz,L.ev,Me,E.sg,L.as,L.XQ,L.nj,L.Gk,oe.YH,Re.rH,T.w],pipes:[E.Ov,j.X$,E.uU,Y.h,q.d],styles:[""]}),a})()},45256:($e,_e,p)=>{"use strict";p.d(_e,{k:()=>G});var e=p(20449),b=p(32105),_=p(64080),w=p(48966),g=p(36908),A=p(9244),E=p(86511),C=p(8929),I=p(36787),P=p(21086),m=p(87545),L=p(1059),O=p(5e3);let G=(()=>{class ne{constructor(J,Me,oe,Re,T,j,Y,q,te,ue){this.data=J,this.dialogRef=Me,this.membersManagerService=oe,this.voService=Re,this.registrarManager=T,this.groupService=j,this.store=Y,this.guiAuthResolver=q,this.requestService=te,this.addMemberService=ue,this.loading=!1,this.searcher=new C.xQ,this.members=this.searcher.pipe((0,m.w)(de=>(0,I.T)((0,P.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,de))),(0,L.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[_.r.USER_DEF_ORGANIZATION,_.r.USER_DEF_PREFERRED_MAIL],this.languages=this.store.get("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(J=>{this.addAuth=!!J.source.selected.every(Me=>Me.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.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const J=this.selection.selected.pop();J.member?this.addMember(J):J.richUser?this.addUser(J):J.candidate&&this.addCandidate(J)}invite(J){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Me=this.selection.selected.pop();Me.richUser?this.inviteUser(Me,J):this.inviteCandidate(Me,J)}cancel(J){this.dialogRef.close(J)}addCandidate(J){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(J.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}addMember(J){this.groupService.addMembers(this.data.group.id,[J.member.id]).subscribe(()=>{this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}addUser(J){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:J.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}inviteCandidate(J,Me){this.registrarManager.sendInvitationForGroup((0,A.Jc)(J.candidate),Me,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(Me)},oe=>{this.failed.push(this.addMemberService.getCandidateWithError(J,oe)),this.invite(Me)})}inviteUser(J,Me){this.registrarManager.sendInvitationGroupToExistingUser(J.richUser.id,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(Me)},oe=>{this.failed.push(this.addMemberService.getCandidateWithError(J,oe)),this.invite(Me)})}}return ne.\u0275fac=function(J){return new(J||ne)(O.Y36(w.WI),O.Y36(w.so),O.Y36(b.uq),O.Y36(b.YF),O.Y36(b.tk),O.Y36(b.ff),O.Y36(g.d6),O.Y36(g.x4),O.Y36(g.F5),O.Y36(E.A))},ne.\u0275cmp=O.Xpm({type:ne,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(J,Me){1&J&&(O.TgZ(0,"app-add-member-dialog",0),O.NdJ("add",function(){return Me.add()})("cancel",function(Re){return Me.cancel(Re)})("invite",function(Re){return Me.invite(Re)})("search",function(Re){return Me.searcher.next(Re)}),O.ALo(1,"async"),O.qZA()),2&J&&O.Q6J("loading",Me.loading)("languages",Me.languages)("manualAddingBlocked",Me.data.manualAddingBlocked)("addAuth",Me.addAuth)("inviteAuth",Me.inviteAuth)("failed",Me.failed)("members",O.lcZ(1,9,Me.members))("selection",Me.selection)("theme","group-theme")},styles:[""]}),ne})()},51525:($e,_e,p)=>{"use strict";p.d(_e,{H:()=>G});var e=p(48966),b=p(32105),_=p(36908),w=p(20449),g=p(9244),A=p(64080),E=p(86511),C=p(8929),I=p(36787),P=p(21086),m=p(87545),L=p(1059),O=p(5e3);let G=(()=>{class ne{constructor(J,Me,oe,Re,T,j,Y,q){this.data=J,this.dialogRef=Me,this.membersManagerService=oe,this.voService=Re,this.registrarManager=T,this.store=j,this.requestService=Y,this.addMemberService=q,this.loading=!1,this.searcher=new C.xQ,this.members=this.searcher.pipe((0,m.w)(te=>(0,I.T)((0,P.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,te))),(0,L.O)(void 0)),this.failed=[],this.selection=new w.Ov(!0,[]),this.attrNames=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL],this.languages=this.store.get("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.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const J=this.selection.selected.pop();J.richUser?this.addUser(J):this.addCandidate(J)}invite(J){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Me=this.selection.selected.pop();Me.richUser?this.inviteUser(Me,J):this.inviteCandidate(Me,J)}cancel(J){this.dialogRef.close(J)}addCandidate(J){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(J.candidate)}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}addUser(J){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:J.richUser.id}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}inviteCandidate(J,Me){this.registrarManager.sendInvitation((0,g.Jc)(J.candidate),Me,this.data.voId).subscribe(()=>{this.invite(Me)},oe=>{this.failed.push(this.addMemberService.getCandidateWithError(J,oe)),this.invite(Me)})}inviteUser(J,Me){this.registrarManager.sendInvitationToExistingUser(J.richUser.id,this.data.voId).subscribe(()=>{this.invite(Me)},oe=>{this.failed.push(this.addMemberService.getCandidateWithError(J,oe)),this.invite(Me)})}}return ne.\u0275fac=function(J){return new(J||ne)(O.Y36(e.WI),O.Y36(e.so),O.Y36(b.uq),O.Y36(b.YF),O.Y36(b.tk),O.Y36(_.d6),O.Y36(_.F5),O.Y36(E.A))},ne.\u0275cmp=O.Xpm({type:ne,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:8,consts:[[3,"loading","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(J,Me){1&J&&(O.TgZ(0,"app-add-member-dialog",0),O.NdJ("add",function(){return Me.add()})("cancel",function(Re){return Me.cancel(Re)})("invite",function(Re){return Me.invite(Re)})("search",function(Re){return Me.searcher.next(Re)}),O.ALo(1,"async"),O.qZA()),2&J&&O.Q6J("loading",Me.loading)("languages",Me.languages)("failed",Me.failed)("members",O.lcZ(1,6,Me.members))("selection",Me.selection)("theme","vo-theme")},styles:[""]}),ne})()},55857:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>Me});var e=p(32105),b=p(10036),_=p(36908),w=p(93075),g=p(69808),A=p(5e3),E=p(96214),C=p(47423),I=p(67322),P=p(74107),m=p(90508),L=p(64901),O=p(39798),G=p(9146),ne=p(51062);function ge(oe,Re){if(1&oe){const T=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){return A.CHM(T),A.oxw().showAllDetails=!0}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function J(oe,Re){if(1&oe){const T=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){return A.CHM(T),A.oxw().showAllDetails=!1}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let Me=(()=>{class oe{constructor(T,j,Y){this.registrarManager=T,this.guiAuthResolver=j,this.entityStorageService=Y,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.displayedColumns=["id","createdAt","type","state","createdBy","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=b.Af,this.tableId=b.gB,this.refresh=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new w.NI((0,g.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new w.NI((0,g.p6)(new Date,"yyyy-MM-dd","en-GB"))}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 T=new Date;return T.setDate(T.getDate()-365),T}applyFilter(T){this.filterValue=T}}return oe.id="GroupApplicationsComponent",oe.\u0275fac=function(T){return new(T||oe)(A.Y36(e.tk),A.Y36(_.x4),A.Y36(_.fb))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(T,j){2&T&&A.ekj("router-component",j.true)},decls:34,vars:38,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","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","refreshTable","group"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(T,j){1&T&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return j.refresh=!j.refresh}),A.qZA(),A.YNc(5,ge,3,3,"button",2),A.YNc(6,J,3,3,"button",2),A.TgZ(7,"mat-form-field",3),A.TgZ(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"mat-select",4),A.NdJ("selectionChange",function(){return j.select()})("valueChange",function(q){return j.state=q}),A.TgZ(12,"mat-option",5),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"mat-option",6),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",7),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-option",8),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.TgZ(24,"mat-option",9),A._uU(25),A.ALo(26,"translate"),A.qZA(),A.TgZ(27,"mat-option",10),A._uU(28),A.ALo(29,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(30,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(q){return j.applyFilter(q)}),A.qZA(),A.TgZ(31,"perun-web-apps-date-range",12),A.NdJ("datePicker",function(){return j.select()}),A.qZA(),A.qZA(),A.TgZ(32,"div"),A._UZ(33,"app-applications-dynamic-list",13),A.qZA()),2&T&&(A.xp6(1),A.Oqu(A.lcZ(2,22,"VO_DETAIL.APPLICATION.TITLE")),A.xp6(4),A.Q6J("ngIf",!j.showAllDetails),A.xp6(1),A.Q6J("ngIf",j.showAllDetails),A.xp6(3),A.Oqu(A.lcZ(10,24,"APPLICATIONS_LIST.STATE")),A.xp6(2),A.Q6J("value",j.state),A.xp6(2),A.Oqu(A.lcZ(14,26,"VO_DETAIL.APPLICATION.SELECTION_ALL")),A.xp6(3),A.Oqu(A.lcZ(17,28,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),A.xp6(3),A.Oqu(A.lcZ(20,30,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),A.xp6(3),A.Oqu(A.lcZ(23,32,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),A.xp6(3),A.Oqu(A.lcZ(26,34,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),A.xp6(3),A.Oqu(A.lcZ(29,36,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),A.xp6(2),A.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),A.xp6(1),A.Q6J("endDate",j.endDate)("startDate",j.startDate),A.xp6(2),A.Q6J("tableId",j.showAllDetails?j.detailTableId:j.tableId)("searchString",j.filterValue)("displayedColumns",j.showAllDetails?j.detailedDisplayedColumns:j.displayedColumns)("states",j.currentStates)("dateFrom",j.startDate.value)("dateTo",j.endDate.value)("refreshTable",j.refresh)("group",j.group))},directives:[E.t,g.O5,C.lW,I.KE,I.hX,P.gD,m.ey,L.P,O.S,G.S],pipes:[ne.X$],styles:[""]}),oe})()},75234:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>R});var e=p(20449),b=p(36908),_=p(64080),w=p(53455),g=p(32105),A=p(10036),E=p(9244),C=p(74414),I=p(93075),P=p(45256),m=p(5e3),L=p(48966),O=p(69808),G=p(98380),ne=p(96214),ge=p(29772),J=p(47423),Me=p(67322),oe=p(74107),Re=p(90508),T=p(64901),j=p(20773),Y=p(1903),q=p(51062);let te=(()=>{class me{transform(Ie,pe){return!!("members"===Ie.name||(0,E.bx)(Ie)||"add"===pe&&(0,E.jh)(Ie.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return me.\u0275fac=function(Ie){return new(Ie||me)},me.\u0275pipe=m.Yjl({name:"groupMembersActionButtonDisabled",type:me,pure:!0}),me})(),ue=(()=>{class me{transform(Ie,pe){return"members"===Ie.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,E.bx)(Ie)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===pe&&(0,E.jh)(Ie.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return me.\u0275fac=function(Ie){return new(Ie||me)},me.\u0275pipe=m.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:me,pure:!0}),me})();var de=p(20551);function Le(me,be){1&me&&(m.TgZ(0,"perun-web-apps-alert",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&me&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function Ue(me,be){if(1&me){const Ie=m.EpF();m.TgZ(0,"button",15),m.NdJ("click",function(){return m.CHM(Ie),m.oxw().onAddMember()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&me){const Ie=m.oxw();m.Q6J("disabled",m.xi3(1,2,Ie.group,"add")),m.xp6(2),m.hij(" ",m.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ze(me,be){if(1&me){const Ie=m.EpF();m.TgZ(0,"button",16),m.NdJ("click",function(){return m.CHM(Ie),m.oxw().onInviteMember()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&me){const Ie=m.oxw();m.Q6J("disabled",m.lcZ(1,2,Ie.group)),m.xp6(2),m.hij(" ",m.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function le(me,be){if(1&me){const Ie=m.EpF();m.TgZ(0,"button",17),m.NdJ("click",function(){return m.CHM(Ie),m.oxw().onRemoveMembers()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&me){const Ie=m.oxw();m.Q6J("disabled",Ie.selection.isEmpty()||m.lcZ(1,2,Ie.group)),m.xp6(2),m.hij(" ",m.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function je(me,be){if(1&me&&(m.TgZ(0,"mat-option",18),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&me){const Ie=be.$implicit;m.Q6J("value",Ie),m.xp6(1),m.Oqu(m.lcZ(2,2,Ie))}}function ye(me,be){if(1&me&&(m.TgZ(0,"mat-option",18),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&me){const Ie=be.$implicit;m.Q6J("value",Ie),m.xp6(1),m.Oqu(m.lcZ(2,2,Ie))}}function Be(me,be){1&me&&m._UZ(0,"mat-spinner",19)}function W(me,be){if(1&me&&m._UZ(0,"perun-web-apps-members-dynamic-list",20),2&me){const Ie=m.oxw();m.Q6J("attrNames",Ie.memberAttrNames)("groupId",Ie.group.id)("tableId",Ie.tableId)("displayedColumns",Ie.displayedColumns)("searchString",Ie.searchString)("updateTable",Ie.updateTable)("selectedGroupStatuses",Ie.selectedGroupStatuses)("selectedStatuses",Ie.selectedStatuses)("selection",Ie.selection)("voId",Ie.group.voId)}}let R=(()=>{class me{constructor(Ie,pe,Se,Xe,Je,nt,Ve,X){this.groupService=Ie,this.dialog=pe,this.guiAuthResolver=Se,this.storeService=Xe,this.attributesManager=Je,this.apiRequest=nt,this.notificator=Ve,this.entityStorageService=X,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=A.dI,this.memberAttrNames=[_.r.MEMBER_DEF_ORGANIZATION,_.r.MEMBER_DEF_MAIL,_.r.USER_DEF_ORGANIZATION,_.r.USER_DEF_PREFERRED_MAIL,_.r.MEMBER_DEF_EXPIRATION,_.r.MEMBER_DEF_GROUP_EXPIRATION],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new I.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new I.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[_.r.GROUP_SYNC_ENABLED,_.r.GROUP_LAST_SYNC_STATE,_.r.GROUP_LAST_SYNC_TIMESTAMP,_.r.GROUP_STRUCTURE_SYNC_ENABLED,_.r.GROUP_LAST_STRUCTURE_SYNC_STATE,_.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,_.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))}loadPage(Ie){this.groupService.getRichGroupByIdWithAttributesByNames(Ie,this.groupAttrNames).subscribe(pe=>{this.group=pe,this.synchEnabled=(0,E.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])}onSearchByString(Ie){this.searchString=Ie,this.selection.clear()}onAddMember(){const Ie=(0,E.kZ)();Ie.width="1000px",Ie.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(P.k,Ie).afterClosed().subscribe(Se=>{Se&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const Ie=(0,E.kZ)();Ie.width="450px",Ie.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(w.X,Ie).afterClosed().subscribe(Se=>{Se&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const Ie=(0,E.kZ)();Ie.width="650px",Ie.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(C.R,Ie)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const Ie=this.statuses.value;return Ie?`${Ie[0]} ${Ie.length>1?"(+"+(Ie.length-1).toString()+" "+(2===Ie.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(Ie){return new Promise(pe=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(Ie,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(Se=>{this.blockManualMemberAdding=null!==Se.value,pe()},Se=>{const Xe=Se.error;"PrivilegeException"!==Xe.name&&this.notificator.showError(Xe.name),pe()})})}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}}return me.id="GroupMembersComponent",me.\u0275fac=function(Ie){return new(Ie||me)(m.Y36(g.ff),m.Y36(L.uw),m.Y36(b.x4),m.Y36(b.d6),m.Y36(g.H8),m.Y36(b.F5),m.Y36(b.V6),m.Y36(b.fb))},me.\u0275cmp=m.Xpm({type:me,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(Ie,pe){2&Ie&&m.ekj("router-component",pe.true)},decls:42,vars:55,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 action-button","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",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","action-button",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"]],template:function(Ie,pe){1&Ie&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.YNc(3,Le,3,3,"perun-web-apps-alert",1),m.TgZ(4,"div",2),m.TgZ(5,"perun-web-apps-refresh-button",3),m.NdJ("click",function(){return pe.refreshTable()}),m.qZA(),m.TgZ(6,"span",4),m.ALo(7,"groupMembersActionButtonDisabled"),m.ALo(8,"translate"),m.ALo(9,"groupMembersActionButtonDisabledTooltip"),m.YNc(10,Ue,4,7,"button",5),m.qZA(),m.TgZ(11,"span",4),m.ALo(12,"groupMembersActionButtonDisabled"),m.ALo(13,"translate"),m.ALo(14,"groupMembersActionButtonDisabledTooltip"),m.YNc(15,ze,4,6,"button",6),m.qZA(),m.TgZ(16,"span",4),m.ALo(17,"groupMembersActionButtonDisabled"),m.ALo(18,"translate"),m.ALo(19,"groupMembersActionButtonDisabledTooltip"),m.YNc(20,le,4,6,"button",7),m.qZA(),m.TgZ(21,"mat-form-field",8),m.TgZ(22,"mat-label"),m._uU(23),m.ALo(24,"translate"),m.qZA(),m.TgZ(25,"mat-select",9),m.NdJ("closed",function(){return pe.changeVoStatuses()}),m.TgZ(26,"mat-select-trigger"),m._uU(27),m.ALo(28,"memberStatus"),m.qZA(),m.YNc(29,je,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(30,"mat-form-field",8),m.TgZ(31,"mat-label"),m._uU(32),m.ALo(33,"translate"),m.qZA(),m.TgZ(34,"mat-select",9),m.NdJ("closed",function(){return pe.changeGroupStatuses()}),m.TgZ(35,"mat-select-trigger"),m._uU(36),m.ALo(37,"memberStatus"),m.qZA(),m.YNc(38,ye,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(39,"perun-web-apps-debounce-filter",11),m.NdJ("filter",function(Xe){return pe.onSearchByString(Xe)}),m.qZA(),m.qZA(),m.YNc(40,Be,1,0,"mat-spinner",12),m.YNc(41,W,1,10,"perun-web-apps-members-dynamic-list",13)),2&Ie&&(m.xp6(1),m.Oqu(m.lcZ(2,25,"GROUP_DETAIL.MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",pe.synchEnabled),m.xp6(3),m.s9C("matTooltip",m.lcZ(8,30,m.xi3(9,32,pe.group,"add"))),m.Q6J("matTooltipDisabled",!m.xi3(7,27,pe.group,"add"))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",pe.addAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(13,37,m.lcZ(14,39,pe.group))),m.Q6J("matTooltipDisabled",!m.lcZ(12,35,pe.group))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",pe.inviteAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(18,43,m.lcZ(19,45,pe.group))),m.Q6J("matTooltipDisabled",!m.lcZ(17,41,pe.group))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",pe.removeAuth),m.xp6(3),m.Oqu(m.lcZ(24,47,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),m.xp6(2),m.Q6J("formControl",pe.statuses),m.xp6(2),m.hij(" ",m.lcZ(28,49,pe.displaySelectedStatuses())," "),m.xp6(2),m.Q6J("ngForOf",pe.statusList),m.xp6(3),m.Oqu(m.lcZ(33,51,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),m.xp6(2),m.Q6J("formControl",pe.groupStatuses),m.xp6(2),m.hij(" ",m.lcZ(37,53,pe.displaySelectedGroupStatuses())," "),m.xp6(2),m.Q6J("ngForOf",pe.groupStatusList),m.xp6(1),m.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),m.xp6(1),m.Q6J("ngIf",pe.loading),m.xp6(1),m.Q6J("ngIf",!pe.loading))},directives:[O.O5,G.w,ne.t,ge.gM,J.lW,Me.KE,Me.hX,oe.gD,I.JJ,I.oH,oe.$L,O.sg,Re.ey,T.P,j.$g,Y.m],pipes:[q.X$,te,ue,de.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}"]}),me})()},37240:($e,_e,p)=>{"use strict";p.d(_e,{q:()=>z});var e=p(20449),b=p(32105),_=p(10036),w=p(48966),g=p(36908),E=(p(387),p(5e3)),C=p(51062),I=p(69808),P=p(20773),m=p(92081),L=p(64901),O=p(62109),G=p(32368),ne=p(93075),ge=p(47423),J=p(29772);const Me=["list"],oe=["stepper"];function Re(Q,D){1&Q&&E._UZ(0,"mat-spinner",4)}function T(Q,D){1&Q&&(E._uU(0),E.ALo(1,"translate")),2&Q&&E.Oqu(E.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function j(Q,D){1&Q&&(E._uU(0),E.ALo(1,"translate")),2&Q&&E.Oqu(E.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const Y=function(){return["select","id","name","facility","tags","description"]};function q(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"div",5),E.TgZ(1,"mat-stepper",6,7),E.TgZ(3,"mat-step",8),E.YNc(4,T,2,3,"ng-template",9),E.TgZ(5,"perun-web-apps-debounce-filter",10),E.NdJ("filter",function(xe){return E.CHM(H),E.oxw().applyFilter(xe)}),E.ALo(6,"translate"),E.qZA(),E._UZ(7,"perun-web-apps-resources-list",11,12),E.qZA(),E.TgZ(9,"mat-step"),E.YNc(10,j,2,3,"ng-template",9),E.TgZ(11,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(H),E.oxw().changeSubgroupsMessage()})("ngModelChange",function(xe){return E.CHM(H),E.oxw().autoAssignSubgroups=xe}),E._uU(12),E.ALo(13,"translate"),E.qZA(),E.TgZ(14,"div",14),E._UZ(15,"i",15),E.qZA(),E.TgZ(16,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(H),E.oxw().changeInactiveMessage()})("ngModelChange",function(xe){return E.CHM(H),E.oxw().asActive=xe}),E._uU(17),E.ALo(18,"translate"),E.qZA(),E.TgZ(19,"div",14),E._uU(20),E.qZA(),E.TgZ(21,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(H),E.oxw().changeAsyncMessage()})("ngModelChange",function(xe){return E.CHM(H),E.oxw().async=xe}),E._uU(22),E.ALo(23,"translate"),E.qZA(),E.TgZ(24,"div",14),E._uU(25),E.qZA(),E.qZA(),E.qZA(),E.qZA()}if(2&Q){const H=E.MAs(8),V=E.oxw();E.xp6(1),E.Q6J("linear",!0),E.xp6(2),E.Q6J("completed",0!==V.selection.selected.length&&void 0!==H&&H.addAuth),E.xp6(2),E.s9C("placeholder",E.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),E.xp6(2),E.Q6J("filterValue",V.filterValue)("groupToResource",V.data.group)("disableRouting",!0)("resources",V.resources)("selection",V.selection)("displayedColumns",E.DdM(27,Y))("tableId",V.tableId),E.xp6(4),E.Q6J("ngModel",V.autoAssignSubgroups),E.xp6(1),E.hij(" ",E.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),E.xp6(3),E.Q6J("innerHTML",V.autoAssignHint,E.oJD),E.xp6(1),E.Q6J("ngModel",V.asActive),E.xp6(1),E.hij(" ",E.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),E.xp6(3),E.hij(" ",V.asActiveHint," "),E.xp6(1),E.Q6J("ngModel",V.async),E.xp6(1),E.hij(" ",E.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),E.xp6(3),E.hij(" ",V.asyncHint," ")}}function te(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"button",22),E.NdJ("click",function(){return E.CHM(H),E.oxw(2).stepperPrevious()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Q&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function ue(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"button",23),E.NdJ("click",function(){return E.CHM(H),E.oxw(2).stepperNext()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Q){const H=E.oxw(2);E.ekj("ml-2",void 0!==H.stepper&&0!==H.stepper.selectedIndex)("ml-auto",!(void 0!==H.stepper&&0!==H.stepper.selectedIndex)),E.Q6J("disabled",0===H.selection.selected.length||void 0!==H.list&&!H.list.addAuth),E.xp6(1),E.hij(" ",E.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function de(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){return E.CHM(H),E.oxw(2).onSubmit()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Q){const H=E.oxw(2);E.Q6J("disabled",0===H.selection.selected.length||H.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function Le(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"div",16),E.TgZ(1,"button",17),E.NdJ("click",function(){return E.CHM(H),E.oxw().onCancel()}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,te,3,3,"button",18),E.YNc(5,ue,3,8,"button",19),E.TgZ(6,"span",20),E.ALo(7,"translate"),E.YNc(8,de,3,4,"button",21),E.qZA(),E.qZA()}if(2&Q){const H=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),E.xp6(2),E.Q6J("ngIf",void 0!==H.stepper&&0!==H.stepper.selectedIndex),E.xp6(1),E.Q6J("ngIf",void 0!==H.stepper&&H.stepper.selectedIndex!==H.stepper._steps.length-1),E.xp6(1),E.s9C("matTooltip",E.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),E.Q6J("matTooltipDisabled",void 0===H.list||H.list.addAuth),E.xp6(2),E.Q6J("ngIf",void 0!==H.stepper&&H.stepper.selectedIndex===H.stepper._steps.length-1)}}let Ue=(()=>{class Q{constructor(H,V,xe,Qe,Te,Ae,ae){this.dialogRef=H,this.data=V,this.notificator=xe,this.translate=Qe,this.resourcesManager=Te,this.guiAuthResolver=Ae,this.cd=ae,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=_.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(H=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(V=>{for(const xe of H)-1===V.findIndex(Qe=>Qe.id===xe.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,xe])&&this.resources.push(xe);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(H){this.filterValue=H}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const H=this.selection.selected.map(V=>V.id);this.resourcesManager.assignGroupToResources(this.data.group.id,H,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),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 Q.\u0275fac=function(H){return new(H||Q)(E.Y36(w.so),E.Y36(w.WI),E.Y36(g.V6),E.Y36(C.sK),E.Y36(b.xk),E.Y36(g.x4),E.Y36(E.sBO))},Q.\u0275cmp=E.Xpm({type:Q,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(H,V){if(1&H&&(E.Gf(Me,5),E.Gf(oe,5)),2&H){let xe;E.iGM(xe=E.CRH())&&(V.list=xe.first),E.iGM(xe=E.CRH())&&(V.stepper=xe.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(H,V){1&H&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,Re,1,0,"mat-spinner",1),E.YNc(5,q,26,28,"div",2),E.YNc(6,Le,9,10,"div",3),E.qZA()),2&H&&(E.Tol(V.theme),E.xp6(2),E.Oqu(E.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),E.xp6(2),E.Q6J("ngIf",V.loading),E.xp6(1),E.Q6J("ngIf",!V.loading),E.xp6(1),E.Q6J("ngIf",!V.loading&&void 0!==V.stepper))},directives:[w.uh,I.O5,P.$g,w.xY,m.Vq,m.C0,m.VY,L.P,O.C,G.Rr,ne.JJ,ne.On,w.H8,ge.lW,J.gM],pipes:[C.X$],styles:[""]}),Q})();var ze=p(32075);function le(Q,D){1&Q&&E._UZ(0,"mat-spinner",4)}function je(Q,D){1&Q&&E._UZ(0,"th",13)}function ye(Q,D){if(1&Q&&(E.TgZ(0,"td",14),E._uU(1),E.qZA()),2&Q){const H=D.$implicit;E.xp6(1),E.Oqu(H.name)}}function Be(Q,D){1&Q&&E._UZ(0,"tr",15)}function W(Q,D){1&Q&&E._UZ(0,"tr",16)}function R(Q,D){if(1&Q&&(E.TgZ(0,"div",5),E.TgZ(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",6),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"table",7),E.ynx(8,8),E.YNc(9,je,1,0,"th",9),E.YNc(10,ye,2,1,"td",10),E.BQk(),E.YNc(11,Be,1,0,"tr",11),E.YNc(12,W,1,0,"tr",12),E.qZA(),E.qZA()),2&Q){const H=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),E.xp6(3),E.hij(" ",E.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.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)}}function me(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"div",17),E.TgZ(1,"button",18),E.NdJ("click",function(){return E.CHM(H),E.oxw().onCancel()}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",19),E.NdJ("click",function(){return E.CHM(H),E.oxw().onSubmit()}),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.qZA()}if(2&Q){const H=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),E.xp6(2),E.Q6J("disabled",H.loading),E.xp6(1),E.hij(" ",E.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let be=(()=>{class Q{constructor(H,V,xe,Qe,Te){this.dialogRef=H,this.data=V,this.notificator=xe,this.translate=Qe,this.resourcesManager=Te,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new ze.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const H=this.data.resources.map(V=>V.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,H).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(V=>{this.loading=!1,this.notificator.showSuccess(V),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return Q.\u0275fac=function(H){return new(H||Q)(E.Y36(w.so),E.Y36(w.WI),E.Y36(g.V6),E.Y36(C.sK),E.Y36(b.xk))},Q.\u0275cmp=E.Xpm({type:Q,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(H,V){1&H&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,le,1,0,"mat-spinner",1),E.YNc(5,R,13,9,"div",2),E.YNc(6,me,7,7,"div",3),E.qZA()),2&H&&(E.Tol(V.data.theme),E.xp6(2),E.Oqu(E.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),E.xp6(2),E.Q6J("ngIf",V.loading),E.xp6(1),E.Q6J("ngIf",!V.loading),E.xp6(1),E.Q6J("ngIf",!V.loading))},directives:[w.uh,I.O5,P.$g,w.xY,ze.BZ,ze.w1,ze.fO,ze.ge,ze.Dz,ze.ev,ze.as,ze.XQ,ze.nj,ze.Gk,w.H8,ge.lW],pipes:[C.X$],styles:[""]}),Q})();var Ie=p(9244),pe=p(96214),Se=p(7434);const Xe=["list"];function Je(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){return E.CHM(H),E.oxw().addResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Q&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function nt(Q,D){1&Q&&E._UZ(0,"mat-spinner",9)}const Ve=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function X(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"perun-web-apps-resources-list",10,11),E.NdJ("refreshTable",function(){return E.CHM(H),E.oxw().refreshTable()}),E.qZA()}if(2&Q){const H=E.oxw();E.Q6J("disableRouting",!H.routingAuth)("filterValue",H.filterValue)("resources",H.resources)("routingVo",!0)("displayedColumns",E.DdM(10,Ve))("selection",H.selected)("groupId",H.group.id)("groupToResource",H.group)("resourcesToDisableCheckbox",H.resourcesToDisable)("tableId",H.tableId)}}let z=(()=>{class Q{constructor(H,V,xe,Qe,Te){this.resourcesManager=H,this.groupService=V,this.dialog=xe,this.guiAuthResolver=Qe,this.entityStorageService=Te,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=_.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(H=>{this.resources=H.map(V=>{const xe=V.enrichedResource.resource;return xe.facility=V.facility,xe.status=V.status,xe.resourceTags=V.resourceTags,xe.failureCause=V.failureCause,xe.sourceGroupId=V.sourceGroupId,xe}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(V=>null!==V.sourceGroupId).map(V=>V.id)),this.setAuthorization(),this.loading=!1})}applyFilter(H){this.filterValue=H}addResource(){const H=(0,Ie.kZ)();H.width="1000px",H.data={theme:"group-theme",group:this.group},this.dialog.open(Ue,H).afterClosed().subscribe(xe=>{xe&&this.refreshTable()})}removeResource(){const H=(0,Ie.kZ)();H.width="450px",H.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(be,H).afterClosed().subscribe(xe=>{xe&&(this.selected.clear(),this.refreshTable())})}}return Q.id="GroupResourcesComponent",Q.\u0275fac=function(H){return new(H||Q)(E.Y36(b.xk),E.Y36(b.ff),E.Y36(w.uw),E.Y36(g.x4),E.Y36(g.fb))},Q.\u0275cmp=E.Xpm({type:Q,selectors:[["app-group-resources"]],viewQuery:function(H,V){if(1&H&&E.Gf(Xe,5),2&H){let xe;E.iGM(xe=E.CRH())&&(V.list=xe.first)}},hostVars:2,hostBindings:function(H,V){2&H&&E.ekj("router-component",V.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(H,V){1&H&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return V.refreshTable()}),E.qZA(),E.YNc(5,Je,3,3,"button",2),E.TgZ(6,"span",3),E.ALo(7,"translate"),E.TgZ(8,"button",4),E.NdJ("click",function(){return V.removeResource()}),E._uU(9),E.ALo(10,"translate"),E.qZA(),E.qZA(),E.TgZ(11,"perun-web-apps-immediate-filter",5),E.NdJ("filter",function(Qe){return V.applyFilter(Qe)}),E.qZA(),E.YNc(12,nt,1,0,"mat-spinner",6),E.YNc(13,X,2,11,"perun-web-apps-resources-list",7),E.qZA()),2&H&&(E.xp6(2),E.Oqu(E.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),E.xp6(3),E.Q6J("ngIf",V.addAuth),E.xp6(1),E.s9C("matTooltip",E.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),E.Q6J("matTooltipDisabled",0===V.selected.selected.length||void 0!==V.list&&V.list.removeAuth),E.xp6(2),E.Q6J("disabled",0===V.selected.selected.length||void 0!==V.list&&!V.list.removeAuth),E.xp6(1),E.hij(" ",E.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),E.xp6(2),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",V.loading),E.xp6(1),E.Q6J("ngIf",V.resources&&!V.loading))},directives:[pe.t,I.O5,ge.lW,J.gM,Se.L,P.$g,O.C],pipes:[C.X$],styles:[""]}),Q})()},14336:($e,_e,p)=>{"use strict";p.d(_e,{Z:()=>be});var e=p(36908),b=p(51076),_=p(83491),w=p(95502),g=p(1186),A=p(32105),E=p(9244),C=p(5e3),I=p(48966),P=p(51062),m=p(11735),L=p(69808),O=p(20773),G=p(25245),ne=p(29772),ge=p(32368),J=p(93075),Me=p(47423),oe=p(4834),Re=p(96214),T=p(98380),j=p(157);const Y=["autoRegToggle"];function q(Ie,pe){1&Ie&&C._UZ(0,"mat-spinner",3)}function te(Ie,pe){if(1&Ie&&(C.TgZ(0,"span"),C._uU(1," , "),C.TgZ(2,"mat-icon",22),C._uU(3,"nat"),C.qZA(),C._uU(4),C.ALo(5,"translate"),C.ALo(6,"translate"),C.qZA()),2&Ie){const Se=C.oxw(3);C.xp6(4),C.hij(" ",Se.applicationForm.automaticApprovalEmbedded?C.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function ue(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"div"),C.TgZ(1,"mat-slide-toggle",23,24),C.NdJ("change",function(){return C.CHM(Se),C.oxw(3).updateAutoRegistration()}),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.qZA()}if(2&Ie){const Se=C.oxw(3);C.xp6(1),C.Q6J("disabled",!Se.changeAutoRegistration)("ngModel",Se.autoRegistrationEnabled),C.xp6(2),C.hij(" ",C.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function de(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",25),C.NdJ("click",function(){return C.CHM(Se),C.oxw(3).settings()}),C.TgZ(1,"i",12),C._uU(2,"edit"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ie&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function Le(Ie,pe){if(1&Ie&&(C.TgZ(0,"div",15),C.TgZ(1,"div",16),C.TgZ(2,"div",17),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"div"),C.TgZ(6,"span",17),C._uU(7),C.ALo(8,"translate"),C.qZA(),C._uU(9,": "),C.TgZ(10,"mat-icon",18),C._uU(11,"arrow_right_alt"),C.qZA(),C._uU(12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"mat-icon",19),C._uU(16,"restore"),C.qZA(),C._uU(17),C.ALo(18,"translate"),C.ALo(19,"translate"),C.YNc(20,te,7,5,"span",2),C.qZA(),C.YNc(21,ue,5,5,"div",2),C.qZA(),C.TgZ(22,"div",20),C.YNc(23,de,5,3,"button",21),C.qZA(),C.qZA()),2&Ie){const Se=C.oxw(2);C.xp6(1),C.Q6J("ngClass",Se.autoRegistrationEnabled?"w-75":"w-50"),C.xp6(2),C.AsE(" ",C.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Se.applicationForm.moduleClassName," "),C.xp6(4),C.Oqu(C.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),C.xp6(5),C.hij(" ",Se.applicationForm.automaticApproval?C.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),C.xp6(5),C.hij(" ",Se.applicationForm.automaticApprovalExtension?C.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),C.xp6(3),C.Q6J("ngIf",Se.autoRegistrationEnabled),C.xp6(1),C.Q6J("ngIf",Se.voHasEmbeddedGroupApplication),C.xp6(2),C.Q6J("ngIf",Se.editAuth)}}function Ue(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",26),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).add()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function ze(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",27),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).save()}),C.TgZ(1,"i",12),C._uU(2,"save"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}if(2&Ie){const Se=C.oxw(2);C.Q6J("disabled",!Se.itemsChanged),C.xp6(3),C.hij(" ",C.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function le(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",28),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).copy()}),C.TgZ(1,"i",12),C._uU(2,"file_copy"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ie&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function je(Ie,pe){1&Ie&&(C.TgZ(0,"perun-web-apps-alert",29),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const ye=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},Be=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function W(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"div"),C.YNc(1,Le,24,21,"div",4),C._UZ(2,"mat-divider",5),C.TgZ(3,"div",6),C.TgZ(4,"perun-web-apps-refresh-button",7),C.NdJ("refresh",function(){return C.CHM(Se),C.oxw().updateFormItems()}),C.qZA(),C.YNc(5,Ue,3,3,"button",8),C.YNc(6,ze,5,4,"button",9),C.YNc(7,le,5,3,"button",10),C.TgZ(8,"button",11),C.NdJ("click",function(){return C.CHM(Se),C.oxw().preview()}),C.TgZ(9,"i",12),C._uU(10,"search"),C.qZA(),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.YNc(13,je,3,3,"perun-web-apps-alert",13),C.TgZ(14,"app-application-form-list",14),C.NdJ("applicationFormItemsChange",function(){return C.CHM(Se),C.oxw().changeItems()}),C.qZA(),C.qZA()}if(2&Ie){const Se=C.oxw();C.xp6(1),C.Q6J("ngIf",!Se.loading),C.xp6(4),C.Q6J("ngIf",Se.editAuth),C.xp6(1),C.Q6J("ngIf",Se.editAuth),C.xp6(1),C.Q6J("ngIf",Se.editAuth),C.xp6(4),C.hij(" ",C.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),C.xp6(2),C.Q6J("ngIf",Se.editAuth),C.xp6(1),C.Q6J("applicationForm",Se.applicationForm)("applicationFormItems",Se.applicationFormItems)("loading",Se.loading)("displayedColumns",Se.editAuth?C.DdM(14,ye):C.DdM(15,Be))("refreshApplicationForm",Se.refreshApplicationForm)("theme","group-theme")}}function R(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",32),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).createEmptyApplicationForm()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function me(Ie,pe){if(1&Ie&&(C.TgZ(0,"div"),C.TgZ(1,"perun-web-apps-alert",30),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,R,3,3,"button",31),C.qZA()),2&Ie){const Se=C.oxw();C.xp6(2),C.Oqu(C.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),C.xp6(2),C.Q6J("ngIf",Se.createEmptyForm)}}let be=(()=>{class Ie{constructor(Se,Xe,Je,nt,Ve,X,z,Q,D){this.registrarManager=Se,this.dialog=Xe,this.notificator=Je,this.translate=nt,this.apiRequest=Ve,this.router=X,this.guiAuthResolver=z,this.attributesManager=Q,this.entityStorageService=D,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(Se=>{this.applicationForm=Se,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(Xe=>{this.applicationFormItems=Xe,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)},Se=>{const Xe=Se.error;"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 Se=(0,E.kZ)();Se.width="500px",Se.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(b.J,Se).afterClosed().subscribe(Je=>{Je&&(this.applicationFormItems=Object.assign([],Je[0]),Se=(0,E.kZ)(),Se.width="600px",Se.height="600px",Se.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Je[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(_._,Se),this.itemsChanged=!0)})}copy(){const Se=(0,E.kZ)();Se.width="500px",Se.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.W,Se).afterClosed().subscribe(Je=>{Je&&this.updateFormItems()})}settings(){const Se=(0,E.kZ)();Se.width="400px",Se.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(g.E,Se).afterClosed().subscribe(Je=>{Je&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(nt=>{this.notificator.showSuccess(nt)}),this.applicationForm=Je)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(Se=>{this.applicationFormItems=Se,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let Se=0;for(const Xe of this.applicationFormItems)Xe.ordnum=Se,Xe.forDelete||Se++;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(Xe=>{this.notificator.showSuccess(Xe)}),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(Se=>{this.notificator.showSuccess(Se)}),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(Se=>{this.notificator.showSuccess(Se)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return Ie.id="GroupSettingsApplicationFormComponent",Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(A.tk),C.Y36(I.uw),C.Y36(e.V6),C.Y36(P.sK),C.Y36(e.F5),C.Y36(m.F0),C.Y36(e.x4),C.Y36(A.H8),C.Y36(e.fb))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-group-settings-application-form"]],viewQuery:function(Se,Xe){if(1&Se&&C.Gf(Y,5),2&Se){let Je;C.iGM(Je=C.CRH())&&(Xe.autoRegToggle=Je.first)}},hostVars:2,hostBindings:function(Se,Xe){2&Se&&C.ekj("router-component",Xe.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-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-text-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(Se,Xe){1&Se&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.YNc(3,q,1,0,"mat-spinner",1),C.YNc(4,W,15,16,"div",2),C.YNc(5,me,5,4,"div",2)),2&Se&&(C.xp6(1),C.hij(" ",C.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),C.xp6(2),C.Q6J("ngIf",Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.noApplicationForm),C.xp6(1),C.Q6J("ngIf",!Xe.loading&&Xe.noApplicationForm))},directives:[L.O5,O.$g,L.mk,G.Hw,ne.gM,ge.Rr,J.JJ,J.On,Me.lW,oe.d,Re.t,T.w,j.b],pipes:[P.X$],styles:[""]}),Ie})()},15592:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>W});var e=p(81889),b=p(20449),_=p(41656),w=p(9244),g=p(32105),A=p(64080),E=p(10036),C=p(87842),I=p(36908),m=(p(387),p(5e3)),L=p(48966),O=p(96214),G=p(69808),ne=p(47423),ge=p(29772),J=p(64901),Me=p(32368),oe=p(93075),Re=p(20773),T=p(58956),j=p(24179),Y=p(51062);const q=["tree"],te=["list"],ue=["toggle"];function de(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"button",10),m.NdJ("click",function(){return m.CHM(be),m.oxw().onCreateGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&R&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function Le(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(be),m.oxw().deleteGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&R){const be=m.oxw();m.Q6J("disabled",0===be.selected.selected.length||void 0!==be.tree&&!be.tree.removeAuth||void 0!==be.list&&!be.list.removeAuth),m.xp6(1),m.hij(" ",m.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function Ue(R,me){1&R&&m._UZ(0,"mat-spinner",12)}function ze(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"perun-web-apps-groups-tree",16,17),m.NdJ("moveGroup",function(pe){return m.CHM(be),m.oxw(2).onMoveGroup(pe)})("refreshTable",function(){return m.CHM(be),m.oxw(2).refreshTable()}),m.qZA()}if(2&R){const be=m.oxw(2);m.Q6J("disableRouting",!be.routeAuth)("expandAll",be.filtering)("groups",be.groups)("hideCheckbox",!be.deleteAuth)("filterValue",be.filterValue)("selection",be.selected)}}const le=function(){return["select","id","name","description","menu"]},je=function(){return["id","name","description","menu"]};function ye(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"perun-web-apps-groups-list",18,19),m.NdJ("moveGroup",function(pe){return m.CHM(be),m.oxw(2).onMoveGroup(pe)})("refreshTable",function(){return m.CHM(be),m.oxw(2).refreshTable()}),m.qZA()}if(2&R){const be=m.oxw(2);m.Q6J("authType","group-subgroups")("disableMembers",!0)("disableRouting",!be.routeAuth)("displayedColumns",be.deleteAuth?m.DdM(8,le):m.DdM(9,je))("groups",be.groups)("selection",be.selected)("filter",be.filterValue)("tableId",be.tableId)}}function Be(R,me){if(1&R&&(m.TgZ(0,"div",13),m.YNc(1,ze,2,6,"perun-web-apps-groups-tree",14),m.YNc(2,ye,2,10,"perun-web-apps-groups-list",15),m.qZA()),2&R){const be=m.oxw();m.xp6(1),m.Q6J("ngIf",!be.showGroupList),m.xp6(1),m.Q6J("ngIf",be.showGroupList)}}let W=(()=>{class R{constructor(be,Ie,pe,Se){this.dialog=be,this.groupService=Ie,this.guiAuthResolver=pe,this.entityStorageService=Se,this.groups=[],this.selected=new b.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=E.bf,this.filterValue=""}onCreateGroup(){const be=(0,w.kZ)();be.width="450px",be.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,be).afterClosed().subscribe(pe=>{pe&&(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 be=(0,w.kZ)();be.width="450px",be.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(_.P,be).afterClosed().subscribe(pe=>{pe&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[A.r.GROUP_DEF_MAIL_FOOTER,A.r.GROUP_SYNC_ENABLED,A.r.GROUP_LAST_SYNC_STATE,A.r.GROUP_LAST_SYNC_TIMESTAMP,A.r.GROUP_STRUCTURE_SYNC_ENABLED,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(be=>{this.groups=be,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(be){this.filterValue=be,this.filtering=""!==be}onMoveGroup(be){const Ie=(0,w.kZ)();Ie.width="550px",Ie.data={group:be,theme:"group-theme"},this.dialog.open(C.c,Ie).afterClosed().subscribe(Se=>{Se&&this.refreshTable()})}}return R.id="GroupSubgroupsComponent",R.\u0275fac=function(be){return new(be||R)(m.Y36(L.uw),m.Y36(g.ff),m.Y36(I.x4),m.Y36(I.fb))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-group-subgroups"]],viewQuery:function(be,Ie){if(1&be&&(m.Gf(q,5),m.Gf(te,5),m.Gf(ue,7)),2&be){let pe;m.iGM(pe=m.CRH())&&(Ie.tree=pe.first),m.iGM(pe=m.CRH())&&(Ie.list=pe.first),m.iGM(pe=m.CRH())&&(Ie.toggle=pe.first)}},hostVars:2,hostBindings:function(be,Ie){2&be&&m.ekj("router-component",Ie.true)},decls:19,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"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",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"],["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,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],["tree",""],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable"],["list",""]],template:function(be,Ie){if(1&be&&(m.TgZ(0,"div"),m.TgZ(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 Ie.refreshTable()}),m.qZA(),m.YNc(5,de,3,3,"button",2),m.TgZ(6,"span",3),m.ALo(7,"translate"),m.YNc(8,Le,3,4,"button",4),m.qZA(),m.TgZ(9,"perun-web-apps-debounce-filter",5),m.NdJ("filter",function(Se){return Ie.applyFilter(Se)}),m.qZA(),m.TgZ(10,"mat-slide-toggle",6,7),m.NdJ("change",function(){return Ie.selected.clear()})("ngModelChange",function(Se){return Ie.showGroupList=Se}),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.TgZ(14,"label"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.YNc(17,Ue,1,0,"mat-spinner",8),m.YNc(18,Be,3,2,"div",9),m.qZA()),2&be){const pe=m.MAs(11);m.xp6(2),m.Oqu(m.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),m.xp6(3),m.Q6J("ngIf",Ie.createAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),m.Q6J("matTooltipDisabled",void 0===Ie.tree&&void 0===Ie.list||void 0!==Ie.tree&&Ie.tree.removeAuth||void 0!==Ie.list&&Ie.list.removeAuth),m.xp6(2),m.Q6J("ngIf",Ie.deleteAuth),m.xp6(1),m.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),m.xp6(1),m.Q6J("ngModel",Ie.showGroupList),m.xp6(2),m.Oqu(m.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),m.xp6(2),m.uIk("for",pe.inputId),m.xp6(1),m.Oqu(m.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),m.xp6(2),m.Q6J("ngIf",Ie.loading),m.xp6(1),m.Q6J("ngIf",!Ie.loading)}},directives:[O.t,G.O5,ne.lW,ge.gM,J.P,Me.Rr,oe.JJ,oe.On,Re.$g,T.I,j.W],pipes:[Y.X$],styles:[""]}),R})()},85243:($e,_e,p)=>{"use strict";p.d(_e,{j:()=>be});var e=p(32105),b=p(10036),_=p(20449),w=p(9244),g=p(48966),A=p(36908),E=p(64080),C=p(5e3),I=p(51062),P=p(69808),m=p(20773),L=p(7434),O=p(24179),G=p(47423);function ne(Ie,pe){1&Ie&&C._UZ(0,"mat-spinner",6)}function ge(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"perun-web-apps-immediate-filter",7),C.NdJ("filter",function(Je){return C.CHM(Se),C.oxw().applyFilter(Je)}),C.qZA()}2&Ie&&C.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const J=function(){return["select","id","name","description"]};function Me(Ie,pe){if(1&Ie&&C._UZ(0,"perun-web-apps-groups-list",8),2&Ie){const Se=C.oxw();C.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",C.DdM(8,J))("filter",Se.filterValue)("groupsToDisableCheckbox",Se.membersGroups)("disableRouting",!0)("groups",Se.groups)("selection",Se.selection)}}function oe(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"div",9),C.TgZ(1,"button",10),C.NdJ("click",function(){return C.CHM(Se),C.oxw().onCancel()}),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"button",11),C.NdJ("click",function(){return C.CHM(Se),C.oxw().onAdd()}),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.qZA()}if(2&Ie){const Se=C.oxw();C.xp6(2),C.hij(" ",C.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),C.xp6(2),C.Q6J("disabled",0===Se.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let Re=(()=>{class Ie{constructor(Se,Xe,Je,nt,Ve,X,z){this.dialogRef=Se,this.data=Xe,this.groupManager=Je,this.memberManager=nt,this.notificator=Ve,this.translate=X,this.authResolver=z,this.loading=!1,this.groups=[],this.selection=new _.Ov(!0,[]),this.attrNames=[E.r.GROUP_SYNC_ENABLED,E.r.GROUP_LAST_SYNC_STATE,E.r.GROUP_LAST_SYNC_TIMESTAMP,E.r.GROUP_STRUCTURE_SYNC_ENABLED,E.r.GROUP_LAST_STRUCTURE_SYNC_STATE,E.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(Se=>{this.member=Se,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(Xe=>{this.groups=Xe.filter(Je=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Je])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Se=this.selection.selected.map(Xe=>Xe.id);this.loading=!0,this.groupManager.addMember(Se,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(Se){this.filterValue=Se}}return Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.ff),C.Y36(e.uq),C.Y36(A.V6),C.Y36(I.sK),C.Y36(A.x4))},Ie.\u0275cmp=C.Xpm({type:Ie,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","filter","groupsToDisableCheckbox","disableRouting","groups","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","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(Se,Xe){1&Se&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,ne,1,0,"mat-spinner",1),C.TgZ(5,"div",2),C.YNc(6,ge,1,1,"perun-web-apps-immediate-filter",3),C.YNc(7,Me,1,9,"perun-web-apps-groups-list",4),C.qZA(),C.YNc(8,oe,7,7,"div",5),C.qZA()),2&Se&&(C.Tol(Xe.theme),C.xp6(2),C.Oqu(C.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),C.xp6(2),C.Q6J("ngIf",Xe.loading),C.xp6(2),C.Q6J("ngIf",!Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.loading))},directives:[g.uh,P.O5,m.$g,g.xY,L.L,O.W,g.H8,G.lW],pipes:[I.X$],styles:[""]}),Ie})();var T=p(32075);function j(Ie,pe){1&Ie&&C._UZ(0,"mat-spinner",6)}function Y(Ie,pe){1&Ie&&C._UZ(0,"th",15)}function q(Ie,pe){if(1&Ie&&(C.TgZ(0,"td",16),C._uU(1),C.qZA()),2&Ie){const Se=pe.$implicit;C.xp6(1),C.Oqu(Se.name)}}function te(Ie,pe){1&Ie&&C._UZ(0,"tr",17)}function ue(Ie,pe){1&Ie&&C._UZ(0,"tr",18)}function de(Ie,pe){if(1&Ie&&(C.TgZ(0,"div",7),C.TgZ(1,"p"),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",8),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"table",9),C.ynx(8,10),C.YNc(9,Y,1,0,"th",11),C.YNc(10,q,2,1,"td",12),C.BQk(),C.YNc(11,te,1,0,"tr",13),C.YNc(12,ue,1,0,"tr",14),C.qZA(),C.qZA()),2&Ie){const Se=C.oxw();C.xp6(2),C.Oqu(C.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),C.xp6(3),C.hij(" ",C.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),C.xp6(2),C.Q6J("dataSource",Se.dataSource),C.xp6(4),C.Q6J("matHeaderRowDef",Se.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",Se.displayedColumns)}}let Le=(()=>{class Ie{constructor(Se,Xe,Je,nt,Ve){this.dialogRef=Se,this.data=Xe,this.groupManager=Je,this.notificator=nt,this.translate=Ve,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 Se=this.dataSource.data.map(Xe=>Xe.id);this.groupManager.removeMember(Se,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 Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.ff),C.Y36(A.V6),C.Y36(I.sK))},Ie.\u0275cmp=C.Xpm({type:Ie,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(Se,Xe){1&Se&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,j,1,0,"mat-spinner",1),C.YNc(5,de,13,9,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return Xe.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return Xe.onRemove()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.qZA()),2&Se&&(C.Tol(Xe.theme),C.xp6(2),C.Oqu(C.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),C.xp6(2),C.Q6J("ngIf",Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),C.xp6(2),C.Q6J("disabled",Xe.loading),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[g.uh,P.O5,m.$g,g.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,g.H8,G.lW],pipes:[I.X$],styles:[""]}),Ie})();p(387);var ze=p(11735),le=p(96214),je=p(29772);const ye=["list"];function Be(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",8),C.NdJ("click",function(){return C.CHM(Se),C.oxw().addGroup()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function W(Ie,pe){1&Ie&&C._UZ(0,"mat-spinner",9)}const R=function(){return["select","id","vo","name","description","expiration"]};function me(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"perun-web-apps-groups-list",10,11),C.NdJ("refreshTable",function(){return C.CHM(Se),C.oxw().refreshTable()}),C.qZA()}if(2&Ie){const Se=C.oxw();C.Q6J("displayedColumns",C.DdM(9,R))("authType","member-groups")("filter",Se.filterValue)("memberId",Se.memberId)("disableRouting",!Se.routeAuth)("groups",Se.groups)("memberGroupStatus",Se.member.groupStatus)("selection",Se.selection)("tableId",Se.tableId)}}let be=(()=>{class Ie{constructor(Se,Xe,Je,nt,Ve){this.groupsService=Se,this.route=Xe,this.dialog=Je,this.authResolver=nt,this.memberService=Ve,this.filterValue="",this.tableId=b.W1,this.selection=new _.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Se=>{this.memberId=Number(Se.memberId),this.memberService.getMemberById(this.memberId).subscribe(Xe=>{this.member=Xe,this.groupsService.getAllGroups(this.member.voId).subscribe(Je=>{this.allGroups=Je,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(Se=>{this.selection.clear(),this.groups=Se,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Se={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((Xe,Je)=>Xe||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Je]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Se,this.groups[0]]))}addGroup(){const Se=(0,w.kZ)();Se.width="850px",Se.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Je=>Je.id)),theme:"member-theme"},this.dialog.open(Re,Se).afterClosed().subscribe(Je=>{Je&&this.refreshTable()})}removeGroup(){const Se=(0,w.kZ)();Se.width="650px",Se.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(Le,Se).afterClosed().subscribe(Je=>{Je&&this.refreshTable()})}applyFilter(Se){this.filterValue=Se}}return Ie.id="MemberGroupsComponent",Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(e.ff),C.Y36(ze.gz),C.Y36(g.uw),C.Y36(A.x4),C.Y36(e.uq))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-member-groups"]],viewQuery:function(Se,Xe){if(1&Se&&C.Gf(ye,5),2&Se){let Je;C.iGM(Je=C.CRH())&&(Xe.list=Je.first)}},hostVars:2,hostBindings:function(Se,Xe){2&Se&&C.ekj("router-component",Xe.true)},decls:13,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","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable"],["list",""]],template:function(Se,Xe){1&Se&&(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 Xe.refreshTable()}),C.qZA(),C.YNc(4,Be,3,3,"button",2),C.TgZ(5,"span",3),C.ALo(6,"translate"),C.TgZ(7,"button",4),C.NdJ("click",function(){return Xe.removeGroup()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.qZA(),C.TgZ(10,"perun-web-apps-immediate-filter",5),C.NdJ("filter",function(nt){return Xe.applyFilter(nt)}),C.qZA(),C.YNc(11,W,1,0,"mat-spinner",6),C.YNc(12,me,2,10,"perun-web-apps-groups-list",7)),2&Se&&(C.xp6(1),C.Oqu(C.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),C.xp6(3),C.Q6J("ngIf",Xe.addAuth),C.xp6(1),C.s9C("matTooltip",C.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),C.Q6J("matTooltipDisabled",void 0===Xe.list||void 0!==Xe.list&&Xe.list.removeAuth),C.xp6(2),C.Q6J("disabled",0===Xe.selection.selected.length||void 0!==Xe.list&&!Xe.list.removeAuth),C.xp6(1),C.hij(" ",C.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),C.xp6(2),C.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),C.xp6(1),C.Q6J("ngIf",Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.loading))},directives:[le.t,P.O5,G.lW,je.gM,L.L,m.$g,O.W],pipes:[I.X$],styles:[""]}),Ie})()},94856:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>oe});var e=p(32105),b=p(10036),_=p(93075),w=p(69808),g=p(36908),A=p(5e3),E=p(96214),C=p(47423),I=p(67322),P=p(74107),m=p(90508),L=p(64901),O=p(39798),G=p(77446),ne=p(9146),ge=p(51062);function J(Re,T){if(1&Re){const j=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(j),A.oxw().showDetails(!0)}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Re&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function Me(Re,T){if(1&Re){const j=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(j),A.oxw().showDetails(!1)}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Re&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let oe=(()=>{class Re{constructor(j,Y){this.registrarManager=j,this.entityStorageService=Y,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.currentColumns=[],this.filterValue="",this.showAllDetails=!1,this.detailTableId=b.Jf,this.tableId=b.Hi,this.showGroupApps=!1,this.refresh=!1}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.startDate=new _.NI((0,w.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new _.NI((0,w.p6)(new Date,"yyyy-MM-dd","en-GB")),this.currentColumns=this.refreshColumns()}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 j=new Date;return j.setDate(j.getDate()-365),j}showGroupApplications(j){this.showGroupApps=j.checked,this.currentColumns=this.refreshColumns()}showDetails(j){this.showAllDetails=j,this.currentColumns=this.refreshColumns()}applyFilter(j){this.filterValue=j}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.detailedColumns:this.detailedColumns.filter(j=>"groupName"!==j&&"groupId"!==j):this.showGroupApps?this.simpleColumns:this.simpleColumns.filter(j=>"groupName"!==j)}}return Re.id="VoApplicationsComponent",Re.\u0275fac=function(j){return new(j||Re)(A.Y36(e.tk),A.Y36(g.fb))},Re.\u0275cmp=A.Xpm({type:Re,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(j,Y){2&j&&A.ekj("router-component",Y.true)},decls:38,vars:43,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","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["color","primary",3,"checked","change"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(j,Y){1&j&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return Y.refresh=!Y.refresh}),A.qZA(),A.YNc(5,J,3,3,"button",2),A.YNc(6,Me,3,3,"button",2),A.TgZ(7,"mat-form-field",3),A.TgZ(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"mat-select",4),A.NdJ("selectionChange",function(){return Y.select()})("valueChange",function(te){return Y.state=te}),A.TgZ(12,"mat-option",5),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"mat-option",6),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",7),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-option",8),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.TgZ(24,"mat-option",9),A._uU(25),A.ALo(26,"translate"),A.qZA(),A.TgZ(27,"mat-option",10),A._uU(28),A.ALo(29,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(30,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(te){return Y.applyFilter(te)}),A.qZA(),A.TgZ(31,"perun-web-apps-date-range",12),A.NdJ("datePicker",function(){return Y.select()}),A.qZA(),A.TgZ(32,"div"),A.TgZ(33,"mat-checkbox",13),A.NdJ("change",function(te){return Y.showGroupApplications(te)}),A._uU(34),A.ALo(35,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(36,"div"),A._UZ(37,"app-applications-dynamic-list",14),A.qZA()),2&j&&(A.xp6(1),A.Oqu(A.lcZ(2,25,"VO_DETAIL.APPLICATION.TITLE")),A.xp6(4),A.Q6J("ngIf",!Y.showAllDetails),A.xp6(1),A.Q6J("ngIf",Y.showAllDetails),A.xp6(3),A.Oqu(A.lcZ(10,27,"APPLICATIONS_LIST.STATE")),A.xp6(2),A.Q6J("value",Y.state),A.xp6(2),A.Oqu(A.lcZ(14,29,"VO_DETAIL.APPLICATION.SELECTION_ALL")),A.xp6(3),A.Oqu(A.lcZ(17,31,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),A.xp6(3),A.Oqu(A.lcZ(20,33,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),A.xp6(3),A.Oqu(A.lcZ(23,35,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),A.xp6(3),A.Oqu(A.lcZ(26,37,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),A.xp6(3),A.Oqu(A.lcZ(29,39,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),A.xp6(2),A.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),A.xp6(1),A.Q6J("endDate",Y.endDate)("startDate",Y.startDate),A.xp6(2),A.Q6J("checked",Y.showGroupApps),A.xp6(1),A.hij(" ",A.lcZ(35,41,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),A.xp6(3),A.Q6J("tableId",Y.showAllDetails?Y.detailTableId:Y.tableId)("searchString",Y.filterValue)("displayedColumns",Y.currentColumns)("states",Y.currentStates)("dateFrom",Y.startDate.value)("dateTo",Y.endDate.value)("includeGroupApps",Y.showGroupApps)("refreshTable",Y.refresh)("vo",Y.vo))},directives:[E.t,w.O5,C.lW,I.KE,I.hX,P.gD,m.ey,L.P,O.S,G.oG,ne.S],pipes:[ge.X$],styles:[""]}),Re})()},4732:($e,_e,p)=>{"use strict";p.d(_e,{G:()=>W});var e=p(81889),b=p(41656),_=p(20449),w=p(87842),g=p(9244),A=p(32105),E=p(10036),C=p(64080),I=p(36908),m=(p(387),p(5e3)),L=p(48966),O=p(96214),G=p(69808),ne=p(47423),ge=p(29772),J=p(64901),Me=p(32368),oe=p(93075),Re=p(20773),T=p(58956),j=p(24179),Y=p(98380),q=p(51062);const te=["toggle"],ue=["tree"],de=["list"];function Le(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(be),m.oxw().onCreateGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&R&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Ue(R,me){1&R&&m._UZ(0,"mat-spinner",12)}function ze(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"perun-web-apps-groups-tree",16,17),m.NdJ("moveGroup",function(pe){return m.CHM(be),m.oxw(2).onMoveGroup(pe)})("refreshTable",function(){return m.CHM(be),m.oxw(2).loadAllGroups()}),m.qZA()}if(2&R){const be=m.oxw(2);m.Q6J("expandAll",be.filtering)("disableRouting",!be.routeAuth)("groups",be.groups)("selection",be.selected)("filterValue",be.filterValue)("vo",be.vo)}}const le=function(){return["select","id","name","description","menu"]};function je(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"perun-web-apps-groups-list",18,19),m.NdJ("refreshTable",function(){return m.CHM(be),m.oxw(2).loadAllGroups()})("moveGroup",function(pe){return m.CHM(be),m.oxw(2).onMoveGroup(pe)}),m.qZA()}if(2&R){const be=m.oxw(2);m.Q6J("authType","vo-groups")("disableMembers",!0)("displayedColumns",m.DdM(8,le))("disableRouting",!be.routeAuth)("groups",be.groups)("selection",be.selected)("filter",be.filterValue)("tableId",be.tableId)}}function ye(R,me){if(1&R&&(m.TgZ(0,"div",13),m.YNc(1,ze,2,6,"perun-web-apps-groups-tree",14),m.YNc(2,je,2,9,"perun-web-apps-groups-list",15),m.qZA()),2&R){const be=m.oxw();m.xp6(1),m.Q6J("ngIf",!be.showGroupList),m.xp6(1),m.Q6J("ngIf",be.showGroupList)}}function Be(R,me){1&R&&(m.TgZ(0,"perun-web-apps-alert",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&R&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let W=(()=>{class R{constructor(be,Ie,pe,Se){this.dialog=be,this.groupService=Ie,this.authResolver=pe,this.entityStorageService=Se,this.groups=[],this.showGroupList=!1,this.selected=new _.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=E.rc}onCreateGroup(){const be=(0,g.kZ)();be.width="450px",be.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,be).afterClosed().subscribe(pe=>{pe&&(this.loading=!0,this.loadAllGroups())})}ngOnInit(){this.loading=!0,"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.loadAllGroups()}),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.loadAllGroups()}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]]))}disableRemove(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}disableTooltip(){var be,Ie;return(null===(be=this.tree)||void 0===be?void 0:be.removeAuth)||(null===(Ie=this.list)||void 0===Ie?void 0:Ie.removeAuth)}deleteGroup(){const be=(0,g.kZ)();be.width="450px",be.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(b.P,be).afterClosed().subscribe(pe=>{pe&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(be){const Ie=(0,g.kZ)();Ie.width="550px",Ie.data={group:be,theme:"vo-theme"},this.dialog.open(w.c,Ie).afterClosed().subscribe(Se=>{Se&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[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]).subscribe(be=>{this.groups=be,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(be){this.filterValue=be,this.filtering=""!==be}}return R.id="VoGroupsComponent",R.\u0275fac=function(be){return new(be||R)(m.Y36(L.uw),m.Y36(A.ff),m.Y36(I.x4),m.Y36(I.fb))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-vo-groups"]],viewQuery:function(be,Ie){if(1&be&&(m.Gf(te,7),m.Gf(ue,5),m.Gf(de,5)),2&be){let pe;m.iGM(pe=m.CRH())&&(Ie.toggle=pe.first),m.iGM(pe=m.CRH())&&(Ie.tree=pe.first),m.iGM(pe=m.CRH())&&(Ie.list=pe.first)}},hostVars:2,hostBindings:function(be,Ie){2&be&&m.ekj("router-component",Ie.true)},decls:22,vars:24,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"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[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"],["alert_type","warn",4,"ngIf"],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup",4,"ngIf"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup"],["list",""],["alert_type","warn"]],template:function(be,Ie){if(1&be&&(m.TgZ(0,"div"),m.TgZ(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 Ie.loadAllGroups()}),m.qZA(),m.YNc(5,Le,3,3,"button",2),m.TgZ(6,"span",3),m.ALo(7,"translate"),m.TgZ(8,"button",4),m.NdJ("click",function(){return Ie.deleteGroup()}),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.qZA(),m.TgZ(11,"perun-web-apps-debounce-filter",5),m.NdJ("filter",function(Se){return Ie.applyFilter(Se)}),m.qZA(),m.TgZ(12,"mat-slide-toggle",6,7),m.NdJ("change",function(){return Ie.removeAllGroups()})("ngModelChange",function(Se){return Ie.showGroupList=Se}),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.TgZ(16,"label"),m._uU(17),m.ALo(18,"translate"),m.qZA(),m.YNc(19,Ue,1,0,"mat-spinner",8),m.YNc(20,ye,3,2,"div",9),m.YNc(21,Be,3,3,"perun-web-apps-alert",10),m.qZA()),2&be){const pe=m.MAs(13);m.xp6(2),m.Oqu(m.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),m.xp6(3),m.Q6J("ngIf",Ie.createAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),m.Q6J("matTooltipDisabled",void 0===Ie.tree&&void 0===Ie.list||Ie.disableTooltip()),m.xp6(2),m.Q6J("disabled",0===Ie.selected.selected.length||Ie.disableRemove()),m.xp6(1),m.hij(" ",m.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),m.xp6(2),m.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),m.xp6(1),m.Q6J("ngModel",Ie.showGroupList),m.xp6(2),m.Oqu(m.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),m.xp6(2),m.uIk("for",pe.inputId),m.xp6(1),m.Oqu(m.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),m.xp6(2),m.Q6J("ngIf",Ie.loading),m.xp6(1),m.Q6J("ngIf",!Ie.loading&&0!==Ie.groups.length),m.xp6(1),m.Q6J("ngIf",0===Ie.groups.length&&!Ie.loading)}},directives:[O.t,G.O5,ne.lW,ge.gM,J.P,Me.Rr,oe.JJ,oe.On,Re.$g,T.I,j.W,Y.w],pipes:[q.X$],styles:[""]}),R})()},81847:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>le});var e=p(20449),b=p(36908),_=p(53455),w=p(32105),g=p(64080),A=p(93075),E=p(10036),C=p(9244),I=p(74414),P=p(51525),m=p(5e3),L=p(48966),O=p(96214),G=p(29772),ne=p(69808),ge=p(47423),J=p(67322),Me=p(74107),oe=p(90508),Re=p(64901),T=p(20773),j=p(1903),Y=p(51062),q=p(20551);function te(je,ye){if(1&je){const Be=m.EpF();m.TgZ(0,"button",14),m.NdJ("click",function(){return m.CHM(Be),m.oxw().onAddMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&je){const Be=m.oxw();m.Q6J("disabled",Be.blockManualMemberAdding),m.xp6(1),m.hij(" ",m.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ue(je,ye){if(1&je){const Be=m.EpF();m.TgZ(0,"button",15),m.NdJ("click",function(){return m.CHM(Be),m.oxw().onInviteMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&je&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function de(je,ye){if(1&je){const Be=m.EpF();m.TgZ(0,"button",16),m.NdJ("click",function(){return m.CHM(Be),m.oxw().onRemoveMembers()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&je){const Be=m.oxw();m.Q6J("disabled",Be.selection.isEmpty()),m.xp6(1),m.hij(" ",m.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Le(je,ye){if(1&je&&(m.TgZ(0,"mat-option",17),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&je){const Be=ye.$implicit;m.Q6J("value",Be),m.xp6(1),m.Oqu(m.lcZ(2,2,Be))}}function Ue(je,ye){1&je&&m._UZ(0,"mat-spinner",18)}function ze(je,ye){if(1&je&&m._UZ(0,"perun-web-apps-members-dynamic-list",19),2&je){const Be=m.oxw();m.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)}}let le=(()=>{class je{constructor(Be,W,R,me,be,Ie,pe){this.notificator=Be,this.dialog=W,this.authzService=R,this.storeService=me,this.attributesManager=be,this.apiRequest=Ie,this.entityStorageService=pe,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[g.r.MEMBER_DEF_ORGANIZATION,g.r.MEMBER_DEF_MAIL,g.r.USER_DEF_ORGANIZATION,g.r.USER_DEF_PREFERRED_MAIL,g.r.MEMBER_DEF_EXPIRATION,g.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new A.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=E.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,C.kZ)();Be.width="1000px",Be.data={voId:this.vo.id},this.dialog.open(P.H,Be).afterClosed().subscribe(R=>{R&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const Be=(0,C.kZ)();Be.width="450px",Be.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(_.X,Be).afterClosed().subscribe(R=>{R&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const Be=(0,C.kZ)();Be.width="650px",Be.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(I.R,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(R=>{this.blockManualMemberAdding=null!==R.value,W()},R=>{const me=R.error;"PrivilegeException"!==me.name&&this.notificator.showError(me.name),W()})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return je.id="VoMembersComponent",je.\u0275fac=function(Be){return new(Be||je)(m.Y36(b.V6),m.Y36(L.uw),m.Y36(b.x4),m.Y36(b.d6),m.Y36(w.H8),m.Y36(b.F5),m.Y36(b.fb))},je.\u0275cmp=m.Xpm({type:je,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(Be,W){2&Be&&m.ekj("router-component",W.true)},decls:23,vars:21,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"],["color","accent","class","mr-2 action-button","mat-flat-button","",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",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","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"]],template:function(Be,W){1&Be&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",2),m.TgZ(5,"perun-web-apps-refresh-button",3),m.NdJ("click",function(){return W.refreshTable()}),m.qZA(),m.TgZ(6,"div",4),m.ALo(7,"translate"),m.YNc(8,te,3,4,"button",5),m.qZA(),m.YNc(9,ue,3,3,"button",6),m.YNc(10,de,3,4,"button",7),m.TgZ(11,"mat-form-field",8),m.TgZ(12,"mat-label"),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.TgZ(15,"mat-select",9),m.NdJ("closed",function(){return W.changeStatuses()}),m.TgZ(16,"mat-select-trigger"),m._uU(17),m.ALo(18,"memberStatus"),m.qZA(),m.YNc(19,Le,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(20,"perun-web-apps-debounce-filter",11),m.NdJ("filter",function(me){return W.onSearchByString(me)}),m.qZA(),m.qZA(),m.YNc(21,Ue,1,0,"mat-spinner",12),m.YNc(22,ze,1,8,"perun-web-apps-members-dynamic-list",13),m.qZA()),2&Be&&(m.xp6(2),m.Oqu(m.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),m.xp6(4),m.s9C("matTooltip",m.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),m.Q6J("matTooltipDisabled",!W.blockManualMemberAdding),m.xp6(2),m.Q6J("ngIf",W.addAuth),m.xp6(1),m.Q6J("ngIf",W.inviteAuth),m.xp6(1),m.Q6J("ngIf",W.removeAuth),m.xp6(3),m.Oqu(m.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),m.xp6(2),m.Q6J("formControl",W.statuses),m.xp6(2),m.hij(" ",m.lcZ(18,19,W.displaySelectedStatuses())," "),m.xp6(2),m.Q6J("ngForOf",W.statusList),m.xp6(1),m.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),m.xp6(1),m.Q6J("ngIf",W.loading),m.xp6(1),m.Q6J("ngIf",!W.loading))},directives:[O.t,G.gM,ne.O5,ge.lW,J.KE,J.hX,Me.gD,A.JJ,A.oH,Me.$L,ne.sg,oe.ey,Re.P,T.$g,j.m],pipes:[Y.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}"]}),je})()},68056:($e,_e,p)=>{"use strict";p.d(_e,{z:()=>oe});var e=p(20449),b=p(32105),_=p(533),w=p(10036),g=p(9244),A=p(36908),E=p(5e3),C=p(48966),I=p(96214),P=p(69808),m=p(47423),L=p(7434),O=p(20773),G=p(62109),ne=p(51062);function ge(Re,T){if(1&Re){const j=E.EpF();E.TgZ(0,"button",6),E.NdJ("click",function(){return E.CHM(j),E.oxw().deleteSelectedResources()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Re){const j=E.oxw();E.Q6J("disabled",0===j.selected.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function J(Re,T){1&Re&&E._UZ(0,"mat-spinner",7)}function Me(Re,T){if(1&Re&&E._UZ(0,"perun-web-apps-resources-list",8),2&Re){const j=E.oxw();E.Q6J("disableRouting",!j.routeAuth)("filterValue",j.filterValue)("resources",j.resources)("routingVo",!0)("displayedColumns",j.displayedColumns)("selection",j.selected)("tableId",j.tableId)}}let oe=(()=>{class Re{constructor(j,Y,q,te){this.resourcesManager=j,this.dialog=Y,this.authResolver=q,this.entityStorageService=te,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=w.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(j=>{this.resources=j,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(j){this.filterValue=j}deleteSelectedResources(){const j=(0,g.kZ)();j.width="450px",j.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(_.f,j).afterClosed().subscribe(q=>{q&&this.refreshTable()})}}return Re.id="VoResourcesPreviewComponent",Re.\u0275fac=function(j){return new(j||Re)(E.Y36(b.xk),E.Y36(C.uw),E.Y36(A.x4),E.Y36(A.fb))},Re.\u0275cmp=E.Xpm({type:Re,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(j,Y){2&j&&E.ekj("router-component",Y.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(j,Y){1&j&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return Y.refreshTable()}),E.qZA(),E.YNc(5,ge,3,4,"button",2),E.TgZ(6,"perun-web-apps-immediate-filter",3),E.NdJ("filter",function(te){return Y.applyFilter(te)}),E.qZA(),E.YNc(7,J,1,0,"mat-spinner",4),E.YNc(8,Me,1,7,"perun-web-apps-resources-list",5),E.qZA()),2&j&&(E.xp6(2),E.Oqu(E.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),E.xp6(3),E.Q6J("ngIf",Y.removeAuth),E.xp6(1),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",Y.loading),E.xp6(1),E.Q6J("ngIf",!Y.loading))},directives:[I.t,P.O5,m.lW,L.L,O.$g,G.C],pipes:[ne.X$],styles:[""]}),Re})()},24219:($e,_e,p)=>{"use strict";p.d(_e,{z:()=>Q});var e=p(36908),b=p(32105),_=p(5e3),w=p(96214),g=p(53251),A=p(69808),E=p(98380),C=p(32075),I=p(20773),P=p(81125),m=p(4834),L=p(51062);function O(D,H){1&D&&_._UZ(0,"mat-spinner",2)}function G(D,H){if(1&D&&(_.TgZ(0,"mat-panel-description"),_.TgZ(1,"div"),_.TgZ(2,"i",10),_._uU(3," error "),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.ALo(6,"translate"),_.qZA(),_.qZA()),2&D){const V=_.oxw().$implicit,xe=_.oxw(2);_.xp6(4),_.HOy(" ",xe.getErrorCountStates(V)," ",_.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",V.taskList.length," ",_.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function ne(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function ge(D,H){if(1&D&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&D){const V=H.$implicit;_.xp6(1),_.Oqu(V.id)}}function J(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function Me(D,H){if(1&D&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&D){const V=H.$implicit;_.xp6(1),_.Oqu(V.service.name)}}function oe(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function Re(D,H){if(1&D&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&D){const V=H.$implicit;_.xp6(1),_.Oqu(V.status)}}function T(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function j(D,H){if(1&D&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&D){const V=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,V.schedule,"d.M.y H:mm:ss")," ")}}function Y(D,H){1&D&&(_._uU(0),_.ALo(1,"translate")),2&D&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function q(D,H){if(1&D&&(_.TgZ(0,"td",24),_.YNc(1,j,3,4,"div",25),_.YNc(2,Y,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&D){const V=H.$implicit,xe=_.MAs(3);_.xp6(1),_.Q6J("ngIf",V.schedule)("ngIfElse",xe)}}function te(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function ue(D,H){if(1&D&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&D){const V=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,V.schedule,"d.M.y H:mm:ss")," ")}}function de(D,H){1&D&&(_._uU(0),_.ALo(1,"translate")),2&D&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Le(D,H){if(1&D&&(_.TgZ(0,"td",24),_.YNc(1,ue,3,4,"div",25),_.YNc(2,de,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&D){const V=H.$implicit,xe=_.MAs(3);_.xp6(1),_.Q6J("ngIf",V.startTime)("ngIfElse",xe)}}function Ue(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function ze(D,H){if(1&D&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&D){const V=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,V.schedule,"d.M.y H:mm:ss")," ")}}function le(D,H){1&D&&(_._uU(0),_.ALo(1,"translate")),2&D&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function je(D,H){if(1&D&&(_.TgZ(0,"td",24),_.YNc(1,ze,3,4,"div",25),_.YNc(2,le,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&D){const V=H.$implicit,xe=_.MAs(3);_.xp6(1),_.Q6J("ngIf",V.endTime)("ngIfElse",xe)}}function ye(D,H){1&D&&_._UZ(0,"tr",28)}const Be=function(D,H,V){return{redTableItem:D,greenTableItem:H,yellowTableItem:V}};function W(D,H){if(1&D&&_._UZ(0,"tr",29),2&D){const V=H.$implicit;_.Q6J("ngClass",_.kEZ(1,Be,"ERROR"===V.status||"SENDERROR"===V.status||"GENERROR"===V.status,"DONE"===V.status,"WARNING"===V.status))}}function R(D,H){if(1&D&&(_.TgZ(0,"table",12),_.ynx(1,13),_.YNc(2,ne,3,3,"th",14),_.YNc(3,ge,2,1,"td",15),_.BQk(),_.ynx(4,16),_.YNc(5,J,3,3,"th",14),_.YNc(6,Me,2,1,"td",15),_.BQk(),_.ynx(7,17),_.YNc(8,oe,3,3,"th",14),_.YNc(9,Re,2,1,"td",15),_.BQk(),_.ynx(10,18),_.YNc(11,T,3,3,"th",14),_.YNc(12,q,4,2,"td",15),_.BQk(),_.ynx(13,19),_.YNc(14,te,3,3,"th",14),_.YNc(15,Le,4,2,"td",15),_.BQk(),_.ynx(16,20),_.YNc(17,Ue,3,3,"th",14),_.YNc(18,je,4,2,"td",15),_.BQk(),_.YNc(19,ye,1,0,"tr",21),_.YNc(20,W,1,5,"tr",22),_.qZA()),2&D){const V=_.oxw(2).$implicit,xe=_.oxw(2);_.Q6J("dataSource",xe.datasources[xe.propagation.indexOf(V)]),_.xp6(19),_.Q6J("matHeaderRowDef",xe.displayedColumns),_.xp6(1),_.Q6J("matRowDefColumns",xe.displayedColumns)}}function me(D,H){1&D&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function be(D,H){if(1&D&&(_._UZ(0,"mat-divider"),_.YNc(1,R,21,3,"table",11),_.YNc(2,me,3,3,"div",8)),2&D){const V=_.oxw().$implicit;_.xp6(1),_.Q6J("ngIf",0!==V.taskList.length),_.xp6(1),_.Q6J("ngIf",0===V.taskList.length)}}function Ie(D,H){if(1&D&&(_.TgZ(0,"mat-expansion-panel"),_.TgZ(1,"mat-expansion-panel-header"),_.TgZ(2,"mat-panel-title"),_._UZ(3,"img",6),_.TgZ(4,"div",7),_._uU(5),_.qZA(),_.qZA(),_.YNc(6,G,7,8,"mat-panel-description",8),_.qZA(),_.YNc(7,be,3,2,"ng-template",9),_.qZA()),2&D){const V=H.$implicit,xe=_.oxw(2);_.xp6(5),_.hij(" ",V.resource.name," "),_.xp6(1),_.Q6J("ngIf",0!==xe.getErrorCountStates(V))}}function pe(D,H){if(1&D&&(_.TgZ(0,"div",3),_.TgZ(1,"mat-accordion",4),_.YNc(2,Ie,8,2,"mat-expansion-panel",5),_.qZA(),_.qZA()),2&D){const V=_.oxw();_.xp6(2),_.Q6J("ngForOf",V.propagation)}}let Se=(()=>{class D{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(V){let xe=0;for(const Qe of V.taskList)("ERROR"===Qe.status||"GENERROR"===Qe.status||"SENDERROR"===Qe.status)&&xe++;return xe}getDataSource(){this.datasources=[];for(const V of this.propagation)this.datasources.push(new C.by(V.taskList))}ngOnChanges(){this.getDataSource()}}return D.\u0275fac=function(V){return new(V||D)},D.\u0275cmp=_.Xpm({type:D,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[_.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(V,xe){1&V&&(_.YNc(0,O,1,0,"mat-spinner",0),_.YNc(1,pe,3,1,"div",1)),2&V&&(_.Q6J("ngIf",xe.loading),_.xp6(1),_.Q6J("ngIf",!xe.loading))},directives:[A.O5,I.$g,P.pp,A.sg,P.ib,P.yz,P.yK,P.u4,P.HS,m.d,C.BZ,C.w1,C.fO,C.ge,C.Dz,C.ev,C.as,C.XQ,C.nj,C.Gk,A.mk],pipes:[L.X$,A.uU],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}"]}),D})();function Xe(D,H){if(1&D&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",5),_._uU(3),_.qZA()),2&D){const V=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),_.xp6(3),_.Oqu(V.errorPropagation.length)}}function Je(D,H){1&D&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function nt(D,H){if(1&D&&(_.YNc(0,Je,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&D){const V=_.oxw();_.Q6J("ngIf",!V.loading&&0===V.errorPropagation.length),_.xp6(1),_.Q6J("loading",V.loading)("propagation",V.errorPropagation)}}function Ve(D,H){if(1&D&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",9),_._uU(3),_.qZA()),2&D){const V=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),_.xp6(3),_.Oqu(V.okPropagation.length)}}function X(D,H){1&D&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function z(D,H){if(1&D&&(_.YNc(0,X,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&D){const V=_.oxw();_.Q6J("ngIf",!V.loading&&0===V.okPropagation.length),_.xp6(1),_.Q6J("loading",V.loading)("propagation",V.okPropagation)}}let Q=(()=>{class D{constructor(V,xe){this.taskService=V,this.entityStorageService=xe,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(V=>{this.resourceStates=V,this.okPropagation=[],this.errorPropagation=[];for(const xe of V){let Qe=!0;for(const Te of xe.taskList)if("ERROR"===Te.status||"GENERROR"===Te.status||"SENDERROR"===Te.status){Qe=!1;break}Qe?this.okPropagation.push(xe):this.errorPropagation.push(xe)}this.loading=!1},()=>this.loading=!1)}}return D.id="VoResourcesStatesComponent",D.\u0275fac=function(V){return new(V||D)(_.Y36(b.Ob),_.Y36(e.fb))},D.\u0275cmp=_.Xpm({type:D,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(V,xe){2&V&&_.ekj("router-component",xe.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(V,xe){1&V&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return xe.refreshTable()}),_.qZA(),_.TgZ(4,"mat-tab-group",2),_.NdJ("selectedIndexChange",function(Te){return xe.selectedIndex=Te}),_.TgZ(5,"mat-tab"),_.YNc(6,Xe,4,4,"ng-template",3),_.YNc(7,nt,2,3,"ng-template",4),_.qZA(),_.TgZ(8,"mat-tab"),_.YNc(9,Ve,4,4,"ng-template",3),_.YNc(10,z,2,3,"ng-template",4),_.qZA(),_.qZA()),2&V&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),_.xp6(3),_.Q6J("selectedIndex",xe.selectedIndex))},directives:[w.t,g.SP,g.uX,g.uD,g.Vc,A.O5,E.w,Se],pipes:[L.X$],styles:[""]}),D})()},10369:($e,_e,p)=>{"use strict";p.d(_e,{w:()=>Le});var e=p(1186),b=p(36908),_=p(95502),w=p(51076),g=p(83491),A=p(32105),E=p(9244),C=p(5e3),I=p(48966),P=p(51062),m=p(11735),L=p(69808),O=p(20773),G=p(25245),ne=p(29772),ge=p(47423),J=p(4834),Me=p(96214),oe=p(98380),Re=p(157);function T(Ue,ze){1&Ue&&C._UZ(0,"mat-spinner",13)}function j(Ue,ze){if(1&Ue){const le=C.EpF();C.TgZ(0,"button",21),C.NdJ("click",function(){return C.CHM(le),C.oxw(2).settings()}),C.TgZ(1,"i",10),C._uU(2,"edit"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ue&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function Y(Ue,ze){if(1&Ue&&(C.TgZ(0,"div",14),C.TgZ(1,"div",15),C.TgZ(2,"div",16),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"div"),C.TgZ(6,"span",16),C._uU(7),C.ALo(8,"translate"),C.qZA(),C._uU(9,": "),C.TgZ(10,"mat-icon",17),C._uU(11,"arrow_right_alt"),C.qZA(),C._uU(12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"mat-icon",18),C._uU(16,"restore"),C.qZA(),C._uU(17),C.ALo(18,"translate"),C.ALo(19,"translate"),C.qZA(),C.qZA(),C.TgZ(20,"div",19),C.YNc(21,j,5,3,"button",20),C.qZA(),C.qZA()),2&Ue){const le=C.oxw();C.xp6(3),C.AsE(" ",C.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",le.applicationForm.moduleClassName," "),C.xp6(4),C.Oqu(C.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),C.xp6(5),C.hij(" ",le.applicationForm.automaticApproval?C.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),C.xp6(5),C.hij(" ",le.applicationForm.automaticApprovalExtension?C.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),C.xp6(4),C.Q6J("ngIf",le.editAuth)}}function q(Ue,ze){if(1&Ue){const le=C.EpF();C.TgZ(0,"button",22),C.NdJ("click",function(){return C.CHM(le),C.oxw().add()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ue&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function te(Ue,ze){if(1&Ue){const le=C.EpF();C.TgZ(0,"button",23),C.NdJ("click",function(){return C.CHM(le),C.oxw().save()}),C.TgZ(1,"i",10),C._uU(2,"save"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}if(2&Ue){const le=C.oxw();C.Q6J("disabled",!le.itemsChanged),C.xp6(3),C.hij(" ",C.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ue(Ue,ze){if(1&Ue){const le=C.EpF();C.TgZ(0,"button",24),C.NdJ("click",function(){return C.CHM(le),C.oxw().copy()}),C.TgZ(1,"i",10),C._uU(2,"file_copy"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ue&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function de(Ue,ze){1&Ue&&(C.TgZ(0,"perun-web-apps-alert",25),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ue&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let Le=(()=>{class Ue{constructor(le,je,ye,Be,W,R,me,be){this.registrarManager=le,this.dialog=je,this.notificator=ye,this.translate=Be,this.router=W,this.authResolver=R,this.voService=me,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(le=>{this.applicationForm=le,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(je=>{this.applicationFormItems=je,this.loading=!1})})}add(){let le=(0,E.kZ)();le.width="500px",le.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(w.J,le).afterClosed().subscribe(ye=>{ye&&(this.applicationFormItems=Object.assign([],ye[0]),le=(0,E.kZ)(),le.width="600px",le.height="600px",le.data={voId:this.vo.id,applicationFormItem:ye[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(g._,le),this.itemsChanged=!0)})}copy(){const le=(0,E.kZ)();le.width="500px",le.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(_.W,le).afterClosed().subscribe(ye=>{ye&&this.updateFormItems()})}settings(){const le=(0,E.kZ)();le.width="400px",le.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,le).afterClosed().subscribe(ye=>{ye&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Be=>{this.notificator.showSuccess(Be)}),this.applicationForm=ye)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(le=>{this.applicationFormItems=le,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let le=0;for(const je of this.applicationFormItems)je.ordnum=le,je.forDelete||le++;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(je=>{this.notificator.showSuccess(je)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(le=>le.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 Ue.id="VoSettingsApplicationFormComponent",Ue.\u0275fac=function(le){return new(le||Ue)(C.Y36(A.tk),C.Y36(I.uw),C.Y36(b.V6),C.Y36(P.sK),C.Y36(m.F0),C.Y36(b.x4),C.Y36(A.YF),C.Y36(b.fb))},Ue.\u0275cmp=C.Xpm({type:Ue,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(le,je){2&le&&C.ekj("router-component",je.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-text-bottom"],["matTooltip","Extension",1,"align-text-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(le,je){1&le&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.YNc(3,T,1,0,"mat-spinner",1),C.TgZ(4,"div"),C.YNc(5,Y,22,18,"div",2),C._UZ(6,"mat-divider",3),C.TgZ(7,"div",4),C.TgZ(8,"perun-web-apps-refresh-button",5),C.NdJ("refresh",function(){return je.updateFormItems()}),C.qZA(),C.YNc(9,q,3,3,"button",6),C.YNc(10,te,5,4,"button",7),C.YNc(11,ue,5,3,"button",8),C.TgZ(12,"button",9),C.NdJ("click",function(){return je.preview()}),C.TgZ(13,"i",10),C._uU(14,"search"),C.qZA(),C._uU(15),C.ALo(16,"translate"),C.qZA(),C.qZA(),C.YNc(17,de,3,3,"perun-web-apps-alert",11),C.TgZ(18,"app-application-form-list",12),C.NdJ("applicationFormItemsChange",function(){return je.changeItems()}),C.qZA(),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),C.xp6(2),C.Q6J("ngIf",je.loading),C.xp6(2),C.Q6J("ngIf",!je.loading),C.xp6(4),C.Q6J("ngIf",je.editAuth),C.xp6(1),C.Q6J("ngIf",je.editAuth),C.xp6(1),C.Q6J("ngIf",je.editAuth),C.xp6(4),C.hij(" ",C.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),C.xp6(2),C.Q6J("ngIf",je.editAuth),C.xp6(1),C.Q6J("applicationForm",je.applicationForm)("applicationFormItems",je.applicationFormItems)("loading",je.loading)("displayedColumns",je.displayedColumns)("refreshApplicationForm",je.refreshApplicationForm)("theme","vo-theme"))},directives:[L.O5,O.$g,G.Hw,ne.gM,ge.lW,J.d,Me.t,oe.w,Re.b],pipes:[P.X$],styles:[""]}),Ue})()},3246:($e,_e,p)=>{"use strict";p.d(_e,{T:()=>Nn});var e=p(32105),b=p(20449),_=p(10036),w=p(9244),g=p(48966),A=p(36908),E=p(93075),C=p(69808),I=p(45323),P=p(28499),m=p(5e3),L=p(51062),O=p(20773),G=p(92081),ne=p(98380),ge=p(67322),J=p(98833),Me=p(74107),oe=p(90508),Re=p(29772),T=p(77446),j=p(13469),Y=p(79814),q=p(74250),te=p(86856);let ue=(()=>{class Mt{constructor(){this.expiration="never",this.datePicker=new m.vpe,this.expirationControl=new E.NI(null)}ngOnInit(){const rt=new Date;this.minDate=new Date(rt.getFullYear(),rt.getMonth(),rt.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 Mt.\u0275fac=function(rt){return new(rt||Mt)},Mt.\u0275cmp=m.Xpm({type:Mt,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(rt,kt){if(1&rt){const Ze=m.EpF();m.TgZ(0,"mat-radio-group",0),m.NdJ("ngModelChange",function(qe){return kt.expiration=qe})("change",function(){return kt.emitDate()}),m.TgZ(1,"mat-radio-button",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-radio-button",2),m.TgZ(5,"mat-form-field",3),m.NdJ("click",function(){return m.CHM(Ze),m.MAs(12).open()}),m.TgZ(6,"mat-label"),m._uU(7),m.ALo(8,"translate"),m.qZA(),m.TgZ(9,"input",4),m.NdJ("dateChange",function(){return kt.setExpiration()}),m.qZA(),m._UZ(10,"mat-datepicker-toggle",5),m._UZ(11,"mat-datepicker",6,7),m.qZA(),m.qZA(),m.qZA()}if(2&rt){const Ze=m.MAs(12);m.Q6J("ngModel",kt.expiration),m.xp6(2),m.hij(" ",m.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),m.xp6(2),m.s9C("value",kt.expirationControl.value),m.xp6(3),m.Oqu(m.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),m.xp6(2),m.Q6J("min",kt.minDate)("formControl",kt.expirationControl)("matDatepicker",Ze),m.xp6(1),m.Q6J("for",Ze)("disabled",!1),m.xp6(1),m.Q6J("disabled",!1)}},directives:[Y.VQ,E.JJ,E.On,Y.U0,ge.KE,ge.hX,J.Nt,E.Fj,te.hl,E.oH,te.nW,ge.R9,te.Mq],pipes:[L.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();var de=p(25245),Le=p(47423),Ue=p(31359);const ze=["stepper"];function le(Mt,Qt){1&Mt&&(m.TgZ(0,"h1",4),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function je(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",5)}function ye(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function Be(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function W(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function R(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function me(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function be(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-option",35),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.Q6J("value",rt),m.xp6(1),m.hij(" ",rt," ")}}function Ie(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function pe(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Se(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function Xe(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Je(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-user-search-select",36),m.NdJ("userSelected",function(Ze){return m.CHM(rt),m.oxw(2).selectedSponsor=Ze}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.xp6(1),m.Q6J("disableAutoSelect",!0)("users",rt.voSponsors)}}function nt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",6),m.TgZ(1,"mat-stepper",7,8),m.TgZ(3,"mat-step",9),m.YNc(4,ye,2,3,"ng-template",10),m.YNc(5,Be,3,3,"perun-web-apps-alert",11),m.TgZ(6,"form",12),m.TgZ(7,"h5",13),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"mat-form-field",14),m._UZ(11,"input",15),m.ALo(12,"translate"),m.YNc(13,W,3,3,"mat-error",16),m.qZA(),m.TgZ(14,"mat-form-field"),m._UZ(15,"input",17),m.ALo(16,"translate"),m.YNc(17,R,3,3,"mat-error",16),m.qZA(),m.TgZ(18,"mat-form-field"),m._UZ(19,"input",18),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"mat-form-field"),m._UZ(22,"input",19),m.ALo(23,"translate"),m.qZA(),m.qZA(),m.qZA(),m.TgZ(24,"mat-step",9),m.YNc(25,me,2,3,"ng-template",10),m.TgZ(26,"h5",13),m._uU(27),m.ALo(28,"translate"),m.qZA(),m.TgZ(29,"form",20),m.TgZ(30,"mat-form-field"),m.TgZ(31,"mat-select",21),m.NdJ("valueChange",function(Ze){return m.CHM(rt),m.oxw().onNamespaceChanged(Ze)}),m.ALo(32,"translate"),m.YNc(33,be,2,2,"mat-option",22),m.qZA(),m.YNc(34,Ie,3,3,"mat-error",16),m.qZA(),m.TgZ(35,"mat-form-field",23),m.ALo(36,"translate"),m._UZ(37,"input",24),m.ALo(38,"translate"),m.YNc(39,pe,3,3,"mat-error",16),m.qZA(),m.TgZ(40,"mat-form-field"),m._UZ(41,"input",25),m.ALo(42,"translate"),m.YNc(43,Se,3,3,"mat-error",16),m.qZA(),m.TgZ(44,"span",23),m.ALo(45,"translate"),m.TgZ(46,"mat-checkbox",26),m.NdJ("change",function(){return m.CHM(rt),m.oxw().passwordResetChange()}),m._uU(47),m.ALo(48,"translate"),m.qZA(),m.qZA(),m._UZ(49,"perun-web-apps-password-form",27),m.qZA(),m.qZA(),m.TgZ(50,"mat-step"),m.YNc(51,Xe,2,3,"ng-template",10),m.TgZ(52,"div",28),m.TgZ(53,"h5",13),m._uU(54),m.ALo(55,"translate"),m.qZA(),m.TgZ(56,"div",14),m.TgZ(57,"h6"),m._uU(58),m.ALo(59,"translate"),m.qZA(),m.TgZ(60,"mat-radio-group",29),m.NdJ("ngModelChange",function(Ze){return m.CHM(rt),m.oxw().sponsorType=Ze}),m.TgZ(61,"span",30),m.ALo(62,"translate"),m.TgZ(63,"mat-radio-button",31),m.NdJ("click",function(){return m.CHM(rt),m.oxw().selectedSponsor=null}),m._uU(64),m.ALo(65,"translate"),m.qZA(),m.qZA(),m.TgZ(66,"span",30),m.ALo(67,"translate"),m.TgZ(68,"mat-radio-button",32),m._uU(69),m.ALo(70,"translate"),m.qZA(),m.qZA(),m.qZA(),m.YNc(71,Je,2,2,"div",16),m.qZA(),m.TgZ(72,"h6",14),m._uU(73),m.ALo(74,"translate"),m.qZA(),m.TgZ(75,"perun-web-apps-expiration-select",33),m.NdJ("datePicker",function(Ze){return m.CHM(rt),m.oxw().setExpiration(Ze)}),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("linear",!0),m.xp6(2),m.Q6J("stepControl",rt.userControl),m.xp6(2),m.Q6J("ngIf",rt.functionalityNotSupported),m.xp6(1),m.Q6J("formGroup",rt.userControl),m.xp6(2),m.hij(" ",m.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),m.xp6(3),m.s9C("placeholder",m.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),m.xp6(2),m.Q6J("ngIf",rt.userControl.hasError("required","firstName")),m.xp6(2),m.s9C("placeholder",m.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),m.xp6(2),m.Q6J("ngIf",rt.userControl.hasError("required","lastName")),m.xp6(2),m.s9C("placeholder",m.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),m.xp6(3),m.s9C("placeholder",m.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),m.xp6(2),m.Q6J("stepControl",rt.namespaceControl),m.xp6(3),m.Oqu(m.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),m.xp6(2),m.Q6J("formGroup",rt.namespaceControl),m.xp6(2),m.s9C("placeholder",m.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),m.xp6(2),m.Q6J("ngForOf",rt.namespaceOptions),m.xp6(1),m.Q6J("ngIf",rt.namespaceControl.hasError("required","namespace")),m.xp6(1),m.s9C("matTooltip",m.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),m.Q6J("matTooltipDisabled",rt.namespaceControl.get("login").enabled),m.xp6(2),m.s9C("placeholder",m.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),m.xp6(2),m.Q6J("ngIf",rt.namespaceControl.hasError("required","login")),m.xp6(2),m.s9C("placeholder",m.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),m.xp6(2),m.Q6J("ngIf",rt.namespaceControl.hasError("required","email")||rt.namespaceControl.hasError("pattern","email")),m.xp6(1),m.s9C("matTooltip",m.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),m.Q6J("matTooltipDisabled",rt.namespaceControl.get("passwordReset").enabled),m.xp6(3),m.hij("",m.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),m.xp6(2),m.Q6J("formGroup",rt.namespaceControl)("namespace",rt.selectedNamespace)("tooltipPwdViaEmail",rt.namespaceControl.get("passwordReset").value),m.xp6(5),m.Oqu(m.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),m.xp6(4),m.Oqu(m.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),m.xp6(2),m.Q6J("ngModel",rt.sponsorType),m.xp6(1),m.s9C("matTooltip",m.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),m.Q6J("matTooltipDisabled",rt.isSponsor),m.xp6(2),m.Q6J("disabled",!rt.isSponsor),m.xp6(1),m.hij(" ",m.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),m.Q6J("matTooltipDisabled",rt.isPerunAdmin),m.xp6(2),m.Q6J("disabled",!rt.isPerunAdmin),m.xp6(1),m.hij(" ",m.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),m.xp6(2),m.Q6J("ngIf","other"===rt.sponsorType),m.xp6(2),m.Oqu(m.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function Ve(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div",6),m.TgZ(1,"div",37),m.TgZ(2,"mat-icon",38),m._uU(3,"done"),m.qZA(),m._uU(4),m.ALo(5,"translate"),m.TgZ(6,"i"),m._uU(7),m.ALo(8,"userFullName"),m.qZA(),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"div"),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.TgZ(14,"div"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.TgZ(17,"perun-web-apps-alert",39),m._uU(18),m.ALo(19,"translate"),m.qZA(),m.qZA()),2&Mt){const rt=m.oxw();m.xp6(4),m.hij(" ",m.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),m.xp6(3),m.Oqu(m.lcZ(8,10,rt.createdMember.user)),m.xp6(2),m.hij(" ",m.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),m.xp6(3),m.AsE("",m.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",rt.loginThatWasSet,""),m.xp6(3),m.AsE(" ",m.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",rt.namespaceControl.get("passwordCtrl").value," "),m.xp6(3),m.Oqu(m.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function X(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",40),m.TgZ(1,"button",41),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()}2&Mt&&(m.xp6(2),m.hij(" ",m.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function z(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",41),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperPrevious()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function Q(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",46),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperNext()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.ekj("ml-2",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)("ml-auto",!(void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)),m.Q6J("disabled",rt.getStepperNextConditions()),m.xp6(1),m.hij(" ",m.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function D(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",47),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).onConfirm()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("disabled",null===rt.sponsorType||"other"===rt.sponsorType&&null===rt.selectedSponsor),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function H(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",40),m.TgZ(1,"button",42),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,z,3,3,"button",43),m.YNc(5,Q,3,8,"button",44),m.YNc(6,D,3,4,"button",45),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("ngIf",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex!==rt.stepper._steps.length-1),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex===rt.stepper._steps.length-1)}}let V=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=rt,this.data=kt,this.membersService=Ze,this.apiRequestConfiguration=Ot,this.usersService=qe,this.store=Tt,this.translator=jt,this.authzService=ci,this.guiAuthResolver=vi,this.formBuilder=Ui,this.cd=Li,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(rt,kt,Ze){for(const Ot of kt)switch(Ot){case"login":rt.login=Ze;break;case"password":rt.password=Ze}}onConfirm(){this.loading=!0;const rt={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},kt=this.namespaceControl.get("namespace").value,Ze=this.parsedRules.get(kt);"No namespace"!==kt&&(rt.userData.namespace=kt),"disabled"!==Ze.login&&(rt.userData.login=this.namespaceControl.get("login").value),"disabled"!==Ze.password&&(rt.sendActivationLink=this.namespaceControl.get("passwordReset").value,rt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(rt.validityTo=this.expiration),this.membersService.createSponsoredMember(rt).subscribe(Ot=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=Ot,!!Ot&&!!Ot.userAttributes&&Ot.userAttributes.filter(qe=>"login-namespace"===qe.baseFriendlyName).filter(qe=>qe.friendlyNameParameter===kt).filter(qe=>null!==qe.value).forEach(qe=>{this.loginThatWasSet=qe.value}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(rt){this.selectedNamespace=rt;const kt=this.parsedRules.get(rt),Ze=this.namespaceControl.get("login"),Ot=this.namespaceControl.get("passwordCtrl"),qe=this.namespaceControl.get("passwordAgainCtrl"),Tt=this.namespaceControl.get("passwordReset");"disabled"!==kt.login?(0,w.mH)(Ze,"optional"===kt.login?[]:[E.kI.required]):(Ze.disable(),Ze.setValue("")),"disabled"!==kt.password?((0,w.mH)(Ot,"optional"===kt.password?[]:[E.kI.required],[(0,P.yT)(rt,this.usersService,this.apiRequestConfiguration)]),(0,w.mH)(qe,[]),(0,w.mH)(Tt,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(Ot.disable(),Ot.setValue(""),qe.disable(),qe.setValue(""),Tt.disable(),Tt.setValue(!1))}passwordResetChange(){const rt=this.namespaceControl.get("passwordCtrl"),kt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(rt.disable(),rt.setValue(""),kt.disable(),kt.setValue("")):(rt.enable(),kt.enable())}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"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;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(I.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",E.kI.required],lastName:["",E.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",E.kI.required],login:["",[E.kI.required]],passwordCtrl:["",E.kI.required,[(0,P.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[E.kI.required,E.kI.pattern(w.B2)]]},{validators:w.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(rt=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(rt),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const rt of this.namespaceRules){this.namespaceOptions.push(rt.namespaceName);const kt={login:"disabled",password:"disabled"};Mt.parseAttributes(kt,rt.requiredAttributes,"required"),Mt.parseAttributes(kt,rt.optionalAttributes,"optional"),this.parsedRules.set(rt.namespaceName,kt)}}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(e.uq),m.Y36(A.F5),m.Y36(e.Fv),m.Y36(A.d6),m.Y36(L.sK),m.Y36(e.Ct),m.Y36(A.x4),m.Y36(E.qu),m.Y36(m.sBO))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(rt,kt){if(1&rt&&m.Gf(ze,5),2&rt){let Ze;m.iGM(Ze=m.CRH())&&(kt.stepper=Ze.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"],["matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login","required","",3,"placeholder"],["matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[1,"mt-2",3,"datePicker"],["alert_type","error"],[3,"value"],[3,"disableAutoSelect","users","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.YNc(1,le,3,3,"h1",0),m.YNc(2,je,1,0,"mat-spinner",1),m.YNc(3,nt,76,80,"div",2),m.YNc(4,Ve,20,20,"div",2),m.YNc(5,X,4,3,"div",3),m.YNc(6,H,7,6,"div",3),m.qZA()),2&rt&&(m.Tol(kt.theme),m.xp6(1),m.Q6J("ngIf",!kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",!kt.loading&&kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated))},directives:[C.O5,g.uh,O.$g,g.xY,G.Vq,G.C0,G.VY,ne.w,E._Y,E.JL,E.sg,ge.KE,J.Nt,E.Fj,E.JJ,E.u,E.Q7,ge.TO,Me.gD,C.sg,oe.ey,Re.gM,T.oG,j.G,Y.VQ,E.On,Y.U0,q.S,ue,de.Hw,g.H8,Le.lW],pipes:[L.X$,Ue.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 xe=p(64080),Qe=p(61150),Te=p(7434),Ae=p(24179),ae=p(92181);const i=["stepper"];function o(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",4)}function d(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function l(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",29),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function s(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-option",30),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.Q6J("value",rt),m.xp6(1),m.hij(" ",rt," ")}}function r(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function t(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function n(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function a(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function c(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function h(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function x(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function We(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"mat-radio-group",32),m.NdJ("ngModelChange",function(Ze){return m.CHM(rt),m.oxw(3).passwordReset=Ze}),m.TgZ(1,"mat-radio-button",33),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-radio-button",34),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.Q6J("ngModel",rt.passwordReset),m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),m.xp6(3),m.hij(" ",m.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function At(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Ht(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function lt(Mt,Qt){1&Mt&&(m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-alert",35),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()),2&Mt&&(m.xp6(2),m.Oqu(m.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Ut(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"h5",36),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-create-group-form",37),m.NdJ("asSubgroupChanged",function(Ze){return m.CHM(rt),m.oxw(3).asSubGroup=Ze})("nameChanged",function(Ze){return m.CHM(rt),m.oxw(3).name=Ze})("descriptionChanged",function(Ze){return m.CHM(rt),m.oxw(3).description=Ze})("parentGroupChanged",function(Ze){return m.CHM(rt),m.oxw(3).parentGroup=Ze}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.xp6(2),m.hij(" ",m.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),m.xp6(2),m.Q6J("voGroups",rt.allVoGroups)}}const mt=function(){return["select","id","name","description"]};function Lt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"h5",36),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-immediate-filter",38),m.NdJ("filter",function(Ze){return m.CHM(rt),m.oxw(3).applyFilter(Ze)}),m.qZA(),m._UZ(5,"perun-web-apps-groups-list",39),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.xp6(2),m.hij(" ",m.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),m.xp6(2),m.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),m.xp6(1),m.Q6J("groups",rt.assignableGroups)("selection",rt.selection)("disableRouting",!0)("displayedColumns",m.DdM(10,mt))("filter",rt.filterValue)("tableId",rt.tableId)}}function Ee(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"mat-stepper",8,9),m.TgZ(2,"mat-step",10),m.YNc(3,d,2,3,"ng-template",11),m.YNc(4,l,3,3,"perun-web-apps-alert",12),m.TgZ(5,"h5",13),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"form",14),m.TgZ(9,"mat-form-field"),m.TgZ(10,"mat-select",15),m.ALo(11,"translate"),m.YNc(12,s,2,2,"mat-option",16),m.qZA(),m.YNc(13,r,3,3,"mat-error",7),m.qZA(),m.TgZ(14,"div"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.TgZ(17,"div",17),m._uU(18),m.qZA(),m.TgZ(19,"mat-form-field",18),m.TgZ(20,"mat-label"),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"textarea",19),m._uU(24," "),m.qZA(),m.YNc(25,t,3,3,"mat-error",7),m.YNc(26,n,3,4,"mat-error",7),m.YNc(27,a,3,4,"mat-error",7),m.YNc(28,c,3,4,"mat-error",7),m.qZA(),m.qZA(),m.qZA(),m.TgZ(29,"mat-step"),m.YNc(30,h,2,3,"ng-template",11),m.TgZ(31,"div",13),m.TgZ(32,"h5",20),m._uU(33),m.ALo(34,"translate"),m.qZA(),m.YNc(35,x,3,3,"perun-web-apps-alert",21),m.YNc(36,We,7,7,"mat-radio-group",22),m.qZA(),m.qZA(),m.TgZ(37,"mat-step"),m.YNc(38,At,2,3,"ng-template",11),m.TgZ(39,"div",13),m.TgZ(40,"h5",20),m._uU(41),m.ALo(42,"translate"),m.qZA(),m.TgZ(43,"perun-web-apps-expiration-select",23),m.NdJ("datePicker",function(Ze){return m.CHM(rt),m.oxw(2).setExpiration(Ze)}),m.qZA(),m.qZA(),m.qZA(),m.TgZ(44,"mat-step"),m.YNc(45,Ht,2,3,"ng-template",11),m.TgZ(46,"div",13),m.TgZ(47,"h5",20),m._uU(48),m.ALo(49,"translate"),m.qZA(),m.TgZ(50,"mat-radio-group",24),m.NdJ("change",function(){return m.CHM(rt),m.oxw(2).groupAssigmentChanged()})("ngModelChange",function(Ze){return m.CHM(rt),m.oxw(2).groupAssignment=Ze}),m.TgZ(51,"mat-radio-button",25),m._uU(52),m.ALo(53,"translate"),m.qZA(),m.TgZ(54,"span",26),m.ALo(55,"translate"),m.TgZ(56,"mat-radio-button",27),m._uU(57),m.ALo(58,"translate"),m.qZA(),m.qZA(),m.TgZ(59,"span",26),m.ALo(60,"translate"),m.TgZ(61,"mat-radio-button",28),m._uU(62),m.ALo(63,"translate"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.YNc(64,lt,4,3,"div",7),m.YNc(65,Ut,5,4,"div",7),m.YNc(66,Lt,6,11,"div",7),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("linear",!0),m.xp6(2),m.Q6J("stepControl",rt.usersInfoFormGroup),m.xp6(2),m.Q6J("ngIf",rt.functionalityNotSupported),m.xp6(2),m.Oqu(m.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),m.xp6(2),m.Q6J("formGroup",rt.usersInfoFormGroup),m.xp6(2),m.s9C("placeholder",m.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),m.xp6(2),m.Q6J("ngForOf",rt.namespaceOptions),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("required","namespace")),m.xp6(2),m.Oqu(m.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),m.xp6(3),m.hij(" ",rt.getSelectedNamespaceRules().csvGenHeaderDescription," "),m.xp6(3),m.Oqu(m.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),m.xp6(2),m.s9C("placeholder",rt.getSelectedNamespaceRules().csvGenPlaceholder),m.xp6(2),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("required","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),m.xp6(5),m.hij(" ",m.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),m.xp6(2),m.Q6J("ngIf","No namespace"===rt.getSelectedNamespaceRules().namespaceName),m.xp6(1),m.Q6J("ngIf","No namespace"!==rt.getSelectedNamespaceRules().namespaceName),m.xp6(5),m.Oqu(m.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),m.xp6(2),m.Q6J("expiration",rt.expiration),m.xp6(5),m.Oqu(m.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),m.xp6(2),m.Q6J("ngModel",rt.groupAssignment),m.xp6(2),m.hij(" ",m.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),m.Q6J("matTooltipDisabled",!rt.manualMemberAddingBlocked&&rt.createGroupAuth),m.xp6(2),m.Q6J("disabled",rt.manualMemberAddingBlocked||!rt.createGroupAuth),m.xp6(1),m.hij(" ",m.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),m.Q6J("matTooltipDisabled",!rt.manualMemberAddingBlocked&&0!==rt.assignableGroups.length),m.xp6(2),m.Q6J("disabled",rt.manualMemberAddingBlocked||0===rt.assignableGroups.length),m.xp6(1),m.hij(" ",m.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),m.xp6(2),m.Q6J("ngIf","none"===rt.groupAssignment),m.xp6(1),m.Q6J("ngIf","new"===rt.groupAssignment),m.xp6(1),m.Q6J("ngIf","existing"===rt.groupAssignment)}}function Ge(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",41),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.Q6J("alert_type","success"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function U(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",41),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.Q6J("alert_type","warn"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function k(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div"),m.YNc(1,Ge,3,4,"perun-web-apps-alert",40),m.YNc(2,U,3,4,"perun-web-apps-alert",40),m.qZA()),2&Mt){const rt=m.oxw(2);m.xp6(1),m.Q6J("ngIf",!1===rt.finishedWithErrors),m.xp6(1),m.Q6J("ngIf",rt.finishedWithErrors)}}function ie(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div",5),m.YNc(1,Ee,67,59,"mat-stepper",6),m.YNc(2,k,3,2,"div",7),m.qZA()),2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("ngIf","user-input"===rt.state),m.xp6(1),m.Q6J("ngIf","results"===rt.state)}}function ce(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",47),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperPrevious()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function He(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",48),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperNext()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.ekj("ml-2",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)("ml-auto",!(void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)),m.Q6J("disabled",rt.getStepperNextConditions()),m.xp6(1),m.hij(" ",m.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function ct(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",48),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).onSubmit()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("disabled",null===rt.groupAssignment||"existing"===rt.groupAssignment&&0===rt.selection.selected.length||"new"===rt.groupAssignment&&(0===rt.name.length||0===rt.description.length)||!0===rt.asSubGroup&&null===rt.parentGroup),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function bt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",42),m.TgZ(1,"button",43),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,ce,3,3,"button",44),m.YNc(5,He,3,8,"button",45),m.YNc(6,ct,3,4,"button",46),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),m.xp6(2),m.Q6J("ngIf",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex!==rt.stepper._steps.length-1),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex===rt.stepper._steps.length-1)}}function xt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",42),m.TgZ(1,"button",43),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onClose()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",49),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"mat-menu",null,50),m.TgZ(9,"button",51),m.NdJ("click",function(){return m.CHM(rt),m.oxw().generatePdf()}),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"button",51),m.NdJ("click",function(){return m.CHM(rt),m.oxw().downloadCsv()}),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.MAs(8);m.xp6(2),m.hij(" ",m.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),m.xp6(2),m.Q6J("matMenuTriggerFor",rt),m.xp6(1),m.hij(" ",m.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),m.xp6(5),m.hij(" ",m.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),m.xp6(3),m.hij(" ",m.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Yt=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe,Tt,jt,ci,vi,Ui,Li,hn){this.dialogRef=rt,this.data=kt,this.store=Ze,this.membersService=Ot,this.notificator=qe,this.translate=Tt,this.guiAuthResolver=jt,this.groupsService=ci,this.attributesService=vi,this.formBuilder=Ui,this.sponsoredMembersPDFService=Li,this.cd=hn,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new b.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.filterValue="",this.tableId=_.rc,this.finishedWithErrors=!1,this.namespaceRules=[],this.resultData=[],this.groupAttrNames=[xe.r.GROUP_SYNC_ENABLED,xe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(rt){return rt.forEach(kt=>{if("OK"!==kt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",E.kI.required],sponsoredMembers:["",[E.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(rt=>{this.manualMemberAddingBlocked=(0,w.jh)(rt,xe.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.manualMemberAddingBlocked?(this.loading=!1,this.cd.detectChanges()):this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(kt=>{this.allVoGroups=kt.filter(Ze=>"members"!==Ze.name),this.assignableGroups=this.filterAssignableGroups(kt),this.membersService.getAllNamespacesRules().subscribe(Ze=>{this.store.get("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(Ze),this.namespaceRules.forEach(Ot=>this.namespaceOptions.push(Ot.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"yyyy-MM-dd","en-GB")}applyFilter(rt){this.filterValue=rt}groupAssigmentChanged(){this.selection.clear(),this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null}onSubmit(){this.loading=!0,"new"===this.groupAssignment?this.asSubGroup?this.groupsService.createGroupWithParentGroupNameDescription(this.parentGroup.id,this.name,this.description).subscribe(rt=>{this.groupIds.push(rt.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(rt=>{this.groupIds.push(rt.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(rt=>rt.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(rt=>rt.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,w.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()}filterAssignableGroups(rt){const kt=[];for(const Ze of rt)!(0,w.bx)(Ze)&&!(0,w.jh)(Ze.attributes,xe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Ze])&&kt.push(Ze);return kt}createOutputObjects(rt){let kt="",Ze="",Ot="",qe="";const Tt=[];return rt.forEach(jt=>{kt=jt.name.replace(";"," ").split(";")[0],Ze=jt.status,Ot=jt.login?jt.login:Ot,qe=jt.password?jt.password:qe;const ci={name:kt,status:Ze,login:Ot,password:qe};jt.note&&(ci.note=jt.note),Tt.push(ci)}),Tt}onGenerate(){this.loading=!0;const rt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),kt=this.getSelectedNamespaceRules().csvGenHeader,Ze=[];for(const qe of rt){const Tt=this.parseMemberLine(qe);if("format"===Tt||"email"===Tt)return void(this.loading=!1);""!==Tt&&Ze.push(Tt)}const Ot={data:Ze,header:kt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(Ot.groups=this.groupIds),"never"!==this.expiration&&(Ot.validityTo=(0,C.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(Ot.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(Ot).subscribe(qe=>{this.state="results",this.finishedWithErrors=Mt.didSomeGenerationFailed(qe),this.loading=!1,this.resultData=qe},()=>this.loading=!1)}parseMemberLine(rt){const kt=rt.trim();if(""===kt)return"";const Ze=kt.split(";"),Ot=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Ze.length!==Ot.length)return"format";if("mail"===Ot[2].slice(Ot[2].length-4).toLowerCase()&&!Ze[2].trim().match(w.B2))return"email";if("login"===Ot[3]&&""===Ze[3].trim())return"login";let qe="";for(const Tt of Ze)qe+=Tt.trim()+";";return qe.slice(0,-1)}userInputValidator(){return rt=>{const kt=rt.value.split("\n");for(const Ze of kt){const Ot=this.parseMemberLine(Ze);if("format"===Ot)return{invalidFormat:{value:Ze}};if("email"===Ot)return{invalidEmail:{value:Ze}};if("login"===Ot)return{invalidLogin:{value:Ze}}}return null}}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(A.d6),m.Y36(e.uq),m.Y36(A.V6),m.Y36(L.sK),m.Y36(A.x4),m.Y36(e.ff),m.Y36(e.H8),m.Y36(E.qu),m.Y36(A.HV),m.Y36(m.sBO))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(rt,kt){if(1&rt&&m.Gf(i,5),2&rt){let Ze;m.iGM(Ze=m.CRH())&&(kt.stepper=Ze.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"],["formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["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"],[3,"expiration","datePicker"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],["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"],[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"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,o,1,0,"mat-spinner",1),m.YNc(5,ie,3,2,"div",2),m.YNc(6,bt,7,6,"div",3),m.YNc(7,xt,15,13,"div",3),m.qZA()),2&rt&&(m.Tol(kt.theme),m.xp6(2),m.Oqu(m.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading&&void 0!==kt.stepper&&"results"!==kt.state),m.xp6(1),m.Q6J("ngIf","results"===kt.state))},directives:[g.uh,C.O5,O.$g,g.xY,G.Vq,G.C0,G.VY,ne.w,E._Y,E.JL,E.sg,ge.KE,Me.gD,E.JJ,E.u,E.Q7,C.sg,oe.ey,ge.TO,ge.hX,E.Fj,J.Nt,Y.VQ,E.On,Y.U0,ue,Re.gM,Qe.r,Te.L,Ae.W,g.H8,Le.lW,ae.p6,ae.VK,ae.OP],pipes:[L.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var It=p(38383);function Rt(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",12)}const Et=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Bt(Mt,Qt){if(1&Mt&&m._UZ(0,"perun-web-apps-members-list",13),2&Mt){const rt=m.oxw();m.Q6J("disableRouting",!0)("hidden",rt.loading)("disableStatusChange",!0)("members",rt.members)("selection",rt.selection)("displayedColumns",m.DdM(7,Et))("tableId",rt.tableId)}}function Jt(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let ai=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe,Tt){this.dialogRef=rt,this.data=kt,this.store=Ze,this.membersService=Ot,this.notificator=qe,this.translate=Tt,this.loading=!1,this.tableId=_.US,this.expiration="never",this.searchCtrl=new E.NI("",[E.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new b.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(rt){if(this.loading=!0,0===rt.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const kt=rt.pop();kt.sponsored?this.membersService.sponsorMember(kt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(rt)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(kt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(rt)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const rt=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(rt)}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"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,[xe.r.MEMBER_DEF_EXPIRATION,xe.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(kt=>{this.members=kt,this.loading=!1},()=>this.loading=!1))}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(A.d6),m.Y36(e.uq),m.Y36(A.V6),m.Y36(L.sK))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["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"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",1),m.TgZ(5,"mat-form-field",2),m.TgZ(6,"label"),m.TgZ(7,"input",3),m.NdJ("keyup.enter",function(){return kt.onSearchByString()}),m.ALo(8,"translate"),m.qZA(),m.qZA(),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.qZA(),m.TgZ(12,"button",4),m.NdJ("click",function(){return kt.onSearchByString()}),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.YNc(15,Rt,1,0,"mat-spinner",5),m.YNc(16,Bt,1,8,"perun-web-apps-members-list",6),m.YNc(17,Jt,3,3,"perun-web-apps-alert",7),m.TgZ(18,"div"),m._UZ(19,"br"),m.TgZ(20,"h6"),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"perun-web-apps-expiration-select",8),m.NdJ("datePicker",function(Ot){return kt.setExpiration(Ot)}),m.qZA(),m.qZA(),m.qZA(),m.TgZ(24,"div",9),m.TgZ(25,"button",10),m.NdJ("click",function(){return kt.onCancel()}),m._uU(26),m.ALo(27,"translate"),m.qZA(),m.TgZ(28,"button",11),m.NdJ("click",function(){return kt.onSubmit()}),m._uU(29),m.ALo(30,"translate"),m.qZA(),m.qZA(),m.qZA()),2&rt&&(m.Tol(kt.theme),m.xp6(2),m.Oqu(m.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),m.xp6(5),m.s9C("placeholder",m.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),m.Q6J("formControl",kt.searchCtrl),m.xp6(3),m.hij(" ",m.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),m.xp6(2),m.Q6J("disabled",kt.loading),m.xp6(1),m.hij(" ",m.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),m.xp6(2),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",kt.firstSearchDone),m.xp6(1),m.Q6J("ngIf",!kt.firstSearchDone),m.xp6(4),m.Oqu(m.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),m.xp6(5),m.hij(" ",m.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",kt.loading||0===kt.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[g.uh,g.xY,ge.KE,J.Nt,E.Fj,E.JJ,E.oH,ge.TO,Le.lW,C.O5,O.$g,It.O,ne.w,ue,g.H8],pipes:[L.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),Mt})();var mi=p(96214),bi=p(84847),yi=p(32075),Wi=p(19352),gn=p(58964),cn=p(18750),Ki=p(50301),Tn=p(11735),rn=p(20919),st=p(5865);function St(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"th",19),m.TgZ(1,"mat-checkbox",20),m.NdJ("change",function(Ze){m.CHM(rt);const Ot=m.oxw();return Ze?Ot.masterToggle():null}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("aria-label",rt.checkboxLabel())("checked",rt.selection.hasValue()&&rt.isAllSelected())("indeterminate",rt.selection.hasValue()&&!rt.isAllSelected())}}function ot(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"td",21),m.TgZ(1,"mat-checkbox",22),m.NdJ("change",function(Ze){const qe=m.CHM(rt).$implicit,Tt=m.oxw();return Ze?Tt.selection.toggle(qe):null})("click",function(Ze){return Ze.stopPropagation()}),m.qZA(),m.qZA()}if(2&Mt){const rt=Qt.$implicit,kt=m.oxw();m.xp6(1),m.Q6J("aria-label",kt.checkboxLabel(rt))("checked",kt.selection.isSelected(rt))}}function Ke(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function vt(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",24),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",rt.member.id," ")}}function F(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function Ye(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.member.user)," ")}}function gt(Mt,Qt){1&Mt&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function Dt(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"memberEmail"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,rt.member))}}function ri(Mt,Qt){1&Mt&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function ti(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"memberLogins"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.member)," ")}}function Di(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function wi(Mt,Qt){if(1&Mt&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"userFullName"),m._UZ(3,"br"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.user),"")}}function $i(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m.YNc(1,wi,4,3,"span",27),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.Q6J("ngForOf",rt.sponsors)}}function qi(Mt,Qt){1&Mt&&m._UZ(0,"th",23)}function Fi(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"span",30),m.ALo(1,"translate"),m.TgZ(2,"button",31),m.NdJ("mouseenter",function(){return m.CHM(rt),m.oxw(2).disableRouting=!0})("mouseleave",function(){m.CHM(rt);const Ze=m.oxw(2);return Ze.disableRouting=Ze.routingStrategy})("click",function(){m.CHM(rt);const Ze=m.oxw().$implicit;return m.oxw().resetPassword(Ze)}),m.TgZ(3,"mat-icon"),m._uU(4,"vpn_key"),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("matTooltipPosition","above")("matTooltip",m.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),m.xp6(2),m.Q6J("disabled",rt.loading)}}function Ji(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"td",25),m.TgZ(1,"button",28),m.NdJ("click",function(){const Ot=m.CHM(rt).$implicit;return m.oxw().showSponsors(Ot)})("mouseenter",function(){return m.CHM(rt),m.oxw().disableRouting=!0})("mouseleave",function(){m.CHM(rt);const Ze=m.oxw();return Ze.disableRouting=Ze.routingStrategy}),m.TgZ(2,"mat-icon"),m._uU(3,"edit"),m.qZA(),m.qZA(),m.YNc(4,Fi,5,5,"span",29),m.qZA()}if(2&Mt){const rt=Qt.$implicit,kt=m.oxw();m.xp6(4),m.Q6J("ngIf",kt.passwdResetAuth(rt))}}function _n(Mt,Qt){1&Mt&&m._UZ(0,"tr",32)}const Ni=function(Mt,Qt){return["/organizations",Mt,"members",Qt]};function Ri(Mt,Qt){if(1&Mt&&m._UZ(0,"tr",33),2&Mt){const rt=Qt.$implicit,kt=m.oxw();m.ekj("cursor-pointer",!kt.disableRouting)("disable-outline",kt.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",kt.disableRouting?null:m.WLB(6,Ni,rt.member.voId,rt.member.id))("routerLink",kt.disableRouting?null:m.WLB(9,Ni,rt.member.voId,rt.member.id))}}function sn(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Xi(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let en=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe){this.dialog=rt,this.authResolver=kt,this.storeService=Ze,this.attributesManager=Ot,this.tableCheckbox=qe,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new m.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=w.f7}set matSort(rt){this.sort=rt}static getSortDataForColumn(rt,kt){var Ze;switch(kt){case"id":return rt.member.id.toString();case"name":return rt.member.user?rt.member.user.lastName?rt.member.user.lastName:null!==(Ze=rt.member.user.firstName)&&void 0!==Ze?Ze:"":"";case"sponsors":return rt.sponsors.length.toString();default:return""}}static getDataForColumn(rt,kt){switch(kt){case"id":return rt.member.id.toString();case"name":return rt.member.user?(0,w.bD)(rt.member.user):"";case"sponsors":return rt.sponsors.map(Ze=>(0,w.bD)(Ze.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(rt=>"id"!==rt)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportData(rt){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Mt.getDataForColumn),rt)}setDataSource(){this.dataSource||(this.dataSource=new yi.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(rt,kt)=>(0,w.Sd)(rt,kt,this.displayedColumns,Mt.getDataForColumn),this.dataSource.sortData=(rt,kt)=>(0,w.pR)(rt,kt,Mt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(rt){const kt=(0,w.kZ)();kt.width="650px",kt.data={sponsors:rt.sponsors,member:rt.member,theme:"vo-theme"},this.dialog.open(Wi.H,kt).afterClosed().subscribe(Ot=>{Ot&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(rt){return rt?`${this.selection.isSelected(rt)?"deselect":"select"} row ${rt.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(rt){this.loading=!0;const kt=this.storeService.get("password_namespace_attributes").map(Ze=>{const Ot=Ze.split(":");return Ot[Ot.length-1]});this.attributesManager.getLogins(rt.member.userId).subscribe(Ze=>{const Ot=Ze.filter(jt=>kt.includes(jt.friendlyNameParameter)),qe=(0,w.kZ)();qe.width="400px",qe.data={userId:rt.member.userId,memberId:rt.member.id,logins:Ot},this.dialog.open(gn.m,qe).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(rt){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:rt.member.voId,beanName:"Vo"},rt.member])}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.uw),m.Y36(A.x4),m.Y36(A.d6),m.Y36(e.H8),m.Y36(A.UA))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-sponsored-members-list"]],viewQuery:function(rt,kt){if(1&rt&&(m.Gf(w.l9,7),m.Gf(bi.YE,7)),2&rt){let Ze;m.iGM(Ze=m.CRH())&&(kt.child=Ze.first),m.iGM(Ze=m.CRH())&&(kt.matSort=Ze.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[m.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","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"],["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(rt,kt){1&rt&&(m.TgZ(0,"div",0),m.TgZ(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportData",function(Ot){return kt.exportData(Ot)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,St,2,3,"th",4),m.YNc(5,ot,2,2,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,Ke,3,3,"th",7),m.YNc(8,vt,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,F,3,3,"th",7),m.YNc(11,Ye,3,3,"td",10),m.BQk(),m.ynx(12,11),m.YNc(13,gt,3,3,"th",12),m.YNc(14,Dt,3,3,"td",10),m.BQk(),m.ynx(15,13),m.YNc(16,ri,3,3,"th",12),m.YNc(17,ti,3,3,"td",10),m.BQk(),m.ynx(18,14),m.YNc(19,Di,3,3,"th",7),m.YNc(20,$i,2,1,"td",10),m.BQk(),m.ynx(21,15),m.YNc(22,qi,1,0,"th",7),m.YNc(23,Ji,5,1,"td",10),m.BQk(),m.YNc(24,_n,1,0,"tr",16),m.YNc(25,Ri,1,12,"tr",17),m.qZA(),m.qZA(),m.qZA(),m.YNc(26,sn,3,3,"perun-web-apps-alert",18),m.YNc(27,Xi,3,3,"perun-web-apps-alert",18)),2&rt&&(m.Q6J("hidden",0===kt.dataSource.filteredData.length||0===kt.sponsoredMembers.length),m.xp6(1),m.Q6J("pageSizeOptions",kt.pageSizeOptions)("dataLength",kt.dataSource.filteredData.length)("tableId",kt.tableId),m.xp6(1),m.Q6J("dataSource",kt.dataSource),m.xp6(22),m.Q6J("matHeaderRowDef",kt.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",kt.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===kt.dataSource.filteredData.length&&0!==kt.sponsoredMembers.length),m.xp6(1),m.Q6J("ngIf",0===kt.sponsoredMembers.length))},directives:[cn.l,yi.BZ,bi.YE,yi.w1,yi.fO,yi.ge,T.oG,yi.Dz,yi.ev,bi.nU,C.sg,Le.lW,de.Hw,C.O5,Re.gM,yi.as,yi.XQ,yi.nj,yi.Gk,Ki.YH,Tn.rH,ne.w],pipes:[L.X$,Ue.d,rn.D,st.p],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();function an(Mt,Qt){if(1&Mt&&(m.TgZ(0,"button",10),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(),kt=m.MAs(9);m.Q6J("disabled",rt.findSponsorsAuth&&0===rt.voSponsors.length)("matMenuTriggerFor",kt),m.xp6(1),m.hij(" ",m.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function dn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCreate()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function wn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onGenerate()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function xn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",12),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onSponsorExistingMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function Oi(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",13)}function kn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"app-sponsored-members-list",14),m.NdJ("refreshTable",function(){return m.CHM(rt),m.oxw().refresh()}),m.qZA()}if(2&Mt){const rt=m.oxw();m.Q6J("disableRouting",!rt.routeAuth)("selection",rt.selection)("filterValue",rt.searchString)("sponsoredMembers",rt.members)("tableId",rt.tableId)}}let Nn=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe,Tt){this.membersManager=rt,this.dialog=kt,this.authResolver=Ze,this.storeService=Ot,this.authzResolver=qe,this.entityStorageService=Tt,this.members=[],this.voSponsors=[],this.selection=new b.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=_.Bf,this.attrNames=[xe.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights();const rt=["SPONSOR"],kt=new Map;this.authResolver.setRolesAuthorization(rt,this.vo,kt),this.findSponsorsAuth=kt.get(rt[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(I.u.SPONSOR,this.vo.id,"Vo",[xe.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(Ot=>{this.voSponsors=Ot,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 rt=(0,w.kZ)();rt.width="620px",rt.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(V,rt).afterClosed().subscribe(Ze=>{Ze&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}onGenerate(){const rt=(0,w.kZ)();rt.width="750px",rt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Yt,rt).afterClosed().subscribe(Ze=>{Ze&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}onSponsorExistingMember(){const rt=(0,w.kZ)();rt.width="650px",rt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ai,rt).afterClosed().subscribe(Ze=>{Ze&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(rt=>{this.selection.clear(),this.members=rt,this.setAuthRights(),this.loading=!1})}applyFilter(rt){this.searchString=rt}}return Mt.id="VoSponsoredMembersComponent",Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(e.uq),m.Y36(g.uw),m.Y36(A.x4),m.Y36(A.d6),m.Y36(e.Ct),m.Y36(A.fb))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(rt,kt){2&rt&&m.ekj("router-component",kt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["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","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"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["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(rt,kt){1&rt&&(m.TgZ(0,"div"),m.TgZ(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 kt.refresh()}),m.qZA(),m.TgZ(5,"span",2),m.ALo(6,"translate"),m.YNc(7,an,3,5,"button",3),m.qZA(),m.TgZ(8,"mat-menu",null,4),m.YNc(10,dn,3,3,"button",5),m.YNc(11,wn,3,3,"button",5),m.qZA(),m.YNc(12,xn,3,3,"button",6),m.TgZ(13,"perun-web-apps-immediate-filter",7),m.NdJ("filter",function(Ot){return kt.applyFilter(Ot)}),m.qZA(),m.YNc(14,Oi,1,0,"mat-spinner",8),m.YNc(15,kn,1,5,"app-sponsored-members-list",9),m.qZA()),2&rt&&(m.xp6(2),m.Oqu(m.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),m.xp6(3),m.s9C("matTooltip",m.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),m.Q6J("matTooltipDisabled",!(kt.findSponsorsAuth&&0===kt.voSponsors.length)),m.xp6(2),m.Q6J("ngIf",kt.createAuth||kt.generateAuth),m.xp6(3),m.Q6J("ngIf",kt.createAuth),m.xp6(1),m.Q6J("ngIf",kt.generateAuth),m.xp6(1),m.Q6J("ngIf",kt.setSponsorshipAuth),m.xp6(1),m.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),m.xp6(1),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading))},directives:[mi.t,Re.gM,C.O5,Le.lW,ae.p6,ae.VK,ae.OP,Te.L,O.$g,en],pipes:[L.X$],styles:[""]}),Mt})()},25309:($e,_e,p)=>{"use strict";p.d(_e,{Y:()=>je});var e=p(32105),b=p(9244),_=p(36908),w=p(11717),g=p(20449),A=p(48966),E=p(93075),C=p(5e3),I=p(51062),P=p(11735),m=p(69808),L=p(20773),O=p(67322),G=p(98833),ne=p(47423),ge=p(29772);function J(ye,Be){1&ye&&C._UZ(0,"mat-spinner",3)}function Me(ye,Be){if(1&ye){const W=C.EpF();C.TgZ(0,"div"),C.TgZ(1,"div",4),C.TgZ(2,"mat-form-field"),C._UZ(3,"input",5),C.ALo(4,"translate"),C.TgZ(5,"mat-error"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.qZA(),C.TgZ(8,"mat-form-field"),C._UZ(9,"input",6),C.ALo(10,"translate"),C.TgZ(11,"mat-error"),C._uU(12),C.ALo(13,"translate"),C.qZA(),C.qZA(),C.qZA(),C.TgZ(14,"div",7),C.TgZ(15,"button",8),C.NdJ("click",function(){return C.CHM(W),C.oxw().onCancel()}),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"div",9),C.ALo(19,"translate"),C.TgZ(20,"button",10),C.NdJ("click",function(){return C.CHM(W),C.oxw().onSubmit()}),C._uU(21),C.ALo(22,"translate"),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&ye){const W=C.oxw();C.xp6(3),C.s9C("placeholder",C.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),C.Q6J("formControl",W.fullNameCtrl),C.xp6(3),C.hij(" ",C.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),C.xp6(3),C.s9C("placeholder",C.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),C.Q6J("formControl",W.shortNameCtrl),C.xp6(3),C.hij(" ",C.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),C.xp6(4),C.hij(" ",C.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),C.Q6J("matTooltipDisabled",W.shortNameCtrl.valid&&W.fullNameCtrl.valid),C.xp6(2),C.Q6J("disabled",W.shortNameCtrl.invalid||W.fullNameCtrl.invalid),C.xp6(1),C.hij(" ",C.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let oe=(()=>{class ye{constructor(W,R,me,be,Ie,pe){this.dialogRef=W,this.data=R,this.notificator=me,this.voService=be,this.translate=Ie,this.router=pe,Ie.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(Se=>this.successMessage=Se)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern("^[\\w.-]+$"),E.kI.maxLength(33)]),this.fullNameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(W=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",W.id]),this.dialogRef.close(!0)},()=>this.loading=!1)}}return ye.\u0275fac=function(W){return new(W||ye)(C.Y36(A.so),C.Y36(A.WI),C.Y36(_.V6),C.Y36(e.YF),C.Y36(I.sK),C.Y36(P.F0))},ye.\u0275cmp=C.Xpm({type:ye,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(W,R){1&W&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,J,1,0,"mat-spinner",1),C.YNc(5,Me,23,25,"div",2),C.qZA()),2&W&&(C.Tol(R.theme),C.xp6(2),C.Oqu(C.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),C.xp6(2),C.Q6J("ngIf",R.loading),C.xp6(1),C.Q6J("ngIf",!R.loading))},directives:[A.uh,m.O5,L.$g,A.xY,O.KE,G.Nt,E.Fj,E.Q7,E.JJ,E.oH,O.TO,A.H8,ne.lW,ge.gM],pipes:[I.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}}"]}),ye})();var Re=p(10036),T=p(77968),j=p(4235),Y=p(25245),q=p(96214),te=p(7434),ue=p(87831);function de(ye,Be){if(1&ye){const W=C.EpF();C.TgZ(0,"button",9),C.NdJ("click",function(){return C.CHM(W),C.oxw().onCreateVo()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&ye&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function Le(ye,Be){if(1&ye){const W=C.EpF();C.TgZ(0,"button",10),C.NdJ("click",function(){return C.CHM(W),C.oxw().onRemoveVo()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}if(2&ye){const W=C.oxw();C.Q6J("disabled",0===W.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function Ue(ye,Be){1&ye&&C._UZ(0,"mat-spinner",11)}function ze(ye,Be){if(1&ye&&C._UZ(0,"perun-web-apps-vos-list",12),2&ye){const W=C.oxw();C.Q6J("tableId",W.tableId)("displayedColumns",W.displayedColumns)("filterValue",W.filterValue)("recentIds",W.recentIds)("selection",W.selection)("vos",W.vos)}}const le=function(){return{color:"black"}};let je=(()=>{class ye{constructor(W,R,me,be,Ie,pe){this.sideMenuService=W,this.voService=R,this.guiAuthResolver=me,this.dialog=be,this.notificator=Ie,this.apiRequest=pe,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=Re.tw}ngOnInit(){this.loading=!0,this.selection=new g.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(W=>{this.vos=W,this.recentIds=(0,b.vL)("vos"),this.loading=!1},W=>{const R=W.error;"PrivilegeException"===R.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(R)})}applyFilter(W){this.filterValue=W}onCreateVo(){const W=(0,b.kZ)();W.width="610px",W.data={theme:"vo-theme"},this.dialog.open(oe,W).afterClosed().subscribe(me=>{me&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const W=(0,b.kZ)();W.width="500px",W.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(w.o,W).afterClosed().subscribe(me=>{me&&this.refreshTable()})}}return ye.id="VoSelectPageComponent",ye.\u0275fac=function(W){return new(W||ye)(C.Y36(T.D),C.Y36(e.YF),C.Y36(_.x4),C.Y36(A.uw),C.Y36(_.V6),C.Y36(_.F5))},ye.\u0275cmp=C.Xpm({type:ye,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(W,R){2&W&&C.ekj("router-component",R.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(W,R){1&W&&(C.TgZ(0,"div",0),C._UZ(1,"perun-web-apps-back-button"),C.TgZ(2,"h1",1),C._UZ(3,"mat-icon",2),C._uU(4),C.ALo(5,"translate"),C.qZA(),C.TgZ(6,"perun-web-apps-refresh-button",3),C.NdJ("refresh",function(){return R.refreshTable()}),C.qZA(),C.YNc(7,de,3,3,"button",4),C.YNc(8,Le,3,4,"button",5),C.TgZ(9,"perun-web-apps-immediate-filter",6),C.NdJ("filter",function(be){return R.applyFilter(be)}),C.qZA(),C.YNc(10,Ue,1,0,"mat-spinner",7),C.YNc(11,ze,1,6,"perun-web-apps-vos-list",8),C.qZA()),2&W&&(C.xp6(3),C.Q6J("ngStyle",C.DdM(10,le)),C.xp6(1),C.hij(" ",C.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),C.xp6(3),C.Q6J("ngIf",R.createAuth),C.xp6(1),C.Q6J("ngIf",R.deleteAuth),C.xp6(1),C.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),C.xp6(1),C.Q6J("ngIf",R.loading),C.xp6(1),C.Q6J("ngIf",!R.loading))},directives:[j.W,Y.Hw,m.PC,q.t,m.O5,ne.lW,te.L,L.$g,ue.Z],pipes:[I.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),ye})()},9193:($e,_e,p)=>{"use strict";var e=p(22313),b=p(5e3),_=p(11735);let w=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(ke,pt){},styles:[""]}),fe})();var g=p(32105),A=p(36908),E=p(9244),C=p(16074),I=p(77968),P=p(51062),m=p(48966),L=p(2638),O=p(77446),G=p(93075),ne=p(69808),ge=p(25245),J=p(47423),Me=p(20773),oe=p(98380),Re=p(90508),T=p(29772);function j(fe,at){1&fe&&b._UZ(0,"mat-spinner",3)}function Y(fe,at){1&fe&&(b.TgZ(0,"perun-web-apps-alert",4),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function q(fe,at){if(1&fe&&(b.TgZ(0,"div",7),b.TgZ(1,"a",8),b.TgZ(2,"span",9),b._uU(3),b.qZA(),b._UZ(4,"mat-icon",10),b.TgZ(5,"p",11),b._uU(6),b.qZA(),b.qZA(),b.qZA()),2&fe){const ke=at.$implicit;b.xp6(1),b.Gre("",ke.style," item-itself"),b.s9C("matTooltip",ke.tooltip),b.Q6J("routerLink",ke.url),b.xp6(2),b.Oqu(ke.type),b.xp6(1),b.Q6J("svgIcon",ke.cssIcon),b.xp6(2),b.Oqu(ke.label)}}function te(fe,at){if(1&fe&&(b.TgZ(0,"div",5),b.YNc(1,q,7,8,"div",6),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("ngForOf",ke.items)}}let ue=(()=>{class fe{constructor(ke,pt,Vt,qt){this.vosManager=ke,this.groupsManager=pt,this.authResolver=Vt,this.facilitiesManager=qt,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,E.j4)("recent");for(const ke of this.recentItems)switch(ke.type){case"Vo":this.vosIds.push(ke.id);break;case"Group":this.groupsIds.push(ke.id);break;case"Facility":this.facilitiesIds.push(ke.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(ke=>{this.vos=ke,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(ke=>{this.groups=ke,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(ke=>{this.facilities=ke,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const ke of this.recentItems)switch(ke.type){case"Vo":{const pt=this.vos.filter(Vt=>Vt.id===ke.id)[0];pt&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${pt.id}`,label:pt.name,tooltip:pt.name,style:"vo-btn",type:"Organization"});break}case"Group":{const pt=this.groups.filter(Vt=>Vt.id===ke.id)[0];pt&&this.items.push({cssIcon:"perun-group",url:`/organizations/${pt.voId}/groups/${pt.id}`,label:pt.shortName,tooltip:`${ke.voName} : ${pt.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const pt=this.facilities.filter(Vt=>Vt.id===ke.id)[0];pt&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${pt.id}`,label:pt.name,tooltip:pt.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(g.YF),b.Y36(g.ff),b.Y36(A.x4),b.Y36(g.IQ))},fe.\u0275cmp=b.Xpm({type:fe,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"],["queryParamsHandling","merge",3,"routerLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(ke,pt){1&ke&&(b.YNc(0,j,1,0,"mat-spinner",0),b.YNc(1,Y,3,3,"perun-web-apps-alert",1),b.YNc(2,te,2,1,"div",2)),2&ke&&(b.Q6J("ngIf",pt.loading),b.xp6(1),b.Q6J("ngIf",0===pt.items.length&&!pt.loading),b.xp6(1),b.Q6J("ngIf",pt.items.length>0))},directives:[ne.O5,Me.$g,oe.w,ne.sg,Re.wG,_.yS,T.gM,ge.Hw],pipes:[P.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}"]}),fe})();var de=p(87831),Le=p(24179),Ue=p(62109),ze=p(74010);function le(fe,at){1&fe&&b._UZ(0,"mat-spinner",7)}const je=function(){return["id","recent","shortName","name"]};function ye(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-vos-list",8),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(4,je))("recentIds",ke.recentIds)("vos",ke.objects)}}const Be=function(){return["id","recent","vo","name","description"]};function W(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-groups-list",9),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(4,Be))("groups",ke.objects)("recentIds",ke.recentIds)}}const R=function(){return["id","recent","name","vo","facility"]};function me(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-resources-list",10),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(5,R))("resources",ke.objects)("recentIds",ke.recentIds)("routingVo",!0)}}const be=function(){return["id","recent","name","description"]};function Ie(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-facilities-list",11),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("displayedColumns",b.DdM(4,be))("facilities",ke.objects)("pageSizeOptions",null)("recentIds",ke.recentIds)}}function pe(fe,at){if(1&fe&&(b.TgZ(0,"div"),b.YNc(1,ye,2,5,"span",6),b.YNc(2,W,2,5,"span",6),b.YNc(3,me,2,6,"span",6),b.YNc(4,Ie,2,5,"span",6),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("ngIf","Vo"===ke.primaryObject),b.xp6(1),b.Q6J("ngIf","Group"===ke.primaryObject),b.xp6(1),b.Q6J("ngIf","Resource"===ke.primaryObject),b.xp6(1),b.Q6J("ngIf","Facility"===ke.primaryObject)}}let Se=(()=>{class fe{constructor(ke,pt,Vt){this.authzResolver=ke,this.guiAuthResolver=pt,this.resourceService=Vt,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(ke=>{this.objects=ke,this.recentIds=(0,E.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(ke=>{this.objects=ke,this.recentIds=(0,E.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(ke=>{this.objects=ke,this.recentIds=(0,E.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(ke=>{this.objects=ke.map(pt=>({facility:pt})),this.recentIds=(0,E.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(g.Ct),b.Y36(A.x4),b.Y36(g.xk))},fe.\u0275cmp=b.Xpm({type:fe,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(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b._UZ(2,"mat-icon",2),b._uU(3),b.ALo(4,"translate"),b.TgZ(5,"span",3),b.ALo(6,"translate"),b.TgZ(7,"mat-icon",4),b._uU(8,"info_outline"),b.qZA(),b.qZA(),b.qZA(),b.YNc(9,le,1,0,"mat-spinner",5),b.YNc(10,pe,5,4,"div",6),b.qZA()),2&ke&&(b.xp6(2),b.Q6J("svgIcon",pt.svgIcon),b.xp6(1),b.hij(" ",b.lcZ(4,5,pt.title)," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(6,7,pt.roleTooltipInfo)),b.xp6(4),b.Q6J("ngIf",pt.loading),b.xp6(1),b.Q6J("ngIf",!pt.loading))},directives:[ge.Hw,T.gM,ne.O5,Me.$g,de.Z,Le.W,Ue.C,ze.X],pipes:[P.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}"]}),fe})();var Xe=p(31359);function Je(fe,at){if(1&fe){const ke=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"mat-checkbox",8),b.NdJ("change",function(Vt){const ni=b.CHM(ke).$implicit,pi=b.oxw();return Vt?pi.changeRoleView(ni):null}),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.qZA()}if(2&fe){const ke=at.$implicit,pt=b.oxw();b.xp6(1),b.Q6J("checked",pt.isRoleShowed(ke)),b.xp6(1),b.Oqu(b.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+ke))}}function nt(fe,at){if(1&fe){const ke=b.EpF();b.TgZ(0,"button",15),b.NdJ("click",function(){return b.CHM(ke),b.oxw(2).rightSettingOpened=!0}),b.TgZ(1,"mat-icon"),b._uU(2,"settings"),b.qZA(),b.qZA()}}function Ve(fe,at){1&fe&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function X(fe,at){1&fe&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function z(fe,at){if(1&fe){const ke=b.EpF();b.TgZ(0,"button",23),b.NdJ("click",function(){return b.CHM(ke),b.oxw(3).goToUserProfile()}),b.TgZ(1,"mat-icon",24),b._uU(2,"exit_to_app"),b.qZA(),b._uU(3),b.ALo(4,"translate"),b.qZA()}if(2&fe){const ke=b.oxw(3);b.xp6(3),b.AsE("",b.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",ke.userProfileName," ")}}const Q=function(){return["/myProfile"]};function D(fe,at){if(1&fe&&(b.TgZ(0,"div"),b.TgZ(1,"div",16),b.TgZ(2,"div",17),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.TgZ(5,"div",18),b.YNc(6,Ve,3,3,"span",14),b.YNc(7,X,3,3,"span",14),b.qZA(),b.TgZ(8,"div",19),b.TgZ(9,"button",20),b._UZ(10,"mat-icon",21),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.YNc(13,z,5,4,"button",22),b.qZA(),b.qZA(),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(3),b.hij(" ",b.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),b.xp6(3),b.Q6J("ngIf",!ke.userProfileUrl),b.xp6(1),b.Q6J("ngIf",ke.userProfileUrl),b.xp6(2),b.Q6J("routerLink",b.DdM(10,Q)),b.xp6(2),b.hij(" ",b.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),b.xp6(2),b.Q6J("ngIf",ke.userProfileUrl)}}function H(fe,at){1&fe&&(b.TgZ(0,"span"),b.TgZ(1,"div",3),b._uU(2),b.ALo(3,"translate"),b.qZA(),b._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),b.qZA()),2&fe&&(b.xp6(2),b.hij(" ",b.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function V(fe,at){1&fe&&(b.TgZ(0,"div",27),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function xe(fe,at){if(1&fe&&b._UZ(0,"app-perun-web-apps-dashboard-card",30),2&fe){const ke=b.oxw().$implicit,pt=b.oxw(3);b.Q6J("roleName",ke)("role",pt.roles[ke])}}function Qe(fe,at){if(1&fe&&(b.TgZ(0,"div",28),b.YNc(1,xe,1,2,"app-perun-web-apps-dashboard-card",29),b.qZA()),2&fe){const ke=at.$implicit,pt=b.oxw(3);b.xp6(1),b.Q6J("ngIf",pt.isRoleShowed(ke))}}function Te(fe,at){if(1&fe&&(b.TgZ(0,"div"),b.YNc(1,H,5,3,"span",14),b.YNc(2,V,3,3,"div",25),b.TgZ(3,"div"),b.YNc(4,Qe,2,1,"div",26),b.qZA(),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("ngIf",ke.recentlyViewedShow),b.xp6(1),b.Q6J("ngIf",ke.rolesToHide.toString()!==ke.roleNames.toString()),b.xp6(2),b.Q6J("ngForOf",ke.roleNames)}}function Ae(fe,at){if(1&fe&&(b.TgZ(0,"div",9),b.TgZ(1,"h1",10),b._UZ(2,"mat-icon",11),b.TgZ(3,"span",12),b._uU(4),b.ALo(5,"translate"),b.ALo(6,"userFullName"),b.qZA(),b.YNc(7,nt,3,0,"button",13),b.qZA(),b.YNc(8,D,14,11,"div",14),b.YNc(9,Te,5,3,"div",14),b.qZA()),2&fe){const ke=b.oxw();b.xp6(4),b.AsE("",b.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",b.lcZ(6,7,ke.user),""),b.xp6(3),b.Q6J("ngIf",!ke.isOnlySelfRole),b.xp6(1),b.Q6J("ngIf",ke.isOnlySelfRole),b.xp6(1),b.Q6J("ngIf",!ke.isOnlySelfRole)}}let ae=(()=>{class fe{constructor(ke,pt,Vt,qt,ni,pi,oi,Si,Gi,An){this.userManager=ke,this.storeService=pt,this.sideMenuService=Vt,this.route=qt,this.router=ni,this.notificator=pi,this.translateService=oi,this.dialog=Si,this.apiRequestConfiguration=Gi,this.otherApplicationService=An,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","FACILITYOBSERVER","RESOURCEOBSERVER"],oi.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(jn=>this.mailSuccessMessage=jn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const ke=Object.keys(this.roles);this.isOnlySelfRole=ke.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(pt=>ke.includes(pt)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(ke){if(this.isRoleShowed(ke)){const pt=[];for(const Vt of this.roleNames)this.isRoleShowed(Vt)||pt.push(Vt),Vt===ke&&pt.push(Vt);this.rolesToHide=pt}else this.rolesToHide=this.rolesToHide.filter(pt=>pt!==ke);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(ke){return!this.rolesToHide.includes(ke)}validatePreferredMailChange(){const ke=this.route.snapshot.queryParamMap,pt=ke.get("token"),Vt=ke.get("u");pt&&Vt&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(pt,Number.parseInt(Vt,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const qt=(0,E.kZ)();qt.width="600px",this.dialog.open(C.qD,qt).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}getDashboardSettings(){const ke=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===ke||ke;const pt=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===pt?[]:pt}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(g.Fv),b.Y36(A.d6),b.Y36(I.D),b.Y36(_.gz),b.Y36(_.F0),b.Y36(A.V6),b.Y36(P.sK),b.Y36(m.uw),b.Y36(A.F5),b.Y36(A.jq))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(ke,pt){2&ke&&b.ekj("router-component",pt.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"],["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(ke,pt){1&ke&&(b.TgZ(0,"mat-sidenav-container",0),b.TgZ(1,"mat-sidenav",1),b.NdJ("openedChange",function(qt){return pt.rightSettingOpened=qt}),b.TgZ(2,"div",2),b.TgZ(3,"div",3),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"mat-checkbox",4),b.NdJ("ngModelChange",function(qt){return pt.recentlyViewedShow=qt})("change",function(qt){return qt?pt.recentlyViewedChanged():null}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA(),b.TgZ(10,"div",5),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.YNc(13,Je,4,4,"div",6),b.qZA(),b.qZA(),b.TgZ(14,"mat-sidenav-content"),b.YNc(15,Ae,10,9,"div",7),b.qZA(),b.qZA()),2&ke&&(b.xp6(1),b.Q6J("opened",pt.rightSettingOpened),b.xp6(3),b.Oqu(b.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),b.xp6(3),b.Q6J("ngModel",pt.recentlyViewedShow),b.xp6(1),b.Oqu(b.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),b.xp6(3),b.Oqu(b.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),b.xp6(2),b.Q6J("ngForOf",pt.roleNames),b.xp6(2),b.Q6J("ngIf",void 0!==pt.user))},directives:[L.TM,L.JX,O.oG,G.JJ,G.On,ne.sg,L.Rh,ne.O5,ge.Hw,J.lW,_.rH,ue,Se],pipes:[P.X$,Xe.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}"]}),fe})();var i=p(4235);let o=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275cmp=b.Xpm({type:fe,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(ke,pt){1&ke&&(b.TgZ(0,"div",0),b._UZ(1,"perun-web-apps-back-button"),b.TgZ(2,"h1",1),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.qZA()),2&ke&&(b.xp6(3),b.Oqu(b.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[i.W],pipes:[P.X$],styles:[""]}),fe})();var d=p(387),l=p(67322),s=p(98833),r=p(63189);let t=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[ne.ez,J.ot,ge.Ps,_.Bz,d.ez,P.aw,l.lN,G.UX,s.c,r.r]]}),fe})(),n=(()=>{class fe{constructor(ke,pt){this.auth=ke,this.router=pt}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(A.e8),b.Y36(_.F0))},fe.\u0275cmp=b.Xpm({type:fe,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(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.TgZ(2,"div",2),b.TgZ(3,"h4",3),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"button",4),b.NdJ("click",function(){return pt.startAuth()}),b._uU(7),b.ALo(8,"translate"),b.TgZ(9,"mat-icon"),b._uU(10," login "),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()),2&ke&&(b.xp6(4),b.hij(" ",b.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),b.xp6(3),b.hij(" ",b.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[J.lW,ge.Hw],pipes:[P.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),fe})();var a=p(41619);function c(fe,at){if(1&fe&&(b.TgZ(0,"div",8),b._UZ(1,"div",9),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("innerHTML",ke.logo,b.oJD)}}function h(fe,at){if(1&fe&&(b.TgZ(0,"div",10),b._UZ(1,"div",11),b._UZ(2,"mat-icon",12),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("innerHTML",ke.logo,b.oJD)}}function x(fe,at){if(1&fe&&(b.TgZ(0,"div",8),b._UZ(1,"a",9),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("innerHTML",ke.logo,b.oJD)}}const We=function(fe){return{color:fe}};function At(fe,at){if(1&fe&&(b.TgZ(0,"p",13),b._uU(1),b.qZA()),2&fe){const ke=b.oxw();b.Q6J("ngStyle",b.VKq(2,We,ke.textColor)),b.xp6(1),b.hij(" ",ke.headerTitle," ")}}const Ht=function(fe,at){return{background:fe,color:at}},lt=function(fe,at){return{"min-height":fe,"background-color":at}};let Ut=(()=>{class fe{constructor(ke,pt,Vt,qt){this.storeService=ke,this.sanitizer=pt,this.preferredLangService=Vt,this.translateService=qt,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const ke=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(ke)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(A.d6),b.Y36(e.H7),b.Y36(A.BN),b.Y36(P.sK))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.YNc(1,c,2,1,"div",1),b.YNc(2,h,3,1,"div",2),b.YNc(3,x,2,1,"div",1),b.YNc(4,At,2,4,"p",3),b.qZA(),b.TgZ(5,"div",4),b.TgZ(6,"div",5),b.TgZ(7,"div",6),b._UZ(8,"router-outlet"),b.qZA(),b.TgZ(9,"div",7),b._UZ(10,"perun-web-apps-footer"),b.qZA(),b.qZA(),b.qZA()),2&ke&&(b.Q6J("ngStyle",b.WLB(6,Ht,pt.headerBackgroundColor,pt.headerTextColor)),b.xp6(1),b.Q6J("ngIf","admin-gui"===pt.application),b.xp6(1),b.Q6J("ngIf","publications"===pt.application),b.xp6(1),b.Q6J("ngIf","user-profile"===pt.application),b.xp6(1),b.Q6J("ngIf",!!pt.headerTitle),b.xp6(2),b.Q6J("ngStyle",b.WLB(9,lt,pt.getContentInnerMinHeight(),pt.contentBackgroundColor)))},directives:[ne.PC,ne.O5,ge.Hw,_.lC,a.$],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}"]}),fe})();function mt(fe,at){1&fe&&(b.TgZ(0,"perun-web-apps-alert",8),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Ee=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:d.t$},{path:"api-callback",component:w},{path:"login",component:n},{path:"service-access",component:(()=>{class fe{constructor(ke){this.authzService=ke,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new G.NI(null,[G.kI.required]),this.passwordCtrl=new G.NI(null,[G.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(ke=>{sessionStorage.setItem("baPrincipal",JSON.stringify(ke)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(g.Ct))},fe.\u0275cmp=b.Xpm({type:fe,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"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.TgZ(2,"div",2),b.TgZ(3,"h2"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.YNc(6,mt,3,3,"perun-web-apps-alert",3),b.TgZ(7,"mat-form-field",4),b.TgZ(8,"mat-label"),b._uU(9),b.ALo(10,"translate"),b.qZA(),b._UZ(11,"input",5),b.TgZ(12,"mat-error"),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.qZA(),b.TgZ(15,"mat-form-field",4),b.TgZ(16,"mat-label"),b._uU(17),b.ALo(18,"translate"),b.qZA(),b._UZ(19,"input",6),b.TgZ(20,"mat-error"),b._uU(21),b.ALo(22,"translate"),b.qZA(),b.qZA(),b.TgZ(23,"button",7),b.NdJ("click",function(){return pt.startAuth()}),b._uU(24),b.ALo(25,"translate"),b.TgZ(26,"mat-icon"),b._uU(27," login "),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()),2&ke&&(b.xp6(4),b.Oqu(b.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),b.xp6(2),b.Q6J("ngIf",pt.wrongUsernameOrPassword),b.xp6(3),b.Oqu(b.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),b.xp6(2),b.Q6J("formControl",pt.usernameCtrl),b.xp6(2),b.hij(" ",b.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),b.xp6(4),b.Oqu(b.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),b.xp6(2),b.Q6J("formControl",pt.passwordCtrl)("type","password"),b.xp6(2),b.hij(" ",b.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),b.xp6(2),b.Q6J("disabled",pt.usernameCtrl.invalid||pt.passwordCtrl.invalid),b.xp6(1),b.hij(" ",b.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[ne.O5,oe.w,l.KE,l.hX,s.Nt,G.Fj,G.Q7,G.JJ,G.oH,l.TO,J.lW,ge.Hw],pipes:[P.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}"]}),fe})()},{path:"organizations",loadChildren:()=>Promise.all([p.e(357),p.e(462),p.e(243),p.e(858)]).then(p.bind(p,60858)).then(fe=>fe.VosModule)},{path:"admin",loadChildren:()=>Promise.all([p.e(357),p.e(142),p.e(462),p.e(417)]).then(p.bind(p,78417)).then(fe=>fe.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([p.e(357),p.e(142),p.e(462),p.e(417),p.e(243),p.e(958)]).then(p.bind(p,12958)).then(fe=>fe.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([p.e(357),p.e(142)]).then(p.bind(p,46142)).then(fe=>fe.UsersModule)},{path:"home",component:ae},{path:"notAuthorized",component:d.y9},{path:"**",component:o}];let Ge=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[_.Bz.forRoot(Ee,{preloadingStrategy:_.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],_.Bz]}),fe})();var U=p(72077),k=p(14264);class ie{constructor(at,ke="/assets/i18n/",pt=".json"){this.http=at,this.prefix=ke,this.suffix=pt}getTranslation(at){return this.http.get(`${this.prefix}${at}${this.suffix}`)}}var ce=p(40520),He=p(76360);let ct=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({providers:[A.e8],imports:[[ne.ez]]}),fe})();var bt=p(81847),xt=p(4732),Yt=p(94856),It=p(55857),Rt=p(37240),Et=p(15592),Bt=p(75234),Jt=p(37380),ai=p(34904),mi=p(85243),bi=p(68056),yi=p(24219),Wi=p(25828),gn=p(10369),cn=p(14336),Ki=p(25309),Tn=p(86353),rn=p(3246),st=p(57788),St=p(80774),ot=p(25610);let vt=(()=>{class fe{constructor(){this.allowCachePages=[{type:"vo",components:[bt.y.id,xt.G.id,Yt.c.id,bi.z.id,yi.z.id,gn.w.id,rn.T.id]},{type:"group",components:[Bt.y.id,Et.u.id,Rt.q.id,It.W.id,cn.Z.id]},{type:"facility",components:[Jt.o.id,ai.f.id,ot._.id]},{type:"member",components:[mi.j.id]},{type:"admin",components:[Wi.t.id,st.g.id,St.F.id]},{type:"entitySelect",components:[Ki.Y.id,Tn.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;for(const ke of this.allowCachePages)this.typeToComponentToHandlers.set(ke.type,new Map)}static getCurrentTimestamp(){return+Date.now()}static getComponentName(ke){return ke.id}static getPath(ke){var pt,Vt;return null!==(Vt=null===(pt=ke.routeConfig)||void 0===pt?void 0:pt.path)&&void 0!==Vt?Vt:""}shouldReuseRoute(ke,pt){return this.checkResets(pt),ke.routeConfig===pt.routeConfig}retrieve(ke){if(ke.component){const pt=fe.getComponentName(ke.component);for(const Vt of this.allowCachePages)if(Vt.components.includes(pt)){const qt=this.typeToComponentToHandlers.get(Vt.type).get(pt);return void 0===qt?null:qt.routeHandle}}return null}shouldAttach(ke){if(!this.isUserNavigatingBack)return!1;if(ke.component){const pt=fe.getComponentName(ke.component);for(const Vt of this.allowCachePages){const qt=this.typeToComponentToHandlers.get(Vt.type).get(pt);if(void 0!==qt&&fe.getCurrentTimestamp()-qt.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();const Vt=this.getComponentType(ke);this.typeToComponentToHandlers.get(Vt).set(fe.getComponentName(ke.component),{routeHandle:pt,saveTimeStamp:fe.getCurrentTimestamp()})}}setLastNavigationType(ke){this.isUserNavigatingBack="back"===ke}checkResets(ke){const pt=fe.getPath(ke);for(const Vt of this.resets)if(Vt.resetPath===pt){const qt=String(ke.params[Vt.param]);null!==Vt.lastValue&&Vt.lastValue!==qt&&this.typeToComponentToHandlers.get(Vt.resetType).clear(),Vt.lastValue=qt}}getComponentType(ke){const pt=fe.getComponentName(ke.component);for(const Vt of this.allowCachePages)if(Vt.components.includes(pt))return Vt.type;return null}}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275prov=b.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const F=new b.OlP("perun-api-service");let Ye=(()=>{class fe{constructor(ke,pt,Vt,qt,ni){this.http=ke,this.storeService=pt,this.authzSevice=Vt,this.titleService=qt,this.utilsService=ni}initializeColors(ke,pt){return new Promise(Vt=>{pt.forEach(qt=>{const ni=this.storeService.get("theme",qt.configValue);document.documentElement.style.setProperty(qt.cssVariable,ni)}),ke.forEach(qt=>{const ni=this.storeService.get("theme",qt.configValue);document.documentElement.style.setProperty(qt.cssVariable,ni),this.setEntityTheme(qt.entity,ni)}),Vt()})}setEntityTheme(ke,pt){const Vt=function gt(fe){return[Dt(tinycolor(fe).lighten(52),"50"),Dt(tinycolor(fe).lighten(37),"100"),Dt(tinycolor(fe).lighten(26),"200"),Dt(tinycolor(fe).lighten(12),"300"),Dt(tinycolor(fe).lighten(6),"400"),Dt(tinycolor(fe),"500"),Dt(tinycolor(fe).darken(6),"600"),Dt(tinycolor(fe).darken(12),"700"),Dt(tinycolor(fe).darken(18),"800"),Dt(tinycolor(fe).darken(24),"900"),Dt(tinycolor(fe).lighten(50).saturate(30),"A100"),Dt(tinycolor(fe).lighten(30).saturate(30),"A200"),Dt(tinycolor(fe).lighten(10).saturate(15),"A400"),Dt(tinycolor(fe).lighten(5).saturate(5),"A700")]}(pt);for(const qt of Vt){const oi=`--${ke}-theme-primary-contrast-${qt.name}`,Si=qt.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${ke}-theme-primary-${qt.name}`,`${qt.red},${qt.green},${qt.blue}`),document.documentElement.style.setProperty(oi,Si)}}loadAppDefaultConfig(){return new Promise(ke=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(pt=>{this.storeService.setDefaultConfig(pt),ke()})})}loadAppInstanceConfig(){return new Promise(ke=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(pt=>{var Vt;this.storeService.setInstanceConfig(pt);const qt=document.location.hostname;(null===(Vt=null==pt?void 0:pt.brandings)||void 0===Vt?void 0:Vt[qt])&&this.storeService.setBanding(qt),ke()},()=>{ke()})})}getNoCacheHeaders(){return new ce.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(ke=>{const pt=document.querySelector("link[rel*='icon']")||document.createElement("link");pt.type="image/x-icon",pt.rel="shortcut icon",pt.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(pt),ke()})}setApiUrl(){return new Promise(ke=>{let pt=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(pt=pt.replace("oauth","ba")),this.authzSevice.configuration.basePath=pt,this.titleService.setTitle(this.storeService.get("document_title","en")),ke()})}loadAppsConfig(){return new Promise((ke,pt)=>{this.utilsService.getAppsConfig().subscribe(Vt=>{this.storeService.setAppsConfig(Vt),ke()},Vt=>pt(Vt))})}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.LFG(ce.eN),b.LFG(A.d6),b.LFG(g.Ct),b.LFG(e.Dx),b.LFG(g.FW))},fe.\u0275prov=b.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function Dt(fe,at){const ke=tinycolor(fe),pt=ke.toRgb();return{name:at,hex:ke.toHexString(),darkContrast:ke.isLight(),red:pt.r,green:pt.g,blue:pt.b}}let ri=(()=>{class fe{constructor(ke,pt){this.data=ke,this.location=pt}redirect(){this.location.go("/"),location.reload()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(m.WI),b.Y36(ne.Ye))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"h2"),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"p"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"button",0),b.NdJ("click",function(){return pt.redirect()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA()),2&ke&&(b.xp6(1),b.hij(" ",b.lcZ(2,3,pt.data.title),"\n"),b.xp6(3),b.hij(" ",b.lcZ(5,5,pt.data.message),"\n"),b.xp6(4),b.hij(" ",b.lcZ(9,7,pt.data.action)," "))},pipes:[P.X$],styles:[""]}),fe})(),ti=(()=>{class fe{constructor(ke,pt){this.dialogRef=ke,this.data=pt}refresh(){location.reload()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(m.so),b.Y36(m.WI))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"h2"),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"p"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"button",0),b.NdJ("click",function(){return pt.refresh()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA()),2&ke&&(b.xp6(1),b.hij(" ",b.lcZ(2,3,pt.data.title),"\n"),b.xp6(3),b.hij(" ",b.lcZ(5,5,pt.data.message),"\n"),b.xp6(4),b.hij(" ",b.lcZ(9,7,pt.data.action)," "))},pipes:[P.X$],styles:[""]}),fe})(),Di=(()=>{class fe{constructor(ke,pt,Vt,qt,ni,pi){this.initAuthService=ke,this.appConfigService=pt,this.authzSevice=Vt,this.dialog=qt,this.location=ni,this.guiAuthResolver=pi,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_root_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu-link-active",cssVariable:"--side-link-active"},{configValue:"sidemenu-link-hover",cssVariable:"--side-link-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(ke=>{if("Invalid path"!==ke)throw console.error(ke),this.location.go("/"),location.reload(),ke;this.handleErr(ke)}).then(ke=>ke?this.initAuthService.loadPrincipal().catch(pt=>this.handleErr(pt)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}handleErr(ke){const pt=(0,E.kZ)();throw"Invalid path"===ke?(pt.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(ri,pt)):(pt.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===ke.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":ke.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(ti,pt)),console.error(ke),ke}loadPolicies(){return new Promise((ke,pt)=>{this.authzSevice.getAllPolicies().subscribe(Vt=>{this.guiAuthResolver.setPerunPolicies(Vt),ke()},Vt=>pt(Vt))})}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.LFG(A.v0),b.LFG(Ye),b.LFG(g.Ct),b.LFG(m.uw),b.LFG(ne.Ye),b.LFG(A.x4))},fe.\u0275prov=b.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),wi=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[ne.ez,m.Is,J.ot,P.aw]]}),fe})();var $i=p(8929),qi=p(23753),Fi=p(36787),Ji=p(57138),_n=p(7625),Ni=p(75778),Ri=p(77604);function sn(fe){return getComputedStyle(fe)}function Xi(fe,at){for(var ke in at){var pt=at[ke];"number"==typeof pt&&(pt+="px"),fe.style[ke]=pt}return fe}function en(fe){var at=document.createElement("div");return at.className=fe,at}var an="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function dn(fe,at){if(!an)throw new Error("No element matching method supported");return an.call(fe,at)}function wn(fe){fe.remove?fe.remove():fe.parentNode&&fe.parentNode.removeChild(fe)}function xn(fe,at){return Array.prototype.filter.call(fe.children,function(ke){return dn(ke,at)})}var Oi_element_thumb=function(fe){return"ps__thumb-"+fe},Oi_element_rail=function(fe){return"ps__rail-"+fe},Oi_element_consuming="ps__child--consume",Oi_state_focus="ps--focus",Oi_state_clicking="ps--clicking",Oi_state_active=function(fe){return"ps--active-"+fe},Oi_state_scrolling=function(fe){return"ps--scrolling-"+fe},kn={x:null,y:null};function Nn(fe,at){var ke=fe.element.classList,pt=Oi_state_scrolling(at);ke.contains(pt)?clearTimeout(kn[at]):ke.add(pt)}function Mt(fe,at){kn[at]=setTimeout(function(){return fe.isAlive&&fe.element.classList.remove(Oi_state_scrolling(at))},fe.settings.scrollingThreshold)}var rt=function(at){this.element=at,this.handlers={}},kt={isEmpty:{configurable:!0}};rt.prototype.bind=function(at,ke){void 0===this.handlers[at]&&(this.handlers[at]=[]),this.handlers[at].push(ke),this.element.addEventListener(at,ke,!1)},rt.prototype.unbind=function(at,ke){var pt=this;this.handlers[at]=this.handlers[at].filter(function(Vt){return!(!ke||Vt===ke)||(pt.element.removeEventListener(at,Vt,!1),!1)})},rt.prototype.unbindAll=function(){for(var at in this.handlers)this.unbind(at)},kt.isEmpty.get=function(){var fe=this;return Object.keys(this.handlers).every(function(at){return 0===fe.handlers[at].length})},Object.defineProperties(rt.prototype,kt);var Ze=function(){this.eventElements=[]};function Ot(fe){if("function"==typeof window.CustomEvent)return new CustomEvent(fe);var at=document.createEvent("CustomEvent");return at.initCustomEvent(fe,!1,!1,void 0),at}function qe(fe,at,ke,pt,Vt){var qt;if(void 0===pt&&(pt=!0),void 0===Vt&&(Vt=!1),"top"===at)qt=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==at)throw new Error("A proper axis should be provided");qt=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function Tt(fe,at,ke,pt,Vt){var qt=ke[0],ni=ke[1],pi=ke[2],oi=ke[3],Si=ke[4],Gi=ke[5];void 0===pt&&(pt=!0),void 0===Vt&&(Vt=!1);var An=fe.element;fe.reach[oi]=null,An[pi]<1&&(fe.reach[oi]="start"),An[pi]>fe[qt]-fe[ni]-1&&(fe.reach[oi]="end"),at&&(An.dispatchEvent(Ot("ps-scroll-"+oi)),at<0?An.dispatchEvent(Ot("ps-scroll-"+Si)):at>0&&An.dispatchEvent(Ot("ps-scroll-"+Gi)),pt&&function Qt(fe,at){Nn(fe,at),Mt(fe,at)}(fe,oi)),fe.reach[oi]&&(at||Vt)&&An.dispatchEvent(Ot("ps-"+oi+"-reach-"+fe.reach[oi]))}(fe,ke,qt,pt,Vt)}function jt(fe){return parseInt(fe,10)||0}Ze.prototype.eventElement=function(at){var ke=this.eventElements.filter(function(pt){return pt.element===at})[0];return ke||(ke=new rt(at),this.eventElements.push(ke)),ke},Ze.prototype.bind=function(at,ke,pt){this.eventElement(at).bind(ke,pt)},Ze.prototype.unbind=function(at,ke,pt){var Vt=this.eventElement(at);Vt.unbind(ke,pt),Vt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Vt),1)},Ze.prototype.unbindAll=function(){this.eventElements.forEach(function(at){return at.unbindAll()}),this.eventElements=[]},Ze.prototype.once=function(at,ke,pt){var Vt=this.eventElement(at),qt=function(ni){Vt.unbind(ke,qt),pt(ni)};Vt.bind(ke,qt)};var Ui={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Li(fe){var at=fe.element,ke=Math.floor(at.scrollTop),pt=at.getBoundingClientRect();fe.containerWidth=Math.ceil(pt.width),fe.containerHeight=Math.ceil(pt.height),fe.contentWidth=at.scrollWidth,fe.contentHeight=at.scrollHeight,at.contains(fe.scrollbarXRail)||(xn(at,Oi_element_rail("x")).forEach(function(Vt){return wn(Vt)}),at.appendChild(fe.scrollbarXRail)),at.contains(fe.scrollbarYRail)||(xn(at,Oi_element_rail("y")).forEach(function(Vt){return wn(Vt)}),at.appendChild(fe.scrollbarYRail)),!fe.settings.suppressScrollX&&fe.containerWidth+fe.settings.scrollXMarginOffset=fe.railXWidth-fe.scrollbarXWidth&&(fe.scrollbarXLeft=fe.railXWidth-fe.scrollbarXWidth),fe.scrollbarYTop>=fe.railYHeight-fe.scrollbarYHeight&&(fe.scrollbarYTop=fe.railYHeight-fe.scrollbarYHeight),function cr(fe,at){var ke={width:at.railXWidth},pt=Math.floor(fe.scrollTop);ke.left=at.isRtl?at.negativeScrollAdjustment+fe.scrollLeft+at.containerWidth-at.contentWidth:fe.scrollLeft,at.isScrollbarXUsingBottom?ke.bottom=at.scrollbarXBottom-pt:ke.top=at.scrollbarXTop+pt,Xi(at.scrollbarXRail,ke);var Vt={top:pt,height:at.railYHeight};at.isScrollbarYUsingRight?Vt.right=at.isRtl?at.contentWidth-(at.negativeScrollAdjustment+fe.scrollLeft)-at.scrollbarYRight-at.scrollbarYOuterWidth-9:at.scrollbarYRight-fe.scrollLeft:Vt.left=at.isRtl?at.negativeScrollAdjustment+fe.scrollLeft+2*at.containerWidth-at.contentWidth-at.scrollbarYLeft-at.scrollbarYOuterWidth:at.scrollbarYLeft+fe.scrollLeft,Xi(at.scrollbarYRail,Vt),Xi(at.scrollbarX,{left:at.scrollbarXLeft,width:at.scrollbarXWidth-at.railBorderXWidth}),Xi(at.scrollbarY,{top:at.scrollbarYTop,height:at.scrollbarYHeight-at.railBorderYWidth})}(at,fe),fe.scrollbarXActive?at.classList.add(Oi_state_active("x")):(at.classList.remove(Oi_state_active("x")),fe.scrollbarXWidth=0,fe.scrollbarXLeft=0,at.scrollLeft=!0===fe.isRtl?fe.contentWidth:0),fe.scrollbarYActive?at.classList.add(Oi_state_active("y")):(at.classList.remove(Oi_state_active("y")),fe.scrollbarYHeight=0,fe.scrollbarYTop=0,at.scrollTop=0)}function hn(fe,at){return fe.settings.minScrollbarLength&&(at=Math.max(at,fe.settings.minScrollbarLength)),fe.settings.maxScrollbarLength&&(at=Math.min(at,fe.settings.maxScrollbarLength)),at}function Qn(fe,at){var ke=at[0],pt=at[1],Vt=at[2],qt=at[3],ni=at[4],pi=at[5],oi=at[6],Si=at[7],Gi=at[8],An=fe.element,jn=null,Zi=null,Bi=null;function Pi(zi){zi.touches&&zi.touches[0]&&(zi[Vt]=zi.touches[0].pageY),An[oi]=jn+Bi*(zi[Vt]-Zi),Nn(fe,Si),Li(fe),zi.stopPropagation(),zi.preventDefault()}function Hn(){Mt(fe,Si),fe[Gi].classList.remove(Oi_state_clicking),fe.event.unbind(fe.ownerDocument,"mousemove",Pi)}function ln(zi,tr){jn=An[oi],tr&&zi.touches&&(zi[Vt]=zi.touches[0].pageY),Zi=zi[Vt],Bi=(fe[pt]-fe[ke])/(fe[qt]-fe[pi]),tr?fe.event.bind(fe.ownerDocument,"touchmove",Pi):(fe.event.bind(fe.ownerDocument,"mousemove",Pi),fe.event.once(fe.ownerDocument,"mouseup",Hn),zi.preventDefault()),fe[Gi].classList.add(Oi_state_clicking),zi.stopPropagation()}fe.event.bind(fe[ni],"mousedown",function(zi){ln(zi)}),fe.event.bind(fe[ni],"touchstart",function(zi){ln(zi,!0)})}var ur={"click-rail":function Vn(fe){fe.event.bind(fe.scrollbarY,"mousedown",function(ke){return ke.stopPropagation()}),fe.event.bind(fe.scrollbarYRail,"mousedown",function(ke){var pt=ke.pageY-window.pageYOffset-fe.scrollbarYRail.getBoundingClientRect().top;fe.element.scrollTop+=(pt>fe.scrollbarYTop?1:-1)*fe.containerHeight,Li(fe),ke.stopPropagation()}),fe.event.bind(fe.scrollbarX,"mousedown",function(ke){return ke.stopPropagation()}),fe.event.bind(fe.scrollbarXRail,"mousedown",function(ke){var pt=ke.pageX-window.pageXOffset-fe.scrollbarXRail.getBoundingClientRect().left;fe.element.scrollLeft+=(pt>fe.scrollbarXLeft?1:-1)*fe.containerWidth,Li(fe),ke.stopPropagation()})},"drag-thumb":function dr(fe){Qn(fe,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Qn(fe,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function Lr(fe){var at=fe.element;fe.event.bind(fe.ownerDocument,"keydown",function(qt){if(!(qt.isDefaultPrevented&&qt.isDefaultPrevented()||qt.defaultPrevented)&&(dn(at,":hover")||dn(fe.scrollbarX,":focus")||dn(fe.scrollbarY,":focus"))){var ni=document.activeElement?document.activeElement:fe.ownerDocument.activeElement;if(ni){if("IFRAME"===ni.tagName)ni=ni.contentDocument.activeElement;else for(;ni.shadowRoot;)ni=ni.shadowRoot.activeElement;if(function ci(fe){return dn(fe,"input,[contenteditable]")||dn(fe,"select,[contenteditable]")||dn(fe,"textarea,[contenteditable]")||dn(fe,"button,[contenteditable]")}(ni))return}var pi=0,oi=0;switch(qt.which){case 37:pi=qt.metaKey?-fe.contentWidth:qt.altKey?-fe.containerWidth:-30;break;case 38:oi=qt.metaKey?fe.contentHeight:qt.altKey?fe.containerHeight:30;break;case 39:pi=qt.metaKey?fe.contentWidth:qt.altKey?fe.containerWidth:30;break;case 40:oi=qt.metaKey?-fe.contentHeight:qt.altKey?-fe.containerHeight:-30;break;case 32:oi=qt.shiftKey?fe.containerHeight:-fe.containerHeight;break;case 33:oi=fe.containerHeight;break;case 34:oi=-fe.containerHeight;break;case 36:oi=fe.contentHeight;break;case 35:oi=-fe.contentHeight;break;default:return}fe.settings.suppressScrollX&&0!==pi||fe.settings.suppressScrollY&&0!==oi||(at.scrollTop-=oi,at.scrollLeft+=pi,Li(fe),function Vt(qt,ni){var pi=Math.floor(at.scrollTop);if(0===qt){if(!fe.scrollbarYActive)return!1;if(0===pi&&ni>0||pi>=fe.contentHeight-fe.containerHeight&&ni<0)return!fe.settings.wheelPropagation}var oi=at.scrollLeft;if(0===ni){if(!fe.scrollbarXActive)return!1;if(0===oi&&qt<0||oi>=fe.contentWidth-fe.containerWidth&&qt>0)return!fe.settings.wheelPropagation}return!0}(pi,oi)&&qt.preventDefault())}})},wheel:function rr(fe){var at=fe.element;function qt(ni){var pi=function pt(ni){var pi=ni.deltaX,oi=-1*ni.deltaY;return(void 0===pi||void 0===oi)&&(pi=-1*ni.wheelDeltaX/6,oi=ni.wheelDeltaY/6),ni.deltaMode&&1===ni.deltaMode&&(pi*=10,oi*=10),pi!=pi&&oi!=oi&&(pi=0,oi=ni.wheelDelta),ni.shiftKey?[-oi,-pi]:[pi,oi]}(ni),oi=pi[0],Si=pi[1];if(!function Vt(ni,pi,oi){if(!Ui.isWebKit&&at.querySelector("select:focus"))return!0;if(!at.contains(ni))return!1;for(var Si=ni;Si&&Si!==at;){if(Si.classList.contains(Oi_element_consuming))return!0;var Gi=sn(Si);if(oi&&Gi.overflowY.match(/(scroll|auto)/)){var An=Si.scrollHeight-Si.clientHeight;if(An>0&&(Si.scrollTop>0&&oi<0||Si.scrollTop0))return!0}if(pi&&Gi.overflowX.match(/(scroll|auto)/)){var jn=Si.scrollWidth-Si.clientWidth;if(jn>0&&(Si.scrollLeft>0&&pi<0||Si.scrollLeft0))return!0}Si=Si.parentNode}return!1}(ni.target,oi,Si)){var Gi=!1;fe.settings.useBothWheelAxes?fe.scrollbarYActive&&!fe.scrollbarXActive?(Si?at.scrollTop-=Si*fe.settings.wheelSpeed:at.scrollTop+=oi*fe.settings.wheelSpeed,Gi=!0):fe.scrollbarXActive&&!fe.scrollbarYActive&&(oi?at.scrollLeft+=oi*fe.settings.wheelSpeed:at.scrollLeft-=Si*fe.settings.wheelSpeed,Gi=!0):(at.scrollTop-=Si*fe.settings.wheelSpeed,at.scrollLeft+=oi*fe.settings.wheelSpeed),Li(fe),Gi=Gi||function ke(ni,pi){var oi=Math.floor(at.scrollTop),Si=0===at.scrollTop,Gi=oi+at.offsetHeight===at.scrollHeight,An=0===at.scrollLeft,jn=at.scrollLeft+at.offsetWidth===at.scrollWidth;return!(Math.abs(pi)>Math.abs(ni)?Si||Gi:An||jn)||!fe.settings.wheelPropagation}(oi,Si),Gi&&!ni.ctrlKey&&(ni.stopPropagation(),ni.preventDefault())}}void 0!==window.onwheel?fe.event.bind(at,"wheel",qt):void 0!==window.onmousewheel&&fe.event.bind(at,"mousewheel",qt)},touch:function Zn(fe){if(Ui.supportsTouch||Ui.supportsIePointer){var at=fe.element,Vt={},qt=0,ni={},pi=null;Ui.supportsTouch?(fe.event.bind(at,"touchstart",Gi),fe.event.bind(at,"touchmove",jn),fe.event.bind(at,"touchend",Zi)):Ui.supportsIePointer&&(window.PointerEvent?(fe.event.bind(at,"pointerdown",Gi),fe.event.bind(at,"pointermove",jn),fe.event.bind(at,"pointerup",Zi)):window.MSPointerEvent&&(fe.event.bind(at,"MSPointerDown",Gi),fe.event.bind(at,"MSPointerMove",jn),fe.event.bind(at,"MSPointerUp",Zi)))}function pt(Bi,Pi){at.scrollTop-=Pi,at.scrollLeft-=Bi,Li(fe)}function oi(Bi){return Bi.targetTouches?Bi.targetTouches[0]:Bi}function Si(Bi){return!(Bi.pointerType&&"pen"===Bi.pointerType&&0===Bi.buttons||!(Bi.targetTouches&&1===Bi.targetTouches.length||Bi.pointerType&&"mouse"!==Bi.pointerType&&Bi.pointerType!==Bi.MSPOINTER_TYPE_MOUSE))}function Gi(Bi){if(Si(Bi)){var Pi=oi(Bi);Vt.pageX=Pi.pageX,Vt.pageY=Pi.pageY,qt=(new Date).getTime(),null!==pi&&clearInterval(pi)}}function jn(Bi){if(Si(Bi)){var Pi=oi(Bi),Hn={pageX:Pi.pageX,pageY:Pi.pageY},ln=Hn.pageX-Vt.pageX,zi=Hn.pageY-Vt.pageY;if(function An(Bi,Pi,Hn){if(!at.contains(Bi))return!1;for(var ln=Bi;ln&&ln!==at;){if(ln.classList.contains(Oi_element_consuming))return!0;var zi=sn(ln);if(Hn&&zi.overflowY.match(/(scroll|auto)/)){var tr=ln.scrollHeight-ln.clientHeight;if(tr>0&&(ln.scrollTop>0&&Hn<0||ln.scrollTop0))return!0}if(Pi&&zi.overflowX.match(/(scroll|auto)/)){var Br=ln.scrollWidth-ln.clientWidth;if(Br>0&&(ln.scrollLeft>0&&Pi<0||ln.scrollLeft0))return!0}ln=ln.parentNode}return!1}(Bi.target,ln,zi))return;pt(ln,zi),Vt=Hn;var tr=(new Date).getTime(),Br=tr-qt;Br>0&&(ni.x=ln/Br,ni.y=zi/Br,qt=tr),function ke(Bi,Pi){var Hn=Math.floor(at.scrollTop),ln=at.scrollLeft,zi=Math.abs(Bi),tr=Math.abs(Pi);if(tr>zi){if(Pi<0&&Hn===fe.contentHeight-fe.containerHeight||Pi>0&&0===Hn)return 0===window.scrollY&&Pi>0&&Ui.isChrome}else if(zi>tr&&(Bi<0&&ln===fe.contentWidth-fe.containerWidth||Bi>0&&0===ln))return!0;return!0}(ln,zi)&&Bi.preventDefault()}}function Zi(){fe.settings.swipeEasing&&(clearInterval(pi),pi=setInterval(function(){fe.isInitialized?clearInterval(pi):ni.x||ni.y?Math.abs(ni.x)<.01&&Math.abs(ni.y)<.01?clearInterval(pi):(pt(30*ni.x,30*ni.y),ni.x*=.8,ni.y*=.8):clearInterval(pi)},10))}}},Mn=function(at,ke){var pt=this;if(void 0===ke&&(ke={}),"string"==typeof at&&(at=document.querySelector(at)),!at||!at.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Vt in this.element=at,at.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},ke)this.settings[Vt]=ke[Vt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Gi,Si,qt=function(){return at.classList.add(Oi_state_focus)},ni=function(){return at.classList.remove(Oi_state_focus)};this.isRtl="rtl"===sn(at).direction,!0===this.isRtl&&at.classList.add("ps__rtl"),this.isNegativeScroll=(Si=at.scrollLeft,at.scrollLeft=-1,Gi=at.scrollLeft<0,at.scrollLeft=Si,Gi),this.negativeScrollAdjustment=this.isNegativeScroll?at.scrollWidth-at.clientWidth:0,this.event=new Ze,this.ownerDocument=at.ownerDocument||document,this.scrollbarXRail=en(Oi_element_rail("x")),at.appendChild(this.scrollbarXRail),this.scrollbarX=en(Oi_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",qt),this.event.bind(this.scrollbarX,"blur",ni),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var pi=sn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(pi.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=jt(pi.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=jt(pi.borderLeftWidth)+jt(pi.borderRightWidth),Xi(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=jt(pi.marginLeft)+jt(pi.marginRight),Xi(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=en(Oi_element_rail("y")),at.appendChild(this.scrollbarYRail),this.scrollbarY=en(Oi_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",qt),this.event.bind(this.scrollbarY,"blur",ni),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var oi=sn(this.scrollbarYRail);this.scrollbarYRight=parseInt(oi.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=jt(oi.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function vi(fe){var at=sn(fe);return jt(at.width)+jt(at.paddingLeft)+jt(at.paddingRight)+jt(at.borderLeftWidth)+jt(at.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=jt(oi.borderTopWidth)+jt(oi.borderBottomWidth),Xi(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=jt(oi.marginTop)+jt(oi.marginBottom),Xi(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:at.scrollLeft<=0?"start":at.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:at.scrollTop<=0?"start":at.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Si){return ur[Si](pt)}),this.lastScrollTop=Math.floor(at.scrollTop),this.lastScrollLeft=at.scrollLeft,this.event.bind(this.element,"scroll",function(Si){return pt.onScroll(Si)}),Li(this)};Mn.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Xi(this.scrollbarXRail,{display:"block"}),Xi(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=jt(sn(this.scrollbarXRail).marginLeft)+jt(sn(this.scrollbarXRail).marginRight),this.railYMarginHeight=jt(sn(this.scrollbarYRail).marginTop)+jt(sn(this.scrollbarYRail).marginBottom),Xi(this.scrollbarXRail,{display:"none"}),Xi(this.scrollbarYRail,{display:"none"}),Li(this),qe(this,"top",0,!1,!0),qe(this,"left",0,!1,!0),Xi(this.scrollbarXRail,{display:""}),Xi(this.scrollbarYRail,{display:""}))},Mn.prototype.onScroll=function(at){!this.isAlive||(Li(this),qe(this,"top",this.element.scrollTop-this.lastScrollTop),qe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Mn.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),wn(this.scrollbarX),wn(this.scrollbarY),wn(this.scrollbarXRail),wn(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Mn.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(at){return!at.match(/^ps([-_].+|)$/)}).join(" ")};const Gn=Mn;var sr=function(){if("undefined"!=typeof Map)return Map;function fe(at,ke){var pt=-1;return at.some(function(Vt,qt){return Vt[0]===ke&&(pt=qt,!0)}),pt}return function(){function at(){this.__entries__=[]}return Object.defineProperty(at.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),at.prototype.get=function(ke){var pt=fe(this.__entries__,ke),Vt=this.__entries__[pt];return Vt&&Vt[1]},at.prototype.set=function(ke,pt){var Vt=fe(this.__entries__,ke);~Vt?this.__entries__[Vt][1]=pt:this.__entries__.push([ke,pt])},at.prototype.delete=function(ke){var pt=this.__entries__,Vt=fe(pt,ke);~Vt&&pt.splice(Vt,1)},at.prototype.has=function(ke){return!!~fe(this.__entries__,ke)},at.prototype.clear=function(){this.__entries__.splice(0)},at.prototype.forEach=function(ke,pt){void 0===pt&&(pt=null);for(var Vt=0,qt=this.__entries__;Vt0},fe.prototype.connect_=function(){!ar||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$n?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},fe.prototype.disconnect_=function(){!ar||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},fe.prototype.onTransitionEnd_=function(at){var ke=at.propertyName,pt=void 0===ke?"":ke;Cn.some(function(qt){return!!~pt.indexOf(qt)})&&this.refresh()},fe.getInstance=function(){return this.instance_||(this.instance_=new fe),this.instance_},fe.instance_=null,fe}(),zn=function(fe,at){for(var ke=0,pt=Object.keys(at);ke0},fe}(),di="undefined"!=typeof WeakMap?new WeakMap:new sr,ui=function fe(at){if(!(this instanceof fe))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ke=or.getInstance(),pt=new ii(at,ke,this);di.set(this,pt)};["observe","unobserve","disconnect"].forEach(function(fe){ui.prototype[fe]=function(){var at;return(at=di.get(this))[fe].apply(at,arguments)}});const Ti=void 0!==Un.ResizeObserver?Un.ResizeObserver:ui;function Hi(fe,at){if(1&fe&&(b.TgZ(0,"div",3),b._UZ(1,"div",4),b._UZ(2,"div",5),b._UZ(3,"div",6),b._UZ(4,"div",7),b.qZA()),2&fe){const ke=b.oxw();b.ekj("ps-at-top",ke.states.top)("ps-at-left",ke.states.left)("ps-at-right",ke.states.right)("ps-at-bottom",ke.states.bottom),b.xp6(1),b.ekj("ps-indicator-show",ke.indicatorY&&ke.interaction),b.xp6(1),b.ekj("ps-indicator-show",ke.indicatorX&&ke.interaction),b.xp6(1),b.ekj("ps-indicator-show",ke.indicatorX&&ke.interaction),b.xp6(1),b.ekj("ps-indicator-show",ke.indicatorY&&ke.interaction)}}const Ne=["*"],De=new b.OlP("PERFECT_SCROLLBAR_CONFIG");class we{constructor(at,ke,pt,Vt){this.x=at,this.y=ke,this.w=pt,this.h=Vt}}class ut{constructor(at,ke){this.x=at,this.y=ke}}const Zt=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class hi{constructor(at={}){this.assign(at)}assign(at={}){for(const ke in at)this[ke]=at[ke]}}let ji=(()=>{class fe{constructor(ke,pt,Vt,qt,ni){this.zone=ke,this.differs=pt,this.elementRef=Vt,this.platformId=qt,this.defaults=ni,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new $i.xQ,this.disabled=!1,this.psScrollY=new b.vpe,this.psScrollX=new b.vpe,this.psScrollUp=new b.vpe,this.psScrollDown=new b.vpe,this.psScrollLeft=new b.vpe,this.psScrollRight=new b.vpe,this.psYReachEnd=new b.vpe,this.psYReachStart=new b.vpe,this.psXReachEnd=new b.vpe,this.psXReachStart=new b.vpe}ngOnInit(){if(!this.disabled&&(0,ne.NF)(this.platformId)){const ke=new hi(this.defaults);ke.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Gn(this.elementRef.nativeElement,ke)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Ti(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{Zt.forEach(pt=>{const Vt=pt.replace(/([A-Z])/g,qt=>`-${qt.toLowerCase()}`);(0,qi.R)(this.elementRef.nativeElement,Vt).pipe((0,Ji.e)(20),(0,_n.R)(this.ngDestroy)).subscribe(qt=>{this[pt].emit(qt)})})})}}ngOnDestroy(){(0,ne.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,ne.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(ke){ke.disabled&&!ke.disabled.isFirstChange()&&(0,ne.NF)(this.platformId)&&ke.disabled.currentValue!==ke.disabled.previousValue&&(!0===ke.disabled.currentValue?this.ngOnDestroy():!1===ke.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(ke){}},0))}geometry(ke="scroll"){return new we(this.elementRef.nativeElement[ke+"Left"],this.elementRef.nativeElement[ke+"Top"],this.elementRef.nativeElement[ke+"Width"],this.elementRef.nativeElement[ke+"Height"])}position(ke=!1){return!ke&&this.instance?new ut(this.instance.reach.x||0,this.instance.reach.y||0):new ut(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(ke="any"){const pt=this.elementRef.nativeElement;return"any"===ke?pt.classList.contains("ps--active-x")||pt.classList.contains("ps--active-y"):"both"===ke?pt.classList.contains("ps--active-x")&&pt.classList.contains("ps--active-y"):pt.classList.contains("ps--active-"+ke)}scrollTo(ke,pt,Vt){this.disabled||(null==pt&&null==Vt?this.animateScrolling("scrollTop",ke,Vt):(null!=ke&&this.animateScrolling("scrollLeft",ke,Vt),null!=pt&&this.animateScrolling("scrollTop",pt,Vt)))}scrollToX(ke,pt){this.animateScrolling("scrollLeft",ke,pt)}scrollToY(ke,pt){this.animateScrolling("scrollTop",ke,pt)}scrollToTop(ke,pt){this.animateScrolling("scrollTop",ke||0,pt)}scrollToLeft(ke,pt){this.animateScrolling("scrollLeft",ke||0,pt)}scrollToRight(ke,pt){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(ke||0),pt)}scrollToBottom(ke,pt){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(ke||0),pt)}scrollToElement(ke,pt,Vt){if("string"==typeof ke&&(ke=this.elementRef.nativeElement.querySelector(ke)),ke){const qt=ke.getBoundingClientRect(),ni=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",qt.left-ni.left+this.elementRef.nativeElement.scrollLeft+(pt||0),Vt),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",qt.top-ni.top+this.elementRef.nativeElement.scrollTop+(pt||0),Vt)}}animateScrolling(ke,pt,Vt){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),Vt&&"undefined"!=typeof window){if(pt!==this.elementRef.nativeElement[ke]){let qt=0,ni=0,pi=performance.now(),oi=this.elementRef.nativeElement[ke];const Si=(oi-pt)/2,Gi=An=>{ni+=Math.PI/(Vt/(An-pi)),qt=Math.round(pt+Si+Si*Math.cos(ni)),this.elementRef.nativeElement[ke]===oi&&(ni>=Math.PI?this.animateScrolling(ke,pt,0):(this.elementRef.nativeElement[ke]=qt,oi=this.elementRef.nativeElement[ke],pi=An,this.animation=window.requestAnimationFrame(Gi)))};window.requestAnimationFrame(Gi)}}else this.elementRef.nativeElement[ke]=pt}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(b.R0b),b.Y36(b.aQg),b.Y36(b.SBq),b.Y36(b.Lbi),b.Y36(De,8))},fe.\u0275dir=b.lG2({type:fe,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[b.TTD]}),fe})(),tn=(()=>{class fe{constructor(ke,pt,Vt){this.zone=ke,this.cdRef=pt,this.platformId=Vt,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new $i.xQ,this.stateUpdate=new $i.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new b.vpe,this.psScrollX=new b.vpe,this.psScrollUp=new b.vpe,this.psScrollDown=new b.vpe,this.psScrollLeft=new b.vpe,this.psScrollRight=new b.vpe,this.psYReachEnd=new b.vpe,this.psYReachStart=new b.vpe,this.psXReachEnd=new b.vpe,this.psXReachStart=new b.vpe}ngOnInit(){(0,ne.NF)(this.platformId)&&(this.stateUpdate.pipe((0,_n.R)(this.ngDestroy),(0,Ni.x)((ke,pt)=>ke===pt&&!this.stateTimeout)).subscribe(ke=>{this.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===ke||"y"===ke?(this.interaction=!1,"x"===ke?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===ke&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===ke||"right"===ke?(this.states.left=!1,this.states.right=!1,this.states[ke]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===ke||"bottom"===ke)&&(this.states.top=!1,this.states.bottom=!1,this.states[ke]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&"undefined"!=typeof window&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const ke=this.directiveRef.elementRef.nativeElement;(0,qi.R)(ke,"wheel").pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(pt,pt.deltaX,pt.deltaY)}),(0,qi.R)(ke,"touchmove").pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{if(!this.disabled&&this.autoPropagation){const Vt=pt.touches[0].clientX,qt=pt.touches[0].clientY;this.checkPropagation(pt,Vt-this.scrollPositionX,qt-this.scrollPositionY),this.scrollPositionX=Vt,this.scrollPositionY=qt}}),(0,Fi.T)((0,qi.R)(ke,"ps-scroll-x").pipe((0,Ri.h)("x")),(0,qi.R)(ke,"ps-scroll-y").pipe((0,Ri.h)("y")),(0,qi.R)(ke,"ps-x-reach-end").pipe((0,Ri.h)("right")),(0,qi.R)(ke,"ps-y-reach-end").pipe((0,Ri.h)("bottom")),(0,qi.R)(ke,"ps-x-reach-start").pipe((0,Ri.h)("left")),(0,qi.R)(ke,"ps-y-reach-start").pipe((0,Ri.h)("top"))).pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(pt)})}}),window.setTimeout(()=>{Zt.forEach(ke=>{this.directiveRef&&(this.directiveRef[ke]=this[ke])})},0))}ngOnDestroy(){(0,ne.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,ne.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const ke=this.directiveRef.elementRef.nativeElement;this.usePropagationX=ke.classList.contains("ps--active-x"),this.usePropagationY=ke.classList.contains("ps--active-y")}}checkPropagation(ke,pt,Vt){this.interaction=!0;const qt=pt<0?-1:1,ni=Vt<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==qt)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==ni))&&(ke.preventDefault(),ke.stopPropagation()),pt&&(this.scrollDirectionX=qt),Vt&&(this.scrollDirectionY=ni),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(b.Lbi))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perfect-scrollbar"]],viewQuery:function(ke,pt){if(1&ke&&b.Gf(ji,7),2&ke){let Vt;b.iGM(Vt=b.CRH())&&(pt.directiveRef=Vt.first)}},hostVars:4,hostBindings:function(ke,pt){2&ke&&b.ekj("ps-show-limits",pt.autoPropagation)("ps-show-active",pt.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:Ne,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(ke,pt){1&ke&&(b.F$t(),b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.Hsn(2),b.qZA(),b.YNc(3,Hi,5,16,"div",2),b.qZA()),2&ke&&(b.ekj("ps",pt.usePSClass),b.Q6J("perfectScrollbar",pt.config)("disabled",pt.disabled),b.xp6(3),b.Q6J("ngIf",pt.scrollIndicators))},directives:[ji,ne.O5],styles:["perfect-scrollbar{display:block;height:100%;max-height:100%;max-width:100%;overflow:hidden;position:relative;width:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-height:0;min-width:0}perfect-scrollbar[fxflex]>.ps{-webkit-box-flex:1;flex:1 1 auto;height:auto;min-height:0;min-width:0;width:auto}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit;align-content:inherit;align-items:inherit;display:flex;flex:1 1 auto;flex-direction:inherit;height:100%;justify-content:inherit;width:100%},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{display:block;height:100%;max-height:100%;max-width:100%;position:static;width:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{bottom:0;display:block;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{opacity:0;position:absolute;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-height:24px;min-width:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{min-height:100%;min-width:24px;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{cursor:default;left:auto!important;right:0!important;top:0!important;transition:width .2s linear,opacity .2s linear,background-color .2s linear;width:10px}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{bottom:0!important;cursor:default;height:10px;left:0!important;top:auto!important;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{background-color:#eee;opacity:.9}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{-ms-overflow-style:none;-ms-touch-action:auto;overflow:hidden!important;overflow-anchor:none;touch-action:auto}.ps__rail-x{bottom:0;height:15px}.ps__rail-x,.ps__rail-y{-webkit-transition:background-color .2s linear,opacity .2s linear;display:none;opacity:0;position:absolute;transition:background-color .2s linear,opacity .2s linear}.ps__rail-y{right:0;width:15px}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{background-color:transparent;display:block}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{-webkit-transition:background-color .2s linear,height .2s ease-in-out;bottom:2px;height:6px;transition:background-color .2s linear,height .2s ease-in-out}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{-webkit-transition:background-color .2s linear,width .2s ease-in-out;right:2px;transition:background-color .2s linear,width .2s ease-in-out;width:6px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}"],encapsulation:2}),fe})(),Wn=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[ne.ez],ne.ez]}),fe})();var pr=p(86114),Qr=p(36769),Xt=p(22465);function si(fe,at){if(1&fe){const ke=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"perun-web-apps-notification",2),b.NdJ("closeNotification",function(){const qt=b.CHM(ke).index;return b.oxw().removeNotification(qt)}),b.qZA(),b.qZA()}if(2&fe){const ke=at.$implicit;b.Q6J("@flyInOut",void 0),b.xp6(1),b.Q6J("data",ke)("newNotification",!0)}}const Ei=function(fe){return{top:fe}};let gi=(()=>{class fe{constructor(ke,pt){this.notificator=ke,this.notificationStorageService=pt,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(Vt=>{this.processNotification(Vt)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(ke){this.notifications.splice(ke,1)}processNotification(ke){this.notifications.push(ke),this.notificationStorageService.storeNotification(ke)}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(A.V6),b.Y36(A.SZ))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-notificator"]],hostBindings:function(ke,pt){1&ke&&b.NdJ("resize",function(qt){return pt.getScreenSize(qt)},!1,b.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.YNc(1,si,2,3,"div",1),b.qZA()),2&ke&&(b.Q6J("ngStyle",b.VKq(2,Ei,pt.getNotificatorTop())),b.xp6(1),b.Q6J("ngForOf",pt.notifications))},directives:[ne.PC,ne.sg,Xt.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:[Qr.Pd]}}),fe})();var Vi=p(53435);function pn(fe,at){if(1&fe&&(b.TgZ(0,"div",9),b._UZ(1,"perun-web-apps-notification",10),b.qZA()),2&fe){const ke=at.$implicit;b.xp6(1),b.Q6J("data",ke)("inDialog",!0)}}function vn(fe,at){if(1&fe&&(b.TgZ(0,"div",6),b.TgZ(1,"cdk-virtual-scroll-viewport",7),b.YNc(2,pn,2,2,"div",8),b.qZA(),b.qZA()),2&fe){const ke=b.oxw();b.xp6(2),b.Q6J("cdkVirtualForOf",ke.notifications)}}function Pn(fe,at){1&fe&&(b.TgZ(0,"perun-web-apps-alert",11),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let Yn=(()=>{class fe{constructor(ke,pt){this.dialogRef=ke,this.notificationStorageService=pt}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(m.so),b.Y36(A.SZ))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-show-notification-history-dialog"]],decls:12,vars:11,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(ke,pt){1&ke&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.YNc(3,vn,3,1,"div",1),b.YNc(4,Pn,3,3,"perun-web-apps-alert",2),b.TgZ(5,"div",3),b.TgZ(6,"button",4),b.NdJ("click",function(){return pt.onClear()}),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"button",5),b.NdJ("click",function(){return pt.onCancel()}),b._uU(10),b.ALo(11,"translate"),b.qZA(),b.qZA()),2&ke&&(b.xp6(1),b.Oqu(b.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),b.xp6(2),b.Q6J("ngIf",0!==pt.notifications.length),b.xp6(1),b.Q6J("ngIf",0===pt.notifications.length),b.xp6(3),b.hij(" ",b.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),b.xp6(3),b.hij(" ",b.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[m.uh,ne.O5,Vi.N7,Vi.xd,Vi.x0,Xt.c,oe.w,m.H8,J.lW],pipes:[P.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),fe})();var fn=p(27544),$r=p(52314);function wr(fe,at){1&fe&&(b.TgZ(0,"div",10),b.TgZ(1,"span",11),b._uU(2," ~ \u{1f5f2}\xa0 "),b.qZA(),b.TgZ(3,"span",12),b._uU(4," DEVEL "),b.qZA(),b.TgZ(5,"span",11),b._uU(6," \xa0\u{1f5f2} ~ "),b.qZA(),b.qZA())}const bn=function(fe){return{color:fe}},mn=function(){return["/home"]};let Sn=(()=>{class fe{constructor(ke,pt,Vt,qt,ni,pi,oi,Si,Gi,An){this.storeService=ke,this.authService=pt,this.authzResolverService=Vt,this.dialog=qt,this.notificator=ni,this.translateService=pi,this.store=oi,this.sanitizer=Si,this.notificationStorageService=Gi,this.otherApplicationService=An,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.store.get("logo")),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.profileLabel=this.storeService.get("profile_label_en"),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const ke=(0,E.kZ)();ke.width="520px",this.dialog.open(Yn,ke)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(A.d6),b.Y36(A.e8),b.Y36(g.Ct),b.Y36(m.uw),b.Y36(A.V6),b.Y36(P.sK),b.Y36(A.d6),b.Y36(e.H7),b.Y36(A.SZ),b.Y36(A.jq))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:13,vars:28,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.TgZ(1,"button",1),b.NdJ("click",function(){return pt.sideNav.toggle()}),b.TgZ(2,"mat-icon",2),b._uU(3," menu "),b.qZA(),b.qZA(),b.TgZ(4,"a",3),b._UZ(5,"div",4),b.qZA(),b.qZA(),b.YNc(6,wr,7,0,"div",5),b.TgZ(7,"div",6),b.TgZ(8,"button",7),b.NdJ("click",function(){return pt.showNotificationHistory()}),b.ALo(9,"translate"),b.TgZ(10,"mat-icon",8),b._uU(11),b.qZA(),b.qZA(),b._UZ(12,"perun-web-apps-header-menu",9),b.qZA()),2&ke&&(b.Q6J("ngStyle",b.VKq(19,bn,pt.navTextColor)),b.xp6(2),b.Q6J("ngStyle",b.VKq(21,bn,pt.iconColor)),b.xp6(2),b.Q6J("routerLink",b.DdM(23,mn)),b.xp6(1),b.Q6J("innerHTML",pt.logo,b.oJD),b.xp6(1),b.Q6J("ngIf",pt.isDevel),b.xp6(1),b.Q6J("ngStyle",b.VKq(24,bn,pt.navTextColor)),b.xp6(1),b.Q6J("matTooltip",b.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),b.xp6(2),b.s9C("matBadge",pt.getNewNotificationsCount()>5?"5+":pt.getNewNotificationsCount()),b.Q6J("ngStyle",b.VKq(26,bn,pt.iconColor))("matBadgeHidden",0===pt.getNewNotificationsCount()),b.xp6(1),b.hij(" ",pt.getNewNotificationsCount()?"notifications_active":"notifications"," "),b.xp6(1),b.Q6J("iconColor",pt.iconColor)("label",pt.profileLabel)("textColor",pt.navTextColor)("logoutEnabled",pt.logoutEnabled)("url",pt.profileUrl)("user",pt.principal.user))},directives:[ne.PC,J.lW,ge.Hw,_.yS,ne.O5,T.gM,fn.k,$r.X],pipes:[P.X$],styles:["#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:row;width:200px}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-link-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-link-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 1rem;line-height:64px;text-align:center;height:64px;display:block}"]}),fe})();var Xn=p(73228);const er={provide:ce.TP,useExisting:(0,b.Gpc)(()=>A.yC),multi:!0};function fr(fe){return new ie(fe,"./assets/i18n/",".json")}function aa(fe){const at={basePath:fe.get("api_url")};return new g.VK(at)}const gs=fe=>()=>fe.initialize(),oa={suppressScrollX:!0};let _s=(()=>{class fe{constructor(ke,pt){this.customIconService=ke,this.translate=pt,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.LFG(A.EB),b.LFG(P.sK))},fe.\u0275mod=b.oAB({type:fe,bootstrap:[U.y]}),fe.\u0275inj=b.cJS({providers:[Di,{provide:b.ip1,useFactory:gs,multi:!0,deps:[Di]},{provide:g.VK,useFactory:aa,deps:[A.d6]},{provide:_.wN,useClass:vt},A.EB,{provide:F,useClass:A.sM},A.yC,er,{provide:De,useValue:oa}],imports:[[He.PW,e.b2,ce.JF,k.m,ct,Ge,ge.Ps,wi,P.aw.forRoot({loader:{provide:P.Zw,useFactory:fr,deps:[ce.eN]}}),g.au,Wn,d.ez,t,pr.zr.forRoot()]]}),fe})();b.B6R(U.y,[ne.O5,ge.Hw,gi,Sn,ne.PC,L.TM,L.JX,tn,Xn.V,L.Rh,_.lC,a.$,Ut],[]),(0,b.G48)(),e.q6().bootstrapModule(_s).catch(fe=>console.error(fe))},11243:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>_});var e=p(69808),b=p(5e3);let _=(()=>{class w{}return w.\u0275fac=function(A){return new(A||w)},w.\u0275mod=b.oAB({type:w}),w.\u0275inj=b.cJS({imports:[[e.ez]]}),w})()},6335:($e,_e,p)=>{"use strict";p.d(_e,{Rc:()=>b,pI:()=>_,Ng:()=>w});var e=p(5e3);const b="GUI_CONFIG.PREF_PAGE_SIZE",_="GUI_CONFIG.PREF_PAGE_SIZE.";let w=(()=>{class g{getString(E){return localStorage.getItem(E)}getNumber(E){return parseInt(localStorage.getItem(E),10)}setNumber(E,C){localStorage.setItem(E,C.toString())}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},10036:($e,_e,p)=>{"use strict";p.d(_e,{dB:()=>_,CP:()=>w,tw:()=>g,nT:()=>A,YF:()=>E,gc:()=>C,v1:()=>I,AA:()=>P,VR:()=>m,uM:()=>L,xx:()=>O,H2:()=>G,xt:()=>ne,dI:()=>ge,j1:()=>J,Wv:()=>Me,qy:()=>oe,BV:()=>Re,qV:()=>T,tY:()=>j,Af:()=>Y,O7:()=>q,gB:()=>te,Hi:()=>ue,Jf:()=>de,W1:()=>Le,rF:()=>Ue,Aj:()=>ze,Ad:()=>le,kZ:()=>je,cL:()=>ye,RS:()=>Be,HC:()=>W,KE:()=>R,Sb:()=>me,_7:()=>be,bf:()=>Ie,rc:()=>pe,Cf:()=>Se,eq:()=>X,NG:()=>z,O9:()=>Q,d7:()=>D,vq:()=>H,NL:()=>V,kO:()=>xe,aL:()=>Qe,DR:()=>Te,uC:()=>Ae,JO:()=>ae,oK:()=>i,Iz:()=>o,It:()=>d,z6:()=>l,iQ:()=>s,e5:()=>r,Bf:()=>t,zp:()=>c,US:()=>h,gG:()=>x,$V:()=>We,S7:()=>At,zW:()=>Ut,CE:()=>Lt,Is:()=>Ee,M8:()=>k,g:()=>ie,_c:()=>ce,dK:()=>He,yW:()=>ct,HE:()=>bt,ee:()=>Yt,FF:()=>It,$I:()=>Rt,XH:()=>Et,$t:()=>Bt,uI:()=>Jt});var e=p(6335),b=p(5e3);let _=(()=>{class ai{constructor(bi){this.guiConfigService=bi}getTablePageSize(bi){const yi=this.guiConfigService.getNumber(e.pI+bi);if(!isNaN(yi))return yi;const Wi=this.guiConfigService.getNumber(e.Rc);return isNaN(Wi)?10:Wi}setTablePageSize(bi,yi){this.guiConfigService.setNumber(e.pI+bi,yi)}}return ai.\u0275fac=function(bi){return new(bi||ai)(b.LFG(e.Ng))},ai.\u0275prov=b.Yz7({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})();const w="0",g="1",A="2",E="3",C="4",I="5",P="6",m="7",L="8",O="9",G="10",ne="11",ge="12",J="13",Me="14",oe="15",Re="16",T="17",j="18",Y="19",q="20",te="21",ue="22",de="23",Le="24",Ue="25",ze="26",le="27",je="28",ye="29",Be="30",W="31",R="32",me="33",be="34",Ie="35",pe="36",Se="37",X="42",z="43",Q="44",D="45",H="46",V="47",xe="48",Qe="49",Te="50",Ae="51",ae="52",i="53",o="54",d="55",l="56",s="57",r="58",t="59",c="62",h="63",x="64",We="65",At="66",Ut="69",Lt="71",Ee="72",k="75",ie="76",ce="77",He="78",ct="79",bt="80",Yt="82",It="83",Rt="84",Et="85",Bt="86",Jt="87"},36769:($e,_e,p)=>{"use strict";p.d(_e,{Ji:()=>g,Pd:()=>_,BQ:()=>b,Ly:()=>w,GH:()=>C,Ls:()=>I,SG:()=>E,es:()=>A});var e=p(41777);const b=(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")])]),_=(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%)"}))])]),w=(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"}))])]),g=(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})])]),A=(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")])]),E=(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})])])]),C=(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%)"}))])]),I=(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%)"}))])])},387:($e,_e,p)=>{"use strict";p.d(_e,{Mw:()=>R.M,qG:()=>x.qG,Sx:()=>c.S,y9:()=>We,Nj:()=>l,ez:()=>Be,t$:()=>s});var e=p(69808),b=p(77446),_=p(32075),w=p(51062),g=p(11735),A=p(84847),E=p(86087),C=p(20773),I=p(63189),P=p(25245),m=p(92181),L=p(47423),O=p(29772),G=p(67322),ne=p(93075),ge=p(98833),J=p(26688),Me=p(44409),oe=p(90508),Re=p(19516),T=p(69287),j=p(90149),Y=p(86856),q=p(79814),te=p(74107),ue=p(43586),de=p(53435),Le=p(48966),Ue=p(9244),ze=p(6397),le=p(5e3);let je=(()=>{class At extends oe.LF{format(lt,Ut){return"input"===Ut?`${lt.getDate().toString()}.${(lt.getMonth()+1).toString()}.${lt.getFullYear()}`:lt.toDateString()}}return At.\u0275fac=function(){let Ht;return function(Ut){return(Ht||(Ht=le.n5z(At)))(Ut||At)}}(),At.\u0275prov=le.Yz7({token:At,factory:At.\u0275fac}),At})();const ye={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 Be=(()=>{class At{}return At.\u0275fac=function(lt){return new(lt||At)},At.\u0275mod=le.oAB({type:At}),At.\u0275inj=le.cJS({providers:[{provide:oe._A,useClass:je},{provide:oe.sG,useValue:ye}],imports:[[e.ez,b.p9,_.p0,ne.u5,J.Hi,Me._t,w.aw,g.Bz,A.JX,E.TU,C.Cq,I.r,P.Ps,m.Tx,L.ot,O.AV,G.lN,ne.UX,ge.c,oe.si,Re.d4,T.Iq,j.dp,Y.FA,q.Fk,oe.Ng,te.LD,ue.Co,de.Cl,Le.Is,Ue.Je,ze.C]]}),At})();p(53984);var R=p(43532),nt=(p(38719),p(21963),p(28820),p(63167),p(62109),p(22465),p(80275),p(32105)),Ve=p(36908),X=p(16074),z=p(98380),Q=p(34447);function D(At,Ht){1&At&&(le.TgZ(0,"perun-web-apps-alert"),le._uU(1),le.ALo(2,"translate"),le.ALo(3,"customTranslate"),le.qZA()),2&At&&(le.xp6(1),le.Oqu(le.lcZ(2,1,le.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function H(At,Ht){1&At&&(le.TgZ(0,"th",16),le._uU(1),le.ALo(2,"translate"),le.ALo(3,"customTranslate"),le.qZA()),2&At&&(le.xp6(1),le.hij(" ",le.lcZ(2,1,le.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function V(At,Ht){if(1&At&&(le.TgZ(0,"td",17),le._uU(1),le.qZA()),2&At){const lt=Ht.$implicit;le.xp6(1),le.Oqu(lt.friendlyNameParameter)}}function xe(At,Ht){1&At&&(le.TgZ(0,"th",16),le._uU(1),le.ALo(2,"translate"),le.ALo(3,"customTranslate"),le.qZA()),2&At&&(le.xp6(1),le.hij(" ",le.lcZ(2,1,le.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Qe(At,Ht){if(1&At&&(le.TgZ(0,"td",18),le._uU(1),le.qZA()),2&At){const lt=Ht.$implicit;le.xp6(1),le.Oqu(lt.value)}}function Te(At,Ht){1&At&&le._UZ(0,"th",16)}function Ae(At,Ht){if(1&At){const lt=le.EpF();le.TgZ(0,"td",19),le.TgZ(1,"button",20),le.NdJ("click",function(){const Lt=le.CHM(lt).$implicit;return le.oxw().resetPassword(Lt.friendlyNameParameter)}),le._uU(2),le.ALo(3,"translate"),le.ALo(4,"customTranslate"),le.qZA(),le.qZA()}if(2&At){const lt=Ht.$implicit,Ut=le.oxw();le.xp6(1),le.Q6J("disabled",!Ut.logins.includes(lt)),le.xp6(1),le.hij(" ",le.lcZ(3,2,le.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function ae(At,Ht){1&At&&le._UZ(0,"th",16)}function i(At,Ht){if(1&At){const lt=le.EpF();le.TgZ(0,"td",19),le.TgZ(1,"button",21),le.NdJ("click",function(){const Lt=le.CHM(lt).$implicit;return le.oxw().changePassword(Lt)}),le._uU(2),le.ALo(3,"translate"),le.ALo(4,"customTranslate"),le.qZA(),le.qZA()}if(2&At){const lt=Ht.$implicit,Ut=le.oxw();le.xp6(1),le.Q6J("disabled",!Ut.logins.includes(lt)),le.xp6(1),le.hij(" ",le.lcZ(3,2,le.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function o(At,Ht){1&At&&le._UZ(0,"tr",22)}function d(At,Ht){1&At&&le._UZ(0,"tr",23)}let l=(()=>{class At{constructor(lt,Ut,mt,Lt,Ee,Ge){this.attributesManagerService=lt,this.store=Ut,this.dialog=mt,this.route=Lt,this.router=Ee,this.otherApplicationService=Ge,this.logins=[],this.displayedColumns=["namespace","value","reset","change"],this.nameSpaces=[]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(lt=>{const Ut=this.nameSpaces.map(Ee=>{const Ge=Ee.split(":");return Ge[Ge.length-1]});this.logins=lt.filter(Ee=>Ut.includes(Ee.friendlyNameParameter)),this.dataSource=new _.by(lt);const Lt=this.route.snapshot.queryParamMap.get("namespace");if(Lt){const Ee=this.logins.find(Ge=>Ge.friendlyNameParameter===Lt);Ee&&this.changePassword(Ee)}})}resetPassword(lt){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",lt),"_blank")}changePassword(lt){this.router.navigate([],{queryParams:{namespace:lt.friendlyNameParameter},queryParamsHandling:"merge"});const Ut=(0,Ue.kZ)();Ut.width="600px",Ut.data={login:String(lt.value),namespace:lt.friendlyName.split(":")[1]},this.dialog.open(X.xF,Ut).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return At.\u0275fac=function(lt){return new(lt||At)(le.Y36(nt.H8),le.Y36(Ve.d6),le.Y36(Le.uw),le.Y36(g.gz),le.Y36(g.F0),le.Y36(Ve.jq))},At.\u0275cmp=le.Xpm({type:At,selectors:[["perun-web-apps-password-reset"]],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(lt,Ut){1<&&(le.TgZ(0,"h1",0),le._uU(1),le.ALo(2,"translate"),le.ALo(3,"customTranslate"),le.qZA(),le.YNc(4,D,4,5,"perun-web-apps-alert",1),le.TgZ(5,"div",2),le.TgZ(6,"div",3),le.TgZ(7,"div",4),le.TgZ(8,"table",5),le.ynx(9,6),le.YNc(10,H,4,5,"th",7),le.YNc(11,V,2,1,"td",8),le.BQk(),le.ynx(12,9),le.YNc(13,xe,4,5,"th",7),le.YNc(14,Qe,2,1,"td",10),le.BQk(),le.ynx(15,11),le.YNc(16,Te,1,0,"th",7),le.YNc(17,Ae,5,6,"td",12),le.BQk(),le.ynx(18,13),le.YNc(19,ae,1,0,"th",7),le.YNc(20,i,5,6,"td",12),le.BQk(),le.YNc(21,o,1,0,"tr",14),le.YNc(22,d,1,0,"tr",15),le.qZA(),le.qZA(),le.qZA(),le.qZA()),2<&&(le.xp6(1),le.hij(" ",le.lcZ(2,5,le.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),le.xp6(3),le.Q6J("ngIf",!Ut.logins.length),le.xp6(4),le.Q6J("dataSource",Ut.dataSource),le.xp6(13),le.Q6J("matHeaderRowDef",Ut.displayedColumns),le.xp6(1),le.Q6J("matRowDefColumns",Ut.displayedColumns))},directives:[e.O5,z.w,_.BZ,A.YE,_.w1,_.fO,_.ge,_.Dz,_.ev,L.lW,_.as,_.XQ,_.nj,_.Gk],pipes:[w.X$,Q.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),At})(),s=(()=>{class At{constructor(lt,Ut,mt,Lt){this.router=lt,this.route=Ut,this.location=mt,this.forceRoute=Lt}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(lt=>{this.router.navigate([lt.redirectTo])}):this.location.back()}}return At.\u0275fac=function(lt){return new(lt||At)(le.Y36(g.F0),le.Y36(g.gz),le.Y36(e.Ye),le.Y36(Ve.xw))},At.\u0275cmp=le.Xpm({type:At,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(lt,Ut){},styles:[""]}),At})();p(24179),p(58956),p(41619),p(61150);var c=p(63312),x=(p(52314),p(52170));let We=(()=>{class At{constructor(lt){this.router=lt}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return At.\u0275fac=function(lt){return new(lt||At)(le.Y36(g.F0))},At.\u0275cmp=le.Xpm({type:At,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(lt,Ut){1<&&(le.TgZ(0,"div",0),le.TgZ(1,"h1",1),le._uU(2),le.ALo(3,"translate"),le.qZA(),le.TgZ(4,"div"),le._uU(5),le.ALo(6,"translate"),le.qZA(),le.TgZ(7,"button",2),le.NdJ("click",function(){return Ut.redirectToHome()}),le._uU(8),le.ALo(9,"translate"),le.qZA(),le.qZA()),2<&&(le.xp6(2),le.Oqu(le.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),le.xp6(3),le.Oqu(le.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),le.xp6(3),le.hij(" ",le.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},directives:[L.lW],pipes:[w.X$],styles:[""]}),At})()},63312:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>g,Y:()=>A});var e=p(5e3),_=(p(32105),p(51062)),w=p(42377);const g={};let A=(()=>{class E{constructor(I){this.translate=I,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=P=>P===g?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):P.shortname,this.secondaryFunction=P=>P===g?"":P.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(P.id),this.searchFunction=P=>P===g?"":P.shortname+String(P.id)}}return E.\u0275fac=function(I){return new(I||E)(e.Y36(_.sK))},E.\u0275cmp=e.Xpm({type:E,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(I,P){1&I&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(L){return P.itemSelected.emit(L)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&I&&e.Q6J("entities",P.items)("searchFunction",P.searchFunction)("mainTextFunction",P.nameFunction)("secondaryTextFunction",P.secondaryFunction)("entity",P.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"))},directives:[w.i],pipes:[_.X$],styles:[""]}),E})()},38719:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>P});var e=p(5e3),b=p(9244),_=p(69808),w=p(77446),g=p(93075),A=p(67322),E=p(64597);function C(m,L){if(1&m){const O=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){return e.CHM(O),e.oxw()._sendEventToParent()})("ngModelChange",function(ne){return e.CHM(O),e.oxw().attribute.value=ne}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&m){const O=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,O.attribute.displayName),"-value"),e.Q6J("ngModel",O.attribute.value)}}function I(m,L){if(1&m&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&m){const O=e.oxw();e.xp6(1),e.Oqu(O.attribute.value)}}let P=(()=>{class m{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return m.\u0275fac=function(O){return new(O||m)},m.\u0275cmp=e.Xpm({type:m,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,G){1&O&&(e.TgZ(0,"div"),e.YNc(1,C,2,4,"mat-checkbox",0),e.YNc(2,I,2,1,"mat-label",1),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",!G.readonly),e.xp6(1),e.Q6J("ngIf",G.readonly))},directives:[_.O5,w.oG,g.JJ,g.On,A.hX],pipes:[E.R],styles:[""]}),m})()},21963:($e,_e,p)=>{"use strict";p.d(_e,{H:()=>j});var e=p(5e3),b=p(91159),_=p(44409),w=p(16074),g=p(9244),A=p(48966),E=p(26688),C=p(69808),I=p(25245),P=p(29772),m=p(47423),L=p(67322),O=p(98833);function G(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){return e.CHM(te),e.oxw(2).dragDisabled=!1}),e._uU(1,"drag_indicator"),e.qZA()}}function ne(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(te);const de=e.oxw().$implicit;return e.oxw().edit(de)}),e._uU(1,"edit"),e.qZA()}}function ge(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(te);const de=e.oxw().$implicit;return e.oxw().remove(de)}),e._uU(1,"cancel"),e.qZA()}}function J(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const Le=e.CHM(te).$implicit,Ue=e.oxw();return Ue.remove(Le),Ue._sendEventToParent()}),e.YNc(1,G,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const Le=e.CHM(te).$implicit,Ue=e.oxw();return Ue.readonly&&void 0!==Ue.attribute.displayName&&Ue.showValue(Le,Ue.attribute.displayName)}),e._uU(3),e.qZA(),e.YNc(4,ne,2,0,"mat-icon",7),e.YNc(5,ge,2,0,"mat-icon",8),e.qZA()}if(2&Y){const te=q.$implicit,ue=e.oxw();e.Q6J("selectable",ue.selectable)("cdkDragData",te)("removable",ue.removable),e.xp6(1),e.Q6J("ngIf",ue.removable),e.xp6(1),e.ekj("cursor-pointer",ue.readonly&&void 0!==ue.attribute.displayName),e.xp6(1),e.hij(" ",te," "),e.xp6(1),e.Q6J("ngIf",ue.removable),e.xp6(1),e.Q6J("ngIf",ue.removable)}}function Me(Y,q){1&Y&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function oe(Y,q){1&Y&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function Re(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"div",12),e.TgZ(1,"span",13),e.TgZ(2,"button",14),e.NdJ("click",function(){return e.CHM(te),e.oxw().onShowChange()}),e.YNc(3,Me,2,0,"mat-icon",15),e.YNc(4,oe,2,0,"mat-icon",15),e.qZA(),e.qZA(),e.qZA()}if(2&Y){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(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-form-field",12),e.TgZ(1,"input",16),e.NdJ("matChipInputTokenEnd",function(de){return e.CHM(te),e.oxw().add(de)})("change",function(){return e.CHM(te),e.oxw()._sendEventToParent()}),e.qZA(),e.qZA()}if(2&Y){const te=e.oxw(),ue=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",ue)("matChipInputSeparatorKeyCodes",te.separatorKeysCodes)("matChipInputAddOnBlur",te.addOnBlur)}}let j=(()=>{class Y{constructor(te,ue){this.dialog=te,this.changeDetector=ue,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[b.K5,b.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,g.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,g.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(te){const ue=te.input,de=te.value;(de||"").trim()&&(this.attribute.value.push(de.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),ue&&(ue.value=""),this.sendEventToParent.emit()}remove(te){const ue=(0,g.kZ)();ue.width="400px",ue.data={name:te},this.dialog.open(w.Wr,ue).afterClosed().subscribe(Le=>{if(Le){const Ue=this.attribute.value.indexOf(te);this.attribute.value.splice(Ue,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(te){this.dragDisabled=!0,(0,_.bA)(this.attribute.value,te.previousIndex,te.currentIndex),this.values=this.attribute.value}edit(te){const ue=this.attribute.value.indexOf(te),de=(0,g.kZ)();de.width="600px",de.data={attribute:this.attribute,index:ue},this.dialog.open(w.r2,de).afterClosed().subscribe(Ue=>{Ue&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(te,ue){const de=(0,g.kZ)();de.width="350px",de.data={value:te,title:ue},this.dialog.open(w.mk,de)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return Y.\u0275fac=function(te){return new(te||Y)(e.Y36(A.uw),e.Y36(e.sBO))},Y.\u0275cmp=e.Xpm({type:Y,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,ue){1&te&&(e.TgZ(0,"div"),e.TgZ(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(Le){return ue.drop(Le),ue._sendEventToParent()}),e.YNc(3,J,6,9,"mat-chip",2),e.YNc(4,Re,5,4,"div",3),e.YNc(5,T,2,3,"mat-form-field",3),e.qZA(),e.qZA()),2&te&&(e.xp6(1),e.Q6J("cdkDropListDisabled",ue.dragDisabled),e.xp6(2),e.Q6J("ngForOf",ue.values.slice(0,ue.itemsShown)),e.xp6(1),e.Q6J("ngIf",ue.values.length>ue.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!ue.readonly))},directives:[E.qn,_.Wj,C.sg,E.HS,_.Zt,C.O5,I.Hw,P.gM,m.lW,L.KE,O.Nt,E.oH],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}"]}),Y})()},28820:($e,_e,p)=>{"use strict";p.d(_e,{$:()=>Me});var e=p(16074),b=p(9244),_=p(5e3),w=p(48966),g=p(93075),A=p(69808),E=p(67322),C=p(98833),I=p(47423),P=p(25245),m=p(29772);function L(oe,Re){if(1&oe){const T=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM(T);const Y=_.oxw().index;return _.oxw().removeValue(Y)}),_.TgZ(1,"mat-icon"),_._uU(2," indeterminate_check_box "),_.qZA(),_.qZA()}}function O(oe,Re){if(1&oe){const T=_.EpF();_.TgZ(0,"div",9),_.TgZ(1,"mat-form-field",10),_._UZ(2,"label",11),_.TgZ(3,"input",12),_.NdJ("click",function(){const q=_.CHM(T).index,te=_.oxw();return te.readonly&&te.attribute.displayName&&te.showValue(te.keys[q],te.attribute.displayName)})("ngModelChange",function(Y){const te=_.CHM(T).index;return _.oxw().keys[te]=Y}),_.qZA(),_.qZA(),_.TgZ(4,"mat-form-field",10),_._UZ(5,"label",11),_.TgZ(6,"input",13),_.NdJ("click",function(){const q=_.CHM(T).$implicit,te=_.oxw();return te.readonly&&void 0!==te.attribute.displayName&&te.showValue(q,te.attribute.displayName)})("ngModelChange",function(Y){const te=_.CHM(T).index;return _.oxw().values[te]=Y}),_.qZA(),_.qZA(),_.YNc(7,L,3,0,"button",14),_.qZA()}if(2&oe){const T=Re.index,j=_.oxw();_.xp6(1),_.s9C("appearance",j.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",j.attribute.id,"-key-",T,""),_.xp6(1),_.ekj("cursor-pointer",j.readonly&&void 0!==j.attribute.displayName),_.hYB("id","",j.attribute.id,"-key-",T,""),_.MGl("name","key-",T,""),_.Q6J("ngModel",j.keys[T])("readonly",j.readonly),_.xp6(1),_.s9C("appearance",j.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",j.attribute.id,"-value-",T,""),_.xp6(1),_.ekj("cursor-pointer",j.readonly&&void 0!==j.attribute.displayName),_.MGl("name","value-",T,""),_.hYB("id","",j.attribute.id,"-value-",T,""),_.Q6J("readonly",j.readonly)("ngModel",j.values[T]),_.xp6(1),_.Q6J("ngIf",!j.readonly)}}function G(oe,Re){1&oe&&(_.TgZ(0,"mat-icon"),_._uU(1,"more_horiz"),_.qZA())}function ne(oe,Re){1&oe&&(_.TgZ(0,"mat-icon"),_._uU(1,"keyboard_arrow_up"),_.qZA())}function ge(oe,Re){if(1&oe){const T=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(T),_.oxw().onShowChange()}),_.YNc(1,G,2,0,"mat-icon",17),_.YNc(2,ne,2,0,"mat-icon",17),_.qZA()}if(2&oe){const T=_.oxw();_.xp6(1),_.Q6J("ngIf",!T.showMore),_.xp6(1),_.Q6J("ngIf",T.showMore)}}function J(oe,Re){if(1&oe){const T=_.EpF();_.TgZ(0,"button",18),_.NdJ("click",function(){return _.CHM(T),_.oxw().addValue()}),_.TgZ(1,"mat-icon"),_._uU(2," add_box "),_.qZA(),_.qZA()}}let Me=(()=>{class oe{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[j,Y]of T.entries())this.keys.push(j),this.values.push(Y)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,b.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 j=0;jj.defaultItemsShown),_.xp6(1),_.Q6J("ngIf",!j.readonly))},directives:[g._Y,g.JL,g.F,A.sg,E.KE,C.Nt,g.Fj,g.Q7,g.JJ,g.On,A.O5,I.lW,P.Hw,m.gM],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}"]}),oe})()},63167:($e,_e,p)=>{"use strict";p.d(_e,{_:()=>I});var e=p(5e3),b=p(9244),_=p(16074),w=p(48966),g=p(67322),A=p(98833),E=p(93075),C=p(64597);let I=(()=>{class P{constructor(L){this.dialog=L,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(L,O){const G=(0,b.kZ)();G.width="350px",G.data={value:L,title:O},this.dialog.open(_.mk,G)}}return P.\u0275fac=function(L){return new(L||P)(e.Y36(w.uw))},P.\u0275cmp=e.Xpm({type:P,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),e.TgZ(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(),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))},directives:[g.KE,A.Nt,E.Fj,E.JJ,E.On],pipes:[C.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),P})()},43532:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>Re});var e=p(5e3),b=p(28820),_=p(69808),w=p(38719),g=p(21963),A=p(63167),E=p(9244),C=p(16074),I=p(48966),P=p(67322),m=p(98833),L=p(93075);let O=(()=>{class T{constructor(Y){this.dialog=Y,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,E.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(Y){const q=(0,E.kZ)();q.width="350px",q.data={value:Y.value,title:Y.displayName},this.dialog.open(C.mk,q)}}return T.\u0275fac=function(Y){return new(Y||T)(e.Y36(I.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(Y,q){1&Y&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"input",1),e.NdJ("click",function(){return q.readonly&&void 0!==q.attribute.value&&q.showValue(q.attribute)})("ngModelChange",function(ue){return q.attribute.value=ue})("keydown",function(){return q._sendEventToParent()}),e.qZA(),e.qZA()),2&Y&&(e.s9C("appearance",q.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",q.readonly&&void 0!==q.attribute.value),e.Q6J("readonly",q.readonly)("ngModel",q.attribute.value))},directives:[P.KE,m.Nt,L.wV,L.Fj,L.JJ,L.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),T})();const G=["map"];function ne(T,j){if(1&T){const Y=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){return e.CHM(Y),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}function ge(T,j){if(1&T){const Y=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){return e.CHM(Y),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}function J(T,j){if(1&T&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}function Me(T,j){if(1&T){const Y=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){return e.CHM(Y),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}function oe(T,j){if(1&T){const Y=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){return e.CHM(Y),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}let Re=(()=>{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(Y){return new(Y||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(Y,q){if(1&Y&&e.Gf(G,5),2&Y){let te;e.iGM(te=e.CRH())&&(q.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(Y,q){1&Y&&(e.TgZ(0,"div"),e.YNc(1,ne,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,ge,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return q._sendEventToParent2()}),e.YNc(4,J,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,Me,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,oe,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&Y&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===q.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===q.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===q.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===q.attribute.type||"java.lang.LargeString"===q.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===q.attribute.type))},directives:[_.O5,w.u,g.H,b.$,A._,O],styles:[""]}),T})()},53984:($e,_e,p)=>{"use strict";p.d(_e,{p:()=>ze});var e=p(84847),b=p(32075),_=p(20449),w=p(43532),g=p(9244),A=p(36908),E=p(5e3),C=p(18750),I=p(77446),P=p(29772),m=p(69808),L=p(98380),O=p(64597);let G=(()=>{class le{transform(ye){return"virt"===ye.namespace.split(":")[4]}}return le.\u0275fac=function(ye){return new(ye||le)},le.\u0275pipe=E.Yjl({name:"isVirtualAttribute",type:le,pure:!0}),le})();var ne=p(51062);function ge(le,je){if(1&le){const ye=E.EpF();E.TgZ(0,"th",17),E.TgZ(1,"mat-checkbox",18),E.NdJ("change",function(W){E.CHM(ye);const R=E.oxw();return W?R.masterToggle():null}),E.qZA(),E.qZA()}if(2&le){const ye=E.oxw();E.xp6(1),E.Q6J("checked",ye.selection.hasValue()&&ye.isAllSelected())("indeterminate",ye.selection.hasValue()&&!ye.isAllSelected())("aria-label",ye.checkboxLabel())}}function J(le,je){if(1&le){const ye=E.EpF();E.TgZ(0,"td",19),E.TgZ(1,"mat-checkbox",20),E.NdJ("click",function(W){return W.stopPropagation()})("change",function(W){const me=E.CHM(ye).$implicit,be=E.oxw();return W?be.selection.toggle(me):null}),E.ALo(2,"multiWordDataCy"),E.ALo(3,"isVirtualAttribute"),E.qZA(),E.qZA()}if(2&le){const ye=je.$implicit,Be=E.oxw();E.xp6(1),E.Q2q("data-cy","",E.lcZ(2,4,ye.displayName),"-checkbox"),E.Q6J("checked",Be.selection.isSelected(ye))("disabled",E.lcZ(3,6,ye)||!ye.writable)("aria-label",Be.checkboxLabel(ye))}}function Me(le,je){1&le&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function oe(le,je){if(1&le&&(E.TgZ(0,"td",22),E._uU(1),E.qZA()),2&le){const ye=je.$implicit;E.xp6(1),E.Oqu(ye.id)}}function Re(le,je){1&le&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function T(le,je){if(1&le&&(E.TgZ(0,"td",23),E.TgZ(1,"div",24),E._uU(2),E.qZA(),E.qZA()),2&le){const ye=je.$implicit,Be=E.oxw();E.xp6(1),E.s9C("matTooltip",Be.getAttributeFullName(ye)),E.xp6(1),E.hij(" ",ye.displayName," ")}}function j(le,je){1&le&&(E.TgZ(0,"th",25),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function Y(le,je){if(1&le){const ye=E.EpF();E.TgZ(0,"td",23),E.TgZ(1,"perun-web-apps-attribute-value",26),E.NdJ("sendEventToParent2",function(){const R=E.CHM(ye).$implicit;return E.oxw().onValueChange(R)}),E.qZA(),E.qZA()}if(2&le){const ye=je.$implicit,Be=E.oxw();E.xp6(1),E.Q6J("attribute",ye)("readonly",Be.readonly||!ye.writable)}}function q(le,je){1&le&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function te(le,je){if(1&le&&(E.TgZ(0,"td",23),E._uU(1),E.qZA()),2&le){const ye=je.$implicit;E.xp6(1),E.Oqu(ye.description)}}function ue(le,je){1&le&&E._UZ(0,"tr",27)}function de(le,je){if(1&le&&(E._UZ(0,"tr",28),E.ALo(1,"translate")),2&le){const ye=je.$implicit,Be=E.oxw();E.s9C("matTooltip",E.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),E.Q6J("matTooltipPosition","before")("matTooltipDisabled",ye.writable||Be.readonly)}}function Le(le,je){1&le&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ue(le,je){if(1&le&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le){const ye=E.oxw();E.xp6(1),E.hij(" ",E.lcZ(2,1,ye.emptyListText),"\n")}}let ze=(()=>{class le{constructor(ye,Be){this.authResolver=ye,this.tableCheckbox=Be,this.attributes=[],this.selection=new _.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=g.f7}set matSort(ye){this.sort=ye,this.setDataSource()}static canBeSelected(ye){return!(0,g.Hm)(ye)&&ye.writable}static getDataForColumn(ye,Be){switch(Be){case"id":return ye.id.toString();case"displayName":return ye.displayName;case"description":return ye.description;case"value":return JSON.stringify(ye.value);case"urn":return ye.namespace+":"+ye.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ye=>"id"!==ye)),this.dataSource=new b.by((0,g.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(ye){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,le.getDataForColumn),ye)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(ye=>!this.hiddenColumns.includes(ye)),this.dataSource&&(this.dataSource.filterPredicate=(ye,Be)=>(0,g.Sd)(ye,Be,this.displayedColumns.concat("urn"),le.getDataForColumn),this.dataSource.sortData=(ye,Be)=>(0,g.pR)(ye,Be,le.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,le.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,le.canBeSelected)}checkboxLabel(ye){return ye?`${this.selection.isSelected(ye)?"deselect":"select"} row ${ye.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const ye of this.items.toArray())"java.util.LinkedHashMap"===ye.attribute.type&&ye.updateMapAttribute()}onValueChange(ye){le.canBeSelected(ye)&&this.selection.select(ye)}getAttributeFullName(ye){return`${ye.namespace}:${ye.friendlyName}`}}return le.\u0275fac=function(ye){return new(ye||le)(E.Y36(A.x4),E.Y36(A.UA))},le.\u0275cmp=E.Xpm({type:le,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(ye,Be){if(1&ye&&(E.Gf(g.l9,7),E.Gf(e.YE,7),E.Gf(w.M,5)),2&ye){let W;E.iGM(W=E.CRH())&&(Be.child=W.first),E.iGM(W=E.CRH())&&(Be.matSort=W.first),E.iGM(W=E.CRH())&&(Be.items=W)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[E.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["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"],["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(ye,Be){1&ye&&(E.TgZ(0,"div",0),E.TgZ(1,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(R){return Be.exportData(R)}),E.TgZ(2,"table",2),E.ynx(3,3),E.YNc(4,ge,2,3,"th",4),E.YNc(5,J,4,8,"td",5),E.BQk(),E.ynx(6,6),E.YNc(7,Me,3,3,"th",7),E.YNc(8,oe,2,1,"td",8),E.BQk(),E.ynx(9,9),E.YNc(10,Re,3,3,"th",7),E.YNc(11,T,3,2,"td",10),E.BQk(),E.ynx(12,11),E.YNc(13,j,3,3,"th",12),E.YNc(14,Y,2,2,"td",10),E.BQk(),E.ynx(15,13),E.YNc(16,q,3,3,"th",7),E.YNc(17,te,2,1,"td",10),E.BQk(),E.YNc(18,ue,1,0,"tr",14),E.YNc(19,de,2,5,"tr",15),E.qZA(),E.qZA(),E.qZA(),E.YNc(20,Le,3,3,"perun-web-apps-alert",16),E.YNc(21,Ue,3,3,"perun-web-apps-alert",16)),2&ye&&(E.Q6J("hidden",0===Be.dataSource.filteredData.length),E.xp6(1),E.Q6J("tableId",Be.tableId)("dataLength",Be.dataSource.filteredData.length)("pageSizeOptions",Be.pageSizeOptions),E.xp6(1),E.Q6J("dataSource",Be.dataSource),E.xp6(16),E.Q6J("matHeaderRowDef",Be.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Be.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===Be.dataSource.filteredData.length&&0!==Be.dataSource.data.length),E.xp6(1),E.Q6J("ngIf",0===Be.dataSource.data.length))},directives:[C.l,b.BZ,e.YE,b.w1,b.fO,b.ge,I.oG,b.Dz,b.ev,e.nU,P.gM,w.M,b.as,b.XQ,b.nj,b.Gk,m.O5,L.w],pipes:[O.R,G,ne.X$],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}"]}),le})()},4235:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>I});var e=p(36908),b=p(5e3),_=p(69808),w=p(47423),g=p(29772),A=p(25245),E=p(51062);const C=function(P){return{color:P}};let I=(()=>{class P{constructor(L,O){this.location=L,this.storeService=O}ngOnInit(){this.backButtonColor=this.storeService.get("theme","back_button_color")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return P.\u0275fac=function(L){return new(L||P)(b.Y36(_.Ye),b.Y36(e.d6))},P.\u0275cmp=b.Xpm({type:P,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&&(b.TgZ(0,"button",0),b.NdJ("click",function(){return O.goBack()}),b.ALo(1,"translate"),b.TgZ(2,"mat-icon",1),b._uU(3,"arrow_right_alt"),b.qZA(),b.qZA()),2&L&&(b.s9C("matTooltip",b.lcZ(1,2,"Back")),b.Q6J("ngStyle",b.VKq(4,C,O.backButtonColor)))},directives:[w.lW,_.PC,g.gM,A.Hw],pipes:[E.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),P})()},61150:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>L});var e=p(5e3),b=p(93075),_=p(36908),w=p(67322),g=p(98833),A=p(69808),E=p(77446),C=p(82322),I=p(51062);function P(O,G){if(1&O){const ne=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){return e.CHM(ne),e.oxw().emitAsSubGroup()})("ngModelChange",function(J){return e.CHM(ne),e.oxw().asSubgroup=J}),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 m(O,G){if(1&O){const ne=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(J){return e.CHM(ne),e.oxw().emitParentGroup(J)}),e.qZA()}if(2&O){const ne=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",ne.voGroups)}}let L=(()=>{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.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new b.NI("",[b.kI.required,b.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),b.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new b.NI("",[b.kI.required,b.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(_.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,ge){1&ne&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-form-field",1),e.NdJ("keyup",function(){return ge.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.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return ge.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.qZA(),e.YNc(15,P,3,5,"mat-checkbox",5),e.YNc(16,m,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",ge.nameControl),e.xp6(3),e.hij(" ",ge.invalidNameMessage.length?ge.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",ge.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",ge.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",ge.asSubgroup))},directives:[w.KE,g.Nt,b.Fj,b.Q7,b.JJ,b.oH,w.TO,A.O5,E.oG,b.On,C.h],pipes:[I.X$],styles:[""]}),O})()},39798:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>E});var e=p(5e3),b=p(67322),_=p(98833),w=p(86856),g=p(93075),A=p(51062);let E=(()=>{class C{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 C.\u0275fac=function(P){return new(P||C)},C.\u0275cmp=e.Xpm({type:C,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(P,m){if(1&P){const L=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){return e.CHM(L),e.MAs(7).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 m.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2),e._UZ(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){return e.CHM(L),e.MAs(15).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 m.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2),e._UZ(14,"mat-datepicker",null,5),e.qZA()}if(2&P){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",m.startMinDate)("max",m.startMaxDate)("formControl",m.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",m.endMinDate)("max",m.endMaxDate)("formControl",m.endDate),e.xp6(1),e.Q6J("for",O)}},directives:[b.KE,b.hX,_.Nt,w.hl,g.Fj,g.JJ,g.oH,w.nW,b.R9,w.Mq],pipes:[A.X$],styles:[""]}),C})()},64901:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>m});var e=p(5e3),b=p(23753),_=p(24850),w=p(80013),g=p(75778),A=p(93075),E=p(67322),C=p(98833),I=p(51062);const P=["input"];let m=(()=>{class L{constructor(){this.autoFocus=!1,this.control=new A.NI,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,b.R)(this.input.nativeElement,"keyup").pipe((0,_.U)(G=>G.target.value),(0,w.b)(500),(0,g.x)()).subscribe(G=>{this.control.invalid||this.filter.emit(G)})}}return L.\u0275fac=function(G){return new(G||L)},L.\u0275cmp=e.Xpm({type:L,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(G,ne){if(1&G&&e.Gf(P,7),2&G){let ge;e.iGM(ge=e.CRH())&&(ne.input=ge.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder","formControl"],["input",""]],template:function(G,ne){1&G&&(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(),e.qZA()),2&G&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,ne.placeholder)),e.Q6J("formControl",ne.control),e.xp6(4),e.hij(" ",ne.error," "))},directives:[E.KE,C.Nt,A.Fj,A.JJ,A.oH,E.TO],pipes:[I.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),L})()},42377:($e,_e,p)=>{"use strict";p.d(_e,{i:()=>Me});var e=p(5e3),b=p(93075),_=p(96831),w=p(8929),g=p(7625),A=p(67322),E=p(74107),C=p(69808),I=p(90508),P=p(43586),m=p(53435);const L=["scrollViewport"];function O(oe,Re){if(1&oe&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&oe){const T=e.oxw();e.xp6(1),e.hij(" ",T.multipleSelectedText()," ")}}function G(oe,Re){if(1&oe&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&oe){const T=e.oxw(2);e.Tol(T.colorByStatus(null==T.entitiesCtrl?null:T.entitiesCtrl.value)),e.xp6(1),e.hij(" ",T.statusTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)?"("+T.statusTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)+")":""," ")}}function ne(oe,Re){if(1&oe&&(e.TgZ(0,"mat-option",8),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,G,2,4,"span",10),e.qZA()),2&oe){const T=e.oxw();e.Q6J("value",null==T.entitiesCtrl?null:T.entitiesCtrl.value),e.xp6(1),e.hij(" ",T.mainTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(T.secondaryTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",T.displayStatus)}}function ge(oe,Re){if(1&oe&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&oe){const T=e.oxw().$implicit,j=e.oxw();e.Tol(j.colorByStatus(T)),e.xp6(1),e.hij(" ",j.statusTextFunction(T)?"("+j.statusTextFunction(T)+")":""," ")}}function J(oe,Re){if(1&oe&&(e.TgZ(0,"mat-option",11),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,ge,2,4,"span",10),e.qZA()),2&oe){const T=Re.$implicit,j=e.oxw();e.Tol(j.theme),e.Q6J("value",T),e.xp6(1),e.hij(" ",j.mainTextFunction(T)," "),e.xp6(2),e.Oqu(j.secondaryTextFunction(T)),e.xp6(1),e.Q6J("ngIf",j.displayStatus)}}let Me=(()=>{class oe{constructor(T){this.cd=T,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.entitySelected=new e.vpe,this.entitiesCtrl=new b.NI,this.entityFilterCtrl=new b.NI,this.filteredEntities=new _.t(1),this._onDestroy=new w.xQ,this.entitiesLen=0,this.mainTextFunction=j=>JSON.stringify(j),this.secondaryTextFunction=j=>"#".concat(String(j.id),j.description?" ".concat(j.description):""),this.statusTextFunction=j=>j.status}ngOnInit(){this.entitiesCtrl.valueChanges.subscribe(T=>this.entitySelected.emit(T)),!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(T=>this.entitiesLen=T.length),this.entityFilterCtrl.valueChanges.pipe((0,g.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(T){switch(T.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(T){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),T.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(T){return T.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let T=48*this.entitiesLen;return T>192&&(T=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),T}multipleSelectedText(){const T=this.entitiesCtrl.value;if(T&&0!==T.length)return T.length===this.entities.length?"ALL":T.length>1?this.mainTextFunction(T[0])+` + ${T.length-1} other(s)`:this.mainTextFunction(T[0])+" "+this.secondaryTextFunction(T[0])}filterEntites(){if(!this.entities)return;let T=this.entityFilterCtrl.value;if(!T)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();T=this.normalize(T),this.filteredEntities.next(this.entities.filter(j=>this.normalize(this.searchFunction(j)).includes(T))),this.cd.detectChanges()}}return oe.\u0275fac=function(T){return new(T||oe)(e.Y36(e.sBO))},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(T,j){if(1&T&&e.Gf(L,5),2&T){let Y;e.iGM(Y=e.CRH())&&(j.scrollViewport=Y.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[e.TTD],decls:10,vars:16,consts:[[1,"w-100"],[3,"placeholder","formControl","multiple","openedChange"],[4,"ngIf"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value"]],template:function(T,j){1&T&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"mat-select",1),e.NdJ("openedChange",function(){return j.openChange()}),e.YNc(2,O,2,1,"mat-select-trigger",2),e.TgZ(3,"mat-option"),e._UZ(4,"ngx-mat-select-search",3),e.qZA(),e.YNc(5,ne,5,4,"mat-option",4),e.TgZ(6,"cdk-virtual-scroll-viewport",5,6),e.YNc(8,J,5,7,"mat-option",7),e.ALo(9,"async"),e.qZA(),e.qZA(),e.qZA()),2&T&&(e.xp6(1),e.s9C("placeholder",j.selectPlaceholder),e.Q6J("formControl",j.entitiesCtrl)("multiple",j.multiple),e.xp6(1),e.Q6J("ngIf",j.multiple),e.xp6(2),e.s9C("placeholderLabel",j.findPlaceholder),e.s9C("noEntriesFoundLabel",j.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",j.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==j.entitiesCtrl?null:j.entitiesCtrl.value),e.xp6(1),e.Udp("height",j.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(9,14,j.filteredEntities)))},directives:[A.KE,E.gD,b.JJ,b.oH,C.O5,E.$L,I.ey,P.nu,m.N7,m.xd,m.x0],pipes:[C.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}"]}),oe})()},74010:($e,_e,p)=>{"use strict";p.d(_e,{X:()=>z});var e=p(84847),b=p(32075),_=p(9244),w=p(36908),g=p(5e3),A=p(18750),E=p(77446),C=p(10441),I=p(93075),P=p(69808),m=p(29772),L=p(47423),O=p(25245);function G(Q,D){if(1&Q&&(g.TgZ(0,"div",6),g._uU(1),g.qZA()),2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.hij(" ",H[V.paramName]," ")}}function ne(Q,D){1&Q&&(g.TgZ(0,"mat-icon"),g._uU(1,"more_horiz"),g.qZA())}function ge(Q,D){1&Q&&(g.TgZ(0,"mat-icon"),g._uU(1,"keyboard_arrow_up"),g.qZA())}function J(Q,D){if(1&Q){const H=g.EpF();g.TgZ(0,"button",7),g.NdJ("click",function(){return g.CHM(H),g.oxw().onShowChange()}),g.YNc(1,ne,2,0,"mat-icon",8),g.YNc(2,ge,2,0,"mat-icon",8),g.qZA()}if(2&Q){const H=g.oxw();g.xp6(1),g.Q6J("ngIf",!H.showMore),g.xp6(1),g.Q6J("ngIf",H.showMore)}}let Me=(()=>{class Q{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 Q.\u0275fac=function(H){return new(H||Q)},Q.\u0275cmp=g.Xpm({type:Q,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[g.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(H,V){1&H&&(g.TgZ(0,"form",0),g.TgZ(1,"div",1),g.TgZ(2,"div",2),g.YNc(3,G,2,1,"div",3),g.qZA(),g.TgZ(4,"div"),g.TgZ(5,"span",4),g.YNc(6,J,3,2,"button",5),g.qZA(),g.qZA(),g.qZA(),g.qZA()),2&H&&(g.xp6(3),g.Q6J("ngForOf",V.objects.slice(0,V.itemsShown)),g.xp6(2),g.Q6J("matTooltip",V.showMore?"Show less":"Show more")("matTooltipPosition","above"),g.xp6(1),g.Q6J("ngIf",V.objects.length>V.defaultItemsShown))},directives:[I._Y,I.JL,I.F,P.sg,m.gM,P.O5,L.lW,O.Hw],styles:[""]}),Q})();var oe=p(50301),Re=p(11735),T=p(98380),j=p(51062),Y=p(53561);let q=(()=>{class Q{transform(H,V,xe){return H.filter(Qe=>Qe[xe].includes(V)).filter((Qe,Te,Ae)=>Ae.findIndex(ae=>ae[xe]===Qe[xe])===Te)}}return Q.\u0275fac=function(H){return new(H||Q)},Q.\u0275pipe=g.Yjl({name:"filterUniqueObjects",type:Q,pure:!0}),Q})();function te(Q,D){1&Q&&g._UZ(0,"th",20)}function ue(Q,D){if(1&Q){const H=g.EpF();g.TgZ(0,"td",21),g.TgZ(1,"mat-checkbox",22),g.NdJ("change",function(xe){const Te=g.CHM(H).$implicit,Ae=g.oxw();return xe?Ae.selection.toggle(Te):null})("click",function(xe){return xe.stopPropagation()}),g.qZA(),g.qZA()}if(2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.Q2q("data-cy","",H.facility.name,"-checkbox"),g.Q6J("aria-label",V.checkboxLabel(H))("checked",V.selection.isSelected(H))}}function de(Q,D){1&Q&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function Le(Q,D){if(1&Q&&(g.TgZ(0,"td",24),g._uU(1),g.qZA()),2&Q){const H=D.$implicit;g.xp6(1),g.hij(" ",H.facility.id," ")}}function Ue(Q,D){1&Q&&g._UZ(0,"th",25)}function ze(Q,D){if(1&Q&&(g.TgZ(0,"td",26),g._UZ(1,"perun-web-apps-recently-viewed-icon",27),g.qZA()),2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.Q6J("id",H.facility.id)("recentIds",V.recentIds)}}function le(Q,D){1&Q&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function je(Q,D){if(1&Q&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&Q){const H=D.$implicit;g.uIk("data-cy",H.facility.name),g.xp6(1),g.hij(" ",H.facility.name," ")}}function ye(Q,D){1&Q&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function Be(Q,D){if(1&Q&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&Q){const H=D.$implicit;g.xp6(1),g.Oqu(H.facility.description)}}function W(Q,D){1&Q&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function R(Q,D){if(1&Q&&(g.TgZ(0,"td",26),g._uU(1),g.ALo(2,"technicalOwners"),g.qZA()),2&Q){const H=D.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,H.owners))}}function me(Q,D){1&Q&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function be(Q,D){if(1&Q){const H=g.EpF();g.TgZ(0,"td",26),g.TgZ(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){return g.CHM(H),g.oxw().disableRouting=!0})("mouseleave",function(){return g.CHM(H),g.oxw().disableRouting=!1}),g.ALo(2,"filterUniqueObjects"),g.qZA(),g.qZA()}if(2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,H.destinations,V.filterValue,"destination"))("paramName","destination")}}function Ie(Q,D){1&Q&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function pe(Q,D){if(1&Q){const H=g.EpF();g.TgZ(0,"td",26),g.TgZ(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){return g.CHM(H),g.oxw().disableRouting=!0})("mouseleave",function(){return g.CHM(H),g.oxw().disableRouting=!1}),g.ALo(2,"filterUniqueObjects"),g.qZA(),g.qZA()}if(2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,H.hosts,V.filterValue,"hostname"))("paramName","hostname")}}function Se(Q,D){1&Q&&g._UZ(0,"tr",29)}const Xe=function(Q){return["/facilities",Q]},Je=function(){return[]};function nt(Q,D){if(1&Q&&g._UZ(0,"tr",30),2&Q){const H=D.$implicit,V=g.oxw();g.Q6J("perunWebAppsMiddleClickRouterLink",g.VKq(2,Xe,H.facility.id))("routerLink",V.disableRouting?g.DdM(4,Je):g.VKq(5,Xe,H.facility.id))}}function Ve(Q,D){1&Q&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function X(Q,D){1&Q&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let z=(()=>{class Q{constructor(H){this.authResolver=H,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=_.f7,this.getDataForColumnFun=(V,xe)=>Q.getDataForColumn(V,xe,this.recentIds)}set matSort(H){this.sort=H}static getDataForColumn(H,V,xe){switch(V){case"id":return H.facility.id.toString();case"name":return H.facility.name;case"description":return H.facility.description;case"technicalOwners":return(0,_.te)(H.owners);case"recent":return xe&&xe.includes(H.facility.id)?"#".repeat(xe.indexOf(H.facility.id)):H.name;case"destinations":return H.destinations.map(Qe=>Qe.destination).join(" ; ");case"hosts":return H.hosts.map(Qe=>Qe.hostname).join(" ; ");default:return H[V]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(H=>"id"!==H)),this.setDataSource()}exportData(H){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),H)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(H,V)=>(0,_.Sd)(H,V,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(H,V)=>(0,_.pR)(H,V,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(H=>this.selection.select(H))}checkboxLabel(H){return H?`${this.selection.isSelected(H)?"deselect":"select"} row ${H.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Q.\u0275fac=function(H){return new(H||Q)(g.Y36(w.x4))},Q.\u0275cmp=g.Xpm({type:Q,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(H,V){if(1&H&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&H){let xe;g.iGM(xe=g.CRH())&&(V.child=xe.first),g.iGM(xe=g.CRH())&&(V.matSort=xe.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[g.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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,"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(H,V){1&H&&(g.TgZ(0,"div",0),g.TgZ(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(Qe){return V.exportData(Qe)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,te,1,0,"th",4),g.YNc(5,ue,2,3,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,de,3,3,"th",7),g.YNc(8,Le,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Ue,1,0,"th",10),g.YNc(11,ze,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,le,3,3,"th",7),g.YNc(14,je,2,2,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,ye,3,3,"th",10),g.YNc(17,Be,2,1,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,W,3,3,"th",10),g.YNc(20,R,3,3,"td",11),g.BQk(),g.ynx(21,15),g.YNc(22,me,3,3,"th",10),g.YNc(23,be,3,6,"td",11),g.BQk(),g.ynx(24,16),g.YNc(25,Ie,3,3,"th",10),g.YNc(26,pe,3,6,"td",11),g.BQk(),g.YNc(27,Se,1,0,"tr",17),g.YNc(28,nt,1,7,"tr",18),g.qZA(),g.qZA(),g.qZA(),g.YNc(29,Ve,3,3,"perun-web-apps-alert",19),g.YNc(30,X,3,3,"perun-web-apps-alert",19)),2&H&&(g.Q6J("hidden",!V.dataSource||0===V.dataSource.filteredData.length||0===V.facilities.length),g.xp6(1),g.Q6J("tableId",V.tableId)("dataLength",V.dataSource.filteredData.length)("pageSizeOptions",V.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",V.dataSource),g.xp6(25),g.Q6J("matHeaderRowDef",V.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",V.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===V.dataSource.filteredData.length&&0!==V.facilities.length),g.xp6(1),g.Q6J("ngIf",0===V.facilities.length))},directives:[A.l,b.BZ,e.YE,b.w1,b.fO,b.ge,b.Dz,b.ev,E.oG,e.nU,C.W,Me,b.as,b.XQ,b.nj,b.Gk,oe.YH,Re.rH,P.O5,T.w],pipes:[j.X$,Y.J,q],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),Q})()},13449:($e,_e,p)=>{"use strict";p.d(_e,{i:()=>T});var e=p(5e3),b=p(36908),_=p(69808),w=p(47423),g=p(69287),A=p(29772),E=p(25245),C=p(92181),I=p(51062),P=p(45942),m=p(29218),L=p(28764);function O(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).onSyncDetail()}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&j){const q=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,q.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,q.group)),e.xp6(2),e.Tol(e.lcZ(6,13,q.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,q.group)," ")}}function G(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).onMoveGroup()}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA(),e.qZA(),e.qZA()}if(2&j){const q=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",q.disabled)}}function ne(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).onChangeNameDescription()}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA(),e.qZA(),e.qZA()}if(2&j){const q=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",q.disabled)}}function ge(j,Y){if(1&j&&(e.TgZ(0,"div",2),e.TgZ(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA(),e.qZA(),e.YNc(5,O,9,17,"span",4),e.YNc(6,G,5,5,"span",4),e.YNc(7,ne,5,5,"span",4),e.qZA()),2&j){const q=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",q.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",q.syncAuth),e.xp6(1),e.Q6J("ngIf",q.moveAuth),e.xp6(1),e.Q6J("ngIf",q.editAuth)}}function J(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).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(),e.qZA()}if(2&j){const q=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,q.group)),e.xp6(2),e.Tol(e.lcZ(3,8,q.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,q.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,q.group)))}}function Me(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).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(),e.qZA()}if(2&j){const q=e.oxw(2);e.Q6J("disabled",q.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function oe(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).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(),e.qZA()}if(2&j){const q=e.oxw(2);e.Q6J("disabled",q.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function Re(j,Y){if(1&j&&(e.TgZ(0,"div"),e.TgZ(1,"button",7),e.TgZ(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA(),e.qZA(),e.TgZ(4,"mat-menu",null,8),e.TgZ(6,"button",9),e.TgZ(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.qZA(),e.YNc(12,J,10,16,"button",10),e.YNc(13,Me,6,4,"button",10),e.YNc(14,oe,6,4,"button",10),e.qZA(),e.qZA()),2&j){const q=e.MAs(5),te=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",q),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 j{constructor(q){this.authResolver=q,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 j.\u0275fac=function(q){return new(q||j)(e.Y36(b.x4))},j.\u0275cmp=e.Xpm({type:j,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(q,te){1&q&&(e.YNc(0,ge,8,8,"div",0),e.YNc(1,Re,15,8,"div",1)),2&q&&(e.Q6J("ngIf",te.displayButtons),e.xp6(1),e.Q6J("ngIf",!te.displayButtons))},directives:[_.O5,w.lW,g.i3,A.gM,E.Hw,C.p6,C.VK,C.OP],pipes:[I.X$,P.r,m.J,L.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),j})()},8223:($e,_e,p)=>{"use strict";p.d(_e,{x:()=>O});var e=p(5e3),b=p(9244),_=p(16074),w=p(48966),g=p(69808),A=p(29772),E=p(25245),C=p(51062);function I(G,ne){if(1&G){const ge=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(ge),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA(),e.qZA()}2&G&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function P(G,ne){if(1&G){const ge=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(ge),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA(),e.qZA()}2&G&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function m(G,ne){if(1&G){const ge=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(ge),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA(),e.qZA()}if(2&G){const ge=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",ge.failureCause,"")}}function L(G,ne){1&G&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA(),e.qZA()),2&G&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let O=(()=>{class G{constructor(ge){this.dialog=ge,this.status="",this.statusChange=new e.vpe}changeStatus(){const ge=(0,b.kZ)();ge.width="500px",ge.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(_.Qu,ge).afterClosed().subscribe(Me=>{Me&&this.statusChange.emit()})}}return G.\u0275fac=function(ge){return new(ge||G)(e.Y36(w.uw))},G.\u0275cmp=e.Xpm({type:G,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",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(ge,J){1&ge&&(e.TgZ(0,"div",0),e.YNc(1,I,4,3,"span",1),e.YNc(2,P,4,3,"span",1),e.YNc(3,m,4,4,"span",1),e.YNc(4,L,4,3,"span",2),e.qZA()),2&ge&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===J.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===J.status),e.xp6(1),e.Q6J("ngIf","FAILED"===J.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===J.status))},directives:[g.O5,A.gM,E.Hw],pipes:[C.X$],styles:[""]}),G})()},82322:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=C=>C.name}ngOnInit(){this.groups=this.groups.sort(b.aC)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,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(C,I){if(1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return I.groupSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C){let P;e.Q6J("entities",I.groups)("entity",null!==(P=I.firstSelectedGroup)&&void 0!==P?P:null)("displayStatus",I.displayStatus)("disableAutoSelect",I.disableAutoSelect)("mainTextFunction",I.nameFunction)("searchFunction",I.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"))}},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},24179:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>i});var e=p(5e3),b=p(16074),_=p(32105),w=p(36908),g=p(9244),A=p(84847),E=p(32075),C=p(20449),I=p(69808),P=p(48966),m=p(18750),L=p(77446),O=p(29772),G=p(10441),ne=p(25245),ge=p(8223),J=p(47423),Me=p(13449),oe=p(50301),Re=p(98380),T=p(51062),j=p(69773),Y=p(21757),q=p(62383);let te=(()=>{class o{transform(l){var s;const r=l.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return null!==(s=null==r?void 0:r.value)&&void 0!==s?s:"Never"}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275pipe=e.Yjl({name:"groupExpiration",type:o,pure:!0}),o})();function ue(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"mat-checkbox",26),e.NdJ("change",function(r){e.CHM(l);const t=e.oxw(2);return r?t.masterToggle():null}),e.qZA()}if(2&o){const l=e.oxw(2);e.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function de(o,d){if(1&o&&(e.TgZ(0,"th",24),e.YNc(1,ue,1,3,"mat-checkbox",25),e.qZA()),2&o){const l=e.oxw();e.xp6(1),e.Q6J("ngIf",!l.disableHeadCheckbox)}}function Le(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"td",27),e.TgZ(1,"span",28),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",29),e.NdJ("change",function(r){const n=e.CHM(l).$implicit,a=e.oxw();return r?a.itemSelectionToggle(n):null})("click",function(r){return r.stopPropagation()}),e.qZA(),e.qZA(),e.qZA()}if(2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,s.getCheckboxTooltipMessage(l))),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!s.disableSelect(l)),e.xp6(2),e.Q2q("data-cy","",l.name,"-checkbox"),e.Q6J("aria-label",s.checkboxLabel(l))("checked",s.selection.isSelected(l))("disabled","members"===l.name&&s.disableMembers||s.disableSelect(l))}}function Ue(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function ze(o,d){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=d.$implicit;e.xp6(1),e.Oqu(l.id)}}function le(o,d){1&o&&e._UZ(0,"th",32)}function je(o,d){if(1&o&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-recently-viewed-icon",34),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("recentIds",s.recentIds)("id",l.id)}}function ye(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function Be(o,d){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.hij(" ",s.voNames.get(l.voId)," ")}}function W(o,d){1&o&&e._UZ(0,"th",32)}function R(o,d){1&o&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function me(o,d){1&o&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function be(o,d){if(1&o&&(e.TgZ(0,"td",33),e.YNc(1,R,3,3,"mat-icon",35),e.YNc(2,me,3,3,"mat-icon",35),e.qZA()),2&o){const l=d.$implicit;e.xp6(1),e.Q6J("ngIf",l.sourceGroupId&&!l.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",l.moreTypesOfAssignment)}}function Ie(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function pe(o,d){if(1&o&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&o){const l=d.$implicit;e.uIk("data-cy",l.name),e.xp6(1),e.hij(" ",l.name," ")}}function Se(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function Xe(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"td",37),e.TgZ(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){return e.CHM(l),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(l);const r=e.oxw();return r.disabledRouting=r.disableRouting})("statusChange",function(){return e.CHM(l),e.oxw().refreshTable.emit()}),e.qZA(),e.qZA()}if(2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",l.id)("resourceId",s.resourceId)("failureCause",l.failureCause)("status",l.status)}}function Je(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function nt(o,d){if(1&o&&(e.TgZ(0,"td",33),e.TgZ(1,"i",39),e.ALo(2,"memberStatusIconColor"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,s.getStatusAttribute(l)),""),e.s9C("matTooltip",s.getStatusAttribute(l)),e.xp6(3),e.hij(" ",e.lcZ(5,7,s.getStatusAttribute(l))," ")}}function Ve(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function X(o,d){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&o){const l=d.$implicit;e.xp6(1),e.Oqu(l.description)}}function z(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function Q(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(l);const r=e.oxw().$implicit;return e.oxw().changeExpiration(r)})("mouseenter",function(){return e.CHM(l),e.oxw(2).disabledRouting=!0})("mouseleave",function(){e.CHM(l);const r=e.oxw(2);return r.disabledRouting=r.disableRouting}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA(),e.qZA()}}function D(o,d){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,Q,3,0,"button",40),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,l))," "),e.xp6(3),e.Q6J("ngIf",s.canManageGroup(l))}}function H(o,d){1&o&&e._UZ(0,"th",32)}function V(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"td",33),e.TgZ(1,"perun-web-apps-group-menu",42),e.NdJ("mouseenter",function(){return e.CHM(l),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(l);const r=e.oxw();return r.disabledRouting=r.disableRouting})("moveGroup",function(){const t=e.CHM(l).$implicit;return e.oxw().onMoveGroup(t)})("changeNameDescription",function(){const t=e.CHM(l).$implicit;return e.oxw().onChangeNameDescription(t)})("syncGroup",function(){const t=e.CHM(l).$implicit;return e.oxw().onSyncDetail(t)}),e.qZA(),e.qZA()}if(2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("disabled","members"===l.name)("displayButtons",s.displayButtons)("group",l)}}function xe(o,d){1&o&&e._UZ(0,"tr",43)}const Qe=function(o,d){return["/organizations",o,"groups",d]};function Te(o,d){if(1&o&&e._UZ(0,"tr",44),2&o){const l=d.$implicit,s=e.oxw();e.ekj("cursor-pointer",!s.disableRouting&&!s.groupsToDisableRouting.has(l.id))("disable-outline",s.disabledRouting||s.groupsToDisableRouting.has(l.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",s.disabledRouting||s.groupsToDisableRouting.has(l.id)?null:e.WLB(6,Qe,l.voId,l.id))("perunWebAppsForceRouterLink",s.disabledRouting||s.groupsToDisableRouting.has(l.id)?null:e.WLB(9,Qe,l.voId,l.id))}}function Ae(o,d){if(1&o&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o){const l=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,l.noGroupsAlert),"\n")}}function ae(o,d){1&o&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let i=(()=>{class o{constructor(l,s,r,t,n){this.dialog=l,this.authResolver=s,this.voService=r,this.tableCheckbox=t,this.changeDetector=n,this.theme="group-theme",this.moveGroup=new e.vpe,this.groups=[],this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.filter="",this.disableRouting=!1,this.pageSizeOptions=g.f7,this.recentIds=[],this.resourceId=null,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.refreshTable=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.hasMembersGroup=!1,this.getDataForColumnFun=(a,c)=>o.getDataForColumn(a,c,this.voNames),this.getSortDataForColumnFun=(a,c)=>o.getSortDataForColumn(a,c,this.voNames,this.recentIds),this.canBeSelected=a=>!("members"===a.name&&this.disableMembers||this.disableSelect(a))}set matSort(l){this.sort=l}static getDataForColumn(l,s,r){switch(s){case"id":return l.id.toString();case"vo":return r.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const t=(0,g.x2)(l);return(0,g.sG)(t)}case"recent":return"";case"status":return l.status;case"uuid":return l.uuid;default:return l[s]}}static getSortDataForColumn(l,s,r,t){switch(s){case"id":return l.id.toString();case"vo":return r.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const n=(0,g.x2)(l);return n&&"never"!==n.toLowerCase()?(0,I.p6)(n,"yyyy.MM.dd","en"):n}case"recent":return t&&t.includes(l.id)?"#".repeat(t.indexOf(l.id)):l.name;case"status":return l.status;default:return l[s]}}shouldHideButtons(){this.displayButtons=window.innerWidth>800}ngOnChanges(){this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}checkIfHasMembersGroup(){for(const l of this.groups)if("members"===l.name)return!0;return!1}exportData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new E.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,s)=>(0,g.Sd)(l,s,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(l,s)=>(0,g.pR)(l,s,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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),this.authType&&(this.removeAuth=this.setAuth())}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(l){return this.disableGroups&&(this.groupsToDisableCheckbox.has(l.id)||(0,g.bx)(l))}ngAfterViewInit(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.shouldHideButtons(),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l),this.changeDetector.detectChanges())}onMoveGroup(l){this.moveGroup.emit(l)}onSyncDetail(l){const s=(0,g.kZ)();s.data={groupId:l.id,theme:this.theme},this.dialog.open(b.Bp,s)}onChangeNameDescription(l){const s=(0,g.kZ)();s.data={theme:"group-theme",group:l,dialogType:b.Eg.GROUP},this.dialog.open(b.rd,s).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[s]),!0):"group-relations"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[this.parentGroup])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[s]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,s]),!0):"member-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[s]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,s]),!0):void 0}itemSelectionToggle(l){this.selection.toggle(l),this.removeAuth=this.setAuth()}getCheckboxTooltipMessage(l){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,g.bx)(l)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":l.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}updateVoNames(){this.displayedColumns.includes("vo")&&(this.groups.forEach(l=>{this.voIds.has(l.voId)||this.voIds.add(l.voId)}),this.voIds.size>0&&this.voService.getVosByIds([...this.voIds]).subscribe(l=>{l.forEach(s=>{this.voNames.set(s.id,s.name)})}))}changeExpiration(l){const s=l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName),r=(0,g.kZ)();r.width="400px",r.data={memberId:this.memberId,groupId:l.id,expirationAttr:s,mode:"group",status:this.memberGroupStatus},this.dialog.open(b.u3,r).afterClosed().subscribe(n=>{n.success&&this.refreshTable.emit()})}canManageGroup(l){return this.authResolver.isThisGroupAdmin(l.id)||this.authResolver.isThisVoAdmin(l.voId)}getStatusAttribute(l){const s=l.attributes.find(r=>"groupStatus"===r.baseFriendlyName);return(null==s?void 0:s.value)?s.value:""}}return o.\u0275fac=function(l){return new(l||o)(e.Y36(P.uw),e.Y36(w.x4),e.Y36(_.YF),e.Y36(w.UA),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(l,s){if(1&l&&(e.Gf(g.l9,7),e.Gf(A.YE,7)),2&l){let r;e.iGM(r=e.CRH())&&(s.child=r.first),e.iGM(r=e.CRH())&&(s.matSort=r.first)}},hostBindings:function(l,s){1&l&&e.NdJ("resize",function(t){return s.shouldHideButtons(t)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",noGroupsAlert:"noGroupsAlert"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:40,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["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","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","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["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"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip"],["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","perunWebAppsForceRouterLink"],["alert_type","warn"]],template:function(l,s){1&l&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(t){return s.exportData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,de,2,1,"th",4),e.YNc(5,Le,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Ue,3,3,"th",7),e.YNc(8,ze,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,le,1,0,"th",10),e.YNc(11,je,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,ye,3,3,"th",7),e.YNc(14,Be,2,1,"td",8),e.BQk(),e.ynx(15,13),e.YNc(16,W,1,0,"th",10),e.YNc(17,be,3,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,Ie,3,3,"th",7),e.YNc(20,pe,2,2,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,Se,3,3,"th",7),e.YNc(23,Xe,2,5,"td",16),e.BQk(),e.ynx(24,17),e.YNc(25,Je,3,3,"th",7),e.YNc(26,nt,6,9,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,Ve,3,3,"th",7),e.YNc(29,X,2,1,"td",16),e.BQk(),e.ynx(30,19),e.YNc(31,z,3,3,"th",7),e.YNc(32,D,5,6,"td",16),e.BQk(),e.ynx(33,20),e.YNc(34,H,1,0,"th",10),e.YNc(35,V,2,3,"td",11),e.BQk(),e.YNc(36,xe,1,0,"tr",21),e.YNc(37,Te,1,12,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.YNc(38,Ae,3,3,"perun-web-apps-alert",23),e.YNc(39,ae,3,3,"perun-web-apps-alert",23)),2&l&&(e.Q6J("hidden",0===s.groups.length||!s.dataSource||0===s.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions)("tableId",s.tableId),e.xp6(1),e.Q6J("dataSource",s.dataSource),e.xp6(34),e.Q6J("matHeaderRowDef",s.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",s.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===s.groups.length),e.xp6(1),e.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.groups.length))},directives:[m.l,E.BZ,A.YE,E.w1,E.fO,E.ge,I.O5,L.oG,E.Dz,E.ev,O.gM,A.nU,G.W,ne.Hw,ge.x,J.lW,Me.i,E.as,E.XQ,E.nj,E.Gk,oe.YH,oe.Kd,Re.w],pipes:[T.X$,j.u,Y.f,q.M,te],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}"]}),o})()},58956:($e,_e,p)=>{"use strict";p.d(_e,{I:()=>Ue});var e=p(5e3),b=p(90149),_=p(28258),w=p(20449);class g{constructor(le){this.id=le.id,this.name=le.name,this.parentGroupId=le.parentGroupId,this.voId=le.voId,this.shortName=le.shortName,this.description=le.description,this.attributes=le.attributes,this.beanName=le.beanName}addChild(le){null==this.children?this.children=[le]:this.children.push(le)}}var A=p(9244),E=p(16074),C=p(36908),I=p(48966),P=p(69808),m=p(53435),L=p(77446),O=p(11735),G=p(47423),ne=p(25245),ge=p(29772),J=p(13449),Me=p(98380),oe=p(51062);const Re=["scrollViewport"];function T(ze,le){if(1&ze){const je=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(je);const Be=e.oxw().$implicit;return e.oxw(2).itemSelectionToggle(Be)}),e.qZA()}if(2&ze){const je=e.oxw().$implicit,ye=e.oxw(2);e.Q2q("data-cy","",je.name,"-checkbox"),e.Q6J("disabled","members"===je.fullName)("checked",ye.selection.isSelected(je))("indeterminate",ye.descendantsPartiallySelected(je))}}function j(ze,le){if(1&ze&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&ze){const je=e.oxw().$implicit,ye=e.oxw(2);e.xp6(1),e.hij(" ",ye.treeControl.isExpanded(je)?"expand_more":"chevron_right"," ")}}function Y(ze,le){if(1&ze&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&ze){const je=e.oxw().$implicit;e.xp6(1),e.hij(" #",je.id," ")}}const q=function(ze,le){return["/organizations",ze,"groups",le]};function te(ze,le){if(1&ze){const je=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,T,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){return e.CHM(je),e.oxw(2).disableRouting=!0})("mouseleave",function(){return e.CHM(je),e.oxw(2).disableRouting=!1})("click",function(){const W=e.CHM(je).$implicit;return e.oxw(2).treeControl.toggle(W)}),e.YNc(5,j,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11),e.TgZ(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,Y,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15),e.TgZ(12,"span",16),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",17),e.TgZ(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const W=e.CHM(je).$implicit;return e.oxw(2).onMoveGroup(W)})("syncGroup",function(){const W=e.CHM(je).$implicit;return e.oxw(2).onSyncDetail(W)})("changeNameDescription",function(){const W=e.CHM(je).$implicit;return e.oxw(2).onChangeNameDescription(W)}),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&ze){const je=le.$implicit,ye=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*je.level+"px"),e.xp6(1),e.Q6J("ngIf",!ye.hideCheckbox),e.xp6(1),e.Q6J("routerLink",ye.disableRouting?null:e.WLB(15,q,je.voId,je.id)),e.xp6(1),e.Q6J("disabled",!je.expandable),e.uIk("aria-label","toggle "+je.name),e.xp6(1),e.Q6J("ngIf",je.expandable),e.xp6(2),e.uIk("data-cy",je.name),e.xp6(1),e.hij(" ",je.name," "),e.xp6(1),e.Q6J("ngIf",ye.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",je.description),e.xp6(1),e.hij(" ",je.description," "),e.xp6(2),e.Q6J("disabled","members"===je.fullName)("displayButtons",ye.displayButtons)("group",je)}}const ue=function(ze){return{height:ze}};function de(ze,le){if(1&ze&&(e.TgZ(0,"div",2),e.TgZ(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,te,16,18,"ng-container",5),e.qZA(),e.qZA()),2&ze){const je=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,ue,je.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",je.dataSource)}}function Le(ze,le){1&ze&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Ue=(()=>{class ze{constructor(je,ye,Be){this.cd=je,this.dialog=ye,this.authResolver=Be,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new w.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new _.C2(W=>W.level,W=>W.expandable),this.hasChild=(W,R)=>R.expandable,this.getLevel=W=>W.level,this.transformer=(W,R)=>({expandable:!!W.children&&W.children.length>0,name:W.shortName,fullName:W.name,parentGroupId:W.parentGroupId,level:R,id:W.id,voId:W.voId,attributes:W.attributes,beanName:W.beanName,description:W.description}),this.treeFlattener=new b.JZ(this.transformer,W=>W.level,W=>W.expandable,W=>W.children),this.dataSource=new b.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(je=>{var ye,Be;return(null===(ye=je.name)||void 0===ye?void 0:ye.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(Be=je.description)||void 0===Be?void 0:Be.toLowerCase().includes(this.filterValue.toLowerCase()))||je.id.toString().includes(this.filterValue.toLowerCase())||je.uuid.toLowerCase().includes(this.filterValue.toLowerCase())});for(const je of this.filteredGroups)je.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,A.oU)(je.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(je){const ye=(0,A.kZ)();ye.data={groupId:je.id,theme:this.theme},this.dialog.open(E.Bp,ye)}onChangeNameDescription(je){const ye=(0,A.kZ)();ye.data={theme:"group-theme",group:je,dialogType:E.Eg.GROUP},this.dialog.open(E.rd,ye).afterClosed().subscribe(W=>{W&&this.refreshTable.emit()})}createGroupTrees(je){const ye=new Map;for(const R of je)ye.set(R.id,new g(R));const Be=new Set;ye.forEach((R,me,be)=>{const Ie=be.get(R.parentGroupId);void 0!==Ie&&(Ie.addChild(R),be.set(R.parentGroupId,Ie)),null!==R.parentGroupId&&void 0===Ie&&Be.add(R.id)});const W=[];ye.forEach(R=>{(null===R.parentGroupId||Be.has(R.id))&&W.push(R)}),this.dataSource.data=W,this.cd.detectChanges()}getParentNode(je){const ye=this.getLevel(je);if(ye<1)return null;for(let W=this.treeControl.dataNodes.indexOf(je)-1;W>=0;W--){const R=this.treeControl.dataNodes[W];if(this.getLevel(R)this.selection.isSelected(R));ye&&!W&&this.selection.deselect(je)}checkAllParentsSelection(je){let ye=this.getParentNode(je);for(;ye;)this.checkRootNodeSelection(ye),ye=this.getParentNode(ye);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(je){return this.treeControl.getDescendants(je).some(W=>this.selection.isSelected(W))&&!this.selection.isSelected(je)}itemSelectionToggle(je){this.selection.toggle(je);const ye=this.treeControl.getDescendants(je);this.selection.isSelected(je)?this.selection.select(...ye):this.selection.deselect(...ye),ye.every(Be=>this.selection.isSelected(Be)),this.checkAllParentsSelection(je)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(je,ye)=>je&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,ye]):(je,ye)=>je&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[ye]),!0)}onMoveGroup(je){this.moveGroup.emit(je)}getTreeViewHeight(){let je=0;this.scrollViewport&&(je=this.scrollViewport.getDataLength());let ye=48*je;return ye>672&&(ye=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(ye)+"px"}}return ze.\u0275fac=function(je){return new(je||ze)(e.Y36(e.sBO),e.Y36(I.uw),e.Y36(C.x4))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(je,ye){if(1&je&&e.Gf(Re,5),2&je){let Be;e.iGM(Be=e.CRH())&&(ye.scrollViewport=Be.first)}},hostBindings:function(je,ye){1&je&&e.NdJ("resize",function(W){return ye.shouldHideButtons(W)},!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"],["queryParamsHandling","merge",1,"group-item-content","text-format",3,"routerLink"],["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(je,ye){1&je&&(e.YNc(0,de,4,6,"div",0),e.YNc(1,Le,3,3,"perun-web-apps-alert",1)),2&je&&(e.Q6J("ngIf",0!==ye.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===ye.filteredGroups.length))},directives:[P.O5,m.N7,m.xd,P.PC,m.x0,L.oG,O.yS,G.lW,ne.Hw,ge.gM,J.i,Me.w],pipes:[oe.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}"]}),ze})()},52314:($e,_e,p)=>{"use strict";p.d(_e,{X:()=>O});var e=p(32105),b=p(36908),_=p(5e3),w=p(51062),g=p(69808),A=p(47423),E=p(92181),C=p(29772),I=p(25245);const P=function(G){return{color:G}};function m(G,ne){if(1&G&&(_.TgZ(0,"button",8),_.ALo(1,"translate"),_.TgZ(2,"mat-icon",4),_._uU(3," apps "),_.qZA(),_.qZA()),2&G){const ge=_.oxw(),J=_.MAs(2);_.Q6J("matMenuTriggerFor",J)("matTooltip",_.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),_.xp6(2),_.Q6J("ngStyle",_.VKq(5,P,ge.iconColor))}}function L(G,ne){if(1&G){const ge=_.EpF();_.TgZ(0,"button",2),_.NdJ("click",function(){return _.CHM(ge),_.oxw().onLogOut()}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&G&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"NAV.LOGOUT")," "))}let O=(()=>{class G{constructor(ge,J,Me,oe){this.authService=ge,this.authzResolverService=J,this.notificator=Me,this.translateService=oe}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return G.\u0275fac=function(ge){return new(ge||G)(_.Y36(b.e8),_.Y36(e.Ct),_.Y36(b.V6),_.Y36(w.sK))},G.\u0275cmp=_.Xpm({type:G,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(ge,J){if(1&ge&&(_.YNc(0,m,4,7,"button",0),_.TgZ(1,"mat-menu",null,1),_.TgZ(3,"button",2),_.NdJ("click",function(){return J.redirectToUrl()}),_.TgZ(4,"span"),_._uU(5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(6,"button",3),_.TgZ(7,"mat-icon",4),_._uU(8," person "),_.qZA(),_.TgZ(9,"span",5),_._uU(10),_.qZA(),_.qZA(),_.TgZ(11,"mat-menu",null,6),_.YNc(13,L,3,3,"button",7),_.qZA()),2&ge){const Me=_.MAs(12);_.Q6J("ngIf",J.url),_.xp6(5),_.Oqu(J.label),_.xp6(1),_.Q6J("matMenuTriggerFor",Me),_.xp6(1),_.Q6J("ngStyle",_.VKq(11,P,J.iconColor)),_.xp6(2),_.Q6J("ngStyle",_.VKq(13,P,J.textColor)),_.xp6(1),_.xDo(" ",J.user.titleBefore," ",J.user.firstName," ",J.user.middleName," ",J.user.lastName," ",J.user.titleAfter," "),_.xp6(3),_.Q6J("ngIf",J.logoutEnabled)}},directives:[g.O5,A.lW,E.p6,C.gM,I.Hw,g.PC,E.VK,E.OP],pipes:[w.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),G})()},7434:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>P});var e=p(5e3),b=p(93075),_=p(67322),w=p(69808),g=p(98833),A=p(50301),E=p(51062);function C(m,L){if(1&m&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&m){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}function I(m,L){if(1&m&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&m){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}let P=(()=>{class m{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new b.NI}ngOnInit(){this.formControl.valueChanges.subscribe(O=>{let G=O.trim();G=G.toLowerCase(),this.filter.emit(G)})}}return m.\u0275fac=function(O){return new(O||m)},m.\u0275cmp=e.Xpm({type:m,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(O,G){1&O&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,C,2,4,"input",1),e.YNc(2,I,2,4,"input",2),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",G.autoFocus),e.xp6(1),e.Q6J("ngIf",!G.autoFocus))},directives:[_.KE,w.O5,g.Nt,b.Fj,A.hT,b.JJ,b.oH],pipes:[E.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),m})()},1903:($e,_e,p)=>{"use strict";p.d(_e,{m:()=>Te});var e=p(84847),b=p(9244),_=p(16074),w=p(36908),g=p(36787),A=p(22868),E=p(5e3),C=p(48966),I=p(10036),P=p(18750),m=p(69808),L=p(20773),O=p(32075),G=p(77446),ne=p(29772),ge=p(25245),J=p(50301),Me=p(11735),oe=p(98380);let Re=(()=>{class Ae{transform(i){if("INDIRECT"===i.membershipType)return!0;const o=i.memberAttributes.find(d=>"isLifecycleAlterable"===d.friendlyName);return!!o&&!o.value}}return Ae.\u0275fac=function(i){return new(i||Ae)},Ae.\u0275pipe=E.Yjl({name:"memberListCheckboxDisabled",type:Ae,pure:!0}),Ae})();var T=p(51062);let j=(()=>{class Ae{constructor(i){this.translate=i}transform(i){if("INDIRECT"===i.membershipType)return this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT");const o=i.memberAttributes.find(d=>"isLifecycleAlterable"===d.friendlyName);return o?o.value?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE"):""}}return Ae.\u0275fac=function(i){return new(i||Ae)(E.Y36(T.sK,16))},Ae.\u0275pipe=E.Yjl({name:"memberCheckboxLabel",type:Ae,pure:!0}),Ae})();var Y=p(31359),q=p(69773),te=p(12856),ue=p(21757),de=p(96974),Le=p(20919),Ue=p(5865);function ze(Ae,ae){1&Ae&&(E.TgZ(0,"div",22),E._UZ(1,"mat-spinner",23),E.qZA())}function le(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"th",24),E.TgZ(1,"mat-checkbox",25),E.NdJ("change",function(d){E.CHM(i);const l=E.oxw();return d?l.masterToggle():null}),E.qZA(),E.qZA()}if(2&Ae){const i=E.oxw();E.xp6(1),E.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function je(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"td",26),E.TgZ(1,"mat-checkbox",27),E.NdJ("change",function(d){const s=E.CHM(i).$implicit,r=E.oxw();return d?r.selection.toggle(s):null})("click",function(d){return d.stopPropagation()}),E.ALo(2,"lowercase"),E.ALo(3,"memberListCheckboxDisabled"),E.ALo(4,"memberCheckboxLabel"),E.qZA(),E.qZA()}if(2&Ae){const i=ae.$implicit,o=E.oxw();E.xp6(1),E.Q2q("data-cy","",E.lcZ(2,5,i.user.firstName),"-checkbox"),E.Q6J("aria-label",o.checkboxLabel(i))("checked",o.selection.isSelected(i))("disabled",E.lcZ(3,7,i))("matTooltip",E.lcZ(4,9,i))}}function ye(Ae,ae){1&Ae&&(E.TgZ(0,"th",28),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.ID")))}function Be(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",29),E._uU(1),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(i.id)}}function W(Ae,ae){1&Ae&&E._UZ(0,"th",28)}function R(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"mat-icon",32),E.NdJ("click",function(d){E.CHM(i);const l=E.oxw().$implicit;return E.oxw().viewMemberGroupTree(d,l)}),E.ALo(1,"translate"),E._uU(2,"transfer_within_a_station"),E.qZA()}2&Ae&&E.Q6J("matTooltip",E.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function me(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E.YNc(1,R,3,3,"mat-icon",31),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Q6J("ngIf","DIRECT"!==i.membershipType)}}function be(Ae,ae){1&Ae&&(E.TgZ(0,"th",28),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function Ie(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i.user))}}function pe(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function Se(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"td",30),E.TgZ(1,"i",34),E.NdJ("click",function(d){const s=E.CHM(i).$implicit;return E.oxw().changeStatus(d,s)}),E.ALo(2,"memberStatusIconColor"),E.ALo(3,"memberStatusTooltip"),E.TgZ(4,"span"),E._uU(5),E.ALo(6,"memberStatusIcon"),E.qZA(),E.qZA(),E.qZA()}if(2&Ae){const i=ae.$implicit;E.xp6(1),E.Gre("material-icons ",E.lcZ(2,5,i.status),""),E.s9C("matTooltip",E.xi3(3,7,i,!1)),E.xp6(4),E.hij(" ",E.lcZ(6,10,i.status)," ")}}function Xe(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function Je(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"td",30),E.TgZ(1,"i",34),E.NdJ("click",function(d){const s=E.CHM(i).$implicit,r=E.oxw();return r.changeStatus(d,s,r.groupId)}),E.ALo(2,"memberStatusIconColor"),E.ALo(3,"memberStatusTooltip"),E.TgZ(4,"span"),E._uU(5),E.ALo(6,"memberStatusIcon"),E.qZA(),E.qZA(),E.qZA()}if(2&Ae){const i=ae.$implicit;E.xp6(1),E.Gre("material-icons ",E.lcZ(2,5,i.groupStatus),""),E.s9C("matTooltip",E.xi3(3,7,i,!0)),E.xp6(4),E.hij(" ",E.lcZ(6,10,i.groupStatus)," ")}}function nt(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Ve(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberOrganization"),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i))}}function X(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function z(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberEmail"),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i))}}function Q(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function D(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberLogins"),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i))}}function H(Ae,ae){1&Ae&&E._UZ(0,"tr",35)}const V=function(Ae,ae){return["/organizations",Ae,"members",ae]};function xe(Ae,ae){if(1&Ae&&E._UZ(0,"tr",36),2&Ae){const i=ae.$implicit,o=E.oxw();E.ekj("cursor-pointer",o.dataSource.routeAuth)("italic_font","INDIRECT"===i.membershipType)("disable-outline",!o.dataSource.routeAuth),E.Q6J("perunWebAppsMiddleClickRouterLink",o.dataSource.routeAuth?E.WLB(8,V,i.voId,i.id):null)("routerLink",o.dataSource.routeAuth?E.WLB(11,V,i.voId,i.id):null)}}function Qe(Ae,ae){1&Ae&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let Te=(()=>{class Ae{constructor(i,o,d,l,s){this.dialog=i,this.authResolver=o,this.tableCheckbox=d,this.tableConfigService=l,this.dynamicPaginatingService=s,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=b.f7,this.canBeSelected=r=>"INDIRECT"!==r.membershipType}static getExportDataForColumn(i,o){switch(o){case"id":return i.id.toString();case"fullName":return i.user?(0,b.bD)(i.user):"";case"status":return i.status;case"groupStatus":return i.groupStatus;case"organization":return(0,b.Gw)(i);case"email":return(0,b.g$)(i);case"logins":return(0,b.lt)(i);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(i=>"id"!==i)),this.dataSource=new w.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(i=>{this.canBeSelected(i)&&this.selection.select(i)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(d=>this.canBeSelected(d)).length}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(i,o,d){i.stopPropagation();const l=(0,b.kZ)();l.width="500px",l.data={member:o,voId:this.voId,groupId:d};const s=d?o.groupStatus:o.status;this.dialog.open(_.pf,l).afterClosed().subscribe(t=>{if(t){const n=d?t.groupStatus:t.status;"VALID"===s&&("EXPIRED"===n||"DISABLED"===n)||"VALID"===n?(d?o.groupStatus=n:o.status=n,this.changeExpiration(o,d)):this.loadMembersPage()}})}changeExpiration(i,o){const d=i.memberAttributes.find(o?r=>"groupMembershipExpiration"===r.friendlyName:r=>"membershipExpiration"===r.friendlyName),l=(0,b.kZ)();let s;l.width="400px",l.data={voId:this.voId,groupId:o,memberId:i.id,expirationAttr:d,status:o?i.groupStatus:i.status,statusChanged:!0},s=this.dialog.open(o?_.u3:_.kZ,l),s.afterClosed().subscribe(()=>{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)}exportData(i){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,Ae.getExportDataForColumn),i)}viewMemberGroupTree(i,o){i.stopPropagation();const d=(0,b.kZ)();d.width="800px",d.data={member:o,groupId:this.groupId},this.dialog.open(_.jd,d)}}return Ae.\u0275fac=function(i){return new(i||Ae)(E.Y36(C.uw),E.Y36(w.x4),E.Y36(w.UA),E.Y36(I.dB),E.Y36(w.ly))},Ae.\u0275cmp=E.Xpm({type:Ae,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(i,o){if(1&i&&(E.Gf(b.l9,7),E.Gf(e.YE,5)),2&i){let d;E.iGM(d=E.CRH())&&(o.child=d.first),E.iGM(d=E.CRH())&&(o.sort=d.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable"},features:[E.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","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","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"],["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","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(i,o){1&i&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(l){return o.exportData(l)}),E.YNc(3,ze,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,le,2,3,"th",5),E.YNc(8,je,5,11,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,ye,3,3,"th",8),E.YNc(11,Be,2,1,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,W,1,0,"th",8),E.YNc(14,me,2,1,"td",11),E.BQk(),E.ynx(15,12),E.YNc(16,be,3,3,"th",8),E.YNc(17,Ie,3,3,"td",11),E.BQk(),E.ynx(18,13),E.YNc(19,pe,3,3,"th",14),E.YNc(20,Se,7,12,"td",11),E.BQk(),E.ynx(21,15),E.YNc(22,Xe,3,3,"th",14),E.YNc(23,Je,7,12,"td",11),E.BQk(),E.ynx(24,16),E.YNc(25,nt,3,3,"th",14),E.YNc(26,Ve,3,3,"td",11),E.BQk(),E.ynx(27,17),E.YNc(28,X,3,3,"th",14),E.YNc(29,z,3,3,"td",11),E.BQk(),E.ynx(30,18),E.YNc(31,Q,3,3,"th",14),E.YNc(32,D,3,3,"td",11),E.BQk(),E.YNc(33,H,1,0,"tr",19),E.YNc(34,xe,1,14,"tr",20),E.qZA(),E.qZA(),E.qZA(),E.YNc(35,Qe,3,3,"perun-web-apps-alert",21),E.ALo(36,"async")),2&i&&(E.Q6J("hidden",0===o.dataSource.allObjectCount&&!1===E.lcZ(1,9,o.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",o.tableId)("dataLength",o.dataSource.allObjectCount)("pageSizeOptions",o.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,o.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",o.dataSource),E.xp6(28),E.Q6J("matHeaderRowDef",o.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",o.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===o.dataSource.allObjectCount&&!1===E.lcZ(36,13,o.dataSource.loading$)))},directives:[P.l,m.O5,L.$g,O.BZ,e.YE,O.w1,O.fO,O.ge,G.oG,O.Dz,O.ev,ne.gM,e.nU,ge.Hw,O.as,O.XQ,O.nj,O.Gk,J.YH,Me.rH,oe.w],pipes:[m.Ov,m.i8,Re,j,T.X$,Y.d,q.u,te.i,ue.f,de.M,Le.D,Ue.p],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ae})()},38383:($e,_e,p)=>{"use strict";p.d(_e,{O:()=>ae});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(16074),E=p(36908),C=p(48966),I=p(11735),P=p(18750),m=p(77446),L=p(29772),O=p(69808),G=p(25245),ne=p(50301),ge=p(98380),J=p(51062),Me=p(31359),oe=p(69773),Re=p(12856),T=p(21757),j=p(96974),Y=p(20919),q=p(5865);function te(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"th",26),e.TgZ(1,"mat-checkbox",27),e.NdJ("change",function(s){e.CHM(d);const r=e.oxw();return s?r.masterToggle():null}),e.qZA(),e.qZA()}if(2&i){const d=e.oxw();e.xp6(1),e.Q6J("aria-label",d.checkboxLabel())("checked",d.selection.hasValue()&&d.isAllSelected())("indeterminate",d.selection.hasValue()&&!d.isAllSelected())}}function ue(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"td",28),e.TgZ(1,"mat-checkbox",29),e.NdJ("change",function(s){const t=e.CHM(d).$implicit,n=e.oxw();return s?n.selection.toggle(t):null})("click",function(s){return s.stopPropagation()}),e.ALo(2,"translate"),e.qZA(),e.qZA()}if(2&i){const d=o.$implicit,l=e.oxw();e.xp6(1),e.Q6J("aria-label",l.checkboxLabel(d))("checked",l.selection.isSelected(d))("disabled","DIRECT"!==d.membershipType)("matTooltip","DIRECT"!==d.membershipType?e.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function de(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function Le(i,o){if(1&i&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(d.id)}}function Ue(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function ze(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(d.voId)}}function le(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function je(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(d.userId)}}function ye(i,o){1&i&&e._UZ(0,"th",30)}function Be(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"mat-icon",34),e.NdJ("click",function(){e.CHM(d);const s=e.oxw().$implicit;return e.oxw().viewMemberGroupTree(s)})("mouseenter",function(){return e.CHM(d),e.oxw(2).disableRouting=!0})("mouseleave",function(){e.CHM(d);const s=e.oxw(2);return s.disableRouting=s.disabledRouting}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&i&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function W(i,o){if(1&i&&(e.TgZ(0,"td",32),e.YNc(1,Be,3,3,"mat-icon",33),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==d.membershipType)}}function R(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function me(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d.user))}}function be(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function Ie(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"i",35),e.NdJ("click",function(s){const t=e.CHM(d).$implicit;return e.oxw().changeStatus(s,t)}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const d=o.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.status),""),e.s9C("matTooltip",e.xi3(3,7,d,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.status)," ")}}function pe(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Se(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"i",35),e.NdJ("click",function(s){const t=e.CHM(d).$implicit;return e.oxw().changeStatus(s,t)}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const d=o.$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 Xe(i,o){1&i&&(e.TgZ(0,"th",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function Je(i,o){1&i&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function nt(i,o){if(1&i&&(e.TgZ(0,"td",37),e.YNc(1,Je,2,0,"mat-icon",38),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Q6J("ngIf",d.sponsored)}}function Ve(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function X(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function z(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function Q(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function D(i,o){1&i&&(e.TgZ(0,"th",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function H(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function V(i,o){1&i&&e._UZ(0,"tr",40)}const xe=function(i,o){return["/organizations",i,"members",o]};function Qe(i,o){if(1&i&&e._UZ(0,"tr",41),2&i){const d=o.$implicit,l=e.oxw();e.ekj("cursor-pointer",!l.disabledRouting)("disable-outline",l.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",l.disableRouting?null:e.WLB(6,xe,d.voId,d.id))("routerLink",l.disableRouting?null:e.WLB(9,xe,d.voId,d.id))}}function Te(i,o){1&i&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ae(i,o){1&i&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let ae=(()=>{class i{constructor(d,l,s,r){this.dialog=d,this.authResolver=l,this.tableCheckbox=s,this.route=r,this.selection=new w.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=g.f7,this.getExportDataForColumnFun=(t,n)=>i.getExportDataForColumn(t,n,this.showGroupStatuses),this.getSortDataForColumnFun=(t,n)=>i.getSortDataForColumn(t,n,this.showGroupStatuses),this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(d){this.sort=d}static getFilterDataForColumn(d,l){switch(l){case"fullName":return d.user?(0,g.bD)(d.user):"";case"email":return(0,g.g$)(d);case"logins":return(0,g.lt)(d);default:return""}}static getExportDataForColumn(d,l,s){switch(l){case"id":return d.id.toString();case"fullName":return d.user?(0,g.bD)(d.user):"";case"status":return s?d.groupStatus:d.status;case"organization":return(0,g.Gw)(d);case"email":return(0,g.g$)(d);case"logins":return(0,g.lt)(d);default:return""}}static getSortDataForColumn(d,l,s){var r;switch(l){case"id":return d.id.toString();case"fullName":return d.user?d.user.lastName?d.user.lastName:null!==(r=d.user.firstName)&&void 0!==r?r:"":"";case"status":return s?d.groupStatus:d.status;case"organization":return(0,g.Gw)(d);case"email":return(0,g.g$)(d);default:return""}}exportData(d){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),d)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(d,l)=>(0,g.Sd)(d,l,this.displayedColumns,i.getFilterDataForColumn),this.dataSource.sortData=(d,l)=>(0,g.pR)(d,l,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(){var d;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(d=this.route.parent)||void 0===d||d.params.subscribe(l=>{l.groupId&&(this.groupId=Number(l.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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)}checkboxLabel(d){return d?`${this.selection.isSelected(d)?"deselect":"select"} row ${d.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(d,l){if(d.stopPropagation(),!this.disableStatusChange){const s=(0,g.kZ)();s.width="500px",s.data={member:l,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(A.pf,s).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}viewMemberGroupTree(d){const l=(0,g.kZ)();l.width="800px",l.data={member:d,groupId:this.groupId},this.dialog.open(A.jd,l)}}return i.\u0275fac=function(d){return new(d||i)(e.Y36(C.uw),e.Y36(E.x4),e.Y36(E.UA),e.Y36(I.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["perun-web-apps-members-list"]],viewQuery:function(d,l){if(1&d&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&d){let s;e.iGM(s=e.CRH())&&(l.child=s.first),e.iGM(s=e.CRH())&&(l.matSort=s.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","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","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"],["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","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,l){1&d&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(r){return l.exportData(r)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,te,2,3,"th",4),e.YNc(5,ue,3,6,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,de,3,3,"th",7),e.YNc(8,Le,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Ue,3,3,"th",7),e.YNc(11,ze,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,le,3,3,"th",7),e.YNc(14,je,2,1,"td",10),e.BQk(),e.ynx(15,12),e.YNc(16,ye,1,0,"th",7),e.YNc(17,W,2,1,"td",10),e.BQk(),e.ynx(18,13),e.YNc(19,R,3,3,"th",7),e.YNc(20,me,3,3,"td",10),e.BQk(),e.ynx(21,14),e.YNc(22,be,3,3,"th",7),e.YNc(23,Ie,7,12,"td",10),e.BQk(),e.ynx(24,15),e.YNc(25,pe,3,3,"th",7),e.YNc(26,Se,7,12,"td",10),e.BQk(),e.ynx(27,16),e.YNc(28,Xe,3,3,"th",17),e.YNc(29,nt,2,1,"td",18),e.BQk(),e.ynx(30,19),e.YNc(31,Ve,3,3,"th",7),e.YNc(32,X,3,3,"td",10),e.BQk(),e.ynx(33,20),e.YNc(34,z,3,3,"th",7),e.YNc(35,Q,3,3,"td",10),e.BQk(),e.ynx(36,21),e.YNc(37,D,3,3,"th",22),e.YNc(38,H,3,3,"td",10),e.BQk(),e.YNc(39,V,1,0,"tr",23),e.YNc(40,Qe,1,12,"tr",24),e.qZA(),e.qZA(),e.qZA(),e.YNc(41,Te,3,3,"perun-web-apps-alert",25),e.YNc(42,Ae,3,3,"perun-web-apps-alert",25)),2&d&&(e.Q6J("hidden",0===l.members.length||!l.dataSource||0===l.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",l.dataSource.filteredData.length)("tableId",l.tableId)("pageSizeOptions",l.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",l.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",l.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",l.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==l.members.length&&0===l.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===l.members.length))},directives:[P.l,_.BZ,b.YE,_.w1,_.fO,_.ge,m.oG,_.Dz,_.ev,L.gM,b.nU,O.O5,G.Hw,_.as,_.XQ,_.nj,_.Gk,ne.YH,I.rH,ge.w],pipes:[J.X$,Me.d,oe.u,Re.i,T.f,j.M,Y.D,q.p],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}"]}),i})()},22465:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>m});var e=p(5e3),b=p(36908),_=p(9244),w=p(16074),g=p(48966),A=p(69808),E=p(25245),C=p(51062);function I(L,O){if(1&L&&(e.TgZ(0,"div",5),e.TgZ(1,"mat-icon"),e._uU(2),e.qZA(),e.qZA()),2&L){const G=e.oxw();e.xp6(2),e.Oqu(G.data.icon)}}function P(L,O){if(1&L&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&L){const G=e.oxw();e.xp6(1),e.hij(" ",G.showTimestamp()," ")}}let m=(()=>{class L{constructor(G,ne){this.dialog=G,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 G=(0,_.kZ)();G.width="550px",G.data=this.data,G.autoFocus=!1,this.dialog.open(w.FM,G).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,_.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[G,ne]=this.data.timeStamp.split(":");return ne.length<2?G+":0"+ne:this.data.timeStamp}}return L.\u0275fac=function(G){return new(G||L)(e.Y36(g.uw),e.Y36(b.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"],[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(G,ne){1&G&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.NdJ("click",function(){return ne.alreadyClosed||ne.waiting?"":ne.closeSelf()}),e.YNc(2,I,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,P,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return ne.waiting=!0,ne.doAction()}),e._uU(8),e.qZA(),e.qZA(),e.qZA()),2&G&&(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," "))},directives:[A.O5,E.Hw],pipes:[C.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})()},41619:($e,_e,p)=>{"use strict";p.d(_e,{$:()=>ye});var e=p(36908),b=p(32105),_=p(5e3),w=p(48966),g=p(51062),A=p(67322),E=p(98833),C=p(93075),I=p(69808),P=p(47423);function m(Be,W){1&Be&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&Be&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let L=(()=>{class Be{constructor(R,me,be,Ie,pe){this.dialogRef=R,this.translate=me,this.notificator=be,this.rtMessages=Ie,this.storeService=pe,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(R=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(R.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 Be.\u0275fac=function(R){return new(R||Be)(_.Y36(w.so),_.Y36(g.sK),_.Y36(e.V6),_.Y36(b.Hr),_.Y36(e.d6))},Be.\u0275cmp=_.Xpm({type:Be,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(R,me){if(1&R&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_.TgZ(4,"mat-form-field"),_.TgZ(5,"mat-label"),_._uU(6),_.ALo(7,"translate"),_.qZA(),_.TgZ(8,"input",2,3),_.NdJ("ngModelChange",function(Ie){return me.subject=Ie}),_.qZA(),_.YNc(10,m,3,3,"mat-error",4),_.qZA(),_.TgZ(11,"mat-form-field"),_.TgZ(12,"mat-label"),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.TgZ(15,"textarea",5),_.NdJ("ngModelChange",function(Ie){return me.message=Ie}),_.ALo(16,"translate"),_._uU(17," "),_.qZA(),_.TgZ(18,"mat-hint"),_._uU(19),_.ALo(20,"translate"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(21,"div",6),_.TgZ(22,"div",7),_.TgZ(23,"button",8),_.NdJ("click",function(){return me.close()}),_._uU(24),_.ALo(25,"translate"),_.qZA(),_.TgZ(26,"button",9),_.NdJ("click",function(){return me.sendBugReport()}),_._uU(27),_.ALo(28,"translate"),_.qZA(),_.qZA(),_.qZA()),2&R){const be=_.MAs(9);_.xp6(1),_.Oqu(_.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),_.xp6(5),_.Oqu(_.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),_.xp6(2),_.Q6J("ngModel",me.subject),_.xp6(2),_.Q6J("ngIf",be.invalid),_.xp6(3),_.Oqu(_.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),_.xp6(2),_.s9C("placeholder",_.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),_.Q6J("ngModel",me.message),_.xp6(4),_.Oqu(_.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),_.xp6(5),_.hij(" ",_.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),_.xp6(2),_.Q6J("disabled",be.invalid),_.xp6(1),_.hij(" ",_.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[w.uh,w.xY,A.KE,A.hX,E.Nt,C.Fj,C.Q7,C.JJ,C.On,I.O5,A.TO,A.bx,w.H8,P.lW],pipes:[g.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Be})();var O=p(9244);let G=(()=>{class Be{transform(R,me,be){return R[`${be}_${me}`]}}return Be.\u0275fac=function(R){return new(R||Be)},Be.\u0275pipe=_.Yjl({name:"localisedText",type:Be,pure:!0}),Be})(),ne=(()=>{class Be{transform(R,me){return R["link_"+me]||R.link_en}}return Be.\u0275fac=function(R){return new(R||Be)},Be.\u0275pipe=_.Yjl({name:"localisedLink",type:Be,pure:!0}),Be})(),ge=(()=>{class Be{transform(R){return R.includes("/")?R:"/assets/config/"+R}}return Be.\u0275fac=function(R){return new(R||Be)},Be.\u0275pipe=_.Yjl({name:"footerLogoPath",type:Be,pure:!0}),Be})();function J(Be,W){if(1&Be&&(_.TgZ(0,"a",13),_.ALo(1,"localisedLink"),_._UZ(2,"img",14),_.ALo(3,"footerLogoPath"),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("href",_.xi3(1,2,R,me.language),_.LSH),_.xp6(2),_.s9C("src",_.lcZ(3,5,R.logo),_.LSH)}}function Me(Be,W){if(1&Be&&(_.TgZ(0,"span"),_._UZ(1,"img",14),_.ALo(2,"footerLogoPath"),_.qZA()),2&Be){const R=_.oxw().$implicit;_.xp6(1),_.s9C("src",_.lcZ(2,1,R.logo),_.LSH)}}function oe(Be,W){if(1&Be&&(_.TgZ(0,"div"),_.YNc(1,J,4,7,"a",11),_.ALo(2,"localisedLink"),_.YNc(3,Me,3,3,"span",12),_.ALo(4,"localisedLink"),_.qZA()),2&Be){const R=W.$implicit,me=_.oxw(3);_.xp6(1),_.Q6J("ngIf",_.xi3(2,2,R,me.language)),_.xp6(2),_.Q6J("ngIf",!_.xi3(4,5,R,me.language))}}const Re=function(Be){return{"min-height":Be}};function T(Be,W){if(1&Be&&(_.TgZ(0,"div",10),_.YNc(1,oe,5,8,"div",5),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw();_.Q6J("ngStyle",_.VKq(2,Re,me.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",R.elements)}}const j=function(Be){return{color:Be}};function Y(Be,W){if(1&Be&&(_.TgZ(0,"i",20),_._uU(1),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("ngStyle",_.VKq(2,j,me.linksTextColor)),_.xp6(1),_.hij(" ",R.icon," ")}}function q(Be,W){if(1&Be){const R=_.EpF();_.TgZ(0,"span",21),_.NdJ("click",function(){_.CHM(R);const be=_.oxw().$implicit;return _.oxw(3).openDialog(be.dialog)}),_._uU(1),_.ALo(2,"localisedText"),_.qZA()}if(2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,j,me.linksTextColor)),_.xp6(1),_.hij("",_.Dn7(2,2,R,me.language,"label")," ")}}function te(Be,W){if(1&Be&&(_.TgZ(0,"a",22),_.ALo(1,"localisedLink"),_._uU(2),_.ALo(3,"localisedText"),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("href",_.xi3(1,3,R,me.language),_.LSH)("ngStyle",_.VKq(10,j,me.linksTextColor)),_.xp6(2),_.Oqu(_.Dn7(3,6,R,me.language,"label"))}}function ue(Be,W){if(1&Be&&(_.TgZ(0,"span",10),_._uU(1),_.ALo(2,"localisedText"),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,j,me.linksTextColor)),_.xp6(1),_.Oqu(_.Dn7(2,2,R,me.language,"label"))}}function de(Be,W){if(1&Be&&(_.TgZ(0,"div",16),_.YNc(1,Y,2,4,"i",17),_.YNc(2,q,3,8,"span",18),_.YNc(3,te,4,12,"a",19),_.ALo(4,"localisedLink"),_.YNc(5,ue,3,8,"span",9),_.ALo(6,"localisedLink"),_.qZA()),2&Be){const R=W.$implicit,me=_.oxw(3);_.xp6(1),_.Q6J("ngIf",R.icon),_.xp6(1),_.Q6J("ngIf",R.dialog),_.xp6(1),_.Q6J("ngIf",_.xi3(4,4,R,me.language)&&!R.dialog),_.xp6(2),_.Q6J("ngIf",!_.xi3(6,7,R,me.language)&&!R.dialog)}}const Le=function(Be){return{height:Be}};function Ue(Be,W){if(1&Be&&(_.TgZ(0,"div",10),_.YNc(1,de,7,10,"div",15),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw();_.Q6J("ngStyle",_.VKq(2,Le,me.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",R.elements)}}function ze(Be,W){if(1&Be&&(_.TgZ(0,"div",7),_.TgZ(1,"h6",8),_._uU(2),_.ALo(3,"localisedText"),_.qZA(),_.YNc(4,T,2,4,"div",9),_.YNc(5,Ue,2,4,"div",9),_.qZA()),2&Be){const R=W.$implicit,me=_.oxw();_.ekj("my-auto",me.containsLogos),_.xp6(1),_.Q6J("ngStyle",_.VKq(10,j,me.headersTextColor)),_.xp6(1),_.hij(" ",_.Dn7(3,6,R,me.language,"title")," "),_.xp6(2),_.Q6J("ngIf",R.logos),_.xp6(1),_.Q6J("ngIf",R.elements&&!R.logos)}}function le(Be,W){if(1&Be&&(_.TgZ(0,"span"),_.TgZ(1,"a",6),_._uU(2),_.qZA(),_.qZA()),2&Be){const R=W.$implicit,me=W.index,be=_.oxw();_.xp6(1),_.Q6J("href",R.url,_.LSH)("ngStyle",_.VKq(3,j,be.copyrightTextColor)),_.xp6(1),_.Oqu(me?", "+R.name:R.name)}}const je=function(Be){return{background:Be}};let ye=(()=>{class Be{constructor(R,me,be){this.storeService=R,this.translateService=me,this.dialog=be,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(R=>{this.language=R.lang}),this.version=p(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const R of this.footerColumns)R.logos?this.containsLogos=!0:25*R.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*R.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(R){const me=(0,O.kZ)();"reportIssue"===R&&(me.width="550px",this.dialog.open(L,me))}}return Be.\u0275fac=function(R){return new(R||Be)(_.Y36(e.d6),_.Y36(g.sK),_.Y36(w.uw))},Be.\u0275cmp=_.Xpm({type:Be,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,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(R,me){1&R&&(_.TgZ(0,"footer",0),_.TgZ(1,"div",1),_.YNc(2,ze,6,12,"div",2),_.qZA(),_._UZ(3,"hr",3),_.TgZ(4,"div",4),_._uU(5),_.YNc(6,le,3,5,"span",5),_._uU(7," Version "),_.TgZ(8,"a",6),_._uU(9),_.qZA(),_.qZA(),_.qZA()),2&R&&(_.Q6J("ngStyle",_.VKq(8,je,me.bgColor)),_.xp6(2),_.Q6J("ngForOf",me.footerColumns),_.xp6(2),_.Q6J("ngStyle",_.VKq(10,j,me.copyrightTextColor)),_.xp6(1),_.hij(" \xa9 ",me.currentYear," Copyright: "),_.xp6(1),_.Q6J("ngForOf",me.copyrightItems),_.xp6(2),_.Q6J("href",me.githubRepository,_.LSH)("ngStyle",_.VKq(12,j,me.copyrightTextColor)),_.xp6(1),_.Oqu(me.version))},directives:[I.PC,I.sg,I.O5],pipes:[G,ne,ge],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:-webkit-fit-content;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:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),Be})()},10441:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>E});var e=p(5e3),b=p(69808),_=p(25245),w=p(29772),g=p(51062);function A(C,I){1&C&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&C&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let E=(()=>{class C{constructor(){this.recentIds=[]}}return C.\u0275fac=function(P){return new(P||C)},C.\u0275cmp=e.Xpm({type:C,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(P,m){1&P&&e.YNc(0,A,3,3,"mat-icon",0),2&P&&e.Q6J("ngIf",m.recentIds.indexOf(m.id)>-1)},directives:[b.O5,_.Hw,w.gM],pipes:[g.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),C})()},96214:($e,_e,p)=>{"use strict";p.d(_e,{t:()=>A});var e=p(5e3),b=p(47423),_=p(29772),w=p(25245),g=p(51062);let A=(()=>{class E{constructor(){this.refresh=new e.vpe}onClickbutton(I){this.refresh.emit(I)}}return E.\u0275fac=function(I){return new(I||E)},E.\u0275cmp=e.Xpm({type:E,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(I,P){1&I&&(e.TgZ(0,"button",0),e.NdJ("click",function(L){return P.onClickbutton(L)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&I&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",P.disabled),e.xp6(2),e.s9C("svgIcon",P.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[b.lW,_.gM,w.Hw],pipes:[g.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}"]}),E})()},45703:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new e.vpe,this.nameFunction=C=>C.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(b.aC)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:15,consts:[[3,"entity","entities","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,I){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return I.resourceSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entity",I.resource)("entities",I.resources)("displayStatus",I.displayStatus)("searchFunction",I.nameFunction)("mainTextFunction",I.nameFunction)("secondaryTextFunction",I.secondaryFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},62109:($e,_e,p)=>{"use strict";p.d(_e,{C:()=>H});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(36908),E=p(18750),C=p(77446),I=p(29772),P=p(10441),m=p(69808),L=p(25245),O=p(8223),G=p(50301),ne=p(11735),ge=p(98380),J=p(51062);let Me=(()=>{class V{transform(Qe){if(null==Qe)return null;let Ae="";return Qe.forEach(function(ae){Ae=Ae.concat(ae.tagName)}),Ae}}return V.\u0275fac=function(Qe){return new(Qe||V)},V.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:V,pure:!0}),V})();var oe=p(82895);function Re(V,xe){if(1&V){const Qe=e.EpF();e.TgZ(0,"th",24),e.TgZ(1,"mat-checkbox",25),e.NdJ("change",function(Ae){e.CHM(Qe);const ae=e.oxw();return Ae?ae.masterToggle():null}),e.qZA(),e.qZA()}if(2&V){const Qe=e.oxw();e.xp6(1),e.Q6J("aria-label",Qe.checkboxLabel())("checked",Qe.selection.hasValue()&&Qe.isAllSelected())("indeterminate",Qe.selection.hasValue()&&!Qe.isAllSelected())}}function T(V,xe){if(1&V){const Qe=e.EpF();e.TgZ(0,"td",26),e.TgZ(1,"span",27),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",28),e.NdJ("change",function(Ae){const i=e.CHM(Qe).$implicit,o=e.oxw();return Ae?o.itemSelectionToggle(i):null})("click",function(Ae){return Ae.stopPropagation()}),e.qZA(),e.qZA(),e.qZA()}if(2&V){const Qe=xe.$implicit,Te=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!Te.disableSelect(Qe)),e.xp6(2),e.Q2q("data-cy","",Qe.name,"-checkbox"),e.Q6J("aria-label",Te.checkboxLabel(Qe))("checked",Te.selection.isSelected(Qe))("disabled",Te.disableSelect(Qe))}}function j(V,xe){1&V&&(e.TgZ(0,"th",29),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 Y(V,xe){if(1&V&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.id)}}function q(V,xe){1&V&&e._UZ(0,"th",31)}function te(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._UZ(1,"perun-web-apps-recently-viewed-icon",33),e.qZA()),2&V){const Qe=xe.$implicit,Te=e.oxw();e.xp6(1),e.Q6J("recentIds",Te.recentIds)("id",Qe.id)}}function ue(V,xe){1&V&&e._UZ(0,"th",31)}function de(V,xe){1&V&&(e.TgZ(0,"mat-icon",35),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 Le(V,xe){if(1&V&&(e.TgZ(0,"td",32),e.YNc(1,de,3,3,"mat-icon",34),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Q6J("ngIf",Qe.sourceGroupId)}}function Ue(V,xe){1&V&&(e.TgZ(0,"th",29),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 ze(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.name)}}function le(V,xe){1&V&&(e.TgZ(0,"th",29),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 je(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.vo.name)}}function ye(V,xe){1&V&&(e.TgZ(0,"th",29),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 Be(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.voId)}}function W(V,xe){1&V&&(e.TgZ(0,"th",29),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 R(V,xe){if(1&V){const Qe=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"perun-web-apps-group-resource-status",36),e.NdJ("mouseenter",function(){return e.CHM(Qe),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(Qe);const Ae=e.oxw();return Ae.disabledRouting=Ae.disableRouting})("statusChange",function(){return e.CHM(Qe),e.oxw().refreshTable.emit()}),e.qZA(),e.qZA()}if(2&V){const Qe=xe.$implicit,Te=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",Qe.id)("groupId",Te.groupId)("failureCause",Qe.failureCause)("status",Qe.status)}}function me(V,xe){1&V&&(e.TgZ(0,"th",29),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 be(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.facility.name)}}function Ie(V,xe){1&V&&(e.TgZ(0,"th",29),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 pe(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.facilityId)}}function Se(V,xe){1&V&&(e.TgZ(0,"th",29),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 Xe(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,Qe.resourceTags)," ")}}function Je(V,xe){1&V&&(e.TgZ(0,"th",29),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 nt(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.description)}}function Ve(V,xe){1&V&&e._UZ(0,"tr",37)}const X=function(V){return[V]};function z(V,xe){if(1&V&&(e._UZ(0,"tr",38),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&V){const Qe=xe.$implicit,Te=e.oxw();e.ekj("cursor-pointer",!Te.disableRouting)("disable-outline",Te.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,X,Te.disabledRouting?null:e.xi3(1,6,Qe,Te.routingVo)))("routerLink",Te.disabledRouting?null:e.xi3(2,9,Qe,Te.routingVo))}}function Q(V,xe){1&V&&(e.TgZ(0,"perun-web-apps-alert",39),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 D(V,xe){1&V&&(e.TgZ(0,"perun-web-apps-alert",39),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"))}let H=(()=>{class V{constructor(Qe,Te){this.guiAuthResolver=Qe,this.tableCheckbox=Te,this.resources=[],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=g.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=(Ae,ae)=>V.getDataForColumn(Ae,ae,this.recentIds),this.canBeSelected=Ae=>!this.disableSelect(Ae)}set matSort(Qe){this.sort=Qe}static getDataForColumn(Qe,Te,Ae){switch(Te){case"id":return Qe.id.toString();case"vo":return Qe.vo.name;case"name":return Qe.name;case"facility":return Qe.facility.name;case"description":return Qe.description;case"recent":return Ae&&Ae.includes(Qe.id)?"#".repeat(Ae.indexOf(Qe.id)):Qe.name;case"tags":{if(!Qe.resourceTags)return Qe[Te];let i="";return Qe.resourceTags.forEach(function(o){i=i.concat(o.tagName)}),i}case"status":return Qe.status;case"uuid":return Qe.uuid;default:return Qe[Te]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Qe=>"id"!==Qe)),this.setDataSource(),this.setAuth()}exportData(Qe){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Qe)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Qe,Te)=>(0,g.Sd)(Qe,Te,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(Qe,Te)=>(0,g.pR)(Qe,Te,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const Qe=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(Qe),Qe}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()}checkboxLabel(Qe){return Qe?`${this.selection.isSelected(Qe)?"deselect":"select"} row ${Qe.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const Qe=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((Te,Ae)=>Te&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",Qe.concat([Ae])),!0),this.addAuth=this.selection.selected.reduce((Te,Ae)=>Te&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",Qe.concat([Ae])),!0)}itemSelectionToggle(Qe){this.selection.toggle(Qe),this.setAuth()}disableSelect(Qe){return this.resourcesToDisableCheckbox.has(Qe.id)}}return V.\u0275fac=function(Qe){return new(Qe||V)(e.Y36(A.x4),e.Y36(A.UA))},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(Qe,Te){if(1&Qe&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&Qe){let Ae;e.iGM(Ae=e.CRH())&&(Te.child=Ae.first),e.iGM(Ae=e.CRH())&&(Te.matSort=Ae.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:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["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"],["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"],["mat-header-cell","",1,"align-checkbox"],["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(Qe,Te){1&Qe&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(ae){return Te.exportData(ae)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,Re,2,3,"th",4),e.YNc(5,T,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,j,3,3,"th",7),e.YNc(8,Y,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,q,1,0,"th",10),e.YNc(11,te,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,ue,1,0,"th",10),e.YNc(14,Le,2,1,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,Ue,3,3,"th",7),e.YNc(17,ze,2,1,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,le,3,3,"th",7),e.YNc(20,je,2,1,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,ye,3,3,"th",7),e.YNc(23,Be,2,1,"td",11),e.BQk(),e.ynx(24,16),e.YNc(25,W,3,3,"th",7),e.YNc(26,R,2,5,"td",11),e.BQk(),e.ynx(27,17),e.YNc(28,me,3,3,"th",7),e.YNc(29,be,2,1,"td",11),e.BQk(),e.ynx(30,18),e.YNc(31,Ie,3,3,"th",7),e.YNc(32,pe,2,1,"td",11),e.BQk(),e.ynx(33,19),e.YNc(34,Se,3,3,"th",7),e.YNc(35,Xe,3,3,"td",11),e.BQk(),e.ynx(36,20),e.YNc(37,Je,3,3,"th",7),e.YNc(38,nt,2,1,"td",11),e.BQk(),e.YNc(39,Ve,1,0,"tr",21),e.YNc(40,z,3,14,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.YNc(41,Q,3,3,"perun-web-apps-alert",23),e.YNc(42,D,3,3,"perun-web-apps-alert",23)),2&Qe&&(e.Q6J("hidden",0===Te.dataSource.filteredData.length||0===Te.resources.length),e.xp6(1),e.Q6J("dataLength",Te.dataSource.filteredData.length)("tableId",Te.tableId)("pageSizeOptions",Te.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",Te.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",Te.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Te.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Te.dataSource.filteredData.length&&0!==Te.resources.length),e.xp6(1),e.Q6J("ngIf",0===Te.resources.length))},directives:[E.l,_.BZ,b.YE,_.w1,_.fO,_.ge,C.oG,_.Dz,_.ev,I.gM,b.nU,P.W,m.O5,L.Hw,O.x,_.as,_.XQ,_.nj,_.Gk,G.YH,ne.rH,ge.w],pipes:[J.X$,Me,oe.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,_e,p)=>{"use strict";p.d(_e,{qG:()=>g,$x:()=>A});var e=p(5e3),b=p(51062),_=p(42377);class w{constructor(C,I){this.value=I,this.displayName=C}}var g=(()=>{return(E=g||(g={}))[E.SOURCE=0]="SOURCE",E[E.DESTINATION=1]="DESTINATION",E[E.FEDERATION=2]="FEDERATION",g;var E})();let A=(()=>{class E{constructor(I){this.translateService=I,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=P=>P.displayName,this.shortNameFunction=()=>null,this.searchFunction=P=>P.displayName}static getDefinition(I){const P=I.namespace.split(":");return null===P[4]?"null":P[4]}ngOnInit(){this.type===g.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(I=>{const P=new w(I,"");this.items.push(P),this.item=P});for(const I of this.attributes){const P=new w(I.friendlyName+" ("+I.entity+" / "+E.getDefinition(I)+")",I.namespace+":"+I.friendlyName);P.value===this.selectedAttribute&&(this.item=P),("user"===I.entity.toLowerCase()||"member"===I.entity.toLowerCase()||"vo"===I.entity.toLowerCase()&&this.type===g.SOURCE||"group"===I.entity.toLowerCase()&&this.asGroup&&this.type===g.SOURCE)&&this.items.push(P)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(I=>{this.items.push(new w(I,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(P=>{this.items.push(new w(P,"custom")),this.items.push(new w("Display name","displayName")),this.items.push(new w("Common name","cn")),this.items.push(new w("Mail","mail")),this.items.push(new w("Organization","o")),this.items.push(new w("Level of Assurance (LoA)","loa")),this.items.push(new w("First name","givenName")),this.items.push(new w("Surname","sn")),this.items.push(new w("EPPN","eppn")),this.items.push(new w("IdP Category","md_entityCategory")),this.items.push(new w("IdP Affiliation","affiliation")),this.items.push(new w("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new w("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new w("schacHomeOrganization","schacHomeOrganization")),this.items.push(new w("Login","uid")),this.items.push(new w("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const I of this.items)if(I.value===this.selectedAttribute)return void(this.item=I);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(I){I.sort((P,m)=>""===P.value?-1:""===m.value?1:P.displayName.localeCompare(m.displayName))}}return E.\u0275fac=function(I){return new(I||E)(e.Y36(b.sK))},E.\u0275cmp=e.Xpm({type:E,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(I,P){1&I&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(L){return P.itemSelected.emit(L)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&I&&e.Q6J("entities",P.items)("entity",P.item)("searchFunction",P.searchFunction)("mainTextFunction",P.nameFunction)("secondaryTextFunction",P.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"))},directives:[_.i],pipes:[b.X$],styles:[""]}),E})()},30540:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>w});var e=p(5e3),b=p(42377),_=p(51062);let w=(()=>{class g{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=E=>E.name,this.secondaryFunction=()=>"",this.searchFunction=E=>E.name}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,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(E,C){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(P){return C.serviceSelected.emit(P)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",C.service)("entities",C.services)("multiple",C.multiple)("disableAutoSelect",C.disableAutoSelect)("searchFunction",C.searchFunction)("mainTextFunction",C.nameFunction)("secondaryTextFunction",C.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",C.theme)},directives:[b.i],pipes:[_.X$],styles:[""]}),g})()},80275:($e,_e,p)=>{"use strict";p.d(_e,{j:()=>Be});var e=p(20449),b=p(84847),_=p(32075),w=p(36908),g=p(9244),A=p(5e3),E=p(11735),C=p(18750),I=p(29772),P=p(77446),m=p(50301),L=p(69808),O=p(98380),G=p(51062),ne=p(34447);let ge=(()=>{class W{transform(me){var be;const Ie=me.find(pe=>"mail"===pe.friendlyName);return null!==(be=null==Ie?void 0:Ie.value)&&void 0!==be?be:"N/A"}}return W.\u0275fac=function(me){return new(me||W)},W.\u0275pipe=A.Yjl({name:"getMailFromAttributes",type:W,pure:!0}),W})();function J(W,R){1&W&&A._UZ(0,"th",18)}function Me(W,R){if(1&W){const me=A.EpF();A.TgZ(0,"td",19),A.TgZ(1,"span",20),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.TgZ(4,"mat-checkbox",21),A.NdJ("change",function(Ie){const Se=A.CHM(me).$implicit,Xe=A.oxw();return Ie?Xe.selection.toggle(Se):null})("click",function(Ie){return Ie.stopPropagation()}),A.qZA(),A.qZA(),A.qZA()}if(2&W){const me=R.$implicit,be=A.oxw();A.xp6(1),A.s9C("matTooltip",A.lcZ(2,6,A.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),A.Q6J("matTooltipPosition","above")("matTooltipDisabled",!me.userExtSource.persistent),A.xp6(3),A.Q6J("aria-label",be.checkboxLabel(me))("checked",be.selection.isSelected(me))("disabled",me.userExtSource.persistent)}}function oe(W,R){1&W&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function Re(W,R){if(1&W&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",me.userExtSource.id," ")}}function T(W,R){1&W&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function j(W,R){if(1&W&&(A.TgZ(0,"td",23),A._uU(1),A.ALo(2,"getMailFromAttributes"),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,1,me.attributes)," ")}}function Y(W,R){if(1&W&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W){const me=A.oxw();A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,me.extSourceNameHeader?me.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function q(W,R){if(1&W&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",me.userExtSource.extSource.name," ")}}function te(W,R){if(1&W&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W){const me=A.oxw();A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,me.loginHeader?me.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ue(W,R){if(1&W&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",me.userExtSource.login," ")}}function de(W,R){1&W&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Le(W,R){if(1&W&&(A.TgZ(0,"td",25),A._uU(1),A.ALo(2,"date"),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,me.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Ue(W,R){1&W&&A._UZ(0,"tr",26)}const ze=function(W,R){return["/admin","users",W,"identities",R]};function le(W,R){if(1&W&&A._UZ(0,"tr",27),2&W){const me=R.$implicit,be=A.oxw();A.ekj("cursor-pointer",!be.disableRouting)("disable-outline",be.disableRouting),A.Q6J("perunWebAppsMiddleClickRouterLink",be.disableRouting?null:A.WLB(6,ze,be.userId,me.userExtSource.id))("routerLink",be.disableRouting?null:A.WLB(9,ze,be.userId,me.userExtSource.id))}}function je(W,R){1&W&&(A.TgZ(0,"perun-web-apps-alert",28),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ye(W,R){1&W&&(A.TgZ(0,"perun-web-apps-alert",28),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let Be=(()=>{class W{constructor(me,be){this.route=me,this.authResolver=be,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=g.f7}set matSort(me){this.sort=me,this.setDataSource()}static getDataForColumn(me,be){switch(be){case"id":return me.userExtSource.id.toString();case"mail":{const Ie=me.attributes.find(pe=>"mail"===pe.friendlyName);return Ie?Ie.value:"N/A"}case"extSourceName":return me.userExtSource.extSource.name;case"login":return me.userExtSource.login;case"lastAccess":return me.userExtSource.lastAccess.split(".")[0];default:return me[be]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(me=>{this.userId=Number(me.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(me=>"id"!==me)),this.dataSource=new _.by(this.userExtSources),this.setDataSource()}exportData(me){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,W.getDataForColumn),me)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(me,be)=>(0,g.Sd)(me,be,this.displayedColumns,W.getDataForColumn),this.dataSource.sortData=(me,be)=>(0,g.pR)(me,be,W.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(me){return`${this.selection.isSelected(me.userExtSource)?"deselect":"select"} row ${me.userExtSource.id+1}`}}return W.\u0275fac=function(me){return new(me||W)(A.Y36(E.gz),A.Y36(w.x4))},W.\u0275cmp=A.Xpm({type:W,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(me,be){if(1&me&&(A.Gf(g.l9,7),A.Gf(b.YE,7)),2&me){let Ie;A.iGM(Ie=A.CRH())&&(be.child=Ie.first),A.iGM(Ie=A.CRH())&&(be.matSort=Ie.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[A.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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(me,be){1&me&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(pe){return be.exportData(pe)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,J,1,0,"th",4),A.YNc(5,Me,5,10,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,oe,4,5,"th",7),A.YNc(8,Re,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,T,4,5,"th",10),A.YNc(11,j,3,3,"td",8),A.BQk(),A.ynx(12,11),A.YNc(13,Y,4,5,"th",7),A.YNc(14,q,2,1,"td",8),A.BQk(),A.ynx(15,12),A.YNc(16,te,4,5,"th",7),A.YNc(17,ue,2,1,"td",8),A.BQk(),A.ynx(18,13),A.YNc(19,de,4,5,"th",7),A.YNc(20,Le,3,4,"td",14),A.BQk(),A.YNc(21,Ue,1,0,"tr",15),A.YNc(22,le,1,12,"tr",16),A.qZA(),A.qZA(),A.qZA(),A.YNc(23,je,3,3,"perun-web-apps-alert",17),A.YNc(24,ye,4,5,"perun-web-apps-alert",17)),2&me&&(A.Q6J("hidden",0===be.userExtSources.length||0===be.dataSource.filteredData.length),A.xp6(1),A.Q6J("tableId",be.tableId)("dataLength",be.dataSource.filteredData.length)("pageSizeOptions",be.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",be.dataSource),A.xp6(19),A.Q6J("matHeaderRowDef",be.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",be.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===be.dataSource.filteredData.length&&0!==be.userExtSources.length),A.xp6(1),A.Q6J("ngIf",0===be.userExtSources.length))},directives:[C.l,_.BZ,b.YE,_.w1,_.fO,_.ge,_.Dz,_.ev,I.gM,P.oG,b.nU,_.as,_.XQ,_.nj,_.Gk,m.YH,E.rH,L.O5,O.w],pipes:[G.X$,ne.a,ge,L.uU],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}"]}),W})()},74250:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=b.bD}ngOnInit(){this.users=this.users.sort(b.fx)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,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(C,I){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return I.userSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entities",I.users)("disableAutoSelect",I.disableAutoSelect)("searchFunction",I.userFullNameFunction)("mainTextFunction",I.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"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},88561:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>Ve});var e=p(20449),b=p(9244),_=p(84847),w=p(36908),g=p(36787),A=p(22868),E=p(5e3),C=p(10036),I=p(18750),P=p(69808),m=p(20773),L=p(32075),O=p(77446),G=p(25245),ne=p(29772),ge=p(50301),J=p(98380),Me=p(51062),oe=p(31359),Re=p(9954),T=p(16119),j=p(7598);function Y(X,z){1&X&&(E.TgZ(0,"div",20),E._UZ(1,"mat-spinner",21),E.qZA())}function q(X,z){if(1&X){const Q=E.EpF();E.TgZ(0,"mat-checkbox",24),E.NdJ("change",function(H){E.CHM(Q);const V=E.oxw(2);return H?V.masterToggle():null}),E.qZA()}if(2&X){const Q=E.oxw(2);E.Q6J("aria-label",Q.checkboxLabel())("checked",Q.selection.hasValue()&&Q.isAllSelected())("indeterminate",Q.selection.hasValue()&&!Q.isAllSelected())}}function te(X,z){if(1&X&&(E.TgZ(0,"th",22),E.YNc(1,q,1,3,"mat-checkbox",23),E.qZA()),2&X){const Q=E.oxw();E.xp6(1),E.Q6J("ngIf",Q.selection.isMultipleSelection())}}function ue(X,z){if(1&X){const Q=E.EpF();E.TgZ(0,"td",25),E.TgZ(1,"mat-checkbox",26),E.NdJ("change",function(H){const xe=E.CHM(Q).$implicit,Qe=E.oxw();return H?Qe.selection.toggle(xe):null})("click",function(H){return H.stopPropagation()}),E.qZA(),E.qZA()}if(2&X){const Q=z.$implicit,D=E.oxw();E.xp6(1),E.Q6J("aria-label",D.checkboxLabel(Q))("checked",D.selection.isSelected(Q))}}function de(X,z){1&X&&E._UZ(0,"th",27)}function Le(X,z){1&X&&(E.TgZ(0,"mat-icon",31),E.ALo(1,"translate"),E._uU(2," account_circle "),E.qZA()),2&X&&E.s9C("matTooltip",E.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Ue(X,z){if(1&X&&(E._UZ(0,"mat-icon",32),E.ALo(1,"translate")),2&X){const Q=E.oxw(2);E.s9C("matTooltip",E.lcZ(1,2,"MANAGERS_LIST.SERVICE")),E.Q6J("svgIcon",Q.svgIcon)}}function ze(X,z){if(1&X&&(E.TgZ(0,"td",28),E.YNc(1,Le,3,3,"mat-icon",29),E.YNc(2,Ue,2,4,"mat-icon",30),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Q6J("ngIf",!Q.serviceUser),E.xp6(1),E.Q6J("ngIf",Q.serviceUser)}}function le(X,z){1&X&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function je(X,z){if(1&X&&(E.TgZ(0,"td",28),E._uU(1),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.hij(" ",Q.id," ")}}function ye(X,z){1&X&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Be(X,z){if(1&X&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Q))}}function W(X,z){1&X&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function R(X,z){if(1&X&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userVo"),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Q))}}function me(X,z){1&X&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function be(X,z){if(1&X&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userEmail"),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Q))}}function Ie(X,z){1&X&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function pe(X,z){if(1&X&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userLogins"),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Q))}}function Se(X,z){1&X&&E._UZ(0,"tr",35)}const Xe=function(X){return["/admin/users",X]};function Je(X,z){if(1&X&&E._UZ(0,"tr",36),2&X){const Q=z.$implicit,D=E.oxw();E.ekj("cursor-pointer",!D.disableRouting),E.Q6J("perunWebAppsForceRouterLink",D.disableRouting?null:E.VKq(4,Xe,Q.id))("perunWebAppsMiddleClickRouterLink",D.disableRouting?null:E.VKq(6,Xe,Q.id))}}function nt(X,z){1&X&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.Q6J("alert_type","warn"),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let Ve=(()=>{class X{constructor(Q,D,H,V){this.authResolver=Q,this.tableCheckbox=D,this.tableConfigService=H,this.dynamicPaginatingService=V,this.selection=new e.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.svgIcon="perun-service-identity-black",this.pageSizeOptions=b.f7}static getExportDataForColumn(Q,D){switch(D){case"id":return Q.id.toString();case"user":return Q.serviceUser?"service-user":"user";case"name":return Q?(0,b.bD)(Q):"";case"organization":return(0,b.OV)(Q);case"email":return(0,b.kN)(Q);case"logins":return(0,b.lt)(Q);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Q=>"id"!==Q)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),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)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(Q=>this.selection.select(Q))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}checkboxLabel(Q){return Q?`${this.selection.isSelected(Q)?"deselect":"select"} row ${Q.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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)}exportData(Q){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,X.getExportDataForColumn),Q)}}return X.\u0275fac=function(Q){return new(Q||X)(E.Y36(w.x4),E.Y36(w.UA),E.Y36(C.dB),E.Y36(w.ly))},X.\u0275cmp=E.Xpm({type:X,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(Q,D){if(1&Q&&(E.Gf(b.l9,7),E.Gf(_.YE,5)),2&Q){let H;E.iGM(H=E.CRH())&&(D.child=H.first),E.iGM(H=E.CRH())&&(D.sort=H.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"},features:[E.TTD],decls:31,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["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","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","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["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",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(Q,D){1&Q&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(V){return D.exportData(V)}),E.YNc(3,Y,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,te,2,1,"th",5),E.YNc(8,ue,2,2,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,de,1,0,"th",8),E.YNc(11,ze,3,2,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,le,3,3,"th",11),E.YNc(14,je,2,1,"td",9),E.BQk(),E.ynx(15,12),E.YNc(16,ye,3,3,"th",11),E.YNc(17,Be,3,3,"td",13),E.BQk(),E.ynx(18,14),E.YNc(19,W,3,3,"th",8),E.YNc(20,R,3,3,"td",13),E.BQk(),E.ynx(21,15),E.YNc(22,me,3,3,"th",8),E.YNc(23,be,3,3,"td",13),E.BQk(),E.ynx(24,16),E.YNc(25,Ie,3,3,"th",8),E.YNc(26,pe,3,3,"td",13),E.BQk(),E.YNc(27,Se,1,0,"tr",17),E.YNc(28,Je,1,8,"tr",18),E.qZA(),E.qZA(),E.qZA(),E.YNc(29,nt,3,4,"perun-web-apps-alert",19),E.ALo(30,"async")),2&Q&&(E.Q6J("hidden",0===D.dataSource.allObjectCount&&!1===E.lcZ(1,9,D.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",D.tableId)("dataLength",D.dataSource.allObjectCount)("pageSizeOptions",D.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,D.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",D.dataSource),E.xp6(22),E.Q6J("matHeaderRowDef",D.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",D.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===D.dataSource.allObjectCount&&!1===E.lcZ(30,13,D.dataSource.loading$)))},directives:[I.l,P.O5,m.$g,L.BZ,_.YE,L.w1,L.fO,L.ge,O.oG,L.Dz,L.ev,G.Hw,ne.gM,_.nU,L.as,L.XQ,L.nj,L.Gk,ge.Kd,ge.YH,J.w],pipes:[P.Ov,Me.X$,oe.d,Re.Z,T.S,j.g],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),X})()},62707:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.voSelected=new e.vpe,this.nameFunction=C=>C.name,this.shortNameFunction=C=>C.shortName,this.searchFunction=C=>C.name+C.shortName+String(C.id)}ngOnChanges(){this.vos.sort(b.aC),this.vo||(this.vo=this.vos[0])}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,I){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return I.voSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entity",I.vo)("entities",I.vos)("searchFunction",I.searchFunction)("mainTextFunction",I.nameFunction)("secondaryTextFunction",I.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},87831:($e,_e,p)=>{"use strict";p.d(_e,{Z:()=>je});var e=p(84847),b=p(32075),_=p(9244),w=p(36908),g=p(5e3),A=p(18750),E=p(77446),C=p(10441),I=p(69808),P=p(25245),m=p(50301),L=p(98380),O=p(51062);function G(ye,Be){1&ye&&g._UZ(0,"th",19)}function ne(ye,Be){if(1&ye){const W=g.EpF();g.TgZ(0,"td",20),g.TgZ(1,"mat-checkbox",21),g.NdJ("change",function(me){const Ie=g.CHM(W).$implicit,pe=g.oxw();return me?pe.selection.toggle(Ie):null})("click",function(me){return me.stopPropagation()}),g.qZA(),g.qZA()}if(2&ye){const W=Be.$implicit,R=g.oxw();g.xp6(1),g.Q6J("aria-label",R.checkboxLabel(W))("checked",R.selection.isSelected(W))}}function ge(ye,Be){1&ye&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function J(ye,Be){if(1&ye&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&ye){const W=Be.$implicit;let R;g.xp6(1),g.Oqu(null!==(R=W.id)&&void 0!==R?R:W.vo.id)}}function Me(ye,Be){1&ye&&g._UZ(0,"th",24)}function oe(ye,Be){if(1&ye&&(g.TgZ(0,"td",25),g._UZ(1,"perun-web-apps-recently-viewed-icon",26),g.qZA()),2&ye){const W=Be.$implicit,R=g.oxw();let me;g.xp6(1),g.Q6J("recentIds",R.recentIds)("id",null!==(me=W.id)&&void 0!==me?me:W.vo.id)}}function Re(ye,Be){1&ye&&g._UZ(0,"th",24)}function T(ye,Be){1&ye&&g._UZ(0,"mat-icon",28),2&ye&&g.Q6J("svgIcon","perun-hierarchical-vo")}function j(ye,Be){if(1&ye&&(g.TgZ(0,"td",25),g.YNc(1,T,1,1,"mat-icon",27),g.qZA()),2&ye){const W=Be.$implicit;g.xp6(1),g.Q6J("ngIf",0!==(null==W||null==W.memberVos?null:W.memberVos.length))}}function Y(ye,Be){1&ye&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function q(ye,Be){if(1&ye&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&ye){const W=Be.$implicit;let R,me;g.uIk("data-cy",null!==(R=W.shortName)&&void 0!==R?R:W.vo.shortName),g.xp6(1),g.hij(" ",null!==(me=W.shortName)&&void 0!==me?me:W.vo.shortName," ")}}function te(ye,Be){1&ye&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function ue(ye,Be){if(1&ye&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&ye){const W=Be.$implicit;let R;g.xp6(1),g.Oqu(null!==(R=W.name)&&void 0!==R?R:W.vo.name)}}function de(ye,Be){1&ye&&g._UZ(0,"tr",29)}const Le=function(ye){return["/organizations",ye]};function Ue(ye,Be){if(1&ye&&g._UZ(0,"tr",30),2&ye){const W=Be.$implicit,R=g.oxw();let me,be;g.ekj("disable-outline",R.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",R.disableRouting?null:g.VKq(4,Le,null!==(me=W.id)&&void 0!==me?me:W.vo.id))("perunWebAppsForceRouterLink",R.disableRouting?null:g.VKq(6,Le,null!==(be=W.id)&&void 0!==be?be:W.vo.id))}}function ze(ye,Be){1&ye&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function le(ye,Be){1&ye&&(g.TgZ(0,"perun-web-apps-alert",32),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let je=(()=>{class ye{constructor(W){this.authResolver=W,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=_.f7,this.getDataForColumnFun=(R,me)=>ye.getDataForColumn(R,me,this.recentIds)}set matSort(W){this.sort=W}static getDataForColumn(W,R,me){switch(ye.isEnrichedVo(W)&&(W=W.vo),R){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[R]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(W=>"id"!==W)),this.setDataSource()}exportData(W){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),W)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(W,R)=>(0,_.Sd)(W,R,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(W,R)=>(0,_.pR)(W,R,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(W){return`${this.selection.isSelected(W)?"deselect":"select"} row ${W.id+1}`}}return ye.isEnrichedVo=Be=>void 0!==Be.vo,ye.\u0275fac=function(W){return new(W||ye)(g.Y36(w.x4))},ye.\u0275cmp=g.Xpm({type:ye,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(W,R){if(1&W&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&W){let me;g.iGM(me=g.CRH())&&(R.child=me.first),g.iGM(me=g.CRH())&&(R.matSort=me.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[g.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["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","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",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","perunWebAppsForceRouterLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(W,R){1&W&&(g.TgZ(0,"div",0),g.TgZ(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(be){return R.exportData(be)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,G,1,0,"th",4),g.YNc(5,ne,2,2,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,ge,3,3,"th",7),g.YNc(8,J,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Me,1,0,"th",10),g.YNc(11,oe,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,Re,1,0,"th",10),g.YNc(14,j,2,1,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,Y,3,3,"th",7),g.YNc(17,q,2,2,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,te,3,3,"th",7),g.YNc(20,ue,2,1,"td",11),g.BQk(),g.YNc(21,de,1,0,"tr",15),g.YNc(22,Ue,1,8,"tr",16),g.qZA(),g.qZA(),g.qZA(),g.YNc(23,ze,3,3,"perun-web-apps-alert",17),g.YNc(24,le,3,3,"perun-web-apps-alert",18)),2&W&&(g.Q6J("hidden",0===R.dataSource.filteredData.length||0===R.vos.length),g.xp6(1),g.Q6J("dataLength",R.dataSource.filteredData.length)("tableId",R.tableId)("pageSizeOptions",R.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",R.dataSource),g.xp6(19),g.Q6J("matHeaderRowDef",R.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",R.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===R.dataSource.filteredData.length&&0!==R.vos.length),g.xp6(1),g.Q6J("ngIf",0===R.vos.length))},directives:[A.l,b.BZ,e.YE,b.w1,b.fO,b.ge,b.Dz,b.ev,E.oG,e.nU,C.W,I.O5,P.Hw,b.as,b.XQ,b.nj,b.Gk,m.YH,m.Kd,L.w],pipes:[O.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),ye})()},16074:($e,_e,p)=>{"use strict";p.d(_e,{GI:()=>kt,Wr:()=>Ut,r2:()=>lt,gr:()=>Ge,u3:()=>ti,Qu:()=>Qt,pf:()=>ye,xF:()=>Ji,hd:()=>en,kZ:()=>Ri,wA:()=>Ht,rd:()=>Je,Eg:()=>Xe,Bp:()=>H,qD:()=>ot,jd:()=>St,FM:()=>ae,jD:()=>j,Lc:()=>n,mk:()=>c,Ts:()=>Rt});var e=p(69808),b=p(51062),_=p(32075),w=p(48966),g=p(47423),A=p(67322),E=p(93075),C=p(98833),I=p(20773),P=p(79814),m=p(86856),L=p(69287),O=p(25245),G=p(19516),ne=p(63189),ge=p(11735),J=p(90149),Me=p(74107),oe=p(28499),Re=p(6397),T=p(5e3);let j=(()=>{class Ze{}return Ze.\u0275fac=function(qe){return new(qe||Ze)},Ze.\u0275mod=T.oAB({type:Ze}),Ze.\u0275inj=T.cJS({imports:[[e.ez,b.aw,_.p0,w.Is,g.ot,A.lN,E.u5,C.c,I.Cq,P.Fk,m.FA,E.UX,L.Iq,O.Ps,G.d4,ne.r,ge.Bz,J.dp,Me.LD,oe.E3,Re.C]]}),Ze})();var Y=p(32105),q=p(36908),te=p(90508),ue=p(20551);function de(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",6)}function Le(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-option",17),T._uU(1),T.ALo(2,"memberStatus"),T.qZA()),2&Ze){const qe=Ot.$implicit;T.Q6J("value",qe),T.xp6(1),T.Oqu(T.lcZ(2,2,qe))}}function Ue(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"mat-form-field",14),T.TgZ(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",15),T.NdJ("selectionChange",function(jt){return T.CHM(qe),T.oxw(3).changeStatus(jt)}),T.YNc(5,Le,3,4,"mat-option",16),T.qZA(),T.qZA()}if(2&Ze){const qe=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),T.xp6(3),T.Q6J("ngForOf",qe.allStatuses)}}function ze(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.YNc(3,Ue,6,4,"mat-form-field",13),T.qZA()),2&Ze){const qe=T.oxw(2);T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),T.xp6(2),T.Q6J("ngIf",!qe.loading)}}function le(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"memberStatus"),T.qZA()),2&Ze){const qe=T.oxw(2);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",T.lcZ(3,4,qe.allStatuses[0])," ")}}function je(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",7),T.TgZ(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,ze,4,4,"div",10),T.YNc(8,le,4,6,"div",10),T.TgZ(9,"div",11),T._UZ(10,"i",12),T.qZA(),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(2),T.AsE(" ",T.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",T.lcZ(4,8,qe.actualStatus)," "),T.xp6(4),T.Oqu(qe.description),T.xp6(1),T.Q6J("ngIf",qe.allStatuses.length>1),T.xp6(1),T.Q6J("ngIf",1===qe.allStatuses.length),T.xp6(2),T.Q6J("innerHTML",qe.changeMessage,T.oJD)}}let ye=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.data=Tt,this.memberManager=jt,this.groupsManager=ci,this.notificatorService=vi,this.translate=Ui,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.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(qe=>qe!==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(qe){this.selectedStatus=qe.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(qe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Tt=>{this.notificatorService.showSuccess(Tt),this.dialogRef.close(qe)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(qe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Tt=>{this.notificatorService.showSuccess(Tt),this.dialogRef.close(qe)})},()=>this.loading=!1)}changeStatusMessage(qe,Tt){if("VALID"===qe)switch(Tt){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(Tt){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 Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.uq),T.Y36(Y.ff),T.Y36(q.V6),T.Y36(b.sK))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:12,vars:13,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(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,de,1,0,"mat-spinner",1),T.YNc(5,je,11,10,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(11),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Tt.loading||!Tt.selectedStatus),T.xp6(1),T.hij(" ",Tt.submitButtonText," "))},directives:[w.uh,e.O5,I.$g,w.xY,A.KE,A.hX,Me.gD,e.sg,te.ey,w.H8,g.lW],pipes:[b.X$,ue.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),Ze})();function Be(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function W(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function R(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function me(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function be(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",8)}function Ie(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-form-field"),T._UZ(1,"input",13),T.ALo(2,"translate"),T.qZA()),2&Ze){const qe=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),T.Q6J("value",qe.shortName)}}function pe(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-form-field",14),T._UZ(1,"textarea",15),T.ALo(2,"translate"),T.qZA()),2&Ze){const qe=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),T.Q6J("formControl",qe.descriptionCtrl)}}function Se(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",9),T.YNc(1,Ie,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.qZA(),T.YNc(8,pe,3,4,"mat-form-field",12),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(1),T.Q6J("ngIf",2===qe.dialogType),T.xp6(2),T.MGl("placeholder","",T.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),T.Q6J("formControl",qe.nameCtrl),T.xp6(3),T.hij(" ",qe.invalidNameMessage.length?qe.invalidNameMessage:T.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),T.xp6(2),T.Q6J("ngIf",2!==qe.dialogType)}}var Xe=(()=>{return(Ze=Xe||(Xe={}))[Ze.FACILITY=0]="FACILITY",Ze[Ze.RESOURCE=1]="RESOURCE",Ze[Ze.VO=2]="VO",Ze[Ze.GROUP=3]="GROUP",Xe;var Ze})();let Je=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui,Li,hn,cr){this.dialogRef=qe,this.data=Tt,this.notificator=jt,this.translateService=ci,this.facilitiesManager=vi,this.resourcesManager=Ui,this.groupsManager=Li,this.vosManager=hn,this.store=cr,this.invalidNameMessage=this.data.dialogType===Xe.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===Xe.GROUP?this.store.get("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case Xe.FACILITY:this.nameCtrl=new E.NI(this.data.facility.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI(this.data.facility.description);break;case Xe.RESOURCE:this.nameCtrl=new E.NI(this.data.resource.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new E.NI(this.data.resource.description);break;case Xe.GROUP:{const qe=this.data.group.name.split(":");this.nameCtrl=new E.NI(qe[qe.length-1],[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.pattern(this.secondaryRegex),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI(this.data.group.description);break}case Xe.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new E.NI(this.data.vo.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case Xe.FACILITY:this.editFacility();break;case Xe.RESOURCE:this.editResource();break;case Xe.GROUP:this.editGroup();break;case Xe.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(qe=>{this.notificator.showSuccess(qe),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(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(qe=>{const Tt=qe;Tt.name=this.nameCtrl.value,Tt.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:Tt}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),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(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(q.V6),T.Y36(b.sK),T.Y36(Y.IQ),T.Y36(Y.xk),T.Y36(Y.ff),T.Y36(Y.YF),T.Y36(q.d6))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.YNc(1,Be,3,3,"h1",0),T.YNc(2,W,3,3,"h1",0),T.YNc(3,R,3,3,"h1",0),T.YNc(4,me,3,3,"h1",0),T.TgZ(5,"div",1),T.YNc(6,be,1,0,"mat-spinner",2),T.YNc(7,Se,9,9,"div",3),T.qZA(),T.TgZ(8,"div",4),T.TgZ(9,"button",5),T.NdJ("click",function(){return Tt.cancel()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"button",6),T.NdJ("click",function(){return Tt.submit()}),T._uU(13),T.ALo(14,"translate"),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(1),T.Q6J("ngIf",0===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",1===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",2===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",3===Tt.dialogType),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("disabled",Tt.loading||Tt.nameCtrl.invalid||Tt.descriptionCtrl.invalid),T.xp6(1),T.hij(" ",T.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[e.O5,w.uh,w.xY,I.$g,A.KE,C.Nt,E.Fj,E.Q7,E.JJ,E.oH,A.TO,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var nt=p(64080),Ve=p(9244);function X(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",8)}function z(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",9),T.TgZ(1,"span"),T._uU(2),T.ALo(3,"translate"),T.TgZ(4,"b"),T._uU(5),T.qZA(),T.qZA(),T._UZ(6,"br"),T.TgZ(7,"span"),T._uU(8),T.ALo(9,"translate"),T.TgZ(10,"b"),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T._UZ(13,"br"),T.TgZ(14,"span"),T._uU(15),T.ALo(16,"translate"),T.TgZ(17,"b"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.qZA(),T._UZ(20,"br"),T.TgZ(21,"span"),T._uU(22),T.ALo(23,"translate"),T.TgZ(24,"b"),T._uU(25),T.ALo(26,"translate"),T.qZA(),T.qZA(),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),T.xp6(3),T.Oqu(qe.group.name),T.xp6(3),T.hij(" ",T.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),T.xp6(3),T.Oqu(T.lcZ(12,12,qe.getSynchronizationType())),T.xp6(4),T.hij(" ",T.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),T.xp6(3),T.Oqu(T.lcZ(19,16,qe.getLastSyncState())),T.xp6(4),T.hij(" ",T.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),T.xp6(3),T.Oqu(T.lcZ(26,20,qe.getLastSyncTime()))}}function Q(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onForceStructure()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function D(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onForce()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let H=(()=>{class Ze{constructor(qe,Tt,jt,ci){this.dialogRef=qe,this.data=Tt,this.groupService=jt,this.notificator=ci,this.loading=!0}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onForceStructure(){this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1)}getSynchronizationType(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}isBasic(){return"BASIC"===this.type}isStructured(){return"STRUCTURED"===this.type}getLastSyncState(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}getLastSyncTime(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[nt.r.GROUP_SYNC_ENABLED,nt.r.GROUP_LAST_SYNC_STATE,nt.r.GROUP_LAST_SYNC_TIMESTAMP,nt.r.GROUP_STRUCTURE_SYNC_ENABLED,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(qe=>{this.group=qe,this.syncEnabled=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==this.syncEnabled&&"true"===this.syncEnabled&&(this.type="BASIC"),null!==this.structSyncEnabled&&this.structSyncEnabled&&(this.type="STRUCTURED"),this.loading=!1})}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.ff),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-icon-button","",3,"click"],["class","ml-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,X,1,0,"mat-spinner",1),T.YNc(5,z,27,22,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"div",4),T.TgZ(8,"button",5),T.NdJ("click",function(){return Tt.refresh()}),T.TgZ(9,"mat-icon"),T._uU(10,"refresh"),T.qZA(),T.qZA(),T.YNc(11,Q,3,4,"button",6),T.YNc(12,D,3,4,"button",6),T.TgZ(13,"button",7),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(6),T.Q6J("ngIf",Tt.isStructured()),T.xp6(1),T.Q6J("ngIf",Tt.isBasic()||Tt.isStructured()),T.xp6(2),T.hij(" ",T.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[w.uh,e.O5,I.$g,w.xY,w.H8,g.lW,O.Hw],pipes:[b.X$],styles:[""]}),Ze})();function V(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",7)}function xe(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Qe(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Te(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"div",8),T.TgZ(1,"mat-form-field"),T.TgZ(2,"mat-label"),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"input",9,10),T.NdJ("ngModelChange",function(jt){return T.CHM(qe),T.oxw().subject=jt}),T.qZA(),T.YNc(7,xe,3,3,"mat-error",11),T.qZA(),T.TgZ(8,"mat-form-field"),T.TgZ(9,"mat-label"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"textarea",12,13),T.NdJ("ngModelChange",function(jt){return T.CHM(qe),T.oxw().message=jt}),T.ALo(14,"translate"),T._uU(15," "),T.qZA(),T.YNc(16,Qe,3,3,"mat-error",11),T.qZA(),T.qZA()}if(2&Ze){const qe=T.MAs(6),Tt=T.MAs(13),jt=T.oxw();T.xp6(3),T.Oqu(T.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),T.xp6(2),T.Q6J("ngModel",jt.subject),T.xp6(2),T.Q6J("ngIf",qe.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",jt.message),T.xp6(4),T.Q6J("ngIf",Tt.invalid)}}let Ae=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.translate=Tt,this.notificator=jt,this.rtMessages=ci,this.data=vi,this.storeService=Ui,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var qe,Tt;(null===(Tt=null===(qe=this.data)||void 0===qe?void 0:qe.error)||void 0===Tt?void 0:Tt.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(qe=>{this.dialogRef.afterClosed().subscribe(()=>{const Tt="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),qe.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(Tt)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const qe=this.storeService.get("config");let Tt=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(Tt=Tt.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),Tt=Tt.concat(this.data.error.message,"\n","Perun instance: ",qe,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const jt=/"password":".+?"/;let ci=JSON.stringify(this.data.error.payload);ci=ci.replace(jt,'"password":"####"'),Tt=Tt.concat("Payload:\n"+ci+"\n\n")}return Tt=Tt.concat("Sent from new Perun Gui, version: ",p(4147).i8),Tt.split("\n").join("\n ")}parseMethod(qe){return qe&&this.methodRegexp.exec(qe)[1]}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(b.sK),T.Y36(q.V6),T.Y36(Y.Hr),T.Y36(w.WI),T.Y36(q.d6))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(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,Te,17,13,"div",2),T.TgZ(5,"div",3),T.TgZ(6,"div",4),T.TgZ(7,"button",5),T.NdJ("click",function(){return Tt.dialogRef.close()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",6),T.NdJ("click",function(){return Tt.sendBugReport()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(4),T.hij(" ",T.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),T.xp6(2),T.Q6J("disabled",""===Tt.message||""===Tt.subject||Tt.loading),T.xp6(1),T.hij(" ",T.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[w.uh,e.O5,I.$g,w.xY,A.KE,A.hX,C.Nt,E.Fj,E.Q7,E.JJ,E.On,A.TO,w.H8,g.lW],pipes:[b.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Ze})(),ae=(()=>{class Ze{constructor(qe,Tt,jt){this.dialogRef=qe,this.dialog=Tt,this.data=jt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const qe=(0,Ve.kZ)();qe.width="550px",qe.data={error:this.data.error},qe.autoFocus=!1,this.dialog.open(Ae,qe)}),this.dialogRef.close()}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.uw),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(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),T.TgZ(5,"div",3),T.TgZ(6,"button",4),T.NdJ("click",function(){return Tt.onBugReportClick()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T.NdJ("click",function(){return Tt.onCloseClick()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(Tt.data.title),T.xp6(2),T.hij(" ",Tt.data.description,"\n"),T.xp6(3),T.Q6J("hidden","error"!==Tt.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")," "))},directives:[w.uh,w.xY,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var i=p(34447);function o(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",3)}function d(Ze,Ot){1&Ze&&T._UZ(0,"th",15)}function l(Ze,Ot){if(1&Ze&&(T.TgZ(0,"td",16),T._uU(1),T.qZA()),2&Ze){const qe=Ot.$implicit;T.xp6(1),T.hij(" ",qe.userExtSource.extSource.name," ")}}function s(Ze,Ot){1&Ze&&T._UZ(0,"tr",17)}function r(Ze,Ot){1&Ze&&T._UZ(0,"tr",18)}function t(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"div"),T.TgZ(1,"div",4),T.TgZ(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,d,1,0,"th",8),T.YNc(13,l,2,1,"td",9),T.BQk(),T.YNc(14,s,1,0,"tr",10),T.YNc(15,r,1,0,"tr",11),T.qZA(),T.qZA(),T.TgZ(16,"div",12),T.TgZ(17,"button",13),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onCancel()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.TgZ(21,"button",14),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(22),T.ALo(23,"translate"),T.ALo(24,"customTranslate"),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const qe=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",qe.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",qe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",qe.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 Ze{constructor(qe,Tt,jt,ci,vi){this.dialogRef=qe,this.data=Tt,this.usersManagerService=jt,this.translate=ci,this.notificator=vi,this.force=!1,this.displayedColumns=["name"],ci.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(Ui=>this.successMessage=Ui)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.Fv),T.Y36(b.sK),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(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,o,1,0,"mat-spinner",1),T.YNc(6,t,25,23,"div",2),T.qZA()),2&qe&&(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(Tt.theme),T.xp6(1),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,w.H8,g.lW],pipes:[b.X$,i.a],styles:[""]}),Ze})();var a=p(74533);let c=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T.TgZ(3,"textarea",2),T._uU(4),T.qZA(),T.qZA(),T.TgZ(5,"div",3),T.TgZ(6,"button",4),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(Tt.title),T.xp6(3),T.Oqu(Tt.value),T.xp6(3),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),T.xp6(2),T.Q6J("cdkCopyToClipboard",Tt.value),T.xp6(1),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[w.uh,w.xY,a.IC,C.Nt,w.H8,g.lW,L.i3],pipes:[b.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),Ze})();function h(Ze,Ot){1&Ze&&T._UZ(0,"th",12)}function x(Ze,Ot){if(1&Ze&&(T.TgZ(0,"td",13),T._uU(1),T.qZA()),2&Ze){const qe=Ot.$implicit;T.xp6(1),T.Oqu(qe.displayName)}}function We(Ze,Ot){1&Ze&&T._UZ(0,"tr",14)}function At(Ze,Ot){1&Ze&&T._UZ(0,"tr",15)}let Ht=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi){this.dialogRef=qe,this.data=Tt,this.notificator=jt,this.translate=ci,this.attributesManager=vi,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new _.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":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":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(q.V6),T.Y36(b.sK),T.Y36(Y.H8))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(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,h,1,0,"th",5),T.YNc(13,x,2,1,"td",6),T.BQk(),T.YNc(14,We,1,0,"tr",7),T.YNc(15,At,1,0,"tr",8),T.qZA(),T.qZA(),T.TgZ(16,"div",9),T.TgZ(17,"button",10),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"button",11),T.NdJ("click",function(){return Tt.onSubmit()}),T._uU(21),T.ALo(22,"translate"),T.qZA(),T.qZA()),2&qe&&(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",Tt.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",Tt.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",Tt.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")," "))},directives:[w.uh,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})(),lt=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt,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 Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"mat-form-field"),T.TgZ(5,"textarea",2),T.NdJ("ngModelChange",function(ci){return Tt.attributeValue=ci}),T.qZA(),T.qZA(),T.qZA(),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA()),2&qe&&(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",Tt.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")," "))},directives:[w.uh,w.xY,A.KE,a.IC,C.Nt,E.Fj,E.JJ,E.On,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})(),Ut=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.qZA(),T.qZA(),T.TgZ(9,"div",3),T.TgZ(10,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.qZA()),2&qe&&(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(" ",Tt.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")," "))},directives:[w.uh,w.xY,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var mt=p(98380);function Lt(Ze,Ot){if(1&Ze&&(T.TgZ(0,"perun-web-apps-alert",9),T._uU(1),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(1),T.Oqu(qe.pendingEmailsMessage)}}function Ee(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Ge=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.data=Tt,this.translate=jt,this.notificator=ci,this.usersManagerService=vi,this.authService=Ui,this.pendingMails=[],jt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(Li=>this.successMessage=Li),jt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(Li=>this.pendingEmailsMessageStart=Li),jt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(Li=>this.pendingEmailsMessageEnd=Li)}ngOnInit(){this.emailControl=new E.NI(null,[E.kI.required,E.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(qe=>{this.pendingMails=qe.filter((jt,ci,vi)=>ci===vi.indexOf(jt));let Tt="";this.pendingMails.forEach(jt=>Tt+=`${jt===this.pendingMails[0]?"":", "}${jt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+Tt+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const Tt=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",Tt[0]+"//"+Tt[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(b.sK),T.Y36(q.V6),T.Y36(Y.Fv),T.Y36(q.e8))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(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,Lt,2,1,"perun-web-apps-alert",2),T.TgZ(6,"mat-form-field",3),T.TgZ(7,"label",3),T._UZ(8,"input",4),T.ALo(9,"translate"),T.ALo(10,"customTranslate"),T.qZA(),T.YNc(11,Ee,4,5,"mat-error",5),T.qZA(),T.qZA(),T.TgZ(12,"div",6),T.TgZ(13,"button",7),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.ALo(16,"customTranslate"),T.qZA(),T.TgZ(17,"button",8),T.NdJ("click",function(){return Tt.onSubmit()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,8,T.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),T.xp6(4),T.Q6J("ngIf",Tt.pendingMails.length),T.xp6(3),T.s9C("placeholder",T.lcZ(9,12,T.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),T.Q6J("formControl",Tt.emailControl),T.xp6(3),T.Q6J("ngIf",Tt.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",!Tt.emailControl.valid),T.xp6(1),T.hij(" ",T.lcZ(19,20,T.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[w.uh,w.xY,e.O5,mt.w,A.KE,C.Nt,E.Fj,E.Q7,E.JJ,E.oH,A.TO,w.H8,g.lW],pipes:[b.X$,i.a],styles:[""]}),Ze})();function U(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",7)}function k(Ze,Ot){1&Ze&&(T.TgZ(0,"div",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function ie(Ze,Ot){1&Ze&&T._UZ(0,"th",18)}function ce(Ze,Ot){if(1&Ze&&(T.TgZ(0,"td",19),T._uU(1),T.qZA()),2&Ze){const qe=Ot.$implicit;T.xp6(1),T.Oqu(qe)}}function He(Ze,Ot){1&Ze&&T._UZ(0,"tr",20)}function ct(Ze,Ot){1&Ze&&T._UZ(0,"tr",21)}function bt(Ze,Ot){if(1&Ze&&(T.TgZ(0,"perun-web-apps-alert",22),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze){const qe=T.oxw(2);T.Q6J("alert_type","warn"),T.xp6(1),T.hij(" ",T.lcZ(2,2,qe.data.alert)," ")}}function xt(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T.TgZ(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,k,3,3,"div",9),T.TgZ(5,"table",10),T.ynx(6,11),T.YNc(7,ie,1,0,"th",12),T.YNc(8,ce,2,1,"td",13),T.BQk(),T.YNc(9,He,1,0,"tr",14),T.YNc(10,ct,1,0,"tr",15),T.qZA(),T.YNc(11,bt,3,4,"perun-web-apps-alert",16),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,6,qe.data.description)," "),T.xp6(2),T.Q6J("ngIf",qe.data.showAsk),T.xp6(1),T.Q6J("dataSource",qe.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",qe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",qe.displayedColumns),T.xp6(1),T.Q6J("ngIf",qe.data.alert)}}function Yt(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"button",23),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function It(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Rt=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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","",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"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["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(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,U,1,0,"mat-spinner",1),T.YNc(5,xt,12,8,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.YNc(10,Yt,3,4,"button",5),T.YNc(11,It,3,4,"button",6),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,Tt.data.title)),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.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"===Tt.data.type),T.xp6(1),T.Q6J("ngIf","confirmation"===Tt.data.type))},directives:[w.uh,e.O5,I.$g,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,mt.w,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var Et=p(28258);let Bt=(()=>{class Ze{transform(qe){const Tt=qe.split(":");return Tt[Tt.length-1]}}return Ze.\u0275fac=function(qe){return new(qe||Ze)},Ze.\u0275pipe=T.Yjl({name:"parseGroupName",type:Ze,pure:!0}),Ze})();function Jt(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",7)}function ai(Ze,Ot){1&Ze&&(T.TgZ(0,"perun-web-apps-alert"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function mi(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function bi(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const yi=function(Ze){return{"min-width":Ze}};function Wi(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"mat-tree-node",16),T.TgZ(1,"li",17),T.TgZ(2,"div",18),T.NdJ("click",function(){const ci=T.CHM(qe).$implicit;return T.oxw(3).navigate(ci.id,ci.include)}),T._UZ(3,"button",19),T.TgZ(4,"div",20),T.TgZ(5,"span"),T._uU(6),T.ALo(7,"parseGroupName"),T.qZA(),T.YNc(8,mi,3,3,"span",21),T.YNc(9,bi,3,3,"span",21),T.qZA(),T.TgZ(10,"span",22),T._uU(11),T.qZA(),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const qe=Ot.$implicit,Tt=T.oxw(3);T.xp6(2),T.ekj("cursor-pointer",qe.direct||qe.include)("act-disabled",!qe.direct&&!qe.include),T.xp6(2),T.Q6J("ngStyle",T.VKq(11,yi,Tt.getMinWidth(qe.level))),T.xp6(2),T.Oqu(T.lcZ(7,9,qe.name)),T.xp6(2),T.Q6J("ngIf",qe.direct),T.xp6(1),T.Q6J("ngIf",qe.include),T.xp6(2),T.Oqu(qe.description)}}function gn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function cn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Ki(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"mat-nested-tree-node"),T.TgZ(1,"li"),T.TgZ(2,"div",17),T.TgZ(3,"button",24),T.TgZ(4,"mat-icon",25),T._uU(5),T.qZA(),T.qZA(),T.TgZ(6,"div",18),T.NdJ("click",function(){const ci=T.CHM(qe).$implicit;return T.oxw(3).navigate(ci.id,ci.include)}),T.TgZ(7,"div",20),T.TgZ(8,"span"),T._uU(9),T.ALo(10,"parseGroupName"),T.qZA(),T.YNc(11,gn,3,3,"span",21),T.YNc(12,cn,3,3,"span",21),T.qZA(),T.TgZ(13,"span",22),T._uU(14),T.qZA(),T.qZA(),T.qZA(),T.TgZ(15,"ul"),T.GkF(16,26),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const qe=Ot.$implicit,Tt=T.oxw(3);T.xp6(3),T.uIk("aria-label","Toggle "+qe.name),T.xp6(2),T.hij(" ",Tt.treeControl.isExpanded(qe)?"expand_more":"chevron_right"," "),T.xp6(1),T.ekj("cursor-pointer",qe.direct||qe.include)("act-disabled",!qe.direct&&!qe.include),T.xp6(1),T.Q6J("ngStyle",T.VKq(15,yi,Tt.getMinWidth(qe.level))),T.xp6(2),T.Oqu(T.lcZ(10,13,qe.name)),T.xp6(2),T.Q6J("ngIf",qe.direct),T.xp6(1),T.Q6J("ngIf",qe.include),T.xp6(2),T.Oqu(qe.description),T.xp6(1),T.ekj("example-tree-invisible",!Tt.treeControl.isExpanded(qe))}}function Tn(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-tree",13),T.YNc(1,Wi,12,13,"mat-tree-node",14),T.YNc(2,Ki,17,17,"mat-nested-tree-node",15),T.qZA()),2&Ze){const qe=T.oxw(2);T.Q6J("dataSource",qe.dataSource)("treeControl",qe.treeControl),T.xp6(2),T.Q6J("matTreeNodeDefWhen",qe.hasChild)}}function rn(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T.TgZ(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,ai,3,3,"perun-web-apps-alert",11),T.YNc(8,Tn,3,3,"mat-tree",12),T.qZA()),2&Ze){const qe=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",qe.formControl),T.xp6(2),T.Q6J("ngIf",!qe.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",qe.dataSource.data.length)}}const st=function(Ze){return{name:Ze}};let St=(()=>{class Ze{constructor(qe,Tt,jt){this.dialogRef=qe,this.data=Tt,this.groupsManagerService=jt,this.treeControl=new Et.VY(ci=>ci.children),this.dataSource=new J.WX,this.formControl=new E.NI(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(ci,vi)=>!!vi.children&&vi.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(qe=>{this.paths=qe,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(qe=>{const Tt=qe.trim().toLowerCase(),jt=this.paths.filter(ci=>ci.filter(vi=>vi.name.includes(Tt)).length);this.createGroupTree(jt),this.dataSource.data=this.groupTree}),this.userName=(0,Ve.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(qe,Tt=!1){window.open(`/organizations/${this.data.member.voId}/groups/${qe}${Tt?"/settings/relations":""}`,"_blank")}getMinWidth(qe){return String(400-40*qe)+"px"}recursiveSearch(qe,Tt,jt){for(const vi of qe)if(vi.name===Tt[jt].name)return Tt.length===jt+1?(vi.direct=!0,qe):(vi.children=Tt[++jt].name.includes(Tt[jt-1].name)?this.recursiveSearch(vi.children,Tt,jt):[{name:Tt[jt].name,id:Tt[jt-1].id,description:Tt[jt].description,direct:!1,include:!0,level:jt,children:[]}].concat(vi.children),qe);return qe.push({name:Tt[jt].name,id:Tt[jt].id,description:Tt[jt].description,direct:!1,include:!1,level:jt,children:[]}),this.recursiveSearch(qe,Tt,jt)}createGroupTree(qe){this.groupTree=[],qe.forEach(Tt=>{this.groupTree=this.recursiveSearch(this.groupTree,Tt,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.ff))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Jt,1,0,"mat-spinner",2),T.YNc(5,rn,9,9,"div",3),T.TgZ(6,"div",4),T.TgZ(7,"div",5),T.TgZ(8,"button",6),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.xp6(2),T.hij(" ",T.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",T.VKq(9,st,Tt.userName))," "),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[w.uh,e.O5,I.$g,w.xY,A.KE,C.Nt,E.Fj,E.JJ,E.oH,mt.w,J.gi,J.fQ,J.uo,J.eu,g.lW,e.PC,J.GZ,O.Hw,J.Ar,w.H8],pipes:[b.X$,Bt],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}"]}),Ze})(),ot=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.router=Tt}onClose(){this.router.navigate([]),this.dialogRef.close()}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(ge.F0))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"perun-web-apps-alert",2),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA(),T.TgZ(7,"div",3),T.TgZ(8,"button",4),T.NdJ("click",function(){return Tt.onClose()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.qZA()),2&qe&&(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")," "))},directives:[w.uh,w.xY,mt.w,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var Ke=p(62383);function vt(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-radio-button",16),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function F(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-radio-button",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Ye(Ze,Ot){1&Ze&&(T.TgZ(0,"perun-web-apps-alert",18),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let gt=(()=>{class Ze{constructor(qe){this.dialogRef=qe,this.canExtendMembership=!1,this.expirationChanged=new T.vpe,this.statusChange=new T.vpe,this.expirationControl=new E.NI(null)}ngOnInit(){const qe=new Date;this.currentDate=(0,e.p6)(new Date(qe.getFullYear(),qe.getMonth(),qe.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(qe){return(0,e.p6)(qe,"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 Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:37,vars:37,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(qe,Tt){if(1&qe){const jt=T.EpF();T.TgZ(0,"div",0),T.TgZ(1,"div",1),T.TgZ(2,"p"),T.TgZ(3,"strong"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._uU(6),T.ALo(7,"parseDate"),T.qZA(),T.TgZ(8,"p"),T.TgZ(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(vi){return Tt.newExpiration=vi}),T.TgZ(15,"mat-radio-button",3),T.TgZ(16,"mat-form-field",4),T.NdJ("click",function(){return T.CHM(jt),T.MAs(23).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 Tt.setExpiration()}),T.qZA(),T._UZ(21,"mat-datepicker-toggle",6),T._UZ(22,"mat-datepicker",7,8),T.qZA(),T.qZA(),T.YNc(24,vt,3,3,"mat-radio-button",9),T.YNc(25,F,3,3,"mat-radio-button",10),T.TgZ(26,"mat-radio-button",11),T._uU(27),T.ALo(28,"translate"),T.qZA(),T.qZA(),T.YNc(29,Ye,3,3,"perun-web-apps-alert",12),T.qZA(),T.TgZ(30,"div",13),T.TgZ(31,"button",14),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(32),T.ALo(33,"translate"),T.qZA(),T.TgZ(34,"button",15),T.NdJ("click",function(){return Tt.onChange()}),T._uU(35),T.ALo(36,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&qe){const jt=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,Tt.currentExpiration)," "),T.xp6(4),T.Oqu(T.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),T.xp6(2),T.hij(" ",Tt.newExpiration?T.lcZ(13,27,Tt.newExpiration):"never"," "),T.xp6(2),T.Q6J("ngModel",Tt.newExpiration),T.xp6(1),T.s9C("value",Tt.expirationControl.value),T.xp6(3),T.Oqu(T.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),T.xp6(2),T.Q6J("min",Tt.minDate)("max",Tt.maxDate)("formControl",Tt.expirationControl)("matDatepicker",jt),T.xp6(1),T.Q6J("for",jt)("disabled",!1),T.xp6(1),T.Q6J("disabled",!1),T.xp6(2),T.Q6J("ngIf",Tt.canExtendMembership&&"vo"===Tt.mode),T.xp6(1),T.Q6J("ngIf",Tt.canExtendMembership&&"group"===Tt.mode),T.xp6(2),T.hij(" ",T.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),T.xp6(2),T.Q6J("ngIf","EXPIRED"===Tt.status&&("never"===Tt.newExpiration||Tt.parseDate(Tt.expirationControl.value)>Tt.currentDate)),T.xp6(3),T.hij(" ",T.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Tt.expirationControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[w.xY,P.VQ,E.JJ,E.On,P.U0,A.KE,A.hX,C.Nt,E.Fj,m.hl,E.oH,m.nW,A.R9,m.Mq,e.O5,mt.w,w.H8,g.lW],pipes:[b.X$,Ke.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}"]}),Ze})();function Dt(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function ri(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){return T.CHM(qe),T.oxw().changeStatus=!0})("expirationChanged",function(jt){return T.CHM(qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("minDate",qe.minDate)("maxDate",qe.maxDate)("currentExpiration",qe.currentExpiration)("newExpiration",qe.newExpiration)("canExtendMembership",qe.canExtendMembership)("mode","group")("status",qe.status)}}let ti=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.groupManager=vi,this.translate=Ui,this.notificator=Li,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Ui.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){var qe,Tt;this.status=this.data.status,this.loading=!0;const jt=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()):this.minDate=new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=null!==(Tt=null===(qe=this.expirationAttr)||void 0===qe?void 0:qe.value)&&void 0!==Tt?Tt:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(jt,"yyyy-MM-dd","en"),this.maxDate=jt):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,nt.r.GROUP_DEF_EXPIRATION_RULES).subscribe(ci=>{null!==ci.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(vi=>{this.canExtendMembership=!!vi,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(qe){this.loading=!0,"groupRules"===qe?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===qe?null:qe,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe(Tt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Tt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.H8),T.Y36(Y.uq),T.Y36(Y.ff),T.Y36(b.sK),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,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","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Dt,1,0,"mat-spinner",2),T.YNc(5,ri,1,7,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,gt],pipes:[b.X$],styles:[""]}),Ze})();var Di=p(13469);function wi(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function $i(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"form",5),T.TgZ(1,"div",6),T.TgZ(2,"mat-form-field"),T.TgZ(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(qe);const jt=T.oxw();return jt.showOldPassword=!jt.showOldPassword}),T._uU(8),T.qZA(),T.YNc(9,wi,3,3,"mat-error",9),T.qZA(),T._UZ(10,"perun-web-apps-password-form",10),T.qZA(),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("formGroup",qe.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",qe.showOldPassword?"text":"password"),T.xp6(2),T.hij(" ",qe.showOldPassword?"visibility_off":"visibility"," "),T.xp6(1),T.Q6J("ngIf",qe.oldPwd.hasError("required")),T.xp6(1),T.Q6J("formGroup",qe.formGroup)("namespace",qe.data.namespace)}}function qi(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",11)}function Fi(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"div",12),T.TgZ(1,"div",13),T.TgZ(2,"button",14),T.NdJ("click",function(){return T.CHM(qe),T.oxw().close()}),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"button",15),T.NdJ("click",function(){return T.CHM(qe),T.oxw().changePassword()}),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const qe=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",qe.formGroup.invalid||qe.formGroup.pending),T.xp6(1),T.hij(" ",T.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Ji=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=qe,this.data=Tt,this._formBuilder=jt,this.usersManagerService=ci,this.apiRequestConfiguration=vi,this.notificator=Ui,this.translate=Li,this.showOldPassword=!1,Li.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",E.kI.required],passwordCtrl:["",E.kI.required,[(0,oe.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Ve.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(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(E.qu),T.Y36(Y.Fv),T.Y36(q.F5),T.Y36(q.V6),T.Y36(b.sK))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.YNc(4,$i,11,9,"form",2),T.YNc(5,qi,1,0,"mat-spinner",3),T.qZA(),T.YNc(6,Fi,8,7,"div",4)),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),T.xp6(3),T.Q6J("ngIf",!Tt.loading),T.xp6(1),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,w.xY,e.O5,E._Y,E.JL,E.sg,A.KE,A.hX,E.Fj,C.Nt,E.JJ,E.u,E.Q7,O.Hw,A.R9,A.TO,Di.G,I.$g,w.H8,g.lW],pipes:[b.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}"]}),Ze})();function _n(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function Ni(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){return T.CHM(qe),T.oxw().changeStatus=!0})("expirationChanged",function(jt){return T.CHM(qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("minDate",qe.minDate)("maxDate",qe.maxDate)("currentExpiration",qe.currentExpiration)("newExpiration",qe.newExpiration)("canExtendMembership",qe.canExtendMembership)("mode","vo")("status",qe.status)}}let Ri=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.translate=vi,this.notificator=Ui,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,vi.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Li=>this.successMessage=Li)}ngOnInit(){var qe,Tt;this.status=this.data.status,this.loading=!0;const jt=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()):this.minDate=new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=null!==(Tt=null===(qe=this.expirationAttr)||void 0===qe?void 0:qe.value)&&void 0!==Tt?Tt:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(jt,"yyyy-MM-dd","en"),this.maxDate=jt):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,nt.r.VO_DEF_EXPIRATION_RULES).subscribe(ci=>{null!==ci.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(vi=>{this.canExtendMembership=!!vi,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(qe){this.loading=!0,"voRules"===qe?this.memberManager.extendMembership(this.data.memberId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===qe?null:qe,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(Tt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Tt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.H8),T.Y36(Y.uq),T.Y36(b.sK),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,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","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,_n,1,0,"mat-spinner",2),T.YNc(5,Ni,1,7,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,gt],pipes:[b.X$],styles:[""]}),Ze})();function sn(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function Xi(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("expirationChanged",function(jt){return T.CHM(qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("minDate",qe.minDate)("currentExpiration",qe.currentExpiration)("newExpiration",qe.newExpiration)("mode","sponsor")}}let en=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.groupManager=vi,this.translate=Ui,this.notificator=Li,this.loading=!1,Ui.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const qe=new Date;this.minDate=new Date(qe.getFullYear(),qe.getMonth(),qe.getDate()),this.loading=!1}onExpirationChanged(qe){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===qe?null:qe).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.H8),T.Y36(Y.uq),T.Y36(Y.ff),T.Y36(b.sK),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,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(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,sn,1,0,"mat-spinner",2),T.YNc(5,Xi,1,4,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,gt],pipes:[b.X$],styles:[""]}),Ze})();function an(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function dn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function wn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function xn(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"mat-radio-group",12),T.NdJ("ngModelChange",function(jt){return T.CHM(qe),T.oxw(2).asyncValidation=jt}),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(),T.qZA()}if(2&Ze){const qe=T.oxw(2);T.Q6J("ngModel",qe.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 Oi(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function kn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function Nn(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",5),T.TgZ(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.qZA(),T.TgZ(8,"p"),T.TgZ(9,"strong",8),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.qZA(),T.TgZ(13,"p"),T.TgZ(14,"strong",8),T._uU(15),T.ALo(16,"translate"),T.qZA(),T._uU(17),T.qZA(),T.YNc(18,dn,3,3,"span",9),T.YNc(19,wn,3,3,"span",9),T.YNc(20,xn,10,12,"mat-radio-group",10),T.YNc(21,Oi,3,3,"span",9),T.YNc(22,kn,3,3,"span",9),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(2),T.hij(" ",qe.group.name," "),T.xp6(2),T.hij("#",qe.group.id,""),T.xp6(1),T.hij(" - ",qe.resource.name," "),T.xp6(2),T.hij("#",qe.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(" ",qe.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(" ",qe.getReversedStatus()," "),T.xp6(1),T.Q6J("ngIf","INACTIVE"===qe.status||"FAILED"===qe.status),T.xp6(1),T.Q6J("ngIf","ACTIVE"===qe.status),T.xp6(1),T.Q6J("ngIf","INACTIVE"===qe.status||"FAILED"===qe.status),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===qe.status||"FAILED"===qe.status)&&!1===qe.asyncValidation),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===qe.status||"FAILED"===qe.status)&&!0===qe.asyncValidation)}}function Mt(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"div",15),T.TgZ(1,"button",16),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onCancel()}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",17),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA()}if(2&Ze){const qe=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",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===qe.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Qt=(()=>{class Ze{constructor(qe,Tt,jt,ci){this.dialogRef=qe,this.data=Tt,this.resourceService=jt,this.groupService=ci,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(qe=>{this.resource=qe,this.groupService.getGroupById(this.data.groupId).subscribe(Tt=>{this.group=Tt,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 Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.xk),T.Y36(Y.ff))},Ze.\u0275cmp=T.Xpm({type:Ze,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"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,an,1,0,"mat-spinner",1),T.YNc(5,Nn,23,17,"div",2),T.YNc(6,Mt,7,7,"div",3),T.qZA()),2&qe&&(T.Tol(Tt.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",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,w.xY,P.VQ,E.JJ,E.On,P.U0,w.H8,g.lW],pipes:[b.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),Ze})();var rt=p(90995);let kt=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi){this.dialogRef=qe,this.data=Tt,this.notificator=jt,this.usersService=ci,this.translate=vi,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.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(qe){this.force=qe.force,qe.deleted?this.anonymizeUser():this.onCancel()}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(q.V6),T.Y36(Y.Fv),T.Y36(b.sK))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"perun-web-apps-delete-entity-dialog",0),T.NdJ("deleted",function(ci){return Tt.onSubmit(ci)}),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(1),T.Q6J("entityNames",Tt.dataSource)("entityType","user")("relations",Tt.relations)("loading",Tt.loading)("anonymize",!0))},directives:[rt.e],styles:[""]}),Ze})()},90995:($e,_e,p)=>{"use strict";p.d(_e,{e:()=>Be});var e=p(5e3),b=p(93075),_=p(32075),w=p(69808),g=p(20773),A=p(48966),E=p(47423),C=p(25245),I=p(14623),P=p(98380),m=p(67322),L=p(98833),O=p(51062);let G=(()=>{class W{constructor(me){this.translate=me}transform(me){return this.translate.instant(me?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return W.\u0275fac=function(me){return new(me||W)(e.Y36(O.sK,16))},W.\u0275pipe=e.Yjl({name:"deleteDialogType",type:W,pure:!0}),W})();var ne=p(31359);function ge(W,R){1&W&&e._UZ(0,"mat-spinner",2)}const J=function(W){return{action:W}};function Me(W,R){if(1&W&&(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&W){const me=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,J,e.lcZ(3,9,me.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",me.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",me.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function oe(W,R){if(1&W&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&W){const me=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,J,e.lcZ(3,5,me.anonymize)))," ",me.entityType," ? ")}}function Re(W,R){1&W&&e._UZ(0,"th",18)}function T(W,R){if(1&W&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&W){const me=R.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,me):me.name," ")}}function j(W,R){1&W&&e._UZ(0,"tr",20)}function Y(W,R){1&W&&e._UZ(0,"tr",21)}function q(W,R){if(1&W){const me=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){return e.CHM(me),e.oxw(2).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&W){const me=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,J,e.lcZ(5,5,e.lcZ(6,7,me.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const te=function(){return["name"]};function ue(W,R){if(1&W){const me=e.EpF();e.TgZ(0,"div"),e.TgZ(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,Me,10,19,"div",5),e.YNc(8,oe,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,Re,1,0,"th",8),e.YNc(12,T,3,3,"td",9),e.BQk(),e.YNc(13,j,1,0,"tr",10),e.YNc(14,Y,1,0,"tr",11),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return e.CHM(me),e.oxw().onCancel()}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){return e.CHM(me),e.oxw().onDelete()}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,q,8,13,"button",15),e.qZA(),e.qZA()}if(2&W){const me=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,J,e.lcZ(4,13,e.lcZ(5,15,me.anonymize))))," ",me.entityType," "),e.xp6(5),e.Q6J("ngIf",!me.disableForce),e.xp6(1),e.Q6J("ngIf",me.disableForce),e.xp6(1),e.Q6J("dataSource",me.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,J,e.lcZ(22,22,e.lcZ(23,24,me.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!me.disableForce)}}function de(W,R){if(1&W&&(e.TgZ(0,"mat-list-item"),e.TgZ(1,"span"),e.TgZ(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&W){const me=R.$implicit;e.xp6(4),e.hij(" ",me," ")}}function Le(W,R){if(1&W&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&W){const me=e.oxw(2);e.xp6(1),e.hij(" ",me.anotherMessage," ")}}function Ue(W,R){1&W&&e._UZ(0,"th",18)}function ze(W,R){if(1&W&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&W){const me=R.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,me):me.name," ")}}function le(W,R){1&W&&e._UZ(0,"tr",20)}function je(W,R){1&W&&e._UZ(0,"tr",21)}function ye(W,R){if(1&W){const me=e.EpF();e.TgZ(0,"div"),e.TgZ(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),e.TgZ(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,de,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,Ue,1,0,"th",8),e.YNc(21,ze,3,3,"td",9),e.BQk(),e.YNc(22,le,1,0,"tr",10),e.YNc(23,je,1,0,"tr",11),e.qZA(),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.qZA(),e.TgZ(29,"div",12),e.TgZ(30,"button",13),e.NdJ("click",function(){return e.CHM(me),e.oxw().onCancel()}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){return e.CHM(me),e.oxw().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(),e.qZA(),e.qZA()}if(2&W){const me=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,J,e.lcZ(4,20,e.lcZ(5,22,me.anonymize))))," ",me.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",me.relations),e.xp6(1),e.Q6J("ngIf",me.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,J,e.lcZ(17,31,me.anonymize)))," ",me.entityType," ? "),e.xp6(3),e.Q6J("dataSource",me.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,J,e.lcZ(27,36,e.lcZ(28,38,me.anonymize))))),e.Q6J("formControl",me.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",me.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,J,e.lcZ(38,45,e.lcZ(39,47,me.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let Be=(()=>{class W{constructor(){this.entityNames=new _.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 b.NI("",[b.kI.required,b.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return W.\u0275fac=function(me){return new(me||W)},W.\u0275cmp=e.Xpm({type:W,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(me,be){1&me&&(e.YNc(0,ge,1,0,"mat-spinner",0),e.YNc(1,ue,25,32,"div",1),e.YNc(2,ye,41,61,"div",1)),2&me&&(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))},directives:[w.O5,g.$g,A.uh,A.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,A.H8,E.lW,C.Hw,I.i$,w.sg,I.Tg,P.w,m.KE,L.Nt,b.Fj,b.JJ,b.oH],pipes:[O.X$,w.rS,G,ne.d,w.gd],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),W})()},50301:($e,_e,p)=>{"use strict";p.d(_e,{hT:()=>b,Kd:()=>w,YH:()=>g});var e=p(5e3);let b=(()=>{class A{constructor(C){this.elementRef=C}ngOnInit(){this.elementRef.nativeElement.focus()}}return A.\u0275fac=function(C){return new(C||A)(e.Y36(e.SBq))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsAutoFocus",""]]}),A})();var _=p(36908);let w=(()=>{class A{constructor(C){this.router=C}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return A.\u0275fac=function(C){return new(C||A)(e.Y36(_.xw))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(C,I){1&C&&e.NdJ("click",function(){return I.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),A})(),g=(()=>{class A{onClick(C){if(1===C.button&&null!=this.perunWebAppsMiddleClickRouterLink){const I=this.perunWebAppsMiddleClickRouterLink.join("/"),P=location.search;window.open(I+P)}}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(C,I){1&C&&e.NdJ("mouseup",function(m){return I.onClick(m)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),A})()},45323:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>e});var e=(()=>{return(b=e||(e={})).PERUNADMIN="PERUNADMIN",b.PERUNOBSERVER="PERUNOBSERVER",b.VOADMIN="VOADMIN",b.GROUPADMIN="GROUPADMIN",b.SELF="SELF",b.FACILITYADMIN="FACILITYADMIN",b.FACILITIYOBSERVER="FACILITYOBSERVER",b.RESOURCEADMIN="RESOURCEADMIN",b.RESOURCESELFSERVICE="RESOURCESELFSERVICE",b.REGISTRAR="REGISTRAR",b.ENGINE="ENGINE",b.RPC="RPC",b.NOTIFICATIONS="NOTIFICATIONS",b.SERVICEUSER="SERVICEUSER",b.SPONSOR="SPONSOR",b.VOOBSERVER="VOOBSERVER",b.TOPGROUPCREATOR="TOPGROUPCREATOR",b.SECURITYADMIN="SECURITYADMIN",b.CABINETADMIN="CABINETADMIN",b.UNKNOWNROLENAME="UNKNOWNROLENAME",e;var b})()},28499:($e,_e,p)=>{"use strict";p.d(_e,{E3:()=>m,yT:()=>L.y});var e=p(69808),b=p(67322),_=p(29772),w=p(93075),g=p(98833),A=p(51062),E=p(20773),C=p(25245),I=p(63189),P=p(5e3);let m=(()=>{class G{}return G.\u0275fac=function(ge){return new(ge||G)},G.\u0275mod=P.oAB({type:G}),G.\u0275inj=P.cJS({providers:[],imports:[[e.ez,b.lN,_.AV,w.UX,g.c,A.aw,E.Cq,C.Ps,I.r]]}),G})();var L=p(47549);p(13469)},13469:($e,_e,p)=>{"use strict";p.d(_e,{G:()=>Re});var e=p(47549),b=p(36908),_=p(32105),w=p(5e3),g=p(51062),A=p(93075),E=p(67322),C=p(29772),I=p(98833),P=p(69808),m=p(20773),L=p(25245),O=p(98380);function G(T,j){1&T&&w._UZ(0,"mat-spinner",12),2&T&&w.Q6J("diameter",18)}function ne(T,j){if(1&T&&(w.TgZ(0,"mat-icon",13),w._uU(1," error "),w.qZA()),2&T){const Y=w.oxw();w.Q6J("matTooltip",Y.getErrorTooltip())("matTooltipDisabled",!Y.formGroup.get("passwordCtrl").hasError("backendError"))}}function ge(T,j){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function J(T,j){if(1&T&&(w.TgZ(0,"mat-error",14),w._uU(1),w.qZA()),2&T){const Y=w.oxw();w.Q6J("matTooltip",Y.getErrorTooltip()),w.xp6(1),w.Oqu(Y.getErrorTooltip())}}function Me(T,j){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function oe(T,j){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let Re=(()=>{class T{constructor(Y,q,te){this.translator=Y,this.usersManagerService=q,this.store=te,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(Y=>{var q;const te=Y.userAttributes.find(ue=>"preferredLanguage"===ue.friendlyName);this.language=null!==(q=null==te?void 0:te.value)&&void 0!==q?q:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),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 Y=this.formGroup.get("passwordCtrl").getError("backendError");return Y&&(Y=Y.replace(":null","")),Y}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(Y=>Y.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(Y=>"default"===Y.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return T.\u0275fac=function(Y){return new(Y||T)(w.Y36(g.sK),w.Y36(_.Fv),w.Y36(b.d6))},T.\u0275cmp=w.Xpm({type:T,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[w.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["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"],["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(Y,q){1&Y&&(w.TgZ(0,"div",0),w.TgZ(1,"mat-form-field",1),w._UZ(2,"input",2),w.ALo(3,"translate"),w.YNc(4,G,1,1,"mat-spinner",3),w.TgZ(5,"mat-icon",4),w.NdJ("click",function(){return q.showNewPassword=!q.showNewPassword}),w._uU(6),w.qZA(),w.YNc(7,ne,2,2,"mat-icon",5),w.YNc(8,ge,3,3,"mat-error",6),w.YNc(9,J,2,2,"mat-error",7),w.qZA(),w.TgZ(10,"mat-form-field",8),w.TgZ(11,"mat-label"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w._UZ(14,"input",9),w.TgZ(15,"mat-icon",4),w.NdJ("click",function(){return q.showPasswordConfirm=!q.showPasswordConfirm}),w._uU(16),w.qZA(),w.YNc(17,Me,3,3,"mat-error",6),w.YNc(18,oe,3,3,"mat-error",6),w.qZA(),w.TgZ(19,"perun-web-apps-alert",10),w._UZ(20,"div",11),w.qZA(),w.qZA()),2&Y&&(w.Q6J("formGroup",q.formGroup),w.xp6(1),w.Q6J("matTooltip",q.getPasswordDisabledTooltip())("matTooltipDisabled",q.formGroup.get("passwordCtrl").enabled),w.xp6(1),w.s9C("placeholder",w.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),w.Q6J("type",q.showNewPassword?"text":"password")("required",q.passwordRequired)("errorStateMatcher",q.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",q.formGroup.get("passwordCtrl").pending),w.xp6(2),w.hij(" ",q.showNewPassword?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordCtrl").dirty&&null!==q.formGroup.get("passwordCtrl").errors),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordCtrl").hasError("backendError")),w.xp6(3),w.Oqu(w.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),w.xp6(2),w.Q6J("type",q.showPasswordConfirm?"text":"password")("required",q.passwordRequired),w.xp6(2),w.hij(" ",q.showPasswordConfirm?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordAgainCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),w.xp6(2),w.Q6J("innerHTML",q.passwordRequirement,w.oJD))},directives:[A.JL,A.sg,E.KE,C.gM,I.Nt,A.Fj,A.JJ,A.u,A.Q7,P.O5,m.$g,E.R9,L.Hw,E.TO,E.hX,O.w],pipes:[g.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:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>A,y:()=>E});var e=p(98723),b=p(21086),_=p(87545),w=p(24850),g=p(27221);class A{isErrorState(I){return!(!(null==I?void 0:I.invalid)||!(null==I?void 0:I.dirty))}}const E=(C,I,P,m=500)=>L=>(0,e.H)(m).pipe((0,_.w)(()=>(P.dontHandleErrorForNext(),C&&"No namespace"!==C?I.checkPasswordStrength(L.value,C):(0,b.of)(null))),(0,w.U)(()=>null),(0,g.K)(O=>{const G=O.error,ne={backendError:G.message.substring(G.message.indexOf(":")+1)};return(0,b.of)(ne)}))},32105:($e,_e,p)=>{"use strict";p.d(_e,{Us:()=>ze,au:()=>Te,sY:()=>ye,H8:()=>E,jw:()=>C,Ct:()=>I,VK:()=>A,WY:()=>m,KG:()=>O,IQ:()=>G,ff:()=>ge,uq:()=>Me,aC:()=>oe,Hr:()=>Re,tk:()=>T,xk:()=>j,t7:()=>Y,KK:()=>q,Ob:()=>te,Dy:()=>H,Fv:()=>ue,FW:()=>de,YF:()=>Le});var e=p(40520);class b{encodeKey(ae){return encodeURIComponent(ae)}encodeValue(ae){return encodeURIComponent(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}var _=p(5e3);const w=new _.OlP("basePath");class A{constructor(ae={}){this.apiKeys=ae.apiKeys,this.username=ae.username,this.password=ae.password,this.accessToken=ae.accessToken,this.basePath=ae.basePath,this.withCredentials=ae.withCredentials,this.encoder=ae.encoder,this.credentials=ae.credentials?ae.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(ae){if(0===ae.length)return;const i=ae.find(o=>this.isJsonMime(o));return void 0===i?ae[0]:i}selectHeaderAccept(ae){if(0===ae.length)return;const i=ae.find(o=>this.isJsonMime(o));return void 0===i?ae[0]:i}isJsonMime(ae){const i=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==ae&&(i.test(ae)||"application/json-patch+json"===ae.toLowerCase())}lookupCredential(ae){const i=this.credentials[ae];return"function"==typeof i?i():i}}let E=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}convertAttributeToNonunique(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}convertAttributeToUnique(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}createAttributeDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteAttributeDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attribute"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteAttributeDefinitions(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"attributes[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllAttributeDefinitions(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAttribute(i,o,d,l,s,r,t,n,a,c,h,x="body",We=!1,At){let Ht=new e.LE({encoder:this.encoder});null!=i&&(Ht=this.addToHttpParams(Ht,i,"attributeName")),null!=o&&(Ht=this.addToHttpParams(Ht,o,"attributeId")),null!=d&&(Ht=this.addToHttpParams(Ht,d,"facility")),null!=l&&(Ht=this.addToHttpParams(Ht,l,"user")),null!=s&&(Ht=this.addToHttpParams(Ht,s,"vo")),null!=r&&(Ht=this.addToHttpParams(Ht,r,"resource")),null!=t&&(Ht=this.addToHttpParams(Ht,t,"member")),null!=n&&(Ht=this.addToHttpParams(Ht,n,"group")),null!=a&&(Ht=this.addToHttpParams(Ht,a,"host")),null!=c&&(Ht=this.addToHttpParams(Ht,c,"userExtSource")),null!=h&&(Ht=this.addToHttpParams(Ht,h,"key"));let Ut,lt=this.defaultHeaders;Ut=this.configuration.lookupCredential("BasicAuth"),Ut&&(lt=lt.set("Authorization","Basic "+Ut)),Ut=this.configuration.lookupCredential("BearerAuth"),Ut&&(lt=lt.set("Authorization","Bearer "+Ut));let mt=At&&At.httpHeaderAccept;void 0===mt&&(mt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==mt&&(lt=lt.set("Accept",mt));let Lt=At&&At.context;void 0===Lt&&(Lt=new e.qT);let Ee="json";return mt&&(Ee=mt.startsWith("text")?"text":this.configuration.isJsonMime(mt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Lt,params:Ht,responseType:Ee,withCredentials:this.configuration.withCredentials,headers:lt,observe:x,reportProgress:We})}getAttributeDefinitionById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributeDefinitionByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributeDefinitionsByNamespace(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"namespace"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==o)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"format")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAttributeModulesDependenciesGraphText(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"format"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributePolicyCollections(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributeRights(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributesDefinitionWithRights(i,o,d,l,s,r,t,n,a="body",c=!1,h){let x=new e.LE({encoder:this.encoder});null!=i&&(x=this.addToHttpParams(x,i,"member")),null!=o&&(x=this.addToHttpParams(x,o,"user")),null!=d&&(x=this.addToHttpParams(x,d,"vo")),null!=l&&(x=this.addToHttpParams(x,l,"group")),null!=s&&(x=this.addToHttpParams(x,s,"resource")),null!=r&&(x=this.addToHttpParams(x,r,"facility")),null!=t&&(x=this.addToHttpParams(x,t,"host")),null!=n&&(x=this.addToHttpParams(x,n,"userExtSource"));let At,We=this.defaultHeaders;At=this.configuration.lookupCredential("BasicAuth"),At&&(We=We.set("Authorization","Basic "+At)),At=this.configuration.lookupCredential("BearerAuth"),At&&(We=We.set("Authorization","Bearer "+At));let Ht=h&&h.httpHeaderAccept;void 0===Ht&&(Ht=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ht&&(We=We.set("Accept",Ht));let lt=h&&h.context;void 0===lt&&(lt=new e.qT);let Ut="json";return Ht&&(Ut=Ht.startsWith("text")?"text":this.configuration.isJsonMime(Ht)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:lt,params:x,responseType:Ut,withCredentials:this.configuration.withCredentials,headers:We,observe:a,reportProgress:c})}getEntitylessAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"key")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEntitylessAttributesByKey(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"key"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getEntitylessAttributesByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attrName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getEntitylessAttributesWithKeys(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attrName")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEntitylessKeys(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityResourceUserMemberAttributes(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),null!=d&&(n=this.addToHttpParams(n,d,"user")),null!=l&&(n=this.addToHttpParams(n,l,"member"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getFacilityUserAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupResourceAttributeById(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupResourceAttributeByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupResourceAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"host"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getLogins(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getLogins.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberAndUserAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAndUserAttributesByNames(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroupAndUserAttributesByNames(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberGroupAttributeById(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberGroupAttributeByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberGroupAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroupAttributesByNames(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberResourceAttributeById(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAttributeByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRequiredAttributesFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRequiredAttributesFacilityService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesFacilityServices(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")}),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesGroupResourceService(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"group"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesHostService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==o)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesMemberGroup(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service")),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"group")),null!=l&&(a=this.addToHttpParams(a,l,"member")),null!=s&&(a=this.addToHttpParams(a,s,"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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}getRequiredAttributesMemberGroupService(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"group")),null!=d&&(n=this.addToHttpParams(n,d,"member")),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesMemberResource(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesMemberResourceService(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),null!=d&&(n=this.addToHttpParams(n,d,"member")),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRequiredAttributesResourceService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesResourceServices(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")}),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRequiredAttributesUserFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesVoService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourceAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"resource")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"workWithGroupAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getResourceGroupAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceGroupMemberAttributesByNames(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group")),null!=d&&(n=this.addToHttpParams(n,d,"member")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userExtSource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserExtSourceAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserFacilityAttributeById(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getUserFacilityAttributeByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getUserFacilityAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(i,o,d,l,s,r,t="body",n=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"facility")),null!=o&&(c=this.addToHttpParams(c,o,"resource")),null!=d&&(c=this.addToHttpParams(c,d,"group")),null!=l&&(c=this.addToHttpParams(c,l,"user")),null!=s&&(c=this.addToHttpParams(c,s,"member")),r&&r.forEach(lt=>{c=this.addToHttpParams(c,lt,"attributes[]")});let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}removeAttributesForFacilityResourceUserMember(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility")),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"user")),null!=l&&(a=this.addToHttpParams(a,l,"member")),s&&s.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"attributes[]")});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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}removeEntitylessAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"key")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupResourceAttribute(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeGroupResourceAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attributes[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeHostAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHostAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")}),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttribute(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attributes[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeMemberResourceAttribute(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberResourceAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeResourceAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUesAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserExtSourceAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserFacilityAttribute(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeUserFacilityAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeVoAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setAttributePolicyCollections(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setAttributeRights(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setEntitylessAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityResourceUserMemberAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupResourceAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupResourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setHostAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setHostAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberGroupAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberGroupWithUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberResourceAndUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberResourceAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberResourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberWithUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceGroupWithGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserExtSourceAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserExtSourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserFacilityAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserFacilityAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setVoAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setVoAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateAttributeDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),C=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}auditMessagesManagerLog(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"msg"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}createAuditerConsumer(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consumerName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllAuditerConsumers(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAuditerMessagesCount(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getLastMessageId(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMessages(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"count"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMessagesByCount(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"count"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMessagesPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}pollConsumerMessages(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consumerName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}setLastProcessedId(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==o)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"consumerName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),I=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}getAllPolicies(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllRolesManagementRules(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAuthzAdminGroups(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==o)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==d)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"role")),null!=o&&(t=this.addToHttpParams(t,o,"complementaryObjectId")),null!=d&&(t=this.addToHttpParams(t,d,"complementaryObjectName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAuthzRichAdmins(i,o,d,l,s,r,t="body",n=!1,a){if(null==i)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==o)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"role")),null!=o&&(c=this.addToHttpParams(c,o,"complementaryObjectId")),null!=d&&(c=this.addToHttpParams(c,d,"complementaryObjectName")),l&&l.forEach(lt=>{c=this.addToHttpParams(c,lt,"specificAttributes")}),null!=s&&(c=this.addToHttpParams(c,s,"allUserAttributes")),null!=r&&(c=this.addToHttpParams(c,r,"onlyDirectAdmins"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}getFacilitiesWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupRoleNames(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupRoles(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"groupId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupsWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getLoggedUser(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMembersWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getPerunPrincipal(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPrincipalRoleNames(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getResourcesWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserRoleNames(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserRoles(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVosWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isFacilityAdmin(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}isGroupAdmin(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}isPerunAdmin(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}isVoAdmin(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}keepAlive(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}loadAuthorizationComponents(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}setRoleWithGroupComplementaryObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setRoleWithUserComplementaryObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}unsetRoleWithGroupComplementaryObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}unsetRoleWithUserComplementaryObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),m=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}changeConsentStatus(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"consent")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}evaluateConsentsForConsentHub(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consentHub"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}evaluateConsentsForService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllConsentHubs(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllConsents(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getConsentById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentForUserAndConsentHub(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==o)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==d)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"consentHub")),null!=d&&(t=this.addToHttpParams(t,d,"status"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getConsentHubByFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentHubById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentHubByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentsForConsentHub(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consentHub"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentsForConsentHubWithStatus(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"consentHub")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getConsentsForUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentsForUserAndConsentHub(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==o)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getConsentsForUserWithStatus(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateConsentHub(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),O=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addExtSourceWithGroupSource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addExtSourceWithVoSource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createExtSourceFromExtSourceObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createExtSourceWithNameType(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==o)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteExtSource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getExtSourceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getExtSourceByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getExtSources(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getGroupExtSources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoExtSources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}loadExtSourcesDefinitions(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeExtSourceWithGroupSource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeExtSourceWithVoSource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),G=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addFacilityAdminGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminGroupByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminUserByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByFacilityNameOwnerName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByOwnerName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHost(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==o)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHostByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==o)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHosts(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==o)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHostsByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==o)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignSecurityTeam(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignSecurityTeamByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesByDestinationName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesBySourceDestinationNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesBySourceName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersByDestinationName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersBySourceDestinationNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersBySourceName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwners(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersByDestinationName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersBySourceDestinationNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersBySourceName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteFacilityByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllFacilities(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllowedGroups(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedGroupsByFacilityName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedRichGroupsWithAttributes(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"vo")),null!=l&&(n=this.addToHttpParams(n,l,"service"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"vo")),null!=l&&(n=this.addToHttpParams(n,l,"service"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedUsersOfFacility(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedVos(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllowedVosByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedFacilitiesByGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedFacilitiesByMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedFacilitiesByService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedFacilitiesByUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesByAssignedServiceForFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==o)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedResourcesForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesForFacilityByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesForFacilityByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedSecurityTeams(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedSecurityTeamsByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedUsers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedUsersByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getBansForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facilityId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getBansForUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getEnrichedFacilities(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getEnrichedHosts(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilitiesByAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==o)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attributeName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilitiesByDestination(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilitiesByHostName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"hostname"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilitiesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilitiesCount(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFacilitiesWhereUserIsAdmin(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAdminGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAdminUsers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAdminUsersByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityBan(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityForHost(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"host"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityOwners(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityOwnersByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getHostById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHosts(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostsByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostsByHostname(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"hostname"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostsCount(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostsCountByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getOwnerFacilities(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"owner"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichFacilities(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeBanByUserIdFacilityId(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminGroupByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminUserByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeFacilityOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByFacilityNameOwnerName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByOwnerName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHost(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHost.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"host"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeHostByHostname(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"hostname"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeHosts(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==o)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHostsByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==o)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSecurityTeam(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSecurityTeamByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setFacilityBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFacilityBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),ge=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling addMember.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addMembers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==o)throw new Error("Required parameter members was null or undefined when calling addMembers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}allowGroupToHierarchicalVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}canExtendMembershipInGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createGroupUnion(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==o)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resultGroup")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createGroupWithParentGroupNameDescription(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==o)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==d)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"parentGroup")),null!=o&&(t=this.addToHttpParams(t,o,"name")),null!=d&&(t=this.addToHttpParams(t,d,"description"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}createGroupWithVoNameDescription(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==o)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==d)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"name")),null!=d&&(t=this.addToHttpParams(t,d,"description"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}deleteGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}disallowGroupToHierarchicalVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}extendMembershipInGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}forceAllSubGroupsSynchronization(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}forceGroupStructureSynchronization(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}forceGroupSynchronization(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllAllowedGroupsToHierarchicalVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllGroupsFromAllVos(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllMemberGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllRichGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"attrNames[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllRichGroupsWithAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==o)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupMemberById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupMembersCount(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupMembersCountsByGroupStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupMembersCountsByVoStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupRichMembersByIds(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==o)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"members[]")}),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupUnions(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==o)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupsPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getIndirectMembershipPaths(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberRichGroupsWithAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichGroupByIdWithAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"groupId")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSubgroupsPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getVoAllAllowedGroupsToHierarchicalVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==o)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isAllowedGroupToHierarchicalVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isGroupMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==o)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"destinationGroup")),null!=i&&(r=this.addToHttpParams(r,i,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupUnion(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==o)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resultGroup")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling removeMember.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMembers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==o)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setGroupsMemberStatus(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==o)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==d)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"status"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}updateGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Me=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}canExtendMembership(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}createMemberForCandidate(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createMemberForUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createMemberFromExtSource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSpecificMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSponsoredMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSponsoredMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSponsoredMembersFromCSV(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"members[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}extendMembership(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}findCompleteRichMembersByAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});i&&i.forEach(We=>{t=this.addToHttpParams(t,We,"attrsNames[]")}),null!=o&&(t=this.addToHttpParams(t,o,"searchString")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"allowedStatuses[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}findCompleteRichMembersForGroup(i,o,d,l,s,r,t="body",n=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"group")),o&&o.forEach(lt=>{c=this.addToHttpParams(c,lt,"attrsNames[]")}),s&&s.forEach(lt=>{c=this.addToHttpParams(c,lt,"allowedStatuses[]")}),r&&r.forEach(lt=>{c=this.addToHttpParams(c,lt,"allowedGroupStatuses[]")}),null!=d&&(c=this.addToHttpParams(c,d,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"lookingInParentGroup"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}findCompleteRichMembersForVo(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"allowedStatuses[]")}),null!=d&&(n=this.addToHttpParams(n,d,"searchString"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}findMembersInVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findSponsoredCompleteRichMembersForVo(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"searchString")),null!=l&&(n=this.addToHttpParams(n,l,"onlySponsored"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllMembers(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllNamespacesRules(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllSponsoredMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllSponsoredMembersAndTheirSponsors(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getCompleteRichMembersForGroup(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==o)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group")),d&&d.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"allowedStatuses[]")}),l&&l.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"allowedGroupStatuses[]")}),null!=o&&(a=this.addToHttpParams(a,o,"lookingInParentGroup")),s&&s.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"attrsNames[]")});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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}getCompleteRichMembersForGroupResource(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==d)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"allowedStatuses[]")});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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getCompleteRichMembersForVo(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"allowedStatuses[]")}),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrsNames[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==o)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==d)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"extLogin")),null!=d&&(t=this.addToHttpParams(t,d,"extSourceName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberByUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMembers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMembersByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMembersByUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMembersCount(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMembersPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getMembersWithStatusCount(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==o)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichMemberWithAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichMembersByIds(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"ids[]")}),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichMembersNoUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getSponsoredMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getSponsoredMembersAndTheirSponsors(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsByMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsByVo(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==d)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"extSourceName")),null!=d&&(n=this.addToHttpParams(n,d,"extLogin")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}moveMembership(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==o)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==d)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"sourceUser")),null!=d&&(t=this.addToHttpParams(t,d,"targetUser"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeSponsor(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendAccountActivationLinkEmail(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==d)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"namespace")),null!=d&&(n=this.addToHttpParams(n,d,"emailAttributeURN")),null!=l&&(n=this.addToHttpParams(n,l,"language"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendPasswordResetLinkEmail(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==d)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member")),null!=o&&(a=this.addToHttpParams(a,o,"namespace")),null!=d&&(a=this.addToHttpParams(a,d,"emailAttributeURN")),null!=l&&(a=this.addToHttpParams(a,l,"language")),null!=s&&(a=this.addToHttpParams(a,s,"baseUrl"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}setSponsoredMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setSponsorshipForMember(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"sponsoredMember")),null!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}setStatus(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling setStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sponsorMember(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}updateSponsorshipValidity(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}validateMemberAsync(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),oe=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}createOwner(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"owner")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllOwners(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getOwnerById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getOwnerByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"owner"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Re=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}sentMessageToRTWithMemberQueue(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==o)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"memberId")),null!=o&&(n=this.addToHttpParams(n,o,"queue")),null!=d&&(n=this.addToHttpParams(n,d,"subject")),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sentMessageToRTWithQueue(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"queue")),null!=o&&(t=this.addToHttpParams(t,o,"subject")),null!=d&&(t=this.addToHttpParams(t,d,"text"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sentMessageToRTWithVo(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"voId")),null!=o&&(t=this.addToHttpParams(t,o,"subject")),null!=d&&(t=this.addToHttpParams(t,d,"text"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sentMessageToRTWithVoQueue(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==o)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"voId")),null!=o&&(n=this.addToHttpParams(n,o,"queue")),null!=d&&(n=this.addToHttpParams(n,d,"subject")),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),T=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addApplicationMailForGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addApplicationMailForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addGroupsToAutoRegistration(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"groups[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}approveApplication(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}checkForSimilarUsersWithAuthInfo(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}consolidateIdentityUsingToken(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"token"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}copyFormFromGroupToGroup(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromGroupToVo(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromVoToGroup(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromVoToVo(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromGroupToGroup(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromGroupToVo(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromVoToGroup(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromVoToVo(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createApplicationFormInGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}createApplicationFormInVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteApplication(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteApplicationMailForGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==o)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteApplicationMailForVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==o)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteGroupsFromAutoRegistration(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"groups[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationDataById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationMailsForGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationMailsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationsForGroup(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"state[]")}),null!=d&&(n=this.addToHttpParams(n,d,"dateFrom")),null!=l&&(n=this.addToHttpParams(n,l,"dateTo"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getApplicationsForMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getApplicationsForVo(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"state[]")}),null!=d&&(n=this.addToHttpParams(n,d,"dateFrom")),null!=l&&(n=this.addToHttpParams(n,l,"dateTo"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getApplicationsPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getConsolidatorToken(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFormItemsForGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFormItemsForGroupWithType(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFormItemsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFormItemsForVoWithType(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupApplicationForm(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupsToAutoRegistration(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoApplicationForm(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}rejectApplication(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"id")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendInvitation(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==o)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let n=new e.LE({encoder:this.encoder});null!=d&&(n=this.addToHttpParams(n,d,"voId")),null!=l&&(n=this.addToHttpParams(n,l,"name")),null!=i&&(n=this.addToHttpParams(n,i,"email")),null!=o&&(n=this.addToHttpParams(n,o,"language"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendInvitationForGroup(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==o)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new e.LE({encoder:this.encoder});null!=d&&(a=this.addToHttpParams(a,d,"voId")),null!=l&&(a=this.addToHttpParams(a,l,"groupId")),null!=s&&(a=this.addToHttpParams(a,s,"name")),null!=i&&(a=this.addToHttpParams(a,i,"email")),null!=o&&(a=this.addToHttpParams(a,o,"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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}sendInvitationGroupToExistingUser(i,o,d,l="body",s=!1,r){let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"userId")),null!=o&&(t=this.addToHttpParams(t,o,"voId")),null!=d&&(t=this.addToHttpParams(t,d,"groupId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sendInvitationToExistingUser(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userId")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendMessage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setSendingEnabled(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}submitApplication(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateApplicationMail(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateForm(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemData(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemsData(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemsForGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}verifyApplication(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),j=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}activateGroupResourceAssignment(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"async"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}addAdminToGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addAdminToUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addResourceSelfServiceGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addResourceSelfServiceUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}allowGroupsToResources(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});i&&i.forEach(We=>{t=this.addToHttpParams(t,We,"groups[]")}),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"resources[]")}),null!=d&&(t=this.addToHttpParams(t,d,"async"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}assignGroupToResource(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group")),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=s&&(a=this.addToHttpParams(a,s,"autoAssignSubgroups"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}assignGroupToResources(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group")),o&&o.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"resources[]")}),null!=d&&(a=this.addToHttpParams(a,d,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=s&&(a=this.addToHttpParams(a,s,"autoAssignSubgroups"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}assignGroupsToResource(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"groups[]")}),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=s&&(a=this.addToHttpParams(a,s,"autoAssignSubgroups"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}assignResourceTagToResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}assignService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling assignService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignServices(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==o)throw new Error("Required parameter services was null or undefined when calling assignServices.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignServicesPackage(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==o)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createResource(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==d)throw new Error("Required parameter name was null or undefined when calling createResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"facility")),null!=d&&(n=this.addToHttpParams(n,d,"name")),null!=l&&(n=this.addToHttpParams(n,l,"description"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createResourceTagWithResourceTag(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createResourceTagWithTagName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"tagName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deactivateGroupResourceAssignment(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteAllResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteAllResourcesTagsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteResourceTag(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAdminGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAdmins(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllResourcesByResourceTag(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAllResourcesTagsForResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllResourcesTagsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllResourcesWhereUserIsAdmin(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllowedMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllowedResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllowedUsersOfResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedGroups(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedMembersWithStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesWithGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesWithMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesWithStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesWithGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesWithMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesWithMemberService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedServicesToResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getBansForMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getBansForResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getEnrichedResourceById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"id")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEnrichedResourcesForFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEnrichedResourcesForVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupAssignments(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAssignments(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceBan(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourceByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==d)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"name"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourcesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourcesCountForAll(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getResourcesCountForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourcesFromVoWhereUserIsAdmin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourcesWhereGroupIsAdmin(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"group"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResourcesWhereUserIsAdmin(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==d)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"user"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRichAdmins(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==o)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==d)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"specificAttributes")}),null!=d&&(n=this.addToHttpParams(n,d,"allUserAttributes")),null!=l&&(n=this.addToHttpParams(n,l,"onlyDirectAdmins"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRichResourceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichResourcesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeAllResourceTagsFromResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeBanByMemberAndResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAdminResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupFromResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupFromResources(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupsFromResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeResourceSelfServiceGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceSelfServiceUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceTagFromResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}removeService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling removeService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServices(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==o)throw new Error("Required parameter services was null or undefined when calling removeServices.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServicesPackage(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==o)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAdminResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setResourceBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}unallowGroupsFromResources(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateResourceBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateResourceTag(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Y=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}getAttributesMatchResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes-match`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAttributesResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getFacilities(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getFacilities`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getMembersByUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getUsersSearcher(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getUsers`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),q=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addDestination(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==d)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service")),null!=o&&(a=this.addToHttpParams(a,o,"facility")),null!=d&&(a=this.addToHttpParams(a,d,"destination")),null!=l&&(a=this.addToHttpParams(a,l,"type")),null!=s&&(a=this.addToHttpParams(a,s,"propagationType"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}addDestinationToMultipleServices(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addDestinationsForAllServicesOnFacility(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==d)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"destination")),null!=d&&(n=this.addToHttpParams(n,d,"type")),null!=l&&(n=this.addToHttpParams(n,l,"propagationType"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}addRequiredAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addRequiredAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addServiceToServicesPackage(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==o)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"servicesPackage")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockAllServicesOnDestinationById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}blockAllServicesOnDestinationByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==o)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"destination")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockAllServicesOnFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}blockServiceOnDestination(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockServiceOnDestinationWithNameAndType(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==d)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"destination")),null!=d&&(t=this.addToHttpParams(t,d,"destinationType"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}blockServiceOnFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createService(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==d)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"name")),null!=o&&(t=this.addToHttpParams(t,o,"description")),null!=d&&(t=this.addToHttpParams(t,d,"script"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}createServiceWithService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createServicesPackage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createServicesPackageByNameAndDescription(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling deleteService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteServicesPackage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"servicesPackage"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}forceServicePropagation(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllDestinations(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllRichDestinationsForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllRichDestinationsForService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedServices(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getDataWithGroups(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDataWithVos(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDestinationById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getDestinations(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDestinationsCount(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFacilitiesDestinations(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAssignedServicesForGUI(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFlatData(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHashedDataWithGroups(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"consentEval"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getHashedHierarchicalData(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"consentEval"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getHierarchicalData(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichDestinations(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getServiceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServiceByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServices(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getServicesBlockedOnDestination(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesBlockedOnFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesByAttributeDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesFromServicesPackage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"servicesPackage"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesPackageById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"servicesPackage"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesPackageByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesPackages(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}isServiceBlockedOnDestination(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isServiceBlockedOnFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}planServicePropagation(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAllDestinations(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAllRequiredAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeDestination(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==d)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility")),null!=d&&(n=this.addToHttpParams(n,d,"destination")),null!=l&&(n=this.addToHttpParams(n,l,"type"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeRequiredAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeRequiredAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServiceFromServicesPackage(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==o)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"servicesPackage")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockAllServicesOnDestinationById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}unblockAllServicesOnDestinationByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==o)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"destination")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockAllServicesOnFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}unblockServiceOnDestinationById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockServiceOnDestinationByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==d)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"destination")),null!=d&&(t=this.addToHttpParams(t,d,"destinationType"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}unblockServiceOnFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateServicesPackage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),te=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}countTasks(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}deleteTask(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteTaskResultById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteTaskResultsIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteTaskResultsNames(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAllFacilitiesStates(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllResourcesState(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"voId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityServicesState(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityState(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTask(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getTask.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getTaskById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResultById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"taskResult"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResults(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getTaskResultsByTask(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"task"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResultsForDestinations(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"destinations[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResultsForGUIByTask(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"task"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResultsForGUIByTaskAndDestination(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"task")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getTaskResultsForGUIByTaskOnlyNewest(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"task"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}isThereSuchTask(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}listAllTasks(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}listAllTasksForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}suspendTasksPropagation(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"suspend"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),ue=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addSpecificUserOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==o)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addUserExtSource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}anonymizeUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}changeNonAuthzPasswordByToken(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==o)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"token")),null!=o&&(t=this.addToHttpParams(t,o,"password")),null!=d&&(t=this.addToHttpParams(t,d,"lang"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}changePasswordForLogin(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==d)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"login")),null!=o&&(a=this.addToHttpParams(a,o,"namespace")),null!=d&&(a=this.addToHttpParams(a,d,"newPassword")),null!=l&&(a=this.addToHttpParams(a,l,"oldPassword")),null!=s&&(a=this.addToHttpParams(a,s,"checkOldPassword"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}changePasswordForUser(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==d)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user")),null!=o&&(a=this.addToHttpParams(a,o,"namespace")),null!=d&&(a=this.addToHttpParams(a,d,"newPassword")),null!=l&&(a=this.addToHttpParams(a,l,"oldPassword")),null!=s&&(a=this.addToHttpParams(a,s,"checkOldPassword"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}checkPasswordResetRequestByTokenIsValid(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"token"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}checkPasswordStrength(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"password")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createAlternativePassword(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==d)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"description")),null!=d&&(n=this.addToHttpParams(n,d,"loginNamespace")),null!=l&&(n=this.addToHttpParams(n,l,"password"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createServiceUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteAlternativePassword(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==o)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==d)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"loginNamespace")),null!=d&&(t=this.addToHttpParams(t,d,"passwordId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}deletePasswordForLogin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"login")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deletePasswordForUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findRichUsers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"searchString"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}findRichUsersWithAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"searchString")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findUsers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"searchString"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}generateAccountForName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"namespace")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllRichUsersWithAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"includedSpecificUsers"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesForUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsForResourceWhereUserIsActive(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsWhereUserIsAdmin(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getPendingPreferredEmailChanges(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUserExtSources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUserWithAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUsersByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUsersWithAttributesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUsersWithoutVoWithAttributes(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"attrsNames[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getSpecificUsersByUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getSponsorsForMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsForMemberByVoAndLogin(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==d)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"extSourceName")),null!=d&&(n=this.addToHttpParams(n,d,"extLogin")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserByExtSourceNameAndExtLogin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"extLogin")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getUserById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==o)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"extSourceName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userExtSource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==o)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attributeId")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==o)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attributeName")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserExtSourcesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUsers(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getUsersByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUsersBySpecificUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"specificUser"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUsersPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getVosWhereUserIsAdmin(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVosWhereUserIsMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}isLoginAvailable(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==o)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"loginNamespace")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}loginExist(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSpecificUserOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==o)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserExtSource(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==o)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"userExtSource")),null!=d&&(t=this.addToHttpParams(t,d,"force"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}requestPreferredEmailChange(i,o,d,l,s,r,t="body",n=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==o)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"user")),null!=o&&(c=this.addToHttpParams(c,o,"email")),null!=d&&(c=this.addToHttpParams(c,d,"lang")),null!=l&&(c=this.addToHttpParams(c,l,"linkPath")),null!=s&&(c=this.addToHttpParams(c,s,"customUrl")),null!=r&&(c=this.addToHttpParams(c,r,"idpFilter"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}reservePasswordForLogin(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==d)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"login")),null!=o&&(t=this.addToHttpParams(t,o,"namespace")),null!=d&&(t=this.addToHttpParams(t,d,"password"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}reservePasswordForUser(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==d)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"namespace")),null!=d&&(t=this.addToHttpParams(t,d,"password"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}reserveRandomPassword(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateUserExtSourceLastAccess(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userExtSource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}validatePasswordForLogin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"login")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}validatePasswordForUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}validatePreferredEmailChangeWithToken(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==o)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"token")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),de=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}getAppsConfig(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getGuiConfiguration(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunRPCVersion(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunStatistics(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunStatus(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunSystemTimeInMillis(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Le=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addMemberVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==o)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addSponsorRoleToGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addSponsorRoleToUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addVoAdminGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addVoAdminUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createVoWithName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==o)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createVoWithVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findCandidates(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"id")),null!=o&&(t=this.addToHttpParams(t,o,"searchString")),null!=d&&(t=this.addToHttpParams(t,d,"maxNumOfResults"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}findCandidatesForGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllVos(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getCompleteCandidatesForGroup(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"searchString"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getCompleteCandidatesForVo(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"searchString"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getEnrichedVoById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberVos(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMyEnrichedVos(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMyVos(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getParentVos(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichAdminsForVo(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo")),null!=o&&(a=this.addToHttpParams(a,o,"role")),d&&d.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"specificAttributes")}),null!=l&&(a=this.addToHttpParams(a,l,"allUserAttributes")),null!=s&&(a=this.addToHttpParams(a,s,"onlyDirectAdmins"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}getVoAdminGroups(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAdminUsers(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"role")),null!=d&&(t=this.addToHttpParams(t,d,"onlyDirectAdmins"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getVoBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoBanForMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoBansForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getVoById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoByShortName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"shortName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoMembersCountsByStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVosByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVosCount(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeMemberVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==o)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSponsorRoleFromGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSponsorRoleFromUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAdminGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAdminUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeVoBanForMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}setVoBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})();const ze={WRITE:"WRITE",WRITE_VO:"WRITE_VO",WRITE_PUBLIC:"WRITE_PUBLIC",READ:"READ",READ_VO:"READ_VO",READ_PUBLIC:"READ_PUBLIC"},ye={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},H={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 Te=(()=>{class Ae{constructor(i,o){if(i)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!o)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(i){return{ngModule:Ae,providers:[{provide:A,useFactory:i}]}}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(Ae,12),_.LFG(e.eN,8))},Ae.\u0275mod=_.oAB({type:Ae}),Ae.\u0275inj=_.cJS({providers:[],imports:[[]]}),Ae})()},19516:($e,_e,p)=>{"use strict";p.d(_e,{r5:()=>A.r,d4:()=>_,dp:()=>w.d});var e=p(69808),b=p(5e3);let _=(()=>{class G{}return G.\u0275fac=function(ge){return new(ge||G)},G.\u0275mod=b.oAB({type:G}),G.\u0275inj=b.cJS({imports:[[e.ez]]}),G})();var w=p(31359),A=(p(34447),p(82895));p(12856),p(20919),p(5865),p(53561),p(16119),p(7598),p(9954)},34447:($e,_e,p)=>{"use strict";p.d(_e,{a:()=>w});var e=p(36908),b=p(5e3),_=p(51062);let w=(()=>{class g{constructor(E,C){this.translate=E,this.storage=C}transform(E,C="en"){const I=this.storage.get("custom_labels");if(I)for(const P of I)if(P.label===E)return P[C];return E}}return g.\u0275fac=function(E){return new(E||g)(b.Y36(_.sK,16),b.Y36(e.d6,16))},g.\u0275pipe=b.Yjl({name:"customTranslate",type:g,pure:!0}),g})()},82895:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g,A){return A?`/organizations/${g.voId}/resources/${g.id}`:`/facilities/${g.facilityId}/resources/${g.id}`}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"getResourceRoute",type:_,pure:!0}),_})()},28764:($e,_e,p)=>{"use strict";p.d(_e,{F:()=>w});var e=p(9244),b=p(64080),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const C=(0,e.IL)(E.attributes,b.r.GROUP_SYNC_ENABLED),I=(0,e.IL)(E.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===I)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const P=I.value;if("true"===C.value){const L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}if(P){const L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}return""}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIconColor",type:g,pure:!0}),g})()},29218:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>w});var e=p(64080),b=p(9244),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"";const C=(0,b.IL)(E.attributes,e.r.GROUP_SYNC_ENABLED),I=(0,b.IL)(E.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===I)return"";const P=I.value;if("true"===C.value){const L=(0,b.IL)(E.attributes,e.r.GROUP_LAST_SYNC_STATE),O=(0,b.IL)(E.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}if(P){const L=(0,b.IL)(E.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,b.IL)(E.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}return"sync_disabled"}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIcon",type:g,pure:!0}),g})()},45942:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>w});var e=p(9244),b=p(64080),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const C=(0,e.IL)(E.attributes,b.r.GROUP_SYNC_ENABLED),I=(0,e.IL)(E.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===I)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const P=I.value;if("true"===C.value){const L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.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(P){const L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.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 g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncToolTip",type:g,pure:!0}),g})()},20919:($e,_e,p)=>{"use strict";p.d(_e,{D:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.g$)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberEmail",type:w,pure:!0}),w})()},5865:($e,_e,p)=>{"use strict";p.d(_e,{p:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.lt)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberLogins",type:w,pure:!0}),w})()},96974:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.Gw)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberOrganization",type:w,pure:!0}),w})()},69773:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){switch(g){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatusIconColor",type:_,pure:!0}),_})()},21757:($e,_e,p)=>{"use strict";p.d(_e,{f:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){switch(g){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return g}}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:_,pure:!0}),_})()},12856:($e,_e,p)=>{"use strict";p.d(_e,{i:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A,E){var C,I;let P=null,m=null;A.memberAttributes&&(P=A.memberAttributes.find(O=>"membershipExpiration"===O.friendlyName),m=A.memberAttributes.find(O=>"groupMembershipExpiration"===O.friendlyName));let L="";return L=E?`\n Group status: ${(0,e.Oe)(A.groupStatus)}, Expiration: ${null!==(C=null==m?void 0:m.value)&&void 0!==C?C:"never"}`:A.memberAttributes?`Status: ${(0,e.Oe)(A.status,A.groupStatus)}\n Vo status: ${(0,e.Oe)(A.status)}, Expiration: ${null!==(I=null==P?void 0:P.value)&&void 0!==I?I:"never"}`:`Status: ${(0,e.Oe)(A.status,A.groupStatus)}\n Vo status: ${(0,e.Oe)(A.status)}`,L}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberStatusTooltip",type:w,pure:!0}),w})()},20551:($e,_e,p)=>{"use strict";p.d(_e,{l:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.replace("VALID","ACTIVE")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatus",type:_,pure:!0}),_})()},64597:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.replace(/\s/g,"-").toLowerCase()}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:_,pure:!0}),_})()},62383:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>_});var e=p(69808),b=p(5e3);let _=(()=>{class w{transform(A,E){return"voRules"===A?"Vo rules":"groupRules"===A?"Group rules":A&&"never"!==A.toLowerCase()?(0,e.p6)(A.replace(" ","T"),"d.M.yyyy "+(E?"H:mm:ss":""),"en"):"never"}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"parseDate",type:w,pure:!0}),w})()},53561:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.te)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"technicalOwners",type:w,pure:!0}),w})()},16119:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.kN)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userEmail",type:w,pure:!0}),w})()},31359:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return[g.titleBefore,g.firstName,g.middleName,g.lastName,g.titleAfter].join(" ")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"userFullName",type:_,pure:!0}),_})()},7598:($e,_e,p)=>{"use strict";p.d(_e,{g:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.$0)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userLogins",type:w,pure:!0}),w})()},9954:($e,_e,p)=>{"use strict";p.d(_e,{Z:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.OV)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userVo",type:w,pure:!0}),w})()},36908:($e,_e,p)=>{"use strict";p.d(_e,{yC:()=>de,F5:()=>te,sM:()=>ze,e8:()=>P,EB:()=>Me,Be:()=>Je,Hy:()=>R,ly:()=>ye,fb:()=>nt,xw:()=>le,x4:()=>w,v0:()=>G,SZ:()=>Le,V6:()=>ue,jq:()=>Se,BN:()=>me,Ip:()=>X,HV:()=>pe,d6:()=>E,UA:()=>je});var e=p(32105),b=p(45323),_=p(5e3);let w=(()=>{class z{constructor(D){this.authzSevice=D,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(D){this.principal=D,this.initData(D)}setPerunPolicies(D){this.perunPolicies=D}getPerunPolicies(){return this.perunPolicies}isAuthorized(D,H){if(null===this.principal.roles)return!1;const V=this.fetchPolicyWithAllIncludedPolicies(D);let xe=[];for(const Te of V)xe=xe.concat(Te.perunRoles);const Qe=this.fetchAllRelatedObjects(H);return this.resolveAuthorization(xe,Qe)}principalHasRole(D,H,V){let xe=H;return H.startsWith("Rich")&&(xe=H.substring(4)),!(!this.principal.roles[D]||!this.principal.roles[D][xe])&&this.principal.roles[D][xe].includes(Number(V.toString()))}canManageFacilities(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER,b.u.FACILITYADMIN,b.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(b.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.VOADMIN)}isThisVoAdminOrObserver(D){return this.editableVos.includes(Number(D.toString()))||this.observableVos.includes(Number(D.toString()))||this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)}isThisVoAdmin(D){return this.editableVos.includes(D)||this.principalRoles.has(b.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(b.u.SPONSOR)}isThisGroupAdmin(D){return this.editableGroups.includes(D)||this.principalRoles.has(b.u.PERUNADMIN)}isGroupAdminInThisVo(D){return this.hasGroupInTheseVos.includes(D)}isFacilityAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.FACILITYADMIN)}isThisFacilityAdmin(D){return this.editableFacilities.includes(D)||this.principalRoles.has(b.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(b.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.VOOBSERVER,b.u.PERUNOBSERVER)}isThisVoObserver(D){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)||this.observableVos.includes(D)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((D,H)=>{this.authzSevice.getAllRolesManagementRules().subscribe(V=>{this.allRolesManagementRules=V,D()},V=>H(V))})}assignAvailableRoles(D,H){this.allRolesManagementRules.forEach(V=>{V.primaryObject===H&&D.push(V.roleName)}),D.sort(),"Vo"===H&&this.voCustomSort(D)}isManagerPagePrivileged(D){const H=[];let V=D.beanName;V.startsWith("Rich")&&(V=V.substring(4)),this.assignAvailableRoles(H,V);const xe=new Map;this.setRolesAuthorization(H,D,xe);for(const Qe of xe.values())if(Qe.readAuth||Qe.manageAuth)return!0;return!1}setRolesAuthorization(D,H,V){for(const xe of D){let Qe=[],Te=[],Ae=[];for(const l of this.allRolesManagementRules)if(l.roleName===xe){Qe=Qe.concat(l.privilegedRolesToRead),Te=Te.concat(l.privilegedRolesToManage);for(const s of Object.keys(l.entitiesToManage))Ae="User"===s?[s].concat(Ae):Ae.concat(s);break}const ae=this.fetchAllRelatedObjects([H]),i=this.resolveAuthorization(Qe,ae),o=this.resolveAuthorization(Te,ae);V.set(xe,{readAuth:i,manageAuth:o,modes:Ae})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(D){for(const H of this.allRolesManagementRules)if(H.roleName===D)return H.primaryObject;return""}resolveAuthorization(D,H){for(const V of D){let xe=!0;for(const Qe of Object.keys(V)){const Te=V[Qe];if(null===Te)this.principalRoles.has(Qe)||(xe=!1);else if(H[Te]){for(const Ae of H[Te])if(!this.principalHasRole(Qe,Te,Ae)){xe=!1;break}}else xe=!1;if(!xe)break}if(xe)return!0}return!1}getPerunPolicy(D){for(const H of this.perunPolicies)if(H.policyName===D)return H;return null}fetchAllRelatedObjects(D){const H={};for(const V of D){let xe=V.beanName;switch(V.beanName.startsWith("Rich")&&(xe=V.beanName.substring(4)),H[xe]?H[xe].push(V.id):H[xe]=[V.id],xe){case"Member":H.User?H.User.push(V.userId):H.User=[V.userId],H.Vo?H.Vo.push(V.voId):H.Vo=[V.voId];break;case"Group":case"ResourceTag":H.Vo?H.Vo.push(V.voId):H.Vo=[V.voId];break;case"Resource":H.Facility?H.Facility.push(V.facilityId):H.Facility=[V.facilityId],H.Vo?H.Vo.push(V.voId):H.Vo=[V.voId]}}return H}fetchPolicyWithAllIncludedPolicies(D){const H=new Map;let V=[];for(V.push(D);0!==V.length;){const Qe=V.shift();if(H.has(Qe))continue;const Te=this.getPerunPolicy(Qe);if(!Te)return[];H.set(Qe,Te),V=V.concat(Te.includePolicies)}const xe=[];for(const Qe of H.values())xe.push(Qe);return xe}voCustomSort(D){for(let H=0;H{class z{constructor(){this.branding=""}setInstanceConfig(D){this.instanceConfig=D}setDefaultConfig(D){this.defaultConfig=D}getAppsConfig(){return this.appsConfig}setAppsConfig(D){this.appsConfig=D}setPerunPrincipal(D){this.principal=D}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(D){this.initialPageId=D}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(D){this.branding=D}skipOidc(){return this.get("skip_oidc")}get(...D){let H;if(""!==this.branding){const V=this.instanceConfig.brandings[this.branding];for(let xe=0;xe{class z{constructor(D,H,V,xe,Qe){this.injector=D,this.store=H,this.dialog=V,this.route=xe,this.oauthService=Qe,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(A.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(Te=>{Te.idpFilter&&(this.filterShortname=String(Te.idpFilter))})}getClientConfig(){const D=this.setIdpFilter(),V=D?{acr_values:D}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(V.prompt="consent"),sessionStorage.getItem("mfa_route")&&(V.acr_values="https://refeds.org/profile/mfa",V.prompt="login",V.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:V}}setIdpFilter(){const D=location.search.substring(1).split("&");this.filterShortname=null;const H=this.store.get("oidc_client","filters");if(!H)return null;let V=null;return D.forEach(xe=>{const Qe=xe.split("=");"idpFilter"===Qe[0]&&H[Qe[1]]&&(this.filterShortname=Qe[1],V=H[Qe[1]])}),H.default&&!V?(this.filterShortname="default",H.default):V}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const D=location.pathname,H=location.search.substring(1);return"/api-callback"===D?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(D,H).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(D=>!!D&&(this.oauthService.events.pipe((0,g.h)(H=>"token_expires"===H.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const D=sessionStorage.getItem("mfa_route");if(D)return this.router.navigate([D],{replaceUrl:!0});let H=sessionStorage.getItem("auth:redirect");const V=sessionStorage.getItem("auth:queryParams");let xe=[];V&&(xe=V.split("&"));const Qe={};return xe.forEach(Te=>{const Ae=Te.split("=");Qe[Ae[0]]=Ae[1]}),(!H||"/login"===H)&&(H="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),Qe.idpFilter&&(this.filterShortname=String(Qe.idpFilter)),this.router.navigate([H],{queryParams:Qe,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,g.h)(D=>D instanceof A.m2)).subscribe(()=>{const D={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===D.idpFilter?{}:D,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(D){const H=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===D)return!0;for(const V of H)if(D.startsWith(V))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(D=>(localStorage.setItem("refresh_token",D.refresh_token),!0),()=>!1)}verifyAuthentication(D,H){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(V=>!!V||(this.isPotentiallyValidPath(D)?(sessionStorage.setItem("auth:redirect",D),sessionStorage.setItem("auth:queryParams",H),!1):new Promise((xe,Qe)=>Qe("Invalid path"))))}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(_.zs3),_.LFG(E),_.LFG(C.uw),_.LFG(A.gz),_.LFG(I.Ct))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var m=p(51062);let L=(()=>{class z{constructor(D){this.dialogRef=D}}return z.\u0275fac=function(D){return new(D||z)(_.Y36(C.so))},z.\u0275cmp=_.Xpm({type:z,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(D,H){1&D&&(_.TgZ(0,"h2",0),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[C.xY],pipes:[m.X$],styles:[""]}),z})();var O=p(9244);let G=(()=>{class z{constructor(D,H,V,xe,Qe,Te){this.authService=D,this.storeService=H,this.authResolver=V,this.authzService=xe,this.dialog=Qe,this.router=Te,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(D){this.loginScreenShown=D}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(D=>D(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(D=>{if(null===D.user){const H=(0,O.kZ)();this.dialog.open(L,H)}else{this.storeService.setPerunPrincipal(D),this.authResolver.init(D);const H=localStorage.getItem("routeAuthGuard");H&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([H]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(D=>{D()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const D=location.search.substr(1).split("&"),H={};for(const V of D){const xe=V.split("=");H[xe[0]]=xe[1]}return void this.router.navigate(["login"],{queryParams:H,queryParamsHandling:"merge"})}}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(P),_.LFG(E),_.LFG(w),_.LFG(e.Ct),_.LFG(C.uw),_.LFG(A.F0))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var ne=p(25245),ge=p(22313);let Me=(()=>{class z{constructor(D,H){this.matIconRegistry=D,this.domSanitizer=H,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/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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(D=>{this.matIconRegistry.addSvgIcon(D.name,this.domSanitizer.bypassSecurityTrustResourceUrl(D.url))})}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(ne.jv),_.LFG(ge.H7))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac}),z})();var oe=p(40520),Re=p(61737),T=p(40537),j=p(22868),Y=p(47423);let q=(()=>{class z{constructor(D){this.dialogRef=D}close(){this.dialogRef.close(!0)}}return z.\u0275fac=function(D){return new(D||z)(_.Y36(C.so))},z.\u0275cmp=_.Xpm({type:z,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(D,H){1&D&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div",2),_.TgZ(7,"div",3),_.TgZ(8,"button",4),_.NdJ("click",function(){return H.close()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.qZA(),_.qZA()),2&D&&(_.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")," "))},directives:[C.uh,C.xY,C.H8,Y.lW],pipes:[m.X$],styles:[""]}),z})(),te=(()=>{class z{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const D=this.handleNextError;return this.handleNextError=!0,D}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),ue=(()=>{class z{constructor(D){this.translate=D,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(D,H=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===D.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===D.name?H:H+"\n"+D.name,D,D.message)}showRouteError(){const D=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),H=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(D,null,H)}showError(D,H,V,xe,Qe){this.addNotification.emit({type:"error",error:H,description:V,title:D,actionText:void 0===xe&&void 0!==V?this.getDefaultActionMessage():xe,delay:this.defaultErrorDelayMs,icon:"error_outline",action:Qe,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(D,H,V,xe){this.addNotification.emit({type:"success",description:H,title:D,actionText:void 0===V&&void 0!==H?this.getDefaultActionMessage():V,delay:this.defaultSuccessDelayMs,icon:"done",action:xe,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(m.sK))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),de=(()=>{class z{constructor(D,H,V,xe,Qe,Te){this.authService=D,this.apiRequestConfiguration=H,this.notificator=V,this.store=xe,this.dialog=Qe,this.initAuthService=Te}intercept(D,H){const V=this.store.get("api_url");if(D.url.includes("i18n")&&(D=D.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==V&&this.isCallToPerunApi(D.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const Te=(0,O.kZ)();Te.width="450px",this.dialogRefSessionExpiration=this.dialog.open(q,Te),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,T.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?D=D.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(D.url)&&(D=D.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const xe=this.apiRequestConfiguration.shouldHandleError(),Qe="POST"===D.method&&!this.store.skipOidc()&&this.isCallToPerunApi(D.url);return H.handle(D).pipe((0,j.b)(Te=>{Te instanceof oe.Zn&&Qe&&this.initAuthService.loadPrincipal()},Te=>{const Ae=this.formatErrors(Te,D);return void 0===Ae?(0,Re._)(Te):xe?void this.notificator.showRPCError(Ae):(0,Re._)(Ae)}))}isCallToPerunApi(D){return D.startsWith(this.store.get("api_url"))}formatErrors(D,H){let V;console.error(D);const xe=D.error;if(xe.errorId&&(V=xe),void 0!==V)return V.urlWithParams=H.urlWithParams,V.call=H.url,V.payload=H.body,V}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(P),_.LFG(te),_.LFG(ue),_.LFG(E),_.LFG(C.uw),_.LFG(G))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac}),z})(),Le=(()=>{class z{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(D){this.newNotificationsCount++,this.notificationData.push(D)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var Ue=p(27221);let ze=(()=>{class z{constructor(D,H,V,xe){this.http=D,this.notificator=H,this.authService=V,this.storeService=xe}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let D=new oe.WM;return D=D.set("Authorization",this.authService.getAuthorizationHeaderValue()),D}get(D,H=!0){const V=`${this.getApiUrl()}${D}`;return this.http.get(V,{headers:this.getHeaders()}).pipe((0,Ue.K)(xe=>this.formatErrors(xe,V,null,H)))}put(D,H={},V=!0){const xe=`${this.getApiUrl()}${D}`,Qe=JSON.stringify(H);return this.http.put(xe,Qe,{headers:this.getHeaders()}).pipe((0,Ue.K)(Te=>this.formatErrors(Te,xe,Qe,V)))}post(D,H={},V=!0){const xe=`${this.getApiUrl()}${D}`,Qe=JSON.stringify(H);let Te=this.getHeaders();return Te=Te.set("Content-Type","application/json; charset=utf-8"),this.http.post(xe,Qe,{headers:Te}).pipe((0,Ue.K)(Ae=>this.formatErrors(Ae,xe,Qe,V)))}delete(D,H=!0){const V=`${this.getApiUrl()}${D}`;return this.http.delete(V,{headers:this.getHeaders()}).pipe((0,Ue.K)(xe=>this.formatErrors(xe,V,null,H)))}formatErrors(D,H,V,xe){const Qe=D.error;return Qe.call=H,Qe.payload=V,xe&&this.notificator.showRPCError(D.error),(0,Re._)(Qe)}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(oe.eN),_.LFG(ue),_.LFG(P),_.LFG(E))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),le=(()=>{class z{constructor(D){this.router=D,this.lastState="forward",this.history=new Set,D.events.subscribe(H=>{H instanceof A.OD&&("popstate"===H.navigationTrigger?this.history.has(H.restoredState.navigationId)?(this.lastState="back",this.history.delete(H.restoredState.navigationId)):(this.lastState="forward",this.history.add(H.id)):(this.history.add(H.id),this.lastState="forward"))})}forceNavigate(D,H){if(null===D)return;let V="";D.forEach(xe=>V+="/"+xe),V.length>0&&(V=V.substring(1)),void 0===H&&(H={}),H.queryParams={redirectTo:V},this.router.navigate(["redirect"],H)}getLastState(){return this.lastState}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(A.F0))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),je=(()=>{class z{isAllSelectedWithDisabledCheckbox(D,H,V,xe,Qe,Te,Ae,ae){return this.numSelected=D,this.numCanBeSelected=0,this.pageStart=Qe*V,this.pageEnd=this.pageStart+V,this.pageIterator=0,this.dataLength=""===H?Te.data.length:Te.filteredData.length,xe||(this.modulo=this.dataLength%V,this.pageEnd=0===this.modulo?this.pageStart+V:this.pageStart+this.modulo),Te.sortData(Te.filteredData,Ae).forEach(i=>{this.pageStart<=this.pageIterator&&this.pageIterator{ae?i(o)&&this.pageStart<=this.pageIterator&&this.pageIterator{class z{constructor(D,H,V,xe){this.membersService=D,this.usersService=H,this.auditMessagesManagerService=V,this.registrarService=xe}getMembers(D,H,V,xe,Qe,Te,Ae,ae,i,o){return this.membersService.getMembersPage({vo:D,attrNames:H,query:{pageSize:Qe,offset:xe*Qe,order:V,sortColumn:Te,statuses:Ae,searchString:ae,groupId:i,groupStatuses:o}})}getUsers(D,H,V,xe,Qe,Te,Ae,ae,i,o,d,l){return this.usersService.getUsersPage({attrNames:D,query:{offset:xe*V,pageSize:xe,order:H,sortColumn:Qe,searchString:Te,withoutVo:Ae,facilityId:ae,voId:i,resourceId:o,serviceId:d,onlyAllowed:l}})}getAuditMessages(D,H,V){return this.auditMessagesManagerService.getMessagesPage({query:{offset:V*H,pageSize:V,order:D}})}getApplications(D,H,V,xe,Qe,Te,Ae,ae,i,o,d,l,s){return this.registrarService.getApplicationsPage({vo:d,query:{pageSize:D,offset:H*D,order:V,sortColumn:xe,searchString:Te,includeGroupApplications:Qe,getDetails:s,states:Ae,dateFrom:ae,dateTo:i,userId:o,groupId:l}})}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(e.uq),_.LFG(e.Fv),_.LFG(e.jw),_.LFG(e.tk))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var Be=p(591),W=p(21086);class R{constructor(Q,D){this.dynamicPaginatingService=Q,this.authzService=D,this.allObjectCount=0,this.routeAuth=!0,this.dataSubject=new Be.X([]),this.loadingSubject=new Be.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(Q,D,H,V,xe,Qe,Te,Ae,ae,i){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const o=this.latestQueryTime;this.dynamicPaginatingService.getMembers(Q,D,H,V,xe,Qe,Te,Ae,ae,i).pipe((0,Ue.K)(()=>(0,W.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(d=>{if(this.latestQueryTime<=o){const l=d.data;null!==l&&0!==l.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:Q},l[0]])),this.allObjectCount=d.totalCount,this.dataSubject.next(l)}})}loadUsers(Q,D,H,V,xe,Qe,Te,Ae,ae,i,o,d){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const l=this.latestQueryTime;this.dynamicPaginatingService.getUsers(Q,V,H,D,xe,Qe,Te,Ae,ae,i,o,d).pipe((0,Ue.K)(()=>(0,W.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(s=>{if(this.latestQueryTime<=l){const r=s.data;this.allObjectCount=s.totalCount,this.dataSubject.next(r)}})}loadAuditMessages(Q,D,H){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const V=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(H,D,Q).pipe((0,Ue.K)(()=>(0,W.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(xe=>{if(this.latestQueryTime<=V){const Qe=xe.data;this.allObjectCount=xe.totalCount,this.dataSubject.next(Qe)}})}loadApplications(Q,D,H,V,xe,Qe,Te,Ae,ae,i,o,d,l){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const s=this.latestQueryTime;this.dynamicPaginatingService.getApplications(Q,D,H,V,Qe,xe,Te,Ae,ae,i,d,o,null!=l&&l).pipe((0,Ue.K)(()=>(0,W.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(r=>{if(this.latestQueryTime<=s){const t=r.data;if(null!==t&&0!==t.length){const n=t;this.routeAuth=n[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[n[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[n[0].vo])}this.allObjectCount=r.totalCount,this.dataSubject.next(t)}})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let me=(()=>{class z{constructor(D,H){this.route=D,this.store=H}getPreferredLanguage(D){const H=this.store.get("supported_languages"),V=navigator.languages.map(Te=>Te.split("-")[0]),xe=location.search.substring(1).split("&");let Qe=null;for(const Te of xe){const Ae=Te.split("=");"lang"===Ae[0]&&(Qe=Ae[1])}return Qe&&H.includes(Qe)?Qe:D&&H.includes(D)?D:V&&H.includes(V[0])?V[0]:"en"}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(A.gz),_.LFG(E))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var be=p(70655);let Ie=(()=>{class z{generatePdf(D){return(0,be.mG)(this,void 0,void 0,function*(){yield this.loadPdfMake(),this.pdfMake.createPdf(D).open()})}loadPdfMake(){return(0,be.mG)(this,void 0,void 0,function*(){if(!this.pdfMake){const D=yield p.e(641).then(p.t.bind(p,54641,23)),H=yield p.e(493).then(p.t.bind(p,58493,19));this.pdfMake=D.default,this.pdfMake.vfs=H.default.pdfMake.vfs}})}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),pe=(()=>{class z{constructor(D){this.pdfService=D}static generateTableForUser(D){const H=D.name.replace(";"," ").split(";")[0];return"OK"!==D.status?this.generateErrorRowForUser(H,D.status):z.generateRowForUser(H,D.login,D.password)}static generateErrorRowForUser(D,H){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:D,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:H,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(D,H,V){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[z.generateNameCell(D),{},z.getPasswordLabelCell(),z.generatePasswordCell(V)],[z.getLoginLabelCell(),z.generateLoginCell(H),{},{}]]}}}static generateNameCell(D){return{text:D,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(D){return{text:null==D?"N/A":D,border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(D){return{text:null==D?"N/A":D,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(D){return(0,be.mG)(this,void 0,void 0,function*(){const H=[];for(const xe of D)H.push(z.generateTableForUser(xe));return this.pdfService.generatePdf({content:H})})}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(Ie))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),Se=(()=>{class z{constructor(D){this.storeService=D}static getBrandContainingDomain(D,H){for(const V of D)if(V.newApps.admin===H||V.newApps.profile===H||V.newApps.pwdReset===H)return V;return D[0]}getUrlForOtherApplication(D,H){const xe=window.location.href.split("/"),Qe=xe[0]+"//"+xe[2],Te=z.getBrandContainingDomain(this.storeService.getAppsConfig().brands,Qe);let Ae;if(Te.newApps[D])Ae=Te.newApps[D],"pwdReset"===D&&(Ae+=`?login-namespace=${H}`);else switch(Ae=Te.oldGuiDomain+"/fed",D){case"admin":Ae+="/gui/";break;case"profile":Ae+="/profile/";break;case"pwdReset":Ae+=`/pwd-reset/?login-namespace=${H}`}return Ae}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(E))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var Xe=p(86087);let Je=(()=>{class z extends Xe.ye{constructor(){super(...arguments),this.getRangeLabel=function(D,H,V){let xe;return xe=V<1e3?String(V):V<1e4?"1 000":V<1e5?"10 000":"100 000",`${D*H+1} \u2013 ${(D+1)*H} of ${xe} +`}}}return z.\u0275fac=function(){let Q;return function(H){return(Q||(Q=_.n5z(z)))(H||z)}}(),z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac}),z})(),nt=(()=>{class z{setEntity(D){this.entity=D}getEntity(){return this.entity}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var Ve=p(64080);let X=(()=>{class z{constructor(D,H,V,xe,Qe){this.authResolver=D,this.attributesManager=H,this.notificator=V,this.apiRequest=xe,this.router=Qe,this.routePolicies=new Map([["organizations",Te=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[Te])],["organizations-members",Te=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[Te])],["organizations-groups",Te=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[Te])],["organizations-resources",Te=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[Te])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[Te])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[Te])],["organizations-resources-preview",Te=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[Te])],["organizations-resources-tags",Te=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[Te])],["organizations-resources-states",Te=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[Te])],["organizations-applications",Te=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[Te])],["organizations-sponsoredMembers",Te=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[Te])],["organizations-serviceAccounts",Te=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[Te])],["organizations-attributes",Te=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[Te])],["organizations-statistics",Te=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[Te])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[Te])],["organizations-settings",Te=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[Te])||this.authResolver.isManagerPagePrivileged(Te)||this.authResolver.isThisVoAdminOrObserver(Te.id)],["organizations-settings-expiration",Te=>this.authResolver.isThisVoAdminOrObserver(Te.id)],["organizations-settings-managers",Te=>this.authResolver.isManagerPagePrivileged(Te)],["organizations-settings-applicationForm",Te=>this.authResolver.isThisVoAdminOrObserver(Te.id)],["organizations-settings-notifications",Te=>this.authResolver.isThisVoAdminOrObserver(Te.id)],["organizations-settings-extsources",Te=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[Te])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["members",Te=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[Te])],["members-groups",Te=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[Te])],["members-applications",Te=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[Te])],["members-resources",Te=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[Te])],["members-attributes",Te=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[Te])],["groups",Te=>this.authResolver.isAuthorized("getGroupById_int_policy",[Te])],["groups-members",Te=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[Te])],["groups-subgroups",Te=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[Te])],["groups-resources",Te=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[Te])],["groups-applications",Te=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[Te])],["groups-attributes",Te=>this.authResolver.isAuthorized("getGroupById_int_policy",[Te])],["groups-statistics",Te=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[Te])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[Te])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[Te])],["groups-settings",Te=>this.authResolver.isManagerPagePrivileged(Te)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[Te])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[Te])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[Te])],["groups-settings-managers",Te=>this.authResolver.isManagerPagePrivileged(Te)],["groups-settings-applicationForm",Te=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[Te])],["groups-settings-notifications",Te=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[Te])],["groups-settings-relations",Te=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[Te])],["groups-settings-extsources",Te=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[Te])],["groups-settings-expiration",Te=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(Te.id,Ve.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{},()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"])}),!0)],["resources",Te=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[Te])],["resources-groups",Te=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[Te])],["resources-services",Te=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[Te])],["resources-members",Te=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[Te])],["resources-tags",Te=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[Te])],["resources-attributes",Te=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[Te])],["resources-settings",Te=>this.authResolver.isManagerPagePrivileged(Te)],["resources-settings-managers",Te=>this.authResolver.isManagerPagePrivileged(Te)],["facilities",Te=>this.authResolver.isAuthorized("getFacilityById_int_policy",[Te])],["facilities-resources",Te=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[Te])],["facilities-allowed-users",Te=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[Te])],["facilities-allowed-groups",Te=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[Te])],["facilities-services-status",Te=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[Te])],["services-status",Te=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[Te])],["facilities-services-destinations",Te=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[Te])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",Te=>this.authResolver.isAuthorized("getFacilityById_int_policy",[Te])],["facilities-settings",Te=>this.authResolver.isAuthorized("getOwners_Facility_policy",[Te])||this.authResolver.isManagerPagePrivileged(Te)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[Te])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[Te])],["facilities-settings-owners",Te=>this.authResolver.isAuthorized("getOwners_Facility_policy",[Te])],["facilities-settings-managers",Te=>this.authResolver.isManagerPagePrivileged(Te)],["facilities-settings-security-teams",Te=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[Te])],["facilities-settings-blacklist",Te=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[Te])]])}canNavigate(D,H){if(D.startsWith("admin")||D.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===D&&-1===H.id)return this.authResolver.canManageFacilities();const V=this.routePolicies.get(D);return!V||V(H)}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(w),_.LFG(e.H8),_.LFG(ue),_.LFG(te),_.LFG(A.F0))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})()},64080:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>e});let e=(()=>{class b{}return b.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",b.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",b.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",b.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",b.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",b.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",b.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",b.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",b.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",b.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",b.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",b.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",b.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",b.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",b.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",b.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",b.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",b.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",b.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",b.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",b.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",b.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",b})()},9244:($e,_e,p)=>{"use strict";p.d(_e,{dN:()=>m,Je:()=>C,f7:()=>I.f7,l9:()=>P.l,sF:()=>I.sF,XI:()=>I.XI,Xd:()=>I.Xd,aC:()=>I.aC,fx:()=>I.fx,dv:()=>I.dv,i5:()=>I.i5,Sd:()=>I.Sd,pR:()=>I.pR,ys:()=>I.ys,O6:()=>I.O6,B2:()=>I.B2,mH:()=>I.mH,MX:()=>I.MX,oU:()=>I.oU,IL:()=>I.IL,Jc:()=>I.Jc,Xn:()=>I.Xn,kZ:()=>I.kZ,v$:()=>I.v$,x2:()=>I.x2,vL:()=>I.vL,j4:()=>I.j4,jh:()=>I.jh,bx:()=>I.bx,Hm:()=>I.Hm,Cz:()=>I.Cz,sG:()=>I.sG,g$:()=>I.g$,bD:()=>I.bD,lt:()=>I.lt,Oe:()=>I.Oe,hu:()=>I.hu,Gw:()=>I.Gw,te:()=>I.te,kN:()=>I.kN,$0:()=>I.$0,OV:()=>I.OV});var e=p(86087),b=p(92181),_=p(25245),w=p(47423),g=p(51062),A=p(69808),E=p(5e3);let C=(()=>{class L{}return L.\u0275fac=function(G){return new(G||L)},L.\u0275mod=E.oAB({type:L}),L.\u0275inj=E.cJS({providers:[],imports:[[e.TU,b.Tx,_.Ps,w.ot,g.aw,A.ez]]}),L})();var I=p(17218),P=p(18750);class m{static passwordMatchValidator(O){const G=O.get("passwordCtrl").value,ne=O.get("passwordAgainCtrl").value;return O.get("passwordAgainCtrl").setErrors(G!==ne?{noPasswordMatch:!0}:null),null}static patternValidator(O){return G=>{if(!G.value)return null;let ne=0;for(const ge of O)ne+=ge.test(G.value)?1:0;return ne>=3?null:{isWeak:!0}}}}},17218:($e,_e,p)=>{"use strict";p.d(_e,{f7:()=>E,B2:()=>C,g$:()=>I,kN:()=>P,$0:()=>m,lt:()=>L,bD:()=>G,hu:()=>ne,Cz:()=>ge,te:()=>Me,ys:()=>oe,vL:()=>T,j4:()=>j,sF:()=>Y,XI:()=>q,OV:()=>de,MX:()=>Le,oU:()=>Ue,IL:()=>ze,Jc:()=>le,v$:()=>je,i5:()=>R,kZ:()=>me,dv:()=>be,Hm:()=>Ie,Oe:()=>pe,Gw:()=>Se,x2:()=>Xe,sG:()=>Je,pR:()=>Ve,Sd:()=>X,Xn:()=>Q,O6:()=>D,aC:()=>H,Xd:()=>V,fx:()=>xe,mH:()=>Qe,jh:()=>Te,bx:()=>Ae});var e=p(70655),b=p(48966),_=p(69808),w=p(94327),A=p(64080);const E=[5,10,25,100],C=/^(([^<>+()[\]\\.,;:\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 I(ae){let i="";return null==ae||ae.userAttributes.forEach(o=>{"preferredMail"===o.friendlyName&&(i=o.value)}),i&&0===i.length&&null!==ae.memberAttributes&&ae.memberAttributes.forEach(o=>{"mail"===o.friendlyName&&null!==o.value&&(i=o.value)}),i}function P(ae){let i="";return ae&&ae.userAttributes.forEach(o=>{"preferredMail"===o.friendlyName&&(i=o.value)}),i}function m(ae){let i="";return!!ae&&!!ae.userAttributes&&ae.userAttributes.filter(o=>"login-namespace"===o.baseFriendlyName).filter(o=>null!==o.value).forEach(o=>{i=i.concat(o.friendlyNameParameter,": ",o.value,", ")}),i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function L(ae){let i="";return!!ae&&!!ae.userAttributes&&ae.userAttributes.filter(o=>"login-namespace"===o.baseFriendlyName).filter(o=>null!==o.value).forEach(o=>{i=i.concat(o.friendlyNameParameter,": ",o.value,", ")}),i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function G(ae){let i="";return null!==ae.titleBefore&&(i+=ae.titleBefore+" "),null!==ae.firstName&&(i+=ae.firstName+" "),null!==ae.middleName&&(i+=ae.middleName+" "),null!==ae.lastName&&(i+=ae.lastName+" "),null!==ae.titleAfter&&(i+=ae.titleAfter+" "),i.endsWith(" ")&&(i=i.substring(0,i.length-1)),i}function ne(ae){let i="";return null!==ae.firstName&&(i+=ae.firstName+" "),null!==ae.middleName&&(i+=ae.middleName+" "),null!==ae.lastName&&(i+=ae.lastName+" "),i.endsWith(" ")&&(i=i.substring(0,i.length-1)),i}function ge(ae){let i="";return ae.split(/(?=[A-Z])/g).forEach(d=>{i=i.concat(d.toLowerCase()),i=i.concat(" ")}),i=i.charAt(0).toUpperCase()+i.slice(1,i.length-1),i}function Me(ae){let i="";for(const o of ae)"technical"===o.type&&(i+=o.name+", ");return i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function oe(ae,i){return(0,e.mG)(this,void 0,void 0,function*(){yield function Re(ae){return new Promise(i=>setTimeout(i,ae))}(ae),i()})}function T(ae){return JSON.parse(localStorage.getItem(ae))||[]}function j(ae){return JSON.parse(localStorage.getItem(ae))||[]}function Y(ae,i){if(null===localStorage.getItem(ae)){const o=[];o.unshift(i.id),localStorage.setItem(ae,JSON.stringify(o))}else{const o=JSON.parse(localStorage.getItem(ae)),d=function ue(ae,i){for(let o=0;o0&&o.splice(d,1),0!==d&&o.unshift(i.id),o.length>5&&o.pop(),localStorage.setItem(ae,JSON.stringify(o))}}function q(ae,i){if(null===localStorage.getItem("recent")){let o;o="Group"===ae.beanName?[{id:ae.id,name:ae.shortName,fullName:ae.name,type:ae.beanName,voId:ae.voId,voName:i}]:[{id:ae.id,name:ae.name,type:ae.beanName,voId:ae.voId}],localStorage.setItem("recent",JSON.stringify(o))}else{const o=JSON.parse(localStorage.getItem("recent"));let d;d="Group"===ae.beanName?{id:ae.id,name:ae.shortName,fullName:ae.name,type:ae.beanName,voId:ae.voId,voName:i}:{id:ae.id,name:ae.name,type:ae.beanName,voId:ae.voId};const l=function te(ae,i){for(let o=0;o0&&o.splice(l,1),0!==l&&o.unshift(d),o.length>5&&o.pop(),localStorage.setItem("recent",JSON.stringify(o))}}function de(ae){let i="";return ae&&ae.userAttributes.forEach(o=>{"organization"===o.friendlyName&&(i=o.value)}),i}function Le(ae){return ae.filter(i=>!i.namespace.includes("def:core"))}function Ue(ae,i){const o=i.find(d=>d.id===ae);return o?o.parentGroupId?Ue(o.parentGroupId,i).concat(o):[o]:[]}function ze(ae,i){for(const o of ae)if(o.namespace+":"+o.friendlyName===i)return o;return null}function le(ae){return null!=ae.attributes["urn:perun:member:attribute-def:def:mail"]?ae.attributes["urn:perun:member:attribute-def:def:mail"]:null!=ae.attributes["urn:perun:user:attribute-def:def:preferredMail"]?ae.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function je(ae){return ae.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function ye(ae){if(ae.includes("/CN=")){const i=ae.split("/");for(const o of i)if(o.startsWith("CN="))return Be(o.substring(3))}return ae}(ae.userExtSource.extSource.name):ae.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function W(ae){switch(ae){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 ae}}(ae.userExtSource.extSource.name):ae.userExtSource.extSource.name}function Be(ae){return decodeURIComponent(ae.replace(/\\x/g,"%"))}function R(ae=["en","cs"]){const i={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return ae.forEach(o=>{i.message[o]={locale:o,htmlFormat:!1,subject:"",text:""},i.htmlMessage[o]={locale:o,htmlFormat:!0,subject:"",text:""}}),i}function me(){const ae=new b.vA;return ae.disableClose=!0,ae.autoFocus=!1,ae}function be(ae){const i={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 o of ae)i.i18n[o]={locale:o,errorMessage:"",help:"",label:"",options:""};return i}function Ie(ae){return"virt"===ae.namespace.split(":")[4]}function pe(ae,i){return"valid"!==ae.toLowerCase()||i&&"valid"!==ae.toLowerCase()?ae:"ACTIVE"}function Se(ae){let i="";return null==ae||ae.memberAttributes.forEach(o=>{"organization"===o.friendlyName&&null!==o.value&&(i=o.value)}),0===i.length&&(null==ae||ae.userAttributes.forEach(o=>{"organization"===o.friendlyName&&(i=o.value)})),i}function Xe(ae){var i;const o=ae.attributes.find(d=>"groupMembershipExpiration"===d.baseFriendlyName);return null!==(i=null==o?void 0:o.value)&&void 0!==i?i:"Never"}function Je(ae){return ae&&"never"!==ae.toLowerCase()?(0,_.p6)(ae,"d.M.yyyy","en"):ae}const nt=new Intl.Collator("cs",{numeric:!0});function Ve(ae,i,o){const d=i.active,l=i.direction;return d&&""!==l?ae.sort((s,r)=>{const t=o(s,d),n=o(r,d);return nt.compare(t,n)*("asc"===l?1:-1)}):ae}function X(ae,i,o,d,l){i=i.toLowerCase();let s="";return o.forEach(r=>{s+=";"+d(ae,r)}),l&&(s+=";"+d(ae,"uuid")),s.toLowerCase().includes(i)}function Q(ae,i,o){const d=[],l=["checkbox","select","edit","menu","cite","extend","recent"];return i=i.filter(s=>!l.includes(s)),ae.forEach(s=>{const r={};i.forEach(t=>{var n;r[t]=(null!==(n=o(s,t))&&void 0!==n?n:"").split('"').join("''").trim()}),d.push(r)}),d}function D(ae,i="csv",o="export"){if("csv"===i){const d=(n,a)=>null===a?"":a,l=Object.keys(ae[0]),s=ae.map(n=>l.map(a=>JSON.stringify(n[a],d)).join(","));s.unshift(l.join(",").split(" ").join("_").split('"').join("''"));const r=s.join("\r\n"),t=new Blob([r],{type:"text/csv"});(0,w.saveAs)(t,`${o}.${i}`)}}function H(ae,i){return ae.name.toLowerCase()>i.name.toLowerCase()?1:ae.name.toLowerCase()===i.name.toLowerCase()?0:-1}function V(ae,i){return ae.displayName.toLowerCase()>i.displayName.toLowerCase()?1:ae.displayName.toLowerCase()===i.displayName.toLowerCase()?0:-1}function xe(ae,i){var o,d,l,s;let r,t;return ae.user?(r=ae.user.lastName?ae.user.lastName:null!==(o=ae.user.firstName)&&void 0!==o?o:"",t=i.user.lastName?i.user.lastName:null!==(d=i.user.firstName)&&void 0!==d?d:""):(r=ae.lastName?ae.lastName:null!==(l=ae.firstName)&&void 0!==l?l:"",t=i.lastName?i.lastName:null!==(s=i.firstName)&&void 0!==s?s:""),r>t?1:r===t?0:-1}function Qe(ae,i,o=[]){ae.enable(),ae.clearValidators(),ae.clearAsyncValidators(),ae.setValidators(i),ae.setAsyncValidators(o),ae.updateValueAndValidity()}function Te(ae,i){return!!ae&&ae.some(o=>o.namespace+":"+o.friendlyName===i&&null!==o.value&&"true"===String(o.value))}function Ae(ae){return Te(ae.attributes,A.r.GROUP_SYNC_ENABLED)||Te(ae.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED)}},18750:($e,_e,p)=>{"use strict";p.d(_e,{l:()=>G});var e=p(5e3),b=p(86087),_=p(17218),w=p(10036),g=p(69808),A=p(47423),E=p(92181),C=p(25245),I=p(51062);let P=(()=>{class ne{constructor(){this.exportData=new e.vpe}}return ne.\u0275fac=function(J){return new(J||ne)},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(J,Me){if(1&J&&(e.TgZ(0,"div",0),e.TgZ(1,"button",1),e.TgZ(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA(),e.qZA(),e.TgZ(4,"mat-menu",null,2),e.TgZ(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.qZA(),e.TgZ(9,"mat-menu",null,4),e.TgZ(11,"button",5),e.NdJ("click",function(){return Me.exportData.emit("csv")}),e._uU(12,"Csv"),e.qZA(),e.qZA(),e.qZA()),2&J){const oe=e.MAs(5),Re=e.MAs(10);e.xp6(1),e.Q6J("matMenuTriggerFor",oe),e.xp6(5),e.Q6J("matMenuTriggerFor",Re),e.xp6(1),e.hij(" ",e.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[A.lW,E.p6,C.Hw,E.VK,E.OP],pipes:[I.X$],styles:[""]}),ne})();function m(ne,ge){if(1&ne){const J=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(oe){return e.CHM(J),e.oxw().exportData.emit(oe)}),e.qZA()}}function L(ne,ge){if(1&ne){const J=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(oe){return e.CHM(J),e.oxw().exportData.emit(oe)}),e.qZA()}}const O=["*"];let G=(()=>{class ne{constructor(J){this.tableConfigService=J,this.hideExport=!1,this.pageSizeOptions=_.f7,this.dataLength=0,this.exportData=new e.vpe,this.pageSize=5}set matPaginator(J){this.paginator=J}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(J){this.pageSize=J.pageSize,this.tableConfigService.setTablePageSize(this.tableId,J.pageSize)}pageChangedBottom(J){this.paginator.pageSize=J.pageSize,this.paginator.pageIndex=J.pageIndex,this.paginator.page.emit(J),this.pageSize=J.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,J.pageSize)}}return ne.\u0275fac=function(J){return new(J||ne)(e.Y36(w.dB))},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(J,Me){if(1&J&&e.Gf(b.NW,7),2&J){let oe;e.iGM(oe=e.CRH())&&(Me.matPaginator=oe.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:O,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(J,Me){1&J&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-paginator",2),e.NdJ("page",function(Re){return Me.pageChangedTop(Re)}),e.qZA(),e.YNc(3,m,1,0,"perun-web-apps-table-options",3),e.qZA(),e.TgZ(4,"div",4),e.Hsn(5),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"mat-paginator",5),e.NdJ("page",function(Re){return Me.pageChangedBottom(Re)}),e.qZA(),e.YNc(8,L,1,0,"perun-web-apps-table-options",3),e.qZA(),e.qZA()),2&J&&(e.xp6(2),e.Q6J("length",Me.dataLength)("pageSizeOptions",Me.pageSizeOptions)("pageSize",Me.pageSize),e.xp6(1),e.Q6J("ngIf",!Me.hideExport),e.xp6(4),e.Q6J("length",Me.paginator.length)("pageIndex",Me.paginator.pageIndex)("pageSizeOptions",Me.paginator.pageSizeOptions)("pageSize",Me.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!Me.hideExport))},directives:[b.NW,g.O5,P],styles:[""]}),ne})()},98380:($e,_e,p)=>{"use strict";p.d(_e,{w:()=>I});var e=p(5e3),b=p(69808),_=p(25245);function w(P,m){1&P&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function g(P,m){1&P&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function A(P,m){1&P&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function E(P,m){1&P&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const C=["*"];let I=(()=>{class P{}return P.\u0275fac=function(L){return new(L||P)},P.\u0275cmp=e.Xpm({type:P,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:C,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,w,2,0,"mat-icon",1),e.YNc(2,g,2,0,"mat-icon",1),e.YNc(3,A,2,0,"mat-icon",1),e.YNc(4,E,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))},directives:[b.O5,_.Hw],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}"]}),P})()},63189:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>w});var e=p(25245),b=p(69808),_=p(5e3);let w=(()=>{class g{}return g.\u0275fac=function(E){return new(E||g)},g.\u0275mod=_.oAB({type:g}),g.\u0275inj=_.cJS({imports:[[e.Ps,b.ez]]}),g})()},6397:($e,_e,p)=>{"use strict";p.d(_e,{C:()=>ae});var e=p(69808),b=p(47423),_=p(9224),w=p(77446),g=p(48966),A=p(4834),E=p(81125),C=p(67322),I=p(5e3),P=p(90508);let je=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=I.oAB({type:i}),i.\u0275inj=I.cJS({imports:[[P.uc,P.BQ],P.uc,P.BQ]}),i})();var Be=p(25245),W=p(98833),R=p(20773),me=p(92081),be=p(32075),Ie=p(53435),pe=p(93075),Se=p(86856),Xe=p(2638),Je=p(14623),nt=p(92181);let V=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=I.oAB({type:i}),i.\u0275inj=I.cJS({imports:[[P.BQ],P.BQ]}),i})();var xe=p(84847),Qe=p(86087),Te=p(29772),Ae=p(74107);let ae=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=I.oAB({type:i}),i.\u0275inj=I.cJS({imports:[[e.ez,_.QW,A.t,E.To,b.ot,je,w.p9,Be.Ps,be.p0,g.Is,R.Cq,C.lN,W.c,Ie.Cl,pe.u5,pe.UX,me.T5,Se.FA,P.XK,Xe.SJ,Je.ie,nt.Tx,V,xe.JX,Qe.TU,Te.AV,Ae.LD,P.si],_.QW,A.t,E.To,b.ot,je,w.p9,Be.Ps,be.p0,g.Is,R.Cq,C.lN,W.c,Ie.Cl,pe.u5,pe.UX,me.T5,Se.FA,P.XK,Xe.SJ,Je.ie,nt.Tx,V,xe.JX,Qe.TU,Te.AV,Ae.LD,P.si]}),i})()},1302:function($e,_e,p){var e;!function(b,_){var w={};!function(b){"use strict";b.__esModule=!0,b.digestLength=32,b.blockSize=64;var _=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 w(O,G,ne,ge,J){for(var Me,oe,Re,T,j,Y,q,te,ue,de,Le,Ue,ze;J>=64;){for(Me=G[0],oe=G[1],Re=G[2],T=G[3],j=G[4],Y=G[5],q=G[6],te=G[7],de=0;de<16;de++)O[de]=(255&ne[Le=ge+4*de])<<24|(255&ne[Le+1])<<16|(255&ne[Le+2])<<8|255&ne[Le+3];for(de=16;de<64;de++)O[de]=((Ue=((ue=O[de-2])>>>17|ue<<15)^(ue>>>19|ue<<13)^ue>>>10)+O[de-7]|0)+((ze=((ue=O[de-15])>>>7|ue<<25)^(ue>>>18|ue<<14)^ue>>>3)+O[de-16]|0);for(de=0;de<64;de++)Ue=(((j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7))+(j&Y^~j&q)|0)+(te+(_[de]+O[de]|0)|0)|0,ze=((Me>>>2|Me<<30)^(Me>>>13|Me<<19)^(Me>>>22|Me<<10))+(Me&oe^Me&Re^oe&Re)|0,te=q,q=Y,Y=j,j=T+Ue|0,T=Re,Re=oe,oe=Me,Me=Ue+ze|0;G[0]+=Me,G[1]+=oe,G[2]+=Re,G[3]+=T,G[4]+=j,G[5]+=Y,G[6]+=q,G[7]+=te,ge+=64,J-=64}return ge}var g=function(){function O(){this.digestLength=b.digestLength,this.blockSize=b.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 G=0;G0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=G[ge++],ne--;64===this.bufferLength&&(w(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(ge=w(this.temp,this.state,G,ge,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=G[ge++],ne--;return this},O.prototype.finish=function(G){if(!this.finished){var ne=this.bytesHashed,ge=this.bufferLength,J=ne/536870912|0,Me=ne<<3,oe=ne%64<56?64:128;this.buffer[ge]=128;for(var Re=ge+1;Re>>24&255,this.buffer[oe-7]=J>>>16&255,this.buffer[oe-6]=J>>>8&255,this.buffer[oe-5]=J>>>0&255,this.buffer[oe-4]=Me>>>24&255,this.buffer[oe-3]=Me>>>16&255,this.buffer[oe-2]=Me>>>8&255,this.buffer[oe-1]=Me>>>0&255,w(this.temp,this.state,this.buffer,0,oe),this.finished=!0}for(Re=0;Re<8;Re++)G[4*Re+0]=this.state[Re]>>>24&255,G[4*Re+1]=this.state[Re]>>>16&255,G[4*Re+2]=this.state[Re]>>>8&255,G[4*Re+3]=this.state[Re]>>>0&255;return this},O.prototype.digest=function(){var G=new Uint8Array(this.digestLength);return this.finish(G),G},O.prototype._saveState=function(G){for(var ne=0;nethis.blockSize)(new g).update(G).finish(ne).clean();else for(var ge=0;ge1&&G.update(O),ne&&G.update(ne),G.update(ge),G.finish(O),ge[0]++}b.HMAC=A,b.hash=E,b.default=E,b.hmac=C;var P=new Uint8Array(b.digestLength);b.hkdf=function m(O,G,ne,ge){void 0===G&&(G=P),void 0===ge&&(ge=32);for(var J=new Uint8Array([1]),Me=C(G,O),oe=new A(Me),Re=new Uint8Array(oe.digestLength),T=Re.length,j=new Uint8Array(ge),Y=0;Y>>24&255,oe[1]=q>>>16&255,oe[2]=q>>>8&255,oe[3]=q>>>0&255,J.reset(),J.update(G),J.update(oe),J.finish(T);for(var te=0;te=m.status}function A(P){try{P.dispatchEvent(new MouseEvent("click"))}catch(L){var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),P.dispatchEvent(m)}}var E="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,C=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),I=E.saveAs||("object"!=typeof window||window!==E?function(){}:"download"in HTMLAnchorElement.prototype&&!C?function(P,m,L){var O=E.URL||E.webkitURL,G=document.createElement("a");G.download=m=m||P.name||"download",G.rel="noopener","string"==typeof P?(G.href=P,G.origin===location.origin?A(G):g(G.href)?w(P,m,L):A(G,G.target="_blank")):(G.href=O.createObjectURL(P),setTimeout(function(){O.revokeObjectURL(G.href)},4e4),setTimeout(function(){A(G)},0))}:"msSaveOrOpenBlob"in navigator?function(P,m,L){if(m=m||P.name||"download","string"!=typeof P)navigator.msSaveOrOpenBlob(function _(P,m){return void 0===m?m={autoBom:!1}:"object"!=typeof m&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(P.type)?new Blob(["\ufeff",P],{type:P.type}):P}(P,L),m);else if(g(P))w(P,m,L);else{var O=document.createElement("a");O.href=P,O.target="_blank",setTimeout(function(){A(O)})}}:function(P,m,L,O){if((O=O||open("","_blank"))&&(O.document.title=O.document.body.innerText="downloading..."),"string"==typeof P)return w(P,m,L);var G="application/octet-stream"===P.type,ne=/constructor/i.test(E.HTMLElement)||E.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||G&&ne||C)&&"undefined"!=typeof FileReader){var J=new FileReader;J.onloadend=function(){var Re=J.result;Re=ge?Re:Re.replace(/^data:[^;]*;/,"data:attachment/file;"),O?O.location.href=Re:location=Re,O=null},J.readAsDataURL(P)}else{var Me=E.URL||E.webkitURL,oe=Me.createObjectURL(P);O?O.location=oe:location.href=oe,O=null,setTimeout(function(){Me.revokeObjectURL(oe)},4e4)}});E.saveAs=I.saveAs=I,$e.exports=I}.apply(_e,[]))&&($e.exports=b)},591:($e,_e,p)=>{"use strict";p.d(_e,{X:()=>_});var e=p(8929),b=p(95279);class _ extends e.xQ{constructor(g){super(),this._value=g}get value(){return this.getValue()}_subscribe(g){const A=super._subscribe(g);return A&&!A.closed&&g.next(this._value),A}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b.N;return this._value}next(g){super.next(this._value=g)}}},51869:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(43489);class b extends e.L{constructor(w,g,A){super(),this.parent=w,this.outerValue=g,this.outerIndex=A,this.index=0}_next(w){this.parent.notifyNext(this.outerValue,w,this.outerIndex,this.index++,this)}_error(w){this.parent.notifyError(w,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},29312:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>g});var e=p(68896),b=p(21086),_=p(61737);class g{constructor(E,C,I){this.kind=E,this.value=C,this.error=I,this.hasValue="N"===E}observe(E){switch(this.kind){case"N":return E.next&&E.next(this.value);case"E":return E.error&&E.error(this.error);case"C":return E.complete&&E.complete()}}do(E,C,I){switch(this.kind){case"N":return E&&E(this.value);case"E":return C&&C(this.error);case"C":return I&&I()}}accept(E,C,I){return E&&"function"==typeof E.next?this.observe(E):this.do(E,C,I)}toObservable(){switch(this.kind){case"N":return(0,b.of)(this.value);case"E":return(0,_._)(this.error);case"C":return(0,e.c)()}throw new Error("unexpected notification kind value")}static createNext(E){return void 0!==E?new g("N",E):g.undefinedValueNotification}static createError(E){return new g("E",void 0,E)}static createComplete(){return g.completeNotification}}g.completeNotification=new g("C"),g.undefinedValueNotification=new g("N",void 0)},56498:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>I});var e=p(43489),_=p(57668),w=p(73292),A=p(93821),E=p(4843),C=p(92830);let I=(()=>{class m{constructor(O){this._isScalar=!1,O&&(this._subscribe=O)}lift(O){const G=new m;return G.source=this,G.operator=O,G}subscribe(O,G,ne){const{operator:ge}=this,J=function g(m,L,O){if(m){if(m instanceof e.L)return m;if(m[_.b])return m[_.b]()}return m||L||O?new e.L(m,L,O):new e.L(w.c)}(O,G,ne);if(J.add(ge?ge.call(J,this.source):this.source||C.v.useDeprecatedSynchronousErrorHandling&&!J.syncErrorThrowable?this._subscribe(J):this._trySubscribe(J)),C.v.useDeprecatedSynchronousErrorHandling&&J.syncErrorThrowable&&(J.syncErrorThrowable=!1,J.syncErrorThrown))throw J.syncErrorValue;return J}_trySubscribe(O){try{return this._subscribe(O)}catch(G){C.v.useDeprecatedSynchronousErrorHandling&&(O.syncErrorThrown=!0,O.syncErrorValue=G),function b(m){for(;m;){const{closed:L,destination:O,isStopped:G}=m;if(L||G)return!1;m=O&&O instanceof e.L?O:null}return!0}(O)?O.error(G):console.warn(G)}}forEach(O,G){return new(G=P(G))((ne,ge)=>{let J;J=this.subscribe(Me=>{try{O(Me)}catch(oe){ge(oe),J&&J.unsubscribe()}},ge,ne)})}_subscribe(O){const{source:G}=this;return G&&G.subscribe(O)}[A.L](){return this}pipe(...O){return 0===O.length?this:(0,E.U)(O)(this)}toPromise(O){return new(O=P(O))((G,ne)=>{let ge;this.subscribe(J=>ge=J,J=>ne(J),()=>G(ge))})}}return m.create=L=>new m(L),m})();function P(m){if(m||(m=C.v.Promise||Promise),!m)throw new Error("no Promise impl found");return m}},73292:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>_});var e=p(92830),b=p(22782);const _={closed:!0,next(w){},error(w){if(e.v.useDeprecatedSynchronousErrorHandling)throw w;(0,b.z)(w)},complete(){}}},826:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>b});var e=p(43489);class b extends e.L{notifyNext(w,g,A,E,C){this.destination.next(g)}notifyError(w,g){this.destination.error(w)}notifyComplete(w){this.destination.complete()}}},96831:($e,_e,p)=>{"use strict";p.d(_e,{t:()=>ge});var e=p(8929),b=p(56686),w=p(32268);const A=new class g extends w.v{}(class _ extends b.o{constructor(oe,Re){super(oe,Re),this.scheduler=oe,this.work=Re}schedule(oe,Re=0){return Re>0?super.schedule(oe,Re):(this.delay=Re,this.state=oe,this.scheduler.flush(this),this)}execute(oe,Re){return Re>0||this.closed?super.execute(oe,Re):this._execute(oe,Re)}requestAsyncId(oe,Re,T=0){return null!==T&&T>0||null===T&&this.delay>0?super.requestAsyncId(oe,Re,T):oe.flush(this)}});var E=p(42654),C=p(43489),I=p(29312);class L extends C.L{constructor(oe,Re,T=0){super(oe),this.scheduler=Re,this.delay=T}static dispatch(oe){const{notification:Re,destination:T}=oe;Re.observe(T),this.unsubscribe()}scheduleMessage(oe){this.destination.add(this.scheduler.schedule(L.dispatch,this.delay,new O(oe,this.destination)))}_next(oe){this.scheduleMessage(I.P.createNext(oe))}_error(oe){this.scheduleMessage(I.P.createError(oe)),this.unsubscribe()}_complete(){this.scheduleMessage(I.P.createComplete()),this.unsubscribe()}}class O{constructor(oe,Re){this.notification=oe,this.destination=Re}}var G=p(95279),ne=p(45283);class ge extends e.xQ{constructor(oe=Number.POSITIVE_INFINITY,Re=Number.POSITIVE_INFINITY,T){super(),this.scheduler=T,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=oe<1?1:oe,this._windowTime=Re<1?1:Re,Re===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(oe){const Re=this._events;Re.push(oe),Re.length>this._bufferSize&&Re.shift(),super.next(oe)}nextTimeWindow(oe){this._events.push(new J(this._getNow(),oe)),this._trimBufferThenGetEvents(),super.next(oe)}_subscribe(oe){const Re=this._infiniteTimeWindow,T=Re?this._events:this._trimBufferThenGetEvents(),j=this.scheduler,Y=T.length;let q;if(this.closed)throw new G.N;if(this.isStopped||this.hasError?q=E.w.EMPTY:(this.observers.push(oe),q=new ne.W(this,oe)),j&&oe.add(oe=new L(oe,j)),Re)for(let te=0;teRe&&(q=Math.max(q,Y-Re)),q>0&&j.splice(0,q),j}}class J{constructor(oe,Re){this.time=oe,this.value=Re}}},8929:($e,_e,p)=>{"use strict";p.d(_e,{Yc:()=>E,xQ:()=>C});var e=p(56498),b=p(43489),_=p(42654),w=p(95279),g=p(45283),A=p(57668);class E extends b.L{constructor(m){super(m),this.destination=m}}let C=(()=>{class P extends e.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[A.b](){return new E(this)}lift(L){const O=new I(this,this);return O.operator=L,O}next(L){if(this.closed)throw new w.N;if(!this.isStopped){const{observers:O}=this,G=O.length,ne=O.slice();for(let ge=0;genew I(m,L),P})();class I extends C{constructor(m,L){super(),this.destination=m,this.source=L}next(m){const{destination:L}=this;L&&L.next&&L.next(m)}error(m){const{destination:L}=this;L&&L.error&&this.destination.error(m)}complete(){const{destination:m}=this;m&&m.complete&&this.destination.complete()}_subscribe(m){const{source:L}=this;return L?this.source.subscribe(m):_.w.EMPTY}}},45283:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>b});var e=p(42654);class b extends e.w{constructor(w,g){super(),this.subject=w,this.subscriber=g,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const w=this.subject,g=w.observers;if(this.subject=null,!g||0===g.length||w.isStopped||w.closed)return;const A=g.indexOf(this.subscriber);-1!==A&&g.splice(A,1)}}},43489:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>E});var e=p(67043),b=p(73292),_=p(42654),w=p(57668),g=p(92830),A=p(22782);class E extends _.w{constructor(P,m,L){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=b.c;break;case 1:if(!P){this.destination=b.c;break}if("object"==typeof P){P instanceof E?(this.syncErrorThrowable=P.syncErrorThrowable,this.destination=P,P.add(this)):(this.syncErrorThrowable=!0,this.destination=new C(this,P));break}default:this.syncErrorThrowable=!0,this.destination=new C(this,P,m,L)}}[w.b](){return this}static create(P,m,L){const O=new E(P,m,L);return O.syncErrorThrowable=!1,O}next(P){this.isStopped||this._next(P)}error(P){this.isStopped||(this.isStopped=!0,this._error(P))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(P){this.destination.next(P)}_error(P){this.destination.error(P),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:P}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=P,this}}class C extends E{constructor(P,m,L,O){super(),this._parentSubscriber=P;let G,ne=this;(0,e.m)(m)?G=m:m&&(G=m.next,L=m.error,O=m.complete,m!==b.c&&(ne=Object.create(m),(0,e.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=G,this._error=L,this._complete=O}next(P){if(!this.isStopped&&this._next){const{_parentSubscriber:m}=this;g.v.useDeprecatedSynchronousErrorHandling&&m.syncErrorThrowable?this.__tryOrSetError(m,this._next,P)&&this.unsubscribe():this.__tryOrUnsub(this._next,P)}}error(P){if(!this.isStopped){const{_parentSubscriber:m}=this,{useDeprecatedSynchronousErrorHandling:L}=g.v;if(this._error)L&&m.syncErrorThrowable?(this.__tryOrSetError(m,this._error,P),this.unsubscribe()):(this.__tryOrUnsub(this._error,P),this.unsubscribe());else if(m.syncErrorThrowable)L?(m.syncErrorValue=P,m.syncErrorThrown=!0):(0,A.z)(P),this.unsubscribe();else{if(this.unsubscribe(),L)throw P;(0,A.z)(P)}}}complete(){if(!this.isStopped){const{_parentSubscriber:P}=this;if(this._complete){const m=()=>this._complete.call(this._context);g.v.useDeprecatedSynchronousErrorHandling&&P.syncErrorThrowable?(this.__tryOrSetError(P,m),this.unsubscribe()):(this.__tryOrUnsub(m),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(P,m){try{P.call(this._context,m)}catch(L){if(this.unsubscribe(),g.v.useDeprecatedSynchronousErrorHandling)throw L;(0,A.z)(L)}}__tryOrSetError(P,m,L){if(!g.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{m.call(this._context,L)}catch(O){return g.v.useDeprecatedSynchronousErrorHandling?(P.syncErrorValue=O,P.syncErrorThrown=!0,!0):((0,A.z)(O),!0)}return!1}_unsubscribe(){const{_parentSubscriber:P}=this;this._context=null,this._parentSubscriber=null,P.unsubscribe()}}},42654:($e,_e,p)=>{"use strict";p.d(_e,{w:()=>A});var e=p(66688),b=p(57830),_=p(67043);const g=(()=>{function C(I){return Error.call(this),this.message=I?`${I.length} errors occurred during unsubscription:\n${I.map((P,m)=>`${m+1}) ${P.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=I,this}return C.prototype=Object.create(Error.prototype),C})();class A{constructor(I){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,I&&(this._unsubscribe=I)}unsubscribe(){let I;if(this.closed)return;let{_parentOrParents:P,_unsubscribe:m,_subscriptions:L}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,P instanceof A)P.remove(this);else if(null!==P)for(let O=0;OI.concat(P instanceof g?P.errors:P),[])}A.EMPTY=((C=new A).closed=!0,C)},92830:($e,_e,p)=>{"use strict";p.d(_e,{v:()=>b});let e=!1;const b={Promise:void 0,set useDeprecatedSynchronousErrorHandling(_){if(_){const w=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+w.stack)}else e&&console.log("RxJS: Back to a better error behavior. Thank you. <3");e=_},get useDeprecatedSynchronousErrorHandling(){return e}}},71762:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>g,N:()=>A});var e=p(8929),b=p(56498),_=p(42654),w=p(74327);class g extends b.y{constructor(m,L){super(),this.source=m,this.subjectFactory=L,this._refCount=0,this._isComplete=!1}_subscribe(m){return this.getSubject().subscribe(m)}getSubject(){const m=this._subject;return(!m||m.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let m=this._connection;return m||(this._isComplete=!1,m=this._connection=new _.w,m.add(this.source.subscribe(new E(this.getSubject(),this))),m.closed&&(this._connection=null,m=_.w.EMPTY)),m}refCount(){return(0,w.x)()(this)}}const A=(()=>{const P=g.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:P._subscribe},_isComplete:{value:P._isComplete,writable:!0},getSubject:{value:P.getSubject},connect:{value:P.connect},refCount:{value:P.refCount}}})();class E extends e.Yc{constructor(m,L){super(m),this.connectable=L}_error(m){this._unsubscribe(),super._error(m)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const m=this.connectable;if(m){this.connectable=null;const L=m._connection;m._refCount=0,m._subject=null,m._connection=null,L&&L.unsubscribe()}}}},36053:($e,_e,p)=>{"use strict";p.d(_e,{aj:()=>E});var e=p(72866),b=p(66688),_=p(826),w=p(69054),g=p(33009);const A={};function E(...P){let m=null,L=null;return(0,e.K)(P[P.length-1])&&(L=P.pop()),"function"==typeof P[P.length-1]&&(m=P.pop()),1===P.length&&(0,b.k)(P[0])&&(P=P[0]),(0,g.n)(P,L).lift(new C(m))}class C{constructor(m){this.resultSelector=m}call(m,L){return L.subscribe(new I(m,this.resultSelector))}}class I extends _.L{constructor(m,L){super(m),this.resultSelector=L,this.active=0,this.values=[],this.observables=[]}_next(m){this.values.push(A),this.observables.push(m)}_complete(){const m=this.observables,L=m.length;if(0===L)this.destination.complete();else{this.active=L,this.toRespond=L;for(let O=0;O{"use strict";p.d(_e,{z:()=>w});var e=p(21086),b=p(89146);function w(...g){return function _(){return(0,b.J)(1)}()((0,e.of)(...g))}},88514:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>w});var e=p(56498),b=p(5254),_=p(68896);function w(g){return new e.y(A=>{let E;try{E=g()}catch(I){return void A.error(I)}return(E?(0,b.D)(E):(0,_.c)()).subscribe(A)})}},68896:($e,_e,p)=>{"use strict";p.d(_e,{E:()=>b,c:()=>_});var e=p(56498);const b=new e.y(g=>g.complete());function _(g){return g?function w(g){return new e.y(A=>g.schedule(()=>A.complete()))}(g):b}},30567:($e,_e,p)=>{"use strict";p.d(_e,{D:()=>A});var e=p(56498),b=p(66688),_=p(24850),w=p(57830),g=p(5254);function A(...C){if(1===C.length){const I=C[0];if((0,b.k)(I))return E(I,null);if((0,w.K)(I)&&Object.getPrototypeOf(I)===Object.prototype){const P=Object.keys(I);return E(P.map(m=>I[m]),P)}}if("function"==typeof C[C.length-1]){const I=C.pop();return E(C=1===C.length&&(0,b.k)(C[0])?C[0]:C,null).pipe((0,_.U)(P=>I(...P)))}return E(C,null)}function E(C,I){return new e.y(P=>{const m=C.length;if(0===m)return void P.complete();const L=new Array(m);let O=0,G=0;for(let ne=0;ne{J||(J=!0,G++),L[ne]=Me},error:Me=>P.error(Me),complete:()=>{O++,(O===m||!J)&&(G===m&&P.next(I?I.reduce((Me,oe,Re)=>(Me[oe]=L[Re],Me),{}):L),P.complete())}}))}})}},5254:($e,_e,p)=>{"use strict";p.d(_e,{D:()=>ne});var e=p(56498),b=p(59249),_=p(42654),w=p(93821),E=p(66454),C=p(5430),m=p(98955),L=p(58515);function ne(ge,J){return J?function G(ge,J){if(null!=ge){if(function P(ge){return ge&&"function"==typeof ge[w.L]}(ge))return function g(ge,J){return new e.y(Me=>{const oe=new _.w;return oe.add(J.schedule(()=>{const Re=ge[w.L]();oe.add(Re.subscribe({next(T){oe.add(J.schedule(()=>Me.next(T)))},error(T){oe.add(J.schedule(()=>Me.error(T)))},complete(){oe.add(J.schedule(()=>Me.complete()))}}))})),oe})}(ge,J);if((0,m.t)(ge))return function A(ge,J){return new e.y(Me=>{const oe=new _.w;return oe.add(J.schedule(()=>ge.then(Re=>{oe.add(J.schedule(()=>{Me.next(Re),oe.add(J.schedule(()=>Me.complete()))}))},Re=>{oe.add(J.schedule(()=>Me.error(Re)))}))),oe})}(ge,J);if((0,L.z)(ge))return(0,E.r)(ge,J);if(function O(ge){return ge&&"function"==typeof ge[C.hZ]}(ge)||"string"==typeof ge)return function I(ge,J){if(!ge)throw new Error("Iterable cannot be null");return new e.y(Me=>{const oe=new _.w;let Re;return oe.add(()=>{Re&&"function"==typeof Re.return&&Re.return()}),oe.add(J.schedule(()=>{Re=ge[C.hZ](),oe.add(J.schedule(function(){if(Me.closed)return;let T,j;try{const Y=Re.next();T=Y.value,j=Y.done}catch(Y){return void Me.error(Y)}j?Me.complete():(Me.next(T),this.schedule())}))})),oe})}(ge,J)}throw new TypeError((null!==ge&&typeof ge||ge)+" is not observable")}(ge,J):ge instanceof e.y?ge:new e.y((0,b.s)(ge))}},33009:($e,_e,p)=>{"use strict";p.d(_e,{n:()=>w});var e=p(56498),b=p(13650),_=p(66454);function w(g,A){return A?(0,_.r)(g,A):new e.y((0,b.V)(g))}},23753:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>A});var e=p(56498),b=p(66688),_=p(67043),w=p(24850);function A(m,L,O,G){return(0,_.m)(O)&&(G=O,O=void 0),G?A(m,L,O).pipe((0,w.U)(ne=>(0,b.k)(ne)?G(...ne):G(ne))):new e.y(ne=>{E(m,L,function ge(J){ne.next(arguments.length>1?Array.prototype.slice.call(arguments):J)},ne,O)})}function E(m,L,O,G,ne){let ge;if(function P(m){return m&&"function"==typeof m.addEventListener&&"function"==typeof m.removeEventListener}(m)){const J=m;m.addEventListener(L,O,ne),ge=()=>J.removeEventListener(L,O,ne)}else if(function I(m){return m&&"function"==typeof m.on&&"function"==typeof m.off}(m)){const J=m;m.on(L,O),ge=()=>J.off(L,O)}else if(function C(m){return m&&"function"==typeof m.addListener&&"function"==typeof m.removeListener}(m)){const J=m;m.addListener(L,O),ge=()=>J.removeListener(L,O)}else{if(!m||!m.length)throw new TypeError("Invalid event target");for(let J=0,Me=m.length;J{"use strict";p.d(_e,{F:()=>w});var e=p(56498),b=p(20353),_=p(84241);function w(A=0,E=b.P){return(!(0,_.k)(A)||A<0)&&(A=0),(!E||"function"!=typeof E.schedule)&&(E=b.P),new e.y(C=>(C.add(E.schedule(g,A,{subscriber:C,counter:0,period:A})),C))}function g(A){const{subscriber:E,counter:C,period:I}=A;E.next(C),this.schedule({subscriber:E,counter:C+1,period:I},I)}},36787:($e,_e,p)=>{"use strict";p.d(_e,{T:()=>g});var e=p(56498),b=p(72866),_=p(89146),w=p(33009);function g(...A){let E=Number.POSITIVE_INFINITY,C=null,I=A[A.length-1];return(0,b.K)(I)?(C=A.pop(),A.length>1&&"number"==typeof A[A.length-1]&&(E=A.pop())):"number"==typeof I&&(E=A.pop()),null===C&&1===A.length&&A[0]instanceof e.y?A[0]:(0,_.J)(E)((0,w.n)(A,C))}},21086:($e,_e,p)=>{"use strict";p.d(_e,{of:()=>w});var e=p(72866),b=p(33009),_=p(66454);function w(...g){let A=g[g.length-1];return(0,e.K)(A)?(g.pop(),(0,_.r)(g,A)):(0,b.n)(g)}},61946:($e,_e,p)=>{"use strict";p.d(_e,{S3:()=>g});var e=p(66688),b=p(33009),_=p(826),w=p(69054);function g(...C){if(1===C.length){if(!(0,e.k)(C[0]))return C[0];C=C[0]}return(0,b.n)(C,void 0).lift(new A)}class A{call(I,P){return P.subscribe(new E(I))}}class E extends _.L{constructor(I){super(I),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(I){this.observables.push(I)}_complete(){const I=this.observables,P=I.length;if(0===P)this.destination.complete();else{for(let m=0;m{"use strict";p.d(_e,{_:()=>b});var e=p(56498);function b(w,g){return new e.y(g?A=>g.schedule(_,0,{error:w,subscriber:A}):A=>A.error(w))}function _({error:w,subscriber:g}){g.error(w)}},98723:($e,_e,p)=>{"use strict";p.d(_e,{H:()=>g});var e=p(56498),b=p(20353),_=p(84241),w=p(72866);function g(E=0,C,I){let P=-1;return(0,_.k)(C)?P=Number(C)<1?1:Number(C):(0,w.K)(C)&&(I=C),(0,w.K)(I)||(I=b.P),new e.y(m=>{const L=(0,_.k)(E)?E:+E-I.now();return I.schedule(A,L,{index:0,period:P,subscriber:m})})}function A(E){const{index:C,period:I,subscriber:P}=E;if(P.next(C),!P.closed){if(-1===I)return P.complete();E.index=C+1,this.schedule(E,I)}}},57138:($e,_e,p)=>{"use strict";p.d(_e,{e:()=>C});var e=p(20353),b=p(826),_=p(69054);class g{constructor(P){this.durationSelector=P}call(P,m){return m.subscribe(new A(P,this.durationSelector))}}class A extends b.L{constructor(P,m){super(P),this.durationSelector=m,this.hasValue=!1}_next(P){if(this.value=P,this.hasValue=!0,!this.throttled){let m;try{const{durationSelector:O}=this;m=O(P)}catch(O){return this.destination.error(O)}const L=(0,_.D)(this,m);!L||L.closed?this.clearThrottle():this.add(this.throttled=L)}}clearThrottle(){const{value:P,hasValue:m,throttled:L}=this;L&&(this.remove(L),this.throttled=null,L.unsubscribe()),m&&(this.value=null,this.hasValue=!1,this.destination.next(P))}notifyNext(P,m,L,O){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var E=p(98723);function C(I,P=e.P){return function w(I){return function(m){return m.lift(new g(I))}}(()=>(0,E.H)(I,P))}},27221:($e,_e,p)=>{"use strict";p.d(_e,{K:()=>w});var e=p(826),b=p(51869),_=p(69054);function w(E){return function(I){const P=new g(E),m=I.lift(P);return P.caught=m}}class g{constructor(C){this.selector=C}call(C,I){return I.subscribe(new A(C,this.selector,this.caught))}}class A extends e.L{constructor(C,I,P){super(C),this.selector=I,this.caught=P}error(C){if(!this.isStopped){let I;try{I=this.selector(C,this.caught)}catch(L){return void super.error(L)}this._unsubscribeAndRecycle();const P=new b.d(this,void 0,void 0);this.add(P);const m=(0,_.D)(this,I,void 0,void 0,P);m!==P&&this.add(m)}}}},21406:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>b});var e=p(61709);function b(_,w){return(0,e.zg)(_,w,1)}},80013:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>_});var e=p(43489),b=p(20353);function _(E,C=b.P){return I=>I.lift(new w(E,C))}class w{constructor(C,I){this.dueTime=C,this.scheduler=I}call(C,I){return I.subscribe(new g(C,this.dueTime,this.scheduler))}}class g extends e.L{constructor(C,I,P){super(C),this.dueTime=I,this.scheduler=P,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(C){this.clearDebounce(),this.lastValue=C,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(A,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:C}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(C)}}clearDebounce(){const C=this.debouncedSubscription;null!==C&&(this.remove(C),C.unsubscribe(),this.debouncedSubscription=null)}}function A(E){E.debouncedNext()}},47314:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(43489);function b(g=null){return A=>A.lift(new _(g))}class _{constructor(A){this.defaultValue=A}call(A,E){return E.subscribe(new w(A,this.defaultValue))}}class w extends e.L{constructor(A,E){super(A),this.defaultValue=E,this.isEmpty=!0}_next(A){this.isEmpty=!1,this.destination.next(A)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},40943:($e,_e,p)=>{"use strict";p.d(_e,{g:()=>g});var e=p(20353),b=p(82697),_=p(43489),w=p(29312);function g(I,P=e.P){const L=(0,b.J)(I)?+I-P.now():Math.abs(I);return O=>O.lift(new A(L,P))}class A{constructor(P,m){this.delay=P,this.scheduler=m}call(P,m){return m.subscribe(new E(P,this.delay,this.scheduler))}}class E extends _.L{constructor(P,m,L){super(P),this.delay=m,this.scheduler=L,this.queue=[],this.active=!1,this.errored=!1}static dispatch(P){const m=P.source,L=m.queue,O=P.scheduler,G=P.destination;for(;L.length>0&&L[0].time-O.now()<=0;)L.shift().notification.observe(G);if(L.length>0){const ne=Math.max(0,L[0].time-O.now());this.schedule(P,ne)}else this.unsubscribe(),m.active=!1}_schedule(P){this.active=!0,this.destination.add(P.schedule(E.dispatch,this.delay,{source:this,destination:this.destination,scheduler:P}))}scheduleNotification(P){if(!0===this.errored)return;const m=this.scheduler,L=new C(m.now()+this.delay,P);this.queue.push(L),!1===this.active&&this._schedule(m)}_next(P){this.scheduleNotification(w.P.createNext(P))}_error(P){this.errored=!0,this.queue=[],this.destination.error(P),this.unsubscribe()}_complete(){this.scheduleNotification(w.P.createComplete()),this.unsubscribe()}}class C{constructor(P,m){this.time=P,this.notification=m}}},75778:($e,_e,p)=>{"use strict";p.d(_e,{x:()=>b});var e=p(43489);function b(g,A){return E=>E.lift(new _(g,A))}class _{constructor(A,E){this.compare=A,this.keySelector=E}call(A,E){return E.subscribe(new w(A,this.compare,this.keySelector))}}class w extends e.L{constructor(A,E,C){super(A),this.keySelector=C,this.hasKey=!1,"function"==typeof E&&(this.compare=E)}compare(A,E){return A===E}_next(A){let E;try{const{keySelector:I}=this;E=I?I(A):A}catch(I){return this.destination.error(I)}let C=!1;if(this.hasKey)try{const{compare:I}=this;C=I(this.key,E)}catch(I){return this.destination.error(I)}else this.hasKey=!0;C||(this.key=E,this.destination.next(A))}}},92198:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>b});var e=p(43489);function b(g,A){return function(C){return C.lift(new _(g,A))}}class _{constructor(A,E){this.predicate=A,this.thisArg=E}call(A,E){return E.subscribe(new w(A,this.predicate,this.thisArg))}}class w extends e.L{constructor(A,E,C){super(A),this.predicate=E,this.thisArg=C,this.count=0}_next(A){let E;try{E=this.predicate.call(this.thisArg,A,this.count++)}catch(C){return void this.destination.error(C)}E&&this.destination.next(A)}}},40537:($e,_e,p)=>{"use strict";p.d(_e,{x:()=>_});var e=p(43489),b=p(42654);function _(A){return E=>E.lift(new w(A))}class w{constructor(E){this.callback=E}call(E,C){return C.subscribe(new g(E,this.callback))}}class g extends e.L{constructor(E,C){super(E),this.add(new b.w(C))}}},87224:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>E});var e=p(84450),b=p(92198),_=p(72986),w=p(47314),g=p(34907),A=p(35379);function E(C,I){const P=arguments.length>=2;return m=>m.pipe(C?(0,b.h)((L,O)=>C(L,O,m)):A.y,(0,_.q)(1),P?(0,w.d)(I):(0,g.T)(()=>new e.K))}},24850:($e,_e,p)=>{"use strict";p.d(_e,{U:()=>b});var e=p(43489);function b(g,A){return function(C){if("function"!=typeof g)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return C.lift(new _(g,A))}}class _{constructor(A,E){this.project=A,this.thisArg=E}call(A,E){return E.subscribe(new w(A,this.project,this.thisArg))}}class w extends e.L{constructor(A,E,C){super(A),this.project=E,this.count=0,this.thisArg=C||this}_next(A){let E;try{E=this.project.call(this.thisArg,A,this.count++)}catch(C){return void this.destination.error(C)}this.destination.next(E)}}},77604:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>b});var e=p(43489);function b(g){return A=>A.lift(new _(g))}class _{constructor(A){this.value=A}call(A,E){return E.subscribe(new w(A,this.value))}}class w extends e.L{constructor(A,E){super(A),this.value=E}_next(A){this.destination.next(this.value)}}},89146:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>_});var e=p(61709),b=p(35379);function _(w=Number.POSITIVE_INFINITY){return(0,e.zg)(b.y,w)}},61709:($e,_e,p)=>{"use strict";p.d(_e,{zg:()=>A});var e=p(69054),b=p(826),_=p(51869),w=p(24850),g=p(5254);function A(I,P,m=Number.POSITIVE_INFINITY){return"function"==typeof P?L=>L.pipe(A((O,G)=>(0,g.D)(I(O,G)).pipe((0,w.U)((ne,ge)=>P(O,ne,G,ge))),m)):("number"==typeof P&&(m=P),L=>L.lift(new E(I,m)))}class E{constructor(P,m=Number.POSITIVE_INFINITY){this.project=P,this.concurrent=m}call(P,m){return m.subscribe(new C(P,this.project,this.concurrent))}}class C extends b.L{constructor(P,m,L=Number.POSITIVE_INFINITY){super(P),this.project=m,this.concurrent=L,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(P){this.active0?this._next(m.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},74327:($e,_e,p)=>{"use strict";p.d(_e,{x:()=>b});var e=p(43489);function b(){return function(A){return A.lift(new _(A))}}class _{constructor(A){this.connectable=A}call(A,E){const{connectable:C}=this;C._refCount++;const I=new w(A,C),P=E.subscribe(I);return I.closed||(I.connection=C.connect()),P}}class w extends e.L{constructor(A,E){super(A),this.connectable=E}_unsubscribe(){const{connectable:A}=this;if(!A)return void(this.connection=null);this.connectable=null;const E=A._refCount;if(E<=0)return void(this.connection=null);if(A._refCount=E-1,E>1)return void(this.connection=null);const{connection:C}=this,I=A._connection;this.connection=null,I&&(!C||I===C)&&I.unsubscribe()}}},92014:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>b});var e=p(43489);function b(g,A){let E=!1;return arguments.length>=2&&(E=!0),function(I){return I.lift(new _(g,A,E))}}class _{constructor(A,E,C=!1){this.accumulator=A,this.seed=E,this.hasSeed=C}call(A,E){return E.subscribe(new w(A,this.accumulator,this.seed,this.hasSeed))}}class w extends e.L{constructor(A,E,C,I){super(A),this.accumulator=E,this._seed=C,this.hasSeed=I,this.index=0}get seed(){return this._seed}set seed(A){this.hasSeed=!0,this._seed=A}_next(A){if(this.hasSeed)return this._tryNext(A);this.seed=A,this.destination.next(A)}_tryNext(A){const E=this.index++;let C;try{C=this.accumulator(this.seed,A,E)}catch(I){this.destination.error(I)}this.seed=C,this.destination.next(C)}}},12474:($e,_e,p)=>{"use strict";p.d(_e,{B:()=>E});var e=p(71762);class _{constructor(I,P){this.subjectFactory=I,this.selector=P}call(I,P){const{selector:m}=this,L=this.subjectFactory(),O=m(L).subscribe(I);return O.add(P.subscribe(L)),O}}var w=p(74327),g=p(8929);function A(){return new g.xQ}function E(){return C=>(0,w.x)()(function b(C,I){return function(m){let L;if(L="function"==typeof C?C:function(){return C},"function"==typeof I)return m.lift(new _(L,I));const O=Object.create(m,e.N);return O.source=m,O.subjectFactory=L,O}}(A)(C))}},5154:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(96831);function b(w,g,A){let E;return E=w&&"object"==typeof w?w:{bufferSize:w,windowTime:g,refCount:!1,scheduler:A},C=>C.lift(function _({bufferSize:w=Number.POSITIVE_INFINITY,windowTime:g=Number.POSITIVE_INFINITY,refCount:A,scheduler:E}){let C,P,I=0,m=!1,L=!1;return function(G){I++,(!C||m)&&(m=!1,C=new e.t(w,g,E),P=G.subscribe({next(ge){C.next(ge)},error(ge){m=!0,C.error(ge)},complete(){L=!0,P=void 0,C.complete()}}));const ne=C.subscribe(this);this.add(()=>{I--,ne.unsubscribe(),P&&!L&&A&&0===I&&(P.unsubscribe(),P=void 0,C=void 0)})}}(E))}},31307:($e,_e,p)=>{"use strict";p.d(_e,{T:()=>b});var e=p(43489);function b(g){return A=>A.lift(new _(g))}class _{constructor(A){this.total=A}call(A,E){return E.subscribe(new w(A,this.total))}}class w extends e.L{constructor(A,E){super(A),this.total=E,this.count=0}_next(A){++this.count>this.total&&this.destination.next(A)}}},1059:($e,_e,p)=>{"use strict";p.d(_e,{O:()=>_});var e=p(61221),b=p(72866);function _(...w){const g=w[w.length-1];return(0,b.K)(g)?(w.pop(),A=>(0,e.z)(w,A,g)):A=>(0,e.z)(w,A)}},87545:($e,_e,p)=>{"use strict";p.d(_e,{w:()=>A});var e=p(826),b=p(51869),_=p(69054),w=p(24850),g=p(5254);function A(I,P){return"function"==typeof P?m=>m.pipe(A((L,O)=>(0,g.D)(I(L,O)).pipe((0,w.U)((G,ne)=>P(L,G,O,ne))))):m=>m.lift(new E(I))}class E{constructor(P){this.project=P}call(P,m){return m.subscribe(new C(P,this.project))}}class C extends e.L{constructor(P,m){super(P),this.project=m,this.index=0}_next(P){let m;const L=this.index++;try{m=this.project(P,L)}catch(O){return void this.destination.error(O)}this._innerSub(m,P,L)}_innerSub(P,m,L){const O=this.innerSubscription;O&&O.unsubscribe();const G=new b.d(this,m,L),ne=this.destination;ne.add(G),this.innerSubscription=(0,_.D)(this,P,void 0,void 0,G),this.innerSubscription!==G&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:P}=this;(!P||P.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(P){this.destination.remove(P),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(P,m,L,O,G){this.destination.next(m)}}},72986:($e,_e,p)=>{"use strict";p.d(_e,{q:()=>w});var e=p(43489),b=p(94231),_=p(68896);function w(E){return C=>0===E?(0,_.c)():C.lift(new g(E))}class g{constructor(C){if(this.total=C,this.total<0)throw new b.W}call(C,I){return I.subscribe(new A(C,this.total))}}class A extends e.L{constructor(C,I){super(C),this.total=I,this.count=0}_next(C){const I=this.total,P=++this.count;P<=I&&(this.destination.next(C),P===I&&(this.destination.complete(),this.unsubscribe()))}}},92821:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>w});var e=p(43489),b=p(94231),_=p(68896);function w(E){return function(I){return 0===E?(0,_.c)():I.lift(new g(E))}}class g{constructor(C){if(this.total=C,this.total<0)throw new b.W}call(C,I){return I.subscribe(new A(C,this.total))}}class A extends e.L{constructor(C,I){super(C),this.total=I,this.ring=new Array,this.count=0}_next(C){const I=this.ring,P=this.total,m=this.count++;I.length0){const P=this.count>=this.total?this.total:this.count,m=this.ring;for(let L=0;L{"use strict";p.d(_e,{R:()=>_});var e=p(826),b=p(69054);function _(A){return E=>E.lift(new w(A))}class w{constructor(E){this.notifier=E}call(E,C){const I=new g(E),P=(0,b.D)(I,this.notifier);return P&&!I.seenValue?(I.add(P),C.subscribe(I)):I}}class g extends e.L{constructor(E){super(E),this.seenValue=!1}notifyNext(E,C,I,P,m){this.seenValue=!0,this.complete()}notifyComplete(){}}},22868:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>w});var e=p(43489);function b(){}var _=p(67043);function w(E,C,I){return function(m){return m.lift(new g(E,C,I))}}class g{constructor(C,I,P){this.nextOrObserver=C,this.error=I,this.complete=P}call(C,I){return I.subscribe(new A(C,this.nextOrObserver,this.error,this.complete))}}class A extends e.L{constructor(C,I,P,m){super(C),this._tapNext=b,this._tapError=b,this._tapComplete=b,this._tapError=P||b,this._tapComplete=m||b,(0,_.m)(I)?(this._context=this,this._tapNext=I):I&&(this._context=I,this._tapNext=I.next||b,this._tapError=I.error||b,this._tapComplete=I.complete||b)}_next(C){try{this._tapNext.call(this._context,C)}catch(I){return void this.destination.error(I)}this.destination.next(C)}_error(C){try{this._tapError.call(this._context,C)}catch(I){return void this.destination.error(I)}this.destination.error(C)}_complete(){try{this._tapComplete.call(this._context)}catch(C){return void this.destination.error(C)}return this.destination.complete()}}},34907:($e,_e,p)=>{"use strict";p.d(_e,{T:()=>_});var e=p(84450),b=p(43489);function _(E=A){return C=>C.lift(new w(E))}class w{constructor(C){this.errorFactory=C}call(C,I){return I.subscribe(new g(C,this.errorFactory))}}class g extends b.L{constructor(C,I){super(C),this.errorFactory=I,this.hasValue=!1}_next(C){this.hasValue=!0,this.destination.next(C)}_complete(){if(this.hasValue)return this.destination.complete();{let C;try{C=this.errorFactory()}catch(I){C=I}this.destination.error(C)}}}function A(){return new e.K}},46227:($e,_e,p)=>{"use strict";p.d(_e,{V:()=>m});var e=p(20353);const _=(()=>{function L(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return L.prototype=Object.create(Error.prototype),L})();var w=p(82697),g=p(826),A=p(69054);class C{constructor(O,G,ne,ge){this.waitFor=O,this.absoluteTimeout=G,this.withObservable=ne,this.scheduler=ge}call(O,G){return G.subscribe(new I(O,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class I extends g.L{constructor(O,G,ne,ge,J){super(O),this.absoluteTimeout=G,this.waitFor=ne,this.withObservable=ge,this.scheduler=J,this.action=null,this.scheduleTimeout()}static dispatchTimeout(O){const{withObservable:G}=O;O._unsubscribeAndRecycle(),O.add((0,A.D)(O,G))}scheduleTimeout(){const{action:O}=this;O?this.action=O.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(I.dispatchTimeout,this.waitFor,this))}_next(O){this.absoluteTimeout||this.scheduleTimeout(),super._next(O)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var P=p(61737);function m(L,O=e.P){return function E(L,O,G=e.P){return ne=>{let ge=(0,w.J)(L),J=ge?+L-G.now():Math.abs(L);return ne.lift(new C(J,ge,O,G))}}(L,(0,P._)(new _),O)}},66454:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>_});var e=p(56498),b=p(42654);function _(w,g){return new e.y(A=>{const E=new b.w;let C=0;return E.add(g.schedule(function(){C!==w.length?(A.next(w[C++]),A.closed||E.add(this.schedule())):A.complete()})),E})}},56686:($e,_e,p)=>{"use strict";p.d(_e,{o:()=>_});var e=p(42654);class b extends e.w{constructor(g,A){super()}schedule(g,A=0){return this}}class _ extends b{constructor(g,A){super(g,A),this.scheduler=g,this.work=A,this.pending=!1}schedule(g,A=0){if(this.closed)return this;this.state=g;const E=this.id,C=this.scheduler;return null!=E&&(this.id=this.recycleAsyncId(C,E,A)),this.pending=!0,this.delay=A,this.id=this.id||this.requestAsyncId(C,this.id,A),this}requestAsyncId(g,A,E=0){return setInterval(g.flush.bind(g,this),E)}recycleAsyncId(g,A,E=0){if(null!==E&&this.delay===E&&!1===this.pending)return A;clearInterval(A)}execute(g,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const E=this._execute(g,A);if(E)return E;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(g,A){let C,E=!1;try{this.work(g)}catch(I){E=!0,C=!!I&&I||new Error(I)}if(E)return this.unsubscribe(),C}_unsubscribe(){const g=this.id,A=this.scheduler,E=A.actions,C=E.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==C&&E.splice(C,1),null!=g&&(this.id=this.recycleAsyncId(A,g,null)),this.delay=null}}},32268:($e,_e,p)=>{"use strict";p.d(_e,{v:()=>b});let e=(()=>{class _{constructor(g,A=_.now){this.SchedulerAction=g,this.now=A}schedule(g,A=0,E){return new this.SchedulerAction(this,g).schedule(E,A)}}return _.now=()=>Date.now(),_})();class b extends e{constructor(w,g=e.now){super(w,()=>b.delegate&&b.delegate!==this?b.delegate.now():g()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(w,g=0,A){return b.delegate&&b.delegate!==this?b.delegate.schedule(w,g,A):super.schedule(w,g,A)}flush(w){const{actions:g}=this;if(this.active)return void g.push(w);let A;this.active=!0;do{if(A=w.execute(w.state,w.delay))break}while(w=g.shift());if(this.active=!1,A){for(;w=g.shift();)w.unsubscribe();throw A}}}},90352:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>g});var e=p(56686),_=p(32268);const g=new class w extends _.v{flush(E){this.active=!0,this.scheduled=void 0;const{actions:C}=this;let I,P=-1,m=C.length;E=E||C.shift();do{if(I=E.execute(E.state,E.delay))break}while(++P0?super.requestAsyncId(E,C,I):(E.actions.push(this),E.scheduled||(E.scheduled=requestAnimationFrame(()=>E.flush(null))))}recycleAsyncId(E,C,I=0){if(null!==I&&I>0||null===I&&this.delay>0)return super.recycleAsyncId(E,C,I);0===E.actions.length&&(cancelAnimationFrame(C),E.scheduled=void 0)}})},8139:($e,_e,p)=>{"use strict";p.d(_e,{e:()=>m});let e=1;const b=Promise.resolve(),_={};function w(L){return L in _&&(delete _[L],!0)}const g={setImmediate(L){const O=e++;return _[O]=!0,b.then(()=>w(O)&&L()),O},clearImmediate(L){w(L)}};var E=p(56686),I=p(32268);const m=new class P extends I.v{flush(O){this.active=!0,this.scheduled=void 0;const{actions:G}=this;let ne,ge=-1,J=G.length;O=O||G.shift();do{if(ne=O.execute(O.state,O.delay))break}while(++ge0?super.requestAsyncId(O,G,ne):(O.actions.push(this),O.scheduled||(O.scheduled=g.setImmediate(O.flush.bind(O,null))))}recycleAsyncId(O,G,ne=0){if(null!==ne&&ne>0||null===ne&&this.delay>0)return super.recycleAsyncId(O,G,ne);0===O.actions.length&&(g.clearImmediate(G),O.scheduled=void 0)}})},20353:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>_});var e=p(56686);const _=new(p(32268).v)(e.o)},5430:($e,_e,p)=>{"use strict";p.d(_e,{hZ:()=>b});const b=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},93821:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},57668:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>e});const e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},94231:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return _.prototype=Object.create(Error.prototype),_})()},84450:($e,_e,p)=>{"use strict";p.d(_e,{K:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return _.prototype=Object.create(Error.prototype),_})()},95279:($e,_e,p)=>{"use strict";p.d(_e,{N:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return _.prototype=Object.create(Error.prototype),_})()},22782:($e,_e,p)=>{"use strict";function e(b){setTimeout(()=>{throw b},0)}p.d(_e,{z:()=>e})},35379:($e,_e,p)=>{"use strict";function e(b){return b}p.d(_e,{y:()=>e})},66688:($e,_e,p)=>{"use strict";p.d(_e,{k:()=>e});const e=Array.isArray||(b=>b&&"number"==typeof b.length)},58515:($e,_e,p)=>{"use strict";p.d(_e,{z:()=>e});const e=b=>b&&"number"==typeof b.length&&"function"!=typeof b},82697:($e,_e,p)=>{"use strict";function e(b){return b instanceof Date&&!isNaN(+b)}p.d(_e,{J:()=>e})},67043:($e,_e,p)=>{"use strict";function e(b){return"function"==typeof b}p.d(_e,{m:()=>e})},84241:($e,_e,p)=>{"use strict";p.d(_e,{k:()=>b});var e=p(66688);function b(_){return!(0,e.k)(_)&&_-parseFloat(_)+1>=0}},57830:($e,_e,p)=>{"use strict";function e(b){return null!==b&&"object"==typeof b}p.d(_e,{K:()=>e})},54715:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>b});var e=p(56498);function b(_){return!!_&&(_ instanceof e.y||"function"==typeof _.lift&&"function"==typeof _.subscribe)}},98955:($e,_e,p)=>{"use strict";function e(b){return!!b&&"function"!=typeof b.subscribe&&"function"==typeof b.then}p.d(_e,{t:()=>e})},72866:($e,_e,p)=>{"use strict";function e(b){return b&&"function"==typeof b.schedule}p.d(_e,{K:()=>e})},4843:($e,_e,p)=>{"use strict";p.d(_e,{z:()=>b,U:()=>_});var e=p(35379);function b(...w){return _(w)}function _(w){return 0===w.length?e.y:1===w.length?w[0]:function(A){return w.reduce((E,C)=>C(E),A)}}},59249:($e,_e,p)=>{"use strict";p.d(_e,{s:()=>m});var e=p(13650),b=p(22782),w=p(5430),A=p(93821),C=p(58515),I=p(98955),P=p(57830);const m=L=>{if(L&&"function"==typeof L[A.L])return(L=>O=>{const G=L[A.L]();if("function"!=typeof G.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return G.subscribe(O)})(L);if((0,C.z)(L))return(0,e.V)(L);if((0,I.t)(L))return(L=>O=>(L.then(G=>{O.closed||(O.next(G),O.complete())},G=>O.error(G)).then(null,b.z),O))(L);if(L&&"function"==typeof L[w.hZ])return(L=>O=>{const G=L[w.hZ]();for(;;){const ne=G.next();if(ne.done){O.complete();break}if(O.next(ne.value),O.closed)break}return"function"==typeof G.return&&O.add(()=>{G.return&&G.return()}),O})(L);{const G=`You provided ${(0,P.K)(L)?"an invalid object":`'${L}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(G)}}},13650:($e,_e,p)=>{"use strict";p.d(_e,{V:()=>e});const e=b=>_=>{for(let w=0,g=b.length;w{"use strict";p.d(_e,{D:()=>w});var e=p(51869),b=p(59249),_=p(56498);function w(g,A,E,C,I=new e.d(g,E,C)){if(!I.closed)return A instanceof _.y?A.subscribe(I):(0,b.s)(A)(I)}},70655:($e,_e,p)=>{"use strict";function g(de,Le,Ue,ze){var ye,le=arguments.length,je=le<3?Le:null===ze?ze=Object.getOwnPropertyDescriptor(Le,Ue):ze;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)je=Reflect.decorate(de,Le,Ue,ze);else for(var Be=de.length-1;Be>=0;Be--)(ye=de[Be])&&(je=(le<3?ye(je):le>3?ye(Le,Ue,je):ye(Le,Ue))||je);return le>3&&je&&Object.defineProperty(Le,Ue,je),je}function C(de,Le,Ue,ze){return new(Ue||(Ue=Promise))(function(je,ye){function Be(me){try{R(ze.next(me))}catch(be){ye(be)}}function W(me){try{R(ze.throw(me))}catch(be){ye(be)}}function R(me){me.done?je(me.value):function le(je){return je instanceof Ue?je:new Ue(function(ye){ye(je)})}(me.value).then(Be,W)}R((ze=ze.apply(de,Le||[])).next())})}p.d(_e,{gn:()=>g,mG:()=>C})},41777:($e,_e,p)=>{"use strict";p.d(_e,{l3:()=>_,_j:()=>e,LC:()=>b,ZN:()=>Me,jt:()=>g,pV:()=>O,ru:()=>A,F4:()=>P,IO:()=>ne,vP:()=>E,SB:()=>I,oB:()=>C,eR:()=>m,X$:()=>w,ZE:()=>oe,k1:()=>Re});class e{}class b{}const _="*";function w(T,j){return{type:7,name:T,definitions:j,options:{}}}function g(T,j=null){return{type:4,styles:j,timings:T}}function A(T,j=null){return{type:3,steps:T,options:j}}function E(T,j=null){return{type:2,steps:T,options:j}}function C(T){return{type:6,styles:T,offset:null}}function I(T,j,Y){return{type:0,name:T,styles:j,options:Y}}function P(T){return{type:5,steps:T}}function m(T,j,Y=null){return{type:1,expr:T,animation:j,options:Y}}function O(T=null){return{type:9,options:T}}function ne(T,j,Y=null){return{type:11,selector:T,animation:j,options:Y}}function J(T){Promise.resolve(null).then(T)}class Me{constructor(j=0,Y=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=j+Y}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(j=>j()),this._onDoneFns=[])}onStart(j){this._onStartFns.push(j)}onDone(j){this._onDoneFns.push(j)}onDestroy(j){this._onDestroyFns.push(j)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){J(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(j=>j()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(j=>j()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(j){this._position=this.totalTime?j*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(j){const Y="start"==j?this._onStartFns:this._onDoneFns;Y.forEach(q=>q()),Y.length=0}}class oe{constructor(j){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=j;let Y=0,q=0,te=0;const ue=this.players.length;0==ue?J(()=>this._onFinish()):this.players.forEach(de=>{de.onDone(()=>{++Y==ue&&this._onFinish()}),de.onDestroy(()=>{++q==ue&&this._onDestroy()}),de.onStart(()=>{++te==ue&&this._onStart()})}),this.totalTime=this.players.reduce((de,Le)=>Math.max(de,Le.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(j=>j()),this._onDoneFns=[])}init(){this.players.forEach(j=>j.init())}onStart(j){this._onStartFns.push(j)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(j=>j()),this._onStartFns=[])}onDone(j){this._onDoneFns.push(j)}onDestroy(j){this._onDestroyFns.push(j)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(j=>j.play())}pause(){this.players.forEach(j=>j.pause())}restart(){this.players.forEach(j=>j.restart())}finish(){this._onFinish(),this.players.forEach(j=>j.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(j=>j.destroy()),this._onDestroyFns.forEach(j=>j()),this._onDestroyFns=[])}reset(){this.players.forEach(j=>j.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(j){const Y=j*this.totalTime;this.players.forEach(q=>{const te=q.totalTime?Math.min(1,Y/q.totalTime):1;q.setPosition(te)})}getPosition(){const j=this.players.reduce((Y,q)=>null===Y||q.totalTime>Y.totalTime?q:Y,null);return null!=j?j.getPosition():0}beforeDestroy(){this.players.forEach(j=>{j.beforeDestroy&&j.beforeDestroy()})}triggerCallback(j){const Y="start"==j?this._onStartFns:this._onDoneFns;Y.forEach(q=>q()),Y.length=0}}const Re="!"},15664:($e,_e,p)=>{"use strict";p.d(_e,{rt:()=>Lt,s1:()=>le,$s:()=>de,Qr:()=>c,kH:()=>At,mK:()=>D,Em:()=>je,tE:()=>We,qV:()=>Q,qm:()=>mt,ic:()=>Be,Kd:()=>a,X6:()=>Ae,yG:()=>ae});var e=p(69808),b=p(5e3),_=p(70925),w=p(8929),g=p(42654),A=p(591),E=p(21086),C=p(91159),I=p(22868),P=p(80013),m=p(92198),L=p(24850),O=p(72986),G=p(31307),ne=p(75778),ge=p(7625),J=p(63191),Me=p(17144);function j(Ee,Ge){return(Ee.getAttribute(Ge)||"").match(/\S+/g)||[]}const q="cdk-describedby-message",te="cdk-describedby-host";let ue=0,de=(()=>{class Ee{constructor(U,k){this._platform=k,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ue++,this._document=U}describe(U,k,ie){if(!this._canBeDescribed(U,k))return;const ce=Le(k,ie);"string"!=typeof k?(Ue(k),this._messageRegistry.set(ce,{messageElement:k,referenceCount:0})):this._messageRegistry.has(ce)||this._createMessageElement(k,ie),this._isElementDescribedByMessage(U,ce)||this._addMessageReference(U,ce)}removeDescription(U,k,ie){var ce;if(!k||!this._isElementNode(U))return;const He=Le(k,ie);if(this._isElementDescribedByMessage(U,He)&&this._removeMessageReference(U,He),"string"==typeof k){const ct=this._messageRegistry.get(He);ct&&0===ct.referenceCount&&this._deleteMessageElement(He)}0===(null===(ce=this._messagesContainer)||void 0===ce?void 0:ce.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var U;const k=this._document.querySelectorAll(`[${te}="${this._id}"]`);for(let ie=0;ie0!=ie.indexOf(q));U.setAttribute("aria-describedby",k.join(" "))}_addMessageReference(U,k){const ie=this._messageRegistry.get(k);(function Re(Ee,Ge,U){const k=j(Ee,Ge);k.some(ie=>ie.trim()==U.trim())||(k.push(U.trim()),Ee.setAttribute(Ge,k.join(" ")))})(U,"aria-describedby",ie.messageElement.id),U.setAttribute(te,this._id),ie.referenceCount++}_removeMessageReference(U,k){const ie=this._messageRegistry.get(k);ie.referenceCount--,function T(Ee,Ge,U){const ie=j(Ee,Ge).filter(ce=>ce!=U.trim());ie.length?Ee.setAttribute(Ge,ie.join(" ")):Ee.removeAttribute(Ge)}(U,"aria-describedby",ie.messageElement.id),U.removeAttribute(te)}_isElementDescribedByMessage(U,k){const ie=j(U,"aria-describedby"),ce=this._messageRegistry.get(k),He=ce&&ce.messageElement.id;return!!He&&-1!=ie.indexOf(He)}_canBeDescribed(U,k){if(!this._isElementNode(U))return!1;if(k&&"object"==typeof k)return!0;const ie=null==k?"":`${k}`.trim(),ce=U.getAttribute("aria-label");return!(!ie||ce&&ce.trim()===ie)}_isElementNode(U){return U.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(e.K0),b.LFG(_.t4))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function Le(Ee,Ge){return"string"==typeof Ee?`${Ge||""}/${Ee}`:Ee}function Ue(Ee){Ee.id||(Ee.id=`${q}-${ue++}`)}class ze{constructor(Ge){this._items=Ge,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.xQ,this._typeaheadSubscription=g.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=U=>U.disabled,this._pressedLetters=[],this.tabOut=new w.xQ,this.change=new w.xQ,Ge instanceof b.n_E&&Ge.changes.subscribe(U=>{if(this._activeItem){const ie=U.toArray().indexOf(this._activeItem);ie>-1&&ie!==this._activeItemIndex&&(this._activeItemIndex=ie)}})}skipPredicate(Ge){return this._skipPredicateFn=Ge,this}withWrap(Ge=!0){return this._wrap=Ge,this}withVerticalOrientation(Ge=!0){return this._vertical=Ge,this}withHorizontalOrientation(Ge){return this._horizontal=Ge,this}withAllowedModifierKeys(Ge){return this._allowedModifierKeys=Ge,this}withTypeAhead(Ge=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,I.b)(U=>this._pressedLetters.push(U)),(0,P.b)(Ge),(0,m.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(U=>{const k=this._getItemsArray();for(let ie=1;ie!Ge[ce]||this._allowedModifierKeys.indexOf(ce)>-1);switch(U){case C.Mf:return void this.tabOut.next();case C.JH:if(this._vertical&&ie){this.setNextItemActive();break}return;case C.LH:if(this._vertical&&ie){this.setPreviousItemActive();break}return;case C.SV:if(this._horizontal&&ie){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case C.oh:if(this._horizontal&&ie){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case C.Sd:if(this._homeAndEnd&&ie){this.setFirstItemActive();break}return;case C.uR:if(this._homeAndEnd&&ie){this.setLastItemActive();break}return;default:return void((ie||(0,C.Vb)(Ge,"shiftKey"))&&(Ge.key&&1===Ge.key.length?this._letterKeyStream.next(Ge.key.toLocaleUpperCase()):(U>=C.A&&U<=C.Z||U>=C.xE&&U<=C.aO)&&this._letterKeyStream.next(String.fromCharCode(U))))}this._pressedLetters=[],Ge.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(Ge){const U=this._getItemsArray(),k="number"==typeof Ge?Ge:U.indexOf(Ge),ie=U[k];this._activeItem=null==ie?null:ie,this._activeItemIndex=k}_setActiveItemByDelta(Ge){this._wrap?this._setActiveInWrapMode(Ge):this._setActiveInDefaultMode(Ge)}_setActiveInWrapMode(Ge){const U=this._getItemsArray();for(let k=1;k<=U.length;k++){const ie=(this._activeItemIndex+Ge*k+U.length)%U.length;if(!this._skipPredicateFn(U[ie]))return void this.setActiveItem(ie)}}_setActiveInDefaultMode(Ge){this._setActiveItemByIndex(this._activeItemIndex+Ge,Ge)}_setActiveItemByIndex(Ge,U){const k=this._getItemsArray();if(k[Ge]){for(;this._skipPredicateFn(k[Ge]);)if(!k[Ge+=U])return;this.setActiveItem(Ge)}}_getItemsArray(){return this._items instanceof b.n_E?this._items.toArray():this._items}}class le extends ze{setActiveItem(Ge){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ge),this.activeItem&&this.activeItem.setActiveStyles()}}class je extends ze{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ge){return this._origin=Ge,this}setActiveItem(Ge){super.setActiveItem(Ge),this.activeItem&&this.activeItem.focus(this._origin)}}let Be=(()=>{class Ee{constructor(U){this._platform=U}isDisabled(U){return U.hasAttribute("disabled")}isVisible(U){return function R(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(U)&&"visible"===getComputedStyle(U).visibility}isTabbable(U){if(!this._platform.isBrowser)return!1;const k=function W(Ee){try{return Ee.frameElement}catch(Ge){return null}}(function X(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(U));if(k&&(-1===Je(k)||!this.isVisible(k)))return!1;let ie=U.nodeName.toLowerCase(),ce=Je(U);return U.hasAttribute("contenteditable")?-1!==ce:!("iframe"===ie||"object"===ie||this._platform.WEBKIT&&this._platform.IOS&&!function nt(Ee){let Ge=Ee.nodeName.toLowerCase(),U="input"===Ge&&Ee.type;return"text"===U||"password"===U||"select"===Ge||"textarea"===Ge}(U))&&("audio"===ie?!!U.hasAttribute("controls")&&-1!==ce:"video"===ie?-1!==ce&&(null!==ce||this._platform.FIREFOX||U.hasAttribute("controls")):U.tabIndex>=0)}isFocusable(U,k){return function Ve(Ee){return!function be(Ee){return function pe(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function me(Ee){let Ge=Ee.nodeName.toLowerCase();return"input"===Ge||"select"===Ge||"button"===Ge||"textarea"===Ge}(Ee)||function Ie(Ee){return function Se(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||Xe(Ee))}(U)&&!this.isDisabled(U)&&((null==k?void 0:k.ignoreVisibility)||this.isVisible(U))}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(_.t4))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function Xe(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Ge=Ee.getAttribute("tabindex");return!(!Ge||isNaN(parseInt(Ge,10)))}function Je(Ee){if(!Xe(Ee))return null;const Ge=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Ge)?-1:Ge}class z{constructor(Ge,U,k,ie,ce=!1){this._element=Ge,this._checker=U,this._ngZone=k,this._document=ie,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ce||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Ge){this._enabled=Ge,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ge,this._startAnchor),this._toggleAnchorTabIndex(Ge,this._endAnchor))}destroy(){const Ge=this._startAnchor,U=this._endAnchor;Ge&&(Ge.removeEventListener("focus",this.startAnchorListener),Ge.remove()),U&&(U.removeEventListener("focus",this.endAnchorListener),U.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(Ge){return new Promise(U=>{this._executeOnStable(()=>U(this.focusInitialElement(Ge)))})}focusFirstTabbableElementWhenReady(Ge){return new Promise(U=>{this._executeOnStable(()=>U(this.focusFirstTabbableElement(Ge)))})}focusLastTabbableElementWhenReady(Ge){return new Promise(U=>{this._executeOnStable(()=>U(this.focusLastTabbableElement(Ge)))})}_getRegionBoundary(Ge){const U=this._element.querySelectorAll(`[cdk-focus-region-${Ge}], [cdkFocusRegion${Ge}], [cdk-focus-${Ge}]`);return"start"==Ge?U.length?U[0]:this._getFirstTabbableElement(this._element):U.length?U[U.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ge){const U=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(U){if(!this._checker.isFocusable(U)){const k=this._getFirstTabbableElement(U);return null==k||k.focus(Ge),!!k}return U.focus(Ge),!0}return this.focusFirstTabbableElement(Ge)}focusFirstTabbableElement(Ge){const U=this._getRegionBoundary("start");return U&&U.focus(Ge),!!U}focusLastTabbableElement(Ge){const U=this._getRegionBoundary("end");return U&&U.focus(Ge),!!U}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ge){if(this._checker.isFocusable(Ge)&&this._checker.isTabbable(Ge))return Ge;const U=Ge.children;for(let k=0;k=0;k--){const ie=U[k].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(U[k]):null;if(ie)return ie}return null}_createAnchor(){const Ge=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ge),Ge.classList.add("cdk-visually-hidden"),Ge.classList.add("cdk-focus-trap-anchor"),Ge.setAttribute("aria-hidden","true"),Ge}_toggleAnchorTabIndex(Ge,U){Ge?U.setAttribute("tabindex","0"):U.removeAttribute("tabindex")}toggleAnchors(Ge){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ge,this._startAnchor),this._toggleAnchorTabIndex(Ge,this._endAnchor))}_executeOnStable(Ge){this._ngZone.isStable?Ge():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(Ge)}}let Q=(()=>{class Ee{constructor(U,k,ie){this._checker=U,this._ngZone=k,this._document=ie}create(U,k=!1){return new z(U,this._checker,this._ngZone,this._document,k)}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(Be),b.LFG(b.R0b),b.LFG(e.K0))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),D=(()=>{class Ee{constructor(U,k,ie){this._elementRef=U,this._focusTrapFactory=k,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(U){this.focusTrap.enabled=(0,J.Ig)(U)}get autoCapture(){return this._autoCapture}set autoCapture(U){this._autoCapture=(0,J.Ig)(U)}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(U){const k=U.autoCapture;k&&!k.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,_.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.Y36(b.SBq),b.Y36(Q),b.Y36(e.K0))},Ee.\u0275dir=b.lG2({type:Ee,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[b.TTD]}),Ee})();function Ae(Ee){return 0===Ee.buttons||0===Ee.offsetX&&0===Ee.offsetY}function ae(Ee){const Ge=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Ge||-1!==Ge.identifier||null!=Ge.radiusX&&1!==Ge.radiusX||null!=Ge.radiusY&&1!==Ge.radiusY)}const i=new b.OlP("cdk-input-modality-detector-options"),o={ignoreKeys:[C.zL,C.jx,C.b2,C.MW,C.JU]},l=(0,_.i$)({passive:!0,capture:!0});let s=(()=>{class Ee{constructor(U,k,ie,ce){this._platform=U,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=He=>{var ct,bt;(null===(bt=null===(ct=this._options)||void 0===ct?void 0:ct.ignoreKeys)||void 0===bt?void 0:bt.some(xt=>xt===He.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,_.sA)(He))},this._onMousedown=He=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ae(He)?"keyboard":"mouse"),this._mostRecentTarget=(0,_.sA)(He))},this._onTouchstart=He=>{ae(He)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,_.sA)(He))},this._options=Object.assign(Object.assign({},o),ce),this.modalityDetected=this._modality.pipe((0,G.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ne.x)()),U.isBrowser&&k.runOutsideAngular(()=>{ie.addEventListener("keydown",this._onKeydown,l),ie.addEventListener("mousedown",this._onMousedown,l),ie.addEventListener("touchstart",this._onTouchstart,l)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,l),document.removeEventListener("mousedown",this._onMousedown,l),document.removeEventListener("touchstart",this._onTouchstart,l))}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(_.t4),b.LFG(b.R0b),b.LFG(e.K0),b.LFG(i,8))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const r=new b.OlP("liveAnnouncerElement",{providedIn:"root",factory:function t(){return null}}),n=new b.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let a=(()=>{class Ee{constructor(U,k,ie,ce){this._ngZone=k,this._defaultOptions=ce,this._document=ie,this._liveElement=U||this._createLiveElement()}announce(U,...k){const ie=this._defaultOptions;let ce,He;return 1===k.length&&"number"==typeof k[0]?He=k[0]:[ce,He]=k,this.clear(),clearTimeout(this._previousTimeout),ce||(ce=ie&&ie.politeness?ie.politeness:"polite"),null==He&&ie&&(He=ie.duration),this._liveElement.setAttribute("aria-live",ce),this._ngZone.runOutsideAngular(()=>new Promise(ct=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=U,ct(),"number"==typeof He&&(this._previousTimeout=setTimeout(()=>this.clear(),He))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var U;clearTimeout(this._previousTimeout),null===(U=this._liveElement)||void 0===U||U.remove(),this._liveElement=null}_createLiveElement(){const U="cdk-live-announcer-element",k=this._document.getElementsByClassName(U),ie=this._document.createElement("div");for(let ce=0;ce{class Ee{constructor(U,k,ie,ce){this._elementRef=U,this._liveAnnouncer=k,this._contentObserver=ie,this._ngZone=ce,this._politeness="polite"}get politeness(){return this._politeness}set politeness(U){this._politeness="off"===U||"assertive"===U?U:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const k=this._elementRef.nativeElement.textContent;k!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(k,this._politeness),this._previousAnnouncedText=k)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.Y36(b.SBq),b.Y36(a),b.Y36(Me.yq),b.Y36(b.R0b))},Ee.\u0275dir=b.lG2({type:Ee,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Ee})();const h=new b.OlP("cdk-focus-monitor-default-options"),x=(0,_.i$)({passive:!0,capture:!0});let We=(()=>{class Ee{constructor(U,k,ie,ce,He){this._ngZone=U,this._platform=k,this._inputModalityDetector=ie,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new w.xQ,this._rootNodeFocusAndBlurListener=ct=>{const bt=(0,_.sA)(ct),xt="focus"===ct.type?this._onFocus:this._onBlur;for(let Yt=bt;Yt;Yt=Yt.parentElement)xt.call(this,ct,Yt)},this._document=ce,this._detectionMode=(null==He?void 0:He.detectionMode)||0}monitor(U,k=!1){const ie=(0,J.fI)(U);if(!this._platform.isBrowser||1!==ie.nodeType)return(0,E.of)(null);const ce=(0,_.kV)(ie)||this._getDocument(),He=this._elementInfo.get(ie);if(He)return k&&(He.checkChildren=!0),He.subject;const ct={checkChildren:k,subject:new w.xQ,rootNode:ce};return this._elementInfo.set(ie,ct),this._registerGlobalListeners(ct),ct.subject}stopMonitoring(U){const k=(0,J.fI)(U),ie=this._elementInfo.get(k);ie&&(ie.subject.complete(),this._setClasses(k),this._elementInfo.delete(k),this._removeGlobalListeners(ie))}focusVia(U,k,ie){const ce=(0,J.fI)(U);ce===this._getDocument().activeElement?this._getClosestElementsInfo(ce).forEach(([ct,bt])=>this._originChanged(ct,k,bt)):(this._setOrigin(k),"function"==typeof ce.focus&&ce.focus(ie))}ngOnDestroy(){this._elementInfo.forEach((U,k)=>this.stopMonitoring(k))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(U){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(U)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(U){return 1===this._detectionMode||!!(null==U?void 0:U.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(U,k){U.classList.toggle("cdk-focused",!!k),U.classList.toggle("cdk-touch-focused","touch"===k),U.classList.toggle("cdk-keyboard-focused","keyboard"===k),U.classList.toggle("cdk-mouse-focused","mouse"===k),U.classList.toggle("cdk-program-focused","program"===k)}_setOrigin(U,k=!1){this._ngZone.runOutsideAngular(()=>{this._origin=U,this._originFromTouchInteraction="touch"===U&&k,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(U,k){const ie=this._elementInfo.get(k),ce=(0,_.sA)(U);!ie||!ie.checkChildren&&k!==ce||this._originChanged(k,this._getFocusOrigin(ce),ie)}_onBlur(U,k){const ie=this._elementInfo.get(k);!ie||ie.checkChildren&&U.relatedTarget instanceof Node&&k.contains(U.relatedTarget)||(this._setClasses(k),this._emitOrigin(ie.subject,null))}_emitOrigin(U,k){this._ngZone.run(()=>U.next(k))}_registerGlobalListeners(U){if(!this._platform.isBrowser)return;const k=U.rootNode,ie=this._rootNodeFocusListenerCount.get(k)||0;ie||this._ngZone.runOutsideAngular(()=>{k.addEventListener("focus",this._rootNodeFocusAndBlurListener,x),k.addEventListener("blur",this._rootNodeFocusAndBlurListener,x)}),this._rootNodeFocusListenerCount.set(k,ie+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ge.R)(this._stopInputModalityDetector)).subscribe(ce=>{this._setOrigin(ce,!0)}))}_removeGlobalListeners(U){const k=U.rootNode;if(this._rootNodeFocusListenerCount.has(k)){const ie=this._rootNodeFocusListenerCount.get(k);ie>1?this._rootNodeFocusListenerCount.set(k,ie-1):(k.removeEventListener("focus",this._rootNodeFocusAndBlurListener,x),k.removeEventListener("blur",this._rootNodeFocusAndBlurListener,x),this._rootNodeFocusListenerCount.delete(k))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(U,k,ie){this._setClasses(U,k),this._emitOrigin(ie.subject,k),this._lastFocusOrigin=k}_getClosestElementsInfo(U){const k=[];return this._elementInfo.forEach((ie,ce)=>{(ce===U||ie.checkChildren&&ce.contains(U))&&k.push([ce,ie])}),k}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(b.R0b),b.LFG(_.t4),b.LFG(s),b.LFG(e.K0,8),b.LFG(h,8))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),At=(()=>{class Ee{constructor(U,k){this._elementRef=U,this._focusMonitor=k,this.cdkFocusChange=new b.vpe}ngAfterViewInit(){const U=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(U,1===U.nodeType&&U.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(k=>this.cdkFocusChange.emit(k))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.Y36(b.SBq),b.Y36(We))},Ee.\u0275dir=b.lG2({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const Ht="cdk-high-contrast-black-on-white",lt="cdk-high-contrast-white-on-black",Ut="cdk-high-contrast-active";let mt=(()=>{class Ee{constructor(U,k){this._platform=U,this._document=k}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const U=this._document.createElement("div");U.style.backgroundColor="rgb(1,2,3)",U.style.position="absolute",this._document.body.appendChild(U);const k=this._document.defaultView||window,ie=k&&k.getComputedStyle?k.getComputedStyle(U):null,ce=(ie&&ie.backgroundColor||"").replace(/ /g,"");switch(U.remove(),ce){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const U=this._document.body.classList;U.remove(Ut),U.remove(Ht),U.remove(lt),this._hasCheckedHighContrastMode=!0;const k=this.getHighContrastMode();1===k?(U.add(Ut),U.add(Ht)):2===k&&(U.add(Ut),U.add(lt))}}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(_.t4),b.LFG(e.K0))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Lt=(()=>{class Ee{constructor(U){U._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(mt))},Ee.\u0275mod=b.oAB({type:Ee}),Ee.\u0275inj=b.cJS({imports:[[_.ud,Me.Q8]]}),Ee})()},50226:($e,_e,p)=>{"use strict";p.d(_e,{vT:()=>I,Is:()=>E});var e=p(5e3),b=p(69808);const _=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,e.f3M)(b.K0)}}),g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let E=(()=>{class P{constructor(L){if(this.value="ltr",this.change=new e.vpe,L){const G=L.documentElement?L.documentElement.dir:null;this.value=function A(P){const m=(null==P?void 0:P.toLowerCase())||"";return"auto"===m&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?g.test(navigator.language)?"rtl":"ltr":"rtl"===m?"rtl":"ltr"}((L.body?L.body.dir:null)||G||"ltr")}}ngOnDestroy(){this.change.complete()}}return P.\u0275fac=function(L){return new(L||P)(e.LFG(_,8))},P.\u0275prov=e.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),I=(()=>{class P{}return P.\u0275fac=function(L){return new(L||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({}),P})()},69287:($e,_e,p)=>{"use strict";p.d(_e,{i3:()=>A,TU:()=>w,Iq:()=>E});var e=p(69808),b=p(5e3);class _{constructor(I,P){this._document=P;const m=this._textarea=this._document.createElement("textarea"),L=m.style;L.position="fixed",L.top=L.opacity="0",L.left="-999em",m.setAttribute("aria-hidden","true"),m.value=I,this._document.body.appendChild(m)}copy(){const I=this._textarea;let P=!1;try{if(I){const m=this._document.activeElement;I.select(),I.setSelectionRange(0,I.value.length),P=this._document.execCommand("copy"),m&&m.focus()}}catch(m){}return P}destroy(){const I=this._textarea;I&&(I.remove(),this._textarea=void 0)}}let w=(()=>{class C{constructor(P){this._document=P}copy(P){const m=this.beginCopy(P),L=m.copy();return m.destroy(),L}beginCopy(P){return new _(P,this._document)}}return C.\u0275fac=function(P){return new(P||C)(b.LFG(e.K0))},C.\u0275prov=b.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const g=new b.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let A=(()=>{class C{constructor(P,m,L){this._clipboard=P,this._ngZone=m,this.text="",this.attempts=1,this.copied=new b.vpe,this._pending=new Set,L&&null!=L.attempts&&(this.attempts=L.attempts)}copy(P=this.attempts){if(P>1){let m=P;const L=this._clipboard.beginCopy(this.text);this._pending.add(L);const O=()=>{const G=L.copy();G||!--m||this._destroyed?(this._currentTimeout=null,this._pending.delete(L),L.destroy(),this.copied.emit(G)):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(P=>P.destroy()),this._pending.clear(),this._destroyed=!0}}return C.\u0275fac=function(P){return new(P||C)(b.Y36(w),b.Y36(b.R0b),b.Y36(g,8))},C.\u0275dir=b.lG2({type:C,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(P,m){1&P&&b.NdJ("click",function(){return m.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),C})(),E=(()=>{class C{}return C.\u0275fac=function(P){return new(P||C)},C.\u0275mod=b.oAB({type:C}),C.\u0275inj=b.cJS({}),C})()},63191:($e,_e,p)=>{"use strict";p.d(_e,{t6:()=>w,Eq:()=>g,Ig:()=>b,HM:()=>A,fI:()=>E,su:()=>_,du:()=>C});var e=p(5e3);function b(I){return null!=I&&"false"!=`${I}`}function _(I,P=0){return w(I)?Number(I):P}function w(I){return!isNaN(parseFloat(I))&&!isNaN(Number(I))}function g(I){return Array.isArray(I)?I:[I]}function A(I){return null==I?"":"string"==typeof I?I:`${I}px`}function E(I){return I instanceof e.SBq?I.nativeElement:I}function C(I,P=/\s+/){const m=[];if(null!=I){const L=Array.isArray(I)?I:`${I}`.split(P);for(const O of L){const G=`${O}`.trim();G&&m.push(G)}}return m}},20449:($e,_e,p)=>{"use strict";p.d(_e,{P3:()=>E,o2:()=>g,Ov:()=>P,A8:()=>L,yy:()=>C,eX:()=>I,k:()=>O,Z9:()=>A});var e=p(54715),b=p(21086),_=p(8929),w=p(5e3);class g{}function A(G){return G&&"function"==typeof G.connect}class E extends g{constructor(ne){super(),this._data=ne}connect(){return(0,e.b)(this._data)?this._data:(0,b.of)(this._data)}disconnect(){}}class C{applyChanges(ne,ge,J,Me,oe){ne.forEachOperation((Re,T,j)=>{let Y,q;if(null==Re.previousIndex){const te=J(Re,T,j);Y=ge.createEmbeddedView(te.templateRef,te.context,te.index),q=1}else null==j?(ge.remove(T),q=3):(Y=ge.get(T),ge.move(Y,j),q=2);oe&&oe({context:null==Y?void 0:Y.context,operation:q,record:Re})})}detach(){}}class I{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(ne,ge,J,Me,oe){ne.forEachOperation((Re,T,j)=>{let Y,q;null==Re.previousIndex?(Y=this._insertView(()=>J(Re,T,j),j,ge,Me(Re)),q=Y?1:0):null==j?(this._detachAndCacheView(T,ge),q=3):(Y=this._moveView(T,j,ge,Me(Re)),q=2),oe&&oe({context:null==Y?void 0:Y.context,operation:q,record:Re})})}detach(){for(const ne of this._viewCache)ne.destroy();this._viewCache=[]}_insertView(ne,ge,J,Me){const oe=this._insertViewFromCache(ge,J);if(oe)return void(oe.context.$implicit=Me);const Re=ne();return J.createEmbeddedView(Re.templateRef,Re.context,Re.index)}_detachAndCacheView(ne,ge){const J=ge.detach(ne);this._maybeCacheView(J,ge)}_moveView(ne,ge,J,Me){const oe=J.get(ne);return J.move(oe,ge),oe.context.$implicit=Me,oe}_maybeCacheView(ne,ge){if(this._viewCache.lengththis._markSelected(Me)):this._markSelected(ge[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(ge=>this._markSelected(ge)),this._emitChangeEvent()}deselect(...ne){this._verifyValueAssignment(ne),ne.forEach(ge=>this._unmarkSelected(ge)),this._emitChangeEvent()}toggle(ne){this.isSelected(ne)?this.deselect(ne):this.select(ne)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(ne){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._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){}}let L=(()=>{class G{constructor(){this._listeners=[]}notify(ge,J){for(let Me of this._listeners)Me(ge,J)}listen(ge){return this._listeners.push(ge),()=>{this._listeners=this._listeners.filter(J=>ge!==J)}}ngOnDestroy(){this._listeners=[]}}return G.\u0275fac=function(ge){return new(ge||G)},G.\u0275prov=w.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})();const O=new w.OlP("_ViewRepeater")},44409:($e,_e,p)=>{"use strict";p.d(_e,{Zt:()=>Ee,Wj:()=>x,_t:()=>Ge,bA:()=>z});var e=p(5e3),b=p(69808),_=p(70925),w=p(63191),g=p(15664),A=p(8929),E=p(42654),C=p(61715),I=p(90352),P=p(56498),m=p(36787),L=p(7625),O=p(1059),G=p(24850),ne=p(72986),ge=p(22868),J=p(87545),Me=p(53435),oe=p(50226);function Re(U,k,ie){for(let ce in k)if(k.hasOwnProperty(ce)){const He=k[ce];He?U.setProperty(ce,He,(null==ie?void 0:ie.has(ce))?"important":""):U.removeProperty(ce)}return U}function T(U,k){const ie=k?"":"none";Re(U.style,{"touch-action":k?"":"none","-webkit-user-drag":k?"":"none","-webkit-tap-highlight-color":k?"":"transparent","user-select":ie,"-ms-user-select":ie,"-webkit-user-select":ie,"-moz-user-select":ie})}function j(U,k,ie){Re(U.style,{position:k?"":"fixed",top:k?"":"0",opacity:k?"":"0",left:k?"":"-999em"},ie)}function Y(U,k){return k&&"none"!=k?U+" "+k:U}function q(U){const k=U.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(U)*k}function ue(U,k){return U.getPropertyValue(k).split(",").map(ce=>ce.trim())}function de(U){const k=U.getBoundingClientRect();return{top:k.top,right:k.right,bottom:k.bottom,left:k.left,width:k.width,height:k.height,x:k.x,y:k.y}}function Le(U,k,ie){const{top:ce,bottom:He,left:ct,right:bt}=U;return ie>=ce&&ie<=He&&k>=ct&&k<=bt}function Ue(U,k,ie){U.top+=k,U.bottom=U.top+U.height,U.left+=ie,U.right=U.left+U.width}function ze(U,k,ie,ce){const{top:He,right:ct,bottom:bt,left:xt,width:Yt,height:It}=U,Rt=Yt*k,Et=It*k;return ce>He-Et&&cext-Rt&&ie{this.positions.set(ie,{scrollPosition:{top:ie.scrollTop,left:ie.scrollLeft},clientRect:de(ie)})})}handleScroll(k){const ie=(0,_.sA)(k),ce=this.positions.get(ie);if(!ce)return null;const He=ce.scrollPosition;let ct,bt;if(ie===this._document){const It=this._viewportRuler.getViewportScrollPosition();ct=It.top,bt=It.left}else ct=ie.scrollTop,bt=ie.scrollLeft;const xt=He.top-ct,Yt=He.left-bt;return this.positions.forEach((It,Rt)=>{It.clientRect&&ie!==Rt&&ie.contains(Rt)&&Ue(It.clientRect,xt,Yt)}),He.top=ct,He.left=bt,{top:xt,left:Yt}}}function je(U){const k=U.cloneNode(!0),ie=k.querySelectorAll("[id]"),ce=U.nodeName.toLowerCase();k.removeAttribute("id");for(let He=0;He{if(this.beforeStarted.next(),this._handles.length){const Yt=this._handles.find(It=>xt.target&&(xt.target===It||It.contains(xt.target)));Yt&&!this._disabledHandles.has(Yt)&&!this.disabled&&this._initializeDragSequence(Yt,xt)}else this.disabled||this._initializeDragSequence(this._rootElement,xt)},this._pointerMove=xt=>{const Yt=this._getPointerPositionOnPage(xt);if(!this._hasStartedDragging){if(Math.abs(Yt.x-this._pickupPositionOnPage.x)+Math.abs(Yt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Jt=Date.now()>=this._dragStartTime+this._getDragStartDelay(xt),ai=this._dropContainer;if(!Jt)return void this._endDragSequence(xt);(!ai||!ai.isDragging()&&!ai.isReceiving())&&(xt.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(xt)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),xt.preventDefault();const It=this._getConstrainedPointerPosition(Yt);if(this._hasMoved=!0,this._lastKnownPointerPosition=Yt,this._updatePointerDirectionDelta(It),this._dropContainer)this._updateActiveDropContainer(It,Yt);else{const Rt=this._activeTransform;Rt.x=It.x-this._pickupPositionOnPage.x+this._passiveTransform.x,Rt.y=It.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(Rt.x,Rt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:It,event:xt,distance:this._getDragDistance(It),delta:this._pointerDirectionDelta})})},this._pointerUp=xt=>{this._endDragSequence(xt)},this.withRootElement(k).withParent(ie.parentDragRef||null),this._parentPositions=new le(ce,ct),bt.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(k){const ie=(0,w.Ig)(k);ie!==this._disabled&&(this._disabled=ie,this._toggleNativeDragInteractions(),this._handles.forEach(ce=>T(ce,ie)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(k){this._handles=k.map(ce=>(0,w.fI)(ce)),this._handles.forEach(ce=>T(ce,this.disabled)),this._toggleNativeDragInteractions();const ie=new Set;return this._disabledHandles.forEach(ce=>{this._handles.indexOf(ce)>-1&&ie.add(ce)}),this._disabledHandles=ie,this}withPreviewTemplate(k){return this._previewTemplate=k,this}withPlaceholderTemplate(k){return this._placeholderTemplate=k,this}withRootElement(k){const ie=(0,w.fI)(k);return ie!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{ie.addEventListener("mousedown",this._pointerDown,be),ie.addEventListener("touchstart",this._pointerDown,me)}),this._initialTransform=void 0,this._rootElement=ie),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(k){return this._boundaryElement=k?(0,w.fI)(k):null,this._resizeSubscription.unsubscribe(),k&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(k){return this._parentDragRef=k,this}dispose(){var k,ie;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(k=this._rootElement)||void 0===k||k.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(k){!this._disabledHandles.has(k)&&this._handles.indexOf(k)>-1&&(this._disabledHandles.add(k),T(k,!0))}enableHandle(k){this._disabledHandles.has(k)&&(this._disabledHandles.delete(k),T(k,this.disabled))}withDirection(k){return this._direction=k,this}_withDropContainer(k){this._dropContainer=k}getFreeDragPosition(){const k=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:k.x,y:k.y}}setFreeDragPosition(k){return this._activeTransform={x:0,y:0},this._passiveTransform.x=k.x,this._passiveTransform.y=k.y,this._dropContainer||this._applyRootElementTransform(k.x,k.y),this}withPreviewContainer(k){return this._previewContainer=k,this}_sortFromLastPointerPosition(){const k=this._lastKnownPointerPosition;k&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(k),k)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var k,ie;null===(k=this._preview)||void 0===k||k.remove(),null===(ie=this._previewRef)||void 0===ie||ie.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var k,ie;null===(k=this._placeholder)||void 0===k||k.remove(),null===(ie=this._placeholderRef)||void 0===ie||ie.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(k){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(k),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const ie=this._getPointerPositionOnPage(k);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(ie),dropPoint:ie})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(k){nt(k)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const ie=this._dropContainer;if(ie){const ce=this._rootElement,He=ce.parentNode,ct=this._placeholder=this._createPlaceholderElement(),bt=this._anchor=this._anchor||this._document.createComment(""),xt=this._getShadowRoot();He.insertBefore(bt,ce),this._initialTransform=ce.style.transform||"",this._preview=this._createPreviewElement(),j(ce,!1,pe),this._document.body.appendChild(He.replaceChild(ct,ce)),this._getPreviewInsertionPoint(He,xt).appendChild(this._preview),this.started.next({source:this}),ie.start(),this._initialContainer=ie,this._initialIndex=ie.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(ie?ie.getScrollableParents():[])}_initializeDragSequence(k,ie){this._parentDragRef&&ie.stopPropagation();const ce=this.isDragging(),He=nt(ie),ct=!He&&0!==ie.button,bt=this._rootElement,xt=(0,_.sA)(ie),Yt=!He&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),It=He?(0,g.yG)(ie):(0,g.X6)(ie);if(xt&&xt.draggable&&"mousedown"===ie.type&&ie.preventDefault(),ce||ct||Yt||It)return;if(this._handles.length){const Bt=bt.style;this._rootElementTapHighlight=Bt.webkitTapHighlightColor||"",Bt.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Bt=>this._updateOnScroll(Bt)),this._boundaryElement&&(this._boundaryRect=de(this._boundaryElement));const Rt=this._previewTemplate;this._pickupPositionInElement=Rt&&Rt.template&&!Rt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(k,ie);const Et=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(ie);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Et.x,y:Et.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,ie)}_cleanupDragArtifacts(k){j(this._rootElement,!0,pe),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const ie=this._dropContainer,ce=ie.getItemIndex(this),He=this._getPointerPositionOnPage(k),ct=this._getDragDistance(He),bt=ie._isOverContainer(He.x,He.y);this.ended.next({source:this,distance:ct,dropPoint:He}),this.dropped.next({item:this,currentIndex:ce,previousIndex:this._initialIndex,container:ie,previousContainer:this._initialContainer,isPointerOverContainer:bt,distance:ct,dropPoint:He}),ie.drop(this,ce,this._initialIndex,this._initialContainer,bt,ct,He),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:k,y:ie},{x:ce,y:He}){let ct=this._initialContainer._getSiblingContainerFromPosition(this,k,ie);!ct&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(k,ie)&&(ct=this._initialContainer),ct&&ct!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ct,this._dropContainer.enter(this,k,ie,ct===this._initialContainer&&ct.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ct,currentIndex:ct.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(ce,He),this._dropContainer._sortItem(this,k,ie,this._pointerDirectionDelta),this._applyPreviewTransform(k-this._pickupPositionInElement.x,ie-this._pickupPositionInElement.y))}_createPreviewElement(){const k=this._previewTemplate,ie=this.previewClass,ce=k?k.template:null;let He;if(ce&&k){const ct=k.matchSize?this._rootElement.getBoundingClientRect():null,bt=k.viewContainer.createEmbeddedView(ce,k.context);bt.detectChanges(),He=Ve(bt,this._document),this._previewRef=bt,k.matchSize?X(He,ct):He.style.transform=Xe(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const ct=this._rootElement;He=je(ct),X(He,ct.getBoundingClientRect()),this._initialTransform&&(He.style.transform=this._initialTransform)}return Re(He.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},pe),T(He,!1),He.classList.add("cdk-drag-preview"),He.setAttribute("dir",this._direction),ie&&(Array.isArray(ie)?ie.forEach(ct=>He.classList.add(ct)):He.classList.add(ie)),He}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const k=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(k.left,k.top);const ie=function te(U){const k=getComputedStyle(U),ie=ue(k,"transition-property"),ce=ie.find(xt=>"transform"===xt||"all"===xt);if(!ce)return 0;const He=ie.indexOf(ce),ct=ue(k,"transition-duration"),bt=ue(k,"transition-delay");return q(ct[He])+q(bt[He])}(this._preview);return 0===ie?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(ce=>{const He=bt=>{var xt;(!bt||(0,_.sA)(bt)===this._preview&&"transform"===bt.propertyName)&&(null===(xt=this._preview)||void 0===xt||xt.removeEventListener("transitionend",He),ce(),clearTimeout(ct))},ct=setTimeout(He,1.5*ie);this._preview.addEventListener("transitionend",He)}))}_createPlaceholderElement(){const k=this._placeholderTemplate,ie=k?k.template:null;let ce;return ie?(this._placeholderRef=k.viewContainer.createEmbeddedView(ie,k.context),this._placeholderRef.detectChanges(),ce=Ve(this._placeholderRef,this._document)):ce=je(this._rootElement),ce.classList.add("cdk-drag-placeholder"),ce}_getPointerPositionInElement(k,ie){const ce=this._rootElement.getBoundingClientRect(),He=k===this._rootElement?null:k,ct=He?He.getBoundingClientRect():ce,bt=nt(ie)?ie.targetTouches[0]:ie,xt=this._getViewportScrollPosition();return{x:ct.left-ce.left+(bt.pageX-ct.left-xt.left),y:ct.top-ce.top+(bt.pageY-ct.top-xt.top)}}_getPointerPositionOnPage(k){const ie=this._getViewportScrollPosition(),ce=nt(k)?k.touches[0]||k.changedTouches[0]||{pageX:0,pageY:0}:k,He=ce.pageX-ie.left,ct=ce.pageY-ie.top;if(this._ownerSVGElement){const bt=this._ownerSVGElement.getScreenCTM();if(bt){const xt=this._ownerSVGElement.createSVGPoint();return xt.x=He,xt.y=ct,xt.matrixTransform(bt.inverse())}}return{x:He,y:ct}}_getConstrainedPointerPosition(k){const ie=this._dropContainer?this._dropContainer.lockAxis:null;let{x:ce,y:He}=this.constrainPosition?this.constrainPosition(k,this):k;if("x"===this.lockAxis||"x"===ie?He=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===ie)&&(ce=this._pickupPositionOnPage.x),this._boundaryRect){const{x:ct,y:bt}=this._pickupPositionInElement,xt=this._boundaryRect,Yt=this._previewRect,It=xt.top+bt,Rt=xt.bottom-(Yt.height-bt);ce=Je(ce,xt.left+ct,xt.right-(Yt.width-ct)),He=Je(He,It,Rt)}return{x:ce,y:He}}_updatePointerDirectionDelta(k){const{x:ie,y:ce}=k,He=this._pointerDirectionDelta,ct=this._pointerPositionAtLastDirectionChange,bt=Math.abs(ie-ct.x),xt=Math.abs(ce-ct.y);return bt>this._config.pointerDirectionChangeThreshold&&(He.x=ie>ct.x?1:-1,ct.x=ie),xt>this._config.pointerDirectionChangeThreshold&&(He.y=ce>ct.y?1:-1,ct.y=ce),He}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const k=this._handles.length>0||!this.isDragging();k!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=k,T(this._rootElement,k))}_removeRootElementListeners(k){k.removeEventListener("mousedown",this._pointerDown,be),k.removeEventListener("touchstart",this._pointerDown,me)}_applyRootElementTransform(k,ie){const ce=Xe(k,ie),He=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=He.transform&&"none"!=He.transform?He.transform:""),He.transform=Y(ce,this._initialTransform)}_applyPreviewTransform(k,ie){var ce;const He=(null===(ce=this._previewTemplate)||void 0===ce?void 0:ce.template)?void 0:this._initialTransform,ct=Xe(k,ie);this._preview.style.transform=Y(ct,He)}_getDragDistance(k){const ie=this._pickupPositionOnPage;return ie?{x:k.x-ie.x,y:k.y-ie.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:k,y:ie}=this._passiveTransform;if(0===k&&0===ie||this.isDragging()||!this._boundaryElement)return;const ce=this._boundaryElement.getBoundingClientRect(),He=this._rootElement.getBoundingClientRect();if(0===ce.width&&0===ce.height||0===He.width&&0===He.height)return;const ct=ce.left-He.left,bt=He.right-ce.right,xt=ce.top-He.top,Yt=He.bottom-ce.bottom;ce.width>He.width?(ct>0&&(k+=ct),bt>0&&(k-=bt)):k=0,ce.height>He.height?(xt>0&&(ie+=xt),Yt>0&&(ie-=Yt)):ie=0,(k!==this._passiveTransform.x||ie!==this._passiveTransform.y)&&this.setFreeDragPosition({y:ie,x:k})}_getDragStartDelay(k){const ie=this.dragStartDelay;return"number"==typeof ie?ie:nt(k)?ie.touch:ie?ie.mouse:0}_updateOnScroll(k){const ie=this._parentPositions.handleScroll(k);if(ie){const ce=(0,_.sA)(k);this._boundaryRect&&ce!==this._boundaryElement&&ce.contains(this._boundaryElement)&&Ue(this._boundaryRect,ie.top,ie.left),this._pickupPositionOnPage.x+=ie.left,this._pickupPositionOnPage.y+=ie.top,this._dropContainer||(this._activeTransform.x-=ie.left,this._activeTransform.y-=ie.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const k=this._parentPositions.positions.get(this._document);return k?k.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,_.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(k,ie){const ce=this._previewContainer||"global";if("parent"===ce)return k;if("global"===ce){const He=this._document;return ie||He.fullscreenElement||He.webkitFullscreenElement||He.mozFullScreenElement||He.msFullscreenElement||He.body}return(0,w.fI)(ce)}}function Xe(U,k){return`translate3d(${Math.round(U)}px, ${Math.round(k)}px, 0)`}function Je(U,k,ie){return Math.max(k,Math.min(ie,U))}function nt(U){return"t"===U.type[0]}function Ve(U,k){const ie=U.rootNodes;if(1===ie.length&&ie[0].nodeType===k.ELEMENT_NODE)return ie[0];const ce=k.createElement("div");return ie.forEach(He=>ce.appendChild(He)),ce}function X(U,k){U.style.width=`${k.width}px`,U.style.height=`${k.height}px`,U.style.transform=Xe(k.left,k.top)}function z(U,k,ie){const ce=H(k,U.length-1),He=H(ie,U.length-1);if(ce===He)return;const ct=U[ce],bt=He!0,this.sortPredicate=()=>!0,this.beforeStarted=new A.xQ,this.entered=new A.xQ,this.exited=new A.xQ,this.dropped=new A.xQ,this.sorted=new A.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=E.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new A.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,C.F)(0,I.r).pipe((0,L.R)(this._stopScrollTimers)).subscribe(()=>{const bt=this._scrollNode,xt=this.autoScrollStep;1===this._verticalScrollDirection?bt.scrollBy(0,-xt):2===this._verticalScrollDirection&&bt.scrollBy(0,xt),1===this._horizontalScrollDirection?bt.scrollBy(-xt,0):2===this._horizontalScrollDirection&&bt.scrollBy(xt,0)})},this.element=(0,w.fI)(k),this._document=ce,this.withScrollableParents([this.element]),ie.registerDropContainer(this),this._parentPositions=new le(ce,ct)}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(k,ie,ce,He){let ct;this._draggingStarted(),null==He?(ct=this.sortingDisabled?this._draggables.indexOf(k):-1,-1===ct&&(ct=this._getItemIndexFromPointerPosition(k,ie,ce))):ct=He;const bt=this._activeDraggables,xt=bt.indexOf(k),Yt=k.getPlaceholderElement();let It=bt[ct];if(It===k&&(It=bt[ct+1]),!It&&(null==ct||-1===ct||ct-1&&bt.splice(xt,1),It&&!this._dragDropRegistry.isDragging(It)){const Rt=It.getRootElement();Rt.parentElement.insertBefore(Yt,Rt),bt.splice(ct,0,k)}else(0,w.fI)(this.element).appendChild(Yt),bt.push(k);Yt.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:k,container:this,currentIndex:this.getItemIndex(k)})}exit(k){this._reset(),this.exited.next({item:k,container:this})}drop(k,ie,ce,He,ct,bt,xt){this._reset(),this.dropped.next({item:k,currentIndex:ie,previousIndex:ce,container:this,previousContainer:He,isPointerOverContainer:ct,distance:bt,dropPoint:xt})}withItems(k){const ie=this._draggables;return this._draggables=k,k.forEach(ce=>ce._withDropContainer(this)),this.isDragging()&&(ie.filter(He=>He.isDragging()).every(He=>-1===k.indexOf(He))?this._reset():this._cacheItems()),this}withDirection(k){return this._direction=k,this}connectedTo(k){return this._siblings=k.slice(),this}withOrientation(k){return this._orientation=k,this}withScrollableParents(k){const ie=(0,w.fI)(this.element);return this._scrollableElements=-1===k.indexOf(ie)?[ie,...k]:k.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(k){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(ce=>ce.drag===k):this._draggables.indexOf(k)}isReceiving(){return this._activeSiblings.size>0}_sortItem(k,ie,ce,He){if(this.sortingDisabled||!this._clientRect||!ze(this._clientRect,.05,ie,ce))return;const ct=this._itemPositions,bt=this._getItemIndexFromPointerPosition(k,ie,ce,He);if(-1===bt&&ct.length>0)return;const xt="horizontal"===this._orientation,Yt=ct.findIndex(bi=>bi.drag===k),It=ct[bt],Et=It.clientRect,Bt=Yt>bt?1:-1,Jt=this._getItemOffsetPx(ct[Yt].clientRect,Et,Bt),ai=this._getSiblingOffsetPx(Yt,ct,Bt),mi=ct.slice();z(ct,Yt,bt),this.sorted.next({previousIndex:Yt,currentIndex:bt,container:this,item:k}),ct.forEach((bi,yi)=>{if(mi[yi]===bi)return;const Wi=bi.drag===k,gn=Wi?Jt:ai,cn=Wi?k.getPlaceholderElement():bi.drag.getRootElement();bi.offset+=gn,xt?(cn.style.transform=Y(`translate3d(${Math.round(bi.offset)}px, 0, 0)`,bi.initialTransform),Ue(bi.clientRect,0,gn)):(cn.style.transform=Y(`translate3d(0, ${Math.round(bi.offset)}px, 0)`,bi.initialTransform),Ue(bi.clientRect,gn,0))}),this._previousSwap.overlaps=Le(Et,ie,ce),this._previousSwap.drag=It.drag,this._previousSwap.delta=xt?He.x:He.y}_startScrollingIfNecessary(k,ie){if(this.autoScrollDisabled)return;let ce,He=0,ct=0;if(this._parentPositions.positions.forEach((bt,xt)=>{xt===this._document||!bt.clientRect||ce||ze(bt.clientRect,.05,k,ie)&&([He,ct]=function ae(U,k,ie,ce){const He=Te(k,ce),ct=Ae(k,ie);let bt=0,xt=0;if(He){const Yt=U.scrollTop;1===He?Yt>0&&(bt=1):U.scrollHeight-Yt>U.clientHeight&&(bt=2)}if(ct){const Yt=U.scrollLeft;1===ct?Yt>0&&(xt=1):U.scrollWidth-Yt>U.clientWidth&&(xt=2)}return[bt,xt]}(xt,bt.clientRect,k,ie),(He||ct)&&(ce=xt))}),!He&&!ct){const{width:bt,height:xt}=this._viewportRuler.getViewportSize(),Yt={width:bt,height:xt,top:0,right:bt,bottom:xt,left:0};He=Te(Yt,ie),ct=Ae(Yt,k),ce=window}ce&&(He!==this._verticalScrollDirection||ct!==this._horizontalScrollDirection||ce!==this._scrollNode)&&(this._verticalScrollDirection=He,this._horizontalScrollDirection=ct,this._scrollNode=ce,(He||ct)&&ce?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const k=(0,w.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=k.msScrollSnapType||k.scrollSnapType||"",k.scrollSnapType=k.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const k=(0,w.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(k).clientRect}_cacheItemPositions(){const k="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(ie=>{const ce=ie.getVisibleElement();return{drag:ie,offset:0,initialTransform:ce.style.transform||"",clientRect:de(ce)}}).sort((ie,ce)=>k?ie.clientRect.left-ce.clientRect.left:ie.clientRect.top-ce.clientRect.top)}_reset(){this._isDragging=!1;const k=(0,w.fI)(this.element).style;k.scrollSnapType=k.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(ie=>{var ce;const He=ie.getRootElement();if(He){const ct=null===(ce=this._itemPositions.find(bt=>bt.drag===ie))||void 0===ce?void 0:ce.initialTransform;He.style.transform=ct||""}}),this._siblings.forEach(ie=>ie._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(k,ie,ce){const He="horizontal"===this._orientation,ct=ie[k].clientRect,bt=ie[k+-1*ce];let xt=ct[He?"width":"height"]*ce;if(bt){const Yt=He?"left":"top",It=He?"right":"bottom";-1===ce?xt-=bt.clientRect[Yt]-ct[It]:xt+=ct[Yt]-bt.clientRect[It]}return xt}_getItemOffsetPx(k,ie,ce){const He="horizontal"===this._orientation;let ct=He?ie.left-k.left:ie.top-k.top;return-1===ce&&(ct+=He?ie.width-k.width:ie.height-k.height),ct}_shouldEnterAsFirstChild(k,ie){if(!this._activeDraggables.length)return!1;const ce=this._itemPositions,He="horizontal"===this._orientation;if(ce[0].drag!==this._activeDraggables[0]){const bt=ce[ce.length-1].clientRect;return He?k>=bt.right:ie>=bt.bottom}{const bt=ce[0].clientRect;return He?k<=bt.left:ie<=bt.top}}_getItemIndexFromPointerPosition(k,ie,ce,He){const ct="horizontal"===this._orientation,bt=this._itemPositions.findIndex(({drag:xt,clientRect:Yt})=>{if(xt===k)return!1;if(He){const It=ct?He.x:He.y;if(xt===this._previousSwap.drag&&this._previousSwap.overlaps&&It===this._previousSwap.delta)return!1}return ct?ie>=Math.floor(Yt.left)&&ie=Math.floor(Yt.top)&&ceHe._canReceive(k,ie,ce))}_canReceive(k,ie,ce){if(!this._clientRect||!Le(this._clientRect,ie,ce)||!this.enterPredicate(k,this))return!1;const He=this._getShadowRoot().elementFromPoint(ie,ce);if(!He)return!1;const ct=(0,w.fI)(this.element);return He===ct||ct.contains(He)}_startReceiving(k,ie){const ce=this._activeSiblings;!ce.has(k)&&ie.every(He=>this.enterPredicate(He,this)||this._draggables.indexOf(He)>-1)&&(ce.add(k),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(k){this._activeSiblings.delete(k),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(k=>{if(this.isDragging()){const ie=this._parentPositions.handleScroll(k);ie&&(this._itemPositions.forEach(({clientRect:ce})=>{Ue(ce,ie.top,ie.left)}),this._itemPositions.forEach(({drag:ce})=>{this._dragDropRegistry.isDragging(ce)&&ce._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const k=(0,_.kV)((0,w.fI)(this.element));this._cachedShadowRoot=k||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const k=this._activeDraggables.filter(ie=>ie.isDragging());this._siblings.forEach(ie=>ie._startReceiving(this,k))}}function Te(U,k){const{top:ie,bottom:ce,height:He}=U,ct=.05*He;return k>=ie-ct&&k<=ie+ct?1:k>=ce-ct&&k<=ce+ct?2:0}function Ae(U,k){const{left:ie,right:ce,width:He}=U,ct=.05*He;return k>=ie-ct&&k<=ie+ct?1:k>=ce-ct&&k<=ce+ct?2:0}const i=(0,_.i$)({passive:!1,capture:!0});let o=(()=>{class U{constructor(ie,ce){this._ngZone=ie,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=He=>He.isDragging(),this.pointerMove=new A.xQ,this.pointerUp=new A.xQ,this.scroll=new A.xQ,this._preventDefaultWhileDragging=He=>{this._activeDragInstances.length>0&&He.preventDefault()},this._persistentTouchmoveListener=He=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&He.preventDefault(),this.pointerMove.next(He))},this._document=ce}registerDropContainer(ie){this._dropInstances.has(ie)||this._dropInstances.add(ie)}registerDragItem(ie){this._dragInstances.add(ie),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,i)})}removeDropContainer(ie){this._dropInstances.delete(ie)}removeDragItem(ie){this._dragInstances.delete(ie),this.stopDragging(ie),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,i)}startDragging(ie,ce){if(!(this._activeDragInstances.indexOf(ie)>-1)&&(this._activeDragInstances.push(ie),1===this._activeDragInstances.length)){const He=ce.type.startsWith("touch");this._globalListeners.set(He?"touchend":"mouseup",{handler:ct=>this.pointerUp.next(ct),options:!0}).set("scroll",{handler:ct=>this.scroll.next(ct),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:i}),He||this._globalListeners.set("mousemove",{handler:ct=>this.pointerMove.next(ct),options:i}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ct,bt)=>{this._document.addEventListener(bt,ct.handler,ct.options)})})}}stopDragging(ie){const ce=this._activeDragInstances.indexOf(ie);ce>-1&&(this._activeDragInstances.splice(ce,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(ie){return this._activeDragInstances.indexOf(ie)>-1}scrolled(ie){const ce=[this.scroll];return ie&&ie!==this._document&&ce.push(new P.y(He=>this._ngZone.runOutsideAngular(()=>{const bt=xt=>{this._activeDragInstances.length&&He.next(xt)};return ie.addEventListener("scroll",bt,!0),()=>{ie.removeEventListener("scroll",bt,!0)}}))),(0,m.T)(...ce)}ngOnDestroy(){this._dragInstances.forEach(ie=>this.removeDragItem(ie)),this._dropInstances.forEach(ie=>this.removeDropContainer(ie)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((ie,ce)=>{this._document.removeEventListener(ce,ie.handler,ie.options)}),this._globalListeners.clear()}}return U.\u0275fac=function(ie){return new(ie||U)(e.LFG(e.R0b),e.LFG(b.K0))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const d={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let l=(()=>{class U{constructor(ie,ce,He,ct){this._document=ie,this._ngZone=ce,this._viewportRuler=He,this._dragDropRegistry=ct}createDrag(ie,ce=d){return new Se(ie,ce,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(ie){return new Qe(ie,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return U.\u0275fac=function(ie){return new(ie||U)(e.LFG(b.K0),e.LFG(e.R0b),e.LFG(Me.rL),e.LFG(o))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const s=new e.OlP("CDK_DRAG_PARENT"),r=new e.OlP("CdkDropListGroup"),n=new e.OlP("CDK_DRAG_CONFIG");let c=0;const h=new e.OlP("CdkDropList");let x=(()=>{class U{constructor(ie,ce,He,ct,bt,xt,Yt){this.element=ie,this._changeDetectorRef=He,this._scrollDispatcher=ct,this._dir=bt,this._group=xt,this._destroyed=new A.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+c++,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=ce.createDropList(ie),this._dropListRef.data=this,Yt&&this._assignDefaults(Yt),this._dropListRef.enterPredicate=(It,Rt)=>this.enterPredicate(It.data,Rt.data),this._dropListRef.sortPredicate=(It,Rt,Et)=>this.sortPredicate(It,Rt.data,Et.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),U._dropLists.push(this),xt&&xt._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(ie){this._dropListRef.disabled=this._disabled=(0,w.Ig)(ie)}addItem(ie){this._unsortedItems.add(ie),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(ie){this._unsortedItems.delete(ie),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((ie,ce)=>ie._dragRef.getVisibleElement().compareDocumentPosition(ce._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const ie=U._dropLists.indexOf(this);ie>-1&&U._dropLists.splice(ie,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(ie){this._dir&&this._dir.change.pipe((0,O.O)(this._dir.value),(0,L.R)(this._destroyed)).subscribe(ce=>ie.withDirection(ce)),ie.beforeStarted.subscribe(()=>{const ce=(0,w.Eq)(this.connectedTo).map(He=>"string"==typeof He?U._dropLists.find(bt=>bt.id===He):He);if(this._group&&this._group._items.forEach(He=>{-1===ce.indexOf(He)&&ce.push(He)}),!this._scrollableParentsResolved){const He=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(ct=>ct.getElementRef().nativeElement);this._dropListRef.withScrollableParents(He),this._scrollableParentsResolved=!0}ie.disabled=this.disabled,ie.lockAxis=this.lockAxis,ie.sortingDisabled=(0,w.Ig)(this.sortingDisabled),ie.autoScrollDisabled=(0,w.Ig)(this.autoScrollDisabled),ie.autoScrollStep=(0,w.su)(this.autoScrollStep,2),ie.connectedTo(ce.filter(He=>He&&He!==this).map(He=>He._dropListRef)).withOrientation(this.orientation)})}_handleEvents(ie){ie.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),ie.entered.subscribe(ce=>{this.entered.emit({container:this,item:ce.item.data,currentIndex:ce.currentIndex})}),ie.exited.subscribe(ce=>{this.exited.emit({container:this,item:ce.item.data}),this._changeDetectorRef.markForCheck()}),ie.sorted.subscribe(ce=>{this.sorted.emit({previousIndex:ce.previousIndex,currentIndex:ce.currentIndex,container:this,item:ce.item.data})}),ie.dropped.subscribe(ce=>{this.dropped.emit({previousIndex:ce.previousIndex,currentIndex:ce.currentIndex,previousContainer:ce.previousContainer.data,container:ce.container.data,item:ce.item.data,isPointerOverContainer:ce.isPointerOverContainer,distance:ce.distance,dropPoint:ce.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(ie){const{lockAxis:ce,draggingDisabled:He,sortingDisabled:ct,listAutoScrollDisabled:bt,listOrientation:xt}=ie;this.disabled=null!=He&&He,this.sortingDisabled=null!=ct&&ct,this.autoScrollDisabled=null!=bt&&bt,this.orientation=xt||"vertical",ce&&(this.lockAxis=ce)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(ie=>ie._dragRef))}}return U._dropLists=[],U.\u0275fac=function(ie){return new(ie||U)(e.Y36(e.SBq),e.Y36(l),e.Y36(e.sBO),e.Y36(Me.mF),e.Y36(oe.Is,8),e.Y36(r,12),e.Y36(n,8))},U.\u0275dir=e.lG2({type:U,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(ie,ce){2&ie&&(e.uIk("id",ce.id),e.ekj("cdk-drop-list-disabled",ce.disabled)("cdk-drop-list-dragging",ce._dropListRef.isDragging())("cdk-drop-list-receiving",ce._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:r,useValue:void 0},{provide:h,useExisting:U}])]}),U})();const We=new e.OlP("CdkDragHandle"),Ht=new e.OlP("CdkDragPlaceholder"),Ut=new e.OlP("CdkDragPreview");let Ee=(()=>{class U{constructor(ie,ce,He,ct,bt,xt,Yt,It,Rt,Et,Bt){this.element=ie,this.dropContainer=ce,this._ngZone=ct,this._viewContainerRef=bt,this._dir=Yt,this._changeDetectorRef=Rt,this._selfHandle=Et,this._parentDrag=Bt,this._destroyed=new A.xQ,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 P.y(Jt=>{const ai=this._dragRef.moved.pipe((0,G.U)(mi=>({source:this,pointerPosition:mi.pointerPosition,event:mi.event,delta:mi.delta,distance:mi.distance}))).subscribe(Jt);return()=>{ai.unsubscribe()}}),this._dragRef=It.createDrag(ie,{dragStartThreshold:xt&&null!=xt.dragStartThreshold?xt.dragStartThreshold:5,pointerDirectionChangeThreshold:xt&&null!=xt.pointerDirectionChangeThreshold?xt.pointerDirectionChangeThreshold:5,zIndex:null==xt?void 0:xt.zIndex}),this._dragRef.data=this,U._dragInstances.push(this),xt&&this._assignDefaults(xt),ce&&(this._dragRef._withDropContainer(ce._dropListRef),ce.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(ie){this._disabled=(0,w.Ig)(ie),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ne.q)(1),(0,L.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(ie){const ce=ie.rootElementSelector,He=ie.freeDragPosition;ce&&!ce.firstChange&&this._updateRootElement(),He&&!He.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const ie=U._dragInstances.indexOf(this);ie>-1&&U._dragInstances.splice(ie,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var ie;const ce=this.element.nativeElement;let He=ce;this.rootElementSelector&&(He=void 0!==ce.closest?ce.closest(this.rootElementSelector):null===(ie=ce.parentElement)||void 0===ie?void 0:ie.closest(this.rootElementSelector)),this._dragRef.withRootElement(He||ce)}_getBoundaryElement(){const ie=this.boundaryElement;return ie?"string"==typeof ie?this.element.nativeElement.closest(ie):(0,w.fI)(ie):null}_syncInputs(ie){ie.beforeStarted.subscribe(()=>{if(!ie.isDragging()){const ce=this._dir,He=this.dragStartDelay,ct=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,bt=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;ie.disabled=this.disabled,ie.lockAxis=this.lockAxis,ie.dragStartDelay="object"==typeof He&&He?He:(0,w.su)(He),ie.constrainPosition=this.constrainPosition,ie.previewClass=this.previewClass,ie.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ct).withPreviewTemplate(bt).withPreviewContainer(this.previewContainer||"global"),ce&&ie.withDirection(ce.value)}}),ie.beforeStarted.pipe((0,ne.q)(1)).subscribe(()=>{var ce;if(this._parentDrag)return void ie.withParent(this._parentDrag._dragRef);let He=this.element.nativeElement.parentElement;for(;He;){if(He.classList.contains("cdk-drag")){ie.withParent((null===(ce=U._dragInstances.find(ct=>ct.element.nativeElement===He))||void 0===ce?void 0:ce._dragRef)||null);break}He=He.parentElement}})}_handleEvents(ie){ie.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),ie.released.subscribe(()=>{this.released.emit({source:this})}),ie.ended.subscribe(ce=>{this.ended.emit({source:this,distance:ce.distance,dropPoint:ce.dropPoint}),this._changeDetectorRef.markForCheck()}),ie.entered.subscribe(ce=>{this.entered.emit({container:ce.container.data,item:this,currentIndex:ce.currentIndex})}),ie.exited.subscribe(ce=>{this.exited.emit({container:ce.container.data,item:this})}),ie.dropped.subscribe(ce=>{this.dropped.emit({previousIndex:ce.previousIndex,currentIndex:ce.currentIndex,previousContainer:ce.previousContainer.data,container:ce.container.data,isPointerOverContainer:ce.isPointerOverContainer,item:this,distance:ce.distance,dropPoint:ce.dropPoint})})}_assignDefaults(ie){const{lockAxis:ce,dragStartDelay:He,constrainPosition:ct,previewClass:bt,boundaryElement:xt,draggingDisabled:Yt,rootElementSelector:It,previewContainer:Rt}=ie;this.disabled=null!=Yt&&Yt,this.dragStartDelay=He||0,ce&&(this.lockAxis=ce),ct&&(this.constrainPosition=ct),bt&&(this.previewClass=bt),xt&&(this.boundaryElement=xt),It&&(this.rootElementSelector=It),Rt&&(this.previewContainer=Rt)}_setupHandlesListener(){this._handles.changes.pipe((0,O.O)(this._handles),(0,ge.b)(ie=>{const ce=ie.filter(He=>He._parentDrag===this).map(He=>He.element);this._selfHandle&&this.rootElementSelector&&ce.push(this.element),this._dragRef.withHandles(ce)}),(0,J.w)(ie=>(0,m.T)(...ie.map(ce=>ce._stateChanges.pipe((0,O.O)(ce))))),(0,L.R)(this._destroyed)).subscribe(ie=>{const ce=this._dragRef,He=ie.element.nativeElement;ie.disabled?ce.disableHandle(He):ce.enableHandle(He)})}}return U._dragInstances=[],U.\u0275fac=function(ie){return new(ie||U)(e.Y36(e.SBq),e.Y36(h,12),e.Y36(b.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(n,8),e.Y36(oe.Is,8),e.Y36(l),e.Y36(e.sBO),e.Y36(We,10),e.Y36(s,12))},U.\u0275dir=e.lG2({type:U,selectors:[["","cdkDrag",""]],contentQueries:function(ie,ce,He){if(1&ie&&(e.Suo(He,Ut,5),e.Suo(He,Ht,5),e.Suo(He,We,5)),2&ie){let ct;e.iGM(ct=e.CRH())&&(ce._previewTemplate=ct.first),e.iGM(ct=e.CRH())&&(ce._placeholderTemplate=ct.first),e.iGM(ct=e.CRH())&&(ce._handles=ct)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(ie,ce){2&ie&&e.ekj("cdk-drag-disabled",ce.disabled)("cdk-drag-dragging",ce._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:s,useExisting:U}]),e.TTD]}),U})(),Ge=(()=>{class U{}return U.\u0275fac=function(ie){return new(ie||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({providers:[l],imports:[Me.ZD]}),U})()},91159:($e,_e,p)=>{"use strict";p.d(_e,{A:()=>Ie,zL:()=>C,ZH:()=>b,OC:()=>gt,jx:()=>E,yY:()=>q,JH:()=>Re,uR:()=>ne,K5:()=>g,hY:()=>m,Sd:()=>ge,oh:()=>J,b2:()=>_n,MW:()=>a,aO:()=>Be,VM:()=>G,Ku:()=>O,SV:()=>oe,JU:()=>A,L_:()=>L,Mf:()=>_,LH:()=>Me,Z:()=>n,xE:()=>te,Vb:()=>Ni});const b=8,_=9,g=13,A=16,E=17,C=18,m=27,L=32,O=33,G=34,ne=35,ge=36,J=37,Me=38,oe=39,Re=40,q=46,te=48,Be=57,Ie=65,n=90,a=91,gt=188,_n=224;function Ni(Ri,...sn){return sn.length?sn.some(Xi=>Ri[Xi]):Ri.altKey||Ri.shiftKey||Ri.ctrlKey||Ri.metaKey}},17144:($e,_e,p)=>{"use strict";p.d(_e,{wD:()=>C,yq:()=>E,Q8:()=>I});var e=p(63191),b=p(5e3),_=p(56498),w=p(8929),g=p(80013);let A=(()=>{class P{create(L){return"undefined"==typeof MutationObserver?null:new MutationObserver(L)}}return P.\u0275fac=function(L){return new(L||P)},P.\u0275prov=b.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),E=(()=>{class P{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 _.y(G=>{const ge=this._observeElement(O).subscribe(G);return()=>{ge.unsubscribe(),this._unobserveElement(O)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const O=new w.xQ,G=this._mutationObserverFactory.create(ne=>O.next(ne));G&&G.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:G,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:G}=this._observedElements.get(L);O&&O.disconnect(),G.complete(),this._observedElements.delete(L)}}}return P.\u0275fac=function(L){return new(L||P)(b.LFG(A))},P.\u0275prov=b.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),C=(()=>{class P{constructor(L,O,G){this._contentObserver=L,this._elementRef=O,this._ngZone=G,this.event=new b.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,g.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){var L;null===(L=this._currentSubscription)||void 0===L||L.unsubscribe()}}return P.\u0275fac=function(L){return new(L||P)(b.Y36(E),b.Y36(b.SBq),b.Y36(b.R0b))},P.\u0275dir=b.lG2({type:P,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),P})(),I=(()=>{class P{}return P.\u0275fac=function(L){return new(L||P)},P.\u0275mod=b.oAB({type:P}),P.\u0275inj=b.cJS({providers:[A]}),P})()},92845:($e,_e,p)=>{"use strict";p.d(_e,{pI:()=>xe,xu:()=>V,_G:()=>me,aV:()=>Q,X_:()=>de,Xj:()=>Be,U8:()=>Ae});var e=p(53435),b=p(69808),_=p(5e3),w=p(63191),g=p(70925),A=p(50226),E=p(47429),C=p(8929),I=p(42654),P=p(36787),m=p(43489);class O{constructor(o,d){this.predicate=o,this.inclusive=d}call(o,d){return d.subscribe(new G(o,this.predicate,this.inclusive))}}class G extends m.L{constructor(o,d,l){super(o),this.predicate=d,this.inclusive=l,this.index=0}_next(o){const d=this.destination;let l;try{l=this.predicate(o,this.index++)}catch(s){return void d.error(s)}this.nextOrComplete(o,l)}nextOrComplete(o,d){const l=this.destination;Boolean(d)?l.next(o):(this.inclusive&&l.next(o),l.complete())}}var ne=p(72986),ge=p(7625),J=p(91159);const Me=(0,g.Mq)();class oe{constructor(o,d){this._viewportRuler=o,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=d}attach(){}enable(){if(this._canBeEnabled()){const o=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=o.style.left||"",this._previousHTMLStyles.top=o.style.top||"",o.style.left=(0,w.HM)(-this._previousScrollPosition.left),o.style.top=(0,w.HM)(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const o=this._document.documentElement,l=o.style,s=this._document.body.style,r=l.scrollBehavior||"",t=s.scrollBehavior||"";this._isEnabled=!1,l.left=this._previousHTMLStyles.left,l.top=this._previousHTMLStyles.top,o.classList.remove("cdk-global-scrollblock"),Me&&(l.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Me&&(l.scrollBehavior=r,s.scrollBehavior=t)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const d=this._document.body,l=this._viewportRuler.getViewportSize();return d.scrollHeight>l.height||d.scrollWidth>l.width}}class T{constructor(o,d,l,s){this._scrollDispatcher=o,this._ngZone=d,this._viewportRuler=l,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(o){this._overlayRef=o}enable(){if(this._scrollSubscription)return;const o=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=o.subscribe(()=>{const d=this._viewportRuler.getViewportScrollPosition().top;Math.abs(d-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=o.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class j{enable(){}disable(){}attach(){}}function Y(i,o){return o.some(d=>i.bottomd.bottom||i.rightd.right)}function q(i,o){return o.some(d=>i.topd.bottom||i.leftd.right)}class te{constructor(o,d,l,s){this._scrollDispatcher=o,this._viewportRuler=d,this._ngZone=l,this._config=s,this._scrollSubscription=null}attach(o){this._overlayRef=o}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 d=this._overlayRef.overlayElement.getBoundingClientRect(),{width:l,height:s}=this._viewportRuler.getViewportSize();Y(d,[{width:l,height:s,bottom:s,right:l,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 ue=(()=>{class i{constructor(d,l,s,r){this._scrollDispatcher=d,this._viewportRuler=l,this._ngZone=s,this.noop=()=>new j,this.close=t=>new T(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new oe(this._viewportRuler,this._document),this.reposition=t=>new te(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=r}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(e.mF),_.LFG(e.rL),_.LFG(_.R0b),_.LFG(b.K0))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class de{constructor(o){if(this.scrollStrategy=new j,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,o){const d=Object.keys(o);for(const l of d)void 0!==o[l]&&(this[l]=o[l])}}}class ze{constructor(o,d){this.connectionPair=o,this.scrollableViewProperties=d}}class ye{constructor(o,d,l,s,r,t,n,a,c){this._portalOutlet=o,this._host=d,this._pane=l,this._config=s,this._ngZone=r,this._keyboardDispatcher=t,this._document=n,this._location=a,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new C.xQ,this._attachments=new C.xQ,this._detachments=new C.xQ,this._locationChanges=I.w.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._keydownEvents=new C.xQ,this._outsidePointerEvents=new C.xQ,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(o){let d=this._portalOutlet.attach(o);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ne.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),d}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const o=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),o}dispose(){var o;const d=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===(o=this._host)||void 0===o||o.remove(),this._previousHostParent=this._pane=this._host=null,d&&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(o){o!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=o,this.hasAttached()&&(o.attach(this),this.updatePosition()))}updateSize(o){this._config=Object.assign(Object.assign({},this._config),o),this._updateElementSize()}setDirection(o){this._config=Object.assign(Object.assign({},this._config),{direction:o}),this._updateElementDirection()}addPanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!0)}removePanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!1)}getDirection(){const o=this._config.direction;return o?"string"==typeof o?o:o.value:"ltr"}updateScrollStrategy(o){o!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=o,this.hasAttached()&&(o.attach(this),o.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const o=this._pane.style;o.width=(0,w.HM)(this._config.width),o.height=(0,w.HM)(this._config.height),o.minWidth=(0,w.HM)(this._config.minWidth),o.minHeight=(0,w.HM)(this._config.minHeight),o.maxWidth=(0,w.HM)(this._config.maxWidth),o.maxHeight=(0,w.HM)(this._config.maxHeight)}_togglePointerEvents(o){this._pane.style.pointerEvents=o?"":"none"}_attachBackdrop(){const o="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(o)})}):this._backdropElement.classList.add(o)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const o=this._backdropElement;if(!o)return;let d;const l=()=>{o&&(o.removeEventListener("click",this._backdropClickHandler),o.removeEventListener("transitionend",l),this._disposeBackdrop(o)),this._config.backdropClass&&this._toggleClasses(o,this._config.backdropClass,!1),clearTimeout(d)};o.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{o.addEventListener("transitionend",l)}),o.style.pointerEvents="none",d=this._ngZone.runOutsideAngular(()=>setTimeout(l,500))}_toggleClasses(o,d,l){const s=(0,w.Eq)(d||[]).filter(r=>!!r);s.length&&(l?o.classList.add(...s):o.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const o=this._ngZone.onStable.pipe((0,ge.R)((0,P.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()),o.unsubscribe())})})}_disposeScrollStrategy(){const o=this._scrollStrategy;o&&(o.disable(),o.detach&&o.detach())}_disposeBackdrop(o){o&&(o.remove(),this._backdropElement===o&&(this._backdropElement=null))}}let Be=(()=>{class i{constructor(d,l){this._platform=l,this._document=d}ngOnDestroy(){var d;null===(d=this._containerElement)||void 0===d||d.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const d="cdk-overlay-container";if(this._platform.isBrowser||(0,g.Oy)()){const s=this._document.querySelectorAll(`.${d}[platform="server"], .${d}[platform="test"]`);for(let r=0;r{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 o=this._originRect,d=this._overlayRect,l=this._viewportRect,s=this._containerRect,r=[];let t;for(let n of this._preferredPositions){let a=this._getOriginPoint(o,s,n),c=this._getOverlayPoint(a,d,n),h=this._getOverlayFit(c,d,l,n);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,a);this._canFitWithFlexibleDimensions(h,c,l)?r.push({position:n,origin:a,overlayRect:d,boundingBoxRect:this._calculateBoundingBoxRect(a,n)}):(!t||t.overlayFit.visibleAreaa&&(a=h,n=c)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.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(W),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const o=this._lastPosition;if(o){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const d=this._getOriginPoint(this._originRect,this._containerRect,o);this._applyPosition(o,d)}else this.apply()}withScrollableContainers(o){return this._scrollables=o,this}withPositions(o){return this._preferredPositions=o,-1===o.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(o){return this._viewportMargin=o,this}withFlexibleDimensions(o=!0){return this._hasFlexibleDimensions=o,this}withGrowAfterOpen(o=!0){return this._growAfterOpen=o,this}withPush(o=!0){return this._canPush=o,this}withLockedPosition(o=!0){return this._positionLocked=o,this}setOrigin(o){return this._origin=o,this}withDefaultOffsetX(o){return this._offsetX=o,this}withDefaultOffsetY(o){return this._offsetY=o,this}withTransformOriginOn(o){return this._transformOriginSelector=o,this}_getOriginPoint(o,d,l){let s,r;if("center"==l.originX)s=o.left+o.width/2;else{const t=this._isRtl()?o.right:o.left,n=this._isRtl()?o.left:o.right;s="start"==l.originX?t:n}return d.left<0&&(s-=d.left),r="center"==l.originY?o.top+o.height/2:"top"==l.originY?o.top:o.bottom,d.top<0&&(r-=d.top),{x:s,y:r}}_getOverlayPoint(o,d,l){let s,r;return s="center"==l.overlayX?-d.width/2:"start"===l.overlayX?this._isRtl()?-d.width:0:this._isRtl()?0:-d.width,r="center"==l.overlayY?-d.height/2:"top"==l.overlayY?0:-d.height,{x:o.x+s,y:o.y+r}}_getOverlayFit(o,d,l,s){const r=pe(d);let{x:t,y:n}=o,a=this._getOffset(s,"x"),c=this._getOffset(s,"y");a&&(t+=a),c&&(n+=c);let We=0-n,At=n+r.height-l.height,Ht=this._subtractOverflows(r.width,0-t,t+r.width-l.width),lt=this._subtractOverflows(r.height,We,At),Ut=Ht*lt;return{visibleArea:Ut,isCompletelyWithinViewport:r.width*r.height===Ut,fitsInViewportVertically:lt===r.height,fitsInViewportHorizontally:Ht==r.width}}_canFitWithFlexibleDimensions(o,d,l){if(this._hasFlexibleDimensions){const s=l.bottom-d.y,r=l.right-d.x,t=Ie(this._overlayRef.getConfig().minHeight),n=Ie(this._overlayRef.getConfig().minWidth),c=o.fitsInViewportHorizontally||null!=n&&n<=r;return(o.fitsInViewportVertically||null!=t&&t<=s)&&c}return!1}_pushOverlayOnScreen(o,d,l){if(this._previousPushAmount&&this._positionLocked)return{x:o.x+this._previousPushAmount.x,y:o.y+this._previousPushAmount.y};const s=pe(d),r=this._viewportRect,t=Math.max(o.x+s.width-r.width,0),n=Math.max(o.y+s.height-r.height,0),a=Math.max(r.top-l.top-o.y,0),c=Math.max(r.left-l.left-o.x,0);let h=0,x=0;return h=s.width<=r.width?c||-t:o.xHt&&!this._isInitialRender&&!this._growAfterOpen&&(t=o.y-Ht/2)}if("end"===d.overlayX&&!s||"start"===d.overlayX&&s)We=l.width-o.x+this._viewportMargin,h=o.x-this._viewportMargin;else if("start"===d.overlayX&&!s||"end"===d.overlayX&&s)x=o.x,h=l.right-o.x;else{const At=Math.min(l.right-o.x+l.left,o.x),Ht=this._lastBoundingBoxSize.width;h=2*At,x=o.x-At,h>Ht&&!this._isInitialRender&&!this._growAfterOpen&&(x=o.x-Ht/2)}return{top:t,left:x,bottom:n,right:We,width:h,height:r}}_setBoundingBoxStyles(o,d){const l=this._calculateBoundingBoxRect(o,d);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.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 r=this._overlayRef.getConfig().maxHeight,t=this._overlayRef.getConfig().maxWidth;s.height=(0,w.HM)(l.height),s.top=(0,w.HM)(l.top),s.bottom=(0,w.HM)(l.bottom),s.width=(0,w.HM)(l.width),s.left=(0,w.HM)(l.left),s.right=(0,w.HM)(l.right),s.alignItems="center"===d.overlayX?"center":"end"===d.overlayX?"flex-end":"flex-start",s.justifyContent="center"===d.overlayY?"center":"bottom"===d.overlayY?"flex-end":"flex-start",r&&(s.maxHeight=(0,w.HM)(r)),t&&(s.maxWidth=(0,w.HM)(t))}this._lastBoundingBoxSize=l,be(this._boundingBox.style,s)}_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(o,d){const l={},s=this._hasExactPosition(),r=this._hasFlexibleDimensions,t=this._overlayRef.getConfig();if(s){const h=this._viewportRuler.getViewportScrollPosition();be(l,this._getExactOverlayY(d,o,h)),be(l,this._getExactOverlayX(d,o,h))}else l.position="static";let n="",a=this._getOffset(d,"x"),c=this._getOffset(d,"y");a&&(n+=`translateX(${a}px) `),c&&(n+=`translateY(${c}px)`),l.transform=n.trim(),t.maxHeight&&(s?l.maxHeight=(0,w.HM)(t.maxHeight):r&&(l.maxHeight="")),t.maxWidth&&(s?l.maxWidth=(0,w.HM)(t.maxWidth):r&&(l.maxWidth="")),be(this._pane.style,l)}_getExactOverlayY(o,d,l){let s={top:"",bottom:""},r=this._getOverlayPoint(d,this._overlayRect,o);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,l)),"bottom"===o.overlayY?s.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":s.top=(0,w.HM)(r.y),s}_getExactOverlayX(o,d,l){let t,s={left:"",right:""},r=this._getOverlayPoint(d,this._overlayRect,o);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,l)),t=this._isRtl()?"end"===o.overlayX?"left":"right":"end"===o.overlayX?"right":"left","right"===t?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,w.HM)(r.x),s}_getScrollVisibility(){const o=this._getOriginRect(),d=this._pane.getBoundingClientRect(),l=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:q(o,l),isOriginOutsideView:Y(o,l),isOverlayClipped:q(d,l),isOverlayOutsideView:Y(d,l)}}_subtractOverflows(o,...d){return d.reduce((l,s)=>l-Math.max(s,0),o)}_getNarrowedViewportRect(){const o=this._document.documentElement.clientWidth,d=this._document.documentElement.clientHeight,l=this._viewportRuler.getViewportScrollPosition();return{top:l.top+this._viewportMargin,left:l.left+this._viewportMargin,right:l.left+o-this._viewportMargin,bottom:l.top+d-this._viewportMargin,width:o-2*this._viewportMargin,height:d-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(o,d){return"x"===d?null==o.offsetX?this._offsetX:o.offsetX:null==o.offsetY?this._offsetY:o.offsetY}_validatePositions(){}_addPanelClasses(o){this._pane&&(0,w.Eq)(o).forEach(d=>{""!==d&&-1===this._appliedPanelClasses.indexOf(d)&&(this._appliedPanelClasses.push(d),this._pane.classList.add(d))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(o=>{this._pane.classList.remove(o)}),this._appliedPanelClasses=[])}_getOriginRect(){const o=this._origin;if(o instanceof _.SBq)return o.nativeElement.getBoundingClientRect();if(o instanceof Element)return o.getBoundingClientRect();const d=o.width||0,l=o.height||0;return{top:o.y,bottom:o.y+l,left:o.x,right:o.x+d,height:l,width:d}}}function be(i,o){for(let d in o)o.hasOwnProperty(d)&&(i[d]=o[d]);return i}function Ie(i){if("number"!=typeof i&&null!=i){const[o,d]=i.split(R);return d&&"px"!==d?null:parseFloat(o)}return i||null}function pe(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 Se="cdk-global-overlay-wrapper";class Xe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(o){const d=o.getConfig();this._overlayRef=o,this._width&&!d.width&&o.updateSize({width:this._width}),this._height&&!d.height&&o.updateSize({height:this._height}),o.hostElement.classList.add(Se),this._isDisposed=!1}top(o=""){return this._bottomOffset="",this._topOffset=o,this._alignItems="flex-start",this}left(o=""){return this._rightOffset="",this._leftOffset=o,this._justifyContent="flex-start",this}bottom(o=""){return this._topOffset="",this._bottomOffset=o,this._alignItems="flex-end",this}right(o=""){return this._leftOffset="",this._rightOffset=o,this._justifyContent="flex-end",this}width(o=""){return this._overlayRef?this._overlayRef.updateSize({width:o}):this._width=o,this}height(o=""){return this._overlayRef?this._overlayRef.updateSize({height:o}):this._height=o,this}centerHorizontally(o=""){return this.left(o),this._justifyContent="center",this}centerVertically(o=""){return this.top(o),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const o=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),{width:s,height:r,maxWidth:t,maxHeight:n}=l,a=!("100%"!==s&&"100vw"!==s||t&&"100%"!==t&&"100vw"!==t),c=!("100%"!==r&&"100vh"!==r||n&&"100%"!==n&&"100vh"!==n);o.position=this._cssPosition,o.marginLeft=a?"0":this._leftOffset,o.marginTop=c?"0":this._topOffset,o.marginBottom=this._bottomOffset,o.marginRight=this._rightOffset,a?d.justifyContent="flex-start":"center"===this._justifyContent?d.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?d.justifyContent="flex-end":"flex-end"===this._justifyContent&&(d.justifyContent="flex-start"):d.justifyContent=this._justifyContent,d.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const o=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement,l=d.style;d.classList.remove(Se),l.justifyContent=l.alignItems=o.marginTop=o.marginBottom=o.marginLeft=o.marginRight=o.position="",this._overlayRef=null,this._isDisposed=!0}}let Je=(()=>{class i{constructor(d,l,s,r){this._viewportRuler=d,this._document=l,this._platform=s,this._overlayContainer=r}global(){return new Xe}flexibleConnectedTo(d){return new me(d,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(e.rL),_.LFG(b.K0),_.LFG(g.t4),_.LFG(Be))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),nt=(()=>{class i{constructor(d){this._attachedOverlays=[],this._document=d}ngOnDestroy(){this.detach()}add(d){this.remove(d),this._attachedOverlays.push(d)}remove(d){const l=this._attachedOverlays.indexOf(d);l>-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(b.K0))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ve=(()=>{class i extends nt{constructor(d){super(d),this._keydownListener=l=>{const s=this._attachedOverlays;for(let r=s.length-1;r>-1;r--)if(s[r]._keydownEvents.observers.length>0){s[r]._keydownEvents.next(l);break}}}add(d){super.add(d),this._isAttached||(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(d){return new(d||i)(_.LFG(b.K0))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),X=(()=>{class i extends nt{constructor(d,l){super(d),this._platform=l,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=(0,g.sA)(s)},this._clickListener=s=>{const r=(0,g.sA)(s),t="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let a=n.length-1;a>-1;a--){const c=n[a];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(r)||c.overlayElement.contains(t))break;c._outsidePointerEvents.next(s)}}}}add(d){if(super.add(d),!this._isAttached){const l=this._document.body;l.addEventListener("pointerdown",this._pointerDownListener,!0),l.addEventListener("click",this._clickListener,!0),l.addEventListener("auxclick",this._clickListener,!0),l.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=l.style.cursor,l.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const d=this._document.body;d.removeEventListener("pointerdown",this._pointerDownListener,!0),d.removeEventListener("click",this._clickListener,!0),d.removeEventListener("auxclick",this._clickListener,!0),d.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(d.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(b.K0),_.LFG(g.t4))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),z=0,Q=(()=>{class i{constructor(d,l,s,r,t,n,a,c,h,x,We){this.scrollStrategies=d,this._overlayContainer=l,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=t,this._injector=n,this._ngZone=a,this._document=c,this._directionality=h,this._location=x,this._outsideClickDispatcher=We}create(d){const l=this._createHostElement(),s=this._createPaneElement(l),r=this._createPortalOutlet(s),t=new de(d);return t.direction=t.direction||this._directionality.value,new ye(r,l,s,t,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(d){const l=this._document.createElement("div");return l.id="cdk-overlay-"+z++,l.classList.add("cdk-overlay-pane"),d.appendChild(l),l}_createHostElement(){const d=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(d),d}_createPortalOutlet(d){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new E.u0(d,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(ue),_.LFG(Be),_.LFG(_._Vd),_.LFG(Je),_.LFG(Ve),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(b.K0),_.LFG(A.Is),_.LFG(b.Ye),_.LFG(X))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac}),i})();const D=[{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"}],H=new _.OlP("cdk-connected-overlay-scroll-strategy");let V=(()=>{class i{constructor(d){this.elementRef=d}}return i.\u0275fac=function(d){return new(d||i)(_.Y36(_.SBq))},i.\u0275dir=_.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),xe=(()=>{class i{constructor(d,l,s,r,t){this._overlay=d,this._dir=t,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=I.w.EMPTY,this._attachSubscription=I.w.EMPTY,this._detachSubscription=I.w.EMPTY,this._positionSubscription=I.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new _.vpe,this.positionChange=new _.vpe,this.attach=new _.vpe,this.detach=new _.vpe,this.overlayKeydown=new _.vpe,this.overlayOutsideClick=new _.vpe,this._templatePortal=new E.UE(l,s),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(d){this._offsetX=d,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(d){this._offsetY=d,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(d){this._hasBackdrop=(0,w.Ig)(d)}get lockPosition(){return this._lockPosition}set lockPosition(d){this._lockPosition=(0,w.Ig)(d)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(d){this._flexibleDimensions=(0,w.Ig)(d)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(d){this._growAfterOpen=(0,w.Ig)(d)}get push(){return this._push}set push(d){this._push=(0,w.Ig)(d)}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(d){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),d.origin&&this.open&&this._position.apply()),d.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=D);const d=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=d.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=d.detachments().subscribe(()=>this.detach.emit()),d.keydownEvents().subscribe(l=>{this.overlayKeydown.next(l),l.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(l)&&(l.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(l=>{this.overlayOutsideClick.next(l)})}_buildConfig(){const d=this._position=this.positionStrategy||this._createPositionStrategy(),l=new de({direction:this._dir,positionStrategy:d,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}_updatePositionStrategy(d){const l=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return d.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(l).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const d=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(d),d}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof V?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(d=>{this.backdropClick.emit(d)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function L(i,o=!1){return d=>d.lift(new O(i,o))}(()=>this.positionChange.observers.length>0)).subscribe(d=>{this.positionChange.emit(d),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(d){return new(d||i)(_.Y36(Q),_.Y36(_.Rgc),_.Y36(_.s_b),_.Y36(H),_.Y36(A.Is,8))},i.\u0275dir=_.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:[_.TTD]}),i})();const Te={provide:H,deps:[Q],useFactory:function Qe(i){return()=>i.scrollStrategies.reposition()}};let Ae=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({providers:[Q,Te],imports:[[A.vT,E.eL,e.Cl],e.Cl]}),i})()},70925:($e,_e,p)=>{"use strict";p.d(_e,{t4:()=>w,ud:()=>g,sA:()=>Re,ht:()=>oe,kV:()=>Me,Oy:()=>T,_i:()=>ne,qK:()=>C,i$:()=>m,Mq:()=>G});var e=p(5e3),b=p(69808);let _;try{_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(j){_=!1}let A,w=(()=>{class j{constructor(q){this._platformId=q,this.isBrowser=this._platformId?(0,b.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&&!_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return j.\u0275fac=function(q){return new(q||j)(e.LFG(e.Lbi))},j.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),g=(()=>{class j{}return j.\u0275fac=function(q){return new(q||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({}),j})();const E=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function C(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(E),A;let j=document.createElement("input");return A=new Set(E.filter(Y=>(j.setAttribute("type",Y),j.type===Y))),A}let I,L,O,ge;function m(j){return function P(){if(null==I&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>I=!0}))}finally{I=I||!1}return I}()?j:!!j.capture}function G(){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 j=Element.prototype.scrollTo;O=!!j&&!/\{\s*\[native code\]\s*\}/.test(j.toString())}}return O}function ne(){if("object"!=typeof document||!document)return 0;if(null==L){const j=document.createElement("div"),Y=j.style;j.dir="rtl",Y.width="1px",Y.overflow="auto",Y.visibility="hidden",Y.pointerEvents="none",Y.position="absolute";const q=document.createElement("div"),te=q.style;te.width="2px",te.height="1px",j.appendChild(q),document.body.appendChild(j),L=0,0===j.scrollLeft&&(j.scrollLeft=1,L=0===j.scrollLeft?1:2),j.remove()}return L}function Me(j){if(function J(){if(null==ge){const j="undefined"!=typeof document?document.head:null;ge=!(!j||!j.createShadowRoot&&!j.attachShadow)}return ge}()){const Y=j.getRootNode?j.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Y instanceof ShadowRoot)return Y}return null}function oe(){let j="undefined"!=typeof document&&document?document.activeElement:null;for(;j&&j.shadowRoot;){const Y=j.shadowRoot.activeElement;if(Y===j)break;j=Y}return j}function Re(j){return j.composedPath?j.composedPath()[0]:j.target}function T(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},47429:($e,_e,p)=>{"use strict";p.d(_e,{en:()=>O,ig:()=>J,Pl:()=>oe,C5:()=>P,u0:()=>ne,eL:()=>T,UE:()=>m});var e=p(5e3),b=p(69808);class I{attach(q){return this._attachedHost=q,q.attach(this)}detach(){let q=this._attachedHost;null!=q&&(this._attachedHost=null,q.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(q){this._attachedHost=q}}class P extends I{constructor(q,te,ue,de){super(),this.component=q,this.viewContainerRef=te,this.injector=ue,this.componentFactoryResolver=de}}class m extends I{constructor(q,te,ue){super(),this.templateRef=q,this.viewContainerRef=te,this.context=ue}get origin(){return this.templateRef.elementRef}attach(q,te=this.context){return this.context=te,super.attach(q)}detach(){return this.context=void 0,super.detach()}}class L extends I{constructor(q){super(),this.element=q instanceof e.SBq?q.nativeElement:q}}class O{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(q){return q instanceof P?(this._attachedPortal=q,this.attachComponentPortal(q)):q instanceof m?(this._attachedPortal=q,this.attachTemplatePortal(q)):this.attachDomPortal&&q instanceof L?(this._attachedPortal=q,this.attachDomPortal(q)):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(q){this._disposeFn=q}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ne extends O{constructor(q,te,ue,de,Le){super(),this.outletElement=q,this._componentFactoryResolver=te,this._appRef=ue,this._defaultInjector=de,this.attachDomPortal=Ue=>{const ze=Ue.element,le=this._document.createComment("dom-portal");ze.parentNode.insertBefore(le,ze),this.outletElement.appendChild(ze),this._attachedPortal=Ue,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(ze,le)})},this._document=Le}attachComponentPortal(q){const ue=(q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(q.component);let de;return q.viewContainerRef?(de=q.viewContainerRef.createComponent(ue,q.viewContainerRef.length,q.injector||q.viewContainerRef.injector),this.setDisposeFn(()=>de.destroy())):(de=ue.create(q.injector||this._defaultInjector),this._appRef.attachView(de.hostView),this.setDisposeFn(()=>{this._appRef.detachView(de.hostView),de.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(de)),this._attachedPortal=q,de}attachTemplatePortal(q){let te=q.viewContainerRef,ue=te.createEmbeddedView(q.templateRef,q.context);return ue.rootNodes.forEach(de=>this.outletElement.appendChild(de)),ue.detectChanges(),this.setDisposeFn(()=>{let de=te.indexOf(ue);-1!==de&&te.remove(de)}),this._attachedPortal=q,ue}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(q){return q.hostView.rootNodes[0]}}let J=(()=>{class Y extends m{constructor(te,ue){super(te,ue)}}return Y.\u0275fac=function(te){return new(te||Y)(e.Y36(e.Rgc),e.Y36(e.s_b))},Y.\u0275dir=e.lG2({type:Y,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),Y})(),oe=(()=>{class Y extends O{constructor(te,ue,de){super(),this._componentFactoryResolver=te,this._viewContainerRef=ue,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Le=>{const Ue=Le.element,ze=this._document.createComment("dom-portal");Le.setAttachedHost(this),Ue.parentNode.insertBefore(ze,Ue),this._getRootNode().appendChild(Ue),this._attachedPortal=Le,super.setDisposeFn(()=>{ze.parentNode&&ze.parentNode.replaceChild(Ue,ze)})},this._document=de}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 ue=null!=te.viewContainerRef?te.viewContainerRef:this._viewContainerRef,Le=(te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(te.component),Ue=ue.createComponent(Le,ue.length,te.injector||ue.injector);return ue!==this._viewContainerRef&&this._getRootNode().appendChild(Ue.hostView.rootNodes[0]),super.setDisposeFn(()=>Ue.destroy()),this._attachedPortal=te,this._attachedRef=Ue,this.attached.emit(Ue),Ue}attachTemplatePortal(te){te.setAttachedHost(this);const ue=this._viewContainerRef.createEmbeddedView(te.templateRef,te.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=te,this._attachedRef=ue,this.attached.emit(ue),ue}_getRootNode(){const te=this._viewContainerRef.element.nativeElement;return te.nodeType===te.ELEMENT_NODE?te:te.parentNode}}return Y.\u0275fac=function(te){return new(te||Y)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(b.K0))},Y.\u0275dir=e.lG2({type:Y,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),Y})(),T=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({}),Y})()},53435:($e,_e,p)=>{"use strict";p.d(_e,{xd:()=>le,PQ:()=>Be,ZD:()=>Xe,x0:()=>Se,N7:()=>Ie,mF:()=>ye,Cl:()=>Je,rL:()=>R});var e=p(63191),b=p(5e3),_=p(8929),w=p(21086),g=p(56498),A=p(23753),E=p(90352),C=p(8139),I=p(42654),P=p(54715),m=p(43489);class O{call(Ve,X){return X.subscribe(new G(Ve))}}class G extends m.L{constructor(Ve){super(Ve),this.hasPrev=!1}_next(Ve){let X;this.hasPrev?X=[this.prev,Ve]:this.hasPrev=!0,this.prev=Ve,X&&this.destination.next(X)}}var ne=p(75778),ge=p(57138),J=p(92198),Me=p(7625),oe=p(1059),Re=p(87545),T=p(5154),j=p(69808),Y=p(70925),q=p(50226),te=p(20449);const ue=["contentWrapper"],de=["*"],Le=new b.OlP("VIRTUAL_SCROLL_STRATEGY");class Ue{constructor(Ve,X,z){this._scrolledIndexChange=new _.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,ne.x)()),this._viewport=null,this._itemSize=Ve,this._minBufferPx=X,this._maxBufferPx=z}attach(Ve){this._viewport=Ve,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(Ve,X,z){this._itemSize=Ve,this._minBufferPx=X,this._maxBufferPx=z,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(Ve,X){this._viewport&&this._viewport.scrollToOffset(Ve*this._itemSize,X)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const Ve=this._viewport.getRenderedRange(),X={start:Ve.start,end:Ve.end},z=this._viewport.getViewportSize(),Q=this._viewport.getDataLength();let D=this._viewport.measureScrollOffset(),H=this._itemSize>0?D/this._itemSize:0;if(X.end>Q){const xe=Math.ceil(z/this._itemSize),Qe=Math.max(0,Math.min(H,Q-xe));H!=Qe&&(H=Qe,D=Qe*this._itemSize,X.start=Math.floor(H)),X.end=Math.max(0,Math.min(Q,X.start+xe))}const V=D-X.start*this._itemSize;if(V0&&(X.end=Math.min(Q,X.end+Qe),X.start=Math.max(0,Math.floor(H-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(X),this._viewport.setRenderedContentOffset(this._itemSize*X.start),this._scrolledIndexChange.next(Math.floor(H))}}function ze(nt){return nt._scrollStrategy}let le=(()=>{class nt{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Ue(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 nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275dir=b.lG2({type:nt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[b._Bn([{provide:Le,useFactory:ze,deps:[(0,b.Gpc)(()=>nt)]}]),b.TTD]}),nt})(),ye=(()=>{class nt{constructor(X,z,Q){this._ngZone=X,this._platform=z,this._scrolled=new _.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Q}register(X){this.scrollContainers.has(X)||this.scrollContainers.set(X,X.elementScrolled().subscribe(()=>this._scrolled.next(X)))}deregister(X){const z=this.scrollContainers.get(X);z&&(z.unsubscribe(),this.scrollContainers.delete(X))}scrolled(X=20){return this._platform.isBrowser?new g.y(z=>{this._globalSubscription||this._addGlobalListener();const Q=X>0?this._scrolled.pipe((0,ge.e)(X)).subscribe(z):this._scrolled.subscribe(z);return this._scrolledCount++,()=>{Q.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((X,z)=>this.deregister(z)),this._scrolled.complete()}ancestorScrolled(X,z){const Q=this.getAncestorScrollContainers(X);return this.scrolled(z).pipe((0,J.h)(D=>!D||Q.indexOf(D)>-1))}getAncestorScrollContainers(X){const z=[];return this.scrollContainers.forEach((Q,D)=>{this._scrollableContainsElement(D,X)&&z.push(D)}),z}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(X,z){let Q=(0,e.fI)(z),D=X.getElementRef().nativeElement;do{if(Q==D)return!0}while(Q=Q.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const X=this._getWindow();return(0,A.R)(X.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return nt.\u0275fac=function(X){return new(X||nt)(b.LFG(b.R0b),b.LFG(Y.t4),b.LFG(j.K0,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),Be=(()=>{class nt{constructor(X,z,Q,D){this.elementRef=X,this.scrollDispatcher=z,this.ngZone=Q,this.dir=D,this._destroyed=new _.xQ,this._elementScrolled=new g.y(H=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,Me.R)(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(X){const z=this.elementRef.nativeElement,Q=this.dir&&"rtl"==this.dir.value;null==X.left&&(X.left=Q?X.end:X.start),null==X.right&&(X.right=Q?X.start:X.end),null!=X.bottom&&(X.top=z.scrollHeight-z.clientHeight-X.bottom),Q&&0!=(0,Y._i)()?(null!=X.left&&(X.right=z.scrollWidth-z.clientWidth-X.left),2==(0,Y._i)()?X.left=X.right:1==(0,Y._i)()&&(X.left=X.right?-X.right:X.right)):null!=X.right&&(X.left=z.scrollWidth-z.clientWidth-X.right),this._applyScrollToOptions(X)}_applyScrollToOptions(X){const z=this.elementRef.nativeElement;(0,Y.Mq)()?z.scrollTo(X):(null!=X.top&&(z.scrollTop=X.top),null!=X.left&&(z.scrollLeft=X.left))}measureScrollOffset(X){const z="left",Q="right",D=this.elementRef.nativeElement;if("top"==X)return D.scrollTop;if("bottom"==X)return D.scrollHeight-D.clientHeight-D.scrollTop;const H=this.dir&&"rtl"==this.dir.value;return"start"==X?X=H?Q:z:"end"==X&&(X=H?z:Q),H&&2==(0,Y._i)()?X==z?D.scrollWidth-D.clientWidth-D.scrollLeft:D.scrollLeft:H&&1==(0,Y._i)()?X==z?D.scrollLeft+D.scrollWidth-D.clientWidth:-D.scrollLeft:X==z?D.scrollLeft:D.scrollWidth-D.clientWidth-D.scrollLeft}}return nt.\u0275fac=function(X){return new(X||nt)(b.Y36(b.SBq),b.Y36(ye),b.Y36(b.R0b),b.Y36(q.Is,8))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),nt})(),R=(()=>{class nt{constructor(X,z,Q){this._platform=X,this._change=new _.xQ,this._changeListener=D=>{this._change.next(D)},this._document=Q,z.runOutsideAngular(()=>{if(X.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 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:z,height:Q}=this.getViewportSize();return{top:X.top,left:X.left,bottom:X.top+Q,right:X.left+z,height:Q,width:z}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const X=this._document,z=this._getWindow(),Q=X.documentElement,D=Q.getBoundingClientRect();return{top:-D.top||X.body.scrollTop||z.scrollY||Q.scrollTop||0,left:-D.left||X.body.scrollLeft||z.scrollX||Q.scrollLeft||0}}change(X=20){return X>0?this._change.pipe((0,ge.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 nt.\u0275fac=function(X){return new(X||nt)(b.LFG(Y.t4),b.LFG(b.R0b),b.LFG(j.K0,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const be="undefined"!=typeof requestAnimationFrame?E.r:C.e;let Ie=(()=>{class nt extends Be{constructor(X,z,Q,D,H,V,xe){super(X,V,Q,H),this.elementRef=X,this._changeDetectorRef=z,this._scrollStrategy=D,this._detachedSubject=new _.xQ,this._renderedRangeSubject=new _.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new g.y(Qe=>this._scrollStrategy.scrolledIndexChange.subscribe(Te=>Promise.resolve().then(()=>this.ngZone.run(()=>Qe.next(Te))))),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=I.w.EMPTY,this._viewportChanges=xe.change().subscribe(()=>{this.checkViewportSize()})}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(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,oe.O)(null),(0,ge.e)(0,be)).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,Me.R)(this._detachedSubject)).subscribe(z=>{const Q=z.length;Q!==this._dataLength&&(this._dataLength=Q,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(X){this._totalContentSize!==X&&(this._totalContentSize=X,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(X){(function me(nt,Ve){return nt.start==Ve.start&&nt.end==Ve.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,z="to-start"){const D="horizontal"==this.orientation,H=D?"X":"Y";let xe=`translate${H}(${Number((D&&this.dir&&"rtl"==this.dir.value?-1:1)*X)}px)`;this._renderedContentOffset=X=this.appendOnly&&"to-start"===z?0:X,"to-end"===z&&(xe+=` translate${H}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=xe&&(this._renderedContentTransform=xe,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(X,z="auto"){const Q={behavior:z};"horizontal"===this.orientation?Q.start=X:Q.top=X,this.scrollTo(Q)}scrollToIndex(X,z="auto"){this._scrollStrategy.scrollToIndex(X,z)}measureScrollOffset(X){return super.measureScrollOffset(X||("horizontal"===this.orientation?"start":"top"))}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(){const X=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?X.clientWidth:X.clientHeight}_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 z of X)z()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return nt.\u0275fac=function(X){return new(X||nt)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(b.R0b),b.Y36(Le,8),b.Y36(q.Is,8),b.Y36(ye),b.Y36(R))},nt.\u0275cmp=b.Xpm({type:nt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(X,z){if(1&X&&b.Gf(ue,7),2&X){let Q;b.iGM(Q=b.CRH())&&(z._contentWrapper=Q.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(X,z){2&X&&b.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===z.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==z.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[b._Bn([{provide:Be,useExisting:nt}]),b.qOj],ngContentSelectors:de,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(X,z){1&X&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA(),b._UZ(3,"div",2)),2&X&&(b.xp6(3),b.Udp("width",z._totalContentWidth)("height",z._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),nt})();function pe(nt,Ve,X){if(!X.getBoundingClientRect)return 0;const Q=X.getBoundingClientRect();return"horizontal"===nt?"start"===Ve?Q.left:Q.right:"start"===Ve?Q.top:Q.bottom}let Se=(()=>{class nt{constructor(X,z,Q,D,H,V){this._viewContainerRef=X,this._template=z,this._differs=Q,this._viewRepeater=D,this._viewport=H,this.viewChange=new _.xQ,this._dataSourceChanges=new _.xQ,this.dataStream=this._dataSourceChanges.pipe((0,oe.O)(null),function L(){return nt=>nt.lift(new O)}(),(0,Re.w)(([xe,Qe])=>this._changeDataSource(xe,Qe)),(0,T.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new _.xQ,this.dataStream.subscribe(xe=>{this._data=xe,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,Me.R)(this._destroyed)).subscribe(xe=>{this._renderedRange=xe,V.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(X){this._cdkVirtualForOf=X,(0,te.Z9)(X)?this._dataSourceChanges.next(X):this._dataSourceChanges.next(new te.P3((0,P.b)(X)?X:Array.from(X||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(X){this._needsUpdate=!0,this._cdkVirtualForTrackBy=X?(z,Q)=>X(z+(this._renderedRange?this._renderedRange.start:0),Q):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,z){if(X.start>=X.end)return 0;const Q=X.start-this._renderedRange.start,D=X.end-X.start;let H,V;for(let xe=0;xe-1;xe--){const Qe=this._viewContainerRef.get(xe+Q);if(Qe&&Qe.rootNodes.length){V=Qe.rootNodes[Qe.rootNodes.length-1];break}}return H&&V?pe(z,"end",V)-pe(z,"start",H):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,z)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(X,z):z)),this._needsUpdate=!0)}_changeDataSource(X,z){return X&&X.disconnect(this),this._needsUpdate=!0,z?z.connect(this):(0,w.of)()}_updateContext(){const X=this._data.length;let z=this._viewContainerRef.length;for(;z--;){const Q=this._viewContainerRef.get(z);Q.context.index=this._renderedRange.start+z,Q.context.count=X,this._updateComputedContextProperties(Q.context),Q.detectChanges()}}_applyChanges(X){this._viewRepeater.applyChanges(X,this._viewContainerRef,(D,H,V)=>this._getEmbeddedViewArgs(D,V),D=>D.item),X.forEachIdentityChange(D=>{this._viewContainerRef.get(D.currentIndex).context.$implicit=D.item});const z=this._data.length;let Q=this._viewContainerRef.length;for(;Q--;){const D=this._viewContainerRef.get(Q);D.context.index=this._renderedRange.start+Q,D.context.count=z,this._updateComputedContextProperties(D.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,z){return{templateRef:this._template,context:{$implicit:X.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:z}}}return nt.\u0275fac=function(X){return new(X||nt)(b.Y36(b.s_b),b.Y36(b.Rgc),b.Y36(b.ZZ4),b.Y36(te.k),b.Y36(Ie,4),b.Y36(b.R0b))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[b._Bn([{provide:te.k,useClass:te.eX}])]}),nt})(),Xe=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275mod=b.oAB({type:nt}),nt.\u0275inj=b.cJS({}),nt})(),Je=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275mod=b.oAB({type:nt}),nt.\u0275inj=b.cJS({imports:[[q.vT,Y.ud,Xe],q.vT,Xe]}),nt})()},74533:($e,_e,p)=>{"use strict";p.d(_e,{Lq:()=>m,IC:()=>O,Ky:()=>G});var e=p(70925),b=p(5e3),_=p(63191),w=p(68896),g=p(8929),A=p(23753),E=p(57138),C=p(7625),I=p(69808);const P=(0,e.i$)({passive:!0});let m=(()=>{class ne{constructor(J,Me){this._platform=J,this._ngZone=Me,this._monitoredElements=new Map}monitor(J){if(!this._platform.isBrowser)return w.E;const Me=(0,_.fI)(J),oe=this._monitoredElements.get(Me);if(oe)return oe.subject;const Re=new g.xQ,T="cdk-text-field-autofilled",j=Y=>{"cdk-text-field-autofill-start"!==Y.animationName||Me.classList.contains(T)?"cdk-text-field-autofill-end"===Y.animationName&&Me.classList.contains(T)&&(Me.classList.remove(T),this._ngZone.run(()=>Re.next({target:Y.target,isAutofilled:!1}))):(Me.classList.add(T),this._ngZone.run(()=>Re.next({target:Y.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Me.addEventListener("animationstart",j,P),Me.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Me,{subject:Re,unlisten:()=>{Me.removeEventListener("animationstart",j,P)}}),Re}stopMonitoring(J){const Me=(0,_.fI)(J),oe=this._monitoredElements.get(Me);oe&&(oe.unlisten(),oe.subject.complete(),Me.classList.remove("cdk-text-field-autofill-monitored"),Me.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Me))}ngOnDestroy(){this._monitoredElements.forEach((J,Me)=>this.stopMonitoring(Me))}}return ne.\u0275fac=function(J){return new(J||ne)(b.LFG(e.t4),b.LFG(b.R0b))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),O=(()=>{class ne{constructor(J,Me,oe,Re){this._elementRef=J,this._platform=Me,this._ngZone=oe,this._destroyed=new g.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=T=>{this._hasFocus="focus"===T.type},this._document=Re,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(J){this._minRows=(0,_.su)(J),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(J){this._maxRows=(0,_.su)(J),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(J){J=(0,_.Ig)(J),this._enabled!==J&&((this._enabled=J)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(J){this._cachedPlaceholderHeight=void 0,J?this._textareaElement.setAttribute("placeholder",J):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const J=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;J&&(this._textareaElement.style.minHeight=J)}_setMaxHeight(){const J=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;J&&(this._textareaElement.style.maxHeight=J)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const J=this._getWindow();(0,A.R)(J,"resize").pipe((0,E.e)(16),(0,C.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 J=this._textareaElement.cloneNode(!1);J.rows=1,J.style.position="absolute",J.style.visibility="hidden",J.style.border="none",J.style.padding="0",J.style.height="",J.style.minHeight="",J.style.maxHeight="",J.style.overflow="hidden",this._textareaElement.parentNode.appendChild(J),this._cachedLineHeight=J.clientHeight,J.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const J=this._textareaElement,Me=J.style.marginBottom||"",oe=this._platform.FIREFOX,Re=oe&&this._hasFocus,T=oe?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Re&&(J.style.marginBottom=`${J.clientHeight}px`),J.classList.add(T);const j=J.scrollHeight-4;return J.classList.remove(T),Re&&(J.style.marginBottom=Me),j}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const J=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=J}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(J=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Me=this._elementRef.nativeElement,oe=Me.value;if(!J&&this._minRows===this._previousMinRows&&oe===this._previousValue)return;const Re=this._measureScrollHeight(),T=Math.max(Re,this._cachedPlaceholderHeight||0);Me.style.height=`${T}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(Me)):setTimeout(()=>this._scrollToCaretPosition(Me))}),this._previousValue=oe,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(J){const{selectionStart:Me,selectionEnd:oe}=J;!this._destroyed.isStopped&&this._hasFocus&&J.setSelectionRange(Me,oe)}}return ne.\u0275fac=function(J){return new(J||ne)(b.Y36(b.SBq),b.Y36(e.t4),b.Y36(b.R0b),b.Y36(I.K0,8))},ne.\u0275dir=b.lG2({type:ne,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(J,Me){1&J&&b.NdJ("input",function(){return Me._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),ne})(),G=(()=>{class ne{}return ne.\u0275fac=function(J){return new(J||ne)},ne.\u0275mod=b.oAB({type:ne}),ne.\u0275inj=b.cJS({imports:[[e.ud]]}),ne})()},28258:($e,_e,p)=>{"use strict";p.d(_e,{HI:()=>ne,Xx:()=>Le,_0:()=>q,nZ:()=>ye,Hs:()=>te,rO:()=>Me,cu:()=>ge,XJ:()=>ze,Ud:()=>le,C2:()=>O,VY:()=>G});var e=p(20449),b=p(54715),_=p(8929),w=p(591),g=p(21086),A=p(72986),E=p(92198),C=p(7625),I=p(5e3),P=p(63191),m=p(50226);class L{constructor(){this.expansionModel=new e.Ov(!0)}toggle(W){this.expansionModel.toggle(this._trackByValue(W))}expand(W){this.expansionModel.select(this._trackByValue(W))}collapse(W){this.expansionModel.deselect(this._trackByValue(W))}isExpanded(W){return this.expansionModel.isSelected(this._trackByValue(W))}toggleDescendants(W){this.expansionModel.isSelected(this._trackByValue(W))?this.collapseDescendants(W):this.expandDescendants(W)}collapseAll(){this.expansionModel.clear()}expandDescendants(W){let R=[W];R.push(...this.getDescendants(W)),this.expansionModel.select(...R.map(me=>this._trackByValue(me)))}collapseDescendants(W){let R=[W];R.push(...this.getDescendants(W)),this.expansionModel.deselect(...R.map(me=>this._trackByValue(me)))}_trackByValue(W){return this.trackBy?this.trackBy(W):W}}class O extends L{constructor(W,R,me){super(),this.getLevel=W,this.isExpandable=R,this.options=me,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(W){const me=[];for(let be=this.dataNodes.indexOf(W)+1;bethis._trackByValue(W)))}}class G extends L{constructor(W,R){super(),this.getChildren=W,this.options=R,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const W=this.dataNodes.reduce((R,me)=>[...R,...this.getDescendants(me),me],[]);this.expansionModel.select(...W.map(R=>this._trackByValue(R)))}getDescendants(W){const R=[];return this._getDescendants(R,W),R.splice(1)}_getDescendants(W,R){W.push(R);const me=this.getChildren(R);Array.isArray(me)?me.forEach(be=>this._getDescendants(W,be)):(0,b.b)(me)&&me.pipe((0,A.q)(1),(0,E.h)(Boolean)).subscribe(be=>{for(const Ie of be)this._getDescendants(W,Ie)})}}const ne=new I.OlP("CDK_TREE_NODE_OUTLET_NODE");let ge=(()=>{class Be{constructor(R,me){this.viewContainer=R,this._node=me}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.s_b),I.Y36(ne,8))},Be.\u0275dir=I.lG2({type:Be,selectors:[["","cdkTreeNodeOutlet",""]]}),Be})();class J{constructor(W){this.$implicit=W}}let Me=(()=>{class Be{constructor(R){this.template=R}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.Rgc))},Be.\u0275dir=I.lG2({type:Be,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Be})(),q=(()=>{class Be{constructor(R,me){this._differs=R,this._changeDetectorRef=me,this._onDestroy=new _.xQ,this._levels=new Map,this.viewChange=new w.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(R){this._dataSource!==R&&this._switchDataSource(R)}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 R=this._nodeDefs.filter(me=>!me.when);this._defaultNodeDef=R[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(R){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),R||this._nodeOutlet.viewContainer.clear(),this._dataSource=R,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let R;(0,e.Z9)(this._dataSource)?R=this._dataSource.connect(this):(0,b.b)(this._dataSource)?R=this._dataSource:Array.isArray(this._dataSource)&&(R=(0,g.of)(this._dataSource)),R&&(this._dataSubscription=R.pipe((0,C.R)(this._onDestroy)).subscribe(me=>this.renderNodeChanges(me)))}renderNodeChanges(R,me=this._dataDiffer,be=this._nodeOutlet.viewContainer,Ie){const pe=me.diff(R);!pe||(pe.forEachOperation((Se,Xe,Je)=>{if(null==Se.previousIndex)this.insertNode(R[Je],Je,be,Ie);else if(null==Je)be.remove(Xe),this._levels.delete(Se.item);else{const nt=be.get(Xe);be.move(nt,Je)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(R,me){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Ie=>Ie.when&&Ie.when(me,R))||this._defaultNodeDef}insertNode(R,me,be,Ie){const pe=this._getNodeDef(R,me),Se=new J(R);Se.level=this.treeControl.getLevel?this.treeControl.getLevel(R):void 0!==Ie&&this._levels.has(Ie)?this._levels.get(Ie)+1:0,this._levels.set(R,Se.level),(be||this._nodeOutlet.viewContainer).createEmbeddedView(pe.template,Se,me),te.mostRecentTreeNode&&(te.mostRecentTreeNode.data=R)}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.ZZ4),I.Y36(I.sBO))},Be.\u0275cmp=I.Xpm({type:Be,selectors:[["cdk-tree"]],contentQueries:function(R,me,be){if(1&R&&I.Suo(be,Me,5),2&R){let Ie;I.iGM(Ie=I.CRH())&&(me._nodeDefs=Ie)}},viewQuery:function(R,me){if(1&R&&I.Gf(ge,7),2&R){let be;I.iGM(be=I.CRH())&&(me._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(R,me){1&R&&I.GkF(0,0)},directives:[ge],encapsulation:2}),Be})(),te=(()=>{class Be{constructor(R,me){this._elementRef=R,this._tree=me,this._destroyed=new _.xQ,this._dataChanges=new _.xQ,Be.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(R){this._elementRef.nativeElement.setAttribute("role",R)}get data(){return this._data}set data(R){R!==this._data&&(this._data=R,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 ue(Be){let W=Be.parentElement;for(;W&&!de(W);)W=W.parentElement;return W?W.classList.contains("cdk-nested-tree-node")?(0,P.su)(W.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Be.mostRecentTreeNode===this&&(Be.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Be.mostRecentTreeNode=null,Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.SBq),I.Y36(q))},Be.\u0275dir=I.lG2({type:Be,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(R,me){2&R&&I.uIk("aria-expanded",me.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Be})();function de(Be){const W=Be.classList;return!(!(null==W?void 0:W.contains("cdk-nested-tree-node"))&&!(null==W?void 0:W.contains("cdk-tree")))}let Le=(()=>{class Be extends te{constructor(R,me,be){super(R,me),this._differs=be}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const R=this._tree.treeControl.getChildren(this.data);Array.isArray(R)?this.updateChildrenNodes(R):(0,b.b)(R)&&R.pipe((0,C.R)(this._destroyed)).subscribe(me=>this.updateChildrenNodes(me)),this.nodeOutlet.changes.pipe((0,C.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(R){const me=this._getNodeOutlet();R&&(this._children=R),me&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,me.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const R=this._getNodeOutlet();R&&(R.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const R=this.nodeOutlet;return R&&R.find(me=>!me._node||me._node===this)}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.SBq),I.Y36(q),I.Y36(I.ZZ4))},Be.\u0275dir=I.lG2({type:Be,selectors:[["cdk-nested-tree-node"]],contentQueries:function(R,me,be){if(1&R&&I.Suo(be,ge,5),2&R){let Ie;I.iGM(Ie=I.CRH())&&(me.nodeOutlet=Ie)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[I._Bn([{provide:te,useExisting:Be},{provide:ne,useExisting:Be}]),I.qOj]}),Be})();const Ue=/([A-Za-z%]+)$/;let ze=(()=>{class Be{constructor(R,me,be,Ie){this._treeNode=R,this._tree=me,this._element=be,this._dir=Ie,this._destroyed=new _.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),Ie&&Ie.change.pipe((0,C.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),R._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(R){this._setLevelInput(R)}get indent(){return this._indent}set indent(R){this._setIndentInput(R)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const R=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,me=null==this._level?R:this._level;return"number"==typeof me?`${me*this._indent}${this.indentUnits}`:null}_setPadding(R=!1){const me=this._paddingIndent();if(me!==this._currentPadding||R){const be=this._element.nativeElement,Ie=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",pe="paddingLeft"===Ie?"paddingRight":"paddingLeft";be.style[Ie]=me||"",be.style[pe]="",this._currentPadding=me}}_setLevelInput(R){this._level=(0,P.su)(R,null),this._setPadding()}_setIndentInput(R){let me=R,be="px";if("string"==typeof R){const Ie=R.split(Ue);me=Ie[0],be=Ie[1]||be}this.indentUnits=be,this._indent=(0,P.su)(me),this._setPadding()}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(te),I.Y36(q),I.Y36(I.SBq),I.Y36(m.Is,8))},Be.\u0275dir=I.lG2({type:Be,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Be})(),le=(()=>{class Be{constructor(R,me){this._tree=R,this._treeNode=me,this._recursive=!1}get recursive(){return this._recursive}set recursive(R){this._recursive=(0,P.Ig)(R)}_toggle(R){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),R.stopPropagation()}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(q),I.Y36(te))},Be.\u0275dir=I.lG2({type:Be,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(R,me){1&R&&I.NdJ("click",function(Ie){return me._toggle(Ie)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Be})(),ye=(()=>{class Be{}return Be.\u0275fac=function(R){return new(R||Be)},Be.\u0275mod=I.oAB({type:Be}),Be.\u0275inj=I.cJS({}),Be})()},69808:($e,_e,p)=>{"use strict";p.d(_e,{mr:()=>oe,Ov:()=>qe,ez:()=>Un,K0:()=>E,uU:()=>Li,Do:()=>T,V_:()=>P,Ye:()=>j,S$:()=>J,i8:()=>Tt,mk:()=>wi,sg:()=>Fi,O5:()=>Ni,PC:()=>kn,RF:()=>en,n9:()=>an,ED:()=>dn,tP:()=>Nn,b0:()=>Re,lw:()=>C,rS:()=>ci,gd:()=>vi,EM:()=>ft,JF:()=>Ct,p6:()=>c,NF:()=>Cn,PM:()=>$n,w_:()=>A,bD:()=>hr,q:()=>_,Mx:()=>Di,HT:()=>g});var e=p(5e3);let b=null;function _(){return b}function g(ee){b||(b=ee)}class A{}const E=new e.OlP("DocumentToken");let C=(()=>{class ee{historyGo(he){throw new Error("Not implemented")}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return function I(){return(0,e.LFG)(m)}()},providedIn:"platform"}),ee})();const P=new e.OlP("Location Initialized");let m=(()=>{class ee extends C{constructor(he){super(),this._doc=he,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(he){const tt=_().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("popstate",he,!1),()=>tt.removeEventListener("popstate",he)}onHashChange(he){const tt=_().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("hashchange",he,!1),()=>tt.removeEventListener("hashchange",he)}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(he){this.location.pathname=he}pushState(he,tt,yt){L()?this._history.pushState(he,tt,yt):this.location.hash=yt}replaceState(he,tt,yt){L()?this._history.replaceState(he,tt,yt):this.location.hash=yt}forward(){this._history.forward()}back(){this._history.back()}historyGo(he=0){this._history.go(he)}getState(){return this._history.state}}return ee.\u0275fac=function(he){return new(he||ee)(e.LFG(E))},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return function O(){return new m((0,e.LFG)(E))}()},providedIn:"platform"}),ee})();function L(){return!!window.history.pushState}function G(ee,Oe){if(0==ee.length)return Oe;if(0==Oe.length)return ee;let he=0;return ee.endsWith("/")&&he++,Oe.startsWith("/")&&he++,2==he?ee+Oe.substring(1):1==he?ee+Oe:ee+"/"+Oe}function ne(ee){const Oe=ee.match(/#|\?|$/),he=Oe&&Oe.index||ee.length;return ee.slice(0,he-("/"===ee[he-1]?1:0))+ee.slice(he)}function ge(ee){return ee&&"?"!==ee[0]?"?"+ee:ee}let J=(()=>{class ee{historyGo(he){throw new Error("Not implemented")}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return function Me(ee){const Oe=(0,e.LFG)(E).location;return new Re((0,e.LFG)(C),Oe&&Oe.origin||"")}()},providedIn:"root"}),ee})();const oe=new e.OlP("appBaseHref");let Re=(()=>{class ee extends J{constructor(he,tt){if(super(),this._platformLocation=he,this._removeListenerFns=[],null==tt&&(tt=this._platformLocation.getBaseHrefFromDOM()),null==tt)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=tt}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}getBaseHref(){return this._baseHref}prepareExternalUrl(he){return G(this._baseHref,he)}path(he=!1){const tt=this._platformLocation.pathname+ge(this._platformLocation.search),yt=this._platformLocation.hash;return yt&&he?`${tt}${yt}`:tt}pushState(he,tt,yt,Gt){const Wt=this.prepareExternalUrl(yt+ge(Gt));this._platformLocation.pushState(he,tt,Wt)}replaceState(he,tt,yt,Gt){const Wt=this.prepareExternalUrl(yt+ge(Gt));this._platformLocation.replaceState(he,tt,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(he=0){var tt,yt;null===(yt=(tt=this._platformLocation).historyGo)||void 0===yt||yt.call(tt,he)}}return ee.\u0275fac=function(he){return new(he||ee)(e.LFG(C),e.LFG(oe,8))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),T=(()=>{class ee extends J{constructor(he,tt){super(),this._platformLocation=he,this._baseHref="",this._removeListenerFns=[],null!=tt&&(this._baseHref=tt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}getBaseHref(){return this._baseHref}path(he=!1){let tt=this._platformLocation.hash;return null==tt&&(tt="#"),tt.length>0?tt.substring(1):tt}prepareExternalUrl(he){const tt=G(this._baseHref,he);return tt.length>0?"#"+tt:tt}pushState(he,tt,yt,Gt){let Wt=this.prepareExternalUrl(yt+ge(Gt));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.pushState(he,tt,Wt)}replaceState(he,tt,yt,Gt){let Wt=this.prepareExternalUrl(yt+ge(Gt));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.replaceState(he,tt,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(he=0){var tt,yt;null===(yt=(tt=this._platformLocation).historyGo)||void 0===yt||yt.call(tt,he)}}return ee.\u0275fac=function(he){return new(he||ee)(e.LFG(C),e.LFG(oe,8))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),j=(()=>{class ee{constructor(he,tt){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=he;const yt=this._platformStrategy.getBaseHref();this._platformLocation=tt,this._baseHref=ne(te(yt)),this._platformStrategy.onPopState(Gt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Gt.state,type:Gt.type})})}path(he=!1){return this.normalize(this._platformStrategy.path(he))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(he,tt=""){return this.path()==this.normalize(he+ge(tt))}normalize(he){return ee.stripTrailingSlash(function q(ee,Oe){return ee&&Oe.startsWith(ee)?Oe.substring(ee.length):Oe}(this._baseHref,te(he)))}prepareExternalUrl(he){return he&&"/"!==he[0]&&(he="/"+he),this._platformStrategy.prepareExternalUrl(he)}go(he,tt="",yt=null){this._platformStrategy.pushState(yt,"",he,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+ge(tt)),yt)}replaceState(he,tt="",yt=null){this._platformStrategy.replaceState(yt,"",he,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+ge(tt)),yt)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(he=0){var tt,yt;null===(yt=(tt=this._platformStrategy).historyGo)||void 0===yt||yt.call(tt,he)}onUrlChange(he){this._urlChangeListeners.push(he),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(tt=>{this._notifyUrlChangeListeners(tt.url,tt.state)}))}_notifyUrlChangeListeners(he="",tt){this._urlChangeListeners.forEach(yt=>yt(he,tt))}subscribe(he,tt,yt){return this._subject.subscribe({next:he,error:tt,complete:yt})}}return ee.normalizeQueryParams=ge,ee.joinWithSlash=G,ee.stripTrailingSlash=ne,ee.\u0275fac=function(he){return new(he||ee)(e.LFG(J),e.LFG(C))},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return function Y(){return new j((0,e.LFG)(J),(0,e.LFG)(C))}()},providedIn:"root"}),ee})();function te(ee){return ee.replace(/\/index.html$/,"")}var Le=(()=>((Le=Le||{})[Le.Zero=0]="Zero",Le[Le.One=1]="One",Le[Le.Two=2]="Two",Le[Le.Few=3]="Few",Le[Le.Many=4]="Many",Le[Le.Other=5]="Other",Le))(),Ue=(()=>((Ue=Ue||{})[Ue.Format=0]="Format",Ue[Ue.Standalone=1]="Standalone",Ue))(),ze=(()=>((ze=ze||{})[ze.Narrow=0]="Narrow",ze[ze.Abbreviated=1]="Abbreviated",ze[ze.Wide=2]="Wide",ze[ze.Short=3]="Short",ze))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),je=(()=>((je=je||{})[je.Decimal=0]="Decimal",je[je.Group=1]="Group",je[je.List=2]="List",je[je.PercentSign=3]="PercentSign",je[je.PlusSign=4]="PlusSign",je[je.MinusSign=5]="MinusSign",je[je.Exponential=6]="Exponential",je[je.SuperscriptingExponent=7]="SuperscriptingExponent",je[je.PerMille=8]="PerMille",je[je.Infinity=9]="Infinity",je[je.NaN=10]="NaN",je[je.TimeSeparator=11]="TimeSeparator",je[je.CurrencyDecimal=12]="CurrencyDecimal",je[je.CurrencyGroup=13]="CurrencyGroup",je))();function Se(ee,Oe){return Ae((0,e.cg1)(ee)[e.wAp.DateFormat],Oe)}function Xe(ee,Oe){return Ae((0,e.cg1)(ee)[e.wAp.TimeFormat],Oe)}function Je(ee,Oe){return Ae((0,e.cg1)(ee)[e.wAp.DateTimeFormat],Oe)}function nt(ee,Oe){const he=(0,e.cg1)(ee),tt=he[e.wAp.NumberSymbols][Oe];if(void 0===tt){if(Oe===je.CurrencyDecimal)return he[e.wAp.NumberSymbols][je.Decimal];if(Oe===je.CurrencyGroup)return he[e.wAp.NumberSymbols][je.Group]}return tt}const H=e.kL8;function V(ee){if(!ee[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${ee[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ae(ee,Oe){for(let he=Oe;he>-1;he--)if(void 0!==ee[he])return ee[he];throw new Error("Locale data API: locale data undefined")}function ae(ee){const[Oe,he]=ee.split(":");return{hours:+Oe,minutes:+he}}const l=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,s={},r=/((?:[^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 t=(()=>((t=t||{})[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t))(),n=(()=>((n=n||{})[n.FullYear=0]="FullYear",n[n.Month=1]="Month",n[n.Date=2]="Date",n[n.Hours=3]="Hours",n[n.Minutes=4]="Minutes",n[n.Seconds=5]="Seconds",n[n.FractionalSeconds=6]="FractionalSeconds",n[n.Day=7]="Day",n))(),a=(()=>((a=a||{})[a.DayPeriods=0]="DayPeriods",a[a.Days=1]="Days",a[a.Months=2]="Months",a[a.Eras=3]="Eras",a))();function c(ee,Oe,he,tt){let yt=function Rt(ee){if(Bt(ee))return ee;if("number"==typeof ee&&!isNaN(ee))return new Date(ee);if("string"==typeof ee){if(ee=ee.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ee)){const[yt,Gt=1,Wt=1]=ee.split("-").map(ii=>+ii);return h(yt,Gt-1,Wt)}const he=parseFloat(ee);if(!isNaN(ee-he))return new Date(he);let tt;if(tt=ee.match(l))return function Et(ee){const Oe=new Date(0);let he=0,tt=0;const yt=ee[8]?Oe.setUTCFullYear:Oe.setFullYear,Gt=ee[8]?Oe.setUTCHours:Oe.setHours;ee[9]&&(he=Number(ee[9]+ee[10]),tt=Number(ee[9]+ee[11])),yt.call(Oe,Number(ee[1]),Number(ee[2])-1,Number(ee[3]));const Wt=Number(ee[4]||0)-he,ii=Number(ee[5]||0)-tt,di=Number(ee[6]||0),ui=Math.floor(1e3*parseFloat("0."+(ee[7]||0)));return Gt.call(Oe,Wt,ii,di,ui),Oe}(tt)}const Oe=new Date(ee);if(!Bt(Oe))throw new Error(`Unable to convert "${ee}" into a date`);return Oe}(ee);Oe=x(he,Oe)||Oe;let ii,Wt=[];for(;Oe;){if(ii=r.exec(Oe),!ii){Wt.push(Oe);break}{Wt=Wt.concat(ii.slice(1));const _i=Wt.pop();if(!_i)break;Oe=_i}}let di=yt.getTimezoneOffset();tt&&(di=xt(tt,di),yt=function It(ee,Oe,he){const tt=he?-1:1,yt=ee.getTimezoneOffset();return function Yt(ee,Oe){return(ee=new Date(ee.getTime())).setMinutes(ee.getMinutes()+Oe),ee}(ee,tt*(xt(Oe,yt)-yt))}(yt,tt,!0));let ui="";return Wt.forEach(_i=>{const Ti=function bt(ee){if(ct[ee])return ct[ee];let Oe;switch(ee){case"G":case"GG":case"GGG":Oe=mt(a.Eras,ze.Abbreviated);break;case"GGGG":Oe=mt(a.Eras,ze.Wide);break;case"GGGGG":Oe=mt(a.Eras,ze.Narrow);break;case"y":Oe=lt(n.FullYear,1,0,!1,!0);break;case"yy":Oe=lt(n.FullYear,2,0,!0,!0);break;case"yyy":Oe=lt(n.FullYear,3,0,!1,!0);break;case"yyyy":Oe=lt(n.FullYear,4,0,!1,!0);break;case"Y":Oe=He(1);break;case"YY":Oe=He(2,!0);break;case"YYY":Oe=He(3);break;case"YYYY":Oe=He(4);break;case"M":case"L":Oe=lt(n.Month,1,1);break;case"MM":case"LL":Oe=lt(n.Month,2,1);break;case"MMM":Oe=mt(a.Months,ze.Abbreviated);break;case"MMMM":Oe=mt(a.Months,ze.Wide);break;case"MMMMM":Oe=mt(a.Months,ze.Narrow);break;case"LLL":Oe=mt(a.Months,ze.Abbreviated,Ue.Standalone);break;case"LLLL":Oe=mt(a.Months,ze.Wide,Ue.Standalone);break;case"LLLLL":Oe=mt(a.Months,ze.Narrow,Ue.Standalone);break;case"w":Oe=ce(1);break;case"ww":Oe=ce(2);break;case"W":Oe=ce(1,!0);break;case"d":Oe=lt(n.Date,1);break;case"dd":Oe=lt(n.Date,2);break;case"c":case"cc":Oe=lt(n.Day,1);break;case"ccc":Oe=mt(a.Days,ze.Abbreviated,Ue.Standalone);break;case"cccc":Oe=mt(a.Days,ze.Wide,Ue.Standalone);break;case"ccccc":Oe=mt(a.Days,ze.Narrow,Ue.Standalone);break;case"cccccc":Oe=mt(a.Days,ze.Short,Ue.Standalone);break;case"E":case"EE":case"EEE":Oe=mt(a.Days,ze.Abbreviated);break;case"EEEE":Oe=mt(a.Days,ze.Wide);break;case"EEEEE":Oe=mt(a.Days,ze.Narrow);break;case"EEEEEE":Oe=mt(a.Days,ze.Short);break;case"a":case"aa":case"aaa":Oe=mt(a.DayPeriods,ze.Abbreviated);break;case"aaaa":Oe=mt(a.DayPeriods,ze.Wide);break;case"aaaaa":Oe=mt(a.DayPeriods,ze.Narrow);break;case"b":case"bb":case"bbb":Oe=mt(a.DayPeriods,ze.Abbreviated,Ue.Standalone,!0);break;case"bbbb":Oe=mt(a.DayPeriods,ze.Wide,Ue.Standalone,!0);break;case"bbbbb":Oe=mt(a.DayPeriods,ze.Narrow,Ue.Standalone,!0);break;case"B":case"BB":case"BBB":Oe=mt(a.DayPeriods,ze.Abbreviated,Ue.Format,!0);break;case"BBBB":Oe=mt(a.DayPeriods,ze.Wide,Ue.Format,!0);break;case"BBBBB":Oe=mt(a.DayPeriods,ze.Narrow,Ue.Format,!0);break;case"h":Oe=lt(n.Hours,1,-12);break;case"hh":Oe=lt(n.Hours,2,-12);break;case"H":Oe=lt(n.Hours,1);break;case"HH":Oe=lt(n.Hours,2);break;case"m":Oe=lt(n.Minutes,1);break;case"mm":Oe=lt(n.Minutes,2);break;case"s":Oe=lt(n.Seconds,1);break;case"ss":Oe=lt(n.Seconds,2);break;case"S":Oe=lt(n.FractionalSeconds,1);break;case"SS":Oe=lt(n.FractionalSeconds,2);break;case"SSS":Oe=lt(n.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Oe=Ee(t.Short);break;case"ZZZZZ":Oe=Ee(t.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Oe=Ee(t.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Oe=Ee(t.Long);break;default:return null}return ct[ee]=Oe,Oe}(_i);ui+=Ti?Ti(yt,he,di):"''"===_i?"'":_i.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ui}function h(ee,Oe,he){const tt=new Date(0);return tt.setFullYear(ee,Oe,he),tt.setHours(0,0,0),tt}function x(ee,Oe){const he=function Be(ee){return(0,e.cg1)(ee)[e.wAp.LocaleId]}(ee);if(s[he]=s[he]||{},s[he][Oe])return s[he][Oe];let tt="";switch(Oe){case"shortDate":tt=Se(ee,le.Short);break;case"mediumDate":tt=Se(ee,le.Medium);break;case"longDate":tt=Se(ee,le.Long);break;case"fullDate":tt=Se(ee,le.Full);break;case"shortTime":tt=Xe(ee,le.Short);break;case"mediumTime":tt=Xe(ee,le.Medium);break;case"longTime":tt=Xe(ee,le.Long);break;case"fullTime":tt=Xe(ee,le.Full);break;case"short":const yt=x(ee,"shortTime"),Gt=x(ee,"shortDate");tt=We(Je(ee,le.Short),[yt,Gt]);break;case"medium":const Wt=x(ee,"mediumTime"),ii=x(ee,"mediumDate");tt=We(Je(ee,le.Medium),[Wt,ii]);break;case"long":const di=x(ee,"longTime"),ui=x(ee,"longDate");tt=We(Je(ee,le.Long),[di,ui]);break;case"full":const _i=x(ee,"fullTime"),Ti=x(ee,"fullDate");tt=We(Je(ee,le.Full),[_i,Ti])}return tt&&(s[he][Oe]=tt),tt}function We(ee,Oe){return Oe&&(ee=ee.replace(/\{([^}]+)}/g,function(he,tt){return null!=Oe&&tt in Oe?Oe[tt]:he})),ee}function At(ee,Oe,he="-",tt,yt){let Gt="";(ee<0||yt&&ee<=0)&&(yt?ee=1-ee:(ee=-ee,Gt=he));let Wt=String(ee);for(;Wt.length0||ii>-he)&&(ii+=he),ee===n.Hours)0===ii&&-12===he&&(ii=12);else if(ee===n.FractionalSeconds)return function Ht(ee,Oe){return At(ee,3).substr(0,Oe)}(ii,Oe);const di=nt(Wt,je.MinusSign);return At(ii,Oe,di,tt,yt)}}function mt(ee,Oe,he=Ue.Format,tt=!1){return function(yt,Gt){return function Lt(ee,Oe,he,tt,yt,Gt){switch(he){case a.Months:return function me(ee,Oe,he){const tt=(0,e.cg1)(ee),Gt=Ae([tt[e.wAp.MonthsFormat],tt[e.wAp.MonthsStandalone]],Oe);return Ae(Gt,he)}(Oe,yt,tt)[ee.getMonth()];case a.Days:return function R(ee,Oe,he){const tt=(0,e.cg1)(ee),Gt=Ae([tt[e.wAp.DaysFormat],tt[e.wAp.DaysStandalone]],Oe);return Ae(Gt,he)}(Oe,yt,tt)[ee.getDay()];case a.DayPeriods:const Wt=ee.getHours(),ii=ee.getMinutes();if(Gt){const ui=function xe(ee){const Oe=(0,e.cg1)(ee);return V(Oe),(Oe[e.wAp.ExtraData][2]||[]).map(tt=>"string"==typeof tt?ae(tt):[ae(tt[0]),ae(tt[1])])}(Oe),_i=function Qe(ee,Oe,he){const tt=(0,e.cg1)(ee);V(tt);const Gt=Ae([tt[e.wAp.ExtraData][0],tt[e.wAp.ExtraData][1]],Oe)||[];return Ae(Gt,he)||[]}(Oe,yt,tt),Ti=ui.findIndex(Hi=>{if(Array.isArray(Hi)){const[Ne,De]=Hi,we=Wt>=Ne.hours&&ii>=Ne.minutes,ut=Wt0?Math.floor(yt/60):Math.ceil(yt/60);switch(ee){case t.Short:return(yt>=0?"+":"")+At(Wt,2,Gt)+At(Math.abs(yt%60),2,Gt);case t.ShortGMT:return"GMT"+(yt>=0?"+":"")+At(Wt,1,Gt);case t.Long:return"GMT"+(yt>=0?"+":"")+At(Wt,2,Gt)+":"+At(Math.abs(yt%60),2,Gt);case t.Extended:return 0===tt?"Z":(yt>=0?"+":"")+At(Wt,2,Gt)+":"+At(Math.abs(yt%60),2,Gt);default:throw new Error(`Unknown zone width "${ee}"`)}}}function ie(ee){return h(ee.getFullYear(),ee.getMonth(),ee.getDate()+(4-ee.getDay()))}function ce(ee,Oe=!1){return function(he,tt){let yt;if(Oe){const Gt=new Date(he.getFullYear(),he.getMonth(),1).getDay()-1,Wt=he.getDate();yt=1+Math.floor((Wt+Gt)/7)}else{const Gt=ie(he),Wt=function k(ee){const Oe=h(ee,0,1).getDay();return h(ee,0,1+(Oe<=4?4:11)-Oe)}(Gt.getFullYear()),ii=Gt.getTime()-Wt.getTime();yt=1+Math.round(ii/6048e5)}return At(yt,ee,nt(tt,je.MinusSign))}}function He(ee,Oe=!1){return function(he,tt){return At(ie(he).getFullYear(),ee,nt(tt,je.MinusSign),Oe)}}const ct={};function xt(ee,Oe){ee=ee.replace(/:/g,"");const he=Date.parse("Jan 01, 1970 00:00:00 "+ee)/6e4;return isNaN(he)?Oe:he}function Bt(ee){return ee instanceof Date&&!isNaN(ee.valueOf())}class gt{}let ri=(()=>{class ee extends gt{constructor(he){super(),this.locale=he}getPluralCategory(he,tt){switch(H(tt||this.locale)(he)){case Le.Zero:return"zero";case Le.One:return"one";case Le.Two:return"two";case Le.Few:return"few";case Le.Many:return"many";default:return"other"}}}return ee.\u0275fac=function(he){return new(he||ee)(e.LFG(e.soG))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})();function Di(ee,Oe){Oe=encodeURIComponent(Oe);for(const he of ee.split(";")){const tt=he.indexOf("="),[yt,Gt]=-1==tt?[he,""]:[he.slice(0,tt),he.slice(tt+1)];if(yt.trim()===Oe)return decodeURIComponent(Gt)}return null}let wi=(()=>{class ee{constructor(he,tt,yt,Gt){this._iterableDiffers=he,this._keyValueDiffers=tt,this._ngEl=yt,this._renderer=Gt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(he){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof he?he.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(he){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof he?he.split(/\s+/):he,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 he=this._iterableDiffer.diff(this._rawClass);he&&this._applyIterableChanges(he)}else if(this._keyValueDiffer){const he=this._keyValueDiffer.diff(this._rawClass);he&&this._applyKeyValueChanges(he)}}_applyKeyValueChanges(he){he.forEachAddedItem(tt=>this._toggleClass(tt.key,tt.currentValue)),he.forEachChangedItem(tt=>this._toggleClass(tt.key,tt.currentValue)),he.forEachRemovedItem(tt=>{tt.previousValue&&this._toggleClass(tt.key,!1)})}_applyIterableChanges(he){he.forEachAddedItem(tt=>{if("string"!=typeof tt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(tt.item)}`);this._toggleClass(tt.item,!0)}),he.forEachRemovedItem(tt=>this._toggleClass(tt.item,!1))}_applyClasses(he){he&&(Array.isArray(he)||he instanceof Set?he.forEach(tt=>this._toggleClass(tt,!0)):Object.keys(he).forEach(tt=>this._toggleClass(tt,!!he[tt])))}_removeClasses(he){he&&(Array.isArray(he)||he instanceof Set?he.forEach(tt=>this._toggleClass(tt,!1)):Object.keys(he).forEach(tt=>this._toggleClass(tt,!1)))}_toggleClass(he,tt){(he=he.trim())&&he.split(/\s+/g).forEach(yt=>{tt?this._renderer.addClass(this._ngEl.nativeElement,yt):this._renderer.removeClass(this._ngEl.nativeElement,yt)})}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),ee})();class qi{constructor(Oe,he,tt,yt){this.$implicit=Oe,this.ngForOf=he,this.index=tt,this.count=yt}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 Fi=(()=>{class ee{constructor(he,tt,yt){this._viewContainer=he,this._template=tt,this._differs=yt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(he){this._ngForOf=he,this._ngForOfDirty=!0}set ngForTrackBy(he){this._trackByFn=he}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(he){he&&(this._template=he)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const he=this._ngForOf;!this._differ&&he&&(this._differ=this._differs.find(he).create(this.ngForTrackBy))}if(this._differ){const he=this._differ.diff(this._ngForOf);he&&this._applyChanges(he)}}_applyChanges(he){const tt=this._viewContainer;he.forEachOperation((yt,Gt,Wt)=>{if(null==yt.previousIndex)tt.createEmbeddedView(this._template,new qi(yt.item,this._ngForOf,-1,-1),null===Wt?void 0:Wt);else if(null==Wt)tt.remove(null===Gt?void 0:Gt);else if(null!==Gt){const ii=tt.get(Gt);tt.move(ii,Wt),Ji(ii,yt)}});for(let yt=0,Gt=tt.length;yt{Ji(tt.get(yt.currentIndex),yt)})}static ngTemplateContextGuard(he,tt){return!0}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),ee})();function Ji(ee,Oe){ee.context.$implicit=Oe.item}let Ni=(()=>{class ee{constructor(he,tt){this._viewContainer=he,this._context=new Ri,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=tt}set ngIf(he){this._context.$implicit=this._context.ngIf=he,this._updateView()}set ngIfThen(he){sn("ngIfThen",he),this._thenTemplateRef=he,this._thenViewRef=null,this._updateView()}set ngIfElse(he){sn("ngIfElse",he),this._elseTemplateRef=he,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(he,tt){return!0}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b),e.Y36(e.Rgc))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),ee})();class Ri{constructor(){this.$implicit=null,this.ngIf=null}}function sn(ee,Oe){if(Oe&&!Oe.createEmbeddedView)throw new Error(`${ee} must be a TemplateRef, but received '${(0,e.AaK)(Oe)}'.`)}class Xi{constructor(Oe,he){this._viewContainerRef=Oe,this._templateRef=he,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Oe){Oe&&!this._created?this.create():!Oe&&this._created&&this.destroy()}}let en=(()=>{class ee{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(he){this._ngSwitch=he,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(he){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(he)}_matchCase(he){const tt=he==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||tt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),tt}_updateDefaultCases(he){if(this._defaultViews&&he!==this._defaultUsed){this._defaultUsed=he;for(let tt=0;tt{class ee{constructor(he,tt,yt){this.ngSwitch=yt,yt._addCase(),this._view=new Xi(he,tt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(en,9))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),ee})(),dn=(()=>{class ee{constructor(he,tt,yt){yt._addDefault(new Xi(he,tt))}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(en,9))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngSwitchDefault",""]]}),ee})(),kn=(()=>{class ee{constructor(he,tt,yt){this._ngEl=he,this._differs=tt,this._renderer=yt,this._ngStyle=null,this._differ=null}set ngStyle(he){this._ngStyle=he,!this._differ&&he&&(this._differ=this._differs.find(he).create())}ngDoCheck(){if(this._differ){const he=this._differ.diff(this._ngStyle);he&&this._applyChanges(he)}}_setStyle(he,tt){const[yt,Gt]=he.split(".");null!=(tt=null!=tt&&Gt?`${tt}${Gt}`:tt)?this._renderer.setStyle(this._ngEl.nativeElement,yt,tt):this._renderer.removeStyle(this._ngEl.nativeElement,yt)}_applyChanges(he){he.forEachRemovedItem(tt=>this._setStyle(tt.key,null)),he.forEachAddedItem(tt=>this._setStyle(tt.key,tt.currentValue)),he.forEachChangedItem(tt=>this._setStyle(tt.key,tt.currentValue))}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),ee})(),Nn=(()=>{class ee{constructor(he){this._viewContainerRef=he,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(he){if(he.ngTemplateOutlet){const tt=this._viewContainerRef;this._viewRef&&tt.remove(tt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?tt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&he.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),ee})();function Qt(ee,Oe){return new e.vHH(2100,"")}class rt{createSubscription(Oe,he){return Oe.subscribe({next:he,error:tt=>{throw tt}})}dispose(Oe){Oe.unsubscribe()}onDestroy(Oe){Oe.unsubscribe()}}class kt{createSubscription(Oe,he){return Oe.then(he,tt=>{throw tt})}dispose(Oe){}onDestroy(Oe){}}const Ze=new kt,Ot=new rt;let qe=(()=>{class ee{constructor(he){this._ref=he,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(he){return this._obj?he!==this._obj?(this._dispose(),this.transform(he)):this._latestValue:(he&&this._subscribe(he),this._latestValue)}_subscribe(he){this._obj=he,this._strategy=this._selectStrategy(he),this._subscription=this._strategy.createSubscription(he,tt=>this._updateLatestValue(he,tt))}_selectStrategy(he){if((0,e.QGY)(he))return Ze;if((0,e.F4k)(he))return Ot;throw Qt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(he,tt){he===this._obj&&(this._latestValue=tt,this._ref.markForCheck())}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.sBO,16))},ee.\u0275pipe=e.Yjl({name:"async",type:ee,pure:!1}),ee})(),Tt=(()=>{class ee{transform(he){if(null==he)return null;if("string"!=typeof he)throw Qt();return he.toLowerCase()}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275pipe=e.Yjl({name:"lowercase",type:ee,pure:!0}),ee})();const jt=/(?:[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 ci=(()=>{class ee{transform(he){if(null==he)return null;if("string"!=typeof he)throw Qt();return he.replace(jt,tt=>tt[0].toUpperCase()+tt.substr(1).toLowerCase())}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275pipe=e.Yjl({name:"titlecase",type:ee,pure:!0}),ee})(),vi=(()=>{class ee{transform(he){if(null==he)return null;if("string"!=typeof he)throw Qt();return he.toUpperCase()}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275pipe=e.Yjl({name:"uppercase",type:ee,pure:!0}),ee})();const Ui=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Li=(()=>{class ee{constructor(he,tt){this.locale=he,this.defaultTimezone=tt}transform(he,tt="mediumDate",yt,Gt){var Wt;if(null==he||""===he||he!=he)return null;try{return c(he,tt,Gt||this.locale,null!==(Wt=null!=yt?yt:this.defaultTimezone)&&void 0!==Wt?Wt:void 0)}catch(ii){throw Qt()}}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.soG,16),e.Y36(Ui,24))},ee.\u0275pipe=e.Yjl({name:"date",type:ee,pure:!0}),ee})(),Un=(()=>{class ee{}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({providers:[{provide:gt,useClass:ri}]}),ee})();const hr="browser";function Cn(ee){return ee===hr}function $n(ee){return"server"===ee}let ft=(()=>{class ee{}return ee.\u0275prov=(0,e.Yz7)({token:ee,providedIn:"root",factory:()=>new N((0,e.LFG)(E),window)}),ee})();class N{constructor(Oe,he){this.document=Oe,this.window=he,this.offset=()=>[0,0]}setOffset(Oe){this.offset=Array.isArray(Oe)?()=>Oe:Oe}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Oe){this.supportsScrolling()&&this.window.scrollTo(Oe[0],Oe[1])}scrollToAnchor(Oe){if(!this.supportsScrolling())return;const he=function Pe(ee,Oe){const he=ee.getElementById(Oe)||ee.getElementsByName(Oe)[0];if(he)return he;if("function"==typeof ee.createTreeWalker&&ee.body&&(ee.body.createShadowRoot||ee.body.attachShadow)){const tt=ee.createTreeWalker(ee.body,NodeFilter.SHOW_ELEMENT);let yt=tt.currentNode;for(;yt;){const Gt=yt.shadowRoot;if(Gt){const Wt=Gt.getElementById(Oe)||Gt.querySelector(`[name="${Oe}"]`);if(Wt)return Wt}yt=tt.nextNode()}}return null}(this.document,Oe);he&&(this.scrollToElement(he),he.focus())}setHistoryScrollRestoration(Oe){if(this.supportScrollRestoration()){const he=this.window.history;he&&he.scrollRestoration&&(he.scrollRestoration=Oe)}}scrollToElement(Oe){const he=Oe.getBoundingClientRect(),tt=he.left+this.window.pageXOffset,yt=he.top+this.window.pageYOffset,Gt=this.offset();this.window.scrollTo(tt-Gt[0],yt-Gt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Oe=Z(this.window.history)||Z(Object.getPrototypeOf(this.window.history));return!(!Oe||!Oe.writable&&!Oe.set)}catch(Oe){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Oe){return!1}}}function Z(ee){return Object.getOwnPropertyDescriptor(ee,"scrollRestoration")}class Ct{}},40520:($e,_e,p)=>{"use strict";p.d(_e,{TP:()=>Be,eN:()=>je,JF:()=>Ae,qT:()=>oe,WM:()=>P,LE:()=>J,Zn:()=>Ue});var e=p(69808),b=p(5e3),_=p(21086),w=p(56498),g=p(21406),A=p(92198),E=p(24850);class C{}class I{}class P{constructor(d){this.normalizedNames=new Map,this.lazyUpdate=null,d?this.lazyInit="string"==typeof d?()=>{this.headers=new Map,d.split("\n").forEach(l=>{const s=l.indexOf(":");if(s>0){const r=l.slice(0,s),t=r.toLowerCase(),n=l.slice(s+1).trim();this.maybeSetNormalizedName(r,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}})}:()=>{this.headers=new Map,Object.keys(d).forEach(l=>{let s=d[l];const r=l.toLowerCase();"string"==typeof s&&(s=[s]),s.length>0&&(this.headers.set(r,s),this.maybeSetNormalizedName(l,r))})}:this.headers=new Map}has(d){return this.init(),this.headers.has(d.toLowerCase())}get(d){this.init();const l=this.headers.get(d.toLowerCase());return l&&l.length>0?l[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(d){return this.init(),this.headers.get(d.toLowerCase())||null}append(d,l){return this.clone({name:d,value:l,op:"a"})}set(d,l){return this.clone({name:d,value:l,op:"s"})}delete(d,l){return this.clone({name:d,value:l,op:"d"})}maybeSetNormalizedName(d,l){this.normalizedNames.has(l)||this.normalizedNames.set(l,d)}init(){this.lazyInit&&(this.lazyInit instanceof P?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(d=>this.applyUpdate(d)),this.lazyUpdate=null))}copyFrom(d){d.init(),Array.from(d.headers.keys()).forEach(l=>{this.headers.set(l,d.headers.get(l)),this.normalizedNames.set(l,d.normalizedNames.get(l))})}clone(d){const l=new P;return l.lazyInit=this.lazyInit&&this.lazyInit instanceof P?this.lazyInit:this,l.lazyUpdate=(this.lazyUpdate||[]).concat([d]),l}applyUpdate(d){const l=d.name.toLowerCase();switch(d.op){case"a":case"s":let s=d.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(d.name,l);const r=("a"===d.op?this.headers.get(l):void 0)||[];r.push(...s),this.headers.set(l,r);break;case"d":const t=d.value;if(t){let n=this.headers.get(l);if(!n)return;n=n.filter(a=>-1===t.indexOf(a)),0===n.length?(this.headers.delete(l),this.normalizedNames.delete(l)):this.headers.set(l,n)}else this.headers.delete(l),this.normalizedNames.delete(l)}}forEach(d){this.init(),Array.from(this.normalizedNames.keys()).forEach(l=>d(this.normalizedNames.get(l),this.headers.get(l)))}}class m{encodeKey(d){return ne(d)}encodeValue(d){return ne(d)}decodeKey(d){return decodeURIComponent(d)}decodeValue(d){return decodeURIComponent(d)}}const O=/%(\d[a-f0-9])/gi,G={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(o){return encodeURIComponent(o).replace(O,(d,l)=>{var s;return null!==(s=G[l])&&void 0!==s?s:d})}function ge(o){return`${o}`}class J{constructor(d={}){if(this.updates=null,this.cloneFrom=null,this.encoder=d.encoder||new m,d.fromString){if(d.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function L(o,d){const l=new Map;return o.length>0&&o.replace(/^\?/,"").split("&").forEach(r=>{const t=r.indexOf("="),[n,a]=-1==t?[d.decodeKey(r),""]:[d.decodeKey(r.slice(0,t)),d.decodeValue(r.slice(t+1))],c=l.get(n)||[];c.push(a),l.set(n,c)}),l}(d.fromString,this.encoder)}else d.fromObject?(this.map=new Map,Object.keys(d.fromObject).forEach(l=>{const s=d.fromObject[l];this.map.set(l,Array.isArray(s)?s:[s])})):this.map=null}has(d){return this.init(),this.map.has(d)}get(d){this.init();const l=this.map.get(d);return l?l[0]:null}getAll(d){return this.init(),this.map.get(d)||null}keys(){return this.init(),Array.from(this.map.keys())}append(d,l){return this.clone({param:d,value:l,op:"a"})}appendAll(d){const l=[];return Object.keys(d).forEach(s=>{const r=d[s];Array.isArray(r)?r.forEach(t=>{l.push({param:s,value:t,op:"a"})}):l.push({param:s,value:r,op:"a"})}),this.clone(l)}set(d,l){return this.clone({param:d,value:l,op:"s"})}delete(d,l){return this.clone({param:d,value:l,op:"d"})}toString(){return this.init(),this.keys().map(d=>{const l=this.encoder.encodeKey(d);return this.map.get(d).map(s=>l+"="+this.encoder.encodeValue(s)).join("&")}).filter(d=>""!==d).join("&")}clone(d){const l=new J({encoder:this.encoder});return l.cloneFrom=this.cloneFrom||this,l.updates=(this.updates||[]).concat(d),l}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(d=>this.map.set(d,this.cloneFrom.map.get(d))),this.updates.forEach(d=>{switch(d.op){case"a":case"s":const l=("a"===d.op?this.map.get(d.param):void 0)||[];l.push(ge(d.value)),this.map.set(d.param,l);break;case"d":if(void 0===d.value){this.map.delete(d.param);break}{let s=this.map.get(d.param)||[];const r=s.indexOf(ge(d.value));-1!==r&&s.splice(r,1),s.length>0?this.map.set(d.param,s):this.map.delete(d.param)}}}),this.cloneFrom=this.updates=null)}}class oe{constructor(){this.map=new Map}set(d,l){return this.map.set(d,l),this}get(d){return this.map.has(d)||this.map.set(d,d.defaultValue()),this.map.get(d)}delete(d){return this.map.delete(d),this}has(d){return this.map.has(d)}keys(){return this.map.keys()}}function T(o){return"undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer}function j(o){return"undefined"!=typeof Blob&&o instanceof Blob}function Y(o){return"undefined"!=typeof FormData&&o instanceof FormData}class te{constructor(d,l,s,r){let t;if(this.url=l,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=d.toUpperCase(),function Re(o){switch(o){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==s?s:null,t=r):t=s,t&&(this.reportProgress=!!t.reportProgress,this.withCredentials=!!t.withCredentials,t.responseType&&(this.responseType=t.responseType),t.headers&&(this.headers=t.headers),t.context&&(this.context=t.context),t.params&&(this.params=t.params)),this.headers||(this.headers=new P),this.context||(this.context=new oe),this.params){const n=this.params.toString();if(0===n.length)this.urlWithParams=l;else{const a=l.indexOf("?");this.urlWithParams=l+(-1===a?"?":aAt.set(Ht,d.setHeaders[Ht]),h)),d.setParams&&(x=Object.keys(d.setParams).reduce((At,Ht)=>At.set(Ht,d.setParams[Ht]),x)),new te(s,r,n,{params:x,headers:h,context:We,reportProgress:c,responseType:t,withCredentials:a})}}var ue=(()=>((ue=ue||{})[ue.Sent=0]="Sent",ue[ue.UploadProgress=1]="UploadProgress",ue[ue.ResponseHeader=2]="ResponseHeader",ue[ue.DownloadProgress=3]="DownloadProgress",ue[ue.Response=4]="Response",ue[ue.User=5]="User",ue))();class de{constructor(d,l=200,s="OK"){this.headers=d.headers||new P,this.status=void 0!==d.status?d.status:l,this.statusText=d.statusText||s,this.url=d.url||null,this.ok=this.status>=200&&this.status<300}}class Le extends de{constructor(d={}){super(d),this.type=ue.ResponseHeader}clone(d={}){return new Le({headers:d.headers||this.headers,status:void 0!==d.status?d.status:this.status,statusText:d.statusText||this.statusText,url:d.url||this.url||void 0})}}class Ue extends de{constructor(d={}){super(d),this.type=ue.Response,this.body=void 0!==d.body?d.body:null}clone(d={}){return new Ue({body:void 0!==d.body?d.body:this.body,headers:d.headers||this.headers,status:void 0!==d.status?d.status:this.status,statusText:d.statusText||this.statusText,url:d.url||this.url||void 0})}}class ze extends de{constructor(d){super(d,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${d.url||"(unknown url)"}`:`Http failure response for ${d.url||"(unknown url)"}: ${d.status} ${d.statusText}`,this.error=d.error||null}}function le(o,d){return{body:d,headers:o.headers,context:o.context,observe:o.observe,params:o.params,reportProgress:o.reportProgress,responseType:o.responseType,withCredentials:o.withCredentials}}let je=(()=>{class o{constructor(l){this.handler=l}request(l,s,r={}){let t;if(l instanceof te)t=l;else{let c,h;c=r.headers instanceof P?r.headers:new P(r.headers),r.params&&(h=r.params instanceof J?r.params:new J({fromObject:r.params})),t=new te(l,s,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const n=(0,_.of)(t).pipe((0,g.b)(c=>this.handler.handle(c)));if(l instanceof te||"events"===r.observe)return n;const a=n.pipe((0,A.h)(c=>c instanceof Ue));switch(r.observe||"body"){case"body":switch(t.responseType){case"arraybuffer":return a.pipe((0,E.U)(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe((0,E.U)(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe((0,E.U)(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe((0,E.U)(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(l,s={}){return this.request("DELETE",l,s)}get(l,s={}){return this.request("GET",l,s)}head(l,s={}){return this.request("HEAD",l,s)}jsonp(l,s){return this.request("JSONP",l,{params:(new J).append(s,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(l,s={}){return this.request("OPTIONS",l,s)}patch(l,s,r={}){return this.request("PATCH",l,le(r,s))}post(l,s,r={}){return this.request("POST",l,le(r,s))}put(l,s,r={}){return this.request("PUT",l,le(r,s))}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(C))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})();class ye{constructor(d,l){this.next=d,this.interceptor=l}handle(d){return this.interceptor.intercept(d,this.next)}}const Be=new b.OlP("HTTP_INTERCEPTORS");let W=(()=>{class o{intercept(l,s){return s.handle(l)}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})();const Je=/^\)\]\}',?\n/;let Ve=(()=>{class o{constructor(l){this.xhrFactory=l}handle(l){if("JSONP"===l.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(s=>{const r=this.xhrFactory.build();if(r.open(l.method,l.urlWithParams),l.withCredentials&&(r.withCredentials=!0),l.headers.forEach((Ht,lt)=>r.setRequestHeader(Ht,lt.join(","))),l.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!l.headers.has("Content-Type")){const Ht=l.detectContentTypeHeader();null!==Ht&&r.setRequestHeader("Content-Type",Ht)}if(l.responseType){const Ht=l.responseType.toLowerCase();r.responseType="json"!==Ht?Ht:"text"}const t=l.serializeBody();let n=null;const a=()=>{if(null!==n)return n;const Ht=r.statusText||"OK",lt=new P(r.getAllResponseHeaders()),Ut=function nt(o){return"responseURL"in o&&o.responseURL?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null}(r)||l.url;return n=new Le({headers:lt,status:r.status,statusText:Ht,url:Ut}),n},c=()=>{let{headers:Ht,status:lt,statusText:Ut,url:mt}=a(),Lt=null;204!==lt&&(Lt=void 0===r.response?r.responseText:r.response),0===lt&&(lt=Lt?200:0);let Ee=lt>=200&<<300;if("json"===l.responseType&&"string"==typeof Lt){const Ge=Lt;Lt=Lt.replace(Je,"");try{Lt=""!==Lt?JSON.parse(Lt):null}catch(U){Lt=Ge,Ee&&(Ee=!1,Lt={error:U,text:Lt})}}Ee?(s.next(new Ue({body:Lt,headers:Ht,status:lt,statusText:Ut,url:mt||void 0})),s.complete()):s.error(new ze({error:Lt,headers:Ht,status:lt,statusText:Ut,url:mt||void 0}))},h=Ht=>{const{url:lt}=a(),Ut=new ze({error:Ht,status:r.status||0,statusText:r.statusText||"Unknown Error",url:lt||void 0});s.error(Ut)};let x=!1;const We=Ht=>{x||(s.next(a()),x=!0);let lt={type:ue.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(lt.total=Ht.total),"text"===l.responseType&&!!r.responseText&&(lt.partialText=r.responseText),s.next(lt)},At=Ht=>{let lt={type:ue.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(lt.total=Ht.total),s.next(lt)};return r.addEventListener("load",c),r.addEventListener("error",h),r.addEventListener("timeout",h),r.addEventListener("abort",h),l.reportProgress&&(r.addEventListener("progress",We),null!==t&&r.upload&&r.upload.addEventListener("progress",At)),r.send(t),s.next({type:ue.Sent}),()=>{r.removeEventListener("error",h),r.removeEventListener("abort",h),r.removeEventListener("load",c),r.removeEventListener("timeout",h),l.reportProgress&&(r.removeEventListener("progress",We),null!==t&&r.upload&&r.upload.removeEventListener("progress",At)),r.readyState!==r.DONE&&r.abort()}})}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(e.JF))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})();const X=new b.OlP("XSRF_COOKIE_NAME"),z=new b.OlP("XSRF_HEADER_NAME");class Q{}let D=(()=>{class o{constructor(l,s,r){this.doc=l,this.platform=s,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const l=this.doc.cookie||"";return l!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(l,this.cookieName),this.lastCookieString=l),this.lastToken}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(e.K0),b.LFG(b.Lbi),b.LFG(X))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})(),H=(()=>{class o{constructor(l,s){this.tokenService=l,this.headerName=s}intercept(l,s){const r=l.url.toLowerCase();if("GET"===l.method||"HEAD"===l.method||r.startsWith("http://")||r.startsWith("https://"))return s.handle(l);const t=this.tokenService.getToken();return null!==t&&!l.headers.has(this.headerName)&&(l=l.clone({headers:l.headers.set(this.headerName,t)})),s.handle(l)}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(Q),b.LFG(z))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})(),V=(()=>{class o{constructor(l,s){this.backend=l,this.injector=s,this.chain=null}handle(l){if(null===this.chain){const s=this.injector.get(Be,[]);this.chain=s.reduceRight((r,t)=>new ye(r,t),this.backend)}return this.chain.handle(l)}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(I),b.LFG(b.zs3))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})(),Te=(()=>{class o{static disable(){return{ngModule:o,providers:[{provide:H,useClass:W}]}}static withOptions(l={}){return{ngModule:o,providers:[l.cookieName?{provide:X,useValue:l.cookieName}:[],l.headerName?{provide:z,useValue:l.headerName}:[]]}}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=b.oAB({type:o}),o.\u0275inj=b.cJS({providers:[H,{provide:Be,useExisting:H,multi:!0},{provide:Q,useClass:D},{provide:X,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}),o})(),Ae=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=b.oAB({type:o}),o.\u0275inj=b.cJS({providers:[je,{provide:C,useClass:V},Ve,{provide:I,useExisting:Ve}],imports:[[Te.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),o})()},5e3:($e,_e,p)=>{"use strict";p.d(_e,{deG:()=>Hm,tb:()=>lm,AFp:()=>sm,ip1:()=>Zc,CZH:()=>sa,hGG:()=>jT,z2F:()=>za,sBO:()=>AT,Sil:()=>zc,_Vd:()=>Na,EJc:()=>dm,SBq:()=>Va,qLn:()=>ya,vpe:()=>zr,tBr:()=>Aa,XFs:()=>Qe,OlP:()=>Dn,zs3:()=>Er,ZZ4:()=>Oo,aQg:()=>Ho,soG:()=>Ro,YKP:()=>pf,h0i:()=>ia,PXZ:()=>uT,R0b:()=>_r,FiY:()=>cs,Lbi:()=>om,g9A:()=>am,n_E:()=>yo,Qsj:()=>KC,FYo:()=>cf,JOm:()=>Fr,q3G:()=>On,tp0:()=>Rs,Rgc:()=>Za,dDg:()=>pm,GfV:()=>df,s_b:()=>xo,ifc:()=>t,eFA:()=>gm,G48:()=>_T,Gpc:()=>m,f3M:()=>qm,_c5:()=>LT,VLi:()=>lT,c2e:()=>cm,zSh:()=>Vl,wAp:()=>Ii,vHH:()=>ne,EiD:()=>Vd,mCW:()=>Ca,qzn:()=>Os,JVY:()=>pg,pB0:()=>_g,eBb:()=>mg,L6k:()=>fg,LAX:()=>gg,cg1:()=>vc,kL8:()=>Pp,yhl:()=>Id,dqk:()=>x,sIi:()=>Ra,CqO:()=>Gh,QGY:()=>sc,F4k:()=>Zh,RDi:()=>Z,AaK:()=>C,z3N:()=>Yr,qOj:()=>Gl,TTD:()=>Mn,_Bn:()=>af,xp6:()=>Tu,uIk:()=>Yl,Q2q:()=>ql,Tol:()=>dp,Gre:()=>Tp,ekj:()=>hc,Suo:()=>kf,Xpm:()=>ie,lG2:()=>Rt,Yz7:()=>Se,cJS:()=>Je,oAB:()=>xt,Yjl:()=>Et,Y36:()=>Pa,_UZ:()=>Fh,GkF:()=>Uh,BQk:()=>rc,ynx:()=>nc,qZA:()=>ic,TgZ:()=>tc,EpF:()=>jh,n5z:()=>fd,Ikx:()=>bc,LFG:()=>Fn,$8M:()=>Fo,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>Nf,kcU:()=>zi,O4$:()=>Hn,oxw:()=>Yh,ALo:()=>xf,lcZ:()=>Mf,xi3:()=>Sf,Dn7:()=>Df,Hsn:()=>Jh,F$t:()=>qh,Q6J:()=>Xl,s9C:()=>cc,MGl:()=>mo,hYB:()=>dc,DdM:()=>_f,VKq:()=>Af,WLB:()=>bf,kEZ:()=>Cf,iGM:()=>Lf,MAs:()=>Sh,evT:()=>Qd,Jf7:()=>Jd,CHM:()=>Ei,oJD:()=>Fd,LSH:()=>el,B6R:()=>ce,kYT:()=>Yt,Udp:()=>uc,WFA:()=>oc,d8E:()=>Cc,YNc:()=>Mh,W1O:()=>jf,_uU:()=>_p,Oqu:()=>fc,hij:()=>_o,AsE:()=>mc,lnq:()=>gc,HOy:()=>_c,xDo:()=>Ac,Gf:()=>Bf});var e=p(8929),b=p(42654),_=p(56498),w=p(36787),g=p(12474);function A(u){for(let f in u)if(u[f]===A)return f;throw Error("Could not find renamed property on target object.")}function E(u,f){for(const v in f)f.hasOwnProperty(v)&&!u.hasOwnProperty(v)&&(u[v]=f[v])}function C(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(C).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const f=u.toString();if(null==f)return""+f;const v=f.indexOf("\n");return-1===v?f:f.substring(0,v)}function I(u,f){return null==u||""===u?null===f?"":f:null==f||""===f?u:u+" "+f}const P=A({__forward_ref__:A});function m(u){return u.__forward_ref__=m,u.toString=function(){return C(this())},u}function L(u){return O(u)?u():u}function O(u){return"function"==typeof u&&u.hasOwnProperty(P)&&u.__forward_ref__===m}class ne extends Error{constructor(f,v){super(function ge(u,f){return`NG0${Math.abs(u)}${f?": "+f:""}`}(f,v)),this.code=f}}function J(u){return"string"==typeof u?u:null==u?"":String(u)}function Me(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():J(u)}function j(u,f){const v=f?` in ${f}`:"";throw new ne(-201,`No provider for ${Me(u)} found${v}`)}function R(u,f){null==u&&function me(u,f,v,y){throw new Error(`ASSERTION ERROR: ${u}`+(null==y?"":` [Expected=> ${v} ${y} ${f} <=Actual]`))}(f,u,null,"!=")}function Se(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function Je(u){return{providers:u.providers||[],imports:u.imports||[]}}function nt(u){return Ve(u,D)||Ve(u,V)}function Ve(u,f){return u.hasOwnProperty(f)?u[f]:null}function Q(u){return u&&(u.hasOwnProperty(H)||u.hasOwnProperty(xe))?u[H]:null}const D=A({\u0275prov:A}),H=A({\u0275inj:A}),V=A({ngInjectableDef:A}),xe=A({ngInjectorDef:A});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let Te;function ae(u){const f=Te;return Te=u,f}function i(u,f,v){const y=nt(u);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:v&Qe.Optional?null:void 0!==f?f:void j(C(u),"Injector")}function d(u){return{toString:u}.toString()}var l=(()=>((l=l||{})[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l))(),t=(()=>{return(u=t||(t={}))[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",t;var u})();const n="undefined"!=typeof globalThis&&globalThis,a="undefined"!=typeof window&&window,c="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,x=n||"undefined"!=typeof global&&global||a||c,Ht={},lt=[],Ut=A({\u0275cmp:A}),mt=A({\u0275dir:A}),Lt=A({\u0275pipe:A}),Ee=A({\u0275mod:A}),Ge=A({\u0275fac:A}),U=A({__NG_ELEMENT_ID__:A});let k=0;function ie(u){return d(()=>{const v={},y={type:u.type,providersResolver:null,decls:u.decls,vars:u.vars,factory:null,template:u.template||null,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:v,inputs:null,outputs:null,exportAs:u.exportAs||null,onPush:u.changeDetection===l.OnPush,directiveDefs:null,pipeDefs:null,selectors:u.selectors||lt,viewQuery:u.viewQuery||null,features:u.features||null,data:u.data||{},encapsulation:u.encapsulation||t.Emulated,id:"c",styles:u.styles||lt,_:null,setInput:null,schemas:u.schemas||null,tView:null},M=u.directives,S=u.features,B=u.pipes;return y.id+=k++,y.inputs=It(u.inputs,v),y.outputs=It(u.outputs),S&&S.forEach(re=>re(y)),y.directiveDefs=M?()=>("function"==typeof M?M():M).map(He):null,y.pipeDefs=B?()=>("function"==typeof B?B():B).map(ct):null,y})}function ce(u,f,v){const y=u.\u0275cmp;y.directiveDefs=()=>f.map(He),y.pipeDefs=()=>v.map(ct)}function He(u){return Bt(u)||function Jt(u){return u[mt]||null}(u)}function ct(u){return function ai(u){return u[Lt]||null}(u)}const bt={};function xt(u){return d(()=>{const f={type:u.type,bootstrap:u.bootstrap||lt,declarations:u.declarations||lt,imports:u.imports||lt,exports:u.exports||lt,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null};return null!=u.id&&(bt[u.id]=u.type),f})}function Yt(u,f){return d(()=>{const v=mi(u,!0);v.declarations=f.declarations||lt,v.imports=f.imports||lt,v.exports=f.exports||lt})}function It(u,f){if(null==u)return Ht;const v={};for(const y in u)if(u.hasOwnProperty(y)){let M=u[y],S=M;Array.isArray(M)&&(S=M[1],M=M[0]),v[M]=y,f&&(f[M]=S)}return v}const Rt=ie;function Et(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,onDestroy:u.type.prototype.ngOnDestroy||null}}function Bt(u){return u[Ut]||null}function mi(u,f){const v=u[Ee]||null;if(!v&&!0===f)throw new Error(`Type ${C(u)} does not have '\u0275mod' property.`);return v}function en(u){return Array.isArray(u)&&"object"==typeof u[1]}function an(u){return Array.isArray(u)&&!0===u[1]}function dn(u){return 0!=(8&u.flags)}function wn(u){return 2==(2&u.flags)}function xn(u){return 1==(1&u.flags)}function Oi(u){return null!==u.template}function kn(u){return 0!=(512&u[2])}function En(u,f){return u.hasOwnProperty(Ge)?u[Ge]:null}class ur{constructor(f,v,y){this.previousValue=f,this.currentValue=v,this.firstChange=y}isFirstChange(){return this.firstChange}}function Mn(){return Gn}function Gn(u){return u.type.prototype.ngOnChanges&&(u.setInput=ar),sr}function sr(){const u=hr(this),f=null==u?void 0:u.current;if(f){const v=u.previous;if(v===Ht)u.previous=f;else for(let y in f)v[y]=f[y];u.current=null,this.ngOnChanges(f)}}function ar(u,f,v,y){const M=hr(u)||function br(u,f){return u[Un]=f}(u,{previous:Ht,current:null}),S=M.current||(M.current={}),B=M.previous,re=this.declaredInputs[v],ve=B[re];S[re]=new ur(ve&&ve.currentValue,f,B===Ht),u[y]=f}Mn.ngInherit=!0;const Un="__ngSimpleChanges__";function hr(u){return u[Un]||null}let N;function Z(u){N=u}function Pe(){return void 0!==N?N:"undefined"!=typeof document?document:void 0}function Ct(u){return!!u.listen}const ee={createRenderer:(u,f)=>Pe()};function he(u){for(;Array.isArray(u);)u=u[0];return u}function Gt(u,f){return he(f[u])}function Wt(u,f){return he(f[u.index])}function di(u,f){return u.data[f]}function ui(u,f){return u[f]}function _i(u,f){const v=f[u];return en(v)?v:v[0]}function Ti(u){return 4==(4&u[2])}function Hi(u){return 128==(128&u[2])}function De(u,f){return null==f?null:u[f]}function we(u){u[18]=0}function ut(u,f){u[5]+=f;let v=u,y=u[3];for(;null!==y&&(1===f&&1===v[5]||-1===f&&0===v[5]);)y[5]+=f,v=y,y=y[3]}const Zt={lFrame:pi(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Wn(){return Zt.bindingsEnabled}function Xt(){return Zt.lFrame.lView}function si(){return Zt.lFrame.tView}function Ei(u){return Zt.lFrame.contextLView=u,u[8]}function gi(){let u=Vi();for(;null!==u&&64===u.type;)u=u.parent;return u}function Vi(){return Zt.lFrame.currentTNode}function vn(u,f){const v=Zt.lFrame;v.currentTNode=u,v.isParent=f}function Pn(){return Zt.lFrame.isParent}function Yn(){Zt.lFrame.isParent=!1}function wr(){return Zt.isInCheckNoChangesMode}function bn(u){Zt.isInCheckNoChangesMode=u}function mn(){const u=Zt.lFrame;let f=u.bindingRootIndex;return-1===f&&(f=u.bindingRootIndex=u.tView.bindingStartIndex),f}function Sn(){return Zt.lFrame.bindingIndex}function er(){return Zt.lFrame.bindingIndex++}function fr(u){const f=Zt.lFrame,v=f.bindingIndex;return f.bindingIndex=f.bindingIndex+u,v}function oa(u,f){const v=Zt.lFrame;v.bindingIndex=v.bindingRootIndex=u,As(f)}function As(u){Zt.lFrame.currentDirectiveIndex=u}function fe(u){const f=Zt.lFrame.currentDirectiveIndex;return-1===f?null:u[f]}function at(){return Zt.lFrame.currentQueryIndex}function ke(u){Zt.lFrame.currentQueryIndex=u}function pt(u){const f=u[1];return 2===f.type?f.declTNode:1===f.type?u[6]:null}function Vt(u,f,v){if(v&Qe.SkipSelf){let M=f,S=u;for(;!(M=M.parent,null!==M||v&Qe.Host||(M=pt(S),null===M||(S=S[15],10&M.type))););if(null===M)return!1;f=M,u=S}const y=Zt.lFrame=ni();return y.currentTNode=f,y.lView=u,!0}function qt(u){const f=ni(),v=u[1];Zt.lFrame=f,f.currentTNode=v.firstChild,f.lView=u,f.tView=v,f.contextLView=u,f.bindingIndex=v.bindingStartIndex,f.inI18n=!1}function ni(){const u=Zt.lFrame,f=null===u?null:u.child;return null===f?pi(u):f}function pi(u){const f={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:u,child:null,inI18n:!1};return null!==u&&(u.child=f),f}function oi(){const u=Zt.lFrame;return Zt.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const Si=oi;function Gi(){const u=oi();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function Zi(){return Zt.lFrame.selectedIndex}function Bi(u){Zt.lFrame.selectedIndex=u}function Pi(){const u=Zt.lFrame;return di(u.tView,u.selectedIndex)}function Hn(){Zt.lFrame.currentNamespace="svg"}function zi(){!function tr(){Zt.lFrame.currentNamespace=null}()}function bs(u,f){for(let v=f.directiveStart,y=f.directiveEnd;v=y)break}else f[ve]<0&&(u[18]+=65536),(re>11>16&&(3&u[2])===f){u[2]+=2048;try{S.call(re)}finally{}}}else try{S.call(re)}finally{}}class rs{constructor(f,v,y){this.factory=f,this.resolving=!1,this.canSeeViewProviders=v,this.injectImpl=y}}function Cs(u,f,v){const y=Ct(u);let M=0;for(;Mf){B=S-1;break}}}for(;S>16}(u),y=f;for(;v>0;)y=y[15],v--;return y}let $=!0;function Fe(u){const f=$;return $=u,f}let Ft=0;function Ai(u,f){const v=xi(u,f);if(-1!==v)return v;const y=f[1];y.firstCreatePass&&(u.injectorIndex=f.length,Yi(y.data,u),Yi(f,null),Yi(y.blueprint,null));const M=nn(u,f),S=u.injectorIndex;if(qa(M)){const B=as(M),re=se(M,f),ve=re[1].data;for(let et=0;et<8;et++)f[S+et]=re[B+et]|ve[B+et]}return f[S+8]=M,S}function Yi(u,f){u.push(0,0,0,0,0,0,0,0,f)}function xi(u,f){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===f[u.injectorIndex+8]?-1:u.injectorIndex}function nn(u,f){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let v=0,y=null,M=f;for(;null!==M;){const S=M[1],B=S.type;if(y=2===B?S.declTNode:1===B?M[6]:null,null===y)return-1;if(v++,M=M[15],-1!==y.injectorIndex)return y.injectorIndex|v<<16}return-1}function on(u,f,v){!function $t(u,f,v){let y;"string"==typeof v?y=v.charCodeAt(0)||0:v.hasOwnProperty(U)&&(y=v[U]),null==y&&(y=v[U]=Ft++);const M=255&y;f.data[u+(M>>5)]|=1<=0?255&f:Sr:f}(v);if("function"==typeof S){if(!Vt(f,u,y))return y&Qe.Host?Cr(M,v,y):vr(f,v,y,M);try{const B=S(y);if(null!=B||y&Qe.Optional)return B;j(v)}finally{Si()}}else if("number"==typeof S){let B=null,re=xi(u,f),ve=-1,et=y&Qe.Host?f[16][6]:null;for((-1===re||y&Qe.SkipSelf)&&(ve=-1===re?nn(u,f):f[re+8],-1!==ve&&pd(y,!1)?(B=f[1],re=as(ve),f=se(ve,f)):re=-1);-1!==re;){const dt=f[1];if(hd(S,re,dt.data)){const wt=Xr(re,f,v,B,y,et);if(wt!==ls)return wt}ve=f[re+8],-1!==ve&&pd(y,f[1].data[re+8]===et)&&hd(S,re,f)?(B=dt,re=as(ve),f=se(ve,f)):re=-1}}}return vr(f,v,y,M)}const ls={};function Sr(){return new ys(gi(),Xt())}function Xr(u,f,v,y,M,S){const B=f[1],re=B.data[u+8],dt=Es(re,B,v,null==y?wn(re)&&$:y!=B&&0!=(3&re.type),M&Qe.Host&&S===re);return null!==dt?ua(f,B,dt,re):ls}function Es(u,f,v,y,M){const S=u.providerIndexes,B=f.data,re=1048575&S,ve=u.directiveStart,dt=S>>20,Nt=M?re+dt:u.directiveEnd;for(let zt=y?re:re+dt;zt=ve&&Kt.type===v)return zt}if(M){const zt=B[ve];if(zt&&Oi(zt)&&zt.type===v)return ve}return null}function ua(u,f,v,y){let M=u[v];const S=f.data;if(function Bo(u){return u instanceof rs}(M)){const B=M;B.resolving&&function oe(u,f){const v=f?`. Dependency path: ${f.join(" > ")} > ${u}`:"";throw new ne(-200,`Circular dependency in DI detected for ${u}${v}`)}(Me(S[v]));const re=Fe(B.canSeeViewProviders);B.resolving=!0;const ve=B.injectImpl?ae(B.injectImpl):null;Vt(u,y,Qe.Default);try{M=u[v]=B.factory(void 0,S,u,y),f.firstCreatePass&&v>=y.directiveStart&&function Wa(u,f,v){const{ngOnChanges:y,ngOnInit:M,ngDoCheck:S}=f.type.prototype;if(y){const B=Gn(f);(v.preOrderHooks||(v.preOrderHooks=[])).push(u,B),(v.preOrderCheckHooks||(v.preOrderCheckHooks=[])).push(u,B)}M&&(v.preOrderHooks||(v.preOrderHooks=[])).push(0-u,M),S&&((v.preOrderHooks||(v.preOrderHooks=[])).push(u,S),(v.preOrderCheckHooks||(v.preOrderCheckHooks=[])).push(u,S))}(v,S[v],f)}finally{null!==ve&&ae(ve),Fe(re),B.resolving=!1,Si()}}return M}function hd(u,f,v){return!!(v[f+(u>>5)]&1<{const f=u.prototype.constructor,v=f[Ge]||Vo(f),y=Object.prototype;let M=Object.getPrototypeOf(u.prototype).constructor;for(;M&&M!==y;){const S=M[Ge]||Vo(M);if(S&&S!==v)return S;M=Object.getPrototypeOf(M)}return S=>new S})}function Vo(u){return O(u)?()=>{const f=Vo(L(u));return f&&f()}:En(u)}function Fo(u){return function os(u,f){if("class"===f)return u.classes;if("style"===f)return u.styles;const v=u.attrs;if(v){const y=v.length;let M=0;for(;M{const y=function Uo(u){return function(...v){if(u){const y=u(...v);for(const M in y)this[M]=y[M]}}}(f);function M(...S){if(this instanceof M)return y.apply(this,S),this;const B=new M(...S);return re.annotation=B,re;function re(ve,et,dt){const wt=ve.hasOwnProperty(xs)?ve[xs]:Object.defineProperty(ve,xs,{value:[]})[xs];for(;wt.length<=dt;)wt.push(null);return(wt[dt]=wt[dt]||[]).push(B),ve}}return v&&(M.prototype=Object.create(v.prototype)),M.prototype.ngMetadataName=u,M.annotationCls=M,M})}class Dn{constructor(f,v){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof v?this.__NG_ELEMENT_ID__=v:void 0!==v&&(this.\u0275prov=Se({token:this,providedIn:v.providedIn||"root",factory:v.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Hm=new Dn("AnalyzeForEntryComponents");function Tr(u,f){void 0===f&&(f=u);for(let v=0;vArray.isArray(v)?kr(v,f):f(v))}function gd(u,f,v){f>=u.length?u.push(v):u.splice(f,0,v)}function Ja(u,f){return f>=u.length-1?u.pop():u.splice(f,1)[0]}function fa(u,f){const v=[];for(let y=0;y=0?u[1|y]=v:(y=~y,function km(u,f,v,y){let M=u.length;if(M==f)u.push(v,y);else if(1===M)u.push(y,u[0]),u[0]=v;else{for(M--,u.push(u[M-1],u[M]);M>f;)u[M]=u[M-2],M--;u[f]=v,u[f+1]=y}}(u,y,f,v)),y}function Zo(u,f){const v=Ds(u,f);if(v>=0)return u[1|v]}function Ds(u,f){return function bd(u,f,v){let y=0,M=u.length>>v;for(;M!==y;){const S=y+(M-y>>1),B=u[S<f?M=S:y=S+1}return~(M<({token:u})),-1),cs=_a(Ss("Optional"),8),Rs=_a(Ss("SkipSelf"),4);let Xa,eo;function Ps(u){var f;return(null===(f=function qo(){if(void 0===Xa&&(Xa=null,x.trustedTypes))try{Xa=x.trustedTypes.createPolicy("angular",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch(u){}return Xa}())||void 0===f?void 0:f.createHTML(u))||u}function Sd(u){var f;return(null===(f=function Jo(){if(void 0===eo&&(eo=null,x.trustedTypes))try{eo=x.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch(u){}return eo}())||void 0===f?void 0:f.createHTML(u))||u}class ds{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class lg extends ds{getTypeName(){return"HTML"}}class cg extends ds{getTypeName(){return"Style"}}class dg extends ds{getTypeName(){return"Script"}}class ug extends ds{getTypeName(){return"URL"}}class hg extends ds{getTypeName(){return"ResourceURL"}}function Yr(u){return u instanceof ds?u.changingThisBreaksApplicationSecurity:u}function Os(u,f){const v=Id(u);if(null!=v&&v!==f){if("ResourceURL"===v&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${v} (see https://g.co/ng/security#xss)`)}return v===f}function Id(u){return u instanceof ds&&u.getTypeName()||null}function pg(u){return new lg(u)}function fg(u){return new cg(u)}function mg(u){return new dg(u)}function gg(u){return new ug(u)}function _g(u){return new hg(u)}class Ag{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const v=(new window.DOMParser).parseFromString(Ps(f),"text/html").body;return null===v?this.inertDocumentHelper.getInertBodyElement(f):(v.removeChild(v.firstChild),v)}catch(v){return null}}}class bg{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const v=this.inertDocument.createElement("html");this.inertDocument.appendChild(v);const y=this.inertDocument.createElement("body");v.appendChild(y)}}getInertBodyElement(f){const v=this.inertDocument.createElement("template");if("content"in v)return v.innerHTML=Ps(f),v;const y=this.inertDocument.createElement("body");return y.innerHTML=Ps(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(f){const v=f.attributes;for(let M=v.length-1;0Ca(f.trim())).join(", ")),this.buf.push(" ",B,'="',Nd(ve),'"')}var u;return this.buf.push(">"),!0}endElement(f){const v=f.nodeName.toLowerCase();Qo.hasOwnProperty(v)&&!Hd.hasOwnProperty(v)&&(this.buf.push(""))}chars(f){this.buf.push(Nd(f))}checkClobberedElement(f,v){if(v&&(f.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return v}}const wg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xg=/([^\#-~ |!])/g;function Nd(u){return u.replace(/&/g,"&").replace(wg,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(xg,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let to;function Vd(u,f){let v=null;try{to=to||function Pd(u){const f=new bg(u);return function Cg(){try{return!!(new window.DOMParser).parseFromString(Ps(""),"text/html")}catch(u){return!1}}()?new Ag(f):f}(u);let y=f?String(f):"";v=to.getInertBodyElement(y);let M=5,S=y;do{if(0===M)throw new Error("Failed to sanitize html because the input is unstable");M--,y=S,S=v.innerHTML,v=to.getInertBodyElement(y)}while(y!==S);return Ps((new yg).sanitizeChildren(Xo(v)||v))}finally{if(v){const y=Xo(v)||v;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Xo(u){return"content"in u&&function Mg(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var On=(()=>((On=On||{})[On.NONE=0]="NONE",On[On.HTML=1]="HTML",On[On.STYLE=2]="STYLE",On[On.SCRIPT=3]="SCRIPT",On[On.URL=4]="URL",On[On.RESOURCE_URL=5]="RESOURCE_URL",On))();function Fd(u){const f=Ta();return f?Sd(f.sanitize(On.HTML,u)||""):Os(u,"HTML")?Sd(Yr(u)):Vd(Pe(),J(u))}function el(u){const f=Ta();return f?f.sanitize(On.URL,u)||"":Os(u,"URL")?Yr(u):Ca(J(u))}function Ta(){const u=Xt();return u&&u[12]}const Zd="__ngContext__";function qn(u,f){u[Zd]=f}function il(u){const f=function Ea(u){return u[Zd]||null}(u);return f?Array.isArray(f)?f:f.lView:null}function rl(u){return u.ngOriginalError}function Zg(u,...f){u.error(...f)}class ya{constructor(){this._console=console}handleError(f){const v=this._findOriginalError(f),y=function jg(u){return u&&u.ngErrorLogger||Zg}(f);y(this._console,"ERROR",f),v&&y(this._console,"ORIGINAL ERROR",v)}_findOriginalError(f){let v=f&&rl(f);for(;v&&rl(v);)v=rl(v);return v||null}}const qd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(x))();function Jd(u){return u.ownerDocument.defaultView}function Qd(u){return u.ownerDocument}function Vr(u){return u instanceof Function?u():u}var Fr=(()=>((Fr=Fr||{})[Fr.Important=1]="Important",Fr[Fr.DashCase=2]="DashCase",Fr))();function al(u,f){return undefined(u,f)}function wa(u){const f=u[3];return an(f)?f[3]:f}function ol(u){return tu(u[13])}function ll(u){return tu(u[4])}function tu(u){for(;null!==u&&!an(u);)u=u[4];return u}function Ls(u,f,v,y,M){if(null!=y){let S,B=!1;an(y)?S=y:en(y)&&(B=!0,y=y[0]);const re=he(y);0===u&&null!==v?null==M?ou(f,v,re):us(f,v,re,M||null,!0):1===u&&null!==v?us(f,v,re,M||null,!0):2===u?function fu(u,f,v){const y=io(u,f);y&&function d_(u,f,v,y){Ct(u)?u.removeChild(f,v,y):f.removeChild(v)}(u,y,f,v)}(f,re,B):3===u&&f.destroyNode(re),null!=S&&function p_(u,f,v,y,M){const S=v[7];S!==he(v)&&Ls(f,u,y,S,M);for(let re=10;re0&&(u[v-1][4]=y[4]);const S=Ja(u,10+f);!function i_(u,f){xa(u,f,f[11],2,null,null),f[0]=null,f[6]=null}(y[1],y);const B=S[19];null!==B&&B.detachView(S[1]),y[3]=null,y[4]=null,y[2]&=-129}return y}function ru(u,f){if(!(256&f[2])){const v=f[11];Ct(v)&&v.destroyNode&&xa(u,f,v,3,null,null),function s_(u){let f=u[13];if(!f)return hl(u[1],u);for(;f;){let v=null;if(en(f))v=f[13];else{const y=f[10];y&&(v=y)}if(!v){for(;f&&!f[4]&&f!==u;)en(f)&&hl(f[1],f),f=f[3];null===f&&(f=u),en(f)&&hl(f[1],f),v=f&&f[4]}f=v}}(f)}}function hl(u,f){if(!(256&f[2])){f[2]&=-129,f[2]|=256,function c_(u,f){let v;if(null!=u&&null!=(v=u.destroyHooks))for(let y=0;y=0?y[M=et]():y[M=-et].unsubscribe(),S+=2}else{const B=y[M=v[S+1]];v[S].call(B)}if(null!==y){for(let S=M+1;SS?"":M[wt+1].toLowerCase();const zt=8&y?Nt:null;if(zt&&-1!==_u(zt,et,0)||2&y&&et!==Nt){if(Dr(y))return!1;B=!0}}}}else{if(!B&&!Dr(y)&&!Dr(ve))return!1;if(B&&Dr(ve))continue;B=!1,y=ve|1&y}}return Dr(y)||B}function Dr(u){return 0==(1&u)}function A_(u,f,v,y){if(null===f)return-1;let M=0;if(y||!v){let S=!1;for(;M-1)for(v++;v0?'="'+re+'"':"")+"]"}else 8&y?M+="."+B:4&y&&(M+=" "+B);else""!==M&&!Dr(B)&&(f+=vu(S,M),M=""),y=B,S=S||!Dr(y);v++}return""!==M&&(f+=vu(S,M)),f}const ki={};function Tu(u){Eu(si(),Xt(),Zi()+u,wr())}function Eu(u,f,v,y){if(!y)if(3==(3&f[2])){const S=u.preOrderCheckHooks;null!==S&&Kr(f,S,v)}else{const S=u.preOrderHooks;null!==S&&is(f,S,0,v)}Bi(v)}function so(u,f){return u<<17|f<<2}function Rr(u){return u>>17&32767}function _l(u){return 2|u}function qr(u){return(131068&u)>>2}function Al(u,f){return-131069&u|f<<2}function bl(u){return 1|u}function Hu(u,f){const v=u.contentQueries;if(null!==v)for(let y=0;y20&&Eu(u,f,20,wr()),v(y,M)}finally{Bi(S)}}function Bu(u,f,v){if(dn(f)){const M=f.directiveEnd;for(let S=f.directiveStart;S0;){const v=u[--f];if("number"==typeof v&&v<0)return v}return 0})(re)!=ve&&re.push(ve),re.push(y,M,B)}}function Gu(u,f){null!==u.hostBindings&&u.hostBindings(1,f)}function zu(u,f){f.flags|=2,(u.components||(u.components=[])).push(f.index)}function K_(u,f,v){if(v){if(f.exportAs)for(let y=0;y0&&Ol(v)}}function Ol(u){for(let y=ol(u);null!==y;y=ll(y))for(let M=10;M0&&Ol(S)}const v=u[1].components;if(null!==v)for(let y=0;y0&&Ol(M)}}function sA(u,f){const v=_i(f,u),y=v[1];(function aA(u,f){for(let v=f.length;vPromise.resolve(null))();function Qu(u){return u[7]||(u[7]=[])}function $u(u){return u.cleanup||(u.cleanup=[])}function Ku(u,f,v){return(null===u||Oi(u))&&(v=function tt(u){for(;Array.isArray(u);){if("object"==typeof u[1])return u;u=u[0]}return null}(v[f.index])),v[11]}function Xu(u,f){const v=u[9],y=v?v.get(ya,null):null;y&&y.handleError(f)}function eh(u,f,v,y,M){for(let S=0;Sthis.processProvider(re,f,v)),kr([f],re=>this.processInjectorType(re,[],S)),this.records.set(Nl,Vs(void 0,this));const B=this.records.get(Vl);this.scope=null!=B?B.value:null,this.source=M||("object"==typeof f?null:C(f))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(f=>f.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(f,v=ma,y=Qe.Default){this.assertNotDestroyed();const M=Td(this),S=ae(void 0);try{if(!(y&Qe.SkipSelf)){let re=this.records.get(f);if(void 0===re){const ve=function TA(u){return"function"==typeof u||"object"==typeof u&&u instanceof Dn}(f)&&nt(f);re=ve&&this.injectableDefInScope(ve)?Vs(Ul(f),Da):null,this.records.set(f,re)}if(null!=re)return this.hydrate(f,re)}return(y&Qe.Self?ih():this.parent).get(f,v=y&Qe.Optional&&v===ma?null:v)}catch(B){if("NullInjectorError"===B.name){if((B[$a]=B[$a]||[]).unshift(C(f)),M)throw B;return function Qm(u,f,v,y){const M=u[$a];throw f[vd]&&M.unshift(f[vd]),u.message=function $m(u,f,v,y=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.substr(2):u;let M=C(f);if(Array.isArray(f))M=f.map(C).join(" -> ");else if("object"==typeof f){let S=[];for(let B in f)if(f.hasOwnProperty(B)){let re=f[B];S.push(B+":"+("string"==typeof re?JSON.stringify(re):C(re)))}M=`{${S.join(", ")}}`}return`${v}${y?"("+y+")":""}[${M}]: ${u.replace(Gm,"\n ")}`}("\n"+u.message,M,v,y),u.ngTokenPath=M,u[$a]=null,u}(B,f,"R3InjectorError",this.source)}throw B}finally{ae(S),Td(M)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(f=>this.get(f))}toString(){const f=[];return this.records.forEach((y,M)=>f.push(C(M))),`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(f,v,y){if(!(f=L(f)))return!1;let M=Q(f);const S=null==M&&f.ngModule||void 0,B=void 0===S?f:S,re=-1!==y.indexOf(B);if(void 0!==S&&(M=Q(S)),null==M)return!1;if(null!=M.imports&&!re){let dt;y.push(B);try{kr(M.imports,wt=>{this.processInjectorType(wt,v,y)&&(void 0===dt&&(dt=[]),dt.push(wt))})}finally{}if(void 0!==dt)for(let wt=0;wtthis.processProvider(Kt,Nt,zt||lt))}}this.injectorDefTypes.add(B);const ve=En(B)||(()=>new B);this.records.set(B,Vs(ve,Da));const et=M.providers;if(null!=et&&!re){const dt=f;kr(et,wt=>this.processProvider(wt,dt,et))}return void 0!==S&&void 0!==f.providers}processProvider(f,v,y){let M=Fs(f=L(f))?f:L(f&&f.provide);const S=function gA(u,f,v){return ah(u)?Vs(void 0,u.useValue):Vs(sh(u),Da)}(f);if(Fs(f)||!0!==f.multi)this.records.get(M);else{let B=this.records.get(M);B||(B=Vs(void 0,Da,!0),B.factory=()=>Wo(B.multi),this.records.set(M,B)),M=f,B.multi.push(f)}this.records.set(M,S)}hydrate(f,v){return v.value===Da&&(v.value=pA,v.value=v.factory()),"object"==typeof v.value&&v.value&&function vA(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(v.value)&&this.onDestroy.add(v.value),v.value}injectableDefInScope(f){if(!f.providedIn)return!1;const v=L(f.providedIn);return"string"==typeof v?"any"===v||v===this.scope:this.injectorDefTypes.has(v)}}function Ul(u){const f=nt(u),v=null!==f?f.factory:En(u);if(null!==v)return v;if(u instanceof Dn)throw new ne(204,!1);if(u instanceof Function)return function mA(u){const f=u.length;if(f>0)throw fa(f,"?"),new ne(204,!1);const v=function X(u){const f=u&&(u[D]||u[V]);if(f){const v=function z(u){if(u.hasOwnProperty("name"))return u.name;const f=(""+u).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(u);return console.warn(`DEPRECATED: DI is instantiating a token "${v}" 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 "${v}" class.`),f}return null}(u);return null!==v?()=>v.factory(u):()=>new u}(u);throw new ne(204,!1)}function sh(u,f,v){let y;if(Fs(u)){const M=L(u);return En(M)||Ul(M)}if(ah(u))y=()=>L(u.useValue);else if(function AA(u){return!(!u||!u.useFactory)}(u))y=()=>u.useFactory(...Wo(u.deps||[]));else if(function _A(u){return!(!u||!u.useExisting)}(u))y=()=>Fn(L(u.useExisting));else{const M=L(u&&(u.useClass||u.provide));if(!function CA(u){return!!u.deps}(u))return En(M)||Ul(M);y=()=>new M(...Wo(u.deps))}return y}function Vs(u,f,v=!1){return{factory:u,value:f,multi:v?[]:void 0}}function ah(u){return null!==u&&"object"==typeof u&&Wm in u}function Fs(u){return"function"==typeof u}let Er=(()=>{class u{static create(v,y){var M;if(Array.isArray(v))return nh({name:""},y,v,"");{const S=null!==(M=v.name)&&void 0!==M?M:"";return nh({name:S},v.parent,v.providers,S)}}}return u.THROW_IF_NOT_FOUND=ma,u.NULL=new th,u.\u0275prov=Se({token:u,providedIn:"any",factory:()=>Fn(Nl)}),u.__NG_ELEMENT_ID__=-1,u})();function RA(u,f){bs(il(u)[1],gi())}function Gl(u){let f=function Ah(u){return Object.getPrototypeOf(u.prototype).constructor}(u.type),v=!0;const y=[u];for(;f;){let M;if(Oi(u))M=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new ne(903,"");M=f.\u0275dir}if(M){if(v){y.push(M);const B=u;B.inputs=zl(u.inputs),B.declaredInputs=zl(u.declaredInputs),B.outputs=zl(u.outputs);const re=M.hostBindings;re&&HA(u,re);const ve=M.viewQuery,et=M.contentQueries;if(ve&&PA(u,ve),et&&OA(u,et),E(u.inputs,M.inputs),E(u.declaredInputs,M.declaredInputs),E(u.outputs,M.outputs),Oi(M)&&M.data.animation){const dt=u.data;dt.animation=(dt.animation||[]).concat(M.data.animation)}}const S=M.features;if(S)for(let B=0;B=0;y--){const M=u[y];M.hostVars=f+=M.hostVars,M.hostAttrs=Ts(M.hostAttrs,v=Ts(v,M.hostAttrs))}}(y)}function zl(u){return u===Ht?{}:u===lt?[]:u}function PA(u,f){const v=u.viewQuery;u.viewQuery=v?(y,M)=>{f(y,M),v(y,M)}:f}function OA(u,f){const v=u.contentQueries;u.contentQueries=v?(y,M,S)=>{f(y,M,S),v(y,M,S)}:f}function HA(u,f){const v=u.hostBindings;u.hostBindings=v?(y,M)=>{f(y,M),v(y,M)}:f}let ho=null;function Us(){if(!ho){const u=x.Symbol;if(u&&u.iterator)ho=u.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let v=0;vre(he(Qi[y.index])):y.index;if(Ct(v)){let Qi=null;if(!re&&ve&&(Qi=function db(u,f,v,y){const M=u.cleanup;if(null!=M)for(let S=0;Sve?re[ve]:null}"string"==typeof B&&(S+=2)}return null}(u,f,M,y.index)),null!==Qi)(Qi.__ngLastListenerFn__||Qi).__ngNextListenerFn__=S,Qi.__ngLastListenerFn__=S,zt=!1;else{S=lc(y,f,wt,S,!1);const un=v.listen(Ci,M,S);Nt.push(S,un),dt&&dt.push(M,Mi,ei,ei+1)}}else S=lc(y,f,wt,S,!0),Ci.addEventListener(M,S,B),Nt.push(S),dt&&dt.push(M,Mi,ei,B)}else S=lc(y,f,wt,S,!1);const Kt=y.outputs;let li;if(zt&&null!==Kt&&(li=Kt[M])){const fi=li.length;if(fi)for(let Ci=0;Ci0;)f=f[15],u--;return f}(u,Zt.lFrame.contextLView))[8]}(u)}function ub(u,f){let v=null;const y=function b_(u){const f=u.attrs;if(null!=f){const v=f.indexOf(5);if(0==(1&v))return f[v+1]}return null}(u);for(let M=0;M=0}const Bn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rp(u){return u.substring(Bn.key,Bn.keyEnd)}function sp(u,f){const v=Bn.textEnd;return v===f?-1:(f=Bn.keyEnd=function Ab(u,f,v){for(;f32;)f++;return f}(u,Bn.key=f,v),Ks(u,f,v))}function Ks(u,f,v){for(;f=0;v=sp(f,v))mr(u,rp(f),!0)}function Pr(u,f,v,y){const M=Xt(),S=si(),B=fr(2);S.firstUpdatePass&&hp(S,u,B,y),f!==ki&&Jn(M,B,f)&&fp(S,S.data[Zi()],M,M[11],u,M[B+1]=function Sb(u,f){return null==u||("string"==typeof f?u+=f:"object"==typeof u&&(u=C(Yr(u)))),u}(f,v),y,B)}function Or(u,f,v,y){const M=si(),S=fr(2);M.firstUpdatePass&&hp(M,null,S,y);const B=Xt();if(v!==ki&&Jn(B,S,v)){const re=M.data[Zi()];if(gp(re,y)&&!up(M,S)){let ve=y?re.classesWithoutHost:re.stylesWithoutHost;null!==ve&&(v=I(ve,v||"")),ec(M,re,B,v,y)}else!function Mb(u,f,v,y,M,S,B,re){M===ki&&(M=lt);let ve=0,et=0,dt=0=u.expandoStartIndex}function hp(u,f,v,y){const M=u.data;if(null===M[v+1]){const S=M[Zi()],B=up(u,v);gp(S,y)&&null===f&&!B&&(f=!1),f=function Tb(u,f,v,y){const M=fe(u);let S=y?f.residualClasses:f.residualStyles;if(null===M)0===(y?f.classBindings:f.styleBindings)&&(v=Oa(v=pc(null,u,f,v,y),f.attrs,y),S=null);else{const B=f.directiveStylingLast;if(-1===B||u[B]!==M)if(v=pc(M,u,f,v,y),null===S){let ve=function Eb(u,f,v){const y=v?f.classBindings:f.styleBindings;if(0!==qr(y))return u[Rr(y)]}(u,f,y);void 0!==ve&&Array.isArray(ve)&&(ve=pc(null,u,f,ve[1],y),ve=Oa(ve,f.attrs,y),function yb(u,f,v,y){u[Rr(v?f.classBindings:f.styleBindings)]=y}(u,f,y,ve))}else S=function wb(u,f,v){let y;const M=f.directiveEnd;for(let S=1+f.directiveStylingLast;S0)&&(et=!0)}else dt=v;if(M)if(0!==ve){const Nt=Rr(u[re+1]);u[y+1]=so(Nt,re),0!==Nt&&(u[Nt+1]=Al(u[Nt+1],y)),u[re+1]=function x_(u,f){return 131071&u|f<<17}(u[re+1],y)}else u[y+1]=so(re,0),0!==re&&(u[re+1]=Al(u[re+1],y)),re=y;else u[y+1]=so(ve,0),0===re?re=y:u[ve+1]=Al(u[ve+1],y),ve=y;et&&(u[y+1]=_l(u[y+1])),np(u,dt,y,!0),np(u,dt,y,!1),function pb(u,f,v,y,M){const S=M?u.residualClasses:u.residualStyles;null!=S&&"string"==typeof f&&Ds(S,f)>=0&&(v[y+1]=bl(v[y+1]))}(f,dt,u,y,S),B=so(re,ve),S?f.classBindings=B:f.styleBindings=B}(M,S,f,v,B,y)}}function pc(u,f,v,y,M){let S=null;const B=v.directiveEnd;let re=v.directiveStylingLast;for(-1===re?re=v.directiveStart:re++;re0;){const ve=u[M],et=Array.isArray(ve),dt=et?ve[1]:ve,wt=null===dt;let Nt=v[M+1];Nt===ki&&(Nt=wt?lt:void 0);let zt=wt?Zo(Nt,y):dt===y?Nt:void 0;if(et&&!go(zt)&&(zt=Zo(ve,y)),go(zt)&&(re=zt,B))return re;const Kt=u[M+1];M=B?Rr(Kt):qr(Kt)}if(null!==f){let ve=S?f.residualClasses:f.residualStyles;null!=ve&&(re=Zo(ve,y))}return re}function go(u){return void 0!==u}function gp(u,f){return 0!=(u.flags&(f?16:32))}function _p(u,f=""){const v=Xt(),y=si(),M=u+20,S=y.firstCreatePass?Bs(y,M,1,f,null):y.data[M],B=v[M]=function cl(u,f){return Ct(u)?u.createText(f):u.createTextNode(f)}(v[11],f);no(y,v,B,S),vn(S,!1)}function fc(u){return _o("",u,""),fc}function _o(u,f,v){const y=Xt(),M=Zs(y,u,f,v);return M!==ki&&Jr(y,Zi(),M),_o}function mc(u,f,v,y,M){const S=Xt(),B=Gs(S,u,f,v,y,M);return B!==ki&&Jr(S,Zi(),B),mc}function gc(u,f,v,y,M,S,B){const re=Xt(),ve=function zs(u,f,v,y,M,S,B,re){const et=po(u,Sn(),v,M,B);return fr(3),et?f+J(v)+y+J(M)+S+J(B)+re:ki}(re,u,f,v,y,M,S,B);return ve!==ki&&Jr(re,Zi(),ve),gc}function _c(u,f,v,y,M,S,B,re,ve){const et=Xt(),dt=function Ws(u,f,v,y,M,S,B,re,ve,et){const wt=yr(u,Sn(),v,M,B,ve);return fr(4),wt?f+J(v)+y+J(M)+S+J(B)+re+J(ve)+et:ki}(et,u,f,v,y,M,S,B,re,ve);return dt!==ki&&Jr(et,Zi(),dt),_c}function Ac(u,f,v,y,M,S,B,re,ve,et,dt){const wt=Xt(),Nt=function Ys(u,f,v,y,M,S,B,re,ve,et,dt,wt){const Nt=Sn();let zt=yr(u,Nt,v,M,B,ve);return zt=Jn(u,Nt+4,dt)||zt,fr(5),zt?f+J(v)+y+J(M)+S+J(B)+re+J(ve)+et+J(dt)+wt:ki}(wt,u,f,v,y,M,S,B,re,ve,et,dt);return Nt!==ki&&Jr(wt,Zi(),Nt),Ac}function Tp(u,f,v){Or(mr,Gr,Zs(Xt(),u,f,v),!0)}function bc(u,f,v){const y=Xt();return Jn(y,er(),f)&&gr(si(),Pi(),y,u,f,y[11],v,!0),bc}function Cc(u,f,v){const y=Xt();if(Jn(y,er(),f)){const S=si(),B=Pi();gr(S,B,y,u,f,Ku(fe(S.data),B,y),v,!0)}return Cc}const ps=void 0;var Yb=["en",[["a","p"],["AM","PM"],ps],[["AM","PM"],ps,ps],[["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"]],ps,[["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"]],ps,[["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}",ps,"{1} 'at' {0}",ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Wb(u){const v=Math.floor(Math.abs(u)),y=u.toString().replace(/^[^.]*\.?/,"").length;return 1===v&&0===y?1:5}];let Xs={};function vc(u){const f=function qb(u){return u.toLowerCase().replace(/_/g,"-")}(u);let v=Op(f);if(v)return v;const y=f.split("-")[0];if(v=Op(y),v)return v;if("en"===y)return Yb;throw new Error(`Missing locale data for the locale "${u}".`)}function Pp(u){return vc(u)[Ii.PluralCase]}function Op(u){return u in Xs||(Xs[u]=x.ng&&x.ng.common&&x.ng.common.locales&&x.ng.common.locales[u]),Xs[u]}var Ii=(()=>((Ii=Ii||{})[Ii.LocaleId=0]="LocaleId",Ii[Ii.DayPeriodsFormat=1]="DayPeriodsFormat",Ii[Ii.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ii[Ii.DaysFormat=3]="DaysFormat",Ii[Ii.DaysStandalone=4]="DaysStandalone",Ii[Ii.MonthsFormat=5]="MonthsFormat",Ii[Ii.MonthsStandalone=6]="MonthsStandalone",Ii[Ii.Eras=7]="Eras",Ii[Ii.FirstDayOfWeek=8]="FirstDayOfWeek",Ii[Ii.WeekendRange=9]="WeekendRange",Ii[Ii.DateFormat=10]="DateFormat",Ii[Ii.TimeFormat=11]="TimeFormat",Ii[Ii.DateTimeFormat=12]="DateTimeFormat",Ii[Ii.NumberSymbols=13]="NumberSymbols",Ii[Ii.NumberFormats=14]="NumberFormats",Ii[Ii.CurrencyCode=15]="CurrencyCode",Ii[Ii.CurrencySymbol=16]="CurrencySymbol",Ii[Ii.CurrencyName=17]="CurrencyName",Ii[Ii.Currencies=18]="Currencies",Ii[Ii.Directionality=19]="Directionality",Ii[Ii.PluralCase=20]="PluralCase",Ii[Ii.ExtraData=21]="ExtraData",Ii))();const Ao="en-US";let Hp=Ao;function yc(u,f,v,y,M){if(u=L(u),Array.isArray(u))for(let S=0;S>20;if(Fs(u)||!u.multi){const zt=new rs(ve,M,Pa),Kt=xc(re,f,M?dt:dt+Nt,wt);-1===Kt?(on(Ai(et,B),S,re),wc(S,u,f.length),f.push(re),et.directiveStart++,et.directiveEnd++,M&&(et.providerIndexes+=1048576),v.push(zt),B.push(zt)):(v[Kt]=zt,B[Kt]=zt)}else{const zt=xc(re,f,dt+Nt,wt),Kt=xc(re,f,dt,dt+Nt),li=zt>=0&&v[zt],fi=Kt>=0&&v[Kt];if(M&&!fi||!M&&!li){on(Ai(et,B),S,re);const Ci=function WC(u,f,v,y,M){const S=new rs(u,v,Pa);return S.multi=[],S.index=f,S.componentProviders=0,sf(S,M,y&&!v),S}(M?zC:GC,v.length,M,y,ve);!M&&fi&&(v[Kt].providerFactory=Ci),wc(S,u,f.length,0),f.push(re),et.directiveStart++,et.directiveEnd++,M&&(et.providerIndexes+=1048576),v.push(Ci),B.push(Ci)}else wc(S,u,zt>-1?zt:Kt,sf(v[M?Kt:zt],ve,!M&&y));!M&&y&&fi&&v[Kt].componentProviders++}}}function wc(u,f,v,y){const M=Fs(f),S=function bA(u){return!!u.useClass}(f);if(M||S){const ve=(S?L(f.useClass):f).prototype.ngOnDestroy;if(ve){const et=u.destroyHooks||(u.destroyHooks=[]);if(!M&&f.multi){const dt=et.indexOf(v);-1===dt?et.push(v,[y,ve]):et[dt+1].push(y,ve)}else et.push(v,ve)}}}function sf(u,f,v){return v&&u.componentProviders++,u.multi.push(f)-1}function xc(u,f,v,y){for(let M=v;M{v.providersResolver=(y,M)=>function ZC(u,f,v){const y=si();if(y.firstCreatePass){const M=Oi(u);yc(v,y.data,y.blueprint,M,!0),yc(f,y.data,y.blueprint,M,!1)}}(y,M?M(u):u,f)}}class of{}class JC{resolveComponentFactory(f){throw function qC(u){const f=Error(`No component factory found for ${C(u)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=u,f}(f)}}let Na=(()=>{class u{}return u.NULL=new JC,u})();function QC(){return ta(gi(),Xt())}function ta(u,f){return new Va(Wt(u,f))}let Va=(()=>{class u{constructor(v){this.nativeElement=v}}return u.__NG_ELEMENT_ID__=QC,u})();function $C(u){return u instanceof Va?u.nativeElement:u}class cf{}let KC=(()=>{class u{}return u.__NG_ELEMENT_ID__=()=>function ev(){const u=Xt(),v=_i(gi().index,u);return function XC(u){return u[11]}(en(v)?v:u)}(),u})(),tv=(()=>{class u{}return u.\u0275prov=Se({token:u,providedIn:"root",factory:()=>null}),u})();class df{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const iv=new df("13.2.2"),Sc={};function Eo(u,f,v,y,M=!1){for(;null!==v;){const S=f[v.index];if(null!==S&&y.push(he(S)),an(S))for(let re=10;re-1&&(ul(f,y),Ja(v,y))}this._attachedToViewContainer=!1}ru(this._lView[1],this._lView)}onDestroy(f){Fu(this._lView[1],this._lView,null,f)}markForCheck(){Hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Bl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function lA(u,f,v){bn(!0);try{Bl(u,f,v)}finally{bn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function r_(u,f){xa(u,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=f}}class nv extends Fa{constructor(f){super(f),this._view=f}detectChanges(){Ju(this._view)}checkNoChanges(){!function cA(u){bn(!0);try{Ju(u)}finally{bn(!1)}}(this._view)}get context(){return null}}class uf extends Na{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const v=Bt(f);return new Dc(v,this.ngModule)}}function hf(u){const f=[];for(let v in u)u.hasOwnProperty(v)&&f.push({propName:u[v],templateName:v});return f}const sv=new Dn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qd});class Dc extends of{constructor(f,v){super(),this.componentDef=f,this.ngModule=v,this.componentType=f.type,this.selector=function y_(u){return u.map(E_).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!v}get inputs(){return hf(this.componentDef.inputs)}get outputs(){return hf(this.componentDef.outputs)}create(f,v,y,M){const S=(M=M||this.ngModule)?function av(u,f){return{get:(v,y,M)=>{const S=u.get(v,Sc,M);return S!==Sc||y===Sc?S:f.get(v,y,M)}}}(f,M.injector):f,B=S.get(cf,ee),re=S.get(tv,null),ve=B.createRenderer(null,this.componentDef),et=this.componentDef.selectors[0][0]||"div",dt=y?function Vu(u,f,v){if(Ct(u))return u.selectRootElement(f,v===t.ShadowDom);let y="string"==typeof f?u.querySelector(f):f;return y.textContent="",y}(ve,y,this.componentDef.encapsulation):dl(B.createRenderer(null,this.componentDef),et,function rv(u){const f=u.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(et)),wt=this.componentDef.onPush?576:528,Nt=function _h(u,f){return{components:[],scheduler:u||qd,clean:dA,playerHandler:f||null,flags:0}}(),zt=lo(0,null,null,1,0,null,null,null,null,null),Kt=Ma(null,zt,Nt,wt,null,null,B,ve,re,S);let li,fi;qt(Kt);try{const Ci=function mh(u,f,v,y,M,S){const B=v[1];v[20]=u;const ve=Bs(B,20,2,"#host",null),et=ve.mergedAttrs=f.hostAttrs;null!==et&&(uo(ve,et,!0),null!==u&&(Cs(M,u,et),null!==ve.classes&&gl(M,u,ve.classes),null!==ve.styles&&gu(M,u,ve.styles)));const dt=y.createRenderer(u,f),wt=Ma(v,ku(f),null,f.onPush?64:16,v[20],ve,y,dt,S||null,null);return B.firstCreatePass&&(on(Ai(ve,v),B,f.type),zu(B,ve),Wu(ve,v.length,1)),co(v,wt),v[20]=wt}(dt,this.componentDef,Kt,B,ve);if(dt)if(y)Cs(ve,dt,["ng-version",iv.full]);else{const{attrs:ei,classes:Mi}=function w_(u){const f=[],v=[];let y=1,M=2;for(;y0&&gl(ve,dt,Mi.join(" "))}if(fi=di(zt,20),void 0!==v){const ei=fi.projection=[];for(let Mi=0;Mive(B,f)),f.contentQueries){const ve=gi();f.contentQueries(1,B,ve.directiveStart)}const re=gi();return!S.firstCreatePass||null===f.hostBindings&&null===f.hostAttrs||(Bi(re.index),Zu(v[1],re,0,re.directiveStart,re.directiveEnd,f),Gu(f,B)),B}(Ci,this.componentDef,Kt,Nt,[RA]),Sa(zt,Kt,null)}finally{Gi()}return new lv(this.componentType,li,ta(fi,Kt),Kt,fi)}}class lv extends class YC{}{constructor(f,v,y,M,S){super(),this.location=y,this._rootLView=M,this._tNode=S,this.instance=v,this.hostView=this.changeDetectorRef=new nv(M),this.componentType=f}get injector(){return new ys(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}class ia{}class pf{}const na=new Map;class gf extends ia{constructor(f,v){super(),this._parent=v,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new uf(this);const y=mi(f);this._bootstrapComponents=Vr(y.bootstrap),this._r3Injector=rh(f,v,[{provide:ia,useValue:this},{provide:Na,useValue:this.componentFactoryResolver}],C(f)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(f)}get(f,v=Er.THROW_IF_NOT_FOUND,y=Qe.Default){return f===Er||f===ia||f===Nl?this:this._r3Injector.get(f,v,y)}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(v=>v()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Rc extends pf{constructor(f){super(),this.moduleType=f,null!==mi(f)&&function dv(u){const f=new Set;!function v(y){const M=mi(y,!0),S=M.id;null!==S&&(function ff(u,f,v){if(f&&f!==v)throw new Error(`Duplicate module registered for ${u} - ${C(f)} vs ${C(f.name)}`)}(S,na.get(S),y),na.set(S,y));const B=Vr(M.imports);for(const re of B)f.has(re)||(f.add(re),v(re))}(u)}(f)}create(f){return new gf(this.moduleType,f)}}function _f(u,f,v){const y=mn()+u,M=Xt();return M[y]===ki?jr(M,y,v?f.call(v):f()):function Ia(u,f){return u[f]}(M,y)}function Af(u,f,v,y){return vf(Xt(),mn(),u,f,v,y)}function bf(u,f,v,y,M){return Tf(Xt(),mn(),u,f,v,y,M)}function Cf(u,f,v,y,M,S){return Ef(Xt(),mn(),u,f,v,y,M,S)}function Ua(u,f){const v=u[f];return v===ki?void 0:v}function vf(u,f,v,y,M,S){const B=f+v;return Jn(u,B,M)?jr(u,B+1,S?y.call(S,M):y(M)):Ua(u,B+1)}function Tf(u,f,v,y,M,S,B){const re=f+v;return hs(u,re,M,S)?jr(u,re+2,B?y.call(B,M,S):y(M,S)):Ua(u,re+2)}function Ef(u,f,v,y,M,S,B,re){const ve=f+v;return po(u,ve,M,S,B)?jr(u,ve+3,re?y.call(re,M,S,B):y(M,S,B)):Ua(u,ve+3)}function xf(u,f){const v=si();let y;const M=u+20;v.firstCreatePass?(y=function _v(u,f){if(f)for(let v=f.length-1;v>=0;v--){const y=f[v];if(u===y.name)return y}}(f,v.pipeRegistry),v.data[M]=y,y.onDestroy&&(v.destroyHooks||(v.destroyHooks=[])).push(M,y.onDestroy)):y=v.data[M];const S=y.factory||(y.factory=En(y.type)),B=ae(Pa);try{const re=Fe(!1),ve=S();return Fe(re),function jA(u,f,v,y){v>=u.data.length&&(u.data[v]=null,u.blueprint[v]=null),f[v]=y}(v,Xt(),M,ve),ve}finally{ae(B)}}function Mf(u,f,v){const y=u+20,M=Xt(),S=ui(M,y);return ja(M,y)?vf(M,mn(),f,S.transform,v,S):S.transform(v)}function Sf(u,f,v,y){const M=u+20,S=Xt(),B=ui(S,M);return ja(S,M)?Tf(S,mn(),f,B.transform,v,y,B):B.transform(v,y)}function Df(u,f,v,y,M){const S=u+20,B=Xt(),re=ui(B,S);return ja(B,S)?Ef(B,mn(),f,re.transform,v,y,M,re):re.transform(v,y,M)}function ja(u,f){return u[1].data[f].pure}function Ic(u){return f=>{setTimeout(u,void 0,f)}}const zr=class Cv extends e.xQ{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,v,y){var M,S,B;let re=f,ve=v||(()=>null),et=y;if(f&&"object"==typeof f){const wt=f;re=null===(M=wt.next)||void 0===M?void 0:M.bind(wt),ve=null===(S=wt.error)||void 0===S?void 0:S.bind(wt),et=null===(B=wt.complete)||void 0===B?void 0:B.bind(wt)}this.__isAsync&&(ve=Ic(ve),re&&(re=Ic(re)),et&&(et=Ic(et)));const dt=super.subscribe({next:re,error:ve,complete:et});return f instanceof b.w&&f.add(dt),dt}};function vv(){return this._results[Us()]()}class yo{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const v=Us(),y=yo.prototype;y[v]||(y[v]=vv)}get changes(){return this._changes||(this._changes=new zr)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,v){return this._results.reduce(f,v)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,v){const y=this;y.dirty=!1;const M=Tr(f);(this._changesDetected=!function Lm(u,f,v){if(u.length!==f.length)return!1;for(let y=0;y{class u{}return u.__NG_ELEMENT_ID__=yv,u})();const Tv=Za,Ev=class extends Tv{constructor(f,v,y){super(),this._declarationLView=f,this._declarationTContainer=v,this.elementRef=y}createEmbeddedView(f){const v=this._declarationTContainer.tViews,y=Ma(this._declarationLView,v,f,16,null,v.declTNode,null,null,null,null);y[17]=this._declarationLView[this._declarationTContainer.index];const S=this._declarationLView[19];return null!==S&&(y[19]=S.createEmbeddedView(v)),Sa(v,y,f),new Fa(y)}};function yv(){return wo(gi(),Xt())}function wo(u,f){return 4&u.type?new Ev(f,u,ta(u,f)):null}let xo=(()=>{class u{}return u.__NG_ELEMENT_ID__=wv,u})();function wv(){return Pf(gi(),Xt())}const xv=xo,Rf=class extends xv{constructor(f,v,y){super(),this._lContainer=f,this._hostTNode=v,this._hostLView=y}get element(){return ta(this._hostTNode,this._hostLView)}get injector(){return new ys(this._hostTNode,this._hostLView)}get parentInjector(){const f=nn(this._hostTNode,this._hostLView);if(qa(f)){const v=se(f,this._hostLView),y=as(f);return new ys(v[1].data[y+8],v)}return new ys(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const v=If(this._lContainer);return null!==v&&v[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,v,y){const M=f.createEmbeddedView(v||{});return this.insert(M,y),M}createComponent(f,v,y,M,S){const B=f&&!function pa(u){return"function"==typeof u}(f);let re;if(B)re=v;else{const wt=v||{};re=wt.index,y=wt.injector,M=wt.projectableNodes,S=wt.ngModuleRef}const ve=B?f:new Dc(Bt(f)),et=y||this.parentInjector;if(!S&&null==ve.ngModule&&et){const wt=et.get(ia,null);wt&&(S=wt)}const dt=ve.create(et,M,void 0,S);return this.insert(dt.hostView,re),dt}insert(f,v){const y=f._lView,M=y[1];if(function Ne(u){return an(u[3])}(y)){const dt=this.indexOf(f);if(-1!==dt)this.detach(dt);else{const wt=y[3],Nt=new Rf(wt,wt[6],wt[3]);Nt.detach(Nt.indexOf(f))}}const S=this._adjustIndex(v),B=this._lContainer;!function a_(u,f,v,y){const M=10+y,S=v.length;y>0&&(v[M-1][4]=f),y0)y.push(B[re/2]);else{const et=S[re+1],dt=f[-ve];for(let wt=10;wt{class u{constructor(v){this.appInits=v,this.resolve=Do,this.reject=Do,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,M)=>{this.resolve=y,this.reject=M})}runInitializers(){if(this.initialized)return;const v=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let M=0;M{S.subscribe({complete:re,error:ve})});v.push(B)}}Promise.all(v).then(()=>{y()}).catch(M=>{this.reject(M)}),0===v.length&&y(),this.initialized=!0}}return u.\u0275fac=function(v){return new(v||u)(Fn(Zc,8))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();const sm=new Dn("AppId"),Kv={provide:sm,useFactory:function $v(){return`${Gc()}${Gc()}${Gc()}`},deps:[]};function Gc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const am=new Dn("Platform Initializer"),om=new Dn("Platform ID"),lm=new Dn("appBootstrapListener");let cm=(()=>{class u{log(v){console.log(v)}warn(v){console.warn(v)}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();const Ro=new Dn("LocaleId"),dm=new Dn("DefaultCurrencyCode");class Xv{constructor(f,v){this.ngModuleFactory=f,this.componentFactories=v}}let zc=(()=>{class u{compileModuleSync(v){return new Rc(v)}compileModuleAsync(v){return Promise.resolve(this.compileModuleSync(v))}compileModuleAndAllComponentsSync(v){const y=this.compileModuleSync(v),S=Vr(mi(v).declarations).reduce((B,re)=>{const ve=Bt(re);return ve&&B.push(new Dc(ve)),B},[]);return new Xv(y,S)}compileModuleAndAllComponentsAsync(v){return Promise.resolve(this.compileModuleAndAllComponentsSync(v))}clearCache(){}clearCacheFor(v){}getModuleId(v){}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();const tT=(()=>Promise.resolve(0))();function Wc(u){"undefined"==typeof Zone?tT.then(()=>{u&&u.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",u)}class _r{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:v=!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),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const M=this;M._nesting=0,M._outer=M._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(M._inner=M._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(M._inner=M._inner.fork(Zone.longStackTraceZoneSpec)),M.shouldCoalesceEventChangeDetection=!y&&v,M.shouldCoalesceRunChangeDetection=y,M.lastRequestAnimationFrameId=-1,M.nativeRequestAnimationFrame=function iT(){let u=x.requestAnimationFrame,f=x.cancelAnimationFrame;if("undefined"!=typeof Zone&&u&&f){const v=u[Zone.__symbol__("OriginalDelegate")];v&&(u=v);const y=f[Zone.__symbol__("OriginalDelegate")];y&&(f=y)}return{nativeRequestAnimationFrame:u,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function sT(u){const f=()=>{!function rT(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(x,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,qc(u),u.isCheckStableRunning=!0,Yc(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),qc(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(v,y,M,S,B,re)=>{try{return um(u),v.invokeTask(M,S,B,re)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===S.type||u.shouldCoalesceRunChangeDetection)&&f(),hm(u)}},onInvoke:(v,y,M,S,B,re,ve)=>{try{return um(u),v.invoke(M,S,B,re,ve)}finally{u.shouldCoalesceRunChangeDetection&&f(),hm(u)}},onHasTask:(v,y,M,S)=>{v.hasTask(M,S),y===M&&("microTask"==S.change?(u._hasPendingMicrotasks=S.microTask,qc(u),Yc(u)):"macroTask"==S.change&&(u.hasPendingMacrotasks=S.macroTask))},onHandleError:(v,y,M,S)=>(v.handleError(M,S),u.runOutsideAngular(()=>u.onError.emit(S)),!1)})}(M)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_r.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_r.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(f,v,y){return this._inner.run(f,v,y)}runTask(f,v,y,M){const S=this._inner,B=S.scheduleEventTask("NgZoneEvent: "+M,f,nT,Do,Do);try{return S.runTask(B,v,y)}finally{S.cancelTask(B)}}runGuarded(f,v,y){return this._inner.runGuarded(f,v,y)}runOutsideAngular(f){return this._outer.run(f)}}const nT={};function Yc(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function qc(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function um(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function hm(u){u._nesting--,Yc(u)}class aT{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(f,v,y){return f.apply(v,y)}runGuarded(f,v,y){return f.apply(v,y)}runOutsideAngular(f){return f()}runTask(f,v,y,M){return f.apply(v,y)}}let pm=(()=>{class u{constructor(v){this._ngZone=v,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),v.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{_r.assertNotInAngularZone(),Wc(()=>{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())Wc(()=>{for(;0!==this._callbacks.length;){let v=this._callbacks.pop();clearTimeout(v.timeoutId),v.doneCb(this._didWork)}this._didWork=!1});else{let v=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(v)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(v=>({source:v.source,creationLocation:v.creationLocation,data:v.data})):[]}addCallback(v,y,M){let S=-1;y&&y>0&&(S=setTimeout(()=>{this._callbacks=this._callbacks.filter(B=>B.timeoutId!==S),v(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:v,timeoutId:S,updateCb:M})}whenStable(v,y,M){if(M&&!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(v,y,M),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(v,y,M){return[]}}return u.\u0275fac=function(v){return new(v||u)(Fn(_r))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})(),fm=(()=>{class u{constructor(){this._applications=new Map,Jc.addToWindow(this)}registerApplication(v,y){this._applications.set(v,y)}unregisterApplication(v){this._applications.delete(v)}unregisterAllApplications(){this._applications.clear()}getTestability(v){return this._applications.get(v)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(v,y=!0){return Jc.findTestabilityInTree(this,v,y)}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();class oT{addToWindow(f){}findTestabilityInTree(f,v,y){return null}}function lT(u){Jc=u}let Hr,Jc=new oT;const mm=new Dn("AllowMultipleToken");class uT{constructor(f,v){this.name=f,this.token=v}}function gm(u,f,v=[]){const y=`Platform: ${f}`,M=new Dn(y);return(S=[])=>{let B=_m();if(!B||B.injector.get(mm,!1))if(u)u(v.concat(S).concat({provide:M,useValue:!0}));else{const re=v.concat(S).concat({provide:M,useValue:!0},{provide:Vl,useValue:"platform"});!function hT(u){if(Hr&&!Hr.destroyed&&!Hr.injector.get(mm,!1))throw new ne(400,"");Hr=u.get(Am);const f=u.get(am,null);f&&f.forEach(v=>v())}(Er.create({providers:re,name:y}))}return function pT(u){const f=_m();if(!f)throw new ne(401,"");return f}()}}function _m(){return Hr&&!Hr.destroyed?Hr:null}let Am=(()=>{class u{constructor(v){this._injector=v,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(v,y){const re=function fT(u,f){let v;return v="noop"===u?new aT:("zone.js"===u?void 0:u)||new _r({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==f?void 0:f.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==f?void 0:f.ngZoneRunCoalescing)}),v}(y?y.ngZone:void 0,{ngZoneEventCoalescing:y&&y.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:y&&y.ngZoneRunCoalescing||!1}),ve=[{provide:_r,useValue:re}];return re.run(()=>{const et=Er.create({providers:ve,parent:this.injector,name:v.moduleType.name}),dt=v.create(et),wt=dt.injector.get(ya,null);if(!wt)throw new ne(402,"");return re.runOutsideAngular(()=>{const Nt=re.onError.subscribe({next:zt=>{wt.handleError(zt)}});dt.onDestroy(()=>{Qc(this._modules,dt),Nt.unsubscribe()})}),function mT(u,f,v){try{const y=v();return sc(y)?y.catch(M=>{throw f.runOutsideAngular(()=>u.handleError(M)),M}):y}catch(y){throw f.runOutsideAngular(()=>u.handleError(y)),y}}(wt,re,()=>{const Nt=dt.injector.get(sa);return Nt.runInitializers(),Nt.donePromise.then(()=>(function Kb(u){R(u,"Expected localeId to be defined"),"string"==typeof u&&(Hp=u.toLowerCase().replace(/_/g,"-"))}(dt.injector.get(Ro,Ao)||Ao),this._moduleDoBootstrap(dt),dt))})})}bootstrapModule(v,y=[]){const M=bm({},y);return function cT(u,f,v){const y=new Rc(v);return Promise.resolve(y)}(0,0,v).then(S=>this.bootstrapModuleFactory(S,M))}_moduleDoBootstrap(v){const y=v.injector.get(za);if(v._bootstrapComponents.length>0)v._bootstrapComponents.forEach(M=>y.bootstrap(M));else{if(!v.instance.ngDoBootstrap)throw new ne(403,"");v.instance.ngDoBootstrap(y)}this._modules.push(v)}onDestroy(v){this._destroyListeners.push(v)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(v=>v.destroy()),this._destroyListeners.forEach(v=>v()),this._destroyed=!0}get destroyed(){return this._destroyed}}return u.\u0275fac=function(v){return new(v||u)(Fn(Er))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();function bm(u,f){return Array.isArray(f)?f.reduce(bm,u):Object.assign(Object.assign({},u),f)}let za=(()=>{class u{constructor(v,y,M,S,B){this._zone=v,this._injector=y,this._exceptionHandler=M,this._componentFactoryResolver=S,this._initStatus=B,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const re=new _.y(et=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{et.next(this._stable),et.complete()})}),ve=new _.y(et=>{let dt;this._zone.runOutsideAngular(()=>{dt=this._zone.onStable.subscribe(()=>{_r.assertNotInAngularZone(),Wc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,et.next(!0))})})});const wt=this._zone.onUnstable.subscribe(()=>{_r.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{et.next(!1)}))});return()=>{dt.unsubscribe(),wt.unsubscribe()}});this.isStable=(0,w.T)(re,ve.pipe((0,g.B)()))}bootstrap(v,y){if(!this._initStatus.done)throw new ne(405,"");let M;M=v instanceof of?v:this._componentFactoryResolver.resolveComponentFactory(v),this.componentTypes.push(M.componentType);const S=function dT(u){return u.isBoundToModule}(M)?void 0:this._injector.get(ia),re=M.create(Er.NULL,[],y||M.selector,S),ve=re.location.nativeElement,et=re.injector.get(pm,null),dt=et&&re.injector.get(fm);return et&&dt&&dt.registerApplication(ve,et),re.onDestroy(()=>{this.detachView(re.hostView),Qc(this.components,re),dt&&dt.unregisterApplication(ve)}),this._loadComponent(re),re}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let v of this._views)v.detectChanges()}catch(v){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(v))}finally{this._runningTick=!1}}attachView(v){const y=v;this._views.push(y),y.attachToAppRef(this)}detachView(v){const y=v;Qc(this._views,y),y.detachFromAppRef()}_loadComponent(v){this.attachView(v.hostView),this.tick(),this.components.push(v),this._injector.get(lm,[]).concat(this._bootstrapListeners).forEach(M=>M(v))}ngOnDestroy(){this._views.slice().forEach(v=>v.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return u.\u0275fac=function(v){return new(v||u)(Fn(_r),Fn(Er),Fn(ya),Fn(Na),Fn(sa))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();function Qc(u,f){const v=u.indexOf(f);v>-1&&u.splice(v,1)}let vm=!0;function _T(){vm=!1}let AT=(()=>{class u{}return u.__NG_ELEMENT_ID__=bT,u})();function bT(u){return function CT(u,f,v){if(wn(u)&&!v){const y=_i(u.index,f);return new Fa(y,y)}return 47&u.type?new Fa(f[16],f):null}(gi(),Xt(),16==(16&u))}class xm{constructor(){}supports(f){return Ra(f)}create(f){return new xT(f)}}const wT=(u,f)=>f;class xT{constructor(f){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=f||wT}forEachItem(f){let v;for(v=this._itHead;null!==v;v=v._next)f(v)}forEachOperation(f){let v=this._itHead,y=this._removalsHead,M=0,S=null;for(;v||y;){const B=!y||v&&v.currentIndex{B=this._trackByFn(M,re),null!==v&&Object.is(v.trackById,B)?(y&&(v=this._verifyReinsertion(v,re,B,M)),Object.is(v.item,re)||this._addIdentityChange(v,re)):(v=this._mismatch(v,re,B,M),y=!0),v=v._next,M++}),this.length=M;return this._truncate(v),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,v,y,M){let S;return null===f?S=this._itTail:(S=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(f.item,v)||this._addIdentityChange(f,v),this._reinsertAfter(f,S,M)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(y,M))?(Object.is(f.item,v)||this._addIdentityChange(f,v),this._moveAfter(f,S,M)):f=this._addAfter(new MT(v,y),S,M),f}_verifyReinsertion(f,v,y,M){let S=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==S?f=this._reinsertAfter(S,f._prev,M):f.currentIndex!=M&&(f.currentIndex=M,this._addToMoves(f,M)),f}_truncate(f){for(;null!==f;){const v=f._next;this._addToRemovals(this._unlink(f)),f=v}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(f,v,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const M=f._prevRemoved,S=f._nextRemoved;return null===M?this._removalsHead=S:M._nextRemoved=S,null===S?this._removalsTail=M:S._prevRemoved=M,this._insertAfter(f,v,y),this._addToMoves(f,y),f}_moveAfter(f,v,y){return this._unlink(f),this._insertAfter(f,v,y),this._addToMoves(f,y),f}_addAfter(f,v,y){return this._insertAfter(f,v,y),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,v,y){const M=null===v?this._itHead:v._next;return f._next=M,f._prev=v,null===M?this._itTail=f:M._prev=f,null===v?this._itHead=f:v._next=f,null===this._linkedRecords&&(this._linkedRecords=new Mm),this._linkedRecords.put(f),f.currentIndex=y,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const v=f._prev,y=f._next;return null===v?this._itHead=y:v._next=y,null===y?this._itTail=v:y._prev=v,f}_addToMoves(f,v){return f.previousIndex===v||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Mm),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,v){return f.item=v,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class MT{constructor(f,v){this.item=f,this.trackById=v,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 ST{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,v){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===v||v<=y.currentIndex)&&Object.is(y.trackById,f))return y;return null}remove(f){const v=f._prevDup,y=f._nextDup;return null===v?this._head=y:v._nextDup=y,null===y?this._tail=v:y._prevDup=v,null===this._head}}class Mm{constructor(){this.map=new Map}put(f){const v=f.trackById;let y=this.map.get(v);y||(y=new ST,this.map.set(v,y)),y.add(f)}get(f,v){const M=this.map.get(f);return M?M.get(f,v):null}remove(f){const v=f.trackById;return this.map.get(v).remove(f)&&this.map.delete(v),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sm(u,f,v){const y=u.previousIndex;if(null===y)return y;let M=0;return v&&y{if(v&&v.key===M)this._maybeAddToChanges(v,y),this._appendAfter=v,v=v._next;else{const S=this._getOrCreateRecordForKey(M,y);v=this._insertBeforeOrAppend(v,S)}}),v){v._prev&&(v._prev._next=null),this._removalsHead=v;for(let y=v;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(f,v){if(f){const y=f._prev;return v._next=f,v._prev=y,f._prev=v,y&&(y._next=v),f===this._mapHead&&(this._mapHead=v),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=v,v._prev=this._appendAfter):this._mapHead=v,this._appendAfter=v,null}_getOrCreateRecordForKey(f,v){if(this._records.has(f)){const M=this._records.get(f);this._maybeAddToChanges(M,v);const S=M._prev,B=M._next;return S&&(S._next=B),B&&(B._prev=S),M._next=null,M._prev=null,M}const y=new RT(f);return this._records.set(f,y),y.currentValue=v,this._addToAdditions(y),y}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,v){Object.is(v,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=v,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,v){f instanceof Map?f.forEach(v):Object.keys(f).forEach(y=>v(f[y],y))}}class RT{constructor(f){this.key=f,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 Rm(){return new Oo([new xm])}let Oo=(()=>{class u{constructor(v){this.factories=v}static create(v,y){if(null!=y){const M=y.factories.slice();v=v.concat(M)}return new u(v)}static extend(v){return{provide:u,useFactory:y=>u.create(v,y||Rm()),deps:[[u,new Rs,new cs]]}}find(v){const y=this.factories.find(M=>M.supports(v));if(null!=y)return y;throw new ne(901,"")}}return u.\u0275prov=Se({token:u,providedIn:"root",factory:Rm}),u})();function Im(){return new Ho([new Dm])}let Ho=(()=>{class u{constructor(v){this.factories=v}static create(v,y){if(y){const M=y.factories.slice();v=v.concat(M)}return new u(v)}static extend(v){return{provide:u,useFactory:y=>u.create(v,y||Im()),deps:[[u,new Rs,new cs]]}}find(v){const y=this.factories.find(S=>S.supports(v));if(y)return y;throw new ne(901,"")}}return u.\u0275prov=Se({token:u,providedIn:"root",factory:Im}),u})();const IT=[new Dm],OT=new Oo([new xm]),HT=new Ho(IT),LT=gm(null,"core",[{provide:om,useValue:"unknown"},{provide:Am,deps:[Er]},{provide:fm,deps:[]},{provide:cm,deps:[]}]),FT=[{provide:za,useClass:za,deps:[_r,Er,ya,Na,sa]},{provide:sv,deps:[_r],useFactory:function UT(u){let f=[];return u.onStable.subscribe(()=>{for(;f.length;)f.pop()()}),function(v){f.push(v)}}},{provide:sa,useClass:sa,deps:[[new cs,Zc]]},{provide:zc,useClass:zc,deps:[]},Kv,{provide:Oo,useFactory:function BT(){return OT},deps:[]},{provide:Ho,useFactory:function kT(){return HT},deps:[]},{provide:Ro,useFactory:function NT(u){return u||function VT(){return"undefined"!=typeof $localize&&$localize.locale||Ao}()},deps:[[new Aa(Ro),new cs,new Rs]]},{provide:dm,useValue:"USD"}];let jT=(()=>{class u{constructor(v){}}return u.\u0275fac=function(v){return new(v||u)(Fn(za))},u.\u0275mod=xt({type:u}),u.\u0275inj=Je({providers:FT}),u})()},93075:($e,_e,p)=>{"use strict";p.d(_e,{Zs:()=>N,Fj:()=>G,qu:()=>Ti,NI:()=>Dt,oH:()=>qe,u:()=>Vn,sg:()=>jt,u5:()=>di,Cf:()=>J,JU:()=>C,a5:()=>Q,JJ:()=>Qe,JL:()=>Te,F:()=>$i,On:()=>an,YN:()=>Zn,wV:()=>xn,c5:()=>tt,UX:()=>ui,Q7:()=>ft,EJ:()=>rr,kI:()=>Re,_Y:()=>dn,Kr:()=>ar});var e=p(5e3),b=p(69808),_=p(5254),w=p(30567),g=p(24850);let A=(()=>{class Ne{constructor(we,ut){this._renderer=we,this._elementRef=ut,this.onChange=Zt=>{},this.onTouched=()=>{}}setProperty(we,ut){this._renderer.setProperty(this._elementRef.nativeElement,we,ut)}registerOnTouched(we){this.onTouched=we}registerOnChange(we){this.onChange=we}setDisabledState(we){this.setProperty("disabled",we)}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ne.\u0275dir=e.lG2({type:Ne}),Ne})(),E=(()=>{class Ne extends A{}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,features:[e.qOj]}),Ne})();const C=new e.OlP("NgValueAccessor"),m={provide:C,useExisting:(0,e.Gpc)(()=>G),multi:!0},O=new e.OlP("CompositionEventMode");let G=(()=>{class Ne extends A{constructor(we,ut,Zt){super(we,ut),this._compositionMode=Zt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function L(){const Ne=(0,b.q)()?(0,b.q)().getUserAgent():"";return/android (\d+)/.test(Ne.toLowerCase())}())}writeValue(we){this.setProperty("value",null==we?"":we)}_handleInput(we){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(we)}_compositionStart(){this._composing=!0}_compositionEnd(we){this._composing=!1,this._compositionMode&&this.onChange(we)}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(O,8))},Ne.\u0275dir=e.lG2({type:Ne,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(we,ut){1&we&&e.NdJ("input",function(hi){return ut._handleInput(hi.target.value)})("blur",function(){return ut.onTouched()})("compositionstart",function(){return ut._compositionStart()})("compositionend",function(hi){return ut._compositionEnd(hi.target.value)})},features:[e._Bn([m]),e.qOj]}),Ne})();function ne(Ne){return null==Ne||0===Ne.length}function ge(Ne){return null!=Ne&&"number"==typeof Ne.length}const J=new e.OlP("NgValidators"),Me=new e.OlP("NgAsyncValidators"),oe=/^(?=.{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 Re{static min(De){return function T(Ne){return De=>{if(ne(De.value)||ne(Ne))return null;const we=parseFloat(De.value);return!isNaN(we)&&we{if(ne(De.value)||ne(Ne))return null;const we=parseFloat(De.value);return!isNaN(we)&&we>Ne?{max:{max:Ne,actual:De.value}}:null}}(De)}static required(De){return Y(De)}static requiredTrue(De){return q(De)}static email(De){return function te(Ne){return ne(Ne.value)||oe.test(Ne.value)?null:{email:!0}}(De)}static minLength(De){return function ue(Ne){return De=>ne(De.value)||!ge(De.value)?null:De.value.lengthge(De.value)&&De.value.length>Ne?{maxlength:{requiredLength:Ne,actualLength:De.value.length}}:null}(De)}static pattern(De){return Le(De)}static nullValidator(De){return null}static compose(De){return R(De)}static composeAsync(De){return be(De)}}function Y(Ne){return ne(Ne.value)?{required:!0}:null}function q(Ne){return!0===Ne.value?null:{required:!0}}function Le(Ne){if(!Ne)return Ue;let De,we;return"string"==typeof Ne?(we="","^"!==Ne.charAt(0)&&(we+="^"),we+=Ne,"$"!==Ne.charAt(Ne.length-1)&&(we+="$"),De=new RegExp(we)):(we=Ne.toString(),De=Ne),ut=>{if(ne(ut.value))return null;const Zt=ut.value;return De.test(Zt)?null:{pattern:{requiredPattern:we,actualValue:Zt}}}}function Ue(Ne){return null}function ze(Ne){return null!=Ne}function le(Ne){const De=(0,e.QGY)(Ne)?(0,_.D)(Ne):Ne;return(0,e.CqO)(De),De}function je(Ne){let De={};return Ne.forEach(we=>{De=null!=we?Object.assign(Object.assign({},De),we):De}),0===Object.keys(De).length?null:De}function ye(Ne,De){return De.map(we=>we(Ne))}function W(Ne){return Ne.map(De=>function Be(Ne){return!Ne.validate}(De)?De:we=>De.validate(we))}function R(Ne){if(!Ne)return null;const De=Ne.filter(ze);return 0==De.length?null:function(we){return je(ye(we,De))}}function me(Ne){return null!=Ne?R(W(Ne)):null}function be(Ne){if(!Ne)return null;const De=Ne.filter(ze);return 0==De.length?null:function(we){const ut=ye(we,De).map(le);return(0,w.D)(ut).pipe((0,g.U)(je))}}function Ie(Ne){return null!=Ne?be(W(Ne)):null}function pe(Ne,De){return null===Ne?[De]:Array.isArray(Ne)?[...Ne,De]:[Ne,De]}function Se(Ne){return Ne._rawValidators}function Xe(Ne){return Ne._rawAsyncValidators}function Je(Ne){return Ne?Array.isArray(Ne)?Ne:[Ne]:[]}function nt(Ne,De){return Array.isArray(Ne)?Ne.includes(De):Ne===De}function Ve(Ne,De){const we=Je(De);return Je(Ne).forEach(Zt=>{nt(we,Zt)||we.push(Zt)}),we}function X(Ne,De){return Je(De).filter(we=>!nt(Ne,we))}class z{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(De){this._rawValidators=De||[],this._composedValidatorFn=me(this._rawValidators)}_setAsyncValidators(De){this._rawAsyncValidators=De||[],this._composedAsyncValidatorFn=Ie(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(De){this._onDestroyCallbacks.push(De)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(De=>De()),this._onDestroyCallbacks=[]}reset(De){this.control&&this.control.reset(De)}hasError(De,we){return!!this.control&&this.control.hasError(De,we)}getError(De,we){return this.control?this.control.getError(De,we):null}}class Q extends z{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class D extends z{get formDirective(){return null}get path(){return null}}class H{constructor(De){this._cd=De}is(De){var we,ut,Zt;return"submitted"===De?!!(null===(we=this._cd)||void 0===we?void 0:we.submitted):!!(null===(Zt=null===(ut=this._cd)||void 0===ut?void 0:ut.control)||void 0===Zt?void 0:Zt[De])}}let Qe=(()=>{class Ne extends H{constructor(we){super(we)}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(Q,2))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(we,ut){2&we&&e.ekj("ng-untouched",ut.is("untouched"))("ng-touched",ut.is("touched"))("ng-pristine",ut.is("pristine"))("ng-dirty",ut.is("dirty"))("ng-valid",ut.is("valid"))("ng-invalid",ut.is("invalid"))("ng-pending",ut.is("pending"))},features:[e.qOj]}),Ne})(),Te=(()=>{class Ne extends H{constructor(we){super(we)}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(D,10))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(we,ut){2&we&&e.ekj("ng-untouched",ut.is("untouched"))("ng-touched",ut.is("touched"))("ng-pristine",ut.is("pristine"))("ng-dirty",ut.is("dirty"))("ng-valid",ut.is("valid"))("ng-invalid",ut.is("invalid"))("ng-pending",ut.is("pending"))("ng-submitted",ut.is("submitted"))},features:[e.qOj]}),Ne})();function Ht(Ne,De){return[...De.path,Ne]}function lt(Ne,De){Ee(Ne,De),De.valueAccessor.writeValue(Ne.value),function U(Ne,De){De.valueAccessor.registerOnChange(we=>{Ne._pendingValue=we,Ne._pendingChange=!0,Ne._pendingDirty=!0,"change"===Ne.updateOn&&ie(Ne,De)})}(Ne,De),function ce(Ne,De){const we=(ut,Zt)=>{De.valueAccessor.writeValue(ut),Zt&&De.viewToModelUpdate(ut)};Ne.registerOnChange(we),De._registerOnDestroy(()=>{Ne._unregisterOnChange(we)})}(Ne,De),function k(Ne,De){De.valueAccessor.registerOnTouched(()=>{Ne._pendingTouched=!0,"blur"===Ne.updateOn&&Ne._pendingChange&&ie(Ne,De),"submit"!==Ne.updateOn&&Ne.markAsTouched()})}(Ne,De),function Lt(Ne,De){if(De.valueAccessor.setDisabledState){const we=ut=>{De.valueAccessor.setDisabledState(ut)};Ne.registerOnDisabledChange(we),De._registerOnDestroy(()=>{Ne._unregisterOnDisabledChange(we)})}}(Ne,De)}function Ut(Ne,De,we=!0){const ut=()=>{};De.valueAccessor&&(De.valueAccessor.registerOnChange(ut),De.valueAccessor.registerOnTouched(ut)),Ge(Ne,De),Ne&&(De._invokeOnDestroyCallbacks(),Ne._registerOnCollectionChange(()=>{}))}function mt(Ne,De){Ne.forEach(we=>{we.registerOnValidatorChange&&we.registerOnValidatorChange(De)})}function Ee(Ne,De){const we=Se(Ne);null!==De.validator?Ne.setValidators(pe(we,De.validator)):"function"==typeof we&&Ne.setValidators([we]);const ut=Xe(Ne);null!==De.asyncValidator?Ne.setAsyncValidators(pe(ut,De.asyncValidator)):"function"==typeof ut&&Ne.setAsyncValidators([ut]);const Zt=()=>Ne.updateValueAndValidity();mt(De._rawValidators,Zt),mt(De._rawAsyncValidators,Zt)}function Ge(Ne,De){let we=!1;if(null!==Ne){if(null!==De.validator){const Zt=Se(Ne);if(Array.isArray(Zt)&&Zt.length>0){const hi=Zt.filter(ji=>ji!==De.validator);hi.length!==Zt.length&&(we=!0,Ne.setValidators(hi))}}if(null!==De.asyncValidator){const Zt=Xe(Ne);if(Array.isArray(Zt)&&Zt.length>0){const hi=Zt.filter(ji=>ji!==De.asyncValidator);hi.length!==Zt.length&&(we=!0,Ne.setAsyncValidators(hi))}}}const ut=()=>{};return mt(De._rawValidators,ut),mt(De._rawAsyncValidators,ut),we}function ie(Ne,De){Ne._pendingDirty&&Ne.markAsDirty(),Ne.setValue(Ne._pendingValue,{emitModelToViewChange:!1}),De.viewToModelUpdate(Ne._pendingValue),Ne._pendingChange=!1}function He(Ne,De){Ee(Ne,De)}function Yt(Ne,De){if(!Ne.hasOwnProperty("model"))return!1;const we=Ne.model;return!!we.isFirstChange()||!Object.is(De,we.currentValue)}function Rt(Ne,De){Ne._syncPendingControls(),De.forEach(we=>{const ut=we.control;"submit"===ut.updateOn&&ut._pendingChange&&(we.viewToModelUpdate(ut._pendingValue),ut._pendingChange=!1)})}function Et(Ne,De){if(!De)return null;let we,ut,Zt;return Array.isArray(De),De.forEach(hi=>{hi.constructor===G?we=hi:function It(Ne){return Object.getPrototypeOf(Ne.constructor)===E}(hi)?ut=hi:Zt=hi}),Zt||ut||we||null}function Bt(Ne,De){const we=Ne.indexOf(De);we>-1&&Ne.splice(we,1)}const mi="VALID",bi="INVALID",yi="PENDING",Wi="DISABLED";function cn(Ne){return(st(Ne)?Ne.validators:Ne)||null}function Ki(Ne){return Array.isArray(Ne)?me(Ne):Ne||null}function Tn(Ne,De){return(st(De)?De.asyncValidators:Ne)||null}function rn(Ne){return Array.isArray(Ne)?Ie(Ne):Ne||null}function st(Ne){return null!=Ne&&!Array.isArray(Ne)&&"object"==typeof Ne}const St=Ne=>Ne instanceof Dt,ot=Ne=>Ne instanceof ri,Ke=Ne=>Ne instanceof ti;function vt(Ne){return St(Ne)?Ne.value:Ne.getRawValue()}function F(Ne,De){const we=ot(Ne),ut=Ne.controls;if(!(we?Object.keys(ut):ut).length)throw new e.vHH(1e3,"");if(!ut[De])throw new e.vHH(1001,"")}function Ye(Ne,De){ot(Ne),Ne._forEachChild((ut,Zt)=>{if(void 0===De[Zt])throw new e.vHH(1002,"")})}class gt{constructor(De,we){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=De,this._rawAsyncValidators=we,this._composedValidatorFn=Ki(this._rawValidators),this._composedAsyncValidatorFn=rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(De){this._rawValidators=this._composedValidatorFn=De}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(De){this._rawAsyncValidators=this._composedAsyncValidatorFn=De}get parent(){return this._parent}get valid(){return this.status===mi}get invalid(){return this.status===bi}get pending(){return this.status==yi}get disabled(){return this.status===Wi}get enabled(){return this.status!==Wi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(De){this._rawValidators=De,this._composedValidatorFn=Ki(De)}setAsyncValidators(De){this._rawAsyncValidators=De,this._composedAsyncValidatorFn=rn(De)}addValidators(De){this.setValidators(Ve(De,this._rawValidators))}addAsyncValidators(De){this.setAsyncValidators(Ve(De,this._rawAsyncValidators))}removeValidators(De){this.setValidators(X(De,this._rawValidators))}removeAsyncValidators(De){this.setAsyncValidators(X(De,this._rawAsyncValidators))}hasValidator(De){return nt(this._rawValidators,De)}hasAsyncValidator(De){return nt(this._rawAsyncValidators,De)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(De={}){this.touched=!0,this._parent&&!De.onlySelf&&this._parent.markAsTouched(De)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(De=>De.markAllAsTouched())}markAsUntouched(De={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(we=>{we.markAsUntouched({onlySelf:!0})}),this._parent&&!De.onlySelf&&this._parent._updateTouched(De)}markAsDirty(De={}){this.pristine=!1,this._parent&&!De.onlySelf&&this._parent.markAsDirty(De)}markAsPristine(De={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(we=>{we.markAsPristine({onlySelf:!0})}),this._parent&&!De.onlySelf&&this._parent._updatePristine(De)}markAsPending(De={}){this.status=yi,!1!==De.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!De.onlySelf&&this._parent.markAsPending(De)}disable(De={}){const we=this._parentMarkedDirty(De.onlySelf);this.status=Wi,this.errors=null,this._forEachChild(ut=>{ut.disable(Object.assign(Object.assign({},De),{onlySelf:!0}))}),this._updateValue(),!1!==De.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},De),{skipPristineCheck:we})),this._onDisabledChange.forEach(ut=>ut(!0))}enable(De={}){const we=this._parentMarkedDirty(De.onlySelf);this.status=mi,this._forEachChild(ut=>{ut.enable(Object.assign(Object.assign({},De),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:De.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},De),{skipPristineCheck:we})),this._onDisabledChange.forEach(ut=>ut(!1))}_updateAncestors(De){this._parent&&!De.onlySelf&&(this._parent.updateValueAndValidity(De),De.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(De){this._parent=De}updateValueAndValidity(De={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mi||this.status===yi)&&this._runAsyncValidator(De.emitEvent)),!1!==De.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!De.onlySelf&&this._parent.updateValueAndValidity(De)}_updateTreeValidity(De={emitEvent:!0}){this._forEachChild(we=>we._updateTreeValidity(De)),this.updateValueAndValidity({onlySelf:!0,emitEvent:De.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wi:mi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(De){if(this.asyncValidator){this.status=yi,this._hasOwnPendingAsyncValidator=!0;const we=le(this.asyncValidator(this));this._asyncValidationSubscription=we.subscribe(ut=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ut,{emitEvent:De})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(De,we={}){this.errors=De,this._updateControlsErrors(!1!==we.emitEvent)}get(De){return function gn(Ne,De,we){if(null==De||(Array.isArray(De)||(De=De.split(we)),Array.isArray(De)&&0===De.length))return null;let ut=Ne;return De.forEach(Zt=>{ut=ot(ut)?ut.controls.hasOwnProperty(Zt)?ut.controls[Zt]:null:Ke(ut)&&ut.at(Zt)||null}),ut}(this,De,".")}getError(De,we){const ut=we?this.get(we):this;return ut&&ut.errors?ut.errors[De]:null}hasError(De,we){return!!this.getError(De,we)}get root(){let De=this;for(;De._parent;)De=De._parent;return De}_updateControlsErrors(De){this.status=this._calculateStatus(),De&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(De)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Wi:this.errors?bi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yi)?yi:this._anyControlsHaveStatus(bi)?bi:mi}_anyControlsHaveStatus(De){return this._anyControls(we=>we.status===De)}_anyControlsDirty(){return this._anyControls(De=>De.dirty)}_anyControlsTouched(){return this._anyControls(De=>De.touched)}_updatePristine(De={}){this.pristine=!this._anyControlsDirty(),this._parent&&!De.onlySelf&&this._parent._updatePristine(De)}_updateTouched(De={}){this.touched=this._anyControlsTouched(),this._parent&&!De.onlySelf&&this._parent._updateTouched(De)}_isBoxedValue(De){return"object"==typeof De&&null!==De&&2===Object.keys(De).length&&"value"in De&&"disabled"in De}_registerOnCollectionChange(De){this._onCollectionChange=De}_setUpdateStrategy(De){st(De)&&null!=De.updateOn&&(this._updateOn=De.updateOn)}_parentMarkedDirty(De){return!De&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Dt extends gt{constructor(De=null,we,ut){super(cn(we),Tn(ut,we)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(De),this._setUpdateStrategy(we),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(we)&&we.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(De)?De.value:De)}setValue(De,we={}){this.value=this._pendingValue=De,this._onChange.length&&!1!==we.emitModelToViewChange&&this._onChange.forEach(ut=>ut(this.value,!1!==we.emitViewToModelChange)),this.updateValueAndValidity(we)}patchValue(De,we={}){this.setValue(De,we)}reset(De=this.defaultValue,we={}){this._applyFormState(De),this.markAsPristine(we),this.markAsUntouched(we),this.setValue(this.value,we),this._pendingChange=!1}_updateValue(){}_anyControls(De){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(De){this._onChange.push(De)}_unregisterOnChange(De){Bt(this._onChange,De)}registerOnDisabledChange(De){this._onDisabledChange.push(De)}_unregisterOnDisabledChange(De){Bt(this._onDisabledChange,De)}_forEachChild(De){}_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(De){this._isBoxedValue(De)?(this.value=this._pendingValue=De.value,De.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=De}}class ri extends gt{constructor(De,we,ut){super(cn(we),Tn(ut,we)),this.controls=De,this._initObservables(),this._setUpdateStrategy(we),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(De,we){return this.controls[De]?this.controls[De]:(this.controls[De]=we,we.setParent(this),we._registerOnCollectionChange(this._onCollectionChange),we)}addControl(De,we,ut={}){this.registerControl(De,we),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}removeControl(De,we={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),delete this.controls[De],this.updateValueAndValidity({emitEvent:we.emitEvent}),this._onCollectionChange()}setControl(De,we,ut={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),delete this.controls[De],we&&this.registerControl(De,we),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}contains(De){return this.controls.hasOwnProperty(De)&&this.controls[De].enabled}setValue(De,we={}){Ye(this,De),Object.keys(De).forEach(ut=>{F(this,ut),this.controls[ut].setValue(De[ut],{onlySelf:!0,emitEvent:we.emitEvent})}),this.updateValueAndValidity(we)}patchValue(De,we={}){null!=De&&(Object.keys(De).forEach(ut=>{this.controls[ut]&&this.controls[ut].patchValue(De[ut],{onlySelf:!0,emitEvent:we.emitEvent})}),this.updateValueAndValidity(we))}reset(De={},we={}){this._forEachChild((ut,Zt)=>{ut.reset(De[Zt],{onlySelf:!0,emitEvent:we.emitEvent})}),this._updatePristine(we),this._updateTouched(we),this.updateValueAndValidity(we)}getRawValue(){return this._reduceChildren({},(De,we,ut)=>(De[ut]=vt(we),De))}_syncPendingControls(){let De=this._reduceChildren(!1,(we,ut)=>!!ut._syncPendingControls()||we);return De&&this.updateValueAndValidity({onlySelf:!0}),De}_forEachChild(De){Object.keys(this.controls).forEach(we=>{const ut=this.controls[we];ut&&De(ut,we)})}_setUpControls(){this._forEachChild(De=>{De.setParent(this),De._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(De){for(const we of Object.keys(this.controls)){const ut=this.controls[we];if(this.contains(we)&&De(ut))return!0}return!1}_reduceValue(){return this._reduceChildren({},(De,we,ut)=>((we.enabled||this.disabled)&&(De[ut]=we.value),De))}_reduceChildren(De,we){let ut=De;return this._forEachChild((Zt,hi)=>{ut=we(ut,Zt,hi)}),ut}_allControlsDisabled(){for(const De of Object.keys(this.controls))if(this.controls[De].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class ti extends gt{constructor(De,we,ut){super(cn(we),Tn(ut,we)),this.controls=De,this._initObservables(),this._setUpdateStrategy(we),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(De){return this.controls[De]}push(De,we={}){this.controls.push(De),this._registerControl(De),this.updateValueAndValidity({emitEvent:we.emitEvent}),this._onCollectionChange()}insert(De,we,ut={}){this.controls.splice(De,0,we),this._registerControl(we),this.updateValueAndValidity({emitEvent:ut.emitEvent})}removeAt(De,we={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),this.controls.splice(De,1),this.updateValueAndValidity({emitEvent:we.emitEvent})}setControl(De,we,ut={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),this.controls.splice(De,1),we&&(this.controls.splice(De,0,we),this._registerControl(we)),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(De,we={}){Ye(this,De),De.forEach((ut,Zt)=>{F(this,Zt),this.at(Zt).setValue(ut,{onlySelf:!0,emitEvent:we.emitEvent})}),this.updateValueAndValidity(we)}patchValue(De,we={}){null!=De&&(De.forEach((ut,Zt)=>{this.at(Zt)&&this.at(Zt).patchValue(ut,{onlySelf:!0,emitEvent:we.emitEvent})}),this.updateValueAndValidity(we))}reset(De=[],we={}){this._forEachChild((ut,Zt)=>{ut.reset(De[Zt],{onlySelf:!0,emitEvent:we.emitEvent})}),this._updatePristine(we),this._updateTouched(we),this.updateValueAndValidity(we)}getRawValue(){return this.controls.map(De=>vt(De))}clear(De={}){this.controls.length<1||(this._forEachChild(we=>we._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:De.emitEvent}))}_syncPendingControls(){let De=this.controls.reduce((we,ut)=>!!ut._syncPendingControls()||we,!1);return De&&this.updateValueAndValidity({onlySelf:!0}),De}_forEachChild(De){this.controls.forEach((we,ut)=>{De(we,ut)})}_updateValue(){this.value=this.controls.filter(De=>De.enabled||this.disabled).map(De=>De.value)}_anyControls(De){return this.controls.some(we=>we.enabled&&De(we))}_setUpControls(){this._forEachChild(De=>this._registerControl(De))}_allControlsDisabled(){for(const De of this.controls)if(De.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(De){De.setParent(this),De._registerOnCollectionChange(this._onCollectionChange)}}const Di={provide:D,useExisting:(0,e.Gpc)(()=>$i)},wi=(()=>Promise.resolve(null))();let $i=(()=>{class Ne extends D{constructor(we,ut){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new ri({},me(we),Ie(ut))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(we){wi.then(()=>{const ut=this._findContainer(we.path);we.control=ut.registerControl(we.name,we.control),lt(we.control,we),we.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(we)})}getControl(we){return this.form.get(we.path)}removeControl(we){wi.then(()=>{const ut=this._findContainer(we.path);ut&&ut.removeControl(we.name),this._directives.delete(we)})}addFormGroup(we){wi.then(()=>{const ut=this._findContainer(we.path),Zt=new ri({});He(Zt,we),ut.registerControl(we.name,Zt),Zt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(we){wi.then(()=>{const ut=this._findContainer(we.path);ut&&ut.removeControl(we.name)})}getFormGroup(we){return this.form.get(we.path)}updateModel(we,ut){wi.then(()=>{this.form.get(we.path).setValue(ut)})}setValue(we){this.control.setValue(we)}onSubmit(we){return this.submitted=!0,Rt(this.form,this._directives),this.ngSubmit.emit(we),!1}onReset(){this.resetForm()}resetForm(we){this.form.reset(we),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(we){return we.pop(),we.length?this.form.get(we):this.form}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(J,10),e.Y36(Me,10))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(we,ut){1&we&&e.NdJ("submit",function(hi){return ut.onSubmit(hi)})("reset",function(){return ut.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Di]),e.qOj]}),Ne})();const Xi={provide:Q,useExisting:(0,e.Gpc)(()=>an)},en=(()=>Promise.resolve(null))();let an=(()=>{class Ne extends Q{constructor(we,ut,Zt,hi,ji){super(),this._changeDetectorRef=ji,this.control=new Dt,this._registered=!1,this.update=new e.vpe,this._parent=we,this._setValidators(ut),this._setAsyncValidators(Zt),this.valueAccessor=Et(0,hi)}ngOnChanges(we){if(this._checkForErrors(),!this._registered||"name"in we){if(this._registered&&(this._checkName(),this.formDirective)){const ut=we.name.previousValue;this.formDirective.removeControl({name:ut,path:this._getPath(ut)})}this._setUpControl()}"isDisabled"in we&&this._updateDisabled(we),Yt(we,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(we){this.viewModel=we,this.update.emit(we)}_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(){lt(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(we){en.then(()=>{var ut;this.control.setValue(we,{emitViewToModelChange:!1}),null===(ut=this._changeDetectorRef)||void 0===ut||ut.markForCheck()})}_updateDisabled(we){const ut=we.isDisabled.currentValue,Zt=""===ut||ut&&"false"!==ut;en.then(()=>{var hi;Zt&&!this.control.disabled?this.control.disable():!Zt&&this.control.disabled&&this.control.enable(),null===(hi=this._changeDetectorRef)||void 0===hi||hi.markForCheck()})}_getPath(we){return this._parent?Ht(we,this._parent):[we]}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(D,9),e.Y36(J,10),e.Y36(Me,10),e.Y36(C,10),e.Y36(e.sBO,8))},Ne.\u0275dir=e.lG2({type:Ne,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([Xi]),e.qOj,e.TTD]}),Ne})(),dn=(()=>{class Ne{}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ne})();const wn={provide:C,useExisting:(0,e.Gpc)(()=>xn),multi:!0};let xn=(()=>{class Ne extends E{writeValue(we){this.setProperty("value",null==we?"":we)}registerOnChange(we){this.onChange=ut=>{we(""==ut?null:parseFloat(ut))}}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(we,ut){1&we&&e.NdJ("input",function(hi){return ut.onChange(hi.target.value)})("blur",function(){return ut.onTouched()})},features:[e._Bn([wn]),e.qOj]}),Ne})(),Nn=(()=>{class Ne{}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({}),Ne})();const Ze=new e.OlP("NgModelWithFormControlWarning"),Ot={provide:Q,useExisting:(0,e.Gpc)(()=>qe)};let qe=(()=>{class Ne extends Q{constructor(we,ut,Zt,hi){super(),this._ngModelWarningConfig=hi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(we),this._setAsyncValidators(ut),this.valueAccessor=Et(0,Zt)}set isDisabled(we){}ngOnChanges(we){if(this._isControlChanged(we)){const ut=we.form.previousValue;ut&&Ut(ut,this,!1),lt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Yt(we,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ut(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(we){this.viewModel=we,this.update.emit(we)}_isControlChanged(we){return we.hasOwnProperty("form")}}return Ne._ngModelWarningSentOnce=!1,Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(J,10),e.Y36(Me,10),e.Y36(C,10),e.Y36(Ze,8))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Ot]),e.qOj,e.TTD]}),Ne})();const Tt={provide:D,useExisting:(0,e.Gpc)(()=>jt)};let jt=(()=>{class Ne extends D{constructor(we,ut){super(),this.validators=we,this.asyncValidators=ut,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(we),this._setAsyncValidators(ut)}ngOnChanges(we){this._checkFormPresent(),we.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ge(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(we){const ut=this.form.get(we.path);return lt(ut,we),ut.updateValueAndValidity({emitEvent:!1}),this.directives.push(we),ut}getControl(we){return this.form.get(we.path)}removeControl(we){Ut(we.control||null,we,!1),Bt(this.directives,we)}addFormGroup(we){this._setUpFormContainer(we)}removeFormGroup(we){this._cleanUpFormContainer(we)}getFormGroup(we){return this.form.get(we.path)}addFormArray(we){this._setUpFormContainer(we)}removeFormArray(we){this._cleanUpFormContainer(we)}getFormArray(we){return this.form.get(we.path)}updateModel(we,ut){this.form.get(we.path).setValue(ut)}onSubmit(we){return this.submitted=!0,Rt(this.form,this.directives),this.ngSubmit.emit(we),!1}onReset(){this.resetForm()}resetForm(we){this.form.reset(we),this.submitted=!1}_updateDomValue(){this.directives.forEach(we=>{const ut=we.control,Zt=this.form.get(we.path);ut!==Zt&&(Ut(ut||null,we),St(Zt)&&(lt(Zt,we),we.control=Zt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(we){const ut=this.form.get(we.path);He(ut,we),ut.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(we){if(this.form){const ut=this.form.get(we.path);ut&&function ct(Ne,De){return Ge(Ne,De)}(ut,we)&&ut.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ee(this.form,this),this._oldForm&&Ge(this._oldForm,this)}_checkFormPresent(){}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(J,10),e.Y36(Me,10))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formGroup",""]],hostBindings:function(we,ut){1&we&&e.NdJ("submit",function(hi){return ut.onSubmit(hi)})("reset",function(){return ut.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Tt]),e.qOj,e.TTD]}),Ne})();const cr={provide:Q,useExisting:(0,e.Gpc)(()=>Vn)};let Vn=(()=>{class Ne extends Q{constructor(we,ut,Zt,hi,ji){super(),this._ngModelWarningConfig=ji,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=we,this._setValidators(ut),this._setAsyncValidators(Zt),this.valueAccessor=Et(0,hi)}set isDisabled(we){}ngOnChanges(we){this._added||this._setUpControl(),Yt(we,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(we){this.viewModel=we,this.update.emit(we)}get path(){return Ht(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return Ne._ngModelWarningSentOnce=!1,Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(D,13),e.Y36(J,10),e.Y36(Me,10),e.Y36(C,10),e.Y36(Ze,8))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([cr]),e.qOj,e.TTD]}),Ne})();const dr={provide:C,useExisting:(0,e.Gpc)(()=>rr),multi:!0};function Qn(Ne,De){return null==Ne?`${De}`:(De&&"object"==typeof De&&(De="Object"),`${Ne}: ${De}`.slice(0,50))}let rr=(()=>{class Ne extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(we){this._compareWith=we}writeValue(we){this.value=we;const Zt=Qn(this._getOptionId(we),we);this.setProperty("value",Zt)}registerOnChange(we){this.onChange=ut=>{this.value=this._getOptionValue(ut),we(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(we){for(const ut of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ut),we))return ut;return null}_getOptionValue(we){const ut=function Lr(Ne){return Ne.split(":")[0]}(we);return this._optionMap.has(ut)?this._optionMap.get(ut):we}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(we,ut){1&we&&e.NdJ("change",function(hi){return ut.onChange(hi.target.value)})("blur",function(){return ut.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([dr]),e.qOj]}),Ne})(),Zn=(()=>{class Ne{constructor(we,ut,Zt){this._element=we,this._renderer=ut,this._select=Zt,this._select&&(this.id=this._select._registerOption())}set ngValue(we){null!=this._select&&(this._select._optionMap.set(this.id,we),this._setElementValue(Qn(this.id,we)),this._select.writeValue(this._select.value))}set value(we){this._setElementValue(we),this._select&&this._select.writeValue(this._select.value)}_setElementValue(we){this._renderer.setProperty(this._element.nativeElement,"value",we)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(rr,9))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ne})();const En={provide:C,useExisting:(0,e.Gpc)(()=>sr),multi:!0};function ur(Ne,De){return null==Ne?`${De}`:("string"==typeof De&&(De=`'${De}'`),De&&"object"==typeof De&&(De="Object"),`${Ne}: ${De}`.slice(0,50))}let sr=(()=>{class Ne extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(we){this._compareWith=we}writeValue(we){let ut;if(this.value=we,Array.isArray(we)){const Zt=we.map(hi=>this._getOptionId(hi));ut=(hi,ji)=>{hi._setSelected(Zt.indexOf(ji.toString())>-1)}}else ut=(Zt,hi)=>{Zt._setSelected(!1)};this._optionMap.forEach(ut)}registerOnChange(we){this.onChange=ut=>{const Zt=[],hi=ut.selectedOptions;if(void 0!==hi){const ji=hi;for(let tn=0;tn{class Ne{constructor(we,ut,Zt){this._element=we,this._renderer=ut,this._select=Zt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(we){null!=this._select&&(this._value=we,this._setElementValue(ur(this.id,we)),this._select.writeValue(this._select.value))}set value(we){this._select?(this._value=we,this._setElementValue(ur(this.id,we)),this._select.writeValue(this._select.value)):this._setElementValue(we)}_setElementValue(we){this._renderer.setProperty(this._element.nativeElement,"value",we)}_setSelected(we){this._renderer.setProperty(this._element.nativeElement,"selected",we)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(sr,9))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ne})(),In=(()=>{class Ne{constructor(){this._validator=Ue}ngOnChanges(we){if(this.inputName in we){const ut=this.normalizeInput(we[this.inputName].currentValue);this._enabled=this.enabled(ut),this._validator=this._enabled?this.createValidator(ut):Ue,this._onChange&&this._onChange()}}validate(we){return this._validator(we)}registerOnValidatorChange(we){this._onChange=we}enabled(we){return null!=we}}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275dir=e.lG2({type:Ne,features:[e.TTD]}),Ne})();const zn={provide:J,useExisting:(0,e.Gpc)(()=>ft),multi:!0},lr={provide:J,useExisting:(0,e.Gpc)(()=>N),multi:!0};let ft=(()=>{class Ne extends In{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=we=>function hr(Ne){return null!=Ne&&!1!==Ne&&"false"!=`${Ne}`}(we),this.createValidator=we=>Y}enabled(we){return we}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(we,ut){2&we&&e.uIk("required",ut._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([zn]),e.qOj]}),Ne})(),N=(()=>{class Ne extends ft{constructor(){super(...arguments),this.createValidator=we=>q}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(we,ut){2&we&&e.uIk("required",ut._enabled?"":null)},features:[e._Bn([lr]),e.qOj]}),Ne})();const he={provide:J,useExisting:(0,e.Gpc)(()=>tt),multi:!0};let tt=(()=>{class Ne extends In{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=we=>we,this.createValidator=we=>Le(we)}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(we,ut){2&we&&e.uIk("pattern",ut._enabled?ut.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([he]),e.qOj]}),Ne})(),ii=(()=>{class Ne{}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({imports:[[Nn]]}),Ne})(),di=(()=>{class Ne{}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({imports:[ii]}),Ne})(),ui=(()=>{class Ne{static withConfig(we){return{ngModule:Ne,providers:[{provide:Ze,useValue:we.warnOnNgModelWithFormControl}]}}}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({imports:[ii]}),Ne})(),Ti=(()=>{class Ne{group(we,ut=null){const Zt=this._reduceControls(we);let tn,hi=null,ji=null;return null!=ut&&(function _i(Ne){return void 0!==Ne.asyncValidators||void 0!==Ne.validators||void 0!==Ne.updateOn}(ut)?(hi=null!=ut.validators?ut.validators:null,ji=null!=ut.asyncValidators?ut.asyncValidators:null,tn=null!=ut.updateOn?ut.updateOn:void 0):(hi=null!=ut.validator?ut.validator:null,ji=null!=ut.asyncValidator?ut.asyncValidator:null)),new ri(Zt,{asyncValidators:ji,updateOn:tn,validators:hi})}control(we,ut,Zt){return new Dt(we,ut,Zt)}array(we,ut,Zt){const hi=we.map(ji=>this._createControl(ji));return new ti(hi,ut,Zt)}_reduceControls(we){const ut={};return Object.keys(we).forEach(Zt=>{ut[Zt]=this._createControl(we[Zt])}),ut}_createControl(we){return St(we)||ot(we)||Ke(we)?we:Array.isArray(we)?this.control(we[0],we.length>1?we[1]:null,we.length>2?we[2]:null):this.control(we)}}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:ui}),Ne})()},91079:($e,_e,p)=>{"use strict";p.d(_e,{XC:()=>R,Bb:()=>X,ZL:()=>Je});var e=p(15664),b=p(63191),_=p(5e3),w=p(90508),g=p(42654),A=p(8929),E=p(88514),C=p(36787),I=p(21086),P=p(23753),m=p(70925),L=p(69808),O=p(92845),G=p(53435),ne=p(91159),ge=p(47429),J=p(93075),Me=p(67322),oe=p(1059),Re=p(87545),T=p(72986),j=p(92198),Y=p(24850),q=p(22868),te=p(40943),ue=p(50226);const de=["panel"];function Le(z,Q){if(1&z&&(_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA()),2&z){const D=Q.id,H=_.oxw();_.Q6J("id",H.id)("ngClass",H._classList),_.uIk("aria-label",H.ariaLabel||null)("aria-labelledby",H._getPanelAriaLabelledby(D))}}const Ue=["*"];let ze=0;class le{constructor(Q,D){this.source=Q,this.option=D}}const je=(0,w.Kr)(class{}),ye=new _.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Be(){return{autoActiveFirstOption:!1}}});let W=(()=>{class z extends je{constructor(D,H,V,xe){super(),this._changeDetectorRef=D,this._elementRef=H,this._activeOptionChanges=g.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new _.vpe,this.opened=new _.vpe,this.closed=new _.vpe,this.optionActivated=new _.vpe,this._classList={},this.id="mat-autocomplete-"+ze++,this.inertGroups=(null==xe?void 0:xe.SAFARI)||!1,this._autoActiveFirstOption=!!V.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(D){this._autoActiveFirstOption=(0,b.Ig)(D)}set classList(D){this._classList=D&&D.length?(0,b.du)(D).reduce((H,V)=>(H[V]=!0,H),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(D=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[D]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(D){this.panel&&(this.panel.nativeElement.scrollTop=D)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(D){const H=new le(this,D);this.optionSelected.emit(H)}_getPanelAriaLabelledby(D){return this.ariaLabel?null:this.ariaLabelledby?(D?D+" ":"")+this.ariaLabelledby:D}_setVisibilityClasses(D){D[this._visibleClass]=this.showPanel,D[this._hiddenClass]=!this.showPanel}}return z.\u0275fac=function(D){return new(D||z)(_.Y36(_.sBO),_.Y36(_.SBq),_.Y36(ye),_.Y36(m.t4))},z.\u0275dir=_.lG2({type:z,viewQuery:function(D,H){if(1&D&&(_.Gf(_.Rgc,7),_.Gf(de,5)),2&D){let V;_.iGM(V=_.CRH())&&(H.template=V.first),_.iGM(V=_.CRH())&&(H.panel=V.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[_.qOj]}),z})(),R=(()=>{class z extends W{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return z.\u0275fac=function(){let Q;return function(H){return(Q||(Q=_.n5z(z)))(H||z)}}(),z.\u0275cmp=_.Xpm({type:z,selectors:[["mat-autocomplete"]],contentQueries:function(D,H,V){if(1&D&&(_.Suo(V,w.K7,5),_.Suo(V,w.ey,5)),2&D){let xe;_.iGM(xe=_.CRH())&&(H.optionGroups=xe),_.iGM(xe=_.CRH())&&(H.options=xe)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[_._Bn([{provide:w.HF,useExisting:z}]),_.qOj],ngContentSelectors:Ue,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(D,H){1&D&&(_.F$t(),_.YNc(0,Le,3,4,"ng-template"))},directives:[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}\n"],encapsulation:2,changeDetection:0}),z})();const me=new _.OlP("mat-autocomplete-scroll-strategy"),Ie={provide:me,deps:[O.aV],useFactory:function be(z){return()=>z.scrollStrategies.reposition()}},pe={provide:J.JU,useExisting:(0,_.Gpc)(()=>Je),multi:!0};let Xe=(()=>{class z{constructor(D,H,V,xe,Qe,Te,Ae,ae,i,o,d){this._element=D,this._overlay=H,this._viewContainerRef=V,this._zone=xe,this._changeDetectorRef=Qe,this._dir=Ae,this._formField=ae,this._document=i,this._viewportRuler=o,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=g.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new A.xQ,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,E.P)(()=>{const l=this.autocomplete?this.autocomplete.options:null;return l?l.changes.pipe((0,oe.O)(l),(0,Re.w)(()=>(0,C.T)(...l.map(s=>s.onSelectionChange)))):this._zone.onStable.pipe((0,T.q)(1),(0,Re.w)(()=>this.optionSelections))}),this._scrollStrategy=Te}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(D){this._autocompleteDisabled=(0,b.Ig)(D)}ngAfterViewInit(){const D=this._getWindow();void 0!==D&&this._zone.runOutsideAngular(()=>D.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(D){D.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const D=this._getWindow();void 0!==D&&D.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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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,C.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,j.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,j.h)(()=>this._overlayAttached)):(0,I.of)()).pipe((0,Y.U)(D=>D instanceof w.rN?D:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,C.T)((0,P.R)(this._document,"click"),(0,P.R)(this._document,"auxclick"),(0,P.R)(this._document,"touchend")).pipe((0,j.h)(D=>{const H=(0,m.sA)(D),V=this._formField?this._formField._elementRef.nativeElement:null,xe=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&H!==this._element.nativeElement&&(!V||!V.contains(H))&&(!xe||!xe.contains(H))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(H)}))}writeValue(D){Promise.resolve().then(()=>this._setTriggerValue(D))}registerOnChange(D){this._onChange=D}registerOnTouched(D){this._onTouched=D}setDisabledState(D){this._element.nativeElement.disabled=D}_handleKeydown(D){const H=D.keyCode;if(H===ne.hY&&!(0,ne.Vb)(D)&&D.preventDefault(),this.activeOption&&H===ne.K5&&this.panelOpen&&!(0,ne.Vb)(D))this.activeOption._selectViaInteraction(),this._resetActiveItem(),D.preventDefault();else if(this.autocomplete){const V=this.autocomplete._keyManager.activeItem,xe=H===ne.LH||H===ne.JH;this.panelOpen||H===ne.Mf?this.autocomplete._keyManager.onKeydown(D):xe&&this._canOpen()&&this.openPanel(),(xe||this.autocomplete._keyManager.activeItem!==V)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(D){let H=D.target,V=H.value;"number"===H.type&&(V=""==V?null:parseFloat(V)),this._previousValue!==V&&(this._previousValue=V,this._onChange(V),this._canOpen()&&this._document.activeElement===D.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(D=!1){this._formField&&"auto"===this._formField.floatLabel&&(D?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const D=this._zone.onStable.pipe((0,T.q)(1)),H=this.autocomplete.options.changes.pipe((0,q.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,te.g)(0));return(0,C.T)(D,H).pipe((0,Re.w)(()=>{const V=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),V!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,T.q)(1)).subscribe(V=>this._setValueAndClose(V))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(D){const H=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(D):D,V=null!=H?H:"";this._formField?this._formField._control.value=V:this._element.nativeElement.value=V,this._previousValue=V}_setValueAndClose(D){const H=D&&D.source;H&&(this._clearPreviousSelectedOption(H),this._setTriggerValue(H.value),this._onChange(H.value),this.autocomplete._emitSelectEvent(H),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(D){this.autocomplete.options.forEach(H=>{H!==D&&H.selected&&H.deselect()})}_attachOverlay(){var D;let H=this._overlayRef;H?(this._positionStrategy.setOrigin(this._getConnectedElement()),H.updateSize({width:this._getPanelWidth()})):(this._portal=new ge.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(D=this._formField)||void 0===D?void 0:D.getLabelId()}),H=this._overlay.create(this._getOverlayConfig()),this._overlayRef=H,H.keydownEvents().subscribe(xe=>{(xe.keyCode===ne.hY&&!(0,ne.Vb)(xe)||xe.keyCode===ne.LH&&(0,ne.Vb)(xe,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),xe.stopPropagation(),xe.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&H&&H.updateSize({width:this._getPanelWidth()})})),H&&!H.hasAttached()&&(H.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const V=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&V!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var D;return new O.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(D=this._defaults)||void 0===D?void 0:D.overlayPanelClass})}_getOverlayPosition(){const D=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(D),this._positionStrategy=D,D}_setStrategyPositions(D){const H=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],V=this._aboveClass,xe=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:V},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:V}];let Qe;Qe="above"===this.position?xe:"below"===this.position?H:[...H,...xe],D.withPositions(Qe)}_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 D=this.autocomplete;D.autoActiveFirstOption?D._keyManager.setFirstItemActive():D._keyManager.setActiveItem(-1)}_canOpen(){const D=this._element.nativeElement;return!D.readOnly&&!D.disabled&&!this._autocompleteDisabled}_getWindow(){var D;return(null===(D=this._document)||void 0===D?void 0:D.defaultView)||window}_scrollToOption(D){const H=this.autocomplete,V=(0,w.CB)(D,H.options,H.optionGroups);if(0===D&&1===V)H._setScrollTop(0);else if(H.panel){const xe=H.options.toArray()[D];if(xe){const Qe=xe._getHostElement(),Te=(0,w.jH)(Qe.offsetTop,Qe.offsetHeight,H._getScrollTop(),H.panel.nativeElement.offsetHeight);H._setScrollTop(Te)}}}}return z.\u0275fac=function(D){return new(D||z)(_.Y36(_.SBq),_.Y36(O.aV),_.Y36(_.s_b),_.Y36(_.R0b),_.Y36(_.sBO),_.Y36(me),_.Y36(ue.Is,8),_.Y36(Me.G_,9),_.Y36(L.K0,8),_.Y36(G.rL),_.Y36(ye,8))},z.\u0275dir=_.lG2({type:z,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[_.TTD]}),z})(),Je=(()=>{class z extends Xe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return z.\u0275fac=function(){let Q;return function(H){return(Q||(Q=_.n5z(z)))(H||z)}}(),z.\u0275dir=_.lG2({type:z,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(D,H){1&D&&_.NdJ("focusin",function(){return H._handleFocus()})("blur",function(){return H._onTouched()})("input",function(xe){return H._handleInput(xe)})("keydown",function(xe){return H._handleKeydown(xe)}),2&D&&_.uIk("autocomplete",H.autocompleteAttribute)("role",H.autocompleteDisabled?null:"combobox")("aria-autocomplete",H.autocompleteDisabled?null:"list")("aria-activedescendant",H.panelOpen&&H.activeOption?H.activeOption.id:null)("aria-expanded",H.autocompleteDisabled?null:H.panelOpen.toString())("aria-owns",H.autocompleteDisabled||!H.panelOpen||null==H.autocomplete?null:H.autocomplete.id)("aria-haspopup",!H.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[_._Bn([pe]),_.qOj]}),z})(),X=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275mod=_.oAB({type:z}),z.\u0275inj=_.cJS({providers:[Ie],imports:[[O.U8,w.Ng,w.BQ,L.ez],G.ZD,w.Ng,w.BQ]}),z})()},27544:($e,_e,p)=>{"use strict";p.d(_e,{k:()=>I,g:()=>P});var e=p(5e3),b=p(90508),_=p(15664),w=p(63191),g=p(76360);let A=0;const E=(0,b.Id)(class{}),C="mat-badge-content";let I=(()=>{class m extends E{constructor(O,G,ne,ge,J){super(),this._ngZone=O,this._elementRef=G,this._ariaDescriber=ne,this._renderer=ge,this._animationMode=J,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=A++,this._isInitialized=!1}get color(){return this._color}set color(O){this._setColor(O),this._color=O}get overlap(){return this._overlap}set overlap(O){this._overlap=(0,w.Ig)(O)}get content(){return this._content}set content(O){this._updateRenderedContent(O)}get description(){return this._description}set description(O){this._updateHostAriaDescription(O)}get hidden(){return this._hidden}set hidden(O){this._hidden=(0,w.Ig)(O)}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 O=this._renderer.createElement("span"),G="mat-badge-active";return O.setAttribute("id",`mat-badge-content-${this._id}`),O.setAttribute("aria-hidden","true"),O.classList.add(C),"NoopAnimations"===this._animationMode&&O.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(O),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{O.classList.add(G)})}):O.classList.add(G),O}_updateRenderedContent(O){const G=`${null!=O?O:""}`.trim();this._isInitialized&&G&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=G),this._content=G}_updateHostAriaDescription(O){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),O&&this._ariaDescriber.describe(this._elementRef.nativeElement,O),this._description=O}_setColor(O){const G=this._elementRef.nativeElement.classList;G.remove(`mat-badge-${this._color}`),O&&G.add(`mat-badge-${O}`)}_clearExistingBadges(){const O=this._elementRef.nativeElement.querySelectorAll(`:scope > .${C}`);for(const G of Array.from(O))G!==this._badgeElement&&G.remove()}}return m.\u0275fac=function(O){return new(O||m)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(_.$s),e.Y36(e.Qsj),e.Y36(g.Qb,8))},m.\u0275dir=e.lG2({type:m,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(O,G){2&O&&e.ekj("mat-badge-overlap",G.overlap)("mat-badge-above",G.isAbove())("mat-badge-below",!G.isAbove())("mat-badge-before",!G.isAfter())("mat-badge-after",G.isAfter())("mat-badge-small","small"===G.size)("mat-badge-medium","medium"===G.size)("mat-badge-large","large"===G.size)("mat-badge-hidden",G.hidden||!G.content)("mat-badge-disabled",G.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]}),m})(),P=(()=>{class m{}return m.\u0275fac=function(O){return new(O||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[[_.rt,b.BQ],b.BQ]}),m})()},47423:($e,_e,p)=>{"use strict";p.d(_e,{lW:()=>m,ot:()=>O});var e=p(5e3),b=p(90508),_=p(76360),w=p(15664);const g=["mat-button",""],A=["*"],I=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],P=(0,b.pj)((0,b.Id)((0,b.Kr)(class{constructor(G){this._elementRef=G}})));let m=(()=>{class G extends P{constructor(ge,J,Me){super(ge),this._focusMonitor=J,this._animationMode=Me,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const oe of I)this._hasHostAttributes(oe)&&this._getHostElement().classList.add(oe);ge.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(ge,J){ge?this._focusMonitor.focusVia(this._getHostElement(),ge,J):this._getHostElement().focus(J)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ge){return ge.some(J=>this._getHostElement().hasAttribute(J))}}return G.\u0275fac=function(ge){return new(ge||G)(e.Y36(e.SBq),e.Y36(w.tE),e.Y36(_.Qb,8))},G.\u0275cmp=e.Xpm({type:G,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(ge,J){if(1&ge&&e.Gf(b.wG,5),2&ge){let Me;e.iGM(Me=e.CRH())&&(J.ripple=Me.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ge,J){2&ge&&(e.uIk("disabled",J.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-button-disabled",J.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:g,ngContentSelectors:A,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(ge,J){1&ge&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&ge&&(e.xp6(2),e.ekj("mat-button-ripple-round",J.isRoundButton||J.isIconButton),e.Q6J("matRippleDisabled",J._isRippleDisabled())("matRippleCentered",J.isIconButton)("matRippleTrigger",J._getHostElement()))},directives:[b.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),G})(),O=(()=>{class G{}return G.\u0275fac=function(ge){return new(ge||G)},G.\u0275mod=e.oAB({type:G}),G.\u0275inj=e.cJS({imports:[[b.si,b.BQ],b.BQ]}),G})()},9224:($e,_e,p)=>{"use strict";p.d(_e,{a8:()=>T,kc:()=>Re,dn:()=>P,dk:()=>j,QW:()=>q,$j:()=>L,n5:()=>m});var e=p(5e3),b=p(76360),_=p(90508);const w=["*",[["mat-card-footer"]]],g=["*","mat-card-footer"],A=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],E=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let P=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275dir=e.lG2({type:te,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),te})(),m=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275dir=e.lG2({type:te,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),te})(),L=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275dir=e.lG2({type:te,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),te})(),Re=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275dir=e.lG2({type:te,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),te})(),T=(()=>{class te{constructor(de){this._animationMode=de}}return te.\u0275fac=function(de){return new(de||te)(e.Y36(b.Qb,8))},te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(de,Le){2&de&&e.ekj("_mat-animation-noopable","NoopAnimations"===Le._animationMode)},exportAs:["matCard"],ngContentSelectors:g,decls:2,vars:0,template:function(de,Le){1&de&&(e.F$t(w),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-animation-noopable.mat-card{transition:none;animation:none}.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}\n"],encapsulation:2,changeDetection:0}),te})(),j=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:E,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(de,Le){1&de&&(e.F$t(A),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),te})(),q=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({imports:[[_.BQ],_.BQ]}),te})()},77446:($e,_e,p)=>{"use strict";p.d(_e,{oG:()=>Me,p9:()=>j});var e=p(63191),b=p(5e3),_=p(93075),w=p(90508),g=p(76360),A=p(15664),E=p(17144);const C=["input"],I=function(Y){return{enterDuration:Y}},P=["*"],m=new b.OlP("mat-checkbox-default-options",{providedIn:"root",factory:L});function L(){return{color:"accent",clickAction:"check-indeterminate"}}let O=0;const G=L(),ne={provide:_.JU,useExisting:(0,b.Gpc)(()=>Me),multi:!0};class ge{}const J=(0,w.sb)((0,w.pj)((0,w.Kr)((0,w.Id)(class{constructor(Y){this._elementRef=Y}}))));let Me=(()=>{class Y extends J{constructor(te,ue,de,Le,Ue,ze,le){super(te),this._changeDetectorRef=ue,this._focusMonitor=de,this._ngZone=Le,this._animationMode=ze,this._options=le,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++O,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new b.vpe,this.indeterminateChange=new b.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||G,this.color=this.defaultColor=this._options.color||G.color,this.tabIndex=parseInt(Ue)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(te){this._required=(0,e.Ig)(te)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(te=>{te||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(te){te!=this.checked&&(this._checked=te,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(te){const ue=(0,e.Ig)(te);ue!==this.disabled&&(this._disabled=ue,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(te){const ue=te!=this._indeterminate;this._indeterminate=(0,e.Ig)(te),ue&&(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(te){this.checked=!!te}registerOnChange(te){this._controlValueAccessorChangeFn=te}registerOnTouched(te){this._onTouched=te}setDisabledState(te){this.disabled=te}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(te){let ue=this._currentCheckState,de=this._elementRef.nativeElement;if(ue!==te&&(this._currentAnimationClass.length>0&&de.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ue,te),this._currentCheckState=te,this._currentAnimationClass.length>0)){de.classList.add(this._currentAnimationClass);const Le=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{de.classList.remove(Le)},1e3)})}}_emitChangeEvent(){const te=new ge;te.source=this,te.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(te),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(te){var ue;const de=null===(ue=this._options)||void 0===ue?void 0:ue.clickAction;te.stopPropagation(),this.disabled||"noop"===de?!this.disabled&&"noop"===de&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==de&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(te,ue){te?this._focusMonitor.focusVia(this._inputElement,te,ue):this._inputElement.nativeElement.focus(ue)}_onInteractionEvent(te){te.stopPropagation()}_getAnimationClassForCheckStateTransition(te,ue){if("NoopAnimations"===this._animationMode)return"";let de="";switch(te){case 0:if(1===ue)de="unchecked-checked";else{if(3!=ue)return"";de="unchecked-indeterminate"}break;case 2:de=1===ue?"unchecked-checked":"unchecked-indeterminate";break;case 1:de=2===ue?"checked-unchecked":"checked-indeterminate";break;case 3:de=1===ue?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${de}`}_syncIndeterminate(te){const ue=this._inputElement;ue&&(ue.nativeElement.indeterminate=te)}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(A.tE),b.Y36(b.R0b),b.$8M("tabindex"),b.Y36(g.Qb,8),b.Y36(m,8))},Y.\u0275cmp=b.Xpm({type:Y,selectors:[["mat-checkbox"]],viewQuery:function(te,ue){if(1&te&&(b.Gf(C,5),b.Gf(w.wG,5)),2&te){let de;b.iGM(de=b.CRH())&&(ue._inputElement=de.first),b.iGM(de=b.CRH())&&(ue.ripple=de.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(te,ue){2&te&&(b.Ikx("id",ue.id),b.uIk("tabindex",null),b.ekj("mat-checkbox-indeterminate",ue.indeterminate)("mat-checkbox-checked",ue.checked)("mat-checkbox-disabled",ue.disabled)("mat-checkbox-label-before","before"==ue.labelPosition)("_mat-animation-noopable","NoopAnimations"===ue._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[b._Bn([ne]),b.qOj],ngContentSelectors:P,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(te,ue){if(1&te&&(b.F$t(),b.TgZ(0,"label",0,1),b.TgZ(2,"span",2),b.TgZ(3,"input",3,4),b.NdJ("change",function(Le){return ue._onInteractionEvent(Le)})("click",function(Le){return ue._onInputClick(Le)}),b.qZA(),b.TgZ(5,"span",5),b._UZ(6,"span",6),b.qZA(),b._UZ(7,"span",7),b.TgZ(8,"span",8),b.O4$(),b.TgZ(9,"svg",9),b._UZ(10,"path",10),b.qZA(),b.kcU(),b._UZ(11,"span",11),b.qZA(),b.qZA(),b.TgZ(12,"span",12,13),b.NdJ("cdkObserveContent",function(){return ue._onLabelTextChange()}),b.TgZ(14,"span",14),b._uU(15,"\xa0"),b.qZA(),b.Hsn(16),b.qZA(),b.qZA()),2&te){const de=b.MAs(1),Le=b.MAs(13);b.uIk("for",ue.inputId),b.xp6(2),b.ekj("mat-checkbox-inner-container-no-side-margin",!Le.textContent||!Le.textContent.trim()),b.xp6(1),b.Q6J("id",ue.inputId)("required",ue.required)("checked",ue.checked)("disabled",ue.disabled)("tabIndex",ue.tabIndex),b.uIk("value",ue.value)("name",ue.name)("aria-label",ue.ariaLabel||null)("aria-labelledby",ue.ariaLabelledby)("aria-checked",ue._getAriaChecked())("aria-describedby",ue.ariaDescribedby),b.xp6(2),b.Q6J("matRippleTrigger",de)("matRippleDisabled",ue._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",b.VKq(19,I,"NoopAnimations"===ue._animationMode?0:150))}},directives:[w.wG,E.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),Y})(),T=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({}),Y})(),j=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({imports:[[w.si,w.BQ,E.Q8,T],w.BQ,T]}),Y})()},26688:($e,_e,p)=>{"use strict";p.d(_e,{HS:()=>de,oH:()=>le,qn:()=>W,Hi:()=>me});var e=p(91159),b=p(5e3),_=p(90508),w=p(63191),g=p(69808),A=p(76360),E=p(8929),C=p(36787),I=p(72986),P=p(7625),m=p(1059),L=p(70925),O=p(15664),G=p(20449),ne=p(93075),ge=p(67322),J=p(50226);const Me=["*"],Re=new b.OlP("MatChipRemove"),T=new b.OlP("MatChipAvatar"),j=new b.OlP("MatChipTrailingIcon");class Y{constructor(Ie){this._elementRef=Ie}}const q=(0,_.sb)((0,_.pj)((0,_.Kr)(Y),"primary"),-1);let de=(()=>{class be extends q{constructor(pe,Se,Xe,Je,nt,Ve,X,z){super(pe),this._ngZone=Se,this._changeDetectorRef=nt,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new E.xQ,this._onBlur=new E.xQ,this.selectionChange=new b.vpe,this.destroyed=new b.vpe,this.removed=new b.vpe,this._addHostClassName(),this._chipRippleTarget=Ve.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _.IR(this,Se,this._chipRippleTarget,Xe),this._chipRipple.setupTriggerEvents(pe),this.rippleConfig=Je||{},this._animationsDisabled="NoopAnimations"===X,this.tabIndex=null!=z&&parseInt(z)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(pe){const Se=(0,w.Ig)(pe);Se!==this._selected&&(this._selected=Se,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(pe){this._value=pe}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(pe){this._selectable=(0,w.Ig)(pe)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(pe){this._disabled=(0,w.Ig)(pe)}get removable(){return this._removable}set removable(pe){this._removable=(0,w.Ig)(pe)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const pe="mat-basic-chip",Se=this._elementRef.nativeElement;Se.hasAttribute(pe)||Se.tagName.toLowerCase()===pe?Se.classList.add(pe):Se.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(pe=!1){return this._selected=!this.selected,this._dispatchSelectionChange(pe),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(pe){this.disabled&&pe.preventDefault()}_handleKeydown(pe){if(!this.disabled)switch(pe.keyCode){case e.yY:case e.ZH:this.remove(),pe.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),pe.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(pe=!1){this.selectionChange.emit({source:this,isUserInput:pe,selected:this._selected})}}return be.\u0275fac=function(pe){return new(pe||be)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(L.t4),b.Y36(_.Y2,8),b.Y36(b.sBO),b.Y36(g.K0),b.Y36(A.Qb,8),b.$8M("tabindex"))},be.\u0275dir=b.lG2({type:be,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(pe,Se,Xe){if(1&pe&&(b.Suo(Xe,T,5),b.Suo(Xe,j,5),b.Suo(Xe,Re,5)),2&pe){let Je;b.iGM(Je=b.CRH())&&(Se.avatar=Je.first),b.iGM(Je=b.CRH())&&(Se.trailingIcon=Je.first),b.iGM(Je=b.CRH())&&(Se.removeIcon=Je.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(pe,Se){1&pe&&b.NdJ("click",function(Je){return Se._handleClick(Je)})("keydown",function(Je){return Se._handleKeydown(Je)})("focus",function(){return Se.focus()})("blur",function(){return Se._blur()}),2&pe&&(b.uIk("tabindex",Se.disabled?null:Se.tabIndex)("disabled",Se.disabled||null)("aria-disabled",Se.disabled.toString())("aria-selected",Se.ariaSelected),b.ekj("mat-chip-selected",Se.selected)("mat-chip-with-avatar",Se.avatar)("mat-chip-with-trailing-icon",Se.trailingIcon||Se.removeIcon)("mat-chip-disabled",Se.disabled)("_mat-animation-noopable",Se._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[b.qOj]}),be})();const Ue=new b.OlP("mat-chips-default-options");let ze=0,le=(()=>{class be{constructor(pe,Se){this._elementRef=pe,this._defaultOptions=Se,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new b.vpe,this.placeholder="",this.id="mat-chip-list-input-"+ze++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(pe){pe&&(this._chipList=pe,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(pe){this._addOnBlur=(0,w.Ig)(pe)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(pe){this._disabled=(0,w.Ig)(pe)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(pe){if(pe){if(pe.keyCode===e.Mf&&!(0,e.Vb)(pe,"shiftKey")&&this._chipList._allowFocusEscape(),pe.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void pe.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(pe)}_keyup(pe){!this._focusLastChipOnBackspace&&pe.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,pe.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(pe){!this.inputElement.value&&!!pe&&this._chipList._keydown(pe),(!pe||this._isSeparatorKey(pe))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==pe||pe.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(pe){this.inputElement.focus(pe)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(pe){return!(0,e.Vb)(pe)&&new Set(this.separatorKeyCodes).has(pe.keyCode)}}return be.\u0275fac=function(pe){return new(pe||be)(b.Y36(b.SBq),b.Y36(Ue))},be.\u0275dir=b.lG2({type:be,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(pe,Se){1&pe&&b.NdJ("keydown",function(Je){return Se._keydown(Je)})("keyup",function(Je){return Se._keyup(Je)})("blur",function(){return Se._blur()})("focus",function(){return Se._focus()})("input",function(){return Se._onInput()}),2&pe&&(b.Ikx("id",Se.id),b.uIk("disabled",Se.disabled||null)("placeholder",Se.placeholder||null)("aria-invalid",Se._chipList&&Se._chipList.ngControl?Se._chipList.ngControl.invalid:null)("aria-required",Se._chipList&&Se._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:[b.TTD]}),be})();const je=(0,_.FD)(class{constructor(be,Ie,pe,Se){this._defaultErrorStateMatcher=be,this._parentForm=Ie,this._parentFormGroup=pe,this.ngControl=Se}});let ye=0;class Be{constructor(Ie,pe){this.source=Ie,this.value=pe}}let W=(()=>{class be extends je{constructor(pe,Se,Xe,Je,nt,Ve,X){super(Ve,Je,nt,X),this._elementRef=pe,this._changeDetectorRef=Se,this._dir=Xe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new E.xQ,this._uid="mat-chip-list-"+ye++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(z,Q)=>z===Q,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new b.vpe,this.valueChange=new b.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var pe,Se;return this.multiple?(null===(pe=this._selectionModel)||void 0===pe?void 0:pe.selected)||[]:null===(Se=this._selectionModel)||void 0===Se?void 0:Se.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(pe){this._multiple=(0,w.Ig)(pe),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(pe){this._compareWith=pe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(pe){this.writeValue(pe),this._value=pe}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var pe,Se,Xe,Je;return null!==(Je=null!==(pe=this._required)&&void 0!==pe?pe:null===(Xe=null===(Se=this.ngControl)||void 0===Se?void 0:Se.control)||void 0===Xe?void 0:Xe.hasValidator(ne.kI.required))&&void 0!==Je&&Je}set required(pe){this._required=(0,w.Ig)(pe),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(pe){this._placeholder=pe,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(pe){this._disabled=(0,w.Ig)(pe),this._syncChipsState()}get selectable(){return this._selectable}set selectable(pe){this._selectable=(0,w.Ig)(pe),this.chips&&this.chips.forEach(Se=>Se.chipListSelectable=this._selectable)}set tabIndex(pe){this._userTabIndex=pe,this._tabIndex=pe}get chipSelectionChanges(){return(0,C.T)(...this.chips.map(pe=>pe.selectionChange))}get chipFocusChanges(){return(0,C.T)(...this.chips.map(pe=>pe._onFocus))}get chipBlurChanges(){return(0,C.T)(...this.chips.map(pe=>pe._onBlur))}get chipRemoveChanges(){return(0,C.T)(...this.chips.map(pe=>pe.destroyed))}ngAfterContentInit(){this._keyManager=new O.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(pe=>this._keyManager.withHorizontalOrientation(pe)),this._keyManager.tabOut.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,m.O)(null),(0,P.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 G.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(pe){this._chipInput=pe,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",pe.id)}setDescribedByIds(pe){this._ariaDescribedby=pe.join(" ")}writeValue(pe){this.chips&&this._setSelectionByValue(pe,!1)}registerOnChange(pe){this._onChange=pe}registerOnTouched(pe){this._onTouched=pe}setDisabledState(pe){this.disabled=pe,this.stateChanges.next()}onContainerClick(pe){this._originatesFromChip(pe)||this.focus()}focus(pe){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(pe),this.stateChanges.next()))}_focusInput(pe){this._chipInput&&this._chipInput.focus(pe)}_keydown(pe){const Se=pe.target;Se&&Se.classList.contains("mat-chip")&&(this._keyManager.onKeydown(pe),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const pe=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(pe)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(pe){return pe>=0&&peXe.deselect()),Array.isArray(pe))pe.forEach(Xe=>this._selectValue(Xe,Se)),this._sortValues();else{const Xe=this._selectValue(pe,Se);Xe&&Se&&this._keyManager.setActiveItem(Xe)}}_selectValue(pe,Se=!0){const Xe=this.chips.find(Je=>null!=Je.value&&this._compareWith(Je.value,pe));return Xe&&(Se?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(pe){this._selectionModel.clear(),this.chips.forEach(Se=>{Se!==pe&&Se.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(pe=>{pe.selected&&this._selectionModel.select(pe)}),this.stateChanges.next())}_propagateChanges(pe){let Se=null;Se=Array.isArray(this.selected)?this.selected.map(Xe=>Xe.value):this.selected?this.selected.value:pe,this._value=Se,this.change.emit(new Be(this,Se)),this.valueChange.emit(Se),this._onChange(Se),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(pe=>{pe.source.selected?this._selectionModel.select(pe.source):this._selectionModel.deselect(pe.source),this.multiple||this.chips.forEach(Se=>{!this._selectionModel.isSelected(Se)&&Se.selected&&Se.deselect()}),pe.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(pe=>{let Se=this.chips.toArray().indexOf(pe.chip);this._isValidIndex(Se)&&this._keyManager.updateActiveItem(Se),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(pe=>{const Se=pe.chip,Xe=this.chips.toArray().indexOf(pe.chip);this._isValidIndex(Xe)&&Se._hasFocus&&(this._lastDestroyedChipIndex=Xe)})}_originatesFromChip(pe){let Se=pe.target;for(;Se&&Se!==this._elementRef.nativeElement;){if(Se.classList.contains("mat-chip"))return!0;Se=Se.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(pe=>pe._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(pe=>{pe._chipListDisabled=this._disabled,pe._chipListMultiple=this.multiple})}}return be.\u0275fac=function(pe){return new(pe||be)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(J.Is,8),b.Y36(ne.F,8),b.Y36(ne.sg,8),b.Y36(_.rD),b.Y36(ne.a5,10))},be.\u0275cmp=b.Xpm({type:be,selectors:[["mat-chip-list"]],contentQueries:function(pe,Se,Xe){if(1&pe&&b.Suo(Xe,de,5),2&pe){let Je;b.iGM(Je=b.CRH())&&(Se.chips=Je)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(pe,Se){1&pe&&b.NdJ("focus",function(){return Se.focus()})("blur",function(){return Se._blur()})("keydown",function(Je){return Se._keydown(Je)}),2&pe&&(b.Ikx("id",Se._uid),b.uIk("tabindex",Se.disabled?null:Se._tabIndex)("aria-describedby",Se._ariaDescribedby||null)("aria-required",Se.role?Se.required:null)("aria-disabled",Se.disabled.toString())("aria-invalid",Se.errorState)("aria-multiselectable",Se.multiple)("role",Se.role)("aria-orientation",Se.ariaOrientation),b.ekj("mat-chip-list-disabled",Se.disabled)("mat-chip-list-invalid",Se.errorState)("mat-chip-list-required",Se.required))},inputs:{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:[b._Bn([{provide:ge.Eo,useExisting:be}]),b.qOj],ngContentSelectors:Me,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(pe,Se){1&pe&&(b.F$t(),b.TgZ(0,"div",0),b.Hsn(1),b.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),be})(),me=(()=>{class be{}return be.\u0275fac=function(pe){return new(pe||be)},be.\u0275mod=b.oAB({type:be}),be.\u0275inj=b.cJS({providers:[_.rD,{provide:Ue,useValue:{separatorKeyCodes:[e.K5]}}],imports:[[_.BQ]]}),be})()},90508:($e,_e,p)=>{"use strict";p.d(_e,{yN:()=>oe,mZ:()=>Re,_A:()=>W,rD:()=>nt,sG:()=>R,K7:()=>h,HF:()=>t,Y2:()=>o,BQ:()=>Y,X2:()=>Ve,uc:()=>Q,XK:()=>Xe,ey:()=>lt,Ng:()=>Lt,rN:()=>At,nP:()=>s,us:()=>r,wG:()=>d,si:()=>l,LF:()=>Ie,IR:()=>Ae,CB:()=>Ut,jH:()=>mt,pj:()=>Le,Kr:()=>Ue,Id:()=>de,FD:()=>le,dB:()=>je,sb:()=>ze,E0:()=>X});var e=p(5e3),b=p(50226),w=p(69808),g=p(70925),A=p(15664),E=p(63191),C=p(8929),I=p(56498),P=p(1059),m=p(76360),L=p(91159);function ne(Ee,Ge){if(1&Ee&&e._UZ(0,"mat-pseudo-checkbox",4),2&Ee){const U=e.oxw();e.Q6J("state",U.selected?"checked":"unchecked")("disabled",U.disabled)}}function ge(Ee,Ge){if(1&Ee&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Ee){const U=e.oxw();e.xp6(1),e.hij("(",U.group.label,")")}}const J=["*"];let oe=(()=>{class Ee{}return Ee.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ee.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ee.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ee.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ee})(),Re=(()=>{class Ee{}return Ee.COMPLEX="375ms",Ee.ENTERING="225ms",Ee.EXITING="195ms",Ee})();const j=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function T(){return!0}});let Y=(()=>{class Ee{constructor(U,k,ie){this._sanityChecks=k,this._document=ie,this._hasDoneGlobalChecks=!1,U._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(U){return!(0,g.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[U])}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.LFG(A.qm),e.LFG(j,8),e.LFG(w.K0))},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[b.vT],b.vT]}),Ee})();function de(Ee){return class extends Ee{constructor(...Ge){super(...Ge),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ge){this._disabled=(0,E.Ig)(Ge)}}}function Le(Ee,Ge){return class extends Ee{constructor(...U){super(...U),this.defaultColor=Ge,this.color=Ge}get color(){return this._color}set color(U){const k=U||this.defaultColor;k!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),k&&this._elementRef.nativeElement.classList.add(`mat-${k}`),this._color=k)}}}function Ue(Ee){return class extends Ee{constructor(...Ge){super(...Ge),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ge){this._disableRipple=(0,E.Ig)(Ge)}}}function ze(Ee,Ge=0){return class extends Ee{constructor(...U){super(...U),this._tabIndex=Ge,this.defaultTabIndex=Ge}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(U){this._tabIndex=null!=U?(0,E.su)(U):this.defaultTabIndex}}}function le(Ee){return class extends Ee{constructor(...Ge){super(...Ge),this.stateChanges=new C.xQ,this.errorState=!1}updateErrorState(){const Ge=this.errorState,ce=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ce!==Ge&&(this.errorState=ce,this.stateChanges.next())}}}function je(Ee){return class extends Ee{constructor(...Ge){super(...Ge),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new I.y(U=>{this._isInitialized?this._notifySubscriber(U):this._pendingSubscribers.push(U)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ge){Ge.next(),Ge.complete()}}}const ye=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Be(){return(0,e.f3M)(e.soG)}});class W{constructor(){this._localeChanges=new C.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Ge){return this.isDateInstance(Ge)&&this.isValid(Ge)?Ge:null}deserialize(Ge){return null==Ge||this.isDateInstance(Ge)&&this.isValid(Ge)?Ge:this.invalid()}setLocale(Ge){this.locale=Ge,this._localeChanges.next()}compareDate(Ge,U){return this.getYear(Ge)-this.getYear(U)||this.getMonth(Ge)-this.getMonth(U)||this.getDate(Ge)-this.getDate(U)}sameDate(Ge,U){if(Ge&&U){let k=this.isValid(Ge),ie=this.isValid(U);return k&&ie?!this.compareDate(Ge,U):k==ie}return Ge==U}clampDate(Ge,U,k){return U&&this.compareDate(Ge,U)<0?U:k&&this.compareDate(Ge,k)>0?k:Ge}}const R=new e.OlP("mat-date-formats"),me=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function be(Ee,Ge){const U=Array(Ee);for(let k=0;k{class Ee extends W{constructor(U,k){super(),this.useUtcForDisplay=!1,super.setLocale(U)}getYear(U){return U.getFullYear()}getMonth(U){return U.getMonth()}getDate(U){return U.getDate()}getDayOfWeek(U){return U.getDay()}getMonthNames(U){const k=new Intl.DateTimeFormat(this.locale,{month:U,timeZone:"utc"});return be(12,ie=>this._format(k,new Date(2017,ie,1)))}getDateNames(){const U=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return be(31,k=>this._format(U,new Date(2017,0,k+1)))}getDayOfWeekNames(U){const k=new Intl.DateTimeFormat(this.locale,{weekday:U,timeZone:"utc"});return be(7,ie=>this._format(k,new Date(2017,0,ie+1)))}getYearName(U){const k=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(k,U)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(U){return this.getDate(this._createDateWithOverflow(this.getYear(U),this.getMonth(U)+1,0))}clone(U){return new Date(U.getTime())}createDate(U,k,ie){let ce=this._createDateWithOverflow(U,k,ie);return ce.getMonth(),ce}today(){return new Date}parse(U){return"number"==typeof U?new Date(U):U?new Date(Date.parse(U)):null}format(U,k){if(!this.isValid(U))throw Error("NativeDateAdapter: Cannot format invalid date.");const ie=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},k),{timeZone:"utc"}));return this._format(ie,U)}addCalendarYears(U,k){return this.addCalendarMonths(U,12*k)}addCalendarMonths(U,k){let ie=this._createDateWithOverflow(this.getYear(U),this.getMonth(U)+k,this.getDate(U));return this.getMonth(ie)!=((this.getMonth(U)+k)%12+12)%12&&(ie=this._createDateWithOverflow(this.getYear(ie),this.getMonth(ie),0)),ie}addCalendarDays(U,k){return this._createDateWithOverflow(this.getYear(U),this.getMonth(U),this.getDate(U)+k)}toIso8601(U){return[U.getUTCFullYear(),this._2digit(U.getUTCMonth()+1),this._2digit(U.getUTCDate())].join("-")}deserialize(U){if("string"==typeof U){if(!U)return null;if(me.test(U)){let k=new Date(U);if(this.isValid(k))return k}}return super.deserialize(U)}isDateInstance(U){return U instanceof Date}isValid(U){return!isNaN(U.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(U,k,ie){const ce=new Date;return ce.setFullYear(U,k,ie),ce.setHours(0,0,0,0),ce}_2digit(U){return("00"+U).slice(-2)}_format(U,k){const ie=new Date;return ie.setUTCFullYear(k.getFullYear(),k.getMonth(),k.getDate()),ie.setUTCHours(k.getHours(),k.getMinutes(),k.getSeconds(),k.getMilliseconds()),U.format(ie)}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.LFG(ye,8),e.LFG(g.t4))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const pe={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 Se=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({providers:[{provide:W,useClass:Ie}],imports:[[g.ud]]}),Ee})(),Xe=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({providers:[{provide:R,useValue:pe}],imports:[[Se]]}),Ee})(),nt=(()=>{class Ee{isErrorState(U,k){return!!(U&&U.invalid&&(U.touched||k&&k.submitted))}}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ve=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275dir=e.lG2({type:Ee,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ee})();function X(Ee,Ge,U="mat"){Ee.changes.pipe((0,P.O)(Ee)).subscribe(({length:k})=>{z(Ge,`${U}-2-line`,!1),z(Ge,`${U}-3-line`,!1),z(Ge,`${U}-multi-line`,!1),2===k||3===k?z(Ge,`${U}-${k}-line`,!0):k>3&&z(Ge,`${U}-multi-line`,!0)})}function z(Ee,Ge,U){Ee.nativeElement.classList.toggle(Ge,U)}let Q=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[Y],Y]}),Ee})();class D{constructor(Ge,U,k){this._renderer=Ge,this.element=U,this.config=k,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const H={enterDuration:225,exitDuration:150},xe=(0,g.i$)({passive:!0}),Qe=["mousedown","touchstart"],Te=["mouseup","mouseleave","touchend","touchcancel"];class Ae{constructor(Ge,U,k,ie){this._target=Ge,this._ngZone=U,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ie.isBrowser&&(this._containerElement=(0,E.fI)(k))}fadeInRipple(Ge,U,k={}){const ie=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ce=Object.assign(Object.assign({},H),k.animation);k.centered&&(Ge=ie.left+ie.width/2,U=ie.top+ie.height/2);const He=k.radius||function i(Ee,Ge,U){const k=Math.max(Math.abs(Ee-U.left),Math.abs(Ee-U.right)),ie=Math.max(Math.abs(Ge-U.top),Math.abs(Ge-U.bottom));return Math.sqrt(k*k+ie*ie)}(Ge,U,ie),ct=Ge-ie.left,bt=U-ie.top,xt=ce.enterDuration,Yt=document.createElement("div");Yt.classList.add("mat-ripple-element"),Yt.style.left=ct-He+"px",Yt.style.top=bt-He+"px",Yt.style.height=2*He+"px",Yt.style.width=2*He+"px",null!=k.color&&(Yt.style.backgroundColor=k.color),Yt.style.transitionDuration=`${xt}ms`,this._containerElement.appendChild(Yt),function ae(Ee){window.getComputedStyle(Ee).getPropertyValue("opacity")}(Yt),Yt.style.transform="scale(1)";const It=new D(this,Yt,k);return It.state=0,this._activeRipples.add(It),k.persistent||(this._mostRecentTransientRipple=It),this._runTimeoutOutsideZone(()=>{const Rt=It===this._mostRecentTransientRipple;It.state=1,!k.persistent&&(!Rt||!this._isPointerDown)&&It.fadeOut()},xt),It}fadeOutRipple(Ge){const U=this._activeRipples.delete(Ge);if(Ge===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!U)return;const k=Ge.element,ie=Object.assign(Object.assign({},H),Ge.config.animation);k.style.transitionDuration=`${ie.exitDuration}ms`,k.style.opacity="0",Ge.state=2,this._runTimeoutOutsideZone(()=>{Ge.state=3,k.remove()},ie.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ge=>Ge.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ge=>{Ge.config.persistent||Ge.fadeOut()})}setupTriggerEvents(Ge){const U=(0,E.fI)(Ge);!U||U===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=U,this._registerEvents(Qe))}handleEvent(Ge){"mousedown"===Ge.type?this._onMousedown(Ge):"touchstart"===Ge.type?this._onTouchStart(Ge):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Te),this._pointerUpEventsRegistered=!0)}_onMousedown(Ge){const U=(0,A.X6)(Ge),k=this._lastTouchStartEvent&&Date.now(){!Ge.config.persistent&&(1===Ge.state||Ge.config.terminateOnPointerUp&&0===Ge.state)&&Ge.fadeOut()}))}_runTimeoutOutsideZone(Ge,U=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ge,U))}_registerEvents(Ge){this._ngZone.runOutsideAngular(()=>{Ge.forEach(U=>{this._triggerElement.addEventListener(U,this,xe)})})}_removeTriggerEvents(){this._triggerElement&&(Qe.forEach(Ge=>{this._triggerElement.removeEventListener(Ge,this,xe)}),this._pointerUpEventsRegistered&&Te.forEach(Ge=>{this._triggerElement.removeEventListener(Ge,this,xe)}))}}const o=new e.OlP("mat-ripple-global-options");let d=(()=>{class Ee{constructor(U,k,ie,ce,He){this._elementRef=U,this._animationMode=He,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ce||{},this._rippleRenderer=new Ae(this,k,U,ie)}get disabled(){return this._disabled}set disabled(U){U&&this.fadeOutAllNonPersistent(),this._disabled=U,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(U){this._trigger=U,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(U,k=0,ie){return"number"==typeof U?this._rippleRenderer.fadeInRipple(U,k,Object.assign(Object.assign({},this.rippleConfig),ie)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),U))}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(g.t4),e.Y36(o,8),e.Y36(m.Qb,8))},Ee.\u0275dir=e.lG2({type:Ee,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(U,k){2&U&&e.ekj("mat-ripple-unbounded",k.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"]}),Ee})(),l=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[Y,g.ud],Y]}),Ee})(),s=(()=>{class Ee{constructor(U){this._animationMode=U,this.state="unchecked",this.disabled=!1}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(m.Qb,8))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(U,k){2&U&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===k.state)("mat-pseudo-checkbox-checked","checked"===k.state)("mat-pseudo-checkbox-disabled",k.disabled)("_mat-animation-noopable","NoopAnimations"===k._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(U,k){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Ee})(),r=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[Y]]}),Ee})();const t=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),h=new e.OlP("MatOptgroup");let We=0;class At{constructor(Ge,U=!1){this.source=Ge,this.isUserInput=U}}let Ht=(()=>{class Ee{constructor(U,k,ie,ce){this._element=U,this._changeDetectorRef=k,this._parent=ie,this.group=ce,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+We++,this.onSelectionChange=new e.vpe,this._stateChanges=new C.xQ}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(U){this._disabled=(0,E.Ig)(U)}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(U,k){const ie=this._getHostElement();"function"==typeof ie.focus&&ie.focus(k)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(U){(U.keyCode===L.K5||U.keyCode===L.L_)&&!(0,L.Vb)(U)&&(this._selectViaInteraction(),U.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 U=this.viewValue;U!==this._mostRecentViewValue&&(this._mostRecentViewValue=U,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(U=!1){this.onSelectionChange.emit(new At(this,U))}}return Ee.\u0275fac=function(U){e.$Z()},Ee.\u0275dir=e.lG2({type:Ee,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ee})(),lt=(()=>{class Ee extends Ht{constructor(U,k,ie,ce){super(U,k,ie,ce)}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(t,8),e.Y36(h,8))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(U,k){1&U&&e.NdJ("click",function(){return k._selectViaInteraction()})("keydown",function(ce){return k._handleKeydown(ce)}),2&U&&(e.Ikx("id",k.id),e.uIk("tabindex",k._getTabIndex())("aria-selected",k._getAriaSelected())("aria-disabled",k.disabled.toString()),e.ekj("mat-selected",k.selected)("mat-option-multiple",k.multiple)("mat-active",k.active)("mat-option-disabled",k.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:J,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(U,k){1&U&&(e.F$t(),e.YNc(0,ne,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,ge,2,1,"span",2),e._UZ(4,"div",3)),2&U&&(e.Q6J("ngIf",k.multiple),e.xp6(3),e.Q6J("ngIf",k.group&&k.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",k._getHostElement())("matRippleDisabled",k.disabled||k.disableRipple))},directives:[s,w.O5,d],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ee})();function Ut(Ee,Ge,U){if(U.length){let k=Ge.toArray(),ie=U.toArray(),ce=0;for(let He=0;HeU+k?Math.max(0,Ee-k+Ge):U}let Lt=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[l,w.ez,Y,r]]}),Ee})()},86856:($e,_e,p)=>{"use strict";p.d(_e,{Mq:()=>bt,hl:()=>Bt,FA:()=>ot,nW:()=>ai});var e=p(15664),b=p(92845),_=p(47429),w=p(69808),g=p(5e3),A=p(47423),E=p(53435),C=p(90508),I=p(8929),P=p(42654),m=p(36787),L=p(21086),O=p(91159),G=p(72986),ne=p(1059),ge=p(92198),J=p(50226),Me=p(63191),oe=p(70925),Re=p(41777),T=p(93075),j=p(67322),Y=p(98833);const q=["mat-calendar-body",""];function te(Ke,vt){if(1&Ke&&(g.TgZ(0,"tr",2),g.TgZ(1,"td",3),g._uU(2),g.qZA(),g.qZA()),2&Ke){const F=g.oxw();g.xp6(1),g.Udp("padding-top",F._cellPadding)("padding-bottom",F._cellPadding),g.uIk("colspan",F.numCols),g.xp6(1),g.hij(" ",F.label," ")}}function ue(Ke,vt){if(1&Ke&&(g.TgZ(0,"td",3),g._uU(1),g.qZA()),2&Ke){const F=g.oxw(2);g.Udp("padding-top",F._cellPadding)("padding-bottom",F._cellPadding),g.uIk("colspan",F._firstRowOffset),g.xp6(1),g.hij(" ",F._firstRowOffset>=F.labelMinRequiredCells?F.label:""," ")}}function de(Ke,vt){if(1&Ke){const F=g.EpF();g.TgZ(0,"td",7),g.TgZ(1,"button",8),g.NdJ("click",function(gt){const ri=g.CHM(F).$implicit;return g.oxw(2)._cellClicked(ri,gt)}),g.TgZ(2,"div",9),g._uU(3),g.qZA(),g._UZ(4,"div",10),g.qZA(),g.qZA()}if(2&Ke){const F=vt.$implicit,Ye=vt.index,gt=g.oxw().index,Dt=g.oxw();g.Udp("width",Dt._cellWidth)("padding-top",Dt._cellPadding)("padding-bottom",Dt._cellPadding),g.uIk("data-mat-row",gt)("data-mat-col",Ye),g.xp6(1),g.ekj("mat-calendar-body-disabled",!F.enabled)("mat-calendar-body-active",Dt._isActiveCell(gt,Ye))("mat-calendar-body-range-start",Dt._isRangeStart(F.compareValue))("mat-calendar-body-range-end",Dt._isRangeEnd(F.compareValue))("mat-calendar-body-in-range",Dt._isInRange(F.compareValue))("mat-calendar-body-comparison-bridge-start",Dt._isComparisonBridgeStart(F.compareValue,gt,Ye))("mat-calendar-body-comparison-bridge-end",Dt._isComparisonBridgeEnd(F.compareValue,gt,Ye))("mat-calendar-body-comparison-start",Dt._isComparisonStart(F.compareValue))("mat-calendar-body-comparison-end",Dt._isComparisonEnd(F.compareValue))("mat-calendar-body-in-comparison-range",Dt._isInComparisonRange(F.compareValue))("mat-calendar-body-preview-start",Dt._isPreviewStart(F.compareValue))("mat-calendar-body-preview-end",Dt._isPreviewEnd(F.compareValue))("mat-calendar-body-in-preview",Dt._isInPreview(F.compareValue)),g.Q6J("ngClass",F.cssClasses)("tabindex",Dt._isActiveCell(gt,Ye)?0:-1),g.uIk("aria-label",F.ariaLabel)("aria-disabled",!F.enabled||null)("aria-pressed",Dt._isSelected(F.compareValue))("aria-current",Dt.todayValue===F.compareValue?"date":null),g.xp6(1),g.ekj("mat-calendar-body-selected",Dt._isSelected(F.compareValue))("mat-calendar-body-comparison-identical",Dt._isComparisonIdentical(F.compareValue))("mat-calendar-body-today",Dt.todayValue===F.compareValue),g.xp6(1),g.hij(" ",F.displayValue," ")}}function Le(Ke,vt){if(1&Ke&&(g.TgZ(0,"tr",4),g.YNc(1,ue,2,6,"td",5),g.YNc(2,de,5,47,"td",6),g.qZA()),2&Ke){const F=vt.$implicit,Ye=vt.index,gt=g.oxw();g.xp6(1),g.Q6J("ngIf",0===Ye&>._firstRowOffset),g.xp6(1),g.Q6J("ngForOf",F)}}function Ue(Ke,vt){if(1&Ke&&(g.TgZ(0,"th",5),g._uU(1),g.qZA()),2&Ke){const F=vt.$implicit;g.uIk("aria-label",F.long),g.xp6(1),g.hij(" ",F.narrow," ")}}const ze=["*"];function le(Ke,vt){}function je(Ke,vt){if(1&Ke){const F=g.EpF();g.TgZ(0,"mat-month-view",5),g.NdJ("activeDateChange",function(gt){return g.CHM(F),g.oxw().activeDate=gt})("_userSelection",function(gt){return g.CHM(F),g.oxw()._dateSelected(gt)}),g.qZA()}if(2&Ke){const F=g.oxw();g.Q6J("activeDate",F.activeDate)("selected",F.selected)("dateFilter",F.dateFilter)("maxDate",F.maxDate)("minDate",F.minDate)("dateClass",F.dateClass)("comparisonStart",F.comparisonStart)("comparisonEnd",F.comparisonEnd)}}function ye(Ke,vt){if(1&Ke){const F=g.EpF();g.TgZ(0,"mat-year-view",6),g.NdJ("activeDateChange",function(gt){return g.CHM(F),g.oxw().activeDate=gt})("monthSelected",function(gt){return g.CHM(F),g.oxw()._monthSelectedInYearView(gt)})("selectedChange",function(gt){return g.CHM(F),g.oxw()._goToDateInView(gt,"month")}),g.qZA()}if(2&Ke){const F=g.oxw();g.Q6J("activeDate",F.activeDate)("selected",F.selected)("dateFilter",F.dateFilter)("maxDate",F.maxDate)("minDate",F.minDate)("dateClass",F.dateClass)}}function Be(Ke,vt){if(1&Ke){const F=g.EpF();g.TgZ(0,"mat-multi-year-view",7),g.NdJ("activeDateChange",function(gt){return g.CHM(F),g.oxw().activeDate=gt})("yearSelected",function(gt){return g.CHM(F),g.oxw()._yearSelectedInMultiYearView(gt)})("selectedChange",function(gt){return g.CHM(F),g.oxw()._goToDateInView(gt,"year")}),g.qZA()}if(2&Ke){const F=g.oxw();g.Q6J("activeDate",F.activeDate)("selected",F.selected)("dateFilter",F.dateFilter)("maxDate",F.maxDate)("minDate",F.minDate)("dateClass",F.dateClass)}}function W(Ke,vt){}const R=["button"];function me(Ke,vt){1&Ke&&(g.O4$(),g.TgZ(0,"svg",3),g._UZ(1,"path",4),g.qZA())}const be=[[["","matDatepickerToggleIcon",""]]],Ie=["[matDatepickerToggleIcon]"];class nt{constructor(vt,F,Ye,gt,Dt={},ri=vt,ti){this.value=vt,this.displayValue=F,this.ariaLabel=Ye,this.enabled=gt,this.cssClasses=Dt,this.compareValue=ri,this.rawValue=ti}}let Ve=(()=>{class Ke{constructor(F,Ye){this._elementRef=F,this._ngZone=Ye,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new g.vpe,this.previewChange=new g.vpe,this._enterHandler=gt=>{if(this._skipNextFocus&&"focus"===gt.type)this._skipNextFocus=!1;else if(gt.target&&this.isRange){const Dt=this._getCellFromElement(gt.target);Dt&&this._ngZone.run(()=>this.previewChange.emit({value:Dt.enabled?Dt:null,event:gt}))}},this._leaveHandler=gt=>{null!==this.previewEnd&&this.isRange&>.target&&this._getCellFromElement(gt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:gt}))},Ye.runOutsideAngular(()=>{const gt=F.nativeElement;gt.addEventListener("mouseenter",this._enterHandler,!0),gt.addEventListener("focus",this._enterHandler,!0),gt.addEventListener("mouseleave",this._leaveHandler,!0),gt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(F,Ye){F.enabled&&this.selectedValueChange.emit({value:F.value,event:Ye})}_isSelected(F){return this.startValue===F||this.endValue===F}ngOnChanges(F){const Ye=F.numCols,{rows:gt,numCols:Dt}=this;(F.rows||Ye)&&(this._firstRowOffset=gt&>.length&>[0].length?Dt-gt[0].length:0),(F.cellAspectRatio||Ye||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Dt+"%"),(Ye||!this._cellWidth)&&(this._cellWidth=100/Dt+"%")}ngOnDestroy(){const F=this._elementRef.nativeElement;F.removeEventListener("mouseenter",this._enterHandler,!0),F.removeEventListener("focus",this._enterHandler,!0),F.removeEventListener("mouseleave",this._leaveHandler,!0),F.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(F,Ye){let gt=F*this.numCols+Ye;return F&&(gt-=this._firstRowOffset),gt==this.activeCell}_focusActiveCell(F=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,G.q)(1)).subscribe(()=>{const Ye=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Ye&&(F||(this._skipNextFocus=!0),Ye.focus())})})}_isRangeStart(F){return z(F,this.startValue,this.endValue)}_isRangeEnd(F){return Q(F,this.startValue,this.endValue)}_isInRange(F){return D(F,this.startValue,this.endValue,this.isRange)}_isComparisonStart(F){return z(F,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(F,Ye,gt){if(!this._isComparisonStart(F)||this._isRangeStart(F)||!this._isInRange(F))return!1;let Dt=this.rows[Ye][gt-1];if(!Dt){const ri=this.rows[Ye-1];Dt=ri&&ri[ri.length-1]}return Dt&&!this._isRangeEnd(Dt.compareValue)}_isComparisonBridgeEnd(F,Ye,gt){if(!this._isComparisonEnd(F)||this._isRangeEnd(F)||!this._isInRange(F))return!1;let Dt=this.rows[Ye][gt+1];if(!Dt){const ri=this.rows[Ye+1];Dt=ri&&ri[0]}return Dt&&!this._isRangeStart(Dt.compareValue)}_isComparisonEnd(F){return Q(F,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(F){return D(F,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(F){return this.comparisonStart===this.comparisonEnd&&F===this.comparisonStart}_isPreviewStart(F){return z(F,this.previewStart,this.previewEnd)}_isPreviewEnd(F){return Q(F,this.previewStart,this.previewEnd)}_isInPreview(F){return D(F,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(F){let Ye;if(X(F)?Ye=F:X(F.parentNode)&&(Ye=F.parentNode),Ye){const gt=Ye.getAttribute("data-mat-row"),Dt=Ye.getAttribute("data-mat-col");if(gt&&Dt)return this.rows[parseInt(gt)][parseInt(Dt)]}return null}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.SBq),g.Y36(g.R0b))},Ke.\u0275cmp=g.Xpm({type:Ke,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"},exportAs:["matCalendarBody"],features:[g.TTD],attrs:q,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"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(F,Ye){1&F&&(g.YNc(0,te,3,6,"tr",0),g.YNc(1,Le,3,2,"tr",1)),2&F&&(g.Q6J("ngIf",Ye._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),Ke})();function X(Ke){return"TD"===Ke.nodeName}function z(Ke,vt,F){return null!==F&&vt!==F&&Ke=vt&&Ke===F}function D(Ke,vt,F,Ye){return Ye&&null!==vt&&null!==F&&vt!==F&&Ke>=vt&&Ke<=F}class H{constructor(vt,F){this.start=vt,this.end=F}}let V=(()=>{class Ke{constructor(F,Ye){this.selection=F,this._adapter=Ye,this._selectionChanged=new I.xQ,this.selectionChanged=this._selectionChanged,this.selection=F}updateSelection(F,Ye){const gt=this.selection;this.selection=F,this._selectionChanged.next({selection:F,source:Ye,oldValue:gt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(F){return this._adapter.isDateInstance(F)&&this._adapter.isValid(F)}}return Ke.\u0275fac=function(F){g.$Z()},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),xe=(()=>{class Ke extends V{constructor(F){super(null,F)}add(F){super.updateSelection(F,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const F=new Ke(this._adapter);return F.updateSelection(this.selection,this),F}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.LFG(C._A))},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const Ae={provide:V,deps:[[new g.FiY,new g.tp0,V],C._A],useFactory:function Te(Ke,vt){return Ke||new xe(vt)}},o=new g.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let t=(()=>{class Ke{constructor(F,Ye,gt,Dt,ri){this._changeDetectorRef=F,this._dateFormats=Ye,this._dateAdapter=gt,this._dir=Dt,this._rangeStrategy=ri,this._rerenderSubscription=P.w.EMPTY,this.selectedChange=new g.vpe,this._userSelection=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(F){const Ye=this._activeDate,gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ye,this._activeDate)||this._init()}get selected(){return this._selected}set selected(F){this._selected=F instanceof H?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ne.O)(null)).subscribe(()=>this._init())}ngOnChanges(F){const Ye=F.comparisonStart||F.comparisonEnd;Ye&&!Ye.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(F){const Ye=F.value,gt=this._dateAdapter.getYear(this.activeDate),Dt=this._dateAdapter.getMonth(this.activeDate),ri=this._dateAdapter.createDate(gt,Dt,Ye);let ti,Di;this._selected instanceof H?(ti=this._getDateInCurrentMonth(this._selected.start),Di=this._getDateInCurrentMonth(this._selected.end)):ti=Di=this._getDateInCurrentMonth(this._selected),(ti!==Ye||Di!==Ye)&&this.selectedChange.emit(ri),this._userSelection.emit({value:ri,event:F.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(F){const Ye=this._activeDate,gt=this._isRtl();switch(F.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?-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=F.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case O.VM:this.activeDate=F.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)&&F.preventDefault());case O.hY:return void(null!=this._previewEnd&&!(0,O.Vb)(F)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:F}),F.preventDefault(),F.stopPropagation()));default:return}this._dateAdapter.compareDate(Ye,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),F.preventDefault()}_handleCalendarBodyKeyup(F){(F.keyCode===O.L_||F.keyCode===O.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:F}),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 F=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(F)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(F){this._matCalendarBody._focusActiveCell(F)}_previewChanged({event:F,value:Ye}){if(this._rangeStrategy){const Dt=this._rangeStrategy.createPreview(Ye?Ye.rawValue:null,this.selected,F);this._previewStart=this._getCellCompareValue(Dt.start),this._previewEnd=this._getCellCompareValue(Dt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const F=this._dateAdapter.getFirstDayOfWeek(),Ye=this._dateAdapter.getDayOfWeekNames("narrow");let Dt=this._dateAdapter.getDayOfWeekNames("long").map((ri,ti)=>({long:ri,narrow:Ye[ti]}));this._weekdays=Dt.slice(F).concat(Dt.slice(0,F))}_createWeekCells(){const F=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ye=this._dateAdapter.getDateNames();this._weeks=[[]];for(let gt=0,Dt=this._firstWeekOffset;gt=0)&&(!this.maxDate||this._dateAdapter.compareDate(F,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(F))}_getDateInCurrentMonth(F){return F&&this._hasSameMonthAndYear(F,this.activeDate)?this._dateAdapter.getDate(F):null}_hasSameMonthAndYear(F,Ye){return!(!F||!Ye||this._dateAdapter.getMonth(F)!=this._dateAdapter.getMonth(Ye)||this._dateAdapter.getYear(F)!=this._dateAdapter.getYear(Ye))}_getCellCompareValue(F){if(F){const Ye=this._dateAdapter.getYear(F),gt=this._dateAdapter.getMonth(F),Dt=this._dateAdapter.getDate(F);return new Date(Ye,gt,Dt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(F){F instanceof H?(this._rangeStart=this._getCellCompareValue(F.start),this._rangeEnd=this._getCellCompareValue(F.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(F),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(F){return!this.dateFilter||this.dateFilter(F)}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.sBO),g.Y36(C.sG,8),g.Y36(C._A,8),g.Y36(J.Is,8),g.Y36(o,8))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-month-view"]],viewQuery:function(F,Ye){if(1&F&&g.Gf(Ve,5),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye._matCalendarBody=gt.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:[g.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","previewChange","keyup","keydown"],["scope","col"]],template:function(F,Ye){1&F&&(g.TgZ(0,"table",0),g.TgZ(1,"thead",1),g.TgZ(2,"tr"),g.YNc(3,Ue,2,2,"th",2),g.qZA(),g.TgZ(4,"tr"),g._UZ(5,"th",3),g.qZA(),g.qZA(),g.TgZ(6,"tbody",4),g.NdJ("selectedValueChange",function(Dt){return Ye._dateSelected(Dt)})("previewChange",function(Dt){return Ye._previewChanged(Dt)})("keyup",function(Dt){return Ye._handleCalendarBodyKeyup(Dt)})("keydown",function(Dt){return Ye._handleCalendarBodyKeydown(Dt)}),g.qZA(),g.qZA()),2&F&&(g.xp6(3),g.Q6J("ngForOf",Ye._weekdays),g.xp6(3),g.Q6J("label",Ye._monthLabel)("rows",Ye._weeks)("todayValue",Ye._todayDate)("startValue",Ye._rangeStart)("endValue",Ye._rangeEnd)("comparisonStart",Ye._comparisonRangeStart)("comparisonEnd",Ye._comparisonRangeEnd)("previewStart",Ye._previewStart)("previewEnd",Ye._previewEnd)("isRange",Ye._isRange)("labelMinRequiredCells",3)("activeCell",Ye._dateAdapter.getDate(Ye.activeDate)-1))},directives:[Ve,w.sg],encapsulation:2,changeDetection:0}),Ke})();const n=24;let c=(()=>{class Ke{constructor(F,Ye,gt){this._changeDetectorRef=F,this._dateAdapter=Ye,this._dir=gt,this._rerenderSubscription=P.w.EMPTY,this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(F){let Ye=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),h(this._dateAdapter,Ye,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(F){this._selected=F instanceof H?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F)),this._setSelectedYear(F)}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ne.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ye=this._dateAdapter.getYear(this._activeDate)-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let gt=0,Dt=[];gtthis._createCellForYear(ri))),Dt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(F){const Ye=F.value;this.yearSelected.emit(this._dateAdapter.createDate(Ye,0,1));let gt=this._dateAdapter.getMonth(this.activeDate),Dt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Ye,gt,1));this.selectedChange.emit(this._dateAdapter.createDate(Ye,gt,Math.min(this._dateAdapter.getDate(this.activeDate),Dt)))}_handleCalendarBodyKeydown(F){const Ye=this._activeDate,gt=this._isRtl();switch(F.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?-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,-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case O.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?-240:-n);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?240:n);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ye,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),F.preventDefault()}_handleCalendarBodyKeyup(F){(F.keyCode===O.L_||F.keyCode===O.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:F}),this._selectionKeyPressed=!1)}_getActiveCell(){return x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(F){const Ye=this._dateAdapter.createDate(F,0,1),gt=this._dateAdapter.getYearName(Ye),Dt=this.dateClass?this.dateClass(Ye,"multi-year"):void 0;return new nt(F,gt,gt,this._shouldEnableYear(F),Dt)}_shouldEnableYear(F){if(null==F||this.maxDate&&F>this._dateAdapter.getYear(this.maxDate)||this.minDate&&F{class Ke{constructor(F,Ye,gt,Dt){this._changeDetectorRef=F,this._dateFormats=Ye,this._dateAdapter=gt,this._dir=Dt,this._rerenderSubscription=P.w.EMPTY,this.selectedChange=new g.vpe,this.monthSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(F){let Ye=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._dateAdapter.getYear(Ye)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(F){this._selected=F instanceof H?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F)),this._setSelectedMonth(F)}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ne.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(F){const Ye=F.value,gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ye,1);this.monthSelected.emit(gt);const Dt=this._dateAdapter.getNumDaysInMonth(gt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ye,Math.min(this._dateAdapter.getDate(this.activeDate),Dt)))}_handleCalendarBodyKeydown(F){const Ye=this._activeDate,gt=this._isRtl();switch(F.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?-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,F.altKey?-10:-1);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?10:1);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ye,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),F.preventDefault()}_handleCalendarBodyKeyup(F){(F.keyCode===O.L_||F.keyCode===O.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:F}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let F=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Ye=>Ye.map(gt=>this._createCellForMonth(gt,F[gt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(F){return F&&this._dateAdapter.getYear(F)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(F):null}_createCellForMonth(F,Ye){const gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),F,1),Dt=this._dateAdapter.format(gt,this._dateFormats.display.monthYearA11yLabel),ri=this.dateClass?this.dateClass(gt,"year"):void 0;return new nt(F,Ye.toLocaleUpperCase(),Dt,this._shouldEnableMonth(F),ri)}_shouldEnableMonth(F){const Ye=this._dateAdapter.getYear(this.activeDate);if(null==F||this._isYearAndMonthAfterMaxDate(Ye,F)||this._isYearAndMonthBeforeMinDate(Ye,F))return!1;if(!this.dateFilter)return!0;for(let Dt=this._dateAdapter.createDate(Ye,F,1);this._dateAdapter.getMonth(Dt)==F;Dt=this._dateAdapter.addCalendarDays(Dt,1))if(this.dateFilter(Dt))return!0;return!1}_isYearAndMonthAfterMaxDate(F,Ye){if(this.maxDate){const gt=this._dateAdapter.getYear(this.maxDate),Dt=this._dateAdapter.getMonth(this.maxDate);return F>gt||F===gt&&Ye>Dt}return!1}_isYearAndMonthBeforeMinDate(F,Ye){if(this.minDate){const gt=this._dateAdapter.getYear(this.minDate),Dt=this._dateAdapter.getMonth(this.minDate);return F{class Ke{constructor(){this.changes=new I.xQ,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"}formatYearRange(F,Ye){return`${F} \u2013 ${Ye}`}}return Ke.\u0275fac=function(F){return new(F||Ke)},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Ut=0,mt=(()=>{class Ke{constructor(F,Ye,gt,Dt,ri){this._intl=F,this.calendar=Ye,this._dateAdapter=gt,this._dateFormats=Dt,this._buttonDescriptionId="mat-calendar-button-"+Ut++,this.calendar.stateChanges.subscribe(()=>ri.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 Ye=this._dateAdapter.getYear(this.calendar.activeDate)-x(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),gt=Ye+n-1,Dt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Ye,0,1)),ri=this._dateAdapter.getYearName(this._dateAdapter.createDate(gt,0,1));return this._intl.formatYearRange(Dt,ri)}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:-n)}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:n)}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(F,Ye){return"month"==this.calendar.currentView?this._dateAdapter.getYear(F)==this._dateAdapter.getYear(Ye)&&this._dateAdapter.getMonth(F)==this._dateAdapter.getMonth(Ye):"year"==this.calendar.currentView?this._dateAdapter.getYear(F)==this._dateAdapter.getYear(Ye):h(this._dateAdapter,F,Ye,this.calendar.minDate,this.calendar.maxDate)}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(lt),g.Y36((0,g.Gpc)(()=>Lt)),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(g.sBO))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ze,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","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(F,Ye){1&F&&(g.F$t(),g.TgZ(0,"div",0),g.TgZ(1,"div",1),g.TgZ(2,"button",2),g.NdJ("click",function(){return Ye.currentPeriodClicked()}),g.TgZ(3,"span"),g._uU(4),g.qZA(),g.O4$(),g.TgZ(5,"svg",3),g._UZ(6,"polygon",4),g.qZA(),g.qZA(),g.kcU(),g._UZ(7,"div",5),g.Hsn(8),g.TgZ(9,"button",6),g.NdJ("click",function(){return Ye.previousClicked()}),g.qZA(),g.TgZ(10,"button",7),g.NdJ("click",function(){return Ye.nextClicked()}),g.qZA(),g.qZA(),g.qZA()),2&F&&(g.xp6(2),g.uIk("aria-label",Ye.periodButtonLabel)("aria-describedby",Ye._buttonDescriptionId),g.xp6(1),g.uIk("id",Ye._buttonDescriptionId),g.xp6(1),g.Oqu(Ye.periodButtonText),g.xp6(1),g.ekj("mat-calendar-invert","month"!==Ye.calendar.currentView),g.xp6(4),g.Q6J("disabled",!Ye.previousEnabled()),g.uIk("aria-label",Ye.prevButtonLabel),g.xp6(1),g.Q6J("disabled",!Ye.nextEnabled()),g.uIk("aria-label",Ye.nextButtonLabel))},directives:[A.lW,e.Qr],encapsulation:2,changeDetection:0}),Ke})(),Lt=(()=>{class Ke{constructor(F,Ye,gt,Dt){this._dateAdapter=Ye,this._dateFormats=gt,this._changeDetectorRef=Dt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this._userSelection=new g.vpe,this.stateChanges=new I.xQ,this._intlChanges=F.changes.subscribe(()=>{Dt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(F){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get selected(){return this._selected}set selected(F){this._selected=F instanceof H?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get activeDate(){return this._clampedActiveDate}set activeDate(F){this._clampedActiveDate=this._dateAdapter.clampDate(F,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(F){const Ye=this._currentView!==F?F:null;this._currentView=F,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Ye&&this.viewChanged.emit(Ye)}ngAfterContentInit(){this._calendarHeaderPortal=new _.C5(this.headerComponent||mt),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(F){const Ye=F.minDate||F.maxDate||F.dateFilter;if(Ye&&!Ye.firstChange){const gt=this._getCurrentViewComponent();gt&&(this._changeDetectorRef.detectChanges(),gt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(F){const Ye=F.value;(this.selected instanceof H||Ye&&!this._dateAdapter.sameDate(Ye,this.selected))&&this.selectedChange.emit(Ye),this._userSelection.emit(F)}_yearSelectedInMultiYearView(F){this.yearSelected.emit(F)}_monthSelectedInYearView(F){this.monthSelected.emit(F)}_goToDateInView(F,Ye){this.activeDate=F,this.currentView=Ye}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(lt),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(g.sBO))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-calendar"]],viewQuery:function(F,Ye){if(1&F&&(g.Gf(t,5),g.Gf(Ht,5),g.Gf(c,5)),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye.monthView=gt.first),g.iGM(gt=g.CRH())&&(Ye.yearView=gt.first),g.iGM(gt=g.CRH())&&(Ye.multiYearView=gt.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:[g._Bn([Ae]),g.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(F,Ye){1&F&&(g.YNc(0,le,0,0,"ng-template",0),g.TgZ(1,"div",1),g.YNc(2,je,1,8,"mat-month-view",2),g.YNc(3,ye,1,6,"mat-year-view",3),g.YNc(4,Be,1,6,"mat-multi-year-view",4),g.qZA()),2&F&&(g.Q6J("cdkPortalOutlet",Ye._calendarHeaderPortal),g.xp6(1),g.Q6J("ngSwitch",Ye.currentView),g.xp6(1),g.Q6J("ngSwitchCase","month"),g.xp6(1),g.Q6J("ngSwitchCase","year"),g.xp6(1),g.Q6J("ngSwitchCase","multi-year"))},directives:[t,Ht,c,_.Pl,e.kH,w.RF,w.n9],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}\n'],encapsulation:2,changeDetection:0}),Ke})();const Ee={transformPanel:(0,Re.X$)("transformPanel",[(0,Re.eR)("void => enter-dropdown",(0,Re.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Re.F4)([(0,Re.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Re.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Re.eR)("void => enter-dialog",(0,Re.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Re.F4)([(0,Re.oB)({opacity:0,transform:"scale(0.7)"}),(0,Re.oB)({transform:"none",opacity:1})]))),(0,Re.eR)("* => void",(0,Re.jt)("100ms linear",(0,Re.oB)({opacity:0})))]),fadeInCalendar:(0,Re.X$)("fadeInCalendar",[(0,Re.SB)("void",(0,Re.oB)({opacity:0})),(0,Re.SB)("enter",(0,Re.oB)({opacity:1})),(0,Re.eR)("void => *",(0,Re.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ge=0;const U=new g.OlP("mat-datepicker-scroll-strategy"),ie={provide:U,deps:[b.aV],useFactory:function k(Ke){return()=>Ke.scrollStrategies.reposition()}},ce=(0,C.pj)(class{constructor(Ke){this._elementRef=Ke}});let He=(()=>{class Ke extends ce{constructor(F,Ye,gt,Dt,ri,ti){super(F),this._changeDetectorRef=Ye,this._globalModel=gt,this._dateAdapter=Dt,this._rangeSelectionStrategy=ri,this._subscriptions=new P.w,this._animationDone=new I.xQ,this._actionsPortal=null,this._closeButtonText=ti.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,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(F){const Ye=this._model.selection,gt=F.value,Dt=Ye instanceof H;if(Dt&&this._rangeSelectionStrategy){const ri=this._rangeSelectionStrategy.selectionFinished(gt,Ye,F.event);this._model.updateSelection(ri,this)}else gt&&(Dt||!this._dateAdapter.sameDate(gt,Ye))&&this._model.add(gt);(!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)}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(V),g.Y36(C._A),g.Y36(o,8),g.Y36(lt))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker-content"]],viewQuery:function(F,Ye){if(1&F&&g.Gf(Lt,5),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye._calendar=gt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(F,Ye){1&F&&g.WFA("@transformPanel.done",function(){return Ye._animationDone.next()}),2&F&&(g.d8E("@transformPanel",Ye._animationState),g.ekj("mat-datepicker-content-touch",Ye.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[g.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(F,Ye){if(1&F&&(g.TgZ(0,"div",0),g.TgZ(1,"mat-calendar",1),g.NdJ("yearSelected",function(Dt){return Ye.datepicker._selectYear(Dt)})("monthSelected",function(Dt){return Ye.datepicker._selectMonth(Dt)})("viewChanged",function(Dt){return Ye.datepicker._viewChanged(Dt)})("_userSelection",function(Dt){return Ye._handleUserSelection(Dt)}),g.qZA(),g.YNc(2,W,0,0,"ng-template",2),g.TgZ(3,"button",3),g.NdJ("focus",function(){return Ye._closeButtonFocused=!0})("blur",function(){return Ye._closeButtonFocused=!1})("click",function(){return Ye.datepicker.close()}),g._uU(4),g.qZA(),g.qZA()),2&F){let gt;g.ekj("mat-datepicker-content-container-with-custom-header",Ye.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ye._actionsPortal),g.uIk("aria-modal",!0)("aria-labelledby",null!==(gt=Ye._dialogLabelId)&&void 0!==gt?gt:void 0),g.xp6(1),g.Q6J("id",Ye.datepicker.id)("ngClass",Ye.datepicker.panelClass)("startAt",Ye.datepicker.startAt)("startView",Ye.datepicker.startView)("minDate",Ye.datepicker._getMinDate())("maxDate",Ye.datepicker._getMaxDate())("dateFilter",Ye.datepicker._getDateFilter())("headerComponent",Ye.datepicker.calendarHeaderComponent)("selected",Ye._getSelected())("dateClass",Ye.datepicker.dateClass)("comparisonStart",Ye.comparisonStart)("comparisonEnd",Ye.comparisonEnd)("@fadeInCalendar","enter"),g.xp6(1),g.Q6J("cdkPortalOutlet",Ye._actionsPortal),g.xp6(1),g.ekj("cdk-visually-hidden",!Ye._closeButtonFocused),g.Q6J("color",Ye.color||"primary"),g.xp6(1),g.Oqu(Ye._closeButtonText)}},directives:[Lt,A.lW,e.mK,w.mk,_.Pl],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}}\n"],encapsulation:2,data:{animation:[Ee.transformPanel,Ee.fadeInCalendar]},changeDetection:0}),Ke})(),ct=(()=>{class Ke{constructor(F,Ye,gt,Dt,ri,ti,Di){this._overlay=F,this._ngZone=Ye,this._viewContainerRef=gt,this._dateAdapter=ri,this._dir=ti,this._model=Di,this._inputStateChanges=P.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this.openedStream=new g.vpe,this.closedStream=new g.vpe,this._opened=!1,this.id="mat-datepicker-"+Ge++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new I.xQ,this._scrollStrategy=Dt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(F){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(F){this._color=F}get touchUi(){return this._touchUi}set touchUi(F){this._touchUi=(0,Me.Ig)(F)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(F){const Ye=(0,Me.Ig)(F);Ye!==this._disabled&&(this._disabled=Ye,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(F){this._restoreFocus=(0,Me.Ig)(F)}get panelClass(){return this._panelClass}set panelClass(F){this._panelClass=(0,Me.du)(F)}get opened(){return this._opened}set opened(F){(0,Me.Ig)(F)?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(F){const Ye=F.xPosition||F.yPosition;if(Ye&&!Ye.firstChange&&this._overlayRef){const gt=this._overlayRef.getConfig().positionStrategy;gt instanceof b._G&&(this._setConnectedPositions(gt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(F){this._model.add(F)}_selectYear(F){this.yearSelected.emit(F)}_selectMonth(F){this.monthSelected.emit(F)}_viewChanged(F){this.viewChanged.emit(F)}registerInput(F){return this._inputStateChanges.unsubscribe(),this.datepickerInput=F,this._inputStateChanges=F.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(F){this._actionsPortal=F}removeActions(F){F===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,oe.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Ye=this._componentRef.instance;Ye._startExitAnimation(),Ye._animationDone.pipe((0,G.q)(1)).subscribe(()=>this._destroyOverlay())}const F=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(F)):F()}_applyPendingSelection(){var F,Ye;null===(Ye=null===(F=this._componentRef)||void 0===F?void 0:F.instance)||void 0===Ye||Ye._applyPendingSelection()}_forwardContentValues(F){F.datepicker=this,F.color=this.color,F._actionsPortal=this._actionsPortal,F._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const F=this.touchUi,Ye=new _.C5(He,this._viewContainerRef),gt=this._overlayRef=this._overlay.create(new b.X_({positionStrategy:F?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[F?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:F?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(F?"dialog":"popup")}));this._getCloseStream(gt).subscribe(Dt=>{Dt&&Dt.preventDefault(),this.close()}),this._componentRef=gt.attach(Ye),this._forwardContentValues(this._componentRef.instance),F||this._ngZone.onStable.pipe((0,G.q)(1)).subscribe(()=>gt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const F=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(F)}_setConnectedPositions(F){const Ye="end"===this.xPosition?"end":"start",gt="start"===Ye?"end":"start",Dt="above"===this.yPosition?"bottom":"top",ri="top"===Dt?"bottom":"top";return F.withPositions([{originX:Ye,originY:ri,overlayX:Ye,overlayY:Dt},{originX:Ye,originY:Dt,overlayX:Ye,overlayY:ri},{originX:gt,originY:ri,overlayX:gt,overlayY:Dt},{originX:gt,originY:Dt,overlayX:gt,overlayY:ri}])}_getCloseStream(F){return(0,m.T)(F.backdropClick(),F.detachments(),F.keydownEvents().pipe((0,ge.h)(Ye=>Ye.keyCode===O.hY&&!(0,O.Vb)(Ye)||this.datepickerInput&&(0,O.Vb)(Ye,"altKey")&&Ye.keyCode===O.LH)))}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(b.aV),g.Y36(g.R0b),g.Y36(g.s_b),g.Y36(U),g.Y36(C._A,8),g.Y36(J.Is,8),g.Y36(V))},Ke.\u0275dir=g.lG2({type:Ke,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:[g.TTD]}),Ke})(),bt=(()=>{class Ke extends ct{}return Ke.\u0275fac=function(){let vt;return function(Ye){return(vt||(vt=g.n5z(Ke)))(Ye||Ke)}}(),Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[g._Bn([Ae,{provide:ct,useExisting:Ke}]),g.qOj],decls:0,vars:0,template:function(F,Ye){},encapsulation:2,changeDetection:0}),Ke})();class xt{constructor(vt,F){this.target=vt,this.targetElement=F,this.value=this.target.value}}let Yt=(()=>{class Ke{constructor(F,Ye,gt){this._elementRef=F,this._dateAdapter=Ye,this._dateFormats=gt,this.dateChange=new g.vpe,this.dateInput=new g.vpe,this.stateChanges=new I.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=P.w.EMPTY,this._localeSubscription=P.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value));return!ri||this._matchesFilter(ri)?null:{matDatepickerFilter:!0}},this._minValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),ti=this._getMinDate();return!ti||!ri||this._dateAdapter.compareDate(ti,ri)<=0?null:{matDatepickerMin:{min:ti,actual:ri}}},this._maxValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),ti=this._getMaxDate();return!ti||!ri||this._dateAdapter.compareDate(ti,ri)>=0?null:{matDatepickerMax:{max:ti,actual:ri}}},this._lastValueValid=!1,this._localeSubscription=Ye.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(F){this._assignValueProgrammatically(F)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(F){const Ye=(0,Me.Ig)(F),gt=this._elementRef.nativeElement;this._disabled!==Ye&&(this._disabled=Ye,this.stateChanges.next(void 0)),Ye&&this._isInitialized&>.blur&>.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(F){this._model=F,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Ye=>{if(this._shouldHandleChangeEvent(Ye)){const gt=this._getValueFromModel(Ye.selection);this._lastValueValid=this._isValidValue(gt),this._cvaOnChange(gt),this._onTouched(),this._formatValue(gt),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)),this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(F){(function It(Ke,vt){const F=Object.keys(Ke);for(let Ye of F){const{previousValue:gt,currentValue:Dt}=Ke[Ye];if(!vt.isDateInstance(gt)||!vt.isDateInstance(Dt))return!0;if(!vt.sameDate(gt,Dt))return!0}return!1})(F,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(F){this._validatorOnChange=F}validate(F){return this._validator?this._validator(F):null}writeValue(F){this._assignValueProgrammatically(F)}registerOnChange(F){this._cvaOnChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F}_onKeydown(F){F.altKey&&F.keyCode===O.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),F.preventDefault())}_onInput(F){const Ye=this._lastValueValid;let gt=this._dateAdapter.parse(F,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(gt),gt=this._dateAdapter.getValidDateOrNull(gt),this._dateAdapter.sameDate(gt,this.value)?(F&&!this.value&&this._cvaOnChange(gt),Ye!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(gt),this._cvaOnChange(gt),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(F){this._elementRef.nativeElement.value=F?this._dateAdapter.format(F,this._dateFormats.display.dateInput):""}_assignValue(F){this._model?(this._assignValueToModel(F),this._pendingValue=null):this._pendingValue=F}_isValidValue(F){return!F||this._dateAdapter.isValid(F)}_parentDisabled(){return!1}_assignValueProgrammatically(F){F=this._dateAdapter.deserialize(F),this._lastValueValid=this._isValidValue(F),F=this._dateAdapter.getValidDateOrNull(F),this._assignValue(F),this._formatValue(F)}_matchesFilter(F){const Ye=this._getDateFilter();return!Ye||Ye(F)}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.SBq),g.Y36(C._A,8),g.Y36(C.sG,8))},Ke.\u0275dir=g.lG2({type:Ke,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[g.TTD]}),Ke})();const Rt={provide:T.JU,useExisting:(0,g.Gpc)(()=>Bt),multi:!0},Et={provide:T.Cf,useExisting:(0,g.Gpc)(()=>Bt),multi:!0};let Bt=(()=>{class Ke extends Yt{constructor(F,Ye,gt,Dt){super(F,Ye,gt),this._formField=Dt,this._closedSubscription=P.w.EMPTY,this._validator=T.kI.compose(super._getValidators())}set matDatepicker(F){F&&(this._datepicker=F,this._closedSubscription=F.closedStream.subscribe(()=>this._onTouched()),this._registerModel(F.registerInput(this)))}get min(){return this._min}set min(F){const Ye=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F));this._dateAdapter.sameDate(Ye,this._min)||(this._min=Ye,this._validatorOnChange())}get max(){return this._max}set max(F){const Ye=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F));this._dateAdapter.sameDate(Ye,this._max)||(this._max=Ye,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(F){const Ye=this._matchesFilter(this.value);this._dateFilter=F,this._matchesFilter(this.value)!==Ye&&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(F){return F}_assignValueToModel(F){this._model&&this._model.updateSelection(F,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(F){return F.source!==this}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.SBq),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(j.G_,8))},Ke.\u0275dir=g.lG2({type:Ke,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(F,Ye){1&F&&g.NdJ("input",function(Dt){return Ye._onInput(Dt.target.value)})("change",function(){return Ye._onChange()})("blur",function(){return Ye._onBlur()})("keydown",function(Dt){return Ye._onKeydown(Dt)}),2&F&&(g.Ikx("disabled",Ye.disabled),g.uIk("aria-haspopup",Ye._datepicker?"dialog":null)("aria-owns",(null==Ye._datepicker?null:Ye._datepicker.opened)&&Ye._datepicker.id||null)("min",Ye.min?Ye._dateAdapter.toIso8601(Ye.min):null)("max",Ye.max?Ye._dateAdapter.toIso8601(Ye.max):null)("data-mat-calendar",Ye._datepicker?Ye._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[g._Bn([Rt,Et,{provide:Y.Jk,useExisting:Ke}]),g.qOj]}),Ke})(),Jt=(()=>{class Ke{}return Ke.\u0275fac=function(F){return new(F||Ke)},Ke.\u0275dir=g.lG2({type:Ke,selectors:[["","matDatepickerToggleIcon",""]]}),Ke})(),ai=(()=>{class Ke{constructor(F,Ye,gt){this._intl=F,this._changeDetectorRef=Ye,this._stateChanges=P.w.EMPTY;const Dt=Number(gt);this.tabIndex=Dt||0===Dt?Dt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(F){this._disabled=(0,Me.Ig)(F)}ngOnChanges(F){F.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(F){this.datepicker&&!this.disabled&&(this.datepicker.open(),F.stopPropagation())}_watchStateChanges(){const F=this.datepicker?this.datepicker.stateChanges:(0,L.of)(),Ye=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,L.of)(),gt=this.datepicker?(0,m.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,L.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,m.T)(this._intl.changes,F,Ye,gt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(lt),g.Y36(g.sBO),g.$8M("tabindex"))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker-toggle"]],contentQueries:function(F,Ye,gt){if(1&F&&g.Suo(gt,Jt,5),2&F){let Dt;g.iGM(Dt=g.CRH())&&(Ye._customIcon=Dt.first)}},viewQuery:function(F,Ye){if(1&F&&g.Gf(R,5),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye._button=gt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(F,Ye){1&F&&g.NdJ("click",function(Dt){return Ye._open(Dt)}),2&F&&(g.uIk("tabindex",null)("data-mat-calendar",Ye.datepicker?Ye.datepicker.id:null),g.ekj("mat-datepicker-toggle-active",Ye.datepicker&&Ye.datepicker.opened)("mat-accent",Ye.datepicker&&"accent"===Ye.datepicker.color)("mat-warn",Ye.datepicker&&"warn"===Ye.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[g.TTD],ngContentSelectors:Ie,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(F,Ye){1&F&&(g.F$t(be),g.TgZ(0,"button",0,1),g.YNc(2,me,2,0,"svg",2),g.Hsn(3),g.qZA()),2&F&&(g.Q6J("disabled",Ye.disabled)("disableRipple",Ye.disableRipple),g.uIk("aria-haspopup",Ye.datepicker?"dialog":null)("aria-label",Ye.ariaLabel||Ye._intl.openCalendarLabel)("tabindex",Ye.disabled?-1:Ye.tabIndex),g.xp6(2),g.Q6J("ngIf",!Ye._customIcon))},directives:[A.lW,w.O5],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}\n"],encapsulation:2,changeDetection:0}),Ke})(),ot=(()=>{class Ke{}return Ke.\u0275fac=function(F){return new(F||Ke)},Ke.\u0275mod=g.oAB({type:Ke}),Ke.\u0275inj=g.cJS({providers:[lt,ie],imports:[[w.ez,A.ot,b.U8,e.rt,_.eL,C.BQ],E.ZD]}),Ke})()},48966:($e,_e,p)=>{"use strict";p.d(_e,{WI:()=>Le,uw:()=>W,H8:()=>Se,vA:()=>Re,xY:()=>pe,Is:()=>Je,so:()=>ue,uh:()=>Ie});var e=p(92845),b=p(47429),_=p(5e3),w=p(90508),g=p(50226),A=p(8929),E=p(88514),C=p(42654),I=p(21086),P=p(92198),m=p(72986),L=p(1059),O=p(70925),G=p(69808),ne=p(41777),ge=p(15664),J=p(91159),Me=p(76360);function oe(nt,Ve){}class Re{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const T={dialogContainer:(0,ne.X$)("dialogContainer",[(0,ne.SB)("void, exit",(0,ne.oB)({opacity:0,transform:"scale(0.7)"})),(0,ne.SB)("enter",(0,ne.oB)({transform:"none"})),(0,ne.eR)("* => enter",(0,ne.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ne.oB)({transform:"none",opacity:1}))),(0,ne.eR)("* => void, * => exit",(0,ne.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ne.oB)({opacity:0})))])};let Y=(()=>{class nt extends b.en{constructor(X,z,Q,D,H,V,xe,Qe){super(),this._elementRef=X,this._focusTrapFactory=z,this._changeDetectorRef=Q,this._config=H,this._interactivityChecker=V,this._ngZone=xe,this._focusMonitor=Qe,this._animationStateChanged=new _.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Te=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Te)),this._ariaLabelledBy=H.ariaLabelledBy||null,this._document=D}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(X){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(X)}attachTemplatePortal(X){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(X)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(X,z){this._interactivityChecker.isFocusable(X)||(X.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{X.addEventListener("blur",()=>X.removeAttribute("tabindex")),X.addEventListener("mousedown",()=>X.removeAttribute("tabindex"))})),X.focus(z)}_focusByCssSelector(X,z){let Q=this._elementRef.nativeElement.querySelector(X);Q&&this._forceFocus(Q,z)}_trapFocus(){const X=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||X.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(z=>{z||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const X=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&X&&"function"==typeof X.focus){const z=(0,O.ht)(),Q=this._elementRef.nativeElement;(!z||z===this._document.body||z===Q||Q.contains(z))&&(this._focusMonitor?(this._focusMonitor.focusVia(X,this._closeInteractionType),this._closeInteractionType=null):X.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,O.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const X=this._elementRef.nativeElement,z=(0,O.ht)();return X===z||X.contains(z)}}return nt.\u0275fac=function(X){return new(X||nt)(_.Y36(_.SBq),_.Y36(ge.qV),_.Y36(_.sBO),_.Y36(G.K0,8),_.Y36(Re),_.Y36(ge.ic),_.Y36(_.R0b),_.Y36(ge.tE))},nt.\u0275dir=_.lG2({type:nt,viewQuery:function(X,z){if(1&X&&_.Gf(b.Pl,7),2&X){let Q;_.iGM(Q=_.CRH())&&(z._portalOutlet=Q.first)}},features:[_.qOj]}),nt})(),q=(()=>{class nt extends Y{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:X,totalTime:z}){"enter"===X?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:z})):"exit"===X&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:z}))}_onAnimationStart({toState:X,totalTime:z}){"enter"===X?this._animationStateChanged.next({state:"opening",totalTime:z}):("exit"===X||"void"===X)&&this._animationStateChanged.next({state:"closing",totalTime:z})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return nt.\u0275fac=function(){let Ve;return function(z){return(Ve||(Ve=_.n5z(nt)))(z||nt)}}(),nt.\u0275cmp=_.Xpm({type:nt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(X,z){1&X&&_.WFA("@dialogContainer.start",function(D){return z._onAnimationStart(D)})("@dialogContainer.done",function(D){return z._onAnimationDone(D)}),2&X&&(_.Ikx("id",z._id),_.uIk("role",z._config.role)("aria-labelledby",z._config.ariaLabel?null:z._ariaLabelledBy)("aria-label",z._config.ariaLabel)("aria-describedby",z._config.ariaDescribedBy||null),_.d8E("@dialogContainer",z._state))},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(X,z){1&X&&_.YNc(0,oe,0,0,"ng-template",0)},directives:[b.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[T.dialogContainer]}}),nt})(),te=0;class ue{constructor(Ve,X,z="mat-dialog-"+te++){this._overlayRef=Ve,this._containerInstance=X,this.id=z,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A.xQ,this._afterClosed=new A.xQ,this._beforeClosed=new A.xQ,this._state=0,X._id=z,X._animationStateChanged.pipe((0,P.h)(Q=>"opened"===Q.state),(0,m.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),X._animationStateChanged.pipe((0,P.h)(Q=>"closed"===Q.state),(0,m.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ve.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Ve.keydownEvents().pipe((0,P.h)(Q=>Q.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(Q))).subscribe(Q=>{Q.preventDefault(),de(this,"keyboard")}),Ve.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():de(this,"mouse")})}close(Ve){this._result=Ve,this._containerInstance._animationStateChanged.pipe((0,P.h)(X=>"closing"===X.state),(0,m.q)(1)).subscribe(X=>{this._beforeClosed.next(Ve),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),X.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Ve){let X=this._getPositionStrategy();return Ve&&(Ve.left||Ve.right)?Ve.left?X.left(Ve.left):X.right(Ve.right):X.centerHorizontally(),Ve&&(Ve.top||Ve.bottom)?Ve.top?X.top(Ve.top):X.bottom(Ve.bottom):X.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Ve="",X=""){return this._overlayRef.updateSize({width:Ve,height:X}),this._overlayRef.updatePosition(),this}addPanelClass(Ve){return this._overlayRef.addPanelClass(Ve),this}removePanelClass(Ve){return this._overlayRef.removePanelClass(Ve),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function de(nt,Ve,X){return void 0!==nt._containerInstance&&(nt._containerInstance._closeInteractionType=Ve),nt.close(X)}const Le=new _.OlP("MatDialogData"),Ue=new _.OlP("mat-dialog-default-options"),ze=new _.OlP("mat-dialog-scroll-strategy"),ye={provide:ze,deps:[e.aV],useFactory:function je(nt){return()=>nt.scrollStrategies.block()}};let Be=(()=>{class nt{constructor(X,z,Q,D,H,V,xe,Qe,Te,Ae){this._overlay=X,this._injector=z,this._defaultOptions=Q,this._parentDialog=D,this._overlayContainer=H,this._dialogRefConstructor=xe,this._dialogContainerType=Qe,this._dialogDataToken=Te,this._animationMode=Ae,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A.xQ,this._afterOpenedAtThisLevel=new A.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,E.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=V}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const X=this._parentDialog;return X?X._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(X,z){if(z=function R(nt,Ve){return Object.assign(Object.assign({},Ve),nt)}(z,this._defaultOptions||new Re),z.id&&this.getDialogById(z.id),this._dialogAnimatingOpen)return this._lastDialogRef;const Q=this._createOverlay(z),D=this._attachDialogContainer(Q,z);if("NoopAnimations"!==this._animationMode){const V=D._animationStateChanged.subscribe(xe=>{"opening"===xe.state&&(this._dialogAnimatingOpen=!0),"opened"===xe.state&&(this._dialogAnimatingOpen=!1,V.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new C.w),this._animationStateSubscriptions.add(V)}const H=this._attachDialogContent(X,D,Q,z);return this._lastDialogRef=H,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(H),H.afterClosed().subscribe(()=>this._removeOpenDialog(H)),this.afterOpened.next(H),D._initializeWithAttachedContent(),H}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(X){return this.openDialogs.find(z=>z.id===X)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(X){const z=this._getOverlayConfig(X);return this._overlay.create(z)}_getOverlayConfig(X){const z=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:X.scrollStrategy||this._scrollStrategy(),panelClass:X.panelClass,hasBackdrop:X.hasBackdrop,direction:X.direction,minWidth:X.minWidth,minHeight:X.minHeight,maxWidth:X.maxWidth,maxHeight:X.maxHeight,disposeOnNavigation:X.closeOnNavigation});return X.backdropClass&&(z.backdropClass=X.backdropClass),z}_attachDialogContainer(X,z){const D=_.zs3.create({parent:z&&z.viewContainerRef&&z.viewContainerRef.injector||this._injector,providers:[{provide:Re,useValue:z}]}),H=new b.C5(this._dialogContainerType,z.viewContainerRef,D,z.componentFactoryResolver);return X.attach(H).instance}_attachDialogContent(X,z,Q,D){const H=new this._dialogRefConstructor(Q,z,D.id);if(X instanceof _.Rgc)z.attachTemplatePortal(new b.UE(X,null,{$implicit:D.data,dialogRef:H}));else{const V=this._createInjector(D,H,z),xe=z.attachComponentPortal(new b.C5(X,D.viewContainerRef,V));H.componentInstance=xe.instance}return H.updateSize(D.width,D.height).updatePosition(D.position),H}_createInjector(X,z,Q){const D=X&&X.viewContainerRef&&X.viewContainerRef.injector,H=[{provide:this._dialogContainerType,useValue:Q},{provide:this._dialogDataToken,useValue:X.data},{provide:this._dialogRefConstructor,useValue:z}];return X.direction&&(!D||!D.get(g.Is,null,_.XFs.Optional))&&H.push({provide:g.Is,useValue:{value:X.direction,change:(0,I.of)()}}),_.zs3.create({parent:D||this._injector,providers:H})}_removeOpenDialog(X){const z=this.openDialogs.indexOf(X);z>-1&&(this.openDialogs.splice(z,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Q,D)=>{Q?D.setAttribute("aria-hidden",Q):D.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const X=this._overlayContainer.getContainerElement();if(X.parentElement){const z=X.parentElement.children;for(let Q=z.length-1;Q>-1;Q--){let D=z[Q];D!==X&&"SCRIPT"!==D.nodeName&&"STYLE"!==D.nodeName&&!D.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(D,D.getAttribute("aria-hidden")),D.setAttribute("aria-hidden","true"))}}}_closeDialogs(X){let z=X.length;for(;z--;)X[z].close()}}return nt.\u0275fac=function(X){_.$Z()},nt.\u0275dir=_.lG2({type:nt}),nt})(),W=(()=>{class nt extends Be{constructor(X,z,Q,D,H,V,xe,Qe){super(X,z,D,V,xe,H,ue,q,Le,Qe)}}return nt.\u0275fac=function(X){return new(X||nt)(_.LFG(e.aV),_.LFG(_.zs3),_.LFG(G.Ye,8),_.LFG(Ue,8),_.LFG(ze),_.LFG(nt,12),_.LFG(e.Xj),_.LFG(Me.Qb,8))},nt.\u0275prov=_.Yz7({token:nt,factory:nt.\u0275fac}),nt})(),me=0,Ie=(()=>{class nt{constructor(X,z,Q){this._dialogRef=X,this._elementRef=z,this._dialog=Q,this.id="mat-dialog-title-"+me++}ngOnInit(){this._dialogRef||(this._dialogRef=function Xe(nt,Ve){let X=nt.nativeElement.parentElement;for(;X&&!X.classList.contains("mat-dialog-container");)X=X.parentElement;return X?Ve.find(z=>z.id===X.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const X=this._dialogRef._containerInstance;X&&!X._ariaLabelledBy&&(X._ariaLabelledBy=this.id)})}}return nt.\u0275fac=function(X){return new(X||nt)(_.Y36(ue,8),_.Y36(_.SBq),_.Y36(W))},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(X,z){2&X&&_.Ikx("id",z.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),nt})(),pe=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),nt})(),Se=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),nt})(),Je=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275mod=_.oAB({type:nt}),nt.\u0275inj=_.cJS({providers:[W,ye],imports:[[e.U8,b.eL,w.BQ],w.BQ]}),nt})()},4834:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>w,t:()=>g});var e=p(5e3),b=p(63191),_=p(90508);let w=(()=>{class A{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(C){this._vertical=(0,b.Ig)(C)}get inset(){return this._inset}set inset(C){this._inset=(0,b.Ig)(C)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(C,I){2&C&&(e.uIk("aria-orientation",I.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",I.vertical)("mat-divider-horizontal",!I.vertical)("mat-divider-inset",I.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(C,I){},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}\n"],encapsulation:2,changeDetection:0}),A})(),g=(()=>{class A{}return A.\u0275fac=function(C){return new(C||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[_.BQ],_.BQ]}),A})()},81125:($e,_e,p)=>{"use strict";p.d(_e,{pp:()=>Ve,To:()=>X,ib:()=>be,HS:()=>W,u4:()=>Je,yz:()=>Xe,yK:()=>nt});var e=p(5e3),b=p(63191),_=p(8929),w=p(42654),g=p(20449);let A=0;const E=new e.OlP("CdkAccordion");let C=(()=>{class z{constructor(){this._stateChanges=new _.xQ,this._openCloseAllActions=new _.xQ,this.id="cdk-accordion-"+A++,this._multi=!1}get multi(){return this._multi}set multi(D){this._multi=(0,b.Ig)(D)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(D){this._stateChanges.next(D)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275dir=e.lG2({type:z,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:E,useExisting:z}]),e.TTD]}),z})(),I=0,P=(()=>{class z{constructor(D,H,V){this.accordion=D,this._changeDetectorRef=H,this._expansionDispatcher=V,this._openCloseAllSubscription=w.w.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-"+I++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=V.listen((xe,Qe)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Qe&&this.id!==xe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(D){D=(0,b.Ig)(D),this._expanded!==D&&(this._expanded=D,this.expandedChange.emit(D),D?(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(D){this._disabled=(0,b.Ig)(D)}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(D=>{this.disabled||(this.expanded=D)})}}return z.\u0275fac=function(D){return new(D||z)(e.Y36(E,12),e.Y36(e.sBO),e.Y36(g.A8))},z.\u0275dir=e.lG2({type:z,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:E,useValue:void 0}])]}),z})(),m=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({}),z})();var L=p(47429),O=p(69808),G=p(90508),ne=p(15664),ge=p(75778),J=p(1059),Me=p(92198),oe=p(72986),Re=p(91159),T=p(76360),j=p(68896),Y=p(36787),q=p(41777);const te=["body"];function ue(z,Q){}const de=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Le=["mat-expansion-panel-header","*","mat-action-row"];function Ue(z,Q){if(1&z&&e._UZ(0,"span",2),2&z){const D=e.oxw();e.Q6J("@indicatorRotate",D._getExpandedState())}}const ze=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],le=["mat-panel-title","mat-panel-description","*"],je=new e.OlP("MAT_ACCORDION"),ye="225ms cubic-bezier(0.4,0.0,0.2,1)",Be={indicatorRotate:(0,q.X$)("indicatorRotate",[(0,q.SB)("collapsed, void",(0,q.oB)({transform:"rotate(0deg)"})),(0,q.SB)("expanded",(0,q.oB)({transform:"rotate(180deg)"})),(0,q.eR)("expanded <=> collapsed, void => collapsed",(0,q.jt)(ye))]),bodyExpansion:(0,q.X$)("bodyExpansion",[(0,q.SB)("collapsed, void",(0,q.oB)({height:"0px",visibility:"hidden"})),(0,q.SB)("expanded",(0,q.oB)({height:"*",visibility:"visible"})),(0,q.eR)("expanded <=> collapsed, void => collapsed",(0,q.jt)(ye))])};let W=(()=>{class z{constructor(D){this._template=D}}return z.\u0275fac=function(D){return new(D||z)(e.Y36(e.Rgc))},z.\u0275dir=e.lG2({type:z,selectors:[["ng-template","matExpansionPanelContent",""]]}),z})(),R=0;const me=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let be=(()=>{class z extends P{constructor(D,H,V,xe,Qe,Te,Ae){super(D,H,V),this._viewContainerRef=xe,this._animationMode=Te,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new _.xQ,this._headerId="mat-expansion-panel-header-"+R++,this._bodyAnimationDone=new _.xQ,this.accordion=D,this._document=Qe,this._bodyAnimationDone.pipe((0,ge.x)((ae,i)=>ae.fromState===i.fromState&&ae.toState===i.toState)).subscribe(ae=>{"void"!==ae.fromState&&("expanded"===ae.toState?this.afterExpand.emit():"collapsed"===ae.toState&&this.afterCollapse.emit())}),Ae&&(this.hideToggle=Ae.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(D){this._hideToggle=(0,b.Ig)(D)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(D){this._togglePosition=D}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,J.O)(null),(0,Me.h)(()=>this.expanded&&!this._portal),(0,oe.q)(1)).subscribe(()=>{this._portal=new L.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(D){this._inputChanges.next(D)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const D=this._document.activeElement,H=this._body.nativeElement;return D===H||H.contains(D)}return!1}}return z.\u0275fac=function(D){return new(D||z)(e.Y36(je,12),e.Y36(e.sBO),e.Y36(g.A8),e.Y36(e.s_b),e.Y36(O.K0),e.Y36(T.Qb,8),e.Y36(me,8))},z.\u0275cmp=e.Xpm({type:z,selectors:[["mat-expansion-panel"]],contentQueries:function(D,H,V){if(1&D&&e.Suo(V,W,5),2&D){let xe;e.iGM(xe=e.CRH())&&(H._lazyContent=xe.first)}},viewQuery:function(D,H){if(1&D&&e.Gf(te,5),2&D){let V;e.iGM(V=e.CRH())&&(H._body=V.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(D,H){2&D&&e.ekj("mat-expanded",H.expanded)("_mat-animation-noopable","NoopAnimations"===H._animationMode)("mat-expansion-panel-spacing",H._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:je,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:Le,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(D,H){1&D&&(e.F$t(de),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(xe){return H._bodyAnimationDone.next(xe)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,ue,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&D&&(e.xp6(1),e.Q6J("@bodyExpansion",H._getExpandedState())("id",H.id),e.uIk("aria-labelledby",H._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",H._portal))},directives:[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-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Be.bodyExpansion]},changeDetection:0}),z})();class pe{}const Se=(0,G.sb)(pe);let Xe=(()=>{class z extends Se{constructor(D,H,V,xe,Qe,Te,Ae){super(),this.panel=D,this._element=H,this._focusMonitor=V,this._changeDetectorRef=xe,this._animationMode=Te,this._parentChangeSubscription=w.w.EMPTY;const ae=D.accordion?D.accordion._stateChanges.pipe((0,Me.h)(i=>!(!i.hideToggle&&!i.togglePosition))):j.E;this.tabIndex=parseInt(Ae||"")||0,this._parentChangeSubscription=(0,Y.T)(D.opened,D.closed,ae,D._inputChanges.pipe((0,Me.h)(i=>!!(i.hideToggle||i.disabled||i.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),D.closed.pipe((0,Me.h)(()=>D._containsFocus())).subscribe(()=>V.focusVia(H,"program")),Qe&&(this.expandedHeight=Qe.expandedHeight,this.collapsedHeight=Qe.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 D=this._isExpanded();return D&&this.expandedHeight?this.expandedHeight:!D&&this.collapsedHeight?this.collapsedHeight:null}_keydown(D){switch(D.keyCode){case Re.L_:case Re.K5:(0,Re.Vb)(D)||(D.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(D))}}focus(D,H){D?this._focusMonitor.focusVia(this._element,D,H):this._element.nativeElement.focus(H)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(D=>{D&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return z.\u0275fac=function(D){return new(D||z)(e.Y36(be,1),e.Y36(e.SBq),e.Y36(ne.tE),e.Y36(e.sBO),e.Y36(me,8),e.Y36(T.Qb,8),e.$8M("tabindex"))},z.\u0275cmp=e.Xpm({type:z,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(D,H){1&D&&e.NdJ("click",function(){return H._toggle()})("keydown",function(xe){return H._keydown(xe)}),2&D&&(e.uIk("id",H.panel._headerId)("tabindex",H.tabIndex)("aria-controls",H._getPanelId())("aria-expanded",H._isExpanded())("aria-disabled",H.panel.disabled),e.Udp("height",H._getHeaderHeight()),e.ekj("mat-expanded",H._isExpanded())("mat-expansion-toggle-indicator-after","after"===H._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===H._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===H._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:le,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(D,H){1&D&&(e.F$t(ze),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,Ue,1,1,"span",1)),2&D&&(e.xp6(4),e.Q6J("ngIf",H._showToggle()))},directives:[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[Be.indicatorRotate]},changeDetection:0}),z})(),Je=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275dir=e.lG2({type:z,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),z})(),nt=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275dir=e.lG2({type:z,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),z})(),Ve=(()=>{class z extends C{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(D){this._hideToggle=(0,b.Ig)(D)}ngAfterContentInit(){this._headers.changes.pipe((0,J.O)(this._headers)).subscribe(D=>{this._ownHeaders.reset(D.filter(H=>H.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ne.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(D){this._keyManager.onKeydown(D)}_handleHeaderFocus(D){this._keyManager.updateActiveItem(D)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return z.\u0275fac=function(){let Q;return function(H){return(Q||(Q=e.n5z(z)))(H||z)}}(),z.\u0275dir=e.lG2({type:z,selectors:[["mat-accordion"]],contentQueries:function(D,H,V){if(1&D&&e.Suo(V,Xe,5),2&D){let xe;e.iGM(xe=e.CRH())&&(H._headers=xe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(D,H){2&D&&e.ekj("mat-accordion-multi",H.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:je,useExisting:z}]),e.qOj]}),z})(),X=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[[O.ez,G.BQ,m,L.eL]]}),z})()},67322:($e,_e,p)=>{"use strict";p.d(_e,{G_:()=>Te,TO:()=>Be,KE:()=>Ae,Eo:()=>R,lN:()=>ae,bx:()=>Xe,hX:()=>Je,UY:()=>nt,R9:()=>Q});var e=p(17144),b=p(69808),_=p(5e3),w=p(90508),g=p(63191),A=p(8929),E=p(36787),C=p(23753),I=p(1059),P=p(7625),m=p(72986),L=p(41777),O=p(76360),G=p(50226),ne=p(70925);const ge=["connectionContainer"],J=["inputContainer"],Me=["label"];function oe(i,o){1&i&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15),_._UZ(3,"div",16),_._UZ(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15),_._UZ(7,"div",16),_._UZ(8,"div",17),_.qZA(),_.BQk())}function Re(i,o){if(1&i){const d=_.EpF();_.TgZ(0,"div",19),_.NdJ("cdkObserveContent",function(){return _.CHM(d),_.oxw().updateOutlineGap()}),_.Hsn(1,1),_.qZA()}if(2&i){const d=_.oxw();_.Q6J("cdkObserveContentDisabled","outline"!=d.appearance)}}function T(i,o){if(1&i&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&i){const d=_.oxw(2);_.xp6(3),_.Oqu(d._control.placeholder)}}function j(i,o){1&i&&_.Hsn(0,3,["*ngSwitchCase","true"])}function Y(i,o){1&i&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function q(i,o){if(1&i){const d=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){return _.CHM(d),_.oxw().updateOutlineGap()}),_.YNc(2,T,4,1,"ng-container",12),_.YNc(3,j,1,0,"ng-content",12),_.YNc(4,Y,2,0,"span",22),_.qZA()}if(2&i){const d=_.oxw();_.ekj("mat-empty",d._control.empty&&!d._shouldAlwaysFloat())("mat-form-field-empty",d._control.empty&&!d._shouldAlwaysFloat())("mat-accent","accent"==d.color)("mat-warn","warn"==d.color),_.Q6J("cdkObserveContentDisabled","outline"!=d.appearance)("id",d._labelId)("ngSwitch",d._hasLabel()),_.uIk("for",d._control.id)("aria-owns",d._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!d.hideRequiredMarker&&d._control.required&&!d._control.disabled)}}function te(i,o){1&i&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function ue(i,o){if(1&i&&(_.TgZ(0,"div",25),_._UZ(1,"span",26),_.qZA()),2&i){const d=_.oxw();_.xp6(1),_.ekj("mat-accent","accent"==d.color)("mat-warn","warn"==d.color)}}function de(i,o){if(1&i&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&i){const d=_.oxw();_.Q6J("@transitionMessages",d._subscriptAnimationState)}}function Le(i,o){if(1&i&&(_.TgZ(0,"div",30),_._uU(1),_.qZA()),2&i){const d=_.oxw(2);_.Q6J("id",d._hintLabelId),_.xp6(1),_.Oqu(d.hintLabel)}}function Ue(i,o){if(1&i&&(_.TgZ(0,"div",27),_.YNc(1,Le,2,2,"div",28),_.Hsn(2,6),_._UZ(3,"div",29),_.Hsn(4,7),_.qZA()),2&i){const d=_.oxw();_.Q6J("@transitionMessages",d._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",d.hintLabel)}}const ze=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],le=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let je=0;const ye=new _.OlP("MatError");let Be=(()=>{class i{constructor(d,l){this.id="mat-error-"+je++,d||l.nativeElement.setAttribute("aria-live","polite")}}return i.\u0275fac=function(d){return new(d||i)(_.$8M("aria-live"),_.Y36(_.SBq))},i.\u0275dir=_.lG2({type:i,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(d,l){2&d&&_.uIk("id",l.id)},inputs:{id:"id"},features:[_._Bn([{provide:ye,useExisting:i}])]}),i})();const W={transitionMessages:(0,L.X$)("transitionMessages",[(0,L.SB)("enter",(0,L.oB)({opacity:1,transform:"translateY(0%)"})),(0,L.eR)("void => enter",[(0,L.oB)({opacity:0,transform:"translateY(-5px)"}),(0,L.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let R=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i}),i})(),pe=0;const Se=new _.OlP("MatHint");let Xe=(()=>{class i{constructor(){this.align="start",this.id="mat-hint-"+pe++}}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(d,l){2&d&&(_.uIk("id",l.id)("align",null),_.ekj("mat-form-field-hint-end","end"===l.align))},inputs:{align:"align",id:"id"},features:[_._Bn([{provide:Se,useExisting:i}])]}),i})(),Je=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["mat-label"]]}),i})(),nt=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["mat-placeholder"]]}),i})();const Ve=new _.OlP("MatPrefix"),z=new _.OlP("MatSuffix");let Q=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["","matSuffix",""]],features:[_._Bn([{provide:z,useExisting:i}])]}),i})(),D=0;const xe=(0,w.pj)(class{constructor(i){this._elementRef=i}},"primary"),Qe=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Te=new _.OlP("MatFormField");let Ae=(()=>{class i extends xe{constructor(d,l,s,r,t,n,a){super(d),this._changeDetectorRef=l,this._dir=s,this._defaults=r,this._platform=t,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new A.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+D++,this._labelId="mat-form-field-label-"+D++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(d){const l=this._appearance;this._appearance=d||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&l!==d&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(d){this._hideRequiredMarker=(0,g.Ig)(d)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(d){this._hintLabel=d,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(d){d!==this._floatLabel&&(this._floatLabel=d||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(d){this._explicitFormFieldControl=d}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const d=this._control;d.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${d.controlType}`),d.stateChanges.pipe((0,I.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),d.ngControl&&d.ngControl.valueChanges&&d.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,E.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,I.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,I.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(d){const l=this._control?this._control.ngControl:null;return l&&l[d]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,C.R)(this._label.nativeElement,"transitionend").pipe((0,m.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let d=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&d.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const l=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,s=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;l?d.push(l.id):this._hintLabel&&d.push(this._hintLabelId),s&&d.push(s.id)}else this._errorChildren&&d.push(...this._errorChildren.map(l=>l.id));this._control.setDescribedByIds(d)}}_validateControlChild(){}updateOutlineGap(){const d=this._label?this._label.nativeElement:null,l=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",r=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!d||!d.children.length||!d.textContent.trim()){const h=l.querySelectorAll(`${s}, ${r}`);for(let x=0;x0?.75*Ht+10:0}for(let h=0;h{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[b.ez,w.BQ,e.Q8],w.BQ]}),i})()},25245:($e,_e,p)=>{"use strict";p.d(_e,{Hw:()=>be,Ps:()=>Ie,jv:()=>ue});var e=p(5e3),b=p(90508),_=p(63191),w=p(69808),g=p(21086),A=p(61737),E=p(30567),C=p(42654),I=p(22868),P=p(24850),m=p(27221),L=p(40537),O=p(12474),G=p(72986),ne=p(40520),ge=p(22313);const J=["*"];let Me;function Re(pe){var Se;return(null===(Se=function oe(){if(void 0===Me&&(Me=null,"undefined"!=typeof window)){const pe=window;void 0!==pe.trustedTypes&&(Me=pe.trustedTypes.createPolicy("angular#components",{createHTML:Se=>Se}))}return Me}())||void 0===Se?void 0:Se.createHTML(pe))||pe}function T(pe){return Error(`Unable to find icon with the name "${pe}"`)}function Y(pe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${pe}".`)}function q(pe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${pe}".`)}class te{constructor(Se,Xe,Je){this.url=Se,this.svgText=Xe,this.options=Je}}let ue=(()=>{class pe{constructor(Xe,Je,nt,Ve){this._httpClient=Xe,this._sanitizer=Je,this._errorHandler=Ve,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",this._document=nt}addSvgIcon(Xe,Je,nt){return this.addSvgIconInNamespace("",Xe,Je,nt)}addSvgIconLiteral(Xe,Je,nt){return this.addSvgIconLiteralInNamespace("",Xe,Je,nt)}addSvgIconInNamespace(Xe,Je,nt,Ve){return this._addSvgIconConfig(Xe,Je,new te(nt,null,Ve))}addSvgIconResolver(Xe){return this._resolvers.push(Xe),this}addSvgIconLiteralInNamespace(Xe,Je,nt,Ve){const X=this._sanitizer.sanitize(e.q3G.HTML,nt);if(!X)throw q(nt);const z=Re(X);return this._addSvgIconConfig(Xe,Je,new te("",z,Ve))}addSvgIconSet(Xe,Je){return this.addSvgIconSetInNamespace("",Xe,Je)}addSvgIconSetLiteral(Xe,Je){return this.addSvgIconSetLiteralInNamespace("",Xe,Je)}addSvgIconSetInNamespace(Xe,Je,nt){return this._addSvgIconSetConfig(Xe,new te(Je,null,nt))}addSvgIconSetLiteralInNamespace(Xe,Je,nt){const Ve=this._sanitizer.sanitize(e.q3G.HTML,Je);if(!Ve)throw q(Je);const X=Re(Ve);return this._addSvgIconSetConfig(Xe,new te("",X,nt))}registerFontClassAlias(Xe,Je=Xe){return this._fontCssClassesByAlias.set(Xe,Je),this}classNameForFontAlias(Xe){return this._fontCssClassesByAlias.get(Xe)||Xe}setDefaultFontSetClass(Xe){return this._defaultFontSetClass=Xe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Xe){const Je=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Xe);if(!Je)throw Y(Xe);const nt=this._cachedIconsByUrl.get(Je);return nt?(0,g.of)(Ue(nt)):this._loadSvgIconFromConfig(new te(Xe,null)).pipe((0,I.b)(Ve=>this._cachedIconsByUrl.set(Je,Ve)),(0,P.U)(Ve=>Ue(Ve)))}getNamedSvgIcon(Xe,Je=""){const nt=ze(Je,Xe);let Ve=this._svgIconConfigs.get(nt);if(Ve)return this._getSvgFromConfig(Ve);if(Ve=this._getIconConfigFromResolvers(Je,Xe),Ve)return this._svgIconConfigs.set(nt,Ve),this._getSvgFromConfig(Ve);const X=this._iconSetConfigs.get(Je);return X?this._getSvgFromIconSetConfigs(Xe,X):(0,A._)(T(nt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Xe){return Xe.svgText?(0,g.of)(Ue(this._svgElementFromConfig(Xe))):this._loadSvgIconFromConfig(Xe).pipe((0,P.U)(Je=>Ue(Je)))}_getSvgFromIconSetConfigs(Xe,Je){const nt=this._extractIconWithNameFromAnySet(Xe,Je);if(nt)return(0,g.of)(nt);const Ve=Je.filter(X=>!X.svgText).map(X=>this._loadSvgIconSetFromConfig(X).pipe((0,m.K)(z=>{const D=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,X.url)} failed: ${z.message}`;return this._errorHandler.handleError(new Error(D)),(0,g.of)(null)})));return(0,E.D)(Ve).pipe((0,P.U)(()=>{const X=this._extractIconWithNameFromAnySet(Xe,Je);if(!X)throw T(Xe);return X}))}_extractIconWithNameFromAnySet(Xe,Je){for(let nt=Je.length-1;nt>=0;nt--){const Ve=Je[nt];if(Ve.svgText&&Ve.svgText.toString().indexOf(Xe)>-1){const X=this._svgElementFromConfig(Ve),z=this._extractSvgIconFromSet(X,Xe,Ve.options);if(z)return z}}return null}_loadSvgIconFromConfig(Xe){return this._fetchIcon(Xe).pipe((0,I.b)(Je=>Xe.svgText=Je),(0,P.U)(()=>this._svgElementFromConfig(Xe)))}_loadSvgIconSetFromConfig(Xe){return Xe.svgText?(0,g.of)(null):this._fetchIcon(Xe).pipe((0,I.b)(Je=>Xe.svgText=Je))}_extractSvgIconFromSet(Xe,Je,nt){const Ve=Xe.querySelector(`[id="${Je}"]`);if(!Ve)return null;const X=Ve.cloneNode(!0);if(X.removeAttribute("id"),"svg"===X.nodeName.toLowerCase())return this._setSvgAttributes(X,nt);if("symbol"===X.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(X),nt);const z=this._svgElementFromString(Re(""));return z.appendChild(X),this._setSvgAttributes(z,nt)}_svgElementFromString(Xe){const Je=this._document.createElement("DIV");Je.innerHTML=Xe;const nt=Je.querySelector("svg");if(!nt)throw Error(" tag not found");return nt}_toSvgElement(Xe){const Je=this._svgElementFromString(Re("")),nt=Xe.attributes;for(let Ve=0;VeRe(H)),(0,L.x)(()=>this._inProgressUrlFetches.delete(z)),(0,O.B)());return this._inProgressUrlFetches.set(z,D),D}_addSvgIconConfig(Xe,Je,nt){return this._svgIconConfigs.set(ze(Xe,Je),nt),this}_addSvgIconSetConfig(Xe,Je){const nt=this._iconSetConfigs.get(Xe);return nt?nt.push(Je):this._iconSetConfigs.set(Xe,[Je]),this}_svgElementFromConfig(Xe){if(!Xe.svgElement){const Je=this._svgElementFromString(Xe.svgText);this._setSvgAttributes(Je,Xe.options),Xe.svgElement=Je}return Xe.svgElement}_getIconConfigFromResolvers(Xe,Je){for(let nt=0;ntSe?Se.pathname+Se.search:""}}}),W=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],R=W.map(pe=>`[${pe}]`).join(", "),me=/^url\(['"]?#(.*?)['"]?\)$/;let be=(()=>{class pe extends je{constructor(Xe,Je,nt,Ve,X){super(Xe),this._iconRegistry=Je,this._location=Ve,this._errorHandler=X,this._inline=!1,this._currentIconFetch=C.w.EMPTY,nt||Xe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Xe){this._inline=(0,_.Ig)(Xe)}get svgIcon(){return this._svgIcon}set svgIcon(Xe){Xe!==this._svgIcon&&(Xe?this._updateSvgIcon(Xe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Xe)}get fontSet(){return this._fontSet}set fontSet(Xe){const Je=this._cleanupFontValue(Xe);Je!==this._fontSet&&(this._fontSet=Je,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Xe){const Je=this._cleanupFontValue(Xe);Je!==this._fontIcon&&(this._fontIcon=Je,this._updateFontIconClasses())}_splitIconName(Xe){if(!Xe)return["",""];const Je=Xe.split(":");switch(Je.length){case 1:return["",Je[0]];case 2:return Je;default:throw Error(`Invalid icon name: "${Xe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Xe=this._elementsWithExternalReferences;if(Xe&&Xe.size){const Je=this._location.getPathname();Je!==this._previousPath&&(this._previousPath=Je,this._prependPathToReferences(Je))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Xe){this._clearSvgElement();const Je=Xe.querySelectorAll("style");for(let Ve=0;Ve{nt.forEach(X=>{Ve.setAttribute(X.name,`url('${Xe}#${X.value}')`)})})}_cacheChildrenWithExternalReferences(Xe){const Je=Xe.querySelectorAll(R),nt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ve=0;Ve{const z=Je[Ve],Q=z.getAttribute(X),D=Q?Q.match(me):null;if(D){let H=nt.get(z);H||(H=[],nt.set(z,H)),H.push({name:X,value:D[1]})}})}_updateSvgIcon(Xe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Xe){const[Je,nt]=this._splitIconName(Xe);Je&&(this._svgNamespace=Je),nt&&(this._svgName=nt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(nt,Je).pipe((0,G.q)(1)).subscribe(Ve=>this._setSvgElement(Ve),Ve=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Je}:${nt}! ${Ve.message}`))})}}}return pe.\u0275fac=function(Xe){return new(Xe||pe)(e.Y36(e.SBq),e.Y36(ue),e.$8M("aria-hidden"),e.Y36(ye),e.Y36(e.qLn))},pe.\u0275cmp=e.Xpm({type:pe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Xe,Je){2&Xe&&(e.uIk("data-mat-icon-type",Je._usingFontIcon()?"font":"svg")("data-mat-icon-name",Je._svgName||Je.fontIcon)("data-mat-icon-namespace",Je._svgNamespace||Je.fontSet),e.ekj("mat-icon-inline",Je.inline)("mat-icon-no-color","primary"!==Je.color&&"accent"!==Je.color&&"warn"!==Je.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:J,decls:1,vars:0,template:function(Xe,Je){1&Xe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),pe})(),Ie=(()=>{class pe{}return pe.\u0275fac=function(Xe){return new(Xe||pe)},pe.\u0275mod=e.oAB({type:pe}),pe.\u0275inj=e.cJS({imports:[[b.BQ],b.BQ]}),pe})()},98833:($e,_e,p)=>{"use strict";p.d(_e,{Jk:()=>P,Nt:()=>G,c:()=>ne});var e=p(63191),b=p(70925),_=p(5e3),w=p(93075),g=p(90508),A=p(67322),E=p(8929),C=p(74533);const P=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let L=0;const O=(0,g.FD)(class{constructor(ge,J,Me,oe){this._defaultErrorStateMatcher=ge,this._parentForm=J,this._parentFormGroup=Me,this.ngControl=oe}});let G=(()=>{class ge extends O{constructor(Me,oe,Re,T,j,Y,q,te,ue,de){super(Y,T,j,Re),this._elementRef=Me,this._platform=oe,this._autofillMonitor=te,this._formField=de,this._uid="mat-input-"+L++,this.focused=!1,this.stateChanges=new E.xQ,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(ze=>(0,b.qK)().has(ze));const Le=this._elementRef.nativeElement,Ue=Le.nodeName.toLowerCase();this._inputValueAccessor=q||Le,this._previousNativeValue=this.value,this.id=this.id,oe.IOS&&ue.runOutsideAngular(()=>{Me.nativeElement.addEventListener("keyup",ze=>{const le=ze.target;!le.value&&0===le.selectionStart&&0===le.selectionEnd&&(le.setSelectionRange(1,1),le.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Ue,this._isTextarea="textarea"===Ue,this._isInFormField=!!de,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(Me){this._disabled=(0,e.Ig)(Me),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Me){this._id=Me||this._uid}get required(){var Me,oe,Re,T;return null!==(T=null!==(Me=this._required)&&void 0!==Me?Me:null===(Re=null===(oe=this.ngControl)||void 0===oe?void 0:oe.control)||void 0===Re?void 0:Re.hasValidator(w.kI.required))&&void 0!==T&&T}set required(Me){this._required=(0,e.Ig)(Me)}get type(){return this._type}set type(Me){this._type=Me||"text",this._validateType(),!this._isTextarea&&(0,b.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Me){Me!==this.value&&(this._inputValueAccessor.value=Me,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Me){this._readonly=(0,e.Ig)(Me)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Me=>{this.autofilled=Me.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Me){this._elementRef.nativeElement.focus(Me)}_focusChanged(Me){Me!==this.focused&&(this.focused=Me,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Me,oe;const Re=(null===(oe=null===(Me=this._formField)||void 0===Me?void 0:Me._hideControlPlaceholder)||void 0===oe?void 0:oe.call(Me))?null:this.placeholder;if(Re!==this._previousPlaceholder){const T=this._elementRef.nativeElement;this._previousPlaceholder=Re,Re?T.setAttribute("placeholder",Re):T.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Me=this._elementRef.nativeElement.value;this._previousNativeValue!==Me&&(this._previousNativeValue=Me,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Me=this._elementRef.nativeElement.validity;return Me&&Me.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Me=this._elementRef.nativeElement,oe=Me.options[0];return this.focused||Me.multiple||!this.empty||!!(Me.selectedIndex>-1&&oe&&oe.label)}return this.focused||!this.empty}setDescribedByIds(Me){Me.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Me.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Me=this._elementRef.nativeElement;return this._isNativeSelect&&(Me.multiple||Me.size>1)}}return ge.\u0275fac=function(Me){return new(Me||ge)(_.Y36(_.SBq),_.Y36(b.t4),_.Y36(w.a5,10),_.Y36(w.F,8),_.Y36(w.sg,8),_.Y36(g.rD),_.Y36(P,10),_.Y36(C.Lq),_.Y36(_.R0b),_.Y36(A.G_,8))},ge.\u0275dir=_.lG2({type:ge,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(Me,oe){1&Me&&_.NdJ("focus",function(){return oe._focusChanged(!0)})("blur",function(){return oe._focusChanged(!1)})("input",function(){return oe._onInput()}),2&Me&&(_.Ikx("disabled",oe.disabled)("required",oe.required),_.uIk("id",oe.id)("data-placeholder",oe.placeholder)("name",oe.name||null)("readonly",oe.readonly&&!oe._isNativeSelect||null)("aria-invalid",oe.empty&&oe.required?null:oe.errorState)("aria-required",oe.required),_.ekj("mat-input-server",oe._isServer)("mat-native-select-inline",oe._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:A.Eo,useExisting:ge}]),_.qOj,_.TTD]}),ge})(),ne=(()=>{class ge{}return ge.\u0275fac=function(Me){return new(Me||ge)},ge.\u0275mod=_.oAB({type:ge}),ge.\u0275inj=_.cJS({providers:[g.rD],imports:[[C.Ky,A.lN,g.BQ],C.Ky,A.lN]}),ge})()},14623:($e,_e,p)=>{"use strict";p.d(_e,{i$:()=>ue,Tg:()=>ze,ie:()=>me});var e=p(69808),b=p(5e3),_=p(90508),w=p(63191),g=p(8929),A=p(7625),L=(p(1059),p(15664),p(20449),p(91159),p(93075),p(4834));const O=["*"],ne=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ge=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],T=(0,_.Id)((0,_.Kr)(class{})),j=(0,_.Kr)(class{}),Y=new b.OlP("MatList"),q=new b.OlP("MatNavList");let ue=(()=>{class be extends T{constructor(pe){super(),this._elementRef=pe,this._stateChanges=new g.xQ,"action-list"===this._getListType()&&pe.nativeElement.classList.add("mat-action-list")}_getListType(){const pe=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===pe?"list":"mat-action-list"===pe?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return be.\u0275fac=function(pe){return new(pe||be)(b.Y36(b.SBq))},be.\u0275cmp=b.Xpm({type:be,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[b._Bn([{provide:Y,useExisting:be}]),b.qOj,b.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(pe,Se){1&pe&&(b.F$t(),b.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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:transparent;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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0}),be})(),de=(()=>{class be{}return be.\u0275fac=function(pe){return new(pe||be)},be.\u0275dir=b.lG2({type:be,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),be})(),Le=(()=>{class be{}return be.\u0275fac=function(pe){return new(pe||be)},be.\u0275dir=b.lG2({type:be,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),be})(),ze=(()=>{class be extends j{constructor(pe,Se,Xe,Je){super(),this._element=pe,this._isInteractiveList=!1,this._destroyed=new g.xQ,this._disabled=!1,this._isInteractiveList=!!(Xe||Je&&"action-list"===Je._getListType()),this._list=Xe||Je;const nt=this._getHostElement();"button"===nt.nodeName.toLowerCase()&&!nt.hasAttribute("type")&&nt.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{Se.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(pe){this._disabled=(0,w.Ig)(pe)}ngAfterContentInit(){(0,_.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(pe){return new(pe||be)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(q,8),b.Y36(Y,8))},be.\u0275cmp=b.Xpm({type:be,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(pe,Se,Xe){if(1&pe&&(b.Suo(Xe,de,5),b.Suo(Xe,Le,5),b.Suo(Xe,_.X2,5)),2&pe){let Je;b.iGM(Je=b.CRH())&&(Se._avatar=Je.first),b.iGM(Je=b.CRH())&&(Se._icon=Je.first),b.iGM(Je=b.CRH())&&(Se._lines=Je)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(pe,Se){2&pe&&b.ekj("mat-list-item-disabled",Se.disabled)("mat-list-item-avatar",Se._avatar||Se._icon)("mat-list-item-with-avatar",Se._avatar||Se._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[b.qOj],ngContentSelectors:ge,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(pe,Se){1&pe&&(b.F$t(ne),b.TgZ(0,"span",0),b._UZ(1,"span",1),b.Hsn(2),b.TgZ(3,"span",2),b.Hsn(4,1),b.qZA(),b.Hsn(5,2),b.qZA()),2&pe&&(b.xp6(1),b.Q6J("matRippleTrigger",Se._getHostElement())("matRippleDisabled",Se._isRippleDisabled()))},directives:[_.wG],encapsulation:2,changeDetection:0}),be})(),me=(()=>{class be{}return be.\u0275fac=function(pe){return new(pe||be)},be.\u0275mod=b.oAB({type:be}),be.\u0275inj=b.cJS({imports:[[_.uc,_.si,_.BQ,_.us,e.ez],_.uc,_.BQ,_.us,L.t]}),be})()},92181:($e,_e,p)=>{"use strict";p.d(_e,{VK:()=>Ve,OP:()=>pe,Tx:()=>Qe,p6:()=>xe});var e=p(15664),b=p(63191),_=p(91159),w=p(5e3),g=p(8929),A=p(42654),E=p(36787),C=p(21086),I=p(8139),P=p(1059),m=p(87545),L=p(72986),O=p(7625),G=p(92198),ne=p(40943),ge=p(41777),J=p(47429),Me=p(69808),oe=p(90508),Re=p(92845),T=p(70925),j=p(50226),Y=p(53435);const q=["mat-menu-item",""];function te(Te,Ae){1&Te&&(w.O4$(),w.TgZ(0,"svg",2),w._UZ(1,"polygon",3),w.qZA())}const ue=["*"];function de(Te,Ae){if(1&Te){const ae=w.EpF();w.TgZ(0,"div",0),w.NdJ("keydown",function(o){return w.CHM(ae),w.oxw()._handleKeydown(o)})("click",function(){return w.CHM(ae),w.oxw().closed.emit("click")})("@transformMenu.start",function(o){return w.CHM(ae),w.oxw()._onAnimationStart(o)})("@transformMenu.done",function(o){return w.CHM(ae),w.oxw()._onAnimationDone(o)}),w.TgZ(1,"div",1),w.Hsn(2),w.qZA(),w.qZA()}if(2&Te){const ae=w.oxw();w.Q6J("id",ae.panelId)("ngClass",ae._classList)("@transformMenu",ae._panelAnimationState),w.uIk("aria-label",ae.ariaLabel||null)("aria-labelledby",ae.ariaLabelledby||null)("aria-describedby",ae.ariaDescribedby||null)}}const Le={transformMenu:(0,ge.X$)("transformMenu",[(0,ge.SB)("void",(0,ge.oB)({opacity:0,transform:"scale(0.8)"})),(0,ge.eR)("void => enter",(0,ge.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ge.oB)({opacity:1,transform:"scale(1)"}))),(0,ge.eR)("* => void",(0,ge.jt)("100ms 25ms linear",(0,ge.oB)({opacity:0})))]),fadeInItems:(0,ge.X$)("fadeInItems",[(0,ge.SB)("showing",(0,ge.oB)({opacity:1})),(0,ge.eR)("void => *",[(0,ge.oB)({opacity:0}),(0,ge.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},le=new w.OlP("MatMenuContent"),be=new w.OlP("MAT_MENU_PANEL"),Ie=(0,oe.Kr)((0,oe.Id)(class{}));let pe=(()=>{class Te extends Ie{constructor(ae,i,o,d,l){var s;super(),this._elementRef=ae,this._focusMonitor=o,this._parentMenu=d,this._changeDetectorRef=l,this.role="menuitem",this._hovered=new g.xQ,this._focused=new g.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(s=null==d?void 0:d.addItem)||void 0===s||s.call(d,this)}focus(ae,i){this._focusMonitor&&ae?this._focusMonitor.focusVia(this._getHostElement(),ae,i):this._getHostElement().focus(i),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(ae){this.disabled&&(ae.preventDefault(),ae.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ae;const i=this._elementRef.nativeElement.cloneNode(!0),o=i.querySelectorAll("mat-icon, .material-icons");for(let d=0;d{class Te{constructor(ae,i,o){this._elementRef=ae,this._ngZone=i,this._defaultOptions=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new w.n_E,this._tabSubscription=A.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new g.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new w.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Je++}get xPosition(){return this._xPosition}set xPosition(ae){this._xPosition=ae,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ae){this._yPosition=ae,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ae){this._overlapTrigger=(0,b.Ig)(ae)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ae){this._hasBackdrop=(0,b.Ig)(ae)}set panelClass(ae){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=ae,ae&&ae.length&&(ae.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ae){this.panelClass=ae}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,P.O)(this._directDescendantItems),(0,m.w)(ae=>(0,E.T)(...ae.map(i=>i._focused)))).subscribe(ae=>this._keyManager.updateActiveItem(ae))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,P.O)(this._directDescendantItems),(0,m.w)(i=>(0,E.T)(...i.map(o=>o._hovered))))}addItem(ae){}removeItem(ae){}_handleKeydown(ae){const i=ae.keyCode,o=this._keyManager;switch(i){case _.hY:(0,_.Vb)(ae)||(ae.preventDefault(),this.closed.emit("keydown"));break;case _.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case _.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===_.LH||i===_.JH)&&o.setFocusOrigin("keyboard"),void o.onKeydown(ae)}ae.stopPropagation()}focusFirstItem(ae="program"){this.lazyContent?this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>this._focusFirstItem(ae)):this._focusFirstItem(ae)}_focusFirstItem(ae){const i=this._keyManager;if(i.setFocusOrigin(ae).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let o=this._directDescendantItems.first._getHostElement().parentElement;for(;o;){if("menu"===o.getAttribute("role")){o.focus();break}o=o.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ae){const i=Math.min(this._baseElevation+ae,24),o=`${this._elevationPrefix}${i}`,d=Object.keys(this._classList).find(l=>l.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(ae=this.xPosition,i=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===ae,o["mat-menu-after"]="after"===ae,o["mat-menu-above"]="above"===i,o["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ae){this._animationDone.next(ae),this._isAnimating=!1}_onAnimationStart(ae){this._isAnimating=!0,"enter"===ae.toState&&0===this._keyManager.activeItemIndex&&(ae.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,P.O)(this._allItems)).subscribe(ae=>{this._directDescendantItems.reset(ae.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Te.\u0275fac=function(ae){return new(ae||Te)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Se))},Te.\u0275dir=w.lG2({type:Te,contentQueries:function(ae,i,o){if(1&ae&&(w.Suo(o,le,5),w.Suo(o,pe,5),w.Suo(o,pe,4)),2&ae){let d;w.iGM(d=w.CRH())&&(i.lazyContent=d.first),w.iGM(d=w.CRH())&&(i._allItems=d),w.iGM(d=w.CRH())&&(i.items=d)}},viewQuery:function(ae,i){if(1&ae&&w.Gf(w.Rgc,5),2&ae){let o;w.iGM(o=w.CRH())&&(i.templateRef=o.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"}}),Te})(),Ve=(()=>{class Te extends nt{constructor(ae,i,o){super(ae,i,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Te.\u0275fac=function(ae){return new(ae||Te)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Se))},Te.\u0275cmp=w.Xpm({type:Te,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ae,i){2&ae&&w.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[w._Bn([{provide:be,useExisting:Te}]),w.qOj],ngContentSelectors:ue,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ae,i){1&ae&&(w.F$t(),w.YNc(0,de,3,6,"ng-template"))},directives:[Me.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Le.transformMenu,Le.fadeInItems]},changeDetection:0}),Te})();const X=new w.OlP("mat-menu-scroll-strategy"),Q={provide:X,deps:[Re.aV],useFactory:function z(Te){return()=>Te.scrollStrategies.reposition()}},H=(0,T.i$)({passive:!0});let V=(()=>{class Te{constructor(ae,i,o,d,l,s,r,t){this._overlay=ae,this._element=i,this._viewContainerRef=o,this._menuItemInstance=s,this._dir=r,this._focusMonitor=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=n=>{(0,e.yG)(n)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new w.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new w.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=l instanceof nt?l:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,H),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ae){this.menu=ae}get menu(){return this._menu}set menu(ae){ae!==this._menu&&(this._menu=ae,this._menuCloseSubscription.unsubscribe(),ae&&(this._menuCloseSubscription=ae.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,H),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const ae=this._createOverlay(),i=ae.getConfig(),o=i.positionStrategy;this._setPosition(o),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ae.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof nt&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,O.R)(this.menu.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(ae,i){this._focusMonitor&&ae?this._focusMonitor.focusVia(this._element,ae,i):this._element.nativeElement.focus(i)}updatePosition(){var ae;null===(ae=this._overlayRef)||void 0===ae||ae.updatePosition()}_destroyMenu(ae){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ae||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof nt?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe((0,G.h)(o=>"void"===o.toState),(0,L.q)(1),(0,O.R)(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let ae=0,i=this.menu.parentMenu;for(;i;)ae++,i=i.parentMenu;this.menu.setElevation(ae)}}_setIsMenuOpen(ae){this._menuOpen=ae,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ae)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ae=this._getOverlayConfig();this._subscribeToPositions(ae.positionStrategy),this._overlayRef=this._overlay.create(ae),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Re.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ae){this.menu.setPositionClasses&&ae.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(ae){let[i,o]="before"===this.menu.xPosition?["end","start"]:["start","end"],[d,l]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,r]=[d,l],[t,n]=[i,o],a=0;this.triggersSubmenu()?(n=i="before"===this.menu.xPosition?"start":"end",o=t="end"===i?"start":"end",a="bottom"===d?8:-8):this.menu.overlapTrigger||(s="top"===d?"bottom":"top",r="top"===l?"bottom":"top"),ae.withPositions([{originX:i,originY:s,overlayX:t,overlayY:d,offsetY:a},{originX:o,originY:s,overlayX:n,overlayY:d,offsetY:a},{originX:i,originY:r,overlayX:t,overlayY:l,offsetY:-a},{originX:o,originY:r,overlayX:n,overlayY:l,offsetY:-a}])}_menuClosingActions(){const ae=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,C.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.h)(l=>l!==this._menuItemInstance),(0,G.h)(()=>this._menuOpen)):(0,C.of)();return(0,E.T)(ae,o,d,i)}_handleMousedown(ae){(0,e.X6)(ae)||(this._openedBy=0===ae.button?"mouse":void 0,this.triggersSubmenu()&&ae.preventDefault())}_handleKeydown(ae){const i=ae.keyCode;(i===_.K5||i===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===_.SV&&"ltr"===this.dir||i===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ae){this.triggersSubmenu()?(ae.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.h)(ae=>ae===this._menuItemInstance&&!ae.disabled),(0,ne.g)(0,I.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof nt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,L.q)(1),(0,ne.g)(0,I.e),(0,O.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new J.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return Te.\u0275fac=function(ae){return new(ae||Te)(w.Y36(Re.aV),w.Y36(w.SBq),w.Y36(w.s_b),w.Y36(X),w.Y36(be,8),w.Y36(pe,10),w.Y36(j.Is,8),w.Y36(e.tE))},Te.\u0275dir=w.lG2({type:Te,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ae,i){1&ae&&w.NdJ("click",function(d){return i._handleClick(d)})("mousedown",function(d){return i._handleMousedown(d)})("keydown",function(d){return i._handleKeydown(d)}),2&ae&&w.uIk("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.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"}}),Te})(),xe=(()=>{class Te extends V{}return Te.\u0275fac=function(){let Ae;return function(i){return(Ae||(Ae=w.n5z(Te)))(i||Te)}}(),Te.\u0275dir=w.lG2({type:Te,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[w.qOj]}),Te})(),Qe=(()=>{class Te{}return Te.\u0275fac=function(ae){return new(ae||Te)},Te.\u0275mod=w.oAB({type:Te}),Te.\u0275inj=w.cJS({providers:[Q],imports:[[Me.ez,oe.BQ,oe.si,Re.U8],Y.ZD,oe.BQ]}),Te})()},86087:($e,_e,p)=>{"use strict";p.d(_e,{NW:()=>q,ye:()=>ge,TU:()=>te});var e=p(69808),b=p(5e3),_=p(90508),w=p(47423),g=p(74107),A=p(29772),E=p(63191),C=p(8929),I=p(67322);function P(ue,de){if(1&ue&&(b.TgZ(0,"mat-option",19),b._uU(1),b.qZA()),2&ue){const Le=de.$implicit;b.Q6J("value",Le),b.xp6(1),b.hij(" ",Le," ")}}function m(ue,de){if(1&ue){const Le=b.EpF();b.TgZ(0,"mat-form-field",16),b.TgZ(1,"mat-select",17),b.NdJ("selectionChange",function(ze){return b.CHM(Le),b.oxw(2)._changePageSize(ze.value)}),b.YNc(2,P,2,2,"mat-option",18),b.qZA(),b.qZA()}if(2&ue){const Le=b.oxw(2);b.Q6J("appearance",Le._formFieldAppearance)("color",Le.color),b.xp6(1),b.Q6J("value",Le.pageSize)("disabled",Le.disabled)("aria-label",Le._intl.itemsPerPageLabel),b.xp6(1),b.Q6J("ngForOf",Le._displayedPageSizeOptions)}}function L(ue,de){if(1&ue&&(b.TgZ(0,"div",20),b._uU(1),b.qZA()),2&ue){const Le=b.oxw(2);b.xp6(1),b.Oqu(Le.pageSize)}}function O(ue,de){if(1&ue&&(b.TgZ(0,"div",12),b.TgZ(1,"div",13),b._uU(2),b.qZA(),b.YNc(3,m,3,6,"mat-form-field",14),b.YNc(4,L,2,1,"div",15),b.qZA()),2&ue){const Le=b.oxw();b.xp6(2),b.hij(" ",Le._intl.itemsPerPageLabel," "),b.xp6(1),b.Q6J("ngIf",Le._displayedPageSizeOptions.length>1),b.xp6(1),b.Q6J("ngIf",Le._displayedPageSizeOptions.length<=1)}}function G(ue,de){if(1&ue){const Le=b.EpF();b.TgZ(0,"button",21),b.NdJ("click",function(){return b.CHM(Le),b.oxw().firstPage()}),b.O4$(),b.TgZ(1,"svg",7),b._UZ(2,"path",22),b.qZA(),b.qZA()}if(2&ue){const Le=b.oxw();b.Q6J("matTooltip",Le._intl.firstPageLabel)("matTooltipDisabled",Le._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Le._previousButtonsDisabled()),b.uIk("aria-label",Le._intl.firstPageLabel)}}function ne(ue,de){if(1&ue){const Le=b.EpF();b.O4$(),b.kcU(),b.TgZ(0,"button",23),b.NdJ("click",function(){return b.CHM(Le),b.oxw().lastPage()}),b.O4$(),b.TgZ(1,"svg",7),b._UZ(2,"path",24),b.qZA(),b.qZA()}if(2&ue){const Le=b.oxw();b.Q6J("matTooltip",Le._intl.lastPageLabel)("matTooltipDisabled",Le._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Le._nextButtonsDisabled()),b.uIk("aria-label",Le._intl.lastPageLabel)}}let ge=(()=>{class ue{constructor(){this.changes=new C.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Le,Ue,ze)=>{if(0==ze||0==Ue)return`0 of ${ze}`;const le=Le*Ue;return`${le+1} \u2013 ${le<(ze=Math.max(ze,0))?Math.min(le+Ue,ze):le+Ue} of ${ze}`}}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275prov=b.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const Me={provide:ge,deps:[[new b.FiY,new b.tp0,ge]],useFactory:function J(ue){return ue||new ge}},T=new b.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),j=(0,_.Id)((0,_.dB)(class{}));let Y=(()=>{class ue extends j{constructor(Le,Ue,ze){if(super(),this._intl=Le,this._changeDetectorRef=Ue,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new b.vpe,this._intlChanges=Le.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),ze){const{pageSize:le,pageSizeOptions:je,hidePageSize:ye,showFirstLastButtons:Be}=ze;null!=le&&(this._pageSize=le),null!=je&&(this._pageSizeOptions=je),null!=ye&&(this._hidePageSize=ye),null!=Be&&(this._showFirstLastButtons=Be)}}get pageIndex(){return this._pageIndex}set pageIndex(Le){this._pageIndex=Math.max((0,E.su)(Le),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Le){this._length=(0,E.su)(Le),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Le){this._pageSize=Math.max((0,E.su)(Le),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Le){this._pageSizeOptions=(Le||[]).map(Ue=>(0,E.su)(Ue)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Le){this._hidePageSize=(0,E.Ig)(Le)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Le){this._showFirstLastButtons=(0,E.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-Ue),this._changeDetectorRef.markForCheck())}_emitPageEvent(Le){this.page.emit({previousPageIndex:Le,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ue.\u0275fac=function(Le){b.$Z()},ue.\u0275dir=b.lG2({type:ue,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[b.qOj]}),ue})(),q=(()=>{class ue extends Y{constructor(Le,Ue,ze){super(Le,Ue,ze),ze&&null!=ze.formFieldAppearance&&(this._formFieldAppearance=ze.formFieldAppearance)}}return ue.\u0275fac=function(Le){return new(Le||ue)(b.Y36(ge),b.Y36(b.sBO),b.Y36(T,8))},ue.\u0275cmp=b.Xpm({type:ue,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[b.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","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,Ue){1&Le&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.YNc(2,O,5,3,"div",2),b.TgZ(3,"div",3),b.TgZ(4,"div",4),b._uU(5),b.qZA(),b.YNc(6,G,3,5,"button",5),b.TgZ(7,"button",6),b.NdJ("click",function(){return Ue.previousPage()}),b.O4$(),b.TgZ(8,"svg",7),b._UZ(9,"path",8),b.qZA(),b.qZA(),b.kcU(),b.TgZ(10,"button",9),b.NdJ("click",function(){return Ue.nextPage()}),b.O4$(),b.TgZ(11,"svg",7),b._UZ(12,"path",10),b.qZA(),b.qZA(),b.YNc(13,ne,3,5,"button",11),b.qZA(),b.qZA(),b.qZA()),2&Le&&(b.xp6(2),b.Q6J("ngIf",!Ue.hidePageSize),b.xp6(3),b.hij(" ",Ue._intl.getRangeLabel(Ue.pageIndex,Ue.pageSize,Ue.length)," "),b.xp6(1),b.Q6J("ngIf",Ue.showFirstLastButtons),b.xp6(1),b.Q6J("matTooltip",Ue._intl.previousPageLabel)("matTooltipDisabled",Ue._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Ue._previousButtonsDisabled()),b.uIk("aria-label",Ue._intl.previousPageLabel),b.xp6(3),b.Q6J("matTooltip",Ue._intl.nextPageLabel)("matTooltipDisabled",Ue._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Ue._nextButtonsDisabled()),b.uIk("aria-label",Ue._intl.nextPageLabel),b.xp6(3),b.Q6J("ngIf",Ue.showFirstLastButtons))},directives:[I.KE,g.gD,_.ey,w.lW,e.O5,e.sg,A.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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),ue})(),te=(()=>{class ue{}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=b.oAB({type:ue}),ue.\u0275inj=b.cJS({providers:[Me],imports:[[e.ez,w.ot,g.LD,A.AV,_.BQ]]}),ue})()},85899:($e,_e,p)=>{"use strict";p.d(_e,{Cv:()=>L});var e=p(5e3),b=p(69808),_=p(90508);let L=(()=>{class O{}return O.\u0275fac=function(ne){return new(ne||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[[b.ez,_.BQ],_.BQ]}),O})()},20773:($e,_e,p)=>{"use strict";p.d(_e,{Cq:()=>j,$g:()=>T});var e=p(5e3),b=p(69808),_=p(90508),w=p(63191),g=p(70925),A=p(76360),E=p(42654),C=p(53435);function I(Y,q){if(1&Y&&(e.O4$(),e._UZ(0,"circle",4)),2&Y){const te=e.oxw(),ue=e.MAs(1);e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+te._spinnerAnimationLabel)("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ue)),e.uIk("r",te._getCircleRadius())}}function P(Y,q){if(1&Y&&(e.O4$(),e._UZ(0,"circle",4)),2&Y){const te=e.oxw(),ue=e.MAs(1);e.Udp("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ue)),e.uIk("r",te._getCircleRadius())}}function m(Y,q){if(1&Y&&(e.O4$(),e._UZ(0,"circle",4)),2&Y){const te=e.oxw(),ue=e.MAs(1);e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+te._spinnerAnimationLabel)("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ue)),e.uIk("r",te._getCircleRadius())}}function L(Y,q){if(1&Y&&(e.O4$(),e._UZ(0,"circle",4)),2&Y){const te=e.oxw(),ue=e.MAs(1);e.Udp("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ue)),e.uIk("r",te._getCircleRadius())}}const ge=(0,_.pj)(class{constructor(Y){this._elementRef=Y}},"primary"),J=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Me(){return{diameter:100}}});class Re extends ge{constructor(q,te,ue,de,Le,Ue,ze,le){super(q),this._document=ue,this._diameter=100,this._value=0,this._resizeSubscription=E.w.EMPTY,this.mode="determinate";const je=Re._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),je.has(ue.head)||je.set(ue.head,new Set([100])),this._noopAnimations="NoopAnimations"===de&&!!Le&&!Le._forceAnimations,Le&&(Le.diameter&&(this.diameter=Le.diameter),Le.strokeWidth&&(this.strokeWidth=Le.strokeWidth)),te.isBrowser&&te.SAFARI&&ze&&Ue&&le&&(this._resizeSubscription=ze.change(150).subscribe(()=>{"indeterminate"===this.mode&&le.run(()=>Ue.markForCheck())}))}get diameter(){return this._diameter}set diameter(q){this._diameter=(0,w.su)(q),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(q){this._strokeWidth=(0,w.su)(q)}get value(){return"determinate"===this.mode?this._value:0}set value(q){this._value=Math.max(0,Math.min(100,(0,w.su)(q)))}ngOnInit(){const q=this._elementRef.nativeElement;this._styleRoot=(0,g.kV)(q)||this._document.head,this._attachStyleNode(),q.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const q=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${q} ${q}`}_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(q){var te;const ue=50*(null!==(te=q.currentScale)&&void 0!==te?te:1);return`${ue}% ${ue}%`}_attachStyleNode(){const q=this._styleRoot,te=this._diameter,ue=Re._diameters;let de=ue.get(q);if(!de||!de.has(te)){const Le=this._document.createElement("style");Le.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Le.textContent=this._getAnimationText(),q.appendChild(Le),de||(de=new Set,ue.set(q,de)),de.add(te)}}_getAnimationText(){const q=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*q).replace(/END_VALUE/g,""+.2*q).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Re._diameters=new WeakMap,Re.\u0275fac=function(q){return new(q||Re)(e.Y36(e.SBq),e.Y36(g.t4),e.Y36(b.K0,8),e.Y36(A.Qb,8),e.Y36(J),e.Y36(e.sBO),e.Y36(C.rL),e.Y36(e.R0b))},Re.\u0275cmp=e.Xpm({type:Re,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(q,te){2&q&&(e.uIk("aria-valuemin","determinate"===te.mode?0:null)("aria-valuemax","determinate"===te.mode?100:null)("aria-valuenow","determinate"===te.mode?te.value:null)("mode",te.mode),e.Udp("width",te.diameter,"px")("height",te.diameter,"px"),e.ekj("_mat-animation-noopable",te._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.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(q,te){1&q&&(e.O4$(),e.TgZ(0,"svg",0,1),e.YNc(2,I,1,11,"circle",2),e.YNc(3,P,1,9,"circle",3),e.qZA()),2&q&&(e.Udp("width",te.diameter,"px")("height",te.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===te.mode),e.uIk("viewBox",te._getViewBox()),e.xp6(2),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[b.RF,b.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});let T=(()=>{class Y extends Re{constructor(te,ue,de,Le,Ue,ze,le,je){super(te,ue,de,Le,Ue,ze,le,je),this.mode="indeterminate"}}return Y.\u0275fac=function(te){return new(te||Y)(e.Y36(e.SBq),e.Y36(g.t4),e.Y36(b.K0,8),e.Y36(A.Qb,8),e.Y36(J),e.Y36(e.sBO),e.Y36(C.rL),e.Y36(e.R0b))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(te,ue){2&te&&(e.Udp("width",ue.diameter,"px")("height",ue.diameter,"px"),e.ekj("_mat-animation-noopable",ue._noopAnimations))},inputs:{color:"color"},features:[e.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(te,ue){1&te&&(e.O4$(),e.TgZ(0,"svg",0,1),e.YNc(2,m,1,11,"circle",2),e.YNc(3,L,1,9,"circle",3),e.qZA()),2&te&&(e.Udp("width",ue.diameter,"px")("height",ue.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===ue.mode),e.uIk("viewBox",ue._getViewBox()),e.xp6(2),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[b.RF,b.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0}),Y})(),j=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[[_.BQ,b.ez],_.BQ]}),Y})()},79814:($e,_e,p)=>{"use strict";p.d(_e,{U0:()=>j,VQ:()=>Me,Fk:()=>Y});var e=p(5e3),b=p(90508),_=p(63191),w=p(93075),g=p(76360),A=p(15664),E=p(20449);const C=["input"],I=function(q){return{enterDuration:q}},P=["*"],m=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function L(){return{color:"accent"}}});let O=0;const G={provide:w.JU,useExisting:(0,e.Gpc)(()=>Me),multi:!0};class ne{constructor(te,ue){this.source=te,this.value=ue}}const ge=new e.OlP("MatRadioGroup");let J=(()=>{class q{constructor(ue){this._changeDetector=ue,this._value=null,this._name="mat-radio-group-"+O++,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(ue){this._name=ue,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ue){this._labelPosition="before"===ue?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ue){this._value!==ue&&(this._value=ue,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ue){this._selected=ue,this.value=ue?ue.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ue){this._disabled=(0,_.Ig)(ue),this._markRadiosForCheck()}get required(){return this._required}set required(ue){this._required=(0,_.Ig)(ue),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ue=>{ue.name=this.name,ue._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(de=>{de.checked=this.value===de.value,de.checked&&(this._selected=de)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new ne(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ue=>ue._markForCheck())}writeValue(ue){this.value=ue,this._changeDetector.markForCheck()}registerOnChange(ue){this._controlValueAccessorChangeFn=ue}registerOnTouched(ue){this.onTouched=ue}setDisabledState(ue){this.disabled=ue,this._changeDetector.markForCheck()}}return q.\u0275fac=function(ue){return new(ue||q)(e.Y36(e.sBO))},q.\u0275dir=e.lG2({type:q,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),q})(),Me=(()=>{class q extends J{}return q.\u0275fac=function(){let te;return function(de){return(te||(te=e.n5z(q)))(de||q)}}(),q.\u0275dir=e.lG2({type:q,selectors:[["mat-radio-group"]],contentQueries:function(ue,de,Le){if(1&ue&&e.Suo(Le,j,5),2&ue){let Ue;e.iGM(Ue=e.CRH())&&(de._radios=Ue)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([G,{provide:ge,useExisting:q}]),e.qOj]}),q})();class oe{constructor(te){this._elementRef=te}}const Re=(0,b.Kr)((0,b.sb)(oe));let T=(()=>{class q extends Re{constructor(ue,de,Le,Ue,ze,le,je,ye){super(de),this._changeDetector=Le,this._focusMonitor=Ue,this._radioDispatcher=ze,this._providerOverride=je,this._uniqueId="mat-radio-"+ ++O,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ue,this._noopAnimations="NoopAnimations"===le,ye&&(this.tabIndex=(0,_.su)(ye,0)),this._removeUniqueSelectionListener=ze.listen((Be,W)=>{Be!==this.id&&W===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ue){const de=(0,_.Ig)(ue);this._checked!==de&&(this._checked=de,de&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!de&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),de&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ue){this._value!==ue&&(this._value=ue,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ue),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ue){this._labelPosition=ue}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ue){this._setDisabled((0,_.Ig)(ue))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ue){this._required=(0,_.Ig)(ue)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ue){this._color=ue}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ue,de){de?this._focusMonitor.focusVia(this._inputElement,de,ue):this._inputElement.nativeElement.focus(ue)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ue=>{!ue&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new ne(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ue){ue.stopPropagation()}_onInputInteraction(ue){if(ue.stopPropagation(),!this.checked&&!this.disabled){const de=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),de&&this.radioGroup._emitChangeEvent())}}_setDisabled(ue){this._disabled!==ue&&(this._disabled=ue,this._changeDetector.markForCheck())}}return q.\u0275fac=function(ue){e.$Z()},q.\u0275dir=e.lG2({type:q,viewQuery:function(ue,de){if(1&ue&&e.Gf(C,5),2&ue){let Le;e.iGM(Le=e.CRH())&&(de._inputElement=Le.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]}),q})(),j=(()=>{class q extends T{constructor(ue,de,Le,Ue,ze,le,je,ye){super(ue,de,Le,Ue,ze,le,je,ye)}}return q.\u0275fac=function(ue){return new(ue||q)(e.Y36(ge,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(A.tE),e.Y36(E.A8),e.Y36(g.Qb,8),e.Y36(m,8),e.$8M("tabindex"))},q.\u0275cmp=e.Xpm({type:q,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ue,de){1&ue&&e.NdJ("focus",function(){return de._inputElement.nativeElement.focus()}),2&ue&&(e.uIk("tabindex",null)("id",de.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",de.checked)("mat-radio-disabled",de.disabled)("_mat-animation-noopable",de._noopAnimations)("mat-primary","primary"===de.color)("mat-accent","accent"===de.color)("mat-warn","warn"===de.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:P,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(ue,de){if(1&ue&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(Ue){return de._onInputInteraction(Ue)})("click",function(Ue){return de._onInputClick(Ue)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&ue){const Le=e.MAs(1);e.uIk("for",de.inputId),e.xp6(5),e.Q6J("id",de.inputId)("checked",de.checked)("disabled",de.disabled)("tabIndex",de.tabIndex)("required",de.required),e.uIk("name",de.name)("value",de.value)("aria-label",de.ariaLabel)("aria-labelledby",de.ariaLabelledby)("aria-describedby",de.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",Le)("matRippleDisabled",de._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,I,de._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==de.labelPosition)}},directives:[b.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-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;-moz-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),q})(),Y=(()=>{class q{}return q.\u0275fac=function(ue){return new(ue||q)},q.\u0275mod=e.oAB({type:q}),q.\u0275inj=e.cJS({imports:[[b.si,b.BQ],b.BQ]}),q})()},74107:($e,_e,p)=>{"use strict";p.d(_e,{gD:()=>Qe,LD:()=>Te,$L:()=>V});var e=p(92845),b=p(69808),_=p(5e3),w=p(90508),g=p(67322),A=p(53435),E=p(15664),C=p(63191),I=p(20449),P=p(91159),m=p(93075),L=p(8929),O=p(88514),G=p(36787),ne=p(1059),ge=p(87545),J=p(72986),Me=p(92198),oe=p(24850),Re=p(75778),T=p(7625),j=p(41777),Y=p(50226);const q=["trigger"],te=["panel"];function ue(Ae,ae){if(1&Ae&&(_.TgZ(0,"span",8),_._uU(1),_.qZA()),2&Ae){const i=_.oxw();_.xp6(1),_.Oqu(i.placeholder)}}function de(Ae,ae){if(1&Ae&&(_.TgZ(0,"span",12),_._uU(1),_.qZA()),2&Ae){const i=_.oxw(2);_.xp6(1),_.Oqu(i.triggerValue)}}function Le(Ae,ae){1&Ae&&_.Hsn(0,0,["*ngSwitchCase","true"])}function Ue(Ae,ae){if(1&Ae&&(_.TgZ(0,"span",9),_.YNc(1,de,2,1,"span",10),_.YNc(2,Le,1,0,"ng-content",11),_.qZA()),2&Ae){const i=_.oxw();_.Q6J("ngSwitch",!!i.customTrigger),_.xp6(2),_.Q6J("ngSwitchCase",!0)}}function ze(Ae,ae){if(1&Ae){const i=_.EpF();_.TgZ(0,"div",13),_.TgZ(1,"div",14,15),_.NdJ("@transformPanel.done",function(d){return _.CHM(i),_.oxw()._panelDoneAnimatingStream.next(d.toState)})("keydown",function(d){return _.CHM(i),_.oxw()._handleKeydown(d)}),_.Hsn(3,1),_.qZA(),_.qZA()}if(2&Ae){const i=_.oxw();_.Q6J("@transformPanelWrap",void 0),_.xp6(1),_.Gre("mat-select-panel ",i._getPanelTheme(),""),_.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),_.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),_.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}const le=[[["mat-select-trigger"]],"*"],je=["mat-select-trigger","*"],ye={transformPanelWrap:(0,j.X$)("transformPanelWrap",[(0,j.eR)("* => void",(0,j.IO)("@transformPanel",[(0,j.pV)()],{optional:!0}))]),transformPanel:(0,j.X$)("transformPanel",[(0,j.SB)("void",(0,j.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,j.SB)("showing",(0,j.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,j.SB)("showing-multiple",(0,j.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,j.eR)("void => *",(0,j.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,j.eR)("* => void",(0,j.jt)("100ms 25ms linear",(0,j.oB)({opacity:0})))])};let me=0;const nt=new _.OlP("mat-select-scroll-strategy"),X=new _.OlP("MAT_SELECT_CONFIG"),z={provide:nt,deps:[e.aV],useFactory:function Ve(Ae){return()=>Ae.scrollStrategies.reposition()}};class Q{constructor(ae,i){this.source=ae,this.value=i}}const D=(0,w.Kr)((0,w.sb)((0,w.Id)((0,w.FD)(class{constructor(Ae,ae,i,o,d){this._elementRef=Ae,this._defaultErrorStateMatcher=ae,this._parentForm=i,this._parentFormGroup=o,this.ngControl=d}})))),H=new _.OlP("MatSelectTrigger");let V=(()=>{class Ae{}return Ae.\u0275fac=function(i){return new(i||Ae)},Ae.\u0275dir=_.lG2({type:Ae,selectors:[["mat-select-trigger"]],features:[_._Bn([{provide:H,useExisting:Ae}])]}),Ae})(),xe=(()=>{class Ae extends D{constructor(i,o,d,l,s,r,t,n,a,c,h,x,We,At){var Ht,lt,Ut;super(s,l,t,n,c),this._viewportRuler=i,this._changeDetectorRef=o,this._ngZone=d,this._dir=r,this._parentFormField=a,this._liveAnnouncer=We,this._defaultOptions=At,this._panelOpen=!1,this._compareWith=(mt,Lt)=>mt===Lt,this._uid="mat-select-"+me++,this._triggerAriaLabelledBy=null,this._destroy=new L.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+me++,this._panelDoneAnimatingStream=new L.xQ,this._overlayPanelClass=(null===(Ht=this._defaultOptions)||void 0===Ht?void 0:Ht.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Ut=null===(lt=this._defaultOptions)||void 0===lt?void 0:lt.disableOptionCentering)&&void 0!==Ut&&Ut,this.ariaLabel="",this.optionSelectionChanges=(0,O.P)(()=>{const mt=this.options;return mt?mt.changes.pipe((0,ne.O)(mt),(0,ge.w)(()=>(0,G.T)(...mt.map(Lt=>Lt.onSelectionChange)))):this._ngZone.onStable.pipe((0,J.q)(1),(0,ge.w)(()=>this.optionSelectionChanges))}),this.openedChange=new _.vpe,this._openedStream=this.openedChange.pipe((0,Me.h)(mt=>mt),(0,oe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Me.h)(mt=>!mt),(0,oe.U)(()=>{})),this.selectionChange=new _.vpe,this.valueChange=new _.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==At?void 0:At.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=At.typeaheadDebounceInterval),this._scrollStrategyFactory=x,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){var i,o,d,l;return null!==(l=null!==(i=this._required)&&void 0!==i?i:null===(d=null===(o=this.ngControl)||void 0===o?void 0:o.control)||void 0===d?void 0:d.hasValidator(m.kI.required))&&void 0!==l&&l}set required(i){this._required=(0,C.Ig)(i),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._multiple=(0,C.Ig)(i)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(i){this._disableOptionCentering=(0,C.Ig)(i)}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){(i!==this._value||this._multiple&&Array.isArray(i))&&(this.options&&this._setSelectionByValue(i),this._value=i)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(i){this._typeaheadDebounceInterval=(0,C.su)(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new I.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Re.x)(),(0,T.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,T.R)(this._destroy)).subscribe(i=>{i.added.forEach(o=>o.select()),i.removed.forEach(o=>o.deselect())}),this.options.changes.pipe((0,ne.O)(null),(0,T.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const i=this._getTriggerAriaLabelledby();if(i!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?o.setAttribute("aria-labelledby",i):o.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(i){i.disabled&&this.stateChanges.next(),i.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(i){this.value=i}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var i,o;return this.multiple?(null===(i=this._selectionModel)||void 0===i?void 0:i.selected)||[]:null===(o=this._selectionModel)||void 0===o?void 0:o.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const i=this._selectionModel.selected.map(o=>o.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){const o=i.keyCode,d=o===P.JH||o===P.LH||o===P.oh||o===P.SV,l=o===P.K5||o===P.L_,s=this._keyManager;if(!s.isTyping()&&l&&!(0,P.Vb)(i)||(this.multiple||i.altKey)&&d)i.preventDefault(),this.open();else if(!this.multiple){const r=this.selected;s.onKeydown(i);const t=this.selected;t&&r!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(i){const o=this._keyManager,d=i.keyCode,l=d===P.JH||d===P.LH,s=o.isTyping();if(l&&i.altKey)i.preventDefault(),this.close();else if(s||d!==P.K5&&d!==P.L_||!o.activeItem||(0,P.Vb)(i))if(!s&&this._multiple&&d===P.A&&i.ctrlKey){i.preventDefault();const r=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(r?t.select():t.deselect())})}else{const r=o.activeItemIndex;o.onKeydown(i),this._multiple&&l&&i.shiftKey&&o.activeItem&&o.activeItemIndex!==r&&o.activeItem._selectViaInteraction()}else i.preventDefault(),o.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,J.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(i){if(this._selectionModel.selected.forEach(o=>o.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(o=>this._selectValue(o)),this._sortValues();else{const o=this._selectValue(i);o?this._keyManager.updateActiveItem(o):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(i){const o=this.options.find(d=>{if(this._selectionModel.isSelected(d))return!1;try{return null!=d.value&&this._compareWith(d.value,i)}catch(l){return!1}});return o&&this._selectionModel.select(o),o}_initKeyManager(){this._keyManager=new E.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,T.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,T.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 i=(0,G.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,T.R)(i)).subscribe(o=>{this._onSelect(o.source,o.isUserInput),o.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,G.T)(...this.options.map(o=>o._stateChanges)).pipe((0,T.R)(i)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(i,o){const d=this._selectionModel.isSelected(i);null!=i.value||this._multiple?(d!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),o&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),o&&this.focus())):(i.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(i.value)),d!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const i=this.options.toArray();this._selectionModel.sort((o,d)=>this.sortComparator?this.sortComparator(o,d,i):i.indexOf(o)-i.indexOf(d)),this.stateChanges.next()}}_propagateChanges(i){let o=null;o=this.multiple?this.selected.map(d=>d.value):this.selected?this.selected.value:i,this._value=o,this.valueChange.emit(o),this._onChange(o),this.selectionChange.emit(this._getChangeEvent(o)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var i;return!this._panelOpen&&!this.disabled&&(null===(i=this.options)||void 0===i?void 0:i.length)>0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){var i;if(this.ariaLabel)return null;const o=null===(i=this._parentFormField)||void 0===i?void 0:i.getLabelId();return this.ariaLabelledby?(o?o+" ":"")+this.ariaLabelledby:o}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var i;if(this.ariaLabel)return null;const o=null===(i=this._parentFormField)||void 0===i?void 0:i.getLabelId();let d=(o?o+" ":"")+this._valueId;return this.ariaLabelledby&&(d+=" "+this.ariaLabelledby),d}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){this._ariaDescribedby=i.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.Y36(A.rL),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(w.rD),_.Y36(_.SBq),_.Y36(Y.Is,8),_.Y36(m.F,8),_.Y36(m.sg,8),_.Y36(g.G_,8),_.Y36(m.a5,10),_.$8M("tabindex"),_.Y36(nt),_.Y36(E.Kd),_.Y36(X,8))},Ae.\u0275dir=_.lG2({type:Ae,viewQuery:function(i,o){if(1&i&&(_.Gf(q,5),_.Gf(te,5),_.Gf(e.pI,5)),2&i){let d;_.iGM(d=_.CRH())&&(o.trigger=d.first),_.iGM(d=_.CRH())&&(o.panel=d.first),_.iGM(d=_.CRH())&&(o._overlayDir=d.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[_.qOj,_.TTD]}),Ae})(),Qe=(()=>{class Ae extends xe{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(i,o,d){const l=this._getItemHeight();return Math.min(Math.max(0,l*i-o+l/2),d)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,T.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,J.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(i){const o=(0,w.CB)(i,this.options,this.optionGroups),d=this._getItemHeight();this.panel.nativeElement.scrollTop=0===i&&1===o?0:(0,w.jH)((i+o)*d,d,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(i){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(i)}_getChangeEvent(i){return new Q(this,i)}_calculateOverlayOffsetX(){const i=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),d=this._isRtl(),l=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let n=this._selectionModel.selected[0]||this.options.first;s=n&&n.group?32:16}d||(s*=-1);const r=0-(i.left+s-(d?l:0)),t=i.right+s-o.width+(d?0:l);r>0?s+=r+8:t>0&&(s-=t+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(i,o,d){const l=this._getItemHeight(),s=(l-this._triggerRect.height)/2,r=Math.floor(256/l);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?i*l:this._scrollTop===d?(i-(this._getItemCount()-r))*l+(l-(this._getItemCount()*l-256)%l):o-l/2,Math.round(-1*t-s))}_checkOverlayWithinViewport(i){const o=this._getItemHeight(),d=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,s=d.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),n=Math.min(this._getItemCount()*o,256)-r-this._triggerRect.height;n>s?this._adjustPanelUp(n,s):r>l?this._adjustPanelDown(r,l,i):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(i,o){const d=Math.round(i-o);this._scrollTop-=d,this._offsetY-=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(i,o,d){const l=Math.round(i-o);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=d)return this._scrollTop=d,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const i=this._getItemHeight(),o=this._getItemCount(),d=Math.min(o*i,256),s=o*i-d;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=(0,w.CB)(r,this.options,this.optionGroups);const t=d/2;this._scrollTop=this._calculateOverlayScroll(r,t,s),this._offsetY=this._calculateOverlayOffsetY(r,t,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const i=this._getItemHeight(),o=(i-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-o+i/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ae.\u0275fac=function(){let ae;return function(o){return(ae||(ae=_.n5z(Ae)))(o||Ae)}}(),Ae.\u0275cmp=_.Xpm({type:Ae,selectors:[["mat-select"]],contentQueries:function(i,o,d){if(1&i&&(_.Suo(d,H,5),_.Suo(d,w.ey,5),_.Suo(d,w.K7,5)),2&i){let l;_.iGM(l=_.CRH())&&(o.customTrigger=l.first),_.iGM(l=_.CRH())&&(o.options=l),_.iGM(l=_.CRH())&&(o.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(i,o){1&i&&_.NdJ("keydown",function(l){return o._handleKeydown(l)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&i&&(_.uIk("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-describedby",o._ariaDescribedby||null)("aria-activedescendant",o._getAriaActiveDescendant()),_.ekj("mat-select-disabled",o.disabled)("mat-select-invalid",o.errorState)("mat-select-required",o.required)("mat-select-empty",o.empty)("mat-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[_._Bn([{provide:g.Eo,useExisting:Ae},{provide:w.HF,useExisting:Ae}]),_.qOj],ngContentSelectors:je,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(i,o){if(1&i&&(_.F$t(le),_.TgZ(0,"div",0,1),_.NdJ("click",function(){return o.toggle()}),_.TgZ(3,"div",2),_.YNc(4,ue,2,1,"span",3),_.YNc(5,Ue,3,2,"span",4),_.qZA(),_.TgZ(6,"div",5),_._UZ(7,"div",6),_.qZA(),_.qZA(),_.YNc(8,ze,4,14,"ng-template",7),_.NdJ("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&i){const d=_.MAs(1);_.uIk("aria-owns",o.panelOpen?o.id+"-panel":null),_.xp6(3),_.Q6J("ngSwitch",o.empty),_.uIk("id",o._valueId),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1),_.xp6(3),_.Q6J("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",d)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayMinWidth",null==o._triggerRect?null:o._triggerRect.width)("cdkConnectedOverlayOffsetY",o._offsetY)}},directives:[e.xu,b.RF,b.n9,b.ED,e.pI,b.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[ye.transformPanelWrap,ye.transformPanel]},changeDetection:0}),Ae})(),Te=(()=>{class Ae{}return Ae.\u0275fac=function(i){return new(i||Ae)},Ae.\u0275mod=_.oAB({type:Ae}),Ae.\u0275inj=_.cJS({providers:[z],imports:[[b.ez,e.U8,w.Ng,w.BQ],A.ZD,g.lN,w.Ng,w.BQ]}),Ae})()},2638:($e,_e,p)=>{"use strict";p.d(_e,{JX:()=>Je,TM:()=>nt,Rh:()=>Xe,SJ:()=>Ve});var e=p(70925),b=p(53435),_=p(69808),w=p(5e3),g=p(90508),A=p(63191),E=p(91159),C=p(8929),I=p(23753),P=p(36787),m=p(92198),L=p(24850),O=p(77604),G=p(7625),ne=p(75778),ge=p(72986),J=p(1059),Me=p(80013),oe=p(41777),Re=p(76360),T=p(15664),j=p(50226);const Y=["*"],q=["content"];function te(X,z){if(1&X){const Q=w.EpF();w.TgZ(0,"div",2),w.NdJ("click",function(){return w.CHM(Q),w.oxw()._onBackdropClicked()}),w.qZA()}if(2&X){const Q=w.oxw();w.ekj("mat-drawer-shown",Q._isShowingBackdrop())}}function ue(X,z){1&X&&(w.TgZ(0,"mat-drawer-content"),w.Hsn(1,2),w.qZA())}const de=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Le=["mat-drawer","mat-drawer-content","*"];function Ue(X,z){if(1&X){const Q=w.EpF();w.TgZ(0,"div",2),w.NdJ("click",function(){return w.CHM(Q),w.oxw()._onBackdropClicked()}),w.qZA()}if(2&X){const Q=w.oxw();w.ekj("mat-drawer-shown",Q._isShowingBackdrop())}}function ze(X,z){1&X&&(w.TgZ(0,"mat-sidenav-content"),w.Hsn(1,2),w.qZA())}const le=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],je=["mat-sidenav","mat-sidenav-content","*"],Be={transformDrawer:(0,oe.X$)("transform",[(0,oe.SB)("open, open-instant",(0,oe.oB)({transform:"none",visibility:"visible"})),(0,oe.SB)("void",(0,oe.oB)({"box-shadow":"none",visibility:"hidden"})),(0,oe.eR)("void => open-instant",(0,oe.jt)("0ms")),(0,oe.eR)("void <=> open, open-instant => void",(0,oe.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},R=new w.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function be(){return!1}}),me=new w.OlP("MAT_DRAWER_CONTAINER");let Ie=(()=>{class X extends b.PQ{constructor(Q,D,H,V,xe){super(H,V,xe),this._changeDetectorRef=Q,this._container=D}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return X.\u0275fac=function(Q){return new(Q||X)(w.Y36(w.sBO),w.Y36((0,w.Gpc)(()=>Se)),w.Y36(w.SBq),w.Y36(b.mF),w.Y36(w.R0b))},X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Q,D){2&Q&&w.Udp("margin-left",D._container._contentMargins.left,"px")("margin-right",D._container._contentMargins.right,"px")},features:[w._Bn([{provide:b.PQ,useExisting:X}]),w.qOj],ngContentSelectors:Y,decls:1,vars:0,template:function(Q,D){1&Q&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0}),X})(),pe=(()=>{class X{constructor(Q,D,H,V,xe,Qe,Te,Ae){this._elementRef=Q,this._focusTrapFactory=D,this._focusMonitor=H,this._platform=V,this._ngZone=xe,this._interactivityChecker=Qe,this._doc=Te,this._container=Ae,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new C.xQ,this._animationEnd=new C.xQ,this._animationState="void",this.openedChange=new w.vpe(!0),this._openedStream=this.openedChange.pipe((0,m.h)(ae=>ae),(0,L.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,m.h)(ae=>ae.fromState!==ae.toState&&0===ae.toState.indexOf("open")),(0,O.h)(void 0)),this._closedStream=this.openedChange.pipe((0,m.h)(ae=>!ae),(0,L.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,m.h)(ae=>ae.fromState!==ae.toState&&"void"===ae.toState),(0,O.h)(void 0)),this._destroyed=new C.xQ,this.onPositionChanged=new w.vpe,this._modeChanged=new C.xQ,this.openedChange.subscribe(ae=>{ae?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,I.R)(this._elementRef.nativeElement,"keydown").pipe((0,m.h)(ae=>ae.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(ae)),(0,G.R)(this._destroyed)).subscribe(ae=>this._ngZone.run(()=>{this.close(),ae.stopPropagation(),ae.preventDefault()}))}),this._animationEnd.pipe((0,ne.x)((ae,i)=>ae.fromState===i.fromState&&ae.toState===i.toState)).subscribe(ae=>{const{fromState:i,toState:o}=ae;(0===o.indexOf("open")&&"void"===i||"void"===o&&0===i.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Q){(Q="end"===Q?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Q),this._position=Q,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Q){this._mode=Q,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Q){this._disableClose=(0,A.Ig)(Q)}get autoFocus(){const Q=this._autoFocus;return null==Q?"side"===this.mode?"dialog":"first-tabbable":Q}set autoFocus(Q){("true"===Q||"false"===Q||null==Q)&&(Q=(0,A.Ig)(Q)),this._autoFocus=Q}get opened(){return this._opened}set opened(Q){this.toggle((0,A.Ig)(Q))}_forceFocus(Q,D){this._interactivityChecker.isFocusable(Q)||(Q.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Q.addEventListener("blur",()=>Q.removeAttribute("tabindex")),Q.addEventListener("mousedown",()=>Q.removeAttribute("tabindex"))})),Q.focus(D)}_focusByCssSelector(Q,D){let H=this._elementRef.nativeElement.querySelector(Q);H&&this._forceFocus(H,D)}_takeFocus(){if(!this._focusTrap)return;const Q=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(D=>{!D&&"function"==typeof this._elementRef.nativeElement.focus&&Q.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Q){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Q):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Q=this._doc.activeElement;return!!Q&&this._elementRef.nativeElement.contains(Q)}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 Q;this._focusTrap&&this._focusTrap.destroy(),null===(Q=this._anchor)||void 0===Q||Q.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Q){return this.toggle(!0,Q)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Q=!this.opened,D){Q&&D&&(this._openedVia=D);const H=this._setOpen(Q,!Q&&this._isFocusWithinDrawer(),this._openedVia||"program");return Q||(this._openedVia=null),H}_setOpen(Q,D,H){return this._opened=Q,Q?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",D&&this._restoreFocus(H)),this._updateFocusTrapState(),new Promise(V=>{this.openedChange.pipe((0,ge.q)(1)).subscribe(xe=>V(xe?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Q){const D=this._elementRef.nativeElement,H=D.parentNode;"end"===Q?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),H.insertBefore(this._anchor,D)),H.appendChild(D)):this._anchor&&this._anchor.parentNode.insertBefore(D,this._anchor)}}return X.\u0275fac=function(Q){return new(Q||X)(w.Y36(w.SBq),w.Y36(T.qV),w.Y36(T.tE),w.Y36(e.t4),w.Y36(w.R0b),w.Y36(T.ic),w.Y36(_.K0,8),w.Y36(me,8))},X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-drawer"]],viewQuery:function(Q,D){if(1&Q&&w.Gf(q,5),2&Q){let H;w.iGM(H=w.CRH())&&(D._content=H.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Q,D){1&Q&&w.WFA("@transform.start",function(V){return D._animationStarted.next(V)})("@transform.done",function(V){return D._animationEnd.next(V)}),2&Q&&(w.uIk("align",null),w.d8E("@transform",D._animationState),w.ekj("mat-drawer-end","end"===D.position)("mat-drawer-over","over"===D.mode)("mat-drawer-push","push"===D.mode)("mat-drawer-side","side"===D.mode)("mat-drawer-opened",D.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:Y,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Q,D){1&Q&&(w.F$t(),w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA())},directives:[b.PQ],encapsulation:2,data:{animation:[Be.transformDrawer]},changeDetection:0}),X})(),Se=(()=>{class X{constructor(Q,D,H,V,xe,Qe=!1,Te){this._dir=Q,this._element=D,this._ngZone=H,this._changeDetectorRef=V,this._animationMode=Te,this._drawers=new w.n_E,this.backdropClick=new w.vpe,this._destroyed=new C.xQ,this._doCheckSubject=new C.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new C.xQ,Q&&Q.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),xe.change().pipe((0,G.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Qe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Q){this._autosize=(0,A.Ig)(Q)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Q){this._backdropOverride=null==Q?null:(0,A.Ig)(Q)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,J.O)(this._allDrawers),(0,G.R)(this._destroyed)).subscribe(Q=>{this._drawers.reset(Q.filter(D=>!D._container||D._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,J.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Q=>{this._watchDrawerToggle(Q),this._watchDrawerPosition(Q),this._watchDrawerMode(Q)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Me.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(Q=>Q.open())}close(){this._drawers.forEach(Q=>Q.close())}updateContentMargins(){let Q=0,D=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Q+=this._left._getWidth();else if("push"==this._left.mode){const H=this._left._getWidth();Q+=H,D-=H}if(this._right&&this._right.opened)if("side"==this._right.mode)D+=this._right._getWidth();else if("push"==this._right.mode){const H=this._right._getWidth();D+=H,Q-=H}Q=Q||null,D=D||null,(Q!==this._contentMargins.left||D!==this._contentMargins.right)&&(this._contentMargins={left:Q,right:D},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Q){Q._animationStarted.pipe((0,m.h)(D=>D.fromState!==D.toState),(0,G.R)(this._drawers.changes)).subscribe(D=>{"open-instant"!==D.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Q.mode&&Q.openedChange.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Q.opened))}_watchDrawerPosition(Q){!Q||Q.onPositionChanged.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,ge.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Q){Q&&Q._modeChanged.pipe((0,G.R)((0,P.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Q){const D=this._element.nativeElement.classList,H="mat-drawer-container-has-open";Q?D.add(H):D.remove(H)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Q=>{"end"==Q.position?this._end=Q:this._start=Q}),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(Q=>Q&&!Q.disableClose&&this._canHaveBackdrop(Q)).forEach(Q=>Q._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Q){return"side"!==Q.mode||!!this._backdropOverride}_isDrawerOpen(Q){return null!=Q&&Q.opened}}return X.\u0275fac=function(Q){return new(Q||X)(w.Y36(j.Is,8),w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(b.rL),w.Y36(R),w.Y36(Re.Qb,8))},X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-drawer-container"]],contentQueries:function(Q,D,H){if(1&Q&&(w.Suo(H,Ie,5),w.Suo(H,pe,5)),2&Q){let V;w.iGM(V=w.CRH())&&(D._content=V.first),w.iGM(V=w.CRH())&&(D._allDrawers=V)}},viewQuery:function(Q,D){if(1&Q&&w.Gf(Ie,5),2&Q){let H;w.iGM(H=w.CRH())&&(D._userContent=H.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Q,D){2&Q&&w.ekj("mat-drawer-container-explicit-backdrop",D._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[w._Bn([{provide:me,useExisting:X}])],ngContentSelectors:Le,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(Q,D){1&Q&&(w.F$t(de),w.YNc(0,te,1,2,"div",0),w.Hsn(1),w.Hsn(2,1),w.YNc(3,ue,2,0,"mat-drawer-content",1)),2&Q&&(w.Q6J("ngIf",D.hasBackdrop),w.xp6(3),w.Q6J("ngIf",!D._content))},directives:[Ie,_.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),X})(),Xe=(()=>{class X extends Ie{constructor(Q,D,H,V,xe){super(Q,D,H,V,xe)}}return X.\u0275fac=function(Q){return new(Q||X)(w.Y36(w.sBO),w.Y36((0,w.Gpc)(()=>nt)),w.Y36(w.SBq),w.Y36(b.mF),w.Y36(w.R0b))},X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Q,D){2&Q&&w.Udp("margin-left",D._container._contentMargins.left,"px")("margin-right",D._container._contentMargins.right,"px")},features:[w._Bn([{provide:b.PQ,useExisting:X}]),w.qOj],ngContentSelectors:Y,decls:1,vars:0,template:function(Q,D){1&Q&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0}),X})(),Je=(()=>{class X extends pe{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Q){this._fixedInViewport=(0,A.Ig)(Q)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Q){this._fixedTopGap=(0,A.su)(Q)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Q){this._fixedBottomGap=(0,A.su)(Q)}}return X.\u0275fac=function(){let z;return function(D){return(z||(z=w.n5z(X)))(D||X)}}(),X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Q,D){2&Q&&(w.uIk("align",null),w.Udp("top",D.fixedInViewport?D.fixedTopGap:null,"px")("bottom",D.fixedInViewport?D.fixedBottomGap:null,"px"),w.ekj("mat-drawer-end","end"===D.position)("mat-drawer-over","over"===D.mode)("mat-drawer-push","push"===D.mode)("mat-drawer-side","side"===D.mode)("mat-drawer-opened",D.opened)("mat-sidenav-fixed",D.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[w.qOj],ngContentSelectors:Y,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Q,D){1&Q&&(w.F$t(),w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA())},directives:[b.PQ],encapsulation:2,data:{animation:[Be.transformDrawer]},changeDetection:0}),X})(),nt=(()=>{class X extends Se{}return X.\u0275fac=function(){let z;return function(D){return(z||(z=w.n5z(X)))(D||X)}}(),X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-sidenav-container"]],contentQueries:function(Q,D,H){if(1&Q&&(w.Suo(H,Xe,5),w.Suo(H,Je,5)),2&Q){let V;w.iGM(V=w.CRH())&&(D._content=V.first),w.iGM(V=w.CRH())&&(D._allDrawers=V)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Q,D){2&Q&&w.ekj("mat-drawer-container-explicit-backdrop",D._backdropOverride)},exportAs:["matSidenavContainer"],features:[w._Bn([{provide:me,useExisting:X}]),w.qOj],ngContentSelectors:je,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(Q,D){1&Q&&(w.F$t(le),w.YNc(0,Ue,1,2,"div",0),w.Hsn(1),w.Hsn(2,1),w.YNc(3,ze,2,0,"mat-sidenav-content",1)),2&Q&&(w.Q6J("ngIf",D.hasBackdrop),w.xp6(3),w.Q6J("ngIf",!D._content))},directives:[Xe,_.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),X})(),Ve=(()=>{class X{}return X.\u0275fac=function(Q){return new(Q||X)},X.\u0275mod=w.oAB({type:X}),X.\u0275inj=w.cJS({imports:[[_.ez,g.BQ,e.ud,b.ZD],b.ZD,g.BQ]}),X})()},32368:($e,_e,p)=>{"use strict";p.d(_e,{Rr:()=>Me,rP:()=>j});var e=p(17144),b=p(5e3),_=p(90508),w=p(63191),g=p(93075),A=p(76360),E=p(15664);const C=["thumbContainer"],I=["toggleBar"],P=["input"],m=function(Y){return{enterDuration:Y}},L=["*"],O=new b.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let G=0;const ne={provide:g.JU,useExisting:(0,b.Gpc)(()=>Me),multi:!0};class ge{constructor(q,te){this.source=q,this.checked=te}}const J=(0,_.sb)((0,_.pj)((0,_.Kr)((0,_.Id)(class{constructor(Y){this._elementRef=Y}}))));let Me=(()=>{class Y extends J{constructor(te,ue,de,Le,Ue,ze){super(te),this._focusMonitor=ue,this._changeDetectorRef=de,this.defaults=Ue,this._onChange=le=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++G,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new b.vpe,this.toggleChange=new b.vpe,this.tabIndex=parseInt(Le)||0,this.color=this.defaultColor=Ue.color||"accent",this._noopAnimations="NoopAnimations"===ze}get required(){return this._required}set required(te){this._required=(0,w.Ig)(te)}get checked(){return this._checked}set checked(te){this._checked=(0,w.Ig)(te),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(te=>{te||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(te){te.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(te){te.stopPropagation()}writeValue(te){this.checked=!!te}registerOnChange(te){this._onChange=te}registerOnTouched(te){this._onTouched=te}setDisabledState(te){this.disabled=te,this._changeDetectorRef.markForCheck()}focus(te,ue){ue?this._focusMonitor.focusVia(this._inputElement,ue,te):this._inputElement.nativeElement.focus(te)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new ge(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.SBq),b.Y36(E.tE),b.Y36(b.sBO),b.$8M("tabindex"),b.Y36(O),b.Y36(A.Qb,8))},Y.\u0275cmp=b.Xpm({type:Y,selectors:[["mat-slide-toggle"]],viewQuery:function(te,ue){if(1&te&&(b.Gf(C,5),b.Gf(I,5),b.Gf(P,5)),2&te){let de;b.iGM(de=b.CRH())&&(ue._thumbEl=de.first),b.iGM(de=b.CRH())&&(ue._thumbBarEl=de.first),b.iGM(de=b.CRH())&&(ue._inputElement=de.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(te,ue){2&te&&(b.Ikx("id",ue.id),b.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),b.ekj("mat-checked",ue.checked)("mat-disabled",ue.disabled)("mat-slide-toggle-label-before","before"==ue.labelPosition)("_mat-animation-noopable",ue._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",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"},exportAs:["matSlideToggle"],features:[b._Bn([ne]),b.qOj],ngContentSelectors:L,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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(te,ue){if(1&te&&(b.F$t(),b.TgZ(0,"label",0,1),b.TgZ(2,"span",2,3),b.TgZ(4,"input",4,5),b.NdJ("change",function(Le){return ue._onChangeEvent(Le)})("click",function(Le){return ue._onInputClick(Le)}),b.qZA(),b.TgZ(6,"span",6,7),b._UZ(8,"span",8),b.TgZ(9,"span",9),b._UZ(10,"span",10),b.qZA(),b.qZA(),b.qZA(),b.TgZ(11,"span",11,12),b.NdJ("cdkObserveContent",function(){return ue._onLabelTextChange()}),b.TgZ(13,"span",13),b._uU(14,"\xa0"),b.qZA(),b.Hsn(15),b.qZA(),b.qZA()),2&te){const de=b.MAs(1),Le=b.MAs(12);b.uIk("for",ue.inputId),b.xp6(2),b.ekj("mat-slide-toggle-bar-no-side-margin",!Le.textContent||!Le.textContent.trim()),b.xp6(2),b.Q6J("id",ue.inputId)("required",ue.required)("tabIndex",ue.tabIndex)("checked",ue.checked)("disabled",ue.disabled),b.uIk("name",ue.name)("aria-checked",ue.checked)("aria-label",ue.ariaLabel)("aria-labelledby",ue.ariaLabelledby)("aria-describedby",ue.ariaDescribedby),b.xp6(5),b.Q6J("matRippleTrigger",de)("matRippleDisabled",ue.disableRipple||ue.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",b.VKq(18,m,ue._noopAnimations?0:150))}},directives:[_.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:transparent}.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;-moz-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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),Y})(),T=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({}),Y})(),j=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({imports:[[T,_.si,_.BQ,e.Q8],T,_.BQ]}),Y})()},57261:($e,_e,p)=>{"use strict";p.d(_e,{ZX:()=>J});var e=p(92845),b=p(47429),_=p(69808),w=p(5e3),g=p(90508),A=p(47423);p(41777);let J=(()=>{class j{}return j.\u0275fac=function(q){return new(q||j)},j.\u0275mod=w.oAB({type:j}),j.\u0275inj=w.cJS({imports:[[e.U8,b.eL,_.ez,A.ot,g.BQ],g.BQ]}),j})()},84847:($e,_e,p)=>{"use strict";p.d(_e,{YE:()=>q,nU:()=>de,JX:()=>Le});var e=p(5e3),b=p(63191),_=p(91159),w=p(90508),g=p(8929),A=p(36787),E=p(41777),C=p(15664),I=p(69808);const P=["mat-sort-header",""];function m(Ue,ze){if(1&Ue){const le=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(le),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(le),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&Ue){const le=e.oxw();e.Q6J("@arrowOpacity",le._getArrowViewState())("@arrowPosition",le._getArrowViewState())("@allowChildren",le._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",le._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",le._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",le._getArrowDirectionState())}}const L=["*"],O=w.mZ.ENTERING+" "+w.yN.STANDARD_CURVE,G={indicator:(0,E.X$)("indicator",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"translateY(0px)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"translateY(10px)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(O))]),leftPointer:(0,E.X$)("leftPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(O))]),rightPointer:(0,E.X$)("rightPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(O))]),arrowOpacity:(0,E.X$)("arrowOpacity",[(0,E.SB)("desc-to-active, asc-to-active, active",(0,E.oB)({opacity:1})),(0,E.SB)("desc-to-hint, asc-to-hint, hint",(0,E.oB)({opacity:.54})),(0,E.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,E.oB)({opacity:0})),(0,E.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,E.jt)("0ms")),(0,E.eR)("* <=> *",(0,E.jt)(O))]),arrowPosition:(0,E.X$)("arrowPosition",[(0,E.eR)("* => desc-to-hint, * => desc-to-active",(0,E.jt)(O,(0,E.F4)([(0,E.oB)({transform:"translateY(-25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-desc, * => active-to-desc",(0,E.jt)(O,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(25%)"})]))),(0,E.eR)("* => asc-to-hint, * => asc-to-active",(0,E.jt)(O,(0,E.F4)([(0,E.oB)({transform:"translateY(25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-asc, * => active-to-asc",(0,E.jt)(O,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(-25%)"})]))),(0,E.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,E.oB)({transform:"translateY(0)"})),(0,E.SB)("hint-to-desc, active-to-desc, desc",(0,E.oB)({transform:"translateY(-25%)"})),(0,E.SB)("hint-to-asc, active-to-asc, asc",(0,E.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,E.X$)("allowChildren",[(0,E.eR)("* <=> *",[(0,E.IO)("@*",(0,E.pV)(),{optional:!0})])])};let oe=(()=>{class Ue{constructor(){this.changes=new g.xQ}}return Ue.\u0275fac=function(le){return new(le||Ue)},Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})();const T={provide:oe,deps:[[new e.FiY,new e.tp0,oe]],useFactory:function Re(Ue){return Ue||new oe}},j=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),Y=(0,w.dB)((0,w.Id)(class{}));let q=(()=>{class Ue extends Y{constructor(le){super(),this._defaultOptions=le,this.sortables=new Map,this._stateChanges=new g.xQ,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(le){this._direction=le}get disableClear(){return this._disableClear}set disableClear(le){this._disableClear=(0,b.Ig)(le)}register(le){this.sortables.set(le.id,le)}deregister(le){this.sortables.delete(le.id)}sort(le){this.active!=le.id?(this.active=le.id,this.direction=le.start?le.start:this.start):this.direction=this.getNextSortDirection(le),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(le){var je,ye,Be;if(!le)return"";const W=null!==(ye=null!==(je=null==le?void 0:le.disableClear)&&void 0!==je?je:this.disableClear)&&void 0!==ye?ye:!!(null===(Be=this._defaultOptions)||void 0===Be?void 0:Be.disableClear);let R=function te(Ue,ze){let le=["asc","desc"];return"desc"==Ue&&le.reverse(),ze||le.push(""),le}(le.start||this.start,W),me=R.indexOf(this.direction)+1;return me>=R.length&&(me=0),R[me]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ue.\u0275fac=function(le){return new(le||Ue)(e.Y36(j,8))},Ue.\u0275dir=e.lG2({type:Ue,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]}),Ue})();const ue=(0,w.Id)(class{});let de=(()=>{class Ue extends ue{constructor(le,je,ye,Be,W,R,me){super(),this._intl=le,this._changeDetectorRef=je,this._sort=ye,this._columnDef=Be,this._focusMonitor=W,this._elementRef=R,this._ariaDescriber=me,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(le){this._updateSortActionDescription(le)}get disableClear(){return this._disableClear}set disableClear(le){this._disableClear=(0,b.Ig)(le)}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('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(le=>{const je=!!le;je!==this._showIndicatorHint&&(this._setIndicatorHintVisible(je),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(le){this._isDisabled()&&le||(this._showIndicatorHint=le,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(le){this._viewState=le||{},this._disableViewStateAnimation&&(this._viewState={toState:le.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(le){!this._isDisabled()&&(le.keyCode===_.L_||le.keyCode===_.K5)&&(le.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 le=this._viewState.fromState;return(le?`${le}-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(le){var je,ye;this._sortButton&&(null===(je=this._ariaDescriber)||void 0===je||je.removeDescription(this._sortButton,this._sortActionDescription),null===(ye=this._ariaDescriber)||void 0===ye||ye.describe(this._sortButton,le)),this._sortActionDescription=le}_handleStateChanges(){this._rerenderSubscription=(0,A.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 Ue.\u0275fac=function(le){return new(le||Ue)(e.Y36(oe),e.Y36(e.sBO),e.Y36(q,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(C.tE),e.Y36(e.SBq),e.Y36(C.$s,8))},Ue.\u0275cmp=e.Xpm({type:Ue,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(le,je){1&le&&e.NdJ("click",function(){return je._handleClick()})("keydown",function(Be){return je._handleKeydown(Be)})("mouseenter",function(){return je._setIndicatorHintVisible(!0)})("mouseleave",function(){return je._setIndicatorHintVisible(!1)}),2&le&&(e.uIk("aria-sort",je._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",je._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:P,ngContentSelectors:L,decls:4,vars:6,consts:[["role","button",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(le,je){1&le&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,m,6,6,"div",2),e.qZA()),2&le&&(e.ekj("mat-sort-header-sorted",je._isSorted())("mat-sort-header-position-before","before"==je.arrowPosition),e.uIk("tabindex",je._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",je._renderArrow()))},directives:[I.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-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}\n"],encapsulation:2,data:{animation:[G.indicator,G.leftPointer,G.rightPointer,G.arrowOpacity,G.arrowPosition,G.allowChildren]},changeDetection:0}),Ue})(),Le=(()=>{class Ue{}return Ue.\u0275fac=function(le){return new(le||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({providers:[T],imports:[[I.ez,w.BQ]]}),Ue})()},92081:($e,_e,p)=>{"use strict";p.d(_e,{C0:()=>n,BY:()=>t,VY:()=>Ae,Vq:()=>x,T5:()=>Ht,fd:()=>At});var e=p(47429),b=p(15664),_=p(63191),w=p(91159),g=p(69808),A=p(5e3),E=p(70925),C=p(8929),I=p(21086),P=p(1059),m=p(7625),L=p(50226);function O(lt,Ut){1<&&A.Hsn(0)}const G=["*"];let ne=(()=>{class lt{constructor(mt){this._elementRef=mt}focus(){this._elementRef.nativeElement.focus()}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.SBq))},lt.\u0275dir=A.lG2({type:lt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),lt})(),ge=(()=>{class lt{constructor(mt){this.template=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["","cdkStepLabel",""]]}),lt})(),J=0;const Re=new A.OlP("STEPPER_GLOBAL_OPTIONS");let T=(()=>{class lt{constructor(mt,Lt){this._stepper=mt,this.interacted=!1,this.interactedStream=new A.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Lt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(mt){this._editable=(0,_.Ig)(mt)}get optional(){return this._optional}set optional(mt){this._optional=(0,_.Ig)(mt)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(mt){this._completedOverride=(0,_.Ig)(mt)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(mt){this._customError=(0,_.Ig)(mt)}_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 mt;return null!==(mt=this._stepperOptions.showError)&&void 0!==mt?mt:null!=this._customError}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36((0,A.Gpc)(()=>j)),A.Y36(Re,8))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["cdk-step"]],contentQueries:function(mt,Lt,Ee){if(1&mt&&A.Suo(Ee,ge,5),2&mt){let Ge;A.iGM(Ge=A.CRH())&&(Lt.stepLabel=Ge.first)}},viewQuery:function(mt,Lt){if(1&mt&&A.Gf(A.Rgc,7),2&mt){let Ee;A.iGM(Ee=A.CRH())&&(Lt.content=Ee.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:[A.TTD],ngContentSelectors:G,decls:1,vars:0,template:function(mt,Lt){1&mt&&(A.F$t(),A.YNc(0,O,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),lt})(),j=(()=>{class lt{constructor(mt,Lt,Ee,Ge){this._dir=mt,this._changeDetectorRef=Lt,this._elementRef=Ee,this._destroyed=new C.xQ,this.steps=new A.n_E,this._sortedHeaders=new A.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new A.vpe,this._orientation="horizontal",this._groupId=J++}get linear(){return this._linear}set linear(mt){this._linear=(0,_.Ig)(mt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(mt){var Lt;const Ee=(0,_.su)(mt);this.steps&&this._steps?(this._isValidIndex(Ee),null===(Lt=this.selected)||void 0===Lt||Lt._markAsInteracted(),this._selectedIndex!==Ee&&!this._anyControlsInvalidOrPending(Ee)&&(Ee>=this._selectedIndex||this.steps.toArray()[Ee].editable)&&this._updateSelectedItemIndex(Ee)):this._selectedIndex=Ee}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(mt){this.selectedIndex=mt&&this.steps?this.steps.toArray().indexOf(mt):-1}get orientation(){return this._orientation}set orientation(mt){this._orientation=mt,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===mt)}ngAfterContentInit(){this._steps.changes.pipe((0,P.O)(this._steps),(0,m.R)(this._destroyed)).subscribe(mt=>{this.steps.reset(mt.filter(Lt=>Lt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,P.O)(this._stepHeader),(0,m.R)(this._destroyed)).subscribe(mt=>{this._sortedHeaders.reset(mt.toArray().sort((Lt,Ee)=>Lt._elementRef.nativeElement.compareDocumentPosition(Ee._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new b.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,I.of)()).pipe((0,P.O)(this._layoutDirection()),(0,m.R)(this._destroyed)).subscribe(mt=>this._keyManager.withHorizontalOrientation(mt)),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(mt=>mt.reset()),this._stateChanged()}_getStepLabelId(mt){return`cdk-step-label-${this._groupId}-${mt}`}_getStepContentId(mt){return`cdk-step-content-${this._groupId}-${mt}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(mt){const Lt=mt-this._selectedIndex;return Lt<0?"rtl"===this._layoutDirection()?"next":"previous":Lt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(mt,Lt="number"){const Ee=this.steps.toArray()[mt],Ge=this._isCurrentStep(mt);return Ee._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Ee,Ge):this._getGuidelineLogic(Ee,Ge,Lt)}_getDefaultIndicatorLogic(mt,Lt){return mt._showError()&&mt.hasError&&!Lt?"error":!mt.completed||Lt?"number":mt.editable?"edit":"done"}_getGuidelineLogic(mt,Lt,Ee="number"){return mt._showError()&&mt.hasError&&!Lt?"error":mt.completed&&!Lt?"done":mt.completed&&Lt?Ee:mt.editable&&Lt?"edit":Ee}_isCurrentStep(mt){return this._selectedIndex===mt}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(mt){const Lt=this.steps.toArray();this.selectionChange.emit({selectedIndex:mt,previouslySelectedIndex:this._selectedIndex,selectedStep:Lt[mt],previouslySelectedStep:Lt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(mt):this._keyManager.updateActiveItem(mt),this._selectedIndex=mt,this._stateChanged()}_onKeydown(mt){const Lt=(0,w.Vb)(mt),Ee=mt.keyCode,Ge=this._keyManager;null==Ge.activeItemIndex||Lt||Ee!==w.L_&&Ee!==w.K5?Ge.onKeydown(mt):(this.selectedIndex=Ge.activeItemIndex,mt.preventDefault())}_anyControlsInvalidOrPending(mt){return!!(this._linear&&mt>=0)&&this.steps.toArray().slice(0,mt).some(Lt=>{const Ee=Lt.stepControl;return(Ee?Ee.invalid||Ee.pending||!Lt.interacted:!Lt.completed)&&!Lt.optional&&!Lt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const mt=this._elementRef.nativeElement,Lt=(0,E.ht)();return mt===Lt||mt.contains(Lt)}_isValidIndex(mt){return mt>-1&&(!this.steps||mt{class lt{constructor(mt){this._stepper=mt,this.type="button"}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(j))},lt.\u0275dir=A.lG2({type:lt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(mt,Lt){1&mt&&A.NdJ("click",function(){return Lt._stepper.previous()}),2&mt&&A.Ikx("type",Lt.type)},inputs:{type:"type"}}),lt})(),te=(()=>{class lt{}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275mod=A.oAB({type:lt}),lt.\u0275inj=A.cJS({imports:[[L.vT]]}),lt})();var ue=p(47423),de=p(90508),Le=p(25245),Ue=p(42654),ze=p(87545),le=p(24850),je=p(75778),ye=p(41777);function Be(lt,Ut){if(1<&&A.GkF(0,8),2<){const mt=A.oxw();A.Q6J("ngTemplateOutlet",mt.iconOverrides[mt.state])("ngTemplateOutletContext",mt._getIconContext())}}function W(lt,Ut){if(1<&&(A.TgZ(0,"span",13),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._getDefaultTextForState(mt.state))}}function R(lt,Ut){if(1<&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._intl.completedLabel)}}function me(lt,Ut){if(1<&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._intl.editableLabel)}}function be(lt,Ut){if(1<&&(A.TgZ(0,"mat-icon",13),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._getDefaultTextForState(mt.state))}}function Ie(lt,Ut){if(1<&&(A.ynx(0,9),A.YNc(1,W,2,1,"span",10),A.YNc(2,R,2,1,"span",11),A.YNc(3,me,2,1,"span",11),A.YNc(4,be,2,1,"mat-icon",12),A.BQk()),2<){const mt=A.oxw();A.Q6J("ngSwitch",mt.state),A.xp6(1),A.Q6J("ngSwitchCase","number"),A.xp6(1),A.Q6J("ngIf","done"===mt.state),A.xp6(1),A.Q6J("ngIf","edit"===mt.state)}}function pe(lt,Ut){if(1<&&(A.TgZ(0,"div",15),A.GkF(1,16),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Q6J("ngTemplateOutlet",mt._templateLabel().template)}}function Se(lt,Ut){if(1<&&(A.TgZ(0,"div",15),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt.label)}}function Xe(lt,Ut){if(1<&&(A.TgZ(0,"div",17),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt._intl.optionalLabel)}}function Je(lt,Ut){if(1<&&(A.TgZ(0,"div",18),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt.errorMessage)}}function nt(lt,Ut){}function Ve(lt,Ut){if(1<&&(A.Hsn(0),A.YNc(1,nt,0,0,"ng-template",0)),2<){const mt=A.oxw();A.xp6(1),A.Q6J("cdkPortalOutlet",mt._portal)}}const X=["*"];function z(lt,Ut){1<&&A._UZ(0,"div",9)}const Q=function(lt,Ut){return{step:lt,i:Ut}};function D(lt,Ut){if(1<&&(A.ynx(0),A.GkF(1,7),A.YNc(2,z,1,0,"div",8),A.BQk()),2<){const mt=Ut.$implicit,Lt=Ut.index,Ee=Ut.last;A.oxw(2);const Ge=A.MAs(4);A.xp6(1),A.Q6J("ngTemplateOutlet",Ge)("ngTemplateOutletContext",A.WLB(3,Q,mt,Lt)),A.xp6(1),A.Q6J("ngIf",!Ee)}}function H(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"div",10),A.NdJ("@horizontalStepTransition.done",function(Ee){return A.CHM(mt),A.oxw(2)._animationDone.next(Ee)}),A.GkF(1,11),A.qZA()}if(2<){const mt=Ut.$implicit,Lt=Ut.index,Ee=A.oxw(2);A.Q6J("@horizontalStepTransition",Ee._getAnimationDirection(Lt))("id",Ee._getStepContentId(Lt)),A.uIk("aria-labelledby",Ee._getStepLabelId(Lt))("aria-expanded",Ee.selectedIndex===Lt),A.xp6(1),A.Q6J("ngTemplateOutlet",mt.content)}}function V(lt,Ut){if(1<&&(A.ynx(0),A.TgZ(1,"div",3),A.YNc(2,D,3,6,"ng-container",4),A.qZA(),A.TgZ(3,"div",5),A.YNc(4,H,2,5,"div",6),A.qZA(),A.BQk()),2<){const mt=A.oxw();A.xp6(2),A.Q6J("ngForOf",mt.steps),A.xp6(2),A.Q6J("ngForOf",mt.steps)}}function xe(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"div",13),A.GkF(1,7),A.TgZ(2,"div",14),A.TgZ(3,"div",15),A.NdJ("@verticalStepTransition.done",function(Ee){return A.CHM(mt),A.oxw(2)._animationDone.next(Ee)}),A.TgZ(4,"div",16),A.GkF(5,11),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2<){const mt=Ut.$implicit,Lt=Ut.index,Ee=Ut.last,Ge=A.oxw(2),U=A.MAs(4);A.xp6(1),A.Q6J("ngTemplateOutlet",U)("ngTemplateOutletContext",A.WLB(9,Q,mt,Lt)),A.xp6(1),A.ekj("mat-stepper-vertical-line",!Ee),A.xp6(1),A.Q6J("@verticalStepTransition",Ge._getAnimationDirection(Lt))("id",Ge._getStepContentId(Lt)),A.uIk("aria-labelledby",Ge._getStepLabelId(Lt))("aria-expanded",Ge.selectedIndex===Lt),A.xp6(2),A.Q6J("ngTemplateOutlet",mt.content)}}function Qe(lt,Ut){if(1<&&(A.ynx(0),A.YNc(1,xe,6,12,"div",12),A.BQk()),2<){const mt=A.oxw();A.xp6(1),A.Q6J("ngForOf",mt.steps)}}function Te(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"mat-step-header",17),A.NdJ("click",function(){return A.CHM(mt).step.select()})("keydown",function(Ee){return A.CHM(mt),A.oxw()._onKeydown(Ee)}),A.qZA()}if(2<){const mt=Ut.step,Lt=Ut.i,Ee=A.oxw();A.ekj("mat-horizontal-stepper-header","horizontal"===Ee.orientation)("mat-vertical-stepper-header","vertical"===Ee.orientation),A.Q6J("tabIndex",Ee._getFocusIndex()===Lt?0:-1)("id",Ee._getStepLabelId(Lt))("index",Lt)("state",Ee._getIndicatorType(Lt,mt.state))("label",mt.stepLabel||mt.label)("selected",Ee.selectedIndex===Lt)("active",Ee._stepIsNavigable(Lt,mt))("optional",mt.optional)("errorMessage",mt.errorMessage)("iconOverrides",Ee._iconOverrides)("disableRipple",Ee.disableRipple||!Ee._stepIsNavigable(Lt,mt))("color",mt.color||Ee.color),A.uIk("aria-posinset",Lt+1)("aria-setsize",Ee.steps.length)("aria-controls",Ee._getStepContentId(Lt))("aria-selected",Ee.selectedIndex==Lt)("aria-label",mt.ariaLabel||null)("aria-labelledby",!mt.ariaLabel&&mt.ariaLabelledby?mt.ariaLabelledby:null)("aria-disabled",!Ee._stepIsNavigable(Lt,mt)||null)}}let Ae=(()=>{class lt extends ge{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["","matStepLabel",""]],features:[A.qOj]}),lt})(),ae=(()=>{class lt{constructor(){this.changes=new C.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275prov=A.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const o={provide:ae,deps:[[new A.FiY,new A.tp0,ae]],useFactory:function i(lt){return lt||new ae}},d=(0,de.pj)(class extends ne{constructor(Ut){super(Ut)}},"primary");let l=(()=>{class lt extends d{constructor(mt,Lt,Ee,Ge){super(Ee),this._intl=mt,this._focusMonitor=Lt,this._intlSubscription=mt.changes.subscribe(()=>Ge.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(mt,Lt){mt?this._focusMonitor.focusVia(this._elementRef,mt,Lt):this._elementRef.nativeElement.focus(Lt)}_stringLabel(){return this.label instanceof Ae?null:this.label}_templateLabel(){return this.label instanceof Ae?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(mt){return"number"==mt?`${this.index+1}`:"edit"==mt?"create":"error"==mt?"warning":mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(ae),A.Y36(b.tE),A.Y36(A.SBq),A.Y36(A.sBO))},lt.\u0275cmp=A.Xpm({type:lt,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:[A.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(mt,Lt){1&mt&&(A._UZ(0,"div",0),A.TgZ(1,"div"),A.TgZ(2,"div",1),A.YNc(3,Be,1,2,"ng-container",2),A.YNc(4,Ie,5,4,"ng-container",3),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.YNc(6,pe,2,1,"div",5),A.YNc(7,Se,2,1,"div",5),A.YNc(8,Xe,2,1,"div",6),A.YNc(9,Je,2,1,"div",7),A.qZA()),2&mt&&(A.Q6J("matRippleTrigger",Lt._getHostElement())("matRippleDisabled",Lt.disableRipple),A.xp6(1),A.Gre("mat-step-icon-state-",Lt.state," mat-step-icon"),A.ekj("mat-step-icon-selected",Lt.selected),A.xp6(1),A.Q6J("ngSwitch",!(!Lt.iconOverrides||!Lt.iconOverrides[Lt.state])),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(2),A.ekj("mat-step-label-active",Lt.active)("mat-step-label-selected",Lt.selected)("mat-step-label-error","error"==Lt.state),A.xp6(1),A.Q6J("ngIf",Lt._templateLabel()),A.xp6(1),A.Q6J("ngIf",Lt._stringLabel()),A.xp6(1),A.Q6J("ngIf",Lt.optional&&"error"!=Lt.state),A.xp6(1),A.Q6J("ngIf","error"==Lt.state))},directives:[Le.Hw,de.wG,g.RF,g.n9,g.tP,g.ED,g.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.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}\n"],encapsulation:2,changeDetection:0}),lt})();const s={horizontalStepTransition:(0,ye.X$)("horizontalStepTransition",[(0,ye.SB)("previous",(0,ye.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ye.SB)("current",(0,ye.oB)({transform:"none",visibility:"inherit"})),(0,ye.SB)("next",(0,ye.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ye.eR)("* => *",(0,ye.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,ye.X$)("verticalStepTransition",[(0,ye.SB)("previous",(0,ye.oB)({height:"0px",visibility:"hidden"})),(0,ye.SB)("next",(0,ye.oB)({height:"0px",visibility:"hidden"})),(0,ye.SB)("current",(0,ye.oB)({height:"*",visibility:"inherit"})),(0,ye.eR)("* <=> current",(0,ye.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let r=(()=>{class lt{constructor(mt){this.templateRef=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),lt})(),t=(()=>{class lt{constructor(mt){this._template=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["ng-template","matStepContent",""]]}),lt})(),n=(()=>{class lt extends T{constructor(mt,Lt,Ee,Ge){super(mt,Ge),this._errorStateMatcher=Lt,this._viewContainerRef=Ee,this._isSelected=Ue.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,ze.w)(()=>this._stepper.selectionChange.pipe((0,le.U)(mt=>mt.selectedStep===this),(0,P.O)(this._stepper.selected===this)))).subscribe(mt=>{mt&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(mt,Lt){return this._errorStateMatcher.isErrorState(mt,Lt)||!!(mt&&mt.invalid&&this.interacted)}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36((0,A.Gpc)(()=>x)),A.Y36(de.rD,4),A.Y36(A.s_b),A.Y36(Re,8))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-step"]],contentQueries:function(mt,Lt,Ee){if(1&mt&&(A.Suo(Ee,Ae,5),A.Suo(Ee,t,5)),2&mt){let Ge;A.iGM(Ge=A.CRH())&&(Lt.stepLabel=Ge.first),A.iGM(Ge=A.CRH())&&(Lt._lazyContent=Ge.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[A._Bn([{provide:de.rD,useExisting:lt},{provide:T,useExisting:lt}]),A.qOj],ngContentSelectors:X,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(mt,Lt){1&mt&&(A.F$t(),A.YNc(0,Ve,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),lt})(),a=(()=>{class lt extends j{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,features:[A.qOj]}),lt})(),c=(()=>{class lt extends a{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["mat-horizontal-stepper"]],features:[A.qOj]}),lt})(),h=(()=>{class lt extends a{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["mat-vertical-stepper"]],features:[A.qOj]}),lt})(),x=(()=>{class lt extends j{constructor(mt,Lt,Ee,Ge){super(mt,Lt,Ee,Ge),this.steps=new A.n_E,this.animationDone=new A.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new C.xQ;const U=Ee.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===U?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:mt,templateRef:Lt})=>this._iconOverrides[mt]=Lt),this.steps.changes.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,je.x)((mt,Lt)=>mt.fromState===Lt.fromState&&mt.toState===Lt.toState),(0,m.R)(this._destroyed)).subscribe(mt=>{"current"===mt.toState&&this.animationDone.emit()})}_stepIsNavigable(mt,Lt){return Lt.completed||this.selectedIndex===mt||!this.linear}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(L.Is,8),A.Y36(A.sBO),A.Y36(A.SBq),A.Y36(g.K0))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(mt,Lt,Ee){if(1&mt&&(A.Suo(Ee,n,5),A.Suo(Ee,r,5)),2&mt){let Ge;A.iGM(Ge=A.CRH())&&(Lt._steps=Ge),A.iGM(Ge=A.CRH())&&(Lt._icons=Ge)}},viewQuery:function(mt,Lt){if(1&mt&&A.Gf(l,5),2&mt){let Ee;A.iGM(Ee=A.CRH())&&(Lt._stepHeader=Ee)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(mt,Lt){2&mt&&(A.uIk("aria-orientation",Lt.orientation),A.ekj("mat-stepper-horizontal","horizontal"===Lt.orientation)("mat-stepper-vertical","vertical"===Lt.orientation)("mat-stepper-label-position-end","horizontal"===Lt.orientation&&"end"==Lt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Lt.orientation&&"bottom"==Lt.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[A._Bn([{provide:j,useExisting:lt},{provide:c,useExisting:lt},{provide:h,useExisting:lt}]),A.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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(mt,Lt){1&mt&&(A.ynx(0,0),A.YNc(1,V,5,2,"ng-container",1),A.YNc(2,Qe,2,1,"ng-container",1),A.BQk(),A.YNc(3,Te,1,23,"ng-template",null,2,A.W1O)),2&mt&&(A.Q6J("ngSwitch",Lt.orientation),A.xp6(1),A.Q6J("ngSwitchCase","horizontal"),A.xp6(1),A.Q6J("ngSwitchCase","vertical"))},directives:[l,g.RF,g.n9,g.sg,g.tP,g.O5],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-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-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-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}\n'],encapsulation:2,data:{animation:[s.horizontalStepTransition,s.verticalStepTransition]},changeDetection:0}),lt})(),At=(()=>{class lt extends q{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(mt,Lt){2&mt&&A.Ikx("type",Lt.type)},inputs:{type:"type"},features:[A.qOj]}),lt})(),Ht=(()=>{class lt{}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275mod=A.oAB({type:lt}),lt.\u0275inj=A.cJS({providers:[o,de.rD],imports:[[de.BQ,g.ez,e.eL,ue.ot,te,Le.Ps,de.si],de.BQ]}),lt})()},32075:($e,_e,p)=>{"use strict";p.d(_e,{ev:()=>Rt,Dz:()=>He,w1:()=>xt,ge:()=>Yt,fO:()=>ct,XQ:()=>ai,as:()=>Et,Gk:()=>bi,nj:()=>Jt,BZ:()=>ce,by:()=>rn,p0:()=>cn});var e=p(5e3),b=p(63191),_=p(20449),w=p(69808),g=p(8929),A=p(5254),E=p(591),C=p(54715),I=p(21086),P=p(7625),m=p(72986),L=p(50226),O=p(70925),G=p(53435);const ne=[[["caption"]],[["colgroup"],["col"]]],ge=["caption","colgroup, col"];function oe(st){return class extends st{constructor(...St){super(...St),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(St){const ot=this._sticky;this._sticky=(0,b.Ig)(St),this._hasStickyChanged=ot!==this._sticky}hasStickyChanged(){const St=this._hasStickyChanged;return this._hasStickyChanged=!1,St}resetStickyChanged(){this._hasStickyChanged=!1}}}const Re=new e.OlP("CDK_TABLE");let j=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellDef",""]]}),st})(),Y=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderCellDef",""]]}),st})(),q=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterCellDef",""]]}),st})();class te{}const ue=oe(te);let de=(()=>{class st extends ue{constructor(ot){super(),this._table=ot,this._stickyEnd=!1}get name(){return this._name}set name(ot){this._setNameInput(ot)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ot){const Ke=this._stickyEnd;this._stickyEnd=(0,b.Ig)(ot),this._hasStickyChanged=Ke!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ot){ot&&(this._name=ot,this.cssClassFriendlyName=ot.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(Re,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkColumnDef",""]],contentQueries:function(ot,Ke,vt){if(1&ot&&(e.Suo(vt,j,5),e.Suo(vt,Y,5),e.Suo(vt,q,5)),2&ot){let F;e.iGM(F=e.CRH())&&(Ke.cell=F.first),e.iGM(F=e.CRH())&&(Ke.headerCell=F.first),e.iGM(F=e.CRH())&&(Ke.footerCell=F.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.qOj]}),st})();class Le{constructor(St,ot){ot.nativeElement.classList.add(...St._columnCssClassName)}}let Ue=(()=>{class st extends Le{constructor(ot,Ke){super(ot,Ke)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(de),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),st})(),le=(()=>{class st extends Le{constructor(ot,Ke){var vt;if(super(ot,Ke),1===(null===(vt=ot._table)||void 0===vt?void 0:vt._elementRef.nativeElement.nodeType)){const F=ot._table._elementRef.nativeElement.getAttribute("role");Ke.nativeElement.setAttribute("role","grid"===F||"treegrid"===F?"gridcell":"cell")}}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(de),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),st})();class je{constructor(){this.tasks=[],this.endTasks=[]}}const ye=new e.OlP("_COALESCED_STYLE_SCHEDULER");let Be=(()=>{class st{constructor(ot){this._ngZone=ot,this._currentSchedule=null,this._destroyed=new g.xQ}schedule(ot){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ot)}scheduleEnd(ot){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ot)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new je,this._getScheduleObservable().pipe((0,P.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ot=this._currentSchedule;this._currentSchedule=new je;for(const Ke of ot.tasks)Ke();for(const Ke of ot.endTasks)Ke()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,A.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return st.\u0275fac=function(ot){return new(ot||st)(e.LFG(e.R0b))},st.\u0275prov=e.Yz7({token:st,factory:st.\u0275fac}),st})(),R=(()=>{class st{constructor(ot,Ke){this.template=ot,this._differs=Ke}ngOnChanges(ot){if(!this._columnsDiffer){const Ke=ot.columns&&ot.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ke).create(),this._columnsDiffer.diff(Ke)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ot){return this instanceof Ie?ot.headerCell.template:this instanceof Xe?ot.footerCell.template:ot.cell.template}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},st.\u0275dir=e.lG2({type:st,features:[e.TTD]}),st})();class me extends R{}const be=oe(me);let Ie=(()=>{class st extends be{constructor(ot,Ke,vt){super(ot,Ke),this._table=vt}ngOnChanges(ot){super.ngOnChanges(ot)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Re,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),st})();class pe extends R{}const Se=oe(pe);let Xe=(()=>{class st extends Se{constructor(ot,Ke,vt){super(ot,Ke),this._table=vt}ngOnChanges(ot){super.ngOnChanges(ot)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Re,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),st})(),Je=(()=>{class st extends R{constructor(ot,Ke,vt){super(ot,Ke),this._table=vt}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Re,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),st})(),nt=(()=>{class st{constructor(ot){this._viewContainer=ot,st.mostRecentCellOutlet=this}ngOnDestroy(){st.mostRecentCellOutlet===this&&(st.mostRecentCellOutlet=null)}}return st.mostRecentCellOutlet=null,st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellOutlet",""]]}),st})(),Ve=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),z=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),Q=(()=>{class st{constructor(ot){this.templateRef=ot,this._contentClassName="cdk-no-data-row"}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["ng-template","cdkNoDataRow",""]]}),st})();const D=["top","bottom","left","right"];class H{constructor(St,ot,Ke,vt,F=!0,Ye=!0,gt){this._isNativeHtmlTable=St,this._stickCellCss=ot,this.direction=Ke,this._coalescedStyleScheduler=vt,this._isBrowser=F,this._needsPositionStickyOnElement=Ye,this._positionListener=gt,this._cachedCellWidths=[],this._borderCellCss={top:`${ot}-border-elem-top`,bottom:`${ot}-border-elem-bottom`,left:`${ot}-border-elem-left`,right:`${ot}-border-elem-right`}}clearStickyPositioning(St,ot){const Ke=[];for(const vt of St)if(vt.nodeType===vt.ELEMENT_NODE){Ke.push(vt);for(let F=0;F{for(const vt of Ke)this._removeStickyStyle(vt,ot)})}updateStickyColumns(St,ot,Ke,vt=!0){if(!St.length||!this._isBrowser||!ot.some(wi=>wi)&&!Ke.some(wi=>wi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const F=St[0],Ye=F.children.length,gt=this._getCellWidths(F,vt),Dt=this._getStickyStartColumnPositions(gt,ot),ri=this._getStickyEndColumnPositions(gt,Ke),ti=ot.lastIndexOf(!0),Di=Ke.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const wi="rtl"===this.direction,$i=wi?"right":"left",qi=wi?"left":"right";for(const Fi of St)for(let Ji=0;Jiot[Ji]?Fi:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Di?[]:gt.slice(Di).map((Fi,Ji)=>Ke[Ji+Di]?Fi:null).reverse()}))})}stickRows(St,ot,Ke){if(!this._isBrowser)return;const vt="bottom"===Ke?St.slice().reverse():St,F="bottom"===Ke?ot.slice().reverse():ot,Ye=[],gt=[],Dt=[];for(let ti=0,Di=0;ti{var ti,Di;for(let wi=0;wi{ot.some(vt=>!vt)?this._removeStickyStyle(Ke,["bottom"]):this._addStickyStyle(Ke,"bottom",0,!1)})}_removeStickyStyle(St,ot){for(const vt of ot)St.style[vt]="",St.classList.remove(this._borderCellCss[vt]);D.some(vt=>-1===ot.indexOf(vt)&&St.style[vt])?St.style.zIndex=this._getCalculatedZIndex(St):(St.style.zIndex="",this._needsPositionStickyOnElement&&(St.style.position=""),St.classList.remove(this._stickCellCss))}_addStickyStyle(St,ot,Ke,vt){St.classList.add(this._stickCellCss),vt&&St.classList.add(this._borderCellCss[ot]),St.style[ot]=`${Ke}px`,St.style.zIndex=this._getCalculatedZIndex(St),this._needsPositionStickyOnElement&&(St.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(St){const ot={top:100,bottom:10,left:1,right:1};let Ke=0;for(const vt of D)St.style[vt]&&(Ke+=ot[vt]);return Ke?`${Ke}`:""}_getCellWidths(St,ot=!0){if(!ot&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ke=[],vt=St.children;for(let F=0;F0;F--)ot[F]&&(Ke[F]=vt,vt+=St[F]);return Ke}}const d=new e.OlP("CDK_SPL");let s=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","rowOutlet",""]]}),st})(),r=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","headerRowOutlet",""]]}),st})(),t=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","footerRowOutlet",""]]}),st})(),n=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","noDataRowOutlet",""]]}),st})(),h=(()=>{class st{constructor(ot,Ke,vt,F,Ye,gt,Dt,ri,ti,Di,wi,$i){this._differs=ot,this._changeDetectorRef=Ke,this._elementRef=vt,this._dir=Ye,this._platform=Dt,this._viewRepeater=ri,this._coalescedStyleScheduler=ti,this._viewportRuler=Di,this._stickyPositioningListener=wi,this._ngZone=$i,this._onDestroy=new g.xQ,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 E.X({start:0,end:Number.MAX_VALUE}),F||this._elementRef.nativeElement.setAttribute("role","table"),this._document=gt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ot){this._trackByFn=ot}get dataSource(){return this._dataSource}set dataSource(ot){this._dataSource!==ot&&this._switchDataSource(ot)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ot){this._multiTemplateDataRows=(0,b.Ig)(ot),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ot){this._fixedLayout=(0,b.Ig)(ot),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ot,Ke)=>this.trackBy?this.trackBy(Ke.dataIndex,Ke.data):Ke),this._viewportRuler.change().pipe((0,P.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Ke=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ke,this._forceRecalculateCellWidths=Ke,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(ot=>{ot.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ot=this._dataDiffer.diff(this._renderRows);if(!ot)return this._updateNoDataRow(),void this.contentChanged.next();const Ke=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ot,Ke,(vt,F,Ye)=>this._getEmbeddedViewArgs(vt.item,Ye),vt=>vt.item.data,vt=>{1===vt.operation&&vt.context&&this._renderCellTemplateForItem(vt.record.item.rowDef,vt.context)}),this._updateRowIndexContext(),ot.forEachIdentityChange(vt=>{Ke.get(vt.currentIndex).context.$implicit=vt.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,m.q)(1),(0,P.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ot){this._customColumnDefs.add(ot)}removeColumnDef(ot){this._customColumnDefs.delete(ot)}addRowDef(ot){this._customRowDefs.add(ot)}removeRowDef(ot){this._customRowDefs.delete(ot)}addHeaderRowDef(ot){this._customHeaderRowDefs.add(ot),this._headerRowDefChanged=!0}removeHeaderRowDef(ot){this._customHeaderRowDefs.delete(ot),this._headerRowDefChanged=!0}addFooterRowDef(ot){this._customFooterRowDefs.add(ot),this._footerRowDefChanged=!0}removeFooterRowDef(ot){this._customFooterRowDefs.delete(ot),this._footerRowDefChanged=!0}setNoDataRow(ot){this._customNoDataRow=ot}updateStickyHeaderRowStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),vt=this._elementRef.nativeElement.querySelector("thead");vt&&(vt.style.display=ot.length?"":"none");const F=this._headerRowDefs.map(Ye=>Ye.sticky);this._stickyStyler.clearStickyPositioning(ot,["top"]),this._stickyStyler.stickRows(ot,F,"top"),this._headerRowDefs.forEach(Ye=>Ye.resetStickyChanged())}updateStickyFooterRowStyles(){const ot=this._getRenderedRows(this._footerRowOutlet),vt=this._elementRef.nativeElement.querySelector("tfoot");vt&&(vt.style.display=ot.length?"":"none");const F=this._footerRowDefs.map(Ye=>Ye.sticky);this._stickyStyler.clearStickyPositioning(ot,["bottom"]),this._stickyStyler.stickRows(ot,F,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,F),this._footerRowDefs.forEach(Ye=>Ye.resetStickyChanged())}updateStickyColumnStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),Ke=this._getRenderedRows(this._rowOutlet),vt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ot,...Ke,...vt],["left","right"]),this._stickyColumnStylesNeedReset=!1),ot.forEach((F,Ye)=>{this._addStickyColumnStyles([F],this._headerRowDefs[Ye])}),this._rowDefs.forEach(F=>{const Ye=[];for(let gt=0;gt{this._addStickyColumnStyles([F],this._footerRowDefs[Ye])}),Array.from(this._columnDefsByName.values()).forEach(F=>F.resetStickyChanged())}_getAllRenderRows(){const ot=[],Ke=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let vt=0;vt{const gt=vt&&vt.has(Ye)?vt.get(Ye):[];if(gt.length){const Dt=gt.shift();return Dt.dataIndex=Ke,Dt}return{data:ot,rowDef:Ye,dataIndex:Ke}})}_cacheColumnDefs(){this._columnDefsByName.clear(),x(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ke=>{this._columnDefsByName.has(Ke.name),this._columnDefsByName.set(Ke.name,Ke)})}_cacheRowDefs(){this._headerRowDefs=x(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=x(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=x(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ot=this._rowDefs.filter(Ke=>!Ke.when);this._defaultRowDef=ot[0]}_renderUpdatedColumns(){const ot=(Ye,gt)=>Ye||!!gt.getColumnsDiff(),Ke=this._rowDefs.reduce(ot,!1);Ke&&this._forceRenderDataRows();const vt=this._headerRowDefs.reduce(ot,!1);vt&&this._forceRenderHeaderRows();const F=this._footerRowDefs.reduce(ot,!1);return F&&this._forceRenderFooterRows(),Ke||vt||F}_switchDataSource(ot){this._data=[],(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ot||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ot}_observeRenderChanges(){if(!this.dataSource)return;let ot;(0,_.Z9)(this.dataSource)?ot=this.dataSource.connect(this):(0,C.b)(this.dataSource)?ot=this.dataSource:Array.isArray(this.dataSource)&&(ot=(0,I.of)(this.dataSource)),this._renderChangeSubscription=ot.pipe((0,P.R)(this._onDestroy)).subscribe(Ke=>{this._data=Ke||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ot,Ke)=>this._renderRow(this._headerRowOutlet,ot,Ke)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ot,Ke)=>this._renderRow(this._footerRowOutlet,ot,Ke)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ot,Ke){const vt=Array.from(Ke.columns||[]).map(gt=>this._columnDefsByName.get(gt)),F=vt.map(gt=>gt.sticky),Ye=vt.map(gt=>gt.stickyEnd);this._stickyStyler.updateStickyColumns(ot,F,Ye,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ot){const Ke=[];for(let vt=0;vt!F.when||F.when(Ke,ot));else{let F=this._rowDefs.find(Ye=>Ye.when&&Ye.when(Ke,ot))||this._defaultRowDef;F&&vt.push(F)}return vt}_getEmbeddedViewArgs(ot,Ke){return{templateRef:ot.rowDef.template,context:{$implicit:ot.data},index:Ke}}_renderRow(ot,Ke,vt,F={}){const Ye=ot.viewContainer.createEmbeddedView(Ke.template,F,vt);return this._renderCellTemplateForItem(Ke,F),Ye}_renderCellTemplateForItem(ot,Ke){for(let vt of this._getCellTemplates(ot))nt.mostRecentCellOutlet&&nt.mostRecentCellOutlet._viewContainer.createEmbeddedView(vt,Ke);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ot=this._rowOutlet.viewContainer;for(let Ke=0,vt=ot.length;Ke{const vt=this._columnDefsByName.get(Ke);return ot.extractCellTemplate(vt)}):[]}_applyNativeTableSections(){const ot=this._document.createDocumentFragment(),Ke=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const vt of Ke){const F=this._document.createElement(vt.tag);F.setAttribute("role","rowgroup");for(const Ye of vt.outlets)F.appendChild(Ye.elementRef.nativeElement);ot.appendChild(F)}this._elementRef.nativeElement.appendChild(ot)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ot=(Ke,vt)=>Ke||vt.hasStickyChanged();this._headerRowDefs.reduce(ot,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ot,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ot,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new H(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,I.of)()).pipe((0,P.R)(this._onDestroy)).subscribe(Ke=>{this._stickyStyler.direction=Ke,this.updateStickyColumnStyles()})}_getOwnDefs(ot){return ot.filter(Ke=>!Ke._table||Ke._table===this)}_updateNoDataRow(){const ot=this._customNoDataRow||this._noDataRow;if(!ot)return;const Ke=0===this._rowOutlet.viewContainer.length;if(Ke===this._isShowingNoDataRow)return;const vt=this._noDataRowOutlet.viewContainer;if(Ke){const F=vt.createEmbeddedView(ot.templateRef),Ye=F.rootNodes[0];1===F.rootNodes.length&&(null==Ye?void 0:Ye.nodeType)===this._document.ELEMENT_NODE&&(Ye.setAttribute("role","row"),Ye.classList.add(ot._contentClassName))}else vt.clear();this._isShowingNoDataRow=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(L.Is,8),e.Y36(w.K0),e.Y36(O.t4),e.Y36(_.k),e.Y36(ye),e.Y36(G.rL),e.Y36(d,12),e.Y36(e.R0b,8))},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ot,Ke,vt){if(1&ot&&(e.Suo(vt,Q,5),e.Suo(vt,de,5),e.Suo(vt,Je,5),e.Suo(vt,Ie,5),e.Suo(vt,Xe,5)),2&ot){let F;e.iGM(F=e.CRH())&&(Ke._noDataRow=F.first),e.iGM(F=e.CRH())&&(Ke._contentColumnDefs=F),e.iGM(F=e.CRH())&&(Ke._contentRowDefs=F),e.iGM(F=e.CRH())&&(Ke._contentHeaderRowDefs=F),e.iGM(F=e.CRH())&&(Ke._contentFooterRowDefs=F)}},viewQuery:function(ot,Ke){if(1&ot&&(e.Gf(s,7),e.Gf(r,7),e.Gf(t,7),e.Gf(n,7)),2&ot){let vt;e.iGM(vt=e.CRH())&&(Ke._rowOutlet=vt.first),e.iGM(vt=e.CRH())&&(Ke._headerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&(Ke._footerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&(Ke._noDataRowOutlet=vt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ot,Ke){2&ot&&e.ekj("cdk-table-fixed-layout",Ke.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Re,useExisting:st},{provide:_.k,useClass:_.yy},{provide:ye,useClass:Be},{provide:d,useValue:null}])],ngContentSelectors:ge,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,Ke){1&ot&&(e.F$t(ne),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[r,s,n,t],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),st})();function x(st,St){return st.concat(Array.from(St))}let Ht=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[G.Cl]]}),st})();var lt=p(90508),Ut=p(36787),mt=p(36053),Lt=p(24850);const Ee=[[["caption"]],[["colgroup"],["col"]]],Ge=["caption","colgroup, col"];let ce=(()=>{class st extends h{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ot,Ke){2&ot&&e.ekj("mat-table-fixed-layout",Ke.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:_.k,useClass:_.yy},{provide:h,useExisting:st},{provide:Re,useExisting:st},{provide:ye,useClass:Be},{provide:d,useValue:null}]),e.qOj],ngContentSelectors:Ge,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,Ke){1&ot&&(e.F$t(Ee),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[r,s,n,t],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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),st})(),He=(()=>{class st extends j{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:j,useExisting:st}]),e.qOj]}),st})(),ct=(()=>{class st extends Y{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:Y,useExisting:st}]),e.qOj]}),st})(),xt=(()=>{class st extends de{get name(){return this._name}set name(ot){this._setNameInput(ot)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:de,useExisting:st},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.qOj]}),st})(),Yt=(()=>{class st extends Ue{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),st})(),Rt=(()=>{class st extends le{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),st})(),Et=(()=>{class st extends Ie{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Ie,useExisting:st}]),e.qOj]}),st})(),Jt=(()=>{class st extends Je{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Je,useExisting:st}]),e.qOj]}),st})(),ai=(()=>{class st extends Ve{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ve,useExisting:st}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),bi=(()=>{class st extends z{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:z,useExisting:st}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),cn=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[Ht,lt.BQ],lt.BQ]}),st})();class Tn extends _.o2{constructor(St=[]){super(),this._renderData=new E.X([]),this._filter=new E.X(""),this._internalPageChanges=new g.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ot,Ke)=>{const vt=ot[Ke];if((0,b.t6)(vt)){const F=Number(vt);return F<9007199254740991?F:vt}return vt},this.sortData=(ot,Ke)=>{const vt=Ke.active,F=Ke.direction;return vt&&""!=F?ot.sort((Ye,gt)=>{let Dt=this.sortingDataAccessor(Ye,vt),ri=this.sortingDataAccessor(gt,vt);const ti=typeof Dt,Di=typeof ri;ti!==Di&&("number"===ti&&(Dt+=""),"number"===Di&&(ri+=""));let wi=0;return null!=Dt&&null!=ri?Dt>ri?wi=1:Dt{const vt=Object.keys(ot).reduce((Ye,gt)=>Ye+ot[gt]+"\u25ec","").toLowerCase(),F=Ke.trim().toLowerCase();return-1!=vt.indexOf(F)},this._data=new E.X(St),this._updateChangeSubscription()}get data(){return this._data.value}set data(St){St=Array.isArray(St)?St:[],this._data.next(St),this._renderChangesSubscription||this._filterData(St)}get filter(){return this._filter.value}set filter(St){this._filter.next(St),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(St){this._sort=St,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(St){this._paginator=St,this._updateChangeSubscription()}_updateChangeSubscription(){var St;const ot=this._sort?(0,Ut.T)(this._sort.sortChange,this._sort.initialized):(0,I.of)(null),Ke=this._paginator?(0,Ut.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,I.of)(null),F=(0,mt.aj)([this._data,this._filter]).pipe((0,Lt.U)(([Dt])=>this._filterData(Dt))),Ye=(0,mt.aj)([F,ot]).pipe((0,Lt.U)(([Dt])=>this._orderData(Dt))),gt=(0,mt.aj)([Ye,Ke]).pipe((0,Lt.U)(([Dt])=>this._pageData(Dt)));null===(St=this._renderChangesSubscription)||void 0===St||St.unsubscribe(),this._renderChangesSubscription=gt.subscribe(Dt=>this._renderData.next(Dt))}_filterData(St){return this.filteredData=null==this.filter||""===this.filter?St:St.filter(ot=>this.filterPredicate(ot,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(St){return this.sort?this.sortData(St.slice(),this.sort):St}_pageData(St){if(!this.paginator)return St;const ot=this.paginator.pageIndex*this.paginator.pageSize;return St.slice(ot,ot+this.paginator.pageSize)}_updatePaginator(St){Promise.resolve().then(()=>{const ot=this.paginator;if(ot&&(ot.length=St,ot.pageIndex>0)){const Ke=Math.ceil(ot.length/ot.pageSize)-1||0,vt=Math.min(ot.pageIndex,Ke);vt!==ot.pageIndex&&(ot.pageIndex=vt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var St;null===(St=this._renderChangesSubscription)||void 0===St||St.unsubscribe(),this._renderChangesSubscription=null}}class rn extends Tn{}},53251:($e,_e,p)=>{"use strict";p.d(_e,{uX:()=>V,Vc:()=>Ve,SP:()=>At,uD:()=>Q,Nh:()=>U});var e=p(15664),b=p(17144),_=p(47429),w=p(69808),g=p(5e3),A=p(90508),E=p(76360),C=p(8929),I=p(42654),P=p(23753),m=p(21086),L=p(36787),O=p(98723),G=p(41777),ne=p(1059),ge=p(75778),J=p(7625),Me=p(50226),oe=p(63191),Re=p(91159),T=p(70925),j=p(53435);function Y(k,ie){1&k&&g.Hsn(0)}const q=["*"];function te(k,ie){}const ue=function(k){return{animationDuration:k}},de=function(k,ie){return{value:k,params:ie}},Le=["tabListContainer"],Ue=["tabList"],ze=["tabListInner"],le=["nextPaginator"],je=["previousPaginator"],ye=["tabBodyWrapper"],Be=["tabHeader"];function W(k,ie){}function R(k,ie){if(1&k&&g.YNc(0,W,0,0,"ng-template",10),2&k){const ce=g.oxw().$implicit;g.Q6J("cdkPortalOutlet",ce.templateLabel)}}function me(k,ie){if(1&k&&g._uU(0),2&k){const ce=g.oxw().$implicit;g.Oqu(ce.textLabel)}}function be(k,ie){if(1&k){const ce=g.EpF();g.TgZ(0,"div",6),g.NdJ("click",function(){const ct=g.CHM(ce),bt=ct.$implicit,xt=ct.index,Yt=g.oxw(),It=g.MAs(1);return Yt._handleClick(bt,It,xt)})("cdkFocusChange",function(ct){const xt=g.CHM(ce).index;return g.oxw()._tabFocusChanged(ct,xt)}),g.TgZ(1,"div",7),g.YNc(2,R,1,1,"ng-template",8),g.YNc(3,me,1,1,"ng-template",null,9,g.W1O),g.qZA(),g.qZA()}if(2&k){const ce=ie.$implicit,He=ie.index,ct=g.MAs(4),bt=g.oxw();g.ekj("mat-tab-label-active",bt.selectedIndex===He),g.Q6J("id",bt._getTabLabelId(He))("ngClass",ce.labelClass)("disabled",ce.disabled)("matRippleDisabled",ce.disabled||bt.disableRipple),g.uIk("tabIndex",bt._getTabIndex(ce,He))("aria-posinset",He+1)("aria-setsize",bt._tabs.length)("aria-controls",bt._getTabContentId(He))("aria-selected",bt.selectedIndex===He)("aria-label",ce.ariaLabel||null)("aria-labelledby",!ce.ariaLabel&&ce.ariaLabelledby?ce.ariaLabelledby:null),g.xp6(2),g.Q6J("ngIf",ce.templateLabel)("ngIfElse",ct)}}function Ie(k,ie){if(1&k){const ce=g.EpF();g.TgZ(0,"mat-tab-body",11),g.NdJ("_onCentered",function(){return g.CHM(ce),g.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(ct){return g.CHM(ce),g.oxw()._setTabBodyWrapperHeight(ct)}),g.qZA()}if(2&k){const ce=ie.$implicit,He=ie.index,ct=g.oxw();g.ekj("mat-tab-body-active",ct.selectedIndex===He),g.Q6J("id",ct._getTabContentId(He))("ngClass",ce.bodyClass)("content",ce.content)("position",ce.position)("origin",ce.origin)("animationDuration",ct.animationDuration),g.uIk("tabindex",null!=ct.contentTabIndex&&ct.selectedIndex===He?ct.contentTabIndex:null)("aria-labelledby",ct._getTabLabelId(He))}}const Se=new g.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Xe(){return ie=>({left:ie?(ie.offsetLeft||0)+"px":"0",width:ie?(ie.offsetWidth||0)+"px":"0"})}});let Je=(()=>{class k{constructor(ce,He,ct,bt){this._elementRef=ce,this._ngZone=He,this._inkBarPositioner=ct,this._animationMode=bt}alignToElement(ce){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(ce))}):this._setStyles(ce)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(ce){const He=this._inkBarPositioner(ce),ct=this._elementRef.nativeElement;ct.style.left=He.left,ct.style.width=He.width}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Se),g.Y36(E.Qb,8))},k.\u0275dir=g.lG2({type:k,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ce,He){2&ce&&g.ekj("_mat-animation-noopable","NoopAnimations"===He._animationMode)}}),k})();const nt=new g.OlP("MatTabContent");let Ve=(()=>{class k{constructor(ce){this.template=ce}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.Rgc))},k.\u0275dir=g.lG2({type:k,selectors:[["","matTabContent",""]],features:[g._Bn([{provide:nt,useExisting:k}])]}),k})();const X=new g.OlP("MatTabLabel"),z=new g.OlP("MAT_TAB");let Q=(()=>{class k extends _.ig{constructor(ce,He,ct){super(ce,He),this._closestTab=ct}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(z,8))},k.\u0275dir=g.lG2({type:k,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[g._Bn([{provide:X,useExisting:k}]),g.qOj]}),k})();const D=(0,A.Id)(class{}),H=new g.OlP("MAT_TAB_GROUP");let V=(()=>{class k extends D{constructor(ce,He){super(),this._viewContainerRef=ce,this._closestTabGroup=He,this.textLabel="",this._contentPortal=null,this._stateChanges=new C.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ce){this._setTemplateLabelInput(ce)}get content(){return this._contentPortal}ngOnChanges(ce){(ce.hasOwnProperty("textLabel")||ce.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ce){ce&&ce._closestTab===this&&(this._templateLabel=ce)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.s_b),g.Y36(H,8))},k.\u0275cmp=g.Xpm({type:k,selectors:[["mat-tab"]],contentQueries:function(ce,He,ct){if(1&ce&&(g.Suo(ct,X,5),g.Suo(ct,nt,7,g.Rgc)),2&ce){let bt;g.iGM(bt=g.CRH())&&(He.templateLabel=bt.first),g.iGM(bt=g.CRH())&&(He._explicitContent=bt.first)}},viewQuery:function(ce,He){if(1&ce&&g.Gf(g.Rgc,7),2&ce){let ct;g.iGM(ct=g.CRH())&&(He._implicitContent=ct.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[g._Bn([{provide:z,useExisting:k}]),g.qOj,g.TTD],ngContentSelectors:q,decls:1,vars:0,template:function(ce,He){1&ce&&(g.F$t(),g.YNc(0,Y,1,0,"ng-template"))},encapsulation:2}),k})();const xe={translateTab:(0,G.X$)("translateTab",[(0,G.SB)("center, void, left-origin-center, right-origin-center",(0,G.oB)({transform:"none"})),(0,G.SB)("left",(0,G.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,G.SB)("right",(0,G.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,G.eR)("* => left, * => right, left => center, right => center",(0,G.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,G.eR)("void => left-origin-center",[(0,G.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,G.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,G.eR)("void => right-origin-center",[(0,G.oB)({transform:"translate3d(100%, 0, 0)"}),(0,G.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Qe=(()=>{class k extends _.Pl{constructor(ce,He,ct,bt){super(ce,He,bt),this._host=ct,this._centeringSub=I.w.EMPTY,this._leavingSub=I.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,ne.O)(this._host._isCenterPosition(this._host._position))).subscribe(ce=>{ce&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36((0,g.Gpc)(()=>Ae)),g.Y36(w.K0))},k.\u0275dir=g.lG2({type:k,selectors:[["","matTabBodyHost",""]],features:[g.qOj]}),k})(),Te=(()=>{class k{constructor(ce,He,ct){this._elementRef=ce,this._dir=He,this._dirChangeSubscription=I.w.EMPTY,this._translateTabComplete=new C.xQ,this._onCentering=new g.vpe,this._beforeCentering=new g.vpe,this._afterLeavingCenter=new g.vpe,this._onCentered=new g.vpe(!0),this.animationDuration="500ms",He&&(this._dirChangeSubscription=He.change.subscribe(bt=>{this._computePositionAnimationState(bt),ct.markForCheck()})),this._translateTabComplete.pipe((0,ge.x)((bt,xt)=>bt.fromState===xt.fromState&&bt.toState===xt.toState)).subscribe(bt=>{this._isCenterPosition(bt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(bt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ce){this._positionIndex=ce,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ce){const He=this._isCenterPosition(ce.toState);this._beforeCentering.emit(He),He&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ce){return"center"==ce||"left-origin-center"==ce||"right-origin-center"==ce}_computePositionAnimationState(ce=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ce?"left":"right":this._positionIndex>0?"ltr"==ce?"right":"left":"center"}_computePositionFromOrigin(ce){const He=this._getLayoutDirection();return"ltr"==He&&ce<=0||"rtl"==He&&ce>0?"left-origin-center":"right-origin-center"}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(Me.Is,8),g.Y36(g.sBO))},k.\u0275dir=g.lG2({type:k,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),k})(),Ae=(()=>{class k extends Te{constructor(ce,He,ct){super(ce,He,ct)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(Me.Is,8),g.Y36(g.sBO))},k.\u0275cmp=g.Xpm({type:k,selectors:[["mat-tab-body"]],viewQuery:function(ce,He){if(1&ce&&g.Gf(_.Pl,5),2&ce){let ct;g.iGM(ct=g.CRH())&&(He._portalHost=ct.first)}},hostAttrs:[1,"mat-tab-body"],features:[g.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ce,He){1&ce&&(g.TgZ(0,"div",0,1),g.NdJ("@translateTab.start",function(bt){return He._onTranslateTabStarted(bt)})("@translateTab.done",function(bt){return He._translateTabComplete.next(bt)}),g.YNc(2,te,0,0,"ng-template",2),g.qZA()),2&ce&&g.Q6J("@translateTab",g.WLB(3,de,He._position,g.VKq(1,ue,He.animationDuration)))},directives:[Qe],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[xe.translateTab]}}),k})();const ae=new g.OlP("MAT_TABS_CONFIG"),i=(0,A.Id)(class{});let o=(()=>{class k extends i{constructor(ce){super(),this.elementRef=ce}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq))},k.\u0275dir=g.lG2({type:k,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ce,He){2&ce&&(g.uIk("aria-disabled",!!He.disabled),g.ekj("mat-tab-disabled",He.disabled))},inputs:{disabled:"disabled"},features:[g.qOj]}),k})();const d=(0,T.i$)({passive:!0});let t=(()=>{class k{constructor(ce,He,ct,bt,xt,Yt,It){this._elementRef=ce,this._changeDetectorRef=He,this._viewportRuler=ct,this._dir=bt,this._ngZone=xt,this._platform=Yt,this._animationMode=It,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new C.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new C.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new g.vpe,this.indexFocused=new g.vpe,xt.runOutsideAngular(()=>{(0,P.R)(ce.nativeElement,"mouseleave").pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(ce){ce=(0,oe.su)(ce),this._selectedIndex!=ce&&(this._selectedIndexChanged=!0,this._selectedIndex=ce,this._keyManager&&this._keyManager.updateActiveItem(ce))}ngAfterViewInit(){(0,P.R)(this._previousPaginator.nativeElement,"touchstart",d).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,P.R)(this._nextPaginator.nativeElement,"touchstart",d).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ce=this._dir?this._dir.change:(0,m.of)("ltr"),He=this._viewportRuler.change(150),ct=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(ct):ct(),(0,L.T)(ce,He,this._items.changes).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(ct)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,J.R)(this._destroyed)).subscribe(bt=>{this.indexFocused.emit(bt),this._setTabFocus(bt)})}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(ce){if(!(0,Re.Vb)(ce))switch(ce.keyCode){case Re.K5:case Re.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ce));break;default:this._keyManager.onKeydown(ce)}}_onContentChanges(){const ce=this._elementRef.nativeElement.textContent;ce!==this._currentTextContent&&(this._currentTextContent=ce||"",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(ce){!this._isValidIndex(ce)||this.focusIndex===ce||!this._keyManager||this._keyManager.setActiveItem(ce)}_isValidIndex(ce){if(!this._items)return!0;const He=this._items?this._items.toArray()[ce]:null;return!!He&&!He.disabled}_setTabFocus(ce){if(this._showPaginationControls&&this._scrollToLabel(ce),this._items&&this._items.length){this._items.toArray()[ce].focus();const He=this._tabListContainer.nativeElement;He.scrollLeft="ltr"==this._getLayoutDirection()?0:He.scrollWidth-He.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ce=this.scrollDistance,He="ltr"===this._getLayoutDirection()?-ce:ce;this._tabList.nativeElement.style.transform=`translateX(${Math.round(He)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ce){this._scrollTo(ce)}_scrollHeader(ce){return this._scrollTo(this._scrollDistance+("before"==ce?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ce){this._stopInterval(),this._scrollHeader(ce)}_scrollToLabel(ce){if(this.disablePagination)return;const He=this._items?this._items.toArray()[ce]:null;if(!He)return;const ct=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:bt,offsetWidth:xt}=He.elementRef.nativeElement;let Yt,It;"ltr"==this._getLayoutDirection()?(Yt=bt,It=Yt+xt):(It=this._tabListInner.nativeElement.offsetWidth-bt,Yt=It-xt);const Rt=this.scrollDistance,Et=this.scrollDistance+ct;YtEt&&(this.scrollDistance+=It-Et+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ce=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ce||(this.scrollDistance=0),ce!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ce}}_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 ce=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,He=ce?ce.elementRef.nativeElement:null;He?this._inkBar.alignToElement(He):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ce,He){He&&null!=He.button&&0!==He.button||(this._stopInterval(),(0,O.H)(650,100).pipe((0,J.R)((0,L.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ct,distance:bt}=this._scrollHeader(ce);(0===bt||bt>=ct)&&this._stopInterval()}))}_scrollTo(ce){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const He=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(He,ce)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:He,distance:this._scrollDistance}}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(j.rL),g.Y36(Me.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},k.\u0275dir=g.lG2({type:k,inputs:{disablePagination:"disablePagination"}}),k})(),n=(()=>{class k extends t{constructor(ce,He,ct,bt,xt,Yt,It){super(ce,He,ct,bt,xt,Yt,It),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ce){this._disableRipple=(0,oe.Ig)(ce)}_itemSelected(ce){ce.preventDefault()}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(j.rL),g.Y36(Me.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},k.\u0275dir=g.lG2({type:k,inputs:{disableRipple:"disableRipple"},features:[g.qOj]}),k})(),a=(()=>{class k extends n{constructor(ce,He,ct,bt,xt,Yt,It){super(ce,He,ct,bt,xt,Yt,It)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(j.rL),g.Y36(Me.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},k.\u0275cmp=g.Xpm({type:k,selectors:[["mat-tab-header"]],contentQueries:function(ce,He,ct){if(1&ce&&g.Suo(ct,o,4),2&ce){let bt;g.iGM(bt=g.CRH())&&(He._items=bt)}},viewQuery:function(ce,He){if(1&ce&&(g.Gf(Je,7),g.Gf(Le,7),g.Gf(Ue,7),g.Gf(ze,7),g.Gf(le,5),g.Gf(je,5)),2&ce){let ct;g.iGM(ct=g.CRH())&&(He._inkBar=ct.first),g.iGM(ct=g.CRH())&&(He._tabListContainer=ct.first),g.iGM(ct=g.CRH())&&(He._tabList=ct.first),g.iGM(ct=g.CRH())&&(He._tabListInner=ct.first),g.iGM(ct=g.CRH())&&(He._nextPaginator=ct.first),g.iGM(ct=g.CRH())&&(He._previousPaginator=ct.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ce,He){2&ce&&g.ekj("mat-tab-header-pagination-controls-enabled",He._showPaginationControls)("mat-tab-header-rtl","rtl"==He._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[g.qOj],ngContentSelectors:q,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ce,He){1&ce&&(g.F$t(),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return He._handlePaginatorClick("before")})("mousedown",function(bt){return He._handlePaginatorPress("before",bt)})("touchend",function(){return He._stopInterval()}),g._UZ(2,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.NdJ("keydown",function(bt){return He._handleKeydown(bt)}),g.TgZ(5,"div",5,6),g.NdJ("cdkObserveContent",function(){return He._onContentChanges()}),g.TgZ(7,"div",7,8),g.Hsn(9),g.qZA(),g._UZ(10,"mat-ink-bar"),g.qZA(),g.qZA(),g.TgZ(11,"div",9,10),g.NdJ("mousedown",function(bt){return He._handlePaginatorPress("after",bt)})("click",function(){return He._handlePaginatorClick("after")})("touchend",function(){return He._stopInterval()}),g._UZ(13,"div",2),g.qZA()),2&ce&&(g.ekj("mat-tab-header-pagination-disabled",He._disableScrollBefore),g.Q6J("matRippleDisabled",He._disableScrollBefore||He.disableRipple),g.xp6(5),g.ekj("_mat-animation-noopable","NoopAnimations"===He._animationMode),g.xp6(6),g.ekj("mat-tab-header-pagination-disabled",He._disableScrollAfter),g.Q6J("matRippleDisabled",He._disableScrollAfter||He.disableRipple))},directives:[A.wG,b.wD,Je],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n"],encapsulation:2}),k})(),c=0;class h{}const x=(0,A.pj)((0,A.Kr)(class{constructor(k){this._elementRef=k}}),"primary");let We=(()=>{class k extends x{constructor(ce,He,ct,bt){var xt;super(ce),this._changeDetectorRef=He,this._animationMode=bt,this._tabs=new g.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=I.w.EMPTY,this._tabLabelSubscription=I.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new g.vpe,this.focusChange=new g.vpe,this.animationDone=new g.vpe,this.selectedTabChange=new g.vpe(!0),this._groupId=c++,this.animationDuration=ct&&ct.animationDuration?ct.animationDuration:"500ms",this.disablePagination=!(!ct||null==ct.disablePagination)&&ct.disablePagination,this.dynamicHeight=!(!ct||null==ct.dynamicHeight)&&ct.dynamicHeight,this.contentTabIndex=null!==(xt=null==ct?void 0:ct.contentTabIndex)&&void 0!==xt?xt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ce){this._dynamicHeight=(0,oe.Ig)(ce)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ce){this._indexToSelect=(0,oe.su)(ce,null)}get animationDuration(){return this._animationDuration}set animationDuration(ce){this._animationDuration=/^\d+$/.test(ce+"")?ce+"ms":ce}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ce){this._contentTabIndex=(0,oe.su)(ce,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ce){const He=this._elementRef.nativeElement;He.classList.remove(`mat-background-${this.backgroundColor}`),ce&&He.classList.add(`mat-background-${ce}`),this._backgroundColor=ce}ngAfterContentChecked(){const ce=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ce){const He=null==this._selectedIndex;if(!He){this.selectedTabChange.emit(this._createChangeEvent(ce));const ct=this._tabBodyWrapper.nativeElement;ct.style.minHeight=ct.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ct,bt)=>ct.isActive=bt===ce),He||(this.selectedIndexChange.emit(ce),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((He,ct)=>{He.position=ct-ce,null!=this._selectedIndex&&0==He.position&&!He.origin&&(He.origin=ce-this._selectedIndex)}),this._selectedIndex!==ce&&(this._selectedIndex=ce,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const He=this._tabs.toArray();for(let ct=0;ct{this._tabs.reset(ce.filter(He=>He._closestTabGroup===this||!He._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(ce){const He=this._tabHeader;He&&(He.focusIndex=ce)}_focusChanged(ce){this.focusChange.emit(this._createChangeEvent(ce))}_createChangeEvent(ce){const He=new h;return He.index=ce,this._tabs&&this._tabs.length&&(He.tab=this._tabs.toArray()[ce]),He}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,L.T)(...this._tabs.map(ce=>ce._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ce){return Math.min(this._tabs.length-1,Math.max(ce||0,0))}_getTabLabelId(ce){return`mat-tab-label-${this._groupId}-${ce}`}_getTabContentId(ce){return`mat-tab-content-${this._groupId}-${ce}`}_setTabBodyWrapperHeight(ce){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const He=this._tabBodyWrapper.nativeElement;He.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(He.style.height=ce+"px")}_removeTabBodyWrapperHeight(){const ce=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ce.clientHeight,ce.style.height="",this.animationDone.emit()}_handleClick(ce,He,ct){ce.disabled||(this.selectedIndex=He.focusIndex=ct)}_getTabIndex(ce,He){return ce.disabled?null:this.selectedIndex===He?0:-1}_tabFocusChanged(ce,He){ce&&"mouse"!==ce&&"touch"!==ce&&(this._tabHeader.focusIndex=He)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(ae,8),g.Y36(E.Qb,8))},k.\u0275dir=g.lG2({type:k,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[g.qOj]}),k})(),At=(()=>{class k extends We{constructor(ce,He,ct,bt){super(ce,He,ct,bt)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(ae,8),g.Y36(E.Qb,8))},k.\u0275cmp=g.Xpm({type:k,selectors:[["mat-tab-group"]],contentQueries:function(ce,He,ct){if(1&ce&&g.Suo(ct,V,5),2&ce){let bt;g.iGM(bt=g.CRH())&&(He._allTabs=bt)}},viewQuery:function(ce,He){if(1&ce&&(g.Gf(ye,5),g.Gf(Be,5)),2&ce){let ct;g.iGM(ct=g.CRH())&&(He._tabBodyWrapper=ct.first),g.iGM(ct=g.CRH())&&(He._tabHeader=ct.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ce,He){2&ce&&g.ekj("mat-tab-group-dynamic-height",He.dynamicHeight)("mat-tab-group-inverted-header","below"===He.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[g._Bn([{provide:H,useExisting:k}]),g.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","_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","_onCentered","_onCentering"]],template:function(ce,He){1&ce&&(g.TgZ(0,"mat-tab-header",0,1),g.NdJ("indexFocused",function(bt){return He._focusChanged(bt)})("selectFocusedIndex",function(bt){return He.selectedIndex=bt}),g.YNc(2,be,5,15,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.YNc(5,Ie,1,10,"mat-tab-body",5),g.qZA()),2&ce&&(g.Q6J("selectedIndex",He.selectedIndex||0)("disableRipple",He.disableRipple)("disablePagination",He.disablePagination),g.xp6(2),g.Q6J("ngForOf",He._tabs),g.xp6(1),g.ekj("_mat-animation-noopable","NoopAnimations"===He._animationMode),g.xp6(2),g.Q6J("ngForOf",He._tabs))},directives:[a,Ae,w.sg,o,A.wG,e.kH,w.mk,w.O5,_.Pl],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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.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}\n"],encapsulation:2}),k})(),U=(()=>{class k{}return k.\u0275fac=function(ce){return new(ce||k)},k.\u0275mod=g.oAB({type:k}),k.\u0275inj=g.cJS({imports:[[w.ez,A.BQ,_.eL,A.si,b.Q8,e.rt],A.BQ]}),k})()},29772:($e,_e,p)=>{"use strict";p.d(_e,{gM:()=>Ve,AV:()=>Q});var e=p(92845),b=p(15664),_=p(69808),w=p(5e3),g=p(90508),A=p(53435),E=p(63191),C=p(91159),I=p(8929),P=p(36053),m=p(61221),L=p(56498),O=p(72986),G=p(31307),ne=p(80013),ge=p(24850),J=p(1059),Me=p(7625),oe=p(70925);const T=new Set;let j,Y=(()=>{class D{constructor(V){this._platform=V,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):te}matchMedia(V){return(this._platform.WEBKIT||this._platform.BLINK)&&function q(D){if(!T.has(D))try{j||(j=document.createElement("style"),j.setAttribute("type","text/css"),document.head.appendChild(j)),j.sheet&&(j.sheet.insertRule(`@media ${D} {body{ }}`,0),T.add(D))}catch(H){console.error(H)}}(V),this._matchMedia(V)}}return D.\u0275fac=function(V){return new(V||D)(w.LFG(oe.t4))},D.\u0275prov=w.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();function te(D){return{matches:"all"===D||""===D,media:D,addListener:()=>{},removeListener:()=>{}}}let ue=(()=>{class D{constructor(V,xe){this._mediaMatcher=V,this._zone=xe,this._queries=new Map,this._destroySubject=new I.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(V){return de((0,E.Eq)(V)).some(Qe=>this._registerQuery(Qe).mql.matches)}observe(V){const Qe=de((0,E.Eq)(V)).map(Ae=>this._registerQuery(Ae).observable);let Te=(0,P.aj)(Qe);return Te=(0,m.z)(Te.pipe((0,O.q)(1)),Te.pipe((0,G.T)(1),(0,ne.b)(0))),Te.pipe((0,ge.U)(Ae=>{const ae={matches:!1,breakpoints:{}};return Ae.forEach(({matches:i,query:o})=>{ae.matches=ae.matches||i,ae.breakpoints[o]=i}),ae}))}_registerQuery(V){if(this._queries.has(V))return this._queries.get(V);const xe=this._mediaMatcher.matchMedia(V),Te={observable:new L.y(Ae=>{const ae=i=>this._zone.run(()=>Ae.next(i));return xe.addListener(ae),()=>{xe.removeListener(ae)}}).pipe((0,J.O)(xe),(0,ge.U)(({matches:Ae})=>({query:V,matches:Ae})),(0,Me.R)(this._destroySubject)),mql:xe};return this._queries.set(V,Te),Te}}return D.\u0275fac=function(V){return new(V||D)(w.LFG(Y),w.LFG(w.R0b))},D.\u0275prov=w.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();function de(D){return D.map(H=>H.split(",")).reduce((H,V)=>H.concat(V)).map(H=>H.trim())}var Ue=p(47429),ze=p(41777),le=p(50226);const je={tooltipState:(0,ze.X$)("state",[(0,ze.SB)("initial, void, hidden",(0,ze.oB)({opacity:0,transform:"scale(0)"})),(0,ze.SB)("visible",(0,ze.oB)({transform:"scale(1)"})),(0,ze.eR)("* => visible",(0,ze.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ze.F4)([(0,ze.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ze.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ze.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ze.eR)("* => hidden",(0,ze.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ze.oB)({opacity:0})))])},W="tooltip-panel",R=(0,oe.i$)({passive:!0}),Ie=new w.OlP("mat-tooltip-scroll-strategy"),Se={provide:Ie,deps:[e.aV],useFactory:function pe(D){return()=>D.scrollStrategies.reposition({scrollThrottle:20})}},Xe=new w.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Je(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let nt=(()=>{class D{constructor(V,xe,Qe,Te,Ae,ae,i,o,d,l,s,r){this._overlay=V,this._elementRef=xe,this._scrollDispatcher=Qe,this._viewContainerRef=Te,this._ngZone=Ae,this._platform=ae,this._ariaDescriber=i,this._focusMonitor=o,this._dir=l,this._defaultOptions=s,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 I.xQ,this._scrollStrategy=d,this._document=r,s&&(s.position&&(this.position=s.position),s.touchGestures&&(this.touchGestures=s.touchGestures)),l.change.pipe((0,Me.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(V){var xe;V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(xe=this._tooltipInstance)||void 0===xe||xe.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,E.Ig)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,E.su)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,E.su)(V)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).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(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Me.R)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([xe,Qe])=>{V.removeEventListener(xe,Qe,R)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const xe=this._createOverlay();this._detach(),this._portal=this._portal||new Ue.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=xe.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,Me.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(V)}hide(V=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(V)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const V=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),xe=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(V);return xe.positionChanges.pipe((0,Me.R)(this._destroyed)).subscribe(Qe=>{this._updateCurrentPositionClass(Qe.connectionPair),this._tooltipInstance&&Qe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:xe,panelClass:`${this._cssClassPrefix}-${W}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Me.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,Me.R)(this._destroyed)).subscribe(()=>{var Qe;return null===(Qe=this._tooltipInstance)||void 0===Qe?void 0:Qe._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Me.R)(this._destroyed)).subscribe(Qe=>{this._isTooltipVisible()&&Qe.keyCode===C.hY&&!(0,C.Vb)(Qe)&&(Qe.preventDefault(),Qe.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(V){const xe=V.getConfig().positionStrategy,Qe=this._getOrigin(),Te=this._getOverlayPosition();xe.withPositions([this._addOffset(Object.assign(Object.assign({},Qe.main),Te.main)),this._addOffset(Object.assign(Object.assign({},Qe.fallback),Te.fallback))])}_addOffset(V){return V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,xe=this.position;let Qe;"above"==xe||"below"==xe?Qe={originX:"center",originY:"above"==xe?"top":"bottom"}:"before"==xe||"left"==xe&&V||"right"==xe&&!V?Qe={originX:"start",originY:"center"}:("after"==xe||"right"==xe&&V||"left"==xe&&!V)&&(Qe={originX:"end",originY:"center"});const{x:Te,y:Ae}=this._invertPosition(Qe.originX,Qe.originY);return{main:Qe,fallback:{originX:Te,originY:Ae}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,xe=this.position;let Qe;"above"==xe?Qe={overlayX:"center",overlayY:"bottom"}:"below"==xe?Qe={overlayX:"center",overlayY:"top"}:"before"==xe||"left"==xe&&V||"right"==xe&&!V?Qe={overlayX:"end",overlayY:"center"}:("after"==xe||"right"==xe&&V||"left"==xe&&!V)&&(Qe={overlayX:"start",overlayY:"center"});const{x:Te,y:Ae}=this._invertPosition(Qe.overlayX,Qe.overlayY);return{main:Qe,fallback:{overlayX:Te,overlayY:Ae}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,O.q)(1),(0,Me.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,xe){return"above"===this.position||"below"===this.position?"top"===xe?xe="bottom":"bottom"===xe&&(xe="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:xe}}_updateCurrentPositionClass(V){const{overlayY:xe,originX:Qe,originY:Te}=V;let Ae;if(Ae="center"===xe?this._dir&&"rtl"===this._dir.value?"end"===Qe?"left":"right":"start"===Qe?"left":"right":"bottom"===xe&&"top"===Te?"above":"below",Ae!==this._currentPosition){const ae=this._overlayRef;if(ae){const i=`${this._cssClassPrefix}-${W}-`;ae.removePanelClass(i+this._currentPosition),ae.addPanelClass(i+Ae)}this._currentPosition=Ae}}_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 V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",()=>this.hide()],["wheel",xe=>this._wheelListener(xe)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const xe=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",xe],["touchcancel",xe])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([xe,Qe])=>{this._elementRef.nativeElement.addEventListener(xe,Qe,R)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const xe=this._document.elementFromPoint(V.clientX,V.clientY),Qe=this._elementRef.nativeElement;xe!==Qe&&!Qe.contains(xe)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const xe=this._elementRef.nativeElement,Qe=xe.style;("on"===V||"INPUT"!==xe.nodeName&&"TEXTAREA"!==xe.nodeName)&&(Qe.userSelect=Qe.msUserSelect=Qe.webkitUserSelect=Qe.MozUserSelect="none"),("on"===V||!xe.draggable)&&(Qe.webkitUserDrag="none"),Qe.touchAction="none",Qe.webkitTapHighlightColor="transparent"}}}return D.\u0275fac=function(V){w.$Z()},D.\u0275dir=w.lG2({type:D,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),D})(),Ve=(()=>{class D extends nt{constructor(V,xe,Qe,Te,Ae,ae,i,o,d,l,s,r){super(V,xe,Qe,Te,Ae,ae,i,o,d,l,s,r),this._tooltipComponent=z}}return D.\u0275fac=function(V){return new(V||D)(w.Y36(e.aV),w.Y36(w.SBq),w.Y36(A.mF),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(oe.t4),w.Y36(b.$s),w.Y36(b.tE),w.Y36(Ie),w.Y36(le.Is,8),w.Y36(Xe,8),w.Y36(_.K0))},D.\u0275dir=w.lG2({type:D,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[w.qOj]}),D})(),X=(()=>{class D{constructor(V){this._changeDetectorRef=V,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new I.xQ}show(V){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},V)}hide(V){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},V)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(V){const xe=V.toState;"hidden"===xe&&!this.isVisible()&&this._onHide.next(),("visible"===xe||"hidden"===xe)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return D.\u0275fac=function(V){return new(V||D)(w.Y36(w.sBO))},D.\u0275dir=w.lG2({type:D}),D})(),z=(()=>{class D extends X{constructor(V,xe){super(V),this._breakpointObserver=xe,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return D.\u0275fac=function(V){return new(V||D)(w.Y36(w.sBO),w.Y36(ue))},D.\u0275cmp=w.Xpm({type:D,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(V,xe){2&V&&w.Udp("zoom","visible"===xe._visibility?1:null)},features:[w.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(V,xe){if(1&V&&(w.TgZ(0,"div",0),w.NdJ("@state.start",function(){return xe._animationStart()})("@state.done",function(Te){return xe._animationDone(Te)}),w.ALo(1,"async"),w._uU(2),w.qZA()),2&V){let Qe;w.ekj("mat-tooltip-handset",null==(Qe=w.lcZ(1,5,xe._isHandset))?null:Qe.matches),w.Q6J("ngClass",xe.tooltipClass)("@state",xe._visibility),w.xp6(2),w.Oqu(xe.message)}},directives:[_.mk],pipes:[_.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[je.tooltipState]},changeDetection:0}),D})(),Q=(()=>{class D{}return D.\u0275fac=function(V){return new(V||D)},D.\u0275mod=w.oAB({type:D}),D.\u0275inj=w.cJS({providers:[Se],imports:[[b.rt,_.ez,e.U8,g.BQ],g.BQ,A.ZD]}),D})()},90149:($e,_e,p)=>{"use strict";p.d(_e,{GZ:()=>O,gi:()=>ge,kc:()=>T,JZ:()=>Re,dp:()=>oe,WX:()=>j,uo:()=>m,fQ:()=>L,Ar:()=>ne,eu:()=>J});var e=p(28258),b=p(5e3),_=p(90508),w=p(63191),g=p(20449),A=p(591),E=p(36787),C=p(72986),I=p(24850);const P=(0,_.sb)((0,_.Id)(e.Hs));let m=(()=>{class Y extends P{constructor(te,ue,de){super(te,ue),this.tabIndex=Number(de)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.SBq),b.Y36(e._0),b.$8M("tabindex"))},Y.\u0275dir=b.lG2({type:Y,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[b._Bn([{provide:e.Hs,useExisting:Y}]),b.qOj]}),Y})(),L=(()=>{class Y extends e.rO{}return Y.\u0275fac=function(){let q;return function(ue){return(q||(q=b.n5z(Y)))(ue||Y)}}(),Y.\u0275dir=b.lG2({type:Y,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[b._Bn([{provide:e.rO,useExisting:Y}]),b.qOj]}),Y})(),O=(()=>{class Y extends e.Xx{constructor(te,ue,de,Le){super(te,ue,de),this._disabled=!1,this.tabIndex=Number(Le)||0}get disabled(){return this._disabled}set disabled(te){this._disabled=(0,w.Ig)(te)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(te){this._tabIndex=null!=te?te:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.SBq),b.Y36(e._0),b.Y36(b.ZZ4),b.$8M("tabindex"))},Y.\u0275dir=b.lG2({type:Y,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[b._Bn([{provide:e.Xx,useExisting:Y},{provide:e.Hs,useExisting:Y},{provide:e.HI,useExisting:Y}]),b.qOj]}),Y})(),ne=(()=>{class Y{constructor(te,ue){this.viewContainer=te,this._node=ue}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.s_b),b.Y36(e.HI,8))},Y.\u0275dir=b.lG2({type:Y,selectors:[["","matTreeNodeOutlet",""]],features:[b._Bn([{provide:e.cu,useExisting:Y}])]}),Y})(),ge=(()=>{class Y extends e._0{}return Y.\u0275fac=function(){let q;return function(ue){return(q||(q=b.n5z(Y)))(ue||Y)}}(),Y.\u0275cmp=b.Xpm({type:Y,selectors:[["mat-tree"]],viewQuery:function(te,ue){if(1&te&&b.Gf(ne,7),2&te){let de;b.iGM(de=b.CRH())&&(ue._nodeOutlet=de.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[b._Bn([{provide:e._0,useExisting:Y}]),b.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(te,ue){1&te&&b.GkF(0,0)},directives:[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}\n"],encapsulation:2}),Y})(),J=(()=>{class Y extends e.Ud{}return Y.\u0275fac=function(){let q;return function(ue){return(q||(q=b.n5z(Y)))(ue||Y)}}(),Y.\u0275dir=b.lG2({type:Y,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[b._Bn([{provide:e.Ud,useExisting:Y}]),b.qOj]}),Y})(),oe=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({imports:[[e.nZ,_.BQ],_.BQ]}),Y})();class Re{constructor(q,te,ue,de){this.transformFunction=q,this.getLevel=te,this.isExpandable=ue,this.getChildren=de}_flattenNode(q,te,ue,de){const Le=this.transformFunction(q,te);if(ue.push(Le),this.isExpandable(Le)){const Ue=this.getChildren(q);Ue&&(Array.isArray(Ue)?this._flattenChildren(Ue,te,ue,de):Ue.pipe((0,C.q)(1)).subscribe(ze=>{this._flattenChildren(ze,te,ue,de)}))}return ue}_flattenChildren(q,te,ue,de){q.forEach((Le,Ue)=>{let ze=de.slice();ze.push(Ue!=q.length-1),this._flattenNode(Le,te+1,ue,ze)})}flattenNodes(q){let te=[];return q.forEach(ue=>this._flattenNode(ue,0,te,[])),te}expandFlattenedNodes(q,te){let ue=[],de=[];return de[0]=!0,q.forEach(Le=>{let Ue=!0;for(let ze=0;ze<=this.getLevel(Le);ze++)Ue=Ue&&de[ze];Ue&&ue.push(Le),this.isExpandable(Le)&&(de[this.getLevel(Le)+1]=te.isExpanded(Le))}),ue}}class T extends g.o2{constructor(q,te,ue){super(),this._treeControl=q,this._treeFlattener=te,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),ue&&(this.data=ue)}get data(){return this._data.value}set data(q){this._data.next(q),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(q){return(0,E.T)(q.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,I.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class j extends g.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(q){this._data.next(q)}connect(q){return(0,E.T)(q.viewChange,this._data).pipe((0,I.U)(()=>this.data))}disconnect(){}}},76360:($e,_e,p)=>{"use strict";p.d(_e,{Qb:()=>yn,PW:()=>zn});var e=p(5e3),b=p(22313),_=p(41777);function w(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function A(ft){switch(ft.length){case 0:return new _.ZN;case 1:return ft[0];default:return new _.ZE(ft)}}function E(ft,N,Z,Pe,ht={},Ct={}){const ee=[],Oe=[];let he=-1,tt=null;if(Pe.forEach(yt=>{const Gt=yt.offset,Wt=Gt==he,ii=Wt&&tt||{};Object.keys(yt).forEach(di=>{let ui=di,_i=yt[di];if("offset"!==di)switch(ui=N.normalizePropertyName(ui,ee),_i){case _.k1:_i=ht[di];break;case _.l3:_i=Ct[di];break;default:_i=N.normalizeStyleValue(di,ui,_i,ee)}ii[ui]=_i}),Wt||Oe.push(ii),tt=ii,he=Gt}),ee.length){const yt="\n - ";throw new Error(`Unable to animate due to the following errors:${yt}${ee.join(yt)}`)}return Oe}function C(ft,N,Z,Pe){switch(N){case"start":ft.onStart(()=>Pe(Z&&I(Z,"start",ft)));break;case"done":ft.onDone(()=>Pe(Z&&I(Z,"done",ft)));break;case"destroy":ft.onDestroy(()=>Pe(Z&&I(Z,"destroy",ft)))}}function I(ft,N,Z){const Pe=Z.totalTime,Ct=P(ft.element,ft.triggerName,ft.fromState,ft.toState,N||ft.phaseName,null==Pe?ft.totalTime:Pe,!!Z.disabled),ee=ft._data;return null!=ee&&(Ct._data=ee),Ct}function P(ft,N,Z,Pe,ht="",Ct=0,ee){return{element:ft,triggerName:N,fromState:Z,toState:Pe,phaseName:ht,totalTime:Ct,disabled:!!ee}}function m(ft,N,Z){let Pe;return ft instanceof Map?(Pe=ft.get(N),Pe||ft.set(N,Pe=Z)):(Pe=ft[N],Pe||(Pe=ft[N]=Z)),Pe}function L(ft){const N=ft.indexOf(":");return[ft.substring(1,N),ft.substr(N+1)]}let O=(ft,N)=>!1,G=(ft,N,Z)=>[];(g()||"undefined"!=typeof Element)&&(O=w()?(ft,N)=>{for(;N&&N!==document.documentElement;){if(N===ft)return!0;N=N.parentNode||N.host}return!1}:(ft,N)=>ft.contains(N),G=(ft,N,Z)=>{if(Z)return Array.from(ft.querySelectorAll(N));const Pe=ft.querySelector(N);return Pe?[Pe]:[]});let J=null,Me=!1;function oe(ft){J||(J=function Re(){return"undefined"!=typeof document?document.body:null}()||{},Me=!!J.style&&"WebkitAppearance"in J.style);let N=!0;return J.style&&!function ge(ft){return"ebkit"==ft.substring(1,6)}(ft)&&(N=ft in J.style,!N&&Me&&(N="Webkit"+ft.charAt(0).toUpperCase()+ft.substr(1)in J.style)),N}const T=O,j=G;let q=(()=>{class ft{validateStyleProperty(Z){return oe(Z)}matchesElement(Z,Pe){return!1}containsElement(Z,Pe){return T(Z,Pe)}query(Z,Pe,ht){return j(Z,Pe,ht)}computeStyle(Z,Pe,ht){return ht||""}animate(Z,Pe,ht,Ct,ee,Oe=[],he){return new _.ZN(ht,Ct)}}return ft.\u0275fac=function(Z){return new(Z||ft)},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),te=(()=>{class ft{}return ft.NOOP=new q,ft})();const Ue="ng-enter",ze="ng-leave",le="ng-trigger",je=".ng-trigger",ye="ng-animating",Be=".ng-animating";function W(ft){if("number"==typeof ft)return ft;const N=ft.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:R(parseFloat(N[1]),N[2])}function R(ft,N){return"s"===N?1e3*ft:ft}function me(ft,N,Z){return ft.hasOwnProperty("duration")?ft:function be(ft,N,Z){let ht,Ct=0,ee="";if("string"==typeof ft){const Oe=ft.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Oe)return N.push(`The provided timing value "${ft}" is invalid.`),{duration:0,delay:0,easing:""};ht=R(parseFloat(Oe[1]),Oe[2]);const he=Oe[3];null!=he&&(Ct=R(parseFloat(he),Oe[4]));const tt=Oe[5];tt&&(ee=tt)}else ht=ft;if(!Z){let Oe=!1,he=N.length;ht<0&&(N.push("Duration values below 0 are not allowed for this animation step."),Oe=!0),Ct<0&&(N.push("Delay values below 0 are not allowed for this animation step."),Oe=!0),Oe&&N.splice(he,0,`The provided timing value "${ft}" is invalid.`)}return{duration:ht,delay:Ct,easing:ee}}(ft,N,Z)}function Ie(ft,N={}){return Object.keys(ft).forEach(Z=>{N[Z]=ft[Z]}),N}function Se(ft,N,Z={}){if(N)for(let Pe in ft)Z[Pe]=ft[Pe];else Ie(ft,Z);return Z}function Xe(ft,N,Z){return Z?N+":"+Z+";":""}function Je(ft){let N="";for(let Z=0;Z{const ht=Qe(Pe);Z&&!Z.hasOwnProperty(Pe)&&(Z[Pe]=ft.style[ht]),ft.style[ht]=N[Pe]}),g()&&Je(ft))}function Ve(ft,N){ft.style&&(Object.keys(N).forEach(Z=>{const Pe=Qe(Z);ft.style[Pe]=""}),g()&&Je(ft))}function X(ft){return Array.isArray(ft)?1==ft.length?ft[0]:(0,_.vP)(ft):ft}const Q=new RegExp("{{\\s*(.+?)\\s*}}","g");function D(ft){let N=[];if("string"==typeof ft){let Z;for(;Z=Q.exec(ft);)N.push(Z[1]);Q.lastIndex=0}return N}function H(ft,N,Z){const Pe=ft.toString(),ht=Pe.replace(Q,(Ct,ee)=>{let Oe=N[ee];return N.hasOwnProperty(ee)||(Z.push(`Please provide a value for the animation param ${ee}`),Oe=""),Oe.toString()});return ht==Pe?ft:ht}function V(ft){const N=[];let Z=ft.next();for(;!Z.done;)N.push(Z.value),Z=ft.next();return N}const xe=/-+([a-z0-9])/g;function Qe(ft){return ft.replace(xe,(...N)=>N[1].toUpperCase())}function Te(ft){return ft.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function i(ft,N,Z){switch(N.type){case 7:return ft.visitTrigger(N,Z);case 0:return ft.visitState(N,Z);case 1:return ft.visitTransition(N,Z);case 2:return ft.visitSequence(N,Z);case 3:return ft.visitGroup(N,Z);case 4:return ft.visitAnimate(N,Z);case 5:return ft.visitKeyframes(N,Z);case 6:return ft.visitStyle(N,Z);case 8:return ft.visitReference(N,Z);case 9:return ft.visitAnimateChild(N,Z);case 10:return ft.visitAnimateRef(N,Z);case 11:return ft.visitQuery(N,Z);case 12:return ft.visitStagger(N,Z);default:throw new Error(`Unable to resolve animation metadata node #${N.type}`)}}function o(ft,N){return window.getComputedStyle(ft)[N]}const d="*";function l(ft,N){const Z=[];return"string"==typeof ft?ft.split(/\s*,\s*/).forEach(Pe=>function s(ft,N,Z){if(":"==ft[0]){const he=function r(ft,N){switch(ft){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(Z,Pe)=>parseFloat(Pe)>parseFloat(Z);case":decrement":return(Z,Pe)=>parseFloat(Pe) *"}}(ft,Z);if("function"==typeof he)return void N.push(he);ft=he}const Pe=ft.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Pe||Pe.length<4)return Z.push(`The provided transition expression "${ft}" is not supported`),N;const ht=Pe[1],Ct=Pe[2],ee=Pe[3];N.push(a(ht,ee));"<"==Ct[0]&&!(ht==d&&ee==d)&&N.push(a(ee,ht))}(Pe,Z,N)):Z.push(ft),Z}const t=new Set(["true","1"]),n=new Set(["false","0"]);function a(ft,N){const Z=t.has(ft)||n.has(ft),Pe=t.has(N)||n.has(N);return(ht,Ct)=>{let ee=ft==d||ft==ht,Oe=N==d||N==Ct;return!ee&&Z&&"boolean"==typeof ht&&(ee=ht?t.has(ft):n.has(ft)),!Oe&&Pe&&"boolean"==typeof Ct&&(Oe=Ct?t.has(N):n.has(N)),ee&&Oe}}const c=":self",h=new RegExp(`s*${c}s*,?`,"g");function x(ft,N,Z){return new At(ft).build(N,Z)}class At{constructor(N){this._driver=N}build(N,Z){const Pe=new Ut(Z);return this._resetContextStyleTimingState(Pe),i(this,X(N),Pe)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles={},N.collectedStyles[""]={},N.currentTime=0}visitTrigger(N,Z){let Pe=Z.queryCount=0,ht=Z.depCount=0;const Ct=[],ee=[];return"@"==N.name.charAt(0)&&Z.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),N.definitions.forEach(Oe=>{if(this._resetContextStyleTimingState(Z),0==Oe.type){const he=Oe,tt=he.name;tt.toString().split(/\s*,\s*/).forEach(yt=>{he.name=yt,Ct.push(this.visitState(he,Z))}),he.name=tt}else if(1==Oe.type){const he=this.visitTransition(Oe,Z);Pe+=he.queryCount,ht+=he.depCount,ee.push(he)}else Z.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:N.name,states:Ct,transitions:ee,queryCount:Pe,depCount:ht,options:null}}visitState(N,Z){const Pe=this.visitStyle(N.styles,Z),ht=N.options&&N.options.params||null;if(Pe.containsDynamicStyles){const Ct=new Set,ee=ht||{};if(Pe.styles.forEach(Oe=>{if(Lt(Oe)){const he=Oe;Object.keys(he).forEach(tt=>{D(he[tt]).forEach(yt=>{ee.hasOwnProperty(yt)||Ct.add(yt)})})}}),Ct.size){const Oe=V(Ct.values());Z.errors.push(`state("${N.name}", ...) must define default values for all the following style substitutions: ${Oe.join(", ")}`)}}return{type:0,name:N.name,style:Pe,options:ht?{params:ht}:null}}visitTransition(N,Z){Z.queryCount=0,Z.depCount=0;const Pe=i(this,X(N.animation),Z);return{type:1,matchers:l(N.expr,Z.errors),animation:Pe,queryCount:Z.queryCount,depCount:Z.depCount,options:Ge(N.options)}}visitSequence(N,Z){return{type:2,steps:N.steps.map(Pe=>i(this,Pe,Z)),options:Ge(N.options)}}visitGroup(N,Z){const Pe=Z.currentTime;let ht=0;const Ct=N.steps.map(ee=>{Z.currentTime=Pe;const Oe=i(this,ee,Z);return ht=Math.max(ht,Z.currentTime),Oe});return Z.currentTime=ht,{type:3,steps:Ct,options:Ge(N.options)}}visitAnimate(N,Z){const Pe=function Ee(ft,N){let Z=null;if(ft.hasOwnProperty("duration"))Z=ft;else if("number"==typeof ft)return U(me(ft,N).duration,0,"");const Pe=ft;if(Pe.split(/\s+/).some(Ct=>"{"==Ct.charAt(0)&&"{"==Ct.charAt(1))){const Ct=U(0,0,"");return Ct.dynamic=!0,Ct.strValue=Pe,Ct}return Z=Z||me(Pe,N),U(Z.duration,Z.delay,Z.easing)}(N.timings,Z.errors);Z.currentAnimateTimings=Pe;let ht,Ct=N.styles?N.styles:(0,_.oB)({});if(5==Ct.type)ht=this.visitKeyframes(Ct,Z);else{let ee=N.styles,Oe=!1;if(!ee){Oe=!0;const tt={};Pe.easing&&(tt.easing=Pe.easing),ee=(0,_.oB)(tt)}Z.currentTime+=Pe.duration+Pe.delay;const he=this.visitStyle(ee,Z);he.isEmptyStep=Oe,ht=he}return Z.currentAnimateTimings=null,{type:4,timings:Pe,style:ht,options:null}}visitStyle(N,Z){const Pe=this._makeStyleAst(N,Z);return this._validateStyleAst(Pe,Z),Pe}_makeStyleAst(N,Z){const Pe=[];Array.isArray(N.styles)?N.styles.forEach(ee=>{"string"==typeof ee?ee==_.l3?Pe.push(ee):Z.errors.push(`The provided style string value ${ee} is not allowed.`):Pe.push(ee)}):Pe.push(N.styles);let ht=!1,Ct=null;return Pe.forEach(ee=>{if(Lt(ee)){const Oe=ee,he=Oe.easing;if(he&&(Ct=he,delete Oe.easing),!ht)for(let tt in Oe)if(Oe[tt].toString().indexOf("{{")>=0){ht=!0;break}}}),{type:6,styles:Pe,easing:Ct,offset:N.offset,containsDynamicStyles:ht,options:null}}_validateStyleAst(N,Z){const Pe=Z.currentAnimateTimings;let ht=Z.currentTime,Ct=Z.currentTime;Pe&&Ct>0&&(Ct-=Pe.duration+Pe.delay),N.styles.forEach(ee=>{"string"!=typeof ee&&Object.keys(ee).forEach(Oe=>{if(!this._driver.validateStyleProperty(Oe))return void Z.errors.push(`The provided animation property "${Oe}" is not a supported CSS property for animations`);const he=Z.collectedStyles[Z.currentQuerySelector],tt=he[Oe];let yt=!0;tt&&(Ct!=ht&&Ct>=tt.startTime&&ht<=tt.endTime&&(Z.errors.push(`The CSS property "${Oe}" that exists between the times of "${tt.startTime}ms" and "${tt.endTime}ms" is also being animated in a parallel animation between the times of "${Ct}ms" and "${ht}ms"`),yt=!1),Ct=tt.startTime),yt&&(he[Oe]={startTime:Ct,endTime:ht}),Z.options&&function z(ft,N,Z){const Pe=N.params||{},ht=D(ft);ht.length&&ht.forEach(Ct=>{Pe.hasOwnProperty(Ct)||Z.push(`Unable to resolve the local animation param ${Ct} in the given list of values`)})}(ee[Oe],Z.options,Z.errors)})})}visitKeyframes(N,Z){const Pe={type:5,styles:[],options:null};if(!Z.currentAnimateTimings)return Z.errors.push("keyframes() must be placed inside of a call to animate()"),Pe;let Ct=0;const ee=[];let Oe=!1,he=!1,tt=0;const yt=N.steps.map(Ti=>{const Hi=this._makeStyleAst(Ti,Z);let Ne=null!=Hi.offset?Hi.offset:function mt(ft){if("string"==typeof ft)return null;let N=null;if(Array.isArray(ft))ft.forEach(Z=>{if(Lt(Z)&&Z.hasOwnProperty("offset")){const Pe=Z;N=parseFloat(Pe.offset),delete Pe.offset}});else if(Lt(ft)&&ft.hasOwnProperty("offset")){const Z=ft;N=parseFloat(Z.offset),delete Z.offset}return N}(Hi.styles),De=0;return null!=Ne&&(Ct++,De=Hi.offset=Ne),he=he||De<0||De>1,Oe=Oe||De0&&Ct{const Ne=Wt>0?Hi==ii?1:Wt*Hi:ee[Hi],De=Ne*_i;Z.currentTime=di+ui.delay+De,ui.duration=De,this._validateStyleAst(Ti,Z),Ti.offset=Ne,Pe.styles.push(Ti)}),Pe}visitReference(N,Z){return{type:8,animation:i(this,X(N.animation),Z),options:Ge(N.options)}}visitAnimateChild(N,Z){return Z.depCount++,{type:9,options:Ge(N.options)}}visitAnimateRef(N,Z){return{type:10,animation:this.visitReference(N.animation,Z),options:Ge(N.options)}}visitQuery(N,Z){const Pe=Z.currentQuerySelector,ht=N.options||{};Z.queryCount++,Z.currentQuery=N;const[Ct,ee]=function Ht(ft){const N=!!ft.split(/\s*,\s*/).find(Z=>Z==c);return N&&(ft=ft.replace(h,"")),ft=ft.replace(/@\*/g,je).replace(/@\w+/g,Z=>je+"-"+Z.substr(1)).replace(/:animating/g,Be),[ft,N]}(N.selector);Z.currentQuerySelector=Pe.length?Pe+" "+Ct:Ct,m(Z.collectedStyles,Z.currentQuerySelector,{});const Oe=i(this,X(N.animation),Z);return Z.currentQuery=null,Z.currentQuerySelector=Pe,{type:11,selector:Ct,limit:ht.limit||0,optional:!!ht.optional,includeSelf:ee,animation:Oe,originalSelector:N.selector,options:Ge(N.options)}}visitStagger(N,Z){Z.currentQuery||Z.errors.push("stagger() can only be used inside of query()");const Pe="full"===N.timings?{duration:0,delay:0,easing:"full"}:me(N.timings,Z.errors,!0);return{type:12,animation:i(this,X(N.animation),Z),timings:Pe,options:null}}}class Ut{constructor(N){this.errors=N,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Lt(ft){return!Array.isArray(ft)&&"object"==typeof ft}function Ge(ft){return ft?(ft=Ie(ft)).params&&(ft.params=function lt(ft){return ft?Ie(ft):null}(ft.params)):ft={},ft}function U(ft,N,Z){return{duration:ft,delay:N,easing:Z}}function k(ft,N,Z,Pe,ht,Ct,ee=null,Oe=!1){return{type:1,element:ft,keyframes:N,preStyleProps:Z,postStyleProps:Pe,duration:ht,delay:Ct,totalTime:ht+Ct,easing:ee,subTimeline:Oe}}class ie{constructor(){this._map=new Map}get(N){return this._map.get(N)||[]}append(N,Z){let Pe=this._map.get(N);Pe||this._map.set(N,Pe=[]),Pe.push(...Z)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const ct=new RegExp(":enter","g"),xt=new RegExp(":leave","g");function Yt(ft,N,Z,Pe,ht,Ct={},ee={},Oe,he,tt=[]){return(new It).buildKeyframes(ft,N,Z,Pe,ht,Ct,ee,Oe,he,tt)}class It{buildKeyframes(N,Z,Pe,ht,Ct,ee,Oe,he,tt,yt=[]){tt=tt||new ie;const Gt=new Et(N,Z,tt,ht,Ct,yt,[]);Gt.options=he,Gt.currentTimeline.setStyles([ee],null,Gt.errors,he),i(this,Pe,Gt);const Wt=Gt.timelines.filter(ii=>ii.containsAnimation());if(Object.keys(Oe).length){let ii;for(let di=Wt.length-1;di>=0;di--){const ui=Wt[di];if(ui.element===Z){ii=ui;break}}ii&&!ii.allowOnlyTimelineStyles()&&ii.setStyles([Oe],null,Gt.errors,he)}return Wt.length?Wt.map(ii=>ii.buildKeyframes()):[k(Z,[],[],[],0,0,"",!1)]}visitTrigger(N,Z){}visitState(N,Z){}visitTransition(N,Z){}visitAnimateChild(N,Z){const Pe=Z.subInstructions.get(Z.element);if(Pe){const ht=Z.createSubContext(N.options),Ct=Z.currentTimeline.currentTime,ee=this._visitSubInstructions(Pe,ht,ht.options);Ct!=ee&&Z.transformIntoNewTimeline(ee)}Z.previousNode=N}visitAnimateRef(N,Z){const Pe=Z.createSubContext(N.options);Pe.transformIntoNewTimeline(),this.visitReference(N.animation,Pe),Z.transformIntoNewTimeline(Pe.currentTimeline.currentTime),Z.previousNode=N}_visitSubInstructions(N,Z,Pe){let Ct=Z.currentTimeline.currentTime;const ee=null!=Pe.duration?W(Pe.duration):null,Oe=null!=Pe.delay?W(Pe.delay):null;return 0!==ee&&N.forEach(he=>{const tt=Z.appendInstructionToTimeline(he,ee,Oe);Ct=Math.max(Ct,tt.duration+tt.delay)}),Ct}visitReference(N,Z){Z.updateOptions(N.options,!0),i(this,N.animation,Z),Z.previousNode=N}visitSequence(N,Z){const Pe=Z.subContextCount;let ht=Z;const Ct=N.options;if(Ct&&(Ct.params||Ct.delay)&&(ht=Z.createSubContext(Ct),ht.transformIntoNewTimeline(),null!=Ct.delay)){6==ht.previousNode.type&&(ht.currentTimeline.snapshotCurrentStyles(),ht.previousNode=Rt);const ee=W(Ct.delay);ht.delayNextStep(ee)}N.steps.length&&(N.steps.forEach(ee=>i(this,ee,ht)),ht.currentTimeline.applyStylesToKeyframe(),ht.subContextCount>Pe&&ht.transformIntoNewTimeline()),Z.previousNode=N}visitGroup(N,Z){const Pe=[];let ht=Z.currentTimeline.currentTime;const Ct=N.options&&N.options.delay?W(N.options.delay):0;N.steps.forEach(ee=>{const Oe=Z.createSubContext(N.options);Ct&&Oe.delayNextStep(Ct),i(this,ee,Oe),ht=Math.max(ht,Oe.currentTimeline.currentTime),Pe.push(Oe.currentTimeline)}),Pe.forEach(ee=>Z.currentTimeline.mergeTimelineCollectedStyles(ee)),Z.transformIntoNewTimeline(ht),Z.previousNode=N}_visitTiming(N,Z){if(N.dynamic){const Pe=N.strValue;return me(Z.params?H(Pe,Z.params,Z.errors):Pe,Z.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,Z){const Pe=Z.currentAnimateTimings=this._visitTiming(N.timings,Z),ht=Z.currentTimeline;Pe.delay&&(Z.incrementTime(Pe.delay),ht.snapshotCurrentStyles());const Ct=N.style;5==Ct.type?this.visitKeyframes(Ct,Z):(Z.incrementTime(Pe.duration),this.visitStyle(Ct,Z),ht.applyStylesToKeyframe()),Z.currentAnimateTimings=null,Z.previousNode=N}visitStyle(N,Z){const Pe=Z.currentTimeline,ht=Z.currentAnimateTimings;!ht&&Pe.getCurrentStyleProperties().length&&Pe.forwardFrame();const Ct=ht&&ht.easing||N.easing;N.isEmptyStep?Pe.applyEmptyStep(Ct):Pe.setStyles(N.styles,Ct,Z.errors,Z.options),Z.previousNode=N}visitKeyframes(N,Z){const Pe=Z.currentAnimateTimings,ht=Z.currentTimeline.duration,Ct=Pe.duration,Oe=Z.createSubContext().currentTimeline;Oe.easing=Pe.easing,N.styles.forEach(he=>{Oe.forwardTime((he.offset||0)*Ct),Oe.setStyles(he.styles,he.easing,Z.errors,Z.options),Oe.applyStylesToKeyframe()}),Z.currentTimeline.mergeTimelineCollectedStyles(Oe),Z.transformIntoNewTimeline(ht+Ct),Z.previousNode=N}visitQuery(N,Z){const Pe=Z.currentTimeline.currentTime,ht=N.options||{},Ct=ht.delay?W(ht.delay):0;Ct&&(6===Z.previousNode.type||0==Pe&&Z.currentTimeline.getCurrentStyleProperties().length)&&(Z.currentTimeline.snapshotCurrentStyles(),Z.previousNode=Rt);let ee=Pe;const Oe=Z.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!ht.optional,Z.errors);Z.currentQueryTotal=Oe.length;let he=null;Oe.forEach((tt,yt)=>{Z.currentQueryIndex=yt;const Gt=Z.createSubContext(N.options,tt);Ct&&Gt.delayNextStep(Ct),tt===Z.element&&(he=Gt.currentTimeline),i(this,N.animation,Gt),Gt.currentTimeline.applyStylesToKeyframe(),ee=Math.max(ee,Gt.currentTimeline.currentTime)}),Z.currentQueryIndex=0,Z.currentQueryTotal=0,Z.transformIntoNewTimeline(ee),he&&(Z.currentTimeline.mergeTimelineCollectedStyles(he),Z.currentTimeline.snapshotCurrentStyles()),Z.previousNode=N}visitStagger(N,Z){const Pe=Z.parentContext,ht=Z.currentTimeline,Ct=N.timings,ee=Math.abs(Ct.duration),Oe=ee*(Z.currentQueryTotal-1);let he=ee*Z.currentQueryIndex;switch(Ct.duration<0?"reverse":Ct.easing){case"reverse":he=Oe-he;break;case"full":he=Pe.currentStaggerTime}const yt=Z.currentTimeline;he&&yt.delayNextStep(he);const Gt=yt.currentTime;i(this,N.animation,Z),Z.previousNode=N,Pe.currentStaggerTime=ht.currentTime-Gt+(ht.startTime-Pe.currentTimeline.startTime)}}const Rt={};class Et{constructor(N,Z,Pe,ht,Ct,ee,Oe,he){this._driver=N,this.element=Z,this.subInstructions=Pe,this._enterClassName=ht,this._leaveClassName=Ct,this.errors=ee,this.timelines=Oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=he||new Bt(this._driver,Z,0),Oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,Z){if(!N)return;const Pe=N;let ht=this.options;null!=Pe.duration&&(ht.duration=W(Pe.duration)),null!=Pe.delay&&(ht.delay=W(Pe.delay));const Ct=Pe.params;if(Ct){let ee=ht.params;ee||(ee=this.options.params={}),Object.keys(Ct).forEach(Oe=>{(!Z||!ee.hasOwnProperty(Oe))&&(ee[Oe]=H(Ct[Oe],ee,this.errors))})}}_copyOptions(){const N={};if(this.options){const Z=this.options.params;if(Z){const Pe=N.params={};Object.keys(Z).forEach(ht=>{Pe[ht]=Z[ht]})}}return N}createSubContext(N=null,Z,Pe){const ht=Z||this.element,Ct=new Et(this._driver,ht,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ht,Pe||0));return Ct.previousNode=this.previousNode,Ct.currentAnimateTimings=this.currentAnimateTimings,Ct.options=this._copyOptions(),Ct.updateOptions(N),Ct.currentQueryIndex=this.currentQueryIndex,Ct.currentQueryTotal=this.currentQueryTotal,Ct.parentContext=this,this.subContextCount++,Ct}transformIntoNewTimeline(N){return this.previousNode=Rt,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,Z,Pe){const ht={duration:null!=Z?Z:N.duration,delay:this.currentTimeline.currentTime+(null!=Pe?Pe:0)+N.delay,easing:""},Ct=new Jt(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,ht,N.stretchStartingKeyframe);return this.timelines.push(Ct),ht}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,Z,Pe,ht,Ct,ee){let Oe=[];if(ht&&Oe.push(this.element),N.length>0){N=(N=N.replace(ct,"."+this._enterClassName)).replace(xt,"."+this._leaveClassName);let tt=this._driver.query(this.element,N,1!=Pe);0!==Pe&&(tt=Pe<0?tt.slice(tt.length+Pe,tt.length):tt.slice(0,Pe)),Oe.push(...tt)}return!Ct&&0==Oe.length&&ee.push(`\`query("${Z}")\` returned zero elements. (Use \`query("${Z}", { optional: true })\` if you wish to allow this.)`),Oe}}class Bt{constructor(N,Z,Pe,ht){this._driver=N,this.element=Z,this.startTime=Pe,this._elementTimelineStylesLookup=ht,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(Z),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(Z,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(N){const Z=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||Z?(this.forwardTime(this.currentTime+N),Z&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,Z){return this.applyStylesToKeyframe(),new Bt(this._driver,N,Z||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,Z){this._localTimelineStyles[N]=Z,this._globalTimelineStyles[N]=Z,this._styleSummary[N]={time:this.currentTime,value:Z}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&(this._previousKeyframe.easing=N),Object.keys(this._globalTimelineStyles).forEach(Z=>{this._backFill[Z]=this._globalTimelineStyles[Z]||_.l3,this._currentKeyframe[Z]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,Z,Pe,ht){Z&&(this._previousKeyframe.easing=Z);const Ct=ht&&ht.params||{},ee=function mi(ft,N){const Z={};let Pe;return ft.forEach(ht=>{"*"===ht?(Pe=Pe||Object.keys(N),Pe.forEach(Ct=>{Z[Ct]=_.l3})):Se(ht,!1,Z)}),Z}(N,this._globalTimelineStyles);Object.keys(ee).forEach(Oe=>{const he=H(ee[Oe],Ct,Pe);this._pendingStyles[Oe]=he,this._localTimelineStyles.hasOwnProperty(Oe)||(this._backFill[Oe]=this._globalTimelineStyles.hasOwnProperty(Oe)?this._globalTimelineStyles[Oe]:_.l3),this._updateStyle(Oe,he)})}applyStylesToKeyframe(){const N=this._pendingStyles,Z=Object.keys(N);0!=Z.length&&(this._pendingStyles={},Z.forEach(Pe=>{this._currentKeyframe[Pe]=N[Pe]}),Object.keys(this._localTimelineStyles).forEach(Pe=>{this._currentKeyframe.hasOwnProperty(Pe)||(this._currentKeyframe[Pe]=this._localTimelineStyles[Pe])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(N=>{const Z=this._localTimelineStyles[N];this._pendingStyles[N]=Z,this._updateStyle(N,Z)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let Z in this._currentKeyframe)N.push(Z);return N}mergeTimelineCollectedStyles(N){Object.keys(N._styleSummary).forEach(Z=>{const Pe=this._styleSummary[Z],ht=N._styleSummary[Z];(!Pe||ht.time>Pe.time)&&this._updateStyle(Z,ht.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,Z=new Set,Pe=1===this._keyframes.size&&0===this.duration;let ht=[];this._keyframes.forEach((Oe,he)=>{const tt=Se(Oe,!0);Object.keys(tt).forEach(yt=>{const Gt=tt[yt];Gt==_.k1?N.add(yt):Gt==_.l3&&Z.add(yt)}),Pe||(tt.offset=he/this.duration),ht.push(tt)});const Ct=N.size?V(N.values()):[],ee=Z.size?V(Z.values()):[];if(Pe){const Oe=ht[0],he=Ie(Oe);Oe.offset=0,he.offset=1,ht=[Oe,he]}return k(this.element,ht,Ct,ee,this.duration,this.startTime,this.easing,!1)}}class Jt extends Bt{constructor(N,Z,Pe,ht,Ct,ee,Oe=!1){super(N,Z,ee.delay),this.keyframes=Pe,this.preStyleProps=ht,this.postStyleProps=Ct,this._stretchStartingKeyframe=Oe,this.timings={duration:ee.duration,delay:ee.delay,easing:ee.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:Z,duration:Pe,easing:ht}=this.timings;if(this._stretchStartingKeyframe&&Z){const Ct=[],ee=Pe+Z,Oe=Z/ee,he=Se(N[0],!1);he.offset=0,Ct.push(he);const tt=Se(N[0],!1);tt.offset=ai(Oe),Ct.push(tt);const yt=N.length-1;for(let Gt=1;Gt<=yt;Gt++){let Wt=Se(N[Gt],!1);Wt.offset=ai((Z+Wt.offset*Pe)/ee),Ct.push(Wt)}Pe=ee,Z=0,ht="",N=Ct}return k(this.element,N,this.preStyleProps,this.postStyleProps,Pe,Z,ht,!0)}}function ai(ft,N=3){const Z=Math.pow(10,N-1);return Math.round(ft*Z)/Z}class yi{}class gn extends yi{normalizePropertyName(N,Z){return Qe(N)}normalizeStyleValue(N,Z,Pe,ht){let Ct="";const ee=Pe.toString().trim();if(cn[Z]&&0!==Pe&&"0"!==Pe)if("number"==typeof Pe)Ct="px";else{const Oe=Pe.match(/^[+-]?[\d\.]+([a-z]*)$/);Oe&&0==Oe[1].length&&ht.push(`Please provide a CSS unit value for ${N}:${Pe}`)}return ee+Ct}}const cn=(()=>function Ki(ft){const N={};return ft.forEach(Z=>N[Z]=!0),N}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Tn(ft,N,Z,Pe,ht,Ct,ee,Oe,he,tt,yt,Gt,Wt){return{type:0,element:ft,triggerName:N,isRemovalTransition:ht,fromState:Z,fromStyles:Ct,toState:Pe,toStyles:ee,timelines:Oe,queriedElements:he,preStyleProps:tt,postStyleProps:yt,totalTime:Gt,errors:Wt}}const rn={};class st{constructor(N,Z,Pe){this._triggerName=N,this.ast=Z,this._stateStyles=Pe}match(N,Z,Pe,ht){return function St(ft,N,Z,Pe,ht){return ft.some(Ct=>Ct(N,Z,Pe,ht))}(this.ast.matchers,N,Z,Pe,ht)}buildStyles(N,Z,Pe){const ht=this._stateStyles["*"],Ct=this._stateStyles[N],ee=ht?ht.buildStyles(Z,Pe):{};return Ct?Ct.buildStyles(Z,Pe):ee}build(N,Z,Pe,ht,Ct,ee,Oe,he,tt,yt){const Gt=[],Wt=this.ast.options&&this.ast.options.params||rn,di=this.buildStyles(Pe,Oe&&Oe.params||rn,Gt),ui=he&&he.params||rn,_i=this.buildStyles(ht,ui,Gt),Ti=new Set,Hi=new Map,Ne=new Map,De="void"===ht,we={params:Object.assign(Object.assign({},Wt),ui)},ut=yt?[]:Yt(N,Z,this.ast.animation,Ct,ee,di,_i,we,tt,Gt);let Zt=0;if(ut.forEach(ji=>{Zt=Math.max(ji.duration+ji.delay,Zt)}),Gt.length)return Tn(Z,this._triggerName,Pe,ht,De,di,_i,[],[],Hi,Ne,Zt,Gt);ut.forEach(ji=>{const tn=ji.element,Kn=m(Hi,tn,{});ji.preStyleProps.forEach(pr=>Kn[pr]=!0);const Wn=m(Ne,tn,{});ji.postStyleProps.forEach(pr=>Wn[pr]=!0),tn!==Z&&Ti.add(tn)});const hi=V(Ti.values());return Tn(Z,this._triggerName,Pe,ht,De,di,_i,ut,hi,Hi,Ne,Zt)}}class ot{constructor(N,Z,Pe){this.styles=N,this.defaultParams=Z,this.normalizer=Pe}buildStyles(N,Z){const Pe={},ht=Ie(this.defaultParams);return Object.keys(N).forEach(Ct=>{const ee=N[Ct];null!=ee&&(ht[Ct]=ee)}),this.styles.styles.forEach(Ct=>{if("string"!=typeof Ct){const ee=Ct;Object.keys(ee).forEach(Oe=>{let he=ee[Oe];he.length>1&&(he=H(he,ht,Z));const tt=this.normalizer.normalizePropertyName(Oe,Z);he=this.normalizer.normalizeStyleValue(Oe,tt,he,Z),Pe[tt]=he})}}),Pe}}class vt{constructor(N,Z,Pe){this.name=N,this.ast=Z,this._normalizer=Pe,this.transitionFactories=[],this.states={},Z.states.forEach(ht=>{this.states[ht.name]=new ot(ht.style,ht.options&&ht.options.params||{},Pe)}),Ye(this.states,"true","1"),Ye(this.states,"false","0"),Z.transitions.forEach(ht=>{this.transitionFactories.push(new st(N,ht,this.states))}),this.fallbackTransition=function F(ft,N,Z){return new st(ft,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ee,Oe)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,Z,Pe,ht){return this.transitionFactories.find(ee=>ee.match(N,Z,Pe,ht))||null}matchStyles(N,Z,Pe){return this.fallbackTransition.buildStyles(N,Z,Pe)}}function Ye(ft,N,Z){ft.hasOwnProperty(N)?ft.hasOwnProperty(Z)||(ft[Z]=ft[N]):ft.hasOwnProperty(Z)&&(ft[N]=ft[Z])}const gt=new ie;class Dt{constructor(N,Z,Pe){this.bodyNode=N,this._driver=Z,this._normalizer=Pe,this._animations={},this._playersById={},this.players=[]}register(N,Z){const Pe=[],ht=x(this._driver,Z,Pe);if(Pe.length)throw new Error(`Unable to build the animation due to the following errors: ${Pe.join("\n")}`);this._animations[N]=ht}_buildPlayer(N,Z,Pe){const ht=N.element,Ct=E(0,this._normalizer,0,N.keyframes,Z,Pe);return this._driver.animate(ht,Ct,N.duration,N.delay,N.easing,[],!0)}create(N,Z,Pe={}){const ht=[],Ct=this._animations[N];let ee;const Oe=new Map;if(Ct?(ee=Yt(this._driver,Z,Ct,Ue,ze,{},{},Pe,gt,ht),ee.forEach(yt=>{const Gt=m(Oe,yt.element,{});yt.postStyleProps.forEach(Wt=>Gt[Wt]=null)})):(ht.push("The requested animation doesn't exist or has already been destroyed"),ee=[]),ht.length)throw new Error(`Unable to create the animation due to the following errors: ${ht.join("\n")}`);Oe.forEach((yt,Gt)=>{Object.keys(yt).forEach(Wt=>{yt[Wt]=this._driver.computeStyle(Gt,Wt,_.l3)})});const tt=A(ee.map(yt=>{const Gt=Oe.get(yt.element);return this._buildPlayer(yt,{},Gt)}));return this._playersById[N]=tt,tt.onDestroy(()=>this.destroy(N)),this.players.push(tt),tt}destroy(N){const Z=this._getPlayer(N);Z.destroy(),delete this._playersById[N];const Pe=this.players.indexOf(Z);Pe>=0&&this.players.splice(Pe,1)}_getPlayer(N){const Z=this._playersById[N];if(!Z)throw new Error(`Unable to find the timeline player referenced by ${N}`);return Z}listen(N,Z,Pe,ht){const Ct=P(Z,"","","");return C(this._getPlayer(N),Pe,Ct,ht),()=>{}}command(N,Z,Pe,ht){if("register"==Pe)return void this.register(N,ht[0]);if("create"==Pe)return void this.create(N,Z,ht[0]||{});const Ct=this._getPlayer(N);switch(Pe){case"play":Ct.play();break;case"pause":Ct.pause();break;case"reset":Ct.reset();break;case"restart":Ct.restart();break;case"finish":Ct.finish();break;case"init":Ct.init();break;case"setPosition":Ct.setPosition(parseFloat(ht[0]));break;case"destroy":this.destroy(N)}}}const ri="ng-animate-queued",Di="ng-animate-disabled",Fi=[],Ji={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_n={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ni="__ng_removed";class Ri{constructor(N,Z=""){this.namespaceId=Z;const Pe=N&&N.hasOwnProperty("value");if(this.value=function xn(ft){return null!=ft?ft:null}(Pe?N.value:N),Pe){const Ct=Ie(N);delete Ct.value,this.options=Ct}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(N){const Z=N.params;if(Z){const Pe=this.options.params;Object.keys(Z).forEach(ht=>{null==Pe[ht]&&(Pe[ht]=Z[ht])})}}}const sn="void",Xi=new Ri(sn);class en{constructor(N,Z,Pe){this.id=N,this.hostElement=Z,this._engine=Pe,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+N,rt(Z,this._hostClassName)}listen(N,Z,Pe,ht){if(!this._triggers.hasOwnProperty(Z))throw new Error(`Unable to listen on the animation trigger event "${Pe}" because the animation trigger "${Z}" doesn't exist!`);if(null==Pe||0==Pe.length)throw new Error(`Unable to listen on the animation trigger "${Z}" because the provided event is undefined!`);if(!function kn(ft){return"start"==ft||"done"==ft}(Pe))throw new Error(`The provided animation trigger event "${Pe}" for the animation trigger "${Z}" is not supported!`);const Ct=m(this._elementListeners,N,[]),ee={name:Z,phase:Pe,callback:ht};Ct.push(ee);const Oe=m(this._engine.statesByElement,N,{});return Oe.hasOwnProperty(Z)||(rt(N,le),rt(N,le+"-"+Z),Oe[Z]=Xi),()=>{this._engine.afterFlush(()=>{const he=Ct.indexOf(ee);he>=0&&Ct.splice(he,1),this._triggers[Z]||delete Oe[Z]})}}register(N,Z){return!this._triggers[N]&&(this._triggers[N]=Z,!0)}_getTrigger(N){const Z=this._triggers[N];if(!Z)throw new Error(`The provided animation trigger "${N}" has not been registered!`);return Z}trigger(N,Z,Pe,ht=!0){const Ct=this._getTrigger(Z),ee=new dn(this.id,Z,N);let Oe=this._engine.statesByElement.get(N);Oe||(rt(N,le),rt(N,le+"-"+Z),this._engine.statesByElement.set(N,Oe={}));let he=Oe[Z];const tt=new Ri(Pe,this.id);if(!(Pe&&Pe.hasOwnProperty("value"))&&he&&tt.absorbOptions(he.options),Oe[Z]=tt,he||(he=Xi),tt.value!==sn&&he.value===tt.value){if(!function Tt(ft,N){const Z=Object.keys(ft),Pe=Object.keys(N);if(Z.length!=Pe.length)return!1;for(let ht=0;ht{Ve(N,_i),nt(N,Ti)})}return}const Wt=m(this._engine.playersByElement,N,[]);Wt.forEach(ui=>{ui.namespaceId==this.id&&ui.triggerName==Z&&ui.queued&&ui.destroy()});let ii=Ct.matchTransition(he.value,tt.value,N,tt.params),di=!1;if(!ii){if(!ht)return;ii=Ct.fallbackTransition,di=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:Z,transition:ii,fromState:he,toState:tt,player:ee,isFallbackTransition:di}),di||(rt(N,ri),ee.onStart(()=>{kt(N,ri)})),ee.onDone(()=>{let ui=this.players.indexOf(ee);ui>=0&&this.players.splice(ui,1);const _i=this._engine.playersByElement.get(N);if(_i){let Ti=_i.indexOf(ee);Ti>=0&&_i.splice(Ti,1)}}),this.players.push(ee),Wt.push(ee),ee}deregister(N){delete this._triggers[N],this._engine.statesByElement.forEach((Z,Pe)=>{delete Z[N]}),this._elementListeners.forEach((Z,Pe)=>{this._elementListeners.set(Pe,Z.filter(ht=>ht.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const Z=this._engine.playersByElement.get(N);Z&&(Z.forEach(Pe=>Pe.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,Z){const Pe=this._engine.driver.query(N,je,!0);Pe.forEach(ht=>{if(ht[Ni])return;const Ct=this._engine.fetchNamespacesByElement(ht);Ct.size?Ct.forEach(ee=>ee.triggerLeaveAnimation(ht,Z,!1,!0)):this.clearElementCache(ht)}),this._engine.afterFlushAnimationsDone(()=>Pe.forEach(ht=>this.clearElementCache(ht)))}triggerLeaveAnimation(N,Z,Pe,ht){const Ct=this._engine.statesByElement.get(N),ee=new Map;if(Ct){const Oe=[];if(Object.keys(Ct).forEach(he=>{if(ee.set(he,Ct[he].value),this._triggers[he]){const tt=this.trigger(N,he,sn,ht);tt&&Oe.push(tt)}}),Oe.length)return this._engine.markElementAsRemoved(this.id,N,!0,Z,ee),Pe&&A(Oe).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const Z=this._elementListeners.get(N),Pe=this._engine.statesByElement.get(N);if(Z&&Pe){const ht=new Set;Z.forEach(Ct=>{const ee=Ct.name;if(ht.has(ee))return;ht.add(ee);const he=this._triggers[ee].fallbackTransition,tt=Pe[ee]||Xi,yt=new Ri(sn),Gt=new dn(this.id,ee,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:ee,transition:he,fromState:tt,toState:yt,player:Gt,isFallbackTransition:!0})})}}removeNode(N,Z){const Pe=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,Z),this.triggerLeaveAnimation(N,Z,!0))return;let ht=!1;if(Pe.totalAnimations){const Ct=Pe.players.length?Pe.playersByQueriedElement.get(N):[];if(Ct&&Ct.length)ht=!0;else{let ee=N;for(;ee=ee.parentNode;)if(Pe.statesByElement.get(ee)){ht=!0;break}}}if(this.prepareLeaveAnimationListeners(N),ht)Pe.markElementAsRemoved(this.id,N,!1,Z);else{const Ct=N[Ni];(!Ct||Ct===Ji)&&(Pe.afterFlush(()=>this.clearElementCache(N)),Pe.destroyInnerAnimations(N),Pe._onRemovalComplete(N,Z))}}insertNode(N,Z){rt(N,this._hostClassName)}drainQueuedTransitions(N){const Z=[];return this._queue.forEach(Pe=>{const ht=Pe.player;if(ht.destroyed)return;const Ct=Pe.element,ee=this._elementListeners.get(Ct);ee&&ee.forEach(Oe=>{if(Oe.name==Pe.triggerName){const he=P(Ct,Pe.triggerName,Pe.fromState.value,Pe.toState.value);he._data=N,C(Pe.player,Oe.phase,he,Oe.callback)}}),ht.markedForDestroy?this._engine.afterFlush(()=>{ht.destroy()}):Z.push(Pe)}),this._queue=[],Z.sort((Pe,ht)=>{const Ct=Pe.transition.ast.depCount,ee=ht.transition.ast.depCount;return 0==Ct||0==ee?Ct-ee:this._engine.driver.containsElement(Pe.element,ht.element)?1:-1})}destroy(N){this.players.forEach(Z=>Z.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}elementContainsData(N){let Z=!1;return this._elementListeners.has(N)&&(Z=!0),Z=!!this._queue.find(Pe=>Pe.element===N)||Z,Z}}class an{constructor(N,Z,Pe){this.bodyNode=N,this.driver=Z,this._normalizer=Pe,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=(ht,Ct)=>{}}_onRemovalComplete(N,Z){this.onRemovalComplete(N,Z)}get queuedPlayers(){const N=[];return this._namespaceList.forEach(Z=>{Z.players.forEach(Pe=>{Pe.queued&&N.push(Pe)})}),N}createNamespace(N,Z){const Pe=new en(N,Z,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,Z)?this._balanceNamespaceList(Pe,Z):(this.newHostElements.set(Z,Pe),this.collectEnterElement(Z)),this._namespaceLookup[N]=Pe}_balanceNamespaceList(N,Z){const Pe=this._namespaceList.length-1;if(Pe>=0){let ht=!1;for(let Ct=Pe;Ct>=0;Ct--)if(this.driver.containsElement(this._namespaceList[Ct].hostElement,Z)){this._namespaceList.splice(Ct+1,0,N),ht=!0;break}ht||this._namespaceList.splice(0,0,N)}else this._namespaceList.push(N);return this.namespacesByHostElement.set(Z,N),N}register(N,Z){let Pe=this._namespaceLookup[N];return Pe||(Pe=this.createNamespace(N,Z)),Pe}registerTrigger(N,Z,Pe){let ht=this._namespaceLookup[N];ht&&ht.register(Z,Pe)&&this.totalAnimations++}destroy(N,Z){if(!N)return;const Pe=this._fetchNamespace(N);this.afterFlush(()=>{this.namespacesByHostElement.delete(Pe.hostElement),delete this._namespaceLookup[N];const ht=this._namespaceList.indexOf(Pe);ht>=0&&this._namespaceList.splice(ht,1)}),this.afterFlushAnimationsDone(()=>Pe.destroy(Z))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const Z=new Set,Pe=this.statesByElement.get(N);if(Pe){const ht=Object.keys(Pe);for(let Ct=0;Ct=0&&this.collectedLeaveElements.splice(ee,1)}if(N){const ee=this._fetchNamespace(N);ee&&ee.insertNode(Z,Pe)}ht&&this.collectEnterElement(Z)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,Z){Z?this.disabledNodes.has(N)||(this.disabledNodes.add(N),rt(N,Di)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),kt(N,Di))}removeNode(N,Z,Pe,ht){if(Oi(Z)){const Ct=N?this._fetchNamespace(N):null;if(Ct?Ct.removeNode(Z,ht):this.markElementAsRemoved(N,Z,!1,ht),Pe){const ee=this.namespacesByHostElement.get(Z);ee&&ee.id!==N&&ee.removeNode(Z,ht)}}else this._onRemovalComplete(Z,ht)}markElementAsRemoved(N,Z,Pe,ht,Ct){this.collectedLeaveElements.push(Z),Z[Ni]={namespaceId:N,setForRemoval:ht,hasAnimation:Pe,removedBeforeQueried:!1,previousTriggersValues:Ct}}listen(N,Z,Pe,ht,Ct){return Oi(Z)?this._fetchNamespace(N).listen(Z,Pe,ht,Ct):()=>{}}_buildInstruction(N,Z,Pe,ht,Ct){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,Pe,ht,N.fromState.options,N.toState.options,Z,Ct)}destroyInnerAnimations(N){let Z=this.driver.query(N,je,!0);Z.forEach(Pe=>this.destroyActiveAnimationsForElement(Pe)),0!=this.playersByQueriedElement.size&&(Z=this.driver.query(N,Be,!0),Z.forEach(Pe=>this.finishActiveQueriedAnimationOnElement(Pe)))}destroyActiveAnimationsForElement(N){const Z=this.playersByElement.get(N);Z&&Z.forEach(Pe=>{Pe.queued?Pe.markedForDestroy=!0:Pe.destroy()})}finishActiveQueriedAnimationOnElement(N){const Z=this.playersByQueriedElement.get(N);Z&&Z.forEach(Pe=>Pe.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return A(this.players).onDone(()=>N());N()})}processLeaveNode(N){var Z;const Pe=N[Ni];if(Pe&&Pe.setForRemoval){if(N[Ni]=Ji,Pe.namespaceId){this.destroyInnerAnimations(N);const ht=this._fetchNamespace(Pe.namespaceId);ht&&ht.clearElementCache(N)}this._onRemovalComplete(N,Pe.setForRemoval)}(null===(Z=N.classList)||void 0===Z?void 0:Z.contains(Di))&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(ht=>{this.markElementAsDisabled(ht,!1)})}flush(N=-1){let Z=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Pe,ht)=>this._balanceNamespaceList(Pe,ht)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Pe=0;PePe()),this._flushFns=[],this._whenQuietFns.length){const Pe=this._whenQuietFns;this._whenQuietFns=[],Z.length?A(Z).onDone(()=>{Pe.forEach(ht=>ht())}):Pe.forEach(ht=>ht())}}reportError(N){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${N.join("\n")}`)}_flushAnimations(N,Z){const Pe=new ie,ht=[],Ct=new Map,ee=[],Oe=new Map,he=new Map,tt=new Map,yt=new Set;this.disabledNodes.forEach(si=>{yt.add(si);const Ei=this.driver.query(si,".ng-animate-queued",!0);for(let gi=0;gi{const gi=Ue+ui++;di.set(Ei,gi),si.forEach(Vi=>rt(Vi,gi))});const _i=[],Ti=new Set,Hi=new Set;for(let si=0;siTi.add(Vi)):Hi.add(Ei))}const Ne=new Map,De=Qt(Wt,Array.from(Ti));De.forEach((si,Ei)=>{const gi=ze+ui++;Ne.set(Ei,gi),si.forEach(Vi=>rt(Vi,gi))}),N.push(()=>{ii.forEach((si,Ei)=>{const gi=di.get(Ei);si.forEach(Vi=>kt(Vi,gi))}),De.forEach((si,Ei)=>{const gi=Ne.get(Ei);si.forEach(Vi=>kt(Vi,gi))}),_i.forEach(si=>{this.processLeaveNode(si)})});const we=[],ut=[];for(let si=this._namespaceList.length-1;si>=0;si--)this._namespaceList[si].drainQueuedTransitions(Z).forEach(gi=>{const Vi=gi.player,pn=gi.element;if(we.push(Vi),this.collectedEnterElements.length){const bn=pn[Ni];if(bn&&bn.setForMove){if(bn.previousTriggersValues&&bn.previousTriggersValues.has(gi.triggerName)){const mn=bn.previousTriggersValues.get(gi.triggerName),Sn=this.statesByElement.get(gi.element);Sn&&Sn[gi.triggerName]&&(Sn[gi.triggerName].value=mn)}return void Vi.destroy()}}const vn=!Gt||!this.driver.containsElement(Gt,pn),Pn=Ne.get(pn),Yn=di.get(pn),fn=this._buildInstruction(gi,Pe,Yn,Pn,vn);if(fn.errors&&fn.errors.length)return void ut.push(fn);if(vn)return Vi.onStart(()=>Ve(pn,fn.fromStyles)),Vi.onDestroy(()=>nt(pn,fn.toStyles)),void ht.push(Vi);if(gi.isFallbackTransition)return Vi.onStart(()=>Ve(pn,fn.fromStyles)),Vi.onDestroy(()=>nt(pn,fn.toStyles)),void ht.push(Vi);const $r=[];fn.timelines.forEach(bn=>{bn.stretchStartingKeyframe=!0,this.disabledNodes.has(bn.element)||$r.push(bn)}),fn.timelines=$r,Pe.append(pn,fn.timelines),ee.push({instruction:fn,player:Vi,element:pn}),fn.queriedElements.forEach(bn=>m(Oe,bn,[]).push(Vi)),fn.preStyleProps.forEach((bn,mn)=>{const Sn=Object.keys(bn);if(Sn.length){let Xn=he.get(mn);Xn||he.set(mn,Xn=new Set),Sn.forEach(er=>Xn.add(er))}}),fn.postStyleProps.forEach((bn,mn)=>{const Sn=Object.keys(bn);let Xn=tt.get(mn);Xn||tt.set(mn,Xn=new Set),Sn.forEach(er=>Xn.add(er))})});if(ut.length){const si=[];ut.forEach(Ei=>{si.push(`@${Ei.triggerName} has failed due to:\n`),Ei.errors.forEach(gi=>si.push(`- ${gi}\n`))}),we.forEach(Ei=>Ei.destroy()),this.reportError(si)}const Zt=new Map,hi=new Map;ee.forEach(si=>{const Ei=si.element;Pe.has(Ei)&&(hi.set(Ei,Ei),this._beforeAnimationBuild(si.player.namespaceId,si.instruction,Zt))}),ht.forEach(si=>{const Ei=si.element;this._getPreviousPlayers(Ei,!1,si.namespaceId,si.triggerName,null).forEach(Vi=>{m(Zt,Ei,[]).push(Vi),Vi.destroy()})});const ji=_i.filter(si=>jt(si,he,tt)),tn=new Map;Mt(tn,this.driver,Hi,tt,_.l3).forEach(si=>{jt(si,he,tt)&&ji.push(si)});const Wn=new Map;ii.forEach((si,Ei)=>{Mt(Wn,this.driver,new Set(si),he,_.k1)}),ji.forEach(si=>{const Ei=tn.get(si),gi=Wn.get(si);tn.set(si,Object.assign(Object.assign({},Ei),gi))});const pr=[],Qr=[],Xt={};ee.forEach(si=>{const{element:Ei,player:gi,instruction:Vi}=si;if(Pe.has(Ei)){if(yt.has(Ei))return gi.onDestroy(()=>nt(Ei,Vi.toStyles)),gi.disabled=!0,gi.overrideTotalTime(Vi.totalTime),void ht.push(gi);let pn=Xt;if(hi.size>1){let Pn=Ei;const Yn=[];for(;Pn=Pn.parentNode;){const fn=hi.get(Pn);if(fn){pn=fn;break}Yn.push(Pn)}Yn.forEach(fn=>hi.set(fn,pn))}const vn=this._buildAnimation(gi.namespaceId,Vi,Zt,Ct,Wn,tn);if(gi.setRealPlayer(vn),pn===Xt)pr.push(gi);else{const Pn=this.playersByElement.get(pn);Pn&&Pn.length&&(gi.parentPlayer=A(Pn)),ht.push(gi)}}else Ve(Ei,Vi.fromStyles),gi.onDestroy(()=>nt(Ei,Vi.toStyles)),Qr.push(gi),yt.has(Ei)&&ht.push(gi)}),Qr.forEach(si=>{const Ei=Ct.get(si.element);if(Ei&&Ei.length){const gi=A(Ei);si.setRealPlayer(gi)}}),ht.forEach(si=>{si.parentPlayer?si.syncPlayerEvents(si.parentPlayer):si.destroy()});for(let si=0;si<_i.length;si++){const Ei=_i[si],gi=Ei[Ni];if(kt(Ei,ze),gi&&gi.hasAnimation)continue;let Vi=[];if(Oe.size){let vn=Oe.get(Ei);vn&&vn.length&&Vi.push(...vn);let Pn=this.driver.query(Ei,Be,!0);for(let Yn=0;Yn!vn.destroyed);pn.length?Ze(this,Ei,pn):this.processLeaveNode(Ei)}return _i.length=0,pr.forEach(si=>{this.players.push(si),si.onDone(()=>{si.destroy();const Ei=this.players.indexOf(si);this.players.splice(Ei,1)}),si.play()}),pr}elementContainsData(N,Z){let Pe=!1;const ht=Z[Ni];return ht&&ht.setForRemoval&&(Pe=!0),this.playersByElement.has(Z)&&(Pe=!0),this.playersByQueriedElement.has(Z)&&(Pe=!0),this.statesByElement.has(Z)&&(Pe=!0),this._fetchNamespace(N).elementContainsData(Z)||Pe}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,Z,Pe,ht,Ct){let ee=[];if(Z){const Oe=this.playersByQueriedElement.get(N);Oe&&(ee=Oe)}else{const Oe=this.playersByElement.get(N);if(Oe){const he=!Ct||Ct==sn;Oe.forEach(tt=>{tt.queued||!he&&tt.triggerName!=ht||ee.push(tt)})}}return(Pe||ht)&&(ee=ee.filter(Oe=>!(Pe&&Pe!=Oe.namespaceId||ht&&ht!=Oe.triggerName))),ee}_beforeAnimationBuild(N,Z,Pe){const Ct=Z.element,ee=Z.isRemovalTransition?void 0:N,Oe=Z.isRemovalTransition?void 0:Z.triggerName;for(const he of Z.timelines){const tt=he.element,yt=tt!==Ct,Gt=m(Pe,tt,[]);this._getPreviousPlayers(tt,yt,ee,Oe,Z.toState).forEach(ii=>{const di=ii.getRealPlayer();di.beforeDestroy&&di.beforeDestroy(),ii.destroy(),Gt.push(ii)})}Ve(Ct,Z.fromStyles)}_buildAnimation(N,Z,Pe,ht,Ct,ee){const Oe=Z.triggerName,he=Z.element,tt=[],yt=new Set,Gt=new Set,Wt=Z.timelines.map(di=>{const ui=di.element;yt.add(ui);const _i=ui[Ni];if(_i&&_i.removedBeforeQueried)return new _.ZN(di.duration,di.delay);const Ti=ui!==he,Hi=function Ot(ft){const N=[];return qe(ft,N),N}((Pe.get(ui)||Fi).map(Zt=>Zt.getRealPlayer())).filter(Zt=>!!Zt.element&&Zt.element===ui),Ne=Ct.get(ui),De=ee.get(ui),we=E(0,this._normalizer,0,di.keyframes,Ne,De),ut=this._buildPlayer(di,we,Hi);if(di.subTimeline&&ht&&Gt.add(ui),Ti){const Zt=new dn(N,Oe,ui);Zt.setRealPlayer(ut),tt.push(Zt)}return ut});tt.forEach(di=>{m(this.playersByQueriedElement,di.element,[]).push(di),di.onDone(()=>function wn(ft,N,Z){let Pe;if(ft instanceof Map){if(Pe=ft.get(N),Pe){if(Pe.length){const ht=Pe.indexOf(Z);Pe.splice(ht,1)}0==Pe.length&&ft.delete(N)}}else if(Pe=ft[N],Pe){if(Pe.length){const ht=Pe.indexOf(Z);Pe.splice(ht,1)}0==Pe.length&&delete ft[N]}return Pe}(this.playersByQueriedElement,di.element,di))}),yt.forEach(di=>rt(di,ye));const ii=A(Wt);return ii.onDestroy(()=>{yt.forEach(di=>kt(di,ye)),nt(he,Z.toStyles)}),Gt.forEach(di=>{m(ht,di,[]).push(ii)}),ii}_buildPlayer(N,Z,Pe){return Z.length>0?this.driver.animate(N.element,Z,N.duration,N.delay,N.easing,Pe):new _.ZN(N.duration,N.delay)}}class dn{constructor(N,Z,Pe){this.namespaceId=N,this.triggerName=Z,this.element=Pe,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(N){this._containsRealPlayer||(this._player=N,Object.keys(this._queuedCallbacks).forEach(Z=>{this._queuedCallbacks[Z].forEach(Pe=>C(N,Z,void 0,Pe))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const Z=this._player;Z.triggerCallback&&N.onStart(()=>Z.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,Z){m(this._queuedCallbacks,N,[]).push(Z)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}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(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const Z=this._player;Z.triggerCallback&&Z.triggerCallback(N)}}function Oi(ft){return ft&&1===ft.nodeType}function Nn(ft,N){const Z=ft.style.display;return ft.style.display=null!=N?N:"none",Z}function Mt(ft,N,Z,Pe,ht){const Ct=[];Z.forEach(he=>Ct.push(Nn(he)));const ee=[];Pe.forEach((he,tt)=>{const yt={};he.forEach(Gt=>{const Wt=yt[Gt]=N.computeStyle(tt,Gt,ht);(!Wt||0==Wt.length)&&(tt[Ni]=_n,ee.push(tt))}),ft.set(tt,yt)});let Oe=0;return Z.forEach(he=>Nn(he,Ct[Oe++])),ee}function Qt(ft,N){const Z=new Map;if(ft.forEach(Oe=>Z.set(Oe,[])),0==N.length)return Z;const ht=new Set(N),Ct=new Map;function ee(Oe){if(!Oe)return 1;let he=Ct.get(Oe);if(he)return he;const tt=Oe.parentNode;return he=Z.has(tt)?tt:ht.has(tt)?1:ee(tt),Ct.set(Oe,he),he}return N.forEach(Oe=>{const he=ee(Oe);1!==he&&Z.get(he).push(Oe)}),Z}function rt(ft,N){var Z;null===(Z=ft.classList)||void 0===Z||Z.add(N)}function kt(ft,N){var Z;null===(Z=ft.classList)||void 0===Z||Z.remove(N)}function Ze(ft,N,Z){A(Z).onDone(()=>ft.processLeaveNode(N))}function qe(ft,N){for(let Z=0;Zht.add(Ct)):N.set(ft,Pe),Z.delete(ft),!0}class ci{constructor(N,Z,Pe){this.bodyNode=N,this._driver=Z,this._normalizer=Pe,this._triggerCache={},this.onRemovalComplete=(ht,Ct)=>{},this._transitionEngine=new an(N,Z,Pe),this._timelineEngine=new Dt(N,Z,Pe),this._transitionEngine.onRemovalComplete=(ht,Ct)=>this.onRemovalComplete(ht,Ct)}registerTrigger(N,Z,Pe,ht,Ct){const ee=N+"-"+ht;let Oe=this._triggerCache[ee];if(!Oe){const he=[],tt=x(this._driver,Ct,he);if(he.length)throw new Error(`The animation trigger "${ht}" has failed to build due to the following errors:\n - ${he.join("\n - ")}`);Oe=function Ke(ft,N,Z){return new vt(ft,N,Z)}(ht,tt,this._normalizer),this._triggerCache[ee]=Oe}this._transitionEngine.registerTrigger(Z,ht,Oe)}register(N,Z){this._transitionEngine.register(N,Z)}destroy(N,Z){this._transitionEngine.destroy(N,Z)}onInsert(N,Z,Pe,ht){this._transitionEngine.insertNode(N,Z,Pe,ht)}onRemove(N,Z,Pe,ht){this._transitionEngine.removeNode(N,Z,ht||!1,Pe)}disableAnimations(N,Z){this._transitionEngine.markElementAsDisabled(N,Z)}process(N,Z,Pe,ht){if("@"==Pe.charAt(0)){const[Ct,ee]=L(Pe);this._timelineEngine.command(Ct,Z,ee,ht)}else this._transitionEngine.trigger(N,Z,Pe,ht)}listen(N,Z,Pe,ht,Ct){if("@"==Pe.charAt(0)){const[ee,Oe]=L(Pe);return this._timelineEngine.listen(ee,Z,Oe,Ct)}return this._transitionEngine.listen(N,Z,Pe,ht,Ct)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ui=(()=>{class ft{constructor(Z,Pe,ht){this._element=Z,this._startStyles=Pe,this._endStyles=ht,this._state=0;let Ct=ft.initialStylesByElement.get(Z);Ct||ft.initialStylesByElement.set(Z,Ct={}),this._initialStyles=Ct}start(){this._state<1&&(this._startStyles&&nt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(nt(this._element,this._initialStyles),this._endStyles&&(nt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ft.initialStylesByElement.delete(this._element),this._startStyles&&(Ve(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ve(this._element,this._endStyles),this._endStyles=null),nt(this._element,this._initialStyles),this._state=3)}}return ft.initialStylesByElement=new WeakMap,ft})();function Li(ft){let N=null;const Z=Object.keys(ft);for(let Pe=0;PeN()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const N=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,N,this.options),this._finalKeyframe=N.length?N[N.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(N,Z,Pe){return N.animate(Z,Pe)}onStart(N){this._onStartFns.push(N)}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(N=>N()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}setPosition(N){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=N*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N={};if(this.hasStarted()){const Z=this._finalKeyframe;Object.keys(Z).forEach(Pe=>{"offset"!=Pe&&(N[Pe]=this._finished?Z[Pe]:o(this.element,Pe))})}this.currentSnapshot=N}triggerCallback(N){const Z="start"==N?this._onStartFns:this._onDoneFns;Z.forEach(Pe=>Pe()),Z.length=0}}class Vn{validateStyleProperty(N){return oe(N)}matchesElement(N,Z){return!1}containsElement(N,Z){return T(N,Z)}query(N,Z,Pe){return j(N,Z,Pe)}computeStyle(N,Z,Pe){return window.getComputedStyle(N)[Z]}animate(N,Z,Pe,ht,Ct,ee=[]){const he={duration:Pe,delay:ht,fill:0==ht?"both":"forwards"};Ct&&(he.easing=Ct);const tt={},yt=ee.filter(Wt=>Wt instanceof cr);(function Ae(ft,N){return 0===ft||0===N})(Pe,ht)&&yt.forEach(Wt=>{let ii=Wt.currentSnapshot;Object.keys(ii).forEach(di=>tt[di]=ii[di])}),Z=function ae(ft,N,Z){const Pe=Object.keys(Z);if(Pe.length&&N.length){let Ct=N[0],ee=[];if(Pe.forEach(Oe=>{Ct.hasOwnProperty(Oe)||ee.push(Oe),Ct[Oe]=Z[Oe]}),ee.length)for(var ht=1;htSe(Wt,!1)),tt);const Gt=function vi(ft,N){let Z=null,Pe=null;return Array.isArray(N)&&N.length?(Z=Li(N[0]),N.length>1&&(Pe=Li(N[N.length-1]))):N&&(Z=Li(N)),Z||Pe?new Ui(ft,Z,Pe):null}(N,Z);return new cr(N,Z,he,Gt)}}var dr=p(69808);let Qn=(()=>{class ft extends _._j{constructor(Z,Pe){super(),this._nextAnimationId=0,this._renderer=Z.createRenderer(Pe.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(Z){const Pe=this._nextAnimationId.toString();this._nextAnimationId++;const ht=Array.isArray(Z)?(0,_.vP)(Z):Z;return Zn(this._renderer,null,Pe,"register",[ht]),new Lr(Pe,this._renderer)}}return ft.\u0275fac=function(Z){return new(Z||ft)(e.LFG(e.FYo),e.LFG(dr.K0))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Lr extends _.LC{constructor(N,Z){super(),this._id=N,this._renderer=Z}create(N,Z){return new rr(this._id,N,Z||{},this._renderer)}}class rr{constructor(N,Z,Pe,ht){this.id=N,this.element=Z,this._renderer=ht,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Pe)}_listen(N,Z){return this._renderer.listen(this.element,`@@${this.id}:${N}`,Z)}_command(N,...Z){return Zn(this._renderer,this.element,this.id,N,Z)}onDone(N){this._listen("done",N)}onStart(N){this._listen("start",N)}onDestroy(N){this._listen("destroy",N)}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(N){this._command("setPosition",N)}getPosition(){var N,Z;return null!==(Z=null===(N=this._renderer.engine.players[+this.id])||void 0===N?void 0:N.getPosition())&&void 0!==Z?Z:0}}function Zn(ft,N,Z,Pe,ht){return ft.setProperty(N,`@@${Z}:${Pe}`,ht)}const ur="@.disabled";let Mn=(()=>{class ft{constructor(Z,Pe,ht){this.delegate=Z,this.engine=Pe,this._zone=ht,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Pe.onRemovalComplete=(Ct,ee)=>{const Oe=null==ee?void 0:ee.parentNode(Ct);Oe&&ee.removeChild(Oe,Ct)}}createRenderer(Z,Pe){const Ct=this.delegate.createRenderer(Z,Pe);if(!(Z&&Pe&&Pe.data&&Pe.data.animation)){let yt=this._rendererCache.get(Ct);return yt||(yt=new Gn("",Ct,this.engine),this._rendererCache.set(Ct,yt)),yt}const ee=Pe.id,Oe=Pe.id+"-"+this._currentId;this._currentId++,this.engine.register(Oe,Z);const he=yt=>{Array.isArray(yt)?yt.forEach(he):this.engine.registerTrigger(ee,Oe,Z,yt.name,yt)};return Pe.data.animation.forEach(he),new sr(this,Oe,Ct,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(Z,Pe,ht){Z>=0&&ZPe(ht)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ct=>{const[ee,Oe]=Ct;ee(Oe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Pe,ht]))}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 ft.\u0275fac=function(Z){return new(Z||ft)(e.LFG(e.FYo),e.LFG(ci),e.LFG(e.R0b))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Gn{constructor(N,Z,Pe){this.namespaceId=N,this.delegate=Z,this.engine=Pe,this.destroyNode=this.delegate.destroyNode?ht=>Z.destroyNode(ht):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(N,Z){return this.delegate.createElement(N,Z)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,Z){this.delegate.appendChild(N,Z),this.engine.onInsert(this.namespaceId,Z,N,!1)}insertBefore(N,Z,Pe,ht=!0){this.delegate.insertBefore(N,Z,Pe),this.engine.onInsert(this.namespaceId,Z,N,ht)}removeChild(N,Z,Pe){this.engine.onRemove(this.namespaceId,Z,this.delegate,Pe)}selectRootElement(N,Z){return this.delegate.selectRootElement(N,Z)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,Z,Pe,ht){this.delegate.setAttribute(N,Z,Pe,ht)}removeAttribute(N,Z,Pe){this.delegate.removeAttribute(N,Z,Pe)}addClass(N,Z){this.delegate.addClass(N,Z)}removeClass(N,Z){this.delegate.removeClass(N,Z)}setStyle(N,Z,Pe,ht){this.delegate.setStyle(N,Z,Pe,ht)}removeStyle(N,Z,Pe){this.delegate.removeStyle(N,Z,Pe)}setProperty(N,Z,Pe){"@"==Z.charAt(0)&&Z==ur?this.disableAnimations(N,!!Pe):this.delegate.setProperty(N,Z,Pe)}setValue(N,Z){this.delegate.setValue(N,Z)}listen(N,Z,Pe){return this.delegate.listen(N,Z,Pe)}disableAnimations(N,Z){this.engine.disableAnimations(N,Z)}}class sr extends Gn{constructor(N,Z,Pe,ht){super(Z,Pe,ht),this.factory=N,this.namespaceId=Z}setProperty(N,Z,Pe){"@"==Z.charAt(0)?"."==Z.charAt(1)&&Z==ur?this.disableAnimations(N,Pe=void 0===Pe||!!Pe):this.engine.process(this.namespaceId,N,Z.substr(1),Pe):this.delegate.setProperty(N,Z,Pe)}listen(N,Z,Pe){if("@"==Z.charAt(0)){const ht=function ar(ft){switch(ft){case"body":return document.body;case"document":return document;case"window":return window;default:return ft}}(N);let Ct=Z.substr(1),ee="";return"@"!=Ct.charAt(0)&&([Ct,ee]=function Un(ft){const N=ft.indexOf(".");return[ft.substring(0,N),ft.substr(N+1)]}(Ct)),this.engine.listen(this.namespaceId,ht,Ct,ee,Oe=>{this.factory.scheduleListenerCallback(Oe._data||-1,Pe,Oe)})}return this.delegate.listen(N,Z,Pe)}}let hr=(()=>{class ft extends ci{constructor(Z,Pe,ht){super(Z.body,Pe,ht)}ngOnDestroy(){this.flush()}}return ft.\u0275fac=function(Z){return new(Z||ft)(e.LFG(dr.K0),e.LFG(te),e.LFG(yi))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();const yn=new e.OlP("AnimationModuleType"),Cn=[{provide:_._j,useClass:Qn},{provide:yi,useFactory:function br(){return new gn}},{provide:ci,useClass:hr},{provide:e.FYo,useFactory:function In(ft,N,Z){return new Mn(ft,N,Z)},deps:[b.se,ci,e.R0b]}],$n=[{provide:te,useFactory:()=>new Vn},{provide:yn,useValue:"BrowserAnimations"},...Cn],or=[{provide:te,useClass:q},{provide:yn,useValue:"NoopAnimations"},...Cn];let zn=(()=>{class ft{static withConfig(Z){return{ngModule:ft,providers:Z.disableAnimations?or:$n}}}return ft.\u0275fac=function(Z){return new(Z||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({providers:$n,imports:[b.b2]}),ft})()},22313:($e,_e,p)=>{"use strict";p.d(_e,{b2:()=>V,H7:()=>ct,Dx:()=>ae,q6:()=>D,se:()=>le});var e=p(69808),b=p(5e3);class _ extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends _{static makeCurrent(){(0,e.HT)(new w)}onAndCancel(Rt,Et,Bt){return Rt.addEventListener(Et,Bt,!1),()=>{Rt.removeEventListener(Et,Bt,!1)}}dispatchEvent(Rt,Et){Rt.dispatchEvent(Et)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,Et){return(Et=Et||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,Et){return"window"===Et?window:"document"===Et?Rt:"body"===Et?Rt.body:null}getBaseHref(Rt){const Et=function A(){return g=g||document.querySelector("base"),g?g.getAttribute("href"):null}();return null==Et?null:function C(It){E=E||document.createElement("a"),E.setAttribute("href",It);const Rt=E.pathname;return"/"===Rt.charAt(0)?Rt:`/${Rt}`}(Et)}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,e.Mx)(document.cookie,Rt)}}let E,g=null;const I=new b.OlP("TRANSITION_ID"),m=[{provide:b.ip1,useFactory:function P(It,Rt,Et){return()=>{Et.get(b.CZH).donePromise.then(()=>{const Bt=(0,e.q)(),Jt=Rt.querySelectorAll(`style[ng-transition="${It}"]`);for(let ai=0;ai{const ai=Rt.findTestabilityInTree(Bt,Jt);if(null==ai)throw new Error("Could not find testability for element.");return ai},b.dqk.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),b.dqk.getAllAngularRootElements=()=>Rt.getAllRootElements(),b.dqk.frameworkStabilizers||(b.dqk.frameworkStabilizers=[]),b.dqk.frameworkStabilizers.push(Bt=>{const Jt=b.dqk.getAllAngularTestabilities();let ai=Jt.length,mi=!1;const bi=function(yi){mi=mi||yi,ai--,0==ai&&Bt(mi)};Jt.forEach(function(yi){yi.whenStable(bi)})})}findTestabilityInTree(Rt,Et,Bt){if(null==Et)return null;const Jt=Rt.getTestability(Et);return null!=Jt?Jt:Bt?(0,e.q)().isShadowRoot(Et)?this.findTestabilityInTree(Rt,Et.host,!0):this.findTestabilityInTree(Rt,Et.parentElement,!0):null}}let O=(()=>{class It{build(){return new XMLHttpRequest}}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const G=new b.OlP("EventManagerPlugins");let ne=(()=>{class It{constructor(Et,Bt){this._zone=Bt,this._eventNameToPlugin=new Map,Et.forEach(Jt=>Jt.manager=this),this._plugins=Et.slice().reverse()}addEventListener(Et,Bt,Jt){return this._findPluginFor(Bt).addEventListener(Et,Bt,Jt)}addGlobalEventListener(Et,Bt,Jt){return this._findPluginFor(Bt).addGlobalEventListener(Et,Bt,Jt)}getZone(){return this._zone}_findPluginFor(Et){const Bt=this._eventNameToPlugin.get(Et);if(Bt)return Bt;const Jt=this._plugins;for(let ai=0;ai{class It{constructor(){this._stylesSet=new Set}addStyles(Et){const Bt=new Set;Et.forEach(Jt=>{this._stylesSet.has(Jt)||(this._stylesSet.add(Jt),Bt.add(Jt))}),this.onStylesAdded(Bt)}onStylesAdded(Et){}getAllStyles(){return Array.from(this._stylesSet)}}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})(),Me=(()=>{class It extends J{constructor(Et){super(),this._doc=Et,this._hostNodes=new Map,this._hostNodes.set(Et.head,[])}_addStylesToHost(Et,Bt,Jt){Et.forEach(ai=>{const mi=this._doc.createElement("style");mi.textContent=ai,Jt.push(Bt.appendChild(mi))})}addHost(Et){const Bt=[];this._addStylesToHost(this._stylesSet,Et,Bt),this._hostNodes.set(Et,Bt)}removeHost(Et){const Bt=this._hostNodes.get(Et);Bt&&Bt.forEach(oe),this._hostNodes.delete(Et)}onStylesAdded(Et){this._hostNodes.forEach((Bt,Jt)=>{this._addStylesToHost(Et,Jt,Bt)})}ngOnDestroy(){this._hostNodes.forEach(Et=>Et.forEach(oe))}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();function oe(It){(0,e.q)().remove(It)}const Re={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,Y="%COMP%",q=`_nghost-${Y}`,te=`_ngcontent-${Y}`;function Le(It,Rt,Et){for(let Bt=0;Bt{if("__ngUnwrap__"===Rt)return It;!1===It(Rt)&&(Rt.preventDefault(),Rt.returnValue=!1)}}let le=(()=>{class It{constructor(Et,Bt,Jt){this.eventManager=Et,this.sharedStylesHost=Bt,this.appId=Jt,this.rendererByCompId=new Map,this.defaultRenderer=new je(Et)}createRenderer(Et,Bt){if(!Et||!Bt)return this.defaultRenderer;switch(Bt.encapsulation){case b.ifc.Emulated:{let Jt=this.rendererByCompId.get(Bt.id);return Jt||(Jt=new W(this.eventManager,this.sharedStylesHost,Bt,this.appId),this.rendererByCompId.set(Bt.id,Jt)),Jt.applyToHost(Et),Jt}case 1:case b.ifc.ShadowDom:return new R(this.eventManager,this.sharedStylesHost,Et,Bt);default:if(!this.rendererByCompId.has(Bt.id)){const Jt=Le(Bt.id,Bt.styles,[]);this.sharedStylesHost.addStyles(Jt),this.rendererByCompId.set(Bt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(ne),b.LFG(Me),b.LFG(b.AFp))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();class je{constructor(Rt){this.eventManager=Rt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Rt,Et){return Et?document.createElementNS(Re[Et]||Et,Rt):document.createElement(Rt)}createComment(Rt){return document.createComment(Rt)}createText(Rt){return document.createTextNode(Rt)}appendChild(Rt,Et){Rt.appendChild(Et)}insertBefore(Rt,Et,Bt){Rt&&Rt.insertBefore(Et,Bt)}removeChild(Rt,Et){Rt&&Rt.removeChild(Et)}selectRootElement(Rt,Et){let Bt="string"==typeof Rt?document.querySelector(Rt):Rt;if(!Bt)throw new Error(`The selector "${Rt}" did not match any elements`);return Et||(Bt.textContent=""),Bt}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,Et,Bt,Jt){if(Jt){Et=Jt+":"+Et;const ai=Re[Jt];ai?Rt.setAttributeNS(ai,Et,Bt):Rt.setAttribute(Et,Bt)}else Rt.setAttribute(Et,Bt)}removeAttribute(Rt,Et,Bt){if(Bt){const Jt=Re[Bt];Jt?Rt.removeAttributeNS(Jt,Et):Rt.removeAttribute(`${Bt}:${Et}`)}else Rt.removeAttribute(Et)}addClass(Rt,Et){Rt.classList.add(Et)}removeClass(Rt,Et){Rt.classList.remove(Et)}setStyle(Rt,Et,Bt,Jt){Jt&(b.JOm.DashCase|b.JOm.Important)?Rt.style.setProperty(Et,Bt,Jt&b.JOm.Important?"important":""):Rt.style[Et]=Bt}removeStyle(Rt,Et,Bt){Bt&b.JOm.DashCase?Rt.style.removeProperty(Et):Rt.style[Et]=""}setProperty(Rt,Et,Bt){Rt[Et]=Bt}setValue(Rt,Et){Rt.nodeValue=Et}listen(Rt,Et,Bt){return"string"==typeof Rt?this.eventManager.addGlobalEventListener(Rt,Et,Ue(Bt)):this.eventManager.addEventListener(Rt,Et,Ue(Bt))}}class W extends je{constructor(Rt,Et,Bt,Jt){super(Rt),this.component=Bt;const ai=Le(Jt+"-"+Bt.id,Bt.styles,[]);Et.addStyles(ai),this.contentAttr=function ue(It){return te.replace(T,It)}(Jt+"-"+Bt.id),this.hostAttr=function de(It){return q.replace(T,It)}(Jt+"-"+Bt.id)}applyToHost(Rt){super.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,Et){const Bt=super.createElement(Rt,Et);return super.setAttribute(Bt,this.contentAttr,""),Bt}}class R extends je{constructor(Rt,Et,Bt,Jt){super(Rt),this.sharedStylesHost=Et,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ai=Le(Jt.id,Jt.styles,[]);for(let mi=0;mi{class It extends ge{constructor(Et){super(Et)}supports(Et){return!0}addEventListener(Et,Bt,Jt){return Et.addEventListener(Bt,Jt,!1),()=>this.removeEventListener(Et,Bt,Jt)}removeEventListener(Et,Bt,Jt){return Et.removeEventListener(Bt,Jt)}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const be=["alt","control","meta","shift"],pe={"\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"},Se={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"},Xe={alt:It=>It.altKey,control:It=>It.ctrlKey,meta:It=>It.metaKey,shift:It=>It.shiftKey};let Je=(()=>{class It extends ge{constructor(Et){super(Et)}supports(Et){return null!=It.parseEventName(Et)}addEventListener(Et,Bt,Jt){const ai=It.parseEventName(Bt),mi=It.eventCallback(ai.fullKey,Jt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Et,ai.domEventName,mi))}static parseEventName(Et){const Bt=Et.toLowerCase().split("."),Jt=Bt.shift();if(0===Bt.length||"keydown"!==Jt&&"keyup"!==Jt)return null;const ai=It._normalizeKey(Bt.pop());let mi="";if(be.forEach(yi=>{const Wi=Bt.indexOf(yi);Wi>-1&&(Bt.splice(Wi,1),mi+=yi+".")}),mi+=ai,0!=Bt.length||0===ai.length)return null;const bi={};return bi.domEventName=Jt,bi.fullKey=mi,bi}static getEventFullKey(Et){let Bt="",Jt=function nt(It){let Rt=It.key;if(null==Rt){if(Rt=It.keyIdentifier,null==Rt)return"Unidentified";Rt.startsWith("U+")&&(Rt=String.fromCharCode(parseInt(Rt.substring(2),16)),3===It.location&&Se.hasOwnProperty(Rt)&&(Rt=Se[Rt]))}return pe[Rt]||Rt}(Et);return Jt=Jt.toLowerCase()," "===Jt?Jt="space":"."===Jt&&(Jt="dot"),be.forEach(ai=>{ai!=Jt&&Xe[ai](Et)&&(Bt+=ai+".")}),Bt+=Jt,Bt}static eventCallback(Et,Bt,Jt){return ai=>{It.getEventFullKey(ai)===Et&&Jt.runGuarded(()=>Bt(ai))}}static _normalizeKey(Et){return"esc"===Et?"escape":Et}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const D=(0,b.eFA)(b._c5,"browser",[{provide:b.Lbi,useValue:e.bD},{provide:b.g9A,useValue:function Ve(){w.makeCurrent(),L.init()},multi:!0},{provide:e.K0,useFactory:function z(){return(0,b.RDi)(document),document},deps:[]}]),H=[{provide:b.zSh,useValue:"root"},{provide:b.qLn,useFactory:function X(){return new b.qLn},deps:[]},{provide:G,useClass:me,multi:!0,deps:[e.K0,b.R0b,b.Lbi]},{provide:G,useClass:Je,multi:!0,deps:[e.K0]},{provide:le,useClass:le,deps:[ne,Me,b.AFp]},{provide:b.FYo,useExisting:le},{provide:J,useExisting:Me},{provide:Me,useClass:Me,deps:[e.K0]},{provide:b.dDg,useClass:b.dDg,deps:[b.R0b]},{provide:ne,useClass:ne,deps:[G,b.R0b]},{provide:e.JF,useClass:O,deps:[]}];let V=(()=>{class It{constructor(Et){if(Et)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(Et){return{ngModule:It,providers:[{provide:b.AFp,useValue:Et.appId},{provide:I,useExisting:b.AFp},m]}}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(It,12))},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({providers:H,imports:[e.ez,b.hGG]}),It})(),ae=(()=>{class It{constructor(Et){this._doc=Et}getTitle(){return this._doc.title}setTitle(Et){this._doc.title=Et||""}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new Et:function Ae(){return new ae((0,b.LFG)(e.K0))}(),Bt},providedIn:"root"}),It})();"undefined"!=typeof window&&window;let ct=(()=>{class It{}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new(Et||It):b.LFG(xt),Bt},providedIn:"root"}),It})(),xt=(()=>{class It extends ct{constructor(Et){super(),this._doc=Et}sanitize(Et,Bt){if(null==Bt)return null;switch(Et){case b.q3G.NONE:return Bt;case b.q3G.HTML:return(0,b.qzn)(Bt,"HTML")?(0,b.z3N)(Bt):(0,b.EiD)(this._doc,String(Bt)).toString();case b.q3G.STYLE:return(0,b.qzn)(Bt,"Style")?(0,b.z3N)(Bt):Bt;case b.q3G.SCRIPT:if((0,b.qzn)(Bt,"Script"))return(0,b.z3N)(Bt);throw new Error("unsafe value used in a script context");case b.q3G.URL:return(0,b.yhl)(Bt),(0,b.qzn)(Bt,"URL")?(0,b.z3N)(Bt):(0,b.mCW)(String(Bt));case b.q3G.RESOURCE_URL:if((0,b.qzn)(Bt,"ResourceURL"))return(0,b.z3N)(Bt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Et} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Et){return(0,b.JVY)(Et)}bypassSecurityTrustStyle(Et){return(0,b.L6k)(Et)}bypassSecurityTrustScript(Et){return(0,b.eBb)(Et)}bypassSecurityTrustUrl(Et){return(0,b.LAX)(Et)}bypassSecurityTrustResourceUrl(Et){return(0,b.pB0)(Et)}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new Et:function bt(It){return new xt(It.get(e.K0))}(b.LFG(b.zs3)),Bt},providedIn:"root"}),It})()},11735:($e,_e,p)=>{"use strict";p.d(_e,{gz:()=>Dt,m2:()=>W,OD:()=>Be,GZ:()=>Kr,wN:()=>at,F0:()=>Zi,rH:()=>Hn,yS:()=>ln,Bz:()=>ko,lC:()=>Gn});var e=p(5e3),b=p(5254),_=p(21086),w=p(591),g=p(36053),A=p(56498),E=p(84450),C=p(61221),I=p(88514),P=p(68896),m=p(71762),L=p(8929),O=p(92198),G=p(92821),ne=p(34907),ge=p(47314),J=p(35379),oe=p(24850),Re=p(87545),T=p(72986),j=p(1059),Y=p(92014),q=p(27221),te=p(21406),ue=p(87224),de=p(61709),Le=p(22868),Ue=p(74327),ze=p(40537),le=p(89146),je=p(69808);class ye{constructor(se,$){this.id=se,this.url=$}}class Be extends ye{constructor(se,$,Fe="imperative",it=null){super(se,$),this.navigationTrigger=Fe,this.restoredState=it}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class W extends ye{constructor(se,$,Fe){super(se,$),this.urlAfterRedirects=Fe}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class R extends ye{constructor(se,$,Fe){super(se,$),this.reason=Fe}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class me extends ye{constructor(se,$,Fe){super(se,$),this.error=Fe}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class be extends ye{constructor(se,$,Fe,it){super(se,$),this.urlAfterRedirects=Fe,this.state=it}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ie extends ye{constructor(se,$,Fe,it){super(se,$),this.urlAfterRedirects=Fe,this.state=it}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pe extends ye{constructor(se,$,Fe,it,_t){super(se,$),this.urlAfterRedirects=Fe,this.state=it,this.shouldActivate=_t}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Se extends ye{constructor(se,$,Fe,it){super(se,$),this.urlAfterRedirects=Fe,this.state=it}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xe extends ye{constructor(se,$,Fe,it){super(se,$),this.urlAfterRedirects=Fe,this.state=it}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Je{constructor(se){this.route=se}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(se){this.route=se}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ve{constructor(se){this.snapshot=se}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class X{constructor(se){this.snapshot=se}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(se){this.snapshot=se}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q{constructor(se){this.snapshot=se}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class D{constructor(se,$,Fe){this.routerEvent=se,this.position=$,this.anchor=Fe}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const H="primary";class V{constructor(se){this.params=se||{}}has(se){return Object.prototype.hasOwnProperty.call(this.params,se)}get(se){if(this.has(se)){const $=this.params[se];return Array.isArray($)?$[0]:$}return null}getAll(se){if(this.has(se)){const $=this.params[se];return Array.isArray($)?$:[$]}return[]}get keys(){return Object.keys(this.params)}}function xe(Ce){return new V(Ce)}const Qe="ngNavigationCancelingError";function Te(Ce){const se=Error("NavigationCancelingError: "+Ce);return se[Qe]=!0,se}function ae(Ce,se,$){const Fe=$.path.split("/");if(Fe.length>Ce.length||"full"===$.pathMatch&&(se.hasChildren()||Fe.lengthFe[_t]===it)}return Ce===se}function l(Ce){return Array.prototype.concat.apply([],Ce)}function s(Ce){return Ce.length>0?Ce[Ce.length-1]:null}function t(Ce,se){for(const $ in Ce)Ce.hasOwnProperty($)&&se(Ce[$],$)}function n(Ce){return(0,e.CqO)(Ce)?Ce:(0,e.QGY)(Ce)?(0,b.D)(Promise.resolve(Ce)):(0,_.of)(Ce)}const c={exact:function At(Ce,se,$){if(!k(Ce.segments,se.segments)||!mt(Ce.segments,se.segments,$)||Ce.numberOfChildren!==se.numberOfChildren)return!1;for(const Fe in se.children)if(!Ce.children[Fe]||!At(Ce.children[Fe],se.children[Fe],$))return!1;return!0},subset:lt},h={exact:function We(Ce,se){return o(Ce,se)},subset:function Ht(Ce,se){return Object.keys(se).length<=Object.keys(Ce).length&&Object.keys(se).every($=>d(Ce[$],se[$]))},ignored:()=>!0};function x(Ce,se,$){return c[$.paths](Ce.root,se.root,$.matrixParams)&&h[$.queryParams](Ce.queryParams,se.queryParams)&&!("exact"===$.fragment&&Ce.fragment!==se.fragment)}function lt(Ce,se,$){return Ut(Ce,se,se.segments,$)}function Ut(Ce,se,$,Fe){if(Ce.segments.length>$.length){const it=Ce.segments.slice(0,$.length);return!(!k(it,$)||se.hasChildren()||!mt(it,$,Fe))}if(Ce.segments.length===$.length){if(!k(Ce.segments,$)||!mt(Ce.segments,$,Fe))return!1;for(const it in se.children)if(!Ce.children[it]||!lt(Ce.children[it],se.children[it],Fe))return!1;return!0}{const it=$.slice(0,Ce.segments.length),_t=$.slice(Ce.segments.length);return!!(k(Ce.segments,it)&&mt(Ce.segments,it,Fe)&&Ce.children[H])&&Ut(Ce.children[H],se,_t,Fe)}}function mt(Ce,se,$){return se.every((Fe,it)=>h[$](Ce[it].parameters,Fe.parameters))}class Lt{constructor(se,$,Fe){this.root=se,this.queryParams=$,this.fragment=Fe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class Ee{constructor(se,$){this.segments=se,this.children=$,this.parent=null,t($,(Fe,it)=>Fe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bt(this)}}class Ge{constructor(se,$){this.path=se,this.parameters=$}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return ai(this)}}function k(Ce,se){return Ce.length===se.length&&Ce.every(($,Fe)=>$.path===se[Fe].path)}class ce{}class He{parse(se){const $=new rn(se);return new Lt($.parseRootSegment(),$.parseQueryParams(),$.parseFragment())}serialize(se){const $=`/${xt(se.root,!0)}`,Fe=function bi(Ce){const se=Object.keys(Ce).map($=>{const Fe=Ce[$];return Array.isArray(Fe)?Fe.map(it=>`${It($)}=${It(it)}`).join("&"):`${It($)}=${It(Fe)}`}).filter($=>!!$);return se.length?`?${se.join("&")}`:""}(se.queryParams);return`${$}${Fe}${"string"==typeof se.fragment?`#${function Rt(Ce){return encodeURI(Ce)}(se.fragment)}`:""}`}}const ct=new He;function bt(Ce){return Ce.segments.map(se=>ai(se)).join("/")}function xt(Ce,se){if(!Ce.hasChildren())return bt(Ce);if(se){const $=Ce.children[H]?xt(Ce.children[H],!1):"",Fe=[];return t(Ce.children,(it,_t)=>{_t!==H&&Fe.push(`${_t}:${xt(it,!1)}`)}),Fe.length>0?`${$}(${Fe.join("//")})`:$}{const $=function ie(Ce,se){let $=[];return t(Ce.children,(Fe,it)=>{it===H&&($=$.concat(se(Fe,it)))}),t(Ce.children,(Fe,it)=>{it!==H&&($=$.concat(se(Fe,it)))}),$}(Ce,(Fe,it)=>it===H?[xt(Ce.children[H],!1)]:[`${it}:${xt(Fe,!1)}`]);return 1===Object.keys(Ce.children).length&&null!=Ce.children[H]?`${bt(Ce)}/${$[0]}`:`${bt(Ce)}/(${$.join("//")})`}}function Yt(Ce){return encodeURIComponent(Ce).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(Ce){return Yt(Ce).replace(/%3B/gi,";")}function Et(Ce){return Yt(Ce).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(Ce){return decodeURIComponent(Ce)}function Jt(Ce){return Bt(Ce.replace(/\+/g,"%20"))}function ai(Ce){return`${Et(Ce.path)}${function mi(Ce){return Object.keys(Ce).map(se=>`;${Et(se)}=${Et(Ce[se])}`).join("")}(Ce.parameters)}`}const yi=/^[^\/()?;=#]+/;function Wi(Ce){const se=Ce.match(yi);return se?se[0]:""}const gn=/^[^=?&#]+/,Ki=/^[^&#]+/;class rn{constructor(se){this.url=se,this.remaining=se}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ee([],{}):new Ee([],this.parseChildren())}parseQueryParams(){const se={};if(this.consumeOptional("?"))do{this.parseQueryParam(se)}while(this.consumeOptional("&"));return se}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const se=[];for(this.peekStartsWith("(")||se.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),se.push(this.parseSegment());let $={};this.peekStartsWith("/(")&&(this.capture("/"),$=this.parseParens(!0));let Fe={};return this.peekStartsWith("(")&&(Fe=this.parseParens(!1)),(se.length>0||Object.keys($).length>0)&&(Fe[H]=new Ee(se,$)),Fe}parseSegment(){const se=Wi(this.remaining);if(""===se&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(se),new Ge(Bt(se),this.parseMatrixParams())}parseMatrixParams(){const se={};for(;this.consumeOptional(";");)this.parseParam(se);return se}parseParam(se){const $=Wi(this.remaining);if(!$)return;this.capture($);let Fe="";if(this.consumeOptional("=")){const it=Wi(this.remaining);it&&(Fe=it,this.capture(Fe))}se[Bt($)]=Bt(Fe)}parseQueryParam(se){const $=function cn(Ce){const se=Ce.match(gn);return se?se[0]:""}(this.remaining);if(!$)return;this.capture($);let Fe="";if(this.consumeOptional("=")){const Pt=function Tn(Ce){const se=Ce.match(Ki);return se?se[0]:""}(this.remaining);Pt&&(Fe=Pt,this.capture(Fe))}const it=Jt($),_t=Jt(Fe);if(se.hasOwnProperty(it)){let Pt=se[it];Array.isArray(Pt)||(Pt=[Pt],se[it]=Pt),Pt.push(_t)}else se[it]=_t}parseParens(se){const $={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Fe=Wi(this.remaining),it=this.remaining[Fe.length];if("/"!==it&&")"!==it&&";"!==it)throw new Error(`Cannot parse url '${this.url}'`);let _t;Fe.indexOf(":")>-1?(_t=Fe.substr(0,Fe.indexOf(":")),this.capture(_t),this.capture(":")):se&&(_t=H);const Pt=this.parseChildren();$[_t]=1===Object.keys(Pt).length?Pt[H]:new Ee([],Pt),this.consumeOptional("//")}return $}peekStartsWith(se){return this.remaining.startsWith(se)}consumeOptional(se){return!!this.peekStartsWith(se)&&(this.remaining=this.remaining.substring(se.length),!0)}capture(se){if(!this.consumeOptional(se))throw new Error(`Expected "${se}".`)}}class st{constructor(se){this._root=se}get root(){return this._root.value}parent(se){const $=this.pathFromRoot(se);return $.length>1?$[$.length-2]:null}children(se){const $=St(se,this._root);return $?$.children.map(Fe=>Fe.value):[]}firstChild(se){const $=St(se,this._root);return $&&$.children.length>0?$.children[0].value:null}siblings(se){const $=ot(se,this._root);return $.length<2?[]:$[$.length-2].children.map(it=>it.value).filter(it=>it!==se)}pathFromRoot(se){return ot(se,this._root).map($=>$.value)}}function St(Ce,se){if(Ce===se.value)return se;for(const $ of se.children){const Fe=St(Ce,$);if(Fe)return Fe}return null}function ot(Ce,se){if(Ce===se.value)return[se];for(const $ of se.children){const Fe=ot(Ce,$);if(Fe.length)return Fe.unshift(se),Fe}return[]}class Ke{constructor(se,$){this.value=se,this.children=$}toString(){return`TreeNode(${this.value})`}}function vt(Ce){const se={};return Ce&&Ce.children.forEach($=>se[$.value.outlet]=$),se}class F extends st{constructor(se,$){super(se),this.snapshot=$,$i(this,se)}toString(){return this.snapshot.toString()}}function Ye(Ce,se){const $=function gt(Ce,se){const Pt=new Di([],{},{},"",{},H,se,null,Ce.root,-1,{});return new wi("",new Ke(Pt,[]))}(Ce,se),Fe=new w.X([new Ge("",{})]),it=new w.X({}),_t=new w.X({}),Pt=new w.X({}),Ft=new w.X(""),$t=new Dt(Fe,it,Pt,Ft,_t,H,se,$.root);return $t.snapshot=$.root,new F(new Ke($t,[]),$)}class Dt{constructor(se,$,Fe,it,_t,Pt,Ft,$t){this.url=se,this.params=$,this.queryParams=Fe,this.fragment=it,this.data=_t,this.outlet=Pt,this.component=Ft,this._futureSnapshot=$t}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,oe.U)(se=>xe(se)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,oe.U)(se=>xe(se)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ri(Ce,se="emptyOnly"){const $=Ce.pathFromRoot;let Fe=0;if("always"!==se)for(Fe=$.length-1;Fe>=1;){const it=$[Fe],_t=$[Fe-1];if(it.routeConfig&&""===it.routeConfig.path)Fe--;else{if(_t.component)break;Fe--}}return function ti(Ce){return Ce.reduce((se,$)=>({params:Object.assign(Object.assign({},se.params),$.params),data:Object.assign(Object.assign({},se.data),$.data),resolve:Object.assign(Object.assign({},se.resolve),$._resolvedData)}),{params:{},data:{},resolve:{}})}($.slice(Fe))}class Di{constructor(se,$,Fe,it,_t,Pt,Ft,$t,Ai,Yi,xi){this.url=se,this.params=$,this.queryParams=Fe,this.fragment=it,this.data=_t,this.outlet=Pt,this.component=Ft,this.routeConfig=$t,this._urlSegment=Ai,this._lastPathIndex=Yi,this._resolve=xi}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=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Fe=>Fe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class wi extends st{constructor(se,$){super($),this.url=se,$i(this,$)}toString(){return qi(this._root)}}function $i(Ce,se){se.value._routerState=Ce,se.children.forEach($=>$i(Ce,$))}function qi(Ce){const se=Ce.children.length>0?` { ${Ce.children.map(qi).join(", ")} } `:"";return`${Ce.value}${se}`}function Fi(Ce){if(Ce.snapshot){const se=Ce.snapshot,$=Ce._futureSnapshot;Ce.snapshot=$,o(se.queryParams,$.queryParams)||Ce.queryParams.next($.queryParams),se.fragment!==$.fragment&&Ce.fragment.next($.fragment),o(se.params,$.params)||Ce.params.next($.params),function i(Ce,se){if(Ce.length!==se.length)return!1;for(let $=0;$o($.parameters,se[Fe].parameters))}(Ce.url,se.url);return $&&!(!Ce.parent!=!se.parent)&&(!Ce.parent||Ji(Ce.parent,se.parent))}function Ni(Ce,se,$){if($&&Ce.shouldReuseRoute(se.value,$.value.snapshot)){const Fe=$.value;Fe._futureSnapshot=se.value;const it=function Ri(Ce,se,$){return se.children.map(Fe=>{for(const it of $.children)if(Ce.shouldReuseRoute(Fe.value,it.value.snapshot))return Ni(Ce,Fe,it);return Ni(Ce,Fe)})}(Ce,se,$);return new Ke(Fe,it)}{if(Ce.shouldAttach(se.value)){const _t=Ce.retrieve(se.value);if(null!==_t){const Pt=_t.route;return Pt.value._futureSnapshot=se.value,Pt.children=se.children.map(Ft=>Ni(Ce,Ft)),Pt}}const Fe=function sn(Ce){return new Dt(new w.X(Ce.url),new w.X(Ce.params),new w.X(Ce.queryParams),new w.X(Ce.fragment),new w.X(Ce.data),Ce.outlet,Ce.component,Ce)}(se.value),it=se.children.map(_t=>Ni(Ce,_t));return new Ke(Fe,it)}}function en(Ce){return"object"==typeof Ce&&null!=Ce&&!Ce.outlets&&!Ce.segmentPath}function an(Ce){return"object"==typeof Ce&&null!=Ce&&Ce.outlets}function dn(Ce,se,$,Fe,it){let _t={};return Fe&&t(Fe,(Pt,Ft)=>{_t[Ft]=Array.isArray(Pt)?Pt.map($t=>`${$t}`):`${Pt}`}),new Lt($.root===Ce?se:wn($.root,Ce,se),_t,it)}function wn(Ce,se,$){const Fe={};return t(Ce.children,(it,_t)=>{Fe[_t]=it===se?$:wn(it,se,$)}),new Ee(Ce.segments,Fe)}class xn{constructor(se,$,Fe){if(this.isAbsolute=se,this.numberOfDoubleDots=$,this.commands=Fe,se&&Fe.length>0&&en(Fe[0]))throw new Error("Root segment cannot have matrix parameters");const it=Fe.find(an);if(it&&it!==s(Fe))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kn{constructor(se,$,Fe){this.segmentGroup=se,this.processChildren=$,this.index=Fe}}function rt(Ce,se,$){if(Ce||(Ce=new Ee([],{})),0===Ce.segments.length&&Ce.hasChildren())return kt(Ce,se,$);const Fe=function Ze(Ce,se,$){let Fe=0,it=se;const _t={match:!1,pathIndex:0,commandIndex:0};for(;it=$.length)return _t;const Pt=Ce.segments[it],Ft=$[Fe];if(an(Ft))break;const $t=`${Ft}`,Ai=Fe<$.length-1?$[Fe+1]:null;if(it>0&&void 0===$t)break;if($t&&Ai&&"object"==typeof Ai&&void 0===Ai.outlets){if(!jt($t,Ai,Pt))return _t;Fe+=2}else{if(!jt($t,{},Pt))return _t;Fe++}it++}return{match:!0,pathIndex:it,commandIndex:Fe}}(Ce,se,$),it=$.slice(Fe.commandIndex);if(Fe.match&&Fe.pathIndex{"string"==typeof _t&&(_t=[_t]),null!==_t&&(it[Pt]=rt(Ce.children[Pt],se,_t))}),t(Ce.children,(_t,Pt)=>{void 0===Fe[Pt]&&(it[Pt]=_t)}),new Ee(Ce.segments,it)}}function Ot(Ce,se,$){const Fe=Ce.segments.slice(0,se);let it=0;for(;it<$.length;){const _t=$[it];if(an(_t)){const $t=qe(_t.outlets);return new Ee(Fe,$t)}if(0===it&&en($[0])){Fe.push(new Ge(Ce.segments[se].path,Tt($[0]))),it++;continue}const Pt=an(_t)?_t.outlets[H]:`${_t}`,Ft=it<$.length-1?$[it+1]:null;Pt&&Ft&&en(Ft)?(Fe.push(new Ge(Pt,Tt(Ft))),it+=2):(Fe.push(new Ge(Pt,{})),it++)}return new Ee(Fe,{})}function qe(Ce){const se={};return t(Ce,($,Fe)=>{"string"==typeof $&&($=[$]),null!==$&&(se[Fe]=Ot(new Ee([],{}),0,$))}),se}function Tt(Ce){const se={};return t(Ce,($,Fe)=>se[Fe]=`${$}`),se}function jt(Ce,se,$){return Ce==$.path&&o(se,$.parameters)}class vi{constructor(se,$,Fe,it){this.routeReuseStrategy=se,this.futureState=$,this.currState=Fe,this.forwardEvent=it}activate(se){const $=this.futureState._root,Fe=this.currState?this.currState._root:null;this.deactivateChildRoutes($,Fe,se),Fi(this.futureState.root),this.activateChildRoutes($,Fe,se)}deactivateChildRoutes(se,$,Fe){const it=vt($);se.children.forEach(_t=>{const Pt=_t.value.outlet;this.deactivateRoutes(_t,it[Pt],Fe),delete it[Pt]}),t(it,(_t,Pt)=>{this.deactivateRouteAndItsChildren(_t,Fe)})}deactivateRoutes(se,$,Fe){const it=se.value,_t=$?$.value:null;if(it===_t)if(it.component){const Pt=Fe.getContext(it.outlet);Pt&&this.deactivateChildRoutes(se,$,Pt.children)}else this.deactivateChildRoutes(se,$,Fe);else _t&&this.deactivateRouteAndItsChildren($,Fe)}deactivateRouteAndItsChildren(se,$){se.value.component&&this.routeReuseStrategy.shouldDetach(se.value.snapshot)?this.detachAndStoreRouteSubtree(se,$):this.deactivateRouteAndOutlet(se,$)}detachAndStoreRouteSubtree(se,$){const Fe=$.getContext(se.value.outlet),it=Fe&&se.value.component?Fe.children:$,_t=vt(se);for(const Pt of Object.keys(_t))this.deactivateRouteAndItsChildren(_t[Pt],it);if(Fe&&Fe.outlet){const Pt=Fe.outlet.detach(),Ft=Fe.children.onOutletDeactivated();this.routeReuseStrategy.store(se.value.snapshot,{componentRef:Pt,route:se,contexts:Ft})}}deactivateRouteAndOutlet(se,$){const Fe=$.getContext(se.value.outlet),it=Fe&&se.value.component?Fe.children:$,_t=vt(se);for(const Pt of Object.keys(_t))this.deactivateRouteAndItsChildren(_t[Pt],it);Fe&&Fe.outlet&&(Fe.outlet.deactivate(),Fe.children.onOutletDeactivated(),Fe.attachRef=null,Fe.resolver=null,Fe.route=null)}activateChildRoutes(se,$,Fe){const it=vt($);se.children.forEach(_t=>{this.activateRoutes(_t,it[_t.value.outlet],Fe),this.forwardEvent(new Q(_t.value.snapshot))}),se.children.length&&this.forwardEvent(new X(se.value.snapshot))}activateRoutes(se,$,Fe){const it=se.value,_t=$?$.value:null;if(Fi(it),it===_t)if(it.component){const Pt=Fe.getOrCreateContext(it.outlet);this.activateChildRoutes(se,$,Pt.children)}else this.activateChildRoutes(se,$,Fe);else if(it.component){const Pt=Fe.getOrCreateContext(it.outlet);if(this.routeReuseStrategy.shouldAttach(it.snapshot)){const Ft=this.routeReuseStrategy.retrieve(it.snapshot);this.routeReuseStrategy.store(it.snapshot,null),Pt.children.onOutletReAttached(Ft.contexts),Pt.attachRef=Ft.componentRef,Pt.route=Ft.route.value,Pt.outlet&&Pt.outlet.attach(Ft.componentRef,Ft.route.value),Fi(Ft.route.value),this.activateChildRoutes(se,null,Pt.children)}else{const Ft=function Ui(Ce){for(let se=Ce.parent;se;se=se.parent){const $=se.routeConfig;if($&&$._loadedConfig)return $._loadedConfig;if($&&$.component)return null}return null}(it.snapshot),$t=Ft?Ft.module.componentFactoryResolver:null;Pt.attachRef=null,Pt.route=it,Pt.resolver=$t,Pt.outlet&&Pt.outlet.activateWith(it,$t),this.activateChildRoutes(se,null,Pt.children)}}else this.activateChildRoutes(se,null,Fe)}}class Li{constructor(se,$){this.routes=se,this.module=$}}function hn(Ce){return"function"==typeof Ce}function Vn(Ce){return Ce instanceof Lt}const Zn=Symbol("INITIAL_VALUE");function En(){return(0,Re.w)(Ce=>(0,g.aj)(Ce.map(se=>se.pipe((0,T.q)(1),(0,j.O)(Zn)))).pipe((0,Y.R)((se,$)=>{let Fe=!1;return $.reduce((it,_t,Pt)=>it!==Zn?it:(_t===Zn&&(Fe=!0),Fe||!1!==_t&&Pt!==$.length-1&&!Vn(_t)?it:_t),se)},Zn),(0,O.h)(se=>se!==Zn),(0,oe.U)(se=>Vn(se)?se:!0===se),(0,T.q)(1)))}class ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Mn,this.attachRef=null}}class Mn{constructor(){this.contexts=new Map}onChildOutletCreated(se,$){const Fe=this.getOrCreateContext(se);Fe.outlet=$,this.contexts.set(se,Fe)}onChildOutletDestroyed(se){const $=this.getContext(se);$&&($.outlet=null,$.attachRef=null)}onOutletDeactivated(){const se=this.contexts;return this.contexts=new Map,se}onOutletReAttached(se){this.contexts=se}getOrCreateContext(se){let $=this.getContext(se);return $||($=new ur,this.contexts.set(se,$)),$}getContext(se){return this.contexts.get(se)||null}}let Gn=(()=>{class Ce{constructor($,Fe,it,_t,Pt){this.parentContexts=$,this.location=Fe,this.resolver=it,this.changeDetector=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=_t||H,$.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const $=this.parentContexts.getContext(this.name);$&&$.route&&($.attachRef?this.attach($.attachRef,$.route):this.activateWith($.route,$.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const $=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit($.instance),$}attach($,Fe){this.activated=$,this._activatedRoute=Fe,this.location.insert($.hostView),this.attachEvents.emit($.instance)}deactivate(){if(this.activated){const $=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit($)}}activateWith($,Fe){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=$;const Pt=(Fe=Fe||this.resolver).resolveComponentFactory($._futureSnapshot.routeConfig.component),Ft=this.parentContexts.getOrCreateContext(this.name).children,$t=new sr($,Ft,this.location.injector);this.activated=this.location.createComponent(Pt,this.location.length,$t),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ce.\u0275fac=function($){return new($||Ce)(e.Y36(Mn),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ce})();class sr{constructor(se,$,Fe){this.route=se,this.childContexts=$,this.parent=Fe}get(se,$){return se===Dt?this.route:se===Mn?this.childContexts:this.parent.get(se,$)}}let ar=(()=>{class Ce{}return Ce.\u0275fac=function($){return new($||Ce)},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["ng-component"]],decls:1,vars:0,template:function($,Fe){1&$&&e._UZ(0,"router-outlet")},directives:[Gn],encapsulation:2}),Ce})();function Un(Ce,se=""){for(let $=0;$yn(Fe)===se);return $.push(...Ce.filter(Fe=>yn(Fe)!==se)),$}const $n={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function or(Ce,se,$){var Fe;if(""===se.path)return"full"===se.pathMatch&&(Ce.hasChildren()||$.length>0)?Object.assign({},$n):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const _t=(se.matcher||ae)($,Ce,se);if(!_t)return Object.assign({},$n);const Pt={};t(_t.posParams,($t,Ai)=>{Pt[Ai]=$t.path});const Ft=_t.consumed.length>0?Object.assign(Object.assign({},Pt),_t.consumed[_t.consumed.length-1].parameters):Pt;return{matched:!0,consumedSegments:_t.consumed,lastChild:_t.consumed.length,parameters:Ft,positionalParamSegments:null!==(Fe=_t.posParams)&&void 0!==Fe?Fe:{}}}function zn(Ce,se,$,Fe,it="corrected"){if($.length>0&&function N(Ce,se,$){return $.some(Fe=>Pe(Ce,se,Fe)&&yn(Fe)!==H)}(Ce,$,Fe)){const Pt=new Ee(se,function ft(Ce,se,$,Fe){const it={};it[H]=Fe,Fe._sourceSegment=Ce,Fe._segmentIndexShift=se.length;for(const _t of $)if(""===_t.path&&yn(_t)!==H){const Pt=new Ee([],{});Pt._sourceSegment=Ce,Pt._segmentIndexShift=se.length,it[yn(_t)]=Pt}return it}(Ce,se,Fe,new Ee($,Ce.children)));return Pt._sourceSegment=Ce,Pt._segmentIndexShift=se.length,{segmentGroup:Pt,slicedSegments:[]}}if(0===$.length&&function Z(Ce,se,$){return $.some(Fe=>Pe(Ce,se,Fe))}(Ce,$,Fe)){const Pt=new Ee(Ce.segments,function lr(Ce,se,$,Fe,it,_t){const Pt={};for(const Ft of Fe)if(Pe(Ce,$,Ft)&&!it[yn(Ft)]){const $t=new Ee([],{});$t._sourceSegment=Ce,$t._segmentIndexShift="legacy"===_t?Ce.segments.length:se.length,Pt[yn(Ft)]=$t}return Object.assign(Object.assign({},it),Pt)}(Ce,se,$,Fe,Ce.children,it));return Pt._sourceSegment=Ce,Pt._segmentIndexShift=se.length,{segmentGroup:Pt,slicedSegments:$}}const _t=new Ee(Ce.segments,Ce.children);return _t._sourceSegment=Ce,_t._segmentIndexShift=se.length,{segmentGroup:_t,slicedSegments:$}}function Pe(Ce,se,$){return(!(Ce.hasChildren()||se.length>0)||"full"!==$.pathMatch)&&""===$.path}function ht(Ce,se,$,Fe){return!!(yn(Ce)===Fe||Fe!==H&&Pe(se,$,Ce))&&("**"===Ce.path||or(se,Ce,$).matched)}function Ct(Ce,se,$){return 0===se.length&&!Ce.children[$]}class ee{constructor(se){this.segmentGroup=se||null}}class Oe{constructor(se){this.urlTree=se}}function he(Ce){return new A.y(se=>se.error(new ee(Ce)))}function tt(Ce){return new A.y(se=>se.error(new Oe(Ce)))}function yt(Ce){return new A.y(se=>se.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ce}'`)))}class ii{constructor(se,$,Fe,it,_t){this.configLoader=$,this.urlSerializer=Fe,this.urlTree=it,this.config=_t,this.allowRedirects=!0,this.ngModule=se.get(e.h0i)}apply(){const se=zn(this.urlTree.root,[],[],this.config).segmentGroup,$=new Ee(se.segments,se.children);return this.expandSegmentGroup(this.ngModule,this.config,$,H).pipe((0,oe.U)(_t=>this.createUrlTree(ui(_t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,q.K)(_t=>{if(_t instanceof Oe)return this.allowRedirects=!1,this.match(_t.urlTree);throw _t instanceof ee?this.noMatchError(_t):_t}))}match(se){return this.expandSegmentGroup(this.ngModule,this.config,se.root,H).pipe((0,oe.U)(it=>this.createUrlTree(ui(it),se.queryParams,se.fragment))).pipe((0,q.K)(it=>{throw it instanceof ee?this.noMatchError(it):it}))}noMatchError(se){return new Error(`Cannot match any routes. URL Segment: '${se.segmentGroup}'`)}createUrlTree(se,$,Fe){const it=se.segments.length>0?new Ee([],{[H]:se}):se;return new Lt(it,$,Fe)}expandSegmentGroup(se,$,Fe,it){return 0===Fe.segments.length&&Fe.hasChildren()?this.expandChildren(se,$,Fe).pipe((0,oe.U)(_t=>new Ee([],_t))):this.expandSegment(se,Fe,$,Fe.segments,it,!0)}expandChildren(se,$,Fe){const it=[];for(const _t of Object.keys(Fe.children))"primary"===_t?it.unshift(_t):it.push(_t);return(0,b.D)(it).pipe((0,te.b)(_t=>{const Pt=Fe.children[_t],Ft=Cn($,_t);return this.expandSegmentGroup(se,Ft,Pt,_t).pipe((0,oe.U)($t=>({segment:$t,outlet:_t})))}),(0,Y.R)((_t,Pt)=>(_t[Pt.outlet]=Pt.segment,_t),{}),function Me(Ce,se){const $=arguments.length>=2;return Fe=>Fe.pipe(Ce?(0,O.h)((it,_t)=>Ce(it,_t,Fe)):J.y,(0,G.h)(1),$?(0,ge.d)(se):(0,ne.T)(()=>new E.K))}())}expandSegment(se,$,Fe,it,_t,Pt){return(0,b.D)(Fe).pipe((0,te.b)(Ft=>this.expandSegmentAgainstRoute(se,$,Fe,Ft,it,_t,Pt).pipe((0,q.K)(Ai=>{if(Ai instanceof ee)return(0,_.of)(null);throw Ai}))),(0,ue.P)(Ft=>!!Ft),(0,q.K)((Ft,$t)=>{if(Ft instanceof E.K||"EmptyError"===Ft.name){if(Ct($,it,_t))return(0,_.of)(new Ee([],{}));throw new ee($)}throw Ft}))}expandSegmentAgainstRoute(se,$,Fe,it,_t,Pt,Ft){return ht(it,$,_t,Pt)?void 0===it.redirectTo?this.matchSegmentAgainstRoute(se,$,it,_t,Pt):Ft&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(se,$,Fe,it,_t,Pt):he($):he($)}expandSegmentAgainstRouteUsingRedirect(se,$,Fe,it,_t,Pt){return"**"===it.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(se,Fe,it,Pt):this.expandRegularSegmentAgainstRouteUsingRedirect(se,$,Fe,it,_t,Pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(se,$,Fe,it){const _t=this.applyRedirectCommands([],Fe.redirectTo,{});return Fe.redirectTo.startsWith("/")?tt(_t):this.lineralizeSegments(Fe,_t).pipe((0,de.zg)(Pt=>{const Ft=new Ee(Pt,{});return this.expandSegment(se,Ft,$,Pt,it,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(se,$,Fe,it,_t,Pt){const{matched:Ft,consumedSegments:$t,lastChild:Ai,positionalParamSegments:Yi}=or($,it,_t);if(!Ft)return he($);const xi=this.applyRedirectCommands($t,it.redirectTo,Yi);return it.redirectTo.startsWith("/")?tt(xi):this.lineralizeSegments(it,xi).pipe((0,de.zg)(nn=>this.expandSegment(se,$,Fe,nn.concat(_t.slice(Ai)),Pt,!1)))}matchSegmentAgainstRoute(se,$,Fe,it,_t){if("**"===Fe.path)return Fe.loadChildren?(Fe._loadedConfig?(0,_.of)(Fe._loadedConfig):this.configLoader.load(se.injector,Fe)).pipe((0,oe.U)(nn=>(Fe._loadedConfig=nn,new Ee(it,{})))):(0,_.of)(new Ee(it,{}));const{matched:Pt,consumedSegments:Ft,lastChild:$t}=or($,Fe,it);if(!Pt)return he($);const Ai=it.slice($t);return this.getChildConfig(se,Fe,it).pipe((0,de.zg)(xi=>{const nn=xi.module,on=xi.routes,{segmentGroup:os,slicedSegments:Cr}=zn($,Ft,Ai,on),vr=new Ee(os.segments,os.children);if(0===Cr.length&&vr.hasChildren())return this.expandChildren(nn,on,vr).pipe((0,oe.U)(Xr=>new Ee(Ft,Xr)));if(0===on.length&&0===Cr.length)return(0,_.of)(new Ee(Ft,{}));const Mr=yn(Fe)===_t;return this.expandSegment(nn,vr,on,Cr,Mr?H:_t,!0).pipe((0,oe.U)(Sr=>new Ee(Ft.concat(Sr.segments),Sr.children)))}))}getChildConfig(se,$,Fe){return $.children?(0,_.of)(new Li($.children,se)):$.loadChildren?void 0!==$._loadedConfig?(0,_.of)($._loadedConfig):this.runCanLoadGuards(se.injector,$,Fe).pipe((0,de.zg)(it=>it?this.configLoader.load(se.injector,$).pipe((0,oe.U)(_t=>($._loadedConfig=_t,_t))):function Gt(Ce){return new A.y(se=>se.error(Te(`Cannot load children because the guard of the route "path: '${Ce.path}'" returned false`)))}($))):(0,_.of)(new Li([],se))}runCanLoadGuards(se,$,Fe){const it=$.canLoad;if(!it||0===it.length)return(0,_.of)(!0);const _t=it.map(Pt=>{const Ft=se.get(Pt);let $t;if(function dr(Ce){return Ce&&hn(Ce.canLoad)}(Ft))$t=Ft.canLoad($,Fe);else{if(!hn(Ft))throw new Error("Invalid CanLoad guard");$t=Ft($,Fe)}return n($t)});return(0,_.of)(_t).pipe(En(),(0,Le.b)(Pt=>{if(!Vn(Pt))return;const Ft=Te(`Redirecting to "${this.urlSerializer.serialize(Pt)}"`);throw Ft.url=Pt,Ft}),(0,oe.U)(Pt=>!0===Pt))}lineralizeSegments(se,$){let Fe=[],it=$.root;for(;;){if(Fe=Fe.concat(it.segments),0===it.numberOfChildren)return(0,_.of)(Fe);if(it.numberOfChildren>1||!it.children[H])return yt(se.redirectTo);it=it.children[H]}}applyRedirectCommands(se,$,Fe){return this.applyRedirectCreatreUrlTree($,this.urlSerializer.parse($),se,Fe)}applyRedirectCreatreUrlTree(se,$,Fe,it){const _t=this.createSegmentGroup(se,$.root,Fe,it);return new Lt(_t,this.createQueryParams($.queryParams,this.urlTree.queryParams),$.fragment)}createQueryParams(se,$){const Fe={};return t(se,(it,_t)=>{if("string"==typeof it&&it.startsWith(":")){const Ft=it.substring(1);Fe[_t]=$[Ft]}else Fe[_t]=it}),Fe}createSegmentGroup(se,$,Fe,it){const _t=this.createSegments(se,$.segments,Fe,it);let Pt={};return t($.children,(Ft,$t)=>{Pt[$t]=this.createSegmentGroup(se,Ft,Fe,it)}),new Ee(_t,Pt)}createSegments(se,$,Fe,it){return $.map(_t=>_t.path.startsWith(":")?this.findPosParam(se,_t,it):this.findOrReturn(_t,Fe))}findPosParam(se,$,Fe){const it=Fe[$.path.substring(1)];if(!it)throw new Error(`Cannot redirect to '${se}'. Cannot find '${$.path}'.`);return it}findOrReturn(se,$){let Fe=0;for(const it of $){if(it.path===se.path)return $.splice(Fe),it;Fe++}return se}}function ui(Ce){const se={};for(const Fe of Object.keys(Ce.children)){const _t=ui(Ce.children[Fe]);(_t.segments.length>0||_t.hasChildren())&&(se[Fe]=_t)}return function di(Ce){if(1===Ce.numberOfChildren&&Ce.children[H]){const se=Ce.children[H];return new Ee(Ce.segments.concat(se.segments),se.children)}return Ce}(new Ee(Ce.segments,se))}class Ti{constructor(se){this.path=se,this.route=this.path[this.path.length-1]}}class Hi{constructor(se,$){this.component=se,this.route=$}}function Ne(Ce,se,$){const Fe=Ce._root;return Zt(Fe,se?se._root:null,$,[Fe.value])}function we(Ce,se,$){const Fe=function ut(Ce){if(!Ce)return null;for(let se=Ce.parent;se;se=se.parent){const $=se.routeConfig;if($&&$._loadedConfig)return $._loadedConfig}return null}(se);return(Fe?Fe.module.injector:$).get(Ce)}function Zt(Ce,se,$,Fe,it={canDeactivateChecks:[],canActivateChecks:[]}){const _t=vt(se);return Ce.children.forEach(Pt=>{(function hi(Ce,se,$,Fe,it={canDeactivateChecks:[],canActivateChecks:[]}){const _t=Ce.value,Pt=se?se.value:null,Ft=$?$.getContext(Ce.value.outlet):null;if(Pt&&_t.routeConfig===Pt.routeConfig){const $t=function ji(Ce,se,$){if("function"==typeof $)return $(Ce,se);switch($){case"pathParamsChange":return!k(Ce.url,se.url);case"pathParamsOrQueryParamsChange":return!k(Ce.url,se.url)||!o(Ce.queryParams,se.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ji(Ce,se)||!o(Ce.queryParams,se.queryParams);default:return!Ji(Ce,se)}}(Pt,_t,_t.routeConfig.runGuardsAndResolvers);$t?it.canActivateChecks.push(new Ti(Fe)):(_t.data=Pt.data,_t._resolvedData=Pt._resolvedData),Zt(Ce,se,_t.component?Ft?Ft.children:null:$,Fe,it),$t&&Ft&&Ft.outlet&&Ft.outlet.isActivated&&it.canDeactivateChecks.push(new Hi(Ft.outlet.component,Pt))}else Pt&&tn(se,Ft,it),it.canActivateChecks.push(new Ti(Fe)),Zt(Ce,null,_t.component?Ft?Ft.children:null:$,Fe,it)})(Pt,_t[Pt.value.outlet],$,Fe.concat([Pt.value]),it),delete _t[Pt.value.outlet]}),t(_t,(Pt,Ft)=>tn(Pt,$.getContext(Ft),it)),it}function tn(Ce,se,$){const Fe=vt(Ce),it=Ce.value;t(Fe,(_t,Pt)=>{tn(_t,it.component?se?se.children.getContext(Pt):null:se,$)}),$.canDeactivateChecks.push(new Hi(it.component&&se&&se.outlet&&se.outlet.isActivated?se.outlet.component:null,it))}class Vi{}function pn(Ce){return new A.y(se=>se.error(Ce))}class Pn{constructor(se,$,Fe,it,_t,Pt){this.rootComponentType=se,this.config=$,this.urlTree=Fe,this.url=it,this.paramsInheritanceStrategy=_t,this.relativeLinkResolution=Pt}recognize(){const se=zn(this.urlTree.root,[],[],this.config.filter(Pt=>void 0===Pt.redirectTo),this.relativeLinkResolution).segmentGroup,$=this.processSegmentGroup(this.config,se,H);if(null===$)return null;const Fe=new Di([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},H,this.rootComponentType,null,this.urlTree.root,-1,{}),it=new Ke(Fe,$),_t=new wi(this.url,it);return this.inheritParamsAndData(_t._root),_t}inheritParamsAndData(se){const $=se.value,Fe=ri($,this.paramsInheritanceStrategy);$.params=Object.freeze(Fe.params),$.data=Object.freeze(Fe.data),se.children.forEach(it=>this.inheritParamsAndData(it))}processSegmentGroup(se,$,Fe){return 0===$.segments.length&&$.hasChildren()?this.processChildren(se,$):this.processSegment(se,$,$.segments,Fe)}processChildren(se,$){const Fe=[];for(const _t of Object.keys($.children)){const Pt=$.children[_t],Ft=Cn(se,_t),$t=this.processSegmentGroup(Ft,Pt,_t);if(null===$t)return null;Fe.push(...$t)}const it=wr(Fe);return function Yn(Ce){Ce.sort((se,$)=>se.value.outlet===H?-1:$.value.outlet===H?1:se.value.outlet.localeCompare($.value.outlet))}(it),it}processSegment(se,$,Fe,it){for(const _t of se){const Pt=this.processSegmentAgainstRoute(_t,$,Fe,it);if(null!==Pt)return Pt}return Ct($,Fe,it)?[]:null}processSegmentAgainstRoute(se,$,Fe,it){if(se.redirectTo||!ht(se,$,Fe,it))return null;let _t,Pt=[],Ft=[];if("**"===se.path){const on=Fe.length>0?s(Fe).parameters:{};_t=new Di(Fe,on,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xn(se),yn(se),se.component,se,mn($),Sn($)+Fe.length,er(se))}else{const on=or($,se,Fe);if(!on.matched)return null;Pt=on.consumedSegments,Ft=Fe.slice(on.lastChild),_t=new Di(Pt,on.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xn(se),yn(se),se.component,se,mn($),Sn($)+Pt.length,er(se))}const $t=function fn(Ce){return Ce.children?Ce.children:Ce.loadChildren?Ce._loadedConfig.routes:[]}(se),{segmentGroup:Ai,slicedSegments:Yi}=zn($,Pt,Ft,$t.filter(on=>void 0===on.redirectTo),this.relativeLinkResolution);if(0===Yi.length&&Ai.hasChildren()){const on=this.processChildren($t,Ai);return null===on?null:[new Ke(_t,on)]}if(0===$t.length&&0===Yi.length)return[new Ke(_t,[])];const xi=yn(se)===it,nn=this.processSegment($t,Ai,Yi,xi?H:it);return null===nn?null:[new Ke(_t,nn)]}}function $r(Ce){const se=Ce.value.routeConfig;return se&&""===se.path&&void 0===se.redirectTo}function wr(Ce){const se=[],$=new Set;for(const Fe of Ce){if(!$r(Fe)){se.push(Fe);continue}const it=se.find(_t=>Fe.value.routeConfig===_t.value.routeConfig);void 0!==it?(it.children.push(...Fe.children),$.add(it)):se.push(Fe)}for(const Fe of $){const it=wr(Fe.children);se.push(new Ke(Fe.value,it))}return se.filter(Fe=>!$.has(Fe))}function mn(Ce){let se=Ce;for(;se._sourceSegment;)se=se._sourceSegment;return se}function Sn(Ce){let se=Ce,$=se._segmentIndexShift?se._segmentIndexShift:0;for(;se._sourceSegment;)se=se._sourceSegment,$+=se._segmentIndexShift?se._segmentIndexShift:0;return $-1}function Xn(Ce){return Ce.data||{}}function er(Ce){return Ce.resolve||{}}function _s(Ce){return[...Object.keys(Ce),...Object.getOwnPropertySymbols(Ce)]}function fe(Ce){return(0,Re.w)(se=>{const $=Ce(se);return $?(0,b.D)($).pipe((0,oe.U)(()=>se)):(0,_.of)(se)})}class at{}class pt extends class ke{shouldDetach(se){return!1}store(se,$){}shouldAttach(se){return!1}retrieve(se){return null}shouldReuseRoute(se,$){return se.routeConfig===$.routeConfig}}{}const Vt=new e.OlP("ROUTES");class qt{constructor(se,$,Fe,it){this.injector=se,this.compiler=$,this.onLoadStartListener=Fe,this.onLoadEndListener=it}load(se,$){if($._loader$)return $._loader$;this.onLoadStartListener&&this.onLoadStartListener($);const it=this.loadModuleFactory($.loadChildren).pipe((0,oe.U)(_t=>{this.onLoadEndListener&&this.onLoadEndListener($);const Pt=_t.create(se);return new Li(l(Pt.injector.get(Vt,void 0,e.XFs.Self|e.XFs.Optional)).map(In),Pt)}),(0,q.K)(_t=>{throw $._loader$=void 0,_t}));return $._loader$=new m.c(it,()=>new L.xQ).pipe((0,Ue.x)()),$._loader$}loadModuleFactory(se){return n(se()).pipe((0,de.zg)($=>$ instanceof e.YKP?(0,_.of)($):(0,b.D)(this.compiler.compileModuleAsync($))))}}class pi{shouldProcessUrl(se){return!0}extract(se){return se}merge(se,$){return se}}function oi(Ce){throw Ce}function Si(Ce,se,$){return se.parse("/")}function Gi(Ce,se){return(0,_.of)(null)}const An={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Zi=(()=>{class Ce{constructor($,Fe,it,_t,Pt,Ft,$t){this.rootComponentType=$,this.urlSerializer=Fe,this.rootContexts=it,this.location=_t,this.config=$t,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new L.xQ,this.errorHandler=oi,this.malformedUriErrorHandler=Si,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Gi,afterPreactivation:Gi},this.urlHandlingStrategy=new pi,this.routeReuseStrategy=new pt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Pt.get(e.h0i),this.console=Pt.get(e.c2e);const xi=Pt.get(e.R0b);this.isNgZoneEnabled=xi instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig($t),this.currentUrlTree=function a(){return new Lt(new Ee([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qt(Pt,Ft,nn=>this.triggerEvent(new Je(nn)),nn=>this.triggerEvent(new nt(nn))),this.routerState=Ye(this.currentUrlTree,this.rootComponentType),this.transitions=new w.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 $;return null===($=this.location.getState())||void 0===$?void 0:$.\u0275routerPageId}setupNavigations($){const Fe=this.events;return $.pipe((0,O.h)(it=>0!==it.id),(0,oe.U)(it=>Object.assign(Object.assign({},it),{extractedUrl:this.urlHandlingStrategy.extract(it.rawUrl)})),(0,Re.w)(it=>{let _t=!1,Pt=!1;return(0,_.of)(it).pipe((0,Le.b)(Ft=>{this.currentNavigation={id:Ft.id,initialUrl:Ft.currentRawUrl,extractedUrl:Ft.extractedUrl,trigger:Ft.source,extras:Ft.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Re.w)(Ft=>{const $t=this.browserUrlTree.toString(),Ai=!this.navigated||Ft.extractedUrl.toString()!==$t||$t!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ai)&&this.urlHandlingStrategy.shouldProcessUrl(Ft.rawUrl))return Pi(Ft.source)&&(this.browserUrlTree=Ft.extractedUrl),(0,_.of)(Ft).pipe((0,Re.w)(xi=>{const nn=this.transitions.getValue();return Fe.next(new Be(xi.id,this.serializeUrl(xi.extractedUrl),xi.source,xi.restoredState)),nn!==this.transitions.getValue()?P.E:Promise.resolve(xi)}),function _i(Ce,se,$,Fe){return(0,Re.w)(it=>function Wt(Ce,se,$,Fe,it){return new ii(Ce,se,$,Fe,it).apply()}(Ce,se,$,it.extractedUrl,Fe).pipe((0,oe.U)(_t=>Object.assign(Object.assign({},it),{urlAfterRedirects:_t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Le.b)(xi=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xi.urlAfterRedirects})}),function fr(Ce,se,$,Fe,it){return(0,de.zg)(_t=>function vn(Ce,se,$,Fe,it="emptyOnly",_t="legacy"){try{const Pt=new Pn(Ce,se,$,Fe,it,_t).recognize();return null===Pt?pn(new Vi):(0,_.of)(Pt)}catch(Pt){return pn(Pt)}}(Ce,se,_t.urlAfterRedirects,$(_t.urlAfterRedirects),Fe,it).pipe((0,oe.U)(Pt=>Object.assign(Object.assign({},_t),{targetSnapshot:Pt}))))}(this.rootComponentType,this.config,xi=>this.serializeUrl(xi),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Le.b)(xi=>{if("eager"===this.urlUpdateStrategy){if(!xi.extras.skipLocationChange){const on=this.urlHandlingStrategy.merge(xi.urlAfterRedirects,xi.rawUrl);this.setBrowserUrl(on,xi)}this.browserUrlTree=xi.urlAfterRedirects}const nn=new be(xi.id,this.serializeUrl(xi.extractedUrl),this.serializeUrl(xi.urlAfterRedirects),xi.targetSnapshot);Fe.next(nn)}));if(Ai&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:nn,extractedUrl:on,source:os,restoredState:Cr,extras:vr}=Ft,Mr=new Be(nn,this.serializeUrl(on),os,Cr);Fe.next(Mr);const ls=Ye(on,this.rootComponentType).snapshot;return(0,_.of)(Object.assign(Object.assign({},Ft),{targetSnapshot:ls,urlAfterRedirects:on,extras:Object.assign(Object.assign({},vr),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Ft.rawUrl,Ft.resolve(null),P.E}),fe(Ft=>{const{targetSnapshot:$t,id:Ai,extractedUrl:Yi,rawUrl:xi,extras:{skipLocationChange:nn,replaceUrl:on}}=Ft;return this.hooks.beforePreactivation($t,{navigationId:Ai,appliedUrlTree:Yi,rawUrlTree:xi,skipLocationChange:!!nn,replaceUrl:!!on})}),(0,Le.b)(Ft=>{const $t=new Ie(Ft.id,this.serializeUrl(Ft.extractedUrl),this.serializeUrl(Ft.urlAfterRedirects),Ft.targetSnapshot);this.triggerEvent($t)}),(0,oe.U)(Ft=>Object.assign(Object.assign({},Ft),{guards:Ne(Ft.targetSnapshot,Ft.currentSnapshot,this.rootContexts)})),function Kn(Ce,se){return(0,de.zg)($=>{const{targetSnapshot:Fe,currentSnapshot:it,guards:{canActivateChecks:_t,canDeactivateChecks:Pt}}=$;return 0===Pt.length&&0===_t.length?(0,_.of)(Object.assign(Object.assign({},$),{guardsResult:!0})):function Wn(Ce,se,$,Fe){return(0,b.D)(Ce).pipe((0,de.zg)(it=>function gi(Ce,se,$,Fe,it){const _t=se&&se.routeConfig?se.routeConfig.canDeactivate:null;if(!_t||0===_t.length)return(0,_.of)(!0);const Pt=_t.map(Ft=>{const $t=we(Ft,se,it);let Ai;if(function rr(Ce){return Ce&&hn(Ce.canDeactivate)}($t))Ai=n($t.canDeactivate(Ce,se,$,Fe));else{if(!hn($t))throw new Error("Invalid CanDeactivate guard");Ai=n($t(Ce,se,$,Fe))}return Ai.pipe((0,ue.P)())});return(0,_.of)(Pt).pipe(En())}(it.component,it.route,$,se,Fe)),(0,ue.P)(it=>!0!==it,!0))}(Pt,Fe,it,Ce).pipe((0,de.zg)(Ft=>Ft&&function cr(Ce){return"boolean"==typeof Ce}(Ft)?function pr(Ce,se,$,Fe){return(0,b.D)(se).pipe((0,te.b)(it=>(0,C.z)(function Xt(Ce,se){return null!==Ce&&se&&se(new Ve(Ce)),(0,_.of)(!0)}(it.route.parent,Fe),function Qr(Ce,se){return null!==Ce&&se&&se(new z(Ce)),(0,_.of)(!0)}(it.route,Fe),function Ei(Ce,se,$){const Fe=se[se.length-1],_t=se.slice(0,se.length-1).reverse().map(Pt=>function De(Ce){const se=Ce.routeConfig?Ce.routeConfig.canActivateChild:null;return se&&0!==se.length?{node:Ce,guards:se}:null}(Pt)).filter(Pt=>null!==Pt).map(Pt=>(0,I.P)(()=>{const Ft=Pt.guards.map($t=>{const Ai=we($t,Pt.node,$);let Yi;if(function Lr(Ce){return Ce&&hn(Ce.canActivateChild)}(Ai))Yi=n(Ai.canActivateChild(Fe,Ce));else{if(!hn(Ai))throw new Error("Invalid CanActivateChild guard");Yi=n(Ai(Fe,Ce))}return Yi.pipe((0,ue.P)())});return(0,_.of)(Ft).pipe(En())}));return(0,_.of)(_t).pipe(En())}(Ce,it.path,$),function si(Ce,se,$){const Fe=se.routeConfig?se.routeConfig.canActivate:null;if(!Fe||0===Fe.length)return(0,_.of)(!0);const it=Fe.map(_t=>(0,I.P)(()=>{const Pt=we(_t,se,$);let Ft;if(function Qn(Ce){return Ce&&hn(Ce.canActivate)}(Pt))Ft=n(Pt.canActivate(se,Ce));else{if(!hn(Pt))throw new Error("Invalid CanActivate guard");Ft=n(Pt(se,Ce))}return Ft.pipe((0,ue.P)())}));return(0,_.of)(it).pipe(En())}(Ce,it.route,$))),(0,ue.P)(it=>!0!==it,!0))}(Fe,_t,Ce,se):(0,_.of)(Ft)),(0,oe.U)(Ft=>Object.assign(Object.assign({},$),{guardsResult:Ft})))})}(this.ngModule.injector,Ft=>this.triggerEvent(Ft)),(0,Le.b)(Ft=>{if(Vn(Ft.guardsResult)){const Ai=Te(`Redirecting to "${this.serializeUrl(Ft.guardsResult)}"`);throw Ai.url=Ft.guardsResult,Ai}const $t=new pe(Ft.id,this.serializeUrl(Ft.extractedUrl),this.serializeUrl(Ft.urlAfterRedirects),Ft.targetSnapshot,!!Ft.guardsResult);this.triggerEvent($t)}),(0,O.h)(Ft=>!!Ft.guardsResult||(this.restoreHistory(Ft),this.cancelNavigationTransition(Ft,""),!1)),fe(Ft=>{if(Ft.guards.canActivateChecks.length)return(0,_.of)(Ft).pipe((0,Le.b)($t=>{const Ai=new Se($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(Ai)}),(0,Re.w)($t=>{let Ai=!1;return(0,_.of)($t).pipe(function aa(Ce,se){return(0,de.zg)($=>{const{targetSnapshot:Fe,guards:{canActivateChecks:it}}=$;if(!it.length)return(0,_.of)($);let _t=0;return(0,b.D)(it).pipe((0,te.b)(Pt=>function gs(Ce,se,$,Fe){return function oa(Ce,se,$,Fe){const it=_s(Ce);if(0===it.length)return(0,_.of)({});const _t={};return(0,b.D)(it).pipe((0,de.zg)(Pt=>function As(Ce,se,$,Fe){const it=we(Ce,se,Fe);return n(it.resolve?it.resolve(se,$):it(se,$))}(Ce[Pt],se,$,Fe).pipe((0,Le.b)(Ft=>{_t[Pt]=Ft}))),(0,G.h)(1),(0,de.zg)(()=>_s(_t).length===it.length?(0,_.of)(_t):P.E))}(Ce._resolve,Ce,se,Fe).pipe((0,oe.U)(_t=>(Ce._resolvedData=_t,Ce.data=Object.assign(Object.assign({},Ce.data),ri(Ce,$).resolve),null)))}(Pt.route,Fe,Ce,se)),(0,Le.b)(()=>_t++),(0,G.h)(1),(0,de.zg)(Pt=>_t===it.length?(0,_.of)($):P.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Le.b)({next:()=>Ai=!0,complete:()=>{Ai||(this.restoreHistory($t),this.cancelNavigationTransition($t,"At least one route resolver didn't emit any value."))}}))}),(0,Le.b)($t=>{const Ai=new Xe($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(Ai)}))}),fe(Ft=>{const{targetSnapshot:$t,id:Ai,extractedUrl:Yi,rawUrl:xi,extras:{skipLocationChange:nn,replaceUrl:on}}=Ft;return this.hooks.afterPreactivation($t,{navigationId:Ai,appliedUrlTree:Yi,rawUrlTree:xi,skipLocationChange:!!nn,replaceUrl:!!on})}),(0,oe.U)(Ft=>{const $t=function _n(Ce,se,$){const Fe=Ni(Ce,se._root,$?$._root:void 0);return new F(Fe,se)}(this.routeReuseStrategy,Ft.targetSnapshot,Ft.currentRouterState);return Object.assign(Object.assign({},Ft),{targetRouterState:$t})}),(0,Le.b)(Ft=>{this.currentUrlTree=Ft.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ft.urlAfterRedirects,Ft.rawUrl),this.routerState=Ft.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ft.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ft),this.browserUrlTree=Ft.urlAfterRedirects)}),((Ce,se,$)=>(0,oe.U)(Fe=>(new vi(se,Fe.targetRouterState,Fe.currentRouterState,$).activate(Ce),Fe)))(this.rootContexts,this.routeReuseStrategy,Ft=>this.triggerEvent(Ft)),(0,Le.b)({next(){_t=!0},complete(){_t=!0}}),(0,ze.x)(()=>{var Ft;_t||Pt||this.cancelNavigationTransition(it,`Navigation ID ${it.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Ft=this.currentNavigation)||void 0===Ft?void 0:Ft.id)===it.id&&(this.currentNavigation=null)}),(0,q.K)(Ft=>{if(Pt=!0,function Ae(Ce){return Ce&&Ce[Qe]}(Ft)){const $t=Vn(Ft.url);$t||(this.navigated=!0,this.restoreHistory(it,!0));const Ai=new R(it.id,this.serializeUrl(it.extractedUrl),Ft.message);Fe.next(Ai),$t?setTimeout(()=>{const Yi=this.urlHandlingStrategy.merge(Ft.url,this.rawUrlTree),xi={skipLocationChange:it.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Pi(it.source)};this.scheduleNavigation(Yi,"imperative",null,xi,{resolve:it.resolve,reject:it.reject,promise:it.promise})},0):it.resolve(!1)}else{this.restoreHistory(it,!0);const $t=new me(it.id,this.serializeUrl(it.extractedUrl),Ft);Fe.next($t);try{it.resolve(this.errorHandler(Ft))}catch(Ai){it.reject(Ai)}}return P.E}))}))}resetRootComponentType($){this.rootComponentType=$,this.routerState.root.component=this.rootComponentType}setTransition($){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),$))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe($=>{const Fe="popstate"===$.type?"popstate":"hashchange";"popstate"===Fe&&setTimeout(()=>{var it;const _t={replaceUrl:!0},Pt=(null===(it=$.state)||void 0===it?void 0:it.navigationId)?$.state:null;if(Pt){const $t=Object.assign({},Pt);delete $t.navigationId,delete $t.\u0275routerPageId,0!==Object.keys($t).length&&(_t.state=$t)}const Ft=this.parseUrl($.url);this.scheduleNavigation(Ft,Fe,Pt,_t)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent($){this.events.next($)}resetConfig($){Un($),this.config=$.map(In),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($,Fe={}){const{relativeTo:it,queryParams:_t,fragment:Pt,queryParamsHandling:Ft,preserveFragment:$t}=Fe,Ai=it||this.routerState.root,Yi=$t?this.currentUrlTree.fragment:Pt;let xi=null;switch(Ft){case"merge":xi=Object.assign(Object.assign({},this.currentUrlTree.queryParams),_t);break;case"preserve":xi=this.currentUrlTree.queryParams;break;default:xi=_t||null}return null!==xi&&(xi=this.removeEmptyProps(xi)),function Xi(Ce,se,$,Fe,it){if(0===$.length)return dn(se.root,se.root,se,Fe,it);const _t=function Oi(Ce){if("string"==typeof Ce[0]&&1===Ce.length&&"/"===Ce[0])return new xn(!0,0,Ce);let se=0,$=!1;const Fe=Ce.reduce((it,_t,Pt)=>{if("object"==typeof _t&&null!=_t){if(_t.outlets){const Ft={};return t(_t.outlets,($t,Ai)=>{Ft[Ai]="string"==typeof $t?$t.split("/"):$t}),[...it,{outlets:Ft}]}if(_t.segmentPath)return[...it,_t.segmentPath]}return"string"!=typeof _t?[...it,_t]:0===Pt?(_t.split("/").forEach((Ft,$t)=>{0==$t&&"."===Ft||(0==$t&&""===Ft?$=!0:".."===Ft?se++:""!=Ft&&it.push(Ft))}),it):[...it,_t]},[]);return new xn($,se,Fe)}($);if(_t.toRoot())return dn(se.root,new Ee([],{}),se,Fe,it);const Pt=function Nn(Ce,se,$){if(Ce.isAbsolute)return new kn(se.root,!0,0);if(-1===$.snapshot._lastPathIndex){const _t=$.snapshot._urlSegment;return new kn(_t,_t===se.root,0)}const Fe=en(Ce.commands[0])?0:1;return function Mt(Ce,se,$){let Fe=Ce,it=se,_t=$;for(;_t>it;){if(_t-=it,Fe=Fe.parent,!Fe)throw new Error("Invalid number of '../'");it=Fe.segments.length}return new kn(Fe,!1,it-_t)}($.snapshot._urlSegment,$.snapshot._lastPathIndex+Fe,Ce.numberOfDoubleDots)}(_t,se,Ce),Ft=Pt.processChildren?kt(Pt.segmentGroup,Pt.index,_t.commands):rt(Pt.segmentGroup,Pt.index,_t.commands);return dn(Pt.segmentGroup,Ft,se,Fe,it)}(Ai,this.currentUrlTree,$,xi,null!=Yi?Yi:null)}navigateByUrl($,Fe={skipLocationChange:!1}){const it=Vn($)?$:this.parseUrl($),_t=this.urlHandlingStrategy.merge(it,this.rawUrlTree);return this.scheduleNavigation(_t,"imperative",null,Fe)}navigate($,Fe={skipLocationChange:!1}){return function Bi(Ce){for(let se=0;se{const _t=$[it];return null!=_t&&(Fe[it]=_t),Fe},{})}processNavigations(){this.navigations.subscribe($=>{this.navigated=!0,this.lastSuccessfulId=$.id,this.currentPageId=$.targetPageId,this.events.next(new W($.id,this.serializeUrl($.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,$.resolve(!0)},$=>{this.console.warn(`Unhandled Navigation Error: ${$}`)})}scheduleNavigation($,Fe,it,_t,Pt){var Ft,$t,Ai;if(this.disposed)return Promise.resolve(!1);const Yi=this.transitions.value,xi=Pi(Fe)&&Yi&&!Pi(Yi.source),nn=Yi.rawUrl.toString()===$.toString(),on=Yi.id===(null===(Ft=this.currentNavigation)||void 0===Ft?void 0:Ft.id);if(xi&&nn&&on)return Promise.resolve(!0);let Cr,vr,Mr;Pt?(Cr=Pt.resolve,vr=Pt.reject,Mr=Pt.promise):Mr=new Promise((Xr,Es)=>{Cr=Xr,vr=Es});const ls=++this.navigationId;let Sr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(it=this.location.getState()),Sr=it&&it.\u0275routerPageId?it.\u0275routerPageId:_t.replaceUrl||_t.skipLocationChange?null!==($t=this.browserPageId)&&void 0!==$t?$t:0:(null!==(Ai=this.browserPageId)&&void 0!==Ai?Ai:0)+1):Sr=0,this.setTransition({id:ls,targetPageId:Sr,source:Fe,restoredState:it,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:$,extras:_t,resolve:Cr,reject:vr,promise:Mr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Mr.catch(Xr=>Promise.reject(Xr))}setBrowserUrl($,Fe){const it=this.urlSerializer.serialize($),_t=Object.assign(Object.assign({},Fe.extras.state),this.generateNgRouterState(Fe.id,Fe.targetPageId));this.location.isCurrentPathEqualTo(it)||Fe.extras.replaceUrl?this.location.replaceState(it,"",_t):this.location.go(it,"",_t)}restoreHistory($,Fe=!1){var it,_t;if("computed"===this.canceledNavigationResolution){const Pt=this.currentPageId-$.targetPageId;"popstate"!==$.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(it=this.currentNavigation)||void 0===it?void 0:it.finalUrl)||0===Pt?this.currentUrlTree===(null===(_t=this.currentNavigation)||void 0===_t?void 0:_t.finalUrl)&&0===Pt&&(this.resetState($),this.browserUrlTree=$.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Pt)}else"replace"===this.canceledNavigationResolution&&(Fe&&this.resetState($),this.resetUrlToCurrentUrlTree())}resetState($){this.routerState=$.currentRouterState,this.currentUrlTree=$.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,$.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition($,Fe){const it=new R($.id,this.serializeUrl($.extractedUrl),Fe);this.triggerEvent(it),$.resolve(!1)}generateNgRouterState($,Fe){return"computed"===this.canceledNavigationResolution?{navigationId:$,\u0275routerPageId:Fe}:{navigationId:$}}}return Ce.\u0275fac=function($){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function Pi(Ce){return"imperative"!==Ce}let Hn=(()=>{class Ce{constructor($,Fe,it,_t,Pt){this.router=$,this.route=Fe,this.tabIndexAttribute=it,this.renderer=_t,this.el=Pt,this.commands=null,this.onChanges=new L.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl($){if(null!=this.tabIndexAttribute)return;const Fe=this.renderer,it=this.el.nativeElement;null!==$?Fe.setAttribute(it,"tabindex",$):Fe.removeAttribute(it,"tabindex")}ngOnChanges($){this.onChanges.next(this)}set routerLink($){null!=$?(this.commands=Array.isArray($)?$:[$],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const $={skipLocationChange:zi(this.skipLocationChange),replaceUrl:zi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,$),!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:zi(this.preserveFragment)})}}return Ce.\u0275fac=function($){return new($||Ce)(e.Y36(Zi),e.Y36(Dt),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function($,Fe){1&$&&e.NdJ("click",function(){return Fe.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ce})(),ln=(()=>{class Ce{constructor($,Fe,it){this.router=$,this.route=Fe,this.locationStrategy=it,this.commands=null,this.href=null,this.onChanges=new L.xQ,this.subscription=$.events.subscribe(_t=>{_t instanceof W&&this.updateTargetUrlAndHref()})}set routerLink($){this.commands=null!=$?Array.isArray($)?$:[$]:null}ngOnChanges($){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick($,Fe,it,_t,Pt){if(0!==$||Fe||it||_t||Pt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Ft={skipLocationChange:zi(this.skipLocationChange),replaceUrl:zi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ft),!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:zi(this.preserveFragment)})}}return Ce.\u0275fac=function($){return new($||Ce)(e.Y36(Zi),e.Y36(Dt),e.Y36(je.S$))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function($,Fe){1&$&&e.NdJ("click",function(_t){return Fe.onClick(_t.button,_t.ctrlKey,_t.shiftKey,_t.altKey,_t.metaKey)}),2&$&&e.uIk("target",Fe.target)("href",Fe.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]}),Ce})();function zi(Ce){return""===Ce||!!Ce}class Wa{}class Kr{preload(se,$){return(0,_.of)(null)}}let is=(()=>{class Ce{constructor($,Fe,it,_t){this.router=$,this.injector=it,this.preloadingStrategy=_t,this.loader=new qt(it,Fe,$t=>$.triggerEvent(new Je($t)),$t=>$.triggerEvent(new nt($t)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,O.h)($=>$ instanceof W),(0,te.b)(()=>this.preload())).subscribe(()=>{})}preload(){const $=this.injector.get(e.h0i);return this.processRoutes($,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes($,Fe){const it=[];for(const _t of Fe)if(_t.loadChildren&&!_t.canLoad&&_t._loadedConfig){const Pt=_t._loadedConfig;it.push(this.processRoutes(Pt.module,Pt.routes))}else _t.loadChildren&&!_t.canLoad?it.push(this.preloadConfig($,_t)):_t.children&&it.push(this.processRoutes($,_t.children));return(0,b.D)(it).pipe((0,le.J)(),(0,oe.U)(_t=>{}))}preloadConfig($,Fe){return this.preloadingStrategy.preload(Fe,()=>(Fe._loadedConfig?(0,_.of)(Fe._loadedConfig):this.loader.load($.injector,Fe)).pipe((0,de.zg)(_t=>(Fe._loadedConfig=_t,this.processRoutes(_t.module,_t.routes)))))}}return Ce.\u0275fac=function($){return new($||Ce)(e.LFG(Zi),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(Wa))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ns=(()=>{class Ce{constructor($,Fe,it={}){this.router=$,this.viewportScroller=Fe,this.options=it,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},it.scrollPositionRestoration=it.scrollPositionRestoration||"disabled",it.anchorScrolling=it.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($=>{$ instanceof Be?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=$.navigationTrigger,this.restoredId=$.restoredState?$.restoredState.navigationId:0):$ instanceof W&&(this.lastId=$.id,this.scheduleScrollEvent($,this.router.parseUrl($.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe($=>{$ instanceof D&&($.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition($.position):$.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor($.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent($,Fe){this.router.triggerEvent(new D($,"popstate"===this.lastSource?this.store[this.restoredId]:null,Fe))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ce.\u0275fac=function($){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Wr=new e.OlP("ROUTER_CONFIGURATION"),xr=new e.OlP("ROUTER_FORROOT_GUARD"),rs=[je.Ye,{provide:ce,useClass:He},{provide:Zi,useFactory:function dd(Ce,se,$,Fe,it,_t,Pt={},Ft,$t){const Ai=new Zi(null,Ce,se,$,Fe,it,l(_t));return Ft&&(Ai.urlHandlingStrategy=Ft),$t&&(Ai.routeReuseStrategy=$t),function ud(Ce,se){Ce.errorHandler&&(se.errorHandler=Ce.errorHandler),Ce.malformedUriErrorHandler&&(se.malformedUriErrorHandler=Ce.malformedUriErrorHandler),Ce.onSameUrlNavigation&&(se.onSameUrlNavigation=Ce.onSameUrlNavigation),Ce.paramsInheritanceStrategy&&(se.paramsInheritanceStrategy=Ce.paramsInheritanceStrategy),Ce.relativeLinkResolution&&(se.relativeLinkResolution=Ce.relativeLinkResolution),Ce.urlUpdateStrategy&&(se.urlUpdateStrategy=Ce.urlUpdateStrategy),Ce.canceledNavigationResolution&&(se.canceledNavigationResolution=Ce.canceledNavigationResolution)}(Pt,Ai),Pt.enableTracing&&Ai.events.subscribe(Yi=>{var xi,nn;null===(xi=console.group)||void 0===xi||xi.call(console,`Router Event: ${Yi.constructor.name}`),console.log(Yi.toString()),console.log(Yi),null===(nn=console.groupEnd)||void 0===nn||nn.call(console)}),Ai},deps:[ce,Mn,je.Ye,e.zs3,e.Sil,Vt,Wr,[class ni{},new e.FiY],[at,new e.FiY]]},Mn,{provide:Dt,useFactory:function Cs(Ce){return Ce.routerState.root},deps:[Zi]},is,Kr,class bs{preload(se,$){return $().pipe((0,q.K)(()=>(0,_.of)(null)))}},{provide:Wr,useValue:{enableTracing:!1}}];function Bo(){return new e.PXZ("Router",Zi)}let ko=(()=>{class Ce{constructor($,Fe){}static forRoot($,Fe){return{ngModule:Ce,providers:[rs,Ya($),{provide:xr,useFactory:No,deps:[[Zi,new e.FiY,new e.tp0]]},{provide:Wr,useValue:Fe||{}},{provide:je.S$,useFactory:la,deps:[je.lw,[new e.tBr(je.mr),new e.FiY],Wr]},{provide:ns,useFactory:ss,deps:[Zi,je.EM,Wr]},{provide:Wa,useExisting:Fe&&Fe.preloadingStrategy?Fe.preloadingStrategy:Kr},{provide:e.PXZ,multi:!0,useFactory:Bo},[vs,{provide:e.ip1,multi:!0,useFactory:ca,deps:[vs]},{provide:da,useFactory:Ts,deps:[vs]},{provide:e.tb,multi:!0,useExisting:da}]]}}static forChild($){return{ngModule:Ce,providers:[Ya($)]}}}return Ce.\u0275fac=function($){return new($||Ce)(e.LFG(xr,8),e.LFG(Zi,8))},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({}),Ce})();function ss(Ce,se,$){return $.scrollOffset&&se.setOffset($.scrollOffset),new ns(Ce,se,$)}function la(Ce,se,$={}){return $.useHash?new je.Do(Ce,se):new je.b0(Ce,se)}function No(Ce){return"guarded"}function Ya(Ce){return[{provide:e.deG,multi:!0,useValue:Ce},{provide:Vt,multi:!0,useValue:Ce}]}let vs=(()=>{class Ce{constructor($){this.injector=$,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new L.xQ}appInitializer(){return this.injector.get(je.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Fe=null;const it=new Promise(Ft=>Fe=Ft),_t=this.injector.get(Zi),Pt=this.injector.get(Wr);return"disabled"===Pt.initialNavigation?(_t.setUpLocationChangeListener(),Fe(!0)):"enabled"===Pt.initialNavigation||"enabledBlocking"===Pt.initialNavigation?(_t.hooks.afterPreactivation=()=>this.initNavigation?(0,_.of)(null):(this.initNavigation=!0,Fe(!0),this.resultOfPreactivationDone),_t.initialNavigation()):Fe(!0),it})}bootstrapListener($){const Fe=this.injector.get(Wr),it=this.injector.get(is),_t=this.injector.get(ns),Pt=this.injector.get(Zi),Ft=this.injector.get(e.z2F);$===Ft.components[0]&&(("enabledNonBlocking"===Fe.initialNavigation||void 0===Fe.initialNavigation)&&Pt.initialNavigation(),it.setUpPreloading(),_t.init(),Pt.resetRootComponentType(Ft.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ce.\u0275fac=function($){return new($||Ce)(e.LFG(e.zs3))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function ca(Ce){return Ce.appInitializer.bind(Ce)}function Ts(Ce){return Ce.bootstrapListener.bind(Ce)}const da=new e.OlP("Router Initializer")},51062:($e,_e,p)=>{"use strict";p.d(_e,{Zw:()=>L,aw:()=>je,X$:()=>le,sK:()=>Ue});var e=p(5e3),b=p(21086),_=p(54715),w=p(30567),g=p(61221),A=p(88514),E=p(72986),C=p(5154),I=p(24850),P=p(21406),m=p(87545);class L{}let O=(()=>{class ye extends L{getTranslation(W){return(0,b.of)({})}}return ye.\u0275fac=function(){let Be;return function(R){return(Be||(Be=e.n5z(ye)))(R||ye)}}(),ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class G{}let ne=(()=>{class ye{handle(W){return W.key}}return ye.\u0275fac=function(W){return new(W||ye)},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();function ge(ye,Be){if(ye===Be)return!0;if(null===ye||null===Be)return!1;if(ye!=ye&&Be!=Be)return!0;let me,be,Ie,W=typeof ye;if(W==typeof Be&&"object"==W){if(!Array.isArray(ye)){if(Array.isArray(Be))return!1;for(be in Ie=Object.create(null),ye){if(!ge(ye[be],Be[be]))return!1;Ie[be]=!0}for(be in Be)if(!(be in Ie)&&void 0!==Be[be])return!1;return!0}if(!Array.isArray(Be))return!1;if((me=ye.length)==Be.length){for(be=0;be{Me(Be[R])?R in ye?W[R]=oe(ye[R],Be[R]):Object.assign(W,{[R]:Be[R]}):Object.assign(W,{[R]:Be[R]})}),W}class Re{}let T=(()=>{class ye extends Re{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(W,R){let me;return me="string"==typeof W?this.interpolateString(W,R):"function"==typeof W?this.interpolateFunction(W,R):W,me}getValue(W,R){let me="string"==typeof R?R.split("."):[R];R="";do{R+=me.shift(),!J(W)||!J(W[R])||"object"!=typeof W[R]&&me.length?me.length?R+=".":W=void 0:(W=W[R],R="")}while(me.length);return W}interpolateFunction(W,R){return W(R)}interpolateString(W,R){return R?W.replace(this.templateMatcher,(me,be)=>{let Ie=this.getValue(R,be);return J(Ie)?Ie:me}):W}}return ye.\u0275fac=function(){let Be;return function(R){return(Be||(Be=e.n5z(ye)))(R||ye)}}(),ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class j{}let Y=(()=>{class ye extends j{compile(W,R){return W}compileTranslations(W,R){return W}}return ye.\u0275fac=function(){let Be;return function(R){return(Be||(Be=e.n5z(ye)))(R||ye)}}(),ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class q{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"),ue=new e.OlP("USE_DEFAULT_LANG"),de=new e.OlP("DEFAULT_LANGUAGE"),Le=new e.OlP("USE_EXTEND");let Ue=(()=>{class ye{constructor(W,R,me,be,Ie,pe=!0,Se=!1,Xe=!1,Je){this.store=W,this.currentLoader=R,this.compiler=me,this.parser=be,this.missingTranslationHandler=Ie,this.useDefaultLang=pe,this.isolate=Se,this.extend=Xe,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(W){this.isolate?this._defaultLang=W:this.store.defaultLang=W}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(W){this.isolate?this._currentLang=W:this.store.currentLang=W}get langs(){return this.isolate?this._langs:this.store.langs}set langs(W){this.isolate?this._langs=W:this.store.langs=W}get translations(){return this.isolate?this._translations:this.store.translations}set translations(W){this.isolate?this._translations=W:this.store.translations=W}setDefaultLang(W){if(W===this.defaultLang)return;let R=this.retrieveTranslations(W);void 0!==R?(null==this.defaultLang&&(this.defaultLang=W),R.pipe((0,E.q)(1)).subscribe(me=>{this.changeDefaultLang(W)})):this.changeDefaultLang(W)}getDefaultLang(){return this.defaultLang}use(W){if(W===this.currentLang)return(0,b.of)(this.translations[W]);let R=this.retrieveTranslations(W);return void 0!==R?(this.currentLang||(this.currentLang=W),R.pipe((0,E.q)(1)).subscribe(me=>{this.changeLang(W)}),R):(this.changeLang(W),(0,b.of)(this.translations[W]))}retrieveTranslations(W){let R;return(void 0===this.translations[W]||this.extend)&&(this._translationRequests[W]=this._translationRequests[W]||this.getTranslation(W),R=this._translationRequests[W]),R}getTranslation(W){this.pending=!0;const R=this.currentLoader.getTranslation(W).pipe((0,C.d)(1),(0,E.q)(1));return this.loadingTranslations=R.pipe((0,I.U)(me=>this.compiler.compileTranslations(me,W)),(0,C.d)(1),(0,E.q)(1)),this.loadingTranslations.subscribe({next:me=>{this.translations[W]=this.extend&&this.translations[W]?Object.assign(Object.assign({},me),this.translations[W]):me,this.updateLangs(),this.pending=!1},error:me=>{this.pending=!1}}),R}setTranslation(W,R,me=!1){R=this.compiler.compileTranslations(R,W),this.translations[W]=(me||this.extend)&&this.translations[W]?oe(this.translations[W],R):R,this.updateLangs(),this.onTranslationChange.emit({lang:W,translations:this.translations[W]})}getLangs(){return this.langs}addLangs(W){W.forEach(R=>{-1===this.langs.indexOf(R)&&this.langs.push(R)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(W,R,me){let be;if(R instanceof Array){let Ie={},pe=!1;for(let Se of R)Ie[Se]=this.getParsedResult(W,Se,me),(0,_.b)(Ie[Se])&&(pe=!0);if(pe){const Se=R.map(Xe=>(0,_.b)(Ie[Xe])?Ie[Xe]:(0,b.of)(Ie[Xe]));return(0,w.D)(Se).pipe((0,I.U)(Xe=>{let Je={};return Xe.forEach((nt,Ve)=>{Je[R[Ve]]=nt}),Je}))}return Ie}if(W&&(be=this.parser.interpolate(this.parser.getValue(W,R),me)),void 0===be&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(be=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],R),me)),void 0===be){let Ie={key:R,translateService:this};void 0!==me&&(Ie.interpolateParams=me),be=this.missingTranslationHandler.handle(Ie)}return void 0!==be?be:R}get(W,R){if(!J(W)||!W.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,P.b)(me=>(me=this.getParsedResult(me,W,R),(0,_.b)(me)?me:(0,b.of)(me))));{let me=this.getParsedResult(this.translations[this.currentLang],W,R);return(0,_.b)(me)?me:(0,b.of)(me)}}getStreamOnTranslationChange(W,R){if(!J(W)||!W.length)throw new Error('Parameter "key" required');return(0,g.z)((0,A.P)(()=>this.get(W,R)),this.onTranslationChange.pipe((0,m.w)(me=>{const be=this.getParsedResult(me.translations,W,R);return"function"==typeof be.subscribe?be:(0,b.of)(be)})))}stream(W,R){if(!J(W)||!W.length)throw new Error('Parameter "key" required');return(0,g.z)((0,A.P)(()=>this.get(W,R)),this.onLangChange.pipe((0,m.w)(me=>{const be=this.getParsedResult(me.translations,W,R);return(0,_.b)(be)?be:(0,b.of)(be)})))}instant(W,R){if(!J(W)||!W.length)throw new Error('Parameter "key" required');let me=this.getParsedResult(this.translations[this.currentLang],W,R);if((0,_.b)(me)){if(W instanceof Array){let be={};return W.forEach((Ie,pe)=>{be[W[pe]]=W[pe]}),be}return W}return me}set(W,R,me=this.currentLang){this.translations[me][W]=this.compiler.compile(R,me),this.updateLangs(),this.onTranslationChange.emit({lang:me,translations:this.translations[me]})}changeLang(W){this.currentLang=W,this.onLangChange.emit({lang:W,translations:this.translations[W]}),null==this.defaultLang&&this.changeDefaultLang(W)}changeDefaultLang(W){this.defaultLang=W,this.onDefaultLangChange.emit({lang:W,translations:this.translations[W]})}reloadLang(W){return this.resetLang(W),this.getTranslation(W)}resetLang(W){this._translationRequests[W]=void 0,this.translations[W]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let W=window.navigator.languages?window.navigator.languages[0]:null;return W=W||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==W?(-1!==W.indexOf("-")&&(W=W.split("-")[0]),-1!==W.indexOf("_")&&(W=W.split("_")[0]),W):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let W=window.navigator.languages?window.navigator.languages[0]:null;return W=W||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,W}}return ye.\u0275fac=function(W){return new(W||ye)(e.LFG(q),e.LFG(L),e.LFG(j),e.LFG(Re),e.LFG(G),e.LFG(ue),e.LFG(te),e.LFG(Le),e.LFG(de))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),le=(()=>{class ye{constructor(W,R){this.translate=W,this._ref=R,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(W,R,me){let be=Ie=>{this.value=void 0!==Ie?Ie:W,this.lastKey=W,this._ref.markForCheck()};if(me){let Ie=this.translate.getParsedResult(me,W,R);(0,_.b)(Ie.subscribe)?Ie.subscribe(be):be(Ie)}this.translate.get(W,R).subscribe(be)}transform(W,...R){if(!W||!W.length)return W;if(ge(W,this.lastKey)&&ge(R,this.lastParams))return this.value;let me;if(J(R[0])&&R.length)if("string"==typeof R[0]&&R[0].length){let be=R[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{me=JSON.parse(be)}catch(Ie){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${R[0]}`)}}else"object"==typeof R[0]&&!Array.isArray(R[0])&&(me=R[0]);return this.lastKey=W,this.lastParams=R,this.updateValue(W,me),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(be=>{this.lastKey&&be.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(W,me,be.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(be=>{this.lastKey&&(this.lastKey=null,this.updateValue(W,me,be.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(W,me))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return ye.\u0275fac=function(W){return new(W||ye)(e.Y36(Ue,16),e.Y36(e.sBO,16))},ye.\u0275pipe=e.Yjl({name:"translate",type:ye,pure:!1}),ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),je=(()=>{class ye{static forRoot(W={}){return{ngModule:ye,providers:[W.loader||{provide:L,useClass:O},W.compiler||{provide:j,useClass:Y},W.parser||{provide:Re,useClass:T},W.missingTranslationHandler||{provide:G,useClass:ne},q,{provide:te,useValue:W.isolate},{provide:ue,useValue:W.useDefaultLang},{provide:Le,useValue:W.extend},{provide:de,useValue:W.defaultLanguage},Ue]}}static forChild(W={}){return{ngModule:ye,providers:[W.loader||{provide:L,useClass:O},W.compiler||{provide:j,useClass:Y},W.parser||{provide:Re,useClass:T},W.missingTranslationHandler||{provide:G,useClass:ne},{provide:te,useValue:W.isolate},{provide:ue,useValue:W.useDefaultLang},{provide:Le,useValue:W.extend},{provide:de,useValue:W.defaultLanguage},Ue]}}}return ye.\u0275fac=function(W){return new(W||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({}),ye})()},86114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(69808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(40520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(70655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(21086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(61946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(61737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(36053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(36787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(92198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(22868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(80013),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(40943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(87545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(24850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(87224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(27221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(46227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(72986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(61709),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 _e;return function(e){return(_e||(_e=_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(_e){this.type=_e}}class OAuthSuccessEvent extends OAuthEvent{constructor(_e,p=null){super(_e),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(_e,p=null){super(_e),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(_e,p,e=null){super(_e),this.reason=p,this.params=e}}function b64DecodeUnicode($e){const _e=$e.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(_e).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(_e){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},_e&&Object.assign(this,_e)}}class WebHttpUrlEncodingCodec{encodeKey(_e){return encodeURIComponent(_e)}encodeValue(_e){return encodeURIComponent(_e)}decodeKey(_e){return decodeURIComponent(_e)}decodeValue(_e){return decodeURIComponent(_e)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(_e){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let p=this.inferHashAlgorithm(_e.idTokenHeader),e=yield this.calcHash(_e.accessToken,p),_=base64UrlEncode(e.substr(0,e.length/2)),w=_e.idTokenClaims.at_hash.replace(/=/g,"");return _!==w&&(console.error("exptected at_hash: "+_),console.error("actual at_hash: "+w)),_===w})}inferHashAlgorithm(_e){let p=_e.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 b=e.indexOf("?");return e=e.substr(b>-1?b+1:1),this.parseQueryString(e)}parseQueryString(p){const e={};let b,_,w,g,A,E,C;if(null===p)return e;b=p.split("&");for(let I=0;I>6,_[g++]=128|63&A):A<55296||A>=57344?(_[g++]=224|A>>12,_[g++]=128|A>>6&63,_[g++]=128|63&A):(A=65536+((1023&A)<<10|1023&$e.charCodeAt(++e)),_[g++]=240|A>>18,_[g++]=128|A>>12&63,_[g++]=128|A>>6&63,_[g++]=128|63&A);$e=_}else{if("object"!==b)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(_e,!0).update($e).array());var E=[],C=[];for(e=0;e<64;++e){var I=$e[e]||0;E[e]=92^I,C[e]=54^I}Sha256.call(this,_e,p),this.update(C),this.oKeyPad=E,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function($e){if(!this.finalized){var _e,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);_e=!0}for(var e,_,b=0,w=$e.length,g=this.blocks;b>2]|=$e[b]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(g[_>>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=g[16],this.start=_-64,this.hash(),this.hashed=!0):this.start=_}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,_e=this.lastByteIndex;$e[16]=this.block,$e[_e>>2]|=EXTRA[3&_e],this.block=$e[16],_e>=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 E,m,G,ne,ge,J,$e=this.h0,_e=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=this.blocks;for(E=16;E<64;++E)A[E]=A[E-16]+(((m=A[E-15])>>>7|m<<25)^(m>>>18|m<<14)^m>>>3)+A[E-7]+(((m=A[E-2])>>>17|m<<15)^(m>>>19|m<<13)^m>>>10)<<0;for(J=_e&p,E=0;E<64;E+=4)this.first?(this.is224?(G=300032,g=(m=A[0]-1413257819)-150054599<<0,e=m+24177077<<0):(G=704751109,g=(m=A[0]-210244248)-1521486534<<0,e=m+143694565<<0),this.first=!1):(g=e+(m=g+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&_^~b&w)+K[E]+A[E])<<0,e=m+((($e>>>2|$e<<30)^($e>>>13|$e<<19)^($e>>>22|$e<<10))+((G=$e&_e)^$e&p^J))<<0),w=p+(m=w+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&_)+K[E+1]+A[E+1])<<0,p=m+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((ne=e&$e)^e&_e^G))<<0,_=_e+(m=_+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&g^~w&b)+K[E+2]+A[E+2])<<0,_e=m+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((ge=p&e)^p&$e^ne))<<0,b=$e+(m=b+((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&w^~_&g)+K[E+3]+A[E+3])<<0,$e=m+(((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+((J=_e&p)^_e&e^ge))<<0;this.h0=this.h0+$e<<0,this.h1=this.h1+_e<<0,this.h2=this.h2+p<<0,this.h3=this.h3+e<<0,this.h4=this.h4+b<<0,this.h5=this.h5+_<<0,this.h6=this.h6+w<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var $e=this.h0,_e=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=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[_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[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[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]+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[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];return this.is224||(A+=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]),A},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var $e=this.h0,_e=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=[$e>>24&255,$e>>16&255,$e>>8&255,255&$e,_e>>24&255,_e>>16&255,_e>>8&255,255&_e,p>>24&255,p>>16&255,p>>8&255,255&p,e>>24&255,e>>16&255,e>>8&255,255&e,b>>24&255,b>>16&255,b>>8&255,255&b,_>>24&255,_>>16&255,_>>8&255,255&_,w>>24&255,w>>16&255,w>>8&255,255&w];return this.is224||A.push(g>>24&255,g>>16&255,g>>8&255,255&g),A},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var $e=new ArrayBuffer(this.is224?28:32),_e=new DataView($e);return _e.setUint32(0,this.h0),_e.setUint32(4,this.h1),_e.setUint32(8,this.h2),_e.setUint32(12,this.h3),_e.setUint32(16,this.h4),_e.setUint32(20,this.h5),_e.setUint32(24,this.h6),this.is224||_e.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 _e,p=$e,e=new Uint8Array(p.length);for(_e=0;_e{class $e{calcHash(p,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})}toHashString2(p){let e="";for(let b of p)e+=String.fromCharCode(b);return e}toHashString(p){const e=new Uint8Array(p);let b="";for(let _ of e)b+=String.fromCharCode(_);return b}}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,b,_,w,g,A,E,C,I){var P;super(),this.ngZone=p,this.http=e,this.config=w,this.urlHelper=g,this.logger=A,this.crypto=E,this.dateTimeService=I,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=C,w||(w={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),_&&(this.tokenValidationHandler=_),w&&this.configure(w);try{b?this.setStorage(b):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(m){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",m)}if(this.checkLocalStorageAccessable()){const m=null===(P=null==window?void 0:window.navigator)||void 0===P?void 0:P.userAgent;((null==m?void 0:m.includes("MSIE "))||(null==m?void 0:m.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const p="test";try{return void 0!==window.localStorage&&(localStorage.setItem(p,p),localStorage.removeItem(p),!0)}catch(e){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,b=!0){let _=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(w=>{"token_received"===w.type?_=!0:"logout"===w.type&&(_=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_expires"===w.type&&(null==e||"any"===e||w.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(w=>{_&&this.refreshInternal(p,b).catch(g=>{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=[],b=this.validateUrlForHttps(p),_=this.validateUrlAgainstIssuer(p);return b||e.push("https for all urls required. Also for urls received by discovery."),_||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(){"undefined"!=typeof window?((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()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),b=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)(b)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),b=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)(b)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}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 b=this.dateTimeService.now();return Math.max(0,(e-p)*this.timeoutFactor-(b-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((e,b)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(_=>{if(!this.validateDiscoveryDocument(_))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void b("discovery_document_validation_error");this.loginUrl=_.authorization_endpoint,this.logoutUrl=_.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=_.grant_types_supported,this.issuer=_.issuer,this.tokenEndpoint=_.token_endpoint,this.userinfoEndpoint=_.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=_.jwks_uri,this.sessionCheckIFrameUrl=_.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(_),this.revocationEndpoint=_.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(w=>{const A=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:_,jwks:w});this.eventsSubject.next(A),e(A)}).catch(w=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",w)),b(w)})},_=>{this.logger.error("error loading discovery document",_),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",_)),b(_)}):b("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(b=>{this.jwks=b,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(b)},b=>{this.logger.error("error loading jwks",b),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",b)),e(b)}):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,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(p,e,b).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 b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:b,observe:"response",responseType:"text"}).subscribe(_=>{if(this.debug("userinfo received",JSON.stringify(_)),_.headers.get("content-type").startsWith("application/json")){let w=JSON.parse(_.body);const g=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!g.sub||w.sub!==g.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");w=Object.assign({},g,w),this._storage.setItem("id_token_claims_obj",JSON.stringify(w)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:w})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(_.body))},_=>{this.logger.error("error loading user info",_),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",_)),e(_)})})}fetchTokenUsingPasswordFlow(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:p,password:e},b)}fetchTokenUsingGrant(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(_=_.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_=_.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))_=_.set(w,this.customQueryParams[w]);for(const w of Object.keys(e))_=_.set(w,e[w]);return b=b.set("Content-Type","application/x-www-form-urlencoded"),new Promise((w,g)=>{this.http.post(this.tokenEndpoint,_,{headers:b}).subscribe(A=>{this.debug("tokenResponse",A),this.storeAccessTokenResponse(A.access_token,A.refresh_token,A.expires_in||this.fallbackAccessTokenExpirationTimeInSec,A.scope,this.extractRecognizedCustomParameters(A)),this.oidc&&A.id_token&&this.processIdToken(A.id_token,A.access_token).then(E=>{this.storeIdToken(E),w(A)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),w(A)},A=>{this.logger.error("Error performing ${grantType} flow",A),this.eventsSubject.next(new OAuthErrorEvent("token_error",A)),g(A)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,e)=>{let b=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")),_=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+w)}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 w of Object.getOwnPropertyNames(this.customQueryParams))b=b.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,b,{headers:_}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(w=>w.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(w.id_token,w.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(g=>this.storeIdToken(g)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(g=>w)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(w))).subscribe(w=>{this.debug("refresh tokenResponse",w),this.storeAccessTokenResponse(w.access_token,w.refresh_token,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,w.scope,this.extractRecognizedCustomParameters(w)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(w)},w=>{this.logger.error("Error refreshing token",w),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",w)),e(w)})})}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(b=>this.debug("tryLogin during silent refresh failed",b))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},e=!0){const b=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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const _=this.document.getElementById(this.silentRefreshIFrameName);_&&this.document.body.removeChild(_),this.silentRefreshSubject=b.sub;const w=this.document.createElement("iframe");w.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,p).then(I=>{w.setAttribute("src",I),this.silentRefreshShowIFrame||(w.style.display="none"),this.document.body.appendChild(w)});const A=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(I=>I instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),E=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(I=>"token_received"===I.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),C=(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__.S3)([A,E,C]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>{if(I instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===I.type||(I=new OAuthErrorEvent("silent_refresh_error",I)),this.eventsSubject.next(I),I;return"token_received"===I.type&&(I=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(I)),I})).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((b,_)=>{let A,g=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(g=p.windowRef,g.location.href=e):g=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const E=L=>{this.tryLogin({customHashFragment:L,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{I(),b(!0)},O=>{I(),_(O)})};g?A=window.setInterval(()=>{(!g||g.closed)&&(I(),_(new OAuthErrorEvent("popup_closed",{})))},500):_(new OAuthErrorEvent("popup_blocked",{}));const I=()=>{window.clearInterval(A),window.removeEventListener("storage",m),window.removeEventListener("message",P),null!==g&&g.close(),g=null},P=L=>{const O=this.processMessageEventMessage(L);O&&null!==O?(window.removeEventListener("storage",m),E(O)):console.log("false event firing")},m=L=>{"auth_hash"===L.key&&(window.removeEventListener("message",P),E(L.newValue))};window.addEventListener("message",P),window.addEventListener("storage",m)}))}calculatePopupFeatures(p){const e=p.height||470,b=p.width||500,_=window.screenLeft+(window.outerWidth-b)/2;return`location=no,toolbar=no,width=${b},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${_}`}processMessageEventMessage(p){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const b=p.data;return b.startsWith(e)?"#"+b.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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(),b=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),b.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",b,"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="",b="",_=!1,w={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const g=this;let A;A=b||this.redirectUri;const E=yield this.createAndSaveNonce();if(p=p?E+this.config.nonceStateSeparator+encodeURIComponent(p):E,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const C=g.loginUrl.indexOf("?")>-1?"&":"?";let I=g.scope;this.oidc&&!I.match(/(^|\s)openid($|\s)/)&&(I="openid "+I);let P=g.loginUrl+C+"response_type="+encodeURIComponent(g.responseType)+"&client_id="+encodeURIComponent(g.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(A)+"&scope="+encodeURIComponent(I);if(this.responseType.includes("code")&&!this.disablePKCE){const[m,L]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",L):this._storage.setItem("PKCE_verifier",L),P+="&code_challenge="+m,P+="&code_challenge_method=S256"}e&&(P+="&login_hint="+encodeURIComponent(e)),g.resource&&(P+="&resource="+encodeURIComponent(g.resource)),g.oidc&&(P+="&nonce="+encodeURIComponent(E)),_&&(P+="&prompt=none");for(const m of Object.keys(w))P+="&"+encodeURIComponent(m)+"="+encodeURIComponent(w[m]);if(this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))P+="&"+m+"="+encodeURIComponent(this.customQueryParams[m]);return P})}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 b={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(b=e),this.createLoginUrl(p,_,null,!1,b).then(this.config.openUri).catch(w=>{console.error("Error in initImplicitFlow",w),this.inImplicitFlow=!1})}initImplicitFlow(p="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(b=>"discovery_document_loaded"===b.type)).subscribe(b=>this.initImplicitFlowInternal(p,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const e=this;if(p.onTokenReceived){const b={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};p.onTokenReceived(b)}}storeAccessTokenResponse(p,e,b,_,w){if(this._storage.setItem("access_token",p),_&&!Array.isArray(_)?this._storage.setItem("granted_scopes",JSON.stringify(_.split(" "))):_&&Array.isArray(_)&&this._storage.setItem("granted_scopes",JSON.stringify(_)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),b){const g=1e3*b,E=this.dateTimeService.new().getTime()+g;this._storage.setItem("expires_at",""+E)}e&&this._storage.setItem("refresh_token",e),w&&w.forEach((g,A)=>{this._storage.setItem(A,g)})}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){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const e=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,b=this.getCodePartsFromUrl(e),_=b.code,w=b.state,g=b.session_state;if(!p.preventClearHashAfterLogin){const C=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,C)}let[A,E]=this.parseState(w);if(this.state=E,b.error){this.debug("error trying to login"),this.handleLoginError(p,b);const C=new OAuthErrorEvent("code_error",{},b);return this.eventsSubject.next(C),Promise.reject(C)}if(!p.disableNonceCheck){if(!A)return this.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!this.validateNonce(A)){const I=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(I),Promise.reject(I)}return this.storeSessionState(g),_&&(yield this.getTokenFromCode(_,p),this.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 b=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 _;_=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),_?b=b.set("code_verifier",_):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(b,e)}fetchAndProcessToken(p,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const _=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+_)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((_,w)=>{if(this.customQueryParams)for(let g of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(g,this.customQueryParams[g]);this.http.post(this.tokenEndpoint,p,{headers:b}).subscribe(g=>{this.debug("refresh tokenResponse",g),this.storeAccessTokenResponse(g.access_token,g.refresh_token,g.expires_in||this.fallbackAccessTokenExpirationTimeInSec,g.scope,this.extractRecognizedCustomParameters(g)),this.oidc&&g.id_token?this.processIdToken(g.id_token,g.access_token,e.disableNonceCheck).then(A=>{this.storeIdToken(A),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(g)}).catch(A=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",A)),console.error("Error validating tokens"),console.error(A),w(A)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(g))},g=>{console.error("Error getting token",g),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",g)),w(g)})})}tryLoginImplicitFlow(p=null){let e;e=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const b=e.state;let[_,w]=this.parseState(b);if(this.state=w,e.error){this.debug("error trying to login"),this.handleLoginError(p,e);const I=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(I),Promise.reject(I)}const g=e.access_token,A=e.id_token,E=e.session_state,C=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!g||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!b||this.oidc&&!A)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!E&&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(_)){const P=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(P),Promise.reject(P)}return this.requestAccessToken&&this.storeAccessTokenResponse(g,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,C),this.oidc?this.processIdToken(A,g,p.disableNonceCheck).then(I=>p.validationHandler?p.validationHandler({accessToken:g,idClaims:I.idTokenClaims,idToken:I.idToken,state:b}).then(P=>I):I).then(I=>(this.storeIdToken(I),this.storeSessionState(E),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(I=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",I)),this.logger.error("Error validating tokens"),this.logger.error(I),Promise.reject(I))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let e=p,b="";if(p){const _=p.indexOf(this.config.nonceStateSeparator);_>-1&&(e=p.substr(0,_),b=p.substr(_+this.config.nonceStateSeparator.length))}return[e,b]}validateNonce(p){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?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,b=!1){const _=p.split("."),g=b64DecodeUnicode(this.padBase64(_[0])),A=JSON.parse(g),C=b64DecodeUnicode(this.padBase64(_[1])),I=JSON.parse(C);let P;if(P=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(I.aud)){if(I.aud.every(ge=>ge!==this.clientId)){const ge="Wrong audience: "+I.aud.join(",");return this.logger.warn(ge),Promise.reject(ge)}}else if(I.aud!==this.clientId){const ge="Wrong audience: "+I.aud;return this.logger.warn(ge),Promise.reject(ge)}if(!I.sub){const ge="No sub claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==I.sub){const ge=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${I.sub}`;return this.logger.warn(ge),Promise.reject(ge)}if(!I.iat){const ge="No iat claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(!this.skipIssuerCheck&&I.iss!==this.issuer){const ge="Wrong issuer: "+I.iss;return this.logger.warn(ge),Promise.reject(ge)}if(!b&&I.nonce!==P){const ge="Wrong nonce: "+I.nonce;return this.logger.warn(ge),Promise.reject(ge)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!I.at_hash){const ge="An at_hash is needed!";return this.logger.warn(ge),Promise.reject(ge)}const m=this.dateTimeService.now(),L=1e3*I.iat,O=1e3*I.exp,G=this.getClockSkewInMsec();if(L-G>=m||O+G<=m){const ge="Token has expired";return console.error(ge),console.error({now:m,issuedAtMSec:L,expiresAtMSec:O}),Promise.reject(ge)}const ne={accessToken:e,idToken:p,jwks:this.jwks,idTokenClaims:I,idTokenHeader:A,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(ge=>({idToken:p,idTokenClaims:I,idTokenClaimsJson:C,idTokenHeader:A,idTokenHeaderJson:g,idTokenExpiresAt:O})):this.checkAtHash(ne).then(ge=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ge){const J="Wrong at_hash";return this.logger.warn(J),Promise.reject(J)}return this.checkSignature(ne).then(J=>{const oe={idToken:p,idTokenClaims:I,idTokenClaimsJson:C,idTokenHeader:A,idTokenHeaderJson:g,idTokenExpiresAt:O};return this.disableAtHashCheck?oe:this.checkAtHash(ne).then(Re=>{if(this.requestAccessToken&&!Re){const T="Wrong at_hash";return this.logger.warn(T),Promise.reject(T)}return oe})})})}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 b=!1;"boolean"==typeof p&&(b=p,p={});const _=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(g=>this._storage.removeItem(g)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||b||!_&&!this.postLogoutRedirectUri)return;let w;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)w=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(_)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});_&&(g=g.set("id_token_hint",_));const A=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";A&&(g=g.set("post_logout_redirect_uri",A),e&&(g=g.set("state",e)));for(let E in p)g=g.set(E,p[E]);w=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+g.toString()}this.config.openUri(w)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(e){return p.saveNoncesInLocalStorage&&void 0!==window.localStorage?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 b=45,_="";const w="undefined"==typeof self?null:self.crypto||self.msCrypto;if(w){let g=new Uint8Array(b);w.getRandomValues(g),g.map||(g.map=Array.prototype.map),g=g.map(A=>e.charCodeAt(A%e.length)),_=String.fromCharCode.apply(null,g)}else for(;0"discovery_document_loaded"===b.type)).subscribe(b=>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 b={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(b=e),this.createLoginUrl(p,_,null,!1,b).then(this.config.openUri).catch(w=>{console.error("Error in initAuthorizationCodeFlow"),console.error(w)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const p=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(p,"sha-256")),p]})}extractRecognizedCustomParameters(p){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(b=>{p[b]&&e.set(b,JSON.stringify(p[b]))}),e}revokeTokenAndLogout(p={},e=!1){let b=this.revocationEndpoint,_=this.getAccessToken(),w=this.getRefreshToken();if(!_)return;let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+E)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const E of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(E,this.customQueryParams[E]);return new Promise((E,C)=>{let I,P;if(_){let m=g.set("token",_).set("token_type_hint","access_token");I=this.http.post(b,m,{headers:A})}else I=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(w){let m=g.set("token",w).set("token_type_hint","refresh_token");P=this.http.post(b,m,{headers:A})}else P=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(I=I.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>0===m.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(m))),P=P.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>0===m.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(m)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([I,P]).subscribe(m=>{this.logOut(p),E(m),this.logger.info("Token successfully revoked")},m=>{this.logger.error("Error revoking token",m),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",m)),C(m)})})}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(_e){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(_e)}}let DefaultOAuthInterceptor=(()=>{class $e{constructor(p,e,b){this.oAuthService=p,this.errorHandler=e,this.moduleConfig=b}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 b=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(b)?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)(w=>!!w)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_received"===w.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(w=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(w=>{if(w){const A=p.headers.set("Authorization","Bearer "+w);p=p.clone({headers:A})}return e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(g=>this.errorHandler.handleError(g)))})):e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w))):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(_e){return Promise.resolve(null)}validateAtHash(_e){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?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")},43586:($e,_e,p)=>{"use strict";p.d(_e,{nu:()=>pe,Co:()=>Xe});var e=p(5e3),b=p(93075),_=p(90508),w=p(74107),g=p(67322),A=p(91159),E=p(591),C=p(21086),I=p(36053),P=p(8929),m=p(87545),L=p(24850),O=p(1059),G=p(40943),ne=p(7625),ge=p(72986),J=p(92198),Me=p(22868),oe=p(53435),Re=p(15664),T=p(77446),j=p(20773),Y=p(47423),q=p(25245),te=p(69808),ue=p(29772);const de=["searchSelectInput"],Le=["innerSelectSearch"];function Ue(Je,nt){if(1&Je){const Ve=e.EpF();e.TgZ(0,"mat-checkbox",9),e.NdJ("change",function(z){return e.CHM(Ve),e.oxw()._emitSelectAllBooleanToParent(z.checked)}),e.qZA()}if(2&Je){const Ve=e.oxw();e.Q6J("color",null==Ve.matFormField?null:Ve.matFormField.color)("checked",Ve.toggleAllCheckboxChecked)("indeterminate",Ve.toggleAllCheckboxIndeterminate)("matTooltip",Ve.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Ve.toogleAllCheckboxTooltipPosition)}}function ze(Je,nt){1&Je&&e._UZ(0,"mat-spinner",10)}function le(Je,nt){1&Je&&e.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function je(Je,nt){1&Je&&(e.TgZ(0,"mat-icon"),e._uU(1,"close"),e.qZA())}function ye(Je,nt){if(1&Je){const Ve=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(Ve),e.oxw()._reset(!0)}),e.YNc(1,le,1,0,"ng-content",12),e.YNc(2,je,2,0,"ng-template",null,13,e.W1O),e.qZA()}if(2&Je){const Ve=e.MAs(3),X=e.oxw();e.xp6(1),e.Q6J("ngIf",X.clearIcon)("ngIfElse",Ve)}}function Be(Je,nt){if(1&Je&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&Je){const Ve=e.oxw();e.xp6(1),e.hij(" ",Ve.noEntriesFoundLabel,"\n")}}const W=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],R=function(Je,nt){return{"mat-select-search-inner-multiple":Je,"mat-select-search-inner-toggle-all":nt}},me=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let be=(()=>{class Je{}return Je.\u0275fac=function(Ve){return new(Ve||Je)},Je.\u0275dir=e.lG2({type:Je,selectors:[["","ngxMatSelectSearchClear",""]]}),Je})(),pe=(()=>{class Je{constructor(Ve,X,z,Q=null,D,H=null){this.matSelect=Ve,this.changeDetectorRef=X,this._viewportRuler=z,this.matOption=Q,this.liveAnnouncer=D,this.matFormField=H,this.placeholderLabel="Suche",this.type="text",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 e.vpe,this.onTouched=V=>{},this._options$=new E.X(null),this.optionsList$=this._options$.pipe((0,m.w)(V=>V?V.changes.pipe((0,L.U)(xe=>xe.toArray()),(0,O.O)(V.toArray())):(0,C.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,L.U)(V=>V?V.length:0)),this._formControl=new b.NI(""),this._showNoEntriesFound$=(0,I.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,L.U)(([V,xe])=>this.noEntriesFoundLabel&&V&&xe===this.getOptionsLengthOffset())),this._onDestroy=new P.xQ}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Ve){this._options$.next(Ve)}get _options(){return this._options$.getValue()}ngOnInit(){const Ve="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Ve):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Ve]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Ve]=!0):this.matSelect.panelClass=Ve,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,G.g)(1),(0,ne.R)(this._onDestroy)).subscribe(X=>{X?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,ge.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 X=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const z=this._options.toArray(),Q=z[this.getOptionsLengthOffset()],D=this.matSelect._keyManager;D&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(X,Q)||!D.activeItem||!z.find(V=>this.matSelect.compareWith(V,D.activeItem)))&&D.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),X=Q})})}),this._showNoEntriesFound$.pipe((0,ne.R)(this._onDestroy)).subscribe(X=>{this.matOption&&(X?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(Ve){this.toggleAll.emit(Ve)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Ve){(Ve.key&&1===Ve.key.length||Ve.keyCode>=A.A&&Ve.keyCode<=A.Z||Ve.keyCode>=A.xE&&Ve.keyCode<=A.aO||Ve.keyCode===A.L_||this.preventHomeEndKeyPropagation&&(Ve.keyCode===A.Sd||Ve.keyCode===A.uR))&&Ve.stopPropagation(),this.matSelect.multiple&&Ve.key&&Ve.keyCode===A.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Ve.keyCode===A.hY&&this.value&&(this._reset(!0),Ve.stopPropagation())}_handleKeyup(Ve){if(Ve.keyCode===A.LH||Ve.keyCode===A.JH){const X=this.matSelect._getAriaActiveDescendant(),z=this._options.toArray().findIndex(Q=>Q.id===X);if(-1!==z){const Q=this._options.toArray()[z];this.liveAnnouncer.announce(Q.viewValue+" "+this.getAriaIndex(z)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(Ve){return 0===this.getOptionsLengthOffset()?Ve+1:Ve}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(Ve){this._lastExternalInputValue=Ve,this._formControl.setValue(Ve),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(Ve){this._formControl.valueChanges.pipe((0,J.h)(X=>X!==this._lastExternalInputValue),(0,Me.b)(()=>this._lastExternalInputValue=void 0),(0,ne.R)(this._onDestroy)).subscribe(Ve)}registerOnTouched(Ve){this.onTouched=Ve}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Ve=this.matSelect.panel.nativeElement,X=Ve.scrollTop;this.searchSelectInput.nativeElement.focus(),Ve.scrollTop=X}_reset(Ve){this._formControl.setValue(""),Ve&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,ne.R)(this._onDestroy)).subscribe(Ve=>{let X=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Ve||!Array.isArray(Ve))&&(Ve=[]);const z=this.matSelect.options.map(Q=>Q.value);this.previousSelectedValues.forEach(Q=>{!Ve.some(D=>this.matSelect.compareWith(D,Q))&&!z.some(D=>this.matSelect.compareWith(D,Q))&&(Ve.push(Q),X=!0)})}this.previousSelectedValues=Ve,X&&this.matSelect._onChange(Ve)})):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 Ve=this.getMatOptionHeight(),X=this.matSelect._keyManager.activeItemIndex||0,z=(0,_.CB)(X,this.matSelect.options,this.matSelect.optionGroups),Q=(this.matOption?-1:0)+z+X,D=this.matSelect.panel.nativeElement.scrollTop,H=this.innerSelectSearch.nativeElement.offsetHeight,V=Math.floor((256-H)/Ve),xe=Math.round((D+H)/Ve)-1;xe>=Q?this.matSelect.panel.nativeElement.scrollTop=Q*Ve:xe+V<=Q&&(this.matSelect.panel.nativeElement.scrollTop=(Q+1)*Ve-(256-H))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let X,Ve=this.innerSelectSearch.nativeElement;for(;Ve=Ve.parentElement;)if(Ve.classList.contains("mat-select-panel")){X=Ve;break}X&&(this.innerSelectSearch.nativeElement.style.width=X.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return Je.\u0275fac=function(Ve){return new(Ve||Je)(e.Y36(w.gD),e.Y36(e.sBO),e.Y36(oe.rL),e.Y36(_.ey,8),e.Y36(Re.Kd),e.Y36(g.KE,8))},Je.\u0275cmp=e.Xpm({type:Je,selectors:[["ngx-mat-select-search"]],contentQueries:function(Ve,X,z){if(1&Ve&&e.Suo(z,be,5),2&Ve){let Q;e.iGM(Q=e.CRH())&&(X.clearIcon=Q.first)}},viewQuery:function(Ve,X){if(1&Ve&&(e.Gf(de,7,e.SBq),e.Gf(Le,7,e.SBq)),2&Ve){let z;e.iGM(z=e.CRH())&&(X.searchSelectInput=z.first),e.iGM(z=e.CRH())&&(X.innerSelectSearch=z.first)}},hostVars:2,hostBindings:function(Ve,X){2&Ve&&e.ekj("mat-select-search-inside-mat-option",X.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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:[e._Bn([{provide:b.JU,useExisting:(0,e.Gpc)(()=>Je),multi:!0}])],ngContentSelectors:me,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",""],[1,"mat-select-search-no-entries-found"]],template:function(Ve,X){1&Ve&&(e.F$t(W),e._UZ(0,"input",0),e.TgZ(1,"div",1,2),e.YNc(3,Ue,1,5,"mat-checkbox",3),e.TgZ(4,"input",4,5),e.NdJ("keydown",function(Q){return X._handleKeydown(Q)})("keyup",function(Q){return X._handleKeyup(Q)})("blur",function(){return X.onBlur()}),e.qZA(),e.YNc(6,ze,1,0,"mat-spinner",6),e.YNc(7,ye,4,2,"button",7),e.Hsn(8),e.qZA(),e.YNc(9,Be,2,1,"div",8),e.ALo(10,"async")),2&Ve&&(e.xp6(1),e.Q6J("ngClass",e.WLB(11,R,X.matSelect.multiple,X._isToggleAllCheckboxVisible())),e.xp6(2),e.Q6J("ngIf",X._isToggleAllCheckboxVisible()),e.xp6(1),e.Q6J("type",X.type)("formControl",X._formControl)("placeholder",X.placeholderLabel),e.uIk("aria-label",X.ariaLabel),e.xp6(2),e.Q6J("ngIf",X.searching),e.xp6(1),e.Q6J("ngIf",!X.hideClearSearchButton&&X.value&&!X.searching),e.xp6(2),e.Q6J("ngIf",e.lcZ(10,9,X._showNoEntriesFound$)))},directives:[T.oG,j.$g,Y.lW,q.Hw,te.mk,te.O5,ue.gM,b.Fj,b.JJ,b.oH],pipes:[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}),Je})(),Xe=(()=>{class Je{}return Je.\u0275fac=function(Ve){return new(Ve||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({imports:[[te.ez,b.UX,Y.ot,T.p9,q.Ps,j.Cq,ue.AV]]}),Je})()},4147:$e=>{"use strict";$e.exports={i8:"8.1.0"}}},$e=>{$e($e.s=9193)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main.86950e0fd7693cc4.js b/dist/apps/admin-gui/main.86950e0fd7693cc4.js deleted file mode 100644 index 980aa6284..000000000 --- a/dist/apps/admin-gui/main.86950e0fd7693cc4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Xe,_e,p)=>{"use strict";p.d(_e,{g:()=>nt});var e=p(32105),b=p(10036),_=p(5e3),w=p(53251),g=p(69808),A=p(9244),E=p(42377),C=p(64901),O=p(47423),S=p(29772),m=p(25245),B=p(51062);function L(ke,H){if(1&ke){const he=_.EpF();_.TgZ(0,"div",6),_.TgZ(1,"div",7),_.TgZ(2,"perun-web-apps-entity-search-select",8),_.NdJ("entitySelected",function(R){return _.CHM(he).$implicit[0]=R.namespace+":"+R.friendlyName}),_.ALo(3,"translate"),_.ALo(4,"translate"),_.ALo(5,"translate"),_.qZA(),_.qZA(),_.TgZ(6,"div",9),_.TgZ(7,"perun-web-apps-debounce-filter",10),_.NdJ("filter",function(R){return _.CHM(he).$implicit[1]=R}),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"button",12),_.NdJ("click",function(){const V=_.CHM(he).$implicit;return _.oxw(2).removeOption(V)}),_.ALo(10,"translate"),_.TgZ(11,"mat-icon"),_._uU(12,"clear"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&ke){const he=_.oxw(2);_.xp6(2),_.Q6J("entities",he.availableAttrDefs)("searchFunction",he.nameFunction)("mainTextFunction",he.nameFunction)("secondaryTextFunction",he.secondaryTextFunction)("selectPlaceholder",_.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",_.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",_.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),_.xp6(5),_.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),_.xp6(2),_.s9C("matTooltip",_.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),_.Q6J("disabled",1===he.options.length)}}function J(ke,H){if(1&ke){const he=_.EpF();_.TgZ(0,"div",1),_.YNc(1,L,13,18,"div",2),_.TgZ(2,"button",3),_.NdJ("click",function(){return _.CHM(he),_.oxw().addOption()}),_._uU(3),_.ALo(4,"translate"),_.qZA(),_.TgZ(5,"span",4),_.ALo(6,"translate"),_.TgZ(7,"button",5),_.NdJ("click",function(){return _.CHM(he),_.oxw().searchEntities()}),_.TgZ(8,"mat-icon"),_._uU(9,"search"),_.qZA(),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.qZA(),_.qZA()}if(2&ke){const he=_.oxw();_.xp6(1),_.Q6J("ngForOf",he.options),_.xp6(2),_.hij(" ",_.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),_.Q6J("matTooltipDisabled",!he.emptySearchString()),_.xp6(2),_.Q6J("disabled",he.emptySearchString()),_.xp6(3),_.hij(" ",_.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let ie=(()=>{class ke{constructor(){this.attributeSelected=new _.vpe,this.search=new _.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=he=>he.displayName,this.secondaryTextFunction=he=>"#"+String(he.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(he=>he.entity===this.attributesForEntity).sort(A.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(he){this.options=this.options.filter(P=>P!==he)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(he=>0===he[1].length)}searchEntities(){const he={};this.options.forEach(P=>{he[P[0]]=P[1]}),this.search.emit(he)}}return ke.\u0275fac=function(he){return new(he||ke)},ke.\u0275cmp=_.Xpm({type:ke,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[_.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"],["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(he,P){1&he&&_.YNc(0,J,12,12,"div",0),2&he&&_.Q6J("ngIf",void 0!==P.options)},directives:[g.O5,g.sg,E.i,C.P,O.lW,S.gM,m.Hw],pipes:[B.X$],styles:[""]}),ke})();var ge=p(64877),X=p(62707),Ne=p(38383),ue=p(74010),Oe=p(62109),T=p(20773);function Z(ke,H){1&ke&&(_._uU(0),_.ALo(1,"translate")),2&ke&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function W(ke,H){if(1&ke){const he=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(R){return _.CHM(he),_.oxw(2).searchEntities(R,"user")}),_.qZA()}if(2&ke){const he=_.oxw(2);_.Q6J("attributes",he.allAttrDefinitions)("attributesForEntity","user")}}const Y=function(){return["user","id","name"]};function ee(ke,H){if(1&ke&&_._UZ(0,"app-users-list",9),2&ke){const he=_.oxw(2);_.Q6J("tableId",he.tableId)("displayedColumns",_.DdM(3,Y))("users",he.entities)}}function ce(ke,H){if(1&ke&&(_.YNc(0,W,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,ee,1,4,"app-users-list",7)),2&ke){const he=_.oxw();_.Q6J("ngIf",!he.loading),_.xp6(1),_.Q6J("ngIf",!he.loadingEntityData)}}function le(ke,H){1&ke&&(_._uU(0),_.ALo(1,"translate")),2&ke&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function Pe(ke,H){if(1&ke){const he=_.EpF();_.TgZ(0,"perun-web-apps-vo-search-select",13),_.NdJ("voSelected",function(R){return _.CHM(he),_.oxw(2).voSelected(R)}),_.qZA()}if(2&ke){const he=_.oxw(2);_.Q6J("vos",he.vos)}}function Fe(ke,H){if(1&ke){const he=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(R){return _.CHM(he),_.oxw(2).searchEntities(R,"member")}),_.qZA()}if(2&ke){const he=_.oxw(2);_.Q6J("attributes",he.allAttrDefinitions)("attributesForEntity","user")}}const ze=function(){return["id","voId","userId","status"]};function ae(ke,H){if(1&ke){const he=_.EpF();_.TgZ(0,"perun-web-apps-members-list",14),_.NdJ("updateTable",function(){_.CHM(he);const R=_.oxw(2);return R.searchEntities(R.searchInput,"member")}),_.qZA()}if(2&ke){const he=_.oxw(2);_.Q6J("tableId",he.tableId)("displayedColumns",_.DdM(4,ze))("disableExpirationChange",!0)("members",he.entities)}}function Ue(ke,H){if(1&ke&&(_.TgZ(0,"div",10),_.YNc(1,Pe,1,1,"perun-web-apps-vo-search-select",11),_.qZA(),_.YNc(2,Fe,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(3,ae,1,5,"perun-web-apps-members-list",12)),2&ke){const he=_.oxw();_.xp6(1),_.Q6J("ngIf",he.vos.length>0),_.xp6(1),_.Q6J("ngIf",!he.loading),_.xp6(1),_.Q6J("ngIf",!he.loadingEntityData)}}function ve(ke,H){1&ke&&(_._uU(0),_.ALo(1,"translate")),2&ke&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function He(ke,H){if(1&ke){const he=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(R){return _.CHM(he),_.oxw(2).searchEntities(R,"facility")}),_.qZA()}if(2&ke){const he=_.oxw(2);_.Q6J("attributes",he.allAttrDefinitions)("attributesForEntity","facility")}}const z=function(){return["id","name","description"]};function I(ke,H){if(1&ke&&_._UZ(0,"perun-web-apps-facilities-list",16),2&ke){const he=_.oxw(2);_.Q6J("tableId",he.tableId)("displayedColumns",_.DdM(3,z))("facilities",he.entities)}}function me(ke,H){if(1&ke&&(_.YNc(0,He,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,I,1,4,"perun-web-apps-facilities-list",15)),2&ke){const he=_.oxw();_.Q6J("ngIf",!he.loading),_.xp6(1),_.Q6J("ngIf",!he.loadingEntityData)}}function Ae(ke,H){1&ke&&(_._uU(0),_.ALo(1,"translate")),2&ke&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function Me(ke,H){if(1&ke){const he=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(R){return _.CHM(he),_.oxw(2).searchEntities(R,"resource")}),_.qZA()}if(2&ke){const he=_.oxw(2);_.Q6J("attributes",he.allAttrDefinitions)("attributesForEntity","resource")}}const pe=function(){return["id","name","description","voId","facilityId"]};function we(ke,H){if(1&ke&&_._UZ(0,"perun-web-apps-resources-list",18),2&ke){const he=_.oxw(2);_.Q6J("tableId",he.tableId)("displayedColumns",_.DdM(3,pe))("resources",he.entities)}}function $e(ke,H){if(1&ke&&(_.YNc(0,Me,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,we,1,4,"perun-web-apps-resources-list",17)),2&ke){const he=_.oxw();_.Q6J("ngIf",!he.loading),_.xp6(1),_.Q6J("ngIf",!he.loadingEntityData)}}function Je(ke,H){1&ke&&_._UZ(0,"mat-spinner",19)}let nt=(()=>{class ke{constructor(he,P,R){this.attributesManager=he,this.searcher=P,this.voService=R,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=b.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(he=>{this.allAttrDefinitions=he,this.loading=!1})}tabChanged(he){switch(this.entities=[],he){case 0:this.tableId=b.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=b.FF;break;case 2:this.tableId=b.$I;break;case 3:this.tableId=b.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(he=>{this.vos=he,this.selectedVo=he[0],this.loadingEntityData=!1})}voSelected(he){void 0!==he&&(this.selectedVo=he)}searchEntities(he,P){switch(this.searchInput=he,this.loadingEntityData=!0,P){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(he=>{this.entities=he,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(he=>{this.entities=he,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(he=>{this.entities=he.map(P=>({facility:P})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(he=>{this.entities=he,this.loadingEntityData=!1})}}return ke.id="AdminSearcherComponent",ke.\u0275fac=function(he){return new(he||ke)(_.Y36(e.H8),_.Y36(e.t7),_.Y36(e.YF))},ke.\u0275cmp=_.Xpm({type:ke,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(he,P){2&he&&_.ekj("router-component",P.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","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","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(he,P){1&he&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"mat-tab-group",1),_.NdJ("selectedIndexChange",function(V){return P.tabChanged(V)}),_.TgZ(4,"mat-tab",2),_.YNc(5,Z,2,3,"ng-template",3),_.YNc(6,ce,2,2,"ng-template",4),_.qZA(),_.TgZ(7,"mat-tab"),_.YNc(8,le,2,3,"ng-template",3),_.YNc(9,Ue,4,3,"ng-template",4),_.qZA(),_.TgZ(10,"mat-tab"),_.YNc(11,ve,2,3,"ng-template",3),_.YNc(12,me,2,2,"ng-template",4),_.qZA(),_.TgZ(13,"mat-tab"),_.YNc(14,Ae,2,3,"ng-template",3),_.YNc(15,$e,2,2,"ng-template",4),_.qZA(),_.qZA(),_.YNc(16,Je,1,0,"mat-spinner",5)),2&he&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),_.xp6(15),_.Q6J("ngIf",P.loading||P.loadingEntityData))},directives:[w.SP,w.uX,w.uD,w.Vc,g.O5,ie,ge.C,X.M,Ne.O,ue.X,Oe.C,T.$g],pipes:[B.X$],styles:[""]}),ke})()},80774:(Xe,_e,p)=>{"use strict";p.d(_e,{F:()=>T});var e=p(20449),b=p(32105),_=p(10036),w=p(9244),g=p(40009),A=p(90719),E=p(36908),C=p(5e3),O=p(48966),S=p(96214),m=p(69808),B=p(47423),L=p(7434),J=p(20773),ie=p(60205),ge=p(51062);function X(Z,W){if(1&Z){const Y=C.EpF();C.TgZ(0,"button",7),C.NdJ("click",function(){return C.CHM(Y),C.oxw().createService()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Z&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function Ne(Z,W){if(1&Z){const Y=C.EpF();C.TgZ(0,"button",8),C.NdJ("click",function(){return C.CHM(Y),C.oxw().deleteService()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}if(2&Z){const Y=C.oxw();C.Q6J("disabled",0===Y.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function ue(Z,W){1&Z&&C._UZ(0,"mat-spinner",9)}function Oe(Z,W){if(1&Z&&C._UZ(0,"app-services-list",10),2&Z){const Y=C.oxw();C.Q6J("filterValue",Y.filterValue)("selection",Y.selection)("services",Y.services)("tableId",Y.tableId)}}let T=(()=>{class Z{constructor(Y,ee,ce){this.serviceManager=Y,this.dialog=ee,this.authResolver=ce,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=_.NL}ngOnInit(){this.serviceManager.getServices().subscribe(Y=>{this.services=Y,this.refreshTable()})}createService(){const Y=(0,w.kZ)();Y.width="600px",Y.data={theme:"admin-theme"},this.dialog.open(g.R,Y).afterClosed().subscribe(ce=>{ce&&this.refreshTable()})}deleteService(){const Y=(0,w.kZ)();Y.width="600px",Y.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(A.m,Y).afterClosed().subscribe(ce=>{ce&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(Y=>{this.services=Y,this.selection.clear(),this.loading=!1})}applyFilter(Y){this.filterValue=Y}}return Z.id="AdminServicesComponent",Z.\u0275fac=function(Y){return new(Y||Z)(C.Y36(b.KK),C.Y36(O.uw),C.Y36(E.x4))},Z.\u0275cmp=C.Xpm({type:Z,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","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","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(Y,ee){1&Y&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return ee.refreshTable()}),C.qZA(),C.YNc(5,X,3,3,"button",2),C.YNc(6,Ne,3,4,"button",3),C.TgZ(7,"perun-web-apps-immediate-filter",4),C.NdJ("filter",function(le){return ee.applyFilter(le)}),C.qZA(),C.YNc(8,ue,1,0,"mat-spinner",5),C.YNc(9,Oe,1,4,"app-services-list",6),C.qZA()),2&Y&&(C.xp6(2),C.Oqu(C.lcZ(3,6,"ADMIN.SERVICES.TITLE")),C.xp6(3),C.Q6J("ngIf",ee.authResolver.isPerunAdmin()),C.xp6(1),C.Q6J("ngIf",ee.authResolver.isPerunAdmin()),C.xp6(1),C.Q6J("placeholder","ADMIN.SERVICES.FILTER"),C.xp6(1),C.Q6J("ngIf",ee.loading),C.xp6(1),C.Q6J("ngIf",!ee.loading))},directives:[S.t,m.O5,B.lW,L.L,J.$g,ie.Q],pipes:[ge.X$],styles:[""]}),Z})()},25828:(Xe,_e,p)=>{"use strict";p.d(_e,{t:()=>S});var e=p(10036),b=p(64080),_=p(36908),w=p(5e3),g=p(64901),A=p(77446),E=p(88561),C=p(51062);const O=function(){return["user","id","name","email","logins","organization"]};let S=(()=>{class m{constructor(L){this.storeService=L,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[]}ngOnInit(){this.attributes=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(L){this.searchString=L}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}}return m.id="AdminUsersComponent",m.\u0275fac=function(L){return new(L||m)(w.Y36(_.d6))},m.\u0275cmp=w.Xpm({type:m,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(L,J){2&L&&w.ekj("router-component",J.true)},decls:8,vars:16,consts:[[1,"page-subtitle"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo"]],template:function(L,J){1&L&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"perun-web-apps-debounce-filter",1),w.NdJ("filter",function(ge){return J.onSearchByString(ge)}),w.qZA(),w.TgZ(4,"mat-checkbox",2),w.NdJ("change",function(){return J.findUsersWithoutVO()}),w._uU(5),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"perun-web-apps-users-dynamic-list",3)),2&L&&(w.xp6(1),w.Oqu(w.lcZ(2,11,"ADMIN.USERS.TITLE")),w.xp6(2),w.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),w.xp6(1),w.Q6J("checked",J.usersWithoutVo),w.xp6(1),w.hij(" ",w.lcZ(6,13,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),w.xp6(2),w.Q6J("disableRouting",!1)("searchString",J.searchString)("attrNames",J.attributes)("displayedColumns",w.DdM(15,O))("tableId",J.tableId)("withoutVo",J.usersWithoutVo))},directives:[g.P,A.oG,E.M],pipes:[C.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),m})()},72077:(Xe,_e,p)=>{"use strict";p.d(_e,{y:()=>W});var e=p(36908),b=p(61715),_=p(40520),w=p(9244),g=p(5e3),A=p(48966),E=p(47423),C=p(51062);let O=(()=>{class Y{constructor(ce){this.dialogRef=ce}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return Y.\u0275fac=function(ce){return new(ce||Y)(g.Y36(A.so))},Y.\u0275cmp=g.Xpm({type:Y,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(ce,le){1&ce&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g.TgZ(4,"div",2),g.TgZ(5,"p"),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.qZA(),g.TgZ(8,"div",3),g.TgZ(9,"button",4),g.NdJ("click",function(){return le.onClose()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",5),g.NdJ("click",function(){return le.onReload()}),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.qZA(),g.qZA()),2&ce&&(g.xp6(1),g.Oqu(g.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),g.xp6(5),g.hij(" ",g.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),g.xp6(4),g.hij(" ",g.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),g.xp6(3),g.hij(" ",g.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[A.uh,A.xY,A.H8,E.lW],pipes:[C.X$],styles:[""]}),Y})();var S=p(11735),m=p(92198);let B=(()=>{class Y{constructor(ce,le){this.router=ce,this.routeReuseStrategy=le;const Pe=le;ce.events.subscribe(Fe=>{Fe instanceof S.OD&&Pe.setLastNavigationType("popstate"===Fe.navigationTrigger?"back":"direct")})}init(){}}return Y.\u0275fac=function(ce){return new(ce||Y)(g.LFG(S.F0),g.LFG(S.wN))},Y.\u0275prov=g.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})();const L=["footer"];function J(Y,ee){if(1&Y&&(g.TgZ(0,"div",3),g.TgZ(1,"mat-icon"),g._uU(2,"alert"),g.qZA(),g._uU(3),g.qZA()),2&Y){const ce=g.oxw();g.xp6(3),g.hij(" ",ce.warningMessage,"\n")}}const ie=function(Y,ee){return{top:Y,background:ee}},ge=function(Y,ee){return{"margin-top":Y,"min-height":ee}},X=function(Y){return{"border-color":Y}},Ne=function(Y){return{background:Y}},ue=function(Y){return{"background-color":Y}},Oe=function(Y){return{"min-height":Y}};function T(Y,ee){if(1&Y&&(g._UZ(0,"app-perun-nav-menu",4),g.TgZ(1,"mat-sidenav-container",5),g.TgZ(2,"mat-sidenav",6,7),g.TgZ(4,"perfect-scrollbar",8),g._UZ(5,"app-side-menu",9),g.qZA(),g.qZA(),g.TgZ(6,"mat-sidenav-content",10),g.TgZ(7,"div",11),g._UZ(8,"router-outlet"),g.qZA(),g.TgZ(9,"div",null,12),g._UZ(11,"perun-web-apps-footer"),g.qZA(),g.qZA(),g.qZA()),2&Y){const ce=g.MAs(3),le=g.oxw();g.Q6J("principal",le.principal)("ngStyle",g.WLB(14,ie,le.getNavMenuTop(),le.navBackgroundColor))("sideNav",ce),g.xp6(1),g.Q6J("ngStyle",g.WLB(17,ge,le.getSideNavMarginTop(),le.getSideNavMinHeight())),g.xp6(1),g.Q6J("fixedInViewport",!0)("mode",le.sidebarMode)("fixedTopGap",le.getTopGap())("ngStyle",g.VKq(20,X,le.sideBarBorderColor))("opened",!le.isMobile()),g.xp6(2),g.Q6J("ngStyle",g.VKq(22,Ne,le.sideMenubackgroundColor))("scrollIndicators",!0),g.xp6(1),g.Q6J("sideNav",ce),g.xp6(1),g.Q6J("ngStyle",g.VKq(24,ue,le.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(26,Oe,le.contentInnerMinHeight))}}function Z(Y,ee){1&Y&&g._UZ(0,"perun-web-apps-login-screen-base",13),2&Y&&g.Q6J("application","admin-gui")}let W=(()=>{class Y{constructor(ce,le,Pe,Fe,ze,ae,Ue){this.cache=ce,this.store=le,this.http=Pe,this.dialog=Fe,this.router=ze,this.initAuth=ae,this.cd=Ue,this.sidebarMode="side",this.navBackgroundColor=this.store.get("theme","nav_bg_color"),this.sideBarBorderColor=this.store.get("theme","sidemenu_border_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.sideMenubackgroundColor=this.store.get("theme","sidemenu_bg_color"),this.displayWarning=this.store.get("display_warning"),this.warningMessage=this.store.get("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}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}isMobile(){return window.innerWidth<=Y.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,b.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,m.h)(ce=>ce instanceof S.OD)).subscribe(ce=>{this.updateInitAccessedPage(ce)})}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(){var ce,le,Pe,Fe;const ze=null!==(Fe=null===(Pe=null===(le=null===(ce=this.footer)||void 0===ce?void 0:ce.nativeElement)||void 0===le?void 0:le.offsetHeight)||void 0===Pe?void 0:Pe.toString())&&void 0!==Fe?Fe:"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+ze+"px - 112px)":"calc(100vh - "+ze+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(ce){ce.url===sessionStorage.getItem("initPage")?("imperative"===ce.navigationTrigger&&ce.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===ce.navigationTrigger&&(ce.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(ce.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const ce=new _.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:ce}).subscribe(le=>{const Pe=le.version;if(Pe)if(this.version&&"SNAPSHOT"!==Pe&&this.version!==Pe){const Fe=(0,w.kZ)();this.dialog.open(O,Fe)}else this.version=Pe})}}return Y.minWidth=992,Y.\u0275fac=function(ce){return new(ce||Y)(g.Y36(B),g.Y36(e.d6),g.Y36(_.eN),g.Y36(A.uw),g.Y36(S.F0),g.Y36(e.v0),g.Y36(g.sBO))},Y.\u0275cmp=g.Xpm({type:Y,selectors:[["app-root"]],viewQuery:function(ce,le){if(1&ce&&g.Gf(L,5),2&ce){let Pe;g.iGM(Pe=g.CRH())&&(le.footer=Pe.first)}},hostBindings:function(ce,le){1&ce&&g.NdJ("resize",function(Fe){return le.getScreenSize(Fe)},!1,g.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,"principal","ngStyle","sideNav"],[3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(ce,le){1&ce&&(g.YNc(0,J,4,1,"div",0),g._UZ(1,"perun-web-apps-notificator",1),g.YNc(2,T,12,28,"ng-template",2),g.YNc(3,Z,1,1,"ng-template",2)),2&ce&&(g.Q6J("ngIf",le.displayWarning),g.xp6(1),g.Q6J("displayWarning",le.displayWarning),g.xp6(1),g.Q6J("ngIf",!le.isLoginScreenShow&&!le.isServiceAccess&&!le.isServiceLogin()),g.xp6(1),g.Q6J("ngIf",le.isLoginScreenShow||le.isServiceAccess||le.isServiceLogin()))},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}"]}),Y})()},77968:(Xe,_e,p)=>{"use strict";p.d(_e,{D:()=>b});var e=p(5e3);let b=(()=>{class _{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(g){this.homeItemsChange.emit(g)}setAccessMenuItems(g){this.accessItemsChange.emit(g)}setFacilityMenuItems(g){this.facilityItemsChange.emit(g)}setAdminItems(g){this.adminItemsChange.emit(g)}setUserItems(g){this.userItemsChange.emit(g)}reset(){this.resetChange.emit()}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()},37380:(Xe,_e,p)=>{"use strict";p.d(_e,{o:()=>Ne});var e=p(32105),b=p(10036),_=p(36908),w=p(5e3),g=p(96214),A=p(67322),E=p(74107),C=p(90508),O=p(69808),S=p(7434),m=p(20773),B=p(24179),L=p(51062);function J(ue,Oe){if(1&ue&&(w.TgZ(0,"mat-option",9),w._uU(1),w.qZA()),2&ue){const T=Oe.$implicit;w.Q6J("value",T.id),w.xp6(1),w.hij(" ",T.name," ")}}function ie(ue,Oe){1&ue&&w._UZ(0,"mat-spinner",10)}const ge=function(){return["id","vo","name","description"]};function X(ue,Oe){if(1&ue&&w._UZ(0,"perun-web-apps-groups-list",11),2&ue){const T=w.oxw();w.Q6J("displayedColumns",w.DdM(6,ge))("groups",T.groupsToShow)("disableMembers",!1)("filter",T.filterValue)("groupsToDisableRouting",T.groupsWithoutRouteAuth)("tableId",T.tableId)}}let Ne=(()=>{class ue{constructor(T,Z,W){this.facilityManager=T,this.authResolver=Z,this.entityStorageService=W,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=b.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.vos.forEach(T=>{this.facilityManager.getAllowedGroups(this.facility.id,T.id).subscribe(Z=>{this.groups=this.groups.concat(Z),this.groupsToShow=this.groups,this.setAuthRights(T,Z),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(T,Z){Z.forEach(W=>{this.authResolver.isAuthorized("getGroupById_int_policy",[T,W])||this.groupsWithoutRouteAuth.add(W.id)})}applyFilter(T){this.filterValue=T}}return ue.id="FacilityAllowedGroupsComponent",ue.\u0275fac=function(T){return new(T||ue)(w.Y36(e.IQ),w.Y36(_.x4),w.Y36(_.fb))},ue.\u0275cmp=w.Xpm({type:ue,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(T,Z){2&T&&w.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(T,Z){1&T&&(w.TgZ(0,"div"),w.TgZ(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 Z.refreshTable()}),w.qZA(),w.TgZ(5,"mat-form-field",2),w.TgZ(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-select",3),w.NdJ("selectionChange",function(){return Z.showGroup()})("valueChange",function(Y){return Z.selected=Y}),w.TgZ(10,"mat-option",4),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.YNc(13,J,2,2,"mat-option",5),w.qZA(),w.qZA(),w.TgZ(14,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(Y){return Z.applyFilter(Y)}),w.qZA(),w.YNc(15,ie,1,0,"mat-spinner",7),w.YNc(16,X,1,7,"perun-web-apps-groups-list",8),w.qZA()),2&T&&(w.xp6(2),w.Oqu(w.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),w.xp6(5),w.Oqu(w.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),w.xp6(2),w.Q6J("value",Z.selected),w.xp6(2),w.Oqu(w.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),w.xp6(2),w.Q6J("ngForOf",Z.vos),w.xp6(1),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),w.xp6(1),w.Q6J("ngIf",Z.loading),w.xp6(1),w.Q6J("ngIf",!Z.loading))},directives:[g.t,A.KE,A.hX,E.gD,C.ey,O.sg,S.L,O.O5,m.$g,B.W],pipes:[L.X$],styles:[""]}),ue})()},25610:(Xe,_e,p)=>{"use strict";p.d(_e,{_:()=>Y});var e=p(10036),b=p(32105),_=p(36908),w=p(64080),g=p(5e3),A=p(96214),E=p(64901),C=p(47423),O=p(25245),S=p(51062);let m=(()=>{class ee{constructor(){this.changeAdvancedFilter=new g.vpe,this.clearFilters=new g.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return ee.\u0275fac=function(le){return new(le||ee)},ee.\u0275cmp=g.Xpm({type:ee,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(le,Pe){1&le&&(g.TgZ(0,"button",0),g.NdJ("click",function(){return Pe.toggleAdvancedFilter()}),g.TgZ(1,"mat-icon"),g._uU(2,"filter_list"),g.qZA(),g._uU(3),g.ALo(4,"translate"),g.TgZ(5,"mat-icon"),g._uU(6),g.qZA(),g.qZA(),g.TgZ(7,"button",0),g.NdJ("click",function(){return Pe.clearFilters.emit()}),g.TgZ(8,"mat-icon"),g._uU(9,"filter_list_off"),g.qZA(),g._uU(10),g.ALo(11,"translate"),g.qZA()),2&le&&(g.Gre("mr-2 ",Pe.filtersCount?"grey":"no-color",""),g.xp6(3),g.AsE(" ",g.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Pe.filtersCount?"("+Pe.filtersCount+")":null," "),g.xp6(3),g.Oqu(Pe.advancedFilter?"arrow_drop_up":"arrow_drop_down"),g.xp6(4),g.hij(" ",g.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},directives:[C.lW,O.Hw],pipes:[S.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),ee})();var B=p(69808),L=p(32368),J=p(93075),ie=p(62707),ge=p(45703),X=p(30540),Ne=p(20773),ue=p(88561);function Oe(ee,ce){if(1&ee){const le=g.EpF();g.TgZ(0,"div",8),g.TgZ(1,"div",9),g.TgZ(2,"mat-slide-toggle",10),g.NdJ("ngModelChange",function(Fe){return g.CHM(le),g.oxw().allowed=Fe})("change",function(){return g.CHM(le),g.oxw().changeFilter()}),g._uU(3),g.ALo(4,"translate"),g.qZA(),g.TgZ(5,"span",11),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.qZA(),g.TgZ(8,"div",1),g.TgZ(9,"perun-web-apps-vo-search-select",12),g.NdJ("voSelected",function(Fe){return g.CHM(le),g.oxw().voSelected(Fe)}),g.qZA(),g.TgZ(10,"perun-web-apps-resource-search-select",13),g.NdJ("resourceSelected",function(Fe){return g.CHM(le),g.oxw().resourceSelected(Fe)}),g.qZA(),g.TgZ(11,"perun-web-apps-service-search-select",14),g.NdJ("serviceSelected",function(Fe){return g.CHM(le),g.oxw().serviceSelected(Fe)}),g.qZA(),g.qZA(),g.qZA()}if(2&ee){const le=g.oxw();g.xp6(2),g.Q6J("ngModel",le.allowed),g.xp6(1),g.hij(" ",g.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),g.xp6(3),g.Oqu(g.lcZ(7,12,le.toggle_messages[le.allowed?1:0])),g.xp6(3),g.Q6J("vos",le.vos)("vo",le.selectedVo),g.xp6(1),g.Q6J("resources",le.filteredResources)("displayStatus",!1)("resource",le.selectedResource),g.xp6(1),g.Q6J("services",le.filteredServices)("service",le.selectedService)}}function T(ee,ce){1&ee&&g._UZ(0,"mat-spinner",15)}const Z=function(){return["id","name","email","logins","organization"]};function W(ee,ce){if(1&ee&&g._UZ(0,"perun-web-apps-users-dynamic-list",16),2&ee){const le=g.oxw();g.Q6J("attrNames",le.attributes)("disableRouting",!le.routeAuth)("displayedColumns",g.DdM(10,Z))("onlyAllowed",le.allowed)("facilityId",le.facility.id)("searchString",le.filterValue)("resourceId",-1===le.selectedResource.id?null:le.selectedResource.id)("serviceId",-1===le.selectedService.id?null:le.selectedService.id)("tableId",le.tableId)("voId",-1===le.selectedVo.id?null:le.selectedVo.id)}}let Y=(()=>{class ee{constructor(le,Pe,Fe,ze,ae,Ue){this.facilityService=le,this.serviceService=Pe,this.resourceService=Fe,this.authResolver=ze,this.storeService=ae,this.entityStorageService=Ue,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.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.attributes=[w.r.USER_DEF_ORGANIZATION,w.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),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)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(le=>{this.resources=[this.emptyResource].concat(le),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Pe=>{this.vos=[this.emptyVo].concat(Pe),this.services=[],this.getAssignedServices(this.resources,this.resources.length-1)},()=>this.loading=!1)},()=>this.loading=!1)}getAssignedServices(le,Pe){if(0===Pe)return this.services=[this.emptyService].concat(this.services),this.filteredServices=this.services,this.changeFilter(),void(this.loading=!1);this.resourceService.getAssignedServicesToResource(le[Pe].id).subscribe(Fe=>{this.services=this.services.concat(Fe),this.resourceAssignedServices.set(le[Pe].id,Fe.map(ze=>ze.id)),this.getAssignedServices(le,Pe-1)},()=>this.loading=!1)}getFilteredServices(le){const Pe=new Set;return le.forEach(Fe=>{this.resourceAssignedServices.get(Fe.id).forEach(ze=>Pe.add(ze))}),[this.emptyService].concat(this.services.filter(Fe=>Pe.has(Fe.id)))}applyFilter(le){this.filterValue=le}voSelected(le){this.selectedVo.id!==le.id&&(this.selectedVo=le,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===le.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Pe=>Pe.voId===le.id),this.filteredServices=this.getFilteredServices(this.filteredResources),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(le){this.selectedResource.id!==le.id&&(this.selectedResource=le,this.selectedService=this.emptyService,this.filteredServices=-1===le.id?this.services:this.getFilteredServices([le]),this.changeFilter())}serviceSelected(le){this.selectedService=le,this.changeFilter()}}return ee.id="FacilityAllowedUsersComponent",ee.\u0275fac=function(le){return new(le||ee)(g.Y36(b.IQ),g.Y36(b.KK),g.Y36(b.xk),g.Y36(_.x4),g.Y36(_.d6),g.Y36(_.fb))},ee.\u0275cmp=g.Xpm({type:ee,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",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"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId"]],template:function(le,Pe){1&le&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"perun-web-apps-refresh-button",2),g.NdJ("refresh",function(){return Pe.refreshPage()}),g.qZA(),g.TgZ(6,"perun-web-apps-debounce-filter",3),g.NdJ("filter",function(ze){return Pe.applyFilter(ze)}),g.qZA(),g.TgZ(7,"perun-web-apps-advanced-filter",4),g.NdJ("changeAdvancedFilter",function(ze){return Pe.advancedFilter=ze})("clearFilters",function(){return Pe.clearFilters()}),g.qZA(),g.qZA(),g.YNc(8,Oe,12,14,"div",5),g.YNc(9,T,1,0,"mat-spinner",6),g.YNc(10,W,1,11,"perun-web-apps-users-dynamic-list",7),g.qZA()),2&le&&(g.xp6(2),g.Oqu(g.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),g.xp6(4),g.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),g.xp6(1),g.Q6J("advancedFilter",Pe.advancedFilter)("filtersCount",Pe.filtersCount),g.xp6(1),g.Q6J("ngIf",Pe.advancedFilter),g.xp6(1),g.Q6J("ngIf",Pe.loading),g.xp6(1),g.Q6J("ngIf",!Pe.loading))},directives:[A.t,E.P,m,B.O5,L.Rr,J.JJ,J.On,ie.M,ge.L,X.J,Ne.$g,ue.M],pipes:[S.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}"]}),ee})()},34904:(Xe,_e,p)=>{"use strict";p.d(_e,{f:()=>le});var e=p(20449),b=p(533),_=p(32105),w=p(93075),g=p(48966),A=p(36908),E=p(5e3),C=p(51062),O=p(69808),S=p(20773),m=p(62707),B=p(67322),L=p(98833),J=p(47423);function ie(Pe,Fe){1&Pe&&E._UZ(0,"mat-spinner",5)}function ge(Pe,Fe){if(1&Pe){const ze=E.EpF();E.TgZ(0,"div",6),E.TgZ(1,"perun-web-apps-vo-search-select",7),E.NdJ("voSelected",function(Ue){return E.CHM(ze),E.oxw().selectedVo=Ue}),E.qZA(),E.TgZ(2,"mat-form-field"),E._UZ(3,"input",8),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA(),E.qZA(),E.TgZ(8,"mat-form-field"),E._UZ(9,"input",9),E.ALo(10,"translate"),E.TgZ(11,"mat-error"),E._uU(12),E.ALo(13,"translate"),E.qZA(),E.qZA(),E.qZA()}if(2&Pe){const ze=E.oxw();E.xp6(1),E.Q6J("vos",ze.vos),E.xp6(2),E.s9C("placeholder",E.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),E.Q6J("formControl",ze.nameCtrl),E.xp6(3),E.hij(" ",E.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),E.xp6(3),E.s9C("placeholder",E.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),E.Q6J("formControl",ze.descriptionCtrl),E.xp6(3),E.hij(" ",E.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let X=(()=>{class Pe{constructor(ze,ae,Ue,ve,He,z){this.dialogRef=ze,this.data=ae,this.notificator=Ue,this.voService=ve,this.translate=He,this.resourcesManager=z,this.vos=[],this.selectedVo=null,He.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(I=>this.successMessage=I)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(ze=>{this.vos=ze,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new w.NI(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.NI("")}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 Pe.\u0275fac=function(ze){return new(ze||Pe)(E.Y36(g.so),E.Y36(g.WI),E.Y36(A.V6),E.Y36(_.YF),E.Y36(C.sK),E.Y36(_.xk))},Pe.\u0275cmp=E.Xpm({type:Pe,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(ze,ae){1&ze&&(E.TgZ(0,"div"),E.YNc(1,ie,1,0,"mat-spinner",0),E.YNc(2,ge,14,15,"div",1),E.TgZ(3,"div",2),E.TgZ(4,"button",3),E.NdJ("click",function(){return ae.onCancel()}),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"button",4),E.NdJ("click",function(){return ae.onSubmit()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.qZA(),E.qZA()),2&ze&&(E.Tol(ae.theme),E.xp6(1),E.Q6J("ngIf",ae.loading),E.xp6(1),E.Q6J("ngIf",!ae.loading),E.xp6(3),E.hij(" ",E.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),E.xp6(2),E.Q6J("disabled",ae.nameCtrl.invalid||ae.descriptionCtrl.invalid||null===ae.selectedVo||ae.loading),E.xp6(1),E.hij(" ",E.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},directives:[O.O5,S.$g,g.xY,m.M,B.KE,L.Nt,w.Fj,w.Q7,w.JJ,w.oH,B.TO,g.H8,J.lW],pipes:[C.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),Pe})();var Ne=p(10036),ue=p(9244),Oe=p(96214),T=p(7434),Z=p(62109);function W(Pe,Fe){if(1&Pe){const ze=E.EpF();E.TgZ(0,"button",7),E.NdJ("click",function(){return E.CHM(ze),E.oxw().createResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Pe&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function Y(Pe,Fe){if(1&Pe){const ze=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){return E.CHM(ze),E.oxw().removeResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Pe){const ze=E.oxw();E.Q6J("disabled",0===ze.selected.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function ee(Pe,Fe){1&Pe&&E._UZ(0,"mat-spinner",9)}function ce(Pe,Fe){if(1&Pe&&E._UZ(0,"perun-web-apps-resources-list",10),2&Pe){const ze=E.oxw();E.Q6J("tableId",ze.tableId)("filterValue",ze.filterValue)("resources",ze.resources)("selection",ze.selected)("disableRouting",!ze.routeAuth)("displayedColumns",ze.displayedColumns)}}let le=(()=>{class Pe{constructor(ze,ae,Ue,ve){this.dialog=ze,this.facilitiesManager=ae,this.authResolver=Ue,this.entityStorageService=ve,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=Ne.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}removeResource(){const ze=(0,ue.kZ)();ze.width="450px",ze.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(b.f,ze).afterClosed().subscribe(Ue=>{Ue&&this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(ze=>{this.resources=ze,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(ze){this.filterValue=ze}createResource(){const ze=(0,ue.kZ)();ze.width="1350px",ze.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(X,ze).afterClosed().subscribe(Ue=>{Ue&&this.refreshTable()})}}return Pe.id="FacilityResourcesComponent",Pe.\u0275fac=function(ze){return new(ze||Pe)(E.Y36(g.uw),E.Y36(_.IQ),E.Y36(A.x4),E.Y36(A.fb))},Pe.\u0275cmp=E.Xpm({type:Pe,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(ze,ae){2&ze&&E.ekj("router-component",ae.true)},decls:10,vars:8,consts:[[1,"page-subtitle"],[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"],[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(ze,ae){1&ze&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return ae.refreshTable()}),E.qZA(),E.YNc(5,W,3,3,"button",2),E.YNc(6,Y,3,4,"button",3),E.TgZ(7,"perun-web-apps-immediate-filter",4),E.NdJ("filter",function(ve){return ae.applyFilter(ve)}),E.qZA(),E.YNc(8,ee,1,0,"mat-spinner",5),E.YNc(9,ce,1,6,"perun-web-apps-resources-list",6),E.qZA()),2&ze&&(E.xp6(2),E.Oqu(E.lcZ(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),E.xp6(3),E.Q6J("ngIf",ae.addAuth),E.xp6(1),E.Q6J("ngIf",ae.removeAuth),E.xp6(1),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",ae.loading),E.xp6(1),E.Q6J("ngIf",!ae.loading))},directives:[Oe.t,O.O5,J.lW,T.L,S.$g,Z.C],pipes:[C.X$],styles:[""]}),Pe})()},86353:(Xe,_e,p)=>{"use strict";p.d(_e,{P:()=>ve});var e=p(32105),b=p(9244),_=p(10036),w=p(20449),g=p(48966),A=p(36908),E=p(93075),C=p(5e3),O=p(51062),S=p(11735),m=p(69808),B=p(20773),L=p(67322),J=p(98833),ie=p(74107),ge=p(90508),X=p(98380),Ne=p(47423);function ue(He,z){1&He&&C._UZ(0,"mat-spinner",7)}function Oe(He,z){if(1&He){const I=C.EpF();C.TgZ(0,"mat-option",16),C.NdJ("click",function(){const Me=C.CHM(I).$implicit;return C.oxw(2).srcFacility=Me}),C._uU(1),C.qZA()}if(2&He){const I=z.$implicit;C.Q6J("value",I),C.xp6(1),C.hij(" ",I.name," ")}}function T(He,z){if(1&He){const I=C.EpF();C.TgZ(0,"div",8),C.TgZ(1,"mat-form-field"),C._UZ(2,"input",9),C.ALo(3,"translate"),C.TgZ(4,"mat-error"),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.qZA(),C.TgZ(7,"mat-form-field"),C._UZ(8,"input",10),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"mat-form-field"),C.TgZ(11,"mat-select",11),C.ALo(12,"translate"),C.TgZ(13,"mat-option",12),C.NdJ("click",function(){return C.CHM(I),C.oxw().srcFacility=null}),C._uU(14),C.ALo(15,"translate"),C.qZA(),C.YNc(16,Oe,2,2,"mat-option",13),C.qZA(),C.qZA(),C.TgZ(17,"perun-web-apps-alert",14),C._UZ(18,"i",15),C.ALo(19,"translate"),C.qZA(),C.qZA()}if(2&He){const I=C.oxw();C.xp6(2),C.s9C("placeholder",C.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),C.Q6J("formControl",I.nameControl),C.xp6(3),C.Oqu(C.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),C.xp6(3),C.s9C("placeholder",C.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),C.Q6J("formControl",I.descControl),C.xp6(3),C.s9C("placeholder",C.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),C.xp6(3),C.hij(" ",C.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),C.xp6(2),C.Q6J("ngForOf",I.facilities),C.xp6(2),C.Q6J("innerHTML",C.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),C.oJD)}}let Z=(()=>{class He{constructor(I,me,Ae,Me,pe,we,$e){this.dialogRef=I,this.data=me,this.facilitiesManager=Ae,this.notificator=Me,this.translate=pe,this.router=we,this.entityStorageService=$e,this.nameControl=new E.NI("",[E.kI.required]),this.descControl=new E.NI(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(I=>{this.facilities=I,this.loading=!1},()=>this.loading=!1)}onCreate(I){this.loading=!0,this.configure=I,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(me=>{this.entityStorageService.setEntity({id:me.id,beanName:me.beanName}),sessionStorage.setItem("newFacilityId",String(me.id)),null!==this.srcFacility?this.copyFacilitySettings(me.id):this.handleSuccess(me.id)})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(I){this.facilitiesManager.copyAttributes(this.srcFacility.id,I).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,I).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,I).subscribe(()=>{this.handleSuccess(I)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(I){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",I.toString(),"configuration"]),this.dialogRef.close(!0)}}return He.\u0275fac=function(I){return new(I||He)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.IQ),C.Y36(A.V6),C.Y36(O.sK),C.Y36(S.F0),C.Y36(A.fb))},He.\u0275cmp=C.Xpm({type:He,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(I,me){1&I&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,ue,1,0,"mat-spinner",1),C.YNc(5,T,20,21,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return me.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return me.onCreate(!1)}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"button",6),C.NdJ("click",function(){return me.onCreate(!0)}),C._uU(14),C.ALo(15,"translate"),C.qZA(),C.qZA(),C.qZA()),2&I&&(C.Tol(me.theme),C.xp6(2),C.Oqu(C.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),C.xp6(2),C.Q6J("ngIf",me.loading),C.xp6(1),C.Q6J("ngIf",!me.loading),C.xp6(3),C.hij(" ",C.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),C.xp6(2),C.Q6J("disabled",0===me.nameControl.value.trim().length||me.loading),C.xp6(1),C.hij(" ",C.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),C.xp6(2),C.Q6J("disabled",0===me.nameControl.value.trim().length||!!me.srcFacility||me.loading),C.xp6(1),C.hij(" ",C.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},directives:[m.O5,B.$g,g.xY,L.KE,J.Nt,E.Fj,E.Q7,E.JJ,E.oH,L.TO,ie.gD,ge.ey,m.sg,X.w,g.H8,Ne.lW],pipes:[O.X$],styles:[""]}),He})();var W=p(54037),Y=p(77968),ee=p(4235),ce=p(25245),le=p(96214),Pe=p(7434),Fe=p(74010);function ze(He,z){1&He&&C._UZ(0,"mat-spinner",9)}function ae(He,z){if(1&He&&C._UZ(0,"perun-web-apps-facilities-list",10),2&He){const I=C.oxw();C.Q6J("tableId",I.tableId)("selection",I.selection)("filterValue",I.filterValue)("facilities",I.facilities)("recentIds",I.recentIds)}}const Ue=function(){return{color:"black"}};let ve=(()=>{class He{constructor(I,me,Ae){this.facilityManager=I,this.sideMenuService=me,this.dialog=Ae,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=_.xt,this.selection=new w.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(I=>{this.selection.clear(),this.facilities=I,this.recentIds=(0,b.vL)("facilities"),this.loading=!1})}onCreate(){const I=(0,b.kZ)();I.width="800px",I.data={theme:"facility-theme"},this.dialog.open(Z,I).afterClosed().subscribe(Ae=>{Ae&&(this.loading=!0,this.refreshTable())})}onDelete(){const I=(0,b.kZ)();I.width="500px",I.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(W.Y,I).afterClosed().subscribe(Ae=>{Ae&&this.refreshTable()})}applyFilter(I){this.filterValue=I}}return He.id="FacilitySelectPageComponent",He.\u0275fac=function(I){return new(I||He)(C.Y36(e.IQ),C.Y36(Y.D),C.Y36(g.uw))},He.\u0275cmp=C.Xpm({type:He,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(I,me){2&I&&C.ekj("router-component",me.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(I,me){1&I&&(C.TgZ(0,"div",0),C._UZ(1,"perun-web-apps-back-button"),C.TgZ(2,"h1",1),C._UZ(3,"mat-icon",2),C._uU(4),C.ALo(5,"translate"),C.qZA(),C.TgZ(6,"perun-web-apps-refresh-button",3),C.NdJ("refresh",function(){return me.refreshTable()}),C.qZA(),C.TgZ(7,"button",4),C.NdJ("click",function(){return me.onCreate()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return me.onDelete()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"perun-web-apps-immediate-filter",6),C.NdJ("filter",function(Me){return me.applyFilter(Me)}),C.qZA(),C.YNc(14,ze,1,0,"mat-spinner",7),C.YNc(15,ae,1,5,"perun-web-apps-facilities-list",8),C.qZA()),2&I&&(C.xp6(3),C.Q6J("ngStyle",C.DdM(15,Ue)),C.xp6(1),C.hij(" ",C.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),C.xp6(4),C.hij(" ",C.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),C.xp6(2),C.Q6J("disabled",0===me.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),C.xp6(2),C.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),C.xp6(1),C.Q6J("ngIf",me.loading),C.xp6(1),C.Q6J("ngIf",!me.loading))},directives:[ee.W,ce.Hw,m.PC,le.t,Ne.lW,Pe.L,m.O5,B.$g,Fe.X],pipes:[O.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),He})()},51076:(Xe,_e,p)=>{"use strict";p.d(_e,{J:()=>Ne});var e=p(48966),b=p(36908),_=p(32105),w=p(9244),g=p(93075),A=p(5e3),E=p(51062),C=p(67322),O=p(98833),S=p(74107),m=p(69808),B=p(90508),L=p(47423),J=p(57706);let ie=(()=>{class ue{constructor(T){this.translateService=T,this.returnData=""}transform(T){switch(T){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(Z=>{this.returnData=Z});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(Z=>{this.returnData=Z});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(Z=>{this.returnData=Z});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(Z=>{this.returnData=Z});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(Z=>{this.returnData=Z});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(Z=>{this.returnData=Z});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(Z=>{this.returnData=Z});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(Z=>{this.returnData=Z});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(Z=>{this.returnData=Z});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(Z=>{this.returnData=Z});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(Z=>{this.returnData=Z});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(Z=>{this.returnData=Z});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(Z=>{this.returnData=Z});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(Z=>{this.returnData=Z});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(Z=>{this.returnData=Z});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.LIST_INPUT_BOX").subscribe(Z=>{this.returnData=Z});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.MAP_INPUT_BOX").subscribe(Z=>{this.returnData=Z});break;default:return T}return this.returnData}}return ue.\u0275fac=function(T){return new(T||ue)(A.Y36(E.sK,16))},ue.\u0275pipe=A.Yjl({name:"applicationFormWidgetDescription",type:ue,pure:!0}),ue})();function ge(ue,Oe){if(1&ue&&(A.TgZ(0,"mat-option",9),A._uU(1),A.ALo(2,"applicationFormItemType"),A.qZA()),2&ue){const T=Oe.$implicit;A.Q6J("value",T),A.xp6(1),A.hij(" ",A.lcZ(2,2,T)," ")}}function X(ue,Oe){if(1&ue&&(A.TgZ(0,"mat-option",9),A._uU(1),A.qZA()),2&ue){const T=Oe.$implicit;A.Q6J("value",T),A.xp6(1),A.hij(" ",T," ")}}let Ne=(()=>{class ue{constructor(T,Z,W,Y){this.dialogRef=T,this.data=Z,this.translateService=W,this.store=Y,this.languages=this.store.get("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 g.NI("",[g.kI.required,g.kI.pattern(".*[\\S]+.*"),g.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(T);for(const Z of this.data.applicationFormItems)this.items.push(Z.shortname),Z.type===_.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(W=>W!==_.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=T})}cancel(){this.dialogRef.close(void 0)}submit(){const T=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,T])}createApplicationItem(){const T=(0,w.dv)(this.languages);T.id=this.data.fakeId,T.shortname=this.nameCtrl.value,T.type=this.selectedWidget;for(let Z=0;Z{"use strict";p.d(_e,{o:()=>d});var e=p(48966),b=p(36908),_=p(20449),w=p(32105),g=p(64080),A=p(9244),E=p(10036),C=p(84847),O=p(32075),S=p(5e3);let m=(()=>{class l{transform(i,t){if("vo"===t){if(null!=i.member)return"Member of VO"}else{if(null!=i.member&&0!==i.member.sourceGroupId&&"DIRECT"===i.member.membershipType)return"Member of Group";if(null!=i.member&&0!==i.member.sourceGroupId&&"INDIRECT"===i.member.membershipType)return"Indirect member of Group";if(null!=i.member)return"Member of VO"}return""}}return l.\u0275fac=function(i){return new(i||l)},l.\u0275pipe=S.Yjl({name:"memberType",type:l,pure:!0}),l})();var B=p(18750),L=p(77446),J=p(29772),ie=p(69808),ge=p(98380),X=p(51062),Ne=p(69773),ue=p(21757),Oe=p(31359),T=p(9954);function Z(l,s){if(1&l){const i=S.EpF();S.TgZ(0,"th",18),S.TgZ(1,"mat-checkbox",19),S.NdJ("change",function(n){S.CHM(i);const a=S.oxw();return n?a.masterToggle():null}),S.qZA(),S.qZA()}if(2&l){const i=S.oxw();S.xp6(1),S.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function W(l,s){if(1&l){const i=S.EpF();S.TgZ(0,"td",20),S.TgZ(1,"div",21),S.ALo(2,"translate"),S.TgZ(3,"mat-checkbox",22),S.NdJ("change",function(n){const c=S.CHM(i).$implicit,h=S.oxw();return n?h.itemSelectionToggle(c):null})("click",function(n){return n.stopPropagation()}),S.ALo(4,"lowercase"),S.ALo(5,"translate"),S.qZA(),S.qZA(),S.qZA()}if(2&l){const i=s.$implicit,t=S.oxw();S.xp6(1),S.Q6J("matTooltip",S.lcZ(2,6,t.getTooltip(i)))("matTooltipDisabled",!t.isCheckboxDisabled(i)),S.xp6(2),S.Q2q("data-cy","",S.lcZ(4,8,S.lcZ(5,10,i.richUser?i.richUser.firstName:i.candidate.firstName)),"-checkbox"),S.Q6J("aria-label",t.checkboxLabel(i))("checked",t.selection.isSelected(i))("disabled",t.isCheckboxDisabled(i))}}function Y(l,s){1&l&&(S.TgZ(0,"th",23),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&l&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function ee(l,s){if(1&l&&(S.TgZ(0,"i",26),S.ALo(1,"memberStatusIconColor"),S._uU(2),S.ALo(3,"memberStatusIcon"),S.qZA()),2&l){const i=S.oxw().$implicit;S.Gre("material-icons ",S.lcZ(1,5,i.member.status),""),S.s9C("matTooltip",i.member.status),S.xp6(2),S.hij(" ",S.lcZ(3,7,i.member.status)," ")}}function ce(l,s){if(1&l&&(S.TgZ(0,"td",24),S.YNc(1,ee,4,9,"i",25),S.qZA()),2&l){const i=s.$implicit;S.xp6(1),S.Q6J("ngIf",i.member)}}function le(l,s){1&l&&(S.TgZ(0,"th",23),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&l&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function Pe(l,s){if(1&l&&(S.TgZ(0,"td",24),S._uU(1),S.ALo(2,"userFullName"),S.ALo(3,"userFullName"),S.qZA()),2&l){const i=s.$implicit;S.xp6(1),S.hij(" ",i.richUser?S.lcZ(2,1,i.richUser):S.lcZ(3,3,i.candidate)," ")}}function Fe(l,s){1&l&&(S.TgZ(0,"th",23),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&l&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function ze(l,s){if(1&l&&(S.TgZ(0,"td",24),S._uU(1),S.ALo(2,"userVo"),S.qZA()),2&l){const i=s.$implicit,t=S.oxw();S.xp6(1),S.hij(" ",i.richUser?S.lcZ(2,1,i.richUser):t.getOrganization(i.candidate)," ")}}function ae(l,s){1&l&&(S.TgZ(0,"th",23),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&l&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function Ue(l,s){if(1&l&&(S.TgZ(0,"td",24),S._uU(1),S.qZA()),2&l){const i=s.$implicit,t=S.oxw();S.xp6(1),S.hij(" ",t.getEmail(i)," ")}}function ve(l,s){1&l&&(S.TgZ(0,"th",23),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&l&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function He(l,s){if(1&l&&(S.TgZ(0,"td",24),S._uU(1),S.qZA()),2&l){const i=s.$implicit,t=S.oxw();S.xp6(1),S.hij(" ",t.getLogins(i)," ")}}function z(l,s){1&l&&(S.TgZ(0,"th",23),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&l&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function I(l,s){if(1&l&&(S.TgZ(0,"td",24),S._uU(1),S.ALo(2,"memberType"),S.qZA()),2&l){const i=s.$implicit,t=S.oxw();S.xp6(1),S.hij(" ",S.xi3(2,1,i,t.type)," ")}}function me(l,s){1&l&&S._UZ(0,"th",23)}function Ae(l,s){if(1&l&&(S.TgZ(0,"td",24),S._uU(1),S.qZA()),2&l){const i=s.$implicit;S.xp6(1),S.hij(" ",i.richUser?"Local":"External identity"," ")}}function Me(l,s){1&l&&S._UZ(0,"tr",27)}function pe(l,s){1&l&&S._UZ(0,"tr",28)}function we(l,s){1&l&&(S.TgZ(0,"perun-web-apps-alert",29),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&l&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}let $e=(()=>{class l{constructor(i,t,n,a){this.guiAuthResolver=i,this.memberTypePipe=t,this.tableCheckbox=n,this.cd=a,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=A.f7,this.addAuth=!1,this.getDataForColumnFun=(c,h)=>this.getDataForColumn(c,h,this.type),this.getExportDataForColumnFun=(c,h)=>this.getExportDataForColumn(c,h,this.type)}set matSort(i){this.sort=i,this.setDataSource()}getDataForColumn(i,t,n){var a,c;switch(t){case"status":return i.member&&null!==(a=i.member.status)&&void 0!==a?a:"";case"fullName":{const h=i.richUser?i.richUser:i.candidate;return h.lastName?h.lastName:null!==(c=h.firstName)&&void 0!==c?c:""}case"voExtSource":return i.richUser?(0,A.OV)(i.richUser):(0,A.v$)(i.candidate);case"email":return i.richUser||i.member?(0,A.kN)(i.richUser):this.getEmail(i);case"logins":return this.getLogins(i);case"alreadyMember":return this.memberTypePipe.transform(i,n);case"local":return i.richUser?"Local":"External identity";default:return i[t]}}getExportDataForColumn(i,t,n){var a;switch(t){case"status":return i.member&&null!==(a=i.member.status)&&void 0!==a?a:"";case"fullName":return(0,A.bD)(i.richUser?i.richUser:i.candidate);case"voExtSource":return i.richUser?(0,A.OV)(i.richUser):(0,A.v$)(i.candidate);case"email":return i.richUser||i.member?(0,A.kN)(i.richUser):this.getEmail(i);case"logins":return this.getLogins(i);case"alreadyMember":return this.memberTypePipe.transform(i,n);case"local":return i.richUser?"Local":"External identity";default:return i[t]}}exportData(i){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),i)}setDataSource(){null==this.child||!this.child.paginator||this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(i,t)=>(0,A.Sd)(i,t,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(i,t)=>(0,A.pR)(i,t,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.cd.detectChanges(),this.setDataSource(),this.setAddAuth()}ngOnChanges(){this.dataSource=new O.by(this.members),this.setDataSource()}getEmail(i){let t;if(i.richUser){for(const n of i.richUser.userAttributes)if(n.namespace+":"+n.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){t=n;break}return null!=(null==t?void 0:t.value)?t.value.replace(","," "):""}return(0,A.Jc)(i.candidate)}getOrganization(i){return(0,A.v$)(i)}getLogins(i){if(i.richUser)return this.getLoginsForRichUser(i.richUser);{let t=this.getLoginsForCandidate(i.candidate);return(null==t||""===t)&&(t=i.candidate.userExtSource.login),t}}getLoginsForRichUser(i){let t="";for(const n of i.userAttributes)n.friendlyName.startsWith("login-namespace")&&null!=n.value&&(t.length>0&&(t+=", "),t+=n.friendlyName.substring(16)+": "+n.value);return t}getLoginsForCandidate(i){let n="";for(const a in i.attributes)Object.prototype.hasOwnProperty.call(i.attributes,a)&&a.includes("urn:perun:user:attribute-def:def:login-namespace:")&&null!=i.attributes[a]&&(n.length>0&&(n+=", "),n+=a.substring(49)+": "+i.attributes[a]);return n}isCheckboxDisabled(i){return"vo"===this.type?null!=i.member:i.member?0!==i.member.sourceGroupId&&"DIRECT"===i.member.membershipType:this.blockManualAdding}setAddAuth(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected.every(i=>i.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}itemSelectionToggle(i){this.selection.toggle(i),this.setAddAuth()}getTooltip(i){return i.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1),this.setAddAuth()}checkboxLabel(i){return i?this.selection.isSelected(i)?"deselect":"select":(this.isAllSelected()?"select":"deselect")+" all"}}return l.\u0275fac=function(i){return new(i||l)(S.Y36(b.x4),S.Y36(m),S.Y36(b.UA),S.Y36(S.sBO))},l.\u0275cmp=S.Xpm({type:l,selectors:[["app-members-candidates-list"]],viewQuery:function(i,t){if(1&i&&(S.Gf(A.l9,7),S.Gf(C.YE,5)),2&i){let n;S.iGM(n=S.CRH())&&(t.child=n.first),S.iGM(n=S.CRH())&&(t.matSort=n.first)}},inputs:{members:"members",selection:"selection",type:"type",tableId:"tableId",group:"group",blockManualAdding:"blockManualAdding"},features:[S._Bn([{provide:m}]),S.TTD],decls:30,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","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","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"],["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(i,t){1&i&&(S.TgZ(0,"div",0),S.TgZ(1,"perun-web-apps-table-wrapper",1),S.NdJ("exportData",function(a){return t.exportData(a)}),S.TgZ(2,"table",2),S.ynx(3,3),S.YNc(4,Z,2,3,"th",4),S.YNc(5,W,6,12,"td",5),S.BQk(),S.ynx(6,6),S.YNc(7,Y,3,3,"th",7),S.YNc(8,ce,2,1,"td",8),S.BQk(),S.ynx(9,9),S.YNc(10,le,3,3,"th",7),S.YNc(11,Pe,4,5,"td",8),S.BQk(),S.ynx(12,10),S.YNc(13,Fe,3,3,"th",7),S.YNc(14,ze,3,3,"td",8),S.BQk(),S.ynx(15,11),S.YNc(16,ae,3,3,"th",7),S.YNc(17,Ue,2,1,"td",8),S.BQk(),S.ynx(18,12),S.YNc(19,ve,3,3,"th",7),S.YNc(20,He,2,1,"td",8),S.BQk(),S.ynx(21,13),S.YNc(22,z,3,3,"th",7),S.YNc(23,I,3,4,"td",8),S.BQk(),S.ynx(24,14),S.YNc(25,me,1,0,"th",7),S.YNc(26,Ae,2,1,"td",8),S.BQk(),S.YNc(27,Me,1,0,"tr",15),S.YNc(28,pe,1,0,"tr",16),S.qZA(),S.qZA(),S.qZA(),S.YNc(29,we,3,3,"perun-web-apps-alert",17)),2&i&&(S.Q6J("hidden",0===t.members.length),S.xp6(1),S.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),S.xp6(1),S.Q6J("dataSource",t.dataSource),S.xp6(25),S.Q6J("matHeaderRowDef",t.displayedColumns),S.xp6(1),S.Q6J("matRowDefColumns",t.displayedColumns),S.xp6(1),S.Q6J("ngIf",0===t.members.length))},directives:[B.l,O.BZ,C.YE,O.w1,O.fO,O.ge,L.oG,O.Dz,O.ev,J.gM,C.nU,ie.O5,O.as,O.XQ,O.nj,O.Gk,ge.w],pipes:[X.X$,ie.i8,Ne.u,ue.f,Oe.d,T.Z,m],styles:[""]}),l})();var Je=p(93075),nt=p(11735),ke=p(67322),H=p(98833),he=p(47423),P=p(20773),R=p(92181);const V=["list"];function Q(l,s){1&l&&S._UZ(0,"mat-spinner",10)}function Se(l,s){if(1&l&&S._UZ(0,"app-members-candidates-list",13,14),2&l){const i=S.oxw(3);S.Q6J("group",i.data.group)("tableId",i.tableId)("members",i.members)("selection",i.selection)("type",i.data.type)("blockManualAdding",i.manualAddingBlocked)}}function je(l,s){if(1&l&&(S.TgZ(0,"div",11),S.YNc(1,Se,2,6,"app-members-candidates-list",12),S.qZA()),2&l){const i=S.oxw(2);S.xp6(1),S.Q6J("ngIf",i.firstSearchDone)}}function Ye(l,s){if(1&l){const i=S.EpF();S.TgZ(0,"div",4),S.TgZ(1,"mat-form-field",5),S.TgZ(2,"input",6),S.NdJ("keyup.enter",function(){return S.CHM(i),S.oxw().onSearchByString()}),S.ALo(3,"translate"),S.qZA(),S.TgZ(4,"mat-error"),S._uU(5),S.ALo(6,"translate"),S.qZA(),S.qZA(),S.TgZ(7,"button",7),S.NdJ("click",function(){return S.CHM(i),S.oxw().onSearchByString()}),S._uU(8),S.ALo(9,"translate"),S.qZA(),S.TgZ(10,"div",8),S.YNc(11,Q,1,0,"mat-spinner",2),S.qZA(),S.YNc(12,je,2,1,"div",9),S.qZA()}if(2&l){const i=S.oxw();S.xp6(2),S.s9C("placeholder",S.lcZ(3,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),S.Q6J("formControl",i.searchCtrl),S.xp6(3),S.hij(" ",S.lcZ(6,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),S.xp6(2),S.Q6J("disabled",i.loading),S.xp6(1),S.hij(" ",S.lcZ(9,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),S.xp6(3),S.Q6J("ngIf",i.loading),S.xp6(1),S.Q6J("ngIf",!!i.members&&!i.loading)}}function ye(l,s){1&l&&S._UZ(0,"mat-spinner",10)}function re(l,s){if(1&l&&(S.TgZ(0,"button",22),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&l){S.oxw();const i=S.MAs(8),t=S.oxw();S.Q6J("disabled",0===t.selection.selected.length||t.loading)("matMenuTriggerFor",i),S.xp6(1),S.hij(" ",S.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function r(l,s){if(1&l){const i=S.EpF();S.TgZ(0,"button",23),S.NdJ("click",function(){const a=S.CHM(i).$implicit;return S.oxw(2).onInvite(a)}),S._uU(1),S.ALo(2,"translate"),S.ALo(3,"translate"),S.ALo(4,"uppercase"),S.ALo(5,"translate"),S.qZA()}if(2&l){const i=s.$implicit;S.xp6(1),S.lnq(" ",S.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",S.lcZ(3,5,S.lcZ(4,7,"SHARED_LIB.LANGUAGES."+i))," ",S.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function o(l,s){if(1&l){const i=S.EpF();S.TgZ(0,"div",15),S.TgZ(1,"button",16),S.NdJ("click",function(){return S.CHM(i),S.oxw().onCancel()}),S._uU(2),S.ALo(3,"translate"),S.qZA(),S.TgZ(4,"span",17),S.ALo(5,"translate"),S.YNc(6,re,3,5,"button",18),S.TgZ(7,"mat-menu",null,19),S.YNc(9,r,6,11,"button",20),S.qZA(),S.qZA(),S.TgZ(10,"button",21),S.NdJ("click",function(){return S.CHM(i),S.oxw().onAdd()}),S._uU(11),S.ALo(12,"translate"),S.qZA(),S.qZA()}if(2&l){const i=S.oxw();S.xp6(2),S.hij(" ",S.lcZ(3,7,"DIALOGS.ADD_MEMBERS.CANCEL")," "),S.xp6(2),S.s9C("matTooltip",S.lcZ(5,9,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),S.Q6J("matTooltipDisabled",0===i.selection.selected.length||"group"!==i.data.type||void 0!==i.list&&i.list.addAuth),S.xp6(2),S.Q6J("ngIf","group"!==i.data.type||"group"===i.data.type&&i.inviteAuth),S.xp6(3),S.Q6J("ngForOf",i.languages),S.xp6(1),S.Q6J("disabled",0===i.selection.selected.length||i.loading||"group"===i.data.type&&void 0!==i.list&&!i.list.addAuth),S.xp6(1),S.hij(" ",S.lcZ(12,11,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}let d=(()=>{class l{constructor(i,t,n,a,c,h,x,We,At,Ht,lt,Ut){this.dialogRef=i,this.data=t,this.membersManagerService=n,this.groupService=a,this.voService=c,this.registrarManager=h,this.translate=x,this.notificator=We,this.route=At,this.router=Ht,this.guiAuthResolver=lt,this.store=Ut,this.languages=["en"],this.selection=new _.Ov(!0,[]),this.members=[],this.failed=[],this.addSuccess=!0,this.inviteSuccess=!0,this.firstSearchDone=!1,this.tableId=E.tY,this.inviteAuth=!1,this.manualAddingBlocked=!1,x.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(mt=>this.title=mt)}static createCandidate(i){return{userExtSource:i.userExtSource,additionalUserExtSources:i.additionalUserExtSources,attributes:i.attributes,firstName:i.firstName,lastName:i.lastName,middleName:i.middleName,titleBefore:i.titleBefore,titleAfter:i.titleAfter,id:i.id}}ngOnInit(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme,this.manualAddingBlocked=this.data.manualAddingBlocked,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new Je.NI("",[Je.kI.required,Je.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onAdd(){if(this.processing=!0,0===this.selection.selected.length)return void this.onAddSuccess();const i=this.selection.selected.pop();"vo"===this.data.type?i.richUser?this.addUserToVo(i):this.addCandidateToVo(i):"group"===this.data.type&&(i.member?this.addMemberToGroup(i):i.richUser?this.addUserToGroup(i):i.candidate&&this.addCandidateToGroup(i))}onInvite(i){if(this.processing=!0,0===this.selection.selected.length)return void this.onInviteSuccess();const t=this.selection.selected.pop();t.richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(t.richUser.id,this.data.entityId).subscribe(()=>{this.onInvite(i)},()=>this.onInviteError(t)):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(t.richUser.id,this.data.voId,this.data.group.id).subscribe(()=>{this.onInvite(i)},()=>this.onInviteError(t)):"vo"===this.data.type?this.registrarManager.sendInvitation((0,A.Jc)(t.candidate),i,this.data.voId).subscribe(()=>{this.onInvite(i)},()=>this.onInviteError(t)):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup((0,A.Jc)(t.candidate),i,this.data.voId,this.data.group.id).subscribe(()=>{this.onInvite(i)},()=>this.onInviteError(t))}filterMembers(i,t,n){return n.candidate?t.includes(n.candidate.id):i.includes(n.richUser.id)}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[g.r.USER_DEF_ORGANIZATION,g.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(i=>{this.processMemberCandidateList(i)},()=>this.loading=!1):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[g.r.USER_DEF_ORGANIZATION,g.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(i=>{this.processMemberCandidateList(i)},()=>this.loading=!1))}processMemberCandidateList(i){const t=[],n=[];for(const a of this.selection.selected)a.candidate?n.push(a.candidate.id):t.push(a.richUser.id);this.members=[...i.filter(a=>!this.filterMembers(t,n,a)),...this.selection.selected],this.loading=!1,this.firstSearchDone=!0}addUserToVo(i){this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:i.richUser.id}).subscribe(t=>{this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{},()=>this.onCancel()),this.onAdd()},()=>this.onAddError(i))}addCandidateToVo(i){this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:l.createCandidate(i.candidate)}).subscribe(t=>{this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{},()=>this.onCancel()),this.onAdd()},()=>this.onAddError(i))}addUserToGroup(i){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:i.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(n=>{this.membersManagerService.validateMemberAsync(n.id).subscribe(()=>{},()=>this.onCancel()),this.onAdd()},()=>this.onAddError(i))}addMemberToGroup(i){this.groupService.addMembers(this.data.entityId,[i.member.id]).subscribe(()=>{this.onAdd()},()=>this.onAddError(i))}addCandidateToGroup(i){const t={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:l.createCandidate(i.candidate),groups:[t]}).subscribe(n=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(n.id).subscribe(()=>{},()=>this.onCancel()),this.onAdd()},()=>this.onAddError(i))}onAddSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})}onInviteError(i){this.translate.get("DIALOGS.ADD_MEMBERS.ERROR_INVITE").subscribe(t=>{this.notificator.showError(t,null,this.translate.instant("DIALOGS.ADD_MEMBERS.ERROR_INVITE_DESC")+this.convertMemberCandidateToString(i)),this.dialogRef.close(!1)}),this.selection.clear(),this.failed=[],this.inviteSuccess=!0,this.processing=!1}convertMemberCandidateToString(i){return i.richUser?`[id: ${i.richUser.id}, ${i.richUser.firstName}, ${i.richUser.lastName}]`:`[id: ${i.candidate.id}, ${i.candidate.firstName}, ${i.candidate.lastName}]`}onAddError(i){this.translate.get("DIALOGS.ADD_MEMBERS.ERROR_ADD").subscribe(t=>{this.notificator.showError(t,null,this.translate.instant("DIALOGS.ADD_MEMBERS.ERROR_ADD_DESC")+this.convertMemberCandidateToString(i)),this.dialogRef.close(this.selection.selected!==this.failed)}),this.selection.clear(),this.failed=[],this.addSuccess=!0,this.processing=!1}onInviteSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})}}return l.\u0275fac=function(i){return new(i||l)(S.Y36(e.so),S.Y36(e.WI),S.Y36(w.uq),S.Y36(w.ff),S.Y36(w.YF),S.Y36(w.tk),S.Y36(X.sK),S.Y36(b.V6),S.Y36(nt.gz),S.Y36(nt.F0),S.Y36(b.x4),S.Y36(b.d6))},l.\u0275cmp=S.Xpm({type:l,selectors:[["app-add-member-dialog"]],viewQuery:function(i,t){if(1&i&&S.Gf(V,5),2&i){let n;S.iGM(n=S.CRH())&&(t.list=n.first)}},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,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false","data-cy","search-members",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent","data-cy","search-button",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"group","tableId","members","selection","type","blockManualAdding",4,"ngIf"],[3,"group","tableId","members","selection","type","blockManualAdding"],["list",""],["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"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(i,t){1&i&&(S.TgZ(0,"div"),S.TgZ(1,"h1",0),S._uU(2),S.ALo(3,"translate"),S.qZA(),S.YNc(4,Ye,13,13,"div",1),S.YNc(5,ye,1,0,"mat-spinner",2),S.YNc(6,o,13,13,"div",3),S.qZA()),2&i&&(S.Tol(t.theme),S.xp6(2),S.Oqu(S.lcZ(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),S.xp6(2),S.Q6J("ngIf",!t.processing),S.xp6(1),S.Q6J("ngIf",t.processing),S.xp6(1),S.Q6J("ngIf",!t.processing))},directives:[e.uh,ie.O5,e.xY,ke.KE,H.Nt,Je.Fj,Je.JJ,Je.oH,ke.TO,he.lW,P.$g,$e,e.H8,J.gM,R.p6,R.VK,ie.sg,R.OP],pipes:[X.X$,ie.gd],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),l})()},95502:(Xe,_e,p)=>{"use strict";p.d(_e,{W:()=>B});var e=p(48966),b=p(32105),_=p(36908),w=p(5e3),g=p(51062),A=p(69808),E=p(20773),C=p(62707),O=p(82322),S=p(47423);function m(L,J){1&L&&w._UZ(0,"mat-spinner",9)}let B=(()=>{class L{constructor(ie,ge,X,Ne,ue,Oe,T,Z,W){this.dialogRef=ie,this.voService=ge,this.groupService=X,this.translateService=Ne,this.registrarManager=ue,this.notificatorService=Oe,this.apiRequest=T,this.cd=Z,this.data=W,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=Y=>Y.name,Ne.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(Y=>this.successMessage=Y),Ne.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(Y=>this.privilegeMessage=Y),Ne.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(Y=>this.noFormMessage=Y)}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(ie=>{this.vos=ie,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)},ie=>{const ge=ie.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.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)},ie=>{const ge=ie.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.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)},ie=>{const ge=ie.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.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)},ie=>{const ge=ie.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(ie){this.selectedVo=ie,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(ie=>{this.groups=ie}):this.groups=[],this.selectedGroup=null}}return L.\u0275fac=function(ie){return new(ie||L)(w.Y36(e.so),w.Y36(b.YF),w.Y36(b.ff),w.Y36(g.sK),w.Y36(b.tk),w.Y36(_.V6),w.Y36(_.F5),w.Y36(w.sBO),w.Y36(e.WI))},L.\u0275cmp=w.Xpm({type:L,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(ie,ge){1&ie&&(w.TgZ(0,"div"),w.TgZ(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,m,1,0,"mat-spinner",1),w.TgZ(5,"div",2),w.TgZ(6,"div",3),w._uU(7),w.ALo(8,"translate"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.TgZ(11,"perun-web-apps-vo-search-select",4),w.NdJ("voSelected",function(Ne){return ge.voSelected(Ne)}),w.qZA(),w._uU(12),w.ALo(13,"translate"),w.TgZ(14,"perun-web-apps-group-search-select",5),w.NdJ("groupSelected",function(Ne){return ge.selectedGroup=Ne}),w.qZA(),w.qZA(),w.TgZ(15,"div",6),w.TgZ(16,"button",7),w.NdJ("click",function(){return ge.cancel()}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"button",8),w.NdJ("click",function(){return ge.submit()}),w._uU(20),w.ALo(21,"translate"),w.qZA(),w.qZA(),w.qZA()),2&ie&&(w.Tol(ge.theme),w.xp6(2),w.Oqu(w.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),w.xp6(2),w.Q6J("ngIf",ge.loading),w.xp6(1),w.Q6J("hidden",ge.loading),w.xp6(2),w.hij(" ",w.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),w.xp6(2),w.hij(" ",w.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),w.xp6(2),w.Q6J("vos",ge.vos),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),w.xp6(2),w.Q6J("groups",ge.groups)("disableAutoSelect",!0),w.xp6(3),w.hij(" ",w.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),w.xp6(2),w.Q6J("disabled",!ge.selectedVo&&!ge.selectedGroup||ge.loading),w.xp6(1),w.hij(" ",w.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},directives:[e.uh,A.O5,E.$g,e.xY,C.M,O.h,e.H8,S.lW],pipes:[g.X$],styles:[""]}),L})()},40009:(Xe,_e,p)=>{"use strict";p.d(_e,{R:()=>ge});var e=p(48966),b=p(36908),_=p(93075),w=p(32105),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),O=p(67322),S=p(98833),m=p(77446),B=p(47423);function L(X,Ne){1&X&&g._UZ(0,"mat-spinner",4)}function J(X,Ne){if(1&X){const ue=g.EpF();g.TgZ(0,"div",5),g.TgZ(1,"mat-form-field"),g.TgZ(2,"input",6),g.NdJ("change",function(){return g.CHM(ue),g.oxw().makePath()}),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-error"),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.qZA(),g.TgZ(7,"mat-form-field"),g.TgZ(8,"input",7),g.NdJ("ngModelChange",function(T){return g.CHM(ue),g.oxw().description=T}),g.ALo(9,"translate"),g.qZA(),g.qZA(),g.TgZ(10,"mat-form-field"),g._UZ(11,"input",8),g.ALo(12,"translate"),g.TgZ(13,"mat-error"),g._uU(14),g.ALo(15,"translate"),g.qZA(),g.qZA(),g.TgZ(16,"mat-form-field"),g._UZ(17,"input",9),g.ALo(18,"translate"),g.TgZ(19,"mat-error"),g._uU(20),g.ALo(21,"translate"),g.qZA(),g.qZA(),g.TgZ(22,"mat-form-field"),g._UZ(23,"input",8),g.ALo(24,"translate"),g.TgZ(25,"mat-error"),g._uU(26),g.ALo(27,"translate"),g.qZA(),g.qZA(),g.TgZ(28,"span",10),g._uU(29),g.ALo(30,"translate"),g.TgZ(31,"mat-checkbox",11),g.NdJ("ngModelChange",function(T){return g.CHM(ue),g.oxw().status=T}),g._uU(32),g.ALo(33,"translate"),g.qZA(),g.qZA(),g.TgZ(34,"span",10),g._uU(35),g.ALo(36,"translate"),g.TgZ(37,"mat-checkbox",11),g.NdJ("ngModelChange",function(T){return g.CHM(ue),g.oxw().propagateExpiredMembers=T}),g._uU(38),g.ALo(39,"translate"),g.qZA(),g.qZA(),g.qZA()}if(2&X){const ue=g.oxw();g.xp6(2),g.s9C("placeholder",g.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),g.Q6J("formControl",ue.nameControl),g.xp6(3),g.Oqu(g.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),g.xp6(3),g.s9C("placeholder",g.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),g.Q6J("ngModel",ue.description),g.xp6(3),g.s9C("placeholder",g.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),g.Q6J("formControl",ue.delayControl),g.xp6(3),g.Oqu(g.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),g.xp6(3),g.s9C("placeholder",g.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),g.Q6J("formControl",ue.recurrenceControl),g.xp6(3),g.Oqu(g.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),g.xp6(3),g.s9C("placeholder",g.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),g.Q6J("formControl",ue.pathControl),g.xp6(3),g.Oqu(g.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),g.xp6(3),g.hij("",g.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),g.xp6(2),g.Q6J("ngModel",ue.status),g.xp6(1),g.Oqu(g.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),g.xp6(3),g.hij("",g.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),g.xp6(2),g.Q6J("ngModel",ue.propagateExpiredMembers),g.xp6(1),g.Oqu(g.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function ie(X,Ne){if(1&X){const ue=g.EpF();g.TgZ(0,"div",12),g.TgZ(1,"button",13),g.NdJ("click",function(){return g.CHM(ue),g.oxw().onCancel()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",14),g.NdJ("click",function(){g.CHM(ue);const T=g.oxw();return T.asEdit?T.onEdit():T.onCreate()}),g._uU(5),g.qZA(),g.qZA()}if(2&X){const ue=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",ue.nameControl.invalid||ue.delayControl.invalid||ue.recurrenceControl.invalid||ue.pathControl.invalid),g.xp6(1),g.hij(" ",ue.buttonText," ")}}let ge=(()=>{class X{constructor(ue,Oe,T,Z,W){this.dialogRef=ue,this.data=Oe,this.serviceManager=T,this.notificator=Z,this.translate=W,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new _.NI("",[_.kI.required,_.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new _.NI(10,[_.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new _.NI(2,[_.kI.pattern("^[0-9]*$")]),this.pathControl=new _.NI("",[_.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 ue="./".concat(this.nameControl.value);this.pathControl.setValue(ue)}}return X.\u0275fac=function(ue){return new(ue||X)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.KK),g.Y36(b.V6),g.Y36(A.sK))},X.\u0275cmp=g.Xpm({type:X,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","","required","",3,"placeholder","formControl","change"],["matInput","",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","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ue,Oe){1&ue&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.qZA(),g.YNc(3,L,1,0,"mat-spinner",1),g.YNc(4,J,40,46,"div",2),g.YNc(5,ie,6,5,"div",3),g.qZA()),2&ue&&(g.Tol(Oe.theme),g.xp6(2),g.Oqu(Oe.title),g.xp6(1),g.Q6J("ngIf",Oe.loading),g.xp6(1),g.Q6J("ngIf",!Oe.loading),g.xp6(1),g.Q6J("ngIf",!Oe.loading))},directives:[e.uh,E.O5,C.$g,e.xY,O.KE,S.Nt,_.Fj,_.Q7,_.JJ,_.oH,O.TO,_.On,m.oG,e.H8,B.lW],pipes:[A.X$],styles:[""]}),X})()},81889:(Xe,_e,p)=>{"use strict";p.d(_e,{y:()=>Ne});var e=p(48966),b=p(36908),_=p(32105),w=p(93075),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),O=p(67322),S=p(98833),m=p(77446),B=p(82322),L=p(47423);function J(ue,Oe){1&ue&&g._UZ(0,"mat-spinner",3)}function ie(ue,Oe){if(1&ue){const T=g.EpF();g.TgZ(0,"mat-checkbox",14),g.NdJ("ngModelChange",function(W){return g.CHM(T),g.oxw(2).asSubgroup=W})("click",function(){return g.CHM(T),g.oxw(2).loadVoGroups()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&ue){const T=g.oxw(2);g.Q6J("ngModel",T.asSubgroup)("labelPosition","before"),g.xp6(1),g.hij(" ",g.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function ge(ue,Oe){if(1&ue){const T=g.EpF();g.TgZ(0,"perun-web-apps-group-search-select",15),g.NdJ("groupSelected",function(W){return g.CHM(T),g.oxw(2).selectedParent=W}),g.qZA()}if(2&ue){const T=g.oxw(2);g.Q6J("disableAutoSelect",!0)("groups",T.voGroups)}}function X(ue,Oe){if(1&ue){const T=g.EpF();g.TgZ(0,"div"),g.TgZ(1,"div",4),g.TgZ(2,"mat-form-field"),g.TgZ(3,"label",5),g._UZ(4,"input",6),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"mat-error"),g._uU(7),g.ALo(8,"translate"),g.qZA(),g.qZA(),g.TgZ(9,"mat-form-field",7),g.TgZ(10,"label",5),g.TgZ(11,"textarea",8),g.ALo(12,"translate"),g._uU(13," "),g.qZA(),g.qZA(),g.qZA(),g.YNc(14,ie,3,5,"mat-checkbox",9),g.YNc(15,ge,1,2,"perun-web-apps-group-search-select",10),g.qZA(),g.TgZ(16,"div",11),g.TgZ(17,"button",12),g.NdJ("click",function(){return g.CHM(T),g.oxw().onCancel()}),g._uU(18),g.ALo(19,"translate"),g.qZA(),g.TgZ(20,"button",13),g.NdJ("click",function(){return g.CHM(T),g.oxw().onSubmit()}),g._uU(21),g.ALo(22,"translate"),g.qZA(),g.qZA(),g.qZA()}if(2&ue){const T=g.oxw();g.xp6(4),g.s9C("placeholder",g.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),g.Q6J("formControl",T.nameControl),g.xp6(3),g.hij(" ",T.invalidNameMessage.length?T.invalidNameMessage:g.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),g.xp6(4),g.s9C("placeholder",g.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),g.Q6J("formControl",T.descriptionControl),g.xp6(3),g.Q6J("ngIf",T.isNotSubGroup),g.xp6(1),g.Q6J("ngIf",T.asSubgroup),g.xp6(3),g.hij(" ",g.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),g.xp6(2),g.Q6J("disabled",T.nameControl.invalid||T.descriptionControl.invalid||T.asSubgroup&&null===T.selectedParent||T.loading),g.xp6(1),g.hij(" ",g.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let Ne=(()=>{class ue{constructor(T,Z,W,Y,ee,ce){this.dialogRef=T,this.data=Z,this.groupService=W,this.translate=Y,this.notificator=ee,this.store=ce,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameFunction=le=>le.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?Y.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(le=>this.title=le):Y.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(le=>{this.title=le+this.data.parentGroup.name}),Y.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(le=>this.successMessage=le),Y.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(le=>this.successSubGroupMessage=le)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new w.NI("",[w.kI.required,w.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),w.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new w.NI(""),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(Z=>"members"!==Z.name)})}}return ue.\u0275fac=function(T){return new(T||ue)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.ff),g.Y36(A.sK),g.Y36(b.V6),g.Y36(b.d6))},ue.\u0275cmp=g.Xpm({type:ue,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,Z){1&T&&(g.TgZ(0,"h1",0),g._uU(1),g.qZA(),g.TgZ(2,"div"),g.YNc(3,J,1,0,"mat-spinner",1),g.YNc(4,X,23,20,"div",2),g.qZA()),2&T&&(g.xp6(1),g.Oqu(Z.title),g.xp6(1),g.Tol(Z.theme),g.xp6(1),g.Q6J("ngIf",Z.loading),g.xp6(1),g.Q6J("ngIf",!Z.loading))},directives:[e.uh,E.O5,C.$g,e.xY,O.KE,S.Nt,w.Fj,w.Q7,w.JJ,w.oH,O.TO,m.oG,w.On,B.h,e.H8,L.lW],pipes:[A.X$],styles:[""]}),ue})()},54037:(Xe,_e,p)=>{"use strict";p.d(_e,{Y:()=>C});var e=p(32105),b=p(48966),_=p(36908),w=p(32075),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class O{constructor(m,B,L,J,ie){this.dialogRef=m,this.data=B,this.facilitiesManager=L,this.notificator=J,this.translate=ie,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 w.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(m){this.force=m.force,m.deleted?this.onConfirm():this.onCancel()}}return O.\u0275fac=function(m){return new(m||O)(g.Y36(b.so),g.Y36(b.WI),g.Y36(e.IQ),g.Y36(_.V6),g.Y36(A.sK))},O.\u0275cmp=g.Xpm({type:O,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,B){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(J){return B.onSubmit(J)}),g.qZA(),g.qZA()),2&m&&(g.Tol(B.theme),g.xp6(1),g.Q6J("entityNames",B.dataSource)("entityType","facilities")("loading",B.loading)("relations",B.relations))},directives:[E.e],styles:[""]}),O})()},41656:(Xe,_e,p)=>{"use strict";p.d(_e,{P:()=>C});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class O{constructor(m,B,L,J,ie){this.dialogRef=m,this.data=B,this.notificator=L,this.translate=J,this.groupService=ie,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.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 m=this.data.groups.map(B=>B.id);this.groupService.deleteGroups({groups:m,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(B=>{this.notificator.showSuccess(B),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(m){this.force=m.force,m.deleted?this.onDelete():this.onCancel()}}return O.\u0275fac=function(m){return new(m||O)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(A.sK),g.Y36(w.ff))},O.\u0275cmp=g.Xpm({type:O,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,B){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(J){return B.onSubmit(J)}),g.qZA(),g.qZA()),2&m&&(g.Tol(B.theme),g.xp6(1),g.Q6J("entityNames",B.dataSource)("entityType","groups")("loading",B.loading)("relations",B.relations))},directives:[E.e],styles:[""]}),O})()},90719:(Xe,_e,p)=>{"use strict";p.d(_e,{m:()=>C});var e=p(32105),b=p(48966),_=p(36908),w=p(32075),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class O{constructor(m,B,L,J,ie){this.dialogRef=m,this.data=B,this.serviceManager=L,this.notificator=J,this.translate=ie,this.dataSource=new w.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(){if(0===this.services.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS"));this.loading=!0,this.serviceManager.deleteService(this.services.pop().id,this.force).subscribe(()=>{this.onConfirm(),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(m){this.force=m.force,m.deleted?this.onConfirm():this.onCancel()}}return O.\u0275fac=function(m){return new(m||O)(g.Y36(b.so),g.Y36(b.WI),g.Y36(e.KK),g.Y36(_.V6),g.Y36(A.sK))},O.\u0275cmp=g.Xpm({type:O,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(m,B){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(J){return B.onSubmit(J)}),g.qZA(),g.qZA()),2&m&&(g.Tol(B.theme),g.xp6(1),g.Q6J("entityNames",B.dataSource)("entityType","services")("anotherMessage",B.anotherMessage)("loading",B.loading)("relations",B.relations))},directives:[E.e],styles:[""]}),O})()},83491:(Xe,_e,p)=>{"use strict";p.d(_e,{_:()=>Q});var e=p(48966),b=p(32105),_=p(9244),w=p(387),g=p(36908),A=p(5e3),E=p(51062),C=p(69808),O=p(20773),S=p(53251);const m=["*"];let B=(()=>{class Se{}return Se.\u0275fac=function(Ye){return new(Ye||Se)},Se.\u0275cmp=A.Xpm({type:Se,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:m,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(Ye,ye){1&Ye&&(A.F$t(),A.TgZ(0,"div",0),A.TgZ(1,"span",1),A._uU(2),A.qZA(),A.TgZ(3,"div",2),A.Hsn(4),A.qZA(),A.qZA(),A.TgZ(5,"div",3),A._UZ(6,"span",4),A.TgZ(7,"div",5),A._uU(8),A.qZA(),A.qZA()),2&Ye&&(A.xp6(2),A.hij("",ye.label,":"),A.xp6(6),A.hij(" ",ye.description," "))},styles:[""]}),Se})();var L=p(67322),J=p(98833),ie=p(93075),ge=p(77446),X=p(52170),Ne=p(74107),ue=p(90508),Oe=p(63312),T=p(74533),Z=p(47423),W=p(29772),Y=p(25245),ee=p(57706);let ce=(()=>{class Se{constructor(Ye){this.translateService=Ye}transform(Ye){switch(Ye){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+Ye);default:return Ye}}}return Se.\u0275fac=function(Ye){return new(Ye||Se)(A.Y36(E.sK,16))},Se.\u0275pipe=A.Yjl({name:"applicationFormItemDisabled",type:Se,pure:!0}),Se})(),le=(()=>{class Se{constructor(Ye){this.translateService=Ye}transform(Ye){switch(Ye){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+Ye);default:return Ye}}}return Se.\u0275fac=function(Ye){return new(Ye||Se)(A.Y36(E.sK,16))},Se.\u0275pipe=A.Yjl({name:"applicationFormItemHidden",type:Se,pure:!0}),Se})();function Pe(Se,je){1&Se&&A._UZ(0,"mat-spinner",8)}function Fe(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"section"),A.TgZ(5,"mat-checkbox",22),A.NdJ("ngModelChange",function(re){return A.CHM(Ye),A.oxw(3).applicationFormItem.updatable=re}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw(3);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),A.xp6(4),A.Q6J("ngModel",Ye.applicationFormItem.updatable)}}function ze(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div",13),A.TgZ(1,"mat-form-field",13),A.TgZ(2,"input",14),A.NdJ("ngModelChange",function(re){return A.CHM(Ye),A.oxw(3).applicationFormItem.federationAttribute=re}),A.qZA(),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw(3);A.xp6(2),A.Q6J("ngModel",Ye.applicationFormItem.federationAttribute)}}function ae(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"section"),A.TgZ(5,"mat-checkbox",22),A.NdJ("ngModelChange",function(re){return A.CHM(Ye),A.oxw(2).applicationFormItem.required=re}),A.qZA(),A.qZA(),A.qZA(),A.YNc(6,Fe,6,7,"div",17),A.TgZ(7,"app-edit-application-form-item-line",12),A.ALo(8,"translate"),A.ALo(9,"translate"),A.TgZ(10,"div",13),A.TgZ(11,"perun-web-apps-selection-item-search-select",23),A.NdJ("itemSelected",function(re){return A.CHM(Ye),A.oxw(2).applicationFormItem.perunSourceAttribute=re.value}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(12,"app-edit-application-form-item-line",12),A.ALo(13,"translate"),A.ALo(14,"translate"),A.TgZ(15,"div",13),A.TgZ(16,"perun-web-apps-selection-item-search-select",23),A.NdJ("itemSelected",function(re){return A.CHM(Ye),A.oxw(2).applicationFormItem.perunDestinationAttribute=re.value}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(17,"app-edit-application-form-item-line",12),A.ALo(18,"translate"),A.ALo(19,"translate"),A.TgZ(20,"div",13),A.TgZ(21,"perun-web-apps-selection-item-search-select",24),A.NdJ("itemSelected",function(re){return A.CHM(Ye),A.oxw(2).changeFederationAttribute(re)}),A.qZA(),A.qZA(),A.YNc(22,ze,3,1,"div",25),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",A.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),A.xp6(4),A.Q6J("ngModel",Ye.applicationFormItem.required),A.xp6(1),A.Q6J("ngIf",Ye.typesWithUpdatable.indexOf(Ye.applicationFormItem.type)>-1),A.xp6(1),A.Q6J("description",A.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),A.xp6(4),A.Q6J("attributes",Ye.sourceAttributes)("selectedAttribute",Ye.applicationFormItem.perunSourceAttribute)("asGroup",!!Ye.data.group)("type",Ye.itemType.SOURCE),A.xp6(1),A.Q6J("description",A.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),A.xp6(4),A.Q6J("attributes",Ye.destinationAttributes)("selectedAttribute",Ye.applicationFormItem.perunDestinationAttribute)("asGroup",!!Ye.data.group)("type",Ye.itemType.DESTINATION),A.xp6(1),A.Q6J("description",A.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),A.xp6(4),A.Q6J("selectedAttribute",Ye.applicationFormItem.federationAttribute)("asGroup",!!Ye.data.group)("type",Ye.itemType.FEDERATION),A.xp6(1),A.Q6J("ngIf"," -- custom value -- "===Ye.federationAttributeDN)}}function Ue(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"input",14),A.NdJ("ngModelChange",function(re){return A.CHM(Ye),A.oxw(2).applicationFormItem.regex=re}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),A.xp6(4),A.Q6J("ngModel",Ye.applicationFormItem.regex)}}function ve(Se,je){if(1&Se&&(A.TgZ(0,"mat-option",26),A._uU(1),A.ALo(2,"applicationFormItemDisabled"),A.qZA()),2&Se){const Ye=je.$implicit;A.Q6J("value",Ye),A.xp6(1),A.hij(" ",A.lcZ(2,2,Ye)," ")}}function He(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"perun-web-apps-app-form-item-search-select",27),A.NdJ("itemSelected",function(re){return A.CHM(Ye),A.oxw(3).disabledDependencyItem=re}),A.qZA()}if(2&Se){const Ye=A.oxw(3);A.Q6J("item",Ye.disabledDependencyItem)("items",Ye.possibleDependencyItems)}}function z(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"mat-select",18),A.NdJ("valueChange",function(re){return A.CHM(Ye),A.oxw(2).applicationFormItem.disabled=re}),A.YNc(6,ve,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"app-edit-application-form-item-line",12),A.ALo(8,"translate"),A.ALo(9,"translate"),A.TgZ(10,"div",13),A.YNc(11,He,1,2,"perun-web-apps-app-form-item-search-select",20),A.qZA(),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",A.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),A.xp6(4),A.Q6J("value",Ye.applicationFormItem.disabled),A.xp6(1),A.Q6J("ngForOf",Ye.disabledValues),A.xp6(1),A.Q6J("description",A.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",A.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),A.xp6(4),A.Q6J("ngIf",null!==Ye.disabledDependencyItem)}}function I(Se,je){if(1&Se&&(A.TgZ(0,"mat-option",26),A._uU(1),A.ALo(2,"applicationFormItemHidden"),A.qZA()),2&Se){const Ye=je.$implicit;A.Q6J("value",Ye),A.xp6(1),A.hij(" ",A.lcZ(2,2,Ye)," ")}}function me(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"perun-web-apps-app-form-item-search-select",27),A.NdJ("itemSelected",function(re){return A.CHM(Ye),A.oxw(2).hiddenDependencyItem=re}),A.qZA()}if(2&Se){const Ye=A.oxw(2);A.Q6J("item",Ye.hiddenDependencyItem)("items",Ye.possibleDependencyItems)}}function Ae(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",28),A.NdJ("ngModelChange",function(re){A.CHM(Ye);const r=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[r].label=re}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw().$implicit,ye=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",A.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),A.xp6(4),A.Q6J("cdkTextareaAutosize",!0)("ngModel",ye.applicationFormItem.i18n[Ye].label)}}function Me(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",14),A.NdJ("ngModelChange",function(re){A.CHM(Ye);const r=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[r].label=re}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(6,"app-edit-application-form-item-line",12),A.ALo(7,"translate"),A.ALo(8,"translate"),A.TgZ(9,"mat-form-field",13),A.TgZ(10,"textarea",14),A.NdJ("ngModelChange",function(re){A.CHM(Ye);const r=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[r].help=re}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(11,"app-edit-application-form-item-line",12),A.ALo(12,"translate"),A.ALo(13,"translate"),A.TgZ(14,"mat-form-field",13),A.TgZ(15,"textarea",14),A.NdJ("ngModelChange",function(re){A.CHM(Ye);const r=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[r].errorMessage=re}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw().$implicit,ye=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",A.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),A.xp6(4),A.Q6J("ngModel",ye.applicationFormItem.i18n[Ye].label),A.xp6(1),A.Q6J("description",A.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",A.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),A.xp6(4),A.Q6J("ngModel",ye.applicationFormItem.i18n[Ye].help),A.xp6(1),A.Q6J("description",A.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",A.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),A.xp6(4),A.Q6J("ngModel",ye.applicationFormItem.i18n[Ye].errorMessage)}}function pe(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",14),A.NdJ("ngModelChange",function(re){A.CHM(Ye);const r=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[r].label=re}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw().$implicit,ye=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),A.xp6(4),A.Q6J("ngModel",ye.applicationFormItem.i18n[Ye].label)}}function we(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.TgZ(3,"mat-form-field"),A.TgZ(4,"input",14),A.NdJ("ngModelChange",function(re){return A.CHM(Ye).$implicit[0]=re}),A.qZA(),A.qZA(),A._uU(5),A.ALo(6,"translate"),A.TgZ(7,"mat-form-field"),A.TgZ(8,"input",14),A.NdJ("ngModelChange",function(re){return A.CHM(Ye).$implicit[1]=re}),A.qZA(),A.qZA(),A.TgZ(9,"button",37),A.NdJ("click",function(){const r=A.CHM(Ye).$implicit,o=A.oxw(2).$implicit;return A.oxw(2).removeOption(r,o)}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA(),A.qZA(),A.qZA()}if(2&Se){const Ye=je.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),A.xp6(3),A.Q6J("ngModel",Ye[0]),A.xp6(1),A.hij(" ",A.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),A.xp6(3),A.Q6J("ngModel",Ye[1]),A.xp6(1),A.s9C("matTooltip",A.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function $e(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"div",29),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",30),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"div",31),A.TgZ(8,"button",32),A.NdJ("click",function(){A.CHM(Ye);const re=A.oxw().$implicit;return A.oxw(2).sortOptionsAZ(re)}),A.TgZ(9,"i",33),A._uU(10,"arrow_downward"),A.qZA(),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.TgZ(13,"button",34),A.NdJ("click",function(){A.CHM(Ye);const re=A.oxw().$implicit;return A.oxw(2).sortOptionsZA(re)}),A.TgZ(14,"i",33),A._uU(15,"arrow_upward"),A.qZA(),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.qZA(),A.YNc(18,we,13,11,"div",35),A.TgZ(19,"button",36),A.NdJ("click",function(){A.CHM(Ye);const re=A.oxw().$implicit;return A.oxw(2).addOption(re)}),A._uU(20),A.ALo(21,"translate"),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw().$implicit,ye=A.oxw(2);A.xp6(2),A.hij(" ",A.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),A.xp6(3),A.hij(" ",A.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),A.xp6(6),A.hij(" ",A.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),A.xp6(5),A.hij(" ",A.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),A.xp6(2),A.Q6J("ngForOf",ye.options[Ye]),A.xp6(2),A.hij(" ",A.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Je=function(){return["HEADING","HTML_COMMENT"]},nt=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},ke=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},H=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function he(Se,je){if(1&Se&&(A.TgZ(0,"mat-tab",11),A.ALo(1,"translate"),A.ALo(2,"uppercase"),A.YNc(3,Ae,6,8,"div",17),A.YNc(4,Me,16,21,"div",17),A.YNc(5,pe,6,7,"div",17),A.YNc(6,$e,22,16,"div",17),A.qZA()),2&Se){const Ye=je.$implicit,ye=A.oxw(2);A.s9C("label",A.lcZ(1,5,A.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+Ye))),A.xp6(3),A.Q6J("ngIf",ye.isApplicationFormItemOfType(A.DdM(9,Je))),A.xp6(1),A.Q6J("ngIf",ye.isApplicationFormItemOfType(A.DdM(10,nt))),A.xp6(1),A.Q6J("ngIf",ye.isApplicationFormItemOfType(A.DdM(11,ke))),A.xp6(1),A.Q6J("ngIf",ye.isApplicationFormItemOfType(A.DdM(12,H)))}}const P=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},R=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function V(Se,je){if(1&Se){const Ye=A.EpF();A.TgZ(0,"div",9),A.TgZ(1,"mat-tab-group",10),A.TgZ(2,"mat-tab",11),A.ALo(3,"translate"),A.TgZ(4,"app-edit-application-form-item-line",12),A.ALo(5,"translate"),A.ALo(6,"translate"),A.TgZ(7,"mat-form-field",13),A.TgZ(8,"input",14),A.NdJ("ngModelChange",function(re){return A.CHM(Ye),A.oxw().applicationFormItem.shortname=re}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(9,"app-edit-application-form-item-line",12),A.ALo(10,"translate"),A.ALo(11,"translate"),A._uU(12),A.ALo(13,"applicationFormItemType"),A.qZA(),A.TgZ(14,"app-edit-application-form-item-line",12),A.ALo(15,"translate"),A.ALo(16,"translate"),A.TgZ(17,"section"),A.TgZ(18,"mat-checkbox",15),A.NdJ("change",function(){return A.CHM(Ye),A.oxw().onChangingType("INITIAL")}),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-checkbox",16),A.NdJ("change",function(){return A.CHM(Ye),A.oxw().onChangingType("EXTENSION")}),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.qZA(),A.qZA(),A.YNc(24,ae,23,38,"div",17),A.YNc(25,Ue,6,7,"div",17),A.YNc(26,z,12,15,"div",17),A.TgZ(27,"app-edit-application-form-item-line",12),A.ALo(28,"translate"),A.ALo(29,"translate"),A.TgZ(30,"mat-form-field",13),A.TgZ(31,"mat-select",18),A.NdJ("valueChange",function(re){return A.CHM(Ye),A.oxw().applicationFormItem.hidden=re}),A.YNc(32,I,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(33,"app-edit-application-form-item-line",12),A.ALo(34,"translate"),A.ALo(35,"translate"),A.TgZ(36,"div",13),A.YNc(37,me,1,2,"perun-web-apps-app-form-item-search-select",20),A.qZA(),A.qZA(),A.qZA(),A.YNc(38,he,7,13,"mat-tab",21),A.qZA(),A.qZA()}if(2&Se){const Ye=A.oxw();A.xp6(2),A.s9C("label",A.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),A.xp6(2),A.Q6J("description",A.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",A.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),A.xp6(4),A.Q6J("ngModel",Ye.applicationFormItem.shortname),A.xp6(1),A.Q6J("description",A.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",A.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),A.xp6(3),A.hij(" ",A.lcZ(13,34,Ye.applicationFormItem.type)," "),A.xp6(2),A.Q6J("description",A.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",A.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),A.xp6(4),A.Q6J("ngModel",Ye.applicationFormItem.applicationTypes.includes("INITIAL")),A.xp6(1),A.hij(" ",A.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),A.xp6(2),A.Q6J("ngModel",Ye.applicationFormItem.applicationTypes.includes("EXTENSION")),A.xp6(1),A.hij(" ",A.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),A.xp6(2),A.Q6J("ngIf",Ye.isApplicationFormItemOfType(A.DdM(52,P))),A.xp6(1),A.Q6J("ngIf",Ye.isApplicationFormItemOfType(A.DdM(53,R))),A.xp6(1),A.Q6J("ngIf",Ye.typesWithDisabled.indexOf(Ye.applicationFormItem.type)>-1),A.xp6(1),A.Q6J("description",A.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",A.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),A.xp6(4),A.Q6J("value",Ye.applicationFormItem.hidden),A.xp6(1),A.Q6J("ngForOf",Ye.hiddenValues),A.xp6(1),A.Q6J("description",A.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",A.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),A.xp6(4),A.Q6J("ngIf",null!==Ye.hiddenDependencyItem),A.xp6(1),A.Q6J("ngForOf",Ye.languages)}}let Q=(()=>{class Se{constructor(Ye,ye,re,r,o,d){this.dialogRef=Ye,this.data=ye,this.attributesManager=re,this.translateService=r,this.store=o,this.cd=d,this.federationAttributeDN="",this.itemType=w.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.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(Ye=>Ye.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=w.Sx),this.disabledDependencyItem=this.data.allItems.find(Ye=>Ye.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=w.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,_.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Ye=>{const ye=this.filterAttributesForWidget(Ye);this.sourceAttributes=ye.concat(this.findAttribute(Ye,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=ye.concat(this.findAttribute(Ye,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===w.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===w.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(Ye){if(this.applicationFormItem.applicationTypes.includes(Ye)){const ye=this.applicationFormItem.applicationTypes.indexOf(Ye);this.applicationFormItem.applicationTypes.splice(ye,1)}else this.applicationFormItem.applicationTypes.push(Ye)}addOption(Ye){this.options[Ye].push(["",""])}removeOption(Ye,ye){this.options[ye]=this.options[ye].filter(re=>!(re[0]===Ye[0]&&re[1]===Ye[1]))}sortOptionsAZ(Ye){this.options[Ye]=this.options[Ye].sort((ye,re)=>ye[1]>re[1]?1:ye[1]ye[1]>re[1]?-1:ye[1]this.dependencyTypes.includes(Ye.type)).filter(Ye=>Ye.id!==this.data.applicationFormItem.id))}updateOption(Ye){var ye;let re="";if(null!==(ye=this.options[Ye])&&void 0!==ye&&ye)for(const r of this.options[Ye])""!==r[0]&&""!==r[1]&&(re=""===re?r[0]+"#"+r[1]:re+"|"+r[0]+"#"+r[1]);this.applicationFormItem.i18n[Ye].options=re}updateOptions(){for(const Ye of this.languages)this.updateOption(Ye)}findAttribute(Ye,ye){return Ye.find(re=>ye.includes(re.friendlyName))}filterAttributesForWidget(Ye){return Ye.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?ye=>ye.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?ye=>ye.type.includes("ArrayList"):ye=>!ye.type.includes("ArrayList")&&!ye.type.includes("LinkedHashMap"))}}return Se.\u0275fac=function(Ye){return new(Ye||Se)(A.Y36(e.so),A.Y36(e.WI),A.Y36(b.H8),A.Y36(E.sK),A.Y36(g.d6),A.Y36(A.sBO))},Se.\u0275cmp=A.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(Ye,ye){1&Ye&&(A.TgZ(0,"div"),A.TgZ(1,"div",0),A.TgZ(2,"h1",1),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.YNc(5,Pe,1,0,"mat-spinner",2),A.YNc(6,V,39,54,"div",3),A.TgZ(7,"div",4),A.TgZ(8,"button",5),A.NdJ("click",function(){return ye.cancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"div",6),A.ALo(12,"translate"),A.TgZ(13,"button",7),A.NdJ("click",function(){return ye.submit()}),A._uU(14),A.ALo(15,"translate"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&Ye&&(A.Gre("",ye.theme," h-100"),A.xp6(3),A.AsE(" ",A.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",ye.applicationFormItem.shortname," "),A.xp6(2),A.Q6J("ngIf",ye.loading),A.xp6(1),A.Q6J("ngIf",!ye.loading),A.xp6(3),A.hij(" ",A.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),A.Q6J("matTooltipDisabled",!ye.applicationFormItem.required||""!==ye.applicationFormItem.perunSourceAttribute||""!==ye.applicationFormItem.federationAttribute||"ALWAYS"!==ye.applicationFormItem.disabled&&"ALWAYS"!==ye.applicationFormItem.hidden),A.xp6(2),A.Q6J("disabled",ye.loading||ye.applicationFormItem.required&&""===ye.applicationFormItem.perunSourceAttribute&&""===ye.applicationFormItem.federationAttribute&&("ALWAYS"===ye.applicationFormItem.disabled||"ALWAYS"===ye.applicationFormItem.hidden)),A.xp6(1),A.hij(" ",A.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[e.uh,C.O5,O.$g,e.xY,S.SP,S.uX,B,L.KE,J.Nt,ie.Fj,ie.JJ,ie.On,ge.oG,X.$x,Ne.gD,C.sg,ue.ey,Oe.Y,T.IC,Z.lW,W.gM,Y.Hw,e.H8],pipes:[E.X$,ee.c,ce,le,C.gd],styles:[""]}),Se})()},19352:(Xe,_e,p)=>{"use strict";p.d(_e,{H:()=>ze});var e=p(32105),b=p(48966),_=p(36908),w=p(32075),g=p(9244),A=p(16074),E=p(69808),C=p(5e3),O=p(51062),S=p(20773),m=p(47423),B=p(25245),L=p(29772),J=p(31359);function ie(ae,Ue){1&ae&&C._UZ(0,"mat-spinner",6)}function ge(ae,Ue){1&ae&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function X(ae,Ue){if(1&ae&&(C.TgZ(0,"td",18),C._uU(1),C.qZA()),2&ae){const ve=Ue.$implicit;C.xp6(1),C.Oqu(ve.user.id)}}function Ne(ae,Ue){1&ae&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function ue(ae,Ue){if(1&ae&&(C.TgZ(0,"td",18),C._uU(1),C.ALo(2,"userFullName"),C.qZA()),2&ae){const ve=Ue.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,ve.user))}}function Oe(ae,Ue){1&ae&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function T(ae,Ue){if(1&ae){const ve=C.EpF();C.TgZ(0,"button",20),C.NdJ("click",function(){C.CHM(ve);const z=C.oxw().$implicit;return C.oxw(2).changeExpiration(z)}),C.TgZ(1,"mat-icon"),C._uU(2," today "),C.qZA(),C.qZA()}}function Z(ae,Ue){if(1&ae&&(C.TgZ(0,"td",18),C.TgZ(1,"span"),C._uU(2),C.qZA(),C.YNc(3,T,3,0,"button",19),C.qZA()),2&ae){const ve=Ue.$implicit,He=C.oxw(2);C.xp6(2),C.Oqu(He.parseDate(ve.validityTo)),C.xp6(1),C.Q6J("ngIf",He.isExpirationAuthorized(ve))}}function W(ae,Ue){1&ae&&C._UZ(0,"th",17)}function Y(ae,Ue){1&ae&&(C.TgZ(0,"mat-icon",25),C._uU(1,"clear"),C.qZA())}function ee(ae,Ue){1&ae&&(C.TgZ(0,"mat-icon"),C._uU(1,"settings_backup_restore"),C.qZA())}function ce(ae,Ue){if(1&ae){const ve=C.EpF();C.TgZ(0,"td",18),C.TgZ(1,"div",21),C.ALo(2,"translate"),C.TgZ(3,"button",22),C.NdJ("click",function(){const I=C.CHM(ve).$implicit;return C.oxw(2).markSponsor(I)}),C.YNc(4,Y,2,0,"mat-icon",23),C.YNc(5,ee,2,0,"mat-icon",24),C.qZA(),C.qZA(),C.qZA()}if(2&ae){const ve=Ue.$implicit,He=C.oxw(2);C.xp6(1),C.s9C("matTooltip",C.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),C.Q6J("matTooltipDisabled",He.isRemoveAuthorized(ve))("matTooltipPosition","above"),C.xp6(2),C.Q6J("disabled",!He.isRemoveAuthorized(ve)),C.xp6(1),C.Q6J("ngIf",!He.sponsorsToRemove.has(ve.user.id)),C.xp6(1),C.Q6J("ngIf",He.sponsorsToRemove.has(ve.user.id))}}function le(ae,Ue){1&ae&&C._UZ(0,"tr",26)}function Pe(ae,Ue){if(1&ae&&C._UZ(0,"tr",27),2&ae){const ve=Ue.$implicit,He=C.oxw(2);C.ekj("make-red",He.sponsorsToRemove.has(ve.user.id))}}function Fe(ae,Ue){if(1&ae&&(C.TgZ(0,"div",7),C.TgZ(1,"table",8),C.ynx(2,9),C.YNc(3,ge,3,3,"th",10),C.YNc(4,X,2,1,"td",11),C.BQk(),C.ynx(5,12),C.YNc(6,Ne,3,3,"th",10),C.YNc(7,ue,3,3,"td",11),C.BQk(),C.ynx(8,13),C.YNc(9,Oe,3,3,"th",10),C.YNc(10,Z,4,2,"td",11),C.BQk(),C.ynx(11,14),C.YNc(12,W,1,0,"th",10),C.YNc(13,ce,6,8,"td",11),C.BQk(),C.YNc(14,le,1,0,"tr",15),C.YNc(15,Pe,1,2,"tr",16),C.qZA(),C.qZA()),2&ae){const ve=C.oxw();C.xp6(1),C.Q6J("dataSource",ve.dataSource),C.xp6(13),C.Q6J("matHeaderRowDef",ve.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",ve.displayedColumns)}}let ze=(()=>{class ae{constructor(ve,He,z,I,me,Ae,Me,pe){this.dialogRef=ve,this.data=He,this.memberService=z,this.userService=I,this.notificator=me,this.authResolver=Ae,this.translate=Me,this.dialog=pe,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 w.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(ve){this.sponsorsToRemove.has(ve.user.id)?this.sponsorsToRemove.delete(ve.user.id):this.sponsorsToRemove.add(ve.user.id)}onSubmit(){this.loading=!0;const ve=Array.from(this.sponsorsToRemove);this.removeSponsors(ve)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(ve){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[ve.user])}isExpirationAuthorized(ve){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[ve.user,this.vo])}parseDate(ve){return null===ve?"Never expire":(0,E.p6)(ve,"d.M.y","en")}changeExpiration(ve){const He=(0,g.kZ)();He.width="400px",He.data={memberId:this.data.member.id,sponsor:ve},this.dialog.open(A.hd,He).afterClosed().subscribe(I=>{I&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(me=>{this.sponsors=me,this.dataSource=new w.by(this.sponsors),this.loading=!1}))})}removeSponsors(ve){if(0===ve.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const He=ve.pop();this.memberService.removeSponsor(this.data.member.id,He).subscribe(()=>{this.removeSponsors(ve)},()=>this.loading=!1)}}return ae.\u0275fac=function(ve){return new(ve||ae)(C.Y36(b.so),C.Y36(b.WI),C.Y36(e.uq),C.Y36(e.Fv),C.Y36(_.V6),C.Y36(_.x4),C.Y36(O.sK),C.Y36(b.uw))},ae.\u0275cmp=C.Xpm({type:ae,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"],["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(ve,He){1&ve&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div"),C.YNc(4,ie,1,0,"mat-spinner",1),C.YNc(5,Fe,16,3,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return He.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return He.onSubmit()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.qZA()),2&ve&&(C.xp6(1),C.Oqu(C.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),C.xp6(2),C.Tol(He.theme),C.xp6(1),C.Q6J("ngIf",He.loading),C.xp6(1),C.Q6J("ngIf",!He.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),C.xp6(2),C.Q6J("disabled",He.loading||0===He.sponsorsToRemove.size),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},directives:[b.uh,E.O5,S.$g,b.xY,w.BZ,w.w1,w.fO,w.ge,w.Dz,w.ev,m.lW,B.Hw,L.gM,w.as,w.XQ,w.nj,w.Gk,b.H8],pipes:[O.X$,J.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),ae})()},74414:(Xe,_e,p)=>{"use strict";p.d(_e,{R:()=>T});var e=p(48966),b=p(93075),_=p(32105),w=p(36908),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),O=p(67322),S=p(98833),m=p(74107),B=p(90508),L=p(47423);function J(Z,W){1&Z&&g._UZ(0,"mat-spinner",6)}function ie(Z,W){1&Z&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Z&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function ge(Z,W){1&Z&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Z&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function X(Z,W){1&Z&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Z&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function Ne(Z,W){1&Z&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Z&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function ue(Z,W){if(1&Z&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"uppercase"),g.qZA()),2&Z){const Y=W.$implicit;g.s9C("value",Y),g.xp6(1),g.Oqu(g.lcZ(2,2,g.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Y)))}}function Oe(Z,W){if(1&Z){const Y=g.EpF();g.TgZ(0,"div",7),g.YNc(1,ie,3,3,"div",8),g.YNc(2,ge,3,3,"div",8),g.TgZ(3,"mat-form-field",9),g._UZ(4,"input",10),g.ALo(5,"translate"),g.YNc(6,X,3,3,"mat-error",11),g.qZA(),g.TgZ(7,"mat-form-field",9),g._UZ(8,"textarea",10),g.ALo(9,"translate"),g.YNc(10,Ne,3,3,"mat-error",11),g.qZA(),g.TgZ(11,"mat-form-field",9),g.TgZ(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-select",12),g.NdJ("valueChange",function(ce){return g.CHM(Y),g.oxw().currentLanguage=ce}),g.YNc(16,ue,4,6,"mat-option",13),g.qZA(),g.qZA(),g.qZA()}if(2&Z){const Y=g.oxw();g.xp6(1),g.Q6J("ngIf",!Y.data.groupId),g.xp6(1),g.Q6J("ngIf",Y.data.groupId),g.xp6(2),g.s9C("placeholder",g.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),g.Q6J("formControl",Y.name),g.xp6(2),g.Q6J("ngIf",Y.name.invalid),g.xp6(2),g.s9C("placeholder",g.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),g.Q6J("formControl",Y.emailForm),g.xp6(2),g.Q6J("ngIf",Y.emailForm.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),g.xp6(2),g.Q6J("value",Y.currentLanguage),g.xp6(1),g.Q6J("ngForOf",Y.languages)}}let T=(()=>{class Z{constructor(Y,ee,ce,le,Pe,Fe){this.dialogRef=Y,this.data=ee,this.registrarManager=ce,this.notificator=le,this.translate=Pe,this.store=Fe,this.emailForm=new b.NI("",[b.kI.required,b.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new b.NI("",b.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.get("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(Y=>{this.notificator.showSuccess(Y),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(Y=>{this.notificator.showSuccess(Y),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return Z.\u0275fac=function(Y){return new(Y||Z)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.tk),g.Y36(w.V6),g.Y36(A.sK),g.Y36(w.d6))},Z.\u0275cmp=g.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(Y,ee){1&Y&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,J,1,0,"mat-spinner",1),g.YNc(5,Oe,17,17,"div",2),g.TgZ(6,"div",3),g.TgZ(7,"button",4),g.NdJ("click",function(){return ee.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return ee.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA(),g.qZA(),g.qZA()),2&Y&&(g.Tol(ee.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),g.xp6(2),g.Q6J("ngIf",ee.loading),g.xp6(1),g.Q6J("ngIf",!ee.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),g.xp6(2),g.Q6J("disabled",ee.emailForm.invalid||ee.name.invalid||ee.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[e.uh,E.O5,C.$g,e.xY,O.KE,S.Nt,b.Fj,b.Q7,b.JJ,b.oH,O.TO,O.hX,m.gD,E.sg,B.ey,e.H8,L.lW],pipes:[A.X$,E.gd],styles:[""]}),Z})()},87842:(Xe,_e,p)=>{"use strict";p.d(_e,{c:()=>ce});var e=p(48966),b=p(93075),_=p(1059),w=p(24850),g=p(36769),A=p(36908),E=p(32105),C=p(5e3),O=p(51062),S=p(79814),m=p(69808),B=p(98380),L=p(67322),J=p(98833),ie=p(91079),ge=p(90508),X=p(20773),Ne=p(47423),ue=p(29772);function Oe(le,Pe){1&le&&(C.TgZ(0,"mat-radio-button",12),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(le,Pe){1&le&&(C.TgZ(0,"mat-radio-button",13),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function Z(le,Pe){1&le&&(C.TgZ(0,"perun-web-apps-alert",14),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function W(le,Pe){if(1&le){const Fe=C.EpF();C.TgZ(0,"mat-option",20),C.NdJ("click",function(){const Ue=C.CHM(Fe).$implicit;return C.oxw(2).selectedGroup=Ue}),C.TgZ(1,"span"),C._uU(2),C.qZA(),C.qZA()}if(2&le){const Fe=Pe.$implicit;C.Q6J("value",Fe),C.xp6(2),C.Oqu(Fe.name)}}function Y(le,Pe){if(1&le){const Fe=C.EpF();C.TgZ(0,"mat-form-field",15),C.TgZ(1,"input",16),C.NdJ("change",function(){return C.CHM(Fe),C.oxw().selectedGroup=null}),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"mat-autocomplete",17,18),C.YNc(5,W,3,2,"mat-option",19),C.ALo(6,"async"),C.qZA(),C.qZA()}if(2&le){const Fe=C.MAs(4),ze=C.oxw();C.Q6J("@openClose","toGroup"===ze.moveOption?"open":"closed"),C.xp6(1),C.s9C("placeholder",C.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),C.Q6J("formControl",ze.otherGroupsCtrl)("matAutocomplete",Fe),C.xp6(2),C.Q6J("displayWith",ze.displayFn),C.xp6(2),C.Q6J("ngForOf",C.lcZ(6,8,ze.filteredGroups))}}function ee(le,Pe){1&le&&C._UZ(0,"mat-spinner",21)}let ce=(()=>{class le{constructor(Fe,ze,ae,Ue,ve,He,z){this.dialogRef=Fe,this.data=ze,this.groupService=ae,this.notificator=Ue,this.translate=ve,this.apiRequest=He,this.authResolver=z,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new b.NI(null,[b.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(I=>this.successMessage=I),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(I=>this.errorMessage=I)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(Fe=>{this.otherGroups=Fe.filter(ze=>ze.id!==this.data.group.id&&"members"!==ze.name&&this.canMove(ze)),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,_.O)(""),(0,w.U)(ze=>ze?this._filterGroups(ze):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(Fe){return Fe&&Fe.name}canMove(Fe){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[Fe,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,Fe])}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)},Fe=>{this.notificator.showRPCError(Fe,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(Fe){if("object"==typeof Fe)return[];const ze=Fe.toLowerCase();return Fe?this.otherGroups.filter(ae=>ae.name.toLowerCase().includes(ze)):this.otherGroups}}return le.\u0275fac=function(Fe){return new(Fe||le)(C.Y36(e.so),C.Y36(e.WI),C.Y36(E.ff),C.Y36(A.V6),C.Y36(O.sK),C.Y36(A.F5),C.Y36(A.x4))},le.\u0275cmp=C.Xpm({type:le,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(Fe,ze){1&Fe&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",1),C.TgZ(5,"p"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.TgZ(8,"mat-radio-group",2),C.NdJ("ngModelChange",function(Ue){return ze.moveOption=Ue}),C.YNc(9,Oe,3,3,"mat-radio-button",3),C.YNc(10,T,3,3,"mat-radio-button",4),C.qZA(),C.YNc(11,Z,3,3,"perun-web-apps-alert",5),C.YNc(12,Y,7,10,"mat-form-field",6),C.qZA(),C.YNc(13,ee,1,0,"mat-spinner",7),C.TgZ(14,"div",8),C.TgZ(15,"button",9),C.NdJ("click",function(){return ze.close()}),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"span",10),C.ALo(19,"translate"),C.TgZ(20,"button",11),C.NdJ("click",function(){return ze.confirm()}),C._uU(21),C.ALo(22,"translate"),C.qZA(),C.qZA(),C.qZA(),C.qZA()),2&Fe&&(C.Tol(ze.data.theme),C.xp6(2),C.AsE("",C.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",ze.data.group.name,""),C.xp6(4),C.hij(" ",C.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),C.xp6(2),C.Q6J("ngModel",ze.moveOption),C.xp6(1),C.Q6J("ngIf",!ze.toRootOptionDisabled),C.xp6(1),C.Q6J("ngIf",!ze.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",ze.toRootOptionDisabled&&ze.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",!ze.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",ze.loading),C.xp6(3),C.hij(" ",C.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),C.Q6J("matTooltipDisabled",null!==ze.selectedGroup||"toRoot"===ze.moveOption)("matTooltipPosition","above"),C.xp6(2),C.Q6J("disabled",(ze.otherGroupsCtrl.invalid||null===ze.selectedGroup)&&"toRoot"!==ze.moveOption||ze.loading),C.xp6(1),C.hij(" ",C.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[e.uh,e.xY,S.VQ,b.JJ,b.On,m.O5,S.U0,B.w,L.KE,J.Nt,b.Fj,ie.ZL,b.Q7,b.oH,ie.XC,m.sg,ge.ey,X.$g,e.H8,Ne.lW,ue.gM],pipes:[O.X$,m.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[g.BQ]}}),le})()},58964:(Xe,_e,p)=>{"use strict";p.d(_e,{m:()=>X});var e=p(48966),b=p(32105),_=p(36908),w=p(5e3),g=p(51062),A=p(69808),E=p(20773),C=p(67322),O=p(74107),S=p(90508),m=p(47423);function B(Ne,ue){1&Ne&&w._UZ(0,"mat-spinner",7)}function L(Ne,ue){if(1&Ne&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&Ne){const Oe=ue.$implicit;w.Q6J("value",Oe),w.xp6(1),w.hij(" ",Oe.friendlyNameParameter," ")}}function J(Ne,ue){if(1&Ne&&(w.TgZ(0,"mat-option",13),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Ne){const Oe=ue.$implicit;w.Q6J("value",Oe),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Oe))," ")}}function ie(Ne,ue){if(1&Ne&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&Ne){const Oe=ue.$implicit;w.Q6J("value",Oe),w.xp6(1),w.hij(" ",Oe," ")}}function ge(Ne,ue){if(1&Ne){const Oe=w.EpF();w.TgZ(0,"div",8),w.TgZ(1,"mat-form-field"),w.TgZ(2,"mat-label"),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-select",9),w.NdJ("valueChange",function(Z){return w.CHM(Oe),w.oxw().selectedLogin=Z}),w.YNc(6,L,2,2,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(7,"mat-form-field"),w.TgZ(8,"mat-label"),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"mat-select",9),w.NdJ("valueChange",function(Z){return w.CHM(Oe),w.oxw().selectedLang=Z}),w.YNc(12,J,4,6,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(13,"mat-form-field"),w.TgZ(14,"mat-label"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"mat-select",9),w.NdJ("valueChange",function(Z){return w.CHM(Oe),w.oxw().selectedMail=Z}),w.YNc(18,ie,2,2,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(19,"div",11),w.TgZ(20,"p",12),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"p"),w._uU(24),w.qZA(),w.qZA(),w.qZA()}if(2&Ne){const Oe=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),w.xp6(2),w.Q6J("value",Oe.selectedLogin),w.xp6(1),w.Q6J("ngForOf",Oe.logins),w.xp6(3),w.Oqu(w.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),w.xp6(2),w.Q6J("value",Oe.selectedLang),w.xp6(1),w.Q6J("ngForOf",Oe.languages),w.xp6(3),w.Oqu(w.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),w.xp6(2),w.Q6J("value",Oe.selectedMail),w.xp6(1),w.Q6J("ngForOf",Oe.mails),w.xp6(3),w.Oqu(w.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),w.xp6(3),w.Oqu(Oe.selectedLogin.value)}}let X=(()=>{class Ne{constructor(Oe,T,Z,W,Y,ee,ce){this.dialogRef=Oe,this.data=T,this.membersManagerService=Z,this.attributesManagerService=W,this.store=Y,this.translate=ee,this.notificator=ce,this.languages=this.store.get("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],ee.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(le=>this.successMessage=le)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const Oe=this.selectedLogin.friendlyNameParameter,Z=window.location.href.split("/"),W=Z[0]+"//"+Z[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,Oe,this.pwdMails.get(this.selectedMail),this.selectedLang,W).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 Ne.\u0275fac=function(Oe){return new(Oe||Ne)(w.Y36(e.so),w.Y36(e.WI),w.Y36(b.uq),w.Y36(b.H8),w.Y36(_.d6),w.Y36(g.sK),w.Y36(_.V6))},Ne.\u0275cmp=w.Xpm({type:Ne,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"],["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(Oe,T){1&Oe&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"div",1),w.YNc(4,B,1,0,"mat-spinner",2),w.qZA(),w.YNc(5,ge,25,19,"div",3),w.TgZ(6,"div",4),w.TgZ(7,"button",5),w.NdJ("click",function(){return T.onCancel()}),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"button",6),w.NdJ("click",function(){return T.onSubmit()}),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.qZA()),2&Oe&&(w.xp6(1),w.Oqu(w.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),w.xp6(3),w.Q6J("ngIf",T.loading),w.xp6(1),w.Q6J("ngIf",!T.loading),w.xp6(3),w.hij(" ",w.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),w.xp6(2),w.Q6J("disabled",T.loading),w.xp6(1),w.hij(" ",w.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[e.uh,A.O5,E.$g,e.xY,C.KE,C.hX,O.gD,A.sg,S.ey,e.H8,m.lW],pipes:[g.X$,A.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),Ne})()},53455:(Xe,_e,p)=>{"use strict";p.d(_e,{X:()=>Oe});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),O=p(47423),S=p(31359);function m(T,Z){1&T&&g._UZ(0,"th",13)}function B(T,Z){if(1&T&&(g.TgZ(0,"td",14),g._uU(1),g.qZA()),2&T){const W=Z.$implicit;g.xp6(1),g.Oqu(W.id)}}function L(T,Z){1&T&&g._UZ(0,"th",13)}function J(T,Z){if(1&T&&(g.TgZ(0,"td",14),g._uU(1),g.ALo(2,"userFullName"),g.qZA()),2&T){const W=Z.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,W.user))}}function ie(T,Z){1&T&&g._UZ(0,"tr",15)}function ge(T,Z){1&T&&g._UZ(0,"tr",16)}function X(T,Z){if(1&T&&(g.TgZ(0,"div",4),g.TgZ(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",5),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",6),g.ynx(8,7),g.YNc(9,m,1,0,"th",8),g.YNc(10,B,2,1,"td",9),g.BQk(),g.ynx(11,10),g.YNc(12,L,1,0,"th",8),g.YNc(13,J,3,3,"td",9),g.BQk(),g.YNc(14,ie,1,0,"tr",11),g.YNc(15,ge,1,0,"tr",12),g.qZA(),g.qZA()),2&T){const W=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,W.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),g.xp6(2),g.Q6J("dataSource",W.dataSource),g.xp6(7),g.Q6J("matHeaderRowDef",W.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",W.displayedColumns)}}function Ne(T,Z){1&T&&g._UZ(0,"mat-spinner",17)}function ue(T,Z){if(1&T){const W=g.EpF();g.TgZ(0,"div",18),g.TgZ(1,"button",19),g.NdJ("click",function(){return g.CHM(W),g.oxw().onCancel()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",20),g.NdJ("click",function(){return g.CHM(W),g.oxw().onSubmit()}),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.qZA()}if(2&T){const W=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(6,4,W.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let Oe=(()=>{class T{constructor(W,Y,ee,ce,le,Pe){this.dialogRef=W,this.data=Y,this.membersService=ee,this.groupService=ce,this.notificator=le,this.translate=Pe,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.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(W=>W.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(W=>W.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const W=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(W),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return T.\u0275fac=function(W){return new(W||T)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.uq),g.Y36(w.ff),g.Y36(_.V6),g.Y36(A.sK))},T.\u0275cmp=g.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(W,Y){1&W&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,X,16,9,"div",1),g.YNc(5,Ne,1,0,"mat-spinner",2),g.YNc(6,ue,7,6,"div",3),g.qZA()),2&W&&(g.Tol(Y.theme),g.xp6(2),g.Oqu(g.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),g.xp6(2),g.Q6J("ngIf",!Y.loading),g.xp6(1),g.Q6J("ngIf",Y.loading),g.xp6(1),g.Q6J("ngIf",!Y.loading))},directives:[e.uh,E.O5,e.xY,b.BZ,b.w1,b.fO,b.ge,b.Dz,b.ev,b.as,b.XQ,b.nj,b.Gk,C.$g,e.H8,O.lW],pipes:[A.X$,S.d],styles:[""]}),T})()},533:(Xe,_e,p)=>{"use strict";p.d(_e,{f:()=>C});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class O{constructor(m,B,L,J,ie){this.dialogRef=m,this.data=B,this.notificator=L,this.translate=J,this.resourcesManager=ie,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.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(m=>{this.loading=!1,this.notificator.showSuccess(m),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(m){m.deleted?this.onDelete():this.onCancel()}}return O.\u0275fac=function(m){return new(m||O)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(A.sK),g.Y36(w.xk))},O.\u0275cmp=g.Xpm({type:O,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(m,B){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(J){return B.onSubmit(J)}),g.qZA(),g.qZA()),2&m&&(g.Tol(B.theme),g.xp6(1),g.Q6J("entityNames",B.dataSource)("entityType","resources")("disableForce",!0)("loading",B.loading))},directives:[E.e],styles:[""]}),O})()},11717:(Xe,_e,p)=>{"use strict";p.d(_e,{o:()=>C});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class O{constructor(m,B,L,J,ie){this.dialogRef=m,this.data=B,this.notificator=L,this.voService=J,this.translate=ie,this.force=!1,this.displayedColumns=["name"],this.relations=[],ie.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(ge=>this.successMessage=ge)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.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(m){this.force=m.force,m.deleted?this.onDelete():this.onCancel()}}return O.\u0275fac=function(m){return new(m||O)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(w.YF),g.Y36(A.sK))},O.\u0275cmp=g.Xpm({type:O,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,B){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(J){return B.onSubmit(J)}),g.qZA(),g.qZA()),2&m&&(g.Tol(B.theme),g.xp6(1),g.Q6J("entityNames",B.dataSource)("entityType","organizations")("loading",B.loading)("relations",B.relations))},directives:[E.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),O})()},1186:(Xe,_e,p)=>{"use strict";p.d(_e,{E:()=>ge});var e=p(48966),b=p(32105),_=p(5e3),w=p(69808),g=p(20773),A=p(67322),E=p(98833),C=p(93075),O=p(74107),S=p(90508),m=p(47423),B=p(51062);function L(X,Ne){1&X&&_._UZ(0,"mat-spinner",6)}function J(X,Ne){if(1&X){const ue=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"mat-form-field",9),_.TgZ(2,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(ue),_.oxw(2).embeddedState=T}),_.ALo(3,"translate"),_.TgZ(4,"mat-option",11),_._uU(5),_.ALo(6,"translate"),_.qZA(),_.TgZ(7,"mat-option",12),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&X){const ue=_.oxw(2);_.xp6(2),_.MGl("placeholder","",_.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),_.Q6J("value",ue.embeddedState),_.xp6(3),_.Oqu(_.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function ie(X,Ne){if(1&X){const ue=_.EpF();_.TgZ(0,"div",7),_.TgZ(1,"mat-form-field"),_.TgZ(2,"input",8),_.NdJ("ngModelChange",function(T){return _.CHM(ue),_.oxw().moduleName=T}),_.ALo(3,"translate"),_.qZA(),_.qZA(),_.TgZ(4,"mat-form-field",9),_.TgZ(5,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(ue),_.oxw().initialState=T}),_.ALo(6,"translate"),_.TgZ(7,"mat-option",11),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"mat-option",12),_._uU(11),_.ALo(12,"translate"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"mat-form-field",9),_.TgZ(14,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(ue),_.oxw().extensionState=T}),_.ALo(15,"translate"),_.TgZ(16,"mat-option",11),_._uU(17),_.ALo(18,"translate"),_.qZA(),_.TgZ(19,"mat-option",12),_._uU(20),_.ALo(21,"translate"),_.qZA(),_.qZA(),_.qZA(),_.YNc(22,J,10,10,"div",13),_.qZA()}if(2&X){const ue=_.oxw();_.xp6(2),_.s9C("placeholder",_.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),_.Q6J("ngModel",ue.moduleName),_.xp6(3),_.MGl("placeholder","",_.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),_.Q6J("value",ue.initialState),_.xp6(3),_.Oqu(_.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),_.xp6(3),_.MGl("placeholder","",_.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),_.Q6J("value",ue.extensionState),_.xp6(3),_.Oqu(_.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),_.xp6(2),_.Q6J("ngIf","group"===ue.entity&&ue.autoRegistrationEnabled)}}let ge=(()=>{class X{constructor(ue,Oe,T){this.dialogRef=ue,this.data=Oe,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(ue=>{this.dialogRef.close(ue)},()=>this.loading=!1)}}return X.\u0275fac=function(ue){return new(ue||X)(_.Y36(e.so),_.Y36(e.WI),_.Y36(b.tk))},X.\u0275cmp=_.Xpm({type:X,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(ue,Oe){1&ue&&(_.TgZ(0,"div"),_.TgZ(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,L,1,0,"mat-spinner",1),_.YNc(5,ie,23,25,"div",2),_.TgZ(6,"div",3),_.TgZ(7,"button",4),_.NdJ("click",function(){return Oe.onCancel()}),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"button",5),_.NdJ("click",function(){return Oe.submit()}),_._uU(11),_.ALo(12,"translate"),_.qZA(),_.qZA(),_.qZA()),2&ue&&(_.Tol(Oe.theme),_.xp6(2),_.Oqu(_.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),_.xp6(2),_.Q6J("ngIf",Oe.loading),_.xp6(1),_.Q6J("ngIf",!Oe.loading),_.xp6(3),_.hij(" ",_.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),_.xp6(2),_.Q6J("disabled",Oe.loading),_.xp6(1),_.hij(" ",_.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[e.uh,w.O5,g.$g,e.xY,A.KE,E.Nt,C.Fj,C.JJ,C.On,O.gD,S.ey,e.H8,m.lW],pipes:[B.X$],styles:[""]}),X})()},60205:(Xe,_e,p)=>{"use strict";p.d(_e,{Q:()=>z});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(36908),E=p(18750),C=p(77446),O=p(69808),S=p(25245),m=p(29772),B=p(50301),L=p(11735),J=p(98380),ie=p(51062);function ge(I,me){if(1&I){const Ae=e.EpF();e.TgZ(0,"th",18),e.TgZ(1,"mat-checkbox",19),e.NdJ("change",function(pe){e.CHM(Ae);const we=e.oxw();return pe?we.masterToggle():null}),e.qZA(),e.qZA()}if(2&I){const Ae=e.oxw();e.xp6(1),e.Q6J("aria-label",Ae.checkboxLabel())("checked",Ae.selection.hasValue()&&Ae.isAllSelected())("indeterminate",Ae.selection.hasValue()&&!Ae.isAllSelected())}}function X(I,me){if(1&I){const Ae=e.EpF();e.TgZ(0,"td",20),e.TgZ(1,"mat-checkbox",21),e.NdJ("change",function(pe){const $e=e.CHM(Ae).$implicit,Je=e.oxw();return pe?Je.selection.toggle($e):null})("click",function(pe){return pe.stopPropagation()}),e.qZA(),e.qZA()}if(2&I){const Ae=me.$implicit,Me=e.oxw();e.xp6(1),e.Q6J("aria-label",Me.checkboxLabel(Ae))("checked",Me.selection.isSelected(Ae))}}function Ne(I,me){1&I&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&I&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function ue(I,me){if(1&I&&(e.TgZ(0,"td",23),e._uU(1),e.qZA()),2&I){const Ae=me.$implicit;e.xp6(1),e.Oqu(Ae.id)}}function Oe(I,me){1&I&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&I&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function T(I,me){if(1&I&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&I){const Ae=me.$implicit;e.xp6(1),e.Oqu(Ae.name)}}function Z(I,me){1&I&&e._UZ(0,"th",25)}function W(I,me){1&I&&(e.TgZ(0,"mat-icon",27),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&I&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function Y(I,me){1&I&&(e.TgZ(0,"mat-icon",27),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&I&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function ee(I,me){if(1&I&&(e.TgZ(0,"td",24),e.YNc(1,W,3,3,"mat-icon",26),e.YNc(2,Y,3,3,"mat-icon",26),e.qZA()),2&I){const Ae=me.$implicit;e.xp6(1),e.Q6J("ngIf",Ae.enabled),e.xp6(1),e.Q6J("ngIf",!Ae.enabled)}}function ce(I,me){1&I&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&I&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function le(I,me){if(1&I&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&I){const Ae=me.$implicit;e.xp6(1),e.Oqu(Ae.script)}}function Pe(I,me){1&I&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&I&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function Fe(I,me){if(1&I&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&I){const Ae=me.$implicit;e.xp6(1),e.Oqu(Ae.description)}}function ze(I,me){1&I&&e._UZ(0,"tr",28)}const ae=function(I){return["/admin/services",I]};function Ue(I,me){if(1&I&&e._UZ(0,"tr",29),2&I){const Ae=me.$implicit,Me=e.oxw();e.ekj("cursor-pointer",!Me.disableRouting)("disable-outline",Me.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",Me.disableRouting?null:e.VKq(6,ae,Ae.id))("routerLink",Me.disableRouting?null:e.VKq(8,ae,Ae.id))}}function ve(I,me){1&I&&(e.TgZ(0,"perun-web-apps-alert",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&I&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function He(I,me){1&I&&(e.TgZ(0,"perun-web-apps-alert",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&I&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let z=(()=>{class I{constructor(Ae,Me){this.authResolver=Ae,this.tableCheckbox=Me,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=g.f7}set matSort(Ae){this.sort=Ae,this.setDataSource()}static getDataForColumn(Ae,Me){switch(Me){case"id":return Ae.id.toString();case"name":return Ae.name;case"enabled":return Ae.enabled?"true":"false";case"script":return Ae.script;case"description":return Ae.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ae=>"id"!==Ae)),this.dataSource=new _.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportData(Ae){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,I.getDataForColumn),Ae)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(Ae,Me)=>(0,g.Sd)(Ae,Me,this.displayedColumns,I.getDataForColumn),this.dataSource.sortData=(Ae,Me)=>(0,g.pR)(Ae,Me,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(Ae){return Ae?`${this.selection.isSelected(Ae)?"deselect":"select"} row ${Ae.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return I.\u0275fac=function(Ae){return new(Ae||I)(e.Y36(A.x4),e.Y36(A.UA))},I.\u0275cmp=e.Xpm({type:I,selectors:[["app-services-list"]],viewQuery:function(Ae,Me){if(1&Ae&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&Ae){let pe;e.iGM(pe=e.CRH())&&(Me.child=pe.first),e.iGM(pe=e.CRH())&&(Me.matSort=pe.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","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"],["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",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Ae,Me){1&Ae&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(we){return Me.exportData(we)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ge,2,3,"th",4),e.YNc(5,X,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Ne,3,3,"th",7),e.YNc(8,ue,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Oe,3,3,"th",7),e.YNc(11,T,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,Z,1,0,"th",12),e.YNc(14,ee,3,2,"td",10),e.BQk(),e.ynx(15,13),e.YNc(16,ce,3,3,"th",12),e.YNc(17,le,2,1,"td",10),e.BQk(),e.ynx(18,14),e.YNc(19,Pe,3,3,"th",7),e.YNc(20,Fe,2,1,"td",10),e.BQk(),e.YNc(21,ze,1,0,"tr",15),e.YNc(22,Ue,1,10,"tr",16),e.qZA(),e.qZA(),e.qZA(),e.YNc(23,ve,3,3,"perun-web-apps-alert",17),e.YNc(24,He,3,3,"perun-web-apps-alert",17)),2&Ae&&(e.Q6J("hidden",void 0===Me.services||0===Me.services.length||0===Me.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",Me.pageSizeOptions)("dataLength",Me.dataSource.filteredData.length)("tableId",Me.tableId),e.xp6(1),e.Q6J("dataSource",Me.dataSource),e.xp6(19),e.Q6J("matHeaderRowDef",Me.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Me.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Me.dataSource.filteredData.length&&void 0!==Me.services&&0!==Me.services.length),e.xp6(1),e.Q6J("ngIf",void 0===Me.services||0===Me.services.length))},directives:[E.l,_.BZ,b.YE,_.w1,_.fO,_.ge,C.oG,_.Dz,_.ev,b.nU,O.O5,S.Hw,m.gM,_.as,_.XQ,_.nj,_.Gk,B.YH,L.rH,J.w],pipes:[ie.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),I})()},64877:(Xe,_e,p)=>{"use strict";p.d(_e,{C:()=>$e});var e=p(84847),b=p(32075),_=p(20449),w=p(9244),g=p(36908),A=p(5e3),E=p(18750),C=p(69808),O=p(77446),S=p(25245),m=p(29772),B=p(50301),L=p(98380),J=p(51062),ie=p(31359),ge=p(9954),X=p(16119),Ne=p(7598);function ue(Je,nt){if(1&Je){const ke=A.EpF();A.TgZ(0,"mat-checkbox",21),A.NdJ("change",function(he){A.CHM(ke);const P=A.oxw(2);return he?P.masterToggle():null}),A.qZA()}if(2&Je){const ke=A.oxw(2);A.Q6J("aria-label",ke.checkboxLabel())("checked",ke.selection.hasValue()&&ke.isAllSelected())("indeterminate",ke.selection.hasValue()&&!ke.isAllSelected())}}function Oe(Je,nt){if(1&Je&&(A.TgZ(0,"th",19),A.YNc(1,ue,1,3,"mat-checkbox",20),A.qZA()),2&Je){const ke=A.oxw();A.xp6(1),A.Q6J("ngIf",ke.selection.isMultipleSelection())}}function T(Je,nt){if(1&Je){const ke=A.EpF();A.TgZ(0,"td",22),A.TgZ(1,"mat-checkbox",23),A.NdJ("change",function(he){const R=A.CHM(ke).$implicit,V=A.oxw();return he?V.selection.toggle(R):null})("click",function(he){return he.stopPropagation()}),A.ALo(2,"lowercase"),A.qZA(),A.qZA()}if(2&Je){const ke=nt.$implicit,H=A.oxw();A.xp6(1),A.Q2q("data-cy","",A.lcZ(2,4,ke.firstName),"-checkbox"),A.Q6J("aria-label",H.checkboxLabel(ke))("checked",H.selection.isSelected(ke))("disabled",H.disableSelf&&ke.id===H.principalId&&!H.authResolver.isPerunAdmin())}}function Z(Je,nt){1&Je&&A._UZ(0,"th",24)}function W(Je,nt){1&Je&&(A.TgZ(0,"mat-icon",28),A.ALo(1,"translate"),A._uU(2," account_circle "),A.qZA()),2&Je&&A.s9C("matTooltip",A.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Y(Je,nt){if(1&Je&&(A._UZ(0,"mat-icon",29),A.ALo(1,"translate")),2&Je){const ke=A.oxw(2);A.s9C("matTooltip",A.lcZ(1,2,"MANAGERS_LIST.SERVICE")),A.Q6J("svgIcon",ke.svgIcon)}}function ee(Je,nt){if(1&Je&&(A.TgZ(0,"td",25),A.YNc(1,W,3,3,"mat-icon",26),A.YNc(2,Y,2,4,"mat-icon",27),A.qZA()),2&Je){const ke=nt.$implicit;A.xp6(1),A.Q6J("ngIf",!ke.serviceUser),A.xp6(1),A.Q6J("ngIf",ke.serviceUser)}}function ce(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function le(Je,nt){if(1&Je&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&Je){const ke=nt.$implicit;A.xp6(1),A.hij(" ",ke.id," ")}}function Pe(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Fe(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userFullName"),A.qZA()),2&Je){const ke=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,ke))}}function ze(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function ae(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userVo"),A.qZA()),2&Je){const ke=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,ke))}}function Ue(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function ve(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userEmail"),A.qZA()),2&Je){const ke=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,ke))}}function He(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function z(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userLogins"),A.qZA()),2&Je){const ke=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,ke))}}function I(Je,nt){1&Je&&A._UZ(0,"tr",32)}const me=function(Je){return["/admin/users",Je]},Ae=function(Je){return["/myProfile/service-identities",Je]};function Me(Je,nt){if(1&Je&&A._UZ(0,"tr",33),2&Je){const ke=nt.$implicit,H=A.oxw();A.ekj("cursor-pointer",!H.disableRouting),A.Q6J("perunWebAppsForceRouterLink",H.disableRouting?null:H.routeToAdmin?A.VKq(4,me,ke.id):A.VKq(6,Ae,ke.id))("perunWebAppsMiddleClickRouterLink",H.disableRouting?null:H.routeToAdmin?A.VKq(8,me,ke.id):A.VKq(10,Ae,ke.id))}}function pe(Je,nt){if(1&Je&&(A.TgZ(0,"perun-web-apps-alert",34),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je){const ke=A.oxw();A.xp6(1),A.hij(" ",ke.noUsersFoundLabel?ke.noUsersFoundLabel:A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function we(Je,nt){1&Je&&(A.TgZ(0,"perun-web-apps-alert",34),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let $e=(()=>{class Je{constructor(ke,H,he){this.authResolver=ke,this.tableCheckbox=H,this.storeService=he,this.selection=new _.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=w.f7}set matSort(ke){this.sort=ke}static getDataForColumn(ke,H){var he;switch(H){case"id":return ke.id.toString();case"user":return ke.serviceUser?"true":"false";case"name":return ke?ke.lastName?ke.lastName:null!==(he=ke.firstName)&&void 0!==he?he:"":"";case"organization":return(0,w.OV)(ke);case"email":return(0,w.kN)(ke);case"logins":return(0,w.lt)(ke);default:return""}}static getExportDataForColumn(ke,H){switch(H){case"id":return ke.id.toString();case"user":return ke.serviceUser?"service-user":"user";case"name":return ke?(0,w.bD)(ke):"";case"organization":return(0,w.OV)(ke);case"email":return(0,w.kN)(ke);case"logins":return(0,w.lt)(ke);default:return""}}exportData(ke){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Je.getExportDataForColumn),ke)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(ke,H)=>(0,w.Sd)(ke,H,this.displayedColumns,Je.getDataForColumn),this.dataSource.sortData=(ke,H)=>(0,w.pR)(ke,H,Je.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(ke=>"id"!==ke)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(ke){return ke?`${this.selection.isSelected(ke)?"deselect":"select"} row ${ke.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Je.\u0275fac=function(ke){return new(ke||Je)(A.Y36(g.x4),A.Y36(g.UA),A.Y36(g.d6))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["app-users-list"]],viewQuery:function(ke,H){if(1&ke&&(A.Gf(w.l9,7),A.Gf(e.YE,7)),2&ke){let he;A.iGM(he=A.CRH())&&(H.child=he.first),A.iGM(he=A.CRH())&&(H.matSort=he.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[A.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["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","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["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,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(ke,H){1&ke&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(P){return H.exportData(P)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,Oe,2,1,"th",4),A.YNc(5,T,3,6,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,Z,1,0,"th",7),A.YNc(8,ee,3,2,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,ce,3,3,"th",10),A.YNc(11,le,2,1,"td",8),A.BQk(),A.ynx(12,11),A.YNc(13,Pe,3,3,"th",10),A.YNc(14,Fe,3,3,"td",12),A.BQk(),A.ynx(15,13),A.YNc(16,ze,3,3,"th",10),A.YNc(17,ae,3,3,"td",12),A.BQk(),A.ynx(18,14),A.YNc(19,Ue,3,3,"th",10),A.YNc(20,ve,3,3,"td",12),A.BQk(),A.ynx(21,15),A.YNc(22,He,3,3,"th",10),A.YNc(23,z,3,3,"td",12),A.BQk(),A.YNc(24,I,1,0,"tr",16),A.YNc(25,Me,1,12,"tr",17),A.qZA(),A.qZA(),A.qZA(),A.YNc(26,pe,3,3,"perun-web-apps-alert",18),A.YNc(27,we,3,3,"perun-web-apps-alert",18)),2&ke&&(A.Q6J("hidden",0===H.users.length||!H.dataSource||0===H.dataSource.filteredData.length),A.xp6(1),A.Q6J("dataLength",H.dataSource.filteredData.length)("pageSizeOptions",H.pageSizeOptions)("tableId",H.tableId),A.xp6(1),A.Q6J("dataSource",H.dataSource),A.xp6(22),A.Q6J("matHeaderRowDef",H.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",H.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===H.users.length),A.xp6(1),A.Q6J("ngIf",0===H.dataSource.filteredData.length&&0!==H.users.length))},directives:[E.l,b.BZ,e.YE,b.w1,b.fO,b.ge,C.O5,O.oG,b.Dz,b.ev,S.Hw,m.gM,e.nU,b.as,b.XQ,b.nj,b.Gk,B.Kd,B.YH,L.w],pipes:[C.i8,J.X$,ie.d,ge.Z,X.S,Ne.g],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Je})()},57706:(Xe,_e,p)=>{"use strict";p.d(_e,{c:()=>_});var e=p(5e3),b=p(51062);let _=(()=>{class w{constructor(A){this.translateService=A,this.returnData=""}transform(A){switch(A){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(E=>{this.returnData=E});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(E=>{this.returnData=E});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(E=>{this.returnData=E});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(E=>{this.returnData=E});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(E=>{this.returnData=E});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(E=>{this.returnData=E});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(E=>{this.returnData=E});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(E=>{this.returnData=E});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(E=>{this.returnData=E});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(E=>{this.returnData=E});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(E=>{this.returnData=E});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(E=>{this.returnData=E});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(E=>{this.returnData=E});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(E=>{this.returnData=E});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(E=>{this.returnData=E});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.LIST_INPUT_BOX").subscribe(E=>{this.returnData=E});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.MAP_INPUT_BOX").subscribe(E=>{this.returnData=E});break;default:return A}return this.returnData}}return w.\u0275fac=function(A){return new(A||w)(e.Y36(b.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:w,pure:!0}),w})()},43157:(Xe,_e,p)=>{"use strict";p.d(_e,{h:()=>_});var e=p(5e3),b=p(51062);let _=(()=>{class w{constructor(A){this.translate=A,this.returnData=""}transform(A){switch(A){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(E=>{this.returnData=`done${E}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(E=>{this.returnData=`clear${E}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(E=>{this.returnData=`contact_mail ${E}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(E=>{this.returnData=`gavel${E}`});break;default:this.returnData=A}return this.returnData}}return w.\u0275fac=function(A){return new(A||w)(e.Y36(b.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationState",type:w,pure:!1}),w})()},70844:(Xe,_e,p)=>{"use strict";p.d(_e,{u:()=>_});var e=p(36908),b=p(5e3);let _=(()=>{class w{constructor(A){this.storeService=A,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(A,E,C){return!!(this.storeService.get("enforce_consents")&&C&&E)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((S,m)=>S||A.startsWith(m),!1)}}return w.\u0275fac=function(A){return new(A||w)(b.Y36(e.d6,16))},w.\u0275pipe=b.Yjl({name:"consentRelatedAttribute",type:w,pure:!0}),w})()},37677:(Xe,_e,p)=>{"use strict";p.d(_e,{A:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.substring(40)}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"extSourceType",type:_,pure:!0}),_})()},14264:(Xe,_e,p)=>{"use strict";p.d(_e,{m:()=>oe});var e=p(69808),b=p(11735),_=p(91079),w=p(47423),g=p(77446),A=p(90508),E=p(86856),C=p(48966),O=p(4834),S=p(81125),m=p(67322),B=p(25245),L=p(98833),J=p(86087),ie=p(85899),ge=p(20773),X=p(79814),Ne=p(74107),ue=p(2638),Oe=p(32368),T=p(57261),Z=p(84847),W=p(32075),Y=p(53251),ee=p(29772),ce=p(90149),le=p(9224),Pe=p(27544),Fe=p(26688),ze=p(92181),ae=p(92081),Ue=p(93075),ve=p(73228),He=p(36769),z=p(36908),I=p(5e3),me=p(50301),Ae=p(51062);const Me=["collapse"],pe=function(){return{color:"linkTextColor"}};function we(Ie,ct){1&Ie&&(I.TgZ(0,"mat-icon",14),I._uU(1,"keyboard_arrow_right"),I.qZA()),2&Ie&&I.Q6J("ngStyle",I.DdM(1,pe))}function $e(Ie,ct){1&Ie&&(I.TgZ(0,"mat-icon",14),I._uU(1,"keyboard_arrow_down"),I.qZA()),2&Ie&&I.Q6J("ngStyle",I.DdM(1,pe))}function Je(Ie,ct){if(1&Ie&&(I.TgZ(0,"span",12),I.YNc(1,we,2,2,"mat-icon",13),I.YNc(2,$e,2,2,"mat-icon",13),I.qZA()),2&Ie){const bt=I.oxw().$implicit,xt=I.oxw(2);I.xp6(1),I.Q6J("ngIf",!xt.isActive(xt.currentUrl,bt.showChildrenRegex)),I.xp6(1),I.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const nt=function(Ie,ct){return{color:Ie,"border-color":ct}};function ke(Ie,ct){if(1&Ie){const bt=I.EpF();I.TgZ(0,"a",17),I.NdJ("click",function(){const It=I.CHM(bt).$implicit;return I.oxw(4).navigate(It.url)}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&Ie){const bt=ct.$implicit,xt=I.oxw(4);I.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),I.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",I.WLB(9,nt,xt.linkTextColor,xt.linkTextColor)),I.xp6(1),I.hij(" ",I.lcZ(2,7,bt.label)," ")}}function H(Ie,ct){if(1&Ie&&(I.TgZ(0,"div",15),I.YNc(1,ke,3,12,"a",16),I.qZA()),2&Ie){const bt=I.oxw().$implicit;I.Q6J("@rollInOut",void 0),I.xp6(1),I.Q6J("ngForOf",null==bt?null:bt.children)}}function he(Ie,ct){if(1&Ie){const bt=I.EpF();I.TgZ(0,"div"),I.TgZ(1,"a",9),I.NdJ("click",function(){const It=I.CHM(bt).$implicit;return I.oxw(2).navigate(It.url)}),I._uU(2),I.ALo(3,"translate"),I.YNc(4,Je,3,2,"span",10),I.qZA(),I.YNc(5,H,2,2,"div",11),I.qZA()}if(2&Ie){const bt=ct.$implicit,xt=I.oxw(2);I.xp6(1),I.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),I.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",I.WLB(11,nt,xt.linkTextColor,xt.linkTextColor)),I.xp6(1),I.hij(" ",I.lcZ(3,9,bt.label)," "),I.xp6(2),I.Q6J("ngIf",bt.children),I.xp6(1),I.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}function P(Ie,ct){if(1&Ie&&(I.TgZ(0,"div"),I.YNc(1,he,6,14,"div",8),I.qZA()),2&Ie){const bt=I.oxw();I.Q6J("@rollInOut",void 0),I.xp6(1),I.Q6J("ngForOf",bt.item.links)}}const R=function(Ie,ct){return{background:Ie,"border-top":ct}},V=function(Ie){return{color:Ie}},Q=function(){return{color:"currentColor"}},Se=function(Ie){return{background:Ie}};let je=(()=>{class Ie{constructor(bt,xt){this.router=bt,this.store=xt,this.expanded=!0,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=bt.url,bt.events.subscribe(Yt=>{Yt instanceof b.m2&&(this.currentUrl=Yt.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(bt,xt){return new RegExp(xt).test(bt)}navigate(bt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(bt)):this.router.navigate(bt)}}return Ie.\u0275fac=function(bt){return new(bt||Ie)(I.Y36(b.F0),I.Y36(z.d6))},Ie.\u0275cmp=I.Xpm({type:Ie,selectors:[["app-side-menu-item"]],viewQuery:function(bt,xt){if(1&bt&&I.Gf(Me,5),2&bt){let Yt;I.iGM(Yt=I.CRH())&&(xt.collapseDiv=Yt.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(bt,xt){1&bt&&(I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.NdJ("click",function(){return xt.toggle()}),I.TgZ(2,"div",2),I.TgZ(3,"a",3),I.TgZ(4,"div"),I._UZ(5,"mat-icon",4),I.qZA(),I.TgZ(6,"div",5),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(9,"div"),I.TgZ(10,"div",6),I.YNc(11,P,2,2,"div",7),I.qZA(),I.qZA(),I.qZA()),2&bt&&(I.xp6(1),I.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",I.WLB(18,R,xt.item.backgroundColorCss,xt.index?xt.dividerStyle:"none")),I.xp6(1),I.Gre("entity-menu-item-link ",xt.item.labelClass,""),I.Q6J("perunWebAppsMiddleClickRouterLink",xt.item.baseLink),I.xp6(1),I.Q6J("ngStyle",I.VKq(21,V,xt.item.textColorCss)),I.xp6(2),I.Q6J("ngStyle",I.DdM(23,Q))("svgIcon",xt.item.icon),I.xp6(2),I.Oqu(I.lcZ(8,16,xt.item.label)),I.xp6(2),I.Q6J("@openClose",xt.expanded?"open":"closed"),I.xp6(1),I.Gre("side-entity-menu ",xt.item.linksClass,""),I.Q6J("ngStyle",I.VKq(24,Se,xt.linkBgColor)),I.xp6(1),I.Q6J("ngIf",xt.showLinks))},directives:[A.wG,e.PC,me.YH,B.Hw,e.O5,e.sg,e.mk],pipes:[Ae.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-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:[He.BQ,He.Ly]}}),Ie})(),Ye=(()=>{class Ie{transform(bt){if(void 0===bt.value)return"";switch(bt.type){case"java.lang.String":return bt.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(bt.value);case"java.util.ArrayList":return this.whenValueIsArray(bt.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(bt.value)}}whenValueIsArray(bt){let xt="";return bt.forEach(function(Yt){xt=xt.concat(Yt+", ")}),xt}whenValueIsMap(bt){let xt="";return bt.forEach((Yt,It)=>{xt=xt.concat(It+": "+Yt+", ")}),xt}}return Ie.\u0275fac=function(bt){return new(bt||Ie)},Ie.\u0275pipe=I.Yjl({name:"anyToString",type:Ie,pure:!0}),Ie})();const ye=["collapse"],re=function(){return{color:"linkTextColor"}};function r(Ie,ct){1&Ie&&(I.TgZ(0,"mat-icon",12),I._uU(1,"keyboard_arrow_right"),I.qZA()),2&Ie&&I.Q6J("ngStyle",I.DdM(1,re))}function o(Ie,ct){1&Ie&&(I.TgZ(0,"mat-icon",12),I._uU(1,"keyboard_arrow_down"),I.qZA()),2&Ie&&I.Q6J("ngStyle",I.DdM(1,re))}function d(Ie,ct){if(1&Ie&&(I.TgZ(0,"span",10),I.YNc(1,r,2,2,"mat-icon",11),I.YNc(2,o,2,2,"mat-icon",11),I.qZA()),2&Ie){const bt=I.oxw().$implicit,xt=I.oxw();I.xp6(1),I.Q6J("ngIf",!xt.isActive(xt.currentUrl,bt.showChildrenRegex)),I.xp6(1),I.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const l=function(Ie,ct){return{color:Ie,"border-color":ct}};function s(Ie,ct){if(1&Ie){const bt=I.EpF();I.TgZ(0,"a",14),I.NdJ("click",function(){const It=I.CHM(bt).$implicit;return I.oxw(3).navigate(It.url)}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&Ie){const bt=ct.$implicit,xt=I.oxw(3);I.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),I.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",I.WLB(9,l,xt.linkTextColor,xt.linkTextColor))("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",bt.url),I.xp6(1),I.hij(" ",I.lcZ(2,7,bt.label)," ")}}function i(Ie,ct){if(1&Ie&&(I.TgZ(0,"div"),I.YNc(1,s,3,12,"a",13),I.qZA()),2&Ie){const bt=I.oxw().$implicit;I.Q6J("@rollInOut",void 0),I.xp6(1),I.Q6J("ngForOf",null==bt?null:bt.children)}}function t(Ie,ct){if(1&Ie){const bt=I.EpF();I.TgZ(0,"div"),I.TgZ(1,"a",7),I.NdJ("click",function(){const It=I.CHM(bt).$implicit;return I.oxw().navigate(It.url)}),I._uU(2),I.ALo(3,"translate"),I.YNc(4,d,3,2,"span",8),I.qZA(),I.YNc(5,i,2,2,"div",9),I.qZA()}if(2&Ie){const bt=ct.$implicit,xt=I.oxw();I.xp6(1),I.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),I.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",I.WLB(11,l,xt.linkTextColor,xt.linkTextColor)),I.xp6(1),I.hij(" ",I.lcZ(3,9,bt.label)," "),I.xp6(2),I.Q6J("ngIf",bt.children),I.xp6(1),I.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const n=function(Ie){return{background:Ie}},a=function(Ie){return{color:Ie}},c=function(){return{color:"currentColor"}};let h=(()=>{class Ie{constructor(bt,xt){this.router=bt,this.store=xt,this.id="",this.expanded=!1,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.currentUrl=bt.url,bt.events.subscribe(Yt=>{Yt instanceof b.m2&&(this.currentUrl=Yt.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(bt,xt){return new RegExp(xt).test(bt)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(bt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(bt)):this.router.navigate(bt)}}return Ie.\u0275fac=function(bt){return new(bt||Ie)(I.Y36(b.F0),I.Y36(z.d6))},Ie.\u0275cmp=I.Xpm({type:Ie,selectors:[["app-side-menu-root-item"]],viewQuery:function(bt,xt){if(1&bt&&I.Gf(ye,5),2&bt){let Yt;I.iGM(Yt=I.CRH())&&(xt.collapseDiv=Yt.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[I.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(bt,xt){1&bt&&(I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.NdJ("click",function(){return xt.toggle()}),I.TgZ(2,"div"),I.TgZ(3,"a",2),I.TgZ(4,"div"),I._UZ(5,"mat-icon",3),I.qZA(),I.TgZ(6,"div",4),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(9,"div"),I.TgZ(10,"div",5),I.YNc(11,t,6,14,"div",6),I.qZA(),I.qZA(),I.qZA()),2&bt&&(I.s9C("id",xt.id),I.xp6(1),I.ekj("root-header-activated",xt.isActive(xt.currentUrl,xt.item.baseColorClassRegex)),I.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",I.VKq(21,n,xt.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",xt.item.baseLink),I.xp6(1),I.Gre("entity-menu-item-link ",xt.item.labelClass,""),I.xp6(1),I.Q6J("ngStyle",I.VKq(23,a,xt.item.textColorCss)),I.xp6(2),I.Q6J("ngStyle",I.DdM(25,c))("svgIcon",xt.item.icon),I.xp6(2),I.Oqu(I.lcZ(8,19,xt.item.label)),I.xp6(2),I.Q6J("@openClose",xt.expanded?"open":"closed"),I.xp6(1),I.Gre("side-entity-menu ",xt.item.linksClass,""),I.Q6J("ngStyle",I.VKq(26,n,xt.linkBgColor)),I.xp6(1),I.Q6J("ngForOf",xt.item.links))},directives:[A.wG,e.PC,me.YH,B.Hw,e.sg,e.mk,e.O5],pipes:[Ae.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}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-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}.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:[He.BQ,He.Ly]}}),Ie})();var x=p(44409),We=p(53435),At=p(63189),Ht=p(37677),lt=p(387),Ut=p(11243),mt=p(19516),Lt=p(43586),Te=p(14623),Ge=p(9244),j=p(28499),N=p(70844),te=p(16074);let oe=(()=>{class Ie{constructor(bt){this.translate=bt,bt.addLangs(["en","cs"])}}return Ie.\u0275fac=function(bt){return new(bt||Ie)(I.LFG(Ae.sK))},Ie.\u0275mod=I.oAB({type:Ie}),Ie.\u0275inj=I.cJS({providers:[Ye,Ht.A,N.u],imports:[[e.ez,b.Bz,_.Bb,L.c,m.lN,Ue.UX,Ue.u5,B.Ps,ue.SJ,S.To,Ae.aw.forChild({}),w.ot,Z.JX,W.p0,Y.Nh,ce.dp,w.ot,g.p9,C.Is,Ne.LD,T.ZX,ge.Cq,ie.Cv,ee.AV,Oe.rP,E.FA,A.XK,X.Fk,O.t,A.si,J.TU,le.QW,ae.T5,x._t,le.QW,Fe.Hi,ze.Tx,We.Cl,At.r,Pe.g,lt.ez,Ut.r,mt.d4,Lt.Co,Te.ie,Ge.Je,j.E3,te.jD],Lt.Co,_.Bb,L.c,b.Bz,Ue.UX,Ue.u5,B.Ps,ue.SJ,Ae.aw,Z.JX,W.p0,Y.Nh,ce.dp,w.ot,g.p9,C.Is,Ne.LD,T.ZX,ge.Cq,ie.Cv,ee.AV,Oe.rP,E.FA,A.XK,X.Fk,O.t,le.QW,ae.T5,A.si,J.TU,x._t,Fe.Hi,Fe.Hi,S.To,ze.Tx,We.Cl,We.Cl,We.Cl,Ut.r]}),Ie})();I.B6R(ve.V,[h,e.sg,je,e.O5],[])},69024:(Xe,_e,p)=>{"use strict";p.d(_e,{V:()=>C});var e=p(36908),b=p(32105),_=p(9244),w=p(19516),g=p(64080),A=p(5e3),E=p(51062);let C=(()=>{class O{constructor(m,B,L,J,ie,ge,X){this.translate=m,this.authResolver=B,this.store=L,this.apiRequest=J,this.attributesManager=ie,this.notificator=ge,this.guiAuthResolver=X,this.baseItemColor=this.store.get("theme","sidemenu_bg_color"),this.voBgColor=this.store.get("theme","sidemenu_vo_bg_color"),this.memberBgColor=this.store.get("theme","sidemenu_member_bg_color"),this.groupBgColor=this.store.get("theme","sidemenu_group_bg_color"),this.facilityBgColor=this.store.get("theme","sidemenu_facility_bg_color"),this.resourceBgColor=this.store.get("theme","sidemenu_resource_bg_color"),this.userBgColor=this.store.get("theme","sidemenu_user_bg_color"),this.serviceBgColor=this.store.get("theme","sidemenu_service_bg_color"),this.baseItemTextColor=this.store.get("theme","sidemenu_text_color"),this.voTextColor=this.store.get("theme","sidemenu_vo_text_color"),this.memberTextColor=this.store.get("theme","sidemenu_member_text_color"),this.groupTextColor=this.store.get("theme","sidemenu_group_text_color"),this.facilityTextColor=this.store.get("theme","sidemenu_facility_text_color"),this.resourceTextColor=this.store.get("theme","sidemenu_resource_text_color"),this.userTextColor=this.store.get("theme","sidemenu_user_text_color"),this.serviceTextColor=this.store.get("theme","sidemenu_service_text_color")}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.baseItemColor,textColorCss:this.baseItemTextColor}}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.baseItemColor,textColorCss:this.baseItemTextColor}}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.baseItemColor,textColorCss:this.baseItemTextColor,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.baseItemColor,textColorCss:this.baseItemTextColor,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.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.baseItemColor,textColorCss:this.baseItemTextColor,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(m){return{label:m.name,baseLink:[`/facilities/${m.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(m),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(m,B){const L=(new w.r5).transform(m,B);return{label:m.name,baseLink:[L],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(L,B?"/organizations":"/facilities",m),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(m){return{label:m.name,baseLink:[`/organizations/${m.voId}/groups/${m.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(m),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(m,B=!1,L=!1){return{label:m.name,baseLink:[`/organizations/${m.id}`],links:this.getVoLinks(m,L),colorClass:"vo-item",icon:B?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(m,B){return{label:(0,_.bD)(m.user),baseLink:[`/organizations/${m.voId}/members/${m.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(m,B),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(m,B,L){return{label:(0,_.bD)(m),baseLink:[B],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(m,B,L),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(m){return{label:(0,_.bD)(m),baseLink:[`/myProfile/service-identities/${m.id}`],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${m.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${m.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(m){return{label:m.name,baseLink:[`/admin/services/${m.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${m.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${m.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${m.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(m,B){const L=[];if(L.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${m.id}`],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[m])&&L.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${m.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[m])&&L.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${m.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[m])){const X=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${m.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[m])&&X.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${m.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[m])&&X.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${m.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),L.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${m.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:X,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[m])&&L.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${m.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[m])&&L.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${m.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[m])&&L.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${m.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),L.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[m])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[m])&&L.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${m.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"});const J=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[m]),ie=this.authResolver.isManagerPagePrivileged(m),ge=this.authResolver.isThisVoAdminOrObserver(m.id);if(ie||J||ge){const X=[];ge&&X.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${m.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),ie&&X.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${m.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),ge&&X.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${m.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),ge&&X.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${m.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),J&&X.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${m.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.authResolver.isPerunAdmin()&&X.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${m.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.authResolver.isPerunAdmin()&&B&&X.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${m.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),L.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${m.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:X,showChildrenRegex:"/organizations/\\d+/settings"})}return L}getUserLinks(m,B,L){const J=[];return J.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[B],activatedRegex:`${L}$`}),J.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${B}/organizations`],activatedRegex:`${L}/organizations`}),J.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${B}/groups`],activatedRegex:`${L}/groups`}),J.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${B}/accounts`],activatedRegex:`${L}/accounts`}),J.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${B}/identities`],activatedRegex:`${L}/identities`}),J.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${B}/facilities`],activatedRegex:`${L}/facilities`}),J.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${B}/resources`],activatedRegex:`${L}/resources`}),J.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${B}/attributes`],activatedRegex:`${L}/attributes`}),J.push({label:"MENU_ITEMS.USER.ROLES",url:[`${B}/roles`],activatedRegex:`^${B}/roles`}),J.push(m.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${B}/associated-users`],activatedRegex:`^${B}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${B}/service-identities`],activatedRegex:`^${B}/service-identities`}),J}getMemberLinks(m,B){const L=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${m.voId}/members/${m.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[B])&&L.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`//organizations/${m.voId}/members/${m.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[B])&&L.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`//organizations/${m.voId}/members/${m.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[B])&&L.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${m.voId}/members/${m.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),L.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${m.voId}/members/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),L}getFacilityLinks(m){const B=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${m.id}`],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[m])&&B.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${m.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[m])&&B.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${m.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[m])&&B.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${m.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[m])&&B.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${m.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[m])&&B.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${m.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&B.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${m.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),B.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",m.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});const L=this.authResolver.isAuthorized("getBansForFacility_int_policy",[m]),J=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[m]),ie=this.authResolver.isAuthorized("getOwners_Facility_policy",[m]),ge=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[m]);if(L||J||ie||ge){const X=[];ie&&X.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",m.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),J&&X.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",m.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),ge&&X.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${m.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),L&&X.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",m.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),B.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",m.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:X,showChildrenRegex:"/facilities/\\d+/settings"})}return B}getGroupLinks(m){const B=[],L=[];B.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${m.voId}/groups/${m.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[m])&&B.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${m.voId}/groups/${m.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[m])&&"members"!==m.name&&B.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${m.voId}/groups/${m.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[m])&&B.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${m.voId}/groups/${m.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[m])&&B.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),B.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${m.voId}/groups/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});const J=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[m]),ie=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[m]),ge=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[m]);return J&&ie&&ge&&B.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${m.voId}/groups/${m.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(m.id,g.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{L.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${m.voId}/groups/${m.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},X=>{"HttpErrorResponse"!==X.name&&this.notificator.showRPCError(X)}),this.authResolver.isManagerPagePrivileged(m)&&L.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[m])&&L.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${m.voId}/groups/${m.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[m])&&L.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[m])&&L.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[m])&&L.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${m.voId}/groups/${m.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==L.length&&B.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${m.voId}/groups/${m.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:L,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),B}getResourceLinks(m,B,L){const J=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[m],activatedRegex:`${B}/\\d+/resources/\\d+$`}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[L])&&J.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[m,"groups"],activatedRegex:`${B}/\\d+/resources/\\d+/groups$`}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[L])&&J.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[m,"services"],activatedRegex:`${B}/\\d+/resources/\\d+/services$`}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[L])&&J.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[m,"members"],activatedRegex:`${B}/\\d+/resources/\\d+/members$`}),this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[L])&&J.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[m,"tags"],activatedRegex:`${B}/\\d+/resources/\\d+/tags$`}),J.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[m,"attributes"],activatedRegex:`${B}/\\d+/resources/\\d+/attributes$`}),this.authResolver.isManagerPagePrivileged(L)&&J.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[m,"settings"],activatedRegex:`${B}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[m,"settings","managers"],activatedRegex:`${B}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${B}/\\d+/resources/\\d+/settings`}),J}}return O.\u0275fac=function(m){return new(m||O)(A.LFG(E.sK),A.LFG(e.x4),A.LFG(e.d6),A.LFG(e.F5),A.LFG(b.H8),A.LFG(e.V6),A.LFG(e.x4))},O.\u0275prov=A.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})()},73228:(Xe,_e,p)=>{"use strict";p.d(_e,{V:()=>ge});var e=p(72077),b=p(69024),_=p(36908),w=p(36769),g=p(5e3),A=p(77968);function E(X,Ne){if(1&X&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",10),g.qZA()),2&X){const ue=Ne.$implicit,Oe=Ne.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Oe)("item",ue)("sideNav",T.sideNav)}}function C(X,Ne){if(1&X&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&X){const ue=Ne.$implicit,Oe=Ne.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Oe)("item",ue)("showLinks",Oe===T.accessItems.length-1)("sideNav",T.sideNav)}}function O(X,Ne){if(1&X&&g._UZ(0,"app-side-menu-root-item",2),2&X){const ue=g.oxw();g.Q6J("id","facilities-item-btn")("item",ue.facilityItem)("sideNav",ue.sideNav)}}function S(X,Ne){if(1&X&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&X){const ue=Ne.$implicit,Oe=Ne.index,T=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Oe)("item",ue)("showLinks",Oe===T.facilityItems.length-1)("sideNav",T.sideNav)}}function m(X,Ne){if(1&X&&(g.TgZ(0,"div"),g.YNc(1,S,2,5,"div",3),g.qZA()),2&X){const ue=g.oxw();g.xp6(1),g.Q6J("ngForOf",ue.facilityItems)}}function B(X,Ne){if(1&X&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&X){const ue=Ne.$implicit,Oe=Ne.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Oe)("item",ue)("showLinks",Oe===T.userItems.length-1)("sideNav",T.sideNav)}}function L(X,Ne){if(1&X&&g._UZ(0,"app-side-menu-root-item",7),2&X){const ue=g.oxw();g.Q6J("id","admin-item-btn")("item",ue.adminItem)("showOpen",ue.adminItemOpened)("sideNav",ue.sideNav)}}function J(X,Ne){if(1&X&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&X){const ue=Ne.$implicit,Oe=Ne.index,T=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Oe)("item",ue)("showLinks",!0)("sideNav",T.sideNav)}}function ie(X,Ne){if(1&X&&(g.TgZ(0,"div"),g.YNc(1,J,2,5,"div",3),g.qZA()),2&X){const ue=g.oxw();g.xp6(1),g.Q6J("ngForOf",ue.adminItems)}}let ge=(()=>{class X{constructor(ue,Oe,T){this.sideMenuService=ue,this.sideMenuItemService=Oe,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(ue,Oe){return ue.label===Oe.label&&ue.labelClass===Oe.labelClass}static areSameLinks(ue,Oe){if(ue.links.length!==Oe.links.length)return!1;for(let T=0;TOe.length?ue.length:Oe.length;for(let Z=0;Zue.length-1)ue.push(Oe[Z]);else{if(Z>Oe.length-1){const W=ue.length;for(let Y=0;Y{this.setFacilityItems(ue)}),this.sideMenuService.accessItemsChange.subscribe(ue=>{this.setAccessItems(ue)}),this.sideMenuService.adminItemsChange.subscribe(ue=>{this.setAdminItems(ue)}),this.sideMenuService.userItemsChange.subscribe(ue=>{this.setUserItems(ue)}),this.sideMenuService.homeItemsChange.subscribe(ue=>{this.setHomeItems(ue)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,X.setNewItems(this.homeItems,[]),X.setNewItems(this.adminItems,[]),X.setNewItems(this.accessItems,[]),X.setNewItems(this.facilityItems,[]),X.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,X.setNewItems(this.adminItems,[]),X.setNewItems(this.accessItems,[]),X.setNewItems(this.facilityItems,[]),X.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,X.setNewItems(this.homeItems,[]),X.setNewItems(this.adminItems,[]),X.setNewItems(this.accessItems,[]),X.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,X.setNewItems(this.homeItems,[]),X.setNewItems(this.adminItems,[]),X.setNewItems(this.facilityItems,[]),X.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,X.setNewItems(this.homeItems,[]),X.setNewItems(this.accessItems,[]),X.setNewItems(this.facilityItems,[]),X.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,X.setNewItems(this.accessItems,[]),X.setNewItems(this.facilityItems,[]),X.setNewItems(this.adminItems,[])}setHomeItems(ue){this.resetExceptHome(),X.setNewItems(this.homeItems,ue)}setFacilityItems(ue){this.resetExceptFacility(),X.setNewItems(this.facilityItems,ue)}setAccessItems(ue){this.resetExceptAccess(),X.setNewItems(this.accessItems,ue)}setUserItems(ue){this.userItemOpened=0===ue.length,this.resetExceptUser(),X.setNewItems(this.userItems,ue)}setAdminItems(ue){this.adminItemOpened=0===ue.length,this.resetExceptAdmin(),X.setNewItems(this.adminItems,ue)}}return X.\u0275fac=function(ue){return new(ue||X)(g.Y36(A.D),g.Y36(b.V),g.Y36(_.x4))},X.\u0275cmp=g.Xpm({type:X,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"],[3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],[3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"]],template:function(ue,Oe){1&ue&&(g.TgZ(0,"div",0),g.TgZ(1,"div",1),g._UZ(2,"app-side-menu-root-item",2),g.YNc(3,E,2,4,"div",3),g._UZ(4,"app-side-menu-root-item",4),g.TgZ(5,"div"),g.YNc(6,C,2,5,"div",3),g.qZA(),g.YNc(7,O,1,3,"app-side-menu-root-item",5),g.YNc(8,m,2,1,"div",6),g._UZ(9,"app-side-menu-root-item",7),g.YNc(10,B,2,5,"div",3),g.YNc(11,L,1,4,"app-side-menu-root-item",8),g.YNc(12,ie,2,1,"div",6),g.qZA(),g.qZA()),2&ue&&(g.xp6(2),g.Q6J("id","home-item-btn")("item",Oe.homeItem)("sideNav",Oe.sideNav),g.xp6(1),g.Q6J("ngForOf",Oe.homeItems),g.xp6(1),g.Q6J("item",Oe.accessItem)("id","access-item-btn")("sideNav",Oe.sideNav),g.xp6(2),g.Q6J("ngForOf",Oe.accessItems),g.xp6(1),g.Q6J("ngIf",Oe.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("ngIf",Oe.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("id","profile-item-btn")("item",Oe.userItem)("showOpen",Oe.userItemOpened)("sideNav",Oe.sideNav),g.xp6(1),g.Q6J("ngForOf",Oe.userItems),g.xp6(1),g.Q6J("ngIf",Oe.authResolver.isPerunAdminOrObserver()),g.xp6(1),g.Q6J("ngIf",Oe.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:[w.Ly]}}),X})()},157:(Xe,_e,p)=>{"use strict";p.d(_e,{b:()=>Lt});var e=p(5e3),b=p(44409),_=p(48966),w=p(47423),g=p(51062);let A=(()=>{class Te{constructor(j){this.dialogRef=j}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return Te.\u0275fac=function(j){return new(j||Te)(e.Y36(_.so))},Te.\u0275cmp=e.Xpm({type:Te,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(j,N){1&j&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1),e.TgZ(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.qZA(),e.TgZ(13,"div",4),e.TgZ(14,"button",5),e.NdJ("click",function(){return N.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return N.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.qZA()),2&j&&(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")," "))},directives:[_.uh,_.xY,_.H8,w.lW],pipes:[g.X$],styles:[""]}),Te})();var E=p(36908),C=p(83491),O=p(9244),S=p(11735),m=p(69808),B=p(20773),L=p(32075),J=p(25245),ie=p(29772),ge=p(93075),X=p(21963),Ne=p(28820),ue=p(98380),Oe=p(57706),T=p(64597);const Z=["table"];function W(Te,Ge){1&Te&&e._UZ(0,"mat-spinner",3)}function Y(Te,Ge){1&Te&&e._UZ(0,"th",24)}function ee(Te,Ge){if(1&Te){const j=e.EpF();e.TgZ(0,"td",25),e.TgZ(1,"button",26),e.NdJ("mousedown",function(){return e.CHM(j),e.oxw(2).dragDisabled=!1}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA(),e.qZA(),e.qZA()}}function ce(Te,Ge){1&Te&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function le(Te,Ge){if(1&Te&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.AsE(" ",j.shortname,"",j.required?"*":""," ")}}function Pe(Te,Ge){1&Te&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function Fe(Te,Ge){if(1&Te&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,j.type)," ")}}function ze(Te,Ge){1&Te&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function ae(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Te){const j=e.oxw().$implicit,N=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",N.disabledTooltip(j)),e.xp6(3),e.hij(" ",N.disabledHiddenDependency(j,j.disabled,j.disabledDependencyItemId)," ")}}function Ue(Te,Ge){if(1&Te&&(e.TgZ(0,"td",28),e.YNc(1,ae,5,2,"div",29),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==j.disabled)}}function ve(Te,Ge){1&Te&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function He(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Te){const j=e.oxw().$implicit,N=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",N.hiddenTooltip(j)),e.xp6(3),e.hij(" ",N.disabledHiddenDependency(j,j.hidden,j.hiddenDependencyItemId)," ")}}function z(Te,Ge){if(1&Te&&(e.TgZ(0,"td",28),e.YNc(1,He,5,2,"div",29),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==j.hidden)}}function I(Te,Ge){1&Te&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function me(Te,Ge){1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",31),e.qZA(),e.qZA())}function Ae(Te,Ge){1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",32),e._UZ(3,"br"),e._UZ(4,"input",31),e.qZA(),e.qZA())}function Me(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(2),e.hij(" ",j,"")}}function pe(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.YNc(2,Me,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA(),e.qZA()),2&Te){const j=e.oxw().$implicit,N=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",N.getLocalizedOptions(j)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function we(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&Te){const j=e.oxw().$implicit,N=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",N.getLocalizedLabel(j),e.oJD)}}function $e(Te,Ge){if(1&Te&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.hij(" ",j," ")}}function Je(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"select"),e.YNc(2,$e,2,1,"option",33),e.qZA(),e.qZA()),2&Te){const j=e.oxw().$implicit,N=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",N.getLocalizedOptions(j))}}function nt(Te,Ge){1&Te&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function ke(Te,Ge){if(1&Te&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.hij(" ",j," ")}}function H(Te,Ge){1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",31),e.qZA(),e.qZA())}function he(Te,Ge){if(1&Te){const j=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"select",37),e.NdJ("ngModelChange",function(te){e.CHM(j);const oe=e.oxw().$implicit;return e.oxw(2).mapForCombobox[oe.id]=te}),e.YNc(2,ke,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.YNc(6,H,3,0,"div",29),e.qZA()}if(2&Te){const j=e.oxw().$implicit,N=e.oxw(2);e.xp6(1),e.Q6J("ngModel",N.mapForCombobox[j.id]),e.xp6(1),e.Q6J("ngForOf",N.getLocalizedOptions(j)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===N.mapForCombobox[j.id])}}function P(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(2),e.hij(" ",j," ")}}function R(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.YNc(2,P,3,1,"div",33),e.qZA(),e.qZA()),2&Te){const j=e.oxw().$implicit,N=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",N.getLocalizedOptions(j))}}function V(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"button",42),e._uU(2),e.qZA(),e.qZA()),2&Te){const j=e.oxw().$implicit,N=e.oxw(2);e.xp6(2),e.hij(" ",N.getLocalizedLabel(j)," ")}}function Q(Te,Ge){1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"select",43),e.TgZ(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(),e.qZA(),e.qZA()),2&Te&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Se(Te,Ge){if(1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"button",42),e._uU(2),e.qZA(),e.qZA()),2&Te){const j=e.oxw().$implicit,N=e.oxw(2);e.xp6(2),e.hij(" ",N.getLocalizedLabel(j)," ")}}function je(Te,Ge){1&Te&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br"),e._UZ(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br"),e._UZ(8,"input",41),e._uU(9," example group3 "),e.qZA(),e.qZA())}const Ye=function(){return["Example 1","Example 2"]},ye=function(Te){return{id:0,beanName:"Attribute",namespace:"",value:Te}};function re(Te,Ge){1&Te&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&Te&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,ye,e.DdM(1,Ye))))}const r=function(){return{key1:"value 1",key2:"value 2"}};function o(Te,Ge){1&Te&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&Te&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,ye,e.DdM(1,r))))}function d(Te,Ge){if(1&Te&&(e.TgZ(0,"td",25),e.YNc(1,me,3,0,"div",29),e.YNc(2,Ae,5,0,"div",29),e.YNc(3,pe,5,4,"div",29),e.YNc(4,we,2,1,"div",29),e.YNc(5,Je,3,1,"div",29),e.YNc(6,nt,2,0,"div",29),e.YNc(7,he,7,6,"div",29),e.YNc(8,R,3,1,"div",29),e.YNc(9,V,3,1,"div",29),e.YNc(10,Q,85,3,"div",29),e.YNc(11,Se,3,1,"div",29),e.YNc(12,je,10,0,"div",29),e.YNc(13,re,2,4,"div",29),e.YNc(14,o,2,4,"div",29),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===j.type||"VALIDATED_EMAIL"===j.type||"USERNAME"===j.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===j.type),e.xp6(1),e.Q6J("ngIf","RADIO"===j.type),e.xp6(1),e.Q6J("ngIf","HEADING"===j.type||"HTML_COMMENT"===j.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===j.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===j.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===j.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===j.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===j.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===j.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===j.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===j.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===j.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===j.type)}}function l(Te,Ge){1&Te&&e._UZ(0,"th",24)}function s(Te,Ge){if(1&Te){const j=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){return e.CHM(j),e.oxw(3).openManagingGroups()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA(),e.qZA()}2&Te&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function i(Te,Ge){if(1&Te&&(e.TgZ(0,"td",25),e.YNc(1,s,4,3,"button",86),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===j.type&&!j.forDelete)}}function t(Te,Ge){1&Te&&e._UZ(0,"th",24)}function n(Te,Ge){if(1&Te){const j=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(j);const te=e.oxw().$implicit;return e.oxw(2).edit(te)}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA(),e.qZA()}2&Te&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function a(Te,Ge){1&Te&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function c(Te,Ge){if(1&Te&&(e.TgZ(0,"td",25),e.YNc(1,n,4,3,"button",88),e.YNc(2,a,3,3,"div",89),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.Q6J("ngIf",!j.forDelete),e.xp6(1),e.Q6J("ngIf",j.forDelete)}}function h(Te,Ge){1&Te&&e._UZ(0,"th",24)}function x(Te,Ge){if(1&Te){const j=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(j);const te=e.oxw().$implicit;return e.oxw(2).delete(te)}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA(),e.qZA()}if(2&Te){const j=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,j.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function We(Te,Ge){if(1&Te){const j=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(j);const te=e.oxw().$implicit;return e.oxw(2).restore(te)}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA(),e.qZA()}2&Te&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function At(Te,Ge){if(1&Te&&(e.TgZ(0,"td",25),e.YNc(1,x,5,6,"button",92),e.YNc(2,We,4,3,"button",86),e.qZA()),2&Te){const j=Ge.$implicit;e.xp6(1),e.Q6J("ngIf",!j.forDelete),e.xp6(1),e.Q6J("ngIf",j.forDelete)}}function Ht(Te,Ge){1&Te&&e._UZ(0,"tr",94)}function lt(Te,Ge){if(1&Te&&e._UZ(0,"tr",95),2&Te){const j=Ge.$implicit,N=e.oxw(2);e.ekj("make-green",j.id<=0)("make-red",j.forDelete)("make-yellow",-1!==N.itemsChanged.indexOf(j.id)&&!j.forDelete&&j.id>0),e.Q6J("cdkDragData",j)}}function Ut(Te,Ge){if(1&Te){const j=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e.TgZ(3,"table",7,8),e.NdJ("cdkDropListDropped",function(te){return e.CHM(j),e.oxw().drop(te)}),e.ynx(5,9),e.YNc(6,Y,1,0,"th",10),e.YNc(7,ee,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,ce,3,3,"th",10),e.YNc(10,le,2,2,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,Pe,3,3,"th",10),e.YNc(13,Fe,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,ze,3,3,"th",15),e.YNc(16,Ue,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,ve,3,3,"th",15),e.YNc(19,z,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,I,3,3,"th",10),e.YNc(22,d,15,14,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,l,1,0,"th",10),e.YNc(25,i,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,t,1,0,"th",10),e.YNc(28,c,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,h,1,0,"th",10),e.YNc(31,At,3,2,"td",11),e.BQk(),e.YNc(32,Ht,1,0,"tr",22),e.YNc(33,lt,1,7,"tr",23),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&Te){const j=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",j.dragDisabled)("dataSource",j.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",j.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",j.displayedColumns)}}function mt(Te,Ge){1&Te&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Te&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let Lt=(()=>{class Te{constructor(j,N,te,oe){this.dialog=j,this.notificator=N,this.router=te,this.translate=oe,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(j,N,te){let oe="";if("IF_EMPTY"===N||"IF_PREFILLED"===N){const Ie=null===te?"":this.applicationFormItems.find(ct=>ct.id===te).shortname;oe="IF_EMPTY"===N?`(${this.ifEmpty} ${Ie})`:`(${this.ifPrefilled} ${Ie})`}return oe}disabledTooltip(j){let N;switch(j.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return N=null===j.disabledDependencyItemId?"":this.applicationFormItems.find(te=>te.id===j.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${N} ${this.isEmpty}`;case"IF_PREFILLED":return N=null===j.disabledDependencyItemId?"":this.applicationFormItems.find(te=>te.id===j.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${N} ${this.isPrefilled}`}}hiddenTooltip(j){let N;switch(j.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return N=null===j.hiddenDependencyItemId?"":this.applicationFormItems.find(te=>te.id===j.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${N} ${this.isEmpty}`;case"IF_PREFILLED":return N=null===j.hiddenDependencyItemId?"":this.applicationFormItems.find(te=>te.id===j.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${N} ${this.isPrefilled}`}}edit(j){const N=(0,O.kZ)();N.width="600px",N.height="600px",N.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:j,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(C._,N).afterClosed().subscribe(oe=>{oe&&(this.itemsChanged.push(j.id),this.applicationFormItemsChange.emit())})}delete(j){const N=(0,O.kZ)();N.width="500px",this.dialog.open(A,N).afterClosed().subscribe(oe=>{oe&&(j.forDelete=!0,0===j.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(j),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(j){this.dragDisabled=!0;const N=this.applicationFormItems.indexOf(j.item.data);(0,b.bA)(this.applicationFormItems,N,j.currentIndex),this.itemsChanged.push(this.applicationFormItems[j.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(j){if(j.i18n[this.translate.getDefaultLang()]){const N=j.i18n[this.translate.getDefaultLang()].options;if(null!==N&&""!==N){const te=[];for(const oe of N.split("|"))te.push(oe.split("#")[1]);return te}}return[]}getLocalizedLabel(j){return j.i18n[this.translate.getDefaultLang()]?j.i18n[this.translate.getDefaultLang()].label:j.shortname}restore(j){j.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return Te.\u0275fac=function(j){return new(j||Te)(e.Y36(_.uw),e.Y36(E.V6),e.Y36(S.F0),e.Y36(g.sK))},Te.\u0275cmp=e.Xpm({type:Te,selectors:[["app-application-form-list"]],viewQuery:function(j,N){if(1&j&&e.Gf(Z,5),2&j){let te;e.iGM(te=e.CRH())&&(N.table=te.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(j,N){1&j&&(e.YNc(0,W,1,0,"mat-spinner",0),e.YNc(1,Ut,34,4,"div",1),e.YNc(2,mt,3,3,"perun-web-apps-alert",2)),2&j&&(e.Q6J("ngIf",N.loading),e.xp6(1),e.Q6J("ngIf",0!==N.applicationFormItems.length&&!N.loading),e.xp6(1),e.Q6J("ngIf",0===N.applicationFormItems.length&&!N.loading))},directives:[m.O5,B.$g,L.BZ,b.Wj,L.w1,L.fO,L.ge,L.Dz,L.ev,w.lW,J.Hw,ie.gM,ge._Y,ge.JL,ge.F,m.sg,ge.YN,ge.Kr,ge.EJ,ge.JJ,ge.On,X.H,Ne.$,L.as,L.XQ,L.nj,L.Gk,b.Zt,ue.w],pipes:[g.X$,Oe.c,T.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}"]}),Te})()},9146:(Xe,_e,p)=>{"use strict";p.d(_e,{S:()=>n});var e=p(32105),b=p(9244),_=p(84847),w=p(36908),g=p(36787),A=p(22868),E=p(69808),C=p(5e3),O=p(10036),S=p(18750),m=p(20773),B=p(32075),L=p(25245),J=p(29772);function ie(a,c){1&a&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",1),C._uU(2,"arrow_right_alt"),C.qZA(),C.qZA())}function ge(a,c){1&a&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",2),C._uU(2,"restore"),C.qZA(),C.qZA())}function X(a,c){1&a&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",3),C._uU(2,"nat"),C.qZA(),C.qZA())}let Ne=(()=>{class a{}return a.\u0275fac=function(h){return new(h||a)},a.\u0275cmp=C.Xpm({type:a,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(h,x){1&h&&(C.TgZ(0,"div"),C.YNc(1,ie,3,0,"div",0),C.YNc(2,ge,3,0,"div",0),C.YNc(3,X,3,0,"div",0),C.qZA()),2&h&&(C.xp6(1),C.Q6J("ngIf","INITIAL"===x.applicationType),C.xp6(1),C.Q6J("ngIf","EXTENSION"===x.applicationType),C.xp6(1),C.Q6J("ngIf","EMBEDDED"===x.applicationType))},directives:[E.O5,L.Hw,J.gM],styles:[""]}),a})();var ue=p(50301),Oe=p(11735),T=p(98380),Z=p(51062),W=p(43157),Y=p(31359);function ee(a,c){1&a&&(C.TgZ(0,"div",26),C._UZ(1,"mat-spinner",27),C.qZA())}function ce(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function le(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.id)}}function Pe(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function Fe(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.ALo(2,"date"),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(C.xi3(2,1,h.createdAt,"d.M.y"))}}function ze(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function ae(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.vo.id)}}function Ue(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function ve(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.vo.name)}}function He(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function z(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.hij(" ",h.group?h.group.id:""," ")}}function I(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function me(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.hij(" ",h.group?h.group.name:""," ")}}function Ae(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function Me(a,c){if(1&a&&(C.TgZ(0,"td",29),C._UZ(1,"app-application-type-icon",31),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Q6J("applicationType",h.type)}}function pe(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function we(a,c){if(1&a&&(C.TgZ(0,"td",29),C._UZ(1,"span",32),C.ALo(2,"applicationState"),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Q6J("outerHTML",C.lcZ(2,1,h.state),C.oJD)}}function $e(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function Je(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.extSourceName)}}function nt(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function ke(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.extSourceType)}}function H(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function he(a,c){if(1&a&&(C.TgZ(0,"div"),C._uU(1),C.qZA()),2&a){const h=C.oxw().$implicit;C.xp6(1),C.hij(" ",h.createdBy.slice(h.createdBy.lastIndexOf("=")+1,h.createdBy.length)," ")}}function P(a,c){if(1&a&&(C._uU(0),C.ALo(1,"userFullName")),2&a){const h=C.oxw().$implicit;C.hij(" ",C.lcZ(1,1,h.user)," ")}}function R(a,c){if(1&a&&(C.TgZ(0,"td",29),C.YNc(1,he,2,1,"div",33),C.YNc(2,P,2,3,"ng-template",null,34,C.W1O),C.qZA()),2&a){const h=c.$implicit,x=C.MAs(3);C.xp6(1),C.Q6J("ngIf",null===h.user)("ngIfElse",x)}}function V(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function Q(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.hij(" ",h.createdBy.slice(h.createdBy.lastIndexOf("=")+1,h.createdBy.length)," ")}}function Se(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function je(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit,x=C.oxw();C.xp6(1),C.Oqu(x.getFriendlyName(h.modifiedBy))}}function Ye(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function ye(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.ALo(2,"date"),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(C.xi3(2,1,h.modifiedAt,"d.M.y"))}}function re(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function r(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.fedInfo)}}function o(a,c){if(1&a&&(C.TgZ(0,"th",30),C._uU(1),C.qZA()),2&a){const h=C.oxw().$implicit;C.xp6(1),C.Oqu(h)}}function d(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit,x=C.oxw().$implicit,We=C.oxw();C.xp6(1),C.hij(" ",We.getValue(h.formData,x)," ")}}function l(a,c){1&a&&(C.ynx(0,35),C.YNc(1,o,2,1,"th",9),C.YNc(2,d,2,1,"td",6),C.BQk()),2&a&&C.s9C("matColumnDef",c.$implicit)}function s(a,c){1&a&&C._UZ(0,"tr",36)}function i(a,c){if(1&a&&C._UZ(0,"tr",37),2&a){const h=c.$implicit,x=C.oxw();C.ekj("cursor-pointer",!x.disableRouting),C.Q6J("perunWebAppsMiddleClickRouterLink",x.selectApplication(h))("routerLink",x.selectApplication(h))}}function t(a,c){1&a&&(C.TgZ(0,"perun-web-apps-alert",38),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.Q6J("alert_type","warn"),C.xp6(1),C.hij(" ",C.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let n=(()=>{class a{constructor(h,x,We){this.authResolver=h,this.tableConfigService=x,this.dynamicPaginatingService=We,this.displayedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=b.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){var h,x,We,At;this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ht=>"id"!==Ht)),this.dataSource=new w.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),null!==(x=null===(h=this.member)||void 0===h?void 0:h.userId)&&void 0!==x?x:null,null!==(At=null===(We=this.group)||void 0===We?void 0:We.id)&&void 0!==At?At:null,this.getVoId()),this.dataSource.loading$.subscribe(Ht=>{if(Ht||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(Ut=>!this.parsedColumns.includes(Ut)),this.parsedColumns=[];const lt=this.dataSource.getData()[0];lt&&this.parseColumns(lt.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){var h,x,We,At;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),null!==(x=null===(h=this.member)||void 0===h?void 0:h.userId)&&void 0!==x?x:null,null!==(At=null===(We=this.group)||void 0===We?void 0:We.id)&&void 0!==At?At:null,this.getVoId(),!0)}exportData(h){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),h)}selectApplication(h){return this.disableRouting?null:this.group?["/organizations",h.vo.id,"groups",this.group.id,"applications",h.id]:this.member?["/organizations",h.vo.id,"members",this.member.id,"applications",h.id]:["/organizations",h.vo.id,"applications",h.id]}getExportDataForColumn(h,x){var We,At,Ht,lt;switch(x){case"id":return h.id.toString();case"voId":return h.vo.id.toString();case"voName":return h.vo.name;case"groupId":return null!==(At=null===(We=h.group)||void 0===We?void 0:We.id.toString())&&void 0!==At?At:"";case"groupName":return null!==(lt=null===(Ht=h.group)||void 0===Ht?void 0:Ht.name)&&void 0!==lt?lt:"";case"type":return h.type;case"fedInfo":return h.fedInfo;case"formData":return this.stringify(h.formData);case"state":return h.state;case"extSourceName":return h.extSourceName;case"extSourceType":return h.extSourceType;case"user":return h.user?(0,b.bD)(h.user):"";case"createdBy":return h.createdBy;case"createdAt":return h.createdAt;case"modifiedBy":return h.modifiedBy;case"modifiedAt":return h.modifiedAt;default:return h[x]}}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(h){const x=h.lastIndexOf("/CN=");if(-1!==x){const We=h.slice(x+4,h.length).replace("/unstructuredName="," ");return-1!==We.lastIndexOf("\\")?h.slice(h.lastIndexOf("=")+1,h.length):We}return h}yearAgo(){const h=new Date;return h.setDate(h.getDate()-365),h}dateToString(h){return(0,E.p6)(h,"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(h){const x=At=>Object.entries(At).reduce((Ht,[lt,Ut])=>Ht[lt]instanceof Object?Ht[lt]=x(Ht[lt]):(null==Ut||"null"===Ut||0===Ut.length||(Ht[lt]=Ut),Ht),{});let We=JSON.stringify(x(h));return We=We.replace("{","["),We=We.replace("}","]"),We}getFormDataString(h){return this.stringify(h.formItem)}parseColumns(h){h.forEach(x=>{this.displayedColumns.includes(x.shortname)||this.displayedColumns.push(x.shortname),this.parsedColumns.includes(x.shortname)||this.parsedColumns.push(x.shortname)})}getValue(h,x){var We;const At=h.filter(Ht=>Ht.shortname===x);return 0===At.length?"":null!==(We=At[0].value)&&void 0!==We?We:At[0].prefilledValue}}return a.\u0275fac=function(h){return new(h||a)(C.Y36(w.x4),C.Y36(O.dB),C.Y36(w.ly))},a.\u0275cmp=C.Xpm({type:a,selectors:[["app-applications-dynamic-list"]],viewQuery:function(h,x){if(1&h&&(C.Gf(b.l9,7),C.Gf(_.YE,5)),2&h){let We;C.iGM(We=C.CRH())&&(x.child=We.first),C.iGM(We=C.CRH())&&(x.sort=We.first)}},inputs:{displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",refreshTable:"refreshTable"},features:[C.TTD],decls:55,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["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(h,x){1&h&&(C.TgZ(0,"div",0),C.TgZ(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportData",function(At){return x.exportData(At)}),C.YNc(2,ee,2,0,"div",2),C.ALo(3,"async"),C.TgZ(4,"table",3),C.ynx(5,4),C.YNc(6,ce,3,3,"th",5),C.YNc(7,le,2,1,"td",6),C.BQk(),C.ynx(8,7),C.YNc(9,Pe,3,3,"th",5),C.YNc(10,Fe,3,4,"td",6),C.BQk(),C.ynx(11,8),C.YNc(12,ze,3,3,"th",9),C.YNc(13,ae,2,1,"td",6),C.BQk(),C.ynx(14,10),C.YNc(15,Ue,3,3,"th",9),C.YNc(16,ve,2,1,"td",6),C.BQk(),C.ynx(17,11),C.YNc(18,He,3,3,"th",9),C.YNc(19,z,2,1,"td",6),C.BQk(),C.ynx(20,12),C.YNc(21,I,3,3,"th",9),C.YNc(22,me,2,1,"td",6),C.BQk(),C.ynx(23,13),C.YNc(24,Ae,3,3,"th",5),C.YNc(25,Me,2,1,"td",6),C.BQk(),C.ynx(26,14),C.YNc(27,pe,3,3,"th",5),C.YNc(28,we,3,3,"td",6),C.BQk(),C.ynx(29,15),C.YNc(30,$e,3,3,"th",9),C.YNc(31,Je,2,1,"td",6),C.BQk(),C.ynx(32,16),C.YNc(33,nt,3,3,"th",9),C.YNc(34,ke,2,1,"td",6),C.BQk(),C.ynx(35,17),C.YNc(36,H,3,3,"th",5),C.YNc(37,R,4,2,"td",6),C.BQk(),C.ynx(38,18),C.YNc(39,V,3,3,"th",9),C.YNc(40,Q,2,1,"td",6),C.BQk(),C.ynx(41,19),C.YNc(42,Se,3,3,"th",5),C.YNc(43,je,2,1,"td",6),C.BQk(),C.ynx(44,20),C.YNc(45,Ye,3,3,"th",9),C.YNc(46,ye,3,4,"td",6),C.BQk(),C.ynx(47,21),C.YNc(48,re,3,3,"th",9),C.YNc(49,r,2,1,"td",6),C.BQk(),C.YNc(50,l,3,1,"ng-container",22),C.YNc(51,s,1,0,"tr",23),C.YNc(52,i,1,4,"tr",24),C.qZA(),C.qZA(),C.qZA(),C.YNc(53,t,3,4,"perun-web-apps-alert",25),C.ALo(54,"async")),2&h&&(C.Q6J("hidden",0===x.dataSource.allObjectCount),C.xp6(1),C.Q6J("dataLength",x.dataSource.allObjectCount)("pageSizeOptions",x.pageSizeOptions)("tableId",x.tableId),C.xp6(1),C.Q6J("ngIf",C.lcZ(3,10,x.dataSource.loading$)),C.xp6(2),C.Q6J("dataSource",x.dataSource),C.xp6(46),C.Q6J("ngForOf",x.parsedColumns),C.xp6(1),C.Q6J("matHeaderRowDef",x.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",x.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===x.dataSource.allObjectCount&&!1===C.lcZ(54,12,x.dataSource.loading$)))},directives:[S.l,E.O5,m.$g,B.BZ,_.YE,B.w1,B.fO,B.ge,_.nU,B.Dz,B.ev,Ne,E.sg,B.as,B.XQ,B.nj,B.Gk,ue.YH,Oe.rH,T.w],pipes:[E.Ov,Z.X$,E.uU,W.h,Y.d],styles:[""]}),a})()},55857:(Xe,_e,p)=>{"use strict";p.d(_e,{W:()=>Ne});var e=p(32105),b=p(10036),_=p(36908),w=p(93075),g=p(69808),A=p(5e3),E=p(96214),C=p(47423),O=p(67322),S=p(74107),m=p(90508),B=p(64901),L=p(39798),J=p(9146),ie=p(51062);function ge(ue,Oe){if(1&ue){const T=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){return A.CHM(T),A.oxw().showAllDetails=!0}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&ue&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function X(ue,Oe){if(1&ue){const T=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){return A.CHM(T),A.oxw().showAllDetails=!1}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&ue&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let Ne=(()=>{class ue{constructor(T,Z,W){this.registrarManager=T,this.guiAuthResolver=Z,this.entityStorageService=W,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.displayedColumns=["id","createdAt","type","state","createdBy","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=b.Af,this.tableId=b.gB,this.refresh=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new w.NI((0,g.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new w.NI((0,g.p6)(new Date,"yyyy-MM-dd","en-GB"))}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 T=new Date;return T.setDate(T.getDate()-365),T}applyFilter(T){this.filterValue=T}}return ue.id="GroupApplicationsComponent",ue.\u0275fac=function(T){return new(T||ue)(A.Y36(e.tk),A.Y36(_.x4),A.Y36(_.fb))},ue.\u0275cmp=A.Xpm({type:ue,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(T,Z){2&T&&A.ekj("router-component",Z.true)},decls:34,vars:38,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","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","refreshTable","group"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(T,Z){1&T&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return Z.refresh=!Z.refresh}),A.qZA(),A.YNc(5,ge,3,3,"button",2),A.YNc(6,X,3,3,"button",2),A.TgZ(7,"mat-form-field",3),A.TgZ(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"mat-select",4),A.NdJ("selectionChange",function(){return Z.select()})("valueChange",function(Y){return Z.state=Y}),A.TgZ(12,"mat-option",5),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"mat-option",6),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",7),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-option",8),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.TgZ(24,"mat-option",9),A._uU(25),A.ALo(26,"translate"),A.qZA(),A.TgZ(27,"mat-option",10),A._uU(28),A.ALo(29,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(30,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(Y){return Z.applyFilter(Y)}),A.qZA(),A.TgZ(31,"perun-web-apps-date-range",12),A.NdJ("datePicker",function(){return Z.select()}),A.qZA(),A.qZA(),A.TgZ(32,"div"),A._UZ(33,"app-applications-dynamic-list",13),A.qZA()),2&T&&(A.xp6(1),A.Oqu(A.lcZ(2,22,"VO_DETAIL.APPLICATION.TITLE")),A.xp6(4),A.Q6J("ngIf",!Z.showAllDetails),A.xp6(1),A.Q6J("ngIf",Z.showAllDetails),A.xp6(3),A.Oqu(A.lcZ(10,24,"APPLICATIONS_LIST.STATE")),A.xp6(2),A.Q6J("value",Z.state),A.xp6(2),A.Oqu(A.lcZ(14,26,"VO_DETAIL.APPLICATION.SELECTION_ALL")),A.xp6(3),A.Oqu(A.lcZ(17,28,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),A.xp6(3),A.Oqu(A.lcZ(20,30,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),A.xp6(3),A.Oqu(A.lcZ(23,32,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),A.xp6(3),A.Oqu(A.lcZ(26,34,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),A.xp6(3),A.Oqu(A.lcZ(29,36,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),A.xp6(2),A.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),A.xp6(1),A.Q6J("endDate",Z.endDate)("startDate",Z.startDate),A.xp6(2),A.Q6J("tableId",Z.showAllDetails?Z.detailTableId:Z.tableId)("searchString",Z.filterValue)("displayedColumns",Z.showAllDetails?Z.detailedDisplayedColumns:Z.displayedColumns)("states",Z.currentStates)("dateFrom",Z.startDate.value)("dateTo",Z.endDate.value)("refreshTable",Z.refresh)("group",Z.group))},directives:[E.t,g.O5,C.lW,O.KE,O.hX,S.gD,m.ey,B.P,L.S,J.S],pipes:[ie.X$],styles:[""]}),ue})()},75234:(Xe,_e,p)=>{"use strict";p.d(_e,{y:()=>I});var e=p(20449),b=p(36908),_=p(64080),w=p(58655),g=p(53455),A=p(32105),E=p(10036),C=p(9244),O=p(74414),S=p(93075),m=p(5e3),B=p(48966),L=p(69808),J=p(98380),ie=p(96214),ge=p(29772),X=p(47423),Ne=p(67322),ue=p(74107),Oe=p(90508),T=p(64901),Z=p(20773),W=p(4811),Y=p(51062);let ee=(()=>{class me{transform(Me,pe){return!!("members"===Me.name||(0,C.bx)(Me)||"add"===pe&&(0,C.jh)(Me.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return me.\u0275fac=function(Me){return new(Me||me)},me.\u0275pipe=m.Yjl({name:"groupMembersActionButtonDisabled",type:me,pure:!0}),me})(),ce=(()=>{class me{transform(Me,pe){return"members"===Me.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,C.bx)(Me)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===pe&&(0,C.jh)(Me.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return me.\u0275fac=function(Me){return new(Me||me)},me.\u0275pipe=m.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:me,pure:!0}),me})();var le=p(20551);function Pe(me,Ae){1&me&&(m.TgZ(0,"perun-web-apps-alert",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&me&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function Fe(me,Ae){if(1&me){const Me=m.EpF();m.TgZ(0,"button",15),m.NdJ("click",function(){return m.CHM(Me),m.oxw().onAddMember()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&me){const Me=m.oxw();m.Q6J("disabled",m.xi3(1,2,Me.group,"add")),m.xp6(2),m.hij(" ",m.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ze(me,Ae){if(1&me){const Me=m.EpF();m.TgZ(0,"button",16),m.NdJ("click",function(){return m.CHM(Me),m.oxw().onInviteMember()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&me){const Me=m.oxw();m.Q6J("disabled",m.lcZ(1,2,Me.group)),m.xp6(2),m.hij(" ",m.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function ae(me,Ae){if(1&me){const Me=m.EpF();m.TgZ(0,"button",17),m.NdJ("click",function(){return m.CHM(Me),m.oxw().onRemoveMembers()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&me){const Me=m.oxw();m.Q6J("disabled",Me.selection.isEmpty()||m.lcZ(1,2,Me.group)),m.xp6(2),m.hij(" ",m.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Ue(me,Ae){if(1&me&&(m.TgZ(0,"mat-option",18),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&me){const Me=Ae.$implicit;m.Q6J("value",Me),m.xp6(1),m.Oqu(m.lcZ(2,2,Me))}}function ve(me,Ae){if(1&me&&(m.TgZ(0,"mat-option",18),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&me){const Me=Ae.$implicit;m.Q6J("value",Me),m.xp6(1),m.Oqu(m.lcZ(2,2,Me))}}function He(me,Ae){1&me&&m._UZ(0,"mat-spinner",19)}function z(me,Ae){if(1&me&&m._UZ(0,"perun-web-apps-members-dynamic-list",20),2&me){const Me=m.oxw();m.Q6J("attrNames",Me.memberAttrNames)("groupId",Me.group.id)("tableId",Me.tableId)("displayedColumns",Me.displayedColumns)("searchString",Me.searchString)("updateTable",Me.updateTable)("selectedGroupStatuses",Me.selectedGroupStatuses)("selectedStatuses",Me.selectedStatuses)("selection",Me.selection)("voId",Me.group.voId)}}let I=(()=>{class me{constructor(Me,pe,we,$e,Je,nt,ke,H){this.groupService=Me,this.dialog=pe,this.guiAuthResolver=we,this.storeService=$e,this.attributesManager=Je,this.apiRequest=nt,this.notificator=ke,this.entityStorageService=H,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=E.dI,this.memberAttrNames=[_.r.MEMBER_DEF_ORGANIZATION,_.r.MEMBER_DEF_MAIL,_.r.USER_DEF_ORGANIZATION,_.r.USER_DEF_PREFERRED_MAIL,_.r.MEMBER_DEF_EXPIRATION,_.r.MEMBER_DEF_GROUP_EXPIRATION],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new S.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new S.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[_.r.GROUP_SYNC_ENABLED,_.r.GROUP_LAST_SYNC_STATE,_.r.GROUP_LAST_SYNC_TIMESTAMP,_.r.GROUP_STRUCTURE_SYNC_ENABLED,_.r.GROUP_LAST_STRUCTURE_SYNC_STATE,_.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,_.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))}loadPage(Me){this.groupService.getRichGroupByIdWithAttributesByNames(Me,this.groupAttrNames).subscribe(pe=>{this.group=pe,this.synchEnabled=(0,C.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])}onSearchByString(Me){this.searchString=Me,this.selection.clear()}onAddMember(){const Me=(0,C.kZ)();Me.width="1000px",Me.data={voId:this.group.voId,group:this.group,entityId:this.group.id,manualAddingBlocked:this.blockManualMemberAdding,theme:"group-theme",type:"group"},this.dialog.open(w.o,Me).afterClosed().subscribe(we=>{we&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const Me=(0,C.kZ)();Me.width="450px",Me.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(g.X,Me).afterClosed().subscribe(we=>{we&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const Me=(0,C.kZ)();Me.width="650px",Me.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(O.R,Me)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const Me=this.statuses.value;return Me?`${Me[0]} ${Me.length>1?"(+"+(Me.length-1).toString()+" "+(2===Me.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(Me){return new Promise(pe=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(Me,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(we=>{this.blockManualMemberAdding=null!==we.value,pe()},we=>{const $e=we.error;"PrivilegeException"!==$e.name&&this.notificator.showError($e.name),pe()})})}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}}return me.id="GroupMembersComponent",me.\u0275fac=function(Me){return new(Me||me)(m.Y36(A.ff),m.Y36(B.uw),m.Y36(b.x4),m.Y36(b.d6),m.Y36(A.H8),m.Y36(b.F5),m.Y36(b.V6),m.Y36(b.fb))},me.\u0275cmp=m.Xpm({type:me,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(Me,pe){2&Me&&m.ekj("router-component",pe.true)},decls:42,vars:55,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 action-button","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",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","action-button",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"]],template:function(Me,pe){1&Me&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.YNc(3,Pe,3,3,"perun-web-apps-alert",1),m.TgZ(4,"div",2),m.TgZ(5,"perun-web-apps-refresh-button",3),m.NdJ("click",function(){return pe.refreshTable()}),m.qZA(),m.TgZ(6,"span",4),m.ALo(7,"groupMembersActionButtonDisabled"),m.ALo(8,"translate"),m.ALo(9,"groupMembersActionButtonDisabledTooltip"),m.YNc(10,Fe,4,7,"button",5),m.qZA(),m.TgZ(11,"span",4),m.ALo(12,"groupMembersActionButtonDisabled"),m.ALo(13,"translate"),m.ALo(14,"groupMembersActionButtonDisabledTooltip"),m.YNc(15,ze,4,6,"button",6),m.qZA(),m.TgZ(16,"span",4),m.ALo(17,"groupMembersActionButtonDisabled"),m.ALo(18,"translate"),m.ALo(19,"groupMembersActionButtonDisabledTooltip"),m.YNc(20,ae,4,6,"button",7),m.qZA(),m.TgZ(21,"mat-form-field",8),m.TgZ(22,"mat-label"),m._uU(23),m.ALo(24,"translate"),m.qZA(),m.TgZ(25,"mat-select",9),m.NdJ("closed",function(){return pe.changeVoStatuses()}),m.TgZ(26,"mat-select-trigger"),m._uU(27),m.ALo(28,"memberStatus"),m.qZA(),m.YNc(29,Ue,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(30,"mat-form-field",8),m.TgZ(31,"mat-label"),m._uU(32),m.ALo(33,"translate"),m.qZA(),m.TgZ(34,"mat-select",9),m.NdJ("closed",function(){return pe.changeGroupStatuses()}),m.TgZ(35,"mat-select-trigger"),m._uU(36),m.ALo(37,"memberStatus"),m.qZA(),m.YNc(38,ve,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(39,"perun-web-apps-debounce-filter",11),m.NdJ("filter",function($e){return pe.onSearchByString($e)}),m.qZA(),m.qZA(),m.YNc(40,He,1,0,"mat-spinner",12),m.YNc(41,z,1,10,"perun-web-apps-members-dynamic-list",13)),2&Me&&(m.xp6(1),m.Oqu(m.lcZ(2,25,"GROUP_DETAIL.MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",pe.synchEnabled),m.xp6(3),m.s9C("matTooltip",m.lcZ(8,30,m.xi3(9,32,pe.group,"add"))),m.Q6J("matTooltipDisabled",!m.xi3(7,27,pe.group,"add"))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",pe.addAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(13,37,m.lcZ(14,39,pe.group))),m.Q6J("matTooltipDisabled",!m.lcZ(12,35,pe.group))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",pe.inviteAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(18,43,m.lcZ(19,45,pe.group))),m.Q6J("matTooltipDisabled",!m.lcZ(17,41,pe.group))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",pe.removeAuth),m.xp6(3),m.Oqu(m.lcZ(24,47,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),m.xp6(2),m.Q6J("formControl",pe.statuses),m.xp6(2),m.hij(" ",m.lcZ(28,49,pe.displaySelectedStatuses())," "),m.xp6(2),m.Q6J("ngForOf",pe.statusList),m.xp6(3),m.Oqu(m.lcZ(33,51,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),m.xp6(2),m.Q6J("formControl",pe.groupStatuses),m.xp6(2),m.hij(" ",m.lcZ(37,53,pe.displaySelectedGroupStatuses())," "),m.xp6(2),m.Q6J("ngForOf",pe.groupStatusList),m.xp6(1),m.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),m.xp6(1),m.Q6J("ngIf",pe.loading),m.xp6(1),m.Q6J("ngIf",!pe.loading))},directives:[L.O5,J.w,ie.t,ge.gM,X.lW,Ne.KE,Ne.hX,ue.gD,S.JJ,S.oH,ue.$L,L.sg,Oe.ey,T.P,Z.$g,W.m],pipes:[Y.X$,ee,ce,le.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}"]}),me})()},37240:(Xe,_e,p)=>{"use strict";p.d(_e,{q:()=>he});var e=p(20449),b=p(32105),_=p(10036),w=p(48966),g=p(36908),E=(p(387),p(5e3)),C=p(51062),O=p(69808),S=p(20773),m=p(92081),B=p(64901),L=p(62109),J=p(32368),ie=p(93075),ge=p(47423),X=p(29772);const Ne=["list"],ue=["stepper"];function Oe(P,R){1&P&&E._UZ(0,"mat-spinner",4)}function T(P,R){1&P&&(E._uU(0),E.ALo(1,"translate")),2&P&&E.Oqu(E.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function Z(P,R){1&P&&(E._uU(0),E.ALo(1,"translate")),2&P&&E.Oqu(E.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const W=function(){return["select","id","name","facility","tags","description"]};function Y(P,R){if(1&P){const V=E.EpF();E.TgZ(0,"div",5),E.TgZ(1,"mat-stepper",6,7),E.TgZ(3,"mat-step",8),E.YNc(4,T,2,3,"ng-template",9),E.TgZ(5,"perun-web-apps-debounce-filter",10),E.NdJ("filter",function(Se){return E.CHM(V),E.oxw().applyFilter(Se)}),E.ALo(6,"translate"),E.qZA(),E._UZ(7,"perun-web-apps-resources-list",11,12),E.qZA(),E.TgZ(9,"mat-step"),E.YNc(10,Z,2,3,"ng-template",9),E.TgZ(11,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(V),E.oxw().changeSubgroupsMessage()})("ngModelChange",function(Se){return E.CHM(V),E.oxw().autoAssignSubgroups=Se}),E._uU(12),E.ALo(13,"translate"),E.qZA(),E.TgZ(14,"div",14),E._UZ(15,"i",15),E.qZA(),E.TgZ(16,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(V),E.oxw().changeInactiveMessage()})("ngModelChange",function(Se){return E.CHM(V),E.oxw().asActive=Se}),E._uU(17),E.ALo(18,"translate"),E.qZA(),E.TgZ(19,"div",14),E._uU(20),E.qZA(),E.TgZ(21,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(V),E.oxw().changeAsyncMessage()})("ngModelChange",function(Se){return E.CHM(V),E.oxw().async=Se}),E._uU(22),E.ALo(23,"translate"),E.qZA(),E.TgZ(24,"div",14),E._uU(25),E.qZA(),E.qZA(),E.qZA(),E.qZA()}if(2&P){const V=E.MAs(8),Q=E.oxw();E.xp6(1),E.Q6J("linear",!0),E.xp6(2),E.Q6J("completed",0!==Q.selection.selected.length&&void 0!==V&&V.addAuth),E.xp6(2),E.s9C("placeholder",E.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),E.xp6(2),E.Q6J("filterValue",Q.filterValue)("groupToResource",Q.data.group)("disableRouting",!0)("resources",Q.resources)("selection",Q.selection)("displayedColumns",E.DdM(27,W))("tableId",Q.tableId),E.xp6(4),E.Q6J("ngModel",Q.autoAssignSubgroups),E.xp6(1),E.hij(" ",E.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),E.xp6(3),E.Q6J("innerHTML",Q.autoAssignHint,E.oJD),E.xp6(1),E.Q6J("ngModel",Q.asActive),E.xp6(1),E.hij(" ",E.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),E.xp6(3),E.hij(" ",Q.asActiveHint," "),E.xp6(1),E.Q6J("ngModel",Q.async),E.xp6(1),E.hij(" ",E.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),E.xp6(3),E.hij(" ",Q.asyncHint," ")}}function ee(P,R){if(1&P){const V=E.EpF();E.TgZ(0,"button",22),E.NdJ("click",function(){return E.CHM(V),E.oxw(2).stepperPrevious()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&P&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function ce(P,R){if(1&P){const V=E.EpF();E.TgZ(0,"button",23),E.NdJ("click",function(){return E.CHM(V),E.oxw(2).stepperNext()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&P){const V=E.oxw(2);E.ekj("ml-2",void 0!==V.stepper&&0!==V.stepper.selectedIndex)("ml-auto",!(void 0!==V.stepper&&0!==V.stepper.selectedIndex)),E.Q6J("disabled",0===V.selection.selected.length||void 0!==V.list&&!V.list.addAuth),E.xp6(1),E.hij(" ",E.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function le(P,R){if(1&P){const V=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){return E.CHM(V),E.oxw(2).onSubmit()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&P){const V=E.oxw(2);E.Q6J("disabled",0===V.selection.selected.length||V.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function Pe(P,R){if(1&P){const V=E.EpF();E.TgZ(0,"div",16),E.TgZ(1,"button",17),E.NdJ("click",function(){return E.CHM(V),E.oxw().onCancel()}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ee,3,3,"button",18),E.YNc(5,ce,3,8,"button",19),E.TgZ(6,"span",20),E.ALo(7,"translate"),E.YNc(8,le,3,4,"button",21),E.qZA(),E.qZA()}if(2&P){const V=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),E.xp6(2),E.Q6J("ngIf",void 0!==V.stepper&&0!==V.stepper.selectedIndex),E.xp6(1),E.Q6J("ngIf",void 0!==V.stepper&&V.stepper.selectedIndex!==V.stepper._steps.length-1),E.xp6(1),E.s9C("matTooltip",E.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),E.Q6J("matTooltipDisabled",void 0===V.list||V.list.addAuth),E.xp6(2),E.Q6J("ngIf",void 0!==V.stepper&&V.stepper.selectedIndex===V.stepper._steps.length-1)}}let Fe=(()=>{class P{constructor(V,Q,Se,je,Ye,ye,re){this.dialogRef=V,this.data=Q,this.notificator=Se,this.translate=je,this.resourcesManager=Ye,this.guiAuthResolver=ye,this.cd=re,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=_.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(V=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(Q=>{for(const Se of V)-1===Q.findIndex(je=>je.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(V){this.filterValue=V}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const V=this.selection.selected.map(Q=>Q.id);this.resourcesManager.assignGroupToResources(this.data.group.id,V,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(Q=>{this.notificator.showSuccess(Q),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 P.\u0275fac=function(V){return new(V||P)(E.Y36(w.so),E.Y36(w.WI),E.Y36(g.V6),E.Y36(C.sK),E.Y36(b.xk),E.Y36(g.x4),E.Y36(E.sBO))},P.\u0275cmp=E.Xpm({type:P,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(V,Q){if(1&V&&(E.Gf(Ne,5),E.Gf(ue,5)),2&V){let Se;E.iGM(Se=E.CRH())&&(Q.list=Se.first),E.iGM(Se=E.CRH())&&(Q.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(V,Q){1&V&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,Oe,1,0,"mat-spinner",1),E.YNc(5,Y,26,28,"div",2),E.YNc(6,Pe,9,10,"div",3),E.qZA()),2&V&&(E.Tol(Q.theme),E.xp6(2),E.Oqu(E.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),E.xp6(2),E.Q6J("ngIf",Q.loading),E.xp6(1),E.Q6J("ngIf",!Q.loading),E.xp6(1),E.Q6J("ngIf",!Q.loading&&void 0!==Q.stepper))},directives:[w.uh,O.O5,S.$g,w.xY,m.Vq,m.C0,m.VY,B.P,L.C,J.Rr,ie.JJ,ie.On,w.H8,ge.lW,X.gM],pipes:[C.X$],styles:[""]}),P})();var ze=p(32075);function ae(P,R){1&P&&E._UZ(0,"mat-spinner",4)}function Ue(P,R){1&P&&E._UZ(0,"th",13)}function ve(P,R){if(1&P&&(E.TgZ(0,"td",14),E._uU(1),E.qZA()),2&P){const V=R.$implicit;E.xp6(1),E.Oqu(V.name)}}function He(P,R){1&P&&E._UZ(0,"tr",15)}function z(P,R){1&P&&E._UZ(0,"tr",16)}function I(P,R){if(1&P&&(E.TgZ(0,"div",5),E.TgZ(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",6),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"table",7),E.ynx(8,8),E.YNc(9,Ue,1,0,"th",9),E.YNc(10,ve,2,1,"td",10),E.BQk(),E.YNc(11,He,1,0,"tr",11),E.YNc(12,z,1,0,"tr",12),E.qZA(),E.qZA()),2&P){const V=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),E.xp6(3),E.hij(" ",E.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),E.xp6(2),E.Q6J("dataSource",V.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",V.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",V.displayedColumns)}}function me(P,R){if(1&P){const V=E.EpF();E.TgZ(0,"div",17),E.TgZ(1,"button",18),E.NdJ("click",function(){return E.CHM(V),E.oxw().onCancel()}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",19),E.NdJ("click",function(){return E.CHM(V),E.oxw().onSubmit()}),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.qZA()}if(2&P){const V=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),E.xp6(2),E.Q6J("disabled",V.loading),E.xp6(1),E.hij(" ",E.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let Ae=(()=>{class P{constructor(V,Q,Se,je,Ye){this.dialogRef=V,this.data=Q,this.notificator=Se,this.translate=je,this.resourcesManager=Ye,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new ze.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const V=this.data.resources.map(Q=>Q.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,V).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(Q=>{this.loading=!1,this.notificator.showSuccess(Q),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return P.\u0275fac=function(V){return new(V||P)(E.Y36(w.so),E.Y36(w.WI),E.Y36(g.V6),E.Y36(C.sK),E.Y36(b.xk))},P.\u0275cmp=E.Xpm({type:P,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(V,Q){1&V&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ae,1,0,"mat-spinner",1),E.YNc(5,I,13,9,"div",2),E.YNc(6,me,7,7,"div",3),E.qZA()),2&V&&(E.Tol(Q.data.theme),E.xp6(2),E.Oqu(E.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),E.xp6(2),E.Q6J("ngIf",Q.loading),E.xp6(1),E.Q6J("ngIf",!Q.loading),E.xp6(1),E.Q6J("ngIf",!Q.loading))},directives:[w.uh,O.O5,S.$g,w.xY,ze.BZ,ze.w1,ze.fO,ze.ge,ze.Dz,ze.ev,ze.as,ze.XQ,ze.nj,ze.Gk,w.H8,ge.lW],pipes:[C.X$],styles:[""]}),P})();var Me=p(9244),pe=p(96214),we=p(7434);const $e=["list"];function Je(P,R){if(1&P){const V=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){return E.CHM(V),E.oxw().addResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&P&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function nt(P,R){1&P&&E._UZ(0,"mat-spinner",9)}const ke=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function H(P,R){if(1&P){const V=E.EpF();E.TgZ(0,"perun-web-apps-resources-list",10,11),E.NdJ("refreshTable",function(){return E.CHM(V),E.oxw().refreshTable()}),E.qZA()}if(2&P){const V=E.oxw();E.Q6J("disableRouting",!V.routingAuth)("filterValue",V.filterValue)("resources",V.resources)("routingVo",!0)("displayedColumns",E.DdM(10,ke))("selection",V.selected)("groupId",V.group.id)("groupToResource",V.group)("resourcesToDisableCheckbox",V.resourcesToDisable)("tableId",V.tableId)}}let he=(()=>{class P{constructor(V,Q,Se,je,Ye){this.resourcesManager=V,this.groupService=Q,this.dialog=Se,this.guiAuthResolver=je,this.entityStorageService=Ye,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=_.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(V=>{this.resources=V.map(Q=>{const Se=Q.enrichedResource.resource;return Se.facility=Q.facility,Se.status=Q.status,Se.resourceTags=Q.resourceTags,Se.failureCause=Q.failureCause,Se.sourceGroupId=Q.sourceGroupId,Se}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(Q=>null!==Q.sourceGroupId).map(Q=>Q.id)),this.setAuthorization(),this.loading=!1})}applyFilter(V){this.filterValue=V}addResource(){const V=(0,Me.kZ)();V.width="1000px",V.data={theme:"group-theme",group:this.group},this.dialog.open(Fe,V).afterClosed().subscribe(Se=>{Se&&this.refreshTable()})}removeResource(){const V=(0,Me.kZ)();V.width="450px",V.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(Ae,V).afterClosed().subscribe(Se=>{Se&&(this.selected.clear(),this.refreshTable())})}}return P.id="GroupResourcesComponent",P.\u0275fac=function(V){return new(V||P)(E.Y36(b.xk),E.Y36(b.ff),E.Y36(w.uw),E.Y36(g.x4),E.Y36(g.fb))},P.\u0275cmp=E.Xpm({type:P,selectors:[["app-group-resources"]],viewQuery:function(V,Q){if(1&V&&E.Gf($e,5),2&V){let Se;E.iGM(Se=E.CRH())&&(Q.list=Se.first)}},hostVars:2,hostBindings:function(V,Q){2&V&&E.ekj("router-component",Q.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(V,Q){1&V&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return Q.refreshTable()}),E.qZA(),E.YNc(5,Je,3,3,"button",2),E.TgZ(6,"span",3),E.ALo(7,"translate"),E.TgZ(8,"button",4),E.NdJ("click",function(){return Q.removeResource()}),E._uU(9),E.ALo(10,"translate"),E.qZA(),E.qZA(),E.TgZ(11,"perun-web-apps-immediate-filter",5),E.NdJ("filter",function(je){return Q.applyFilter(je)}),E.qZA(),E.YNc(12,nt,1,0,"mat-spinner",6),E.YNc(13,H,2,11,"perun-web-apps-resources-list",7),E.qZA()),2&V&&(E.xp6(2),E.Oqu(E.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),E.xp6(3),E.Q6J("ngIf",Q.addAuth),E.xp6(1),E.s9C("matTooltip",E.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),E.Q6J("matTooltipDisabled",0===Q.selected.selected.length||void 0!==Q.list&&Q.list.removeAuth),E.xp6(2),E.Q6J("disabled",0===Q.selected.selected.length||void 0!==Q.list&&!Q.list.removeAuth),E.xp6(1),E.hij(" ",E.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),E.xp6(2),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",Q.loading),E.xp6(1),E.Q6J("ngIf",Q.resources&&!Q.loading))},directives:[pe.t,O.O5,ge.lW,X.gM,we.L,S.$g,L.C],pipes:[C.X$],styles:[""]}),P})()},14336:(Xe,_e,p)=>{"use strict";p.d(_e,{Z:()=>Ae});var e=p(36908),b=p(51076),_=p(83491),w=p(95502),g=p(1186),A=p(32105),E=p(9244),C=p(5e3),O=p(48966),S=p(51062),m=p(11735),B=p(69808),L=p(20773),J=p(25245),ie=p(29772),ge=p(32368),X=p(93075),Ne=p(47423),ue=p(4834),Oe=p(96214),T=p(98380),Z=p(157);const W=["autoRegToggle"];function Y(Me,pe){1&Me&&C._UZ(0,"mat-spinner",3)}function ee(Me,pe){if(1&Me&&(C.TgZ(0,"span"),C._uU(1," , "),C.TgZ(2,"mat-icon",22),C._uU(3,"nat"),C.qZA(),C._uU(4),C.ALo(5,"translate"),C.ALo(6,"translate"),C.qZA()),2&Me){const we=C.oxw(3);C.xp6(4),C.hij(" ",we.applicationForm.automaticApprovalEmbedded?C.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function ce(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"div"),C.TgZ(1,"mat-slide-toggle",23,24),C.NdJ("change",function(){return C.CHM(we),C.oxw(3).updateAutoRegistration()}),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.qZA()}if(2&Me){const we=C.oxw(3);C.xp6(1),C.Q6J("disabled",!we.changeAutoRegistration)("ngModel",we.autoRegistrationEnabled),C.xp6(2),C.hij(" ",C.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function le(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"button",25),C.NdJ("click",function(){return C.CHM(we),C.oxw(3).settings()}),C.TgZ(1,"i",12),C._uU(2,"edit"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Me&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function Pe(Me,pe){if(1&Me&&(C.TgZ(0,"div",15),C.TgZ(1,"div",16),C.TgZ(2,"div",17),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"div"),C.TgZ(6,"span",17),C._uU(7),C.ALo(8,"translate"),C.qZA(),C._uU(9,": "),C.TgZ(10,"mat-icon",18),C._uU(11,"arrow_right_alt"),C.qZA(),C._uU(12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"mat-icon",19),C._uU(16,"restore"),C.qZA(),C._uU(17),C.ALo(18,"translate"),C.ALo(19,"translate"),C.YNc(20,ee,7,5,"span",2),C.qZA(),C.YNc(21,ce,5,5,"div",2),C.qZA(),C.TgZ(22,"div",20),C.YNc(23,le,5,3,"button",21),C.qZA(),C.qZA()),2&Me){const we=C.oxw(2);C.xp6(1),C.Q6J("ngClass",we.autoRegistrationEnabled?"w-75":"w-50"),C.xp6(2),C.AsE(" ",C.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",we.applicationForm.moduleClassName," "),C.xp6(4),C.Oqu(C.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),C.xp6(5),C.hij(" ",we.applicationForm.automaticApproval?C.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),C.xp6(5),C.hij(" ",we.applicationForm.automaticApprovalExtension?C.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),C.xp6(3),C.Q6J("ngIf",we.autoRegistrationEnabled),C.xp6(1),C.Q6J("ngIf",we.voHasEmbeddedGroupApplication),C.xp6(2),C.Q6J("ngIf",we.editAuth)}}function Fe(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"button",26),C.NdJ("click",function(){return C.CHM(we),C.oxw(2).add()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Me&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function ze(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"button",27),C.NdJ("click",function(){return C.CHM(we),C.oxw(2).save()}),C.TgZ(1,"i",12),C._uU(2,"save"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}if(2&Me){const we=C.oxw(2);C.Q6J("disabled",!we.itemsChanged),C.xp6(3),C.hij(" ",C.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ae(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"button",28),C.NdJ("click",function(){return C.CHM(we),C.oxw(2).copy()}),C.TgZ(1,"i",12),C._uU(2,"file_copy"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Me&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function Ue(Me,pe){1&Me&&(C.TgZ(0,"perun-web-apps-alert",29),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Me&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const ve=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},He=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function z(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"div"),C.YNc(1,Pe,24,21,"div",4),C._UZ(2,"mat-divider",5),C.TgZ(3,"div",6),C.TgZ(4,"perun-web-apps-refresh-button",7),C.NdJ("refresh",function(){return C.CHM(we),C.oxw().updateFormItems()}),C.qZA(),C.YNc(5,Fe,3,3,"button",8),C.YNc(6,ze,5,4,"button",9),C.YNc(7,ae,5,3,"button",10),C.TgZ(8,"button",11),C.NdJ("click",function(){return C.CHM(we),C.oxw().preview()}),C.TgZ(9,"i",12),C._uU(10,"search"),C.qZA(),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.YNc(13,Ue,3,3,"perun-web-apps-alert",13),C.TgZ(14,"app-application-form-list",14),C.NdJ("applicationFormItemsChange",function(){return C.CHM(we),C.oxw().changeItems()}),C.qZA(),C.qZA()}if(2&Me){const we=C.oxw();C.xp6(1),C.Q6J("ngIf",!we.loading),C.xp6(4),C.Q6J("ngIf",we.editAuth),C.xp6(1),C.Q6J("ngIf",we.editAuth),C.xp6(1),C.Q6J("ngIf",we.editAuth),C.xp6(4),C.hij(" ",C.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),C.xp6(2),C.Q6J("ngIf",we.editAuth),C.xp6(1),C.Q6J("applicationForm",we.applicationForm)("applicationFormItems",we.applicationFormItems)("loading",we.loading)("displayedColumns",we.editAuth?C.DdM(14,ve):C.DdM(15,He))("refreshApplicationForm",we.refreshApplicationForm)("theme","group-theme")}}function I(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"button",32),C.NdJ("click",function(){return C.CHM(we),C.oxw(2).createEmptyApplicationForm()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Me&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function me(Me,pe){if(1&Me&&(C.TgZ(0,"div"),C.TgZ(1,"perun-web-apps-alert",30),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,I,3,3,"button",31),C.qZA()),2&Me){const we=C.oxw();C.xp6(2),C.Oqu(C.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),C.xp6(2),C.Q6J("ngIf",we.createEmptyForm)}}let Ae=(()=>{class Me{constructor(we,$e,Je,nt,ke,H,he,P,R){this.registrarManager=we,this.dialog=$e,this.notificator=Je,this.translate=nt,this.apiRequest=ke,this.router=H,this.guiAuthResolver=he,this.attributesManager=P,this.entityStorageService=R,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(we=>{this.applicationForm=we,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe($e=>{this.applicationFormItems=$e,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)},we=>{const $e=we.error;"FormNotExistsException"===$e.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError($e)})}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 we=(0,E.kZ)();we.width="500px",we.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(b.J,we).afterClosed().subscribe(Je=>{Je&&(this.applicationFormItems=Object.assign([],Je[0]),we=(0,E.kZ)(),we.width="600px",we.height="600px",we.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Je[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(_._,we),this.itemsChanged=!0)})}copy(){const we=(0,E.kZ)();we.width="500px",we.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.W,we).afterClosed().subscribe(Je=>{Je&&this.updateFormItems()})}settings(){const we=(0,E.kZ)();we.width="400px",we.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(g.E,we).afterClosed().subscribe(Je=>{Je&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(nt=>{this.notificator.showSuccess(nt)}),this.applicationForm=Je)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(we=>{this.applicationFormItems=we,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let we=0;for(const $e of this.applicationFormItems)$e.ordnum=we,$e.forDelete||we++;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($e=>{this.notificator.showSuccess($e)}),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(we=>{this.notificator.showSuccess(we)}),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(we=>{this.notificator.showSuccess(we)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return Me.id="GroupSettingsApplicationFormComponent",Me.\u0275fac=function(we){return new(we||Me)(C.Y36(A.tk),C.Y36(O.uw),C.Y36(e.V6),C.Y36(S.sK),C.Y36(e.F5),C.Y36(m.F0),C.Y36(e.x4),C.Y36(A.H8),C.Y36(e.fb))},Me.\u0275cmp=C.Xpm({type:Me,selectors:[["app-group-settings-application-form"]],viewQuery:function(we,$e){if(1&we&&C.Gf(W,5),2&we){let Je;C.iGM(Je=C.CRH())&&($e.autoRegToggle=Je.first)}},hostVars:2,hostBindings:function(we,$e){2&we&&C.ekj("router-component",$e.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-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-text-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(we,$e){1&we&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.YNc(3,Y,1,0,"mat-spinner",1),C.YNc(4,z,15,16,"div",2),C.YNc(5,me,5,4,"div",2)),2&we&&(C.xp6(1),C.hij(" ",C.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),C.xp6(2),C.Q6J("ngIf",$e.loading),C.xp6(1),C.Q6J("ngIf",!$e.noApplicationForm),C.xp6(1),C.Q6J("ngIf",!$e.loading&&$e.noApplicationForm))},directives:[B.O5,L.$g,B.mk,J.Hw,ie.gM,ge.Rr,X.JJ,X.On,Ne.lW,ue.d,Oe.t,T.w,Z.b],pipes:[S.X$],styles:[""]}),Me})()},15592:(Xe,_e,p)=>{"use strict";p.d(_e,{u:()=>z});var e=p(81889),b=p(20449),_=p(41656),w=p(9244),g=p(32105),A=p(64080),E=p(10036),C=p(87842),O=p(36908),m=(p(387),p(5e3)),B=p(48966),L=p(96214),J=p(69808),ie=p(47423),ge=p(29772),X=p(64901),Ne=p(32368),ue=p(93075),Oe=p(20773),T=p(58956),Z=p(24179),W=p(51062);const Y=["tree"],ee=["list"],ce=["toggle"];function le(I,me){if(1&I){const Ae=m.EpF();m.TgZ(0,"button",10),m.NdJ("click",function(){return m.CHM(Ae),m.oxw().onCreateGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&I&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function Pe(I,me){if(1&I){const Ae=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(Ae),m.oxw().deleteGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&I){const Ae=m.oxw();m.Q6J("disabled",0===Ae.selected.selected.length||void 0!==Ae.tree&&!Ae.tree.removeAuth||void 0!==Ae.list&&!Ae.list.removeAuth),m.xp6(1),m.hij(" ",m.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function Fe(I,me){1&I&&m._UZ(0,"mat-spinner",12)}function ze(I,me){if(1&I){const Ae=m.EpF();m.TgZ(0,"perun-web-apps-groups-tree",16,17),m.NdJ("moveGroup",function(pe){return m.CHM(Ae),m.oxw(2).onMoveGroup(pe)})("refreshTable",function(){return m.CHM(Ae),m.oxw(2).refreshTable()}),m.qZA()}if(2&I){const Ae=m.oxw(2);m.Q6J("disableRouting",!Ae.routeAuth)("expandAll",Ae.filtering)("groups",Ae.groups)("hideCheckbox",!Ae.deleteAuth)("filterValue",Ae.filterValue)("selection",Ae.selected)}}const ae=function(){return["select","id","name","description","menu"]},Ue=function(){return["id","name","description","menu"]};function ve(I,me){if(1&I){const Ae=m.EpF();m.TgZ(0,"perun-web-apps-groups-list",18,19),m.NdJ("moveGroup",function(pe){return m.CHM(Ae),m.oxw(2).onMoveGroup(pe)})("refreshTable",function(){return m.CHM(Ae),m.oxw(2).refreshTable()}),m.qZA()}if(2&I){const Ae=m.oxw(2);m.Q6J("authType","group-subgroups")("disableMembers",!0)("disableRouting",!Ae.routeAuth)("displayedColumns",Ae.deleteAuth?m.DdM(8,ae):m.DdM(9,Ue))("groups",Ae.groups)("selection",Ae.selected)("filter",Ae.filterValue)("tableId",Ae.tableId)}}function He(I,me){if(1&I&&(m.TgZ(0,"div",13),m.YNc(1,ze,2,6,"perun-web-apps-groups-tree",14),m.YNc(2,ve,2,10,"perun-web-apps-groups-list",15),m.qZA()),2&I){const Ae=m.oxw();m.xp6(1),m.Q6J("ngIf",!Ae.showGroupList),m.xp6(1),m.Q6J("ngIf",Ae.showGroupList)}}let z=(()=>{class I{constructor(Ae,Me,pe,we){this.dialog=Ae,this.groupService=Me,this.guiAuthResolver=pe,this.entityStorageService=we,this.groups=[],this.selected=new b.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=E.bf,this.filterValue=""}onCreateGroup(){const Ae=(0,w.kZ)();Ae.width="450px",Ae.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,Ae).afterClosed().subscribe(pe=>{pe&&(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 Ae=(0,w.kZ)();Ae.width="450px",Ae.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(_.P,Ae).afterClosed().subscribe(pe=>{pe&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[A.r.GROUP_DEF_MAIL_FOOTER,A.r.GROUP_SYNC_ENABLED,A.r.GROUP_LAST_SYNC_STATE,A.r.GROUP_LAST_SYNC_TIMESTAMP,A.r.GROUP_STRUCTURE_SYNC_ENABLED,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(Ae=>{this.groups=Ae,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(Ae){this.filterValue=Ae,this.filtering=""!==Ae}onMoveGroup(Ae){const Me=(0,w.kZ)();Me.width="550px",Me.data={group:Ae,theme:"group-theme"},this.dialog.open(C.c,Me).afterClosed().subscribe(we=>{we&&this.refreshTable()})}}return I.id="GroupSubgroupsComponent",I.\u0275fac=function(Ae){return new(Ae||I)(m.Y36(B.uw),m.Y36(g.ff),m.Y36(O.x4),m.Y36(O.fb))},I.\u0275cmp=m.Xpm({type:I,selectors:[["app-group-subgroups"]],viewQuery:function(Ae,Me){if(1&Ae&&(m.Gf(Y,5),m.Gf(ee,5),m.Gf(ce,7)),2&Ae){let pe;m.iGM(pe=m.CRH())&&(Me.tree=pe.first),m.iGM(pe=m.CRH())&&(Me.list=pe.first),m.iGM(pe=m.CRH())&&(Me.toggle=pe.first)}},hostVars:2,hostBindings:function(Ae,Me){2&Ae&&m.ekj("router-component",Me.true)},decls:19,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"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",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"],["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,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],["tree",""],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable"],["list",""]],template:function(Ae,Me){if(1&Ae&&(m.TgZ(0,"div"),m.TgZ(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 Me.refreshTable()}),m.qZA(),m.YNc(5,le,3,3,"button",2),m.TgZ(6,"span",3),m.ALo(7,"translate"),m.YNc(8,Pe,3,4,"button",4),m.qZA(),m.TgZ(9,"perun-web-apps-debounce-filter",5),m.NdJ("filter",function(we){return Me.applyFilter(we)}),m.qZA(),m.TgZ(10,"mat-slide-toggle",6,7),m.NdJ("change",function(){return Me.selected.clear()})("ngModelChange",function(we){return Me.showGroupList=we}),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.TgZ(14,"label"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.YNc(17,Fe,1,0,"mat-spinner",8),m.YNc(18,He,3,2,"div",9),m.qZA()),2&Ae){const pe=m.MAs(11);m.xp6(2),m.Oqu(m.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),m.xp6(3),m.Q6J("ngIf",Me.createAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),m.Q6J("matTooltipDisabled",void 0===Me.tree&&void 0===Me.list||void 0!==Me.tree&&Me.tree.removeAuth||void 0!==Me.list&&Me.list.removeAuth),m.xp6(2),m.Q6J("ngIf",Me.deleteAuth),m.xp6(1),m.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),m.xp6(1),m.Q6J("ngModel",Me.showGroupList),m.xp6(2),m.Oqu(m.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),m.xp6(2),m.uIk("for",pe.inputId),m.xp6(1),m.Oqu(m.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),m.xp6(2),m.Q6J("ngIf",Me.loading),m.xp6(1),m.Q6J("ngIf",!Me.loading)}},directives:[L.t,J.O5,ie.lW,ge.gM,X.P,Ne.Rr,ue.JJ,ue.On,Oe.$g,T.I,Z.W],pipes:[W.X$],styles:[""]}),I})()},85243:(Xe,_e,p)=>{"use strict";p.d(_e,{j:()=>Ae});var e=p(32105),b=p(10036),_=p(20449),w=p(9244),g=p(48966),A=p(36908),E=p(64080),C=p(5e3),O=p(51062),S=p(69808),m=p(20773),B=p(7434),L=p(24179),J=p(47423);function ie(Me,pe){1&Me&&C._UZ(0,"mat-spinner",6)}function ge(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"perun-web-apps-immediate-filter",7),C.NdJ("filter",function(Je){return C.CHM(we),C.oxw().applyFilter(Je)}),C.qZA()}2&Me&&C.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const X=function(){return["select","id","name","description"]};function Ne(Me,pe){if(1&Me&&C._UZ(0,"perun-web-apps-groups-list",8),2&Me){const we=C.oxw();C.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",C.DdM(8,X))("filter",we.filterValue)("groupsToDisableCheckbox",we.membersGroups)("disableRouting",!0)("groups",we.groups)("selection",we.selection)}}function ue(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"div",9),C.TgZ(1,"button",10),C.NdJ("click",function(){return C.CHM(we),C.oxw().onCancel()}),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"button",11),C.NdJ("click",function(){return C.CHM(we),C.oxw().onAdd()}),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.qZA()}if(2&Me){const we=C.oxw();C.xp6(2),C.hij(" ",C.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),C.xp6(2),C.Q6J("disabled",0===we.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let Oe=(()=>{class Me{constructor(we,$e,Je,nt,ke,H,he){this.dialogRef=we,this.data=$e,this.groupManager=Je,this.memberManager=nt,this.notificator=ke,this.translate=H,this.authResolver=he,this.loading=!1,this.groups=[],this.selection=new _.Ov(!0,[]),this.attrNames=[E.r.GROUP_SYNC_ENABLED,E.r.GROUP_LAST_SYNC_STATE,E.r.GROUP_LAST_SYNC_TIMESTAMP,E.r.GROUP_STRUCTURE_SYNC_ENABLED,E.r.GROUP_LAST_STRUCTURE_SYNC_STATE,E.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(we=>{this.member=we,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe($e=>{this.groups=$e.filter(Je=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Je])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const we=this.selection.selected.map($e=>$e.id);this.loading=!0,this.groupManager.addMember(we,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(we){this.filterValue=we}}return Me.\u0275fac=function(we){return new(we||Me)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.ff),C.Y36(e.uq),C.Y36(A.V6),C.Y36(O.sK),C.Y36(A.x4))},Me.\u0275cmp=C.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","filter","groupsToDisableCheckbox","disableRouting","groups","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","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(we,$e){1&we&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,ie,1,0,"mat-spinner",1),C.TgZ(5,"div",2),C.YNc(6,ge,1,1,"perun-web-apps-immediate-filter",3),C.YNc(7,Ne,1,9,"perun-web-apps-groups-list",4),C.qZA(),C.YNc(8,ue,7,7,"div",5),C.qZA()),2&we&&(C.Tol($e.theme),C.xp6(2),C.Oqu(C.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),C.xp6(2),C.Q6J("ngIf",$e.loading),C.xp6(2),C.Q6J("ngIf",!$e.loading),C.xp6(1),C.Q6J("ngIf",!$e.loading),C.xp6(1),C.Q6J("ngIf",!$e.loading))},directives:[g.uh,S.O5,m.$g,g.xY,B.L,L.W,g.H8,J.lW],pipes:[O.X$],styles:[""]}),Me})();var T=p(32075);function Z(Me,pe){1&Me&&C._UZ(0,"mat-spinner",6)}function W(Me,pe){1&Me&&C._UZ(0,"th",15)}function Y(Me,pe){if(1&Me&&(C.TgZ(0,"td",16),C._uU(1),C.qZA()),2&Me){const we=pe.$implicit;C.xp6(1),C.Oqu(we.name)}}function ee(Me,pe){1&Me&&C._UZ(0,"tr",17)}function ce(Me,pe){1&Me&&C._UZ(0,"tr",18)}function le(Me,pe){if(1&Me&&(C.TgZ(0,"div",7),C.TgZ(1,"p"),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",8),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"table",9),C.ynx(8,10),C.YNc(9,W,1,0,"th",11),C.YNc(10,Y,2,1,"td",12),C.BQk(),C.YNc(11,ee,1,0,"tr",13),C.YNc(12,ce,1,0,"tr",14),C.qZA(),C.qZA()),2&Me){const we=C.oxw();C.xp6(2),C.Oqu(C.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),C.xp6(3),C.hij(" ",C.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),C.xp6(2),C.Q6J("dataSource",we.dataSource),C.xp6(4),C.Q6J("matHeaderRowDef",we.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",we.displayedColumns)}}let Pe=(()=>{class Me{constructor(we,$e,Je,nt,ke){this.dialogRef=we,this.data=$e,this.groupManager=Je,this.notificator=nt,this.translate=ke,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 we=this.dataSource.data.map($e=>$e.id);this.groupManager.removeMember(we,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(we){return new(we||Me)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.ff),C.Y36(A.V6),C.Y36(O.sK))},Me.\u0275cmp=C.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(we,$e){1&we&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,Z,1,0,"mat-spinner",1),C.YNc(5,le,13,9,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return $e.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return $e.onRemove()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.qZA()),2&we&&(C.Tol($e.theme),C.xp6(2),C.Oqu(C.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),C.xp6(2),C.Q6J("ngIf",$e.loading),C.xp6(1),C.Q6J("ngIf",!$e.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),C.xp6(2),C.Q6J("disabled",$e.loading),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[g.uh,S.O5,m.$g,g.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,g.H8,J.lW],pipes:[O.X$],styles:[""]}),Me})();p(387);var ze=p(11735),ae=p(96214),Ue=p(29772);const ve=["list"];function He(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"button",8),C.NdJ("click",function(){return C.CHM(we),C.oxw().addGroup()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Me&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function z(Me,pe){1&Me&&C._UZ(0,"mat-spinner",9)}const I=function(){return["select","id","vo","name","description","expiration"]};function me(Me,pe){if(1&Me){const we=C.EpF();C.TgZ(0,"perun-web-apps-groups-list",10,11),C.NdJ("refreshTable",function(){return C.CHM(we),C.oxw().refreshTable()}),C.qZA()}if(2&Me){const we=C.oxw();C.Q6J("displayedColumns",C.DdM(9,I))("authType","member-groups")("filter",we.filterValue)("memberId",we.memberId)("disableRouting",!we.routeAuth)("groups",we.groups)("memberGroupStatus",we.member.groupStatus)("selection",we.selection)("tableId",we.tableId)}}let Ae=(()=>{class Me{constructor(we,$e,Je,nt,ke){this.groupsService=we,this.route=$e,this.dialog=Je,this.authResolver=nt,this.memberService=ke,this.filterValue="",this.tableId=b.W1,this.selection=new _.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(we=>{this.memberId=Number(we.memberId),this.memberService.getMemberById(this.memberId).subscribe($e=>{this.member=$e,this.groupsService.getAllGroups(this.member.voId).subscribe(Je=>{this.allGroups=Je,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(we=>{this.selection.clear(),this.groups=we,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const we={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce(($e,Je)=>$e||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Je]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[we,this.groups[0]]))}addGroup(){const we=(0,w.kZ)();we.width="850px",we.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Je=>Je.id)),theme:"member-theme"},this.dialog.open(Oe,we).afterClosed().subscribe(Je=>{Je&&this.refreshTable()})}removeGroup(){const we=(0,w.kZ)();we.width="650px",we.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(Pe,we).afterClosed().subscribe(Je=>{Je&&this.refreshTable()})}applyFilter(we){this.filterValue=we}}return Me.id="MemberGroupsComponent",Me.\u0275fac=function(we){return new(we||Me)(C.Y36(e.ff),C.Y36(ze.gz),C.Y36(g.uw),C.Y36(A.x4),C.Y36(e.uq))},Me.\u0275cmp=C.Xpm({type:Me,selectors:[["app-member-groups"]],viewQuery:function(we,$e){if(1&we&&C.Gf(ve,5),2&we){let Je;C.iGM(Je=C.CRH())&&($e.list=Je.first)}},hostVars:2,hostBindings:function(we,$e){2&we&&C.ekj("router-component",$e.true)},decls:13,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","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable"],["list",""]],template:function(we,$e){1&we&&(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 $e.refreshTable()}),C.qZA(),C.YNc(4,He,3,3,"button",2),C.TgZ(5,"span",3),C.ALo(6,"translate"),C.TgZ(7,"button",4),C.NdJ("click",function(){return $e.removeGroup()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.qZA(),C.TgZ(10,"perun-web-apps-immediate-filter",5),C.NdJ("filter",function(nt){return $e.applyFilter(nt)}),C.qZA(),C.YNc(11,z,1,0,"mat-spinner",6),C.YNc(12,me,2,10,"perun-web-apps-groups-list",7)),2&we&&(C.xp6(1),C.Oqu(C.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),C.xp6(3),C.Q6J("ngIf",$e.addAuth),C.xp6(1),C.s9C("matTooltip",C.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),C.Q6J("matTooltipDisabled",void 0===$e.list||void 0!==$e.list&&$e.list.removeAuth),C.xp6(2),C.Q6J("disabled",0===$e.selection.selected.length||void 0!==$e.list&&!$e.list.removeAuth),C.xp6(1),C.hij(" ",C.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),C.xp6(2),C.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),C.xp6(1),C.Q6J("ngIf",$e.loading),C.xp6(1),C.Q6J("ngIf",!$e.loading))},directives:[ae.t,S.O5,J.lW,Ue.gM,B.L,m.$g,L.W],pipes:[O.X$],styles:[""]}),Me})()},94856:(Xe,_e,p)=>{"use strict";p.d(_e,{c:()=>ue});var e=p(32105),b=p(10036),_=p(93075),w=p(69808),g=p(36908),A=p(5e3),E=p(96214),C=p(47423),O=p(67322),S=p(74107),m=p(90508),B=p(64901),L=p(39798),J=p(77446),ie=p(9146),ge=p(51062);function X(Oe,T){if(1&Oe){const Z=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(Z),A.oxw().showDetails(!0)}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function Ne(Oe,T){if(1&Oe){const Z=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(Z),A.oxw().showDetails(!1)}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let ue=(()=>{class Oe{constructor(Z,W){this.registrarManager=Z,this.entityStorageService=W,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.currentColumns=[],this.filterValue="",this.showAllDetails=!1,this.detailTableId=b.Jf,this.tableId=b.Hi,this.showGroupApps=!1,this.refresh=!1}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.startDate=new _.NI((0,w.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new _.NI((0,w.p6)(new Date,"yyyy-MM-dd","en-GB")),this.currentColumns=this.refreshColumns()}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 Z=new Date;return Z.setDate(Z.getDate()-365),Z}showGroupApplications(Z){this.showGroupApps=Z.checked,this.currentColumns=this.refreshColumns()}showDetails(Z){this.showAllDetails=Z,this.currentColumns=this.refreshColumns()}applyFilter(Z){this.filterValue=Z}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.detailedColumns:this.detailedColumns.filter(Z=>"groupName"!==Z&&"groupId"!==Z):this.showGroupApps?this.simpleColumns:this.simpleColumns.filter(Z=>"groupName"!==Z)}}return Oe.id="VoApplicationsComponent",Oe.\u0275fac=function(Z){return new(Z||Oe)(A.Y36(e.tk),A.Y36(g.fb))},Oe.\u0275cmp=A.Xpm({type:Oe,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(Z,W){2&Z&&A.ekj("router-component",W.true)},decls:38,vars:43,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","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["color","primary",3,"checked","change"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(Z,W){1&Z&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return W.refresh=!W.refresh}),A.qZA(),A.YNc(5,X,3,3,"button",2),A.YNc(6,Ne,3,3,"button",2),A.TgZ(7,"mat-form-field",3),A.TgZ(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"mat-select",4),A.NdJ("selectionChange",function(){return W.select()})("valueChange",function(ee){return W.state=ee}),A.TgZ(12,"mat-option",5),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"mat-option",6),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",7),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-option",8),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.TgZ(24,"mat-option",9),A._uU(25),A.ALo(26,"translate"),A.qZA(),A.TgZ(27,"mat-option",10),A._uU(28),A.ALo(29,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(30,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(ee){return W.applyFilter(ee)}),A.qZA(),A.TgZ(31,"perun-web-apps-date-range",12),A.NdJ("datePicker",function(){return W.select()}),A.qZA(),A.TgZ(32,"div"),A.TgZ(33,"mat-checkbox",13),A.NdJ("change",function(ee){return W.showGroupApplications(ee)}),A._uU(34),A.ALo(35,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(36,"div"),A._UZ(37,"app-applications-dynamic-list",14),A.qZA()),2&Z&&(A.xp6(1),A.Oqu(A.lcZ(2,25,"VO_DETAIL.APPLICATION.TITLE")),A.xp6(4),A.Q6J("ngIf",!W.showAllDetails),A.xp6(1),A.Q6J("ngIf",W.showAllDetails),A.xp6(3),A.Oqu(A.lcZ(10,27,"APPLICATIONS_LIST.STATE")),A.xp6(2),A.Q6J("value",W.state),A.xp6(2),A.Oqu(A.lcZ(14,29,"VO_DETAIL.APPLICATION.SELECTION_ALL")),A.xp6(3),A.Oqu(A.lcZ(17,31,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),A.xp6(3),A.Oqu(A.lcZ(20,33,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),A.xp6(3),A.Oqu(A.lcZ(23,35,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),A.xp6(3),A.Oqu(A.lcZ(26,37,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),A.xp6(3),A.Oqu(A.lcZ(29,39,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),A.xp6(2),A.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),A.xp6(1),A.Q6J("endDate",W.endDate)("startDate",W.startDate),A.xp6(2),A.Q6J("checked",W.showGroupApps),A.xp6(1),A.hij(" ",A.lcZ(35,41,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),A.xp6(3),A.Q6J("tableId",W.showAllDetails?W.detailTableId:W.tableId)("searchString",W.filterValue)("displayedColumns",W.currentColumns)("states",W.currentStates)("dateFrom",W.startDate.value)("dateTo",W.endDate.value)("includeGroupApps",W.showGroupApps)("refreshTable",W.refresh)("vo",W.vo))},directives:[E.t,w.O5,C.lW,O.KE,O.hX,S.gD,m.ey,B.P,L.S,J.oG,ie.S],pipes:[ge.X$],styles:[""]}),Oe})()},4732:(Xe,_e,p)=>{"use strict";p.d(_e,{G:()=>z});var e=p(81889),b=p(41656),_=p(20449),w=p(87842),g=p(9244),A=p(32105),E=p(10036),C=p(64080),O=p(36908),m=(p(387),p(5e3)),B=p(48966),L=p(96214),J=p(69808),ie=p(47423),ge=p(29772),X=p(64901),Ne=p(32368),ue=p(93075),Oe=p(20773),T=p(58956),Z=p(24179),W=p(98380),Y=p(51062);const ee=["toggle"],ce=["tree"],le=["list"];function Pe(I,me){if(1&I){const Ae=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(Ae),m.oxw().onCreateGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&I&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Fe(I,me){1&I&&m._UZ(0,"mat-spinner",12)}function ze(I,me){if(1&I){const Ae=m.EpF();m.TgZ(0,"perun-web-apps-groups-tree",16,17),m.NdJ("moveGroup",function(pe){return m.CHM(Ae),m.oxw(2).onMoveGroup(pe)})("refreshTable",function(){return m.CHM(Ae),m.oxw(2).loadAllGroups()}),m.qZA()}if(2&I){const Ae=m.oxw(2);m.Q6J("expandAll",Ae.filtering)("disableRouting",!Ae.routeAuth)("groups",Ae.groups)("selection",Ae.selected)("filterValue",Ae.filterValue)("vo",Ae.vo)}}const ae=function(){return["select","id","name","description","menu"]};function Ue(I,me){if(1&I){const Ae=m.EpF();m.TgZ(0,"perun-web-apps-groups-list",18,19),m.NdJ("refreshTable",function(){return m.CHM(Ae),m.oxw(2).loadAllGroups()})("moveGroup",function(pe){return m.CHM(Ae),m.oxw(2).onMoveGroup(pe)}),m.qZA()}if(2&I){const Ae=m.oxw(2);m.Q6J("authType","vo-groups")("disableMembers",!0)("displayedColumns",m.DdM(8,ae))("disableRouting",!Ae.routeAuth)("groups",Ae.groups)("selection",Ae.selected)("filter",Ae.filterValue)("tableId",Ae.tableId)}}function ve(I,me){if(1&I&&(m.TgZ(0,"div",13),m.YNc(1,ze,2,6,"perun-web-apps-groups-tree",14),m.YNc(2,Ue,2,9,"perun-web-apps-groups-list",15),m.qZA()),2&I){const Ae=m.oxw();m.xp6(1),m.Q6J("ngIf",!Ae.showGroupList),m.xp6(1),m.Q6J("ngIf",Ae.showGroupList)}}function He(I,me){1&I&&(m.TgZ(0,"perun-web-apps-alert",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&I&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let z=(()=>{class I{constructor(Ae,Me,pe,we){this.dialog=Ae,this.groupService=Me,this.authResolver=pe,this.entityStorageService=we,this.groups=[],this.showGroupList=!1,this.selected=new _.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=E.rc}onCreateGroup(){const Ae=(0,g.kZ)();Ae.width="450px",Ae.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,Ae).afterClosed().subscribe(pe=>{pe&&(this.loading=!0,this.loadAllGroups())})}ngOnInit(){this.loading=!0,"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.loadAllGroups()}),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.loadAllGroups()}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]]))}disableRemove(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}disableTooltip(){var Ae,Me;return(null===(Ae=this.tree)||void 0===Ae?void 0:Ae.removeAuth)||(null===(Me=this.list)||void 0===Me?void 0:Me.removeAuth)}deleteGroup(){const Ae=(0,g.kZ)();Ae.width="450px",Ae.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(b.P,Ae).afterClosed().subscribe(pe=>{pe&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(Ae){const Me=(0,g.kZ)();Me.width="550px",Me.data={group:Ae,theme:"vo-theme"},this.dialog.open(w.c,Me).afterClosed().subscribe(we=>{we&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[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]).subscribe(Ae=>{this.groups=Ae,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(Ae){this.filterValue=Ae,this.filtering=""!==Ae}}return I.id="VoGroupsComponent",I.\u0275fac=function(Ae){return new(Ae||I)(m.Y36(B.uw),m.Y36(A.ff),m.Y36(O.x4),m.Y36(O.fb))},I.\u0275cmp=m.Xpm({type:I,selectors:[["app-vo-groups"]],viewQuery:function(Ae,Me){if(1&Ae&&(m.Gf(ee,7),m.Gf(ce,5),m.Gf(le,5)),2&Ae){let pe;m.iGM(pe=m.CRH())&&(Me.toggle=pe.first),m.iGM(pe=m.CRH())&&(Me.tree=pe.first),m.iGM(pe=m.CRH())&&(Me.list=pe.first)}},hostVars:2,hostBindings:function(Ae,Me){2&Ae&&m.ekj("router-component",Me.true)},decls:22,vars:24,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"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[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"],["alert_type","warn",4,"ngIf"],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup",4,"ngIf"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup"],["list",""],["alert_type","warn"]],template:function(Ae,Me){if(1&Ae&&(m.TgZ(0,"div"),m.TgZ(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 Me.loadAllGroups()}),m.qZA(),m.YNc(5,Pe,3,3,"button",2),m.TgZ(6,"span",3),m.ALo(7,"translate"),m.TgZ(8,"button",4),m.NdJ("click",function(){return Me.deleteGroup()}),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.qZA(),m.TgZ(11,"perun-web-apps-debounce-filter",5),m.NdJ("filter",function(we){return Me.applyFilter(we)}),m.qZA(),m.TgZ(12,"mat-slide-toggle",6,7),m.NdJ("change",function(){return Me.removeAllGroups()})("ngModelChange",function(we){return Me.showGroupList=we}),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.TgZ(16,"label"),m._uU(17),m.ALo(18,"translate"),m.qZA(),m.YNc(19,Fe,1,0,"mat-spinner",8),m.YNc(20,ve,3,2,"div",9),m.YNc(21,He,3,3,"perun-web-apps-alert",10),m.qZA()),2&Ae){const pe=m.MAs(13);m.xp6(2),m.Oqu(m.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),m.xp6(3),m.Q6J("ngIf",Me.createAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),m.Q6J("matTooltipDisabled",void 0===Me.tree&&void 0===Me.list||Me.disableTooltip()),m.xp6(2),m.Q6J("disabled",0===Me.selected.selected.length||Me.disableRemove()),m.xp6(1),m.hij(" ",m.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),m.xp6(2),m.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),m.xp6(1),m.Q6J("ngModel",Me.showGroupList),m.xp6(2),m.Oqu(m.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),m.xp6(2),m.uIk("for",pe.inputId),m.xp6(1),m.Oqu(m.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),m.xp6(2),m.Q6J("ngIf",Me.loading),m.xp6(1),m.Q6J("ngIf",!Me.loading&&0!==Me.groups.length),m.xp6(1),m.Q6J("ngIf",0===Me.groups.length&&!Me.loading)}},directives:[L.t,J.O5,ie.lW,ge.gM,X.P,Ne.Rr,ue.JJ,ue.On,Oe.$g,T.I,Z.W,W.w],pipes:[Y.X$],styles:[""]}),I})()},81847:(Xe,_e,p)=>{"use strict";p.d(_e,{y:()=>ae});var e=p(20449),b=p(36908),_=p(53455),w=p(58655),g=p(32105),A=p(64080),E=p(93075),C=p(10036),O=p(9244),S=p(74414),m=p(5e3),B=p(48966),L=p(96214),J=p(29772),ie=p(69808),ge=p(47423),X=p(67322),Ne=p(74107),ue=p(90508),Oe=p(64901),T=p(20773),Z=p(4811),W=p(51062),Y=p(20551);function ee(Ue,ve){if(1&Ue){const He=m.EpF();m.TgZ(0,"button",14),m.NdJ("click",function(){return m.CHM(He),m.oxw().onAddMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Ue){const He=m.oxw();m.Q6J("disabled",He.blockManualMemberAdding),m.xp6(1),m.hij(" ",m.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ce(Ue,ve){if(1&Ue){const He=m.EpF();m.TgZ(0,"button",15),m.NdJ("click",function(){return m.CHM(He),m.oxw().onInviteMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Ue&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function le(Ue,ve){if(1&Ue){const He=m.EpF();m.TgZ(0,"button",16),m.NdJ("click",function(){return m.CHM(He),m.oxw().onRemoveMembers()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Ue){const He=m.oxw();m.Q6J("disabled",He.selection.isEmpty()),m.xp6(1),m.hij(" ",m.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Pe(Ue,ve){if(1&Ue&&(m.TgZ(0,"mat-option",17),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&Ue){const He=ve.$implicit;m.Q6J("value",He),m.xp6(1),m.Oqu(m.lcZ(2,2,He))}}function Fe(Ue,ve){1&Ue&&m._UZ(0,"mat-spinner",18)}function ze(Ue,ve){if(1&Ue&&m._UZ(0,"perun-web-apps-members-dynamic-list",19),2&Ue){const He=m.oxw();m.Q6J("attrNames",He.attrNames)("selection",He.selection)("tableId",He.tableId)("displayedColumns",He.displayedColumns)("updateTable",He.updateTable)("searchString",He.searchString)("selectedStatuses",He.selectedStatuses)("voId",He.vo.id)}}let ae=(()=>{class Ue{constructor(He,z,I,me,Ae,Me,pe){this.notificator=He,this.dialog=z,this.authzService=I,this.storeService=me,this.attributesManager=Ae,this.apiRequest=Me,this.entityStorageService=pe,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[A.r.MEMBER_DEF_ORGANIZATION,A.r.MEMBER_DEF_MAIL,A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL,A.r.MEMBER_DEF_EXPIRATION],this.statuses=new E.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=C.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(He){this.searchString=He,this.selection.clear()}onAddMember(){const He=(0,O.kZ)();He.width="1000px",He.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(w.o,He).afterClosed().subscribe(I=>{I&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const He=(0,O.kZ)();He.width="450px",He.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(_.X,He).afterClosed().subscribe(I=>{I&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const He=(0,O.kZ)();He.width="650px",He.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(S.R,He)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const He=this.statuses.value;return He?`${He[0]} ${He.length>1?"(+"+(He.length-1).toString()+" "+(2===He.length?"other)":"others)"):""}`:""}isManualAddingBlocked(He){return new Promise(z=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(He,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(I=>{this.blockManualMemberAdding=null!==I.value,z()},I=>{const me=I.error;"PrivilegeException"!==me.name&&this.notificator.showError(me.name),z()})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return Ue.id="VoMembersComponent",Ue.\u0275fac=function(He){return new(He||Ue)(m.Y36(b.V6),m.Y36(B.uw),m.Y36(b.x4),m.Y36(b.d6),m.Y36(g.H8),m.Y36(b.F5),m.Y36(b.fb))},Ue.\u0275cmp=m.Xpm({type:Ue,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(He,z){2&He&&m.ekj("router-component",z.true)},decls:23,vars:21,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"],["color","accent","class","mr-2 action-button","mat-flat-button","",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",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","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"]],template:function(He,z){1&He&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",2),m.TgZ(5,"perun-web-apps-refresh-button",3),m.NdJ("click",function(){return z.refreshTable()}),m.qZA(),m.TgZ(6,"div",4),m.ALo(7,"translate"),m.YNc(8,ee,3,4,"button",5),m.qZA(),m.YNc(9,ce,3,3,"button",6),m.YNc(10,le,3,4,"button",7),m.TgZ(11,"mat-form-field",8),m.TgZ(12,"mat-label"),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.TgZ(15,"mat-select",9),m.NdJ("closed",function(){return z.changeStatuses()}),m.TgZ(16,"mat-select-trigger"),m._uU(17),m.ALo(18,"memberStatus"),m.qZA(),m.YNc(19,Pe,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(20,"perun-web-apps-debounce-filter",11),m.NdJ("filter",function(me){return z.onSearchByString(me)}),m.qZA(),m.qZA(),m.YNc(21,Fe,1,0,"mat-spinner",12),m.YNc(22,ze,1,8,"perun-web-apps-members-dynamic-list",13),m.qZA()),2&He&&(m.xp6(2),m.Oqu(m.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),m.xp6(4),m.s9C("matTooltip",m.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),m.Q6J("matTooltipDisabled",!z.blockManualMemberAdding),m.xp6(2),m.Q6J("ngIf",z.addAuth),m.xp6(1),m.Q6J("ngIf",z.inviteAuth),m.xp6(1),m.Q6J("ngIf",z.removeAuth),m.xp6(3),m.Oqu(m.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),m.xp6(2),m.Q6J("formControl",z.statuses),m.xp6(2),m.hij(" ",m.lcZ(18,19,z.displaySelectedStatuses())," "),m.xp6(2),m.Q6J("ngForOf",z.statusList),m.xp6(1),m.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),m.xp6(1),m.Q6J("ngIf",z.loading),m.xp6(1),m.Q6J("ngIf",!z.loading))},directives:[L.t,J.gM,ie.O5,ge.lW,X.KE,X.hX,Ne.gD,E.JJ,E.oH,Ne.$L,ie.sg,ue.ey,Oe.P,T.$g,Z.m],pipes:[W.X$,Y.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}"]}),Ue})()},68056:(Xe,_e,p)=>{"use strict";p.d(_e,{z:()=>ue});var e=p(20449),b=p(32105),_=p(533),w=p(10036),g=p(9244),A=p(36908),E=p(5e3),C=p(48966),O=p(96214),S=p(69808),m=p(47423),B=p(7434),L=p(20773),J=p(62109),ie=p(51062);function ge(Oe,T){if(1&Oe){const Z=E.EpF();E.TgZ(0,"button",6),E.NdJ("click",function(){return E.CHM(Z),E.oxw().deleteSelectedResources()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Oe){const Z=E.oxw();E.Q6J("disabled",0===Z.selected.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function X(Oe,T){1&Oe&&E._UZ(0,"mat-spinner",7)}function Ne(Oe,T){if(1&Oe&&E._UZ(0,"perun-web-apps-resources-list",8),2&Oe){const Z=E.oxw();E.Q6J("disableRouting",!Z.routeAuth)("filterValue",Z.filterValue)("resources",Z.resources)("routingVo",!0)("displayedColumns",Z.displayedColumns)("selection",Z.selected)("tableId",Z.tableId)}}let ue=(()=>{class Oe{constructor(Z,W,Y,ee){this.resourcesManager=Z,this.dialog=W,this.authResolver=Y,this.entityStorageService=ee,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=w.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,g.kZ)();Z.width="450px",Z.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(_.f,Z).afterClosed().subscribe(Y=>{Y&&this.refreshTable()})}}return Oe.id="VoResourcesPreviewComponent",Oe.\u0275fac=function(Z){return new(Z||Oe)(E.Y36(b.xk),E.Y36(C.uw),E.Y36(A.x4),E.Y36(A.fb))},Oe.\u0275cmp=E.Xpm({type:Oe,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(Z,W){2&Z&&E.ekj("router-component",W.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,W){1&Z&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return W.refreshTable()}),E.qZA(),E.YNc(5,ge,3,4,"button",2),E.TgZ(6,"perun-web-apps-immediate-filter",3),E.NdJ("filter",function(ee){return W.applyFilter(ee)}),E.qZA(),E.YNc(7,X,1,0,"mat-spinner",4),E.YNc(8,Ne,1,7,"perun-web-apps-resources-list",5),E.qZA()),2&Z&&(E.xp6(2),E.Oqu(E.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),E.xp6(3),E.Q6J("ngIf",W.removeAuth),E.xp6(1),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",W.loading),E.xp6(1),E.Q6J("ngIf",!W.loading))},directives:[O.t,S.O5,m.lW,B.L,L.$g,J.C],pipes:[ie.X$],styles:[""]}),Oe})()},24219:(Xe,_e,p)=>{"use strict";p.d(_e,{z:()=>P});var e=p(36908),b=p(32105),_=p(5e3),w=p(96214),g=p(53251),A=p(69808),E=p(98380),C=p(32075),O=p(20773),S=p(81125),m=p(4834),B=p(51062);function L(R,V){1&R&&_._UZ(0,"mat-spinner",2)}function J(R,V){if(1&R&&(_.TgZ(0,"mat-panel-description"),_.TgZ(1,"div"),_.TgZ(2,"i",10),_._uU(3," error "),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.ALo(6,"translate"),_.qZA(),_.qZA()),2&R){const Q=_.oxw().$implicit,Se=_.oxw(2);_.xp6(4),_.HOy(" ",Se.getErrorCountStates(Q)," ",_.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",Q.taskList.length," ",_.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function ie(R,V){1&R&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function ge(R,V){if(1&R&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&R){const Q=V.$implicit;_.xp6(1),_.Oqu(Q.id)}}function X(R,V){1&R&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function Ne(R,V){if(1&R&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&R){const Q=V.$implicit;_.xp6(1),_.Oqu(Q.service.name)}}function ue(R,V){1&R&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function Oe(R,V){if(1&R&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&R){const Q=V.$implicit;_.xp6(1),_.Oqu(Q.status)}}function T(R,V){1&R&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function Z(R,V){if(1&R&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&R){const Q=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,Q.schedule,"d.M.y H:mm:ss")," ")}}function W(R,V){1&R&&(_._uU(0),_.ALo(1,"translate")),2&R&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Y(R,V){if(1&R&&(_.TgZ(0,"td",24),_.YNc(1,Z,3,4,"div",25),_.YNc(2,W,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&R){const Q=V.$implicit,Se=_.MAs(3);_.xp6(1),_.Q6J("ngIf",Q.schedule)("ngIfElse",Se)}}function ee(R,V){1&R&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function ce(R,V){if(1&R&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&R){const Q=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,Q.schedule,"d.M.y H:mm:ss")," ")}}function le(R,V){1&R&&(_._uU(0),_.ALo(1,"translate")),2&R&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Pe(R,V){if(1&R&&(_.TgZ(0,"td",24),_.YNc(1,ce,3,4,"div",25),_.YNc(2,le,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&R){const Q=V.$implicit,Se=_.MAs(3);_.xp6(1),_.Q6J("ngIf",Q.startTime)("ngIfElse",Se)}}function Fe(R,V){1&R&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function ze(R,V){if(1&R&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&R){const Q=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,Q.schedule,"d.M.y H:mm:ss")," ")}}function ae(R,V){1&R&&(_._uU(0),_.ALo(1,"translate")),2&R&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Ue(R,V){if(1&R&&(_.TgZ(0,"td",24),_.YNc(1,ze,3,4,"div",25),_.YNc(2,ae,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&R){const Q=V.$implicit,Se=_.MAs(3);_.xp6(1),_.Q6J("ngIf",Q.endTime)("ngIfElse",Se)}}function ve(R,V){1&R&&_._UZ(0,"tr",28)}const He=function(R,V,Q){return{redTableItem:R,greenTableItem:V,yellowTableItem:Q}};function z(R,V){if(1&R&&_._UZ(0,"tr",29),2&R){const Q=V.$implicit;_.Q6J("ngClass",_.kEZ(1,He,"ERROR"===Q.status||"SENDERROR"===Q.status||"GENERROR"===Q.status,"DONE"===Q.status,"WARNING"===Q.status))}}function I(R,V){if(1&R&&(_.TgZ(0,"table",12),_.ynx(1,13),_.YNc(2,ie,3,3,"th",14),_.YNc(3,ge,2,1,"td",15),_.BQk(),_.ynx(4,16),_.YNc(5,X,3,3,"th",14),_.YNc(6,Ne,2,1,"td",15),_.BQk(),_.ynx(7,17),_.YNc(8,ue,3,3,"th",14),_.YNc(9,Oe,2,1,"td",15),_.BQk(),_.ynx(10,18),_.YNc(11,T,3,3,"th",14),_.YNc(12,Y,4,2,"td",15),_.BQk(),_.ynx(13,19),_.YNc(14,ee,3,3,"th",14),_.YNc(15,Pe,4,2,"td",15),_.BQk(),_.ynx(16,20),_.YNc(17,Fe,3,3,"th",14),_.YNc(18,Ue,4,2,"td",15),_.BQk(),_.YNc(19,ve,1,0,"tr",21),_.YNc(20,z,1,5,"tr",22),_.qZA()),2&R){const Q=_.oxw(2).$implicit,Se=_.oxw(2);_.Q6J("dataSource",Se.datasources[Se.propagation.indexOf(Q)]),_.xp6(19),_.Q6J("matHeaderRowDef",Se.displayedColumns),_.xp6(1),_.Q6J("matRowDefColumns",Se.displayedColumns)}}function me(R,V){1&R&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function Ae(R,V){if(1&R&&(_._UZ(0,"mat-divider"),_.YNc(1,I,21,3,"table",11),_.YNc(2,me,3,3,"div",8)),2&R){const Q=_.oxw().$implicit;_.xp6(1),_.Q6J("ngIf",0!==Q.taskList.length),_.xp6(1),_.Q6J("ngIf",0===Q.taskList.length)}}function Me(R,V){if(1&R&&(_.TgZ(0,"mat-expansion-panel"),_.TgZ(1,"mat-expansion-panel-header"),_.TgZ(2,"mat-panel-title"),_._UZ(3,"img",6),_.TgZ(4,"div",7),_._uU(5),_.qZA(),_.qZA(),_.YNc(6,J,7,8,"mat-panel-description",8),_.qZA(),_.YNc(7,Ae,3,2,"ng-template",9),_.qZA()),2&R){const Q=V.$implicit,Se=_.oxw(2);_.xp6(5),_.hij(" ",Q.resource.name," "),_.xp6(1),_.Q6J("ngIf",0!==Se.getErrorCountStates(Q))}}function pe(R,V){if(1&R&&(_.TgZ(0,"div",3),_.TgZ(1,"mat-accordion",4),_.YNc(2,Me,8,2,"mat-expansion-panel",5),_.qZA(),_.qZA()),2&R){const Q=_.oxw();_.xp6(2),_.Q6J("ngForOf",Q.propagation)}}let we=(()=>{class R{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(Q){let Se=0;for(const je of Q.taskList)("ERROR"===je.status||"GENERROR"===je.status||"SENDERROR"===je.status)&&Se++;return Se}getDataSource(){this.datasources=[];for(const Q of this.propagation)this.datasources.push(new C.by(Q.taskList))}ngOnChanges(){this.getDataSource()}}return R.\u0275fac=function(Q){return new(Q||R)},R.\u0275cmp=_.Xpm({type:R,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[_.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(Q,Se){1&Q&&(_.YNc(0,L,1,0,"mat-spinner",0),_.YNc(1,pe,3,1,"div",1)),2&Q&&(_.Q6J("ngIf",Se.loading),_.xp6(1),_.Q6J("ngIf",!Se.loading))},directives:[A.O5,O.$g,S.pp,A.sg,S.ib,S.yz,S.yK,S.u4,S.HS,m.d,C.BZ,C.w1,C.fO,C.ge,C.Dz,C.ev,C.as,C.XQ,C.nj,C.Gk,A.mk],pipes:[B.X$,A.uU],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}"]}),R})();function $e(R,V){if(1&R&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",5),_._uU(3),_.qZA()),2&R){const Q=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),_.xp6(3),_.Oqu(Q.errorPropagation.length)}}function Je(R,V){1&R&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function nt(R,V){if(1&R&&(_.YNc(0,Je,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&R){const Q=_.oxw();_.Q6J("ngIf",!Q.loading&&0===Q.errorPropagation.length),_.xp6(1),_.Q6J("loading",Q.loading)("propagation",Q.errorPropagation)}}function ke(R,V){if(1&R&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",9),_._uU(3),_.qZA()),2&R){const Q=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),_.xp6(3),_.Oqu(Q.okPropagation.length)}}function H(R,V){1&R&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function he(R,V){if(1&R&&(_.YNc(0,H,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&R){const Q=_.oxw();_.Q6J("ngIf",!Q.loading&&0===Q.okPropagation.length),_.xp6(1),_.Q6J("loading",Q.loading)("propagation",Q.okPropagation)}}let P=(()=>{class R{constructor(Q,Se){this.taskService=Q,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(Q=>{this.resourceStates=Q,this.okPropagation=[],this.errorPropagation=[];for(const Se of Q){let je=!0;for(const Ye of Se.taskList)if("ERROR"===Ye.status||"GENERROR"===Ye.status||"SENDERROR"===Ye.status){je=!1;break}je?this.okPropagation.push(Se):this.errorPropagation.push(Se)}this.loading=!1},()=>this.loading=!1)}}return R.id="VoResourcesStatesComponent",R.\u0275fac=function(Q){return new(Q||R)(_.Y36(b.Ob),_.Y36(e.fb))},R.\u0275cmp=_.Xpm({type:R,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(Q,Se){2&Q&&_.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(Q,Se){1&Q&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return Se.refreshTable()}),_.qZA(),_.TgZ(4,"mat-tab-group",2),_.NdJ("selectedIndexChange",function(Ye){return Se.selectedIndex=Ye}),_.TgZ(5,"mat-tab"),_.YNc(6,$e,4,4,"ng-template",3),_.YNc(7,nt,2,3,"ng-template",4),_.qZA(),_.TgZ(8,"mat-tab"),_.YNc(9,ke,4,4,"ng-template",3),_.YNc(10,he,2,3,"ng-template",4),_.qZA(),_.qZA()),2&Q&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),_.xp6(3),_.Q6J("selectedIndex",Se.selectedIndex))},directives:[w.t,g.SP,g.uX,g.uD,g.Vc,A.O5,E.w,we],pipes:[B.X$],styles:[""]}),R})()},10369:(Xe,_e,p)=>{"use strict";p.d(_e,{w:()=>Pe});var e=p(1186),b=p(36908),_=p(95502),w=p(51076),g=p(83491),A=p(32105),E=p(9244),C=p(5e3),O=p(48966),S=p(51062),m=p(11735),B=p(69808),L=p(20773),J=p(25245),ie=p(29772),ge=p(47423),X=p(4834),Ne=p(96214),ue=p(98380),Oe=p(157);function T(Fe,ze){1&Fe&&C._UZ(0,"mat-spinner",13)}function Z(Fe,ze){if(1&Fe){const ae=C.EpF();C.TgZ(0,"button",21),C.NdJ("click",function(){return C.CHM(ae),C.oxw(2).settings()}),C.TgZ(1,"i",10),C._uU(2,"edit"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Fe&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function W(Fe,ze){if(1&Fe&&(C.TgZ(0,"div",14),C.TgZ(1,"div",15),C.TgZ(2,"div",16),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"div"),C.TgZ(6,"span",16),C._uU(7),C.ALo(8,"translate"),C.qZA(),C._uU(9,": "),C.TgZ(10,"mat-icon",17),C._uU(11,"arrow_right_alt"),C.qZA(),C._uU(12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"mat-icon",18),C._uU(16,"restore"),C.qZA(),C._uU(17),C.ALo(18,"translate"),C.ALo(19,"translate"),C.qZA(),C.qZA(),C.TgZ(20,"div",19),C.YNc(21,Z,5,3,"button",20),C.qZA(),C.qZA()),2&Fe){const ae=C.oxw();C.xp6(3),C.AsE(" ",C.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",ae.applicationForm.moduleClassName," "),C.xp6(4),C.Oqu(C.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),C.xp6(5),C.hij(" ",ae.applicationForm.automaticApproval?C.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),C.xp6(5),C.hij(" ",ae.applicationForm.automaticApprovalExtension?C.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),C.xp6(4),C.Q6J("ngIf",ae.editAuth)}}function Y(Fe,ze){if(1&Fe){const ae=C.EpF();C.TgZ(0,"button",22),C.NdJ("click",function(){return C.CHM(ae),C.oxw().add()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Fe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function ee(Fe,ze){if(1&Fe){const ae=C.EpF();C.TgZ(0,"button",23),C.NdJ("click",function(){return C.CHM(ae),C.oxw().save()}),C.TgZ(1,"i",10),C._uU(2,"save"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}if(2&Fe){const ae=C.oxw();C.Q6J("disabled",!ae.itemsChanged),C.xp6(3),C.hij(" ",C.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ce(Fe,ze){if(1&Fe){const ae=C.EpF();C.TgZ(0,"button",24),C.NdJ("click",function(){return C.CHM(ae),C.oxw().copy()}),C.TgZ(1,"i",10),C._uU(2,"file_copy"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Fe&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function le(Fe,ze){1&Fe&&(C.TgZ(0,"perun-web-apps-alert",25),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Fe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let Pe=(()=>{class Fe{constructor(ae,Ue,ve,He,z,I,me,Ae){this.registrarManager=ae,this.dialog=Ue,this.notificator=ve,this.translate=He,this.router=z,this.authResolver=I,this.voService=me,this.entityStorageService=Ae,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(ae=>{this.applicationForm=ae,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(Ue=>{this.applicationFormItems=Ue,this.loading=!1})})}add(){let ae=(0,E.kZ)();ae.width="500px",ae.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(w.J,ae).afterClosed().subscribe(ve=>{ve&&(this.applicationFormItems=Object.assign([],ve[0]),ae=(0,E.kZ)(),ae.width="600px",ae.height="600px",ae.data={voId:this.vo.id,applicationFormItem:ve[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(g._,ae),this.itemsChanged=!0)})}copy(){const ae=(0,E.kZ)();ae.width="500px",ae.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(_.W,ae).afterClosed().subscribe(ve=>{ve&&this.updateFormItems()})}settings(){const ae=(0,E.kZ)();ae.width="400px",ae.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,ae).afterClosed().subscribe(ve=>{ve&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(He=>{this.notificator.showSuccess(He)}),this.applicationForm=ve)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(ae=>{this.applicationFormItems=ae,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let ae=0;for(const Ue of this.applicationFormItems)Ue.ordnum=ae,Ue.forDelete||ae++;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(Ue=>{this.notificator.showSuccess(Ue)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(ae=>ae.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 Fe.id="VoSettingsApplicationFormComponent",Fe.\u0275fac=function(ae){return new(ae||Fe)(C.Y36(A.tk),C.Y36(O.uw),C.Y36(b.V6),C.Y36(S.sK),C.Y36(m.F0),C.Y36(b.x4),C.Y36(A.YF),C.Y36(b.fb))},Fe.\u0275cmp=C.Xpm({type:Fe,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(ae,Ue){2&ae&&C.ekj("router-component",Ue.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-text-bottom"],["matTooltip","Extension",1,"align-text-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(ae,Ue){1&ae&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.YNc(3,T,1,0,"mat-spinner",1),C.TgZ(4,"div"),C.YNc(5,W,22,18,"div",2),C._UZ(6,"mat-divider",3),C.TgZ(7,"div",4),C.TgZ(8,"perun-web-apps-refresh-button",5),C.NdJ("refresh",function(){return Ue.updateFormItems()}),C.qZA(),C.YNc(9,Y,3,3,"button",6),C.YNc(10,ee,5,4,"button",7),C.YNc(11,ce,5,3,"button",8),C.TgZ(12,"button",9),C.NdJ("click",function(){return Ue.preview()}),C.TgZ(13,"i",10),C._uU(14,"search"),C.qZA(),C._uU(15),C.ALo(16,"translate"),C.qZA(),C.qZA(),C.YNc(17,le,3,3,"perun-web-apps-alert",11),C.TgZ(18,"app-application-form-list",12),C.NdJ("applicationFormItemsChange",function(){return Ue.changeItems()}),C.qZA(),C.qZA()),2&ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),C.xp6(2),C.Q6J("ngIf",Ue.loading),C.xp6(2),C.Q6J("ngIf",!Ue.loading),C.xp6(4),C.Q6J("ngIf",Ue.editAuth),C.xp6(1),C.Q6J("ngIf",Ue.editAuth),C.xp6(1),C.Q6J("ngIf",Ue.editAuth),C.xp6(4),C.hij(" ",C.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),C.xp6(2),C.Q6J("ngIf",Ue.editAuth),C.xp6(1),C.Q6J("applicationForm",Ue.applicationForm)("applicationFormItems",Ue.applicationFormItems)("loading",Ue.loading)("displayedColumns",Ue.displayedColumns)("refreshApplicationForm",Ue.refreshApplicationForm)("theme","vo-theme"))},directives:[B.O5,L.$g,J.Hw,ie.gM,ge.lW,X.d,Ne.t,ue.w,Oe.b],pipes:[S.X$],styles:[""]}),Fe})()},3246:(Xe,_e,p)=>{"use strict";p.d(_e,{T:()=>Nn});var e=p(32105),b=p(20449),_=p(10036),w=p(9244),g=p(48966),A=p(36908),E=p(93075),C=p(69808),O=p(45323),S=p(28499),m=p(5e3),B=p(51062),L=p(20773),J=p(92081),ie=p(98380),ge=p(67322),X=p(98833),Ne=p(74107),ue=p(90508),Oe=p(29772),T=p(77446),Z=p(13469),W=p(79814),Y=p(74250),ee=p(86856);let ce=(()=>{class Mt{constructor(){this.expiration="never",this.datePicker=new m.vpe,this.expirationControl=new E.NI(null)}ngOnInit(){const rt=new Date;this.minDate=new Date(rt.getFullYear(),rt.getMonth(),rt.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 Mt.\u0275fac=function(rt){return new(rt||Mt)},Mt.\u0275cmp=m.Xpm({type:Mt,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(rt,kt){if(1&rt){const Ze=m.EpF();m.TgZ(0,"mat-radio-group",0),m.NdJ("ngModelChange",function(Qe){return kt.expiration=Qe})("change",function(){return kt.emitDate()}),m.TgZ(1,"mat-radio-button",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-radio-button",2),m.TgZ(5,"mat-form-field",3),m.NdJ("click",function(){return m.CHM(Ze),m.MAs(12).open()}),m.TgZ(6,"mat-label"),m._uU(7),m.ALo(8,"translate"),m.qZA(),m.TgZ(9,"input",4),m.NdJ("dateChange",function(){return kt.setExpiration()}),m.qZA(),m._UZ(10,"mat-datepicker-toggle",5),m._UZ(11,"mat-datepicker",6,7),m.qZA(),m.qZA(),m.qZA()}if(2&rt){const Ze=m.MAs(12);m.Q6J("ngModel",kt.expiration),m.xp6(2),m.hij(" ",m.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),m.xp6(2),m.s9C("value",kt.expirationControl.value),m.xp6(3),m.Oqu(m.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),m.xp6(2),m.Q6J("min",kt.minDate)("formControl",kt.expirationControl)("matDatepicker",Ze),m.xp6(1),m.Q6J("for",Ze)("disabled",!1),m.xp6(1),m.Q6J("disabled",!1)}},directives:[W.VQ,E.JJ,E.On,W.U0,ge.KE,ge.hX,X.Nt,E.Fj,ee.hl,E.oH,ee.nW,ge.R9,ee.Mq],pipes:[B.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();var le=p(25245),Pe=p(47423),Fe=p(31359);const ze=["stepper"];function ae(Mt,Qt){1&Mt&&(m.TgZ(0,"h1",4),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function Ue(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",5)}function ve(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function He(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function z(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function I(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function me(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function Ae(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-option",35),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.Q6J("value",rt),m.xp6(1),m.hij(" ",rt," ")}}function Me(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function pe(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function we(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function $e(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Je(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-user-search-select",36),m.NdJ("userSelected",function(Ze){return m.CHM(rt),m.oxw(2).selectedSponsor=Ze}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.xp6(1),m.Q6J("disableAutoSelect",!0)("users",rt.voSponsors)}}function nt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",6),m.TgZ(1,"mat-stepper",7,8),m.TgZ(3,"mat-step",9),m.YNc(4,ve,2,3,"ng-template",10),m.YNc(5,He,3,3,"perun-web-apps-alert",11),m.TgZ(6,"form",12),m.TgZ(7,"h5",13),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"mat-form-field",14),m._UZ(11,"input",15),m.ALo(12,"translate"),m.YNc(13,z,3,3,"mat-error",16),m.qZA(),m.TgZ(14,"mat-form-field"),m._UZ(15,"input",17),m.ALo(16,"translate"),m.YNc(17,I,3,3,"mat-error",16),m.qZA(),m.TgZ(18,"mat-form-field"),m._UZ(19,"input",18),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"mat-form-field"),m._UZ(22,"input",19),m.ALo(23,"translate"),m.qZA(),m.qZA(),m.qZA(),m.TgZ(24,"mat-step",9),m.YNc(25,me,2,3,"ng-template",10),m.TgZ(26,"h5",13),m._uU(27),m.ALo(28,"translate"),m.qZA(),m.TgZ(29,"form",20),m.TgZ(30,"mat-form-field"),m.TgZ(31,"mat-select",21),m.NdJ("valueChange",function(Ze){return m.CHM(rt),m.oxw().onNamespaceChanged(Ze)}),m.ALo(32,"translate"),m.YNc(33,Ae,2,2,"mat-option",22),m.qZA(),m.YNc(34,Me,3,3,"mat-error",16),m.qZA(),m.TgZ(35,"mat-form-field",23),m.ALo(36,"translate"),m._UZ(37,"input",24),m.ALo(38,"translate"),m.YNc(39,pe,3,3,"mat-error",16),m.qZA(),m.TgZ(40,"mat-form-field"),m._UZ(41,"input",25),m.ALo(42,"translate"),m.YNc(43,we,3,3,"mat-error",16),m.qZA(),m.TgZ(44,"span",23),m.ALo(45,"translate"),m.TgZ(46,"mat-checkbox",26),m.NdJ("change",function(){return m.CHM(rt),m.oxw().passwordResetChange()}),m._uU(47),m.ALo(48,"translate"),m.qZA(),m.qZA(),m._UZ(49,"perun-web-apps-password-form",27),m.qZA(),m.qZA(),m.TgZ(50,"mat-step"),m.YNc(51,$e,2,3,"ng-template",10),m.TgZ(52,"div",28),m.TgZ(53,"h5",13),m._uU(54),m.ALo(55,"translate"),m.qZA(),m.TgZ(56,"div",14),m.TgZ(57,"h6"),m._uU(58),m.ALo(59,"translate"),m.qZA(),m.TgZ(60,"mat-radio-group",29),m.NdJ("ngModelChange",function(Ze){return m.CHM(rt),m.oxw().sponsorType=Ze}),m.TgZ(61,"span",30),m.ALo(62,"translate"),m.TgZ(63,"mat-radio-button",31),m.NdJ("click",function(){return m.CHM(rt),m.oxw().selectedSponsor=null}),m._uU(64),m.ALo(65,"translate"),m.qZA(),m.qZA(),m.TgZ(66,"span",30),m.ALo(67,"translate"),m.TgZ(68,"mat-radio-button",32),m._uU(69),m.ALo(70,"translate"),m.qZA(),m.qZA(),m.qZA(),m.YNc(71,Je,2,2,"div",16),m.qZA(),m.TgZ(72,"h6",14),m._uU(73),m.ALo(74,"translate"),m.qZA(),m.TgZ(75,"perun-web-apps-expiration-select",33),m.NdJ("datePicker",function(Ze){return m.CHM(rt),m.oxw().setExpiration(Ze)}),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("linear",!0),m.xp6(2),m.Q6J("stepControl",rt.userControl),m.xp6(2),m.Q6J("ngIf",rt.functionalityNotSupported),m.xp6(1),m.Q6J("formGroup",rt.userControl),m.xp6(2),m.hij(" ",m.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),m.xp6(3),m.s9C("placeholder",m.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),m.xp6(2),m.Q6J("ngIf",rt.userControl.hasError("required","firstName")),m.xp6(2),m.s9C("placeholder",m.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),m.xp6(2),m.Q6J("ngIf",rt.userControl.hasError("required","lastName")),m.xp6(2),m.s9C("placeholder",m.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),m.xp6(3),m.s9C("placeholder",m.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),m.xp6(2),m.Q6J("stepControl",rt.namespaceControl),m.xp6(3),m.Oqu(m.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),m.xp6(2),m.Q6J("formGroup",rt.namespaceControl),m.xp6(2),m.s9C("placeholder",m.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),m.xp6(2),m.Q6J("ngForOf",rt.namespaceOptions),m.xp6(1),m.Q6J("ngIf",rt.namespaceControl.hasError("required","namespace")),m.xp6(1),m.s9C("matTooltip",m.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),m.Q6J("matTooltipDisabled",rt.namespaceControl.get("login").enabled),m.xp6(2),m.s9C("placeholder",m.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),m.xp6(2),m.Q6J("ngIf",rt.namespaceControl.hasError("required","login")),m.xp6(2),m.s9C("placeholder",m.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),m.xp6(2),m.Q6J("ngIf",rt.namespaceControl.hasError("required","email")||rt.namespaceControl.hasError("pattern","email")),m.xp6(1),m.s9C("matTooltip",m.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),m.Q6J("matTooltipDisabled",rt.namespaceControl.get("passwordReset").enabled),m.xp6(3),m.hij("",m.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),m.xp6(2),m.Q6J("formGroup",rt.namespaceControl)("namespace",rt.selectedNamespace)("tooltipPwdViaEmail",rt.namespaceControl.get("passwordReset").value),m.xp6(5),m.Oqu(m.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),m.xp6(4),m.Oqu(m.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),m.xp6(2),m.Q6J("ngModel",rt.sponsorType),m.xp6(1),m.s9C("matTooltip",m.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),m.Q6J("matTooltipDisabled",rt.isSponsor),m.xp6(2),m.Q6J("disabled",!rt.isSponsor),m.xp6(1),m.hij(" ",m.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),m.Q6J("matTooltipDisabled",rt.isPerunAdmin),m.xp6(2),m.Q6J("disabled",!rt.isPerunAdmin),m.xp6(1),m.hij(" ",m.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),m.xp6(2),m.Q6J("ngIf","other"===rt.sponsorType),m.xp6(2),m.Oqu(m.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function ke(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div",6),m.TgZ(1,"div",37),m.TgZ(2,"mat-icon",38),m._uU(3,"done"),m.qZA(),m._uU(4),m.ALo(5,"translate"),m.TgZ(6,"i"),m._uU(7),m.ALo(8,"userFullName"),m.qZA(),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"div"),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.TgZ(14,"div"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.TgZ(17,"perun-web-apps-alert",39),m._uU(18),m.ALo(19,"translate"),m.qZA(),m.qZA()),2&Mt){const rt=m.oxw();m.xp6(4),m.hij(" ",m.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),m.xp6(3),m.Oqu(m.lcZ(8,10,rt.createdMember.user)),m.xp6(2),m.hij(" ",m.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),m.xp6(3),m.AsE("",m.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",rt.loginThatWasSet,""),m.xp6(3),m.AsE(" ",m.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",rt.namespaceControl.get("passwordCtrl").value," "),m.xp6(3),m.Oqu(m.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function H(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",40),m.TgZ(1,"button",41),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()}2&Mt&&(m.xp6(2),m.hij(" ",m.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function he(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",41),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperPrevious()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function P(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",46),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperNext()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.ekj("ml-2",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)("ml-auto",!(void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)),m.Q6J("disabled",rt.getStepperNextConditions()),m.xp6(1),m.hij(" ",m.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function R(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",47),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).onConfirm()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("disabled",null===rt.sponsorType||"other"===rt.sponsorType&&null===rt.selectedSponsor),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function V(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",40),m.TgZ(1,"button",42),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,he,3,3,"button",43),m.YNc(5,P,3,8,"button",44),m.YNc(6,R,3,4,"button",45),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("ngIf",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex!==rt.stepper._steps.length-1),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex===rt.stepper._steps.length-1)}}let Q=(()=>{class Mt{constructor(rt,kt,Ze,Ot,Qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=rt,this.data=kt,this.membersService=Ze,this.apiRequestConfiguration=Ot,this.usersService=Qe,this.store=Tt,this.translator=jt,this.authzService=ci,this.guiAuthResolver=vi,this.formBuilder=Ui,this.cd=Li,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(rt,kt,Ze){for(const Ot of kt)switch(Ot){case"login":rt.login=Ze;break;case"password":rt.password=Ze}}onConfirm(){this.loading=!0;const rt={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},kt=this.namespaceControl.get("namespace").value,Ze=this.parsedRules.get(kt);"No namespace"!==kt&&(rt.userData.namespace=kt),"disabled"!==Ze.login&&(rt.userData.login=this.namespaceControl.get("login").value),"disabled"!==Ze.password&&(rt.sendActivationLink=this.namespaceControl.get("passwordReset").value,rt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(rt.validityTo=this.expiration),this.membersService.createSponsoredMember(rt).subscribe(Ot=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=Ot,!!Ot&&!!Ot.userAttributes&&Ot.userAttributes.filter(Qe=>"login-namespace"===Qe.baseFriendlyName).filter(Qe=>Qe.friendlyNameParameter===kt).filter(Qe=>null!==Qe.value).forEach(Qe=>{this.loginThatWasSet=Qe.value}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(rt){this.selectedNamespace=rt;const kt=this.parsedRules.get(rt),Ze=this.namespaceControl.get("login"),Ot=this.namespaceControl.get("passwordCtrl"),Qe=this.namespaceControl.get("passwordAgainCtrl"),Tt=this.namespaceControl.get("passwordReset");"disabled"!==kt.login?(0,w.mH)(Ze,"optional"===kt.login?[]:[E.kI.required]):(Ze.disable(),Ze.setValue("")),"disabled"!==kt.password?((0,w.mH)(Ot,"optional"===kt.password?[]:[E.kI.required],[(0,S.yT)(rt,this.usersService,this.apiRequestConfiguration)]),(0,w.mH)(Qe,[]),(0,w.mH)(Tt,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(Ot.disable(),Ot.setValue(""),Qe.disable(),Qe.setValue(""),Tt.disable(),Tt.setValue(!1))}passwordResetChange(){const rt=this.namespaceControl.get("passwordCtrl"),kt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(rt.disable(),rt.setValue(""),kt.disable(),kt.setValue("")):(rt.enable(),kt.enable())}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"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;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(O.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",E.kI.required],lastName:["",E.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",E.kI.required],login:["",[E.kI.required]],passwordCtrl:["",E.kI.required,[(0,S.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[E.kI.required,E.kI.pattern(w.B2)]]},{validators:w.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(rt=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(rt),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const rt of this.namespaceRules){this.namespaceOptions.push(rt.namespaceName);const kt={login:"disabled",password:"disabled"};Mt.parseAttributes(kt,rt.requiredAttributes,"required"),Mt.parseAttributes(kt,rt.optionalAttributes,"optional"),this.parsedRules.set(rt.namespaceName,kt)}}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(e.uq),m.Y36(A.F5),m.Y36(e.Fv),m.Y36(A.d6),m.Y36(B.sK),m.Y36(e.Ct),m.Y36(A.x4),m.Y36(E.qu),m.Y36(m.sBO))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(rt,kt){if(1&rt&&m.Gf(ze,5),2&rt){let Ze;m.iGM(Ze=m.CRH())&&(kt.stepper=Ze.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"],["matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login","required","",3,"placeholder"],["matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[1,"mt-2",3,"datePicker"],["alert_type","error"],[3,"value"],[3,"disableAutoSelect","users","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.YNc(1,ae,3,3,"h1",0),m.YNc(2,Ue,1,0,"mat-spinner",1),m.YNc(3,nt,76,80,"div",2),m.YNc(4,ke,20,20,"div",2),m.YNc(5,H,4,3,"div",3),m.YNc(6,V,7,6,"div",3),m.qZA()),2&rt&&(m.Tol(kt.theme),m.xp6(1),m.Q6J("ngIf",!kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",!kt.loading&&kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated))},directives:[C.O5,g.uh,L.$g,g.xY,J.Vq,J.C0,J.VY,ie.w,E._Y,E.JL,E.sg,ge.KE,X.Nt,E.Fj,E.JJ,E.u,E.Q7,ge.TO,Ne.gD,C.sg,ue.ey,Oe.gM,T.oG,Z.G,W.VQ,E.On,W.U0,Y.S,ce,le.Hw,g.H8,Pe.lW],pipes:[B.X$,Fe.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 Se=p(64080),je=p(61150),Ye=p(7434),ye=p(24179),re=p(92181);const r=["stepper"];function o(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",4)}function d(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function l(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",29),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function s(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-option",30),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.Q6J("value",rt),m.xp6(1),m.hij(" ",rt," ")}}function i(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function t(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function n(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function a(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function c(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function h(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function x(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function We(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"mat-radio-group",32),m.NdJ("ngModelChange",function(Ze){return m.CHM(rt),m.oxw(3).passwordReset=Ze}),m.TgZ(1,"mat-radio-button",33),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-radio-button",34),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.Q6J("ngModel",rt.passwordReset),m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),m.xp6(3),m.hij(" ",m.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function At(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Ht(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function lt(Mt,Qt){1&Mt&&(m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-alert",35),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()),2&Mt&&(m.xp6(2),m.Oqu(m.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Ut(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"h5",36),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-create-group-form",37),m.NdJ("asSubgroupChanged",function(Ze){return m.CHM(rt),m.oxw(3).asSubGroup=Ze})("nameChanged",function(Ze){return m.CHM(rt),m.oxw(3).name=Ze})("descriptionChanged",function(Ze){return m.CHM(rt),m.oxw(3).description=Ze})("parentGroupChanged",function(Ze){return m.CHM(rt),m.oxw(3).parentGroup=Ze}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.xp6(2),m.hij(" ",m.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),m.xp6(2),m.Q6J("voGroups",rt.allVoGroups)}}const mt=function(){return["select","id","name","description"]};function Lt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"h5",36),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-immediate-filter",38),m.NdJ("filter",function(Ze){return m.CHM(rt),m.oxw(3).applyFilter(Ze)}),m.qZA(),m._UZ(5,"perun-web-apps-groups-list",39),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.xp6(2),m.hij(" ",m.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),m.xp6(2),m.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),m.xp6(1),m.Q6J("groups",rt.assignableGroups)("selection",rt.selection)("disableRouting",!0)("displayedColumns",m.DdM(10,mt))("filter",rt.filterValue)("tableId",rt.tableId)}}function Te(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"mat-stepper",8,9),m.TgZ(2,"mat-step",10),m.YNc(3,d,2,3,"ng-template",11),m.YNc(4,l,3,3,"perun-web-apps-alert",12),m.TgZ(5,"h5",13),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"form",14),m.TgZ(9,"mat-form-field"),m.TgZ(10,"mat-select",15),m.ALo(11,"translate"),m.YNc(12,s,2,2,"mat-option",16),m.qZA(),m.YNc(13,i,3,3,"mat-error",7),m.qZA(),m.TgZ(14,"div"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.TgZ(17,"div",17),m._uU(18),m.qZA(),m.TgZ(19,"mat-form-field",18),m.TgZ(20,"mat-label"),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"textarea",19),m._uU(24," "),m.qZA(),m.YNc(25,t,3,3,"mat-error",7),m.YNc(26,n,3,4,"mat-error",7),m.YNc(27,a,3,4,"mat-error",7),m.YNc(28,c,3,4,"mat-error",7),m.qZA(),m.qZA(),m.qZA(),m.TgZ(29,"mat-step"),m.YNc(30,h,2,3,"ng-template",11),m.TgZ(31,"div",13),m.TgZ(32,"h5",20),m._uU(33),m.ALo(34,"translate"),m.qZA(),m.YNc(35,x,3,3,"perun-web-apps-alert",21),m.YNc(36,We,7,7,"mat-radio-group",22),m.qZA(),m.qZA(),m.TgZ(37,"mat-step"),m.YNc(38,At,2,3,"ng-template",11),m.TgZ(39,"div",13),m.TgZ(40,"h5",20),m._uU(41),m.ALo(42,"translate"),m.qZA(),m.TgZ(43,"perun-web-apps-expiration-select",23),m.NdJ("datePicker",function(Ze){return m.CHM(rt),m.oxw(2).setExpiration(Ze)}),m.qZA(),m.qZA(),m.qZA(),m.TgZ(44,"mat-step"),m.YNc(45,Ht,2,3,"ng-template",11),m.TgZ(46,"div",13),m.TgZ(47,"h5",20),m._uU(48),m.ALo(49,"translate"),m.qZA(),m.TgZ(50,"mat-radio-group",24),m.NdJ("change",function(){return m.CHM(rt),m.oxw(2).groupAssigmentChanged()})("ngModelChange",function(Ze){return m.CHM(rt),m.oxw(2).groupAssignment=Ze}),m.TgZ(51,"mat-radio-button",25),m._uU(52),m.ALo(53,"translate"),m.qZA(),m.TgZ(54,"span",26),m.ALo(55,"translate"),m.TgZ(56,"mat-radio-button",27),m._uU(57),m.ALo(58,"translate"),m.qZA(),m.qZA(),m.TgZ(59,"span",26),m.ALo(60,"translate"),m.TgZ(61,"mat-radio-button",28),m._uU(62),m.ALo(63,"translate"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.YNc(64,lt,4,3,"div",7),m.YNc(65,Ut,5,4,"div",7),m.YNc(66,Lt,6,11,"div",7),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("linear",!0),m.xp6(2),m.Q6J("stepControl",rt.usersInfoFormGroup),m.xp6(2),m.Q6J("ngIf",rt.functionalityNotSupported),m.xp6(2),m.Oqu(m.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),m.xp6(2),m.Q6J("formGroup",rt.usersInfoFormGroup),m.xp6(2),m.s9C("placeholder",m.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),m.xp6(2),m.Q6J("ngForOf",rt.namespaceOptions),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("required","namespace")),m.xp6(2),m.Oqu(m.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),m.xp6(3),m.hij(" ",rt.getSelectedNamespaceRules().csvGenHeaderDescription," "),m.xp6(3),m.Oqu(m.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),m.xp6(2),m.s9C("placeholder",rt.getSelectedNamespaceRules().csvGenPlaceholder),m.xp6(2),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("required","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),m.xp6(5),m.hij(" ",m.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),m.xp6(2),m.Q6J("ngIf","No namespace"===rt.getSelectedNamespaceRules().namespaceName),m.xp6(1),m.Q6J("ngIf","No namespace"!==rt.getSelectedNamespaceRules().namespaceName),m.xp6(5),m.Oqu(m.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),m.xp6(2),m.Q6J("expiration",rt.expiration),m.xp6(5),m.Oqu(m.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),m.xp6(2),m.Q6J("ngModel",rt.groupAssignment),m.xp6(2),m.hij(" ",m.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),m.Q6J("matTooltipDisabled",!rt.manualMemberAddingBlocked&&rt.createGroupAuth),m.xp6(2),m.Q6J("disabled",rt.manualMemberAddingBlocked||!rt.createGroupAuth),m.xp6(1),m.hij(" ",m.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),m.Q6J("matTooltipDisabled",!rt.manualMemberAddingBlocked&&0!==rt.assignableGroups.length),m.xp6(2),m.Q6J("disabled",rt.manualMemberAddingBlocked||0===rt.assignableGroups.length),m.xp6(1),m.hij(" ",m.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),m.xp6(2),m.Q6J("ngIf","none"===rt.groupAssignment),m.xp6(1),m.Q6J("ngIf","new"===rt.groupAssignment),m.xp6(1),m.Q6J("ngIf","existing"===rt.groupAssignment)}}function Ge(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",41),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.Q6J("alert_type","success"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function j(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",41),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.Q6J("alert_type","warn"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function N(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div"),m.YNc(1,Ge,3,4,"perun-web-apps-alert",40),m.YNc(2,j,3,4,"perun-web-apps-alert",40),m.qZA()),2&Mt){const rt=m.oxw(2);m.xp6(1),m.Q6J("ngIf",!1===rt.finishedWithErrors),m.xp6(1),m.Q6J("ngIf",rt.finishedWithErrors)}}function te(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div",5),m.YNc(1,Te,67,59,"mat-stepper",6),m.YNc(2,N,3,2,"div",7),m.qZA()),2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("ngIf","user-input"===rt.state),m.xp6(1),m.Q6J("ngIf","results"===rt.state)}}function oe(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",47),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperPrevious()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function Ie(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",48),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperNext()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.ekj("ml-2",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)("ml-auto",!(void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)),m.Q6J("disabled",rt.getStepperNextConditions()),m.xp6(1),m.hij(" ",m.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function ct(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",48),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).onSubmit()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("disabled",null===rt.groupAssignment||"existing"===rt.groupAssignment&&0===rt.selection.selected.length||"new"===rt.groupAssignment&&(0===rt.name.length||0===rt.description.length)||!0===rt.asSubGroup&&null===rt.parentGroup),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function bt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",42),m.TgZ(1,"button",43),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,oe,3,3,"button",44),m.YNc(5,Ie,3,8,"button",45),m.YNc(6,ct,3,4,"button",46),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),m.xp6(2),m.Q6J("ngIf",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex!==rt.stepper._steps.length-1),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex===rt.stepper._steps.length-1)}}function xt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",42),m.TgZ(1,"button",43),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onClose()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",49),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"mat-menu",null,50),m.TgZ(9,"button",51),m.NdJ("click",function(){return m.CHM(rt),m.oxw().generatePdf()}),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"button",51),m.NdJ("click",function(){return m.CHM(rt),m.oxw().downloadCsv()}),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.MAs(8);m.xp6(2),m.hij(" ",m.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),m.xp6(2),m.Q6J("matMenuTriggerFor",rt),m.xp6(1),m.hij(" ",m.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),m.xp6(5),m.hij(" ",m.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),m.xp6(3),m.hij(" ",m.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Yt=(()=>{class Mt{constructor(rt,kt,Ze,Ot,Qe,Tt,jt,ci,vi,Ui,Li,hn){this.dialogRef=rt,this.data=kt,this.store=Ze,this.membersService=Ot,this.notificator=Qe,this.translate=Tt,this.guiAuthResolver=jt,this.groupsService=ci,this.attributesService=vi,this.formBuilder=Ui,this.sponsoredMembersPDFService=Li,this.cd=hn,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new b.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.filterValue="",this.tableId=_.rc,this.finishedWithErrors=!1,this.namespaceRules=[],this.resultData=[],this.groupAttrNames=[Se.r.GROUP_SYNC_ENABLED,Se.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(rt){return rt.forEach(kt=>{if("OK"!==kt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",E.kI.required],sponsoredMembers:["",[E.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(rt=>{this.manualMemberAddingBlocked=(0,w.jh)(rt,Se.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.manualMemberAddingBlocked?(this.loading=!1,this.cd.detectChanges()):this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(kt=>{this.allVoGroups=kt.filter(Ze=>"members"!==Ze.name),this.assignableGroups=this.filterAssignableGroups(kt),this.membersService.getAllNamespacesRules().subscribe(Ze=>{this.store.get("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(Ze),this.namespaceRules.forEach(Ot=>this.namespaceOptions.push(Ot.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"yyyy-MM-dd","en-GB")}applyFilter(rt){this.filterValue=rt}groupAssigmentChanged(){this.selection.clear(),this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null}onSubmit(){this.loading=!0,"new"===this.groupAssignment?this.asSubGroup?this.groupsService.createGroupWithParentGroupNameDescription(this.parentGroup.id,this.name,this.description).subscribe(rt=>{this.groupIds.push(rt.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(rt=>{this.groupIds.push(rt.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(rt=>rt.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(rt=>rt.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,w.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()}filterAssignableGroups(rt){const kt=[];for(const Ze of rt)!(0,w.bx)(Ze)&&!(0,w.jh)(Ze.attributes,Se.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Ze])&&kt.push(Ze);return kt}createOutputObjects(rt){let kt="",Ze="",Ot="",Qe="";const Tt=[];return rt.forEach(jt=>{kt=jt.name.replace(";"," ").split(";")[0],Ze=jt.status,Ot=jt.login?jt.login:Ot,Qe=jt.password?jt.password:Qe;const ci={name:kt,status:Ze,login:Ot,password:Qe};jt.note&&(ci.note=jt.note),Tt.push(ci)}),Tt}onGenerate(){this.loading=!0;const rt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),kt=this.getSelectedNamespaceRules().csvGenHeader,Ze=[];for(const Qe of rt){const Tt=this.parseMemberLine(Qe);if("format"===Tt||"email"===Tt)return void(this.loading=!1);""!==Tt&&Ze.push(Tt)}const Ot={data:Ze,header:kt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(Ot.groups=this.groupIds),"never"!==this.expiration&&(Ot.validityTo=(0,C.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(Ot.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(Ot).subscribe(Qe=>{this.state="results",this.finishedWithErrors=Mt.didSomeGenerationFailed(Qe),this.loading=!1,this.resultData=Qe},()=>this.loading=!1)}parseMemberLine(rt){const kt=rt.trim();if(""===kt)return"";const Ze=kt.split(";"),Ot=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Ze.length!==Ot.length)return"format";if("mail"===Ot[2].slice(Ot[2].length-4).toLowerCase()&&!Ze[2].trim().match(w.B2))return"email";if("login"===Ot[3]&&""===Ze[3].trim())return"login";let Qe="";for(const Tt of Ze)Qe+=Tt.trim()+";";return Qe.slice(0,-1)}userInputValidator(){return rt=>{const kt=rt.value.split("\n");for(const Ze of kt){const Ot=this.parseMemberLine(Ze);if("format"===Ot)return{invalidFormat:{value:Ze}};if("email"===Ot)return{invalidEmail:{value:Ze}};if("login"===Ot)return{invalidLogin:{value:Ze}}}return null}}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(A.d6),m.Y36(e.uq),m.Y36(A.V6),m.Y36(B.sK),m.Y36(A.x4),m.Y36(e.ff),m.Y36(e.H8),m.Y36(E.qu),m.Y36(A.HV),m.Y36(m.sBO))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(rt,kt){if(1&rt&&m.Gf(r,5),2&rt){let Ze;m.iGM(Ze=m.CRH())&&(kt.stepper=Ze.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"],["formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["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"],[3,"expiration","datePicker"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],["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"],[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"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,o,1,0,"mat-spinner",1),m.YNc(5,te,3,2,"div",2),m.YNc(6,bt,7,6,"div",3),m.YNc(7,xt,15,13,"div",3),m.qZA()),2&rt&&(m.Tol(kt.theme),m.xp6(2),m.Oqu(m.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading&&void 0!==kt.stepper&&"results"!==kt.state),m.xp6(1),m.Q6J("ngIf","results"===kt.state))},directives:[g.uh,C.O5,L.$g,g.xY,J.Vq,J.C0,J.VY,ie.w,E._Y,E.JL,E.sg,ge.KE,Ne.gD,E.JJ,E.u,E.Q7,C.sg,ue.ey,ge.TO,ge.hX,E.Fj,X.Nt,W.VQ,E.On,W.U0,ce,Oe.gM,je.r,Ye.L,ye.W,g.H8,Pe.lW,re.p6,re.VK,re.OP],pipes:[B.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var It=p(38383);function Rt(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",12)}const Et=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Bt(Mt,Qt){if(1&Mt&&m._UZ(0,"perun-web-apps-members-list",13),2&Mt){const rt=m.oxw();m.Q6J("disableRouting",!0)("hidden",rt.loading)("disableStatusChange",!0)("members",rt.members)("selection",rt.selection)("displayedColumns",m.DdM(7,Et))("tableId",rt.tableId)}}function Jt(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let ai=(()=>{class Mt{constructor(rt,kt,Ze,Ot,Qe,Tt){this.dialogRef=rt,this.data=kt,this.store=Ze,this.membersService=Ot,this.notificator=Qe,this.translate=Tt,this.loading=!1,this.tableId=_.US,this.expiration="never",this.searchCtrl=new E.NI("",[E.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new b.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(rt){if(this.loading=!0,0===rt.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const kt=rt.pop();kt.sponsored?this.membersService.sponsorMember(kt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(rt)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(kt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(rt)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const rt=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(rt)}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"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,[Se.r.MEMBER_DEF_EXPIRATION,Se.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(kt=>{this.members=kt,this.loading=!1},()=>this.loading=!1))}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(A.d6),m.Y36(e.uq),m.Y36(A.V6),m.Y36(B.sK))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["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"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",1),m.TgZ(5,"mat-form-field",2),m.TgZ(6,"label"),m.TgZ(7,"input",3),m.NdJ("keyup.enter",function(){return kt.onSearchByString()}),m.ALo(8,"translate"),m.qZA(),m.qZA(),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.qZA(),m.TgZ(12,"button",4),m.NdJ("click",function(){return kt.onSearchByString()}),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.YNc(15,Rt,1,0,"mat-spinner",5),m.YNc(16,Bt,1,8,"perun-web-apps-members-list",6),m.YNc(17,Jt,3,3,"perun-web-apps-alert",7),m.TgZ(18,"div"),m._UZ(19,"br"),m.TgZ(20,"h6"),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"perun-web-apps-expiration-select",8),m.NdJ("datePicker",function(Ot){return kt.setExpiration(Ot)}),m.qZA(),m.qZA(),m.qZA(),m.TgZ(24,"div",9),m.TgZ(25,"button",10),m.NdJ("click",function(){return kt.onCancel()}),m._uU(26),m.ALo(27,"translate"),m.qZA(),m.TgZ(28,"button",11),m.NdJ("click",function(){return kt.onSubmit()}),m._uU(29),m.ALo(30,"translate"),m.qZA(),m.qZA(),m.qZA()),2&rt&&(m.Tol(kt.theme),m.xp6(2),m.Oqu(m.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),m.xp6(5),m.s9C("placeholder",m.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),m.Q6J("formControl",kt.searchCtrl),m.xp6(3),m.hij(" ",m.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),m.xp6(2),m.Q6J("disabled",kt.loading),m.xp6(1),m.hij(" ",m.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),m.xp6(2),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",kt.firstSearchDone),m.xp6(1),m.Q6J("ngIf",!kt.firstSearchDone),m.xp6(4),m.Oqu(m.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),m.xp6(5),m.hij(" ",m.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",kt.loading||0===kt.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[g.uh,g.xY,ge.KE,X.Nt,E.Fj,E.JJ,E.oH,ge.TO,Pe.lW,C.O5,L.$g,It.O,ie.w,ce,g.H8],pipes:[B.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),Mt})();var mi=p(96214),bi=p(84847),yi=p(32075),Wi=p(19352),gn=p(58964),cn=p(18750),Ki=p(50301),Tn=p(11735),rn=p(20919),st=p(5865);function St(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"th",19),m.TgZ(1,"mat-checkbox",20),m.NdJ("change",function(Ze){m.CHM(rt);const Ot=m.oxw();return Ze?Ot.masterToggle():null}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("aria-label",rt.checkboxLabel())("checked",rt.selection.hasValue()&&rt.isAllSelected())("indeterminate",rt.selection.hasValue()&&!rt.isAllSelected())}}function ot(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"td",21),m.TgZ(1,"mat-checkbox",22),m.NdJ("change",function(Ze){const Qe=m.CHM(rt).$implicit,Tt=m.oxw();return Ze?Tt.selection.toggle(Qe):null})("click",function(Ze){return Ze.stopPropagation()}),m.qZA(),m.qZA()}if(2&Mt){const rt=Qt.$implicit,kt=m.oxw();m.xp6(1),m.Q6J("aria-label",kt.checkboxLabel(rt))("checked",kt.selection.isSelected(rt))}}function Ke(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function vt(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",24),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",rt.member.id," ")}}function U(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function qe(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.member.user)," ")}}function gt(Mt,Qt){1&Mt&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function Dt(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"memberEmail"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,rt.member))}}function ri(Mt,Qt){1&Mt&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function ti(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"memberLogins"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.member)," ")}}function Di(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function wi(Mt,Qt){if(1&Mt&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"userFullName"),m._UZ(3,"br"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.user),"")}}function $i(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m.YNc(1,wi,4,3,"span",27),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.Q6J("ngForOf",rt.sponsors)}}function qi(Mt,Qt){1&Mt&&m._UZ(0,"th",23)}function Fi(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"span",30),m.ALo(1,"translate"),m.TgZ(2,"button",31),m.NdJ("mouseenter",function(){return m.CHM(rt),m.oxw(2).disableRouting=!0})("mouseleave",function(){m.CHM(rt);const Ze=m.oxw(2);return Ze.disableRouting=Ze.routingStrategy})("click",function(){m.CHM(rt);const Ze=m.oxw().$implicit;return m.oxw().resetPassword(Ze)}),m.TgZ(3,"mat-icon"),m._uU(4,"vpn_key"),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("matTooltipPosition","above")("matTooltip",m.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),m.xp6(2),m.Q6J("disabled",rt.loading)}}function Ji(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"td",25),m.TgZ(1,"button",28),m.NdJ("click",function(){const Ot=m.CHM(rt).$implicit;return m.oxw().showSponsors(Ot)})("mouseenter",function(){return m.CHM(rt),m.oxw().disableRouting=!0})("mouseleave",function(){m.CHM(rt);const Ze=m.oxw();return Ze.disableRouting=Ze.routingStrategy}),m.TgZ(2,"mat-icon"),m._uU(3,"edit"),m.qZA(),m.qZA(),m.YNc(4,Fi,5,5,"span",29),m.qZA()}if(2&Mt){const rt=Qt.$implicit,kt=m.oxw();m.xp6(4),m.Q6J("ngIf",kt.passwdResetAuth(rt))}}function _n(Mt,Qt){1&Mt&&m._UZ(0,"tr",32)}const Ni=function(Mt,Qt){return["/organizations",Mt,"members",Qt]};function Ri(Mt,Qt){if(1&Mt&&m._UZ(0,"tr",33),2&Mt){const rt=Qt.$implicit,kt=m.oxw();m.ekj("cursor-pointer",!kt.disableRouting)("disable-outline",kt.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",kt.disableRouting?null:m.WLB(6,Ni,rt.member.voId,rt.member.id))("routerLink",kt.disableRouting?null:m.WLB(9,Ni,rt.member.voId,rt.member.id))}}function sn(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Xi(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let en=(()=>{class Mt{constructor(rt,kt,Ze,Ot,Qe){this.dialog=rt,this.authResolver=kt,this.storeService=Ze,this.attributesManager=Ot,this.tableCheckbox=Qe,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new m.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=w.f7}set matSort(rt){this.sort=rt}static getSortDataForColumn(rt,kt){var Ze;switch(kt){case"id":return rt.member.id.toString();case"name":return rt.member.user?rt.member.user.lastName?rt.member.user.lastName:null!==(Ze=rt.member.user.firstName)&&void 0!==Ze?Ze:"":"";case"sponsors":return rt.sponsors.length.toString();default:return""}}static getDataForColumn(rt,kt){switch(kt){case"id":return rt.member.id.toString();case"name":return rt.member.user?(0,w.bD)(rt.member.user):"";case"sponsors":return rt.sponsors.map(Ze=>(0,w.bD)(Ze.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(rt=>"id"!==rt)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportData(rt){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Mt.getDataForColumn),rt)}setDataSource(){this.dataSource||(this.dataSource=new yi.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(rt,kt)=>(0,w.Sd)(rt,kt,this.displayedColumns,Mt.getDataForColumn),this.dataSource.sortData=(rt,kt)=>(0,w.pR)(rt,kt,Mt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(rt){const kt=(0,w.kZ)();kt.width="650px",kt.data={sponsors:rt.sponsors,member:rt.member,theme:"vo-theme"},this.dialog.open(Wi.H,kt).afterClosed().subscribe(Ot=>{Ot&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(rt){return rt?`${this.selection.isSelected(rt)?"deselect":"select"} row ${rt.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(rt){this.loading=!0;const kt=this.storeService.get("password_namespace_attributes").map(Ze=>{const Ot=Ze.split(":");return Ot[Ot.length-1]});this.attributesManager.getLogins(rt.member.userId).subscribe(Ze=>{const Ot=Ze.filter(jt=>kt.includes(jt.friendlyNameParameter)),Qe=(0,w.kZ)();Qe.width="400px",Qe.data={userId:rt.member.userId,memberId:rt.member.id,logins:Ot},this.dialog.open(gn.m,Qe).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(rt){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:rt.member.voId,beanName:"Vo"},rt.member])}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.uw),m.Y36(A.x4),m.Y36(A.d6),m.Y36(e.H8),m.Y36(A.UA))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-sponsored-members-list"]],viewQuery:function(rt,kt){if(1&rt&&(m.Gf(w.l9,7),m.Gf(bi.YE,7)),2&rt){let Ze;m.iGM(Ze=m.CRH())&&(kt.child=Ze.first),m.iGM(Ze=m.CRH())&&(kt.matSort=Ze.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[m.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",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","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"],["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(rt,kt){1&rt&&(m.TgZ(0,"div",0),m.TgZ(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportData",function(Ot){return kt.exportData(Ot)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,St,2,3,"th",4),m.YNc(5,ot,2,2,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,Ke,3,3,"th",7),m.YNc(8,vt,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,U,3,3,"th",7),m.YNc(11,qe,3,3,"td",10),m.BQk(),m.ynx(12,11),m.YNc(13,gt,3,3,"th",12),m.YNc(14,Dt,3,3,"td",10),m.BQk(),m.ynx(15,13),m.YNc(16,ri,3,3,"th",12),m.YNc(17,ti,3,3,"td",10),m.BQk(),m.ynx(18,14),m.YNc(19,Di,3,3,"th",7),m.YNc(20,$i,2,1,"td",10),m.BQk(),m.ynx(21,15),m.YNc(22,qi,1,0,"th",7),m.YNc(23,Ji,5,1,"td",10),m.BQk(),m.YNc(24,_n,1,0,"tr",16),m.YNc(25,Ri,1,12,"tr",17),m.qZA(),m.qZA(),m.qZA(),m.YNc(26,sn,3,3,"perun-web-apps-alert",18),m.YNc(27,Xi,3,3,"perun-web-apps-alert",18)),2&rt&&(m.Q6J("hidden",0===kt.dataSource.filteredData.length||0===kt.sponsoredMembers.length),m.xp6(1),m.Q6J("pageSizeOptions",kt.pageSizeOptions)("dataLength",kt.dataSource.filteredData.length)("tableId",kt.tableId),m.xp6(1),m.Q6J("dataSource",kt.dataSource),m.xp6(22),m.Q6J("matHeaderRowDef",kt.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",kt.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===kt.dataSource.filteredData.length&&0!==kt.sponsoredMembers.length),m.xp6(1),m.Q6J("ngIf",0===kt.sponsoredMembers.length))},directives:[cn.l,yi.BZ,bi.YE,yi.w1,yi.fO,yi.ge,T.oG,yi.Dz,yi.ev,bi.nU,C.sg,Pe.lW,le.Hw,C.O5,Oe.gM,yi.as,yi.XQ,yi.nj,yi.Gk,Ki.YH,Tn.rH,ie.w],pipes:[B.X$,Fe.d,rn.D,st.p],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();function an(Mt,Qt){if(1&Mt&&(m.TgZ(0,"button",10),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(),kt=m.MAs(9);m.Q6J("disabled",rt.findSponsorsAuth&&0===rt.voSponsors.length)("matMenuTriggerFor",kt),m.xp6(1),m.hij(" ",m.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function dn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCreate()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function wn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onGenerate()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function xn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",12),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onSponsorExistingMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function Oi(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",13)}function kn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"app-sponsored-members-list",14),m.NdJ("refreshTable",function(){return m.CHM(rt),m.oxw().refresh()}),m.qZA()}if(2&Mt){const rt=m.oxw();m.Q6J("disableRouting",!rt.routeAuth)("selection",rt.selection)("filterValue",rt.searchString)("sponsoredMembers",rt.members)("tableId",rt.tableId)}}let Nn=(()=>{class Mt{constructor(rt,kt,Ze,Ot,Qe,Tt){this.membersManager=rt,this.dialog=kt,this.authResolver=Ze,this.storeService=Ot,this.authzResolver=Qe,this.entityStorageService=Tt,this.members=[],this.voSponsors=[],this.selection=new b.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=_.Bf,this.attrNames=[Se.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights();const rt=["SPONSOR"],kt=new Map;this.authResolver.setRolesAuthorization(rt,this.vo,kt),this.findSponsorsAuth=kt.get(rt[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(O.u.SPONSOR,this.vo.id,"Vo",[Se.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(Ot=>{this.voSponsors=Ot,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 rt=(0,w.kZ)();rt.width="620px",rt.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(Q,rt).afterClosed().subscribe(Ze=>{Ze&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}onGenerate(){const rt=(0,w.kZ)();rt.width="750px",rt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Yt,rt).afterClosed().subscribe(Ze=>{Ze&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}onSponsorExistingMember(){const rt=(0,w.kZ)();rt.width="650px",rt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ai,rt).afterClosed().subscribe(Ze=>{Ze&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(rt=>{this.selection.clear(),this.members=rt,this.setAuthRights(),this.loading=!1})}applyFilter(rt){this.searchString=rt}}return Mt.id="VoSponsoredMembersComponent",Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(e.uq),m.Y36(g.uw),m.Y36(A.x4),m.Y36(A.d6),m.Y36(e.Ct),m.Y36(A.fb))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(rt,kt){2&rt&&m.ekj("router-component",kt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["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","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"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["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(rt,kt){1&rt&&(m.TgZ(0,"div"),m.TgZ(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 kt.refresh()}),m.qZA(),m.TgZ(5,"span",2),m.ALo(6,"translate"),m.YNc(7,an,3,5,"button",3),m.qZA(),m.TgZ(8,"mat-menu",null,4),m.YNc(10,dn,3,3,"button",5),m.YNc(11,wn,3,3,"button",5),m.qZA(),m.YNc(12,xn,3,3,"button",6),m.TgZ(13,"perun-web-apps-immediate-filter",7),m.NdJ("filter",function(Ot){return kt.applyFilter(Ot)}),m.qZA(),m.YNc(14,Oi,1,0,"mat-spinner",8),m.YNc(15,kn,1,5,"app-sponsored-members-list",9),m.qZA()),2&rt&&(m.xp6(2),m.Oqu(m.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),m.xp6(3),m.s9C("matTooltip",m.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),m.Q6J("matTooltipDisabled",!(kt.findSponsorsAuth&&0===kt.voSponsors.length)),m.xp6(2),m.Q6J("ngIf",kt.createAuth||kt.generateAuth),m.xp6(3),m.Q6J("ngIf",kt.createAuth),m.xp6(1),m.Q6J("ngIf",kt.generateAuth),m.xp6(1),m.Q6J("ngIf",kt.setSponsorshipAuth),m.xp6(1),m.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),m.xp6(1),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading))},directives:[mi.t,Oe.gM,C.O5,Pe.lW,re.p6,re.VK,re.OP,Ye.L,L.$g,en],pipes:[B.X$],styles:[""]}),Mt})()},25309:(Xe,_e,p)=>{"use strict";p.d(_e,{Y:()=>Ue});var e=p(32105),b=p(9244),_=p(36908),w=p(11717),g=p(20449),A=p(48966),E=p(93075),C=p(5e3),O=p(51062),S=p(11735),m=p(69808),B=p(20773),L=p(67322),J=p(98833),ie=p(47423),ge=p(29772);function X(ve,He){1&ve&&C._UZ(0,"mat-spinner",3)}function Ne(ve,He){if(1&ve){const z=C.EpF();C.TgZ(0,"div"),C.TgZ(1,"div",4),C.TgZ(2,"mat-form-field"),C._UZ(3,"input",5),C.ALo(4,"translate"),C.TgZ(5,"mat-error"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.qZA(),C.TgZ(8,"mat-form-field"),C._UZ(9,"input",6),C.ALo(10,"translate"),C.TgZ(11,"mat-error"),C._uU(12),C.ALo(13,"translate"),C.qZA(),C.qZA(),C.qZA(),C.TgZ(14,"div",7),C.TgZ(15,"button",8),C.NdJ("click",function(){return C.CHM(z),C.oxw().onCancel()}),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"div",9),C.ALo(19,"translate"),C.TgZ(20,"button",10),C.NdJ("click",function(){return C.CHM(z),C.oxw().onSubmit()}),C._uU(21),C.ALo(22,"translate"),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&ve){const z=C.oxw();C.xp6(3),C.s9C("placeholder",C.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),C.Q6J("formControl",z.fullNameCtrl),C.xp6(3),C.hij(" ",C.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),C.xp6(3),C.s9C("placeholder",C.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),C.Q6J("formControl",z.shortNameCtrl),C.xp6(3),C.hij(" ",C.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),C.xp6(4),C.hij(" ",C.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),C.Q6J("matTooltipDisabled",z.shortNameCtrl.valid&&z.fullNameCtrl.valid),C.xp6(2),C.Q6J("disabled",z.shortNameCtrl.invalid||z.fullNameCtrl.invalid),C.xp6(1),C.hij(" ",C.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let ue=(()=>{class ve{constructor(z,I,me,Ae,Me,pe){this.dialogRef=z,this.data=I,this.notificator=me,this.voService=Ae,this.translate=Me,this.router=pe,Me.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(we=>this.successMessage=we)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern("^[\\w.-]+$"),E.kI.maxLength(33)]),this.fullNameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(z=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",z.id]),this.dialogRef.close(!0)},()=>this.loading=!1)}}return ve.\u0275fac=function(z){return new(z||ve)(C.Y36(A.so),C.Y36(A.WI),C.Y36(_.V6),C.Y36(e.YF),C.Y36(O.sK),C.Y36(S.F0))},ve.\u0275cmp=C.Xpm({type:ve,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(z,I){1&z&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,X,1,0,"mat-spinner",1),C.YNc(5,Ne,23,25,"div",2),C.qZA()),2&z&&(C.Tol(I.theme),C.xp6(2),C.Oqu(C.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),C.xp6(2),C.Q6J("ngIf",I.loading),C.xp6(1),C.Q6J("ngIf",!I.loading))},directives:[A.uh,m.O5,B.$g,A.xY,L.KE,J.Nt,E.Fj,E.Q7,E.JJ,E.oH,L.TO,A.H8,ie.lW,ge.gM],pipes:[O.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}}"]}),ve})();var Oe=p(10036),T=p(77968),Z=p(4235),W=p(25245),Y=p(96214),ee=p(7434),ce=p(87831);function le(ve,He){if(1&ve){const z=C.EpF();C.TgZ(0,"button",9),C.NdJ("click",function(){return C.CHM(z),C.oxw().onCreateVo()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&ve&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function Pe(ve,He){if(1&ve){const z=C.EpF();C.TgZ(0,"button",10),C.NdJ("click",function(){return C.CHM(z),C.oxw().onRemoveVo()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}if(2&ve){const z=C.oxw();C.Q6J("disabled",0===z.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function Fe(ve,He){1&ve&&C._UZ(0,"mat-spinner",11)}function ze(ve,He){if(1&ve&&C._UZ(0,"perun-web-apps-vos-list",12),2&ve){const z=C.oxw();C.Q6J("tableId",z.tableId)("displayedColumns",z.displayedColumns)("filterValue",z.filterValue)("recentIds",z.recentIds)("selection",z.selection)("vos",z.vos)}}const ae=function(){return{color:"black"}};let Ue=(()=>{class ve{constructor(z,I,me,Ae,Me,pe){this.sideMenuService=z,this.voService=I,this.guiAuthResolver=me,this.dialog=Ae,this.notificator=Me,this.apiRequest=pe,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=Oe.tw}ngOnInit(){this.loading=!0,this.selection=new g.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(z=>{this.vos=z,this.recentIds=(0,b.vL)("vos"),this.loading=!1},z=>{const I=z.error;"PrivilegeException"===I.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(I)})}applyFilter(z){this.filterValue=z}onCreateVo(){const z=(0,b.kZ)();z.width="610px",z.data={theme:"vo-theme"},this.dialog.open(ue,z).afterClosed().subscribe(me=>{me&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const z=(0,b.kZ)();z.width="500px",z.data={theme:"vo-theme",vos:[this.selection.selected[0]]},this.dialog.open(w.o,z).afterClosed().subscribe(me=>{me&&this.refreshTable()})}}return ve.id="VoSelectPageComponent",ve.\u0275fac=function(z){return new(z||ve)(C.Y36(T.D),C.Y36(e.YF),C.Y36(_.x4),C.Y36(A.uw),C.Y36(_.V6),C.Y36(_.F5))},ve.\u0275cmp=C.Xpm({type:ve,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(z,I){2&z&&C.ekj("router-component",I.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(z,I){1&z&&(C.TgZ(0,"div",0),C._UZ(1,"perun-web-apps-back-button"),C.TgZ(2,"h1",1),C._UZ(3,"mat-icon",2),C._uU(4),C.ALo(5,"translate"),C.qZA(),C.TgZ(6,"perun-web-apps-refresh-button",3),C.NdJ("refresh",function(){return I.refreshTable()}),C.qZA(),C.YNc(7,le,3,3,"button",4),C.YNc(8,Pe,3,4,"button",5),C.TgZ(9,"perun-web-apps-immediate-filter",6),C.NdJ("filter",function(Ae){return I.applyFilter(Ae)}),C.qZA(),C.YNc(10,Fe,1,0,"mat-spinner",7),C.YNc(11,ze,1,6,"perun-web-apps-vos-list",8),C.qZA()),2&z&&(C.xp6(3),C.Q6J("ngStyle",C.DdM(10,ae)),C.xp6(1),C.hij(" ",C.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),C.xp6(3),C.Q6J("ngIf",I.createAuth),C.xp6(1),C.Q6J("ngIf",I.deleteAuth),C.xp6(1),C.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),C.xp6(1),C.Q6J("ngIf",I.loading),C.xp6(1),C.Q6J("ngIf",!I.loading))},directives:[Z.W,W.Hw,m.PC,Y.t,m.O5,ie.lW,ee.L,B.$g,ce.Z],pipes:[O.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),ve})()},9193:(Xe,_e,p)=>{"use strict";var e=p(22313),b=p(5e3),_=p(11735);let w=(()=>{class fe{}return fe.\u0275fac=function(Le){return new(Le||fe)},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(Le,pt){},styles:[""]}),fe})();var g=p(32105),A=p(36908),E=p(9244),C=p(16074),O=p(77968),S=p(51062),m=p(48966),B=p(2638),L=p(77446),J=p(93075),ie=p(69808),ge=p(25245),X=p(47423),Ne=p(20773),ue=p(98380),Oe=p(90508),T=p(29772);function Z(fe,at){1&fe&&b._UZ(0,"mat-spinner",3)}function W(fe,at){1&fe&&(b.TgZ(0,"perun-web-apps-alert",4),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function Y(fe,at){if(1&fe&&(b.TgZ(0,"div",7),b.TgZ(1,"a",8),b.TgZ(2,"span",9),b._uU(3),b.qZA(),b._UZ(4,"mat-icon",10),b.TgZ(5,"p",11),b._uU(6),b.qZA(),b.qZA(),b.qZA()),2&fe){const Le=at.$implicit;b.xp6(1),b.Gre("",Le.style," item-itself"),b.s9C("matTooltip",Le.tooltip),b.Q6J("routerLink",Le.url),b.xp6(2),b.Oqu(Le.type),b.xp6(1),b.Q6J("svgIcon",Le.cssIcon),b.xp6(2),b.Oqu(Le.label)}}function ee(fe,at){if(1&fe&&(b.TgZ(0,"div",5),b.YNc(1,Y,7,8,"div",6),b.qZA()),2&fe){const Le=b.oxw();b.xp6(1),b.Q6J("ngForOf",Le.items)}}let ce=(()=>{class fe{constructor(Le,pt,Vt,qt){this.vosManager=Le,this.groupsManager=pt,this.authResolver=Vt,this.facilitiesManager=qt,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,E.j4)("recent");for(const Le of this.recentItems)switch(Le.type){case"Vo":this.vosIds.push(Le.id);break;case"Group":this.groupsIds.push(Le.id);break;case"Facility":this.facilitiesIds.push(Le.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(Le=>{this.vos=Le,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(Le=>{this.groups=Le,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(Le=>{this.facilities=Le,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const Le of this.recentItems)switch(Le.type){case"Vo":{const pt=this.vos.filter(Vt=>Vt.id===Le.id)[0];pt&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${pt.id}`,label:pt.name,tooltip:pt.name,style:"vo-btn",type:"Organization"});break}case"Group":{const pt=this.groups.filter(Vt=>Vt.id===Le.id)[0];pt&&this.items.push({cssIcon:"perun-group",url:`/organizations/${pt.voId}/groups/${pt.id}`,label:pt.shortName,tooltip:`${Le.voName} : ${pt.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const pt=this.facilities.filter(Vt=>Vt.id===Le.id)[0];pt&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${pt.id}`,label:pt.name,tooltip:pt.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(g.YF),b.Y36(g.ff),b.Y36(A.x4),b.Y36(g.IQ))},fe.\u0275cmp=b.Xpm({type:fe,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"],["queryParamsHandling","merge",3,"routerLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(Le,pt){1&Le&&(b.YNc(0,Z,1,0,"mat-spinner",0),b.YNc(1,W,3,3,"perun-web-apps-alert",1),b.YNc(2,ee,2,1,"div",2)),2&Le&&(b.Q6J("ngIf",pt.loading),b.xp6(1),b.Q6J("ngIf",0===pt.items.length&&!pt.loading),b.xp6(1),b.Q6J("ngIf",pt.items.length>0))},directives:[ie.O5,Ne.$g,ue.w,ie.sg,Oe.wG,_.yS,T.gM,ge.Hw],pipes:[S.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}"]}),fe})();var le=p(87831),Pe=p(24179),Fe=p(62109),ze=p(74010);function ae(fe,at){1&fe&&b._UZ(0,"mat-spinner",7)}const Ue=function(){return["id","recent","shortName","name"]};function ve(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-vos-list",8),b.qZA()),2&fe){const Le=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(4,Ue))("recentIds",Le.recentIds)("vos",Le.objects)}}const He=function(){return["id","recent","vo","name","description"]};function z(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-groups-list",9),b.qZA()),2&fe){const Le=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(4,He))("groups",Le.objects)("recentIds",Le.recentIds)}}const I=function(){return["id","recent","name","vo","facility"]};function me(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-resources-list",10),b.qZA()),2&fe){const Le=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(5,I))("resources",Le.objects)("recentIds",Le.recentIds)("routingVo",!0)}}const Ae=function(){return["id","recent","name","description"]};function Me(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-facilities-list",11),b.qZA()),2&fe){const Le=b.oxw(2);b.xp6(1),b.Q6J("displayedColumns",b.DdM(4,Ae))("facilities",Le.objects)("pageSizeOptions",null)("recentIds",Le.recentIds)}}function pe(fe,at){if(1&fe&&(b.TgZ(0,"div"),b.YNc(1,ve,2,5,"span",6),b.YNc(2,z,2,5,"span",6),b.YNc(3,me,2,6,"span",6),b.YNc(4,Me,2,5,"span",6),b.qZA()),2&fe){const Le=b.oxw();b.xp6(1),b.Q6J("ngIf","Vo"===Le.primaryObject),b.xp6(1),b.Q6J("ngIf","Group"===Le.primaryObject),b.xp6(1),b.Q6J("ngIf","Resource"===Le.primaryObject),b.xp6(1),b.Q6J("ngIf","Facility"===Le.primaryObject)}}let we=(()=>{class fe{constructor(Le,pt,Vt){this.authzResolver=Le,this.guiAuthResolver=pt,this.resourceService=Vt,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(Le=>{this.objects=Le,this.recentIds=(0,E.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(Le=>{this.objects=Le,this.recentIds=(0,E.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(Le=>{this.objects=Le,this.recentIds=(0,E.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(Le=>{this.objects=Le.map(pt=>({facility:pt})),this.recentIds=(0,E.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(g.Ct),b.Y36(A.x4),b.Y36(g.xk))},fe.\u0275cmp=b.Xpm({type:fe,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(Le,pt){1&Le&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b._UZ(2,"mat-icon",2),b._uU(3),b.ALo(4,"translate"),b.TgZ(5,"span",3),b.ALo(6,"translate"),b.TgZ(7,"mat-icon",4),b._uU(8,"info_outline"),b.qZA(),b.qZA(),b.qZA(),b.YNc(9,ae,1,0,"mat-spinner",5),b.YNc(10,pe,5,4,"div",6),b.qZA()),2&Le&&(b.xp6(2),b.Q6J("svgIcon",pt.svgIcon),b.xp6(1),b.hij(" ",b.lcZ(4,5,pt.title)," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(6,7,pt.roleTooltipInfo)),b.xp6(4),b.Q6J("ngIf",pt.loading),b.xp6(1),b.Q6J("ngIf",!pt.loading))},directives:[ge.Hw,T.gM,ie.O5,Ne.$g,le.Z,Pe.W,Fe.C,ze.X],pipes:[S.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}"]}),fe})();var $e=p(31359);function Je(fe,at){if(1&fe){const Le=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"mat-checkbox",8),b.NdJ("change",function(Vt){const ni=b.CHM(Le).$implicit,pi=b.oxw();return Vt?pi.changeRoleView(ni):null}),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.qZA()}if(2&fe){const Le=at.$implicit,pt=b.oxw();b.xp6(1),b.Q6J("checked",pt.isRoleShowed(Le)),b.xp6(1),b.Oqu(b.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+Le))}}function nt(fe,at){if(1&fe){const Le=b.EpF();b.TgZ(0,"button",15),b.NdJ("click",function(){return b.CHM(Le),b.oxw(2).rightSettingOpened=!0}),b.TgZ(1,"mat-icon"),b._uU(2,"settings"),b.qZA(),b.qZA()}}function ke(fe,at){1&fe&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function H(fe,at){1&fe&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function he(fe,at){if(1&fe){const Le=b.EpF();b.TgZ(0,"button",23),b.NdJ("click",function(){return b.CHM(Le),b.oxw(3).goToUserProfile()}),b.TgZ(1,"mat-icon",24),b._uU(2,"exit_to_app"),b.qZA(),b._uU(3),b.ALo(4,"translate"),b.qZA()}if(2&fe){const Le=b.oxw(3);b.xp6(3),b.AsE("",b.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",Le.userProfileName," ")}}const P=function(){return["/myProfile"]};function R(fe,at){if(1&fe&&(b.TgZ(0,"div"),b.TgZ(1,"div",16),b.TgZ(2,"div",17),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.TgZ(5,"div",18),b.YNc(6,ke,3,3,"span",14),b.YNc(7,H,3,3,"span",14),b.qZA(),b.TgZ(8,"div",19),b.TgZ(9,"button",20),b._UZ(10,"mat-icon",21),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.YNc(13,he,5,4,"button",22),b.qZA(),b.qZA(),b.qZA()),2&fe){const Le=b.oxw(2);b.xp6(3),b.hij(" ",b.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),b.xp6(3),b.Q6J("ngIf",!Le.userProfileUrl),b.xp6(1),b.Q6J("ngIf",Le.userProfileUrl),b.xp6(2),b.Q6J("routerLink",b.DdM(10,P)),b.xp6(2),b.hij(" ",b.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),b.xp6(2),b.Q6J("ngIf",Le.userProfileUrl)}}function V(fe,at){1&fe&&(b.TgZ(0,"span"),b.TgZ(1,"div",3),b._uU(2),b.ALo(3,"translate"),b.qZA(),b._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),b.qZA()),2&fe&&(b.xp6(2),b.hij(" ",b.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function Q(fe,at){1&fe&&(b.TgZ(0,"div",27),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function Se(fe,at){if(1&fe&&b._UZ(0,"app-perun-web-apps-dashboard-card",30),2&fe){const Le=b.oxw().$implicit,pt=b.oxw(3);b.Q6J("roleName",Le)("role",pt.roles[Le])}}function je(fe,at){if(1&fe&&(b.TgZ(0,"div",28),b.YNc(1,Se,1,2,"app-perun-web-apps-dashboard-card",29),b.qZA()),2&fe){const Le=at.$implicit,pt=b.oxw(3);b.xp6(1),b.Q6J("ngIf",pt.isRoleShowed(Le))}}function Ye(fe,at){if(1&fe&&(b.TgZ(0,"div"),b.YNc(1,V,5,3,"span",14),b.YNc(2,Q,3,3,"div",25),b.TgZ(3,"div"),b.YNc(4,je,2,1,"div",26),b.qZA(),b.qZA()),2&fe){const Le=b.oxw(2);b.xp6(1),b.Q6J("ngIf",Le.recentlyViewedShow),b.xp6(1),b.Q6J("ngIf",Le.rolesToHide.toString()!==Le.roleNames.toString()),b.xp6(2),b.Q6J("ngForOf",Le.roleNames)}}function ye(fe,at){if(1&fe&&(b.TgZ(0,"div",9),b.TgZ(1,"h1",10),b._UZ(2,"mat-icon",11),b.TgZ(3,"span",12),b._uU(4),b.ALo(5,"translate"),b.ALo(6,"userFullName"),b.qZA(),b.YNc(7,nt,3,0,"button",13),b.qZA(),b.YNc(8,R,14,11,"div",14),b.YNc(9,Ye,5,3,"div",14),b.qZA()),2&fe){const Le=b.oxw();b.xp6(4),b.AsE("",b.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",b.lcZ(6,7,Le.user),""),b.xp6(3),b.Q6J("ngIf",!Le.isOnlySelfRole),b.xp6(1),b.Q6J("ngIf",Le.isOnlySelfRole),b.xp6(1),b.Q6J("ngIf",!Le.isOnlySelfRole)}}let re=(()=>{class fe{constructor(Le,pt,Vt,qt,ni,pi,oi,Si,Gi,An){this.userManager=Le,this.storeService=pt,this.sideMenuService=Vt,this.route=qt,this.router=ni,this.notificator=pi,this.translateService=oi,this.dialog=Si,this.apiRequestConfiguration=Gi,this.otherApplicationService=An,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","FACILITYOBSERVER","RESOURCEOBSERVER"],oi.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(jn=>this.mailSuccessMessage=jn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const Le=Object.keys(this.roles);this.isOnlySelfRole=Le.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(pt=>Le.includes(pt)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(Le){if(this.isRoleShowed(Le)){const pt=[];for(const Vt of this.roleNames)this.isRoleShowed(Vt)||pt.push(Vt),Vt===Le&&pt.push(Vt);this.rolesToHide=pt}else this.rolesToHide=this.rolesToHide.filter(pt=>pt!==Le);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(Le){return!this.rolesToHide.includes(Le)}validatePreferredMailChange(){const Le=this.route.snapshot.queryParamMap,pt=Le.get("token"),Vt=Le.get("u");pt&&Vt&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(pt,Number.parseInt(Vt,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const qt=(0,E.kZ)();qt.width="600px",this.dialog.open(C.qD,qt).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}getDashboardSettings(){const Le=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===Le||Le;const pt=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===pt?[]:pt}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(g.Fv),b.Y36(A.d6),b.Y36(O.D),b.Y36(_.gz),b.Y36(_.F0),b.Y36(A.V6),b.Y36(S.sK),b.Y36(m.uw),b.Y36(A.F5),b.Y36(A.jq))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(Le,pt){2&Le&&b.ekj("router-component",pt.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"],["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(Le,pt){1&Le&&(b.TgZ(0,"mat-sidenav-container",0),b.TgZ(1,"mat-sidenav",1),b.NdJ("openedChange",function(qt){return pt.rightSettingOpened=qt}),b.TgZ(2,"div",2),b.TgZ(3,"div",3),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"mat-checkbox",4),b.NdJ("ngModelChange",function(qt){return pt.recentlyViewedShow=qt})("change",function(qt){return qt?pt.recentlyViewedChanged():null}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA(),b.TgZ(10,"div",5),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.YNc(13,Je,4,4,"div",6),b.qZA(),b.qZA(),b.TgZ(14,"mat-sidenav-content"),b.YNc(15,ye,10,9,"div",7),b.qZA(),b.qZA()),2&Le&&(b.xp6(1),b.Q6J("opened",pt.rightSettingOpened),b.xp6(3),b.Oqu(b.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),b.xp6(3),b.Q6J("ngModel",pt.recentlyViewedShow),b.xp6(1),b.Oqu(b.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),b.xp6(3),b.Oqu(b.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),b.xp6(2),b.Q6J("ngForOf",pt.roleNames),b.xp6(2),b.Q6J("ngIf",void 0!==pt.user))},directives:[B.TM,B.JX,L.oG,J.JJ,J.On,ie.sg,B.Rh,ie.O5,ge.Hw,X.lW,_.rH,ce,we],pipes:[S.X$,$e.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}"]}),fe})();var r=p(4235);let o=(()=>{class fe{}return fe.\u0275fac=function(Le){return new(Le||fe)},fe.\u0275cmp=b.Xpm({type:fe,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(Le,pt){1&Le&&(b.TgZ(0,"div",0),b._UZ(1,"perun-web-apps-back-button"),b.TgZ(2,"h1",1),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.qZA()),2&Le&&(b.xp6(3),b.Oqu(b.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[r.W],pipes:[S.X$],styles:[""]}),fe})();var d=p(387),l=p(67322),s=p(98833),i=p(63189);let t=(()=>{class fe{}return fe.\u0275fac=function(Le){return new(Le||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[ie.ez,X.ot,ge.Ps,_.Bz,d.ez,S.aw,l.lN,J.UX,s.c,i.r]]}),fe})(),n=(()=>{class fe{constructor(Le,pt){this.auth=Le,this.router=pt}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(A.e8),b.Y36(_.F0))},fe.\u0275cmp=b.Xpm({type:fe,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(Le,pt){1&Le&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.TgZ(2,"div",2),b.TgZ(3,"h4",3),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"button",4),b.NdJ("click",function(){return pt.startAuth()}),b._uU(7),b.ALo(8,"translate"),b.TgZ(9,"mat-icon"),b._uU(10," login "),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()),2&Le&&(b.xp6(4),b.hij(" ",b.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),b.xp6(3),b.hij(" ",b.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[X.lW,ge.Hw],pipes:[S.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),fe})();var a=p(41619);function c(fe,at){if(1&fe&&(b.TgZ(0,"div",8),b._UZ(1,"div",9),b.qZA()),2&fe){const Le=b.oxw();b.xp6(1),b.Q6J("innerHTML",Le.logo,b.oJD)}}function h(fe,at){if(1&fe&&(b.TgZ(0,"div",10),b._UZ(1,"div",11),b._UZ(2,"mat-icon",12),b.qZA()),2&fe){const Le=b.oxw();b.xp6(1),b.Q6J("innerHTML",Le.logo,b.oJD)}}function x(fe,at){if(1&fe&&(b.TgZ(0,"div",8),b._UZ(1,"a",9),b.qZA()),2&fe){const Le=b.oxw();b.xp6(1),b.Q6J("innerHTML",Le.logo,b.oJD)}}const We=function(fe){return{color:fe}};function At(fe,at){if(1&fe&&(b.TgZ(0,"p",13),b._uU(1),b.qZA()),2&fe){const Le=b.oxw();b.Q6J("ngStyle",b.VKq(2,We,Le.textColor)),b.xp6(1),b.hij(" ",Le.headerTitle," ")}}const Ht=function(fe,at){return{background:fe,color:at}},lt=function(fe,at){return{"min-height":fe,"background-color":at}};let Ut=(()=>{class fe{constructor(Le,pt,Vt,qt){this.storeService=Le,this.sanitizer=pt,this.preferredLangService=Vt,this.translateService=qt,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const Le=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(Le)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(A.d6),b.Y36(e.H7),b.Y36(A.BN),b.Y36(S.sK))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(Le,pt){1&Le&&(b.TgZ(0,"div",0),b.YNc(1,c,2,1,"div",1),b.YNc(2,h,3,1,"div",2),b.YNc(3,x,2,1,"div",1),b.YNc(4,At,2,4,"p",3),b.qZA(),b.TgZ(5,"div",4),b.TgZ(6,"div",5),b.TgZ(7,"div",6),b._UZ(8,"router-outlet"),b.qZA(),b.TgZ(9,"div",7),b._UZ(10,"perun-web-apps-footer"),b.qZA(),b.qZA(),b.qZA()),2&Le&&(b.Q6J("ngStyle",b.WLB(6,Ht,pt.headerBackgroundColor,pt.headerTextColor)),b.xp6(1),b.Q6J("ngIf","admin-gui"===pt.application),b.xp6(1),b.Q6J("ngIf","publications"===pt.application),b.xp6(1),b.Q6J("ngIf","user-profile"===pt.application),b.xp6(1),b.Q6J("ngIf",!!pt.headerTitle),b.xp6(2),b.Q6J("ngStyle",b.WLB(9,lt,pt.getContentInnerMinHeight(),pt.contentBackgroundColor)))},directives:[ie.PC,ie.O5,ge.Hw,_.lC,a.$],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}"]}),fe})();function mt(fe,at){1&fe&&(b.TgZ(0,"perun-web-apps-alert",8),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Te=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:d.t$},{path:"api-callback",component:w},{path:"login",component:n},{path:"service-access",component:(()=>{class fe{constructor(Le){this.authzService=Le,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new J.NI(null,[J.kI.required]),this.passwordCtrl=new J.NI(null,[J.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(Le=>{sessionStorage.setItem("baPrincipal",JSON.stringify(Le)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(g.Ct))},fe.\u0275cmp=b.Xpm({type:fe,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"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(Le,pt){1&Le&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.TgZ(2,"div",2),b.TgZ(3,"h2"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.YNc(6,mt,3,3,"perun-web-apps-alert",3),b.TgZ(7,"mat-form-field",4),b.TgZ(8,"mat-label"),b._uU(9),b.ALo(10,"translate"),b.qZA(),b._UZ(11,"input",5),b.TgZ(12,"mat-error"),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.qZA(),b.TgZ(15,"mat-form-field",4),b.TgZ(16,"mat-label"),b._uU(17),b.ALo(18,"translate"),b.qZA(),b._UZ(19,"input",6),b.TgZ(20,"mat-error"),b._uU(21),b.ALo(22,"translate"),b.qZA(),b.qZA(),b.TgZ(23,"button",7),b.NdJ("click",function(){return pt.startAuth()}),b._uU(24),b.ALo(25,"translate"),b.TgZ(26,"mat-icon"),b._uU(27," login "),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()),2&Le&&(b.xp6(4),b.Oqu(b.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),b.xp6(2),b.Q6J("ngIf",pt.wrongUsernameOrPassword),b.xp6(3),b.Oqu(b.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),b.xp6(2),b.Q6J("formControl",pt.usernameCtrl),b.xp6(2),b.hij(" ",b.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),b.xp6(4),b.Oqu(b.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),b.xp6(2),b.Q6J("formControl",pt.passwordCtrl)("type","password"),b.xp6(2),b.hij(" ",b.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),b.xp6(2),b.Q6J("disabled",pt.usernameCtrl.invalid||pt.passwordCtrl.invalid),b.xp6(1),b.hij(" ",b.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[ie.O5,ue.w,l.KE,l.hX,s.Nt,J.Fj,J.Q7,J.JJ,J.oH,l.TO,X.lW,ge.Hw],pipes:[S.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}"]}),fe})()},{path:"organizations",loadChildren:()=>Promise.all([p.e(357),p.e(228),p.e(243),p.e(902)]).then(p.bind(p,58902)).then(fe=>fe.VosModule)},{path:"admin",loadChildren:()=>Promise.all([p.e(357),p.e(142),p.e(228),p.e(417)]).then(p.bind(p,78417)).then(fe=>fe.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([p.e(357),p.e(142),p.e(228),p.e(417),p.e(243),p.e(958)]).then(p.bind(p,12958)).then(fe=>fe.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([p.e(357),p.e(142)]).then(p.bind(p,46142)).then(fe=>fe.UsersModule)},{path:"home",component:re},{path:"notAuthorized",component:d.y9},{path:"**",component:o}];let Ge=(()=>{class fe{}return fe.\u0275fac=function(Le){return new(Le||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[_.Bz.forRoot(Te,{preloadingStrategy:_.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],_.Bz]}),fe})();var j=p(72077),N=p(14264);class te{constructor(at,Le="/assets/i18n/",pt=".json"){this.http=at,this.prefix=Le,this.suffix=pt}getTranslation(at){return this.http.get(`${this.prefix}${at}${this.suffix}`)}}var oe=p(40520),Ie=p(76360);let ct=(()=>{class fe{}return fe.\u0275fac=function(Le){return new(Le||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({providers:[A.e8],imports:[[ie.ez]]}),fe})();var bt=p(81847),xt=p(4732),Yt=p(94856),It=p(55857),Rt=p(37240),Et=p(15592),Bt=p(75234),Jt=p(37380),ai=p(34904),mi=p(85243),bi=p(68056),yi=p(24219),Wi=p(25828),gn=p(10369),cn=p(14336),Ki=p(25309),Tn=p(86353),rn=p(3246),st=p(57788),St=p(80774),ot=p(25610);let vt=(()=>{class fe{constructor(){this.allowCachePages=[{type:"vo",components:[bt.y.id,xt.G.id,Yt.c.id,bi.z.id,yi.z.id,gn.w.id,rn.T.id]},{type:"group",components:[Bt.y.id,Et.u.id,Rt.q.id,It.W.id,cn.Z.id]},{type:"facility",components:[Jt.o.id,ai.f.id,ot._.id]},{type:"member",components:[mi.j.id]},{type:"admin",components:[Wi.t.id,st.g.id,St.F.id]},{type:"entitySelect",components:[Ki.Y.id,Tn.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;for(const Le of this.allowCachePages)this.typeToComponentToHandlers.set(Le.type,new Map)}static getCurrentTimestamp(){return+Date.now()}static getComponentName(Le){return Le.id}static getPath(Le){var pt,Vt;return null!==(Vt=null===(pt=Le.routeConfig)||void 0===pt?void 0:pt.path)&&void 0!==Vt?Vt:""}shouldReuseRoute(Le,pt){return this.checkResets(pt),Le.routeConfig===pt.routeConfig}retrieve(Le){if(Le.component){const pt=fe.getComponentName(Le.component);for(const Vt of this.allowCachePages)if(Vt.components.includes(pt)){const qt=this.typeToComponentToHandlers.get(Vt.type).get(pt);return void 0===qt?null:qt.routeHandle}}return null}shouldAttach(Le){if(!this.isUserNavigatingBack)return!1;if(Le.component){const pt=fe.getComponentName(Le.component);for(const Vt of this.allowCachePages){const qt=this.typeToComponentToHandlers.get(Vt.type).get(pt);if(void 0!==qt&&fe.getCurrentTimestamp()-qt.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();const Vt=this.getComponentType(Le);this.typeToComponentToHandlers.get(Vt).set(fe.getComponentName(Le.component),{routeHandle:pt,saveTimeStamp:fe.getCurrentTimestamp()})}}setLastNavigationType(Le){this.isUserNavigatingBack="back"===Le}checkResets(Le){const pt=fe.getPath(Le);for(const Vt of this.resets)if(Vt.resetPath===pt){const qt=String(Le.params[Vt.param]);null!==Vt.lastValue&&Vt.lastValue!==qt&&this.typeToComponentToHandlers.get(Vt.resetType).clear(),Vt.lastValue=qt}}getComponentType(Le){const pt=fe.getComponentName(Le.component);for(const Vt of this.allowCachePages)if(Vt.components.includes(pt))return Vt.type;return null}}return fe.\u0275fac=function(Le){return new(Le||fe)},fe.\u0275prov=b.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const U=new b.OlP("perun-api-service");let qe=(()=>{class fe{constructor(Le,pt,Vt,qt,ni){this.http=Le,this.storeService=pt,this.authzSevice=Vt,this.titleService=qt,this.utilsService=ni}initializeColors(Le,pt){return new Promise(Vt=>{pt.forEach(qt=>{const ni=this.storeService.get("theme",qt.configValue);document.documentElement.style.setProperty(qt.cssVariable,ni)}),Le.forEach(qt=>{const ni=this.storeService.get("theme",qt.configValue);document.documentElement.style.setProperty(qt.cssVariable,ni),this.setEntityTheme(qt.entity,ni)}),Vt()})}setEntityTheme(Le,pt){const Vt=function gt(fe){return[Dt(tinycolor(fe).lighten(52),"50"),Dt(tinycolor(fe).lighten(37),"100"),Dt(tinycolor(fe).lighten(26),"200"),Dt(tinycolor(fe).lighten(12),"300"),Dt(tinycolor(fe).lighten(6),"400"),Dt(tinycolor(fe),"500"),Dt(tinycolor(fe).darken(6),"600"),Dt(tinycolor(fe).darken(12),"700"),Dt(tinycolor(fe).darken(18),"800"),Dt(tinycolor(fe).darken(24),"900"),Dt(tinycolor(fe).lighten(50).saturate(30),"A100"),Dt(tinycolor(fe).lighten(30).saturate(30),"A200"),Dt(tinycolor(fe).lighten(10).saturate(15),"A400"),Dt(tinycolor(fe).lighten(5).saturate(5),"A700")]}(pt);for(const qt of Vt){const oi=`--${Le}-theme-primary-contrast-${qt.name}`,Si=qt.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${Le}-theme-primary-${qt.name}`,`${qt.red},${qt.green},${qt.blue}`),document.documentElement.style.setProperty(oi,Si)}}loadAppDefaultConfig(){return new Promise(Le=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(pt=>{this.storeService.setDefaultConfig(pt),Le()})})}loadAppInstanceConfig(){return new Promise(Le=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(pt=>{var Vt;this.storeService.setInstanceConfig(pt);const qt=document.location.hostname;(null===(Vt=null==pt?void 0:pt.brandings)||void 0===Vt?void 0:Vt[qt])&&this.storeService.setBanding(qt),Le()},()=>{Le()})})}getNoCacheHeaders(){return new oe.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(Le=>{const pt=document.querySelector("link[rel*='icon']")||document.createElement("link");pt.type="image/x-icon",pt.rel="shortcut icon",pt.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(pt),Le()})}setApiUrl(){return new Promise(Le=>{let pt=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(pt=pt.replace("oauth","ba")),this.authzSevice.configuration.basePath=pt,this.titleService.setTitle(this.storeService.get("document_title","en")),Le()})}loadAppsConfig(){return new Promise((Le,pt)=>{this.utilsService.getAppsConfig().subscribe(Vt=>{this.storeService.setAppsConfig(Vt),Le()},Vt=>pt(Vt))})}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.LFG(oe.eN),b.LFG(A.d6),b.LFG(g.Ct),b.LFG(e.Dx),b.LFG(g.FW))},fe.\u0275prov=b.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function Dt(fe,at){const Le=tinycolor(fe),pt=Le.toRgb();return{name:at,hex:Le.toHexString(),darkContrast:Le.isLight(),red:pt.r,green:pt.g,blue:pt.b}}let ri=(()=>{class fe{constructor(Le,pt){this.data=Le,this.location=pt}redirect(){this.location.go("/"),location.reload()}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(m.WI),b.Y36(ie.Ye))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(Le,pt){1&Le&&(b.TgZ(0,"h2"),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"p"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"button",0),b.NdJ("click",function(){return pt.redirect()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA()),2&Le&&(b.xp6(1),b.hij(" ",b.lcZ(2,3,pt.data.title),"\n"),b.xp6(3),b.hij(" ",b.lcZ(5,5,pt.data.message),"\n"),b.xp6(4),b.hij(" ",b.lcZ(9,7,pt.data.action)," "))},pipes:[S.X$],styles:[""]}),fe})(),ti=(()=>{class fe{constructor(Le,pt){this.dialogRef=Le,this.data=pt}refresh(){location.reload()}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(m.so),b.Y36(m.WI))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(Le,pt){1&Le&&(b.TgZ(0,"h2"),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"p"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"button",0),b.NdJ("click",function(){return pt.refresh()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA()),2&Le&&(b.xp6(1),b.hij(" ",b.lcZ(2,3,pt.data.title),"\n"),b.xp6(3),b.hij(" ",b.lcZ(5,5,pt.data.message),"\n"),b.xp6(4),b.hij(" ",b.lcZ(9,7,pt.data.action)," "))},pipes:[S.X$],styles:[""]}),fe})(),Di=(()=>{class fe{constructor(Le,pt,Vt,qt,ni,pi){this.initAuthService=Le,this.appConfigService=pt,this.authzSevice=Vt,this.dialog=qt,this.location=ni,this.guiAuthResolver=pi,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_root_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu-link-active",cssVariable:"--side-link-active"},{configValue:"sidemenu-link-hover",cssVariable:"--side-link-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(Le=>{if("Invalid path"!==Le)throw console.error(Le),this.location.go("/"),location.reload(),Le;this.handleErr(Le)}).then(Le=>Le?this.initAuthService.loadPrincipal().catch(pt=>this.handleErr(pt)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}handleErr(Le){const pt=(0,E.kZ)();throw"Invalid path"===Le?(pt.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(ri,pt)):(pt.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===Le.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":Le.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(ti,pt)),console.error(Le),Le}loadPolicies(){return new Promise((Le,pt)=>{this.authzSevice.getAllPolicies().subscribe(Vt=>{this.guiAuthResolver.setPerunPolicies(Vt),Le()},Vt=>pt(Vt))})}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.LFG(A.v0),b.LFG(qe),b.LFG(g.Ct),b.LFG(m.uw),b.LFG(ie.Ye),b.LFG(A.x4))},fe.\u0275prov=b.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),wi=(()=>{class fe{}return fe.\u0275fac=function(Le){return new(Le||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[ie.ez,m.Is,X.ot,S.aw]]}),fe})();var $i=p(8929),qi=p(23753),Fi=p(36787),Ji=p(57138),_n=p(7625),Ni=p(75778),Ri=p(77604);function sn(fe){return getComputedStyle(fe)}function Xi(fe,at){for(var Le in at){var pt=at[Le];"number"==typeof pt&&(pt+="px"),fe.style[Le]=pt}return fe}function en(fe){var at=document.createElement("div");return at.className=fe,at}var an="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function dn(fe,at){if(!an)throw new Error("No element matching method supported");return an.call(fe,at)}function wn(fe){fe.remove?fe.remove():fe.parentNode&&fe.parentNode.removeChild(fe)}function xn(fe,at){return Array.prototype.filter.call(fe.children,function(Le){return dn(Le,at)})}var Oi_element_thumb=function(fe){return"ps__thumb-"+fe},Oi_element_rail=function(fe){return"ps__rail-"+fe},Oi_element_consuming="ps__child--consume",Oi_state_focus="ps--focus",Oi_state_clicking="ps--clicking",Oi_state_active=function(fe){return"ps--active-"+fe},Oi_state_scrolling=function(fe){return"ps--scrolling-"+fe},kn={x:null,y:null};function Nn(fe,at){var Le=fe.element.classList,pt=Oi_state_scrolling(at);Le.contains(pt)?clearTimeout(kn[at]):Le.add(pt)}function Mt(fe,at){kn[at]=setTimeout(function(){return fe.isAlive&&fe.element.classList.remove(Oi_state_scrolling(at))},fe.settings.scrollingThreshold)}var rt=function(at){this.element=at,this.handlers={}},kt={isEmpty:{configurable:!0}};rt.prototype.bind=function(at,Le){void 0===this.handlers[at]&&(this.handlers[at]=[]),this.handlers[at].push(Le),this.element.addEventListener(at,Le,!1)},rt.prototype.unbind=function(at,Le){var pt=this;this.handlers[at]=this.handlers[at].filter(function(Vt){return!(!Le||Vt===Le)||(pt.element.removeEventListener(at,Vt,!1),!1)})},rt.prototype.unbindAll=function(){for(var at in this.handlers)this.unbind(at)},kt.isEmpty.get=function(){var fe=this;return Object.keys(this.handlers).every(function(at){return 0===fe.handlers[at].length})},Object.defineProperties(rt.prototype,kt);var Ze=function(){this.eventElements=[]};function Ot(fe){if("function"==typeof window.CustomEvent)return new CustomEvent(fe);var at=document.createEvent("CustomEvent");return at.initCustomEvent(fe,!1,!1,void 0),at}function Qe(fe,at,Le,pt,Vt){var qt;if(void 0===pt&&(pt=!0),void 0===Vt&&(Vt=!1),"top"===at)qt=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==at)throw new Error("A proper axis should be provided");qt=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function Tt(fe,at,Le,pt,Vt){var qt=Le[0],ni=Le[1],pi=Le[2],oi=Le[3],Si=Le[4],Gi=Le[5];void 0===pt&&(pt=!0),void 0===Vt&&(Vt=!1);var An=fe.element;fe.reach[oi]=null,An[pi]<1&&(fe.reach[oi]="start"),An[pi]>fe[qt]-fe[ni]-1&&(fe.reach[oi]="end"),at&&(An.dispatchEvent(Ot("ps-scroll-"+oi)),at<0?An.dispatchEvent(Ot("ps-scroll-"+Si)):at>0&&An.dispatchEvent(Ot("ps-scroll-"+Gi)),pt&&function Qt(fe,at){Nn(fe,at),Mt(fe,at)}(fe,oi)),fe.reach[oi]&&(at||Vt)&&An.dispatchEvent(Ot("ps-"+oi+"-reach-"+fe.reach[oi]))}(fe,Le,qt,pt,Vt)}function jt(fe){return parseInt(fe,10)||0}Ze.prototype.eventElement=function(at){var Le=this.eventElements.filter(function(pt){return pt.element===at})[0];return Le||(Le=new rt(at),this.eventElements.push(Le)),Le},Ze.prototype.bind=function(at,Le,pt){this.eventElement(at).bind(Le,pt)},Ze.prototype.unbind=function(at,Le,pt){var Vt=this.eventElement(at);Vt.unbind(Le,pt),Vt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Vt),1)},Ze.prototype.unbindAll=function(){this.eventElements.forEach(function(at){return at.unbindAll()}),this.eventElements=[]},Ze.prototype.once=function(at,Le,pt){var Vt=this.eventElement(at),qt=function(ni){Vt.unbind(Le,qt),pt(ni)};Vt.bind(Le,qt)};var Ui={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Li(fe){var at=fe.element,Le=Math.floor(at.scrollTop),pt=at.getBoundingClientRect();fe.containerWidth=Math.ceil(pt.width),fe.containerHeight=Math.ceil(pt.height),fe.contentWidth=at.scrollWidth,fe.contentHeight=at.scrollHeight,at.contains(fe.scrollbarXRail)||(xn(at,Oi_element_rail("x")).forEach(function(Vt){return wn(Vt)}),at.appendChild(fe.scrollbarXRail)),at.contains(fe.scrollbarYRail)||(xn(at,Oi_element_rail("y")).forEach(function(Vt){return wn(Vt)}),at.appendChild(fe.scrollbarYRail)),!fe.settings.suppressScrollX&&fe.containerWidth+fe.settings.scrollXMarginOffset=fe.railXWidth-fe.scrollbarXWidth&&(fe.scrollbarXLeft=fe.railXWidth-fe.scrollbarXWidth),fe.scrollbarYTop>=fe.railYHeight-fe.scrollbarYHeight&&(fe.scrollbarYTop=fe.railYHeight-fe.scrollbarYHeight),function cr(fe,at){var Le={width:at.railXWidth},pt=Math.floor(fe.scrollTop);Le.left=at.isRtl?at.negativeScrollAdjustment+fe.scrollLeft+at.containerWidth-at.contentWidth:fe.scrollLeft,at.isScrollbarXUsingBottom?Le.bottom=at.scrollbarXBottom-pt:Le.top=at.scrollbarXTop+pt,Xi(at.scrollbarXRail,Le);var Vt={top:pt,height:at.railYHeight};at.isScrollbarYUsingRight?Vt.right=at.isRtl?at.contentWidth-(at.negativeScrollAdjustment+fe.scrollLeft)-at.scrollbarYRight-at.scrollbarYOuterWidth-9:at.scrollbarYRight-fe.scrollLeft:Vt.left=at.isRtl?at.negativeScrollAdjustment+fe.scrollLeft+2*at.containerWidth-at.contentWidth-at.scrollbarYLeft-at.scrollbarYOuterWidth:at.scrollbarYLeft+fe.scrollLeft,Xi(at.scrollbarYRail,Vt),Xi(at.scrollbarX,{left:at.scrollbarXLeft,width:at.scrollbarXWidth-at.railBorderXWidth}),Xi(at.scrollbarY,{top:at.scrollbarYTop,height:at.scrollbarYHeight-at.railBorderYWidth})}(at,fe),fe.scrollbarXActive?at.classList.add(Oi_state_active("x")):(at.classList.remove(Oi_state_active("x")),fe.scrollbarXWidth=0,fe.scrollbarXLeft=0,at.scrollLeft=!0===fe.isRtl?fe.contentWidth:0),fe.scrollbarYActive?at.classList.add(Oi_state_active("y")):(at.classList.remove(Oi_state_active("y")),fe.scrollbarYHeight=0,fe.scrollbarYTop=0,at.scrollTop=0)}function hn(fe,at){return fe.settings.minScrollbarLength&&(at=Math.max(at,fe.settings.minScrollbarLength)),fe.settings.maxScrollbarLength&&(at=Math.min(at,fe.settings.maxScrollbarLength)),at}function Qn(fe,at){var Le=at[0],pt=at[1],Vt=at[2],qt=at[3],ni=at[4],pi=at[5],oi=at[6],Si=at[7],Gi=at[8],An=fe.element,jn=null,Zi=null,Bi=null;function Pi(zi){zi.touches&&zi.touches[0]&&(zi[Vt]=zi.touches[0].pageY),An[oi]=jn+Bi*(zi[Vt]-Zi),Nn(fe,Si),Li(fe),zi.stopPropagation(),zi.preventDefault()}function Hn(){Mt(fe,Si),fe[Gi].classList.remove(Oi_state_clicking),fe.event.unbind(fe.ownerDocument,"mousemove",Pi)}function ln(zi,tr){jn=An[oi],tr&&zi.touches&&(zi[Vt]=zi.touches[0].pageY),Zi=zi[Vt],Bi=(fe[pt]-fe[Le])/(fe[qt]-fe[pi]),tr?fe.event.bind(fe.ownerDocument,"touchmove",Pi):(fe.event.bind(fe.ownerDocument,"mousemove",Pi),fe.event.once(fe.ownerDocument,"mouseup",Hn),zi.preventDefault()),fe[Gi].classList.add(Oi_state_clicking),zi.stopPropagation()}fe.event.bind(fe[ni],"mousedown",function(zi){ln(zi)}),fe.event.bind(fe[ni],"touchstart",function(zi){ln(zi,!0)})}var ur={"click-rail":function Vn(fe){fe.event.bind(fe.scrollbarY,"mousedown",function(Le){return Le.stopPropagation()}),fe.event.bind(fe.scrollbarYRail,"mousedown",function(Le){var pt=Le.pageY-window.pageYOffset-fe.scrollbarYRail.getBoundingClientRect().top;fe.element.scrollTop+=(pt>fe.scrollbarYTop?1:-1)*fe.containerHeight,Li(fe),Le.stopPropagation()}),fe.event.bind(fe.scrollbarX,"mousedown",function(Le){return Le.stopPropagation()}),fe.event.bind(fe.scrollbarXRail,"mousedown",function(Le){var pt=Le.pageX-window.pageXOffset-fe.scrollbarXRail.getBoundingClientRect().left;fe.element.scrollLeft+=(pt>fe.scrollbarXLeft?1:-1)*fe.containerWidth,Li(fe),Le.stopPropagation()})},"drag-thumb":function dr(fe){Qn(fe,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Qn(fe,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function Lr(fe){var at=fe.element;fe.event.bind(fe.ownerDocument,"keydown",function(qt){if(!(qt.isDefaultPrevented&&qt.isDefaultPrevented()||qt.defaultPrevented)&&(dn(at,":hover")||dn(fe.scrollbarX,":focus")||dn(fe.scrollbarY,":focus"))){var ni=document.activeElement?document.activeElement:fe.ownerDocument.activeElement;if(ni){if("IFRAME"===ni.tagName)ni=ni.contentDocument.activeElement;else for(;ni.shadowRoot;)ni=ni.shadowRoot.activeElement;if(function ci(fe){return dn(fe,"input,[contenteditable]")||dn(fe,"select,[contenteditable]")||dn(fe,"textarea,[contenteditable]")||dn(fe,"button,[contenteditable]")}(ni))return}var pi=0,oi=0;switch(qt.which){case 37:pi=qt.metaKey?-fe.contentWidth:qt.altKey?-fe.containerWidth:-30;break;case 38:oi=qt.metaKey?fe.contentHeight:qt.altKey?fe.containerHeight:30;break;case 39:pi=qt.metaKey?fe.contentWidth:qt.altKey?fe.containerWidth:30;break;case 40:oi=qt.metaKey?-fe.contentHeight:qt.altKey?-fe.containerHeight:-30;break;case 32:oi=qt.shiftKey?fe.containerHeight:-fe.containerHeight;break;case 33:oi=fe.containerHeight;break;case 34:oi=-fe.containerHeight;break;case 36:oi=fe.contentHeight;break;case 35:oi=-fe.contentHeight;break;default:return}fe.settings.suppressScrollX&&0!==pi||fe.settings.suppressScrollY&&0!==oi||(at.scrollTop-=oi,at.scrollLeft+=pi,Li(fe),function Vt(qt,ni){var pi=Math.floor(at.scrollTop);if(0===qt){if(!fe.scrollbarYActive)return!1;if(0===pi&&ni>0||pi>=fe.contentHeight-fe.containerHeight&&ni<0)return!fe.settings.wheelPropagation}var oi=at.scrollLeft;if(0===ni){if(!fe.scrollbarXActive)return!1;if(0===oi&&qt<0||oi>=fe.contentWidth-fe.containerWidth&&qt>0)return!fe.settings.wheelPropagation}return!0}(pi,oi)&&qt.preventDefault())}})},wheel:function rr(fe){var at=fe.element;function qt(ni){var pi=function pt(ni){var pi=ni.deltaX,oi=-1*ni.deltaY;return(void 0===pi||void 0===oi)&&(pi=-1*ni.wheelDeltaX/6,oi=ni.wheelDeltaY/6),ni.deltaMode&&1===ni.deltaMode&&(pi*=10,oi*=10),pi!=pi&&oi!=oi&&(pi=0,oi=ni.wheelDelta),ni.shiftKey?[-oi,-pi]:[pi,oi]}(ni),oi=pi[0],Si=pi[1];if(!function Vt(ni,pi,oi){if(!Ui.isWebKit&&at.querySelector("select:focus"))return!0;if(!at.contains(ni))return!1;for(var Si=ni;Si&&Si!==at;){if(Si.classList.contains(Oi_element_consuming))return!0;var Gi=sn(Si);if(oi&&Gi.overflowY.match(/(scroll|auto)/)){var An=Si.scrollHeight-Si.clientHeight;if(An>0&&(Si.scrollTop>0&&oi<0||Si.scrollTop0))return!0}if(pi&&Gi.overflowX.match(/(scroll|auto)/)){var jn=Si.scrollWidth-Si.clientWidth;if(jn>0&&(Si.scrollLeft>0&&pi<0||Si.scrollLeft0))return!0}Si=Si.parentNode}return!1}(ni.target,oi,Si)){var Gi=!1;fe.settings.useBothWheelAxes?fe.scrollbarYActive&&!fe.scrollbarXActive?(Si?at.scrollTop-=Si*fe.settings.wheelSpeed:at.scrollTop+=oi*fe.settings.wheelSpeed,Gi=!0):fe.scrollbarXActive&&!fe.scrollbarYActive&&(oi?at.scrollLeft+=oi*fe.settings.wheelSpeed:at.scrollLeft-=Si*fe.settings.wheelSpeed,Gi=!0):(at.scrollTop-=Si*fe.settings.wheelSpeed,at.scrollLeft+=oi*fe.settings.wheelSpeed),Li(fe),Gi=Gi||function Le(ni,pi){var oi=Math.floor(at.scrollTop),Si=0===at.scrollTop,Gi=oi+at.offsetHeight===at.scrollHeight,An=0===at.scrollLeft,jn=at.scrollLeft+at.offsetWidth===at.scrollWidth;return!(Math.abs(pi)>Math.abs(ni)?Si||Gi:An||jn)||!fe.settings.wheelPropagation}(oi,Si),Gi&&!ni.ctrlKey&&(ni.stopPropagation(),ni.preventDefault())}}void 0!==window.onwheel?fe.event.bind(at,"wheel",qt):void 0!==window.onmousewheel&&fe.event.bind(at,"mousewheel",qt)},touch:function Zn(fe){if(Ui.supportsTouch||Ui.supportsIePointer){var at=fe.element,Vt={},qt=0,ni={},pi=null;Ui.supportsTouch?(fe.event.bind(at,"touchstart",Gi),fe.event.bind(at,"touchmove",jn),fe.event.bind(at,"touchend",Zi)):Ui.supportsIePointer&&(window.PointerEvent?(fe.event.bind(at,"pointerdown",Gi),fe.event.bind(at,"pointermove",jn),fe.event.bind(at,"pointerup",Zi)):window.MSPointerEvent&&(fe.event.bind(at,"MSPointerDown",Gi),fe.event.bind(at,"MSPointerMove",jn),fe.event.bind(at,"MSPointerUp",Zi)))}function pt(Bi,Pi){at.scrollTop-=Pi,at.scrollLeft-=Bi,Li(fe)}function oi(Bi){return Bi.targetTouches?Bi.targetTouches[0]:Bi}function Si(Bi){return!(Bi.pointerType&&"pen"===Bi.pointerType&&0===Bi.buttons||!(Bi.targetTouches&&1===Bi.targetTouches.length||Bi.pointerType&&"mouse"!==Bi.pointerType&&Bi.pointerType!==Bi.MSPOINTER_TYPE_MOUSE))}function Gi(Bi){if(Si(Bi)){var Pi=oi(Bi);Vt.pageX=Pi.pageX,Vt.pageY=Pi.pageY,qt=(new Date).getTime(),null!==pi&&clearInterval(pi)}}function jn(Bi){if(Si(Bi)){var Pi=oi(Bi),Hn={pageX:Pi.pageX,pageY:Pi.pageY},ln=Hn.pageX-Vt.pageX,zi=Hn.pageY-Vt.pageY;if(function An(Bi,Pi,Hn){if(!at.contains(Bi))return!1;for(var ln=Bi;ln&&ln!==at;){if(ln.classList.contains(Oi_element_consuming))return!0;var zi=sn(ln);if(Hn&&zi.overflowY.match(/(scroll|auto)/)){var tr=ln.scrollHeight-ln.clientHeight;if(tr>0&&(ln.scrollTop>0&&Hn<0||ln.scrollTop0))return!0}if(Pi&&zi.overflowX.match(/(scroll|auto)/)){var Br=ln.scrollWidth-ln.clientWidth;if(Br>0&&(ln.scrollLeft>0&&Pi<0||ln.scrollLeft0))return!0}ln=ln.parentNode}return!1}(Bi.target,ln,zi))return;pt(ln,zi),Vt=Hn;var tr=(new Date).getTime(),Br=tr-qt;Br>0&&(ni.x=ln/Br,ni.y=zi/Br,qt=tr),function Le(Bi,Pi){var Hn=Math.floor(at.scrollTop),ln=at.scrollLeft,zi=Math.abs(Bi),tr=Math.abs(Pi);if(tr>zi){if(Pi<0&&Hn===fe.contentHeight-fe.containerHeight||Pi>0&&0===Hn)return 0===window.scrollY&&Pi>0&&Ui.isChrome}else if(zi>tr&&(Bi<0&&ln===fe.contentWidth-fe.containerWidth||Bi>0&&0===ln))return!0;return!0}(ln,zi)&&Bi.preventDefault()}}function Zi(){fe.settings.swipeEasing&&(clearInterval(pi),pi=setInterval(function(){fe.isInitialized?clearInterval(pi):ni.x||ni.y?Math.abs(ni.x)<.01&&Math.abs(ni.y)<.01?clearInterval(pi):(pt(30*ni.x,30*ni.y),ni.x*=.8,ni.y*=.8):clearInterval(pi)},10))}}},Mn=function(at,Le){var pt=this;if(void 0===Le&&(Le={}),"string"==typeof at&&(at=document.querySelector(at)),!at||!at.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Vt in this.element=at,at.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},Le)this.settings[Vt]=Le[Vt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Gi,Si,qt=function(){return at.classList.add(Oi_state_focus)},ni=function(){return at.classList.remove(Oi_state_focus)};this.isRtl="rtl"===sn(at).direction,!0===this.isRtl&&at.classList.add("ps__rtl"),this.isNegativeScroll=(Si=at.scrollLeft,at.scrollLeft=-1,Gi=at.scrollLeft<0,at.scrollLeft=Si,Gi),this.negativeScrollAdjustment=this.isNegativeScroll?at.scrollWidth-at.clientWidth:0,this.event=new Ze,this.ownerDocument=at.ownerDocument||document,this.scrollbarXRail=en(Oi_element_rail("x")),at.appendChild(this.scrollbarXRail),this.scrollbarX=en(Oi_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",qt),this.event.bind(this.scrollbarX,"blur",ni),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var pi=sn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(pi.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=jt(pi.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=jt(pi.borderLeftWidth)+jt(pi.borderRightWidth),Xi(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=jt(pi.marginLeft)+jt(pi.marginRight),Xi(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=en(Oi_element_rail("y")),at.appendChild(this.scrollbarYRail),this.scrollbarY=en(Oi_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",qt),this.event.bind(this.scrollbarY,"blur",ni),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var oi=sn(this.scrollbarYRail);this.scrollbarYRight=parseInt(oi.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=jt(oi.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function vi(fe){var at=sn(fe);return jt(at.width)+jt(at.paddingLeft)+jt(at.paddingRight)+jt(at.borderLeftWidth)+jt(at.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=jt(oi.borderTopWidth)+jt(oi.borderBottomWidth),Xi(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=jt(oi.marginTop)+jt(oi.marginBottom),Xi(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:at.scrollLeft<=0?"start":at.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:at.scrollTop<=0?"start":at.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Si){return ur[Si](pt)}),this.lastScrollTop=Math.floor(at.scrollTop),this.lastScrollLeft=at.scrollLeft,this.event.bind(this.element,"scroll",function(Si){return pt.onScroll(Si)}),Li(this)};Mn.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Xi(this.scrollbarXRail,{display:"block"}),Xi(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=jt(sn(this.scrollbarXRail).marginLeft)+jt(sn(this.scrollbarXRail).marginRight),this.railYMarginHeight=jt(sn(this.scrollbarYRail).marginTop)+jt(sn(this.scrollbarYRail).marginBottom),Xi(this.scrollbarXRail,{display:"none"}),Xi(this.scrollbarYRail,{display:"none"}),Li(this),Qe(this,"top",0,!1,!0),Qe(this,"left",0,!1,!0),Xi(this.scrollbarXRail,{display:""}),Xi(this.scrollbarYRail,{display:""}))},Mn.prototype.onScroll=function(at){!this.isAlive||(Li(this),Qe(this,"top",this.element.scrollTop-this.lastScrollTop),Qe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Mn.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),wn(this.scrollbarX),wn(this.scrollbarY),wn(this.scrollbarXRail),wn(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Mn.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(at){return!at.match(/^ps([-_].+|)$/)}).join(" ")};const Gn=Mn;var sr=function(){if("undefined"!=typeof Map)return Map;function fe(at,Le){var pt=-1;return at.some(function(Vt,qt){return Vt[0]===Le&&(pt=qt,!0)}),pt}return function(){function at(){this.__entries__=[]}return Object.defineProperty(at.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),at.prototype.get=function(Le){var pt=fe(this.__entries__,Le),Vt=this.__entries__[pt];return Vt&&Vt[1]},at.prototype.set=function(Le,pt){var Vt=fe(this.__entries__,Le);~Vt?this.__entries__[Vt][1]=pt:this.__entries__.push([Le,pt])},at.prototype.delete=function(Le){var pt=this.__entries__,Vt=fe(pt,Le);~Vt&&pt.splice(Vt,1)},at.prototype.has=function(Le){return!!~fe(this.__entries__,Le)},at.prototype.clear=function(){this.__entries__.splice(0)},at.prototype.forEach=function(Le,pt){void 0===pt&&(pt=null);for(var Vt=0,qt=this.__entries__;Vt0},fe.prototype.connect_=function(){!ar||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$n?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},fe.prototype.disconnect_=function(){!ar||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},fe.prototype.onTransitionEnd_=function(at){var Le=at.propertyName,pt=void 0===Le?"":Le;Cn.some(function(qt){return!!~pt.indexOf(qt)})&&this.refresh()},fe.getInstance=function(){return this.instance_||(this.instance_=new fe),this.instance_},fe.instance_=null,fe}(),zn=function(fe,at){for(var Le=0,pt=Object.keys(at);Le0},fe}(),di="undefined"!=typeof WeakMap?new WeakMap:new sr,ui=function fe(at){if(!(this instanceof fe))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Le=or.getInstance(),pt=new ii(at,Le,this);di.set(this,pt)};["observe","unobserve","disconnect"].forEach(function(fe){ui.prototype[fe]=function(){var at;return(at=di.get(this))[fe].apply(at,arguments)}});const Ti=void 0!==Un.ResizeObserver?Un.ResizeObserver:ui;function Hi(fe,at){if(1&fe&&(b.TgZ(0,"div",3),b._UZ(1,"div",4),b._UZ(2,"div",5),b._UZ(3,"div",6),b._UZ(4,"div",7),b.qZA()),2&fe){const Le=b.oxw();b.ekj("ps-at-top",Le.states.top)("ps-at-left",Le.states.left)("ps-at-right",Le.states.right)("ps-at-bottom",Le.states.bottom),b.xp6(1),b.ekj("ps-indicator-show",Le.indicatorY&&Le.interaction),b.xp6(1),b.ekj("ps-indicator-show",Le.indicatorX&&Le.interaction),b.xp6(1),b.ekj("ps-indicator-show",Le.indicatorX&&Le.interaction),b.xp6(1),b.ekj("ps-indicator-show",Le.indicatorY&&Le.interaction)}}const Be=["*"],xe=new b.OlP("PERFECT_SCROLLBAR_CONFIG");class Ee{constructor(at,Le,pt,Vt){this.x=at,this.y=Le,this.w=pt,this.h=Vt}}class ut{constructor(at,Le){this.x=at,this.y=Le}}const Zt=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class hi{constructor(at={}){this.assign(at)}assign(at={}){for(const Le in at)this[Le]=at[Le]}}let ji=(()=>{class fe{constructor(Le,pt,Vt,qt,ni){this.zone=Le,this.differs=pt,this.elementRef=Vt,this.platformId=qt,this.defaults=ni,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new $i.xQ,this.disabled=!1,this.psScrollY=new b.vpe,this.psScrollX=new b.vpe,this.psScrollUp=new b.vpe,this.psScrollDown=new b.vpe,this.psScrollLeft=new b.vpe,this.psScrollRight=new b.vpe,this.psYReachEnd=new b.vpe,this.psYReachStart=new b.vpe,this.psXReachEnd=new b.vpe,this.psXReachStart=new b.vpe}ngOnInit(){if(!this.disabled&&(0,ie.NF)(this.platformId)){const Le=new hi(this.defaults);Le.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Gn(this.elementRef.nativeElement,Le)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Ti(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{Zt.forEach(pt=>{const Vt=pt.replace(/([A-Z])/g,qt=>`-${qt.toLowerCase()}`);(0,qi.R)(this.elementRef.nativeElement,Vt).pipe((0,Ji.e)(20),(0,_n.R)(this.ngDestroy)).subscribe(qt=>{this[pt].emit(qt)})})})}}ngOnDestroy(){(0,ie.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,ie.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Le){Le.disabled&&!Le.disabled.isFirstChange()&&(0,ie.NF)(this.platformId)&&Le.disabled.currentValue!==Le.disabled.previousValue&&(!0===Le.disabled.currentValue?this.ngOnDestroy():!1===Le.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(Le){}},0))}geometry(Le="scroll"){return new Ee(this.elementRef.nativeElement[Le+"Left"],this.elementRef.nativeElement[Le+"Top"],this.elementRef.nativeElement[Le+"Width"],this.elementRef.nativeElement[Le+"Height"])}position(Le=!1){return!Le&&this.instance?new ut(this.instance.reach.x||0,this.instance.reach.y||0):new ut(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Le="any"){const pt=this.elementRef.nativeElement;return"any"===Le?pt.classList.contains("ps--active-x")||pt.classList.contains("ps--active-y"):"both"===Le?pt.classList.contains("ps--active-x")&&pt.classList.contains("ps--active-y"):pt.classList.contains("ps--active-"+Le)}scrollTo(Le,pt,Vt){this.disabled||(null==pt&&null==Vt?this.animateScrolling("scrollTop",Le,Vt):(null!=Le&&this.animateScrolling("scrollLeft",Le,Vt),null!=pt&&this.animateScrolling("scrollTop",pt,Vt)))}scrollToX(Le,pt){this.animateScrolling("scrollLeft",Le,pt)}scrollToY(Le,pt){this.animateScrolling("scrollTop",Le,pt)}scrollToTop(Le,pt){this.animateScrolling("scrollTop",Le||0,pt)}scrollToLeft(Le,pt){this.animateScrolling("scrollLeft",Le||0,pt)}scrollToRight(Le,pt){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Le||0),pt)}scrollToBottom(Le,pt){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Le||0),pt)}scrollToElement(Le,pt,Vt){if("string"==typeof Le&&(Le=this.elementRef.nativeElement.querySelector(Le)),Le){const qt=Le.getBoundingClientRect(),ni=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",qt.left-ni.left+this.elementRef.nativeElement.scrollLeft+(pt||0),Vt),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",qt.top-ni.top+this.elementRef.nativeElement.scrollTop+(pt||0),Vt)}}animateScrolling(Le,pt,Vt){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),Vt&&"undefined"!=typeof window){if(pt!==this.elementRef.nativeElement[Le]){let qt=0,ni=0,pi=performance.now(),oi=this.elementRef.nativeElement[Le];const Si=(oi-pt)/2,Gi=An=>{ni+=Math.PI/(Vt/(An-pi)),qt=Math.round(pt+Si+Si*Math.cos(ni)),this.elementRef.nativeElement[Le]===oi&&(ni>=Math.PI?this.animateScrolling(Le,pt,0):(this.elementRef.nativeElement[Le]=qt,oi=this.elementRef.nativeElement[Le],pi=An,this.animation=window.requestAnimationFrame(Gi)))};window.requestAnimationFrame(Gi)}}else this.elementRef.nativeElement[Le]=pt}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(b.R0b),b.Y36(b.aQg),b.Y36(b.SBq),b.Y36(b.Lbi),b.Y36(xe,8))},fe.\u0275dir=b.lG2({type:fe,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[b.TTD]}),fe})(),tn=(()=>{class fe{constructor(Le,pt,Vt){this.zone=Le,this.cdRef=pt,this.platformId=Vt,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new $i.xQ,this.stateUpdate=new $i.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new b.vpe,this.psScrollX=new b.vpe,this.psScrollUp=new b.vpe,this.psScrollDown=new b.vpe,this.psScrollLeft=new b.vpe,this.psScrollRight=new b.vpe,this.psYReachEnd=new b.vpe,this.psYReachStart=new b.vpe,this.psXReachEnd=new b.vpe,this.psXReachStart=new b.vpe}ngOnInit(){(0,ie.NF)(this.platformId)&&(this.stateUpdate.pipe((0,_n.R)(this.ngDestroy),(0,Ni.x)((Le,pt)=>Le===pt&&!this.stateTimeout)).subscribe(Le=>{this.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===Le||"y"===Le?(this.interaction=!1,"x"===Le?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===Le&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===Le||"right"===Le?(this.states.left=!1,this.states.right=!1,this.states[Le]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===Le||"bottom"===Le)&&(this.states.top=!1,this.states.bottom=!1,this.states[Le]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&"undefined"!=typeof window&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const Le=this.directiveRef.elementRef.nativeElement;(0,qi.R)(Le,"wheel").pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(pt,pt.deltaX,pt.deltaY)}),(0,qi.R)(Le,"touchmove").pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{if(!this.disabled&&this.autoPropagation){const Vt=pt.touches[0].clientX,qt=pt.touches[0].clientY;this.checkPropagation(pt,Vt-this.scrollPositionX,qt-this.scrollPositionY),this.scrollPositionX=Vt,this.scrollPositionY=qt}}),(0,Fi.T)((0,qi.R)(Le,"ps-scroll-x").pipe((0,Ri.h)("x")),(0,qi.R)(Le,"ps-scroll-y").pipe((0,Ri.h)("y")),(0,qi.R)(Le,"ps-x-reach-end").pipe((0,Ri.h)("right")),(0,qi.R)(Le,"ps-y-reach-end").pipe((0,Ri.h)("bottom")),(0,qi.R)(Le,"ps-x-reach-start").pipe((0,Ri.h)("left")),(0,qi.R)(Le,"ps-y-reach-start").pipe((0,Ri.h)("top"))).pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(pt)})}}),window.setTimeout(()=>{Zt.forEach(Le=>{this.directiveRef&&(this.directiveRef[Le]=this[Le])})},0))}ngOnDestroy(){(0,ie.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,ie.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const Le=this.directiveRef.elementRef.nativeElement;this.usePropagationX=Le.classList.contains("ps--active-x"),this.usePropagationY=Le.classList.contains("ps--active-y")}}checkPropagation(Le,pt,Vt){this.interaction=!0;const qt=pt<0?-1:1,ni=Vt<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==qt)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==ni))&&(Le.preventDefault(),Le.stopPropagation()),pt&&(this.scrollDirectionX=qt),Vt&&(this.scrollDirectionY=ni),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(b.Lbi))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perfect-scrollbar"]],viewQuery:function(Le,pt){if(1&Le&&b.Gf(ji,7),2&Le){let Vt;b.iGM(Vt=b.CRH())&&(pt.directiveRef=Vt.first)}},hostVars:4,hostBindings:function(Le,pt){2&Le&&b.ekj("ps-show-limits",pt.autoPropagation)("ps-show-active",pt.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:Be,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(Le,pt){1&Le&&(b.F$t(),b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.Hsn(2),b.qZA(),b.YNc(3,Hi,5,16,"div",2),b.qZA()),2&Le&&(b.ekj("ps",pt.usePSClass),b.Q6J("perfectScrollbar",pt.config)("disabled",pt.disabled),b.xp6(3),b.Q6J("ngIf",pt.scrollIndicators))},directives:[ji,ie.O5],styles:["perfect-scrollbar{display:block;height:100%;max-height:100%;max-width:100%;overflow:hidden;position:relative;width:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-height:0;min-width:0}perfect-scrollbar[fxflex]>.ps{-webkit-box-flex:1;flex:1 1 auto;height:auto;min-height:0;min-width:0;width:auto}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit;align-content:inherit;align-items:inherit;display:flex;flex:1 1 auto;flex-direction:inherit;height:100%;justify-content:inherit;width:100%},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{display:block;height:100%;max-height:100%;max-width:100%;position:static;width:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{bottom:0;display:block;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{opacity:0;position:absolute;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-height:24px;min-width:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{min-height:100%;min-width:24px;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{cursor:default;left:auto!important;right:0!important;top:0!important;transition:width .2s linear,opacity .2s linear,background-color .2s linear;width:10px}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{bottom:0!important;cursor:default;height:10px;left:0!important;top:auto!important;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{background-color:#eee;opacity:.9}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{-ms-overflow-style:none;-ms-touch-action:auto;overflow:hidden!important;overflow-anchor:none;touch-action:auto}.ps__rail-x{bottom:0;height:15px}.ps__rail-x,.ps__rail-y{-webkit-transition:background-color .2s linear,opacity .2s linear;display:none;opacity:0;position:absolute;transition:background-color .2s linear,opacity .2s linear}.ps__rail-y{right:0;width:15px}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{background-color:transparent;display:block}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{-webkit-transition:background-color .2s linear,height .2s ease-in-out;bottom:2px;height:6px;transition:background-color .2s linear,height .2s ease-in-out}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{-webkit-transition:background-color .2s linear,width .2s ease-in-out;right:2px;transition:background-color .2s linear,width .2s ease-in-out;width:6px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}"],encapsulation:2}),fe})(),Wn=(()=>{class fe{}return fe.\u0275fac=function(Le){return new(Le||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[ie.ez],ie.ez]}),fe})();var pr=p(86114),Qr=p(36769),Xt=p(22465);function si(fe,at){if(1&fe){const Le=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"perun-web-apps-notification",2),b.NdJ("closeNotification",function(){const qt=b.CHM(Le).index;return b.oxw().removeNotification(qt)}),b.qZA(),b.qZA()}if(2&fe){const Le=at.$implicit;b.Q6J("@flyInOut",void 0),b.xp6(1),b.Q6J("data",Le)("newNotification",!0)}}const Ei=function(fe){return{top:fe}};let gi=(()=>{class fe{constructor(Le,pt){this.notificator=Le,this.notificationStorageService=pt,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(Vt=>{this.processNotification(Vt)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(Le){this.notifications.splice(Le,1)}processNotification(Le){this.notifications.push(Le),this.notificationStorageService.storeNotification(Le)}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(A.V6),b.Y36(A.SZ))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-notificator"]],hostBindings:function(Le,pt){1&Le&&b.NdJ("resize",function(qt){return pt.getScreenSize(qt)},!1,b.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(Le,pt){1&Le&&(b.TgZ(0,"div",0),b.YNc(1,si,2,3,"div",1),b.qZA()),2&Le&&(b.Q6J("ngStyle",b.VKq(2,Ei,pt.getNotificatorTop())),b.xp6(1),b.Q6J("ngForOf",pt.notifications))},directives:[ie.PC,ie.sg,Xt.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:[Qr.Pd]}}),fe})();var Vi=p(53435);function pn(fe,at){if(1&fe&&(b.TgZ(0,"div",9),b._UZ(1,"perun-web-apps-notification",10),b.qZA()),2&fe){const Le=at.$implicit;b.xp6(1),b.Q6J("data",Le)("inDialog",!0)}}function vn(fe,at){if(1&fe&&(b.TgZ(0,"div",6),b.TgZ(1,"cdk-virtual-scroll-viewport",7),b.YNc(2,pn,2,2,"div",8),b.qZA(),b.qZA()),2&fe){const Le=b.oxw();b.xp6(2),b.Q6J("cdkVirtualForOf",Le.notifications)}}function Pn(fe,at){1&fe&&(b.TgZ(0,"perun-web-apps-alert",11),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let Yn=(()=>{class fe{constructor(Le,pt){this.dialogRef=Le,this.notificationStorageService=pt}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(m.so),b.Y36(A.SZ))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-show-notification-history-dialog"]],decls:12,vars:11,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(Le,pt){1&Le&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.YNc(3,vn,3,1,"div",1),b.YNc(4,Pn,3,3,"perun-web-apps-alert",2),b.TgZ(5,"div",3),b.TgZ(6,"button",4),b.NdJ("click",function(){return pt.onClear()}),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"button",5),b.NdJ("click",function(){return pt.onCancel()}),b._uU(10),b.ALo(11,"translate"),b.qZA(),b.qZA()),2&Le&&(b.xp6(1),b.Oqu(b.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),b.xp6(2),b.Q6J("ngIf",0!==pt.notifications.length),b.xp6(1),b.Q6J("ngIf",0===pt.notifications.length),b.xp6(3),b.hij(" ",b.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),b.xp6(3),b.hij(" ",b.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[m.uh,ie.O5,Vi.N7,Vi.xd,Vi.x0,Xt.c,ue.w,m.H8,X.lW],pipes:[S.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),fe})();var fn=p(27544),$r=p(52314);function wr(fe,at){1&fe&&(b.TgZ(0,"div",10),b.TgZ(1,"span",11),b._uU(2," ~ \u{1f5f2}\xa0 "),b.qZA(),b.TgZ(3,"span",12),b._uU(4," DEVEL "),b.qZA(),b.TgZ(5,"span",11),b._uU(6," \xa0\u{1f5f2} ~ "),b.qZA(),b.qZA())}const bn=function(fe){return{color:fe}},mn=function(){return["/home"]};let Sn=(()=>{class fe{constructor(Le,pt,Vt,qt,ni,pi,oi,Si,Gi,An){this.storeService=Le,this.authService=pt,this.authzResolverService=Vt,this.dialog=qt,this.notificator=ni,this.translateService=pi,this.store=oi,this.sanitizer=Si,this.notificationStorageService=Gi,this.otherApplicationService=An,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.store.get("logo")),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.profileLabel=this.storeService.get("profile_label_en"),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const Le=(0,E.kZ)();Le.width="520px",this.dialog.open(Yn,Le)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.Y36(A.d6),b.Y36(A.e8),b.Y36(g.Ct),b.Y36(m.uw),b.Y36(A.V6),b.Y36(S.sK),b.Y36(A.d6),b.Y36(e.H7),b.Y36(A.SZ),b.Y36(A.jq))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:13,vars:28,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(Le,pt){1&Le&&(b.TgZ(0,"div",0),b.TgZ(1,"button",1),b.NdJ("click",function(){return pt.sideNav.toggle()}),b.TgZ(2,"mat-icon",2),b._uU(3," menu "),b.qZA(),b.qZA(),b.TgZ(4,"a",3),b._UZ(5,"div",4),b.qZA(),b.qZA(),b.YNc(6,wr,7,0,"div",5),b.TgZ(7,"div",6),b.TgZ(8,"button",7),b.NdJ("click",function(){return pt.showNotificationHistory()}),b.ALo(9,"translate"),b.TgZ(10,"mat-icon",8),b._uU(11),b.qZA(),b.qZA(),b._UZ(12,"perun-web-apps-header-menu",9),b.qZA()),2&Le&&(b.Q6J("ngStyle",b.VKq(19,bn,pt.navTextColor)),b.xp6(2),b.Q6J("ngStyle",b.VKq(21,bn,pt.iconColor)),b.xp6(2),b.Q6J("routerLink",b.DdM(23,mn)),b.xp6(1),b.Q6J("innerHTML",pt.logo,b.oJD),b.xp6(1),b.Q6J("ngIf",pt.isDevel),b.xp6(1),b.Q6J("ngStyle",b.VKq(24,bn,pt.navTextColor)),b.xp6(1),b.Q6J("matTooltip",b.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),b.xp6(2),b.s9C("matBadge",pt.getNewNotificationsCount()>5?"5+":pt.getNewNotificationsCount()),b.Q6J("ngStyle",b.VKq(26,bn,pt.iconColor))("matBadgeHidden",0===pt.getNewNotificationsCount()),b.xp6(1),b.hij(" ",pt.getNewNotificationsCount()?"notifications_active":"notifications"," "),b.xp6(1),b.Q6J("iconColor",pt.iconColor)("label",pt.profileLabel)("textColor",pt.navTextColor)("logoutEnabled",pt.logoutEnabled)("url",pt.profileUrl)("user",pt.principal.user))},directives:[ie.PC,X.lW,ge.Hw,_.yS,ie.O5,T.gM,fn.k,$r.X],pipes:[S.X$],styles:["#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:row;width:200px}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-link-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-link-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 1rem;line-height:64px;text-align:center;height:64px;display:block}"]}),fe})();var Xn=p(73228);const er={provide:oe.TP,useExisting:(0,b.Gpc)(()=>A.yC),multi:!0};function fr(fe){return new te(fe,"./assets/i18n/",".json")}function aa(fe){const at={basePath:fe.get("api_url")};return new g.VK(at)}const gs=fe=>()=>fe.initialize(),oa={suppressScrollX:!0};let _s=(()=>{class fe{constructor(Le,pt){this.customIconService=Le,this.translate=pt,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return fe.\u0275fac=function(Le){return new(Le||fe)(b.LFG(A.EB),b.LFG(S.sK))},fe.\u0275mod=b.oAB({type:fe,bootstrap:[j.y]}),fe.\u0275inj=b.cJS({providers:[Di,{provide:b.ip1,useFactory:gs,multi:!0,deps:[Di]},{provide:g.VK,useFactory:aa,deps:[A.d6]},{provide:_.wN,useClass:vt},A.EB,{provide:U,useClass:A.sM},A.yC,er,{provide:xe,useValue:oa}],imports:[[Ie.PW,e.b2,oe.JF,N.m,ct,Ge,ge.Ps,wi,S.aw.forRoot({loader:{provide:S.Zw,useFactory:fr,deps:[oe.eN]}}),g.au,Wn,d.ez,t,pr.zr.forRoot()]]}),fe})();b.B6R(j.y,[ie.O5,ge.Hw,gi,Sn,ie.PC,B.TM,B.JX,tn,Xn.V,B.Rh,_.lC,a.$,Ut],[]),(0,b.G48)(),e.q6().bootstrapModule(_s).catch(fe=>console.error(fe))},11243:(Xe,_e,p)=>{"use strict";p.d(_e,{r:()=>_});var e=p(69808),b=p(5e3);let _=(()=>{class w{}return w.\u0275fac=function(A){return new(A||w)},w.\u0275mod=b.oAB({type:w}),w.\u0275inj=b.cJS({imports:[[e.ez]]}),w})()},6335:(Xe,_e,p)=>{"use strict";p.d(_e,{Rc:()=>b,pI:()=>_,Ng:()=>w});var e=p(5e3);const b="GUI_CONFIG.PREF_PAGE_SIZE",_="GUI_CONFIG.PREF_PAGE_SIZE.";let w=(()=>{class g{getString(E){return localStorage.getItem(E)}getNumber(E){return parseInt(localStorage.getItem(E),10)}setNumber(E,C){localStorage.setItem(E,C.toString())}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},10036:(Xe,_e,p)=>{"use strict";p.d(_e,{dB:()=>_,CP:()=>w,tw:()=>g,nT:()=>A,YF:()=>E,gc:()=>C,v1:()=>O,AA:()=>S,VR:()=>m,uM:()=>B,xx:()=>L,H2:()=>J,xt:()=>ie,dI:()=>ge,j1:()=>X,Wv:()=>Ne,qy:()=>ue,BV:()=>Oe,qV:()=>T,tY:()=>Z,Af:()=>W,O7:()=>Y,gB:()=>ee,Hi:()=>ce,Jf:()=>le,W1:()=>Pe,rF:()=>Fe,Aj:()=>ze,Ad:()=>ae,kZ:()=>Ue,cL:()=>ve,RS:()=>He,HC:()=>z,KE:()=>I,Sb:()=>me,_7:()=>Ae,bf:()=>Me,rc:()=>pe,Cf:()=>we,eq:()=>H,NG:()=>he,O9:()=>P,d7:()=>R,vq:()=>V,NL:()=>Q,kO:()=>Se,aL:()=>je,DR:()=>Ye,uC:()=>ye,JO:()=>re,oK:()=>r,Iz:()=>o,It:()=>d,z6:()=>l,iQ:()=>s,e5:()=>i,Bf:()=>t,zp:()=>c,US:()=>h,gG:()=>x,$V:()=>We,S7:()=>At,zW:()=>Ut,CE:()=>Lt,Is:()=>Te,M8:()=>N,g:()=>te,_c:()=>oe,dK:()=>Ie,yW:()=>ct,HE:()=>bt,ee:()=>Yt,FF:()=>It,$I:()=>Rt,XH:()=>Et,$t:()=>Bt,uI:()=>Jt});var e=p(6335),b=p(5e3);let _=(()=>{class ai{constructor(bi){this.guiConfigService=bi}getTablePageSize(bi){const yi=this.guiConfigService.getNumber(e.pI+bi);if(!isNaN(yi))return yi;const Wi=this.guiConfigService.getNumber(e.Rc);return isNaN(Wi)?10:Wi}setTablePageSize(bi,yi){this.guiConfigService.setNumber(e.pI+bi,yi)}}return ai.\u0275fac=function(bi){return new(bi||ai)(b.LFG(e.Ng))},ai.\u0275prov=b.Yz7({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})();const w="0",g="1",A="2",E="3",C="4",O="5",S="6",m="7",B="8",L="9",J="10",ie="11",ge="12",X="13",Ne="14",ue="15",Oe="16",T="17",Z="18",W="19",Y="20",ee="21",ce="22",le="23",Pe="24",Fe="25",ze="26",ae="27",Ue="28",ve="29",He="30",z="31",I="32",me="33",Ae="34",Me="35",pe="36",we="37",H="42",he="43",P="44",R="45",V="46",Q="47",Se="48",je="49",Ye="50",ye="51",re="52",r="53",o="54",d="55",l="56",s="57",i="58",t="59",c="62",h="63",x="64",We="65",At="66",Ut="69",Lt="71",Te="72",N="75",te="76",oe="77",Ie="78",ct="79",bt="80",Yt="82",It="83",Rt="84",Et="85",Bt="86",Jt="87"},36769:(Xe,_e,p)=>{"use strict";p.d(_e,{Ji:()=>g,Pd:()=>_,BQ:()=>b,Ly:()=>w,GH:()=>C,Ls:()=>O,SG:()=>E,es:()=>A});var e=p(41777);const b=(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")])]),_=(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%)"}))])]),w=(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"}))])]),g=(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})])]),A=(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")])]),E=(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})])])]),C=(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%)"}))])]),O=(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%)"}))])])},387:(Xe,_e,p)=>{"use strict";p.d(_e,{Mw:()=>I.M,qG:()=>x.qG,Sx:()=>c.S,y9:()=>We,Nj:()=>l,ez:()=>He,t$:()=>s});var e=p(69808),b=p(77446),_=p(32075),w=p(51062),g=p(11735),A=p(84847),E=p(86087),C=p(20773),O=p(63189),S=p(25245),m=p(92181),B=p(47423),L=p(29772),J=p(67322),ie=p(93075),ge=p(98833),X=p(26688),Ne=p(44409),ue=p(90508),Oe=p(19516),T=p(69287),Z=p(90149),W=p(86856),Y=p(79814),ee=p(74107),ce=p(43586),le=p(53435),Pe=p(48966),Fe=p(9244),ze=p(6397),ae=p(5e3);let Ue=(()=>{class At extends ue.LF{format(lt,Ut){return"input"===Ut?`${lt.getDate().toString()}.${(lt.getMonth()+1).toString()}.${lt.getFullYear()}`:lt.toDateString()}}return At.\u0275fac=function(){let Ht;return function(Ut){return(Ht||(Ht=ae.n5z(At)))(Ut||At)}}(),At.\u0275prov=ae.Yz7({token:At,factory:At.\u0275fac}),At})();const ve={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 He=(()=>{class At{}return At.\u0275fac=function(lt){return new(lt||At)},At.\u0275mod=ae.oAB({type:At}),At.\u0275inj=ae.cJS({providers:[{provide:ue._A,useClass:Ue},{provide:ue.sG,useValue:ve}],imports:[[e.ez,b.p9,_.p0,ie.u5,X.Hi,Ne._t,w.aw,g.Bz,A.JX,E.TU,C.Cq,O.r,S.Ps,m.Tx,B.ot,L.AV,J.lN,ie.UX,ge.c,ue.si,Oe.d4,T.Iq,Z.dp,W.FA,Y.Fk,ue.Ng,ee.LD,ce.Co,le.Cl,Pe.Is,Fe.Je,ze.C]]}),At})();p(53984);var I=p(43532),nt=(p(38719),p(21963),p(28820),p(63167),p(62109),p(22465),p(80275),p(32105)),ke=p(36908),H=p(16074),he=p(98380),P=p(34447);function R(At,Ht){1&At&&(ae.TgZ(0,"perun-web-apps-alert"),ae._uU(1),ae.ALo(2,"translate"),ae.ALo(3,"customTranslate"),ae.qZA()),2&At&&(ae.xp6(1),ae.Oqu(ae.lcZ(2,1,ae.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function V(At,Ht){1&At&&(ae.TgZ(0,"th",16),ae._uU(1),ae.ALo(2,"translate"),ae.ALo(3,"customTranslate"),ae.qZA()),2&At&&(ae.xp6(1),ae.hij(" ",ae.lcZ(2,1,ae.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Q(At,Ht){if(1&At&&(ae.TgZ(0,"td",17),ae._uU(1),ae.qZA()),2&At){const lt=Ht.$implicit;ae.xp6(1),ae.Oqu(lt.friendlyNameParameter)}}function Se(At,Ht){1&At&&(ae.TgZ(0,"th",16),ae._uU(1),ae.ALo(2,"translate"),ae.ALo(3,"customTranslate"),ae.qZA()),2&At&&(ae.xp6(1),ae.hij(" ",ae.lcZ(2,1,ae.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function je(At,Ht){if(1&At&&(ae.TgZ(0,"td",18),ae._uU(1),ae.qZA()),2&At){const lt=Ht.$implicit;ae.xp6(1),ae.Oqu(lt.value)}}function Ye(At,Ht){1&At&&ae._UZ(0,"th",16)}function ye(At,Ht){if(1&At){const lt=ae.EpF();ae.TgZ(0,"td",19),ae.TgZ(1,"button",20),ae.NdJ("click",function(){const Lt=ae.CHM(lt).$implicit;return ae.oxw().resetPassword(Lt.friendlyNameParameter)}),ae._uU(2),ae.ALo(3,"translate"),ae.ALo(4,"customTranslate"),ae.qZA(),ae.qZA()}if(2&At){const lt=Ht.$implicit,Ut=ae.oxw();ae.xp6(1),ae.Q6J("disabled",!Ut.logins.includes(lt)),ae.xp6(1),ae.hij(" ",ae.lcZ(3,2,ae.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function re(At,Ht){1&At&&ae._UZ(0,"th",16)}function r(At,Ht){if(1&At){const lt=ae.EpF();ae.TgZ(0,"td",19),ae.TgZ(1,"button",21),ae.NdJ("click",function(){const Lt=ae.CHM(lt).$implicit;return ae.oxw().changePassword(Lt)}),ae._uU(2),ae.ALo(3,"translate"),ae.ALo(4,"customTranslate"),ae.qZA(),ae.qZA()}if(2&At){const lt=Ht.$implicit,Ut=ae.oxw();ae.xp6(1),ae.Q6J("disabled",!Ut.logins.includes(lt)),ae.xp6(1),ae.hij(" ",ae.lcZ(3,2,ae.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function o(At,Ht){1&At&&ae._UZ(0,"tr",22)}function d(At,Ht){1&At&&ae._UZ(0,"tr",23)}let l=(()=>{class At{constructor(lt,Ut,mt,Lt,Te,Ge){this.attributesManagerService=lt,this.store=Ut,this.dialog=mt,this.route=Lt,this.router=Te,this.otherApplicationService=Ge,this.logins=[],this.displayedColumns=["namespace","value","reset","change"],this.nameSpaces=[]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(lt=>{const Ut=this.nameSpaces.map(Te=>{const Ge=Te.split(":");return Ge[Ge.length-1]});this.logins=lt.filter(Te=>Ut.includes(Te.friendlyNameParameter)),this.dataSource=new _.by(lt);const Lt=this.route.snapshot.queryParamMap.get("namespace");if(Lt){const Te=this.logins.find(Ge=>Ge.friendlyNameParameter===Lt);Te&&this.changePassword(Te)}})}resetPassword(lt){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",lt),"_blank")}changePassword(lt){this.router.navigate([],{queryParams:{namespace:lt.friendlyNameParameter},queryParamsHandling:"merge"});const Ut=(0,Fe.kZ)();Ut.width="600px",Ut.data={login:String(lt.value),namespace:lt.friendlyName.split(":")[1]},this.dialog.open(H.xF,Ut).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return At.\u0275fac=function(lt){return new(lt||At)(ae.Y36(nt.H8),ae.Y36(ke.d6),ae.Y36(Pe.uw),ae.Y36(g.gz),ae.Y36(g.F0),ae.Y36(ke.jq))},At.\u0275cmp=ae.Xpm({type:At,selectors:[["perun-web-apps-password-reset"]],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(lt,Ut){1<&&(ae.TgZ(0,"h1",0),ae._uU(1),ae.ALo(2,"translate"),ae.ALo(3,"customTranslate"),ae.qZA(),ae.YNc(4,R,4,5,"perun-web-apps-alert",1),ae.TgZ(5,"div",2),ae.TgZ(6,"div",3),ae.TgZ(7,"div",4),ae.TgZ(8,"table",5),ae.ynx(9,6),ae.YNc(10,V,4,5,"th",7),ae.YNc(11,Q,2,1,"td",8),ae.BQk(),ae.ynx(12,9),ae.YNc(13,Se,4,5,"th",7),ae.YNc(14,je,2,1,"td",10),ae.BQk(),ae.ynx(15,11),ae.YNc(16,Ye,1,0,"th",7),ae.YNc(17,ye,5,6,"td",12),ae.BQk(),ae.ynx(18,13),ae.YNc(19,re,1,0,"th",7),ae.YNc(20,r,5,6,"td",12),ae.BQk(),ae.YNc(21,o,1,0,"tr",14),ae.YNc(22,d,1,0,"tr",15),ae.qZA(),ae.qZA(),ae.qZA(),ae.qZA()),2<&&(ae.xp6(1),ae.hij(" ",ae.lcZ(2,5,ae.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),ae.xp6(3),ae.Q6J("ngIf",!Ut.logins.length),ae.xp6(4),ae.Q6J("dataSource",Ut.dataSource),ae.xp6(13),ae.Q6J("matHeaderRowDef",Ut.displayedColumns),ae.xp6(1),ae.Q6J("matRowDefColumns",Ut.displayedColumns))},directives:[e.O5,he.w,_.BZ,A.YE,_.w1,_.fO,_.ge,_.Dz,_.ev,B.lW,_.as,_.XQ,_.nj,_.Gk],pipes:[w.X$,P.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),At})(),s=(()=>{class At{constructor(lt,Ut,mt,Lt){this.router=lt,this.route=Ut,this.location=mt,this.forceRoute=Lt}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(lt=>{this.router.navigate([lt.redirectTo])}):this.location.back()}}return At.\u0275fac=function(lt){return new(lt||At)(ae.Y36(g.F0),ae.Y36(g.gz),ae.Y36(e.Ye),ae.Y36(ke.xw))},At.\u0275cmp=ae.Xpm({type:At,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(lt,Ut){},styles:[""]}),At})();p(24179),p(58956),p(41619),p(61150);var c=p(63312),x=(p(52314),p(52170));let We=(()=>{class At{constructor(lt){this.router=lt}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return At.\u0275fac=function(lt){return new(lt||At)(ae.Y36(g.F0))},At.\u0275cmp=ae.Xpm({type:At,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(lt,Ut){1<&&(ae.TgZ(0,"div",0),ae.TgZ(1,"h1",1),ae._uU(2),ae.ALo(3,"translate"),ae.qZA(),ae.TgZ(4,"div"),ae._uU(5),ae.ALo(6,"translate"),ae.qZA(),ae.TgZ(7,"button",2),ae.NdJ("click",function(){return Ut.redirectToHome()}),ae._uU(8),ae.ALo(9,"translate"),ae.qZA(),ae.qZA()),2<&&(ae.xp6(2),ae.Oqu(ae.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),ae.xp6(3),ae.Oqu(ae.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),ae.xp6(3),ae.hij(" ",ae.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},directives:[B.lW],pipes:[w.X$],styles:[""]}),At})()},63312:(Xe,_e,p)=>{"use strict";p.d(_e,{S:()=>g,Y:()=>A});var e=p(5e3),_=(p(32105),p(51062)),w=p(42377);const g={};let A=(()=>{class E{constructor(O){this.translate=O,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=S=>S===g?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):S.shortname,this.secondaryFunction=S=>S===g?"":S.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(S.id),this.searchFunction=S=>S===g?"":S.shortname+String(S.id)}}return E.\u0275fac=function(O){return new(O||E)(e.Y36(_.sK))},E.\u0275cmp=e.Xpm({type:E,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(O,S){1&O&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(B){return S.itemSelected.emit(B)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&O&&e.Q6J("entities",S.items)("searchFunction",S.searchFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.secondaryFunction)("entity",S.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"))},directives:[w.i],pipes:[_.X$],styles:[""]}),E})()},38719:(Xe,_e,p)=>{"use strict";p.d(_e,{u:()=>S});var e=p(5e3),b=p(9244),_=p(69808),w=p(77446),g=p(93075),A=p(67322),E=p(64597);function C(m,B){if(1&m){const L=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){return e.CHM(L),e.oxw()._sendEventToParent()})("ngModelChange",function(ie){return e.CHM(L),e.oxw().attribute.value=ie}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&m){const L=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,L.attribute.displayName),"-value"),e.Q6J("ngModel",L.attribute.value)}}function O(m,B){if(1&m&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&m){const L=e.oxw();e.xp6(1),e.Oqu(L.attribute.value)}}let S=(()=>{class m{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return m.\u0275fac=function(L){return new(L||m)},m.\u0275cmp=e.Xpm({type:m,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(L,J){1&L&&(e.TgZ(0,"div"),e.YNc(1,C,2,4,"mat-checkbox",0),e.YNc(2,O,2,1,"mat-label",1),e.qZA()),2&L&&(e.xp6(1),e.Q6J("ngIf",!J.readonly),e.xp6(1),e.Q6J("ngIf",J.readonly))},directives:[_.O5,w.oG,g.JJ,g.On,A.hX],pipes:[E.R],styles:[""]}),m})()},21963:(Xe,_e,p)=>{"use strict";p.d(_e,{H:()=>Z});var e=p(5e3),b=p(91159),_=p(44409),w=p(16074),g=p(9244),A=p(48966),E=p(26688),C=p(69808),O=p(25245),S=p(29772),m=p(47423),B=p(67322),L=p(98833);function J(W,Y){if(1&W){const ee=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){return e.CHM(ee),e.oxw(2).dragDisabled=!1}),e._uU(1,"drag_indicator"),e.qZA()}}function ie(W,Y){if(1&W){const ee=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(ee);const le=e.oxw().$implicit;return e.oxw().edit(le)}),e._uU(1,"edit"),e.qZA()}}function ge(W,Y){if(1&W){const ee=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(ee);const le=e.oxw().$implicit;return e.oxw().remove(le)}),e._uU(1,"cancel"),e.qZA()}}function X(W,Y){if(1&W){const ee=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const Pe=e.CHM(ee).$implicit,Fe=e.oxw();return Fe.remove(Pe),Fe._sendEventToParent()}),e.YNc(1,J,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const Pe=e.CHM(ee).$implicit,Fe=e.oxw();return Fe.readonly&&void 0!==Fe.attribute.displayName&&Fe.showValue(Pe,Fe.attribute.displayName)}),e._uU(3),e.qZA(),e.YNc(4,ie,2,0,"mat-icon",7),e.YNc(5,ge,2,0,"mat-icon",8),e.qZA()}if(2&W){const ee=Y.$implicit,ce=e.oxw();e.Q6J("selectable",ce.selectable)("cdkDragData",ee)("removable",ce.removable),e.xp6(1),e.Q6J("ngIf",ce.removable),e.xp6(1),e.ekj("cursor-pointer",ce.readonly&&void 0!==ce.attribute.displayName),e.xp6(1),e.hij(" ",ee," "),e.xp6(1),e.Q6J("ngIf",ce.removable),e.xp6(1),e.Q6J("ngIf",ce.removable)}}function Ne(W,Y){1&W&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function ue(W,Y){1&W&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function Oe(W,Y){if(1&W){const ee=e.EpF();e.TgZ(0,"div",12),e.TgZ(1,"span",13),e.TgZ(2,"button",14),e.NdJ("click",function(){return e.CHM(ee),e.oxw().onShowChange()}),e.YNc(3,Ne,2,0,"mat-icon",15),e.YNc(4,ue,2,0,"mat-icon",15),e.qZA(),e.qZA(),e.qZA()}if(2&W){const ee=e.oxw();e.xp6(1),e.Q6J("matTooltip",ee.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!ee.showMore),e.xp6(1),e.Q6J("ngIf",ee.showMore)}}function T(W,Y){if(1&W){const ee=e.EpF();e.TgZ(0,"mat-form-field",12),e.TgZ(1,"input",16),e.NdJ("matChipInputTokenEnd",function(le){return e.CHM(ee),e.oxw().add(le)})("change",function(){return e.CHM(ee),e.oxw()._sendEventToParent()}),e.qZA(),e.qZA()}if(2&W){const ee=e.oxw(),ce=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",ce)("matChipInputSeparatorKeyCodes",ee.separatorKeysCodes)("matChipInputAddOnBlur",ee.addOnBlur)}}let Z=(()=>{class W{constructor(ee,ce){this.dialog=ee,this.changeDetector=ce,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[b.K5,b.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,g.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,g.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(ee){const ce=ee.input,le=ee.value;(le||"").trim()&&(this.attribute.value.push(le.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),ce&&(ce.value=""),this.sendEventToParent.emit()}remove(ee){const ce=(0,g.kZ)();ce.width="400px",ce.data={name:ee},this.dialog.open(w.Wr,ce).afterClosed().subscribe(Pe=>{if(Pe){const Fe=this.attribute.value.indexOf(ee);this.attribute.value.splice(Fe,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(ee){this.dragDisabled=!0,(0,_.bA)(this.attribute.value,ee.previousIndex,ee.currentIndex),this.values=this.attribute.value}edit(ee){const ce=this.attribute.value.indexOf(ee),le=(0,g.kZ)();le.width="600px",le.data={attribute:this.attribute,index:ce},this.dialog.open(w.r2,le).afterClosed().subscribe(Fe=>{Fe&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(ee,ce){const le=(0,g.kZ)();le.width="350px",le.data={value:ee,title:ce},this.dialog.open(w.mk,le)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return W.\u0275fac=function(ee){return new(ee||W)(e.Y36(A.uw),e.Y36(e.sBO))},W.\u0275cmp=e.Xpm({type:W,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(ee,ce){1&ee&&(e.TgZ(0,"div"),e.TgZ(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(Pe){return ce.drop(Pe),ce._sendEventToParent()}),e.YNc(3,X,6,9,"mat-chip",2),e.YNc(4,Oe,5,4,"div",3),e.YNc(5,T,2,3,"mat-form-field",3),e.qZA(),e.qZA()),2&ee&&(e.xp6(1),e.Q6J("cdkDropListDisabled",ce.dragDisabled),e.xp6(2),e.Q6J("ngForOf",ce.values.slice(0,ce.itemsShown)),e.xp6(1),e.Q6J("ngIf",ce.values.length>ce.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!ce.readonly))},directives:[E.qn,_.Wj,C.sg,E.HS,_.Zt,C.O5,O.Hw,S.gM,m.lW,B.KE,L.Nt,E.oH],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}"]}),W})()},28820:(Xe,_e,p)=>{"use strict";p.d(_e,{$:()=>Ne});var e=p(16074),b=p(9244),_=p(5e3),w=p(48966),g=p(93075),A=p(69808),E=p(67322),C=p(98833),O=p(47423),S=p(25245),m=p(29772);function B(ue,Oe){if(1&ue){const T=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM(T);const W=_.oxw().index;return _.oxw().removeValue(W)}),_.TgZ(1,"mat-icon"),_._uU(2," indeterminate_check_box "),_.qZA(),_.qZA()}}function L(ue,Oe){if(1&ue){const T=_.EpF();_.TgZ(0,"div",9),_.TgZ(1,"mat-form-field",10),_._UZ(2,"label",11),_.TgZ(3,"input",12),_.NdJ("click",function(){const Y=_.CHM(T).index,ee=_.oxw();return ee.readonly&&ee.attribute.displayName&&ee.showValue(ee.keys[Y],ee.attribute.displayName)})("ngModelChange",function(W){const ee=_.CHM(T).index;return _.oxw().keys[ee]=W}),_.qZA(),_.qZA(),_.TgZ(4,"mat-form-field",10),_._UZ(5,"label",11),_.TgZ(6,"input",13),_.NdJ("click",function(){const Y=_.CHM(T).$implicit,ee=_.oxw();return ee.readonly&&void 0!==ee.attribute.displayName&&ee.showValue(Y,ee.attribute.displayName)})("ngModelChange",function(W){const ee=_.CHM(T).index;return _.oxw().values[ee]=W}),_.qZA(),_.qZA(),_.YNc(7,B,3,0,"button",14),_.qZA()}if(2&ue){const T=Oe.index,Z=_.oxw();_.xp6(1),_.s9C("appearance",Z.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",Z.attribute.id,"-key-",T,""),_.xp6(1),_.ekj("cursor-pointer",Z.readonly&&void 0!==Z.attribute.displayName),_.hYB("id","",Z.attribute.id,"-key-",T,""),_.MGl("name","key-",T,""),_.Q6J("ngModel",Z.keys[T])("readonly",Z.readonly),_.xp6(1),_.s9C("appearance",Z.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",Z.attribute.id,"-value-",T,""),_.xp6(1),_.ekj("cursor-pointer",Z.readonly&&void 0!==Z.attribute.displayName),_.MGl("name","value-",T,""),_.hYB("id","",Z.attribute.id,"-value-",T,""),_.Q6J("readonly",Z.readonly)("ngModel",Z.values[T]),_.xp6(1),_.Q6J("ngIf",!Z.readonly)}}function J(ue,Oe){1&ue&&(_.TgZ(0,"mat-icon"),_._uU(1,"more_horiz"),_.qZA())}function ie(ue,Oe){1&ue&&(_.TgZ(0,"mat-icon"),_._uU(1,"keyboard_arrow_up"),_.qZA())}function ge(ue,Oe){if(1&ue){const T=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(T),_.oxw().onShowChange()}),_.YNc(1,J,2,0,"mat-icon",17),_.YNc(2,ie,2,0,"mat-icon",17),_.qZA()}if(2&ue){const T=_.oxw();_.xp6(1),_.Q6J("ngIf",!T.showMore),_.xp6(1),_.Q6J("ngIf",T.showMore)}}function X(ue,Oe){if(1&ue){const T=_.EpF();_.TgZ(0,"button",18),_.NdJ("click",function(){return _.CHM(T),_.oxw().addValue()}),_.TgZ(1,"mat-icon"),_._uU(2," add_box "),_.qZA(),_.qZA()}}let Ne=(()=>{class ue{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[Z,W]of T.entries())this.keys.push(Z),this.values.push(W)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,b.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 Z=0;ZZ.defaultItemsShown),_.xp6(1),_.Q6J("ngIf",!Z.readonly))},directives:[g._Y,g.JL,g.F,A.sg,E.KE,C.Nt,g.Fj,g.Q7,g.JJ,g.On,A.O5,O.lW,S.Hw,m.gM],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}"]}),ue})()},63167:(Xe,_e,p)=>{"use strict";p.d(_e,{_:()=>O});var e=p(5e3),b=p(9244),_=p(16074),w=p(48966),g=p(67322),A=p(98833),E=p(93075),C=p(64597);let O=(()=>{class S{constructor(B){this.dialog=B,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(B,L){const J=(0,b.kZ)();J.width="350px",J.data={value:B,title:L},this.dialog.open(_.mk,J)}}return S.\u0275fac=function(B){return new(B||S)(e.Y36(w.uw))},S.\u0275cmp=e.Xpm({type:S,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(B,L){1&B&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"input",1),e.NdJ("click",function(){return L.readonly&&void 0!==L.value&&L.showValue(L.value,L.attribute.displayName)})("ngModelChange",function(ie){return L.attribute.value=ie})("keydown",function(){return L._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA(),e.qZA()),2&B&&(e.s9C("appearance",L.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",L.readonly&&void 0!==L.value),e.Q2q("data-cy","",e.lcZ(2,6,L.attribute.displayName),"-value"),e.Q6J("readonly",L.readonly)("ngModel",L.attribute.value))},directives:[g.KE,A.Nt,E.Fj,E.JJ,E.On],pipes:[C.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),S})()},43532:(Xe,_e,p)=>{"use strict";p.d(_e,{M:()=>Oe});var e=p(5e3),b=p(28820),_=p(69808),w=p(38719),g=p(21963),A=p(63167),E=p(9244),C=p(16074),O=p(48966),S=p(67322),m=p(98833),B=p(93075);let L=(()=>{class T{constructor(W){this.dialog=W,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,E.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(W){const Y=(0,E.kZ)();Y.width="350px",Y.data={value:W.value,title:W.displayName},this.dialog.open(C.mk,Y)}}return T.\u0275fac=function(W){return new(W||T)(e.Y36(O.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(W,Y){1&W&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"input",1),e.NdJ("click",function(){return Y.readonly&&void 0!==Y.attribute.value&&Y.showValue(Y.attribute)})("ngModelChange",function(ce){return Y.attribute.value=ce})("keydown",function(){return Y._sendEventToParent()}),e.qZA(),e.qZA()),2&W&&(e.s9C("appearance",Y.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",Y.readonly&&void 0!==Y.attribute.value),e.Q6J("readonly",Y.readonly)("ngModel",Y.attribute.value))},directives:[S.KE,m.Nt,B.wV,B.Fj,B.JJ,B.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),T})();const J=["map"];function ie(T,Z){if(1&T){const W=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){return e.CHM(W),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const W=e.oxw();e.Q6J("attribute",W.attribute)("readonly",W.readonly)}}function ge(T,Z){if(1&T){const W=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){return e.CHM(W),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const W=e.oxw();e.Q6J("attribute",W.attribute)("readonly",W.readonly)}}function X(T,Z){if(1&T&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&T){const W=e.oxw();e.Q6J("attribute",W.attribute)("readonly",W.readonly)}}function Ne(T,Z){if(1&T){const W=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){return e.CHM(W),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const W=e.oxw();e.Q6J("attribute",W.attribute)("readonly",W.readonly)}}function ue(T,Z){if(1&T){const W=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){return e.CHM(W),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const W=e.oxw();e.Q6J("attribute",W.attribute)("readonly",W.readonly)}}let Oe=(()=>{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(W){return new(W||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(W,Y){if(1&W&&e.Gf(J,5),2&W){let ee;e.iGM(ee=e.CRH())&&(Y.mapComponent=ee.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(W,Y){1&W&&(e.TgZ(0,"div"),e.YNc(1,ie,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,ge,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return Y._sendEventToParent2()}),e.YNc(4,X,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,Ne,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,ue,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&W&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===Y.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===Y.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===Y.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===Y.attribute.type||"java.lang.LargeString"===Y.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===Y.attribute.type))},directives:[_.O5,w.u,g.H,b.$,A._,L],styles:[""]}),T})()},53984:(Xe,_e,p)=>{"use strict";p.d(_e,{p:()=>ze});var e=p(84847),b=p(32075),_=p(20449),w=p(43532),g=p(9244),A=p(36908),E=p(5e3),C=p(18750),O=p(77446),S=p(29772),m=p(69808),B=p(98380),L=p(64597);let J=(()=>{class ae{transform(ve){return"virt"===ve.namespace.split(":")[4]}}return ae.\u0275fac=function(ve){return new(ve||ae)},ae.\u0275pipe=E.Yjl({name:"isVirtualAttribute",type:ae,pure:!0}),ae})();var ie=p(51062);function ge(ae,Ue){if(1&ae){const ve=E.EpF();E.TgZ(0,"th",17),E.TgZ(1,"mat-checkbox",18),E.NdJ("change",function(z){E.CHM(ve);const I=E.oxw();return z?I.masterToggle():null}),E.qZA(),E.qZA()}if(2&ae){const ve=E.oxw();E.xp6(1),E.Q6J("checked",ve.selection.hasValue()&&ve.isAllSelected())("indeterminate",ve.selection.hasValue()&&!ve.isAllSelected())("aria-label",ve.checkboxLabel())}}function X(ae,Ue){if(1&ae){const ve=E.EpF();E.TgZ(0,"td",19),E.TgZ(1,"mat-checkbox",20),E.NdJ("click",function(z){return z.stopPropagation()})("change",function(z){const me=E.CHM(ve).$implicit,Ae=E.oxw();return z?Ae.selection.toggle(me):null}),E.ALo(2,"multiWordDataCy"),E.ALo(3,"isVirtualAttribute"),E.qZA(),E.qZA()}if(2&ae){const ve=Ue.$implicit,He=E.oxw();E.xp6(1),E.Q2q("data-cy","",E.lcZ(2,4,ve.displayName),"-checkbox"),E.Q6J("checked",He.selection.isSelected(ve))("disabled",E.lcZ(3,6,ve)||!ve.writable)("aria-label",He.checkboxLabel(ve))}}function Ne(ae,Ue){1&ae&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ae&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function ue(ae,Ue){if(1&ae&&(E.TgZ(0,"td",22),E._uU(1),E.qZA()),2&ae){const ve=Ue.$implicit;E.xp6(1),E.Oqu(ve.id)}}function Oe(ae,Ue){1&ae&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ae&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function T(ae,Ue){if(1&ae&&(E.TgZ(0,"td",23),E.TgZ(1,"div",24),E._uU(2),E.qZA(),E.qZA()),2&ae){const ve=Ue.$implicit,He=E.oxw();E.xp6(1),E.s9C("matTooltip",He.getAttributeFullName(ve)),E.xp6(1),E.hij(" ",ve.displayName," ")}}function Z(ae,Ue){1&ae&&(E.TgZ(0,"th",25),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ae&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function W(ae,Ue){if(1&ae){const ve=E.EpF();E.TgZ(0,"td",23),E.TgZ(1,"perun-web-apps-attribute-value",26),E.NdJ("sendEventToParent2",function(){const I=E.CHM(ve).$implicit;return E.oxw().onValueChange(I)}),E.qZA(),E.qZA()}if(2&ae){const ve=Ue.$implicit,He=E.oxw();E.xp6(1),E.Q6J("attribute",ve)("readonly",He.readonly||!ve.writable)}}function Y(ae,Ue){1&ae&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ae&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function ee(ae,Ue){if(1&ae&&(E.TgZ(0,"td",23),E._uU(1),E.qZA()),2&ae){const ve=Ue.$implicit;E.xp6(1),E.Oqu(ve.description)}}function ce(ae,Ue){1&ae&&E._UZ(0,"tr",27)}function le(ae,Ue){if(1&ae&&(E._UZ(0,"tr",28),E.ALo(1,"translate")),2&ae){const ve=Ue.$implicit,He=E.oxw();E.s9C("matTooltip",E.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),E.Q6J("matTooltipPosition","before")("matTooltipDisabled",ve.writable||He.readonly)}}function Pe(ae,Ue){1&ae&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ae&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Fe(ae,Ue){if(1&ae&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ae){const ve=E.oxw();E.xp6(1),E.hij(" ",E.lcZ(2,1,ve.emptyListText),"\n")}}let ze=(()=>{class ae{constructor(ve,He){this.authResolver=ve,this.tableCheckbox=He,this.attributes=[],this.selection=new _.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=g.f7}set matSort(ve){this.sort=ve,this.setDataSource()}static canBeSelected(ve){return!(0,g.Hm)(ve)&&ve.writable}static getDataForColumn(ve,He){switch(He){case"id":return ve.id.toString();case"displayName":return ve.displayName;case"description":return ve.description;case"value":return JSON.stringify(ve.value);case"urn":return ve.namespace+":"+ve.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ve=>"id"!==ve)),this.dataSource=new b.by((0,g.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(ve){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,ae.getDataForColumn),ve)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(ve=>!this.hiddenColumns.includes(ve)),this.dataSource&&(this.dataSource.filterPredicate=(ve,He)=>(0,g.Sd)(ve,He,this.displayedColumns.concat("urn"),ae.getDataForColumn),this.dataSource.sortData=(ve,He)=>(0,g.pR)(ve,He,ae.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,ae.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,ae.canBeSelected)}checkboxLabel(ve){return ve?`${this.selection.isSelected(ve)?"deselect":"select"} row ${ve.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const ve of this.items.toArray())"java.util.LinkedHashMap"===ve.attribute.type&&ve.updateMapAttribute()}onValueChange(ve){ae.canBeSelected(ve)&&this.selection.select(ve)}getAttributeFullName(ve){return`${ve.namespace}:${ve.friendlyName}`}}return ae.\u0275fac=function(ve){return new(ve||ae)(E.Y36(A.x4),E.Y36(A.UA))},ae.\u0275cmp=E.Xpm({type:ae,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(ve,He){if(1&ve&&(E.Gf(g.l9,7),E.Gf(e.YE,7),E.Gf(w.M,5)),2&ve){let z;E.iGM(z=E.CRH())&&(He.child=z.first),E.iGM(z=E.CRH())&&(He.matSort=z.first),E.iGM(z=E.CRH())&&(He.items=z)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[E.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["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"],["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(ve,He){1&ve&&(E.TgZ(0,"div",0),E.TgZ(1,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(I){return He.exportData(I)}),E.TgZ(2,"table",2),E.ynx(3,3),E.YNc(4,ge,2,3,"th",4),E.YNc(5,X,4,8,"td",5),E.BQk(),E.ynx(6,6),E.YNc(7,Ne,3,3,"th",7),E.YNc(8,ue,2,1,"td",8),E.BQk(),E.ynx(9,9),E.YNc(10,Oe,3,3,"th",7),E.YNc(11,T,3,2,"td",10),E.BQk(),E.ynx(12,11),E.YNc(13,Z,3,3,"th",12),E.YNc(14,W,2,2,"td",10),E.BQk(),E.ynx(15,13),E.YNc(16,Y,3,3,"th",7),E.YNc(17,ee,2,1,"td",10),E.BQk(),E.YNc(18,ce,1,0,"tr",14),E.YNc(19,le,2,5,"tr",15),E.qZA(),E.qZA(),E.qZA(),E.YNc(20,Pe,3,3,"perun-web-apps-alert",16),E.YNc(21,Fe,3,3,"perun-web-apps-alert",16)),2&ve&&(E.Q6J("hidden",0===He.dataSource.filteredData.length),E.xp6(1),E.Q6J("tableId",He.tableId)("dataLength",He.dataSource.filteredData.length)("pageSizeOptions",He.pageSizeOptions),E.xp6(1),E.Q6J("dataSource",He.dataSource),E.xp6(16),E.Q6J("matHeaderRowDef",He.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",He.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===He.dataSource.filteredData.length&&0!==He.dataSource.data.length),E.xp6(1),E.Q6J("ngIf",0===He.dataSource.data.length))},directives:[C.l,b.BZ,e.YE,b.w1,b.fO,b.ge,O.oG,b.Dz,b.ev,e.nU,S.gM,w.M,b.as,b.XQ,b.nj,b.Gk,m.O5,B.w],pipes:[L.R,J,ie.X$],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}"]}),ae})()},4235:(Xe,_e,p)=>{"use strict";p.d(_e,{W:()=>O});var e=p(36908),b=p(5e3),_=p(69808),w=p(47423),g=p(29772),A=p(25245),E=p(51062);const C=function(S){return{color:S}};let O=(()=>{class S{constructor(B,L){this.location=B,this.storeService=L}ngOnInit(){this.backButtonColor=this.storeService.get("theme","back_button_color")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return S.\u0275fac=function(B){return new(B||S)(b.Y36(_.Ye),b.Y36(e.d6))},S.\u0275cmp=b.Xpm({type:S,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(B,L){1&B&&(b.TgZ(0,"button",0),b.NdJ("click",function(){return L.goBack()}),b.ALo(1,"translate"),b.TgZ(2,"mat-icon",1),b._uU(3,"arrow_right_alt"),b.qZA(),b.qZA()),2&B&&(b.s9C("matTooltip",b.lcZ(1,2,"Back")),b.Q6J("ngStyle",b.VKq(4,C,L.backButtonColor)))},directives:[w.lW,_.PC,g.gM,A.Hw],pipes:[E.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),S})()},61150:(Xe,_e,p)=>{"use strict";p.d(_e,{r:()=>B});var e=p(5e3),b=p(93075),_=p(36908),w=p(67322),g=p(98833),A=p(69808),E=p(77446),C=p(82322),O=p(51062);function S(L,J){if(1&L){const ie=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){return e.CHM(ie),e.oxw().emitAsSubGroup()})("ngModelChange",function(X){return e.CHM(ie),e.oxw().asSubgroup=X}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&L){const ie=e.oxw();e.Q6J("labelPosition","before")("ngModel",ie.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function m(L,J){if(1&L){const ie=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(X){return e.CHM(ie),e.oxw().emitParentGroup(X)}),e.qZA()}if(2&L){const ie=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",ie.voGroups)}}let B=(()=>{class L{constructor(ie){this.store=ie,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.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new b.NI("",[b.kI.required,b.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),b.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new b.NI("",[b.kI.required,b.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(ie=>"members"!==ie.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(ie){this.selectedParent=ie,this.parentGroupChanged.emit(ie)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return L.\u0275fac=function(ie){return new(ie||L)(e.Y36(_.d6))},L.\u0275cmp=e.Xpm({type:L,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(ie,ge){1&ie&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-form-field",1),e.NdJ("keyup",function(){return ge.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.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return ge.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.qZA(),e.YNc(15,S,3,5,"mat-checkbox",5),e.YNc(16,m,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&ie&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",ge.nameControl),e.xp6(3),e.hij(" ",ge.invalidNameMessage.length?ge.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",ge.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",ge.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",ge.asSubgroup))},directives:[w.KE,g.Nt,b.Fj,b.Q7,b.JJ,b.oH,w.TO,A.O5,E.oG,b.On,C.h],pipes:[O.X$],styles:[""]}),L})()},39798:(Xe,_e,p)=>{"use strict";p.d(_e,{S:()=>E});var e=p(5e3),b=p(67322),_=p(98833),w=p(86856),g=p(93075),A=p(51062);let E=(()=>{class C{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 C.\u0275fac=function(S){return new(S||C)},C.\u0275cmp=e.Xpm({type:C,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(S,m){if(1&S){const B=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){return e.CHM(B),e.MAs(7).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 m.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2),e._UZ(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){return e.CHM(B),e.MAs(15).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 m.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2),e._UZ(14,"mat-datepicker",null,5),e.qZA()}if(2&S){const B=e.MAs(7),L=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",B)("min",m.startMinDate)("max",m.startMaxDate)("formControl",m.startDate),e.xp6(1),e.Q6J("for",B),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",L)("min",m.endMinDate)("max",m.endMaxDate)("formControl",m.endDate),e.xp6(1),e.Q6J("for",L)}},directives:[b.KE,b.hX,_.Nt,w.hl,g.Fj,g.JJ,g.oH,w.nW,b.R9,w.Mq],pipes:[A.X$],styles:[""]}),C})()},64901:(Xe,_e,p)=>{"use strict";p.d(_e,{P:()=>S});var e=p(5e3),b=p(23753),_=p(24850),w=p(80013),g=p(75778),A=p(67322),E=p(98833),C=p(51062);const O=["groupFilterInput"];let S=(()=>{class m{constructor(){this.autoFocus=!1,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.groupFilterInput.nativeElement.focus(),(0,b.R)(this.groupFilterInput.nativeElement,"keyup").pipe((0,_.U)(L=>L.target.value),(0,w.b)(500),(0,g.x)()).subscribe(L=>{this.filter.emit(L)})}}return m.\u0275fac=function(L){return new(L||m)},m.\u0275cmp=e.Xpm({type:m,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(L,J){if(1&L&&e.Gf(O,7),2&L){let ie;e.iGM(ie=e.CRH())&&(J.groupFilterInput=ie.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(L,J){1&L&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.qZA()),2&L&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,1,J.placeholder)))},directives:[A.KE,E.Nt],pipes:[C.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),m})()},42377:(Xe,_e,p)=>{"use strict";p.d(_e,{i:()=>Ne});var e=p(5e3),b=p(93075),_=p(96831),w=p(8929),g=p(7625),A=p(67322),E=p(74107),C=p(69808),O=p(90508),S=p(43586),m=p(53435);const B=["scrollViewport"];function L(ue,Oe){if(1&ue&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&ue){const T=e.oxw();e.xp6(1),e.hij(" ",T.multipleSelectedText()," ")}}function J(ue,Oe){if(1&ue&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&ue){const T=e.oxw(2);e.Tol(T.colorByStatus(null==T.entitiesCtrl?null:T.entitiesCtrl.value)),e.xp6(1),e.hij(" ",T.statusTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)?"("+T.statusTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)+")":""," ")}}function ie(ue,Oe){if(1&ue&&(e.TgZ(0,"mat-option",8),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,J,2,4,"span",10),e.qZA()),2&ue){const T=e.oxw();e.Q6J("value",null==T.entitiesCtrl?null:T.entitiesCtrl.value),e.xp6(1),e.hij(" ",T.mainTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(T.secondaryTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",T.displayStatus)}}function ge(ue,Oe){if(1&ue&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&ue){const T=e.oxw().$implicit,Z=e.oxw();e.Tol(Z.colorByStatus(T)),e.xp6(1),e.hij(" ",Z.statusTextFunction(T)?"("+Z.statusTextFunction(T)+")":""," ")}}function X(ue,Oe){if(1&ue&&(e.TgZ(0,"mat-option",11),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,ge,2,4,"span",10),e.qZA()),2&ue){const T=Oe.$implicit,Z=e.oxw();e.Tol(Z.theme),e.Q6J("value",T),e.xp6(1),e.hij(" ",Z.mainTextFunction(T)," "),e.xp6(2),e.Oqu(Z.secondaryTextFunction(T)),e.xp6(1),e.Q6J("ngIf",Z.displayStatus)}}let Ne=(()=>{class ue{constructor(T){this.cd=T,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.entitySelected=new e.vpe,this.entitiesCtrl=new b.NI,this.entityFilterCtrl=new b.NI,this.filteredEntities=new _.t(1),this._onDestroy=new w.xQ,this.entitiesLen=0,this.mainTextFunction=Z=>JSON.stringify(Z),this.secondaryTextFunction=Z=>"#".concat(String(Z.id),Z.description?" ".concat(Z.description):""),this.statusTextFunction=Z=>Z.status}ngOnInit(){this.entitiesCtrl.valueChanges.subscribe(T=>this.entitySelected.emit(T)),!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(T=>this.entitiesLen=T.length),this.entityFilterCtrl.valueChanges.pipe((0,g.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(T){switch(T.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(T){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),T.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(T){return T.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let T=48*this.entitiesLen;return T>192&&(T=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),T}multipleSelectedText(){const T=this.entitiesCtrl.value;if(T&&0!==T.length)return T.length===this.entities.length?"ALL":T.length>1?this.mainTextFunction(T[0])+` + ${T.length-1} other(s)`:this.mainTextFunction(T[0])+" "+this.secondaryTextFunction(T[0])}filterEntites(){if(!this.entities)return;let T=this.entityFilterCtrl.value;if(!T)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();T=this.normalize(T),this.filteredEntities.next(this.entities.filter(Z=>this.normalize(this.searchFunction(Z)).includes(T))),this.cd.detectChanges()}}return ue.\u0275fac=function(T){return new(T||ue)(e.Y36(e.sBO))},ue.\u0275cmp=e.Xpm({type:ue,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(T,Z){if(1&T&&e.Gf(B,5),2&T){let W;e.iGM(W=e.CRH())&&(Z.scrollViewport=W.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[e.TTD],decls:10,vars:16,consts:[[1,"w-100"],[3,"placeholder","formControl","multiple","openedChange"],[4,"ngIf"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value"]],template:function(T,Z){1&T&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"mat-select",1),e.NdJ("openedChange",function(){return Z.openChange()}),e.YNc(2,L,2,1,"mat-select-trigger",2),e.TgZ(3,"mat-option"),e._UZ(4,"ngx-mat-select-search",3),e.qZA(),e.YNc(5,ie,5,4,"mat-option",4),e.TgZ(6,"cdk-virtual-scroll-viewport",5,6),e.YNc(8,X,5,7,"mat-option",7),e.ALo(9,"async"),e.qZA(),e.qZA(),e.qZA()),2&T&&(e.xp6(1),e.s9C("placeholder",Z.selectPlaceholder),e.Q6J("formControl",Z.entitiesCtrl)("multiple",Z.multiple),e.xp6(1),e.Q6J("ngIf",Z.multiple),e.xp6(2),e.s9C("placeholderLabel",Z.findPlaceholder),e.s9C("noEntriesFoundLabel",Z.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",Z.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==Z.entitiesCtrl?null:Z.entitiesCtrl.value),e.xp6(1),e.Udp("height",Z.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(9,14,Z.filteredEntities)))},directives:[A.KE,E.gD,b.JJ,b.oH,C.O5,E.$L,O.ey,S.nu,m.N7,m.xd,m.x0],pipes:[C.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}"]}),ue})()},74010:(Xe,_e,p)=>{"use strict";p.d(_e,{X:()=>he});var e=p(84847),b=p(32075),_=p(9244),w=p(36908),g=p(5e3),A=p(18750),E=p(77446),C=p(10441),O=p(93075),S=p(69808),m=p(29772),B=p(47423),L=p(25245);function J(P,R){if(1&P&&(g.TgZ(0,"div",6),g._uU(1),g.qZA()),2&P){const V=R.$implicit,Q=g.oxw();g.xp6(1),g.hij(" ",V[Q.paramName]," ")}}function ie(P,R){1&P&&(g.TgZ(0,"mat-icon"),g._uU(1,"more_horiz"),g.qZA())}function ge(P,R){1&P&&(g.TgZ(0,"mat-icon"),g._uU(1,"keyboard_arrow_up"),g.qZA())}function X(P,R){if(1&P){const V=g.EpF();g.TgZ(0,"button",7),g.NdJ("click",function(){return g.CHM(V),g.oxw().onShowChange()}),g.YNc(1,ie,2,0,"mat-icon",8),g.YNc(2,ge,2,0,"mat-icon",8),g.qZA()}if(2&P){const V=g.oxw();g.xp6(1),g.Q6J("ngIf",!V.showMore),g.xp6(1),g.Q6J("ngIf",V.showMore)}}let Ne=(()=>{class P{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 P.\u0275fac=function(V){return new(V||P)},P.\u0275cmp=g.Xpm({type:P,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[g.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(V,Q){1&V&&(g.TgZ(0,"form",0),g.TgZ(1,"div",1),g.TgZ(2,"div",2),g.YNc(3,J,2,1,"div",3),g.qZA(),g.TgZ(4,"div"),g.TgZ(5,"span",4),g.YNc(6,X,3,2,"button",5),g.qZA(),g.qZA(),g.qZA(),g.qZA()),2&V&&(g.xp6(3),g.Q6J("ngForOf",Q.objects.slice(0,Q.itemsShown)),g.xp6(2),g.Q6J("matTooltip",Q.showMore?"Show less":"Show more")("matTooltipPosition","above"),g.xp6(1),g.Q6J("ngIf",Q.objects.length>Q.defaultItemsShown))},directives:[O._Y,O.JL,O.F,S.sg,m.gM,S.O5,B.lW,L.Hw],styles:[""]}),P})();var ue=p(50301),Oe=p(11735),T=p(98380),Z=p(51062),W=p(53561);let Y=(()=>{class P{transform(V,Q,Se){return V.filter(je=>je[Se].includes(Q)).filter((je,Ye,ye)=>ye.findIndex(re=>re[Se]===je[Se])===Ye)}}return P.\u0275fac=function(V){return new(V||P)},P.\u0275pipe=g.Yjl({name:"filterUniqueObjects",type:P,pure:!0}),P})();function ee(P,R){1&P&&g._UZ(0,"th",20)}function ce(P,R){if(1&P){const V=g.EpF();g.TgZ(0,"td",21),g.TgZ(1,"mat-checkbox",22),g.NdJ("change",function(Se){const Ye=g.CHM(V).$implicit,ye=g.oxw();return Se?ye.selection.toggle(Ye):null})("click",function(Se){return Se.stopPropagation()}),g.qZA(),g.qZA()}if(2&P){const V=R.$implicit,Q=g.oxw();g.xp6(1),g.Q2q("data-cy","",V.facility.name,"-checkbox"),g.Q6J("aria-label",Q.checkboxLabel(V))("checked",Q.selection.isSelected(V))}}function le(P,R){1&P&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&P&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function Pe(P,R){if(1&P&&(g.TgZ(0,"td",24),g._uU(1),g.qZA()),2&P){const V=R.$implicit;g.xp6(1),g.hij(" ",V.facility.id," ")}}function Fe(P,R){1&P&&g._UZ(0,"th",25)}function ze(P,R){if(1&P&&(g.TgZ(0,"td",26),g._UZ(1,"perun-web-apps-recently-viewed-icon",27),g.qZA()),2&P){const V=R.$implicit,Q=g.oxw();g.xp6(1),g.Q6J("id",V.facility.id)("recentIds",Q.recentIds)}}function ae(P,R){1&P&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&P&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function Ue(P,R){if(1&P&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&P){const V=R.$implicit;g.uIk("data-cy",V.facility.name),g.xp6(1),g.hij(" ",V.facility.name," ")}}function ve(P,R){1&P&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&P&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function He(P,R){if(1&P&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&P){const V=R.$implicit;g.xp6(1),g.Oqu(V.facility.description)}}function z(P,R){1&P&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&P&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function I(P,R){if(1&P&&(g.TgZ(0,"td",26),g._uU(1),g.ALo(2,"technicalOwners"),g.qZA()),2&P){const V=R.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,V.owners))}}function me(P,R){1&P&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&P&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function Ae(P,R){if(1&P){const V=g.EpF();g.TgZ(0,"td",26),g.TgZ(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){return g.CHM(V),g.oxw().disableRouting=!0})("mouseleave",function(){return g.CHM(V),g.oxw().disableRouting=!1}),g.ALo(2,"filterUniqueObjects"),g.qZA(),g.qZA()}if(2&P){const V=R.$implicit,Q=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,V.destinations,Q.filterValue,"destination"))("paramName","destination")}}function Me(P,R){1&P&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&P&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function pe(P,R){if(1&P){const V=g.EpF();g.TgZ(0,"td",26),g.TgZ(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){return g.CHM(V),g.oxw().disableRouting=!0})("mouseleave",function(){return g.CHM(V),g.oxw().disableRouting=!1}),g.ALo(2,"filterUniqueObjects"),g.qZA(),g.qZA()}if(2&P){const V=R.$implicit,Q=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,V.hosts,Q.filterValue,"hostname"))("paramName","hostname")}}function we(P,R){1&P&&g._UZ(0,"tr",29)}const $e=function(P){return["/facilities",P]},Je=function(){return[]};function nt(P,R){if(1&P&&g._UZ(0,"tr",30),2&P){const V=R.$implicit,Q=g.oxw();g.Q6J("perunWebAppsMiddleClickRouterLink",g.VKq(2,$e,V.facility.id))("routerLink",Q.disableRouting?g.DdM(4,Je):g.VKq(5,$e,V.facility.id))}}function ke(P,R){1&P&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&P&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function H(P,R){1&P&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&P&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let he=(()=>{class P{constructor(V){this.authResolver=V,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=_.f7,this.getDataForColumnFun=(Q,Se)=>P.getDataForColumn(Q,Se,this.recentIds)}set matSort(V){this.sort=V}static getDataForColumn(V,Q,Se){switch(Q){case"id":return V.facility.id.toString();case"name":return V.facility.name;case"description":return V.facility.description;case"technicalOwners":return(0,_.te)(V.owners);case"recent":return Se&&Se.includes(V.facility.id)?"#".repeat(Se.indexOf(V.facility.id)):V.name;case"destinations":return V.destinations.map(je=>je.destination).join(" ; ");case"hosts":return V.hosts.map(je=>je.hostname).join(" ; ");default:return V[Q]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(V=>"id"!==V)),this.setDataSource()}exportData(V){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),V)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(V,Q)=>(0,_.Sd)(V,Q,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(V,Q)=>(0,_.pR)(V,Q,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(V=>this.selection.select(V))}checkboxLabel(V){return V?`${this.selection.isSelected(V)?"deselect":"select"} row ${V.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return P.\u0275fac=function(V){return new(V||P)(g.Y36(w.x4))},P.\u0275cmp=g.Xpm({type:P,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(V,Q){if(1&V&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&V){let Se;g.iGM(Se=g.CRH())&&(Q.child=Se.first),g.iGM(Se=g.CRH())&&(Q.matSort=Se.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[g.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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,"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(V,Q){1&V&&(g.TgZ(0,"div",0),g.TgZ(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(je){return Q.exportData(je)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,ee,1,0,"th",4),g.YNc(5,ce,2,3,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,le,3,3,"th",7),g.YNc(8,Pe,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Fe,1,0,"th",10),g.YNc(11,ze,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,ae,3,3,"th",7),g.YNc(14,Ue,2,2,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,ve,3,3,"th",10),g.YNc(17,He,2,1,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,z,3,3,"th",10),g.YNc(20,I,3,3,"td",11),g.BQk(),g.ynx(21,15),g.YNc(22,me,3,3,"th",10),g.YNc(23,Ae,3,6,"td",11),g.BQk(),g.ynx(24,16),g.YNc(25,Me,3,3,"th",10),g.YNc(26,pe,3,6,"td",11),g.BQk(),g.YNc(27,we,1,0,"tr",17),g.YNc(28,nt,1,7,"tr",18),g.qZA(),g.qZA(),g.qZA(),g.YNc(29,ke,3,3,"perun-web-apps-alert",19),g.YNc(30,H,3,3,"perun-web-apps-alert",19)),2&V&&(g.Q6J("hidden",!Q.dataSource||0===Q.dataSource.filteredData.length||0===Q.facilities.length),g.xp6(1),g.Q6J("tableId",Q.tableId)("dataLength",Q.dataSource.filteredData.length)("pageSizeOptions",Q.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",Q.dataSource),g.xp6(25),g.Q6J("matHeaderRowDef",Q.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",Q.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===Q.dataSource.filteredData.length&&0!==Q.facilities.length),g.xp6(1),g.Q6J("ngIf",0===Q.facilities.length))},directives:[A.l,b.BZ,e.YE,b.w1,b.fO,b.ge,b.Dz,b.ev,E.oG,e.nU,C.W,Ne,b.as,b.XQ,b.nj,b.Gk,ue.YH,Oe.rH,S.O5,T.w],pipes:[Z.X$,W.J,Y],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),P})()},13449:(Xe,_e,p)=>{"use strict";p.d(_e,{i:()=>T});var e=p(5e3),b=p(36908),_=p(69808),w=p(47423),g=p(69287),A=p(29772),E=p(25245),C=p(92181),O=p(51062),S=p(45942),m=p(29218),B=p(28764);function L(Z,W){if(1&Z){const Y=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).onSyncDetail()}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&Z){const Y=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,Y.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,Y.group)),e.xp6(2),e.Tol(e.lcZ(6,13,Y.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,Y.group)," ")}}function J(Z,W){if(1&Z){const Y=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).onMoveGroup()}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA(),e.qZA(),e.qZA()}if(2&Z){const Y=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",Y.disabled)}}function ie(Z,W){if(1&Z){const Y=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).onChangeNameDescription()}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA(),e.qZA(),e.qZA()}if(2&Z){const Y=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",Y.disabled)}}function ge(Z,W){if(1&Z&&(e.TgZ(0,"div",2),e.TgZ(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA(),e.qZA(),e.YNc(5,L,9,17,"span",4),e.YNc(6,J,5,5,"span",4),e.YNc(7,ie,5,5,"span",4),e.qZA()),2&Z){const Y=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",Y.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",Y.syncAuth),e.xp6(1),e.Q6J("ngIf",Y.moveAuth),e.xp6(1),e.Q6J("ngIf",Y.editAuth)}}function X(Z,W){if(1&Z){const Y=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).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(),e.qZA()}if(2&Z){const Y=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,Y.group)),e.xp6(2),e.Tol(e.lcZ(3,8,Y.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,Y.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,Y.group)))}}function Ne(Z,W){if(1&Z){const Y=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).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(),e.qZA()}if(2&Z){const Y=e.oxw(2);e.Q6J("disabled",Y.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function ue(Z,W){if(1&Z){const Y=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).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(),e.qZA()}if(2&Z){const Y=e.oxw(2);e.Q6J("disabled",Y.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function Oe(Z,W){if(1&Z&&(e.TgZ(0,"div"),e.TgZ(1,"button",7),e.TgZ(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA(),e.qZA(),e.TgZ(4,"mat-menu",null,8),e.TgZ(6,"button",9),e.TgZ(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.qZA(),e.YNc(12,X,10,16,"button",10),e.YNc(13,Ne,6,4,"button",10),e.YNc(14,ue,6,4,"button",10),e.qZA(),e.qZA()),2&Z){const Y=e.MAs(5),ee=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",Y),e.xp6(5),e.Q6J("cdkCopyToClipboard",ee.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",ee.syncAuth),e.xp6(1),e.Q6J("ngIf",ee.moveAuth),e.xp6(1),e.Q6J("ngIf",ee.editAuth)}}let T=(()=>{class Z{constructor(Y){this.authResolver=Y,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(Y){return new(Y||Z)(e.Y36(b.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(Y,ee){1&Y&&(e.YNc(0,ge,8,8,"div",0),e.YNc(1,Oe,15,8,"div",1)),2&Y&&(e.Q6J("ngIf",ee.displayButtons),e.xp6(1),e.Q6J("ngIf",!ee.displayButtons))},directives:[_.O5,w.lW,g.i3,A.gM,E.Hw,C.p6,C.VK,C.OP],pipes:[O.X$,S.r,m.J,B.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),Z})()},8223:(Xe,_e,p)=>{"use strict";p.d(_e,{x:()=>L});var e=p(5e3),b=p(9244),_=p(16074),w=p(48966),g=p(69808),A=p(29772),E=p(25245),C=p(51062);function O(J,ie){if(1&J){const ge=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(ge),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA(),e.qZA()}2&J&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function S(J,ie){if(1&J){const ge=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(ge),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA(),e.qZA()}2&J&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function m(J,ie){if(1&J){const ge=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(ge),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA(),e.qZA()}if(2&J){const ge=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",ge.failureCause,"")}}function B(J,ie){1&J&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA(),e.qZA()),2&J&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let L=(()=>{class J{constructor(ge){this.dialog=ge,this.status="",this.statusChange=new e.vpe}changeStatus(){const ge=(0,b.kZ)();ge.width="500px",ge.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(_.Qu,ge).afterClosed().subscribe(Ne=>{Ne&&this.statusChange.emit()})}}return J.\u0275fac=function(ge){return new(ge||J)(e.Y36(w.uw))},J.\u0275cmp=e.Xpm({type:J,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",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(ge,X){1&ge&&(e.TgZ(0,"div",0),e.YNc(1,O,4,3,"span",1),e.YNc(2,S,4,3,"span",1),e.YNc(3,m,4,4,"span",1),e.YNc(4,B,4,3,"span",2),e.qZA()),2&ge&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===X.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===X.status),e.xp6(1),e.Q6J("ngIf","FAILED"===X.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===X.status))},directives:[g.O5,A.gM,E.Hw],pipes:[C.X$],styles:[""]}),J})()},82322:(Xe,_e,p)=>{"use strict";p.d(_e,{h:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=C=>C.name}ngOnInit(){this.groups=this.groups.sort(b.aC)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,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(C,O){if(1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return O.groupSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C){let S;e.Q6J("entities",O.groups)("entity",null!==(S=O.firstSelectedGroup)&&void 0!==S?S:null)("displayStatus",O.displayStatus)("disableAutoSelect",O.disableAutoSelect)("mainTextFunction",O.nameFunction)("searchFunction",O.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"))}},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},24179:(Xe,_e,p)=>{"use strict";p.d(_e,{W:()=>r});var e=p(5e3),b=p(16074),_=p(32105),w=p(36908),g=p(9244),A=p(84847),E=p(32075),C=p(20449),O=p(69808),S=p(48966),m=p(18750),B=p(77446),L=p(29772),J=p(10441),ie=p(25245),ge=p(8223),X=p(47423),Ne=p(13449),ue=p(50301),Oe=p(98380),T=p(51062),Z=p(69773),W=p(21757),Y=p(62383);let ee=(()=>{class o{transform(l){var s;const i=l.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return null!==(s=null==i?void 0:i.value)&&void 0!==s?s:"Never"}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275pipe=e.Yjl({name:"groupExpiration",type:o,pure:!0}),o})();function ce(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"mat-checkbox",26),e.NdJ("change",function(i){e.CHM(l);const t=e.oxw(2);return i?t.masterToggle():null}),e.qZA()}if(2&o){const l=e.oxw(2);e.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function le(o,d){if(1&o&&(e.TgZ(0,"th",24),e.YNc(1,ce,1,3,"mat-checkbox",25),e.qZA()),2&o){const l=e.oxw();e.xp6(1),e.Q6J("ngIf",!l.disableHeadCheckbox)}}function Pe(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"td",27),e.TgZ(1,"span",28),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",29),e.NdJ("change",function(i){const n=e.CHM(l).$implicit,a=e.oxw();return i?a.itemSelectionToggle(n):null})("click",function(i){return i.stopPropagation()}),e.qZA(),e.qZA(),e.qZA()}if(2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,s.getCheckboxTooltipMessage(l))),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!s.disableSelect(l)),e.xp6(2),e.Q2q("data-cy","",l.name,"-checkbox"),e.Q6J("aria-label",s.checkboxLabel(l))("checked",s.selection.isSelected(l))("disabled","members"===l.name&&s.disableMembers||s.disableSelect(l))}}function Fe(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function ze(o,d){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=d.$implicit;e.xp6(1),e.Oqu(l.id)}}function ae(o,d){1&o&&e._UZ(0,"th",32)}function Ue(o,d){if(1&o&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-recently-viewed-icon",34),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("recentIds",s.recentIds)("id",l.id)}}function ve(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function He(o,d){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.hij(" ",s.voNames.get(l.voId)," ")}}function z(o,d){1&o&&e._UZ(0,"th",32)}function I(o,d){1&o&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function me(o,d){1&o&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function Ae(o,d){if(1&o&&(e.TgZ(0,"td",33),e.YNc(1,I,3,3,"mat-icon",35),e.YNc(2,me,3,3,"mat-icon",35),e.qZA()),2&o){const l=d.$implicit;e.xp6(1),e.Q6J("ngIf",l.sourceGroupId&&!l.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",l.moreTypesOfAssignment)}}function Me(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function pe(o,d){if(1&o&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&o){const l=d.$implicit;e.uIk("data-cy",l.name),e.xp6(1),e.hij(" ",l.name," ")}}function we(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function $e(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"td",37),e.TgZ(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){return e.CHM(l),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(l);const i=e.oxw();return i.disabledRouting=i.disableRouting})("statusChange",function(){return e.CHM(l),e.oxw().refreshTable.emit()}),e.qZA(),e.qZA()}if(2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",l.id)("resourceId",s.resourceId)("failureCause",l.failureCause)("status",l.status)}}function Je(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function nt(o,d){if(1&o&&(e.TgZ(0,"td",33),e.TgZ(1,"i",39),e.ALo(2,"memberStatusIconColor"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,s.getStatusAttribute(l)),""),e.s9C("matTooltip",s.getStatusAttribute(l)),e.xp6(3),e.hij(" ",e.lcZ(5,7,s.getStatusAttribute(l))," ")}}function ke(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function H(o,d){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&o){const l=d.$implicit;e.xp6(1),e.Oqu(l.description)}}function he(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function P(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(l);const i=e.oxw().$implicit;return e.oxw().changeExpiration(i)})("mouseenter",function(){return e.CHM(l),e.oxw(2).disabledRouting=!0})("mouseleave",function(){e.CHM(l);const i=e.oxw(2);return i.disabledRouting=i.disableRouting}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA(),e.qZA()}}function R(o,d){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,P,3,0,"button",40),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,l))," "),e.xp6(3),e.Q6J("ngIf",s.canManageGroup(l))}}function V(o,d){1&o&&e._UZ(0,"th",32)}function Q(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"td",33),e.TgZ(1,"perun-web-apps-group-menu",42),e.NdJ("mouseenter",function(){return e.CHM(l),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(l);const i=e.oxw();return i.disabledRouting=i.disableRouting})("moveGroup",function(){const t=e.CHM(l).$implicit;return e.oxw().onMoveGroup(t)})("changeNameDescription",function(){const t=e.CHM(l).$implicit;return e.oxw().onChangeNameDescription(t)})("syncGroup",function(){const t=e.CHM(l).$implicit;return e.oxw().onSyncDetail(t)}),e.qZA(),e.qZA()}if(2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("disabled","members"===l.name)("displayButtons",s.displayButtons)("group",l)}}function Se(o,d){1&o&&e._UZ(0,"tr",43)}const je=function(o,d){return["/organizations",o,"groups",d]};function Ye(o,d){if(1&o&&e._UZ(0,"tr",44),2&o){const l=d.$implicit,s=e.oxw();e.ekj("cursor-pointer",!s.disableRouting&&!s.groupsToDisableRouting.has(l.id))("disable-outline",s.disabledRouting||s.groupsToDisableRouting.has(l.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",s.disabledRouting||s.groupsToDisableRouting.has(l.id)?null:e.WLB(6,je,l.voId,l.id))("perunWebAppsForceRouterLink",s.disabledRouting||s.groupsToDisableRouting.has(l.id)?null:e.WLB(9,je,l.voId,l.id))}}function ye(o,d){if(1&o&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o){const l=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,l.noGroupsAlert),"\n")}}function re(o,d){1&o&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let r=(()=>{class o{constructor(l,s,i,t,n){this.dialog=l,this.authResolver=s,this.voService=i,this.tableCheckbox=t,this.changeDetector=n,this.theme="group-theme",this.moveGroup=new e.vpe,this.groups=[],this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.filter="",this.disableRouting=!1,this.pageSizeOptions=g.f7,this.recentIds=[],this.resourceId=null,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.refreshTable=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.hasMembersGroup=!1,this.getDataForColumnFun=(a,c)=>o.getDataForColumn(a,c,this.voNames),this.getSortDataForColumnFun=(a,c)=>o.getSortDataForColumn(a,c,this.voNames,this.recentIds),this.canBeSelected=a=>!("members"===a.name&&this.disableMembers||this.disableSelect(a))}set matSort(l){this.sort=l}static getDataForColumn(l,s,i){switch(s){case"id":return l.id.toString();case"vo":return i.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const t=(0,g.x2)(l);return(0,g.sG)(t)}case"recent":return"";case"status":return l.status;case"uuid":return l.uuid;default:return l[s]}}static getSortDataForColumn(l,s,i,t){switch(s){case"id":return l.id.toString();case"vo":return i.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const n=(0,g.x2)(l);return n&&"never"!==n.toLowerCase()?(0,O.p6)(n,"yyyy.MM.dd","en"):n}case"recent":return t&&t.includes(l.id)?"#".repeat(t.indexOf(l.id)):l.name;case"status":return l.status;default:return l[s]}}shouldHideButtons(){this.displayButtons=window.innerWidth>800}ngOnChanges(){this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}checkIfHasMembersGroup(){for(const l of this.groups)if("members"===l.name)return!0;return!1}exportData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new E.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,s)=>(0,g.Sd)(l,s,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(l,s)=>(0,g.pR)(l,s,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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),this.authType&&(this.removeAuth=this.setAuth())}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(l){return this.disableGroups&&(this.groupsToDisableCheckbox.has(l.id)||(0,g.bx)(l))}ngAfterViewInit(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.shouldHideButtons(),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l),this.changeDetector.detectChanges())}onMoveGroup(l){this.moveGroup.emit(l)}onSyncDetail(l){const s=(0,g.kZ)();s.data={groupId:l.id,theme:this.theme},this.dialog.open(b.Bp,s)}onChangeNameDescription(l){const s=(0,g.kZ)();s.data={theme:"group-theme",group:l,dialogType:b.Eg.GROUP},this.dialog.open(b.rd,s).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[s]),!0):"group-relations"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[this.parentGroup])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[s]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,s]),!0):"member-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[s]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,s]),!0):void 0}itemSelectionToggle(l){this.selection.toggle(l),this.removeAuth=this.setAuth()}getCheckboxTooltipMessage(l){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,g.bx)(l)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":l.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}updateVoNames(){this.displayedColumns.includes("vo")&&(this.groups.forEach(l=>{this.voIds.has(l.voId)||this.voIds.add(l.voId)}),this.voIds.size>0&&this.voService.getVosByIds([...this.voIds]).subscribe(l=>{l.forEach(s=>{this.voNames.set(s.id,s.name)})}))}changeExpiration(l){const s=l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName),i=(0,g.kZ)();i.width="400px",i.data={memberId:this.memberId,groupId:l.id,expirationAttr:s,mode:"group",status:this.memberGroupStatus},this.dialog.open(b.u3,i).afterClosed().subscribe(n=>{n.success&&this.refreshTable.emit()})}canManageGroup(l){return this.authResolver.isThisGroupAdmin(l.id)||this.authResolver.isThisVoAdmin(l.voId)}getStatusAttribute(l){const s=l.attributes.find(i=>"groupStatus"===i.baseFriendlyName);return(null==s?void 0:s.value)?s.value:""}}return o.\u0275fac=function(l){return new(l||o)(e.Y36(S.uw),e.Y36(w.x4),e.Y36(_.YF),e.Y36(w.UA),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(l,s){if(1&l&&(e.Gf(g.l9,7),e.Gf(A.YE,7)),2&l){let i;e.iGM(i=e.CRH())&&(s.child=i.first),e.iGM(i=e.CRH())&&(s.matSort=i.first)}},hostBindings:function(l,s){1&l&&e.NdJ("resize",function(t){return s.shouldHideButtons(t)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",noGroupsAlert:"noGroupsAlert"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:40,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["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","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","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["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"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip"],["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","perunWebAppsForceRouterLink"],["alert_type","warn"]],template:function(l,s){1&l&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(t){return s.exportData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,le,2,1,"th",4),e.YNc(5,Pe,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Fe,3,3,"th",7),e.YNc(8,ze,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,ae,1,0,"th",10),e.YNc(11,Ue,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,ve,3,3,"th",7),e.YNc(14,He,2,1,"td",8),e.BQk(),e.ynx(15,13),e.YNc(16,z,1,0,"th",10),e.YNc(17,Ae,3,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,Me,3,3,"th",7),e.YNc(20,pe,2,2,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,we,3,3,"th",7),e.YNc(23,$e,2,5,"td",16),e.BQk(),e.ynx(24,17),e.YNc(25,Je,3,3,"th",7),e.YNc(26,nt,6,9,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,ke,3,3,"th",7),e.YNc(29,H,2,1,"td",16),e.BQk(),e.ynx(30,19),e.YNc(31,he,3,3,"th",7),e.YNc(32,R,5,6,"td",16),e.BQk(),e.ynx(33,20),e.YNc(34,V,1,0,"th",10),e.YNc(35,Q,2,3,"td",11),e.BQk(),e.YNc(36,Se,1,0,"tr",21),e.YNc(37,Ye,1,12,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.YNc(38,ye,3,3,"perun-web-apps-alert",23),e.YNc(39,re,3,3,"perun-web-apps-alert",23)),2&l&&(e.Q6J("hidden",0===s.groups.length||!s.dataSource||0===s.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions)("tableId",s.tableId),e.xp6(1),e.Q6J("dataSource",s.dataSource),e.xp6(34),e.Q6J("matHeaderRowDef",s.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",s.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===s.groups.length),e.xp6(1),e.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.groups.length))},directives:[m.l,E.BZ,A.YE,E.w1,E.fO,E.ge,O.O5,B.oG,E.Dz,E.ev,L.gM,A.nU,J.W,ie.Hw,ge.x,X.lW,Ne.i,E.as,E.XQ,E.nj,E.Gk,ue.YH,ue.Kd,Oe.w],pipes:[T.X$,Z.u,W.f,Y.M,ee],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}"]}),o})()},58956:(Xe,_e,p)=>{"use strict";p.d(_e,{I:()=>Fe});var e=p(5e3),b=p(90149),_=p(28258),w=p(20449);class g{constructor(ae){this.id=ae.id,this.name=ae.name,this.parentGroupId=ae.parentGroupId,this.voId=ae.voId,this.shortName=ae.shortName,this.description=ae.description,this.attributes=ae.attributes,this.beanName=ae.beanName}addChild(ae){null==this.children?this.children=[ae]:this.children.push(ae)}}var A=p(9244),E=p(16074),C=p(36908),O=p(48966),S=p(69808),m=p(53435),B=p(77446),L=p(11735),J=p(47423),ie=p(25245),ge=p(29772),X=p(13449),Ne=p(98380),ue=p(51062);const Oe=["scrollViewport"];function T(ze,ae){if(1&ze){const Ue=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(Ue);const He=e.oxw().$implicit;return e.oxw(2).itemSelectionToggle(He)}),e.qZA()}if(2&ze){const Ue=e.oxw().$implicit,ve=e.oxw(2);e.Q2q("data-cy","",Ue.name,"-checkbox"),e.Q6J("disabled","members"===Ue.fullName)("checked",ve.selection.isSelected(Ue))("indeterminate",ve.descendantsPartiallySelected(Ue))}}function Z(ze,ae){if(1&ze&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&ze){const Ue=e.oxw().$implicit,ve=e.oxw(2);e.xp6(1),e.hij(" ",ve.treeControl.isExpanded(Ue)?"expand_more":"chevron_right"," ")}}function W(ze,ae){if(1&ze&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&ze){const Ue=e.oxw().$implicit;e.xp6(1),e.hij(" #",Ue.id," ")}}const Y=function(ze,ae){return["/organizations",ze,"groups",ae]};function ee(ze,ae){if(1&ze){const Ue=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,T,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){return e.CHM(Ue),e.oxw(2).disableRouting=!0})("mouseleave",function(){return e.CHM(Ue),e.oxw(2).disableRouting=!1})("click",function(){const z=e.CHM(Ue).$implicit;return e.oxw(2).treeControl.toggle(z)}),e.YNc(5,Z,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11),e.TgZ(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,W,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15),e.TgZ(12,"span",16),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",17),e.TgZ(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const z=e.CHM(Ue).$implicit;return e.oxw(2).onMoveGroup(z)})("syncGroup",function(){const z=e.CHM(Ue).$implicit;return e.oxw(2).onSyncDetail(z)})("changeNameDescription",function(){const z=e.CHM(Ue).$implicit;return e.oxw(2).onChangeNameDescription(z)}),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&ze){const Ue=ae.$implicit,ve=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*Ue.level+"px"),e.xp6(1),e.Q6J("ngIf",!ve.hideCheckbox),e.xp6(1),e.Q6J("routerLink",ve.disableRouting?null:e.WLB(15,Y,Ue.voId,Ue.id)),e.xp6(1),e.Q6J("disabled",!Ue.expandable),e.uIk("aria-label","toggle "+Ue.name),e.xp6(1),e.Q6J("ngIf",Ue.expandable),e.xp6(2),e.uIk("data-cy",Ue.name),e.xp6(1),e.hij(" ",Ue.name," "),e.xp6(1),e.Q6J("ngIf",ve.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",Ue.description),e.xp6(1),e.hij(" ",Ue.description," "),e.xp6(2),e.Q6J("disabled","members"===Ue.fullName)("displayButtons",ve.displayButtons)("group",Ue)}}const ce=function(ze){return{height:ze}};function le(ze,ae){if(1&ze&&(e.TgZ(0,"div",2),e.TgZ(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,ee,16,18,"ng-container",5),e.qZA(),e.qZA()),2&ze){const Ue=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,ce,Ue.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",Ue.dataSource)}}function Pe(ze,ae){1&ze&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Fe=(()=>{class ze{constructor(Ue,ve,He){this.cd=Ue,this.dialog=ve,this.authResolver=He,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new w.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new _.C2(z=>z.level,z=>z.expandable),this.hasChild=(z,I)=>I.expandable,this.getLevel=z=>z.level,this.transformer=(z,I)=>({expandable:!!z.children&&z.children.length>0,name:z.shortName,fullName:z.name,parentGroupId:z.parentGroupId,level:I,id:z.id,voId:z.voId,attributes:z.attributes,beanName:z.beanName,description:z.description}),this.treeFlattener=new b.JZ(this.transformer,z=>z.level,z=>z.expandable,z=>z.children),this.dataSource=new b.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(Ue=>{var ve,He;return(null===(ve=Ue.name)||void 0===ve?void 0:ve.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(He=Ue.description)||void 0===He?void 0:He.toLowerCase().includes(this.filterValue.toLowerCase()))||Ue.id.toString().includes(this.filterValue.toLowerCase())||Ue.uuid.toLowerCase().includes(this.filterValue.toLowerCase())});for(const Ue of this.filteredGroups)Ue.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,A.oU)(Ue.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(Ue){const ve=(0,A.kZ)();ve.data={groupId:Ue.id,theme:this.theme},this.dialog.open(E.Bp,ve)}onChangeNameDescription(Ue){const ve=(0,A.kZ)();ve.data={theme:"group-theme",group:Ue,dialogType:E.Eg.GROUP},this.dialog.open(E.rd,ve).afterClosed().subscribe(z=>{z&&this.refreshTable.emit()})}createGroupTrees(Ue){const ve=new Map;for(const I of Ue)ve.set(I.id,new g(I));const He=new Set;ve.forEach((I,me,Ae)=>{const Me=Ae.get(I.parentGroupId);void 0!==Me&&(Me.addChild(I),Ae.set(I.parentGroupId,Me)),null!==I.parentGroupId&&void 0===Me&&He.add(I.id)});const z=[];ve.forEach(I=>{(null===I.parentGroupId||He.has(I.id))&&z.push(I)}),this.dataSource.data=z,this.cd.detectChanges()}getParentNode(Ue){const ve=this.getLevel(Ue);if(ve<1)return null;for(let z=this.treeControl.dataNodes.indexOf(Ue)-1;z>=0;z--){const I=this.treeControl.dataNodes[z];if(this.getLevel(I)this.selection.isSelected(I));ve&&!z&&this.selection.deselect(Ue)}checkAllParentsSelection(Ue){let ve=this.getParentNode(Ue);for(;ve;)this.checkRootNodeSelection(ve),ve=this.getParentNode(ve);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(Ue){return this.treeControl.getDescendants(Ue).some(z=>this.selection.isSelected(z))&&!this.selection.isSelected(Ue)}itemSelectionToggle(Ue){this.selection.toggle(Ue);const ve=this.treeControl.getDescendants(Ue);this.selection.isSelected(Ue)?this.selection.select(...ve):this.selection.deselect(...ve),ve.every(He=>this.selection.isSelected(He)),this.checkAllParentsSelection(Ue)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(Ue,ve)=>Ue&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,ve]):(Ue,ve)=>Ue&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[ve]),!0)}onMoveGroup(Ue){this.moveGroup.emit(Ue)}getTreeViewHeight(){let Ue=0;this.scrollViewport&&(Ue=this.scrollViewport.getDataLength());let ve=48*Ue;return ve>672&&(ve=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(ve)+"px"}}return ze.\u0275fac=function(Ue){return new(Ue||ze)(e.Y36(e.sBO),e.Y36(O.uw),e.Y36(C.x4))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(Ue,ve){if(1&Ue&&e.Gf(Oe,5),2&Ue){let He;e.iGM(He=e.CRH())&&(ve.scrollViewport=He.first)}},hostBindings:function(Ue,ve){1&Ue&&e.NdJ("resize",function(z){return ve.shouldHideButtons(z)},!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"],["queryParamsHandling","merge",1,"group-item-content","text-format",3,"routerLink"],["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(Ue,ve){1&Ue&&(e.YNc(0,le,4,6,"div",0),e.YNc(1,Pe,3,3,"perun-web-apps-alert",1)),2&Ue&&(e.Q6J("ngIf",0!==ve.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===ve.filteredGroups.length))},directives:[S.O5,m.N7,m.xd,S.PC,m.x0,B.oG,L.yS,J.lW,ie.Hw,ge.gM,X.i,Ne.w],pipes:[ue.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}"]}),ze})()},52314:(Xe,_e,p)=>{"use strict";p.d(_e,{X:()=>L});var e=p(32105),b=p(36908),_=p(5e3),w=p(51062),g=p(69808),A=p(47423),E=p(92181),C=p(29772),O=p(25245);const S=function(J){return{color:J}};function m(J,ie){if(1&J&&(_.TgZ(0,"button",8),_.ALo(1,"translate"),_.TgZ(2,"mat-icon",4),_._uU(3," apps "),_.qZA(),_.qZA()),2&J){const ge=_.oxw(),X=_.MAs(2);_.Q6J("matMenuTriggerFor",X)("matTooltip",_.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),_.xp6(2),_.Q6J("ngStyle",_.VKq(5,S,ge.iconColor))}}function B(J,ie){if(1&J){const ge=_.EpF();_.TgZ(0,"button",2),_.NdJ("click",function(){return _.CHM(ge),_.oxw().onLogOut()}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&J&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"NAV.LOGOUT")," "))}let L=(()=>{class J{constructor(ge,X,Ne,ue){this.authService=ge,this.authzResolverService=X,this.notificator=Ne,this.translateService=ue}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return J.\u0275fac=function(ge){return new(ge||J)(_.Y36(b.e8),_.Y36(e.Ct),_.Y36(b.V6),_.Y36(w.sK))},J.\u0275cmp=_.Xpm({type:J,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(ge,X){if(1&ge&&(_.YNc(0,m,4,7,"button",0),_.TgZ(1,"mat-menu",null,1),_.TgZ(3,"button",2),_.NdJ("click",function(){return X.redirectToUrl()}),_.TgZ(4,"span"),_._uU(5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(6,"button",3),_.TgZ(7,"mat-icon",4),_._uU(8," person "),_.qZA(),_.TgZ(9,"span",5),_._uU(10),_.qZA(),_.qZA(),_.TgZ(11,"mat-menu",null,6),_.YNc(13,B,3,3,"button",7),_.qZA()),2&ge){const Ne=_.MAs(12);_.Q6J("ngIf",X.url),_.xp6(5),_.Oqu(X.label),_.xp6(1),_.Q6J("matMenuTriggerFor",Ne),_.xp6(1),_.Q6J("ngStyle",_.VKq(11,S,X.iconColor)),_.xp6(2),_.Q6J("ngStyle",_.VKq(13,S,X.textColor)),_.xp6(1),_.xDo(" ",X.user.titleBefore," ",X.user.firstName," ",X.user.middleName," ",X.user.lastName," ",X.user.titleAfter," "),_.xp6(3),_.Q6J("ngIf",X.logoutEnabled)}},directives:[g.O5,A.lW,E.p6,C.gM,O.Hw,g.PC,E.VK,E.OP],pipes:[w.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),J})()},7434:(Xe,_e,p)=>{"use strict";p.d(_e,{L:()=>S});var e=p(5e3),b=p(93075),_=p(67322),w=p(69808),g=p(98833),A=p(50301),E=p(51062);function C(m,B){if(1&m&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&m){const L=e.oxw();e.s9C("placeholder",e.lcZ(1,2,L.placeholder)),e.Q6J("formControl",L.formControl)}}function O(m,B){if(1&m&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&m){const L=e.oxw();e.s9C("placeholder",e.lcZ(1,2,L.placeholder)),e.Q6J("formControl",L.formControl)}}let S=(()=>{class m{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new b.NI}ngOnInit(){this.formControl.valueChanges.subscribe(L=>{let J=L.trim();J=J.toLowerCase(),this.filter.emit(J)})}}return m.\u0275fac=function(L){return new(L||m)},m.\u0275cmp=e.Xpm({type:m,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(L,J){1&L&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,C,2,4,"input",1),e.YNc(2,O,2,4,"input",2),e.qZA()),2&L&&(e.xp6(1),e.Q6J("ngIf",J.autoFocus),e.xp6(1),e.Q6J("ngIf",!J.autoFocus))},directives:[_.KE,w.O5,g.Nt,b.Fj,A.hT,b.JJ,b.oH],pipes:[E.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),m})()},4811:(Xe,_e,p)=>{"use strict";p.d(_e,{m:()=>Se});var e=p(84847),b=p(9244),_=p(16074),w=p(36908),g=p(36787),A=p(22868),E=p(5e3),C=p(48966),O=p(10036),S=p(18750),m=p(69808),B=p(20773),L=p(32075),J=p(77446),ie=p(29772),ge=p(25245),X=p(50301),Ne=p(11735),ue=p(98380),Oe=p(51062),T=p(31359),Z=p(69773),W=p(12856),Y=p(21757),ee=p(96974),ce=p(20919),le=p(5865);function Pe(je,Ye){1&je&&(E.TgZ(0,"div",22),E._UZ(1,"mat-spinner",23),E.qZA())}function Fe(je,Ye){if(1&je){const ye=E.EpF();E.TgZ(0,"th",24),E.TgZ(1,"mat-checkbox",25),E.NdJ("change",function(r){E.CHM(ye);const o=E.oxw();return r?o.masterToggle():null}),E.qZA(),E.qZA()}if(2&je){const ye=E.oxw();E.xp6(1),E.Q6J("aria-label",ye.checkboxLabel())("checked",ye.selection.hasValue()&&ye.isAllSelected())("indeterminate",ye.selection.hasValue()&&!ye.isAllSelected())}}function ze(je,Ye){if(1&je){const ye=E.EpF();E.TgZ(0,"td",26),E.TgZ(1,"mat-checkbox",27),E.NdJ("change",function(r){const d=E.CHM(ye).$implicit,l=E.oxw();return r?l.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),E.ALo(2,"lowercase"),E.ALo(3,"translate"),E.qZA(),E.qZA()}if(2&je){const ye=Ye.$implicit,re=E.oxw();E.xp6(1),E.Q2q("data-cy","",E.lcZ(2,5,ye.user.firstName),"-checkbox"),E.Q6J("aria-label",re.checkboxLabel(ye))("checked",re.selection.isSelected(ye))("disabled","INDIRECT"===ye.membershipType)("matTooltip","INDIRECT"===ye.membershipType?E.lcZ(3,7,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function ae(je,Ye){1&je&&(E.TgZ(0,"th",28),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.ID")))}function Ue(je,Ye){if(1&je&&(E.TgZ(0,"td",29),E._uU(1),E.qZA()),2&je){const ye=Ye.$implicit;E.xp6(1),E.Oqu(ye.id)}}function ve(je,Ye){1&je&&E._UZ(0,"th",28)}function He(je,Ye){if(1&je){const ye=E.EpF();E.TgZ(0,"mat-icon",32),E.NdJ("click",function(r){E.CHM(ye);const o=E.oxw().$implicit;return E.oxw().viewMemberGroupTree(r,o)}),E.ALo(1,"translate"),E._uU(2,"transfer_within_a_station"),E.qZA()}2&je&&E.Q6J("matTooltip",E.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function z(je,Ye){if(1&je&&(E.TgZ(0,"td",30),E.YNc(1,He,3,3,"mat-icon",31),E.qZA()),2&je){const ye=Ye.$implicit;E.xp6(1),E.Q6J("ngIf","DIRECT"!==ye.membershipType)}}function I(je,Ye){1&je&&(E.TgZ(0,"th",28),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function me(je,Ye){if(1&je&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&je){const ye=Ye.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,ye.user))}}function Ae(je,Ye){1&je&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function Me(je,Ye){if(1&je){const ye=E.EpF();E.TgZ(0,"td",30),E.TgZ(1,"i",34),E.NdJ("click",function(r){const d=E.CHM(ye).$implicit;return E.oxw().changeStatus(r,d)}),E.ALo(2,"memberStatusIconColor"),E.ALo(3,"memberStatusTooltip"),E.TgZ(4,"span"),E._uU(5),E.ALo(6,"memberStatusIcon"),E.qZA(),E.qZA(),E.qZA()}if(2&je){const ye=Ye.$implicit;E.xp6(1),E.Gre("material-icons ",E.lcZ(2,5,ye.status),""),E.s9C("matTooltip",E.xi3(3,7,ye,!1)),E.xp6(4),E.hij(" ",E.lcZ(6,10,ye.status)," ")}}function pe(je,Ye){1&je&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function we(je,Ye){if(1&je){const ye=E.EpF();E.TgZ(0,"td",30),E.TgZ(1,"i",34),E.NdJ("click",function(r){const d=E.CHM(ye).$implicit,l=E.oxw();return l.changeStatus(r,d,l.groupId)}),E.ALo(2,"memberStatusIconColor"),E.ALo(3,"memberStatusTooltip"),E.TgZ(4,"span"),E._uU(5),E.ALo(6,"memberStatusIcon"),E.qZA(),E.qZA(),E.qZA()}if(2&je){const ye=Ye.$implicit;E.xp6(1),E.Gre("material-icons ",E.lcZ(2,5,ye.groupStatus),""),E.s9C("matTooltip",E.xi3(3,7,ye,!0)),E.xp6(4),E.hij(" ",E.lcZ(6,10,ye.groupStatus)," ")}}function $e(je,Ye){1&je&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Je(je,Ye){if(1&je&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberOrganization"),E.qZA()),2&je){const ye=Ye.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,ye))}}function nt(je,Ye){1&je&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function ke(je,Ye){if(1&je&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberEmail"),E.qZA()),2&je){const ye=Ye.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,ye))}}function H(je,Ye){1&je&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function he(je,Ye){if(1&je&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberLogins"),E.qZA()),2&je){const ye=Ye.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,ye))}}function P(je,Ye){1&je&&E._UZ(0,"tr",35)}const R=function(je,Ye){return["/organizations",je,"members",Ye]};function V(je,Ye){if(1&je&&E._UZ(0,"tr",36),2&je){const ye=Ye.$implicit,re=E.oxw();E.ekj("cursor-pointer",re.dataSource.routeAuth)("italic_font","INDIRECT"===ye.membershipType)("disable-outline",!re.dataSource.routeAuth),E.Q6J("perunWebAppsMiddleClickRouterLink",re.dataSource.routeAuth?E.WLB(8,R,ye.voId,ye.id):null)("routerLink",re.dataSource.routeAuth?E.WLB(11,R,ye.voId,ye.id):null)}}function Q(je,Ye){1&je&&(E.TgZ(0,"perun-web-apps-alert",37),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_MEMBERS"),"\n"))}let Se=(()=>{class je{constructor(ye,re,r,o,d){this.dialog=ye,this.authResolver=re,this.tableCheckbox=r,this.tableConfigService=o,this.dynamicPaginatingService=d,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=b.f7,this.canBeSelected=l=>"INDIRECT"!==l.membershipType}static getExportDataForColumn(ye,re){switch(re){case"id":return ye.id.toString();case"fullName":return ye.user?(0,b.bD)(ye.user):"";case"status":return ye.status;case"groupStatus":return ye.groupStatus;case"organization":return(0,b.Gw)(ye);case"email":return(0,b.g$)(ye);case"logins":return(0,b.lt)(ye);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ye=>"id"!==ye)),this.dataSource=new w.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(ye=>{this.canBeSelected(ye)&&this.selection.select(ye)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(r=>this.canBeSelected(r)).length}checkboxLabel(ye){return ye?`${this.selection.isSelected(ye)?"deselect":"select"} row ${ye.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(ye,re,r){ye.stopPropagation();const o=(0,b.kZ)();o.width="500px",o.data={member:re,voId:this.voId,groupId:r};const d=r?re.groupStatus:re.status;this.dialog.open(_.pf,o).afterClosed().subscribe(s=>{if(s){const i=r?s.groupStatus:s.status;"VALID"===d&&("EXPIRED"===i||"DISABLED"===i)||"VALID"===i?(r?re.groupStatus=i:re.status=i,this.changeExpiration(re,r)):this.loadMembersPage()}})}changeExpiration(ye,re){const r=ye.memberAttributes.find(re?l=>"groupMembershipExpiration"===l.friendlyName:l=>"membershipExpiration"===l.friendlyName),o=(0,b.kZ)();let d;o.width="400px",o.data={voId:this.voId,groupId:re,memberId:ye.id,expirationAttr:r,status:re?ye.groupStatus:ye.status,statusChanged:!0},d=this.dialog.open(re?_.u3:_.kZ,o),d.afterClosed().subscribe(()=>{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)}exportData(ye){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,je.getExportDataForColumn),ye)}viewMemberGroupTree(ye,re){ye.stopPropagation();const r=(0,b.kZ)();r.width="800px",r.data={member:re,groupId:this.groupId},this.dialog.open(_.jd,r)}}return je.\u0275fac=function(ye){return new(ye||je)(E.Y36(C.uw),E.Y36(w.x4),E.Y36(w.UA),E.Y36(O.dB),E.Y36(w.ly))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(ye,re){if(1&ye&&(E.Gf(b.l9,7),E.Gf(e.YE,5)),2&ye){let r;E.iGM(r=E.CRH())&&(re.child=r.first),E.iGM(r=E.CRH())&&(re.sort=r.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable"},features:[E.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","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","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"],["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","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(ye,re){1&ye&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(o){return re.exportData(o)}),E.YNc(3,Pe,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,Fe,2,3,"th",5),E.YNc(8,ze,4,9,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,ae,3,3,"th",8),E.YNc(11,Ue,2,1,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,ve,1,0,"th",8),E.YNc(14,z,2,1,"td",11),E.BQk(),E.ynx(15,12),E.YNc(16,I,3,3,"th",8),E.YNc(17,me,3,3,"td",11),E.BQk(),E.ynx(18,13),E.YNc(19,Ae,3,3,"th",14),E.YNc(20,Me,7,12,"td",11),E.BQk(),E.ynx(21,15),E.YNc(22,pe,3,3,"th",14),E.YNc(23,we,7,12,"td",11),E.BQk(),E.ynx(24,16),E.YNc(25,$e,3,3,"th",14),E.YNc(26,Je,3,3,"td",11),E.BQk(),E.ynx(27,17),E.YNc(28,nt,3,3,"th",14),E.YNc(29,ke,3,3,"td",11),E.BQk(),E.ynx(30,18),E.YNc(31,H,3,3,"th",14),E.YNc(32,he,3,3,"td",11),E.BQk(),E.YNc(33,P,1,0,"tr",19),E.YNc(34,V,1,14,"tr",20),E.qZA(),E.qZA(),E.qZA(),E.YNc(35,Q,3,3,"perun-web-apps-alert",21),E.ALo(36,"async")),2&ye&&(E.Q6J("hidden",0===re.dataSource.allObjectCount&&!1===E.lcZ(1,9,re.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",re.tableId)("dataLength",re.dataSource.allObjectCount)("pageSizeOptions",re.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,re.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",re.dataSource),E.xp6(28),E.Q6J("matHeaderRowDef",re.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",re.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===re.dataSource.allObjectCount&&!1===E.lcZ(36,13,re.dataSource.loading$)))},directives:[S.l,m.O5,B.$g,L.BZ,e.YE,L.w1,L.fO,L.ge,J.oG,L.Dz,L.ev,ie.gM,e.nU,ge.Hw,L.as,L.XQ,L.nj,L.Gk,X.YH,Ne.rH,ue.w],pipes:[m.Ov,m.i8,Oe.X$,T.d,Z.u,W.i,Y.f,ee.M,ce.D,le.p],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),je})()},38383:(Xe,_e,p)=>{"use strict";p.d(_e,{O:()=>re});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(16074),E=p(36908),C=p(48966),O=p(11735),S=p(18750),m=p(77446),B=p(29772),L=p(69808),J=p(25245),ie=p(50301),ge=p(98380),X=p(51062),Ne=p(31359),ue=p(69773),Oe=p(12856),T=p(21757),Z=p(96974),W=p(20919),Y=p(5865);function ee(r,o){if(1&r){const d=e.EpF();e.TgZ(0,"th",26),e.TgZ(1,"mat-checkbox",27),e.NdJ("change",function(s){e.CHM(d);const i=e.oxw();return s?i.masterToggle():null}),e.qZA(),e.qZA()}if(2&r){const d=e.oxw();e.xp6(1),e.Q6J("aria-label",d.checkboxLabel())("checked",d.selection.hasValue()&&d.isAllSelected())("indeterminate",d.selection.hasValue()&&!d.isAllSelected())}}function ce(r,o){if(1&r){const d=e.EpF();e.TgZ(0,"td",28),e.TgZ(1,"mat-checkbox",29),e.NdJ("change",function(s){const t=e.CHM(d).$implicit,n=e.oxw();return s?n.selection.toggle(t):null})("click",function(s){return s.stopPropagation()}),e.ALo(2,"translate"),e.qZA(),e.qZA()}if(2&r){const d=o.$implicit,l=e.oxw();e.xp6(1),e.Q6J("aria-label",l.checkboxLabel(d))("checked",l.selection.isSelected(d))("disabled","DIRECT"!==d.membershipType)("matTooltip","DIRECT"!==d.membershipType?e.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function le(r,o){1&r&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function Pe(r,o){if(1&r&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&r){const d=o.$implicit;e.xp6(1),e.Oqu(d.id)}}function Fe(r,o){1&r&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function ze(r,o){if(1&r&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&r){const d=o.$implicit;e.xp6(1),e.Oqu(d.voId)}}function ae(r,o){1&r&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function Ue(r,o){if(1&r&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&r){const d=o.$implicit;e.xp6(1),e.Oqu(d.userId)}}function ve(r,o){1&r&&e._UZ(0,"th",30)}function He(r,o){if(1&r){const d=e.EpF();e.TgZ(0,"mat-icon",34),e.NdJ("click",function(){e.CHM(d);const s=e.oxw().$implicit;return e.oxw().viewMemberGroupTree(s)})("mouseenter",function(){return e.CHM(d),e.oxw(2).disableRouting=!0})("mouseleave",function(){e.CHM(d);const s=e.oxw(2);return s.disableRouting=s.disabledRouting}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&r&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function z(r,o){if(1&r&&(e.TgZ(0,"td",32),e.YNc(1,He,3,3,"mat-icon",33),e.qZA()),2&r){const d=o.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==d.membershipType)}}function I(r,o){1&r&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function me(r,o){if(1&r&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&r){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d.user))}}function Ae(r,o){1&r&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function Me(r,o){if(1&r){const d=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"i",35),e.NdJ("click",function(s){const t=e.CHM(d).$implicit;return e.oxw().changeStatus(s,t)}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&r){const d=o.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.status),""),e.s9C("matTooltip",e.xi3(3,7,d,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.status)," ")}}function pe(r,o){1&r&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function we(r,o){if(1&r){const d=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"i",35),e.NdJ("click",function(s){const t=e.CHM(d).$implicit;return e.oxw().changeStatus(s,t)}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&r){const d=o.$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 $e(r,o){1&r&&(e.TgZ(0,"th",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function Je(r,o){1&r&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function nt(r,o){if(1&r&&(e.TgZ(0,"td",37),e.YNc(1,Je,2,0,"mat-icon",38),e.qZA()),2&r){const d=o.$implicit;e.xp6(1),e.Q6J("ngIf",d.sponsored)}}function ke(r,o){1&r&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function H(r,o){if(1&r&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&r){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function he(r,o){1&r&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function P(r,o){if(1&r&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&r){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function R(r,o){1&r&&(e.TgZ(0,"th",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function V(r,o){if(1&r&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&r){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function Q(r,o){1&r&&e._UZ(0,"tr",40)}const Se=function(r,o){return["/organizations",r,"members",o]};function je(r,o){if(1&r&&e._UZ(0,"tr",41),2&r){const d=o.$implicit,l=e.oxw();e.ekj("cursor-pointer",!l.disabledRouting)("disable-outline",l.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",l.disableRouting?null:e.WLB(6,Se,d.voId,d.id))("routerLink",l.disableRouting?null:e.WLB(9,Se,d.voId,d.id))}}function Ye(r,o){1&r&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ye(r,o){1&r&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let re=(()=>{class r{constructor(d,l,s,i){this.dialog=d,this.authResolver=l,this.tableCheckbox=s,this.route=i,this.selection=new w.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=g.f7,this.getExportDataForColumnFun=(t,n)=>r.getExportDataForColumn(t,n,this.showGroupStatuses),this.getSortDataForColumnFun=(t,n)=>r.getSortDataForColumn(t,n,this.showGroupStatuses),this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(d){this.sort=d}static getFilterDataForColumn(d,l){switch(l){case"fullName":return d.user?(0,g.bD)(d.user):"";case"email":return(0,g.g$)(d);case"logins":return(0,g.lt)(d);default:return""}}static getExportDataForColumn(d,l,s){switch(l){case"id":return d.id.toString();case"fullName":return d.user?(0,g.bD)(d.user):"";case"status":return s?d.groupStatus:d.status;case"organization":return(0,g.Gw)(d);case"email":return(0,g.g$)(d);case"logins":return(0,g.lt)(d);default:return""}}static getSortDataForColumn(d,l,s){var i;switch(l){case"id":return d.id.toString();case"fullName":return d.user?d.user.lastName?d.user.lastName:null!==(i=d.user.firstName)&&void 0!==i?i:"":"";case"status":return s?d.groupStatus:d.status;case"organization":return(0,g.Gw)(d);case"email":return(0,g.g$)(d);default:return""}}exportData(d){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),d)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(d,l)=>(0,g.Sd)(d,l,this.displayedColumns,r.getFilterDataForColumn),this.dataSource.sortData=(d,l)=>(0,g.pR)(d,l,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(){var d;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(d=this.route.parent)||void 0===d||d.params.subscribe(l=>{l.groupId&&(this.groupId=Number(l.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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)}checkboxLabel(d){return d?`${this.selection.isSelected(d)?"deselect":"select"} row ${d.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(d,l){if(d.stopPropagation(),!this.disableStatusChange){const s=(0,g.kZ)();s.width="500px",s.data={member:l,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(A.pf,s).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}viewMemberGroupTree(d){const l=(0,g.kZ)();l.width="800px",l.data={member:d,groupId:this.groupId},this.dialog.open(A.jd,l)}}return r.\u0275fac=function(d){return new(d||r)(e.Y36(C.uw),e.Y36(E.x4),e.Y36(E.UA),e.Y36(O.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["perun-web-apps-members-list"]],viewQuery:function(d,l){if(1&d&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&d){let s;e.iGM(s=e.CRH())&&(l.child=s.first),e.iGM(s=e.CRH())&&(l.matSort=s.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","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","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"],["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","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,l){1&d&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(i){return l.exportData(i)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ee,2,3,"th",4),e.YNc(5,ce,3,6,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,le,3,3,"th",7),e.YNc(8,Pe,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Fe,3,3,"th",7),e.YNc(11,ze,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,ae,3,3,"th",7),e.YNc(14,Ue,2,1,"td",10),e.BQk(),e.ynx(15,12),e.YNc(16,ve,1,0,"th",7),e.YNc(17,z,2,1,"td",10),e.BQk(),e.ynx(18,13),e.YNc(19,I,3,3,"th",7),e.YNc(20,me,3,3,"td",10),e.BQk(),e.ynx(21,14),e.YNc(22,Ae,3,3,"th",7),e.YNc(23,Me,7,12,"td",10),e.BQk(),e.ynx(24,15),e.YNc(25,pe,3,3,"th",7),e.YNc(26,we,7,12,"td",10),e.BQk(),e.ynx(27,16),e.YNc(28,$e,3,3,"th",17),e.YNc(29,nt,2,1,"td",18),e.BQk(),e.ynx(30,19),e.YNc(31,ke,3,3,"th",7),e.YNc(32,H,3,3,"td",10),e.BQk(),e.ynx(33,20),e.YNc(34,he,3,3,"th",7),e.YNc(35,P,3,3,"td",10),e.BQk(),e.ynx(36,21),e.YNc(37,R,3,3,"th",22),e.YNc(38,V,3,3,"td",10),e.BQk(),e.YNc(39,Q,1,0,"tr",23),e.YNc(40,je,1,12,"tr",24),e.qZA(),e.qZA(),e.qZA(),e.YNc(41,Ye,3,3,"perun-web-apps-alert",25),e.YNc(42,ye,3,3,"perun-web-apps-alert",25)),2&d&&(e.Q6J("hidden",0===l.members.length||!l.dataSource||0===l.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",l.dataSource.filteredData.length)("tableId",l.tableId)("pageSizeOptions",l.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",l.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",l.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",l.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==l.members.length&&0===l.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===l.members.length))},directives:[S.l,_.BZ,b.YE,_.w1,_.fO,_.ge,m.oG,_.Dz,_.ev,B.gM,b.nU,L.O5,J.Hw,_.as,_.XQ,_.nj,_.Gk,ie.YH,O.rH,ge.w],pipes:[X.X$,Ne.d,ue.u,Oe.i,T.f,Z.M,W.D,Y.p],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}"]}),r})()},22465:(Xe,_e,p)=>{"use strict";p.d(_e,{c:()=>m});var e=p(5e3),b=p(36908),_=p(9244),w=p(16074),g=p(48966),A=p(69808),E=p(25245),C=p(51062);function O(B,L){if(1&B&&(e.TgZ(0,"div",5),e.TgZ(1,"mat-icon"),e._uU(2),e.qZA(),e.qZA()),2&B){const J=e.oxw();e.xp6(2),e.Oqu(J.data.icon)}}function S(B,L){if(1&B&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&B){const J=e.oxw();e.xp6(1),e.hij(" ",J.showTimestamp()," ")}}let m=(()=>{class B{constructor(J,ie){this.dialog=J,this.notificationStorageService=ie,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,_.kZ)();J.width="550px",J.data=this.data,J.autoFocus=!1,this.dialog.open(w.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,_.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[J,ie]=this.data.timeStamp.split(":");return ie.length<2?J+":0"+ie:this.data.timeStamp}}return B.\u0275fac=function(J){return new(J||B)(e.Y36(g.uw),e.Y36(b.SZ))},B.\u0275cmp=e.Xpm({type:B,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"],[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,ie){1&J&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.NdJ("click",function(){return ie.alreadyClosed||ie.waiting?"":ie.closeSelf()}),e.YNc(2,O,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,S,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return ie.waiting=!0,ie.doAction()}),e._uU(8),e.qZA(),e.qZA(),e.qZA()),2&J&&(e.Gre("notification ",ie.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===ie.data.type)("success","success"===ie.data.type),e.xp6(2),e.Q6J("ngIf",null!==ie.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,ie.data.title)," "),e.xp6(2),e.Q6J("ngIf",ie.inDialog),e.xp6(1),e.Q6J("hidden",ie.alreadyPressed),e.xp6(1),e.hij(" ",ie.data.actionText," "))},directives:[A.O5,E.Hw],pipes:[C.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}"]}),B})()},41619:(Xe,_e,p)=>{"use strict";p.d(_e,{$:()=>ve});var e=p(36908),b=p(32105),_=p(5e3),w=p(48966),g=p(51062),A=p(67322),E=p(98833),C=p(93075),O=p(69808),S=p(47423);function m(He,z){1&He&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&He&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let B=(()=>{class He{constructor(I,me,Ae,Me,pe){this.dialogRef=I,this.translate=me,this.notificator=Ae,this.rtMessages=Me,this.storeService=pe,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(I=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(I.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 He.\u0275fac=function(I){return new(I||He)(_.Y36(w.so),_.Y36(g.sK),_.Y36(e.V6),_.Y36(b.Hr),_.Y36(e.d6))},He.\u0275cmp=_.Xpm({type:He,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(I,me){if(1&I&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_.TgZ(4,"mat-form-field"),_.TgZ(5,"mat-label"),_._uU(6),_.ALo(7,"translate"),_.qZA(),_.TgZ(8,"input",2,3),_.NdJ("ngModelChange",function(Me){return me.subject=Me}),_.qZA(),_.YNc(10,m,3,3,"mat-error",4),_.qZA(),_.TgZ(11,"mat-form-field"),_.TgZ(12,"mat-label"),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.TgZ(15,"textarea",5),_.NdJ("ngModelChange",function(Me){return me.message=Me}),_.ALo(16,"translate"),_._uU(17," "),_.qZA(),_.TgZ(18,"mat-hint"),_._uU(19),_.ALo(20,"translate"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(21,"div",6),_.TgZ(22,"div",7),_.TgZ(23,"button",8),_.NdJ("click",function(){return me.close()}),_._uU(24),_.ALo(25,"translate"),_.qZA(),_.TgZ(26,"button",9),_.NdJ("click",function(){return me.sendBugReport()}),_._uU(27),_.ALo(28,"translate"),_.qZA(),_.qZA(),_.qZA()),2&I){const Ae=_.MAs(9);_.xp6(1),_.Oqu(_.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),_.xp6(5),_.Oqu(_.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),_.xp6(2),_.Q6J("ngModel",me.subject),_.xp6(2),_.Q6J("ngIf",Ae.invalid),_.xp6(3),_.Oqu(_.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),_.xp6(2),_.s9C("placeholder",_.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),_.Q6J("ngModel",me.message),_.xp6(4),_.Oqu(_.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),_.xp6(5),_.hij(" ",_.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),_.xp6(2),_.Q6J("disabled",Ae.invalid),_.xp6(1),_.hij(" ",_.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[w.uh,w.xY,A.KE,A.hX,E.Nt,C.Fj,C.Q7,C.JJ,C.On,O.O5,A.TO,A.bx,w.H8,S.lW],pipes:[g.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),He})();var L=p(9244);let J=(()=>{class He{transform(I,me,Ae){return I[`${Ae}_${me}`]}}return He.\u0275fac=function(I){return new(I||He)},He.\u0275pipe=_.Yjl({name:"localisedText",type:He,pure:!0}),He})(),ie=(()=>{class He{transform(I,me){return I["link_"+me]||I.link_en}}return He.\u0275fac=function(I){return new(I||He)},He.\u0275pipe=_.Yjl({name:"localisedLink",type:He,pure:!0}),He})(),ge=(()=>{class He{transform(I){return I.includes("/")?I:"/assets/config/"+I}}return He.\u0275fac=function(I){return new(I||He)},He.\u0275pipe=_.Yjl({name:"footerLogoPath",type:He,pure:!0}),He})();function X(He,z){if(1&He&&(_.TgZ(0,"a",13),_.ALo(1,"localisedLink"),_._UZ(2,"img",14),_.ALo(3,"footerLogoPath"),_.qZA()),2&He){const I=_.oxw().$implicit,me=_.oxw(3);_.Q6J("href",_.xi3(1,2,I,me.language),_.LSH),_.xp6(2),_.s9C("src",_.lcZ(3,5,I.logo),_.LSH)}}function Ne(He,z){if(1&He&&(_.TgZ(0,"span"),_._UZ(1,"img",14),_.ALo(2,"footerLogoPath"),_.qZA()),2&He){const I=_.oxw().$implicit;_.xp6(1),_.s9C("src",_.lcZ(2,1,I.logo),_.LSH)}}function ue(He,z){if(1&He&&(_.TgZ(0,"div"),_.YNc(1,X,4,7,"a",11),_.ALo(2,"localisedLink"),_.YNc(3,Ne,3,3,"span",12),_.ALo(4,"localisedLink"),_.qZA()),2&He){const I=z.$implicit,me=_.oxw(3);_.xp6(1),_.Q6J("ngIf",_.xi3(2,2,I,me.language)),_.xp6(2),_.Q6J("ngIf",!_.xi3(4,5,I,me.language))}}const Oe=function(He){return{"min-height":He}};function T(He,z){if(1&He&&(_.TgZ(0,"div",10),_.YNc(1,ue,5,8,"div",5),_.qZA()),2&He){const I=_.oxw().$implicit,me=_.oxw();_.Q6J("ngStyle",_.VKq(2,Oe,me.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",I.elements)}}const Z=function(He){return{color:He}};function W(He,z){if(1&He&&(_.TgZ(0,"i",20),_._uU(1),_.qZA()),2&He){const I=_.oxw().$implicit,me=_.oxw(3);_.Q6J("ngStyle",_.VKq(2,Z,me.linksTextColor)),_.xp6(1),_.hij(" ",I.icon," ")}}function Y(He,z){if(1&He){const I=_.EpF();_.TgZ(0,"span",21),_.NdJ("click",function(){_.CHM(I);const Ae=_.oxw().$implicit;return _.oxw(3).openDialog(Ae.dialog)}),_._uU(1),_.ALo(2,"localisedText"),_.qZA()}if(2&He){const I=_.oxw().$implicit,me=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,Z,me.linksTextColor)),_.xp6(1),_.hij("",_.Dn7(2,2,I,me.language,"label")," ")}}function ee(He,z){if(1&He&&(_.TgZ(0,"a",22),_.ALo(1,"localisedLink"),_._uU(2),_.ALo(3,"localisedText"),_.qZA()),2&He){const I=_.oxw().$implicit,me=_.oxw(3);_.Q6J("href",_.xi3(1,3,I,me.language),_.LSH)("ngStyle",_.VKq(10,Z,me.linksTextColor)),_.xp6(2),_.Oqu(_.Dn7(3,6,I,me.language,"label"))}}function ce(He,z){if(1&He&&(_.TgZ(0,"span",10),_._uU(1),_.ALo(2,"localisedText"),_.qZA()),2&He){const I=_.oxw().$implicit,me=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,Z,me.linksTextColor)),_.xp6(1),_.Oqu(_.Dn7(2,2,I,me.language,"label"))}}function le(He,z){if(1&He&&(_.TgZ(0,"div",16),_.YNc(1,W,2,4,"i",17),_.YNc(2,Y,3,8,"span",18),_.YNc(3,ee,4,12,"a",19),_.ALo(4,"localisedLink"),_.YNc(5,ce,3,8,"span",9),_.ALo(6,"localisedLink"),_.qZA()),2&He){const I=z.$implicit,me=_.oxw(3);_.xp6(1),_.Q6J("ngIf",I.icon),_.xp6(1),_.Q6J("ngIf",I.dialog),_.xp6(1),_.Q6J("ngIf",_.xi3(4,4,I,me.language)&&!I.dialog),_.xp6(2),_.Q6J("ngIf",!_.xi3(6,7,I,me.language)&&!I.dialog)}}const Pe=function(He){return{height:He}};function Fe(He,z){if(1&He&&(_.TgZ(0,"div",10),_.YNc(1,le,7,10,"div",15),_.qZA()),2&He){const I=_.oxw().$implicit,me=_.oxw();_.Q6J("ngStyle",_.VKq(2,Pe,me.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",I.elements)}}function ze(He,z){if(1&He&&(_.TgZ(0,"div",7),_.TgZ(1,"h6",8),_._uU(2),_.ALo(3,"localisedText"),_.qZA(),_.YNc(4,T,2,4,"div",9),_.YNc(5,Fe,2,4,"div",9),_.qZA()),2&He){const I=z.$implicit,me=_.oxw();_.ekj("my-auto",me.containsLogos),_.xp6(1),_.Q6J("ngStyle",_.VKq(10,Z,me.headersTextColor)),_.xp6(1),_.hij(" ",_.Dn7(3,6,I,me.language,"title")," "),_.xp6(2),_.Q6J("ngIf",I.logos),_.xp6(1),_.Q6J("ngIf",I.elements&&!I.logos)}}function ae(He,z){if(1&He&&(_.TgZ(0,"span"),_.TgZ(1,"a",6),_._uU(2),_.qZA(),_.qZA()),2&He){const I=z.$implicit,me=z.index,Ae=_.oxw();_.xp6(1),_.Q6J("href",I.url,_.LSH)("ngStyle",_.VKq(3,Z,Ae.copyrightTextColor)),_.xp6(1),_.Oqu(me?", "+I.name:I.name)}}const Ue=function(He){return{background:He}};let ve=(()=>{class He{constructor(I,me,Ae){this.storeService=I,this.translateService=me,this.dialog=Ae,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(I=>{this.language=I.lang}),this.version=p(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const I of this.footerColumns)I.logos?this.containsLogos=!0:25*I.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*I.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(I){const me=(0,L.kZ)();"reportIssue"===I&&(me.width="550px",this.dialog.open(B,me))}}return He.\u0275fac=function(I){return new(I||He)(_.Y36(e.d6),_.Y36(g.sK),_.Y36(w.uw))},He.\u0275cmp=_.Xpm({type:He,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,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(I,me){1&I&&(_.TgZ(0,"footer",0),_.TgZ(1,"div",1),_.YNc(2,ze,6,12,"div",2),_.qZA(),_._UZ(3,"hr",3),_.TgZ(4,"div",4),_._uU(5),_.YNc(6,ae,3,5,"span",5),_._uU(7," Version "),_.TgZ(8,"a",6),_._uU(9),_.qZA(),_.qZA(),_.qZA()),2&I&&(_.Q6J("ngStyle",_.VKq(8,Ue,me.bgColor)),_.xp6(2),_.Q6J("ngForOf",me.footerColumns),_.xp6(2),_.Q6J("ngStyle",_.VKq(10,Z,me.copyrightTextColor)),_.xp6(1),_.hij(" \xa9 ",me.currentYear," Copyright: "),_.xp6(1),_.Q6J("ngForOf",me.copyrightItems),_.xp6(2),_.Q6J("href",me.githubRepository,_.LSH)("ngStyle",_.VKq(12,Z,me.copyrightTextColor)),_.xp6(1),_.Oqu(me.version))},directives:[O.PC,O.sg,O.O5],pipes:[J,ie,ge],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:-webkit-fit-content;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:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),He})()},10441:(Xe,_e,p)=>{"use strict";p.d(_e,{W:()=>E});var e=p(5e3),b=p(69808),_=p(25245),w=p(29772),g=p(51062);function A(C,O){1&C&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&C&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let E=(()=>{class C{constructor(){this.recentIds=[]}}return C.\u0275fac=function(S){return new(S||C)},C.\u0275cmp=e.Xpm({type:C,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(S,m){1&S&&e.YNc(0,A,3,3,"mat-icon",0),2&S&&e.Q6J("ngIf",m.recentIds.indexOf(m.id)>-1)},directives:[b.O5,_.Hw,w.gM],pipes:[g.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),C})()},96214:(Xe,_e,p)=>{"use strict";p.d(_e,{t:()=>A});var e=p(5e3),b=p(47423),_=p(29772),w=p(25245),g=p(51062);let A=(()=>{class E{constructor(){this.refresh=new e.vpe}onClickbutton(O){this.refresh.emit(O)}}return E.\u0275fac=function(O){return new(O||E)},E.\u0275cmp=e.Xpm({type:E,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(O,S){1&O&&(e.TgZ(0,"button",0),e.NdJ("click",function(B){return S.onClickbutton(B)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&O&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",S.disabled),e.xp6(2),e.s9C("svgIcon",S.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[b.lW,_.gM,w.Hw],pipes:[g.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}"]}),E})()},45703:(Xe,_e,p)=>{"use strict";p.d(_e,{L:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new e.vpe,this.nameFunction=C=>C.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(b.aC)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:15,consts:[[3,"entity","entities","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,O){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return O.resourceSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entity",O.resource)("entities",O.resources)("displayStatus",O.displayStatus)("searchFunction",O.nameFunction)("mainTextFunction",O.nameFunction)("secondaryTextFunction",O.secondaryFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},62109:(Xe,_e,p)=>{"use strict";p.d(_e,{C:()=>V});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(36908),E=p(18750),C=p(77446),O=p(29772),S=p(10441),m=p(69808),B=p(25245),L=p(8223),J=p(50301),ie=p(11735),ge=p(98380),X=p(51062);let Ne=(()=>{class Q{transform(je){if(null==je)return null;let ye="";return je.forEach(function(re){ye=ye.concat(re.tagName)}),ye}}return Q.\u0275fac=function(je){return new(je||Q)},Q.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:Q,pure:!0}),Q})();var ue=p(82895);function Oe(Q,Se){if(1&Q){const je=e.EpF();e.TgZ(0,"th",24),e.TgZ(1,"mat-checkbox",25),e.NdJ("change",function(ye){e.CHM(je);const re=e.oxw();return ye?re.masterToggle():null}),e.qZA(),e.qZA()}if(2&Q){const je=e.oxw();e.xp6(1),e.Q6J("aria-label",je.checkboxLabel())("checked",je.selection.hasValue()&&je.isAllSelected())("indeterminate",je.selection.hasValue()&&!je.isAllSelected())}}function T(Q,Se){if(1&Q){const je=e.EpF();e.TgZ(0,"td",26),e.TgZ(1,"span",27),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",28),e.NdJ("change",function(ye){const r=e.CHM(je).$implicit,o=e.oxw();return ye?o.itemSelectionToggle(r):null})("click",function(ye){return ye.stopPropagation()}),e.qZA(),e.qZA(),e.qZA()}if(2&Q){const je=Se.$implicit,Ye=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!Ye.disableSelect(je)),e.xp6(2),e.Q2q("data-cy","",je.name,"-checkbox"),e.Q6J("aria-label",Ye.checkboxLabel(je))("checked",Ye.selection.isSelected(je))("disabled",Ye.disableSelect(je))}}function Z(Q,Se){1&Q&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function W(Q,Se){if(1&Q&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&Q){const je=Se.$implicit;e.xp6(1),e.Oqu(je.id)}}function Y(Q,Se){1&Q&&e._UZ(0,"th",31)}function ee(Q,Se){if(1&Q&&(e.TgZ(0,"td",32),e._UZ(1,"perun-web-apps-recently-viewed-icon",33),e.qZA()),2&Q){const je=Se.$implicit,Ye=e.oxw();e.xp6(1),e.Q6J("recentIds",Ye.recentIds)("id",je.id)}}function ce(Q,Se){1&Q&&e._UZ(0,"th",31)}function le(Q,Se){1&Q&&(e.TgZ(0,"mat-icon",35),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&Q&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function Pe(Q,Se){if(1&Q&&(e.TgZ(0,"td",32),e.YNc(1,le,3,3,"mat-icon",34),e.qZA()),2&Q){const je=Se.$implicit;e.xp6(1),e.Q6J("ngIf",je.sourceGroupId)}}function Fe(Q,Se){1&Q&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function ze(Q,Se){if(1&Q&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Q){const je=Se.$implicit;e.xp6(1),e.Oqu(je.name)}}function ae(Q,Se){1&Q&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function Ue(Q,Se){if(1&Q&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Q){const je=Se.$implicit;e.xp6(1),e.Oqu(je.vo.name)}}function ve(Q,Se){1&Q&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function He(Q,Se){if(1&Q&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Q){const je=Se.$implicit;e.xp6(1),e.Oqu(je.voId)}}function z(Q,Se){1&Q&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function I(Q,Se){if(1&Q){const je=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"perun-web-apps-group-resource-status",36),e.NdJ("mouseenter",function(){return e.CHM(je),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(je);const ye=e.oxw();return ye.disabledRouting=ye.disableRouting})("statusChange",function(){return e.CHM(je),e.oxw().refreshTable.emit()}),e.qZA(),e.qZA()}if(2&Q){const je=Se.$implicit,Ye=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",je.id)("groupId",Ye.groupId)("failureCause",je.failureCause)("status",je.status)}}function me(Q,Se){1&Q&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function Ae(Q,Se){if(1&Q&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Q){const je=Se.$implicit;e.xp6(1),e.Oqu(je.facility.name)}}function Me(Q,Se){1&Q&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function pe(Q,Se){if(1&Q&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Q){const je=Se.$implicit;e.xp6(1),e.Oqu(je.facilityId)}}function we(Q,Se){1&Q&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function $e(Q,Se){if(1&Q&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&Q){const je=Se.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,je.resourceTags)," ")}}function Je(Q,Se){1&Q&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function nt(Q,Se){if(1&Q&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Q){const je=Se.$implicit;e.xp6(1),e.Oqu(je.description)}}function ke(Q,Se){1&Q&&e._UZ(0,"tr",37)}const H=function(Q){return[Q]};function he(Q,Se){if(1&Q&&(e._UZ(0,"tr",38),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&Q){const je=Se.$implicit,Ye=e.oxw();e.ekj("cursor-pointer",!Ye.disableRouting)("disable-outline",Ye.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,H,Ye.disabledRouting?null:e.xi3(1,6,je,Ye.routingVo)))("routerLink",Ye.disabledRouting?null:e.xi3(2,9,je,Ye.routingVo))}}function P(Q,Se){1&Q&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function R(Q,Se){1&Q&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let V=(()=>{class Q{constructor(je,Ye){this.guiAuthResolver=je,this.tableCheckbox=Ye,this.resources=[],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=g.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=(ye,re)=>Q.getDataForColumn(ye,re,this.recentIds),this.canBeSelected=ye=>!this.disableSelect(ye)}set matSort(je){this.sort=je}static getDataForColumn(je,Ye,ye){switch(Ye){case"id":return je.id.toString();case"vo":return je.vo.name;case"name":return je.name;case"facility":return je.facility.name;case"description":return je.description;case"recent":return ye&&ye.includes(je.id)?"#".repeat(ye.indexOf(je.id)):je.name;case"tags":{if(!je.resourceTags)return je[Ye];let r="";return je.resourceTags.forEach(function(o){r=r.concat(o.tagName)}),r}case"status":return je.status;case"uuid":return je.uuid;default:return je[Ye]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(je=>"id"!==je)),this.setDataSource(),this.setAuth()}exportData(je){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),je)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(je,Ye)=>(0,g.Sd)(je,Ye,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(je,Ye)=>(0,g.pR)(je,Ye,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const je=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(je),je}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()}checkboxLabel(je){return je?`${this.selection.isSelected(je)?"deselect":"select"} row ${je.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const je=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((Ye,ye)=>Ye&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",je.concat([ye])),!0),this.addAuth=this.selection.selected.reduce((Ye,ye)=>Ye&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",je.concat([ye])),!0)}itemSelectionToggle(je){this.selection.toggle(je),this.setAuth()}disableSelect(je){return this.resourcesToDisableCheckbox.has(je.id)}}return Q.\u0275fac=function(je){return new(je||Q)(e.Y36(A.x4),e.Y36(A.UA))},Q.\u0275cmp=e.Xpm({type:Q,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(je,Ye){if(1&je&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&je){let ye;e.iGM(ye=e.CRH())&&(Ye.child=ye.first),e.iGM(ye=e.CRH())&&(Ye.matSort=ye.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:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["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"],["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"],["mat-header-cell","",1,"align-checkbox"],["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(je,Ye){1&je&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(re){return Ye.exportData(re)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,Oe,2,3,"th",4),e.YNc(5,T,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Z,3,3,"th",7),e.YNc(8,W,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Y,1,0,"th",10),e.YNc(11,ee,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,ce,1,0,"th",10),e.YNc(14,Pe,2,1,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,Fe,3,3,"th",7),e.YNc(17,ze,2,1,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,ae,3,3,"th",7),e.YNc(20,Ue,2,1,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,ve,3,3,"th",7),e.YNc(23,He,2,1,"td",11),e.BQk(),e.ynx(24,16),e.YNc(25,z,3,3,"th",7),e.YNc(26,I,2,5,"td",11),e.BQk(),e.ynx(27,17),e.YNc(28,me,3,3,"th",7),e.YNc(29,Ae,2,1,"td",11),e.BQk(),e.ynx(30,18),e.YNc(31,Me,3,3,"th",7),e.YNc(32,pe,2,1,"td",11),e.BQk(),e.ynx(33,19),e.YNc(34,we,3,3,"th",7),e.YNc(35,$e,3,3,"td",11),e.BQk(),e.ynx(36,20),e.YNc(37,Je,3,3,"th",7),e.YNc(38,nt,2,1,"td",11),e.BQk(),e.YNc(39,ke,1,0,"tr",21),e.YNc(40,he,3,14,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.YNc(41,P,3,3,"perun-web-apps-alert",23),e.YNc(42,R,3,3,"perun-web-apps-alert",23)),2&je&&(e.Q6J("hidden",0===Ye.dataSource.filteredData.length||0===Ye.resources.length),e.xp6(1),e.Q6J("dataLength",Ye.dataSource.filteredData.length)("tableId",Ye.tableId)("pageSizeOptions",Ye.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",Ye.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",Ye.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ye.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Ye.dataSource.filteredData.length&&0!==Ye.resources.length),e.xp6(1),e.Q6J("ngIf",0===Ye.resources.length))},directives:[E.l,_.BZ,b.YE,_.w1,_.fO,_.ge,C.oG,_.Dz,_.ev,O.gM,b.nU,S.W,m.O5,B.Hw,L.x,_.as,_.XQ,_.nj,_.Gk,J.YH,ie.rH,ge.w],pipes:[X.X$,Ne,ue.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}"]}),Q})()},52170:(Xe,_e,p)=>{"use strict";p.d(_e,{qG:()=>g,$x:()=>A});var e=p(5e3),b=p(51062),_=p(42377);class w{constructor(C,O){this.value=O,this.displayName=C}}var g=(()=>{return(E=g||(g={}))[E.SOURCE=0]="SOURCE",E[E.DESTINATION=1]="DESTINATION",E[E.FEDERATION=2]="FEDERATION",g;var E})();let A=(()=>{class E{constructor(O){this.translateService=O,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=S=>S.displayName,this.shortNameFunction=()=>null,this.searchFunction=S=>S.displayName}static getDefinition(O){const S=O.namespace.split(":");return null===S[4]?"null":S[4]}ngOnInit(){this.type===g.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(O=>{const S=new w(O,"");this.items.push(S),this.item=S});for(const O of this.attributes){const S=new w(O.friendlyName+" ("+O.entity+" / "+E.getDefinition(O)+")",O.namespace+":"+O.friendlyName);S.value===this.selectedAttribute&&(this.item=S),("user"===O.entity.toLowerCase()||"member"===O.entity.toLowerCase()||"vo"===O.entity.toLowerCase()&&this.type===g.SOURCE||"group"===O.entity.toLowerCase()&&this.asGroup&&this.type===g.SOURCE)&&this.items.push(S)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(O=>{this.items.push(new w(O,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(S=>{this.items.push(new w(S,"custom")),this.items.push(new w("Display name","displayName")),this.items.push(new w("Common name","cn")),this.items.push(new w("Mail","mail")),this.items.push(new w("Organization","o")),this.items.push(new w("Level of Assurance (LoA)","loa")),this.items.push(new w("First name","givenName")),this.items.push(new w("Surname","sn")),this.items.push(new w("EPPN","eppn")),this.items.push(new w("IdP Category","md_entityCategory")),this.items.push(new w("IdP Affiliation","affiliation")),this.items.push(new w("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new w("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new w("schacHomeOrganization","schacHomeOrganization")),this.items.push(new w("Login","uid")),this.items.push(new w("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const O of this.items)if(O.value===this.selectedAttribute)return void(this.item=O);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(O){O.sort((S,m)=>""===S.value?-1:""===m.value?1:S.displayName.localeCompare(m.displayName))}}return E.\u0275fac=function(O){return new(O||E)(e.Y36(b.sK))},E.\u0275cmp=e.Xpm({type:E,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(O,S){1&O&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(B){return S.itemSelected.emit(B)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&O&&e.Q6J("entities",S.items)("entity",S.item)("searchFunction",S.searchFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.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"))},directives:[_.i],pipes:[b.X$],styles:[""]}),E})()},30540:(Xe,_e,p)=>{"use strict";p.d(_e,{J:()=>w});var e=p(5e3),b=p(42377),_=p(51062);let w=(()=>{class g{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=E=>E.name,this.secondaryFunction=()=>"",this.searchFunction=E=>E.name}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,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(E,C){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(S){return C.serviceSelected.emit(S)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",C.service)("entities",C.services)("multiple",C.multiple)("disableAutoSelect",C.disableAutoSelect)("searchFunction",C.searchFunction)("mainTextFunction",C.nameFunction)("secondaryTextFunction",C.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",C.theme)},directives:[b.i],pipes:[_.X$],styles:[""]}),g})()},80275:(Xe,_e,p)=>{"use strict";p.d(_e,{j:()=>He});var e=p(20449),b=p(84847),_=p(32075),w=p(36908),g=p(9244),A=p(5e3),E=p(11735),C=p(18750),O=p(29772),S=p(77446),m=p(50301),B=p(69808),L=p(98380),J=p(51062),ie=p(34447);let ge=(()=>{class z{transform(me){var Ae;const Me=me.find(pe=>"mail"===pe.friendlyName);return null!==(Ae=null==Me?void 0:Me.value)&&void 0!==Ae?Ae:"N/A"}}return z.\u0275fac=function(me){return new(me||z)},z.\u0275pipe=A.Yjl({name:"getMailFromAttributes",type:z,pure:!0}),z})();function X(z,I){1&z&&A._UZ(0,"th",18)}function Ne(z,I){if(1&z){const me=A.EpF();A.TgZ(0,"td",19),A.TgZ(1,"span",20),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.TgZ(4,"mat-checkbox",21),A.NdJ("change",function(Me){const we=A.CHM(me).$implicit,$e=A.oxw();return Me?$e.selection.toggle(we):null})("click",function(Me){return Me.stopPropagation()}),A.qZA(),A.qZA(),A.qZA()}if(2&z){const me=I.$implicit,Ae=A.oxw();A.xp6(1),A.s9C("matTooltip",A.lcZ(2,6,A.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),A.Q6J("matTooltipPosition","above")("matTooltipDisabled",!me.userExtSource.persistent),A.xp6(3),A.Q6J("aria-label",Ae.checkboxLabel(me))("checked",Ae.selection.isSelected(me))("disabled",me.userExtSource.persistent)}}function ue(z,I){1&z&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function Oe(z,I){if(1&z&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&z){const me=I.$implicit;A.xp6(1),A.hij(" ",me.userExtSource.id," ")}}function T(z,I){1&z&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function Z(z,I){if(1&z&&(A.TgZ(0,"td",23),A._uU(1),A.ALo(2,"getMailFromAttributes"),A.qZA()),2&z){const me=I.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,1,me.attributes)," ")}}function W(z,I){if(1&z&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z){const me=A.oxw();A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,me.extSourceNameHeader?me.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function Y(z,I){if(1&z&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&z){const me=I.$implicit;A.xp6(1),A.hij(" ",me.userExtSource.extSource.name," ")}}function ee(z,I){if(1&z&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z){const me=A.oxw();A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,me.loginHeader?me.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ce(z,I){if(1&z&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&z){const me=I.$implicit;A.xp6(1),A.hij(" ",me.userExtSource.login," ")}}function le(z,I){1&z&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Pe(z,I){if(1&z&&(A.TgZ(0,"td",25),A._uU(1),A.ALo(2,"date"),A.qZA()),2&z){const me=I.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,me.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Fe(z,I){1&z&&A._UZ(0,"tr",26)}const ze=function(z,I){return["/admin","users",z,"identities",I]};function ae(z,I){if(1&z&&A._UZ(0,"tr",27),2&z){const me=I.$implicit,Ae=A.oxw();A.ekj("cursor-pointer",!Ae.disableRouting)("disable-outline",Ae.disableRouting),A.Q6J("perunWebAppsMiddleClickRouterLink",Ae.disableRouting?null:A.WLB(6,ze,Ae.userId,me.userExtSource.id))("routerLink",Ae.disableRouting?null:A.WLB(9,ze,Ae.userId,me.userExtSource.id))}}function Ue(z,I){1&z&&(A.TgZ(0,"perun-web-apps-alert",28),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ve(z,I){1&z&&(A.TgZ(0,"perun-web-apps-alert",28),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let He=(()=>{class z{constructor(me,Ae){this.route=me,this.authResolver=Ae,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=g.f7}set matSort(me){this.sort=me,this.setDataSource()}static getDataForColumn(me,Ae){switch(Ae){case"id":return me.userExtSource.id.toString();case"mail":{const Me=me.attributes.find(pe=>"mail"===pe.friendlyName);return Me?Me.value:"N/A"}case"extSourceName":return me.userExtSource.extSource.name;case"login":return me.userExtSource.login;case"lastAccess":return me.userExtSource.lastAccess.split(".")[0];default:return me[Ae]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(me=>{this.userId=Number(me.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(me=>"id"!==me)),this.dataSource=new _.by(this.userExtSources),this.setDataSource()}exportData(me){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,z.getDataForColumn),me)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(me,Ae)=>(0,g.Sd)(me,Ae,this.displayedColumns,z.getDataForColumn),this.dataSource.sortData=(me,Ae)=>(0,g.pR)(me,Ae,z.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(me){return`${this.selection.isSelected(me.userExtSource)?"deselect":"select"} row ${me.userExtSource.id+1}`}}return z.\u0275fac=function(me){return new(me||z)(A.Y36(E.gz),A.Y36(w.x4))},z.\u0275cmp=A.Xpm({type:z,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(me,Ae){if(1&me&&(A.Gf(g.l9,7),A.Gf(b.YE,7)),2&me){let Me;A.iGM(Me=A.CRH())&&(Ae.child=Me.first),A.iGM(Me=A.CRH())&&(Ae.matSort=Me.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[A.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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(me,Ae){1&me&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(pe){return Ae.exportData(pe)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,X,1,0,"th",4),A.YNc(5,Ne,5,10,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,ue,4,5,"th",7),A.YNc(8,Oe,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,T,4,5,"th",10),A.YNc(11,Z,3,3,"td",8),A.BQk(),A.ynx(12,11),A.YNc(13,W,4,5,"th",7),A.YNc(14,Y,2,1,"td",8),A.BQk(),A.ynx(15,12),A.YNc(16,ee,4,5,"th",7),A.YNc(17,ce,2,1,"td",8),A.BQk(),A.ynx(18,13),A.YNc(19,le,4,5,"th",7),A.YNc(20,Pe,3,4,"td",14),A.BQk(),A.YNc(21,Fe,1,0,"tr",15),A.YNc(22,ae,1,12,"tr",16),A.qZA(),A.qZA(),A.qZA(),A.YNc(23,Ue,3,3,"perun-web-apps-alert",17),A.YNc(24,ve,4,5,"perun-web-apps-alert",17)),2&me&&(A.Q6J("hidden",0===Ae.userExtSources.length||0===Ae.dataSource.filteredData.length),A.xp6(1),A.Q6J("tableId",Ae.tableId)("dataLength",Ae.dataSource.filteredData.length)("pageSizeOptions",Ae.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",Ae.dataSource),A.xp6(19),A.Q6J("matHeaderRowDef",Ae.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",Ae.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===Ae.dataSource.filteredData.length&&0!==Ae.userExtSources.length),A.xp6(1),A.Q6J("ngIf",0===Ae.userExtSources.length))},directives:[C.l,_.BZ,b.YE,_.w1,_.fO,_.ge,_.Dz,_.ev,O.gM,S.oG,b.nU,_.as,_.XQ,_.nj,_.Gk,m.YH,E.rH,B.O5,L.w],pipes:[J.X$,ie.a,ge,B.uU],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}"]}),z})()},74250:(Xe,_e,p)=>{"use strict";p.d(_e,{S:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=b.bD}ngOnInit(){this.users=this.users.sort(b.fx)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,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(C,O){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return O.userSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entities",O.users)("disableAutoSelect",O.disableAutoSelect)("searchFunction",O.userFullNameFunction)("mainTextFunction",O.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"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},88561:(Xe,_e,p)=>{"use strict";p.d(_e,{M:()=>ke});var e=p(20449),b=p(9244),_=p(84847),w=p(36908),g=p(36787),A=p(22868),E=p(5e3),C=p(10036),O=p(18750),S=p(69808),m=p(20773),B=p(32075),L=p(77446),J=p(25245),ie=p(29772),ge=p(50301),X=p(98380),Ne=p(51062),ue=p(31359),Oe=p(9954),T=p(16119),Z=p(7598);function W(H,he){1&H&&(E.TgZ(0,"div",20),E._UZ(1,"mat-spinner",21),E.qZA())}function Y(H,he){if(1&H){const P=E.EpF();E.TgZ(0,"mat-checkbox",24),E.NdJ("change",function(V){E.CHM(P);const Q=E.oxw(2);return V?Q.masterToggle():null}),E.qZA()}if(2&H){const P=E.oxw(2);E.Q6J("aria-label",P.checkboxLabel())("checked",P.selection.hasValue()&&P.isAllSelected())("indeterminate",P.selection.hasValue()&&!P.isAllSelected())}}function ee(H,he){if(1&H&&(E.TgZ(0,"th",22),E.YNc(1,Y,1,3,"mat-checkbox",23),E.qZA()),2&H){const P=E.oxw();E.xp6(1),E.Q6J("ngIf",P.selection.isMultipleSelection())}}function ce(H,he){if(1&H){const P=E.EpF();E.TgZ(0,"td",25),E.TgZ(1,"mat-checkbox",26),E.NdJ("change",function(V){const Se=E.CHM(P).$implicit,je=E.oxw();return V?je.selection.toggle(Se):null})("click",function(V){return V.stopPropagation()}),E.qZA(),E.qZA()}if(2&H){const P=he.$implicit,R=E.oxw();E.xp6(1),E.Q6J("aria-label",R.checkboxLabel(P))("checked",R.selection.isSelected(P))}}function le(H,he){1&H&&E._UZ(0,"th",27)}function Pe(H,he){1&H&&(E.TgZ(0,"mat-icon",31),E.ALo(1,"translate"),E._uU(2," account_circle "),E.qZA()),2&H&&E.s9C("matTooltip",E.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Fe(H,he){if(1&H&&(E._UZ(0,"mat-icon",32),E.ALo(1,"translate")),2&H){const P=E.oxw(2);E.s9C("matTooltip",E.lcZ(1,2,"MANAGERS_LIST.SERVICE")),E.Q6J("svgIcon",P.svgIcon)}}function ze(H,he){if(1&H&&(E.TgZ(0,"td",28),E.YNc(1,Pe,3,3,"mat-icon",29),E.YNc(2,Fe,2,4,"mat-icon",30),E.qZA()),2&H){const P=he.$implicit;E.xp6(1),E.Q6J("ngIf",!P.serviceUser),E.xp6(1),E.Q6J("ngIf",P.serviceUser)}}function ae(H,he){1&H&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&H&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function Ue(H,he){if(1&H&&(E.TgZ(0,"td",28),E._uU(1),E.qZA()),2&H){const P=he.$implicit;E.xp6(1),E.hij(" ",P.id," ")}}function ve(H,he){1&H&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&H&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function He(H,he){if(1&H&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&H){const P=he.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,P))}}function z(H,he){1&H&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&H&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function I(H,he){if(1&H&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userVo"),E.qZA()),2&H){const P=he.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,P))}}function me(H,he){1&H&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&H&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function Ae(H,he){if(1&H&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userEmail"),E.qZA()),2&H){const P=he.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,P))}}function Me(H,he){1&H&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&H&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function pe(H,he){if(1&H&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userLogins"),E.qZA()),2&H){const P=he.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,P))}}function we(H,he){1&H&&E._UZ(0,"tr",35)}const $e=function(H){return["/admin/users",H]};function Je(H,he){if(1&H&&E._UZ(0,"tr",36),2&H){const P=he.$implicit,R=E.oxw();E.ekj("cursor-pointer",!R.disableRouting),E.Q6J("perunWebAppsForceRouterLink",R.disableRouting?null:E.VKq(4,$e,P.id))("perunWebAppsMiddleClickRouterLink",R.disableRouting?null:E.VKq(6,$e,P.id))}}function nt(H,he){1&H&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&H&&(E.Q6J("alert_type","warn"),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let ke=(()=>{class H{constructor(P,R,V,Q){this.authResolver=P,this.tableCheckbox=R,this.tableConfigService=V,this.dynamicPaginatingService=Q,this.selection=new e.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.svgIcon="perun-service-identity-black",this.pageSizeOptions=b.f7}static getExportDataForColumn(P,R){switch(R){case"id":return P.id.toString();case"user":return P.serviceUser?"service-user":"user";case"name":return P?(0,b.bD)(P):"";case"organization":return(0,b.OV)(P);case"email":return(0,b.kN)(P);case"logins":return(0,b.lt)(P);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(P=>"id"!==P)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),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)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(P=>this.selection.select(P))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}checkboxLabel(P){return P?`${this.selection.isSelected(P)?"deselect":"select"} row ${P.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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)}exportData(P){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,H.getExportDataForColumn),P)}}return H.\u0275fac=function(P){return new(P||H)(E.Y36(w.x4),E.Y36(w.UA),E.Y36(C.dB),E.Y36(w.ly))},H.\u0275cmp=E.Xpm({type:H,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(P,R){if(1&P&&(E.Gf(b.l9,7),E.Gf(_.YE,5)),2&P){let V;E.iGM(V=E.CRH())&&(R.child=V.first),E.iGM(V=E.CRH())&&(R.sort=V.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"},features:[E.TTD],decls:31,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["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","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","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["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",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(P,R){1&P&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(Q){return R.exportData(Q)}),E.YNc(3,W,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,ee,2,1,"th",5),E.YNc(8,ce,2,2,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,le,1,0,"th",8),E.YNc(11,ze,3,2,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,ae,3,3,"th",11),E.YNc(14,Ue,2,1,"td",9),E.BQk(),E.ynx(15,12),E.YNc(16,ve,3,3,"th",11),E.YNc(17,He,3,3,"td",13),E.BQk(),E.ynx(18,14),E.YNc(19,z,3,3,"th",8),E.YNc(20,I,3,3,"td",13),E.BQk(),E.ynx(21,15),E.YNc(22,me,3,3,"th",8),E.YNc(23,Ae,3,3,"td",13),E.BQk(),E.ynx(24,16),E.YNc(25,Me,3,3,"th",8),E.YNc(26,pe,3,3,"td",13),E.BQk(),E.YNc(27,we,1,0,"tr",17),E.YNc(28,Je,1,8,"tr",18),E.qZA(),E.qZA(),E.qZA(),E.YNc(29,nt,3,4,"perun-web-apps-alert",19),E.ALo(30,"async")),2&P&&(E.Q6J("hidden",0===R.dataSource.allObjectCount&&!1===E.lcZ(1,9,R.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",R.tableId)("dataLength",R.dataSource.allObjectCount)("pageSizeOptions",R.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,R.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",R.dataSource),E.xp6(22),E.Q6J("matHeaderRowDef",R.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",R.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===R.dataSource.allObjectCount&&!1===E.lcZ(30,13,R.dataSource.loading$)))},directives:[O.l,S.O5,m.$g,B.BZ,_.YE,B.w1,B.fO,B.ge,L.oG,B.Dz,B.ev,J.Hw,ie.gM,_.nU,B.as,B.XQ,B.nj,B.Gk,ge.Kd,ge.YH,X.w],pipes:[S.Ov,Ne.X$,ue.d,Oe.Z,T.S,Z.g],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),H})()},62707:(Xe,_e,p)=>{"use strict";p.d(_e,{M:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.voSelected=new e.vpe,this.nameFunction=C=>C.name,this.shortNameFunction=C=>C.shortName,this.searchFunction=C=>C.name+C.shortName+String(C.id)}ngOnChanges(){this.vos.sort(b.aC),this.vo||(this.vo=this.vos[0])}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,O){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return O.voSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entity",O.vo)("entities",O.vos)("searchFunction",O.searchFunction)("mainTextFunction",O.nameFunction)("secondaryTextFunction",O.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},87831:(Xe,_e,p)=>{"use strict";p.d(_e,{Z:()=>Ue});var e=p(84847),b=p(32075),_=p(9244),w=p(36908),g=p(5e3),A=p(18750),E=p(77446),C=p(10441),O=p(69808),S=p(25245),m=p(50301),B=p(98380),L=p(51062);function J(ve,He){1&ve&&g._UZ(0,"th",19)}function ie(ve,He){if(1&ve){const z=g.EpF();g.TgZ(0,"td",20),g.TgZ(1,"mat-checkbox",21),g.NdJ("change",function(me){const Me=g.CHM(z).$implicit,pe=g.oxw();return me?pe.selection.toggle(Me):null})("click",function(me){return me.stopPropagation()}),g.qZA(),g.qZA()}if(2&ve){const z=He.$implicit,I=g.oxw();g.xp6(1),g.Q6J("aria-label",I.checkboxLabel(z))("checked",I.selection.isSelected(z))}}function ge(ve,He){1&ve&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function X(ve,He){if(1&ve&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&ve){const z=He.$implicit;let I;g.xp6(1),g.Oqu(null!==(I=z.id)&&void 0!==I?I:z.vo.id)}}function Ne(ve,He){1&ve&&g._UZ(0,"th",24)}function ue(ve,He){if(1&ve&&(g.TgZ(0,"td",25),g._UZ(1,"perun-web-apps-recently-viewed-icon",26),g.qZA()),2&ve){const z=He.$implicit,I=g.oxw();let me;g.xp6(1),g.Q6J("recentIds",I.recentIds)("id",null!==(me=z.id)&&void 0!==me?me:z.vo.id)}}function Oe(ve,He){1&ve&&g._UZ(0,"th",24)}function T(ve,He){1&ve&&g._UZ(0,"mat-icon",28),2&ve&&g.Q6J("svgIcon","perun-hierarchical-vo")}function Z(ve,He){if(1&ve&&(g.TgZ(0,"td",25),g.YNc(1,T,1,1,"mat-icon",27),g.qZA()),2&ve){const z=He.$implicit;g.xp6(1),g.Q6J("ngIf",0!==(null==z||null==z.memberVos?null:z.memberVos.length))}}function W(ve,He){1&ve&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function Y(ve,He){if(1&ve&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&ve){const z=He.$implicit;let I,me;g.uIk("data-cy",null!==(I=z.shortName)&&void 0!==I?I:z.vo.shortName),g.xp6(1),g.hij(" ",null!==(me=z.shortName)&&void 0!==me?me:z.vo.shortName," ")}}function ee(ve,He){1&ve&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function ce(ve,He){if(1&ve&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&ve){const z=He.$implicit;let I;g.xp6(1),g.Oqu(null!==(I=z.name)&&void 0!==I?I:z.vo.name)}}function le(ve,He){1&ve&&g._UZ(0,"tr",29)}const Pe=function(ve){return["/organizations",ve]};function Fe(ve,He){if(1&ve&&g._UZ(0,"tr",30),2&ve){const z=He.$implicit,I=g.oxw();let me,Ae;g.ekj("disable-outline",I.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",I.disableRouting?null:g.VKq(4,Pe,null!==(me=z.id)&&void 0!==me?me:z.vo.id))("perunWebAppsForceRouterLink",I.disableRouting?null:g.VKq(6,Pe,null!==(Ae=z.id)&&void 0!==Ae?Ae:z.vo.id))}}function ze(ve,He){1&ve&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ae(ve,He){1&ve&&(g.TgZ(0,"perun-web-apps-alert",32),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let Ue=(()=>{class ve{constructor(z){this.authResolver=z,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=_.f7,this.getDataForColumnFun=(I,me)=>ve.getDataForColumn(I,me,this.recentIds)}set matSort(z){this.sort=z}static getDataForColumn(z,I,me){switch(ve.isEnrichedVo(z)&&(z=z.vo),I){case"id":return z.id.toString();case"shortName":return z.shortName;case"name":return z.name;case"recent":return me&&me.includes(z.id)?"#".repeat(me.indexOf(z.id)):z.name;default:return z[I]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(z=>"id"!==z)),this.setDataSource()}exportData(z){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),z)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(z,I)=>(0,_.Sd)(z,I,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(z,I)=>(0,_.pR)(z,I,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(z){return`${this.selection.isSelected(z)?"deselect":"select"} row ${z.id+1}`}}return ve.isEnrichedVo=He=>void 0!==He.vo,ve.\u0275fac=function(z){return new(z||ve)(g.Y36(w.x4))},ve.\u0275cmp=g.Xpm({type:ve,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(z,I){if(1&z&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&z){let me;g.iGM(me=g.CRH())&&(I.child=me.first),g.iGM(me=g.CRH())&&(I.matSort=me.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[g.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["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","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",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","perunWebAppsForceRouterLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(z,I){1&z&&(g.TgZ(0,"div",0),g.TgZ(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(Ae){return I.exportData(Ae)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,J,1,0,"th",4),g.YNc(5,ie,2,2,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,ge,3,3,"th",7),g.YNc(8,X,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Ne,1,0,"th",10),g.YNc(11,ue,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,Oe,1,0,"th",10),g.YNc(14,Z,2,1,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,W,3,3,"th",7),g.YNc(17,Y,2,2,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,ee,3,3,"th",7),g.YNc(20,ce,2,1,"td",11),g.BQk(),g.YNc(21,le,1,0,"tr",15),g.YNc(22,Fe,1,8,"tr",16),g.qZA(),g.qZA(),g.qZA(),g.YNc(23,ze,3,3,"perun-web-apps-alert",17),g.YNc(24,ae,3,3,"perun-web-apps-alert",18)),2&z&&(g.Q6J("hidden",0===I.dataSource.filteredData.length||0===I.vos.length),g.xp6(1),g.Q6J("dataLength",I.dataSource.filteredData.length)("tableId",I.tableId)("pageSizeOptions",I.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",I.dataSource),g.xp6(19),g.Q6J("matHeaderRowDef",I.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",I.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===I.dataSource.filteredData.length&&0!==I.vos.length),g.xp6(1),g.Q6J("ngIf",0===I.vos.length))},directives:[A.l,b.BZ,e.YE,b.w1,b.fO,b.ge,b.Dz,b.ev,E.oG,e.nU,C.W,O.O5,S.Hw,b.as,b.XQ,b.nj,b.Gk,m.YH,m.Kd,B.w],pipes:[L.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),ve})()},16074:(Xe,_e,p)=>{"use strict";p.d(_e,{GI:()=>kt,Wr:()=>Ut,r2:()=>lt,gr:()=>Ge,u3:()=>ti,Qu:()=>Qt,pf:()=>ve,xF:()=>Ji,hd:()=>en,kZ:()=>Ri,wA:()=>Ht,rd:()=>Je,Eg:()=>$e,Bp:()=>V,qD:()=>ot,jd:()=>St,FM:()=>re,jD:()=>Z,Lc:()=>n,mk:()=>c,Ts:()=>Rt});var e=p(69808),b=p(51062),_=p(32075),w=p(48966),g=p(47423),A=p(67322),E=p(93075),C=p(98833),O=p(20773),S=p(79814),m=p(86856),B=p(69287),L=p(25245),J=p(19516),ie=p(63189),ge=p(11735),X=p(90149),Ne=p(74107),ue=p(28499),Oe=p(6397),T=p(5e3);let Z=(()=>{class Ze{}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)},Ze.\u0275mod=T.oAB({type:Ze}),Ze.\u0275inj=T.cJS({imports:[[e.ez,b.aw,_.p0,w.Is,g.ot,A.lN,E.u5,C.c,O.Cq,S.Fk,m.FA,E.UX,B.Iq,L.Ps,J.d4,ie.r,ge.Bz,X.dp,Ne.LD,ue.E3,Oe.C]]}),Ze})();var W=p(32105),Y=p(36908),ee=p(90508),ce=p(20551);function le(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",6)}function Pe(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-option",17),T._uU(1),T.ALo(2,"memberStatus"),T.qZA()),2&Ze){const Qe=Ot.$implicit;T.Q6J("value",Qe),T.xp6(1),T.Oqu(T.lcZ(2,2,Qe))}}function Fe(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"mat-form-field",14),T.TgZ(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",15),T.NdJ("selectionChange",function(jt){return T.CHM(Qe),T.oxw(3).changeStatus(jt)}),T.YNc(5,Pe,3,4,"mat-option",16),T.qZA(),T.qZA()}if(2&Ze){const Qe=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),T.xp6(3),T.Q6J("ngForOf",Qe.allStatuses)}}function ze(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.YNc(3,Fe,6,4,"mat-form-field",13),T.qZA()),2&Ze){const Qe=T.oxw(2);T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),T.xp6(2),T.Q6J("ngIf",!Qe.loading)}}function ae(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"memberStatus"),T.qZA()),2&Ze){const Qe=T.oxw(2);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",T.lcZ(3,4,Qe.allStatuses[0])," ")}}function Ue(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",7),T.TgZ(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,ze,4,4,"div",10),T.YNc(8,ae,4,6,"div",10),T.TgZ(9,"div",11),T._UZ(10,"i",12),T.qZA(),T.qZA()),2&Ze){const Qe=T.oxw();T.xp6(2),T.AsE(" ",T.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",T.lcZ(4,8,Qe.actualStatus)," "),T.xp6(4),T.Oqu(Qe.description),T.xp6(1),T.Q6J("ngIf",Qe.allStatuses.length>1),T.xp6(1),T.Q6J("ngIf",1===Qe.allStatuses.length),T.xp6(2),T.Q6J("innerHTML",Qe.changeMessage,T.oJD)}}let ve=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi,Ui){this.dialogRef=Qe,this.data=Tt,this.memberManager=jt,this.groupsManager=ci,this.notificatorService=vi,this.translate=Ui,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.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(Qe=>Qe!==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(Qe){this.selectedStatus=Qe.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(Qe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Tt=>{this.notificatorService.showSuccess(Tt),this.dialogRef.close(Qe)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(Qe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Tt=>{this.notificatorService.showSuccess(Tt),this.dialogRef.close(Qe)})},()=>this.loading=!1)}changeStatusMessage(Qe,Tt){if("VALID"===Qe)switch(Tt){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(Tt){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 Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(W.uq),T.Y36(W.ff),T.Y36(Y.V6),T.Y36(b.sK))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:12,vars:13,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(Qe,Tt){1&Qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,le,1,0,"mat-spinner",1),T.YNc(5,Ue,11,10,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(11),T.qZA(),T.qZA(),T.qZA()),2&Qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Tt.loading||!Tt.selectedStatus),T.xp6(1),T.hij(" ",Tt.submitButtonText," "))},directives:[w.uh,e.O5,O.$g,w.xY,A.KE,A.hX,Ne.gD,e.sg,ee.ey,w.H8,g.lW],pipes:[b.X$,ce.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),Ze})();function He(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function z(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function I(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function me(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function Ae(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",8)}function Me(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-form-field"),T._UZ(1,"input",13),T.ALo(2,"translate"),T.qZA()),2&Ze){const Qe=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),T.Q6J("value",Qe.shortName)}}function pe(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-form-field",14),T._UZ(1,"textarea",15),T.ALo(2,"translate"),T.qZA()),2&Ze){const Qe=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),T.Q6J("formControl",Qe.descriptionCtrl)}}function we(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",9),T.YNc(1,Me,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.qZA(),T.YNc(8,pe,3,4,"mat-form-field",12),T.qZA()),2&Ze){const Qe=T.oxw();T.xp6(1),T.Q6J("ngIf",2===Qe.dialogType),T.xp6(2),T.MGl("placeholder","",T.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),T.Q6J("formControl",Qe.nameCtrl),T.xp6(3),T.hij(" ",Qe.invalidNameMessage.length?Qe.invalidNameMessage:T.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),T.xp6(2),T.Q6J("ngIf",2!==Qe.dialogType)}}var $e=(()=>{return(Ze=$e||($e={}))[Ze.FACILITY=0]="FACILITY",Ze[Ze.RESOURCE=1]="RESOURCE",Ze[Ze.VO=2]="VO",Ze[Ze.GROUP=3]="GROUP",$e;var Ze})();let Je=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi,Ui,Li,hn,cr){this.dialogRef=Qe,this.data=Tt,this.notificator=jt,this.translateService=ci,this.facilitiesManager=vi,this.resourcesManager=Ui,this.groupsManager=Li,this.vosManager=hn,this.store=cr,this.invalidNameMessage=this.data.dialogType===$e.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===$e.GROUP?this.store.get("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case $e.FACILITY:this.nameCtrl=new E.NI(this.data.facility.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI(this.data.facility.description);break;case $e.RESOURCE:this.nameCtrl=new E.NI(this.data.resource.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new E.NI(this.data.resource.description);break;case $e.GROUP:{const Qe=this.data.group.name.split(":");this.nameCtrl=new E.NI(Qe[Qe.length-1],[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.pattern(this.secondaryRegex),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI(this.data.group.description);break}case $e.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new E.NI(this.data.vo.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case $e.FACILITY:this.editFacility();break;case $e.RESOURCE:this.editResource();break;case $e.GROUP:this.editGroup();break;case $e.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(Qe=>{this.notificator.showSuccess(Qe),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(Qe=>{this.notificator.showSuccess(Qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(Qe=>{const Tt=Qe;Tt.name=this.nameCtrl.value,Tt.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:Tt}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),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(Qe=>{this.notificator.showSuccess(Qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.V6),T.Y36(b.sK),T.Y36(W.IQ),T.Y36(W.xk),T.Y36(W.ff),T.Y36(W.YF),T.Y36(Y.d6))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"div"),T.YNc(1,He,3,3,"h1",0),T.YNc(2,z,3,3,"h1",0),T.YNc(3,I,3,3,"h1",0),T.YNc(4,me,3,3,"h1",0),T.TgZ(5,"div",1),T.YNc(6,Ae,1,0,"mat-spinner",2),T.YNc(7,we,9,9,"div",3),T.qZA(),T.TgZ(8,"div",4),T.TgZ(9,"button",5),T.NdJ("click",function(){return Tt.cancel()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"button",6),T.NdJ("click",function(){return Tt.submit()}),T._uU(13),T.ALo(14,"translate"),T.qZA(),T.qZA(),T.qZA()),2&Qe&&(T.Tol(Tt.theme),T.xp6(1),T.Q6J("ngIf",0===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",1===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",2===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",3===Tt.dialogType),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("disabled",Tt.loading||Tt.nameCtrl.invalid||Tt.descriptionCtrl.invalid),T.xp6(1),T.hij(" ",T.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[e.O5,w.uh,w.xY,O.$g,A.KE,C.Nt,E.Fj,E.Q7,E.JJ,E.oH,A.TO,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var nt=p(64080),ke=p(9244);function H(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",8)}function he(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",9),T.TgZ(1,"span"),T._uU(2),T.ALo(3,"translate"),T.TgZ(4,"b"),T._uU(5),T.qZA(),T.qZA(),T._UZ(6,"br"),T.TgZ(7,"span"),T._uU(8),T.ALo(9,"translate"),T.TgZ(10,"b"),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T._UZ(13,"br"),T.TgZ(14,"span"),T._uU(15),T.ALo(16,"translate"),T.TgZ(17,"b"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.qZA(),T._UZ(20,"br"),T.TgZ(21,"span"),T._uU(22),T.ALo(23,"translate"),T.TgZ(24,"b"),T._uU(25),T.ALo(26,"translate"),T.qZA(),T.qZA(),T.qZA()),2&Ze){const Qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),T.xp6(3),T.Oqu(Qe.group.name),T.xp6(3),T.hij(" ",T.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),T.xp6(3),T.Oqu(T.lcZ(12,12,Qe.getSynchronizationType())),T.xp6(4),T.hij(" ",T.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),T.xp6(3),T.Oqu(T.lcZ(19,16,Qe.getLastSyncState())),T.xp6(4),T.hij(" ",T.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),T.xp6(3),T.Oqu(T.lcZ(26,20,Qe.getLastSyncTime()))}}function P(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().onForceStructure()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const Qe=T.oxw();T.Q6J("disabled",Qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function R(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().onForce()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const Qe=T.oxw();T.Q6J("disabled",Qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let V=(()=>{class Ze{constructor(Qe,Tt,jt,ci){this.dialogRef=Qe,this.data=Tt,this.groupService=jt,this.notificator=ci,this.loading=!0}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onForceStructure(){this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1)}getSynchronizationType(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}isBasic(){return"BASIC"===this.type}isStructured(){return"STRUCTURED"===this.type}getLastSyncState(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}getLastSyncTime(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[nt.r.GROUP_SYNC_ENABLED,nt.r.GROUP_LAST_SYNC_STATE,nt.r.GROUP_LAST_SYNC_TIMESTAMP,nt.r.GROUP_STRUCTURE_SYNC_ENABLED,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(Qe=>{this.group=Qe,this.syncEnabled=(0,ke.IL)(this.group.attributes,nt.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,ke.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,ke.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,ke.IL)(this.group.attributes,nt.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,ke.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,ke.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==this.syncEnabled&&"true"===this.syncEnabled&&(this.type="BASIC"),null!==this.structSyncEnabled&&this.structSyncEnabled&&(this.type="STRUCTURED"),this.loading=!1})}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(W.ff),T.Y36(Y.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-icon-button","",3,"click"],["class","ml-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Qe,Tt){1&Qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,H,1,0,"mat-spinner",1),T.YNc(5,he,27,22,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"div",4),T.TgZ(8,"button",5),T.NdJ("click",function(){return Tt.refresh()}),T.TgZ(9,"mat-icon"),T._uU(10,"refresh"),T.qZA(),T.qZA(),T.YNc(11,P,3,4,"button",6),T.YNc(12,R,3,4,"button",6),T.TgZ(13,"button",7),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&Qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(6),T.Q6J("ngIf",Tt.isStructured()),T.xp6(1),T.Q6J("ngIf",Tt.isBasic()||Tt.isStructured()),T.xp6(2),T.hij(" ",T.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[w.uh,e.O5,O.$g,w.xY,w.H8,g.lW,L.Hw],pipes:[b.X$],styles:[""]}),Ze})();function Q(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",7)}function Se(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function je(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Ye(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"div",8),T.TgZ(1,"mat-form-field"),T.TgZ(2,"mat-label"),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"input",9,10),T.NdJ("ngModelChange",function(jt){return T.CHM(Qe),T.oxw().subject=jt}),T.qZA(),T.YNc(7,Se,3,3,"mat-error",11),T.qZA(),T.TgZ(8,"mat-form-field"),T.TgZ(9,"mat-label"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"textarea",12,13),T.NdJ("ngModelChange",function(jt){return T.CHM(Qe),T.oxw().message=jt}),T.ALo(14,"translate"),T._uU(15," "),T.qZA(),T.YNc(16,je,3,3,"mat-error",11),T.qZA(),T.qZA()}if(2&Ze){const Qe=T.MAs(6),Tt=T.MAs(13),jt=T.oxw();T.xp6(3),T.Oqu(T.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),T.xp6(2),T.Q6J("ngModel",jt.subject),T.xp6(2),T.Q6J("ngIf",Qe.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",jt.message),T.xp6(4),T.Q6J("ngIf",Tt.invalid)}}let ye=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi,Ui){this.dialogRef=Qe,this.translate=Tt,this.notificator=jt,this.rtMessages=ci,this.data=vi,this.storeService=Ui,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var Qe,Tt;(null===(Tt=null===(Qe=this.data)||void 0===Qe?void 0:Qe.error)||void 0===Tt?void 0:Tt.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(Qe=>{this.dialogRef.afterClosed().subscribe(()=>{const Tt="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),Qe.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(Tt)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const Qe=this.storeService.get("config");let Tt=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(Tt=Tt.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),Tt=Tt.concat(this.data.error.message,"\n","Perun instance: ",Qe,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const jt=/"password":".+?"/;let ci=JSON.stringify(this.data.error.payload);ci=ci.replace(jt,'"password":"####"'),Tt=Tt.concat("Payload:\n"+ci+"\n\n")}return Tt=Tt.concat("Sent from new Perun Gui, version: ",p(4147).i8),Tt.split("\n").join("\n ")}parseMethod(Qe){return Qe&&this.methodRegexp.exec(Qe)[1]}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(b.sK),T.Y36(Y.V6),T.Y36(W.Hr),T.Y36(w.WI),T.Y36(Y.d6))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.YNc(3,Q,1,0,"mat-spinner",1),T.YNc(4,Ye,17,13,"div",2),T.TgZ(5,"div",3),T.TgZ(6,"div",4),T.TgZ(7,"button",5),T.NdJ("click",function(){return Tt.dialogRef.close()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",6),T.NdJ("click",function(){return Tt.sendBugReport()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&Qe&&(T.xp6(1),T.Oqu(T.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(4),T.hij(" ",T.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),T.xp6(2),T.Q6J("disabled",""===Tt.message||""===Tt.subject||Tt.loading),T.xp6(1),T.hij(" ",T.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[w.uh,e.O5,O.$g,w.xY,A.KE,A.hX,C.Nt,E.Fj,E.Q7,E.JJ,E.On,A.TO,w.H8,g.lW],pipes:[b.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Ze})(),re=(()=>{class Ze{constructor(Qe,Tt,jt){this.dialogRef=Qe,this.dialog=Tt,this.data=jt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const Qe=(0,ke.kZ)();Qe.width="550px",Qe.data={error:this.data.error},Qe.autoFocus=!1,this.dialog.open(ye,Qe)}),this.dialogRef.close()}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.uw),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(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),T.TgZ(5,"div",3),T.TgZ(6,"button",4),T.NdJ("click",function(){return Tt.onBugReportClick()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T.NdJ("click",function(){return Tt.onCloseClick()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.qZA(),T.qZA()),2&Qe&&(T.xp6(1),T.Oqu(Tt.data.title),T.xp6(2),T.hij(" ",Tt.data.description,"\n"),T.xp6(3),T.Q6J("hidden","error"!==Tt.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")," "))},directives:[w.uh,w.xY,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var r=p(34447);function o(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",3)}function d(Ze,Ot){1&Ze&&T._UZ(0,"th",15)}function l(Ze,Ot){if(1&Ze&&(T.TgZ(0,"td",16),T._uU(1),T.qZA()),2&Ze){const Qe=Ot.$implicit;T.xp6(1),T.hij(" ",Qe.userExtSource.extSource.name," ")}}function s(Ze,Ot){1&Ze&&T._UZ(0,"tr",17)}function i(Ze,Ot){1&Ze&&T._UZ(0,"tr",18)}function t(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"div"),T.TgZ(1,"div",4),T.TgZ(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,d,1,0,"th",8),T.YNc(13,l,2,1,"td",9),T.BQk(),T.YNc(14,s,1,0,"tr",10),T.YNc(15,i,1,0,"tr",11),T.qZA(),T.qZA(),T.TgZ(16,"div",12),T.TgZ(17,"button",13),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().onCancel()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.TgZ(21,"button",14),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().onSubmit()}),T._uU(22),T.ALo(23,"translate"),T.ALo(24,"customTranslate"),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const Qe=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",Qe.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",Qe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",Qe.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 Ze{constructor(Qe,Tt,jt,ci,vi){this.dialogRef=Qe,this.data=Tt,this.usersManagerService=jt,this.translate=ci,this.notificator=vi,this.force=!1,this.displayedColumns=["name"],ci.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(Ui=>this.successMessage=Ui)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(W.Fv),T.Y36(b.sK),T.Y36(Y.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(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,o,1,0,"mat-spinner",1),T.YNc(6,t,25,23,"div",2),T.qZA()),2&Qe&&(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(Tt.theme),T.xp6(1),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,O.$g,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,w.H8,g.lW],pipes:[b.X$,r.a],styles:[""]}),Ze})();var a=p(74533);let c=(()=>{class Ze{constructor(Qe,Tt){this.dialogRef=Qe,this.data=Tt}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T.TgZ(3,"textarea",2),T._uU(4),T.qZA(),T.qZA(),T.TgZ(5,"div",3),T.TgZ(6,"button",4),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.qZA()),2&Qe&&(T.xp6(1),T.Oqu(Tt.title),T.xp6(3),T.Oqu(Tt.value),T.xp6(3),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),T.xp6(2),T.Q6J("cdkCopyToClipboard",Tt.value),T.xp6(1),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[w.uh,w.xY,a.IC,C.Nt,w.H8,g.lW,B.i3],pipes:[b.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),Ze})();function h(Ze,Ot){1&Ze&&T._UZ(0,"th",12)}function x(Ze,Ot){if(1&Ze&&(T.TgZ(0,"td",13),T._uU(1),T.qZA()),2&Ze){const Qe=Ot.$implicit;T.xp6(1),T.Oqu(Qe.displayName)}}function We(Ze,Ot){1&Ze&&T._UZ(0,"tr",14)}function At(Ze,Ot){1&Ze&&T._UZ(0,"tr",15)}let Ht=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi){this.dialogRef=Qe,this.data=Tt,this.notificator=jt,this.translate=ci,this.attributesManager=vi,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new _.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":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":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(Qe=>{this.notificator.showSuccess(Qe),this.dialogRef.close(!0)})}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.V6),T.Y36(b.sK),T.Y36(W.H8))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(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,h,1,0,"th",5),T.YNc(13,x,2,1,"td",6),T.BQk(),T.YNc(14,We,1,0,"tr",7),T.YNc(15,At,1,0,"tr",8),T.qZA(),T.qZA(),T.TgZ(16,"div",9),T.TgZ(17,"button",10),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"button",11),T.NdJ("click",function(){return Tt.onSubmit()}),T._uU(21),T.ALo(22,"translate"),T.qZA(),T.qZA()),2&Qe&&(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",Tt.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",Tt.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",Tt.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")," "))},directives:[w.uh,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})(),lt=(()=>{class Ze{constructor(Qe,Tt){this.dialogRef=Qe,this.data=Tt,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 Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"mat-form-field"),T.TgZ(5,"textarea",2),T.NdJ("ngModelChange",function(ci){return Tt.attributeValue=ci}),T.qZA(),T.qZA(),T.qZA(),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA()),2&Qe&&(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",Tt.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")," "))},directives:[w.uh,w.xY,A.KE,a.IC,C.Nt,E.Fj,E.JJ,E.On,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})(),Ut=(()=>{class Ze{constructor(Qe,Tt){this.dialogRef=Qe,this.data=Tt}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.qZA(),T.qZA(),T.TgZ(9,"div",3),T.TgZ(10,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.qZA()),2&Qe&&(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(" ",Tt.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")," "))},directives:[w.uh,w.xY,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var mt=p(98380);function Lt(Ze,Ot){if(1&Ze&&(T.TgZ(0,"perun-web-apps-alert",9),T._uU(1),T.qZA()),2&Ze){const Qe=T.oxw();T.xp6(1),T.Oqu(Qe.pendingEmailsMessage)}}function Te(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Ge=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi,Ui){this.dialogRef=Qe,this.data=Tt,this.translate=jt,this.notificator=ci,this.usersManagerService=vi,this.authService=Ui,this.pendingMails=[],jt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(Li=>this.successMessage=Li),jt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(Li=>this.pendingEmailsMessageStart=Li),jt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(Li=>this.pendingEmailsMessageEnd=Li)}ngOnInit(){this.emailControl=new E.NI(null,[E.kI.required,E.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(Qe=>{this.pendingMails=Qe.filter((jt,ci,vi)=>ci===vi.indexOf(jt));let Tt="";this.pendingMails.forEach(jt=>Tt+=`${jt===this.pendingMails[0]?"":", "}${jt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+Tt+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const Tt=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",Tt[0]+"//"+Tt[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(b.sK),T.Y36(Y.V6),T.Y36(W.Fv),T.Y36(Y.e8))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(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,Lt,2,1,"perun-web-apps-alert",2),T.TgZ(6,"mat-form-field",3),T.TgZ(7,"label",3),T._UZ(8,"input",4),T.ALo(9,"translate"),T.ALo(10,"customTranslate"),T.qZA(),T.YNc(11,Te,4,5,"mat-error",5),T.qZA(),T.qZA(),T.TgZ(12,"div",6),T.TgZ(13,"button",7),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.ALo(16,"customTranslate"),T.qZA(),T.TgZ(17,"button",8),T.NdJ("click",function(){return Tt.onSubmit()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.qZA()),2&Qe&&(T.xp6(1),T.Oqu(T.lcZ(2,8,T.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),T.xp6(4),T.Q6J("ngIf",Tt.pendingMails.length),T.xp6(3),T.s9C("placeholder",T.lcZ(9,12,T.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),T.Q6J("formControl",Tt.emailControl),T.xp6(3),T.Q6J("ngIf",Tt.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",!Tt.emailControl.valid),T.xp6(1),T.hij(" ",T.lcZ(19,20,T.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[w.uh,w.xY,e.O5,mt.w,A.KE,C.Nt,E.Fj,E.Q7,E.JJ,E.oH,A.TO,w.H8,g.lW],pipes:[b.X$,r.a],styles:[""]}),Ze})();function j(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",7)}function N(Ze,Ot){1&Ze&&(T.TgZ(0,"div",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function te(Ze,Ot){1&Ze&&T._UZ(0,"th",18)}function oe(Ze,Ot){if(1&Ze&&(T.TgZ(0,"td",19),T._uU(1),T.qZA()),2&Ze){const Qe=Ot.$implicit;T.xp6(1),T.Oqu(Qe)}}function Ie(Ze,Ot){1&Ze&&T._UZ(0,"tr",20)}function ct(Ze,Ot){1&Ze&&T._UZ(0,"tr",21)}function bt(Ze,Ot){if(1&Ze&&(T.TgZ(0,"perun-web-apps-alert",22),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze){const Qe=T.oxw(2);T.Q6J("alert_type","warn"),T.xp6(1),T.hij(" ",T.lcZ(2,2,Qe.data.alert)," ")}}function xt(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T.TgZ(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,N,3,3,"div",9),T.TgZ(5,"table",10),T.ynx(6,11),T.YNc(7,te,1,0,"th",12),T.YNc(8,oe,2,1,"td",13),T.BQk(),T.YNc(9,Ie,1,0,"tr",14),T.YNc(10,ct,1,0,"tr",15),T.qZA(),T.YNc(11,bt,3,4,"perun-web-apps-alert",16),T.qZA()),2&Ze){const Qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,6,Qe.data.description)," "),T.xp6(2),T.Q6J("ngIf",Qe.data.showAsk),T.xp6(1),T.Q6J("dataSource",Qe.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",Qe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",Qe.displayedColumns),T.xp6(1),T.Q6J("ngIf",Qe.data.alert)}}function Yt(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"button",23),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().onSubmit()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const Qe=T.oxw();T.Q6J("disabled",Qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function It(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().onSubmit()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const Qe=T.oxw();T.Q6J("disabled",Qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Rt=(()=>{class Ze{constructor(Qe,Tt){this.dialogRef=Qe,this.data=Tt,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,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","",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"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["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(Qe,Tt){1&Qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,j,1,0,"mat-spinner",1),T.YNc(5,xt,12,8,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.YNc(10,Yt,3,4,"button",5),T.YNc(11,It,3,4,"button",6),T.qZA(),T.qZA()),2&Qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,Tt.data.title)),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.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"===Tt.data.type),T.xp6(1),T.Q6J("ngIf","confirmation"===Tt.data.type))},directives:[w.uh,e.O5,O.$g,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,mt.w,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var Et=p(28258);let Bt=(()=>{class Ze{transform(Qe){const Tt=Qe.split(":");return Tt[Tt.length-1]}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)},Ze.\u0275pipe=T.Yjl({name:"parseGroupName",type:Ze,pure:!0}),Ze})();function Jt(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",7)}function ai(Ze,Ot){1&Ze&&(T.TgZ(0,"perun-web-apps-alert"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function mi(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function bi(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const yi=function(Ze){return{"min-width":Ze}};function Wi(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"mat-tree-node",16),T.TgZ(1,"li",17),T.TgZ(2,"div",18),T.NdJ("click",function(){const ci=T.CHM(Qe).$implicit;return T.oxw(3).navigate(ci.id,ci.include)}),T._UZ(3,"button",19),T.TgZ(4,"div",20),T.TgZ(5,"span"),T._uU(6),T.ALo(7,"parseGroupName"),T.qZA(),T.YNc(8,mi,3,3,"span",21),T.YNc(9,bi,3,3,"span",21),T.qZA(),T.TgZ(10,"span",22),T._uU(11),T.qZA(),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const Qe=Ot.$implicit,Tt=T.oxw(3);T.xp6(2),T.ekj("cursor-pointer",Qe.direct||Qe.include)("act-disabled",!Qe.direct&&!Qe.include),T.xp6(2),T.Q6J("ngStyle",T.VKq(11,yi,Tt.getMinWidth(Qe.level))),T.xp6(2),T.Oqu(T.lcZ(7,9,Qe.name)),T.xp6(2),T.Q6J("ngIf",Qe.direct),T.xp6(1),T.Q6J("ngIf",Qe.include),T.xp6(2),T.Oqu(Qe.description)}}function gn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function cn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Ki(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"mat-nested-tree-node"),T.TgZ(1,"li"),T.TgZ(2,"div",17),T.TgZ(3,"button",24),T.TgZ(4,"mat-icon",25),T._uU(5),T.qZA(),T.qZA(),T.TgZ(6,"div",18),T.NdJ("click",function(){const ci=T.CHM(Qe).$implicit;return T.oxw(3).navigate(ci.id,ci.include)}),T.TgZ(7,"div",20),T.TgZ(8,"span"),T._uU(9),T.ALo(10,"parseGroupName"),T.qZA(),T.YNc(11,gn,3,3,"span",21),T.YNc(12,cn,3,3,"span",21),T.qZA(),T.TgZ(13,"span",22),T._uU(14),T.qZA(),T.qZA(),T.qZA(),T.TgZ(15,"ul"),T.GkF(16,26),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const Qe=Ot.$implicit,Tt=T.oxw(3);T.xp6(3),T.uIk("aria-label","Toggle "+Qe.name),T.xp6(2),T.hij(" ",Tt.treeControl.isExpanded(Qe)?"expand_more":"chevron_right"," "),T.xp6(1),T.ekj("cursor-pointer",Qe.direct||Qe.include)("act-disabled",!Qe.direct&&!Qe.include),T.xp6(1),T.Q6J("ngStyle",T.VKq(15,yi,Tt.getMinWidth(Qe.level))),T.xp6(2),T.Oqu(T.lcZ(10,13,Qe.name)),T.xp6(2),T.Q6J("ngIf",Qe.direct),T.xp6(1),T.Q6J("ngIf",Qe.include),T.xp6(2),T.Oqu(Qe.description),T.xp6(1),T.ekj("example-tree-invisible",!Tt.treeControl.isExpanded(Qe))}}function Tn(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-tree",13),T.YNc(1,Wi,12,13,"mat-tree-node",14),T.YNc(2,Ki,17,17,"mat-nested-tree-node",15),T.qZA()),2&Ze){const Qe=T.oxw(2);T.Q6J("dataSource",Qe.dataSource)("treeControl",Qe.treeControl),T.xp6(2),T.Q6J("matTreeNodeDefWhen",Qe.hasChild)}}function rn(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T.TgZ(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,ai,3,3,"perun-web-apps-alert",11),T.YNc(8,Tn,3,3,"mat-tree",12),T.qZA()),2&Ze){const Qe=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",Qe.formControl),T.xp6(2),T.Q6J("ngIf",!Qe.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",Qe.dataSource.data.length)}}const st=function(Ze){return{name:Ze}};let St=(()=>{class Ze{constructor(Qe,Tt,jt){this.dialogRef=Qe,this.data=Tt,this.groupsManagerService=jt,this.treeControl=new Et.VY(ci=>ci.children),this.dataSource=new X.WX,this.formControl=new E.NI(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(ci,vi)=>!!vi.children&&vi.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(Qe=>{this.paths=Qe,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(Qe=>{const Tt=Qe.trim().toLowerCase(),jt=this.paths.filter(ci=>ci.filter(vi=>vi.name.includes(Tt)).length);this.createGroupTree(jt),this.dataSource.data=this.groupTree}),this.userName=(0,ke.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(Qe,Tt=!1){window.open(`/organizations/${this.data.member.voId}/groups/${Qe}${Tt?"/settings/relations":""}`,"_blank")}getMinWidth(Qe){return String(400-40*Qe)+"px"}recursiveSearch(Qe,Tt,jt){for(const vi of Qe)if(vi.name===Tt[jt].name)return Tt.length===jt+1?(vi.direct=!0,Qe):(vi.children=Tt[++jt].name.includes(Tt[jt-1].name)?this.recursiveSearch(vi.children,Tt,jt):[{name:Tt[jt].name,id:Tt[jt-1].id,description:Tt[jt].description,direct:!1,include:!0,level:jt,children:[]}].concat(vi.children),Qe);return Qe.push({name:Tt[jt].name,id:Tt[jt].id,description:Tt[jt].description,direct:!1,include:!1,level:jt,children:[]}),this.recursiveSearch(Qe,Tt,jt)}createGroupTree(Qe){this.groupTree=[],Qe.forEach(Tt=>{this.groupTree=this.recursiveSearch(this.groupTree,Tt,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(W.ff))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Jt,1,0,"mat-spinner",2),T.YNc(5,rn,9,9,"div",3),T.TgZ(6,"div",4),T.TgZ(7,"div",5),T.TgZ(8,"button",6),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&Qe&&(T.xp6(2),T.hij(" ",T.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",T.VKq(9,st,Tt.userName))," "),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[w.uh,e.O5,O.$g,w.xY,A.KE,C.Nt,E.Fj,E.JJ,E.oH,mt.w,X.gi,X.fQ,X.uo,X.eu,g.lW,e.PC,X.GZ,L.Hw,X.Ar,w.H8],pipes:[b.X$,Bt],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}"]}),Ze})(),ot=(()=>{class Ze{constructor(Qe,Tt){this.dialogRef=Qe,this.router=Tt}onClose(){this.router.navigate([]),this.dialogRef.close()}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(ge.F0))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"perun-web-apps-alert",2),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA(),T.TgZ(7,"div",3),T.TgZ(8,"button",4),T.NdJ("click",function(){return Tt.onClose()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.qZA()),2&Qe&&(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")," "))},directives:[w.uh,w.xY,mt.w,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var Ke=p(62383);function vt(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-radio-button",16),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function U(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-radio-button",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function qe(Ze,Ot){1&Ze&&(T.TgZ(0,"perun-web-apps-alert",18),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let gt=(()=>{class Ze{constructor(Qe){this.dialogRef=Qe,this.canExtendMembership=!1,this.expirationChanged=new T.vpe,this.statusChange=new T.vpe,this.expirationControl=new E.NI(null)}ngOnInit(){const Qe=new Date;this.currentDate=(0,e.p6)(new Date(Qe.getFullYear(),Qe.getMonth(),Qe.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(Qe){return(0,e.p6)(Qe,"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 Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:37,vars:37,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(Qe,Tt){if(1&Qe){const jt=T.EpF();T.TgZ(0,"div",0),T.TgZ(1,"div",1),T.TgZ(2,"p"),T.TgZ(3,"strong"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._uU(6),T.ALo(7,"parseDate"),T.qZA(),T.TgZ(8,"p"),T.TgZ(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(vi){return Tt.newExpiration=vi}),T.TgZ(15,"mat-radio-button",3),T.TgZ(16,"mat-form-field",4),T.NdJ("click",function(){return T.CHM(jt),T.MAs(23).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 Tt.setExpiration()}),T.qZA(),T._UZ(21,"mat-datepicker-toggle",6),T._UZ(22,"mat-datepicker",7,8),T.qZA(),T.qZA(),T.YNc(24,vt,3,3,"mat-radio-button",9),T.YNc(25,U,3,3,"mat-radio-button",10),T.TgZ(26,"mat-radio-button",11),T._uU(27),T.ALo(28,"translate"),T.qZA(),T.qZA(),T.YNc(29,qe,3,3,"perun-web-apps-alert",12),T.qZA(),T.TgZ(30,"div",13),T.TgZ(31,"button",14),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(32),T.ALo(33,"translate"),T.qZA(),T.TgZ(34,"button",15),T.NdJ("click",function(){return Tt.onChange()}),T._uU(35),T.ALo(36,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&Qe){const jt=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,Tt.currentExpiration)," "),T.xp6(4),T.Oqu(T.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),T.xp6(2),T.hij(" ",Tt.newExpiration?T.lcZ(13,27,Tt.newExpiration):"never"," "),T.xp6(2),T.Q6J("ngModel",Tt.newExpiration),T.xp6(1),T.s9C("value",Tt.expirationControl.value),T.xp6(3),T.Oqu(T.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),T.xp6(2),T.Q6J("min",Tt.minDate)("max",Tt.maxDate)("formControl",Tt.expirationControl)("matDatepicker",jt),T.xp6(1),T.Q6J("for",jt)("disabled",!1),T.xp6(1),T.Q6J("disabled",!1),T.xp6(2),T.Q6J("ngIf",Tt.canExtendMembership&&"vo"===Tt.mode),T.xp6(1),T.Q6J("ngIf",Tt.canExtendMembership&&"group"===Tt.mode),T.xp6(2),T.hij(" ",T.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),T.xp6(2),T.Q6J("ngIf","EXPIRED"===Tt.status&&("never"===Tt.newExpiration||Tt.parseDate(Tt.expirationControl.value)>Tt.currentDate)),T.xp6(3),T.hij(" ",T.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Tt.expirationControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[w.xY,S.VQ,E.JJ,E.On,S.U0,A.KE,A.hX,C.Nt,E.Fj,m.hl,E.oH,m.nW,A.R9,m.Mq,e.O5,mt.w,w.H8,g.lW],pipes:[b.X$,Ke.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}"]}),Ze})();function Dt(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function ri(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){return T.CHM(Qe),T.oxw().changeStatus=!0})("expirationChanged",function(jt){return T.CHM(Qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ze){const Qe=T.oxw();T.Q6J("minDate",Qe.minDate)("maxDate",Qe.maxDate)("currentExpiration",Qe.currentExpiration)("newExpiration",Qe.newExpiration)("canExtendMembership",Qe.canExtendMembership)("mode","group")("status",Qe.status)}}let ti=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=Qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.groupManager=vi,this.translate=Ui,this.notificator=Li,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Ui.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){var Qe,Tt;this.status=this.data.status,this.loading=!0;const jt=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()):this.minDate=new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=null!==(Tt=null===(Qe=this.expirationAttr)||void 0===Qe?void 0:Qe.value)&&void 0!==Tt?Tt:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(jt,"yyyy-MM-dd","en"),this.maxDate=jt):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,nt.r.GROUP_DEF_EXPIRATION_RULES).subscribe(ci=>{null!==ci.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(vi=>{this.canExtendMembership=!!vi,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(Qe){this.loading=!0,"groupRules"===Qe?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===Qe?null:Qe,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe(Tt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Tt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(W.H8),T.Y36(W.uq),T.Y36(W.ff),T.Y36(b.sK),T.Y36(Y.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,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","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(Qe,Tt){1&Qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Dt,1,0,"mat-spinner",2),T.YNc(5,ri,1,7,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&Qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,O.$g,gt],pipes:[b.X$],styles:[""]}),Ze})();var Di=p(13469);function wi(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function $i(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"form",5),T.TgZ(1,"div",6),T.TgZ(2,"mat-form-field"),T.TgZ(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(Qe);const jt=T.oxw();return jt.showOldPassword=!jt.showOldPassword}),T._uU(8),T.qZA(),T.YNc(9,wi,3,3,"mat-error",9),T.qZA(),T._UZ(10,"perun-web-apps-password-form",10),T.qZA(),T.qZA()}if(2&Ze){const Qe=T.oxw();T.Q6J("formGroup",Qe.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",Qe.showOldPassword?"text":"password"),T.xp6(2),T.hij(" ",Qe.showOldPassword?"visibility_off":"visibility"," "),T.xp6(1),T.Q6J("ngIf",Qe.oldPwd.hasError("required")),T.xp6(1),T.Q6J("formGroup",Qe.formGroup)("namespace",Qe.data.namespace)}}function qi(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",11)}function Fi(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"div",12),T.TgZ(1,"div",13),T.TgZ(2,"button",14),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().close()}),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"button",15),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().changePassword()}),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const Qe=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",Qe.formGroup.invalid||Qe.formGroup.pending),T.xp6(1),T.hij(" ",T.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Ji=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=Qe,this.data=Tt,this._formBuilder=jt,this.usersManagerService=ci,this.apiRequestConfiguration=vi,this.notificator=Ui,this.translate=Li,this.showOldPassword=!1,Li.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",E.kI.required],passwordCtrl:["",E.kI.required,[(0,ue.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:ke.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(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(E.qu),T.Y36(W.Fv),T.Y36(Y.F5),T.Y36(Y.V6),T.Y36(b.sK))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.YNc(4,$i,11,9,"form",2),T.YNc(5,qi,1,0,"mat-spinner",3),T.qZA(),T.YNc(6,Fi,8,7,"div",4)),2&Qe&&(T.xp6(1),T.Oqu(T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),T.xp6(3),T.Q6J("ngIf",!Tt.loading),T.xp6(1),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,w.xY,e.O5,E._Y,E.JL,E.sg,A.KE,A.hX,E.Fj,C.Nt,E.JJ,E.u,E.Q7,L.Hw,A.R9,A.TO,Di.G,O.$g,w.H8,g.lW],pipes:[b.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}"]}),Ze})();function _n(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function Ni(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){return T.CHM(Qe),T.oxw().changeStatus=!0})("expirationChanged",function(jt){return T.CHM(Qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ze){const Qe=T.oxw();T.Q6J("minDate",Qe.minDate)("maxDate",Qe.maxDate)("currentExpiration",Qe.currentExpiration)("newExpiration",Qe.newExpiration)("canExtendMembership",Qe.canExtendMembership)("mode","vo")("status",Qe.status)}}let Ri=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi,Ui){this.dialogRef=Qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.translate=vi,this.notificator=Ui,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,vi.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Li=>this.successMessage=Li)}ngOnInit(){var Qe,Tt;this.status=this.data.status,this.loading=!0;const jt=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()):this.minDate=new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=null!==(Tt=null===(Qe=this.expirationAttr)||void 0===Qe?void 0:Qe.value)&&void 0!==Tt?Tt:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(jt,"yyyy-MM-dd","en"),this.maxDate=jt):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,nt.r.VO_DEF_EXPIRATION_RULES).subscribe(ci=>{null!==ci.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(vi=>{this.canExtendMembership=!!vi,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(Qe){this.loading=!0,"voRules"===Qe?this.memberManager.extendMembership(this.data.memberId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===Qe?null:Qe,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(Tt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Tt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(W.H8),T.Y36(W.uq),T.Y36(b.sK),T.Y36(Y.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,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","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(Qe,Tt){1&Qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,_n,1,0,"mat-spinner",2),T.YNc(5,Ni,1,7,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&Qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,O.$g,gt],pipes:[b.X$],styles:[""]}),Ze})();function sn(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function Xi(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("expirationChanged",function(jt){return T.CHM(Qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ze){const Qe=T.oxw();T.Q6J("minDate",Qe.minDate)("currentExpiration",Qe.currentExpiration)("newExpiration",Qe.newExpiration)("mode","sponsor")}}let en=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=Qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.groupManager=vi,this.translate=Ui,this.notificator=Li,this.loading=!1,Ui.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const Qe=new Date;this.minDate=new Date(Qe.getFullYear(),Qe.getMonth(),Qe.getDate()),this.loading=!1}onExpirationChanged(Qe){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===Qe?null:Qe).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(W.H8),T.Y36(W.uq),T.Y36(W.ff),T.Y36(b.sK),T.Y36(Y.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,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(Qe,Tt){1&Qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,sn,1,0,"mat-spinner",2),T.YNc(5,Xi,1,4,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&Qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,O.$g,gt],pipes:[b.X$],styles:[""]}),Ze})();function an(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function dn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function wn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function xn(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"mat-radio-group",12),T.NdJ("ngModelChange",function(jt){return T.CHM(Qe),T.oxw(2).asyncValidation=jt}),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(),T.qZA()}if(2&Ze){const Qe=T.oxw(2);T.Q6J("ngModel",Qe.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 Oi(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function kn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function Nn(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",5),T.TgZ(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.qZA(),T.TgZ(8,"p"),T.TgZ(9,"strong",8),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.qZA(),T.TgZ(13,"p"),T.TgZ(14,"strong",8),T._uU(15),T.ALo(16,"translate"),T.qZA(),T._uU(17),T.qZA(),T.YNc(18,dn,3,3,"span",9),T.YNc(19,wn,3,3,"span",9),T.YNc(20,xn,10,12,"mat-radio-group",10),T.YNc(21,Oi,3,3,"span",9),T.YNc(22,kn,3,3,"span",9),T.qZA()),2&Ze){const Qe=T.oxw();T.xp6(2),T.hij(" ",Qe.group.name," "),T.xp6(2),T.hij("#",Qe.group.id,""),T.xp6(1),T.hij(" - ",Qe.resource.name," "),T.xp6(2),T.hij("#",Qe.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(" ",Qe.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(" ",Qe.getReversedStatus()," "),T.xp6(1),T.Q6J("ngIf","INACTIVE"===Qe.status||"FAILED"===Qe.status),T.xp6(1),T.Q6J("ngIf","ACTIVE"===Qe.status),T.xp6(1),T.Q6J("ngIf","INACTIVE"===Qe.status||"FAILED"===Qe.status),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===Qe.status||"FAILED"===Qe.status)&&!1===Qe.asyncValidation),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===Qe.status||"FAILED"===Qe.status)&&!0===Qe.asyncValidation)}}function Mt(Ze,Ot){if(1&Ze){const Qe=T.EpF();T.TgZ(0,"div",15),T.TgZ(1,"button",16),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().onCancel()}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",17),T.NdJ("click",function(){return T.CHM(Qe),T.oxw().onSubmit()}),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA()}if(2&Ze){const Qe=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",Qe.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===Qe.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Qt=(()=>{class Ze{constructor(Qe,Tt,jt,ci){this.dialogRef=Qe,this.data=Tt,this.resourceService=jt,this.groupService=ci,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(Qe=>{this.resource=Qe,this.groupService.getGroupById(this.data.groupId).subscribe(Tt=>{this.group=Tt,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 Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(W.xk),T.Y36(W.ff))},Ze.\u0275cmp=T.Xpm({type:Ze,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"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(Qe,Tt){1&Qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,an,1,0,"mat-spinner",1),T.YNc(5,Nn,23,17,"div",2),T.YNc(6,Mt,7,7,"div",3),T.qZA()),2&Qe&&(T.Tol(Tt.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",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,O.$g,w.xY,S.VQ,E.JJ,E.On,S.U0,w.H8,g.lW],pipes:[b.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),Ze})();var rt=p(90995);let kt=(()=>{class Ze{constructor(Qe,Tt,jt,ci,vi){this.dialogRef=Qe,this.data=Tt,this.notificator=jt,this.usersService=ci,this.translate=vi,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.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(Qe){this.force=Qe.force,Qe.deleted?this.anonymizeUser():this.onCancel()}}return Ze.\u0275fac=function(Qe){return new(Qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.V6),T.Y36(W.Fv),T.Y36(b.sK))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(Qe,Tt){1&Qe&&(T.TgZ(0,"div"),T.TgZ(1,"perun-web-apps-delete-entity-dialog",0),T.NdJ("deleted",function(ci){return Tt.onSubmit(ci)}),T.qZA(),T.qZA()),2&Qe&&(T.Tol(Tt.theme),T.xp6(1),T.Q6J("entityNames",Tt.dataSource)("entityType","user")("relations",Tt.relations)("loading",Tt.loading)("anonymize",!0))},directives:[rt.e],styles:[""]}),Ze})()},90995:(Xe,_e,p)=>{"use strict";p.d(_e,{e:()=>He});var e=p(5e3),b=p(93075),_=p(32075),w=p(69808),g=p(20773),A=p(48966),E=p(47423),C=p(25245),O=p(14623),S=p(98380),m=p(67322),B=p(98833),L=p(51062);let J=(()=>{class z{constructor(me){this.translate=me}transform(me){return this.translate.instant(me?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return z.\u0275fac=function(me){return new(me||z)(e.Y36(L.sK,16))},z.\u0275pipe=e.Yjl({name:"deleteDialogType",type:z,pure:!0}),z})();var ie=p(31359);function ge(z,I){1&z&&e._UZ(0,"mat-spinner",2)}const X=function(z){return{action:z}};function Ne(z,I){if(1&z&&(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&z){const me=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,X,e.lcZ(3,9,me.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",me.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",me.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function ue(z,I){if(1&z&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&z){const me=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,X,e.lcZ(3,5,me.anonymize)))," ",me.entityType," ? ")}}function Oe(z,I){1&z&&e._UZ(0,"th",18)}function T(z,I){if(1&z&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&z){const me=I.$implicit,Ae=e.oxw(2);e.xp6(1),e.hij(" ",Ae.anonymize?e.lcZ(2,1,me):me.name," ")}}function Z(z,I){1&z&&e._UZ(0,"tr",20)}function W(z,I){1&z&&e._UZ(0,"tr",21)}function Y(z,I){if(1&z){const me=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){return e.CHM(me),e.oxw(2).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&z){const me=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,X,e.lcZ(5,5,e.lcZ(6,7,me.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const ee=function(){return["name"]};function ce(z,I){if(1&z){const me=e.EpF();e.TgZ(0,"div"),e.TgZ(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,Ne,10,19,"div",5),e.YNc(8,ue,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,Oe,1,0,"th",8),e.YNc(12,T,3,3,"td",9),e.BQk(),e.YNc(13,Z,1,0,"tr",10),e.YNc(14,W,1,0,"tr",11),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return e.CHM(me),e.oxw().onCancel()}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){return e.CHM(me),e.oxw().onDelete()}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,Y,8,13,"button",15),e.qZA(),e.qZA()}if(2&z){const me=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,X,e.lcZ(4,13,e.lcZ(5,15,me.anonymize))))," ",me.entityType," "),e.xp6(5),e.Q6J("ngIf",!me.disableForce),e.xp6(1),e.Q6J("ngIf",me.disableForce),e.xp6(1),e.Q6J("dataSource",me.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,ee)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,ee)),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,X,e.lcZ(22,22,e.lcZ(23,24,me.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!me.disableForce)}}function le(z,I){if(1&z&&(e.TgZ(0,"mat-list-item"),e.TgZ(1,"span"),e.TgZ(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&z){const me=I.$implicit;e.xp6(4),e.hij(" ",me," ")}}function Pe(z,I){if(1&z&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&z){const me=e.oxw(2);e.xp6(1),e.hij(" ",me.anotherMessage," ")}}function Fe(z,I){1&z&&e._UZ(0,"th",18)}function ze(z,I){if(1&z&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&z){const me=I.$implicit,Ae=e.oxw(2);e.xp6(1),e.hij(" ",Ae.anonymize?e.lcZ(2,1,me):me.name," ")}}function ae(z,I){1&z&&e._UZ(0,"tr",20)}function Ue(z,I){1&z&&e._UZ(0,"tr",21)}function ve(z,I){if(1&z){const me=e.EpF();e.TgZ(0,"div"),e.TgZ(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),e.TgZ(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,le,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,Pe,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,Fe,1,0,"th",8),e.YNc(21,ze,3,3,"td",9),e.BQk(),e.YNc(22,ae,1,0,"tr",10),e.YNc(23,Ue,1,0,"tr",11),e.qZA(),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.qZA(),e.TgZ(29,"div",12),e.TgZ(30,"button",13),e.NdJ("click",function(){return e.CHM(me),e.oxw().onCancel()}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){return e.CHM(me),e.oxw().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(),e.qZA(),e.qZA()}if(2&z){const me=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,X,e.lcZ(4,20,e.lcZ(5,22,me.anonymize))))," ",me.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",me.relations),e.xp6(1),e.Q6J("ngIf",me.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,X,e.lcZ(17,31,me.anonymize)))," ",me.entityType," ? "),e.xp6(3),e.Q6J("dataSource",me.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,ee)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,ee)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,X,e.lcZ(27,36,e.lcZ(28,38,me.anonymize))))),e.Q6J("formControl",me.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",me.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,X,e.lcZ(38,45,e.lcZ(39,47,me.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let He=(()=>{class z{constructor(){this.entityNames=new _.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 b.NI("",[b.kI.required,b.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return z.\u0275fac=function(me){return new(me||z)},z.\u0275cmp=e.Xpm({type:z,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(me,Ae){1&me&&(e.YNc(0,ge,1,0,"mat-spinner",0),e.YNc(1,ce,25,32,"div",1),e.YNc(2,ve,41,61,"div",1)),2&me&&(e.Q6J("ngIf",Ae.loading),e.xp6(1),e.Q6J("ngIf",!Ae.force&&!Ae.loading),e.xp6(1),e.Q6J("ngIf",Ae.force&&!Ae.loading))},directives:[w.O5,g.$g,A.uh,A.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,A.H8,E.lW,C.Hw,O.i$,w.sg,O.Tg,S.w,m.KE,B.Nt,b.Fj,b.JJ,b.oH],pipes:[L.X$,w.rS,J,ie.d,w.gd],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),z})()},50301:(Xe,_e,p)=>{"use strict";p.d(_e,{hT:()=>b,Kd:()=>w,YH:()=>g});var e=p(5e3);let b=(()=>{class A{constructor(C){this.elementRef=C}ngOnInit(){this.elementRef.nativeElement.focus()}}return A.\u0275fac=function(C){return new(C||A)(e.Y36(e.SBq))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsAutoFocus",""]]}),A})();var _=p(36908);let w=(()=>{class A{constructor(C){this.router=C}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return A.\u0275fac=function(C){return new(C||A)(e.Y36(_.xw))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(C,O){1&C&&e.NdJ("click",function(){return O.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),A})(),g=(()=>{class A{onClick(C){if(1===C.button&&null!=this.perunWebAppsMiddleClickRouterLink){const O=this.perunWebAppsMiddleClickRouterLink.join("/"),S=location.search;window.open(O+S)}}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(C,O){1&C&&e.NdJ("mouseup",function(m){return O.onClick(m)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),A})()},45323:(Xe,_e,p)=>{"use strict";p.d(_e,{u:()=>e});var e=(()=>{return(b=e||(e={})).PERUNADMIN="PERUNADMIN",b.PERUNOBSERVER="PERUNOBSERVER",b.VOADMIN="VOADMIN",b.GROUPADMIN="GROUPADMIN",b.SELF="SELF",b.FACILITYADMIN="FACILITYADMIN",b.FACILITIYOBSERVER="FACILITYOBSERVER",b.RESOURCEADMIN="RESOURCEADMIN",b.RESOURCESELFSERVICE="RESOURCESELFSERVICE",b.REGISTRAR="REGISTRAR",b.ENGINE="ENGINE",b.RPC="RPC",b.NOTIFICATIONS="NOTIFICATIONS",b.SERVICEUSER="SERVICEUSER",b.SPONSOR="SPONSOR",b.VOOBSERVER="VOOBSERVER",b.TOPGROUPCREATOR="TOPGROUPCREATOR",b.SECURITYADMIN="SECURITYADMIN",b.CABINETADMIN="CABINETADMIN",b.UNKNOWNROLENAME="UNKNOWNROLENAME",e;var b})()},28499:(Xe,_e,p)=>{"use strict";p.d(_e,{E3:()=>m,yT:()=>B.y});var e=p(69808),b=p(67322),_=p(29772),w=p(93075),g=p(98833),A=p(51062),E=p(20773),C=p(25245),O=p(63189),S=p(5e3);let m=(()=>{class J{}return J.\u0275fac=function(ge){return new(ge||J)},J.\u0275mod=S.oAB({type:J}),J.\u0275inj=S.cJS({providers:[],imports:[[e.ez,b.lN,_.AV,w.UX,g.c,A.aw,E.Cq,C.Ps,O.r]]}),J})();var B=p(47549);p(13469)},13469:(Xe,_e,p)=>{"use strict";p.d(_e,{G:()=>Oe});var e=p(47549),b=p(36908),_=p(32105),w=p(5e3),g=p(51062),A=p(93075),E=p(67322),C=p(29772),O=p(98833),S=p(69808),m=p(20773),B=p(25245),L=p(98380);function J(T,Z){1&T&&w._UZ(0,"mat-spinner",12),2&T&&w.Q6J("diameter",18)}function ie(T,Z){if(1&T&&(w.TgZ(0,"mat-icon",13),w._uU(1," error "),w.qZA()),2&T){const W=w.oxw();w.Q6J("matTooltip",W.getErrorTooltip())("matTooltipDisabled",!W.formGroup.get("passwordCtrl").hasError("backendError"))}}function ge(T,Z){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function X(T,Z){if(1&T&&(w.TgZ(0,"mat-error",14),w._uU(1),w.qZA()),2&T){const W=w.oxw();w.Q6J("matTooltip",W.getErrorTooltip()),w.xp6(1),w.Oqu(W.getErrorTooltip())}}function Ne(T,Z){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ue(T,Z){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let Oe=(()=>{class T{constructor(W,Y,ee){this.translator=W,this.usersManagerService=Y,this.store=ee,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(W=>{var Y;const ee=W.userAttributes.find(ce=>"preferredLanguage"===ce.friendlyName);this.language=null!==(Y=null==ee?void 0:ee.value)&&void 0!==Y?Y:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),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 W=this.formGroup.get("passwordCtrl").getError("backendError");return W&&(W=W.replace(":null","")),W}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(W=>W.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(W=>"default"===W.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return T.\u0275fac=function(W){return new(W||T)(w.Y36(g.sK),w.Y36(_.Fv),w.Y36(b.d6))},T.\u0275cmp=w.Xpm({type:T,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[w.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["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"],["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(W,Y){1&W&&(w.TgZ(0,"div",0),w.TgZ(1,"mat-form-field",1),w._UZ(2,"input",2),w.ALo(3,"translate"),w.YNc(4,J,1,1,"mat-spinner",3),w.TgZ(5,"mat-icon",4),w.NdJ("click",function(){return Y.showNewPassword=!Y.showNewPassword}),w._uU(6),w.qZA(),w.YNc(7,ie,2,2,"mat-icon",5),w.YNc(8,ge,3,3,"mat-error",6),w.YNc(9,X,2,2,"mat-error",7),w.qZA(),w.TgZ(10,"mat-form-field",8),w.TgZ(11,"mat-label"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w._UZ(14,"input",9),w.TgZ(15,"mat-icon",4),w.NdJ("click",function(){return Y.showPasswordConfirm=!Y.showPasswordConfirm}),w._uU(16),w.qZA(),w.YNc(17,Ne,3,3,"mat-error",6),w.YNc(18,ue,3,3,"mat-error",6),w.qZA(),w.TgZ(19,"perun-web-apps-alert",10),w._UZ(20,"div",11),w.qZA(),w.qZA()),2&W&&(w.Q6J("formGroup",Y.formGroup),w.xp6(1),w.Q6J("matTooltip",Y.getPasswordDisabledTooltip())("matTooltipDisabled",Y.formGroup.get("passwordCtrl").enabled),w.xp6(1),w.s9C("placeholder",w.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),w.Q6J("type",Y.showNewPassword?"text":"password")("required",Y.passwordRequired)("errorStateMatcher",Y.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",Y.formGroup.get("passwordCtrl").pending),w.xp6(2),w.hij(" ",Y.showNewPassword?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordCtrl").dirty&&null!==Y.formGroup.get("passwordCtrl").errors),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordCtrl").hasError("backendError")),w.xp6(3),w.Oqu(w.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),w.xp6(2),w.Q6J("type",Y.showPasswordConfirm?"text":"password")("required",Y.passwordRequired),w.xp6(2),w.hij(" ",Y.showPasswordConfirm?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordAgainCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),w.xp6(2),w.Q6J("innerHTML",Y.passwordRequirement,w.oJD))},directives:[A.JL,A.sg,E.KE,C.gM,O.Nt,A.Fj,A.JJ,A.u,A.Q7,S.O5,m.$g,E.R9,B.Hw,E.TO,E.hX,L.w],pipes:[g.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,_e,p)=>{"use strict";p.d(_e,{S:()=>A,y:()=>E});var e=p(98723),b=p(21086),_=p(87545),w=p(24850),g=p(27221);class A{isErrorState(O){return!(!(null==O?void 0:O.invalid)||!(null==O?void 0:O.dirty))}}const E=(C,O,S,m=500)=>B=>(0,e.H)(m).pipe((0,_.w)(()=>(S.dontHandleErrorForNext(),C&&"No namespace"!==C?O.checkPasswordStrength(B.value,C):(0,b.of)(null))),(0,w.U)(()=>null),(0,g.K)(L=>{const J=L.error,ie={backendError:J.message.substring(J.message.indexOf(":")+1)};return(0,b.of)(ie)}))},32105:(Xe,_e,p)=>{"use strict";p.d(_e,{Us:()=>ze,au:()=>Ye,sY:()=>ve,H8:()=>E,jw:()=>C,Ct:()=>O,VK:()=>A,WY:()=>m,KG:()=>L,IQ:()=>J,ff:()=>ge,uq:()=>Ne,aC:()=>ue,Hr:()=>Oe,tk:()=>T,xk:()=>Z,t7:()=>W,KK:()=>Y,Ob:()=>ee,Dy:()=>V,Fv:()=>ce,FW:()=>le,YF:()=>Pe});var e=p(40520);class b{encodeKey(re){return encodeURIComponent(re)}encodeValue(re){return encodeURIComponent(re)}decodeKey(re){return decodeURIComponent(re)}decodeValue(re){return decodeURIComponent(re)}}var _=p(5e3);const w=new _.OlP("basePath");class A{constructor(re={}){this.apiKeys=re.apiKeys,this.username=re.username,this.password=re.password,this.accessToken=re.accessToken,this.basePath=re.basePath,this.withCredentials=re.withCredentials,this.encoder=re.encoder,this.credentials=re.credentials?re.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(re){if(0===re.length)return;const r=re.find(o=>this.isJsonMime(o));return void 0===r?re[0]:r}selectHeaderAccept(re){if(0===re.length)return;const r=re.find(o=>this.isJsonMime(o));return void 0===r?re[0]:r}isJsonMime(re){const r=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==re&&(r.test(re)||"application/json-patch+json"===re.toLowerCase())}lookupCredential(re){const r=this.credentials[re];return"function"==typeof r?r():r}}let E=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}convertAttributeToNonunique(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}convertAttributeToUnique(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}createAttributeDefinition(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteAttributeDefinition(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}deleteAttributeDefinitions(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllAttributeDefinitions(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAttribute(r,o,d,l,s,i,t,n,a,c,h,x="body",We=!1,At){let Ht=new e.LE({encoder:this.encoder});null!=r&&(Ht=this.addToHttpParams(Ht,r,"attributeName")),null!=o&&(Ht=this.addToHttpParams(Ht,o,"attributeId")),null!=d&&(Ht=this.addToHttpParams(Ht,d,"facility")),null!=l&&(Ht=this.addToHttpParams(Ht,l,"user")),null!=s&&(Ht=this.addToHttpParams(Ht,s,"vo")),null!=i&&(Ht=this.addToHttpParams(Ht,i,"resource")),null!=t&&(Ht=this.addToHttpParams(Ht,t,"member")),null!=n&&(Ht=this.addToHttpParams(Ht,n,"group")),null!=a&&(Ht=this.addToHttpParams(Ht,a,"host")),null!=c&&(Ht=this.addToHttpParams(Ht,c,"userExtSource")),null!=h&&(Ht=this.addToHttpParams(Ht,h,"key"));let Ut,lt=this.defaultHeaders;Ut=this.configuration.lookupCredential("BasicAuth"),Ut&&(lt=lt.set("Authorization","Basic "+Ut)),Ut=this.configuration.lookupCredential("BearerAuth"),Ut&&(lt=lt.set("Authorization","Bearer "+Ut));let mt=At&&At.httpHeaderAccept;void 0===mt&&(mt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==mt&&(lt=lt.set("Accept",mt));let Lt=At&&At.context;void 0===Lt&&(Lt=new e.qT);let Te="json";return mt&&(Te=mt.startsWith("text")?"text":this.configuration.isJsonMime(mt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Lt,params:Ht,responseType:Te,withCredentials:this.configuration.withCredentials,headers:lt,observe:x,reportProgress:We})}getAttributeDefinitionById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAttributeDefinitionByName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAttributeDefinitionsByNamespace(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAttributeModulesDependenciesGraphText(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAttributePolicyCollections(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAttributeRights(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAttributesDefinitionWithRights(r,o,d,l,s,i,t,n,a="body",c=!1,h){let x=new e.LE({encoder:this.encoder});null!=r&&(x=this.addToHttpParams(x,r,"member")),null!=o&&(x=this.addToHttpParams(x,o,"user")),null!=d&&(x=this.addToHttpParams(x,d,"vo")),null!=l&&(x=this.addToHttpParams(x,l,"group")),null!=s&&(x=this.addToHttpParams(x,s,"resource")),null!=i&&(x=this.addToHttpParams(x,i,"facility")),null!=t&&(x=this.addToHttpParams(x,t,"host")),null!=n&&(x=this.addToHttpParams(x,n,"userExtSource"));let At,We=this.defaultHeaders;At=this.configuration.lookupCredential("BasicAuth"),At&&(We=We.set("Authorization","Basic "+At)),At=this.configuration.lookupCredential("BearerAuth"),At&&(We=We.set("Authorization","Bearer "+At));let Ht=h&&h.httpHeaderAccept;void 0===Ht&&(Ht=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ht&&(We=We.set("Accept",Ht));let lt=h&&h.context;void 0===lt&&(lt=new e.qT);let Ut="json";return Ht&&(Ut=Ht.startsWith("text")?"text":this.configuration.isJsonMime(Ht)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:lt,params:x,responseType:Ut,withCredentials:this.configuration.withCredentials,headers:We,observe:a,reportProgress:c})}getEntitylessAttributeByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEntitylessAttributesByKey(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getEntitylessAttributesByName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getEntitylessAttributesWithKeys(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEntitylessKeys(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityAttributeById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAttributeByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityResourceUserMemberAttributes(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"resource")),null!=d&&(n=this.addToHttpParams(n,d,"user")),null!=l&&(n=this.addToHttpParams(n,l,"member"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getFacilityUserAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributeById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributeByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupResourceAttributeById(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupResourceAttributeByName(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupResourceAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributeById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributeByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getHostAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getLogins(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getLogins.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMemberAndUserAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAndUserAttributesByNames(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==d)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")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberAttributeById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAttributeByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMemberAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroupAndUserAttributesByNames(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getMemberGroupAttributeById(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberGroupAttributeByName(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberGroupAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroupAttributesByNames(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"group")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getMemberResourceAttributeById(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAttributeByName(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesDefinition(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRequiredAttributesFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRequiredAttributesFacilityService(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesFacilityServices(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"services[]")}),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesGroupResourceService(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"group"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesHostService(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesMember(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesMemberGroup(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service")),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"group")),null!=l&&(a=this.addToHttpParams(a,l,"member")),null!=s&&(a=this.addToHttpParams(a,s,"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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}getRequiredAttributesMemberGroupService(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==d)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!=o&&(n=this.addToHttpParams(n,o,"group")),null!=d&&(n=this.addToHttpParams(n,d,"member")),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getRequiredAttributesMemberResource(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesMemberResourceService(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==d)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!=o&&(n=this.addToHttpParams(n,o,"resource")),null!=d&&(n=this.addToHttpParams(n,d,"member")),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getRequiredAttributesResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRequiredAttributesResourceService(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesResourceServices(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"services[]")}),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRequiredAttributesUserFacility(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesVoService(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributeById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributeByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getResourceAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributes(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"workWithGroupAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getResourceGroupAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceGroupMemberAttributesByNames(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"group")),null!=d&&(n=this.addToHttpParams(n,d,"member")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getUserAttributeById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserAttributeByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getUserAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributeById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributeByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getUserExtSourceAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserFacilityAttributeById(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getUserFacilityAttributeByName(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getUserFacilityAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributeById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributeByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVoAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(r,o,d,l,s,i,t="body",n=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"facility")),null!=o&&(c=this.addToHttpParams(c,o,"resource")),null!=d&&(c=this.addToHttpParams(c,d,"group")),null!=l&&(c=this.addToHttpParams(c,l,"user")),null!=s&&(c=this.addToHttpParams(c,s,"member")),i&&i.forEach(lt=>{c=this.addToHttpParams(c,lt,"attributes[]")});let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}removeAttributesForFacilityResourceUserMember(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility")),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"user")),null!=l&&(a=this.addToHttpParams(a,l,"member")),s&&s.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"attributes[]")});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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}removeEntitylessAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupResourceAttribute(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeGroupResourceAttributes(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attributes[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}removeHostAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHostAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==d)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")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")}),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttribute(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttributes(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"group")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attributes[]")}),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}removeMemberResourceAttribute(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberResourceAttributes(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"resource")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeResourceAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUesAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserExtSourceAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserFacilityAttribute(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeUserFacilityAttributes(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"facility")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeVoAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setAttributePolicyCollections(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setAttributeRights(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setEntitylessAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityResourceUserMemberAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityUserAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupResourceAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupResourceAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setHostAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setHostAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberGroupAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberGroupAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberGroupWithUserAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberResourceAndUserAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberResourceAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberResourceAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberWithUserAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceGroupAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceGroupWithGroupAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserExtSourceAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserExtSourceAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserFacilityAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserFacilityAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setVoAttribute(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setVoAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateAttributeDefinition(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),C=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}auditMessagesManagerLog(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}createAuditerConsumer(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllAuditerConsumers(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAuditerMessagesCount(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getLastMessageId(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getMessages(r,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMessagesByCount(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMessagesPage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}pollConsumerMessages(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}setLastProcessedId(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),O=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}getAllPolicies(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAllRolesManagementRules(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAuthzAdminGroups(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==o)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"complementaryObjectId")),null!=d&&(t=this.addToHttpParams(t,d,"complementaryObjectName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAuthzRichAdmins(r,o,d,l,s,i,t="body",n=!1,a){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==o)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"role")),null!=o&&(c=this.addToHttpParams(c,o,"complementaryObjectId")),null!=d&&(c=this.addToHttpParams(c,d,"complementaryObjectName")),l&&l.forEach(lt=>{c=this.addToHttpParams(c,lt,"specificAttributes")}),null!=s&&(c=this.addToHttpParams(c,s,"allUserAttributes")),null!=i&&(c=this.addToHttpParams(c,i,"onlyDirectAdmins"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}getFacilitiesWhereUserIsInRoles(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"user")),r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupRoleNames(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupRoles(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupsWhereUserIsInRoles(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"user")),r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getLoggedUser(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getMembersWhereUserIsInRoles(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"user")),r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getPerunPrincipal(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getPrincipalRoleNames(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getResourcesWhereUserIsInRoles(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"user")),r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"user")),r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserRoleNames(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getUserRoles(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVosWhereUserIsInRoles(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"user")),r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isFacilityAdmin(r,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}isGroupAdmin(r,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}isPerunAdmin(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}isVoAdmin(r,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}keepAlive(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}loadAuthorizationComponents(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}setRoleWithGroupComplementaryObject(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setRoleWithUserComplementaryObject(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}unsetRoleWithGroupComplementaryObject(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}unsetRoleWithUserComplementaryObject(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),m=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}changeConsentStatus(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}evaluateConsentsForConsentHub(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}evaluateConsentsForService(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllConsentHubs(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAllConsents(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getConsentById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getConsentForUserAndConsentHub(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==o)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"consentHub")),null!=d&&(t=this.addToHttpParams(t,d,"status"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getConsentHubByFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getConsentHubById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getConsentHubByName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getConsentsForConsentHub(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getConsentsForConsentHubWithStatus(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getConsentsForUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getConsentsForUserAndConsentHub(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getConsentsForUserWithStatus(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateConsentHub(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),L=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}addExtSourceWithGroupSource(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addExtSourceWithVoSource(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createExtSourceFromExtSourceObject(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createExtSourceWithNameType(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteExtSource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getExtSourceById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getExtSourceByName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getExtSources(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getGroupExtSources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVoExtSources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}loadExtSourcesDefinitions(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}removeExtSourceWithGroupSource(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeExtSourceWithVoSource(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),J=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}addFacilityAdminGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminGroupByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminUserByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwner(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByFacilityNameOwnerName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByOwnerName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHost(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHostByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHosts(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHostsByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignSecurityTeam(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignSecurityTeamByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesByDestinationName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesBySourceDestinationNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesBySourceName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagers(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersByDestinationName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersBySourceDestinationNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersBySourceName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwners(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersByDestinationName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersBySourceDestinationNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersBySourceName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createFacility(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteFacility(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteFacilityByFacilityName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllFacilities(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAllowedGroups(r,o,d,l="body",s=!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!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedGroupsByFacilityName(r,o,d,l="body",s=!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!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedRichGroupsWithAttributes(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==o)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")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"vo")),null!=l&&(n=this.addToHttpParams(n,l,"service"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getAllowedRichGroupsWithAttributesByFacilityName(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==o)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")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"vo")),null!=l&&(n=this.addToHttpParams(n,l,"service"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getAllowedUsersOfFacility(r,o,d,l="body",s=!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!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(r,o,d,l="body",s=!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!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedVos(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllowedVosByFacilityName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedFacilitiesByGroup(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedFacilitiesByMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedFacilitiesByService(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedFacilitiesByUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedResourcesByAssignedServiceForFacility(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedResourcesForFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedResourcesForFacilityByFacilityName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedRichResourcesForFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedRichResourcesForFacilityByFacilityName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedSecurityTeams(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedSecurityTeamsByFacilityName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedUsers(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedUsersByFacilityName(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getBansForFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getBansForUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getEnrichedFacilities(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getEnrichedHosts(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilitiesByAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilitiesByDestination(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilitiesByHostName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilitiesByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilitiesCount(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getFacilitiesWhereUserIsAdmin(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityAdminGroups(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityAdminUsers(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAdminUsersByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityBan(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityBanById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityByName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityForHost(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityOwners(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityOwnersByFacilityName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getHostById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getHostById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getHosts(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getHostsByFacilityName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getHostsByHostname(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getHostsCount(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getHostsCountByFacilityName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getOwnerFacilities(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichFacilities(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}removeBanByUserIdFacilityId(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminGroupByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminUserByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityBanById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}removeFacilityOwner(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByFacilityNameOwnerName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByOwnerName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHost(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHost.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}removeHostByHostname(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}removeHosts(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHostsByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSecurityTeam(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSecurityTeamByFacilityName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setFacilityBan(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFacilityBan(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),ge=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}addMember(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling addMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"groups[]")}),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addMembers(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}allowGroupToHierarchicalVo(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}canExtendMembershipInGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createGroupUnion(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createGroupWithParentGroupNameDescription(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==o)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"name")),null!=d&&(t=this.addToHttpParams(t,d,"description"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}createGroupWithVoNameDescription(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==o)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"name")),null!=d&&(t=this.addToHttpParams(t,d,"description"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}deleteGroup(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteGroups(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}disallowGroupToHierarchicalVo(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}extendMembershipInGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}forceAllSubGroupsSynchronization(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}forceGroupStructureSynchronization(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}forceGroupSynchronization(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllAllowedGroupsToHierarchicalVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllGroups(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllGroupsFromAllVos(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAllMemberGroups(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllRichGroups(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllRichGroupsWithAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupMemberById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupMembers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupMembersCount(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupMembersCountsByGroupStatus(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupMembersCountsByVoStatus(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupRichMembersByIds(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==o)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==d)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")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"members[]")}),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupUnions(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupsPage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getIndirectMembershipPaths(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroups(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMemberRichGroupsWithAttributesByNames(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichGroupByIdWithAttributesByNames(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSubgroupsPage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getVoAllAllowedGroupsToHierarchicalVo(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isAllowedGroupToHierarchicalVo(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isGroupMember(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupUnion(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMember(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling removeMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"groups[]")}),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMembers(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setGroupsMemberStatus(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==o)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"status"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}updateGroup(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Ne=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}canExtendMembership(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}createMemberForCandidate(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createMemberForUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createMemberFromExtSource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSpecificMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSponsoredMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSponsoredMembers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSponsoredMembersFromCSV(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}deleteMembers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}extendMembership(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}findCompleteRichMembersByAttributes(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(We=>{t=this.addToHttpParams(t,We,"attrsNames[]")}),null!=o&&(t=this.addToHttpParams(t,o,"searchString")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"allowedStatuses[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}findCompleteRichMembersForGroup(r,o,d,l,s,i,t="body",n=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"group")),o&&o.forEach(lt=>{c=this.addToHttpParams(c,lt,"attrsNames[]")}),s&&s.forEach(lt=>{c=this.addToHttpParams(c,lt,"allowedStatuses[]")}),i&&i.forEach(lt=>{c=this.addToHttpParams(c,lt,"allowedGroupStatuses[]")}),null!=d&&(c=this.addToHttpParams(c,d,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"lookingInParentGroup"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}findCompleteRichMembersForVo(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==d)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")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"allowedStatuses[]")}),null!=d&&(n=this.addToHttpParams(n,d,"searchString"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}findMembersInVo(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findSponsoredCompleteRichMembersForVo(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)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")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"searchString")),null!=l&&(n=this.addToHttpParams(n,l,"onlySponsored"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getAllMembers(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAllNamespacesRules(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAllSponsoredMembers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllSponsoredMembersAndTheirSponsors(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getCompleteRichMembersForGroup(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==o)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),d&&d.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"allowedStatuses[]")}),l&&l.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"allowedGroupStatuses[]")}),null!=o&&(a=this.addToHttpParams(a,o,"lookingInParentGroup")),s&&s.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"attrsNames[]")});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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}getCompleteRichMembersForGroupResource(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==d)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"allowedStatuses[]")});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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getCompleteRichMembersForVo(r,o,d,l="body",s=!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")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"allowedStatuses[]")}),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrsNames[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==o)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"extLogin")),null!=d&&(t=this.addToHttpParams(t,d,"extSourceName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMemberByUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMembers(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMembersByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMembersByUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMembersCount(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMembersPage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getMembersWithStatusCount(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichMemberWithAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichMembersByIds(r,o,d="body",l=!1,s){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(x=>{i=this.addToHttpParams(i,x,"ids[]")}),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichMembersNoUserAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getSponsoredMembers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getSponsoredMembersAndTheirSponsors(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsByMember(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsByVo(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==d)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!=o&&(n=this.addToHttpParams(n,o,"extSourceName")),null!=d&&(n=this.addToHttpParams(n,d,"extLogin")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}moveMembership(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==o)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"sourceUser")),null!=d&&(t=this.addToHttpParams(t,d,"targetUser"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeSponsor(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendAccountActivationLinkEmail(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==d)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"namespace")),null!=d&&(n=this.addToHttpParams(n,d,"emailAttributeURN")),null!=l&&(n=this.addToHttpParams(n,l,"language"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}sendPasswordResetLinkEmail(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==d)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member")),null!=o&&(a=this.addToHttpParams(a,o,"namespace")),null!=d&&(a=this.addToHttpParams(a,d,"emailAttributeURN")),null!=l&&(a=this.addToHttpParams(a,l,"language")),null!=s&&(a=this.addToHttpParams(a,s,"baseUrl"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}setSponsoredMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setSponsorshipForMember(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}setStatus(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sponsorMember(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}updateSponsorshipValidity(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}validateMemberAsync(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),ue=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}createOwner(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteOwner(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllOwners(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getOwnerById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getOwnerByName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Oe=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}sentMessageToRTWithMemberQueue(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==o)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"queue")),null!=d&&(n=this.addToHttpParams(n,d,"subject")),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}sentMessageToRTWithQueue(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"subject")),null!=d&&(t=this.addToHttpParams(t,d,"text"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sentMessageToRTWithVo(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"subject")),null!=d&&(t=this.addToHttpParams(t,d,"text"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sentMessageToRTWithVoQueue(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==o)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"queue")),null!=d&&(n=this.addToHttpParams(n,d,"subject")),null!=l&&(n=this.addToHttpParams(n,l,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),T=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}addApplicationMailForGroup(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addApplicationMailForVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addGroupsToAutoRegistration(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}approveApplication(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}checkForSimilarUsersWithAuthInfo(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}consolidateIdentityUsingToken(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}copyFormFromGroupToGroup(r,o,d="body",l=!1,s){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromGroupToVo(r,o,d="body",l=!1,s){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromVoToGroup(r,o,d="body",l=!1,s){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromVoToVo(r,o,d="body",l=!1,s){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromGroupToGroup(r,o,d="body",l=!1,s){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromGroupToVo(r,o,d="body",l=!1,s){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromVoToGroup(r,o,d="body",l=!1,s){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromVoToVo(r,o,d="body",l=!1,s){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createApplicationFormInGroup(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}createApplicationFormInVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}deleteApplication(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}deleteApplicationMailForGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteApplicationMailForVo(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteGroupsFromAutoRegistration(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getApplicationById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getApplicationDataById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getApplicationMailsForGroup(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getApplicationMailsForVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getApplicationsForGroup(r,o,d,l,s="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")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"state[]")}),null!=d&&(n=this.addToHttpParams(n,d,"dateFrom")),null!=l&&(n=this.addToHttpParams(n,l,"dateTo"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getApplicationsForMember(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getApplicationsForVo(r,o,d,l,s="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")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"state[]")}),null!=d&&(n=this.addToHttpParams(n,d,"dateFrom")),null!=l&&(n=this.addToHttpParams(n,l,"dateTo"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getApplicationsPage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getConsolidatorToken(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getFormItemsForGroup(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFormItemsForGroupWithType(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFormItemsForVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFormItemsForVoWithType(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupApplicationForm(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupsToAutoRegistration(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVoApplicationForm(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}rejectApplication(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendInvitation(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==o)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let n=new e.LE({encoder:this.encoder});null!=d&&(n=this.addToHttpParams(n,d,"voId")),null!=l&&(n=this.addToHttpParams(n,l,"name")),null!=r&&(n=this.addToHttpParams(n,r,"email")),null!=o&&(n=this.addToHttpParams(n,o,"language"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}sendInvitationForGroup(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==o)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new e.LE({encoder:this.encoder});null!=d&&(a=this.addToHttpParams(a,d,"voId")),null!=l&&(a=this.addToHttpParams(a,l,"groupId")),null!=s&&(a=this.addToHttpParams(a,s,"name")),null!=r&&(a=this.addToHttpParams(a,r,"email")),null!=o&&(a=this.addToHttpParams(a,o,"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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}sendInvitationGroupToExistingUser(r,o,d,l="body",s=!1,i){let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"userId")),null!=o&&(t=this.addToHttpParams(t,o,"voId")),null!=d&&(t=this.addToHttpParams(t,d,"groupId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sendInvitationToExistingUser(r,o,d="body",l=!1,s){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userId")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendMessage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setSendingEnabled(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}submitApplication(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateApplicationMail(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateForm(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemData(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemsData(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemsForGroup(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemsForVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}verifyApplication(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Z=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}activateGroupResourceAssignment(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"async"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}addAdminToGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addAdminToUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addResourceSelfServiceGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addResourceSelfServiceUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}allowGroupsToResources(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(We=>{t=this.addToHttpParams(t,We,"groups[]")}),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"resources[]")}),null!=d&&(t=this.addToHttpParams(t,d,"async"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}assignGroupToResource(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=s&&(a=this.addToHttpParams(a,s,"autoAssignSubgroups"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}assignGroupToResources(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),o&&o.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"resources[]")}),null!=d&&(a=this.addToHttpParams(a,d,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=s&&(a=this.addToHttpParams(a,s,"autoAssignSubgroups"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}assignGroupsToResource(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"groups[]")}),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=s&&(a=this.addToHttpParams(a,s,"autoAssignSubgroups"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}assignResourceTagToResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}assignService(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignServices(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignServicesPackage(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createResource(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==d)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!=o&&(n=this.addToHttpParams(n,o,"facility")),null!=d&&(n=this.addToHttpParams(n,d,"name")),null!=l&&(n=this.addToHttpParams(n,l,"description"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}createResourceTagWithResourceTag(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createResourceTagWithTagName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deactivateGroupResourceAssignment(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteAllResources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}deleteAllResourcesTagsForVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}deleteResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}deleteResourceTag(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAdminGroups(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAdmins(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllResourcesByResourceTag(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAllResourcesTagsForResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllResourcesTagsForVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllResourcesWhereUserIsAdmin(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllowedMembers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllowedResources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllowedUsersOfResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedGroups(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedMembers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedMembersWithStatus(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedResourcesWithGroup(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedResourcesWithMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedResourcesWithStatus(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedRichMembers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedRichResourcesWithGroup(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedRichResourcesWithMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedRichResourcesWithMemberService(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedServicesToResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getBansForMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getBansForResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getEnrichedResourceById(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEnrichedResourcesForFacility(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEnrichedResourcesForVo(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupAssignments(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAssignments(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceBan(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceBanById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getResourceById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getResourceByName(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"name"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResources.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getResourcesByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getResourcesCountForAll(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getResourcesCountForVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getResourcesFromVoWhereUserIsAdmin(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourcesWhereGroupIsAdmin(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"group"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResourcesWhereUserIsAdmin(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"user"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRichAdmins(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==o)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==d)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)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")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"specificAttributes")}),null!=d&&(n=this.addToHttpParams(n,d,"allUserAttributes")),null!=l&&(n=this.addToHttpParams(n,l,"onlyDirectAdmins"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getRichResourceById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichResources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichResourcesByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getVo.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}removeAllResourceTagsFromResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}removeBanByMemberAndResource(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAdminResource(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupFromResource(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupFromResources(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupsFromResource(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"groups[]")}),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceBanById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}removeResourceSelfServiceGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceSelfServiceUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceTagFromResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}removeService(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServices(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServicesPackage(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAdminResource(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setResourceBan(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}unallowGroupsFromResources(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(x=>{i=this.addToHttpParams(i,x,"groups[]")}),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateResource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateResourceBan(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateResourceTag(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),W=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}getAttributesMatchResources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes-match`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAttributesResources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getFacilities(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getFacilities`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getMembersByUserAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getUsersSearcher(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getUsers`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Y=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}addDestination(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==d)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service")),null!=o&&(a=this.addToHttpParams(a,o,"facility")),null!=d&&(a=this.addToHttpParams(a,d,"destination")),null!=l&&(a=this.addToHttpParams(a,l,"type")),null!=s&&(a=this.addToHttpParams(a,s,"propagationType"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}addDestinationToMultipleServices(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addDestinationsForAllServicesOnFacility(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==d)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!=o&&(n=this.addToHttpParams(n,o,"destination")),null!=d&&(n=this.addToHttpParams(n,d,"type")),null!=l&&(n=this.addToHttpParams(n,l,"propagationType"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}addRequiredAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addRequiredAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addServiceToServicesPackage(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockAllServicesOnDestinationById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}blockAllServicesOnDestinationByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockAllServicesOnFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}blockServiceOnDestination(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockServiceOnDestinationWithNameAndType(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"destination")),null!=d&&(t=this.addToHttpParams(t,d,"destinationType"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}blockServiceOnFacility(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createService(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"description")),null!=d&&(t=this.addToHttpParams(t,d,"script"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}createServiceWithService(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createServicesPackage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createServicesPackageByNameAndDescription(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteService(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteServicesPackage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}forceServicePropagation(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllDestinations(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getAllRichDestinationsForFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllRichDestinationsForService(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedResources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedServices(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getDataWithGroups(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDataWithVos(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDestinationById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getDestinations(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDestinationsCount(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getFacilitiesDestinations(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityAssignedServicesForGUI(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFlatData(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHashedDataWithGroups(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"consentEval"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getHashedHierarchicalData(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"consentEval"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getHierarchicalData(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichDestinations(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getServiceById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getServiceByName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getServices(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getServicesBlockedOnDestination(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getServicesBlockedOnFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getServicesByAttributeDefinition(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getServicesFromServicesPackage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getServicesPackageById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getServicesPackageByName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getServicesPackages(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}isServiceBlockedOnDestination(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isServiceBlockedOnFacility(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}planServicePropagation(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAllDestinations(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAllRequiredAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}removeDestination(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==d)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==l)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!=o&&(n=this.addToHttpParams(n,o,"facility")),null!=d&&(n=this.addToHttpParams(n,d,"destination")),null!=l&&(n=this.addToHttpParams(n,l,"type"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}removeRequiredAttribute(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeRequiredAttributes(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==o)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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServiceFromServicesPackage(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockAllServicesOnDestinationById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}unblockAllServicesOnDestinationByName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockAllServicesOnFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}unblockServiceOnDestinationById(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockServiceOnDestinationByName(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"destination")),null!=d&&(t=this.addToHttpParams(t,d,"destinationType"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}unblockServiceOnFacility(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateService(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateServicesPackage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),ee=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}countTasks(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}deleteTask(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteTaskResultById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteTaskResultsIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteTaskResultsNames(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAllFacilitiesStates(r,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAllResourcesState(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityServicesState(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getFacilityState(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getTask(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getTaskById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getTaskResultById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getTaskResults(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getTaskResultsByTask(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getTaskResultsForDestinations(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getTaskResultsForGUIByTask(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getTaskResultsForGUIByTaskAndDestination(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getTaskResultsForGUIByTaskOnlyNewest(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}isThereSuchTask(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}listAllTasks(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}listAllTasksForFacility(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}suspendTasksPropagation(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),ce=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}addSpecificUserOwner(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addUserExtSource(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}anonymizeUser(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}changeNonAuthzPasswordByToken(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==o)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"token")),null!=o&&(t=this.addToHttpParams(t,o,"password")),null!=d&&(t=this.addToHttpParams(t,d,"lang"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}changePasswordForLogin(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==d)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"login")),null!=o&&(a=this.addToHttpParams(a,o,"namespace")),null!=d&&(a=this.addToHttpParams(a,d,"newPassword")),null!=l&&(a=this.addToHttpParams(a,l,"oldPassword")),null!=s&&(a=this.addToHttpParams(a,s,"checkOldPassword"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}changePasswordForUser(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==d)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user")),null!=o&&(a=this.addToHttpParams(a,o,"namespace")),null!=d&&(a=this.addToHttpParams(a,d,"newPassword")),null!=l&&(a=this.addToHttpParams(a,l,"oldPassword")),null!=s&&(a=this.addToHttpParams(a,s,"checkOldPassword"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}checkPasswordResetRequestByTokenIsValid(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}checkPasswordStrength(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"password")),null!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createAlternativePassword(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==d)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=o&&(n=this.addToHttpParams(n,o,"description")),null!=d&&(n=this.addToHttpParams(n,d,"loginNamespace")),null!=l&&(n=this.addToHttpParams(n,l,"password"));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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}createServiceUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteAlternativePassword(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==o)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"loginNamespace")),null!=d&&(t=this.addToHttpParams(t,d,"passwordId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}deletePasswordForLogin(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deletePasswordForUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteUser(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findRichUsers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}findRichUsersWithAttributes(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findUsers(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}generateAccountForName(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllRichUsersWithAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getAssignedRichResourcesForUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsForResourceWhereUserIsActive(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsWhereUserIsAdmin(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getPendingPreferredEmailChanges(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichUserExtSources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichUserWithAttributes(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichUsersByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichUsersWithAttributesByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichUsersWithoutVoWithAttributes(r,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getSpecificUsersByUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getSponsorsForMember(r,o,d="body",l=!1,s){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")),o&&o.forEach(x=>{i=this.addToHttpParams(i,x,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsForMemberByVoAndLogin(r,o,d,l,s="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==d)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!=o&&(n=this.addToHttpParams(n,o,"extSourceName")),null!=d&&(n=this.addToHttpParams(n,d,"extLogin")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"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=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:i})}getUserByExtSourceNameAndExtLogin(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getUserById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSources(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getUserExtSourcesByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getUsers(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getUsersByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getUsersBySpecificUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getUsersPage(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getVosWhereUserIsAdmin(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVosWhereUserIsMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}isLoginAvailable(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}loginExist(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSpecificUserOwner(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserExtSource(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"userExtSource")),null!=d&&(t=this.addToHttpParams(t,d,"force"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}requestPreferredEmailChange(r,o,d,l,s,i,t="body",n=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==o)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"user")),null!=o&&(c=this.addToHttpParams(c,o,"email")),null!=d&&(c=this.addToHttpParams(c,d,"lang")),null!=l&&(c=this.addToHttpParams(c,l,"linkPath")),null!=s&&(c=this.addToHttpParams(c,s,"customUrl")),null!=i&&(c=this.addToHttpParams(c,i,"idpFilter"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}reservePasswordForLogin(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==d)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"login")),null!=o&&(t=this.addToHttpParams(t,o,"namespace")),null!=d&&(t=this.addToHttpParams(t,d,"password"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}reservePasswordForUser(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==d)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=o&&(t=this.addToHttpParams(t,o,"namespace")),null!=d&&(t=this.addToHttpParams(t,d,"password"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}reserveRandomPassword(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateUser(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateUserExtSourceLastAccess(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}validatePasswordForLogin(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}validatePasswordForUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}validatePreferredEmailChangeWithToken(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),le=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}getAppsConfig(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getGuiConfiguration(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getPerunRPCVersion(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getPerunStatistics(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getPerunStatus(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getPerunSystemTimeInMillis(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Pe=(()=>{class ye{constructor(r,o,d){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(r,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(r,o,d):this.addToHttpParamsRecursive(r,o)}addToHttpParamsRecursive(r,o,d){if(null==o)return r;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>r=this.addToHttpParamsRecursive(r,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");r=r.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>r=this.addToHttpParamsRecursive(r,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");r=r.append(d,o)}return r}addMemberVo(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addSponsorRoleToGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addSponsorRoleToUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addVoAdminGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addVoAdminUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createVoWithName(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createVoWithVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteVo(r,o,d="body",l=!1,s){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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findCandidates(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==o)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!=o&&(t=this.addToHttpParams(t,o,"searchString")),null!=d&&(t=this.addToHttpParams(t,d,"maxNumOfResults"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}findCandidatesForGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllVos(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getCompleteCandidatesForGroup(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==d)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")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"searchString"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getCompleteCandidatesForVo(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==d)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")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"searchString"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getEnrichedVoById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMemberVos(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getMyEnrichedVos(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getMyVos(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}getParentVos(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getRichAdminsForVo(r,o,d,l,s,i="body",t=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo")),null!=o&&(a=this.addToHttpParams(a,o,"role")),d&&d.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"specificAttributes")}),null!=l&&(a=this.addToHttpParams(a,l,"allUserAttributes")),null!=s&&(a=this.addToHttpParams(a,s,"onlyDirectAdmins"));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 x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:i,reportProgress:t})}getVoAdminGroups(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAdminUsers(r,o,d,l="body",s=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==d)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!=o&&(t=this.addToHttpParams(t,o,"role")),null!=d&&(t=this.addToHttpParams(t,d,"onlyDirectAdmins"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=i&&i.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=i&&i.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getVoBanById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVoBanForMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVoBansForVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVoById(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getVoById.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVoByShortName(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVoMembersCountsByStatus(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVosByIds(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let s=new e.LE({encoder:this.encoder});r&&r.forEach(h=>{s=this.addToHttpParams(s,h,"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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}getVosCount(r="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:o})}removeMemberVo(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSponsorRoleFromGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSponsorRoleFromUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAdminGroup(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAdminUser(r,o,d="body",l=!1,s){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==o)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!=o&&(i=this.addToHttpParams(i,o,"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 a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:c,params:i,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoBan(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}removeVoBanForMember(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,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=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:d})}setVoBan(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateVo(r,o="body",d=!1,l){if(null==r)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let i,s=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(s=s.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(s=s.set("Authorization","Bearer "+i));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,r,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();const ze={WRITE:"WRITE",WRITE_VO:"WRITE_VO",WRITE_PUBLIC:"WRITE_PUBLIC",READ:"READ",READ_VO:"READ_VO",READ_PUBLIC:"READ_PUBLIC"},ve={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},V={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 Ye=(()=>{class ye{constructor(r,o){if(r)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!o)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:ye,providers:[{provide:A,useFactory:r}]}}}return ye.\u0275fac=function(r){return new(r||ye)(_.LFG(ye,12),_.LFG(e.eN,8))},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({providers:[],imports:[[]]}),ye})()},19516:(Xe,_e,p)=>{"use strict";p.d(_e,{r5:()=>A.r,d4:()=>_,dp:()=>w.d});var e=p(69808),b=p(5e3);let _=(()=>{class J{}return J.\u0275fac=function(ge){return new(ge||J)},J.\u0275mod=b.oAB({type:J}),J.\u0275inj=b.cJS({imports:[[e.ez]]}),J})();var w=p(31359),A=(p(34447),p(82895));p(12856),p(20919),p(5865),p(53561),p(16119),p(7598),p(9954)},34447:(Xe,_e,p)=>{"use strict";p.d(_e,{a:()=>w});var e=p(36908),b=p(5e3),_=p(51062);let w=(()=>{class g{constructor(E,C){this.translate=E,this.storage=C}transform(E,C="en"){const O=this.storage.get("custom_labels");if(O)for(const S of O)if(S.label===E)return S[C];return E}}return g.\u0275fac=function(E){return new(E||g)(b.Y36(_.sK,16),b.Y36(e.d6,16))},g.\u0275pipe=b.Yjl({name:"customTranslate",type:g,pure:!0}),g})()},82895:(Xe,_e,p)=>{"use strict";p.d(_e,{r:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g,A){return A?`/organizations/${g.voId}/resources/${g.id}`:`/facilities/${g.facilityId}/resources/${g.id}`}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"getResourceRoute",type:_,pure:!0}),_})()},28764:(Xe,_e,p)=>{"use strict";p.d(_e,{F:()=>w});var e=p(9244),b=p(64080),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const C=(0,e.IL)(E.attributes,b.r.GROUP_SYNC_ENABLED),O=(0,e.IL)(E.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===O)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const S=O.value;if("true"===C.value){const B=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_STATE),L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_TIMESTAMP),J=B.value,ie=L.value;return null!=J&&J.trim().length>0?"red":null!==ie&&ie.trim().length>0?"green":""}if(S){const B=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE),L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),J=B.value,ie=L.value;return null!=J&&J.trim().length>0?"red":null!==ie&&ie.trim().length>0?"green":""}return""}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIconColor",type:g,pure:!0}),g})()},29218:(Xe,_e,p)=>{"use strict";p.d(_e,{J:()=>w});var e=p(64080),b=p(9244),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"";const C=(0,b.IL)(E.attributes,e.r.GROUP_SYNC_ENABLED),O=(0,b.IL)(E.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===O)return"";const S=O.value;if("true"===C.value){const B=(0,b.IL)(E.attributes,e.r.GROUP_LAST_SYNC_STATE),L=(0,b.IL)(E.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),J=B.value,ie=L.value;return null!=J&&J.trim().length>0?"sync_problem":(null!==ie&&ie.trim(),"sync")}if(S){const B=(0,b.IL)(E.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),L=(0,b.IL)(E.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),J=B.value,ie=L.value;return null!=J&&J.trim().length>0?"sync_problem":(null!==ie&&ie.trim(),"sync")}return"sync_disabled"}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIcon",type:g,pure:!0}),g})()},45942:(Xe,_e,p)=>{"use strict";p.d(_e,{r:()=>w});var e=p(9244),b=p(64080),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const C=(0,e.IL)(E.attributes,b.r.GROUP_SYNC_ENABLED),O=(0,e.IL)(E.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===O)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const S=O.value;if("true"===C.value){const B=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_STATE),L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_TIMESTAMP),J=B.value,ie=L.value;return null!=J&&J.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ie&&ie.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(S){const B=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE),L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),J=B.value,ie=L.value;return null!=J&&J.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ie&&ie.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncToolTip",type:g,pure:!0}),g})()},20919:(Xe,_e,p)=>{"use strict";p.d(_e,{D:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.g$)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberEmail",type:w,pure:!0}),w})()},5865:(Xe,_e,p)=>{"use strict";p.d(_e,{p:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.lt)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberLogins",type:w,pure:!0}),w})()},96974:(Xe,_e,p)=>{"use strict";p.d(_e,{M:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.Gw)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberOrganization",type:w,pure:!0}),w})()},69773:(Xe,_e,p)=>{"use strict";p.d(_e,{u:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){switch(g){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatusIconColor",type:_,pure:!0}),_})()},21757:(Xe,_e,p)=>{"use strict";p.d(_e,{f:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){switch(g){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return g}}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:_,pure:!0}),_})()},12856:(Xe,_e,p)=>{"use strict";p.d(_e,{i:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A,E){var C,O;let S=null,m=null;A.memberAttributes&&(S=A.memberAttributes.find(L=>"membershipExpiration"===L.friendlyName),m=A.memberAttributes.find(L=>"groupMembershipExpiration"===L.friendlyName));let B="";return B=E?`\n Group status: ${(0,e.Oe)(A.groupStatus)}, Expiration: ${null!==(C=null==m?void 0:m.value)&&void 0!==C?C:"never"}`:A.memberAttributes?`Status: ${(0,e.Oe)(A.status,A.groupStatus)}\n Vo status: ${(0,e.Oe)(A.status)}, Expiration: ${null!==(O=null==S?void 0:S.value)&&void 0!==O?O:"never"}`:`Status: ${(0,e.Oe)(A.status,A.groupStatus)}\n Vo status: ${(0,e.Oe)(A.status)}`,B}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberStatusTooltip",type:w,pure:!0}),w})()},20551:(Xe,_e,p)=>{"use strict";p.d(_e,{l:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.replace("VALID","ACTIVE")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatus",type:_,pure:!0}),_})()},64597:(Xe,_e,p)=>{"use strict";p.d(_e,{R:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.replace(/\s/g,"-").toLowerCase()}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:_,pure:!0}),_})()},62383:(Xe,_e,p)=>{"use strict";p.d(_e,{M:()=>_});var e=p(69808),b=p(5e3);let _=(()=>{class w{transform(A,E){return"voRules"===A?"Vo rules":"groupRules"===A?"Group rules":A&&"never"!==A.toLowerCase()?(0,e.p6)(A.replace(" ","T"),"d.M.yyyy "+(E?"H:mm:ss":""),"en"):"never"}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"parseDate",type:w,pure:!0}),w})()},53561:(Xe,_e,p)=>{"use strict";p.d(_e,{J:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.te)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"technicalOwners",type:w,pure:!0}),w})()},16119:(Xe,_e,p)=>{"use strict";p.d(_e,{S:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.kN)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userEmail",type:w,pure:!0}),w})()},31359:(Xe,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){let E="";return null!==g.titleBefore&&(E+=g.titleBefore+" "),null!==g.firstName&&(E+=g.firstName+" "),null!==g.middleName&&(E+=g.middleName+" "),null!==g.lastName&&(E+=g.lastName+" "),null!==g.titleAfter&&(E+=g.titleAfter+" "),E.endsWith(" ")&&(E=E.substring(0,E.length-1)),E}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"userFullName",type:_,pure:!0}),_})()},7598:(Xe,_e,p)=>{"use strict";p.d(_e,{g:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.$0)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userLogins",type:w,pure:!0}),w})()},9954:(Xe,_e,p)=>{"use strict";p.d(_e,{Z:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.OV)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userVo",type:w,pure:!0}),w})()},36908:(Xe,_e,p)=>{"use strict";p.d(_e,{yC:()=>le,F5:()=>ee,sM:()=>ze,e8:()=>S,EB:()=>Ne,Be:()=>Je,Hy:()=>I,ly:()=>ve,fb:()=>nt,xw:()=>ae,x4:()=>w,v0:()=>J,SZ:()=>Pe,V6:()=>ce,jq:()=>we,BN:()=>me,Ip:()=>ke,HV:()=>pe,d6:()=>E,UA:()=>Ue});var e=p(32105),b=p(45323),_=p(5e3);let w=(()=>{class H{constructor(P){this.authzSevice=P,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(P){this.principal=P,this.initData(P)}setPerunPolicies(P){this.perunPolicies=P}getPerunPolicies(){return this.perunPolicies}isAuthorized(P,R){if(null===this.principal.roles)return!1;const V=this.fetchPolicyWithAllIncludedPolicies(P);let Q=[];for(const je of V)Q=Q.concat(je.perunRoles);const Se=this.fetchAllRelatedObjects(R);return this.resolveAuthorization(Q,Se)}principalHasRole(P,R,V){let Q=R;return R.startsWith("Rich")&&(Q=R.substring(4)),!(!this.principal.roles[P]||!this.principal.roles[P][Q])&&this.principal.roles[P][Q].includes(Number(V.toString()))}canManageFacilities(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER,b.u.FACILITYADMIN,b.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(b.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.VOADMIN)}isThisVoAdminOrObserver(P){return this.editableVos.includes(Number(P.toString()))||this.observableVos.includes(Number(P.toString()))||this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)}isThisVoAdmin(P){return this.editableVos.includes(P)||this.principalRoles.has(b.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(b.u.SPONSOR)}isThisGroupAdmin(P){return this.editableGroups.includes(P)||this.principalRoles.has(b.u.PERUNADMIN)}isGroupAdminInThisVo(P){return this.hasGroupInTheseVos.includes(P)}isFacilityAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.FACILITYADMIN)}isThisFacilityAdmin(P){return this.editableFacilities.includes(P)||this.principalRoles.has(b.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(b.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.VOOBSERVER,b.u.PERUNOBSERVER)}isThisVoObserver(P){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)||this.observableVos.includes(P)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((P,R)=>{this.authzSevice.getAllRolesManagementRules().subscribe(V=>{this.allRolesManagementRules=V,P()},V=>R(V))})}assignAvailableRoles(P,R){this.allRolesManagementRules.forEach(V=>{V.primaryObject===R&&P.push(V.roleName)}),P.sort(),"Vo"===R&&this.voCustomSort(P)}isManagerPagePrivileged(P){const R=[];let V=P.beanName;V.startsWith("Rich")&&(V=V.substring(4)),this.assignAvailableRoles(R,V);const Q=new Map;this.setRolesAuthorization(R,P,Q);for(const Se of Q.values())if(Se.readAuth||Se.manageAuth)return!0;return!1}setRolesAuthorization(P,R,V){for(const Q of P){let Se=[],je=[],Ye=[];for(const d of this.allRolesManagementRules)if(d.roleName===Q){Se=Se.concat(d.privilegedRolesToRead),je=je.concat(d.privilegedRolesToManage);for(const l of Object.keys(d.entitiesToManage))Ye="User"===l?[l].concat(Ye):Ye.concat(l);break}const ye=this.fetchAllRelatedObjects([R]),re=this.resolveAuthorization(Se,ye),r=this.resolveAuthorization(je,ye);V.set(Q,{readAuth:re,manageAuth:r,modes:Ye})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(P){for(const R of this.allRolesManagementRules)if(R.roleName===P)return R.primaryObject;return""}resolveAuthorization(P,R){for(const V of P){let Q=!0;for(const Se of Object.keys(V)){const je=V[Se];if(null===je)this.principalRoles.has(Se)||(Q=!1);else if(R[je]){for(const Ye of R[je])if(!this.principalHasRole(Se,je,Ye)){Q=!1;break}}else Q=!1;if(!Q)break}if(Q)return!0}return!1}getPerunPolicy(P){for(const R of this.perunPolicies)if(R.policyName===P)return R;return null}fetchAllRelatedObjects(P){const R={};for(const V of P){let Q=V.beanName;switch(V.beanName.startsWith("Rich")&&(Q=V.beanName.substring(4)),R[Q]?R[Q].push(V.id):R[Q]=[V.id],Q){case"Member":R.User?R.User.push(V.userId):R.User=[V.userId],R.Vo?R.Vo.push(V.voId):R.Vo=[V.voId];break;case"Group":case"ResourceTag":R.Vo?R.Vo.push(V.voId):R.Vo=[V.voId];break;case"Resource":R.Facility?R.Facility.push(V.facilityId):R.Facility=[V.facilityId],R.Vo?R.Vo.push(V.voId):R.Vo=[V.voId]}}return R}fetchPolicyWithAllIncludedPolicies(P){const R=new Map;let V=[];for(V.push(P);0!==V.length;){const Se=V.shift();if(R.has(Se))continue;const je=this.getPerunPolicy(Se);if(!je)return[];R.set(Se,je),V=V.concat(je.includePolicies)}const Q=[];for(const Se of R.values())Q.push(Se);return Q}voCustomSort(P){for(let R=0;R{class H{constructor(){this.branding=""}setInstanceConfig(P){this.instanceConfig=P}setDefaultConfig(P){this.defaultConfig=P}getAppsConfig(){return this.appsConfig}setAppsConfig(P){this.appsConfig=P}setPerunPrincipal(P){this.principal=P}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(P){this.initialPageId=P}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(P){this.branding=P}skipOidc(){return this.get("skip_oidc")}get(...P){let R;if(""!==this.branding){const V=this.instanceConfig.brandings[this.branding];for(let Q=0;Q{class H{constructor(P,R,V,Q,Se){this.injector=P,this.store=R,this.dialog=V,this.route=Q,this.oauthService=Se,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(A.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(je=>{je.idpFilter&&(this.filterShortname=String(je.idpFilter))})}getClientConfig(){const P=this.setIdpFilter(),V=P?{acr_values:P}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(V.prompt="consent"),sessionStorage.getItem("mfa_route")&&(V.acr_values="https://refeds.org/profile/mfa",V.prompt="login",V.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:V}}setIdpFilter(){const P=location.search.substring(1).split("&");this.filterShortname=null;const R=this.store.get("oidc_client","filters");if(!R)return null;let V=null;return P.forEach(Q=>{const Se=Q.split("=");"idpFilter"===Se[0]&&R[Se[1]]&&(this.filterShortname=Se[1],V=R[Se[1]])}),R.default&&!V?(this.filterShortname="default",R.default):V}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const P=location.pathname,R=location.search.substring(1);return"/api-callback"===P?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(P,R).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(P=>!!P&&(this.oauthService.events.pipe((0,g.h)(R=>"token_expires"===R.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const P=sessionStorage.getItem("mfa_route");if(P)return this.router.navigate([P],{replaceUrl:!0});let R=sessionStorage.getItem("auth:redirect");const V=sessionStorage.getItem("auth:queryParams");let Q=[];V&&(Q=V.split("&"));const Se={};return Q.forEach(je=>{const Ye=je.split("=");Se[Ye[0]]=Ye[1]}),(!R||"/login"===R)&&(R="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),Se.idpFilter&&(this.filterShortname=String(Se.idpFilter)),this.router.navigate([R],{queryParams:Se,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,g.h)(P=>P instanceof A.m2)).subscribe(()=>{const P={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===P.idpFilter?{}:P,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(P){const R=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===P)return!0;for(const V of R)if(P.startsWith(V))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(P=>(localStorage.setItem("refresh_token",P.refresh_token),!0),()=>!1)}verifyAuthentication(P,R){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(V=>!!V||(this.isPotentiallyValidPath(P)?(sessionStorage.setItem("auth:redirect",P),sessionStorage.setItem("auth:queryParams",R),!1):new Promise((Q,Se)=>Se("Invalid path"))))}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(_.zs3),_.LFG(E),_.LFG(C.uw),_.LFG(A.gz),_.LFG(O.Ct))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();var m=p(51062);let B=(()=>{class H{constructor(P){this.dialogRef=P}}return H.\u0275fac=function(P){return new(P||H)(_.Y36(C.so))},H.\u0275cmp=_.Xpm({type:H,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(P,R){1&P&&(_.TgZ(0,"h2",0),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&P&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[C.xY],pipes:[m.X$],styles:[""]}),H})();var L=p(9244);let J=(()=>{class H{constructor(P,R,V,Q,Se,je){this.authService=P,this.storeService=R,this.authResolver=V,this.authzService=Q,this.dialog=Se,this.router=je,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(P){this.loginScreenShown=P}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(P=>P(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(P=>{if(null===P.user){const R=(0,L.kZ)();this.dialog.open(B,R)}else this.storeService.setPerunPrincipal(P),this.authResolver.init(P)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(P=>{P()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const P=location.search.substr(1).split("&"),R={};for(const V of P){const Q=V.split("=");R[Q[0]]=Q[1]}return void this.router.navigate(["login"],{queryParams:R,queryParamsHandling:"merge"})}}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(S),_.LFG(E),_.LFG(w),_.LFG(e.Ct),_.LFG(C.uw),_.LFG(A.F0))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();var ie=p(25245),ge=p(22313);let Ne=(()=>{class H{constructor(P,R){this.matIconRegistry=P,this.domSanitizer=R,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/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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(P=>{this.matIconRegistry.addSvgIcon(P.name,this.domSanitizer.bypassSecurityTrustResourceUrl(P.url))})}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(ie.jv),_.LFG(ge.H7))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac}),H})();var ue=p(40520),Oe=p(61737),T=p(40537),Z=p(22868),W=p(47423);let Y=(()=>{class H{constructor(P){this.dialogRef=P}close(){this.dialogRef.close(!0)}}return H.\u0275fac=function(P){return new(P||H)(_.Y36(C.so))},H.\u0275cmp=_.Xpm({type:H,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(P,R){1&P&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div",2),_.TgZ(7,"div",3),_.TgZ(8,"button",4),_.NdJ("click",function(){return R.close()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.qZA(),_.qZA()),2&P&&(_.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")," "))},directives:[C.uh,C.xY,C.H8,W.lW],pipes:[m.X$],styles:[""]}),H})(),ee=(()=>{class H{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const P=this.handleNextError;return this.handleNextError=!0,P}}return H.\u0275fac=function(P){return new(P||H)},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),ce=(()=>{class H{constructor(P){this.translate=P,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(P,R=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===P.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===P.name?R:R+"\n"+P.name,P,P.message)}showRouteError(){const P=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),R=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(P,null,R)}showError(P,R,V,Q,Se){this.addNotification.emit({type:"error",error:R,description:V,title:P,actionText:void 0===Q&&void 0!==V?this.getDefaultActionMessage():Q,delay:this.defaultErrorDelayMs,icon:"error_outline",action:Se,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(P,R,V,Q){this.addNotification.emit({type:"success",description:R,title:P,actionText:void 0===V&&void 0!==R?this.getDefaultActionMessage():V,delay:this.defaultSuccessDelayMs,icon:"done",action:Q,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(m.sK))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),le=(()=>{class H{constructor(P,R,V,Q,Se,je){this.authService=P,this.apiRequestConfiguration=R,this.notificator=V,this.store=Q,this.dialog=Se,this.initAuthService=je}intercept(P,R){const V=this.store.get("api_url");if(P.url.includes("i18n")&&(P=P.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==V&&this.isCallToPerunApi(P.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const je=(0,L.kZ)();je.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Y,je),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,T.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?P=P.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(P.url)&&(P=P.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const Q=this.apiRequestConfiguration.shouldHandleError(),Se="POST"===P.method&&!this.store.skipOidc()&&this.isCallToPerunApi(P.url);return R.handle(P).pipe((0,Z.b)(je=>{je instanceof ue.Zn&&Se&&this.initAuthService.loadPrincipal()},je=>{const Ye=this.formatErrors(je,P);return void 0===Ye?(0,Oe._)(je):Q?void this.notificator.showRPCError(Ye):(0,Oe._)(Ye)}))}isCallToPerunApi(P){return P.startsWith(this.store.get("api_url"))}formatErrors(P,R){let V;console.error(P);const Q=P.error;if(Q.errorId&&(V=Q),void 0!==V)return V.urlWithParams=R.urlWithParams,V.call=R.url,V.payload=R.body,V}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(S),_.LFG(ee),_.LFG(ce),_.LFG(E),_.LFG(C.uw),_.LFG(J))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac}),H})(),Pe=(()=>{class H{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(P){this.newNotificationsCount++,this.notificationData.push(P)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return H.\u0275fac=function(P){return new(P||H)},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();var Fe=p(27221);let ze=(()=>{class H{constructor(P,R,V,Q){this.http=P,this.notificator=R,this.authService=V,this.storeService=Q}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let P=new ue.WM;return P=P.set("Authorization",this.authService.getAuthorizationHeaderValue()),P}get(P,R=!0){const V=`${this.getApiUrl()}${P}`;return this.http.get(V,{headers:this.getHeaders()}).pipe((0,Fe.K)(Q=>this.formatErrors(Q,V,null,R)))}put(P,R={},V=!0){const Q=`${this.getApiUrl()}${P}`,Se=JSON.stringify(R);return this.http.put(Q,Se,{headers:this.getHeaders()}).pipe((0,Fe.K)(je=>this.formatErrors(je,Q,Se,V)))}post(P,R={},V=!0){const Q=`${this.getApiUrl()}${P}`,Se=JSON.stringify(R);let je=this.getHeaders();return je=je.set("Content-Type","application/json; charset=utf-8"),this.http.post(Q,Se,{headers:je}).pipe((0,Fe.K)(Ye=>this.formatErrors(Ye,Q,Se,V)))}delete(P,R=!0){const V=`${this.getApiUrl()}${P}`;return this.http.delete(V,{headers:this.getHeaders()}).pipe((0,Fe.K)(Q=>this.formatErrors(Q,V,null,R)))}formatErrors(P,R,V,Q){const Se=P.error;return Se.call=R,Se.payload=V,Q&&this.notificator.showRPCError(P.error),(0,Oe._)(Se)}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(ue.eN),_.LFG(ce),_.LFG(S),_.LFG(E))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),ae=(()=>{class H{constructor(P){this.router=P,this.lastState="forward",this.history=new Set,P.events.subscribe(R=>{R instanceof A.OD&&("popstate"===R.navigationTrigger?this.history.has(R.restoredState.navigationId)?(this.lastState="back",this.history.delete(R.restoredState.navigationId)):(this.lastState="forward",this.history.add(R.id)):(this.history.add(R.id),this.lastState="forward"))})}forceNavigate(P,R){if(null===P)return;let V="";P.forEach(Q=>V+="/"+Q),V.length>0&&(V=V.substring(1)),void 0===R&&(R={}),R.queryParams={redirectTo:V},this.router.navigate(["redirect"],R)}getLastState(){return this.lastState}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(A.F0))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),Ue=(()=>{class H{isAllSelectedWithDisabledCheckbox(P,R,V,Q,Se,je,Ye,ye){return this.numSelected=P,this.numCanBeSelected=0,this.pageStart=Se*V,this.pageEnd=this.pageStart+V,this.pageIterator=0,this.dataLength=""===R?je.data.length:je.filteredData.length,Q||(this.modulo=this.dataLength%V,this.pageEnd=0===this.modulo?this.pageStart+V:this.pageStart+this.modulo),je.sortData(je.filteredData,Ye).forEach(re=>{this.pageStart<=this.pageIterator&&this.pageIterator{ye?re(r)&&this.pageStart<=this.pageIterator&&this.pageIterator{class H{constructor(P,R,V,Q){this.membersService=P,this.usersService=R,this.auditMessagesManagerService=V,this.registrarService=Q}getMembers(P,R,V,Q,Se,je,Ye,ye,re,r){return this.membersService.getMembersPage({vo:P,attrNames:R,query:{pageSize:Se,offset:Q*Se,order:V,sortColumn:je,statuses:Ye,searchString:ye,groupId:re,groupStatuses:r}})}getUsers(P,R,V,Q,Se,je,Ye,ye,re,r,o,d){return this.usersService.getUsersPage({attrNames:P,query:{offset:Q*V,pageSize:Q,order:R,sortColumn:Se,searchString:je,withoutVo:Ye,facilityId:ye,voId:re,resourceId:r,serviceId:o,onlyAllowed:d}})}getAuditMessages(P,R,V){return this.auditMessagesManagerService.getMessagesPage({query:{offset:V*R,pageSize:V,order:P}})}getApplications(P,R,V,Q,Se,je,Ye,ye,re,r,o,d,l){return this.registrarService.getApplicationsPage({vo:o,query:{pageSize:P,offset:R*P,order:V,sortColumn:Q,searchString:je,includeGroupApplications:Se,getDetails:l,states:Ye,dateFrom:ye,dateTo:re,userId:r,groupId:d}})}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(e.uq),_.LFG(e.Fv),_.LFG(e.jw),_.LFG(e.tk))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();var He=p(591),z=p(21086);class I{constructor(he,P){this.dynamicPaginatingService=he,this.authzService=P,this.allObjectCount=0,this.routeAuth=!0,this.dataSubject=new He.X([]),this.loadingSubject=new He.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(he,P,R,V,Q,Se,je,Ye,ye,re){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const r=this.latestQueryTime;this.dynamicPaginatingService.getMembers(he,P,R,V,Q,Se,je,Ye,ye,re).pipe((0,Fe.K)(()=>(0,z.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(o=>{if(this.latestQueryTime<=r){const d=o.data;null!==d&&0!==d.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:he},d[0]])),this.allObjectCount=o.totalCount,this.dataSubject.next(d)}})}loadUsers(he,P,R,V,Q,Se,je,Ye,ye,re,r,o){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const d=this.latestQueryTime;this.dynamicPaginatingService.getUsers(he,V,R,P,Q,Se,je,Ye,ye,re,r,o).pipe((0,Fe.K)(()=>(0,z.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(l=>{if(this.latestQueryTime<=d){const s=l.data;this.allObjectCount=l.totalCount,this.dataSubject.next(s)}})}loadAuditMessages(he,P,R){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const V=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(R,P,he).pipe((0,Fe.K)(()=>(0,z.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(Q=>{if(this.latestQueryTime<=V){const Se=Q.data;this.allObjectCount=Q.totalCount,this.dataSubject.next(Se)}})}loadApplications(he,P,R,V,Q,Se,je,Ye,ye,re,r,o,d){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const l=this.latestQueryTime;this.dynamicPaginatingService.getApplications(he,P,R,V,Se,Q,je,Ye,ye,re,o,r,null!=d&&d).pipe((0,Fe.K)(()=>(0,z.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(s=>{if(this.latestQueryTime<=l){const i=s.data;if(null!==i&&0!==i.length){const t=i;this.routeAuth=t[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[t[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t[0].vo])}this.allObjectCount=s.totalCount,this.dataSubject.next(i)}})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let me=(()=>{class H{constructor(P,R){this.route=P,this.store=R}getPreferredLanguage(P){const R=this.store.get("supported_languages"),V=navigator.languages.map(je=>je.split("-")[0]),Q=location.search.substring(1).split("&");let Se=null;for(const je of Q){const Ye=je.split("=");"lang"===Ye[0]&&(Se=Ye[1])}return Se&&R.includes(Se)?Se:P&&R.includes(P)?P:V&&R.includes(V[0])?V[0]:"en"}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(A.gz),_.LFG(E))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();var Ae=p(70655);let Me=(()=>{class H{generatePdf(P){return(0,Ae.mG)(this,void 0,void 0,function*(){yield this.loadPdfMake(),this.pdfMake.createPdf(P).open()})}loadPdfMake(){return(0,Ae.mG)(this,void 0,void 0,function*(){if(!this.pdfMake){const P=yield p.e(641).then(p.t.bind(p,54641,23)),R=yield p.e(493).then(p.t.bind(p,58493,19));this.pdfMake=P.default,this.pdfMake.vfs=R.default.pdfMake.vfs}})}}return H.\u0275fac=function(P){return new(P||H)},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),pe=(()=>{class H{constructor(P){this.pdfService=P}static generateTableForUser(P){const R=P.name.replace(";"," ").split(";")[0];return"OK"!==P.status?this.generateErrorRowForUser(R,P.status):H.generateRowForUser(R,P.login,P.password)}static generateErrorRowForUser(P,R){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:P,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:R,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(P,R,V){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[H.generateNameCell(P),{},H.getPasswordLabelCell(),H.generatePasswordCell(V)],[H.getLoginLabelCell(),H.generateLoginCell(R),{},{}]]}}}static generateNameCell(P){return{text:P,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(P){return{text:null==P?"N/A":P,border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(P){return{text:null==P?"N/A":P,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(P){return(0,Ae.mG)(this,void 0,void 0,function*(){const R=[];for(const Q of P)R.push(H.generateTableForUser(Q));return this.pdfService.generatePdf({content:R})})}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(Me))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),we=(()=>{class H{constructor(P){this.storeService=P}static getBrandContainingDomain(P,R){for(const V of P)if(V.newApps.admin===R||V.newApps.profile===R||V.newApps.pwdReset===R)return V;return P[0]}getUrlForOtherApplication(P,R){const Q=window.location.href.split("/"),Se=Q[0]+"//"+Q[2],je=H.getBrandContainingDomain(this.storeService.getAppsConfig().brands,Se);let Ye;if(je.newApps[P])Ye=je.newApps[P],"pwdReset"===P&&(Ye+=`?login-namespace=${R}`);else switch(Ye=je.oldGuiDomain+"/fed",P){case"admin":Ye+="/gui/";break;case"profile":Ye+="/profile/";break;case"pwdReset":Ye+=`/pwd-reset/?login-namespace=${R}`}return Ye}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(E))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();var $e=p(86087);let Je=(()=>{class H extends $e.ye{constructor(){super(...arguments),this.getRangeLabel=function(P,R,V){let Q;return Q=V<1e3?String(V):V<1e4?"1 000":V<1e5?"10 000":"100 000",`${P*R+1} \u2013 ${(P+1)*R} of ${Q} +`}}}return H.\u0275fac=function(){let he;return function(R){return(he||(he=_.n5z(H)))(R||H)}}(),H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac}),H})(),nt=(()=>{class H{setEntity(P){this.entity=P}getEntity(){return this.entity}}return H.\u0275fac=function(P){return new(P||H)},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),ke=(()=>{class H{constructor(P){this.authResolver=P,this.routePolicies=new Map([["organizations-members",R=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[R])],["organizations-groups",R=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[R])],["organizations-resources",R=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[R])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[R])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[R])],["organizations-resources-preview",R=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[R])],["organizations-resources-tags",R=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[R])],["organizations-resources-states",R=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[R])],["organizations-applications",R=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[R])],["organizations-sponsoredMembers",R=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[R])],["organizations-serviceAccounts",R=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[R])],["organizations-attributes",()=>!0],["organizations-statistics",R=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[R])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[R])],["organizations-settings",R=>this.authResolver.isManagerPagePrivileged(R)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[R])||this.authResolver.isThisVoAdminOrObserver(R.id)],["organizations-settings-expiration",R=>this.authResolver.isThisVoAdminOrObserver(R.id)],["organizations-settings-managers",R=>this.authResolver.isManagerPagePrivileged(R)],["organizations-settings-applicationForm",R=>this.authResolver.isThisVoAdminOrObserver(R.id)],["organizations-settings-notifications",R=>this.authResolver.isThisVoAdminOrObserver(R.id)],["organizations-settings-extsources",R=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[R])]])}canNavigate(P,R){const V=this.routePolicies.get(P);return!V||V(R)}}return H.\u0275fac=function(P){return new(P||H)(_.LFG(w))},H.\u0275prov=_.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})()},64080:(Xe,_e,p)=>{"use strict";p.d(_e,{r:()=>e});let e=(()=>{class b{}return b.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",b.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",b.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",b.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",b.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",b.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",b.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",b.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",b.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",b.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",b.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",b.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",b.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",b.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",b.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",b.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",b.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",b.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",b.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",b.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",b.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",b})()},9244:(Xe,_e,p)=>{"use strict";p.d(_e,{dN:()=>m,Je:()=>C,f7:()=>O.f7,l9:()=>S.l,sF:()=>O.sF,XI:()=>O.XI,Xd:()=>O.Xd,aC:()=>O.aC,fx:()=>O.fx,dv:()=>O.dv,i5:()=>O.i5,Sd:()=>O.Sd,pR:()=>O.pR,ys:()=>O.ys,O6:()=>O.O6,B2:()=>O.B2,mH:()=>O.mH,MX:()=>O.MX,oU:()=>O.oU,IL:()=>O.IL,Jc:()=>O.Jc,Xn:()=>O.Xn,kZ:()=>O.kZ,v$:()=>O.v$,x2:()=>O.x2,vL:()=>O.vL,j4:()=>O.j4,jh:()=>O.jh,bx:()=>O.bx,Hm:()=>O.Hm,Cz:()=>O.Cz,sG:()=>O.sG,g$:()=>O.g$,bD:()=>O.bD,lt:()=>O.lt,Oe:()=>O.Oe,hu:()=>O.hu,Gw:()=>O.Gw,te:()=>O.te,kN:()=>O.kN,$0:()=>O.$0,OV:()=>O.OV});var e=p(86087),b=p(92181),_=p(25245),w=p(47423),g=p(51062),A=p(69808),E=p(5e3);let C=(()=>{class B{}return B.\u0275fac=function(J){return new(J||B)},B.\u0275mod=E.oAB({type:B}),B.\u0275inj=E.cJS({providers:[],imports:[[e.TU,b.Tx,_.Ps,w.ot,g.aw,A.ez]]}),B})();var O=p(17218),S=p(18750);class m{static passwordMatchValidator(L){const J=L.get("passwordCtrl").value,ie=L.get("passwordAgainCtrl").value;return L.get("passwordAgainCtrl").setErrors(J!==ie?{noPasswordMatch:!0}:null),null}static patternValidator(L){return J=>{if(!J.value)return null;let ie=0;for(const ge of L)ie+=ge.test(J.value)?1:0;return ie>=3?null:{isWeak:!0}}}}},17218:(Xe,_e,p)=>{"use strict";p.d(_e,{f7:()=>E,B2:()=>C,g$:()=>O,kN:()=>S,$0:()=>m,lt:()=>B,bD:()=>J,hu:()=>ie,Cz:()=>ge,te:()=>Ne,ys:()=>ue,vL:()=>T,j4:()=>Z,sF:()=>W,XI:()=>Y,OV:()=>le,MX:()=>Pe,oU:()=>Fe,IL:()=>ze,Jc:()=>ae,v$:()=>Ue,i5:()=>I,kZ:()=>me,dv:()=>Ae,Hm:()=>Me,Oe:()=>pe,Gw:()=>we,x2:()=>$e,sG:()=>Je,pR:()=>ke,Sd:()=>H,Xn:()=>P,O6:()=>R,aC:()=>V,Xd:()=>Q,fx:()=>Se,mH:()=>je,jh:()=>Ye,bx:()=>ye});var e=p(70655),b=p(48966),_=p(69808),w=p(94327),A=p(64080);const E=[5,10,25,100],C=/^(([^<>+()[\]\\.,;:\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 O(re){let r="";return null==re||re.userAttributes.forEach(o=>{"preferredMail"===o.friendlyName&&(r=o.value)}),r&&0===r.length&&null!==re.memberAttributes&&re.memberAttributes.forEach(o=>{"mail"===o.friendlyName&&null!==o.value&&(r=o.value)}),r}function S(re){let r="";return re&&re.userAttributes.forEach(o=>{"preferredMail"===o.friendlyName&&(r=o.value)}),r}function m(re){let r="";return!!re&&!!re.userAttributes&&re.userAttributes.filter(o=>"login-namespace"===o.baseFriendlyName).filter(o=>null!==o.value).forEach(o=>{r=r.concat(o.friendlyNameParameter,": ",o.value,", ")}),r.endsWith(", ")&&(r=r.substring(0,r.length-2)),r}function B(re){let r="";return!!re&&!!re.userAttributes&&re.userAttributes.filter(o=>"login-namespace"===o.baseFriendlyName).filter(o=>null!==o.value).forEach(o=>{r=r.concat(o.friendlyNameParameter,": ",o.value,", ")}),r.endsWith(", ")&&(r=r.substring(0,r.length-2)),r}function J(re){let r="";return null!==re.titleBefore&&(r+=re.titleBefore+" "),null!==re.firstName&&(r+=re.firstName+" "),null!==re.middleName&&(r+=re.middleName+" "),null!==re.lastName&&(r+=re.lastName+" "),null!==re.titleAfter&&(r+=re.titleAfter+" "),r.endsWith(" ")&&(r=r.substring(0,r.length-1)),r}function ie(re){let r="";return null!==re.firstName&&(r+=re.firstName+" "),null!==re.middleName&&(r+=re.middleName+" "),null!==re.lastName&&(r+=re.lastName+" "),r.endsWith(" ")&&(r=r.substring(0,r.length-1)),r}function ge(re){let r="";return re.split(/(?=[A-Z])/g).forEach(d=>{r=r.concat(d.toLowerCase()),r=r.concat(" ")}),r=r.charAt(0).toUpperCase()+r.slice(1,r.length-1),r}function Ne(re){let r="";for(const o of re)"technical"===o.type&&(r+=o.name+", ");return r.endsWith(", ")&&(r=r.substring(0,r.length-2)),r}function ue(re,r){return(0,e.mG)(this,void 0,void 0,function*(){yield function Oe(re){return new Promise(r=>setTimeout(r,re))}(re),r()})}function T(re){return JSON.parse(localStorage.getItem(re))||[]}function Z(re){return JSON.parse(localStorage.getItem(re))||[]}function W(re,r){if(null===localStorage.getItem(re)){const o=[];o.unshift(r.id),localStorage.setItem(re,JSON.stringify(o))}else{const o=JSON.parse(localStorage.getItem(re)),d=function ce(re,r){for(let o=0;o0&&o.splice(d,1),0!==d&&o.unshift(r.id),o.length>5&&o.pop(),localStorage.setItem(re,JSON.stringify(o))}}function Y(re,r){if(null===localStorage.getItem("recent")){let o;o="Group"===re.beanName?[{id:re.id,name:re.shortName,fullName:re.name,type:re.beanName,voId:re.voId,voName:r}]:[{id:re.id,name:re.name,type:re.beanName,voId:re.voId}],localStorage.setItem("recent",JSON.stringify(o))}else{const o=JSON.parse(localStorage.getItem("recent"));let d;d="Group"===re.beanName?{id:re.id,name:re.shortName,fullName:re.name,type:re.beanName,voId:re.voId,voName:r}:{id:re.id,name:re.name,type:re.beanName,voId:re.voId};const l=function ee(re,r){for(let o=0;o0&&o.splice(l,1),0!==l&&o.unshift(d),o.length>5&&o.pop(),localStorage.setItem("recent",JSON.stringify(o))}}function le(re){let r="";return re&&re.userAttributes.forEach(o=>{"organization"===o.friendlyName&&(r=o.value)}),r}function Pe(re){return re.filter(r=>!r.namespace.includes("def:core"))}function Fe(re,r){const o=r.find(d=>d.id===re);return o?o.parentGroupId?Fe(o.parentGroupId,r).concat(o):[o]:[]}function ze(re,r){for(const o of re)if(o.namespace+":"+o.friendlyName===r)return o;return null}function ae(re){return null!=re.attributes["urn:perun:member:attribute-def:def:mail"]?re.attributes["urn:perun:member:attribute-def:def:mail"]:null!=re.attributes["urn:perun:user:attribute-def:def:preferredMail"]?re.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function Ue(re){return re.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function ve(re){if(re.includes("/CN=")){const r=re.split("/");for(const o of r)if(o.startsWith("CN="))return He(o.substring(3))}return re}(re.userExtSource.extSource.name):re.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function z(re){switch(re){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 re}}(re.userExtSource.extSource.name):re.userExtSource.extSource.name}function He(re){return decodeURIComponent(re.replace(/\\x/g,"%"))}function I(re=["en","cs"]){const r={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{}};return re.forEach(o=>{r.message[o]={locale:o,subject:"",text:""}}),r}function me(){const re=new b.vA;return re.disableClose=!0,re.autoFocus=!1,re}function Ae(re){const r={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 o of re)r.i18n[o]={locale:o,errorMessage:"",help:"",label:"",options:""};return r}function Me(re){return"virt"===re.namespace.split(":")[4]}function pe(re,r){return"valid"!==re.toLowerCase()||r&&"valid"!==re.toLowerCase()?re:"ACTIVE"}function we(re){let r="";return null==re||re.memberAttributes.forEach(o=>{"organization"===o.friendlyName&&null!==o.value&&(r=o.value)}),0===r.length&&(null==re||re.userAttributes.forEach(o=>{"organization"===o.friendlyName&&(r=o.value)})),r}function $e(re){var r;const o=re.attributes.find(d=>"groupMembershipExpiration"===d.baseFriendlyName);return null!==(r=null==o?void 0:o.value)&&void 0!==r?r:"Never"}function Je(re){return re&&"never"!==re.toLowerCase()?(0,_.p6)(re,"d.M.yyyy","en"):re}const nt=new Intl.Collator("cs",{numeric:!0});function ke(re,r,o){const d=r.active,l=r.direction;return d&&""!==l?re.sort((s,i)=>{const t=o(s,d),n=o(i,d);return nt.compare(t,n)*("asc"===l?1:-1)}):re}function H(re,r,o,d,l){r=r.toLowerCase();let s="";return o.forEach(i=>{s+=";"+d(re,i)}),l&&(s+=";"+d(re,"uuid")),s.toLowerCase().includes(r)}function P(re,r,o){const d=[],l=["checkbox","select","edit","menu","cite","extend","recent"];return r=r.filter(s=>!l.includes(s)),re.forEach(s=>{const i={};r.forEach(t=>{var n;i[t]=(null!==(n=o(s,t))&&void 0!==n?n:"").split('"').join("''").trim()}),d.push(i)}),d}function R(re,r="csv",o="export"){if("csv"===r){const d=(n,a)=>null===a?"":a,l=Object.keys(re[0]),s=re.map(n=>l.map(a=>JSON.stringify(n[a],d)).join(","));s.unshift(l.join(",").split(" ").join("_").split('"').join("''"));const i=s.join("\r\n"),t=new Blob([i],{type:"text/csv"});(0,w.saveAs)(t,`${o}.${r}`)}}function V(re,r){return re.name.toLowerCase()>r.name.toLowerCase()?1:re.name.toLowerCase()===r.name.toLowerCase()?0:-1}function Q(re,r){return re.displayName.toLowerCase()>r.displayName.toLowerCase()?1:re.displayName.toLowerCase()===r.displayName.toLowerCase()?0:-1}function Se(re,r){var o,d,l,s;let i,t;return re.user?(i=re.user.lastName?re.user.lastName:null!==(o=re.user.firstName)&&void 0!==o?o:"",t=r.user.lastName?r.user.lastName:null!==(d=r.user.firstName)&&void 0!==d?d:""):(i=re.lastName?re.lastName:null!==(l=re.firstName)&&void 0!==l?l:"",t=r.lastName?r.lastName:null!==(s=r.firstName)&&void 0!==s?s:""),i>t?1:i===t?0:-1}function je(re,r,o=[]){re.enable(),re.clearValidators(),re.clearAsyncValidators(),re.setValidators(r),re.setAsyncValidators(o),re.updateValueAndValidity()}function Ye(re,r){return!!re&&re.some(o=>o.namespace+":"+o.friendlyName===r&&null!==o.value&&"true"===String(o.value))}function ye(re){return Ye(re.attributes,A.r.GROUP_SYNC_ENABLED)||Ye(re.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED)}},18750:(Xe,_e,p)=>{"use strict";p.d(_e,{l:()=>J});var e=p(5e3),b=p(86087),_=p(17218),w=p(10036),g=p(69808),A=p(47423),E=p(92181),C=p(25245),O=p(51062);let S=(()=>{class ie{constructor(){this.exportData=new e.vpe}}return ie.\u0275fac=function(X){return new(X||ie)},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(X,Ne){if(1&X&&(e.TgZ(0,"div",0),e.TgZ(1,"button",1),e.TgZ(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA(),e.qZA(),e.TgZ(4,"mat-menu",null,2),e.TgZ(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.qZA(),e.TgZ(9,"mat-menu",null,4),e.TgZ(11,"button",5),e.NdJ("click",function(){return Ne.exportData.emit("csv")}),e._uU(12,"Csv"),e.qZA(),e.qZA(),e.qZA()),2&X){const ue=e.MAs(5),Oe=e.MAs(10);e.xp6(1),e.Q6J("matMenuTriggerFor",ue),e.xp6(5),e.Q6J("matMenuTriggerFor",Oe),e.xp6(1),e.hij(" ",e.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[A.lW,E.p6,C.Hw,E.VK,E.OP],pipes:[O.X$],styles:[""]}),ie})();function m(ie,ge){if(1&ie){const X=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(ue){return e.CHM(X),e.oxw().exportData.emit(ue)}),e.qZA()}}function B(ie,ge){if(1&ie){const X=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(ue){return e.CHM(X),e.oxw().exportData.emit(ue)}),e.qZA()}}const L=["*"];let J=(()=>{class ie{constructor(X){this.tableConfigService=X,this.hideExport=!1,this.pageSizeOptions=_.f7,this.dataLength=0,this.exportData=new e.vpe,this.pageSize=5}set matPaginator(X){this.paginator=X}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(X){this.pageSize=X.pageSize,this.tableConfigService.setTablePageSize(this.tableId,X.pageSize)}pageChangedBottom(X){this.paginator.pageSize=X.pageSize,this.paginator.pageIndex=X.pageIndex,this.paginator.page.emit(X),this.pageSize=X.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,X.pageSize)}}return ie.\u0275fac=function(X){return new(X||ie)(e.Y36(w.dB))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(X,Ne){if(1&X&&e.Gf(b.NW,7),2&X){let ue;e.iGM(ue=e.CRH())&&(Ne.matPaginator=ue.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:L,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(X,Ne){1&X&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-paginator",2),e.NdJ("page",function(Oe){return Ne.pageChangedTop(Oe)}),e.qZA(),e.YNc(3,m,1,0,"perun-web-apps-table-options",3),e.qZA(),e.TgZ(4,"div",4),e.Hsn(5),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"mat-paginator",5),e.NdJ("page",function(Oe){return Ne.pageChangedBottom(Oe)}),e.qZA(),e.YNc(8,B,1,0,"perun-web-apps-table-options",3),e.qZA(),e.qZA()),2&X&&(e.xp6(2),e.Q6J("length",Ne.dataLength)("pageSizeOptions",Ne.pageSizeOptions)("pageSize",Ne.pageSize),e.xp6(1),e.Q6J("ngIf",!Ne.hideExport),e.xp6(4),e.Q6J("length",Ne.paginator.length)("pageIndex",Ne.paginator.pageIndex)("pageSizeOptions",Ne.paginator.pageSizeOptions)("pageSize",Ne.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!Ne.hideExport))},directives:[b.NW,g.O5,S],styles:[""]}),ie})()},98380:(Xe,_e,p)=>{"use strict";p.d(_e,{w:()=>O});var e=p(5e3),b=p(69808),_=p(25245);function w(S,m){1&S&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function g(S,m){1&S&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function A(S,m){1&S&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function E(S,m){1&S&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const C=["*"];let O=(()=>{class S{}return S.\u0275fac=function(B){return new(B||S)},S.\u0275cmp=e.Xpm({type:S,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:C,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(B,L){1&B&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,w,2,0,"mat-icon",1),e.YNc(2,g,2,0,"mat-icon",1),e.YNc(3,A,2,0,"mat-icon",1),e.YNc(4,E,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&B&&(e.ekj("warn-alert","warn"===L.alert_type)("error-alert","error"===L.alert_type)("success-alert","success"===L.alert_type)("info-alert","info"===L.alert_type),e.xp6(1),e.Q6J("ngIf","info"===L.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===L.alert_type),e.xp6(1),e.Q6J("ngIf","error"===L.alert_type),e.xp6(1),e.Q6J("ngIf","success"===L.alert_type))},directives:[b.O5,_.Hw],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}"]}),S})()},63189:(Xe,_e,p)=>{"use strict";p.d(_e,{r:()=>w});var e=p(25245),b=p(69808),_=p(5e3);let w=(()=>{class g{}return g.\u0275fac=function(E){return new(E||g)},g.\u0275mod=_.oAB({type:g}),g.\u0275inj=_.cJS({imports:[[e.Ps,b.ez]]}),g})()},6397:(Xe,_e,p)=>{"use strict";p.d(_e,{C:()=>re});var e=p(69808),b=p(47423),_=p(9224),w=p(77446),g=p(48966),A=p(4834),E=p(81125),C=p(67322),O=p(5e3),S=p(90508);let Ue=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275mod=O.oAB({type:r}),r.\u0275inj=O.cJS({imports:[[S.uc,S.BQ],S.uc,S.BQ]}),r})();var He=p(25245),z=p(98833),I=p(20773),me=p(92081),Ae=p(32075),Me=p(53435),pe=p(93075),we=p(86856),$e=p(2638),Je=p(14623),nt=p(92181);let Q=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275mod=O.oAB({type:r}),r.\u0275inj=O.cJS({imports:[[S.BQ],S.BQ]}),r})();var Se=p(84847),je=p(86087),Ye=p(29772),ye=p(74107);let re=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275mod=O.oAB({type:r}),r.\u0275inj=O.cJS({imports:[[e.ez,_.QW,A.t,E.To,b.ot,Ue,w.p9,He.Ps,Ae.p0,g.Is,I.Cq,C.lN,z.c,Me.Cl,pe.u5,pe.UX,me.T5,we.FA,S.XK,$e.SJ,Je.ie,nt.Tx,Q,Se.JX,je.TU,Ye.AV,ye.LD,S.si],_.QW,A.t,E.To,b.ot,Ue,w.p9,He.Ps,Ae.p0,g.Is,I.Cq,C.lN,z.c,Me.Cl,pe.u5,pe.UX,me.T5,we.FA,S.XK,$e.SJ,Je.ie,nt.Tx,Q,Se.JX,je.TU,Ye.AV,ye.LD,S.si]}),r})()},1302:function(Xe,_e,p){var e;!function(b,_){var w={};!function(b){"use strict";b.__esModule=!0,b.digestLength=32,b.blockSize=64;var _=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 w(L,J,ie,ge,X){for(var Ne,ue,Oe,T,Z,W,Y,ee,ce,le,Pe,Fe,ze;X>=64;){for(Ne=J[0],ue=J[1],Oe=J[2],T=J[3],Z=J[4],W=J[5],Y=J[6],ee=J[7],le=0;le<16;le++)L[le]=(255&ie[Pe=ge+4*le])<<24|(255&ie[Pe+1])<<16|(255&ie[Pe+2])<<8|255&ie[Pe+3];for(le=16;le<64;le++)L[le]=((Fe=((ce=L[le-2])>>>17|ce<<15)^(ce>>>19|ce<<13)^ce>>>10)+L[le-7]|0)+((ze=((ce=L[le-15])>>>7|ce<<25)^(ce>>>18|ce<<14)^ce>>>3)+L[le-16]|0);for(le=0;le<64;le++)Fe=(((Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(Z&W^~Z&Y)|0)+(ee+(_[le]+L[le]|0)|0)|0,ze=((Ne>>>2|Ne<<30)^(Ne>>>13|Ne<<19)^(Ne>>>22|Ne<<10))+(Ne&ue^Ne&Oe^ue&Oe)|0,ee=Y,Y=W,W=Z,Z=T+Fe|0,T=Oe,Oe=ue,ue=Ne,Ne=Fe+ze|0;J[0]+=Ne,J[1]+=ue,J[2]+=Oe,J[3]+=T,J[4]+=Z,J[5]+=W,J[6]+=Y,J[7]+=ee,ge+=64,X-=64}return ge}var g=function(){function L(){this.digestLength=b.digestLength,this.blockSize=b.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 L.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},L.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[ge++],ie--;64===this.bufferLength&&(w(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(ge=w(this.temp,this.state,J,ge,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[ge++],ie--;return this},L.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,ge=this.bufferLength,X=ie/536870912|0,Ne=ie<<3,ue=ie%64<56?64:128;this.buffer[ge]=128;for(var Oe=ge+1;Oe>>24&255,this.buffer[ue-7]=X>>>16&255,this.buffer[ue-6]=X>>>8&255,this.buffer[ue-5]=X>>>0&255,this.buffer[ue-4]=Ne>>>24&255,this.buffer[ue-3]=Ne>>>16&255,this.buffer[ue-2]=Ne>>>8&255,this.buffer[ue-1]=Ne>>>0&255,w(this.temp,this.state,this.buffer,0,ue),this.finished=!0}for(Oe=0;Oe<8;Oe++)J[4*Oe+0]=this.state[Oe]>>>24&255,J[4*Oe+1]=this.state[Oe]>>>16&255,J[4*Oe+2]=this.state[Oe]>>>8&255,J[4*Oe+3]=this.state[Oe]>>>0&255;return this},L.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},L.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new g).update(J).finish(ie).clean();else for(var ge=0;ge1&&J.update(L),ie&&J.update(ie),J.update(ge),J.finish(L),ge[0]++}b.HMAC=A,b.hash=E,b.default=E,b.hmac=C;var S=new Uint8Array(b.digestLength);b.hkdf=function m(L,J,ie,ge){void 0===J&&(J=S),void 0===ge&&(ge=32);for(var X=new Uint8Array([1]),Ne=C(J,L),ue=new A(Ne),Oe=new Uint8Array(ue.digestLength),T=Oe.length,Z=new Uint8Array(ge),W=0;W>>24&255,ue[1]=Y>>>16&255,ue[2]=Y>>>8&255,ue[3]=Y>>>0&255,X.reset(),X.update(J),X.update(ue),X.finish(T);for(var ee=0;ee=m.status}function A(S){try{S.dispatchEvent(new MouseEvent("click"))}catch(B){var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(m)}}var E="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,C=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),O=E.saveAs||("object"!=typeof window||window!==E?function(){}:"download"in HTMLAnchorElement.prototype&&!C?function(S,m,B){var L=E.URL||E.webkitURL,J=document.createElement("a");J.download=m=m||S.name||"download",J.rel="noopener","string"==typeof S?(J.href=S,J.origin===location.origin?A(J):g(J.href)?w(S,m,B):A(J,J.target="_blank")):(J.href=L.createObjectURL(S),setTimeout(function(){L.revokeObjectURL(J.href)},4e4),setTimeout(function(){A(J)},0))}:"msSaveOrOpenBlob"in navigator?function(S,m,B){if(m=m||S.name||"download","string"!=typeof S)navigator.msSaveOrOpenBlob(function _(S,m){return void 0===m?m={autoBom:!1}:"object"!=typeof m&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\ufeff",S],{type:S.type}):S}(S,B),m);else if(g(S))w(S,m,B);else{var L=document.createElement("a");L.href=S,L.target="_blank",setTimeout(function(){A(L)})}}:function(S,m,B,L){if((L=L||open("","_blank"))&&(L.document.title=L.document.body.innerText="downloading..."),"string"==typeof S)return w(S,m,B);var J="application/octet-stream"===S.type,ie=/constructor/i.test(E.HTMLElement)||E.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||J&&ie||C)&&"undefined"!=typeof FileReader){var X=new FileReader;X.onloadend=function(){var Oe=X.result;Oe=ge?Oe:Oe.replace(/^data:[^;]*;/,"data:attachment/file;"),L?L.location.href=Oe:location=Oe,L=null},X.readAsDataURL(S)}else{var Ne=E.URL||E.webkitURL,ue=Ne.createObjectURL(S);L?L.location=ue:location.href=ue,L=null,setTimeout(function(){Ne.revokeObjectURL(ue)},4e4)}});E.saveAs=O.saveAs=O,Xe.exports=O}.apply(_e,[]))&&(Xe.exports=b)},591:(Xe,_e,p)=>{"use strict";p.d(_e,{X:()=>_});var e=p(8929),b=p(95279);class _ extends e.xQ{constructor(g){super(),this._value=g}get value(){return this.getValue()}_subscribe(g){const A=super._subscribe(g);return A&&!A.closed&&g.next(this._value),A}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b.N;return this._value}next(g){super.next(this._value=g)}}},51869:(Xe,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(43489);class b extends e.L{constructor(w,g,A){super(),this.parent=w,this.outerValue=g,this.outerIndex=A,this.index=0}_next(w){this.parent.notifyNext(this.outerValue,w,this.outerIndex,this.index++,this)}_error(w){this.parent.notifyError(w,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},29312:(Xe,_e,p)=>{"use strict";p.d(_e,{P:()=>g});var e=p(68896),b=p(21086),_=p(61737);class g{constructor(E,C,O){this.kind=E,this.value=C,this.error=O,this.hasValue="N"===E}observe(E){switch(this.kind){case"N":return E.next&&E.next(this.value);case"E":return E.error&&E.error(this.error);case"C":return E.complete&&E.complete()}}do(E,C,O){switch(this.kind){case"N":return E&&E(this.value);case"E":return C&&C(this.error);case"C":return O&&O()}}accept(E,C,O){return E&&"function"==typeof E.next?this.observe(E):this.do(E,C,O)}toObservable(){switch(this.kind){case"N":return(0,b.of)(this.value);case"E":return(0,_._)(this.error);case"C":return(0,e.c)()}throw new Error("unexpected notification kind value")}static createNext(E){return void 0!==E?new g("N",E):g.undefinedValueNotification}static createError(E){return new g("E",void 0,E)}static createComplete(){return g.completeNotification}}g.completeNotification=new g("C"),g.undefinedValueNotification=new g("N",void 0)},56498:(Xe,_e,p)=>{"use strict";p.d(_e,{y:()=>O});var e=p(43489),_=p(57668),w=p(73292),A=p(93821),E=p(4843),C=p(92830);let O=(()=>{class m{constructor(L){this._isScalar=!1,L&&(this._subscribe=L)}lift(L){const J=new m;return J.source=this,J.operator=L,J}subscribe(L,J,ie){const{operator:ge}=this,X=function g(m,B,L){if(m){if(m instanceof e.L)return m;if(m[_.b])return m[_.b]()}return m||B||L?new e.L(m,B,L):new e.L(w.c)}(L,J,ie);if(X.add(ge?ge.call(X,this.source):this.source||C.v.useDeprecatedSynchronousErrorHandling&&!X.syncErrorThrowable?this._subscribe(X):this._trySubscribe(X)),C.v.useDeprecatedSynchronousErrorHandling&&X.syncErrorThrowable&&(X.syncErrorThrowable=!1,X.syncErrorThrown))throw X.syncErrorValue;return X}_trySubscribe(L){try{return this._subscribe(L)}catch(J){C.v.useDeprecatedSynchronousErrorHandling&&(L.syncErrorThrown=!0,L.syncErrorValue=J),function b(m){for(;m;){const{closed:B,destination:L,isStopped:J}=m;if(B||J)return!1;m=L&&L instanceof e.L?L:null}return!0}(L)?L.error(J):console.warn(J)}}forEach(L,J){return new(J=S(J))((ie,ge)=>{let X;X=this.subscribe(Ne=>{try{L(Ne)}catch(ue){ge(ue),X&&X.unsubscribe()}},ge,ie)})}_subscribe(L){const{source:J}=this;return J&&J.subscribe(L)}[A.L](){return this}pipe(...L){return 0===L.length?this:(0,E.U)(L)(this)}toPromise(L){return new(L=S(L))((J,ie)=>{let ge;this.subscribe(X=>ge=X,X=>ie(X),()=>J(ge))})}}return m.create=B=>new m(B),m})();function S(m){if(m||(m=C.v.Promise||Promise),!m)throw new Error("no Promise impl found");return m}},73292:(Xe,_e,p)=>{"use strict";p.d(_e,{c:()=>_});var e=p(92830),b=p(22782);const _={closed:!0,next(w){},error(w){if(e.v.useDeprecatedSynchronousErrorHandling)throw w;(0,b.z)(w)},complete(){}}},826:(Xe,_e,p)=>{"use strict";p.d(_e,{L:()=>b});var e=p(43489);class b extends e.L{notifyNext(w,g,A,E,C){this.destination.next(g)}notifyError(w,g){this.destination.error(w)}notifyComplete(w){this.destination.complete()}}},96831:(Xe,_e,p)=>{"use strict";p.d(_e,{t:()=>ge});var e=p(8929),b=p(56686),w=p(32268);const A=new class g extends w.v{}(class _ extends b.o{constructor(ue,Oe){super(ue,Oe),this.scheduler=ue,this.work=Oe}schedule(ue,Oe=0){return Oe>0?super.schedule(ue,Oe):(this.delay=Oe,this.state=ue,this.scheduler.flush(this),this)}execute(ue,Oe){return Oe>0||this.closed?super.execute(ue,Oe):this._execute(ue,Oe)}requestAsyncId(ue,Oe,T=0){return null!==T&&T>0||null===T&&this.delay>0?super.requestAsyncId(ue,Oe,T):ue.flush(this)}});var E=p(42654),C=p(43489),O=p(29312);class B extends C.L{constructor(ue,Oe,T=0){super(ue),this.scheduler=Oe,this.delay=T}static dispatch(ue){const{notification:Oe,destination:T}=ue;Oe.observe(T),this.unsubscribe()}scheduleMessage(ue){this.destination.add(this.scheduler.schedule(B.dispatch,this.delay,new L(ue,this.destination)))}_next(ue){this.scheduleMessage(O.P.createNext(ue))}_error(ue){this.scheduleMessage(O.P.createError(ue)),this.unsubscribe()}_complete(){this.scheduleMessage(O.P.createComplete()),this.unsubscribe()}}class L{constructor(ue,Oe){this.notification=ue,this.destination=Oe}}var J=p(95279),ie=p(45283);class ge extends e.xQ{constructor(ue=Number.POSITIVE_INFINITY,Oe=Number.POSITIVE_INFINITY,T){super(),this.scheduler=T,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=ue<1?1:ue,this._windowTime=Oe<1?1:Oe,Oe===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(ue){const Oe=this._events;Oe.push(ue),Oe.length>this._bufferSize&&Oe.shift(),super.next(ue)}nextTimeWindow(ue){this._events.push(new X(this._getNow(),ue)),this._trimBufferThenGetEvents(),super.next(ue)}_subscribe(ue){const Oe=this._infiniteTimeWindow,T=Oe?this._events:this._trimBufferThenGetEvents(),Z=this.scheduler,W=T.length;let Y;if(this.closed)throw new J.N;if(this.isStopped||this.hasError?Y=E.w.EMPTY:(this.observers.push(ue),Y=new ie.W(this,ue)),Z&&ue.add(ue=new B(ue,Z)),Oe)for(let ee=0;eeOe&&(Y=Math.max(Y,W-Oe)),Y>0&&Z.splice(0,Y),Z}}class X{constructor(ue,Oe){this.time=ue,this.value=Oe}}},8929:(Xe,_e,p)=>{"use strict";p.d(_e,{Yc:()=>E,xQ:()=>C});var e=p(56498),b=p(43489),_=p(42654),w=p(95279),g=p(45283),A=p(57668);class E extends b.L{constructor(m){super(m),this.destination=m}}let C=(()=>{class S extends e.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[A.b](){return new E(this)}lift(B){const L=new O(this,this);return L.operator=B,L}next(B){if(this.closed)throw new w.N;if(!this.isStopped){const{observers:L}=this,J=L.length,ie=L.slice();for(let ge=0;genew O(m,B),S})();class O extends C{constructor(m,B){super(),this.destination=m,this.source=B}next(m){const{destination:B}=this;B&&B.next&&B.next(m)}error(m){const{destination:B}=this;B&&B.error&&this.destination.error(m)}complete(){const{destination:m}=this;m&&m.complete&&this.destination.complete()}_subscribe(m){const{source:B}=this;return B?this.source.subscribe(m):_.w.EMPTY}}},45283:(Xe,_e,p)=>{"use strict";p.d(_e,{W:()=>b});var e=p(42654);class b extends e.w{constructor(w,g){super(),this.subject=w,this.subscriber=g,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const w=this.subject,g=w.observers;if(this.subject=null,!g||0===g.length||w.isStopped||w.closed)return;const A=g.indexOf(this.subscriber);-1!==A&&g.splice(A,1)}}},43489:(Xe,_e,p)=>{"use strict";p.d(_e,{L:()=>E});var e=p(67043),b=p(73292),_=p(42654),w=p(57668),g=p(92830),A=p(22782);class E extends _.w{constructor(S,m,B){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=b.c;break;case 1:if(!S){this.destination=b.c;break}if("object"==typeof S){S instanceof E?(this.syncErrorThrowable=S.syncErrorThrowable,this.destination=S,S.add(this)):(this.syncErrorThrowable=!0,this.destination=new C(this,S));break}default:this.syncErrorThrowable=!0,this.destination=new C(this,S,m,B)}}[w.b](){return this}static create(S,m,B){const L=new E(S,m,B);return L.syncErrorThrowable=!1,L}next(S){this.isStopped||this._next(S)}error(S){this.isStopped||(this.isStopped=!0,this._error(S))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(S){this.destination.next(S)}_error(S){this.destination.error(S),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:S}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=S,this}}class C extends E{constructor(S,m,B,L){super(),this._parentSubscriber=S;let J,ie=this;(0,e.m)(m)?J=m:m&&(J=m.next,B=m.error,L=m.complete,m!==b.c&&(ie=Object.create(m),(0,e.m)(ie.unsubscribe)&&this.add(ie.unsubscribe.bind(ie)),ie.unsubscribe=this.unsubscribe.bind(this))),this._context=ie,this._next=J,this._error=B,this._complete=L}next(S){if(!this.isStopped&&this._next){const{_parentSubscriber:m}=this;g.v.useDeprecatedSynchronousErrorHandling&&m.syncErrorThrowable?this.__tryOrSetError(m,this._next,S)&&this.unsubscribe():this.__tryOrUnsub(this._next,S)}}error(S){if(!this.isStopped){const{_parentSubscriber:m}=this,{useDeprecatedSynchronousErrorHandling:B}=g.v;if(this._error)B&&m.syncErrorThrowable?(this.__tryOrSetError(m,this._error,S),this.unsubscribe()):(this.__tryOrUnsub(this._error,S),this.unsubscribe());else if(m.syncErrorThrowable)B?(m.syncErrorValue=S,m.syncErrorThrown=!0):(0,A.z)(S),this.unsubscribe();else{if(this.unsubscribe(),B)throw S;(0,A.z)(S)}}}complete(){if(!this.isStopped){const{_parentSubscriber:S}=this;if(this._complete){const m=()=>this._complete.call(this._context);g.v.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable?(this.__tryOrSetError(S,m),this.unsubscribe()):(this.__tryOrUnsub(m),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(S,m){try{S.call(this._context,m)}catch(B){if(this.unsubscribe(),g.v.useDeprecatedSynchronousErrorHandling)throw B;(0,A.z)(B)}}__tryOrSetError(S,m,B){if(!g.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{m.call(this._context,B)}catch(L){return g.v.useDeprecatedSynchronousErrorHandling?(S.syncErrorValue=L,S.syncErrorThrown=!0,!0):((0,A.z)(L),!0)}return!1}_unsubscribe(){const{_parentSubscriber:S}=this;this._context=null,this._parentSubscriber=null,S.unsubscribe()}}},42654:(Xe,_e,p)=>{"use strict";p.d(_e,{w:()=>A});var e=p(66688),b=p(57830),_=p(67043);const g=(()=>{function C(O){return Error.call(this),this.message=O?`${O.length} errors occurred during unsubscription:\n${O.map((S,m)=>`${m+1}) ${S.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=O,this}return C.prototype=Object.create(Error.prototype),C})();class A{constructor(O){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,O&&(this._unsubscribe=O)}unsubscribe(){let O;if(this.closed)return;let{_parentOrParents:S,_unsubscribe:m,_subscriptions:B}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,S instanceof A)S.remove(this);else if(null!==S)for(let L=0;LO.concat(S instanceof g?S.errors:S),[])}A.EMPTY=((C=new A).closed=!0,C)},92830:(Xe,_e,p)=>{"use strict";p.d(_e,{v:()=>b});let e=!1;const b={Promise:void 0,set useDeprecatedSynchronousErrorHandling(_){if(_){const w=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+w.stack)}else e&&console.log("RxJS: Back to a better error behavior. Thank you. <3");e=_},get useDeprecatedSynchronousErrorHandling(){return e}}},71762:(Xe,_e,p)=>{"use strict";p.d(_e,{c:()=>g,N:()=>A});var e=p(8929),b=p(56498),_=p(42654),w=p(74327);class g extends b.y{constructor(m,B){super(),this.source=m,this.subjectFactory=B,this._refCount=0,this._isComplete=!1}_subscribe(m){return this.getSubject().subscribe(m)}getSubject(){const m=this._subject;return(!m||m.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let m=this._connection;return m||(this._isComplete=!1,m=this._connection=new _.w,m.add(this.source.subscribe(new E(this.getSubject(),this))),m.closed&&(this._connection=null,m=_.w.EMPTY)),m}refCount(){return(0,w.x)()(this)}}const A=(()=>{const S=g.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:S._subscribe},_isComplete:{value:S._isComplete,writable:!0},getSubject:{value:S.getSubject},connect:{value:S.connect},refCount:{value:S.refCount}}})();class E extends e.Yc{constructor(m,B){super(m),this.connectable=B}_error(m){this._unsubscribe(),super._error(m)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const m=this.connectable;if(m){this.connectable=null;const B=m._connection;m._refCount=0,m._subject=null,m._connection=null,B&&B.unsubscribe()}}}},36053:(Xe,_e,p)=>{"use strict";p.d(_e,{aj:()=>E});var e=p(72866),b=p(66688),_=p(826),w=p(69054),g=p(33009);const A={};function E(...S){let m=null,B=null;return(0,e.K)(S[S.length-1])&&(B=S.pop()),"function"==typeof S[S.length-1]&&(m=S.pop()),1===S.length&&(0,b.k)(S[0])&&(S=S[0]),(0,g.n)(S,B).lift(new C(m))}class C{constructor(m){this.resultSelector=m}call(m,B){return B.subscribe(new O(m,this.resultSelector))}}class O extends _.L{constructor(m,B){super(m),this.resultSelector=B,this.active=0,this.values=[],this.observables=[]}_next(m){this.values.push(A),this.observables.push(m)}_complete(){const m=this.observables,B=m.length;if(0===B)this.destination.complete();else{this.active=B,this.toRespond=B;for(let L=0;L{"use strict";p.d(_e,{z:()=>w});var e=p(21086),b=p(89146);function w(...g){return function _(){return(0,b.J)(1)}()((0,e.of)(...g))}},88514:(Xe,_e,p)=>{"use strict";p.d(_e,{P:()=>w});var e=p(56498),b=p(5254),_=p(68896);function w(g){return new e.y(A=>{let E;try{E=g()}catch(O){return void A.error(O)}return(E?(0,b.D)(E):(0,_.c)()).subscribe(A)})}},68896:(Xe,_e,p)=>{"use strict";p.d(_e,{E:()=>b,c:()=>_});var e=p(56498);const b=new e.y(g=>g.complete());function _(g){return g?function w(g){return new e.y(A=>g.schedule(()=>A.complete()))}(g):b}},30567:(Xe,_e,p)=>{"use strict";p.d(_e,{D:()=>A});var e=p(56498),b=p(66688),_=p(24850),w=p(57830),g=p(5254);function A(...C){if(1===C.length){const O=C[0];if((0,b.k)(O))return E(O,null);if((0,w.K)(O)&&Object.getPrototypeOf(O)===Object.prototype){const S=Object.keys(O);return E(S.map(m=>O[m]),S)}}if("function"==typeof C[C.length-1]){const O=C.pop();return E(C=1===C.length&&(0,b.k)(C[0])?C[0]:C,null).pipe((0,_.U)(S=>O(...S)))}return E(C,null)}function E(C,O){return new e.y(S=>{const m=C.length;if(0===m)return void S.complete();const B=new Array(m);let L=0,J=0;for(let ie=0;ie{X||(X=!0,J++),B[ie]=Ne},error:Ne=>S.error(Ne),complete:()=>{L++,(L===m||!X)&&(J===m&&S.next(O?O.reduce((Ne,ue,Oe)=>(Ne[ue]=B[Oe],Ne),{}):B),S.complete())}}))}})}},5254:(Xe,_e,p)=>{"use strict";p.d(_e,{D:()=>ie});var e=p(56498),b=p(59249),_=p(42654),w=p(93821),E=p(66454),C=p(5430),m=p(98955),B=p(58515);function ie(ge,X){return X?function J(ge,X){if(null!=ge){if(function S(ge){return ge&&"function"==typeof ge[w.L]}(ge))return function g(ge,X){return new e.y(Ne=>{const ue=new _.w;return ue.add(X.schedule(()=>{const Oe=ge[w.L]();ue.add(Oe.subscribe({next(T){ue.add(X.schedule(()=>Ne.next(T)))},error(T){ue.add(X.schedule(()=>Ne.error(T)))},complete(){ue.add(X.schedule(()=>Ne.complete()))}}))})),ue})}(ge,X);if((0,m.t)(ge))return function A(ge,X){return new e.y(Ne=>{const ue=new _.w;return ue.add(X.schedule(()=>ge.then(Oe=>{ue.add(X.schedule(()=>{Ne.next(Oe),ue.add(X.schedule(()=>Ne.complete()))}))},Oe=>{ue.add(X.schedule(()=>Ne.error(Oe)))}))),ue})}(ge,X);if((0,B.z)(ge))return(0,E.r)(ge,X);if(function L(ge){return ge&&"function"==typeof ge[C.hZ]}(ge)||"string"==typeof ge)return function O(ge,X){if(!ge)throw new Error("Iterable cannot be null");return new e.y(Ne=>{const ue=new _.w;let Oe;return ue.add(()=>{Oe&&"function"==typeof Oe.return&&Oe.return()}),ue.add(X.schedule(()=>{Oe=ge[C.hZ](),ue.add(X.schedule(function(){if(Ne.closed)return;let T,Z;try{const W=Oe.next();T=W.value,Z=W.done}catch(W){return void Ne.error(W)}Z?Ne.complete():(Ne.next(T),this.schedule())}))})),ue})}(ge,X)}throw new TypeError((null!==ge&&typeof ge||ge)+" is not observable")}(ge,X):ge instanceof e.y?ge:new e.y((0,b.s)(ge))}},33009:(Xe,_e,p)=>{"use strict";p.d(_e,{n:()=>w});var e=p(56498),b=p(13650),_=p(66454);function w(g,A){return A?(0,_.r)(g,A):new e.y((0,b.V)(g))}},23753:(Xe,_e,p)=>{"use strict";p.d(_e,{R:()=>A});var e=p(56498),b=p(66688),_=p(67043),w=p(24850);function A(m,B,L,J){return(0,_.m)(L)&&(J=L,L=void 0),J?A(m,B,L).pipe((0,w.U)(ie=>(0,b.k)(ie)?J(...ie):J(ie))):new e.y(ie=>{E(m,B,function ge(X){ie.next(arguments.length>1?Array.prototype.slice.call(arguments):X)},ie,L)})}function E(m,B,L,J,ie){let ge;if(function S(m){return m&&"function"==typeof m.addEventListener&&"function"==typeof m.removeEventListener}(m)){const X=m;m.addEventListener(B,L,ie),ge=()=>X.removeEventListener(B,L,ie)}else if(function O(m){return m&&"function"==typeof m.on&&"function"==typeof m.off}(m)){const X=m;m.on(B,L),ge=()=>X.off(B,L)}else if(function C(m){return m&&"function"==typeof m.addListener&&"function"==typeof m.removeListener}(m)){const X=m;m.addListener(B,L),ge=()=>X.removeListener(B,L)}else{if(!m||!m.length)throw new TypeError("Invalid event target");for(let X=0,Ne=m.length;X{"use strict";p.d(_e,{F:()=>w});var e=p(56498),b=p(20353),_=p(84241);function w(A=0,E=b.P){return(!(0,_.k)(A)||A<0)&&(A=0),(!E||"function"!=typeof E.schedule)&&(E=b.P),new e.y(C=>(C.add(E.schedule(g,A,{subscriber:C,counter:0,period:A})),C))}function g(A){const{subscriber:E,counter:C,period:O}=A;E.next(C),this.schedule({subscriber:E,counter:C+1,period:O},O)}},36787:(Xe,_e,p)=>{"use strict";p.d(_e,{T:()=>g});var e=p(56498),b=p(72866),_=p(89146),w=p(33009);function g(...A){let E=Number.POSITIVE_INFINITY,C=null,O=A[A.length-1];return(0,b.K)(O)?(C=A.pop(),A.length>1&&"number"==typeof A[A.length-1]&&(E=A.pop())):"number"==typeof O&&(E=A.pop()),null===C&&1===A.length&&A[0]instanceof e.y?A[0]:(0,_.J)(E)((0,w.n)(A,C))}},21086:(Xe,_e,p)=>{"use strict";p.d(_e,{of:()=>w});var e=p(72866),b=p(33009),_=p(66454);function w(...g){let A=g[g.length-1];return(0,e.K)(A)?(g.pop(),(0,_.r)(g,A)):(0,b.n)(g)}},61946:(Xe,_e,p)=>{"use strict";p.d(_e,{S3:()=>g});var e=p(66688),b=p(33009),_=p(826),w=p(69054);function g(...C){if(1===C.length){if(!(0,e.k)(C[0]))return C[0];C=C[0]}return(0,b.n)(C,void 0).lift(new A)}class A{call(O,S){return S.subscribe(new E(O))}}class E extends _.L{constructor(O){super(O),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(O){this.observables.push(O)}_complete(){const O=this.observables,S=O.length;if(0===S)this.destination.complete();else{for(let m=0;m{"use strict";p.d(_e,{_:()=>b});var e=p(56498);function b(w,g){return new e.y(g?A=>g.schedule(_,0,{error:w,subscriber:A}):A=>A.error(w))}function _({error:w,subscriber:g}){g.error(w)}},98723:(Xe,_e,p)=>{"use strict";p.d(_e,{H:()=>g});var e=p(56498),b=p(20353),_=p(84241),w=p(72866);function g(E=0,C,O){let S=-1;return(0,_.k)(C)?S=Number(C)<1?1:Number(C):(0,w.K)(C)&&(O=C),(0,w.K)(O)||(O=b.P),new e.y(m=>{const B=(0,_.k)(E)?E:+E-O.now();return O.schedule(A,B,{index:0,period:S,subscriber:m})})}function A(E){const{index:C,period:O,subscriber:S}=E;if(S.next(C),!S.closed){if(-1===O)return S.complete();E.index=C+1,this.schedule(E,O)}}},57138:(Xe,_e,p)=>{"use strict";p.d(_e,{e:()=>C});var e=p(20353),b=p(826),_=p(69054);class g{constructor(S){this.durationSelector=S}call(S,m){return m.subscribe(new A(S,this.durationSelector))}}class A extends b.L{constructor(S,m){super(S),this.durationSelector=m,this.hasValue=!1}_next(S){if(this.value=S,this.hasValue=!0,!this.throttled){let m;try{const{durationSelector:L}=this;m=L(S)}catch(L){return this.destination.error(L)}const B=(0,_.D)(this,m);!B||B.closed?this.clearThrottle():this.add(this.throttled=B)}}clearThrottle(){const{value:S,hasValue:m,throttled:B}=this;B&&(this.remove(B),this.throttled=null,B.unsubscribe()),m&&(this.value=null,this.hasValue=!1,this.destination.next(S))}notifyNext(S,m,B,L){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var E=p(98723);function C(O,S=e.P){return function w(O){return function(m){return m.lift(new g(O))}}(()=>(0,E.H)(O,S))}},27221:(Xe,_e,p)=>{"use strict";p.d(_e,{K:()=>w});var e=p(826),b=p(51869),_=p(69054);function w(E){return function(O){const S=new g(E),m=O.lift(S);return S.caught=m}}class g{constructor(C){this.selector=C}call(C,O){return O.subscribe(new A(C,this.selector,this.caught))}}class A extends e.L{constructor(C,O,S){super(C),this.selector=O,this.caught=S}error(C){if(!this.isStopped){let O;try{O=this.selector(C,this.caught)}catch(B){return void super.error(B)}this._unsubscribeAndRecycle();const S=new b.d(this,void 0,void 0);this.add(S);const m=(0,_.D)(this,O,void 0,void 0,S);m!==S&&this.add(m)}}}},21406:(Xe,_e,p)=>{"use strict";p.d(_e,{b:()=>b});var e=p(61709);function b(_,w){return(0,e.zg)(_,w,1)}},80013:(Xe,_e,p)=>{"use strict";p.d(_e,{b:()=>_});var e=p(43489),b=p(20353);function _(E,C=b.P){return O=>O.lift(new w(E,C))}class w{constructor(C,O){this.dueTime=C,this.scheduler=O}call(C,O){return O.subscribe(new g(C,this.dueTime,this.scheduler))}}class g extends e.L{constructor(C,O,S){super(C),this.dueTime=O,this.scheduler=S,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(C){this.clearDebounce(),this.lastValue=C,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(A,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:C}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(C)}}clearDebounce(){const C=this.debouncedSubscription;null!==C&&(this.remove(C),C.unsubscribe(),this.debouncedSubscription=null)}}function A(E){E.debouncedNext()}},47314:(Xe,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(43489);function b(g=null){return A=>A.lift(new _(g))}class _{constructor(A){this.defaultValue=A}call(A,E){return E.subscribe(new w(A,this.defaultValue))}}class w extends e.L{constructor(A,E){super(A),this.defaultValue=E,this.isEmpty=!0}_next(A){this.isEmpty=!1,this.destination.next(A)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},40943:(Xe,_e,p)=>{"use strict";p.d(_e,{g:()=>g});var e=p(20353),b=p(82697),_=p(43489),w=p(29312);function g(O,S=e.P){const B=(0,b.J)(O)?+O-S.now():Math.abs(O);return L=>L.lift(new A(B,S))}class A{constructor(S,m){this.delay=S,this.scheduler=m}call(S,m){return m.subscribe(new E(S,this.delay,this.scheduler))}}class E extends _.L{constructor(S,m,B){super(S),this.delay=m,this.scheduler=B,this.queue=[],this.active=!1,this.errored=!1}static dispatch(S){const m=S.source,B=m.queue,L=S.scheduler,J=S.destination;for(;B.length>0&&B[0].time-L.now()<=0;)B.shift().notification.observe(J);if(B.length>0){const ie=Math.max(0,B[0].time-L.now());this.schedule(S,ie)}else this.unsubscribe(),m.active=!1}_schedule(S){this.active=!0,this.destination.add(S.schedule(E.dispatch,this.delay,{source:this,destination:this.destination,scheduler:S}))}scheduleNotification(S){if(!0===this.errored)return;const m=this.scheduler,B=new C(m.now()+this.delay,S);this.queue.push(B),!1===this.active&&this._schedule(m)}_next(S){this.scheduleNotification(w.P.createNext(S))}_error(S){this.errored=!0,this.queue=[],this.destination.error(S),this.unsubscribe()}_complete(){this.scheduleNotification(w.P.createComplete()),this.unsubscribe()}}class C{constructor(S,m){this.time=S,this.notification=m}}},75778:(Xe,_e,p)=>{"use strict";p.d(_e,{x:()=>b});var e=p(43489);function b(g,A){return E=>E.lift(new _(g,A))}class _{constructor(A,E){this.compare=A,this.keySelector=E}call(A,E){return E.subscribe(new w(A,this.compare,this.keySelector))}}class w extends e.L{constructor(A,E,C){super(A),this.keySelector=C,this.hasKey=!1,"function"==typeof E&&(this.compare=E)}compare(A,E){return A===E}_next(A){let E;try{const{keySelector:O}=this;E=O?O(A):A}catch(O){return this.destination.error(O)}let C=!1;if(this.hasKey)try{const{compare:O}=this;C=O(this.key,E)}catch(O){return this.destination.error(O)}else this.hasKey=!0;C||(this.key=E,this.destination.next(A))}}},92198:(Xe,_e,p)=>{"use strict";p.d(_e,{h:()=>b});var e=p(43489);function b(g,A){return function(C){return C.lift(new _(g,A))}}class _{constructor(A,E){this.predicate=A,this.thisArg=E}call(A,E){return E.subscribe(new w(A,this.predicate,this.thisArg))}}class w extends e.L{constructor(A,E,C){super(A),this.predicate=E,this.thisArg=C,this.count=0}_next(A){let E;try{E=this.predicate.call(this.thisArg,A,this.count++)}catch(C){return void this.destination.error(C)}E&&this.destination.next(A)}}},40537:(Xe,_e,p)=>{"use strict";p.d(_e,{x:()=>_});var e=p(43489),b=p(42654);function _(A){return E=>E.lift(new w(A))}class w{constructor(E){this.callback=E}call(E,C){return C.subscribe(new g(E,this.callback))}}class g extends e.L{constructor(E,C){super(E),this.add(new b.w(C))}}},87224:(Xe,_e,p)=>{"use strict";p.d(_e,{P:()=>E});var e=p(84450),b=p(92198),_=p(72986),w=p(47314),g=p(34907),A=p(35379);function E(C,O){const S=arguments.length>=2;return m=>m.pipe(C?(0,b.h)((B,L)=>C(B,L,m)):A.y,(0,_.q)(1),S?(0,w.d)(O):(0,g.T)(()=>new e.K))}},24850:(Xe,_e,p)=>{"use strict";p.d(_e,{U:()=>b});var e=p(43489);function b(g,A){return function(C){if("function"!=typeof g)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return C.lift(new _(g,A))}}class _{constructor(A,E){this.project=A,this.thisArg=E}call(A,E){return E.subscribe(new w(A,this.project,this.thisArg))}}class w extends e.L{constructor(A,E,C){super(A),this.project=E,this.count=0,this.thisArg=C||this}_next(A){let E;try{E=this.project.call(this.thisArg,A,this.count++)}catch(C){return void this.destination.error(C)}this.destination.next(E)}}},77604:(Xe,_e,p)=>{"use strict";p.d(_e,{h:()=>b});var e=p(43489);function b(g){return A=>A.lift(new _(g))}class _{constructor(A){this.value=A}call(A,E){return E.subscribe(new w(A,this.value))}}class w extends e.L{constructor(A,E){super(A),this.value=E}_next(A){this.destination.next(this.value)}}},89146:(Xe,_e,p)=>{"use strict";p.d(_e,{J:()=>_});var e=p(61709),b=p(35379);function _(w=Number.POSITIVE_INFINITY){return(0,e.zg)(b.y,w)}},61709:(Xe,_e,p)=>{"use strict";p.d(_e,{zg:()=>A});var e=p(69054),b=p(826),_=p(51869),w=p(24850),g=p(5254);function A(O,S,m=Number.POSITIVE_INFINITY){return"function"==typeof S?B=>B.pipe(A((L,J)=>(0,g.D)(O(L,J)).pipe((0,w.U)((ie,ge)=>S(L,ie,J,ge))),m)):("number"==typeof S&&(m=S),B=>B.lift(new E(O,m)))}class E{constructor(S,m=Number.POSITIVE_INFINITY){this.project=S,this.concurrent=m}call(S,m){return m.subscribe(new C(S,this.project,this.concurrent))}}class C extends b.L{constructor(S,m,B=Number.POSITIVE_INFINITY){super(S),this.project=m,this.concurrent=B,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(S){this.active0?this._next(m.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},74327:(Xe,_e,p)=>{"use strict";p.d(_e,{x:()=>b});var e=p(43489);function b(){return function(A){return A.lift(new _(A))}}class _{constructor(A){this.connectable=A}call(A,E){const{connectable:C}=this;C._refCount++;const O=new w(A,C),S=E.subscribe(O);return O.closed||(O.connection=C.connect()),S}}class w extends e.L{constructor(A,E){super(A),this.connectable=E}_unsubscribe(){const{connectable:A}=this;if(!A)return void(this.connection=null);this.connectable=null;const E=A._refCount;if(E<=0)return void(this.connection=null);if(A._refCount=E-1,E>1)return void(this.connection=null);const{connection:C}=this,O=A._connection;this.connection=null,O&&(!C||O===C)&&O.unsubscribe()}}},92014:(Xe,_e,p)=>{"use strict";p.d(_e,{R:()=>b});var e=p(43489);function b(g,A){let E=!1;return arguments.length>=2&&(E=!0),function(O){return O.lift(new _(g,A,E))}}class _{constructor(A,E,C=!1){this.accumulator=A,this.seed=E,this.hasSeed=C}call(A,E){return E.subscribe(new w(A,this.accumulator,this.seed,this.hasSeed))}}class w extends e.L{constructor(A,E,C,O){super(A),this.accumulator=E,this._seed=C,this.hasSeed=O,this.index=0}get seed(){return this._seed}set seed(A){this.hasSeed=!0,this._seed=A}_next(A){if(this.hasSeed)return this._tryNext(A);this.seed=A,this.destination.next(A)}_tryNext(A){const E=this.index++;let C;try{C=this.accumulator(this.seed,A,E)}catch(O){this.destination.error(O)}this.seed=C,this.destination.next(C)}}},12474:(Xe,_e,p)=>{"use strict";p.d(_e,{B:()=>E});var e=p(71762);class _{constructor(O,S){this.subjectFactory=O,this.selector=S}call(O,S){const{selector:m}=this,B=this.subjectFactory(),L=m(B).subscribe(O);return L.add(S.subscribe(B)),L}}var w=p(74327),g=p(8929);function A(){return new g.xQ}function E(){return C=>(0,w.x)()(function b(C,O){return function(m){let B;if(B="function"==typeof C?C:function(){return C},"function"==typeof O)return m.lift(new _(B,O));const L=Object.create(m,e.N);return L.source=m,L.subjectFactory=B,L}}(A)(C))}},5154:(Xe,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(96831);function b(w,g,A){let E;return E=w&&"object"==typeof w?w:{bufferSize:w,windowTime:g,refCount:!1,scheduler:A},C=>C.lift(function _({bufferSize:w=Number.POSITIVE_INFINITY,windowTime:g=Number.POSITIVE_INFINITY,refCount:A,scheduler:E}){let C,S,O=0,m=!1,B=!1;return function(J){O++,(!C||m)&&(m=!1,C=new e.t(w,g,E),S=J.subscribe({next(ge){C.next(ge)},error(ge){m=!0,C.error(ge)},complete(){B=!0,S=void 0,C.complete()}}));const ie=C.subscribe(this);this.add(()=>{O--,ie.unsubscribe(),S&&!B&&A&&0===O&&(S.unsubscribe(),S=void 0,C=void 0)})}}(E))}},31307:(Xe,_e,p)=>{"use strict";p.d(_e,{T:()=>b});var e=p(43489);function b(g){return A=>A.lift(new _(g))}class _{constructor(A){this.total=A}call(A,E){return E.subscribe(new w(A,this.total))}}class w extends e.L{constructor(A,E){super(A),this.total=E,this.count=0}_next(A){++this.count>this.total&&this.destination.next(A)}}},1059:(Xe,_e,p)=>{"use strict";p.d(_e,{O:()=>_});var e=p(61221),b=p(72866);function _(...w){const g=w[w.length-1];return(0,b.K)(g)?(w.pop(),A=>(0,e.z)(w,A,g)):A=>(0,e.z)(w,A)}},87545:(Xe,_e,p)=>{"use strict";p.d(_e,{w:()=>A});var e=p(826),b=p(51869),_=p(69054),w=p(24850),g=p(5254);function A(O,S){return"function"==typeof S?m=>m.pipe(A((B,L)=>(0,g.D)(O(B,L)).pipe((0,w.U)((J,ie)=>S(B,J,L,ie))))):m=>m.lift(new E(O))}class E{constructor(S){this.project=S}call(S,m){return m.subscribe(new C(S,this.project))}}class C extends e.L{constructor(S,m){super(S),this.project=m,this.index=0}_next(S){let m;const B=this.index++;try{m=this.project(S,B)}catch(L){return void this.destination.error(L)}this._innerSub(m,S,B)}_innerSub(S,m,B){const L=this.innerSubscription;L&&L.unsubscribe();const J=new b.d(this,m,B),ie=this.destination;ie.add(J),this.innerSubscription=(0,_.D)(this,S,void 0,void 0,J),this.innerSubscription!==J&&ie.add(this.innerSubscription)}_complete(){const{innerSubscription:S}=this;(!S||S.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(S){this.destination.remove(S),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(S,m,B,L,J){this.destination.next(m)}}},72986:(Xe,_e,p)=>{"use strict";p.d(_e,{q:()=>w});var e=p(43489),b=p(94231),_=p(68896);function w(E){return C=>0===E?(0,_.c)():C.lift(new g(E))}class g{constructor(C){if(this.total=C,this.total<0)throw new b.W}call(C,O){return O.subscribe(new A(C,this.total))}}class A extends e.L{constructor(C,O){super(C),this.total=O,this.count=0}_next(C){const O=this.total,S=++this.count;S<=O&&(this.destination.next(C),S===O&&(this.destination.complete(),this.unsubscribe()))}}},92821:(Xe,_e,p)=>{"use strict";p.d(_e,{h:()=>w});var e=p(43489),b=p(94231),_=p(68896);function w(E){return function(O){return 0===E?(0,_.c)():O.lift(new g(E))}}class g{constructor(C){if(this.total=C,this.total<0)throw new b.W}call(C,O){return O.subscribe(new A(C,this.total))}}class A extends e.L{constructor(C,O){super(C),this.total=O,this.ring=new Array,this.count=0}_next(C){const O=this.ring,S=this.total,m=this.count++;O.length0){const S=this.count>=this.total?this.total:this.count,m=this.ring;for(let B=0;B{"use strict";p.d(_e,{R:()=>_});var e=p(826),b=p(69054);function _(A){return E=>E.lift(new w(A))}class w{constructor(E){this.notifier=E}call(E,C){const O=new g(E),S=(0,b.D)(O,this.notifier);return S&&!O.seenValue?(O.add(S),C.subscribe(O)):O}}class g extends e.L{constructor(E){super(E),this.seenValue=!1}notifyNext(E,C,O,S,m){this.seenValue=!0,this.complete()}notifyComplete(){}}},22868:(Xe,_e,p)=>{"use strict";p.d(_e,{b:()=>w});var e=p(43489);function b(){}var _=p(67043);function w(E,C,O){return function(m){return m.lift(new g(E,C,O))}}class g{constructor(C,O,S){this.nextOrObserver=C,this.error=O,this.complete=S}call(C,O){return O.subscribe(new A(C,this.nextOrObserver,this.error,this.complete))}}class A extends e.L{constructor(C,O,S,m){super(C),this._tapNext=b,this._tapError=b,this._tapComplete=b,this._tapError=S||b,this._tapComplete=m||b,(0,_.m)(O)?(this._context=this,this._tapNext=O):O&&(this._context=O,this._tapNext=O.next||b,this._tapError=O.error||b,this._tapComplete=O.complete||b)}_next(C){try{this._tapNext.call(this._context,C)}catch(O){return void this.destination.error(O)}this.destination.next(C)}_error(C){try{this._tapError.call(this._context,C)}catch(O){return void this.destination.error(O)}this.destination.error(C)}_complete(){try{this._tapComplete.call(this._context)}catch(C){return void this.destination.error(C)}return this.destination.complete()}}},34907:(Xe,_e,p)=>{"use strict";p.d(_e,{T:()=>_});var e=p(84450),b=p(43489);function _(E=A){return C=>C.lift(new w(E))}class w{constructor(C){this.errorFactory=C}call(C,O){return O.subscribe(new g(C,this.errorFactory))}}class g extends b.L{constructor(C,O){super(C),this.errorFactory=O,this.hasValue=!1}_next(C){this.hasValue=!0,this.destination.next(C)}_complete(){if(this.hasValue)return this.destination.complete();{let C;try{C=this.errorFactory()}catch(O){C=O}this.destination.error(C)}}}function A(){return new e.K}},46227:(Xe,_e,p)=>{"use strict";p.d(_e,{V:()=>m});var e=p(20353);const _=(()=>{function B(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return B.prototype=Object.create(Error.prototype),B})();var w=p(82697),g=p(826),A=p(69054);class C{constructor(L,J,ie,ge){this.waitFor=L,this.absoluteTimeout=J,this.withObservable=ie,this.scheduler=ge}call(L,J){return J.subscribe(new O(L,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class O extends g.L{constructor(L,J,ie,ge,X){super(L),this.absoluteTimeout=J,this.waitFor=ie,this.withObservable=ge,this.scheduler=X,this.action=null,this.scheduleTimeout()}static dispatchTimeout(L){const{withObservable:J}=L;L._unsubscribeAndRecycle(),L.add((0,A.D)(L,J))}scheduleTimeout(){const{action:L}=this;L?this.action=L.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(O.dispatchTimeout,this.waitFor,this))}_next(L){this.absoluteTimeout||this.scheduleTimeout(),super._next(L)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var S=p(61737);function m(B,L=e.P){return function E(B,L,J=e.P){return ie=>{let ge=(0,w.J)(B),X=ge?+B-J.now():Math.abs(B);return ie.lift(new C(X,ge,L,J))}}(B,(0,S._)(new _),L)}},66454:(Xe,_e,p)=>{"use strict";p.d(_e,{r:()=>_});var e=p(56498),b=p(42654);function _(w,g){return new e.y(A=>{const E=new b.w;let C=0;return E.add(g.schedule(function(){C!==w.length?(A.next(w[C++]),A.closed||E.add(this.schedule())):A.complete()})),E})}},56686:(Xe,_e,p)=>{"use strict";p.d(_e,{o:()=>_});var e=p(42654);class b extends e.w{constructor(g,A){super()}schedule(g,A=0){return this}}class _ extends b{constructor(g,A){super(g,A),this.scheduler=g,this.work=A,this.pending=!1}schedule(g,A=0){if(this.closed)return this;this.state=g;const E=this.id,C=this.scheduler;return null!=E&&(this.id=this.recycleAsyncId(C,E,A)),this.pending=!0,this.delay=A,this.id=this.id||this.requestAsyncId(C,this.id,A),this}requestAsyncId(g,A,E=0){return setInterval(g.flush.bind(g,this),E)}recycleAsyncId(g,A,E=0){if(null!==E&&this.delay===E&&!1===this.pending)return A;clearInterval(A)}execute(g,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const E=this._execute(g,A);if(E)return E;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(g,A){let C,E=!1;try{this.work(g)}catch(O){E=!0,C=!!O&&O||new Error(O)}if(E)return this.unsubscribe(),C}_unsubscribe(){const g=this.id,A=this.scheduler,E=A.actions,C=E.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==C&&E.splice(C,1),null!=g&&(this.id=this.recycleAsyncId(A,g,null)),this.delay=null}}},32268:(Xe,_e,p)=>{"use strict";p.d(_e,{v:()=>b});let e=(()=>{class _{constructor(g,A=_.now){this.SchedulerAction=g,this.now=A}schedule(g,A=0,E){return new this.SchedulerAction(this,g).schedule(E,A)}}return _.now=()=>Date.now(),_})();class b extends e{constructor(w,g=e.now){super(w,()=>b.delegate&&b.delegate!==this?b.delegate.now():g()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(w,g=0,A){return b.delegate&&b.delegate!==this?b.delegate.schedule(w,g,A):super.schedule(w,g,A)}flush(w){const{actions:g}=this;if(this.active)return void g.push(w);let A;this.active=!0;do{if(A=w.execute(w.state,w.delay))break}while(w=g.shift());if(this.active=!1,A){for(;w=g.shift();)w.unsubscribe();throw A}}}},90352:(Xe,_e,p)=>{"use strict";p.d(_e,{r:()=>g});var e=p(56686),_=p(32268);const g=new class w extends _.v{flush(E){this.active=!0,this.scheduled=void 0;const{actions:C}=this;let O,S=-1,m=C.length;E=E||C.shift();do{if(O=E.execute(E.state,E.delay))break}while(++S0?super.requestAsyncId(E,C,O):(E.actions.push(this),E.scheduled||(E.scheduled=requestAnimationFrame(()=>E.flush(null))))}recycleAsyncId(E,C,O=0){if(null!==O&&O>0||null===O&&this.delay>0)return super.recycleAsyncId(E,C,O);0===E.actions.length&&(cancelAnimationFrame(C),E.scheduled=void 0)}})},8139:(Xe,_e,p)=>{"use strict";p.d(_e,{e:()=>m});let e=1;const b=Promise.resolve(),_={};function w(B){return B in _&&(delete _[B],!0)}const g={setImmediate(B){const L=e++;return _[L]=!0,b.then(()=>w(L)&&B()),L},clearImmediate(B){w(B)}};var E=p(56686),O=p(32268);const m=new class S extends O.v{flush(L){this.active=!0,this.scheduled=void 0;const{actions:J}=this;let ie,ge=-1,X=J.length;L=L||J.shift();do{if(ie=L.execute(L.state,L.delay))break}while(++ge0?super.requestAsyncId(L,J,ie):(L.actions.push(this),L.scheduled||(L.scheduled=g.setImmediate(L.flush.bind(L,null))))}recycleAsyncId(L,J,ie=0){if(null!==ie&&ie>0||null===ie&&this.delay>0)return super.recycleAsyncId(L,J,ie);0===L.actions.length&&(g.clearImmediate(J),L.scheduled=void 0)}})},20353:(Xe,_e,p)=>{"use strict";p.d(_e,{P:()=>_});var e=p(56686);const _=new(p(32268).v)(e.o)},5430:(Xe,_e,p)=>{"use strict";p.d(_e,{hZ:()=>b});const b=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},93821:(Xe,_e,p)=>{"use strict";p.d(_e,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},57668:(Xe,_e,p)=>{"use strict";p.d(_e,{b:()=>e});const e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},94231:(Xe,_e,p)=>{"use strict";p.d(_e,{W:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return _.prototype=Object.create(Error.prototype),_})()},84450:(Xe,_e,p)=>{"use strict";p.d(_e,{K:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return _.prototype=Object.create(Error.prototype),_})()},95279:(Xe,_e,p)=>{"use strict";p.d(_e,{N:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return _.prototype=Object.create(Error.prototype),_})()},22782:(Xe,_e,p)=>{"use strict";function e(b){setTimeout(()=>{throw b},0)}p.d(_e,{z:()=>e})},35379:(Xe,_e,p)=>{"use strict";function e(b){return b}p.d(_e,{y:()=>e})},66688:(Xe,_e,p)=>{"use strict";p.d(_e,{k:()=>e});const e=Array.isArray||(b=>b&&"number"==typeof b.length)},58515:(Xe,_e,p)=>{"use strict";p.d(_e,{z:()=>e});const e=b=>b&&"number"==typeof b.length&&"function"!=typeof b},82697:(Xe,_e,p)=>{"use strict";function e(b){return b instanceof Date&&!isNaN(+b)}p.d(_e,{J:()=>e})},67043:(Xe,_e,p)=>{"use strict";function e(b){return"function"==typeof b}p.d(_e,{m:()=>e})},84241:(Xe,_e,p)=>{"use strict";p.d(_e,{k:()=>b});var e=p(66688);function b(_){return!(0,e.k)(_)&&_-parseFloat(_)+1>=0}},57830:(Xe,_e,p)=>{"use strict";function e(b){return null!==b&&"object"==typeof b}p.d(_e,{K:()=>e})},54715:(Xe,_e,p)=>{"use strict";p.d(_e,{b:()=>b});var e=p(56498);function b(_){return!!_&&(_ instanceof e.y||"function"==typeof _.lift&&"function"==typeof _.subscribe)}},98955:(Xe,_e,p)=>{"use strict";function e(b){return!!b&&"function"!=typeof b.subscribe&&"function"==typeof b.then}p.d(_e,{t:()=>e})},72866:(Xe,_e,p)=>{"use strict";function e(b){return b&&"function"==typeof b.schedule}p.d(_e,{K:()=>e})},4843:(Xe,_e,p)=>{"use strict";p.d(_e,{z:()=>b,U:()=>_});var e=p(35379);function b(...w){return _(w)}function _(w){return 0===w.length?e.y:1===w.length?w[0]:function(A){return w.reduce((E,C)=>C(E),A)}}},59249:(Xe,_e,p)=>{"use strict";p.d(_e,{s:()=>m});var e=p(13650),b=p(22782),w=p(5430),A=p(93821),C=p(58515),O=p(98955),S=p(57830);const m=B=>{if(B&&"function"==typeof B[A.L])return(B=>L=>{const J=B[A.L]();if("function"!=typeof J.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return J.subscribe(L)})(B);if((0,C.z)(B))return(0,e.V)(B);if((0,O.t)(B))return(B=>L=>(B.then(J=>{L.closed||(L.next(J),L.complete())},J=>L.error(J)).then(null,b.z),L))(B);if(B&&"function"==typeof B[w.hZ])return(B=>L=>{const J=B[w.hZ]();for(;;){const ie=J.next();if(ie.done){L.complete();break}if(L.next(ie.value),L.closed)break}return"function"==typeof J.return&&L.add(()=>{J.return&&J.return()}),L})(B);{const J=`You provided ${(0,S.K)(B)?"an invalid object":`'${B}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(J)}}},13650:(Xe,_e,p)=>{"use strict";p.d(_e,{V:()=>e});const e=b=>_=>{for(let w=0,g=b.length;w{"use strict";p.d(_e,{D:()=>w});var e=p(51869),b=p(59249),_=p(56498);function w(g,A,E,C,O=new e.d(g,E,C)){if(!O.closed)return A instanceof _.y?A.subscribe(O):(0,b.s)(A)(O)}},70655:(Xe,_e,p)=>{"use strict";function g(le,Pe,Fe,ze){var ve,ae=arguments.length,Ue=ae<3?Pe:null===ze?ze=Object.getOwnPropertyDescriptor(Pe,Fe):ze;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ue=Reflect.decorate(le,Pe,Fe,ze);else for(var He=le.length-1;He>=0;He--)(ve=le[He])&&(Ue=(ae<3?ve(Ue):ae>3?ve(Pe,Fe,Ue):ve(Pe,Fe))||Ue);return ae>3&&Ue&&Object.defineProperty(Pe,Fe,Ue),Ue}function C(le,Pe,Fe,ze){return new(Fe||(Fe=Promise))(function(Ue,ve){function He(me){try{I(ze.next(me))}catch(Ae){ve(Ae)}}function z(me){try{I(ze.throw(me))}catch(Ae){ve(Ae)}}function I(me){me.done?Ue(me.value):function ae(Ue){return Ue instanceof Fe?Ue:new Fe(function(ve){ve(Ue)})}(me.value).then(He,z)}I((ze=ze.apply(le,Pe||[])).next())})}p.d(_e,{gn:()=>g,mG:()=>C})},41777:(Xe,_e,p)=>{"use strict";p.d(_e,{l3:()=>_,_j:()=>e,LC:()=>b,ZN:()=>Ne,jt:()=>g,pV:()=>L,ru:()=>A,F4:()=>S,IO:()=>ie,vP:()=>E,SB:()=>O,oB:()=>C,eR:()=>m,X$:()=>w,ZE:()=>ue,k1:()=>Oe});class e{}class b{}const _="*";function w(T,Z){return{type:7,name:T,definitions:Z,options:{}}}function g(T,Z=null){return{type:4,styles:Z,timings:T}}function A(T,Z=null){return{type:3,steps:T,options:Z}}function E(T,Z=null){return{type:2,steps:T,options:Z}}function C(T){return{type:6,styles:T,offset:null}}function O(T,Z,W){return{type:0,name:T,styles:Z,options:W}}function S(T){return{type:5,steps:T}}function m(T,Z,W=null){return{type:1,expr:T,animation:Z,options:W}}function L(T=null){return{type:9,options:T}}function ie(T,Z,W=null){return{type:11,selector:T,animation:Z,options:W}}function X(T){Promise.resolve(null).then(T)}class Ne{constructor(Z=0,W=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Z+W}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Z=>Z()),this._onDoneFns=[])}onStart(Z){this._onStartFns.push(Z)}onDone(Z){this._onDoneFns.push(Z)}onDestroy(Z){this._onDestroyFns.push(Z)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){X(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Z=>Z()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Z=>Z()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Z){this._position=this.totalTime?Z*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Z){const W="start"==Z?this._onStartFns:this._onDoneFns;W.forEach(Y=>Y()),W.length=0}}class ue{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 W=0,Y=0,ee=0;const ce=this.players.length;0==ce?X(()=>this._onFinish()):this.players.forEach(le=>{le.onDone(()=>{++W==ce&&this._onFinish()}),le.onDestroy(()=>{++Y==ce&&this._onDestroy()}),le.onStart(()=>{++ee==ce&&this._onStart()})}),this.totalTime=this.players.reduce((le,Pe)=>Math.max(le,Pe.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 W=Z*this.totalTime;this.players.forEach(Y=>{const ee=Y.totalTime?Math.min(1,W/Y.totalTime):1;Y.setPosition(ee)})}getPosition(){const Z=this.players.reduce((W,Y)=>null===W||Y.totalTime>W.totalTime?Y:W,null);return null!=Z?Z.getPosition():0}beforeDestroy(){this.players.forEach(Z=>{Z.beforeDestroy&&Z.beforeDestroy()})}triggerCallback(Z){const W="start"==Z?this._onStartFns:this._onDoneFns;W.forEach(Y=>Y()),W.length=0}}const Oe="!"},15664:(Xe,_e,p)=>{"use strict";p.d(_e,{rt:()=>Lt,s1:()=>ae,$s:()=>le,Qr:()=>c,kH:()=>At,mK:()=>R,Em:()=>Ue,tE:()=>We,qV:()=>P,qm:()=>mt,ic:()=>He,Kd:()=>a,X6:()=>ye,yG:()=>re});var e=p(69808),b=p(5e3),_=p(70925),w=p(8929),g=p(42654),A=p(591),E=p(21086),C=p(91159),O=p(22868),S=p(80013),m=p(92198),B=p(24850),L=p(72986),J=p(31307),ie=p(75778),ge=p(7625),X=p(63191),Ne=p(17144);function Z(Te,Ge){return(Te.getAttribute(Ge)||"").match(/\S+/g)||[]}const Y="cdk-describedby-message",ee="cdk-describedby-host";let ce=0,le=(()=>{class Te{constructor(j,N){this._platform=N,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ce++,this._document=j}describe(j,N,te){if(!this._canBeDescribed(j,N))return;const oe=Pe(N,te);"string"!=typeof N?(Fe(N),this._messageRegistry.set(oe,{messageElement:N,referenceCount:0})):this._messageRegistry.has(oe)||this._createMessageElement(N,te),this._isElementDescribedByMessage(j,oe)||this._addMessageReference(j,oe)}removeDescription(j,N,te){var oe;if(!N||!this._isElementNode(j))return;const Ie=Pe(N,te);if(this._isElementDescribedByMessage(j,Ie)&&this._removeMessageReference(j,Ie),"string"==typeof N){const ct=this._messageRegistry.get(Ie);ct&&0===ct.referenceCount&&this._deleteMessageElement(Ie)}0===(null===(oe=this._messagesContainer)||void 0===oe?void 0:oe.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var j;const N=this._document.querySelectorAll(`[${ee}="${this._id}"]`);for(let te=0;te0!=te.indexOf(Y));j.setAttribute("aria-describedby",N.join(" "))}_addMessageReference(j,N){const te=this._messageRegistry.get(N);(function Oe(Te,Ge,j){const N=Z(Te,Ge);N.some(te=>te.trim()==j.trim())||(N.push(j.trim()),Te.setAttribute(Ge,N.join(" ")))})(j,"aria-describedby",te.messageElement.id),j.setAttribute(ee,this._id),te.referenceCount++}_removeMessageReference(j,N){const te=this._messageRegistry.get(N);te.referenceCount--,function T(Te,Ge,j){const te=Z(Te,Ge).filter(oe=>oe!=j.trim());te.length?Te.setAttribute(Ge,te.join(" ")):Te.removeAttribute(Ge)}(j,"aria-describedby",te.messageElement.id),j.removeAttribute(ee)}_isElementDescribedByMessage(j,N){const te=Z(j,"aria-describedby"),oe=this._messageRegistry.get(N),Ie=oe&&oe.messageElement.id;return!!Ie&&-1!=te.indexOf(Ie)}_canBeDescribed(j,N){if(!this._isElementNode(j))return!1;if(N&&"object"==typeof N)return!0;const te=null==N?"":`${N}`.trim(),oe=j.getAttribute("aria-label");return!(!te||oe&&oe.trim()===te)}_isElementNode(j){return j.nodeType===this._document.ELEMENT_NODE}}return Te.\u0275fac=function(j){return new(j||Te)(b.LFG(e.K0),b.LFG(_.t4))},Te.\u0275prov=b.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();function Pe(Te,Ge){return"string"==typeof Te?`${Ge||""}/${Te}`:Te}function Fe(Te){Te.id||(Te.id=`${Y}-${ce++}`)}class ze{constructor(Ge){this._items=Ge,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.xQ,this._typeaheadSubscription=g.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=j=>j.disabled,this._pressedLetters=[],this.tabOut=new w.xQ,this.change=new w.xQ,Ge instanceof b.n_E&&Ge.changes.subscribe(j=>{if(this._activeItem){const te=j.toArray().indexOf(this._activeItem);te>-1&&te!==this._activeItemIndex&&(this._activeItemIndex=te)}})}skipPredicate(Ge){return this._skipPredicateFn=Ge,this}withWrap(Ge=!0){return this._wrap=Ge,this}withVerticalOrientation(Ge=!0){return this._vertical=Ge,this}withHorizontalOrientation(Ge){return this._horizontal=Ge,this}withAllowedModifierKeys(Ge){return this._allowedModifierKeys=Ge,this}withTypeAhead(Ge=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,O.b)(j=>this._pressedLetters.push(j)),(0,S.b)(Ge),(0,m.h)(()=>this._pressedLetters.length>0),(0,B.U)(()=>this._pressedLetters.join(""))).subscribe(j=>{const N=this._getItemsArray();for(let te=1;te!Ge[oe]||this._allowedModifierKeys.indexOf(oe)>-1);switch(j){case C.Mf:return void this.tabOut.next();case C.JH:if(this._vertical&&te){this.setNextItemActive();break}return;case C.LH:if(this._vertical&&te){this.setPreviousItemActive();break}return;case C.SV:if(this._horizontal&&te){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case C.oh:if(this._horizontal&&te){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case C.Sd:if(this._homeAndEnd&&te){this.setFirstItemActive();break}return;case C.uR:if(this._homeAndEnd&&te){this.setLastItemActive();break}return;default:return void((te||(0,C.Vb)(Ge,"shiftKey"))&&(Ge.key&&1===Ge.key.length?this._letterKeyStream.next(Ge.key.toLocaleUpperCase()):(j>=C.A&&j<=C.Z||j>=C.xE&&j<=C.aO)&&this._letterKeyStream.next(String.fromCharCode(j))))}this._pressedLetters=[],Ge.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(Ge){const j=this._getItemsArray(),N="number"==typeof Ge?Ge:j.indexOf(Ge),te=j[N];this._activeItem=null==te?null:te,this._activeItemIndex=N}_setActiveItemByDelta(Ge){this._wrap?this._setActiveInWrapMode(Ge):this._setActiveInDefaultMode(Ge)}_setActiveInWrapMode(Ge){const j=this._getItemsArray();for(let N=1;N<=j.length;N++){const te=(this._activeItemIndex+Ge*N+j.length)%j.length;if(!this._skipPredicateFn(j[te]))return void this.setActiveItem(te)}}_setActiveInDefaultMode(Ge){this._setActiveItemByIndex(this._activeItemIndex+Ge,Ge)}_setActiveItemByIndex(Ge,j){const N=this._getItemsArray();if(N[Ge]){for(;this._skipPredicateFn(N[Ge]);)if(!N[Ge+=j])return;this.setActiveItem(Ge)}}_getItemsArray(){return this._items instanceof b.n_E?this._items.toArray():this._items}}class ae extends ze{setActiveItem(Ge){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ge),this.activeItem&&this.activeItem.setActiveStyles()}}class Ue extends ze{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ge){return this._origin=Ge,this}setActiveItem(Ge){super.setActiveItem(Ge),this.activeItem&&this.activeItem.focus(this._origin)}}let He=(()=>{class Te{constructor(j){this._platform=j}isDisabled(j){return j.hasAttribute("disabled")}isVisible(j){return function I(Te){return!!(Te.offsetWidth||Te.offsetHeight||"function"==typeof Te.getClientRects&&Te.getClientRects().length)}(j)&&"visible"===getComputedStyle(j).visibility}isTabbable(j){if(!this._platform.isBrowser)return!1;const N=function z(Te){try{return Te.frameElement}catch(Ge){return null}}(function H(Te){return Te.ownerDocument&&Te.ownerDocument.defaultView||window}(j));if(N&&(-1===Je(N)||!this.isVisible(N)))return!1;let te=j.nodeName.toLowerCase(),oe=Je(j);return j.hasAttribute("contenteditable")?-1!==oe:!("iframe"===te||"object"===te||this._platform.WEBKIT&&this._platform.IOS&&!function nt(Te){let Ge=Te.nodeName.toLowerCase(),j="input"===Ge&&Te.type;return"text"===j||"password"===j||"select"===Ge||"textarea"===Ge}(j))&&("audio"===te?!!j.hasAttribute("controls")&&-1!==oe:"video"===te?-1!==oe&&(null!==oe||this._platform.FIREFOX||j.hasAttribute("controls")):j.tabIndex>=0)}isFocusable(j,N){return function ke(Te){return!function Ae(Te){return function pe(Te){return"input"==Te.nodeName.toLowerCase()}(Te)&&"hidden"==Te.type}(Te)&&(function me(Te){let Ge=Te.nodeName.toLowerCase();return"input"===Ge||"select"===Ge||"button"===Ge||"textarea"===Ge}(Te)||function Me(Te){return function we(Te){return"a"==Te.nodeName.toLowerCase()}(Te)&&Te.hasAttribute("href")}(Te)||Te.hasAttribute("contenteditable")||$e(Te))}(j)&&!this.isDisabled(j)&&((null==N?void 0:N.ignoreVisibility)||this.isVisible(j))}}return Te.\u0275fac=function(j){return new(j||Te)(b.LFG(_.t4))},Te.\u0275prov=b.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();function $e(Te){if(!Te.hasAttribute("tabindex")||void 0===Te.tabIndex)return!1;let Ge=Te.getAttribute("tabindex");return!(!Ge||isNaN(parseInt(Ge,10)))}function Je(Te){if(!$e(Te))return null;const Ge=parseInt(Te.getAttribute("tabindex")||"",10);return isNaN(Ge)?-1:Ge}class he{constructor(Ge,j,N,te,oe=!1){this._element=Ge,this._checker=j,this._ngZone=N,this._document=te,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,oe||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Ge){this._enabled=Ge,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ge,this._startAnchor),this._toggleAnchorTabIndex(Ge,this._endAnchor))}destroy(){const Ge=this._startAnchor,j=this._endAnchor;Ge&&(Ge.removeEventListener("focus",this.startAnchorListener),Ge.remove()),j&&(j.removeEventListener("focus",this.endAnchorListener),j.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(Ge){return new Promise(j=>{this._executeOnStable(()=>j(this.focusInitialElement(Ge)))})}focusFirstTabbableElementWhenReady(Ge){return new Promise(j=>{this._executeOnStable(()=>j(this.focusFirstTabbableElement(Ge)))})}focusLastTabbableElementWhenReady(Ge){return new Promise(j=>{this._executeOnStable(()=>j(this.focusLastTabbableElement(Ge)))})}_getRegionBoundary(Ge){const j=this._element.querySelectorAll(`[cdk-focus-region-${Ge}], [cdkFocusRegion${Ge}], [cdk-focus-${Ge}]`);return"start"==Ge?j.length?j[0]:this._getFirstTabbableElement(this._element):j.length?j[j.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ge){const j=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(j){if(!this._checker.isFocusable(j)){const N=this._getFirstTabbableElement(j);return null==N||N.focus(Ge),!!N}return j.focus(Ge),!0}return this.focusFirstTabbableElement(Ge)}focusFirstTabbableElement(Ge){const j=this._getRegionBoundary("start");return j&&j.focus(Ge),!!j}focusLastTabbableElement(Ge){const j=this._getRegionBoundary("end");return j&&j.focus(Ge),!!j}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ge){if(this._checker.isFocusable(Ge)&&this._checker.isTabbable(Ge))return Ge;const j=Ge.children;for(let N=0;N=0;N--){const te=j[N].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(j[N]):null;if(te)return te}return null}_createAnchor(){const Ge=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ge),Ge.classList.add("cdk-visually-hidden"),Ge.classList.add("cdk-focus-trap-anchor"),Ge.setAttribute("aria-hidden","true"),Ge}_toggleAnchorTabIndex(Ge,j){Ge?j.setAttribute("tabindex","0"):j.removeAttribute("tabindex")}toggleAnchors(Ge){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ge,this._startAnchor),this._toggleAnchorTabIndex(Ge,this._endAnchor))}_executeOnStable(Ge){this._ngZone.isStable?Ge():this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(Ge)}}let P=(()=>{class Te{constructor(j,N,te){this._checker=j,this._ngZone=N,this._document=te}create(j,N=!1){return new he(j,this._checker,this._ngZone,this._document,N)}}return Te.\u0275fac=function(j){return new(j||Te)(b.LFG(He),b.LFG(b.R0b),b.LFG(e.K0))},Te.\u0275prov=b.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),R=(()=>{class Te{constructor(j,N,te){this._elementRef=j,this._focusTrapFactory=N,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(j){this.focusTrap.enabled=(0,X.Ig)(j)}get autoCapture(){return this._autoCapture}set autoCapture(j){this._autoCapture=(0,X.Ig)(j)}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(j){const N=j.autoCapture;N&&!N.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,_.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Te.\u0275fac=function(j){return new(j||Te)(b.Y36(b.SBq),b.Y36(P),b.Y36(e.K0))},Te.\u0275dir=b.lG2({type:Te,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[b.TTD]}),Te})();function ye(Te){return 0===Te.buttons||0===Te.offsetX&&0===Te.offsetY}function re(Te){const Ge=Te.touches&&Te.touches[0]||Te.changedTouches&&Te.changedTouches[0];return!(!Ge||-1!==Ge.identifier||null!=Ge.radiusX&&1!==Ge.radiusX||null!=Ge.radiusY&&1!==Ge.radiusY)}const r=new b.OlP("cdk-input-modality-detector-options"),o={ignoreKeys:[C.zL,C.jx,C.b2,C.MW,C.JU]},l=(0,_.i$)({passive:!0,capture:!0});let s=(()=>{class Te{constructor(j,N,te,oe){this._platform=j,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=Ie=>{var ct,bt;(null===(bt=null===(ct=this._options)||void 0===ct?void 0:ct.ignoreKeys)||void 0===bt?void 0:bt.some(xt=>xt===Ie.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,_.sA)(Ie))},this._onMousedown=Ie=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ye(Ie)?"keyboard":"mouse"),this._mostRecentTarget=(0,_.sA)(Ie))},this._onTouchstart=Ie=>{re(Ie)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,_.sA)(Ie))},this._options=Object.assign(Object.assign({},o),oe),this.modalityDetected=this._modality.pipe((0,J.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ie.x)()),j.isBrowser&&N.runOutsideAngular(()=>{te.addEventListener("keydown",this._onKeydown,l),te.addEventListener("mousedown",this._onMousedown,l),te.addEventListener("touchstart",this._onTouchstart,l)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,l),document.removeEventListener("mousedown",this._onMousedown,l),document.removeEventListener("touchstart",this._onTouchstart,l))}}return Te.\u0275fac=function(j){return new(j||Te)(b.LFG(_.t4),b.LFG(b.R0b),b.LFG(e.K0),b.LFG(r,8))},Te.\u0275prov=b.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const i=new b.OlP("liveAnnouncerElement",{providedIn:"root",factory:function t(){return null}}),n=new b.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let a=(()=>{class Te{constructor(j,N,te,oe){this._ngZone=N,this._defaultOptions=oe,this._document=te,this._liveElement=j||this._createLiveElement()}announce(j,...N){const te=this._defaultOptions;let oe,Ie;return 1===N.length&&"number"==typeof N[0]?Ie=N[0]:[oe,Ie]=N,this.clear(),clearTimeout(this._previousTimeout),oe||(oe=te&&te.politeness?te.politeness:"polite"),null==Ie&&te&&(Ie=te.duration),this._liveElement.setAttribute("aria-live",oe),this._ngZone.runOutsideAngular(()=>new Promise(ct=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=j,ct(),"number"==typeof Ie&&(this._previousTimeout=setTimeout(()=>this.clear(),Ie))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var j;clearTimeout(this._previousTimeout),null===(j=this._liveElement)||void 0===j||j.remove(),this._liveElement=null}_createLiveElement(){const j="cdk-live-announcer-element",N=this._document.getElementsByClassName(j),te=this._document.createElement("div");for(let oe=0;oe{class Te{constructor(j,N,te,oe){this._elementRef=j,this._liveAnnouncer=N,this._contentObserver=te,this._ngZone=oe,this._politeness="polite"}get politeness(){return this._politeness}set politeness(j){this._politeness="off"===j||"assertive"===j?j:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const N=this._elementRef.nativeElement.textContent;N!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(N,this._politeness),this._previousAnnouncedText=N)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Te.\u0275fac=function(j){return new(j||Te)(b.Y36(b.SBq),b.Y36(a),b.Y36(Ne.yq),b.Y36(b.R0b))},Te.\u0275dir=b.lG2({type:Te,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Te})();const h=new b.OlP("cdk-focus-monitor-default-options"),x=(0,_.i$)({passive:!0,capture:!0});let We=(()=>{class Te{constructor(j,N,te,oe,Ie){this._ngZone=j,this._platform=N,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 w.xQ,this._rootNodeFocusAndBlurListener=ct=>{const bt=(0,_.sA)(ct),xt="focus"===ct.type?this._onFocus:this._onBlur;for(let Yt=bt;Yt;Yt=Yt.parentElement)xt.call(this,ct,Yt)},this._document=oe,this._detectionMode=(null==Ie?void 0:Ie.detectionMode)||0}monitor(j,N=!1){const te=(0,X.fI)(j);if(!this._platform.isBrowser||1!==te.nodeType)return(0,E.of)(null);const oe=(0,_.kV)(te)||this._getDocument(),Ie=this._elementInfo.get(te);if(Ie)return N&&(Ie.checkChildren=!0),Ie.subject;const ct={checkChildren:N,subject:new w.xQ,rootNode:oe};return this._elementInfo.set(te,ct),this._registerGlobalListeners(ct),ct.subject}stopMonitoring(j){const N=(0,X.fI)(j),te=this._elementInfo.get(N);te&&(te.subject.complete(),this._setClasses(N),this._elementInfo.delete(N),this._removeGlobalListeners(te))}focusVia(j,N,te){const oe=(0,X.fI)(j);oe===this._getDocument().activeElement?this._getClosestElementsInfo(oe).forEach(([ct,bt])=>this._originChanged(ct,N,bt)):(this._setOrigin(N),"function"==typeof oe.focus&&oe.focus(te))}ngOnDestroy(){this._elementInfo.forEach((j,N)=>this.stopMonitoring(N))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(j){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(j)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(j){return 1===this._detectionMode||!!(null==j?void 0:j.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(j,N){j.classList.toggle("cdk-focused",!!N),j.classList.toggle("cdk-touch-focused","touch"===N),j.classList.toggle("cdk-keyboard-focused","keyboard"===N),j.classList.toggle("cdk-mouse-focused","mouse"===N),j.classList.toggle("cdk-program-focused","program"===N)}_setOrigin(j,N=!1){this._ngZone.runOutsideAngular(()=>{this._origin=j,this._originFromTouchInteraction="touch"===j&&N,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(j,N){const te=this._elementInfo.get(N),oe=(0,_.sA)(j);!te||!te.checkChildren&&N!==oe||this._originChanged(N,this._getFocusOrigin(oe),te)}_onBlur(j,N){const te=this._elementInfo.get(N);!te||te.checkChildren&&j.relatedTarget instanceof Node&&N.contains(j.relatedTarget)||(this._setClasses(N),this._emitOrigin(te.subject,null))}_emitOrigin(j,N){this._ngZone.run(()=>j.next(N))}_registerGlobalListeners(j){if(!this._platform.isBrowser)return;const N=j.rootNode,te=this._rootNodeFocusListenerCount.get(N)||0;te||this._ngZone.runOutsideAngular(()=>{N.addEventListener("focus",this._rootNodeFocusAndBlurListener,x),N.addEventListener("blur",this._rootNodeFocusAndBlurListener,x)}),this._rootNodeFocusListenerCount.set(N,te+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ge.R)(this._stopInputModalityDetector)).subscribe(oe=>{this._setOrigin(oe,!0)}))}_removeGlobalListeners(j){const N=j.rootNode;if(this._rootNodeFocusListenerCount.has(N)){const te=this._rootNodeFocusListenerCount.get(N);te>1?this._rootNodeFocusListenerCount.set(N,te-1):(N.removeEventListener("focus",this._rootNodeFocusAndBlurListener,x),N.removeEventListener("blur",this._rootNodeFocusAndBlurListener,x),this._rootNodeFocusListenerCount.delete(N))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(j,N,te){this._setClasses(j,N),this._emitOrigin(te.subject,N),this._lastFocusOrigin=N}_getClosestElementsInfo(j){const N=[];return this._elementInfo.forEach((te,oe)=>{(oe===j||te.checkChildren&&oe.contains(j))&&N.push([oe,te])}),N}}return Te.\u0275fac=function(j){return new(j||Te)(b.LFG(b.R0b),b.LFG(_.t4),b.LFG(s),b.LFG(e.K0,8),b.LFG(h,8))},Te.\u0275prov=b.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),At=(()=>{class Te{constructor(j,N){this._elementRef=j,this._focusMonitor=N,this.cdkFocusChange=new b.vpe}ngAfterViewInit(){const j=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(j,1===j.nodeType&&j.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(N=>this.cdkFocusChange.emit(N))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Te.\u0275fac=function(j){return new(j||Te)(b.Y36(b.SBq),b.Y36(We))},Te.\u0275dir=b.lG2({type:Te,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Te})();const Ht="cdk-high-contrast-black-on-white",lt="cdk-high-contrast-white-on-black",Ut="cdk-high-contrast-active";let mt=(()=>{class Te{constructor(j,N){this._platform=j,this._document=N}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const j=this._document.createElement("div");j.style.backgroundColor="rgb(1,2,3)",j.style.position="absolute",this._document.body.appendChild(j);const N=this._document.defaultView||window,te=N&&N.getComputedStyle?N.getComputedStyle(j):null,oe=(te&&te.backgroundColor||"").replace(/ /g,"");switch(j.remove(),oe){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const j=this._document.body.classList;j.remove(Ut),j.remove(Ht),j.remove(lt),this._hasCheckedHighContrastMode=!0;const N=this.getHighContrastMode();1===N?(j.add(Ut),j.add(Ht)):2===N&&(j.add(Ut),j.add(lt))}}}return Te.\u0275fac=function(j){return new(j||Te)(b.LFG(_.t4),b.LFG(e.K0))},Te.\u0275prov=b.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),Lt=(()=>{class Te{constructor(j){j._applyBodyHighContrastModeCssClasses()}}return Te.\u0275fac=function(j){return new(j||Te)(b.LFG(mt))},Te.\u0275mod=b.oAB({type:Te}),Te.\u0275inj=b.cJS({imports:[[_.ud,Ne.Q8]]}),Te})()},50226:(Xe,_e,p)=>{"use strict";p.d(_e,{vT:()=>O,Is:()=>E});var e=p(5e3),b=p(69808);const _=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,e.f3M)(b.K0)}}),g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let E=(()=>{class S{constructor(B){if(this.value="ltr",this.change=new e.vpe,B){const J=B.documentElement?B.documentElement.dir:null;this.value=function A(S){const m=(null==S?void 0:S.toLowerCase())||"";return"auto"===m&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?g.test(navigator.language)?"rtl":"ltr":"rtl"===m?"rtl":"ltr"}((B.body?B.body.dir:null)||J||"ltr")}}ngOnDestroy(){this.change.complete()}}return S.\u0275fac=function(B){return new(B||S)(e.LFG(_,8))},S.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),O=(()=>{class S{}return S.\u0275fac=function(B){return new(B||S)},S.\u0275mod=e.oAB({type:S}),S.\u0275inj=e.cJS({}),S})()},69287:(Xe,_e,p)=>{"use strict";p.d(_e,{i3:()=>A,TU:()=>w,Iq:()=>E});var e=p(69808),b=p(5e3);class _{constructor(O,S){this._document=S;const m=this._textarea=this._document.createElement("textarea"),B=m.style;B.position="fixed",B.top=B.opacity="0",B.left="-999em",m.setAttribute("aria-hidden","true"),m.value=O,this._document.body.appendChild(m)}copy(){const O=this._textarea;let S=!1;try{if(O){const m=this._document.activeElement;O.select(),O.setSelectionRange(0,O.value.length),S=this._document.execCommand("copy"),m&&m.focus()}}catch(m){}return S}destroy(){const O=this._textarea;O&&(O.remove(),this._textarea=void 0)}}let w=(()=>{class C{constructor(S){this._document=S}copy(S){const m=this.beginCopy(S),B=m.copy();return m.destroy(),B}beginCopy(S){return new _(S,this._document)}}return C.\u0275fac=function(S){return new(S||C)(b.LFG(e.K0))},C.\u0275prov=b.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const g=new b.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let A=(()=>{class C{constructor(S,m,B){this._clipboard=S,this._ngZone=m,this.text="",this.attempts=1,this.copied=new b.vpe,this._pending=new Set,B&&null!=B.attempts&&(this.attempts=B.attempts)}copy(S=this.attempts){if(S>1){let m=S;const B=this._clipboard.beginCopy(this.text);this._pending.add(B);const L=()=>{const J=B.copy();J||!--m||this._destroyed?(this._currentTimeout=null,this._pending.delete(B),B.destroy(),this.copied.emit(J)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(L,1))};L()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(S=>S.destroy()),this._pending.clear(),this._destroyed=!0}}return C.\u0275fac=function(S){return new(S||C)(b.Y36(w),b.Y36(b.R0b),b.Y36(g,8))},C.\u0275dir=b.lG2({type:C,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(S,m){1&S&&b.NdJ("click",function(){return m.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),C})(),E=(()=>{class C{}return C.\u0275fac=function(S){return new(S||C)},C.\u0275mod=b.oAB({type:C}),C.\u0275inj=b.cJS({}),C})()},63191:(Xe,_e,p)=>{"use strict";p.d(_e,{t6:()=>w,Eq:()=>g,Ig:()=>b,HM:()=>A,fI:()=>E,su:()=>_,du:()=>C});var e=p(5e3);function b(O){return null!=O&&"false"!=`${O}`}function _(O,S=0){return w(O)?Number(O):S}function w(O){return!isNaN(parseFloat(O))&&!isNaN(Number(O))}function g(O){return Array.isArray(O)?O:[O]}function A(O){return null==O?"":"string"==typeof O?O:`${O}px`}function E(O){return O instanceof e.SBq?O.nativeElement:O}function C(O,S=/\s+/){const m=[];if(null!=O){const B=Array.isArray(O)?O:`${O}`.split(S);for(const L of B){const J=`${L}`.trim();J&&m.push(J)}}return m}},20449:(Xe,_e,p)=>{"use strict";p.d(_e,{P3:()=>E,o2:()=>g,Ov:()=>S,A8:()=>B,yy:()=>C,eX:()=>O,k:()=>L,Z9:()=>A});var e=p(54715),b=p(21086),_=p(8929),w=p(5e3);class g{}function A(J){return J&&"function"==typeof J.connect}class E extends g{constructor(ie){super(),this._data=ie}connect(){return(0,e.b)(this._data)?this._data:(0,b.of)(this._data)}disconnect(){}}class C{applyChanges(ie,ge,X,Ne,ue){ie.forEachOperation((Oe,T,Z)=>{let W,Y;if(null==Oe.previousIndex){const ee=X(Oe,T,Z);W=ge.createEmbeddedView(ee.templateRef,ee.context,ee.index),Y=1}else null==Z?(ge.remove(T),Y=3):(W=ge.get(T),ge.move(W,Z),Y=2);ue&&ue({context:null==W?void 0:W.context,operation:Y,record:Oe})})}detach(){}}class O{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(ie,ge,X,Ne,ue){ie.forEachOperation((Oe,T,Z)=>{let W,Y;null==Oe.previousIndex?(W=this._insertView(()=>X(Oe,T,Z),Z,ge,Ne(Oe)),Y=W?1:0):null==Z?(this._detachAndCacheView(T,ge),Y=3):(W=this._moveView(T,Z,ge,Ne(Oe)),Y=2),ue&&ue({context:null==W?void 0:W.context,operation:Y,record:Oe})})}detach(){for(const ie of this._viewCache)ie.destroy();this._viewCache=[]}_insertView(ie,ge,X,Ne){const ue=this._insertViewFromCache(ge,X);if(ue)return void(ue.context.$implicit=Ne);const Oe=ie();return X.createEmbeddedView(Oe.templateRef,Oe.context,Oe.index)}_detachAndCacheView(ie,ge){const X=ge.detach(ie);this._maybeCacheView(X,ge)}_moveView(ie,ge,X,Ne){const ue=X.get(ie);return X.move(ue,ge),ue.context.$implicit=Ne,ue}_maybeCacheView(ie,ge){if(this._viewCache.lengththis._markSelected(Ne)):this._markSelected(ge[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...ie){this._verifyValueAssignment(ie),ie.forEach(ge=>this._markSelected(ge)),this._emitChangeEvent()}deselect(...ie){this._verifyValueAssignment(ie),ie.forEach(ge=>this._unmarkSelected(ge)),this._emitChangeEvent()}toggle(ie){this.isSelected(ie)?this.deselect(ie):this.select(ie)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(ie){return this._selection.has(ie)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ie){this._multiple&&this.selected&&this._selected.sort(ie)}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(ie){this.isSelected(ie)||(this._multiple||this._unmarkAll(),this._selection.add(ie),this._emitChanges&&this._selectedToEmit.push(ie))}_unmarkSelected(ie){this.isSelected(ie)&&(this._selection.delete(ie),this._emitChanges&&this._deselectedToEmit.push(ie))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ie=>this._unmarkSelected(ie))}_verifyValueAssignment(ie){}}let B=(()=>{class J{constructor(){this._listeners=[]}notify(ge,X){for(let Ne of this._listeners)Ne(ge,X)}listen(ge){return this._listeners.push(ge),()=>{this._listeners=this._listeners.filter(X=>ge!==X)}}ngOnDestroy(){this._listeners=[]}}return J.\u0275fac=function(ge){return new(ge||J)},J.\u0275prov=w.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();const L=new w.OlP("_ViewRepeater")},44409:(Xe,_e,p)=>{"use strict";p.d(_e,{Zt:()=>Te,Wj:()=>x,_t:()=>Ge,bA:()=>he});var e=p(5e3),b=p(69808),_=p(70925),w=p(63191),g=p(15664),A=p(8929),E=p(42654),C=p(61715),O=p(90352),S=p(56498),m=p(36787),B=p(7625),L=p(1059),J=p(24850),ie=p(72986),ge=p(22868),X=p(87545),Ne=p(53435),ue=p(50226);function Oe(j,N,te){for(let oe in N)if(N.hasOwnProperty(oe)){const Ie=N[oe];Ie?j.setProperty(oe,Ie,(null==te?void 0:te.has(oe))?"important":""):j.removeProperty(oe)}return j}function T(j,N){const te=N?"":"none";Oe(j.style,{"touch-action":N?"":"none","-webkit-user-drag":N?"":"none","-webkit-tap-highlight-color":N?"":"transparent","user-select":te,"-ms-user-select":te,"-webkit-user-select":te,"-moz-user-select":te})}function Z(j,N,te){Oe(j.style,{position:N?"":"fixed",top:N?"":"0",opacity:N?"":"0",left:N?"":"-999em"},te)}function W(j,N){return N&&"none"!=N?j+" "+N:j}function Y(j){const N=j.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(j)*N}function ce(j,N){return j.getPropertyValue(N).split(",").map(oe=>oe.trim())}function le(j){const N=j.getBoundingClientRect();return{top:N.top,right:N.right,bottom:N.bottom,left:N.left,width:N.width,height:N.height,x:N.x,y:N.y}}function Pe(j,N,te){const{top:oe,bottom:Ie,left:ct,right:bt}=j;return te>=oe&&te<=Ie&&N>=ct&&N<=bt}function Fe(j,N,te){j.top+=N,j.bottom=j.top+j.height,j.left+=te,j.right=j.left+j.width}function ze(j,N,te,oe){const{top:Ie,right:ct,bottom:bt,left:xt,width:Yt,height:It}=j,Rt=Yt*N,Et=It*N;return oe>Ie-Et&&oext-Rt&&te{this.positions.set(te,{scrollPosition:{top:te.scrollTop,left:te.scrollLeft},clientRect:le(te)})})}handleScroll(N){const te=(0,_.sA)(N),oe=this.positions.get(te);if(!oe)return null;const Ie=oe.scrollPosition;let ct,bt;if(te===this._document){const It=this._viewportRuler.getViewportScrollPosition();ct=It.top,bt=It.left}else ct=te.scrollTop,bt=te.scrollLeft;const xt=Ie.top-ct,Yt=Ie.left-bt;return this.positions.forEach((It,Rt)=>{It.clientRect&&te!==Rt&&te.contains(Rt)&&Fe(It.clientRect,xt,Yt)}),Ie.top=ct,Ie.left=bt,{top:xt,left:Yt}}}function Ue(j){const N=j.cloneNode(!0),te=N.querySelectorAll("[id]"),oe=j.nodeName.toLowerCase();N.removeAttribute("id");for(let Ie=0;Ie{if(this.beforeStarted.next(),this._handles.length){const Yt=this._handles.find(It=>xt.target&&(xt.target===It||It.contains(xt.target)));Yt&&!this._disabledHandles.has(Yt)&&!this.disabled&&this._initializeDragSequence(Yt,xt)}else this.disabled||this._initializeDragSequence(this._rootElement,xt)},this._pointerMove=xt=>{const Yt=this._getPointerPositionOnPage(xt);if(!this._hasStartedDragging){if(Math.abs(Yt.x-this._pickupPositionOnPage.x)+Math.abs(Yt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Jt=Date.now()>=this._dragStartTime+this._getDragStartDelay(xt),ai=this._dropContainer;if(!Jt)return void this._endDragSequence(xt);(!ai||!ai.isDragging()&&!ai.isReceiving())&&(xt.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(xt)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),xt.preventDefault();const It=this._getConstrainedPointerPosition(Yt);if(this._hasMoved=!0,this._lastKnownPointerPosition=Yt,this._updatePointerDirectionDelta(It),this._dropContainer)this._updateActiveDropContainer(It,Yt);else{const Rt=this._activeTransform;Rt.x=It.x-this._pickupPositionOnPage.x+this._passiveTransform.x,Rt.y=It.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(Rt.x,Rt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:It,event:xt,distance:this._getDragDistance(It),delta:this._pointerDirectionDelta})})},this._pointerUp=xt=>{this._endDragSequence(xt)},this.withRootElement(N).withParent(te.parentDragRef||null),this._parentPositions=new ae(oe,ct),bt.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(N){const te=(0,w.Ig)(N);te!==this._disabled&&(this._disabled=te,this._toggleNativeDragInteractions(),this._handles.forEach(oe=>T(oe,te)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(N){this._handles=N.map(oe=>(0,w.fI)(oe)),this._handles.forEach(oe=>T(oe,this.disabled)),this._toggleNativeDragInteractions();const te=new Set;return this._disabledHandles.forEach(oe=>{this._handles.indexOf(oe)>-1&&te.add(oe)}),this._disabledHandles=te,this}withPreviewTemplate(N){return this._previewTemplate=N,this}withPlaceholderTemplate(N){return this._placeholderTemplate=N,this}withRootElement(N){const te=(0,w.fI)(N);return te!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{te.addEventListener("mousedown",this._pointerDown,Ae),te.addEventListener("touchstart",this._pointerDown,me)}),this._initialTransform=void 0,this._rootElement=te),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(N){return this._boundaryElement=N?(0,w.fI)(N):null,this._resizeSubscription.unsubscribe(),N&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(N){return this._parentDragRef=N,this}dispose(){var N,te;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(N=this._rootElement)||void 0===N||N.remove()),null===(te=this._anchor)||void 0===te||te.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(N){!this._disabledHandles.has(N)&&this._handles.indexOf(N)>-1&&(this._disabledHandles.add(N),T(N,!0))}enableHandle(N){this._disabledHandles.has(N)&&(this._disabledHandles.delete(N),T(N,this.disabled))}withDirection(N){return this._direction=N,this}_withDropContainer(N){this._dropContainer=N}getFreeDragPosition(){const N=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:N.x,y:N.y}}setFreeDragPosition(N){return this._activeTransform={x:0,y:0},this._passiveTransform.x=N.x,this._passiveTransform.y=N.y,this._dropContainer||this._applyRootElementTransform(N.x,N.y),this}withPreviewContainer(N){return this._previewContainer=N,this}_sortFromLastPointerPosition(){const N=this._lastKnownPointerPosition;N&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(N),N)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var N,te;null===(N=this._preview)||void 0===N||N.remove(),null===(te=this._previewRef)||void 0===te||te.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var N,te;null===(N=this._placeholder)||void 0===N||N.remove(),null===(te=this._placeholderRef)||void 0===te||te.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(N){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(N),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const te=this._getPointerPositionOnPage(N);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(te),dropPoint:te})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(N){nt(N)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const te=this._dropContainer;if(te){const oe=this._rootElement,Ie=oe.parentNode,ct=this._placeholder=this._createPlaceholderElement(),bt=this._anchor=this._anchor||this._document.createComment(""),xt=this._getShadowRoot();Ie.insertBefore(bt,oe),this._initialTransform=oe.style.transform||"",this._preview=this._createPreviewElement(),Z(oe,!1,pe),this._document.body.appendChild(Ie.replaceChild(ct,oe)),this._getPreviewInsertionPoint(Ie,xt).appendChild(this._preview),this.started.next({source:this}),te.start(),this._initialContainer=te,this._initialIndex=te.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(te?te.getScrollableParents():[])}_initializeDragSequence(N,te){this._parentDragRef&&te.stopPropagation();const oe=this.isDragging(),Ie=nt(te),ct=!Ie&&0!==te.button,bt=this._rootElement,xt=(0,_.sA)(te),Yt=!Ie&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),It=Ie?(0,g.yG)(te):(0,g.X6)(te);if(xt&&xt.draggable&&"mousedown"===te.type&&te.preventDefault(),oe||ct||Yt||It)return;if(this._handles.length){const Bt=bt.style;this._rootElementTapHighlight=Bt.webkitTapHighlightColor||"",Bt.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Bt=>this._updateOnScroll(Bt)),this._boundaryElement&&(this._boundaryRect=le(this._boundaryElement));const Rt=this._previewTemplate;this._pickupPositionInElement=Rt&&Rt.template&&!Rt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(N,te);const Et=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(te);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Et.x,y:Et.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,te)}_cleanupDragArtifacts(N){Z(this._rootElement,!0,pe),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const te=this._dropContainer,oe=te.getItemIndex(this),Ie=this._getPointerPositionOnPage(N),ct=this._getDragDistance(Ie),bt=te._isOverContainer(Ie.x,Ie.y);this.ended.next({source:this,distance:ct,dropPoint:Ie}),this.dropped.next({item:this,currentIndex:oe,previousIndex:this._initialIndex,container:te,previousContainer:this._initialContainer,isPointerOverContainer:bt,distance:ct,dropPoint:Ie}),te.drop(this,oe,this._initialIndex,this._initialContainer,bt,ct,Ie),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:N,y:te},{x:oe,y:Ie}){let ct=this._initialContainer._getSiblingContainerFromPosition(this,N,te);!ct&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(N,te)&&(ct=this._initialContainer),ct&&ct!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ct,this._dropContainer.enter(this,N,te,ct===this._initialContainer&&ct.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ct,currentIndex:ct.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(oe,Ie),this._dropContainer._sortItem(this,N,te,this._pointerDirectionDelta),this._applyPreviewTransform(N-this._pickupPositionInElement.x,te-this._pickupPositionInElement.y))}_createPreviewElement(){const N=this._previewTemplate,te=this.previewClass,oe=N?N.template:null;let Ie;if(oe&&N){const ct=N.matchSize?this._rootElement.getBoundingClientRect():null,bt=N.viewContainer.createEmbeddedView(oe,N.context);bt.detectChanges(),Ie=ke(bt,this._document),this._previewRef=bt,N.matchSize?H(Ie,ct):Ie.style.transform=$e(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const ct=this._rootElement;Ie=Ue(ct),H(Ie,ct.getBoundingClientRect()),this._initialTransform&&(Ie.style.transform=this._initialTransform)}return Oe(Ie.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},pe),T(Ie,!1),Ie.classList.add("cdk-drag-preview"),Ie.setAttribute("dir",this._direction),te&&(Array.isArray(te)?te.forEach(ct=>Ie.classList.add(ct)):Ie.classList.add(te)),Ie}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const N=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(N.left,N.top);const te=function ee(j){const N=getComputedStyle(j),te=ce(N,"transition-property"),oe=te.find(xt=>"transform"===xt||"all"===xt);if(!oe)return 0;const Ie=te.indexOf(oe),ct=ce(N,"transition-duration"),bt=ce(N,"transition-delay");return Y(ct[Ie])+Y(bt[Ie])}(this._preview);return 0===te?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(oe=>{const Ie=bt=>{var xt;(!bt||(0,_.sA)(bt)===this._preview&&"transform"===bt.propertyName)&&(null===(xt=this._preview)||void 0===xt||xt.removeEventListener("transitionend",Ie),oe(),clearTimeout(ct))},ct=setTimeout(Ie,1.5*te);this._preview.addEventListener("transitionend",Ie)}))}_createPlaceholderElement(){const N=this._placeholderTemplate,te=N?N.template:null;let oe;return te?(this._placeholderRef=N.viewContainer.createEmbeddedView(te,N.context),this._placeholderRef.detectChanges(),oe=ke(this._placeholderRef,this._document)):oe=Ue(this._rootElement),oe.classList.add("cdk-drag-placeholder"),oe}_getPointerPositionInElement(N,te){const oe=this._rootElement.getBoundingClientRect(),Ie=N===this._rootElement?null:N,ct=Ie?Ie.getBoundingClientRect():oe,bt=nt(te)?te.targetTouches[0]:te,xt=this._getViewportScrollPosition();return{x:ct.left-oe.left+(bt.pageX-ct.left-xt.left),y:ct.top-oe.top+(bt.pageY-ct.top-xt.top)}}_getPointerPositionOnPage(N){const te=this._getViewportScrollPosition(),oe=nt(N)?N.touches[0]||N.changedTouches[0]||{pageX:0,pageY:0}:N,Ie=oe.pageX-te.left,ct=oe.pageY-te.top;if(this._ownerSVGElement){const bt=this._ownerSVGElement.getScreenCTM();if(bt){const xt=this._ownerSVGElement.createSVGPoint();return xt.x=Ie,xt.y=ct,xt.matrixTransform(bt.inverse())}}return{x:Ie,y:ct}}_getConstrainedPointerPosition(N){const te=this._dropContainer?this._dropContainer.lockAxis:null;let{x:oe,y:Ie}=this.constrainPosition?this.constrainPosition(N,this):N;if("x"===this.lockAxis||"x"===te?Ie=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===te)&&(oe=this._pickupPositionOnPage.x),this._boundaryRect){const{x:ct,y:bt}=this._pickupPositionInElement,xt=this._boundaryRect,Yt=this._previewRect,It=xt.top+bt,Rt=xt.bottom-(Yt.height-bt);oe=Je(oe,xt.left+ct,xt.right-(Yt.width-ct)),Ie=Je(Ie,It,Rt)}return{x:oe,y:Ie}}_updatePointerDirectionDelta(N){const{x:te,y:oe}=N,Ie=this._pointerDirectionDelta,ct=this._pointerPositionAtLastDirectionChange,bt=Math.abs(te-ct.x),xt=Math.abs(oe-ct.y);return bt>this._config.pointerDirectionChangeThreshold&&(Ie.x=te>ct.x?1:-1,ct.x=te),xt>this._config.pointerDirectionChangeThreshold&&(Ie.y=oe>ct.y?1:-1,ct.y=oe),Ie}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const N=this._handles.length>0||!this.isDragging();N!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=N,T(this._rootElement,N))}_removeRootElementListeners(N){N.removeEventListener("mousedown",this._pointerDown,Ae),N.removeEventListener("touchstart",this._pointerDown,me)}_applyRootElementTransform(N,te){const oe=$e(N,te),Ie=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Ie.transform&&"none"!=Ie.transform?Ie.transform:""),Ie.transform=W(oe,this._initialTransform)}_applyPreviewTransform(N,te){var oe;const Ie=(null===(oe=this._previewTemplate)||void 0===oe?void 0:oe.template)?void 0:this._initialTransform,ct=$e(N,te);this._preview.style.transform=W(ct,Ie)}_getDragDistance(N){const te=this._pickupPositionOnPage;return te?{x:N.x-te.x,y:N.y-te.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:N,y:te}=this._passiveTransform;if(0===N&&0===te||this.isDragging()||!this._boundaryElement)return;const oe=this._boundaryElement.getBoundingClientRect(),Ie=this._rootElement.getBoundingClientRect();if(0===oe.width&&0===oe.height||0===Ie.width&&0===Ie.height)return;const ct=oe.left-Ie.left,bt=Ie.right-oe.right,xt=oe.top-Ie.top,Yt=Ie.bottom-oe.bottom;oe.width>Ie.width?(ct>0&&(N+=ct),bt>0&&(N-=bt)):N=0,oe.height>Ie.height?(xt>0&&(te+=xt),Yt>0&&(te-=Yt)):te=0,(N!==this._passiveTransform.x||te!==this._passiveTransform.y)&&this.setFreeDragPosition({y:te,x:N})}_getDragStartDelay(N){const te=this.dragStartDelay;return"number"==typeof te?te:nt(N)?te.touch:te?te.mouse:0}_updateOnScroll(N){const te=this._parentPositions.handleScroll(N);if(te){const oe=(0,_.sA)(N);this._boundaryRect&&oe!==this._boundaryElement&&oe.contains(this._boundaryElement)&&Fe(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(){const N=this._parentPositions.positions.get(this._document);return N?N.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,_.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(N,te){const oe=this._previewContainer||"global";if("parent"===oe)return N;if("global"===oe){const Ie=this._document;return te||Ie.fullscreenElement||Ie.webkitFullscreenElement||Ie.mozFullScreenElement||Ie.msFullscreenElement||Ie.body}return(0,w.fI)(oe)}}function $e(j,N){return`translate3d(${Math.round(j)}px, ${Math.round(N)}px, 0)`}function Je(j,N,te){return Math.max(N,Math.min(te,j))}function nt(j){return"t"===j.type[0]}function ke(j,N){const te=j.rootNodes;if(1===te.length&&te[0].nodeType===N.ELEMENT_NODE)return te[0];const oe=N.createElement("div");return te.forEach(Ie=>oe.appendChild(Ie)),oe}function H(j,N){j.style.width=`${N.width}px`,j.style.height=`${N.height}px`,j.style.transform=$e(N.left,N.top)}function he(j,N,te){const oe=V(N,j.length-1),Ie=V(te,j.length-1);if(oe===Ie)return;const ct=j[oe],bt=Ie!0,this.sortPredicate=()=>!0,this.beforeStarted=new A.xQ,this.entered=new A.xQ,this.exited=new A.xQ,this.dropped=new A.xQ,this.sorted=new A.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=E.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new A.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,C.F)(0,O.r).pipe((0,B.R)(this._stopScrollTimers)).subscribe(()=>{const bt=this._scrollNode,xt=this.autoScrollStep;1===this._verticalScrollDirection?bt.scrollBy(0,-xt):2===this._verticalScrollDirection&&bt.scrollBy(0,xt),1===this._horizontalScrollDirection?bt.scrollBy(-xt,0):2===this._horizontalScrollDirection&&bt.scrollBy(xt,0)})},this.element=(0,w.fI)(N),this._document=oe,this.withScrollableParents([this.element]),te.registerDropContainer(this),this._parentPositions=new ae(oe,ct)}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(N,te,oe,Ie){let ct;this._draggingStarted(),null==Ie?(ct=this.sortingDisabled?this._draggables.indexOf(N):-1,-1===ct&&(ct=this._getItemIndexFromPointerPosition(N,te,oe))):ct=Ie;const bt=this._activeDraggables,xt=bt.indexOf(N),Yt=N.getPlaceholderElement();let It=bt[ct];if(It===N&&(It=bt[ct+1]),!It&&(null==ct||-1===ct||ct-1&&bt.splice(xt,1),It&&!this._dragDropRegistry.isDragging(It)){const Rt=It.getRootElement();Rt.parentElement.insertBefore(Yt,Rt),bt.splice(ct,0,N)}else(0,w.fI)(this.element).appendChild(Yt),bt.push(N);Yt.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:N,container:this,currentIndex:this.getItemIndex(N)})}exit(N){this._reset(),this.exited.next({item:N,container:this})}drop(N,te,oe,Ie,ct,bt,xt){this._reset(),this.dropped.next({item:N,currentIndex:te,previousIndex:oe,container:this,previousContainer:Ie,isPointerOverContainer:ct,distance:bt,dropPoint:xt})}withItems(N){const te=this._draggables;return this._draggables=N,N.forEach(oe=>oe._withDropContainer(this)),this.isDragging()&&(te.filter(Ie=>Ie.isDragging()).every(Ie=>-1===N.indexOf(Ie))?this._reset():this._cacheItems()),this}withDirection(N){return this._direction=N,this}connectedTo(N){return this._siblings=N.slice(),this}withOrientation(N){return this._orientation=N,this}withScrollableParents(N){const te=(0,w.fI)(this.element);return this._scrollableElements=-1===N.indexOf(te)?[te,...N]:N.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(N){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(oe=>oe.drag===N):this._draggables.indexOf(N)}isReceiving(){return this._activeSiblings.size>0}_sortItem(N,te,oe,Ie){if(this.sortingDisabled||!this._clientRect||!ze(this._clientRect,.05,te,oe))return;const ct=this._itemPositions,bt=this._getItemIndexFromPointerPosition(N,te,oe,Ie);if(-1===bt&&ct.length>0)return;const xt="horizontal"===this._orientation,Yt=ct.findIndex(bi=>bi.drag===N),It=ct[bt],Et=It.clientRect,Bt=Yt>bt?1:-1,Jt=this._getItemOffsetPx(ct[Yt].clientRect,Et,Bt),ai=this._getSiblingOffsetPx(Yt,ct,Bt),mi=ct.slice();he(ct,Yt,bt),this.sorted.next({previousIndex:Yt,currentIndex:bt,container:this,item:N}),ct.forEach((bi,yi)=>{if(mi[yi]===bi)return;const Wi=bi.drag===N,gn=Wi?Jt:ai,cn=Wi?N.getPlaceholderElement():bi.drag.getRootElement();bi.offset+=gn,xt?(cn.style.transform=W(`translate3d(${Math.round(bi.offset)}px, 0, 0)`,bi.initialTransform),Fe(bi.clientRect,0,gn)):(cn.style.transform=W(`translate3d(0, ${Math.round(bi.offset)}px, 0)`,bi.initialTransform),Fe(bi.clientRect,gn,0))}),this._previousSwap.overlaps=Pe(Et,te,oe),this._previousSwap.drag=It.drag,this._previousSwap.delta=xt?Ie.x:Ie.y}_startScrollingIfNecessary(N,te){if(this.autoScrollDisabled)return;let oe,Ie=0,ct=0;if(this._parentPositions.positions.forEach((bt,xt)=>{xt===this._document||!bt.clientRect||oe||ze(bt.clientRect,.05,N,te)&&([Ie,ct]=function re(j,N,te,oe){const Ie=Ye(N,oe),ct=ye(N,te);let bt=0,xt=0;if(Ie){const Yt=j.scrollTop;1===Ie?Yt>0&&(bt=1):j.scrollHeight-Yt>j.clientHeight&&(bt=2)}if(ct){const Yt=j.scrollLeft;1===ct?Yt>0&&(xt=1):j.scrollWidth-Yt>j.clientWidth&&(xt=2)}return[bt,xt]}(xt,bt.clientRect,N,te),(Ie||ct)&&(oe=xt))}),!Ie&&!ct){const{width:bt,height:xt}=this._viewportRuler.getViewportSize(),Yt={width:bt,height:xt,top:0,right:bt,bottom:xt,left:0};Ie=Ye(Yt,te),ct=ye(Yt,N),oe=window}oe&&(Ie!==this._verticalScrollDirection||ct!==this._horizontalScrollDirection||oe!==this._scrollNode)&&(this._verticalScrollDirection=Ie,this._horizontalScrollDirection=ct,this._scrollNode=oe,(Ie||ct)&&oe?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const N=(0,w.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=N.msScrollSnapType||N.scrollSnapType||"",N.scrollSnapType=N.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const N=(0,w.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(N).clientRect}_cacheItemPositions(){const N="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(te=>{const oe=te.getVisibleElement();return{drag:te,offset:0,initialTransform:oe.style.transform||"",clientRect:le(oe)}}).sort((te,oe)=>N?te.clientRect.left-oe.clientRect.left:te.clientRect.top-oe.clientRect.top)}_reset(){this._isDragging=!1;const N=(0,w.fI)(this.element).style;N.scrollSnapType=N.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(te=>{var oe;const Ie=te.getRootElement();if(Ie){const ct=null===(oe=this._itemPositions.find(bt=>bt.drag===te))||void 0===oe?void 0:oe.initialTransform;Ie.style.transform=ct||""}}),this._siblings.forEach(te=>te._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(N,te,oe){const Ie="horizontal"===this._orientation,ct=te[N].clientRect,bt=te[N+-1*oe];let xt=ct[Ie?"width":"height"]*oe;if(bt){const Yt=Ie?"left":"top",It=Ie?"right":"bottom";-1===oe?xt-=bt.clientRect[Yt]-ct[It]:xt+=ct[Yt]-bt.clientRect[It]}return xt}_getItemOffsetPx(N,te,oe){const Ie="horizontal"===this._orientation;let ct=Ie?te.left-N.left:te.top-N.top;return-1===oe&&(ct+=Ie?te.width-N.width:te.height-N.height),ct}_shouldEnterAsFirstChild(N,te){if(!this._activeDraggables.length)return!1;const oe=this._itemPositions,Ie="horizontal"===this._orientation;if(oe[0].drag!==this._activeDraggables[0]){const bt=oe[oe.length-1].clientRect;return Ie?N>=bt.right:te>=bt.bottom}{const bt=oe[0].clientRect;return Ie?N<=bt.left:te<=bt.top}}_getItemIndexFromPointerPosition(N,te,oe,Ie){const ct="horizontal"===this._orientation,bt=this._itemPositions.findIndex(({drag:xt,clientRect:Yt})=>{if(xt===N)return!1;if(Ie){const It=ct?Ie.x:Ie.y;if(xt===this._previousSwap.drag&&this._previousSwap.overlaps&&It===this._previousSwap.delta)return!1}return ct?te>=Math.floor(Yt.left)&&te=Math.floor(Yt.top)&&oeIe._canReceive(N,te,oe))}_canReceive(N,te,oe){if(!this._clientRect||!Pe(this._clientRect,te,oe)||!this.enterPredicate(N,this))return!1;const Ie=this._getShadowRoot().elementFromPoint(te,oe);if(!Ie)return!1;const ct=(0,w.fI)(this.element);return Ie===ct||ct.contains(Ie)}_startReceiving(N,te){const oe=this._activeSiblings;!oe.has(N)&&te.every(Ie=>this.enterPredicate(Ie,this)||this._draggables.indexOf(Ie)>-1)&&(oe.add(N),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(N){this._activeSiblings.delete(N),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(N=>{if(this.isDragging()){const te=this._parentPositions.handleScroll(N);te&&(this._itemPositions.forEach(({clientRect:oe})=>{Fe(oe,te.top,te.left)}),this._itemPositions.forEach(({drag:oe})=>{this._dragDropRegistry.isDragging(oe)&&oe._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const N=(0,_.kV)((0,w.fI)(this.element));this._cachedShadowRoot=N||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const N=this._activeDraggables.filter(te=>te.isDragging());this._siblings.forEach(te=>te._startReceiving(this,N))}}function Ye(j,N){const{top:te,bottom:oe,height:Ie}=j,ct=.05*Ie;return N>=te-ct&&N<=te+ct?1:N>=oe-ct&&N<=oe+ct?2:0}function ye(j,N){const{left:te,right:oe,width:Ie}=j,ct=.05*Ie;return N>=te-ct&&N<=te+ct?1:N>=oe-ct&&N<=oe+ct?2:0}const r=(0,_.i$)({passive:!1,capture:!0});let o=(()=>{class j{constructor(te,oe){this._ngZone=te,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Ie=>Ie.isDragging(),this.pointerMove=new A.xQ,this.pointerUp=new A.xQ,this.scroll=new A.xQ,this._preventDefaultWhileDragging=Ie=>{this._activeDragInstances.length>0&&Ie.preventDefault()},this._persistentTouchmoveListener=Ie=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Ie.preventDefault(),this.pointerMove.next(Ie))},this._document=oe}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,r)})}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,r)}startDragging(te,oe){if(!(this._activeDragInstances.indexOf(te)>-1)&&(this._activeDragInstances.push(te),1===this._activeDragInstances.length)){const Ie=oe.type.startsWith("touch");this._globalListeners.set(Ie?"touchend":"mouseup",{handler:ct=>this.pointerUp.next(ct),options:!0}).set("scroll",{handler:ct=>this.scroll.next(ct),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:r}),Ie||this._globalListeners.set("mousemove",{handler:ct=>this.pointerMove.next(ct),options:r}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ct,bt)=>{this._document.addEventListener(bt,ct.handler,ct.options)})})}}stopDragging(te){const oe=this._activeDragInstances.indexOf(te);oe>-1&&(this._activeDragInstances.splice(oe,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(te){return this._activeDragInstances.indexOf(te)>-1}scrolled(te){const oe=[this.scroll];return te&&te!==this._document&&oe.push(new S.y(Ie=>this._ngZone.runOutsideAngular(()=>{const bt=xt=>{this._activeDragInstances.length&&Ie.next(xt)};return te.addEventListener("scroll",bt,!0),()=>{te.removeEventListener("scroll",bt,!0)}}))),(0,m.T)(...oe)}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,oe)=>{this._document.removeEventListener(oe,te.handler,te.options)}),this._globalListeners.clear()}}return j.\u0275fac=function(te){return new(te||j)(e.LFG(e.R0b),e.LFG(b.K0))},j.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})();const d={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let l=(()=>{class j{constructor(te,oe,Ie,ct){this._document=te,this._ngZone=oe,this._viewportRuler=Ie,this._dragDropRegistry=ct}createDrag(te,oe=d){return new we(te,oe,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(te){return new je(te,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return j.\u0275fac=function(te){return new(te||j)(e.LFG(b.K0),e.LFG(e.R0b),e.LFG(Ne.rL),e.LFG(o))},j.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})();const s=new e.OlP("CDK_DRAG_PARENT"),i=new e.OlP("CdkDropListGroup"),n=new e.OlP("CDK_DRAG_CONFIG");let c=0;const h=new e.OlP("CdkDropList");let x=(()=>{class j{constructor(te,oe,Ie,ct,bt,xt,Yt){this.element=te,this._changeDetectorRef=Ie,this._scrollDispatcher=ct,this._dir=bt,this._group=xt,this._destroyed=new A.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+c++,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=oe.createDropList(te),this._dropListRef.data=this,Yt&&this._assignDefaults(Yt),this._dropListRef.enterPredicate=(It,Rt)=>this.enterPredicate(It.data,Rt.data),this._dropListRef.sortPredicate=(It,Rt,Et)=>this.sortPredicate(It,Rt.data,Et.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),j._dropLists.push(this),xt&&xt._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(te){this._dropListRef.disabled=this._disabled=(0,w.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,oe)=>te._dragRef.getVisibleElement().compareDocumentPosition(oe._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const te=j._dropLists.indexOf(this);te>-1&&j._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,L.O)(this._dir.value),(0,B.R)(this._destroyed)).subscribe(oe=>te.withDirection(oe)),te.beforeStarted.subscribe(()=>{const oe=(0,w.Eq)(this.connectedTo).map(Ie=>"string"==typeof Ie?j._dropLists.find(bt=>bt.id===Ie):Ie);if(this._group&&this._group._items.forEach(Ie=>{-1===oe.indexOf(Ie)&&oe.push(Ie)}),!this._scrollableParentsResolved){const Ie=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(ct=>ct.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Ie),this._scrollableParentsResolved=!0}te.disabled=this.disabled,te.lockAxis=this.lockAxis,te.sortingDisabled=(0,w.Ig)(this.sortingDisabled),te.autoScrollDisabled=(0,w.Ig)(this.autoScrollDisabled),te.autoScrollStep=(0,w.su)(this.autoScrollStep,2),te.connectedTo(oe.filter(Ie=>Ie&&Ie!==this).map(Ie=>Ie._dropListRef)).withOrientation(this.orientation)})}_handleEvents(te){te.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),te.entered.subscribe(oe=>{this.entered.emit({container:this,item:oe.item.data,currentIndex:oe.currentIndex})}),te.exited.subscribe(oe=>{this.exited.emit({container:this,item:oe.item.data}),this._changeDetectorRef.markForCheck()}),te.sorted.subscribe(oe=>{this.sorted.emit({previousIndex:oe.previousIndex,currentIndex:oe.currentIndex,container:this,item:oe.item.data})}),te.dropped.subscribe(oe=>{this.dropped.emit({previousIndex:oe.previousIndex,currentIndex:oe.currentIndex,previousContainer:oe.previousContainer.data,container:oe.container.data,item:oe.item.data,isPointerOverContainer:oe.isPointerOverContainer,distance:oe.distance,dropPoint:oe.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(te){const{lockAxis:oe,draggingDisabled:Ie,sortingDisabled:ct,listAutoScrollDisabled:bt,listOrientation:xt}=te;this.disabled=null!=Ie&&Ie,this.sortingDisabled=null!=ct&&ct,this.autoScrollDisabled=null!=bt&&bt,this.orientation=xt||"vertical",oe&&(this.lockAxis=oe)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(te=>te._dragRef))}}return j._dropLists=[],j.\u0275fac=function(te){return new(te||j)(e.Y36(e.SBq),e.Y36(l),e.Y36(e.sBO),e.Y36(Ne.mF),e.Y36(ue.Is,8),e.Y36(i,12),e.Y36(n,8))},j.\u0275dir=e.lG2({type:j,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(te,oe){2&te&&(e.uIk("id",oe.id),e.ekj("cdk-drop-list-disabled",oe.disabled)("cdk-drop-list-dragging",oe._dropListRef.isDragging())("cdk-drop-list-receiving",oe._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:i,useValue:void 0},{provide:h,useExisting:j}])]}),j})();const We=new e.OlP("CdkDragHandle"),Ht=new e.OlP("CdkDragPlaceholder"),Ut=new e.OlP("CdkDragPreview");let Te=(()=>{class j{constructor(te,oe,Ie,ct,bt,xt,Yt,It,Rt,Et,Bt){this.element=te,this.dropContainer=oe,this._ngZone=ct,this._viewContainerRef=bt,this._dir=Yt,this._changeDetectorRef=Rt,this._selfHandle=Et,this._parentDrag=Bt,this._destroyed=new A.xQ,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 S.y(Jt=>{const ai=this._dragRef.moved.pipe((0,J.U)(mi=>({source:this,pointerPosition:mi.pointerPosition,event:mi.event,delta:mi.delta,distance:mi.distance}))).subscribe(Jt);return()=>{ai.unsubscribe()}}),this._dragRef=It.createDrag(te,{dragStartThreshold:xt&&null!=xt.dragStartThreshold?xt.dragStartThreshold:5,pointerDirectionChangeThreshold:xt&&null!=xt.pointerDirectionChangeThreshold?xt.pointerDirectionChangeThreshold:5,zIndex:null==xt?void 0:xt.zIndex}),this._dragRef.data=this,j._dragInstances.push(this),xt&&this._assignDefaults(xt),oe&&(this._dragRef._withDropContainer(oe._dropListRef),oe.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,w.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()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ie.q)(1),(0,B.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(te){const oe=te.rootElementSelector,Ie=te.freeDragPosition;oe&&!oe.firstChange&&this._updateRootElement(),Ie&&!Ie.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const te=j._dragInstances.indexOf(this);te>-1&&j._dragInstances.splice(te,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var te;const oe=this.element.nativeElement;let Ie=oe;this.rootElementSelector&&(Ie=void 0!==oe.closest?oe.closest(this.rootElementSelector):null===(te=oe.parentElement)||void 0===te?void 0:te.closest(this.rootElementSelector)),this._dragRef.withRootElement(Ie||oe)}_getBoundaryElement(){const te=this.boundaryElement;return te?"string"==typeof te?this.element.nativeElement.closest(te):(0,w.fI)(te):null}_syncInputs(te){te.beforeStarted.subscribe(()=>{if(!te.isDragging()){const oe=this._dir,Ie=this.dragStartDelay,ct=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,bt=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 Ie&&Ie?Ie:(0,w.su)(Ie),te.constrainPosition=this.constrainPosition,te.previewClass=this.previewClass,te.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ct).withPreviewTemplate(bt).withPreviewContainer(this.previewContainer||"global"),oe&&te.withDirection(oe.value)}}),te.beforeStarted.pipe((0,ie.q)(1)).subscribe(()=>{var oe;if(this._parentDrag)return void te.withParent(this._parentDrag._dragRef);let Ie=this.element.nativeElement.parentElement;for(;Ie;){if(Ie.classList.contains("cdk-drag")){te.withParent((null===(oe=j._dragInstances.find(ct=>ct.element.nativeElement===Ie))||void 0===oe?void 0:oe._dragRef)||null);break}Ie=Ie.parentElement}})}_handleEvents(te){te.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),te.released.subscribe(()=>{this.released.emit({source:this})}),te.ended.subscribe(oe=>{this.ended.emit({source:this,distance:oe.distance,dropPoint:oe.dropPoint}),this._changeDetectorRef.markForCheck()}),te.entered.subscribe(oe=>{this.entered.emit({container:oe.container.data,item:this,currentIndex:oe.currentIndex})}),te.exited.subscribe(oe=>{this.exited.emit({container:oe.container.data,item:this})}),te.dropped.subscribe(oe=>{this.dropped.emit({previousIndex:oe.previousIndex,currentIndex:oe.currentIndex,previousContainer:oe.previousContainer.data,container:oe.container.data,isPointerOverContainer:oe.isPointerOverContainer,item:this,distance:oe.distance,dropPoint:oe.dropPoint})})}_assignDefaults(te){const{lockAxis:oe,dragStartDelay:Ie,constrainPosition:ct,previewClass:bt,boundaryElement:xt,draggingDisabled:Yt,rootElementSelector:It,previewContainer:Rt}=te;this.disabled=null!=Yt&&Yt,this.dragStartDelay=Ie||0,oe&&(this.lockAxis=oe),ct&&(this.constrainPosition=ct),bt&&(this.previewClass=bt),xt&&(this.boundaryElement=xt),It&&(this.rootElementSelector=It),Rt&&(this.previewContainer=Rt)}_setupHandlesListener(){this._handles.changes.pipe((0,L.O)(this._handles),(0,ge.b)(te=>{const oe=te.filter(Ie=>Ie._parentDrag===this).map(Ie=>Ie.element);this._selfHandle&&this.rootElementSelector&&oe.push(this.element),this._dragRef.withHandles(oe)}),(0,X.w)(te=>(0,m.T)(...te.map(oe=>oe._stateChanges.pipe((0,L.O)(oe))))),(0,B.R)(this._destroyed)).subscribe(te=>{const oe=this._dragRef,Ie=te.element.nativeElement;te.disabled?oe.disableHandle(Ie):oe.enableHandle(Ie)})}}return j._dragInstances=[],j.\u0275fac=function(te){return new(te||j)(e.Y36(e.SBq),e.Y36(h,12),e.Y36(b.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(n,8),e.Y36(ue.Is,8),e.Y36(l),e.Y36(e.sBO),e.Y36(We,10),e.Y36(s,12))},j.\u0275dir=e.lG2({type:j,selectors:[["","cdkDrag",""]],contentQueries:function(te,oe,Ie){if(1&te&&(e.Suo(Ie,Ut,5),e.Suo(Ie,Ht,5),e.Suo(Ie,We,5)),2&te){let ct;e.iGM(ct=e.CRH())&&(oe._previewTemplate=ct.first),e.iGM(ct=e.CRH())&&(oe._placeholderTemplate=ct.first),e.iGM(ct=e.CRH())&&(oe._handles=ct)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(te,oe){2&te&&e.ekj("cdk-drag-disabled",oe.disabled)("cdk-drag-dragging",oe._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:s,useExisting:j}]),e.TTD]}),j})(),Ge=(()=>{class j{}return j.\u0275fac=function(te){return new(te||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({providers:[l],imports:[Ne.ZD]}),j})()},91159:(Xe,_e,p)=>{"use strict";p.d(_e,{A:()=>Me,zL:()=>C,ZH:()=>b,OC:()=>gt,jx:()=>E,yY:()=>Y,JH:()=>Oe,uR:()=>ie,K5:()=>g,hY:()=>m,Sd:()=>ge,oh:()=>X,b2:()=>_n,MW:()=>a,aO:()=>He,VM:()=>J,Ku:()=>L,SV:()=>ue,JU:()=>A,L_:()=>B,Mf:()=>_,LH:()=>Ne,Z:()=>n,xE:()=>ee,Vb:()=>Ni});const b=8,_=9,g=13,A=16,E=17,C=18,m=27,B=32,L=33,J=34,ie=35,ge=36,X=37,Ne=38,ue=39,Oe=40,Y=46,ee=48,He=57,Me=65,n=90,a=91,gt=188,_n=224;function Ni(Ri,...sn){return sn.length?sn.some(Xi=>Ri[Xi]):Ri.altKey||Ri.shiftKey||Ri.ctrlKey||Ri.metaKey}},17144:(Xe,_e,p)=>{"use strict";p.d(_e,{wD:()=>C,yq:()=>E,Q8:()=>O});var e=p(63191),b=p(5e3),_=p(56498),w=p(8929),g=p(80013);let A=(()=>{class S{create(B){return"undefined"==typeof MutationObserver?null:new MutationObserver(B)}}return S.\u0275fac=function(B){return new(B||S)},S.\u0275prov=b.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),E=(()=>{class S{constructor(B){this._mutationObserverFactory=B,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((B,L)=>this._cleanupObserver(L))}observe(B){const L=(0,e.fI)(B);return new _.y(J=>{const ge=this._observeElement(L).subscribe(J);return()=>{ge.unsubscribe(),this._unobserveElement(L)}})}_observeElement(B){if(this._observedElements.has(B))this._observedElements.get(B).count++;else{const L=new w.xQ,J=this._mutationObserverFactory.create(ie=>L.next(ie));J&&J.observe(B,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(B,{observer:J,stream:L,count:1})}return this._observedElements.get(B).stream}_unobserveElement(B){this._observedElements.has(B)&&(this._observedElements.get(B).count--,this._observedElements.get(B).count||this._cleanupObserver(B))}_cleanupObserver(B){if(this._observedElements.has(B)){const{observer:L,stream:J}=this._observedElements.get(B);L&&L.disconnect(),J.complete(),this._observedElements.delete(B)}}}return S.\u0275fac=function(B){return new(B||S)(b.LFG(A))},S.\u0275prov=b.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),C=(()=>{class S{constructor(B,L,J){this._contentObserver=B,this._elementRef=L,this._ngZone=J,this.event=new b.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(B){this._disabled=(0,e.Ig)(B),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(B){this._debounce=(0,e.su)(B),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const B=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?B.pipe((0,g.b)(this.debounce)):B).subscribe(this.event)})}_unsubscribe(){var B;null===(B=this._currentSubscription)||void 0===B||B.unsubscribe()}}return S.\u0275fac=function(B){return new(B||S)(b.Y36(E),b.Y36(b.SBq),b.Y36(b.R0b))},S.\u0275dir=b.lG2({type:S,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),S})(),O=(()=>{class S{}return S.\u0275fac=function(B){return new(B||S)},S.\u0275mod=b.oAB({type:S}),S.\u0275inj=b.cJS({providers:[A]}),S})()},92845:(Xe,_e,p)=>{"use strict";p.d(_e,{pI:()=>Se,xu:()=>Q,_G:()=>me,aV:()=>P,X_:()=>le,Xj:()=>He,U8:()=>ye});var e=p(53435),b=p(69808),_=p(5e3),w=p(63191),g=p(70925),A=p(50226),E=p(47429),C=p(8929),O=p(42654),S=p(36787),m=p(43489);class L{constructor(o,d){this.predicate=o,this.inclusive=d}call(o,d){return d.subscribe(new J(o,this.predicate,this.inclusive))}}class J extends m.L{constructor(o,d,l){super(o),this.predicate=d,this.inclusive=l,this.index=0}_next(o){const d=this.destination;let l;try{l=this.predicate(o,this.index++)}catch(s){return void d.error(s)}this.nextOrComplete(o,l)}nextOrComplete(o,d){const l=this.destination;Boolean(d)?l.next(o):(this.inclusive&&l.next(o),l.complete())}}var ie=p(72986),ge=p(7625),X=p(91159);const Ne=(0,g.Mq)();class ue{constructor(o,d){this._viewportRuler=o,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=d}attach(){}enable(){if(this._canBeEnabled()){const o=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=o.style.left||"",this._previousHTMLStyles.top=o.style.top||"",o.style.left=(0,w.HM)(-this._previousScrollPosition.left),o.style.top=(0,w.HM)(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const o=this._document.documentElement,l=o.style,s=this._document.body.style,i=l.scrollBehavior||"",t=s.scrollBehavior||"";this._isEnabled=!1,l.left=this._previousHTMLStyles.left,l.top=this._previousHTMLStyles.top,o.classList.remove("cdk-global-scrollblock"),Ne&&(l.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ne&&(l.scrollBehavior=i,s.scrollBehavior=t)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const d=this._document.body,l=this._viewportRuler.getViewportSize();return d.scrollHeight>l.height||d.scrollWidth>l.width}}class T{constructor(o,d,l,s){this._scrollDispatcher=o,this._ngZone=d,this._viewportRuler=l,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(o){this._overlayRef=o}enable(){if(this._scrollSubscription)return;const o=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=o.subscribe(()=>{const d=this._viewportRuler.getViewportScrollPosition().top;Math.abs(d-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=o.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Z{enable(){}disable(){}attach(){}}function W(r,o){return o.some(d=>r.bottomd.bottom||r.rightd.right)}function Y(r,o){return o.some(d=>r.topd.bottom||r.leftd.right)}class ee{constructor(o,d,l,s){this._scrollDispatcher=o,this._viewportRuler=d,this._ngZone=l,this._config=s,this._scrollSubscription=null}attach(o){this._overlayRef=o}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 d=this._overlayRef.overlayElement.getBoundingClientRect(),{width:l,height:s}=this._viewportRuler.getViewportSize();W(d,[{width:l,height:s,bottom:s,right:l,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 ce=(()=>{class r{constructor(d,l,s,i){this._scrollDispatcher=d,this._viewportRuler=l,this._ngZone=s,this.noop=()=>new Z,this.close=t=>new T(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new ue(this._viewportRuler,this._document),this.reposition=t=>new ee(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return r.\u0275fac=function(d){return new(d||r)(_.LFG(e.mF),_.LFG(e.rL),_.LFG(_.R0b),_.LFG(b.K0))},r.\u0275prov=_.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class le{constructor(o){if(this.scrollStrategy=new Z,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,o){const d=Object.keys(o);for(const l of d)void 0!==o[l]&&(this[l]=o[l])}}}class ze{constructor(o,d){this.connectionPair=o,this.scrollableViewProperties=d}}class ve{constructor(o,d,l,s,i,t,n,a,c){this._portalOutlet=o,this._host=d,this._pane=l,this._config=s,this._ngZone=i,this._keyboardDispatcher=t,this._document=n,this._location=a,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new C.xQ,this._attachments=new C.xQ,this._detachments=new C.xQ,this._locationChanges=O.w.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._keydownEvents=new C.xQ,this._outsidePointerEvents=new C.xQ,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(o){let d=this._portalOutlet.attach(o);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ie.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),d}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const o=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),o}dispose(){var o;const d=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===(o=this._host)||void 0===o||o.remove(),this._previousHostParent=this._pane=this._host=null,d&&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(o){o!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=o,this.hasAttached()&&(o.attach(this),this.updatePosition()))}updateSize(o){this._config=Object.assign(Object.assign({},this._config),o),this._updateElementSize()}setDirection(o){this._config=Object.assign(Object.assign({},this._config),{direction:o}),this._updateElementDirection()}addPanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!0)}removePanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!1)}getDirection(){const o=this._config.direction;return o?"string"==typeof o?o:o.value:"ltr"}updateScrollStrategy(o){o!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=o,this.hasAttached()&&(o.attach(this),o.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const o=this._pane.style;o.width=(0,w.HM)(this._config.width),o.height=(0,w.HM)(this._config.height),o.minWidth=(0,w.HM)(this._config.minWidth),o.minHeight=(0,w.HM)(this._config.minHeight),o.maxWidth=(0,w.HM)(this._config.maxWidth),o.maxHeight=(0,w.HM)(this._config.maxHeight)}_togglePointerEvents(o){this._pane.style.pointerEvents=o?"":"none"}_attachBackdrop(){const o="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(o)})}):this._backdropElement.classList.add(o)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const o=this._backdropElement;if(!o)return;let d;const l=()=>{o&&(o.removeEventListener("click",this._backdropClickHandler),o.removeEventListener("transitionend",l),this._disposeBackdrop(o)),this._config.backdropClass&&this._toggleClasses(o,this._config.backdropClass,!1),clearTimeout(d)};o.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{o.addEventListener("transitionend",l)}),o.style.pointerEvents="none",d=this._ngZone.runOutsideAngular(()=>setTimeout(l,500))}_toggleClasses(o,d,l){const s=(0,w.Eq)(d||[]).filter(i=>!!i);s.length&&(l?o.classList.add(...s):o.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const o=this._ngZone.onStable.pipe((0,ge.R)((0,S.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()),o.unsubscribe())})})}_disposeScrollStrategy(){const o=this._scrollStrategy;o&&(o.disable(),o.detach&&o.detach())}_disposeBackdrop(o){o&&(o.remove(),this._backdropElement===o&&(this._backdropElement=null))}}let He=(()=>{class r{constructor(d,l){this._platform=l,this._document=d}ngOnDestroy(){var d;null===(d=this._containerElement)||void 0===d||d.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const d="cdk-overlay-container";if(this._platform.isBrowser||(0,g.Oy)()){const s=this._document.querySelectorAll(`.${d}[platform="server"], .${d}[platform="test"]`);for(let i=0;i{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 o=this._originRect,d=this._overlayRect,l=this._viewportRect,s=this._containerRect,i=[];let t;for(let n of this._preferredPositions){let a=this._getOriginPoint(o,s,n),c=this._getOverlayPoint(a,d,n),h=this._getOverlayFit(c,d,l,n);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,a);this._canFitWithFlexibleDimensions(h,c,l)?i.push({position:n,origin:a,overlayRect:d,boundingBoxRect:this._calculateBoundingBoxRect(a,n)}):(!t||t.overlayFit.visibleAreaa&&(a=h,n=c)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ae(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(z),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const o=this._lastPosition;if(o){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const d=this._getOriginPoint(this._originRect,this._containerRect,o);this._applyPosition(o,d)}else this.apply()}withScrollableContainers(o){return this._scrollables=o,this}withPositions(o){return this._preferredPositions=o,-1===o.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(o){return this._viewportMargin=o,this}withFlexibleDimensions(o=!0){return this._hasFlexibleDimensions=o,this}withGrowAfterOpen(o=!0){return this._growAfterOpen=o,this}withPush(o=!0){return this._canPush=o,this}withLockedPosition(o=!0){return this._positionLocked=o,this}setOrigin(o){return this._origin=o,this}withDefaultOffsetX(o){return this._offsetX=o,this}withDefaultOffsetY(o){return this._offsetY=o,this}withTransformOriginOn(o){return this._transformOriginSelector=o,this}_getOriginPoint(o,d,l){let s,i;if("center"==l.originX)s=o.left+o.width/2;else{const t=this._isRtl()?o.right:o.left,n=this._isRtl()?o.left:o.right;s="start"==l.originX?t:n}return d.left<0&&(s-=d.left),i="center"==l.originY?o.top+o.height/2:"top"==l.originY?o.top:o.bottom,d.top<0&&(i-=d.top),{x:s,y:i}}_getOverlayPoint(o,d,l){let s,i;return s="center"==l.overlayX?-d.width/2:"start"===l.overlayX?this._isRtl()?-d.width:0:this._isRtl()?0:-d.width,i="center"==l.overlayY?-d.height/2:"top"==l.overlayY?0:-d.height,{x:o.x+s,y:o.y+i}}_getOverlayFit(o,d,l,s){const i=pe(d);let{x:t,y:n}=o,a=this._getOffset(s,"x"),c=this._getOffset(s,"y");a&&(t+=a),c&&(n+=c);let We=0-n,At=n+i.height-l.height,Ht=this._subtractOverflows(i.width,0-t,t+i.width-l.width),lt=this._subtractOverflows(i.height,We,At),Ut=Ht*lt;return{visibleArea:Ut,isCompletelyWithinViewport:i.width*i.height===Ut,fitsInViewportVertically:lt===i.height,fitsInViewportHorizontally:Ht==i.width}}_canFitWithFlexibleDimensions(o,d,l){if(this._hasFlexibleDimensions){const s=l.bottom-d.y,i=l.right-d.x,t=Me(this._overlayRef.getConfig().minHeight),n=Me(this._overlayRef.getConfig().minWidth),c=o.fitsInViewportHorizontally||null!=n&&n<=i;return(o.fitsInViewportVertically||null!=t&&t<=s)&&c}return!1}_pushOverlayOnScreen(o,d,l){if(this._previousPushAmount&&this._positionLocked)return{x:o.x+this._previousPushAmount.x,y:o.y+this._previousPushAmount.y};const s=pe(d),i=this._viewportRect,t=Math.max(o.x+s.width-i.width,0),n=Math.max(o.y+s.height-i.height,0),a=Math.max(i.top-l.top-o.y,0),c=Math.max(i.left-l.left-o.x,0);let h=0,x=0;return h=s.width<=i.width?c||-t:o.xHt&&!this._isInitialRender&&!this._growAfterOpen&&(t=o.y-Ht/2)}if("end"===d.overlayX&&!s||"start"===d.overlayX&&s)We=l.width-o.x+this._viewportMargin,h=o.x-this._viewportMargin;else if("start"===d.overlayX&&!s||"end"===d.overlayX&&s)x=o.x,h=l.right-o.x;else{const At=Math.min(l.right-o.x+l.left,o.x),Ht=this._lastBoundingBoxSize.width;h=2*At,x=o.x-At,h>Ht&&!this._isInitialRender&&!this._growAfterOpen&&(x=o.x-Ht/2)}return{top:t,left:x,bottom:n,right:We,width:h,height:i}}_setBoundingBoxStyles(o,d){const l=this._calculateBoundingBoxRect(o,d);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.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 i=this._overlayRef.getConfig().maxHeight,t=this._overlayRef.getConfig().maxWidth;s.height=(0,w.HM)(l.height),s.top=(0,w.HM)(l.top),s.bottom=(0,w.HM)(l.bottom),s.width=(0,w.HM)(l.width),s.left=(0,w.HM)(l.left),s.right=(0,w.HM)(l.right),s.alignItems="center"===d.overlayX?"center":"end"===d.overlayX?"flex-end":"flex-start",s.justifyContent="center"===d.overlayY?"center":"bottom"===d.overlayY?"flex-end":"flex-start",i&&(s.maxHeight=(0,w.HM)(i)),t&&(s.maxWidth=(0,w.HM)(t))}this._lastBoundingBoxSize=l,Ae(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Ae(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ae(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(o,d){const l={},s=this._hasExactPosition(),i=this._hasFlexibleDimensions,t=this._overlayRef.getConfig();if(s){const h=this._viewportRuler.getViewportScrollPosition();Ae(l,this._getExactOverlayY(d,o,h)),Ae(l,this._getExactOverlayX(d,o,h))}else l.position="static";let n="",a=this._getOffset(d,"x"),c=this._getOffset(d,"y");a&&(n+=`translateX(${a}px) `),c&&(n+=`translateY(${c}px)`),l.transform=n.trim(),t.maxHeight&&(s?l.maxHeight=(0,w.HM)(t.maxHeight):i&&(l.maxHeight="")),t.maxWidth&&(s?l.maxWidth=(0,w.HM)(t.maxWidth):i&&(l.maxWidth="")),Ae(this._pane.style,l)}_getExactOverlayY(o,d,l){let s={top:"",bottom:""},i=this._getOverlayPoint(d,this._overlayRect,o);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,l)),"bottom"===o.overlayY?s.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":s.top=(0,w.HM)(i.y),s}_getExactOverlayX(o,d,l){let t,s={left:"",right:""},i=this._getOverlayPoint(d,this._overlayRect,o);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,l)),t=this._isRtl()?"end"===o.overlayX?"left":"right":"end"===o.overlayX?"right":"left","right"===t?s.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":s.left=(0,w.HM)(i.x),s}_getScrollVisibility(){const o=this._getOriginRect(),d=this._pane.getBoundingClientRect(),l=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Y(o,l),isOriginOutsideView:W(o,l),isOverlayClipped:Y(d,l),isOverlayOutsideView:W(d,l)}}_subtractOverflows(o,...d){return d.reduce((l,s)=>l-Math.max(s,0),o)}_getNarrowedViewportRect(){const o=this._document.documentElement.clientWidth,d=this._document.documentElement.clientHeight,l=this._viewportRuler.getViewportScrollPosition();return{top:l.top+this._viewportMargin,left:l.left+this._viewportMargin,right:l.left+o-this._viewportMargin,bottom:l.top+d-this._viewportMargin,width:o-2*this._viewportMargin,height:d-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(o,d){return"x"===d?null==o.offsetX?this._offsetX:o.offsetX:null==o.offsetY?this._offsetY:o.offsetY}_validatePositions(){}_addPanelClasses(o){this._pane&&(0,w.Eq)(o).forEach(d=>{""!==d&&-1===this._appliedPanelClasses.indexOf(d)&&(this._appliedPanelClasses.push(d),this._pane.classList.add(d))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(o=>{this._pane.classList.remove(o)}),this._appliedPanelClasses=[])}_getOriginRect(){const o=this._origin;if(o instanceof _.SBq)return o.nativeElement.getBoundingClientRect();if(o instanceof Element)return o.getBoundingClientRect();const d=o.width||0,l=o.height||0;return{top:o.y,bottom:o.y+l,left:o.x,right:o.x+d,height:l,width:d}}}function Ae(r,o){for(let d in o)o.hasOwnProperty(d)&&(r[d]=o[d]);return r}function Me(r){if("number"!=typeof r&&null!=r){const[o,d]=r.split(I);return d&&"px"!==d?null:parseFloat(o)}return r||null}function pe(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 we="cdk-global-overlay-wrapper";class $e{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(o){const d=o.getConfig();this._overlayRef=o,this._width&&!d.width&&o.updateSize({width:this._width}),this._height&&!d.height&&o.updateSize({height:this._height}),o.hostElement.classList.add(we),this._isDisposed=!1}top(o=""){return this._bottomOffset="",this._topOffset=o,this._alignItems="flex-start",this}left(o=""){return this._rightOffset="",this._leftOffset=o,this._justifyContent="flex-start",this}bottom(o=""){return this._topOffset="",this._bottomOffset=o,this._alignItems="flex-end",this}right(o=""){return this._leftOffset="",this._rightOffset=o,this._justifyContent="flex-end",this}width(o=""){return this._overlayRef?this._overlayRef.updateSize({width:o}):this._width=o,this}height(o=""){return this._overlayRef?this._overlayRef.updateSize({height:o}):this._height=o,this}centerHorizontally(o=""){return this.left(o),this._justifyContent="center",this}centerVertically(o=""){return this.top(o),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const o=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),{width:s,height:i,maxWidth:t,maxHeight:n}=l,a=!("100%"!==s&&"100vw"!==s||t&&"100%"!==t&&"100vw"!==t),c=!("100%"!==i&&"100vh"!==i||n&&"100%"!==n&&"100vh"!==n);o.position=this._cssPosition,o.marginLeft=a?"0":this._leftOffset,o.marginTop=c?"0":this._topOffset,o.marginBottom=this._bottomOffset,o.marginRight=this._rightOffset,a?d.justifyContent="flex-start":"center"===this._justifyContent?d.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?d.justifyContent="flex-end":"flex-end"===this._justifyContent&&(d.justifyContent="flex-start"):d.justifyContent=this._justifyContent,d.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const o=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement,l=d.style;d.classList.remove(we),l.justifyContent=l.alignItems=o.marginTop=o.marginBottom=o.marginLeft=o.marginRight=o.position="",this._overlayRef=null,this._isDisposed=!0}}let Je=(()=>{class r{constructor(d,l,s,i){this._viewportRuler=d,this._document=l,this._platform=s,this._overlayContainer=i}global(){return new $e}flexibleConnectedTo(d){return new me(d,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(d){return new(d||r)(_.LFG(e.rL),_.LFG(b.K0),_.LFG(g.t4),_.LFG(He))},r.\u0275prov=_.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),nt=(()=>{class r{constructor(d){this._attachedOverlays=[],this._document=d}ngOnDestroy(){this.detach()}add(d){this.remove(d),this._attachedOverlays.push(d)}remove(d){const l=this._attachedOverlays.indexOf(d);l>-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(d){return new(d||r)(_.LFG(b.K0))},r.\u0275prov=_.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ke=(()=>{class r extends nt{constructor(d){super(d),this._keydownListener=l=>{const s=this._attachedOverlays;for(let i=s.length-1;i>-1;i--)if(s[i]._keydownEvents.observers.length>0){s[i]._keydownEvents.next(l);break}}}add(d){super.add(d),this._isAttached||(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(d){return new(d||r)(_.LFG(b.K0))},r.\u0275prov=_.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),H=(()=>{class r extends nt{constructor(d,l){super(d),this._platform=l,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=(0,g.sA)(s)},this._clickListener=s=>{const i=(0,g.sA)(s),t="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let a=n.length-1;a>-1;a--){const c=n[a];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(i)||c.overlayElement.contains(t))break;c._outsidePointerEvents.next(s)}}}}add(d){if(super.add(d),!this._isAttached){const l=this._document.body;l.addEventListener("pointerdown",this._pointerDownListener,!0),l.addEventListener("click",this._clickListener,!0),l.addEventListener("auxclick",this._clickListener,!0),l.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=l.style.cursor,l.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const d=this._document.body;d.removeEventListener("pointerdown",this._pointerDownListener,!0),d.removeEventListener("click",this._clickListener,!0),d.removeEventListener("auxclick",this._clickListener,!0),d.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(d.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return r.\u0275fac=function(d){return new(d||r)(_.LFG(b.K0),_.LFG(g.t4))},r.\u0275prov=_.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),he=0,P=(()=>{class r{constructor(d,l,s,i,t,n,a,c,h,x,We){this.scrollStrategies=d,this._overlayContainer=l,this._componentFactoryResolver=s,this._positionBuilder=i,this._keyboardDispatcher=t,this._injector=n,this._ngZone=a,this._document=c,this._directionality=h,this._location=x,this._outsideClickDispatcher=We}create(d){const l=this._createHostElement(),s=this._createPaneElement(l),i=this._createPortalOutlet(s),t=new le(d);return t.direction=t.direction||this._directionality.value,new ve(i,l,s,t,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(d){const l=this._document.createElement("div");return l.id="cdk-overlay-"+he++,l.classList.add("cdk-overlay-pane"),d.appendChild(l),l}_createHostElement(){const d=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(d),d}_createPortalOutlet(d){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new E.u0(d,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(d){return new(d||r)(_.LFG(ce),_.LFG(He),_.LFG(_._Vd),_.LFG(Je),_.LFG(ke),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(b.K0),_.LFG(A.Is),_.LFG(b.Ye),_.LFG(H))},r.\u0275prov=_.Yz7({token:r,factory:r.\u0275fac}),r})();const R=[{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"}],V=new _.OlP("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class r{constructor(d){this.elementRef=d}}return r.\u0275fac=function(d){return new(d||r)(_.Y36(_.SBq))},r.\u0275dir=_.lG2({type:r,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),r})(),Se=(()=>{class r{constructor(d,l,s,i,t){this._overlay=d,this._dir=t,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=O.w.EMPTY,this._attachSubscription=O.w.EMPTY,this._detachSubscription=O.w.EMPTY,this._positionSubscription=O.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new _.vpe,this.positionChange=new _.vpe,this.attach=new _.vpe,this.detach=new _.vpe,this.overlayKeydown=new _.vpe,this.overlayOutsideClick=new _.vpe,this._templatePortal=new E.UE(l,s),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(d){this._offsetX=d,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(d){this._offsetY=d,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(d){this._hasBackdrop=(0,w.Ig)(d)}get lockPosition(){return this._lockPosition}set lockPosition(d){this._lockPosition=(0,w.Ig)(d)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(d){this._flexibleDimensions=(0,w.Ig)(d)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(d){this._growAfterOpen=(0,w.Ig)(d)}get push(){return this._push}set push(d){this._push=(0,w.Ig)(d)}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(d){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),d.origin&&this.open&&this._position.apply()),d.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=R);const d=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=d.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=d.detachments().subscribe(()=>this.detach.emit()),d.keydownEvents().subscribe(l=>{this.overlayKeydown.next(l),l.keyCode===X.hY&&!this.disableClose&&!(0,X.Vb)(l)&&(l.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(l=>{this.overlayOutsideClick.next(l)})}_buildConfig(){const d=this._position=this.positionStrategy||this._createPositionStrategy(),l=new le({direction:this._dir,positionStrategy:d,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}_updatePositionStrategy(d){const l=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return d.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(l).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const d=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(d),d}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Q?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(d=>{this.backdropClick.emit(d)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function B(r,o=!1){return d=>d.lift(new L(r,o))}(()=>this.positionChange.observers.length>0)).subscribe(d=>{this.positionChange.emit(d),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return r.\u0275fac=function(d){return new(d||r)(_.Y36(P),_.Y36(_.Rgc),_.Y36(_.s_b),_.Y36(V),_.Y36(A.Is,8))},r.\u0275dir=_.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:[_.TTD]}),r})();const Ye={provide:V,deps:[P],useFactory:function je(r){return()=>r.scrollStrategies.reposition()}};let ye=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275mod=_.oAB({type:r}),r.\u0275inj=_.cJS({providers:[P,Ye],imports:[[A.vT,E.eL,e.Cl],e.Cl]}),r})()},70925:(Xe,_e,p)=>{"use strict";p.d(_e,{t4:()=>w,ud:()=>g,sA:()=>Oe,ht:()=>ue,kV:()=>Ne,Oy:()=>T,_i:()=>ie,qK:()=>C,i$:()=>m,Mq:()=>J});var e=p(5e3),b=p(69808);let _;try{_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Z){_=!1}let A,w=(()=>{class Z{constructor(Y){this._platformId=Y,this.isBrowser=this._platformId?(0,b.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&&!_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Z.\u0275fac=function(Y){return new(Y||Z)(e.LFG(e.Lbi))},Z.\u0275prov=e.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),g=(()=>{class Z{}return Z.\u0275fac=function(Y){return new(Y||Z)},Z.\u0275mod=e.oAB({type:Z}),Z.\u0275inj=e.cJS({}),Z})();const E=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function C(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(E),A;let Z=document.createElement("input");return A=new Set(E.filter(W=>(Z.setAttribute("type",W),Z.type===W))),A}let O,B,L,ge;function m(Z){return function S(){if(null==O&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>O=!0}))}finally{O=O||!1}return O}()?Z:!!Z.capture}function J(){if(null==L){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return L=!1,L;if("scrollBehavior"in document.documentElement.style)L=!0;else{const Z=Element.prototype.scrollTo;L=!!Z&&!/\{\s*\[native code\]\s*\}/.test(Z.toString())}}return L}function ie(){if("object"!=typeof document||!document)return 0;if(null==B){const Z=document.createElement("div"),W=Z.style;Z.dir="rtl",W.width="1px",W.overflow="auto",W.visibility="hidden",W.pointerEvents="none",W.position="absolute";const Y=document.createElement("div"),ee=Y.style;ee.width="2px",ee.height="1px",Z.appendChild(Y),document.body.appendChild(Z),B=0,0===Z.scrollLeft&&(Z.scrollLeft=1,B=0===Z.scrollLeft?1:2),Z.remove()}return B}function Ne(Z){if(function X(){if(null==ge){const Z="undefined"!=typeof document?document.head:null;ge=!(!Z||!Z.createShadowRoot&&!Z.attachShadow)}return ge}()){const W=Z.getRootNode?Z.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&W instanceof ShadowRoot)return W}return null}function ue(){let Z="undefined"!=typeof document&&document?document.activeElement:null;for(;Z&&Z.shadowRoot;){const W=Z.shadowRoot.activeElement;if(W===Z)break;Z=W}return Z}function Oe(Z){return Z.composedPath?Z.composedPath()[0]:Z.target}function T(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},47429:(Xe,_e,p)=>{"use strict";p.d(_e,{en:()=>L,ig:()=>X,Pl:()=>ue,C5:()=>S,u0:()=>ie,eL:()=>T,UE:()=>m});var e=p(5e3),b=p(69808);class O{attach(Y){return this._attachedHost=Y,Y.attach(this)}detach(){let Y=this._attachedHost;null!=Y&&(this._attachedHost=null,Y.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Y){this._attachedHost=Y}}class S extends O{constructor(Y,ee,ce,le){super(),this.component=Y,this.viewContainerRef=ee,this.injector=ce,this.componentFactoryResolver=le}}class m extends O{constructor(Y,ee,ce){super(),this.templateRef=Y,this.viewContainerRef=ee,this.context=ce}get origin(){return this.templateRef.elementRef}attach(Y,ee=this.context){return this.context=ee,super.attach(Y)}detach(){return this.context=void 0,super.detach()}}class B extends O{constructor(Y){super(),this.element=Y instanceof e.SBq?Y.nativeElement:Y}}class L{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Y){return Y instanceof S?(this._attachedPortal=Y,this.attachComponentPortal(Y)):Y instanceof m?(this._attachedPortal=Y,this.attachTemplatePortal(Y)):this.attachDomPortal&&Y instanceof B?(this._attachedPortal=Y,this.attachDomPortal(Y)):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(Y){this._disposeFn=Y}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ie extends L{constructor(Y,ee,ce,le,Pe){super(),this.outletElement=Y,this._componentFactoryResolver=ee,this._appRef=ce,this._defaultInjector=le,this.attachDomPortal=Fe=>{const ze=Fe.element,ae=this._document.createComment("dom-portal");ze.parentNode.insertBefore(ae,ze),this.outletElement.appendChild(ze),this._attachedPortal=Fe,super.setDisposeFn(()=>{ae.parentNode&&ae.parentNode.replaceChild(ze,ae)})},this._document=Pe}attachComponentPortal(Y){const ce=(Y.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Y.component);let le;return Y.viewContainerRef?(le=Y.viewContainerRef.createComponent(ce,Y.viewContainerRef.length,Y.injector||Y.viewContainerRef.injector),this.setDisposeFn(()=>le.destroy())):(le=ce.create(Y.injector||this._defaultInjector),this._appRef.attachView(le.hostView),this.setDisposeFn(()=>{this._appRef.detachView(le.hostView),le.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(le)),this._attachedPortal=Y,le}attachTemplatePortal(Y){let ee=Y.viewContainerRef,ce=ee.createEmbeddedView(Y.templateRef,Y.context);return ce.rootNodes.forEach(le=>this.outletElement.appendChild(le)),ce.detectChanges(),this.setDisposeFn(()=>{let le=ee.indexOf(ce);-1!==le&&ee.remove(le)}),this._attachedPortal=Y,ce}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Y){return Y.hostView.rootNodes[0]}}let X=(()=>{class W extends m{constructor(ee,ce){super(ee,ce)}}return W.\u0275fac=function(ee){return new(ee||W)(e.Y36(e.Rgc),e.Y36(e.s_b))},W.\u0275dir=e.lG2({type:W,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),W})(),ue=(()=>{class W extends L{constructor(ee,ce,le){super(),this._componentFactoryResolver=ee,this._viewContainerRef=ce,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Pe=>{const Fe=Pe.element,ze=this._document.createComment("dom-portal");Pe.setAttachedHost(this),Fe.parentNode.insertBefore(ze,Fe),this._getRootNode().appendChild(Fe),this._attachedPortal=Pe,super.setDisposeFn(()=>{ze.parentNode&&ze.parentNode.replaceChild(Fe,ze)})},this._document=le}get portal(){return this._attachedPortal}set portal(ee){this.hasAttached()&&!ee&&!this._isInitialized||(this.hasAttached()&&super.detach(),ee&&super.attach(ee),this._attachedPortal=ee||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(ee){ee.setAttachedHost(this);const ce=null!=ee.viewContainerRef?ee.viewContainerRef:this._viewContainerRef,Pe=(ee.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ee.component),Fe=ce.createComponent(Pe,ce.length,ee.injector||ce.injector);return ce!==this._viewContainerRef&&this._getRootNode().appendChild(Fe.hostView.rootNodes[0]),super.setDisposeFn(()=>Fe.destroy()),this._attachedPortal=ee,this._attachedRef=Fe,this.attached.emit(Fe),Fe}attachTemplatePortal(ee){ee.setAttachedHost(this);const ce=this._viewContainerRef.createEmbeddedView(ee.templateRef,ee.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ee,this._attachedRef=ce,this.attached.emit(ce),ce}_getRootNode(){const ee=this._viewContainerRef.element.nativeElement;return ee.nodeType===ee.ELEMENT_NODE?ee:ee.parentNode}}return W.\u0275fac=function(ee){return new(ee||W)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(b.K0))},W.\u0275dir=e.lG2({type:W,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),W})(),T=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({}),W})()},53435:(Xe,_e,p)=>{"use strict";p.d(_e,{xd:()=>ae,PQ:()=>He,ZD:()=>$e,x0:()=>we,N7:()=>Me,mF:()=>ve,Cl:()=>Je,rL:()=>I});var e=p(63191),b=p(5e3),_=p(8929),w=p(21086),g=p(56498),A=p(23753),E=p(90352),C=p(8139),O=p(42654),S=p(54715),m=p(43489);class L{call(ke,H){return H.subscribe(new J(ke))}}class J extends m.L{constructor(ke){super(ke),this.hasPrev=!1}_next(ke){let H;this.hasPrev?H=[this.prev,ke]:this.hasPrev=!0,this.prev=ke,H&&this.destination.next(H)}}var ie=p(75778),ge=p(57138),X=p(92198),Ne=p(7625),ue=p(1059),Oe=p(87545),T=p(5154),Z=p(69808),W=p(70925),Y=p(50226),ee=p(20449);const ce=["contentWrapper"],le=["*"],Pe=new b.OlP("VIRTUAL_SCROLL_STRATEGY");class Fe{constructor(ke,H,he){this._scrolledIndexChange=new _.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,ie.x)()),this._viewport=null,this._itemSize=ke,this._minBufferPx=H,this._maxBufferPx=he}attach(ke){this._viewport=ke,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(ke,H,he){this._itemSize=ke,this._minBufferPx=H,this._maxBufferPx=he,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(ke,H){this._viewport&&this._viewport.scrollToOffset(ke*this._itemSize,H)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const ke=this._viewport.getRenderedRange(),H={start:ke.start,end:ke.end},he=this._viewport.getViewportSize(),P=this._viewport.getDataLength();let R=this._viewport.measureScrollOffset(),V=this._itemSize>0?R/this._itemSize:0;if(H.end>P){const Se=Math.ceil(he/this._itemSize),je=Math.max(0,Math.min(V,P-Se));V!=je&&(V=je,R=je*this._itemSize,H.start=Math.floor(V)),H.end=Math.max(0,Math.min(P,H.start+Se))}const Q=R-H.start*this._itemSize;if(Q0&&(H.end=Math.min(P,H.end+je),H.start=Math.max(0,Math.floor(V-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(H),this._viewport.setRenderedContentOffset(this._itemSize*H.start),this._scrolledIndexChange.next(Math.floor(V))}}function ze(nt){return nt._scrollStrategy}let ae=(()=>{class nt{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Fe(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(H){this._itemSize=(0,e.su)(H)}get minBufferPx(){return this._minBufferPx}set minBufferPx(H){this._minBufferPx=(0,e.su)(H)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(H){this._maxBufferPx=(0,e.su)(H)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return nt.\u0275fac=function(H){return new(H||nt)},nt.\u0275dir=b.lG2({type:nt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[b._Bn([{provide:Pe,useFactory:ze,deps:[(0,b.Gpc)(()=>nt)]}]),b.TTD]}),nt})(),ve=(()=>{class nt{constructor(H,he,P){this._ngZone=H,this._platform=he,this._scrolled=new _.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=P}register(H){this.scrollContainers.has(H)||this.scrollContainers.set(H,H.elementScrolled().subscribe(()=>this._scrolled.next(H)))}deregister(H){const he=this.scrollContainers.get(H);he&&(he.unsubscribe(),this.scrollContainers.delete(H))}scrolled(H=20){return this._platform.isBrowser?new g.y(he=>{this._globalSubscription||this._addGlobalListener();const P=H>0?this._scrolled.pipe((0,ge.e)(H)).subscribe(he):this._scrolled.subscribe(he);return this._scrolledCount++,()=>{P.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((H,he)=>this.deregister(he)),this._scrolled.complete()}ancestorScrolled(H,he){const P=this.getAncestorScrollContainers(H);return this.scrolled(he).pipe((0,X.h)(R=>!R||P.indexOf(R)>-1))}getAncestorScrollContainers(H){const he=[];return this.scrollContainers.forEach((P,R)=>{this._scrollableContainsElement(R,H)&&he.push(R)}),he}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(H,he){let P=(0,e.fI)(he),R=H.getElementRef().nativeElement;do{if(P==R)return!0}while(P=P.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const H=this._getWindow();return(0,A.R)(H.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return nt.\u0275fac=function(H){return new(H||nt)(b.LFG(b.R0b),b.LFG(W.t4),b.LFG(Z.K0,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),He=(()=>{class nt{constructor(H,he,P,R){this.elementRef=H,this.scrollDispatcher=he,this.ngZone=P,this.dir=R,this._destroyed=new _.xQ,this._elementScrolled=new g.y(V=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,Ne.R)(this._destroyed)).subscribe(V)))}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(H){const he=this.elementRef.nativeElement,P=this.dir&&"rtl"==this.dir.value;null==H.left&&(H.left=P?H.end:H.start),null==H.right&&(H.right=P?H.start:H.end),null!=H.bottom&&(H.top=he.scrollHeight-he.clientHeight-H.bottom),P&&0!=(0,W._i)()?(null!=H.left&&(H.right=he.scrollWidth-he.clientWidth-H.left),2==(0,W._i)()?H.left=H.right:1==(0,W._i)()&&(H.left=H.right?-H.right:H.right)):null!=H.right&&(H.left=he.scrollWidth-he.clientWidth-H.right),this._applyScrollToOptions(H)}_applyScrollToOptions(H){const he=this.elementRef.nativeElement;(0,W.Mq)()?he.scrollTo(H):(null!=H.top&&(he.scrollTop=H.top),null!=H.left&&(he.scrollLeft=H.left))}measureScrollOffset(H){const he="left",P="right",R=this.elementRef.nativeElement;if("top"==H)return R.scrollTop;if("bottom"==H)return R.scrollHeight-R.clientHeight-R.scrollTop;const V=this.dir&&"rtl"==this.dir.value;return"start"==H?H=V?P:he:"end"==H&&(H=V?he:P),V&&2==(0,W._i)()?H==he?R.scrollWidth-R.clientWidth-R.scrollLeft:R.scrollLeft:V&&1==(0,W._i)()?H==he?R.scrollLeft+R.scrollWidth-R.clientWidth:-R.scrollLeft:H==he?R.scrollLeft:R.scrollWidth-R.clientWidth-R.scrollLeft}}return nt.\u0275fac=function(H){return new(H||nt)(b.Y36(b.SBq),b.Y36(ve),b.Y36(b.R0b),b.Y36(Y.Is,8))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),nt})(),I=(()=>{class nt{constructor(H,he,P){this._platform=H,this._change=new _.xQ,this._changeListener=R=>{this._change.next(R)},this._document=P,he.runOutsideAngular(()=>{if(H.isBrowser){const R=this._getWindow();R.addEventListener("resize",this._changeListener),R.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const H=this._getWindow();H.removeEventListener("resize",this._changeListener),H.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const H={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),H}getViewportRect(){const H=this.getViewportScrollPosition(),{width:he,height:P}=this.getViewportSize();return{top:H.top,left:H.left,bottom:H.top+P,right:H.left+he,height:P,width:he}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const H=this._document,he=this._getWindow(),P=H.documentElement,R=P.getBoundingClientRect();return{top:-R.top||H.body.scrollTop||he.scrollY||P.scrollTop||0,left:-R.left||H.body.scrollLeft||he.scrollX||P.scrollLeft||0}}change(H=20){return H>0?this._change.pipe((0,ge.e)(H)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const H=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:H.innerWidth,height:H.innerHeight}:{width:0,height:0}}}return nt.\u0275fac=function(H){return new(H||nt)(b.LFG(W.t4),b.LFG(b.R0b),b.LFG(Z.K0,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Ae="undefined"!=typeof requestAnimationFrame?E.r:C.e;let Me=(()=>{class nt extends He{constructor(H,he,P,R,V,Q,Se){super(H,Q,P,V),this.elementRef=H,this._changeDetectorRef=he,this._scrollStrategy=R,this._detachedSubject=new _.xQ,this._renderedRangeSubject=new _.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new g.y(je=>this._scrollStrategy.scrolledIndexChange.subscribe(Ye=>Promise.resolve().then(()=>this.ngZone.run(()=>je.next(Ye))))),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=O.w.EMPTY,this._viewportChanges=Se.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(H){this._orientation!==H&&(this._orientation=H,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(H){this._appendOnly=(0,e.Ig)(H)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,ue.O)(null),(0,ge.e)(0,Ae)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(H){this.ngZone.runOutsideAngular(()=>{this._forOf=H,this._forOf.dataStream.pipe((0,Ne.R)(this._detachedSubject)).subscribe(he=>{const P=he.length;P!==this._dataLength&&(this._dataLength=P,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(H){this._totalContentSize!==H&&(this._totalContentSize=H,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(H){(function me(nt,ke){return nt.start==ke.start&&nt.end==ke.end})(this._renderedRange,H)||(this.appendOnly&&(H={start:0,end:Math.max(this._renderedRange.end,H.end)}),this._renderedRangeSubject.next(this._renderedRange=H),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(H,he="to-start"){const R="horizontal"==this.orientation,V=R?"X":"Y";let Se=`translate${V}(${Number((R&&this.dir&&"rtl"==this.dir.value?-1:1)*H)}px)`;this._renderedContentOffset=H=this.appendOnly&&"to-start"===he?0:H,"to-end"===he&&(Se+=` translate${V}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Se&&(this._renderedContentTransform=Se,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(H,he="auto"){const P={behavior:he};"horizontal"===this.orientation?P.start=H:P.top=H,this.scrollTo(P)}scrollToIndex(H,he="auto"){this._scrollStrategy.scrollToIndex(H,he)}measureScrollOffset(H){return super.measureScrollOffset(H||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const H=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?H.offsetWidth:H.offsetHeight}measureRangeSize(H){return this._forOf?this._forOf.measureRangeSize(H,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const H=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?H.clientWidth:H.clientHeight}_markChangeDetectionNeeded(H){H&&this._runAfterChangeDetection.push(H),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 H=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const he of H)he()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return nt.\u0275fac=function(H){return new(H||nt)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(b.R0b),b.Y36(Pe,8),b.Y36(Y.Is,8),b.Y36(ve),b.Y36(I))},nt.\u0275cmp=b.Xpm({type:nt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(H,he){if(1&H&&b.Gf(ce,7),2&H){let P;b.iGM(P=b.CRH())&&(he._contentWrapper=P.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(H,he){2&H&&b.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===he.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==he.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[b._Bn([{provide:He,useExisting:nt}]),b.qOj],ngContentSelectors:le,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(H,he){1&H&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA(),b._UZ(3,"div",2)),2&H&&(b.xp6(3),b.Udp("width",he._totalContentWidth)("height",he._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),nt})();function pe(nt,ke,H){if(!H.getBoundingClientRect)return 0;const P=H.getBoundingClientRect();return"horizontal"===nt?"start"===ke?P.left:P.right:"start"===ke?P.top:P.bottom}let we=(()=>{class nt{constructor(H,he,P,R,V,Q){this._viewContainerRef=H,this._template=he,this._differs=P,this._viewRepeater=R,this._viewport=V,this.viewChange=new _.xQ,this._dataSourceChanges=new _.xQ,this.dataStream=this._dataSourceChanges.pipe((0,ue.O)(null),function B(){return nt=>nt.lift(new L)}(),(0,Oe.w)(([Se,je])=>this._changeDataSource(Se,je)),(0,T.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new _.xQ,this.dataStream.subscribe(Se=>{this._data=Se,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,Ne.R)(this._destroyed)).subscribe(Se=>{this._renderedRange=Se,Q.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(H){this._cdkVirtualForOf=H,(0,ee.Z9)(H)?this._dataSourceChanges.next(H):this._dataSourceChanges.next(new ee.P3((0,S.b)(H)?H:Array.from(H||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(H){this._needsUpdate=!0,this._cdkVirtualForTrackBy=H?(he,P)=>H(he+(this._renderedRange?this._renderedRange.start:0),P):void 0}set cdkVirtualForTemplate(H){H&&(this._needsUpdate=!0,this._template=H)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(H){this._viewRepeater.viewCacheSize=(0,e.su)(H)}measureRangeSize(H,he){if(H.start>=H.end)return 0;const P=H.start-this._renderedRange.start,R=H.end-H.start;let V,Q;for(let Se=0;Se-1;Se--){const je=this._viewContainerRef.get(Se+P);if(je&&je.rootNodes.length){Q=je.rootNodes[je.rootNodes.length-1];break}}return V&&Q?pe(he,"end",Q)-pe(he,"start",V):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const H=this._differ.diff(this._renderedItems);H?this._applyChanges(H):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((H,he)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(H,he):he)),this._needsUpdate=!0)}_changeDataSource(H,he){return H&&H.disconnect(this),this._needsUpdate=!0,he?he.connect(this):(0,w.of)()}_updateContext(){const H=this._data.length;let he=this._viewContainerRef.length;for(;he--;){const P=this._viewContainerRef.get(he);P.context.index=this._renderedRange.start+he,P.context.count=H,this._updateComputedContextProperties(P.context),P.detectChanges()}}_applyChanges(H){this._viewRepeater.applyChanges(H,this._viewContainerRef,(R,V,Q)=>this._getEmbeddedViewArgs(R,Q),R=>R.item),H.forEachIdentityChange(R=>{this._viewContainerRef.get(R.currentIndex).context.$implicit=R.item});const he=this._data.length;let P=this._viewContainerRef.length;for(;P--;){const R=this._viewContainerRef.get(P);R.context.index=this._renderedRange.start+P,R.context.count=he,this._updateComputedContextProperties(R.context)}}_updateComputedContextProperties(H){H.first=0===H.index,H.last=H.index===H.count-1,H.even=H.index%2==0,H.odd=!H.even}_getEmbeddedViewArgs(H,he){return{templateRef:this._template,context:{$implicit:H.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:he}}}return nt.\u0275fac=function(H){return new(H||nt)(b.Y36(b.s_b),b.Y36(b.Rgc),b.Y36(b.ZZ4),b.Y36(ee.k),b.Y36(Me,4),b.Y36(b.R0b))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[b._Bn([{provide:ee.k,useClass:ee.eX}])]}),nt})(),$e=(()=>{class nt{}return nt.\u0275fac=function(H){return new(H||nt)},nt.\u0275mod=b.oAB({type:nt}),nt.\u0275inj=b.cJS({}),nt})(),Je=(()=>{class nt{}return nt.\u0275fac=function(H){return new(H||nt)},nt.\u0275mod=b.oAB({type:nt}),nt.\u0275inj=b.cJS({imports:[[Y.vT,W.ud,$e],Y.vT,$e]}),nt})()},74533:(Xe,_e,p)=>{"use strict";p.d(_e,{Lq:()=>m,IC:()=>L,Ky:()=>J});var e=p(70925),b=p(5e3),_=p(63191),w=p(68896),g=p(8929),A=p(23753),E=p(57138),C=p(7625),O=p(69808);const S=(0,e.i$)({passive:!0});let m=(()=>{class ie{constructor(X,Ne){this._platform=X,this._ngZone=Ne,this._monitoredElements=new Map}monitor(X){if(!this._platform.isBrowser)return w.E;const Ne=(0,_.fI)(X),ue=this._monitoredElements.get(Ne);if(ue)return ue.subject;const Oe=new g.xQ,T="cdk-text-field-autofilled",Z=W=>{"cdk-text-field-autofill-start"!==W.animationName||Ne.classList.contains(T)?"cdk-text-field-autofill-end"===W.animationName&&Ne.classList.contains(T)&&(Ne.classList.remove(T),this._ngZone.run(()=>Oe.next({target:W.target,isAutofilled:!1}))):(Ne.classList.add(T),this._ngZone.run(()=>Oe.next({target:W.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Ne.addEventListener("animationstart",Z,S),Ne.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Ne,{subject:Oe,unlisten:()=>{Ne.removeEventListener("animationstart",Z,S)}}),Oe}stopMonitoring(X){const Ne=(0,_.fI)(X),ue=this._monitoredElements.get(Ne);ue&&(ue.unlisten(),ue.subject.complete(),Ne.classList.remove("cdk-text-field-autofill-monitored"),Ne.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Ne))}ngOnDestroy(){this._monitoredElements.forEach((X,Ne)=>this.stopMonitoring(Ne))}}return ie.\u0275fac=function(X){return new(X||ie)(b.LFG(e.t4),b.LFG(b.R0b))},ie.\u0275prov=b.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),L=(()=>{class ie{constructor(X,Ne,ue,Oe){this._elementRef=X,this._platform=Ne,this._ngZone=ue,this._destroyed=new g.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=T=>{this._hasFocus="focus"===T.type},this._document=Oe,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(X){this._minRows=(0,_.su)(X),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(X){this._maxRows=(0,_.su)(X),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(X){X=(0,_.Ig)(X),this._enabled!==X&&((this._enabled=X)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(X){this._cachedPlaceholderHeight=void 0,X?this._textareaElement.setAttribute("placeholder",X):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const X=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;X&&(this._textareaElement.style.minHeight=X)}_setMaxHeight(){const X=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;X&&(this._textareaElement.style.maxHeight=X)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const X=this._getWindow();(0,A.R)(X,"resize").pipe((0,E.e)(16),(0,C.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 X=this._textareaElement.cloneNode(!1);X.rows=1,X.style.position="absolute",X.style.visibility="hidden",X.style.border="none",X.style.padding="0",X.style.height="",X.style.minHeight="",X.style.maxHeight="",X.style.overflow="hidden",this._textareaElement.parentNode.appendChild(X),this._cachedLineHeight=X.clientHeight,X.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const X=this._textareaElement,Ne=X.style.marginBottom||"",ue=this._platform.FIREFOX,Oe=ue&&this._hasFocus,T=ue?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Oe&&(X.style.marginBottom=`${X.clientHeight}px`),X.classList.add(T);const Z=X.scrollHeight-4;return X.classList.remove(T),Oe&&(X.style.marginBottom=Ne),Z}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const X=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=X}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(X=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Ne=this._elementRef.nativeElement,ue=Ne.value;if(!X&&this._minRows===this._previousMinRows&&ue===this._previousValue)return;const Oe=this._measureScrollHeight(),T=Math.max(Oe,this._cachedPlaceholderHeight||0);Ne.style.height=`${T}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(Ne)):setTimeout(()=>this._scrollToCaretPosition(Ne))}),this._previousValue=ue,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(X){const{selectionStart:Ne,selectionEnd:ue}=X;!this._destroyed.isStopped&&this._hasFocus&&X.setSelectionRange(Ne,ue)}}return ie.\u0275fac=function(X){return new(X||ie)(b.Y36(b.SBq),b.Y36(e.t4),b.Y36(b.R0b),b.Y36(O.K0,8))},ie.\u0275dir=b.lG2({type:ie,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(X,Ne){1&X&&b.NdJ("input",function(){return Ne._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),ie})(),J=(()=>{class ie{}return ie.\u0275fac=function(X){return new(X||ie)},ie.\u0275mod=b.oAB({type:ie}),ie.\u0275inj=b.cJS({imports:[[e.ud]]}),ie})()},28258:(Xe,_e,p)=>{"use strict";p.d(_e,{HI:()=>ie,Xx:()=>Pe,_0:()=>Y,nZ:()=>ve,Hs:()=>ee,rO:()=>Ne,cu:()=>ge,XJ:()=>ze,Ud:()=>ae,C2:()=>L,VY:()=>J});var e=p(20449),b=p(54715),_=p(8929),w=p(591),g=p(21086),A=p(72986),E=p(92198),C=p(7625),O=p(5e3),S=p(63191),m=p(50226);class B{constructor(){this.expansionModel=new e.Ov(!0)}toggle(z){this.expansionModel.toggle(this._trackByValue(z))}expand(z){this.expansionModel.select(this._trackByValue(z))}collapse(z){this.expansionModel.deselect(this._trackByValue(z))}isExpanded(z){return this.expansionModel.isSelected(this._trackByValue(z))}toggleDescendants(z){this.expansionModel.isSelected(this._trackByValue(z))?this.collapseDescendants(z):this.expandDescendants(z)}collapseAll(){this.expansionModel.clear()}expandDescendants(z){let I=[z];I.push(...this.getDescendants(z)),this.expansionModel.select(...I.map(me=>this._trackByValue(me)))}collapseDescendants(z){let I=[z];I.push(...this.getDescendants(z)),this.expansionModel.deselect(...I.map(me=>this._trackByValue(me)))}_trackByValue(z){return this.trackBy?this.trackBy(z):z}}class L extends B{constructor(z,I,me){super(),this.getLevel=z,this.isExpandable=I,this.options=me,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(z){const me=[];for(let Ae=this.dataNodes.indexOf(z)+1;Aethis._trackByValue(z)))}}class J extends B{constructor(z,I){super(),this.getChildren=z,this.options=I,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const z=this.dataNodes.reduce((I,me)=>[...I,...this.getDescendants(me),me],[]);this.expansionModel.select(...z.map(I=>this._trackByValue(I)))}getDescendants(z){const I=[];return this._getDescendants(I,z),I.splice(1)}_getDescendants(z,I){z.push(I);const me=this.getChildren(I);Array.isArray(me)?me.forEach(Ae=>this._getDescendants(z,Ae)):(0,b.b)(me)&&me.pipe((0,A.q)(1),(0,E.h)(Boolean)).subscribe(Ae=>{for(const Me of Ae)this._getDescendants(z,Me)})}}const ie=new O.OlP("CDK_TREE_NODE_OUTLET_NODE");let ge=(()=>{class He{constructor(I,me){this.viewContainer=I,this._node=me}}return He.\u0275fac=function(I){return new(I||He)(O.Y36(O.s_b),O.Y36(ie,8))},He.\u0275dir=O.lG2({type:He,selectors:[["","cdkTreeNodeOutlet",""]]}),He})();class X{constructor(z){this.$implicit=z}}let Ne=(()=>{class He{constructor(I){this.template=I}}return He.\u0275fac=function(I){return new(I||He)(O.Y36(O.Rgc))},He.\u0275dir=O.lG2({type:He,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),He})(),Y=(()=>{class He{constructor(I,me){this._differs=I,this._changeDetectorRef=me,this._onDestroy=new _.xQ,this._levels=new Map,this.viewChange=new w.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(I){this._dataSource!==I&&this._switchDataSource(I)}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 I=this._nodeDefs.filter(me=>!me.when);this._defaultNodeDef=I[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(I){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),I||this._nodeOutlet.viewContainer.clear(),this._dataSource=I,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let I;(0,e.Z9)(this._dataSource)?I=this._dataSource.connect(this):(0,b.b)(this._dataSource)?I=this._dataSource:Array.isArray(this._dataSource)&&(I=(0,g.of)(this._dataSource)),I&&(this._dataSubscription=I.pipe((0,C.R)(this._onDestroy)).subscribe(me=>this.renderNodeChanges(me)))}renderNodeChanges(I,me=this._dataDiffer,Ae=this._nodeOutlet.viewContainer,Me){const pe=me.diff(I);!pe||(pe.forEachOperation((we,$e,Je)=>{if(null==we.previousIndex)this.insertNode(I[Je],Je,Ae,Me);else if(null==Je)Ae.remove($e),this._levels.delete(we.item);else{const nt=Ae.get($e);Ae.move(nt,Je)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(I,me){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Me=>Me.when&&Me.when(me,I))||this._defaultNodeDef}insertNode(I,me,Ae,Me){const pe=this._getNodeDef(I,me),we=new X(I);we.level=this.treeControl.getLevel?this.treeControl.getLevel(I):void 0!==Me&&this._levels.has(Me)?this._levels.get(Me)+1:0,this._levels.set(I,we.level),(Ae||this._nodeOutlet.viewContainer).createEmbeddedView(pe.template,we,me),ee.mostRecentTreeNode&&(ee.mostRecentTreeNode.data=I)}}return He.\u0275fac=function(I){return new(I||He)(O.Y36(O.ZZ4),O.Y36(O.sBO))},He.\u0275cmp=O.Xpm({type:He,selectors:[["cdk-tree"]],contentQueries:function(I,me,Ae){if(1&I&&O.Suo(Ae,Ne,5),2&I){let Me;O.iGM(Me=O.CRH())&&(me._nodeDefs=Me)}},viewQuery:function(I,me){if(1&I&&O.Gf(ge,7),2&I){let Ae;O.iGM(Ae=O.CRH())&&(me._nodeOutlet=Ae.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(I,me){1&I&&O.GkF(0,0)},directives:[ge],encapsulation:2}),He})(),ee=(()=>{class He{constructor(I,me){this._elementRef=I,this._tree=me,this._destroyed=new _.xQ,this._dataChanges=new _.xQ,He.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(I){this._elementRef.nativeElement.setAttribute("role",I)}get data(){return this._data}set data(I){I!==this._data&&(this._data=I,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 ce(He){let z=He.parentElement;for(;z&&!le(z);)z=z.parentElement;return z?z.classList.contains("cdk-nested-tree-node")?(0,S.su)(z.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){He.mostRecentTreeNode===this&&(He.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return He.mostRecentTreeNode=null,He.\u0275fac=function(I){return new(I||He)(O.Y36(O.SBq),O.Y36(Y))},He.\u0275dir=O.lG2({type:He,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(I,me){2&I&&O.uIk("aria-expanded",me.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),He})();function le(He){const z=He.classList;return!(!(null==z?void 0:z.contains("cdk-nested-tree-node"))&&!(null==z?void 0:z.contains("cdk-tree")))}let Pe=(()=>{class He extends ee{constructor(I,me,Ae){super(I,me),this._differs=Ae}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const I=this._tree.treeControl.getChildren(this.data);Array.isArray(I)?this.updateChildrenNodes(I):(0,b.b)(I)&&I.pipe((0,C.R)(this._destroyed)).subscribe(me=>this.updateChildrenNodes(me)),this.nodeOutlet.changes.pipe((0,C.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(I){const me=this._getNodeOutlet();I&&(this._children=I),me&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,me.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const I=this._getNodeOutlet();I&&(I.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const I=this.nodeOutlet;return I&&I.find(me=>!me._node||me._node===this)}}return He.\u0275fac=function(I){return new(I||He)(O.Y36(O.SBq),O.Y36(Y),O.Y36(O.ZZ4))},He.\u0275dir=O.lG2({type:He,selectors:[["cdk-nested-tree-node"]],contentQueries:function(I,me,Ae){if(1&I&&O.Suo(Ae,ge,5),2&I){let Me;O.iGM(Me=O.CRH())&&(me.nodeOutlet=Me)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[O._Bn([{provide:ee,useExisting:He},{provide:ie,useExisting:He}]),O.qOj]}),He})();const Fe=/([A-Za-z%]+)$/;let ze=(()=>{class He{constructor(I,me,Ae,Me){this._treeNode=I,this._tree=me,this._element=Ae,this._dir=Me,this._destroyed=new _.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),Me&&Me.change.pipe((0,C.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),I._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(I){this._setLevelInput(I)}get indent(){return this._indent}set indent(I){this._setIndentInput(I)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const I=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,me=null==this._level?I:this._level;return"number"==typeof me?`${me*this._indent}${this.indentUnits}`:null}_setPadding(I=!1){const me=this._paddingIndent();if(me!==this._currentPadding||I){const Ae=this._element.nativeElement,Me=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",pe="paddingLeft"===Me?"paddingRight":"paddingLeft";Ae.style[Me]=me||"",Ae.style[pe]="",this._currentPadding=me}}_setLevelInput(I){this._level=(0,S.su)(I,null),this._setPadding()}_setIndentInput(I){let me=I,Ae="px";if("string"==typeof I){const Me=I.split(Fe);me=Me[0],Ae=Me[1]||Ae}this.indentUnits=Ae,this._indent=(0,S.su)(me),this._setPadding()}}return He.\u0275fac=function(I){return new(I||He)(O.Y36(ee),O.Y36(Y),O.Y36(O.SBq),O.Y36(m.Is,8))},He.\u0275dir=O.lG2({type:He,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),He})(),ae=(()=>{class He{constructor(I,me){this._tree=I,this._treeNode=me,this._recursive=!1}get recursive(){return this._recursive}set recursive(I){this._recursive=(0,S.Ig)(I)}_toggle(I){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),I.stopPropagation()}}return He.\u0275fac=function(I){return new(I||He)(O.Y36(Y),O.Y36(ee))},He.\u0275dir=O.lG2({type:He,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(I,me){1&I&&O.NdJ("click",function(Me){return me._toggle(Me)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),He})(),ve=(()=>{class He{}return He.\u0275fac=function(I){return new(I||He)},He.\u0275mod=O.oAB({type:He}),He.\u0275inj=O.cJS({}),He})()},69808:(Xe,_e,p)=>{"use strict";p.d(_e,{mr:()=>ue,Ov:()=>Qe,ez:()=>Un,K0:()=>E,uU:()=>Li,Do:()=>T,V_:()=>S,Ye:()=>Z,S$:()=>X,i8:()=>Tt,mk:()=>wi,sg:()=>Fi,O5:()=>Ni,PC:()=>kn,RF:()=>en,n9:()=>an,ED:()=>dn,tP:()=>Nn,b0:()=>Oe,lw:()=>C,rS:()=>ci,gd:()=>vi,EM:()=>ft,JF:()=>Ct,p6:()=>c,NF:()=>Cn,PM:()=>$n,w_:()=>A,bD:()=>hr,q:()=>_,Mx:()=>Di,HT:()=>g});var e=p(5e3);let b=null;function _(){return b}function g($){b||(b=$)}class A{}const E=new e.OlP("DocumentToken");let C=(()=>{class ${historyGo(de){throw new Error("Not implemented")}}return $.\u0275fac=function(de){return new(de||$)},$.\u0275prov=e.Yz7({token:$,factory:function(){return function O(){return(0,e.LFG)(m)}()},providedIn:"platform"}),$})();const S=new e.OlP("Location Initialized");let m=(()=>{class $ extends C{constructor(de){super(),this._doc=de,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(de){const tt=_().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("popstate",de,!1),()=>tt.removeEventListener("popstate",de)}onHashChange(de){const tt=_().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("hashchange",de,!1),()=>tt.removeEventListener("hashchange",de)}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(de){this.location.pathname=de}pushState(de,tt,yt){B()?this._history.pushState(de,tt,yt):this.location.hash=yt}replaceState(de,tt,yt){B()?this._history.replaceState(de,tt,yt):this.location.hash=yt}forward(){this._history.forward()}back(){this._history.back()}historyGo(de=0){this._history.go(de)}getState(){return this._history.state}}return $.\u0275fac=function(de){return new(de||$)(e.LFG(E))},$.\u0275prov=e.Yz7({token:$,factory:function(){return function L(){return new m((0,e.LFG)(E))}()},providedIn:"platform"}),$})();function B(){return!!window.history.pushState}function J($,Re){if(0==$.length)return Re;if(0==Re.length)return $;let de=0;return $.endsWith("/")&&de++,Re.startsWith("/")&&de++,2==de?$+Re.substring(1):1==de?$+Re:$+"/"+Re}function ie($){const Re=$.match(/#|\?|$/),de=Re&&Re.index||$.length;return $.slice(0,de-("/"===$[de-1]?1:0))+$.slice(de)}function ge($){return $&&"?"!==$[0]?"?"+$:$}let X=(()=>{class ${historyGo(de){throw new Error("Not implemented")}}return $.\u0275fac=function(de){return new(de||$)},$.\u0275prov=e.Yz7({token:$,factory:function(){return function Ne($){const Re=(0,e.LFG)(E).location;return new Oe((0,e.LFG)(C),Re&&Re.origin||"")}()},providedIn:"root"}),$})();const ue=new e.OlP("appBaseHref");let Oe=(()=>{class $ extends X{constructor(de,tt){if(super(),this._platformLocation=de,this._removeListenerFns=[],null==tt&&(tt=this._platformLocation.getBaseHrefFromDOM()),null==tt)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=tt}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(de){this._removeListenerFns.push(this._platformLocation.onPopState(de),this._platformLocation.onHashChange(de))}getBaseHref(){return this._baseHref}prepareExternalUrl(de){return J(this._baseHref,de)}path(de=!1){const tt=this._platformLocation.pathname+ge(this._platformLocation.search),yt=this._platformLocation.hash;return yt&&de?`${tt}${yt}`:tt}pushState(de,tt,yt,Gt){const Wt=this.prepareExternalUrl(yt+ge(Gt));this._platformLocation.pushState(de,tt,Wt)}replaceState(de,tt,yt,Gt){const Wt=this.prepareExternalUrl(yt+ge(Gt));this._platformLocation.replaceState(de,tt,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(de=0){var tt,yt;null===(yt=(tt=this._platformLocation).historyGo)||void 0===yt||yt.call(tt,de)}}return $.\u0275fac=function(de){return new(de||$)(e.LFG(C),e.LFG(ue,8))},$.\u0275prov=e.Yz7({token:$,factory:$.\u0275fac}),$})(),T=(()=>{class $ extends X{constructor(de,tt){super(),this._platformLocation=de,this._baseHref="",this._removeListenerFns=[],null!=tt&&(this._baseHref=tt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(de){this._removeListenerFns.push(this._platformLocation.onPopState(de),this._platformLocation.onHashChange(de))}getBaseHref(){return this._baseHref}path(de=!1){let tt=this._platformLocation.hash;return null==tt&&(tt="#"),tt.length>0?tt.substring(1):tt}prepareExternalUrl(de){const tt=J(this._baseHref,de);return tt.length>0?"#"+tt:tt}pushState(de,tt,yt,Gt){let Wt=this.prepareExternalUrl(yt+ge(Gt));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.pushState(de,tt,Wt)}replaceState(de,tt,yt,Gt){let Wt=this.prepareExternalUrl(yt+ge(Gt));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.replaceState(de,tt,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(de=0){var tt,yt;null===(yt=(tt=this._platformLocation).historyGo)||void 0===yt||yt.call(tt,de)}}return $.\u0275fac=function(de){return new(de||$)(e.LFG(C),e.LFG(ue,8))},$.\u0275prov=e.Yz7({token:$,factory:$.\u0275fac}),$})(),Z=(()=>{class ${constructor(de,tt){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=de;const yt=this._platformStrategy.getBaseHref();this._platformLocation=tt,this._baseHref=ie(ee(yt)),this._platformStrategy.onPopState(Gt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Gt.state,type:Gt.type})})}path(de=!1){return this.normalize(this._platformStrategy.path(de))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(de,tt=""){return this.path()==this.normalize(de+ge(tt))}normalize(de){return $.stripTrailingSlash(function Y($,Re){return $&&Re.startsWith($)?Re.substring($.length):Re}(this._baseHref,ee(de)))}prepareExternalUrl(de){return de&&"/"!==de[0]&&(de="/"+de),this._platformStrategy.prepareExternalUrl(de)}go(de,tt="",yt=null){this._platformStrategy.pushState(yt,"",de,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(de+ge(tt)),yt)}replaceState(de,tt="",yt=null){this._platformStrategy.replaceState(yt,"",de,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(de+ge(tt)),yt)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(de=0){var tt,yt;null===(yt=(tt=this._platformStrategy).historyGo)||void 0===yt||yt.call(tt,de)}onUrlChange(de){this._urlChangeListeners.push(de),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(tt=>{this._notifyUrlChangeListeners(tt.url,tt.state)}))}_notifyUrlChangeListeners(de="",tt){this._urlChangeListeners.forEach(yt=>yt(de,tt))}subscribe(de,tt,yt){return this._subject.subscribe({next:de,error:tt,complete:yt})}}return $.normalizeQueryParams=ge,$.joinWithSlash=J,$.stripTrailingSlash=ie,$.\u0275fac=function(de){return new(de||$)(e.LFG(X),e.LFG(C))},$.\u0275prov=e.Yz7({token:$,factory:function(){return function W(){return new Z((0,e.LFG)(X),(0,e.LFG)(C))}()},providedIn:"root"}),$})();function ee($){return $.replace(/\/index.html$/,"")}var Pe=(()=>((Pe=Pe||{})[Pe.Zero=0]="Zero",Pe[Pe.One=1]="One",Pe[Pe.Two=2]="Two",Pe[Pe.Few=3]="Few",Pe[Pe.Many=4]="Many",Pe[Pe.Other=5]="Other",Pe))(),Fe=(()=>((Fe=Fe||{})[Fe.Format=0]="Format",Fe[Fe.Standalone=1]="Standalone",Fe))(),ze=(()=>((ze=ze||{})[ze.Narrow=0]="Narrow",ze[ze.Abbreviated=1]="Abbreviated",ze[ze.Wide=2]="Wide",ze[ze.Short=3]="Short",ze))(),ae=(()=>((ae=ae||{})[ae.Short=0]="Short",ae[ae.Medium=1]="Medium",ae[ae.Long=2]="Long",ae[ae.Full=3]="Full",ae))(),Ue=(()=>((Ue=Ue||{})[Ue.Decimal=0]="Decimal",Ue[Ue.Group=1]="Group",Ue[Ue.List=2]="List",Ue[Ue.PercentSign=3]="PercentSign",Ue[Ue.PlusSign=4]="PlusSign",Ue[Ue.MinusSign=5]="MinusSign",Ue[Ue.Exponential=6]="Exponential",Ue[Ue.SuperscriptingExponent=7]="SuperscriptingExponent",Ue[Ue.PerMille=8]="PerMille",Ue[Ue.Infinity=9]="Infinity",Ue[Ue.NaN=10]="NaN",Ue[Ue.TimeSeparator=11]="TimeSeparator",Ue[Ue.CurrencyDecimal=12]="CurrencyDecimal",Ue[Ue.CurrencyGroup=13]="CurrencyGroup",Ue))();function we($,Re){return ye((0,e.cg1)($)[e.wAp.DateFormat],Re)}function $e($,Re){return ye((0,e.cg1)($)[e.wAp.TimeFormat],Re)}function Je($,Re){return ye((0,e.cg1)($)[e.wAp.DateTimeFormat],Re)}function nt($,Re){const de=(0,e.cg1)($),tt=de[e.wAp.NumberSymbols][Re];if(void 0===tt){if(Re===Ue.CurrencyDecimal)return de[e.wAp.NumberSymbols][Ue.Decimal];if(Re===Ue.CurrencyGroup)return de[e.wAp.NumberSymbols][Ue.Group]}return tt}const V=e.kL8;function Q($){if(!$[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${$[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ye($,Re){for(let de=Re;de>-1;de--)if(void 0!==$[de])return $[de];throw new Error("Locale data API: locale data undefined")}function re($){const[Re,de]=$.split(":");return{hours:+Re,minutes:+de}}const l=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,s={},i=/((?:[^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 t=(()=>((t=t||{})[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t))(),n=(()=>((n=n||{})[n.FullYear=0]="FullYear",n[n.Month=1]="Month",n[n.Date=2]="Date",n[n.Hours=3]="Hours",n[n.Minutes=4]="Minutes",n[n.Seconds=5]="Seconds",n[n.FractionalSeconds=6]="FractionalSeconds",n[n.Day=7]="Day",n))(),a=(()=>((a=a||{})[a.DayPeriods=0]="DayPeriods",a[a.Days=1]="Days",a[a.Months=2]="Months",a[a.Eras=3]="Eras",a))();function c($,Re,de,tt){let yt=function Rt($){if(Bt($))return $;if("number"==typeof $&&!isNaN($))return new Date($);if("string"==typeof $){if($=$.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test($)){const[yt,Gt=1,Wt=1]=$.split("-").map(ii=>+ii);return h(yt,Gt-1,Wt)}const de=parseFloat($);if(!isNaN($-de))return new Date(de);let tt;if(tt=$.match(l))return function Et($){const Re=new Date(0);let de=0,tt=0;const yt=$[8]?Re.setUTCFullYear:Re.setFullYear,Gt=$[8]?Re.setUTCHours:Re.setHours;$[9]&&(de=Number($[9]+$[10]),tt=Number($[9]+$[11])),yt.call(Re,Number($[1]),Number($[2])-1,Number($[3]));const Wt=Number($[4]||0)-de,ii=Number($[5]||0)-tt,di=Number($[6]||0),ui=Math.floor(1e3*parseFloat("0."+($[7]||0)));return Gt.call(Re,Wt,ii,di,ui),Re}(tt)}const Re=new Date($);if(!Bt(Re))throw new Error(`Unable to convert "${$}" into a date`);return Re}($);Re=x(de,Re)||Re;let ii,Wt=[];for(;Re;){if(ii=i.exec(Re),!ii){Wt.push(Re);break}{Wt=Wt.concat(ii.slice(1));const _i=Wt.pop();if(!_i)break;Re=_i}}let di=yt.getTimezoneOffset();tt&&(di=xt(tt,di),yt=function It($,Re,de){const tt=de?-1:1,yt=$.getTimezoneOffset();return function Yt($,Re){return($=new Date($.getTime())).setMinutes($.getMinutes()+Re),$}($,tt*(xt(Re,yt)-yt))}(yt,tt,!0));let ui="";return Wt.forEach(_i=>{const Ti=function bt($){if(ct[$])return ct[$];let Re;switch($){case"G":case"GG":case"GGG":Re=mt(a.Eras,ze.Abbreviated);break;case"GGGG":Re=mt(a.Eras,ze.Wide);break;case"GGGGG":Re=mt(a.Eras,ze.Narrow);break;case"y":Re=lt(n.FullYear,1,0,!1,!0);break;case"yy":Re=lt(n.FullYear,2,0,!0,!0);break;case"yyy":Re=lt(n.FullYear,3,0,!1,!0);break;case"yyyy":Re=lt(n.FullYear,4,0,!1,!0);break;case"Y":Re=Ie(1);break;case"YY":Re=Ie(2,!0);break;case"YYY":Re=Ie(3);break;case"YYYY":Re=Ie(4);break;case"M":case"L":Re=lt(n.Month,1,1);break;case"MM":case"LL":Re=lt(n.Month,2,1);break;case"MMM":Re=mt(a.Months,ze.Abbreviated);break;case"MMMM":Re=mt(a.Months,ze.Wide);break;case"MMMMM":Re=mt(a.Months,ze.Narrow);break;case"LLL":Re=mt(a.Months,ze.Abbreviated,Fe.Standalone);break;case"LLLL":Re=mt(a.Months,ze.Wide,Fe.Standalone);break;case"LLLLL":Re=mt(a.Months,ze.Narrow,Fe.Standalone);break;case"w":Re=oe(1);break;case"ww":Re=oe(2);break;case"W":Re=oe(1,!0);break;case"d":Re=lt(n.Date,1);break;case"dd":Re=lt(n.Date,2);break;case"c":case"cc":Re=lt(n.Day,1);break;case"ccc":Re=mt(a.Days,ze.Abbreviated,Fe.Standalone);break;case"cccc":Re=mt(a.Days,ze.Wide,Fe.Standalone);break;case"ccccc":Re=mt(a.Days,ze.Narrow,Fe.Standalone);break;case"cccccc":Re=mt(a.Days,ze.Short,Fe.Standalone);break;case"E":case"EE":case"EEE":Re=mt(a.Days,ze.Abbreviated);break;case"EEEE":Re=mt(a.Days,ze.Wide);break;case"EEEEE":Re=mt(a.Days,ze.Narrow);break;case"EEEEEE":Re=mt(a.Days,ze.Short);break;case"a":case"aa":case"aaa":Re=mt(a.DayPeriods,ze.Abbreviated);break;case"aaaa":Re=mt(a.DayPeriods,ze.Wide);break;case"aaaaa":Re=mt(a.DayPeriods,ze.Narrow);break;case"b":case"bb":case"bbb":Re=mt(a.DayPeriods,ze.Abbreviated,Fe.Standalone,!0);break;case"bbbb":Re=mt(a.DayPeriods,ze.Wide,Fe.Standalone,!0);break;case"bbbbb":Re=mt(a.DayPeriods,ze.Narrow,Fe.Standalone,!0);break;case"B":case"BB":case"BBB":Re=mt(a.DayPeriods,ze.Abbreviated,Fe.Format,!0);break;case"BBBB":Re=mt(a.DayPeriods,ze.Wide,Fe.Format,!0);break;case"BBBBB":Re=mt(a.DayPeriods,ze.Narrow,Fe.Format,!0);break;case"h":Re=lt(n.Hours,1,-12);break;case"hh":Re=lt(n.Hours,2,-12);break;case"H":Re=lt(n.Hours,1);break;case"HH":Re=lt(n.Hours,2);break;case"m":Re=lt(n.Minutes,1);break;case"mm":Re=lt(n.Minutes,2);break;case"s":Re=lt(n.Seconds,1);break;case"ss":Re=lt(n.Seconds,2);break;case"S":Re=lt(n.FractionalSeconds,1);break;case"SS":Re=lt(n.FractionalSeconds,2);break;case"SSS":Re=lt(n.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Re=Te(t.Short);break;case"ZZZZZ":Re=Te(t.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Re=Te(t.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Re=Te(t.Long);break;default:return null}return ct[$]=Re,Re}(_i);ui+=Ti?Ti(yt,de,di):"''"===_i?"'":_i.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ui}function h($,Re,de){const tt=new Date(0);return tt.setFullYear($,Re,de),tt.setHours(0,0,0),tt}function x($,Re){const de=function He($){return(0,e.cg1)($)[e.wAp.LocaleId]}($);if(s[de]=s[de]||{},s[de][Re])return s[de][Re];let tt="";switch(Re){case"shortDate":tt=we($,ae.Short);break;case"mediumDate":tt=we($,ae.Medium);break;case"longDate":tt=we($,ae.Long);break;case"fullDate":tt=we($,ae.Full);break;case"shortTime":tt=$e($,ae.Short);break;case"mediumTime":tt=$e($,ae.Medium);break;case"longTime":tt=$e($,ae.Long);break;case"fullTime":tt=$e($,ae.Full);break;case"short":const yt=x($,"shortTime"),Gt=x($,"shortDate");tt=We(Je($,ae.Short),[yt,Gt]);break;case"medium":const Wt=x($,"mediumTime"),ii=x($,"mediumDate");tt=We(Je($,ae.Medium),[Wt,ii]);break;case"long":const di=x($,"longTime"),ui=x($,"longDate");tt=We(Je($,ae.Long),[di,ui]);break;case"full":const _i=x($,"fullTime"),Ti=x($,"fullDate");tt=We(Je($,ae.Full),[_i,Ti])}return tt&&(s[de][Re]=tt),tt}function We($,Re){return Re&&($=$.replace(/\{([^}]+)}/g,function(de,tt){return null!=Re&&tt in Re?Re[tt]:de})),$}function At($,Re,de="-",tt,yt){let Gt="";($<0||yt&&$<=0)&&(yt?$=1-$:($=-$,Gt=de));let Wt=String($);for(;Wt.length0||ii>-de)&&(ii+=de),$===n.Hours)0===ii&&-12===de&&(ii=12);else if($===n.FractionalSeconds)return function Ht($,Re){return At($,3).substr(0,Re)}(ii,Re);const di=nt(Wt,Ue.MinusSign);return At(ii,Re,di,tt,yt)}}function mt($,Re,de=Fe.Format,tt=!1){return function(yt,Gt){return function Lt($,Re,de,tt,yt,Gt){switch(de){case a.Months:return function me($,Re,de){const tt=(0,e.cg1)($),Gt=ye([tt[e.wAp.MonthsFormat],tt[e.wAp.MonthsStandalone]],Re);return ye(Gt,de)}(Re,yt,tt)[$.getMonth()];case a.Days:return function I($,Re,de){const tt=(0,e.cg1)($),Gt=ye([tt[e.wAp.DaysFormat],tt[e.wAp.DaysStandalone]],Re);return ye(Gt,de)}(Re,yt,tt)[$.getDay()];case a.DayPeriods:const Wt=$.getHours(),ii=$.getMinutes();if(Gt){const ui=function Se($){const Re=(0,e.cg1)($);return Q(Re),(Re[e.wAp.ExtraData][2]||[]).map(tt=>"string"==typeof tt?re(tt):[re(tt[0]),re(tt[1])])}(Re),_i=function je($,Re,de){const tt=(0,e.cg1)($);Q(tt);const Gt=ye([tt[e.wAp.ExtraData][0],tt[e.wAp.ExtraData][1]],Re)||[];return ye(Gt,de)||[]}(Re,yt,tt),Ti=ui.findIndex(Hi=>{if(Array.isArray(Hi)){const[Be,xe]=Hi,Ee=Wt>=Be.hours&&ii>=Be.minutes,ut=Wt0?Math.floor(yt/60):Math.ceil(yt/60);switch($){case t.Short:return(yt>=0?"+":"")+At(Wt,2,Gt)+At(Math.abs(yt%60),2,Gt);case t.ShortGMT:return"GMT"+(yt>=0?"+":"")+At(Wt,1,Gt);case t.Long:return"GMT"+(yt>=0?"+":"")+At(Wt,2,Gt)+":"+At(Math.abs(yt%60),2,Gt);case t.Extended:return 0===tt?"Z":(yt>=0?"+":"")+At(Wt,2,Gt)+":"+At(Math.abs(yt%60),2,Gt);default:throw new Error(`Unknown zone width "${$}"`)}}}function te($){return h($.getFullYear(),$.getMonth(),$.getDate()+(4-$.getDay()))}function oe($,Re=!1){return function(de,tt){let yt;if(Re){const Gt=new Date(de.getFullYear(),de.getMonth(),1).getDay()-1,Wt=de.getDate();yt=1+Math.floor((Wt+Gt)/7)}else{const Gt=te(de),Wt=function N($){const Re=h($,0,1).getDay();return h($,0,1+(Re<=4?4:11)-Re)}(Gt.getFullYear()),ii=Gt.getTime()-Wt.getTime();yt=1+Math.round(ii/6048e5)}return At(yt,$,nt(tt,Ue.MinusSign))}}function Ie($,Re=!1){return function(de,tt){return At(te(de).getFullYear(),$,nt(tt,Ue.MinusSign),Re)}}const ct={};function xt($,Re){$=$.replace(/:/g,"");const de=Date.parse("Jan 01, 1970 00:00:00 "+$)/6e4;return isNaN(de)?Re:de}function Bt($){return $ instanceof Date&&!isNaN($.valueOf())}class gt{}let ri=(()=>{class $ extends gt{constructor(de){super(),this.locale=de}getPluralCategory(de,tt){switch(V(tt||this.locale)(de)){case Pe.Zero:return"zero";case Pe.One:return"one";case Pe.Two:return"two";case Pe.Few:return"few";case Pe.Many:return"many";default:return"other"}}}return $.\u0275fac=function(de){return new(de||$)(e.LFG(e.soG))},$.\u0275prov=e.Yz7({token:$,factory:$.\u0275fac}),$})();function Di($,Re){Re=encodeURIComponent(Re);for(const de of $.split(";")){const tt=de.indexOf("="),[yt,Gt]=-1==tt?[de,""]:[de.slice(0,tt),de.slice(tt+1)];if(yt.trim()===Re)return decodeURIComponent(Gt)}return null}let wi=(()=>{class ${constructor(de,tt,yt,Gt){this._iterableDiffers=de,this._keyValueDiffers=tt,this._ngEl=yt,this._renderer=Gt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(de){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof de?de.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(de){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof de?de.split(/\s+/):de,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 de=this._iterableDiffer.diff(this._rawClass);de&&this._applyIterableChanges(de)}else if(this._keyValueDiffer){const de=this._keyValueDiffer.diff(this._rawClass);de&&this._applyKeyValueChanges(de)}}_applyKeyValueChanges(de){de.forEachAddedItem(tt=>this._toggleClass(tt.key,tt.currentValue)),de.forEachChangedItem(tt=>this._toggleClass(tt.key,tt.currentValue)),de.forEachRemovedItem(tt=>{tt.previousValue&&this._toggleClass(tt.key,!1)})}_applyIterableChanges(de){de.forEachAddedItem(tt=>{if("string"!=typeof tt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(tt.item)}`);this._toggleClass(tt.item,!0)}),de.forEachRemovedItem(tt=>this._toggleClass(tt.item,!1))}_applyClasses(de){de&&(Array.isArray(de)||de instanceof Set?de.forEach(tt=>this._toggleClass(tt,!0)):Object.keys(de).forEach(tt=>this._toggleClass(tt,!!de[tt])))}_removeClasses(de){de&&(Array.isArray(de)||de instanceof Set?de.forEach(tt=>this._toggleClass(tt,!1)):Object.keys(de).forEach(tt=>this._toggleClass(tt,!1)))}_toggleClass(de,tt){(de=de.trim())&&de.split(/\s+/g).forEach(yt=>{tt?this._renderer.addClass(this._ngEl.nativeElement,yt):this._renderer.removeClass(this._ngEl.nativeElement,yt)})}}return $.\u0275fac=function(de){return new(de||$)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},$.\u0275dir=e.lG2({type:$,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),$})();class qi{constructor(Re,de,tt,yt){this.$implicit=Re,this.ngForOf=de,this.index=tt,this.count=yt}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 Fi=(()=>{class ${constructor(de,tt,yt){this._viewContainer=de,this._template=tt,this._differs=yt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(de){this._ngForOf=de,this._ngForOfDirty=!0}set ngForTrackBy(de){this._trackByFn=de}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(de){de&&(this._template=de)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const de=this._ngForOf;!this._differ&&de&&(this._differ=this._differs.find(de).create(this.ngForTrackBy))}if(this._differ){const de=this._differ.diff(this._ngForOf);de&&this._applyChanges(de)}}_applyChanges(de){const tt=this._viewContainer;de.forEachOperation((yt,Gt,Wt)=>{if(null==yt.previousIndex)tt.createEmbeddedView(this._template,new qi(yt.item,this._ngForOf,-1,-1),null===Wt?void 0:Wt);else if(null==Wt)tt.remove(null===Gt?void 0:Gt);else if(null!==Gt){const ii=tt.get(Gt);tt.move(ii,Wt),Ji(ii,yt)}});for(let yt=0,Gt=tt.length;yt{Ji(tt.get(yt.currentIndex),yt)})}static ngTemplateContextGuard(de,tt){return!0}}return $.\u0275fac=function(de){return new(de||$)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},$.\u0275dir=e.lG2({type:$,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),$})();function Ji($,Re){$.context.$implicit=Re.item}let Ni=(()=>{class ${constructor(de,tt){this._viewContainer=de,this._context=new Ri,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=tt}set ngIf(de){this._context.$implicit=this._context.ngIf=de,this._updateView()}set ngIfThen(de){sn("ngIfThen",de),this._thenTemplateRef=de,this._thenViewRef=null,this._updateView()}set ngIfElse(de){sn("ngIfElse",de),this._elseTemplateRef=de,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(de,tt){return!0}}return $.\u0275fac=function(de){return new(de||$)(e.Y36(e.s_b),e.Y36(e.Rgc))},$.\u0275dir=e.lG2({type:$,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),$})();class Ri{constructor(){this.$implicit=null,this.ngIf=null}}function sn($,Re){if(Re&&!Re.createEmbeddedView)throw new Error(`${$} must be a TemplateRef, but received '${(0,e.AaK)(Re)}'.`)}class Xi{constructor(Re,de){this._viewContainerRef=Re,this._templateRef=de,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Re){Re&&!this._created?this.create():!Re&&this._created&&this.destroy()}}let en=(()=>{class ${constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(de){this._ngSwitch=de,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(de){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(de)}_matchCase(de){const tt=de==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||tt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),tt}_updateDefaultCases(de){if(this._defaultViews&&de!==this._defaultUsed){this._defaultUsed=de;for(let tt=0;tt{class ${constructor(de,tt,yt){this.ngSwitch=yt,yt._addCase(),this._view=new Xi(de,tt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return $.\u0275fac=function(de){return new(de||$)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(en,9))},$.\u0275dir=e.lG2({type:$,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),$})(),dn=(()=>{class ${constructor(de,tt,yt){yt._addDefault(new Xi(de,tt))}}return $.\u0275fac=function(de){return new(de||$)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(en,9))},$.\u0275dir=e.lG2({type:$,selectors:[["","ngSwitchDefault",""]]}),$})(),kn=(()=>{class ${constructor(de,tt,yt){this._ngEl=de,this._differs=tt,this._renderer=yt,this._ngStyle=null,this._differ=null}set ngStyle(de){this._ngStyle=de,!this._differ&&de&&(this._differ=this._differs.find(de).create())}ngDoCheck(){if(this._differ){const de=this._differ.diff(this._ngStyle);de&&this._applyChanges(de)}}_setStyle(de,tt){const[yt,Gt]=de.split(".");null!=(tt=null!=tt&&Gt?`${tt}${Gt}`:tt)?this._renderer.setStyle(this._ngEl.nativeElement,yt,tt):this._renderer.removeStyle(this._ngEl.nativeElement,yt)}_applyChanges(de){de.forEachRemovedItem(tt=>this._setStyle(tt.key,null)),de.forEachAddedItem(tt=>this._setStyle(tt.key,tt.currentValue)),de.forEachChangedItem(tt=>this._setStyle(tt.key,tt.currentValue))}}return $.\u0275fac=function(de){return new(de||$)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},$.\u0275dir=e.lG2({type:$,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),$})(),Nn=(()=>{class ${constructor(de){this._viewContainerRef=de,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(de){if(de.ngTemplateOutlet){const tt=this._viewContainerRef;this._viewRef&&tt.remove(tt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?tt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&de.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return $.\u0275fac=function(de){return new(de||$)(e.Y36(e.s_b))},$.\u0275dir=e.lG2({type:$,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),$})();function Qt($,Re){return new e.vHH(2100,"")}class rt{createSubscription(Re,de){return Re.subscribe({next:de,error:tt=>{throw tt}})}dispose(Re){Re.unsubscribe()}onDestroy(Re){Re.unsubscribe()}}class kt{createSubscription(Re,de){return Re.then(de,tt=>{throw tt})}dispose(Re){}onDestroy(Re){}}const Ze=new kt,Ot=new rt;let Qe=(()=>{class ${constructor(de){this._ref=de,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(de){return this._obj?de!==this._obj?(this._dispose(),this.transform(de)):this._latestValue:(de&&this._subscribe(de),this._latestValue)}_subscribe(de){this._obj=de,this._strategy=this._selectStrategy(de),this._subscription=this._strategy.createSubscription(de,tt=>this._updateLatestValue(de,tt))}_selectStrategy(de){if((0,e.QGY)(de))return Ze;if((0,e.F4k)(de))return Ot;throw Qt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(de,tt){de===this._obj&&(this._latestValue=tt,this._ref.markForCheck())}}return $.\u0275fac=function(de){return new(de||$)(e.Y36(e.sBO,16))},$.\u0275pipe=e.Yjl({name:"async",type:$,pure:!1}),$})(),Tt=(()=>{class ${transform(de){if(null==de)return null;if("string"!=typeof de)throw Qt();return de.toLowerCase()}}return $.\u0275fac=function(de){return new(de||$)},$.\u0275pipe=e.Yjl({name:"lowercase",type:$,pure:!0}),$})();const jt=/(?:[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 ci=(()=>{class ${transform(de){if(null==de)return null;if("string"!=typeof de)throw Qt();return de.replace(jt,tt=>tt[0].toUpperCase()+tt.substr(1).toLowerCase())}}return $.\u0275fac=function(de){return new(de||$)},$.\u0275pipe=e.Yjl({name:"titlecase",type:$,pure:!0}),$})(),vi=(()=>{class ${transform(de){if(null==de)return null;if("string"!=typeof de)throw Qt();return de.toUpperCase()}}return $.\u0275fac=function(de){return new(de||$)},$.\u0275pipe=e.Yjl({name:"uppercase",type:$,pure:!0}),$})();const Ui=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Li=(()=>{class ${constructor(de,tt){this.locale=de,this.defaultTimezone=tt}transform(de,tt="mediumDate",yt,Gt){var Wt;if(null==de||""===de||de!=de)return null;try{return c(de,tt,Gt||this.locale,null!==(Wt=null!=yt?yt:this.defaultTimezone)&&void 0!==Wt?Wt:void 0)}catch(ii){throw Qt()}}}return $.\u0275fac=function(de){return new(de||$)(e.Y36(e.soG,16),e.Y36(Ui,24))},$.\u0275pipe=e.Yjl({name:"date",type:$,pure:!0}),$})(),Un=(()=>{class ${}return $.\u0275fac=function(de){return new(de||$)},$.\u0275mod=e.oAB({type:$}),$.\u0275inj=e.cJS({providers:[{provide:gt,useClass:ri}]}),$})();const hr="browser";function Cn($){return $===hr}function $n($){return"server"===$}let ft=(()=>{class ${}return $.\u0275prov=(0,e.Yz7)({token:$,providedIn:"root",factory:()=>new F((0,e.LFG)(E),window)}),$})();class F{constructor(Re,de){this.document=Re,this.window=de,this.offset=()=>[0,0]}setOffset(Re){this.offset=Array.isArray(Re)?()=>Re:Re}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Re){this.supportsScrolling()&&this.window.scrollTo(Re[0],Re[1])}scrollToAnchor(Re){if(!this.supportsScrolling())return;const de=function De($,Re){const de=$.getElementById(Re)||$.getElementsByName(Re)[0];if(de)return de;if("function"==typeof $.createTreeWalker&&$.body&&($.body.createShadowRoot||$.body.attachShadow)){const tt=$.createTreeWalker($.body,NodeFilter.SHOW_ELEMENT);let yt=tt.currentNode;for(;yt;){const Gt=yt.shadowRoot;if(Gt){const Wt=Gt.getElementById(Re)||Gt.querySelector(`[name="${Re}"]`);if(Wt)return Wt}yt=tt.nextNode()}}return null}(this.document,Re);de&&(this.scrollToElement(de),de.focus())}setHistoryScrollRestoration(Re){if(this.supportScrollRestoration()){const de=this.window.history;de&&de.scrollRestoration&&(de.scrollRestoration=Re)}}scrollToElement(Re){const de=Re.getBoundingClientRect(),tt=de.left+this.window.pageXOffset,yt=de.top+this.window.pageYOffset,Gt=this.offset();this.window.scrollTo(tt-Gt[0],yt-Gt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Re=G(this.window.history)||G(Object.getPrototypeOf(this.window.history));return!(!Re||!Re.writable&&!Re.set)}catch(Re){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Re){return!1}}}function G($){return Object.getOwnPropertyDescriptor($,"scrollRestoration")}class Ct{}},40520:(Xe,_e,p)=>{"use strict";p.d(_e,{TP:()=>He,eN:()=>Ue,JF:()=>ye,qT:()=>ue,WM:()=>S,LE:()=>X,Zn:()=>Fe});var e=p(69808),b=p(5e3),_=p(21086),w=p(56498),g=p(21406),A=p(92198),E=p(24850);class C{}class O{}class S{constructor(d){this.normalizedNames=new Map,this.lazyUpdate=null,d?this.lazyInit="string"==typeof d?()=>{this.headers=new Map,d.split("\n").forEach(l=>{const s=l.indexOf(":");if(s>0){const i=l.slice(0,s),t=i.toLowerCase(),n=l.slice(s+1).trim();this.maybeSetNormalizedName(i,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}})}:()=>{this.headers=new Map,Object.keys(d).forEach(l=>{let s=d[l];const i=l.toLowerCase();"string"==typeof s&&(s=[s]),s.length>0&&(this.headers.set(i,s),this.maybeSetNormalizedName(l,i))})}:this.headers=new Map}has(d){return this.init(),this.headers.has(d.toLowerCase())}get(d){this.init();const l=this.headers.get(d.toLowerCase());return l&&l.length>0?l[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(d){return this.init(),this.headers.get(d.toLowerCase())||null}append(d,l){return this.clone({name:d,value:l,op:"a"})}set(d,l){return this.clone({name:d,value:l,op:"s"})}delete(d,l){return this.clone({name:d,value:l,op:"d"})}maybeSetNormalizedName(d,l){this.normalizedNames.has(l)||this.normalizedNames.set(l,d)}init(){this.lazyInit&&(this.lazyInit instanceof S?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(d=>this.applyUpdate(d)),this.lazyUpdate=null))}copyFrom(d){d.init(),Array.from(d.headers.keys()).forEach(l=>{this.headers.set(l,d.headers.get(l)),this.normalizedNames.set(l,d.normalizedNames.get(l))})}clone(d){const l=new S;return l.lazyInit=this.lazyInit&&this.lazyInit instanceof S?this.lazyInit:this,l.lazyUpdate=(this.lazyUpdate||[]).concat([d]),l}applyUpdate(d){const l=d.name.toLowerCase();switch(d.op){case"a":case"s":let s=d.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(d.name,l);const i=("a"===d.op?this.headers.get(l):void 0)||[];i.push(...s),this.headers.set(l,i);break;case"d":const t=d.value;if(t){let n=this.headers.get(l);if(!n)return;n=n.filter(a=>-1===t.indexOf(a)),0===n.length?(this.headers.delete(l),this.normalizedNames.delete(l)):this.headers.set(l,n)}else this.headers.delete(l),this.normalizedNames.delete(l)}}forEach(d){this.init(),Array.from(this.normalizedNames.keys()).forEach(l=>d(this.normalizedNames.get(l),this.headers.get(l)))}}class m{encodeKey(d){return ie(d)}encodeValue(d){return ie(d)}decodeKey(d){return decodeURIComponent(d)}decodeValue(d){return decodeURIComponent(d)}}const L=/%(\d[a-f0-9])/gi,J={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ie(o){return encodeURIComponent(o).replace(L,(d,l)=>{var s;return null!==(s=J[l])&&void 0!==s?s:d})}function ge(o){return`${o}`}class X{constructor(d={}){if(this.updates=null,this.cloneFrom=null,this.encoder=d.encoder||new m,d.fromString){if(d.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function B(o,d){const l=new Map;return o.length>0&&o.replace(/^\?/,"").split("&").forEach(i=>{const t=i.indexOf("="),[n,a]=-1==t?[d.decodeKey(i),""]:[d.decodeKey(i.slice(0,t)),d.decodeValue(i.slice(t+1))],c=l.get(n)||[];c.push(a),l.set(n,c)}),l}(d.fromString,this.encoder)}else d.fromObject?(this.map=new Map,Object.keys(d.fromObject).forEach(l=>{const s=d.fromObject[l];this.map.set(l,Array.isArray(s)?s:[s])})):this.map=null}has(d){return this.init(),this.map.has(d)}get(d){this.init();const l=this.map.get(d);return l?l[0]:null}getAll(d){return this.init(),this.map.get(d)||null}keys(){return this.init(),Array.from(this.map.keys())}append(d,l){return this.clone({param:d,value:l,op:"a"})}appendAll(d){const l=[];return Object.keys(d).forEach(s=>{const i=d[s];Array.isArray(i)?i.forEach(t=>{l.push({param:s,value:t,op:"a"})}):l.push({param:s,value:i,op:"a"})}),this.clone(l)}set(d,l){return this.clone({param:d,value:l,op:"s"})}delete(d,l){return this.clone({param:d,value:l,op:"d"})}toString(){return this.init(),this.keys().map(d=>{const l=this.encoder.encodeKey(d);return this.map.get(d).map(s=>l+"="+this.encoder.encodeValue(s)).join("&")}).filter(d=>""!==d).join("&")}clone(d){const l=new X({encoder:this.encoder});return l.cloneFrom=this.cloneFrom||this,l.updates=(this.updates||[]).concat(d),l}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(d=>this.map.set(d,this.cloneFrom.map.get(d))),this.updates.forEach(d=>{switch(d.op){case"a":case"s":const l=("a"===d.op?this.map.get(d.param):void 0)||[];l.push(ge(d.value)),this.map.set(d.param,l);break;case"d":if(void 0===d.value){this.map.delete(d.param);break}{let s=this.map.get(d.param)||[];const i=s.indexOf(ge(d.value));-1!==i&&s.splice(i,1),s.length>0?this.map.set(d.param,s):this.map.delete(d.param)}}}),this.cloneFrom=this.updates=null)}}class ue{constructor(){this.map=new Map}set(d,l){return this.map.set(d,l),this}get(d){return this.map.has(d)||this.map.set(d,d.defaultValue()),this.map.get(d)}delete(d){return this.map.delete(d),this}has(d){return this.map.has(d)}keys(){return this.map.keys()}}function T(o){return"undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer}function Z(o){return"undefined"!=typeof Blob&&o instanceof Blob}function W(o){return"undefined"!=typeof FormData&&o instanceof FormData}class ee{constructor(d,l,s,i){let t;if(this.url=l,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=d.toUpperCase(),function Oe(o){switch(o){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==s?s:null,t=i):t=s,t&&(this.reportProgress=!!t.reportProgress,this.withCredentials=!!t.withCredentials,t.responseType&&(this.responseType=t.responseType),t.headers&&(this.headers=t.headers),t.context&&(this.context=t.context),t.params&&(this.params=t.params)),this.headers||(this.headers=new S),this.context||(this.context=new ue),this.params){const n=this.params.toString();if(0===n.length)this.urlWithParams=l;else{const a=l.indexOf("?");this.urlWithParams=l+(-1===a?"?":aAt.set(Ht,d.setHeaders[Ht]),h)),d.setParams&&(x=Object.keys(d.setParams).reduce((At,Ht)=>At.set(Ht,d.setParams[Ht]),x)),new ee(s,i,n,{params:x,headers:h,context:We,reportProgress:c,responseType:t,withCredentials:a})}}var ce=(()=>((ce=ce||{})[ce.Sent=0]="Sent",ce[ce.UploadProgress=1]="UploadProgress",ce[ce.ResponseHeader=2]="ResponseHeader",ce[ce.DownloadProgress=3]="DownloadProgress",ce[ce.Response=4]="Response",ce[ce.User=5]="User",ce))();class le{constructor(d,l=200,s="OK"){this.headers=d.headers||new S,this.status=void 0!==d.status?d.status:l,this.statusText=d.statusText||s,this.url=d.url||null,this.ok=this.status>=200&&this.status<300}}class Pe extends le{constructor(d={}){super(d),this.type=ce.ResponseHeader}clone(d={}){return new Pe({headers:d.headers||this.headers,status:void 0!==d.status?d.status:this.status,statusText:d.statusText||this.statusText,url:d.url||this.url||void 0})}}class Fe extends le{constructor(d={}){super(d),this.type=ce.Response,this.body=void 0!==d.body?d.body:null}clone(d={}){return new Fe({body:void 0!==d.body?d.body:this.body,headers:d.headers||this.headers,status:void 0!==d.status?d.status:this.status,statusText:d.statusText||this.statusText,url:d.url||this.url||void 0})}}class ze extends le{constructor(d){super(d,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${d.url||"(unknown url)"}`:`Http failure response for ${d.url||"(unknown url)"}: ${d.status} ${d.statusText}`,this.error=d.error||null}}function ae(o,d){return{body:d,headers:o.headers,context:o.context,observe:o.observe,params:o.params,reportProgress:o.reportProgress,responseType:o.responseType,withCredentials:o.withCredentials}}let Ue=(()=>{class o{constructor(l){this.handler=l}request(l,s,i={}){let t;if(l instanceof ee)t=l;else{let c,h;c=i.headers instanceof S?i.headers:new S(i.headers),i.params&&(h=i.params instanceof X?i.params:new X({fromObject:i.params})),t=new ee(l,s,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:h,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const n=(0,_.of)(t).pipe((0,g.b)(c=>this.handler.handle(c)));if(l instanceof ee||"events"===i.observe)return n;const a=n.pipe((0,A.h)(c=>c instanceof Fe));switch(i.observe||"body"){case"body":switch(t.responseType){case"arraybuffer":return a.pipe((0,E.U)(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe((0,E.U)(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe((0,E.U)(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe((0,E.U)(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(l,s={}){return this.request("DELETE",l,s)}get(l,s={}){return this.request("GET",l,s)}head(l,s={}){return this.request("HEAD",l,s)}jsonp(l,s){return this.request("JSONP",l,{params:(new X).append(s,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(l,s={}){return this.request("OPTIONS",l,s)}patch(l,s,i={}){return this.request("PATCH",l,ae(i,s))}post(l,s,i={}){return this.request("POST",l,ae(i,s))}put(l,s,i={}){return this.request("PUT",l,ae(i,s))}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(C))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})();class ve{constructor(d,l){this.next=d,this.interceptor=l}handle(d){return this.interceptor.intercept(d,this.next)}}const He=new b.OlP("HTTP_INTERCEPTORS");let z=(()=>{class o{intercept(l,s){return s.handle(l)}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})();const Je=/^\)\]\}',?\n/;let ke=(()=>{class o{constructor(l){this.xhrFactory=l}handle(l){if("JSONP"===l.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(s=>{const i=this.xhrFactory.build();if(i.open(l.method,l.urlWithParams),l.withCredentials&&(i.withCredentials=!0),l.headers.forEach((Ht,lt)=>i.setRequestHeader(Ht,lt.join(","))),l.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!l.headers.has("Content-Type")){const Ht=l.detectContentTypeHeader();null!==Ht&&i.setRequestHeader("Content-Type",Ht)}if(l.responseType){const Ht=l.responseType.toLowerCase();i.responseType="json"!==Ht?Ht:"text"}const t=l.serializeBody();let n=null;const a=()=>{if(null!==n)return n;const Ht=i.statusText||"OK",lt=new S(i.getAllResponseHeaders()),Ut=function nt(o){return"responseURL"in o&&o.responseURL?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null}(i)||l.url;return n=new Pe({headers:lt,status:i.status,statusText:Ht,url:Ut}),n},c=()=>{let{headers:Ht,status:lt,statusText:Ut,url:mt}=a(),Lt=null;204!==lt&&(Lt=void 0===i.response?i.responseText:i.response),0===lt&&(lt=Lt?200:0);let Te=lt>=200&<<300;if("json"===l.responseType&&"string"==typeof Lt){const Ge=Lt;Lt=Lt.replace(Je,"");try{Lt=""!==Lt?JSON.parse(Lt):null}catch(j){Lt=Ge,Te&&(Te=!1,Lt={error:j,text:Lt})}}Te?(s.next(new Fe({body:Lt,headers:Ht,status:lt,statusText:Ut,url:mt||void 0})),s.complete()):s.error(new ze({error:Lt,headers:Ht,status:lt,statusText:Ut,url:mt||void 0}))},h=Ht=>{const{url:lt}=a(),Ut=new ze({error:Ht,status:i.status||0,statusText:i.statusText||"Unknown Error",url:lt||void 0});s.error(Ut)};let x=!1;const We=Ht=>{x||(s.next(a()),x=!0);let lt={type:ce.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(lt.total=Ht.total),"text"===l.responseType&&!!i.responseText&&(lt.partialText=i.responseText),s.next(lt)},At=Ht=>{let lt={type:ce.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(lt.total=Ht.total),s.next(lt)};return i.addEventListener("load",c),i.addEventListener("error",h),i.addEventListener("timeout",h),i.addEventListener("abort",h),l.reportProgress&&(i.addEventListener("progress",We),null!==t&&i.upload&&i.upload.addEventListener("progress",At)),i.send(t),s.next({type:ce.Sent}),()=>{i.removeEventListener("error",h),i.removeEventListener("abort",h),i.removeEventListener("load",c),i.removeEventListener("timeout",h),l.reportProgress&&(i.removeEventListener("progress",We),null!==t&&i.upload&&i.upload.removeEventListener("progress",At)),i.readyState!==i.DONE&&i.abort()}})}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(e.JF))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})();const H=new b.OlP("XSRF_COOKIE_NAME"),he=new b.OlP("XSRF_HEADER_NAME");class P{}let R=(()=>{class o{constructor(l,s,i){this.doc=l,this.platform=s,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const l=this.doc.cookie||"";return l!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(l,this.cookieName),this.lastCookieString=l),this.lastToken}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(e.K0),b.LFG(b.Lbi),b.LFG(H))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})(),V=(()=>{class o{constructor(l,s){this.tokenService=l,this.headerName=s}intercept(l,s){const i=l.url.toLowerCase();if("GET"===l.method||"HEAD"===l.method||i.startsWith("http://")||i.startsWith("https://"))return s.handle(l);const t=this.tokenService.getToken();return null!==t&&!l.headers.has(this.headerName)&&(l=l.clone({headers:l.headers.set(this.headerName,t)})),s.handle(l)}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(P),b.LFG(he))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})(),Q=(()=>{class o{constructor(l,s){this.backend=l,this.injector=s,this.chain=null}handle(l){if(null===this.chain){const s=this.injector.get(He,[]);this.chain=s.reduceRight((i,t)=>new ve(i,t),this.backend)}return this.chain.handle(l)}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(O),b.LFG(b.zs3))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})(),Ye=(()=>{class o{static disable(){return{ngModule:o,providers:[{provide:V,useClass:z}]}}static withOptions(l={}){return{ngModule:o,providers:[l.cookieName?{provide:H,useValue:l.cookieName}:[],l.headerName?{provide:he,useValue:l.headerName}:[]]}}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=b.oAB({type:o}),o.\u0275inj=b.cJS({providers:[V,{provide:He,useExisting:V,multi:!0},{provide:P,useClass:R},{provide:H,useValue:"XSRF-TOKEN"},{provide:he,useValue:"X-XSRF-TOKEN"}]}),o})(),ye=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=b.oAB({type:o}),o.\u0275inj=b.cJS({providers:[Ue,{provide:C,useClass:Q},ke,{provide:O,useExisting:ke}],imports:[[Ye.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),o})()},5e3:(Xe,_e,p)=>{"use strict";p.d(_e,{deG:()=>Hm,tb:()=>lm,AFp:()=>sm,ip1:()=>Zc,CZH:()=>sa,hGG:()=>jT,z2F:()=>za,sBO:()=>AT,Sil:()=>zc,_Vd:()=>Na,EJc:()=>dm,SBq:()=>Va,qLn:()=>ya,vpe:()=>zr,tBr:()=>Aa,XFs:()=>je,OlP:()=>Dn,zs3:()=>Er,ZZ4:()=>Oo,aQg:()=>Ho,soG:()=>Ro,YKP:()=>pf,h0i:()=>ia,PXZ:()=>uT,R0b:()=>_r,FiY:()=>cs,Lbi:()=>om,g9A:()=>am,n_E:()=>yo,Qsj:()=>KC,FYo:()=>cf,JOm:()=>Fr,q3G:()=>On,tp0:()=>Rs,Rgc:()=>Za,dDg:()=>pm,GfV:()=>df,s_b:()=>xo,ifc:()=>t,eFA:()=>gm,G48:()=>_T,Gpc:()=>m,f3M:()=>qm,_c5:()=>LT,VLi:()=>lT,c2e:()=>cm,zSh:()=>Vl,wAp:()=>Ii,vHH:()=>ie,EiD:()=>Vd,mCW:()=>Ca,qzn:()=>Os,JVY:()=>pg,pB0:()=>_g,eBb:()=>mg,L6k:()=>fg,LAX:()=>gg,cg1:()=>vc,kL8:()=>Pp,yhl:()=>Id,dqk:()=>x,sIi:()=>Ra,CqO:()=>Gh,QGY:()=>sc,F4k:()=>Zh,RDi:()=>G,AaK:()=>C,z3N:()=>Yr,qOj:()=>Gl,TTD:()=>Mn,_Bn:()=>af,xp6:()=>Tu,uIk:()=>Yl,Q2q:()=>ql,Tol:()=>dp,Gre:()=>Tp,ekj:()=>hc,Suo:()=>kf,Xpm:()=>te,lG2:()=>Rt,Yz7:()=>we,cJS:()=>Je,oAB:()=>xt,Yjl:()=>Et,Y36:()=>Pa,_UZ:()=>Fh,GkF:()=>Uh,BQk:()=>rc,ynx:()=>nc,qZA:()=>ic,TgZ:()=>tc,EpF:()=>jh,n5z:()=>fd,Ikx:()=>bc,LFG:()=>Fn,$8M:()=>Fo,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>Nf,kcU:()=>zi,O4$:()=>Hn,oxw:()=>Yh,ALo:()=>xf,lcZ:()=>Mf,xi3:()=>Sf,Dn7:()=>Df,Hsn:()=>Jh,F$t:()=>qh,Q6J:()=>Xl,s9C:()=>cc,MGl:()=>mo,hYB:()=>dc,DdM:()=>_f,VKq:()=>Af,WLB:()=>bf,kEZ:()=>Cf,iGM:()=>Lf,MAs:()=>Sh,evT:()=>Qd,Jf7:()=>Jd,CHM:()=>Ei,oJD:()=>Fd,LSH:()=>el,B6R:()=>oe,kYT:()=>Yt,Udp:()=>uc,WFA:()=>oc,d8E:()=>Cc,YNc:()=>Mh,W1O:()=>jf,_uU:()=>_p,Oqu:()=>fc,hij:()=>_o,AsE:()=>mc,lnq:()=>gc,HOy:()=>_c,xDo:()=>Ac,Gf:()=>Bf});var e=p(8929),b=p(42654),_=p(56498),w=p(36787),g=p(12474);function A(u){for(let f in u)if(u[f]===A)return f;throw Error("Could not find renamed property on target object.")}function E(u,f){for(const v in f)f.hasOwnProperty(v)&&!u.hasOwnProperty(v)&&(u[v]=f[v])}function C(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(C).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const f=u.toString();if(null==f)return""+f;const v=f.indexOf("\n");return-1===v?f:f.substring(0,v)}function O(u,f){return null==u||""===u?null===f?"":f:null==f||""===f?u:u+" "+f}const S=A({__forward_ref__:A});function m(u){return u.__forward_ref__=m,u.toString=function(){return C(this())},u}function B(u){return L(u)?u():u}function L(u){return"function"==typeof u&&u.hasOwnProperty(S)&&u.__forward_ref__===m}class ie extends Error{constructor(f,v){super(function ge(u,f){return`NG0${Math.abs(u)}${f?": "+f:""}`}(f,v)),this.code=f}}function X(u){return"string"==typeof u?u:null==u?"":String(u)}function Ne(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():X(u)}function Z(u,f){const v=f?` in ${f}`:"";throw new ie(-201,`No provider for ${Ne(u)} found${v}`)}function I(u,f){null==u&&function me(u,f,v,y){throw new Error(`ASSERTION ERROR: ${u}`+(null==y?"":` [Expected=> ${v} ${y} ${f} <=Actual]`))}(f,u,null,"!=")}function we(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function Je(u){return{providers:u.providers||[],imports:u.imports||[]}}function nt(u){return ke(u,R)||ke(u,Q)}function ke(u,f){return u.hasOwnProperty(f)?u[f]:null}function P(u){return u&&(u.hasOwnProperty(V)||u.hasOwnProperty(Se))?u[V]:null}const R=A({\u0275prov:A}),V=A({\u0275inj:A}),Q=A({ngInjectableDef:A}),Se=A({ngInjectorDef:A});var je=(()=>((je=je||{})[je.Default=0]="Default",je[je.Host=1]="Host",je[je.Self=2]="Self",je[je.SkipSelf=4]="SkipSelf",je[je.Optional=8]="Optional",je))();let Ye;function re(u){const f=Ye;return Ye=u,f}function r(u,f,v){const y=nt(u);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:v&je.Optional?null:void 0!==f?f:void Z(C(u),"Injector")}function d(u){return{toString:u}.toString()}var l=(()=>((l=l||{})[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l))(),t=(()=>{return(u=t||(t={}))[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",t;var u})();const n="undefined"!=typeof globalThis&&globalThis,a="undefined"!=typeof window&&window,c="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,x=n||"undefined"!=typeof global&&global||a||c,Ht={},lt=[],Ut=A({\u0275cmp:A}),mt=A({\u0275dir:A}),Lt=A({\u0275pipe:A}),Te=A({\u0275mod:A}),Ge=A({\u0275fac:A}),j=A({__NG_ELEMENT_ID__:A});let N=0;function te(u){return d(()=>{const v={},y={type:u.type,providersResolver:null,decls:u.decls,vars:u.vars,factory:null,template:u.template||null,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:v,inputs:null,outputs:null,exportAs:u.exportAs||null,onPush:u.changeDetection===l.OnPush,directiveDefs:null,pipeDefs:null,selectors:u.selectors||lt,viewQuery:u.viewQuery||null,features:u.features||null,data:u.data||{},encapsulation:u.encapsulation||t.Emulated,id:"c",styles:u.styles||lt,_:null,setInput:null,schemas:u.schemas||null,tView:null},M=u.directives,D=u.features,k=u.pipes;return y.id+=N++,y.inputs=It(u.inputs,v),y.outputs=It(u.outputs),D&&D.forEach(ne=>ne(y)),y.directiveDefs=M?()=>("function"==typeof M?M():M).map(Ie):null,y.pipeDefs=k?()=>("function"==typeof k?k():k).map(ct):null,y})}function oe(u,f,v){const y=u.\u0275cmp;y.directiveDefs=()=>f.map(Ie),y.pipeDefs=()=>v.map(ct)}function Ie(u){return Bt(u)||function Jt(u){return u[mt]||null}(u)}function ct(u){return function ai(u){return u[Lt]||null}(u)}const bt={};function xt(u){return d(()=>{const f={type:u.type,bootstrap:u.bootstrap||lt,declarations:u.declarations||lt,imports:u.imports||lt,exports:u.exports||lt,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null};return null!=u.id&&(bt[u.id]=u.type),f})}function Yt(u,f){return d(()=>{const v=mi(u,!0);v.declarations=f.declarations||lt,v.imports=f.imports||lt,v.exports=f.exports||lt})}function It(u,f){if(null==u)return Ht;const v={};for(const y in u)if(u.hasOwnProperty(y)){let M=u[y],D=M;Array.isArray(M)&&(D=M[1],M=M[0]),v[M]=y,f&&(f[M]=D)}return v}const Rt=te;function Et(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,onDestroy:u.type.prototype.ngOnDestroy||null}}function Bt(u){return u[Ut]||null}function mi(u,f){const v=u[Te]||null;if(!v&&!0===f)throw new Error(`Type ${C(u)} does not have '\u0275mod' property.`);return v}function en(u){return Array.isArray(u)&&"object"==typeof u[1]}function an(u){return Array.isArray(u)&&!0===u[1]}function dn(u){return 0!=(8&u.flags)}function wn(u){return 2==(2&u.flags)}function xn(u){return 1==(1&u.flags)}function Oi(u){return null!==u.template}function kn(u){return 0!=(512&u[2])}function En(u,f){return u.hasOwnProperty(Ge)?u[Ge]:null}class ur{constructor(f,v,y){this.previousValue=f,this.currentValue=v,this.firstChange=y}isFirstChange(){return this.firstChange}}function Mn(){return Gn}function Gn(u){return u.type.prototype.ngOnChanges&&(u.setInput=ar),sr}function sr(){const u=hr(this),f=null==u?void 0:u.current;if(f){const v=u.previous;if(v===Ht)u.previous=f;else for(let y in f)v[y]=f[y];u.current=null,this.ngOnChanges(f)}}function ar(u,f,v,y){const M=hr(u)||function br(u,f){return u[Un]=f}(u,{previous:Ht,current:null}),D=M.current||(M.current={}),k=M.previous,ne=this.declaredInputs[v],Ce=k[ne];D[ne]=new ur(Ce&&Ce.currentValue,f,k===Ht),u[y]=f}Mn.ngInherit=!0;const Un="__ngSimpleChanges__";function hr(u){return u[Un]||null}let F;function G(u){F=u}function De(){return void 0!==F?F:"undefined"!=typeof document?document:void 0}function Ct(u){return!!u.listen}const $={createRenderer:(u,f)=>De()};function de(u){for(;Array.isArray(u);)u=u[0];return u}function Gt(u,f){return de(f[u])}function Wt(u,f){return de(f[u.index])}function di(u,f){return u.data[f]}function ui(u,f){return u[f]}function _i(u,f){const v=f[u];return en(v)?v:v[0]}function Ti(u){return 4==(4&u[2])}function Hi(u){return 128==(128&u[2])}function xe(u,f){return null==f?null:u[f]}function Ee(u){u[18]=0}function ut(u,f){u[5]+=f;let v=u,y=u[3];for(;null!==y&&(1===f&&1===v[5]||-1===f&&0===v[5]);)y[5]+=f,v=y,y=y[3]}const Zt={lFrame:pi(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Wn(){return Zt.bindingsEnabled}function Xt(){return Zt.lFrame.lView}function si(){return Zt.lFrame.tView}function Ei(u){return Zt.lFrame.contextLView=u,u[8]}function gi(){let u=Vi();for(;null!==u&&64===u.type;)u=u.parent;return u}function Vi(){return Zt.lFrame.currentTNode}function vn(u,f){const v=Zt.lFrame;v.currentTNode=u,v.isParent=f}function Pn(){return Zt.lFrame.isParent}function Yn(){Zt.lFrame.isParent=!1}function wr(){return Zt.isInCheckNoChangesMode}function bn(u){Zt.isInCheckNoChangesMode=u}function mn(){const u=Zt.lFrame;let f=u.bindingRootIndex;return-1===f&&(f=u.bindingRootIndex=u.tView.bindingStartIndex),f}function Sn(){return Zt.lFrame.bindingIndex}function er(){return Zt.lFrame.bindingIndex++}function fr(u){const f=Zt.lFrame,v=f.bindingIndex;return f.bindingIndex=f.bindingIndex+u,v}function oa(u,f){const v=Zt.lFrame;v.bindingIndex=v.bindingRootIndex=u,As(f)}function As(u){Zt.lFrame.currentDirectiveIndex=u}function fe(u){const f=Zt.lFrame.currentDirectiveIndex;return-1===f?null:u[f]}function at(){return Zt.lFrame.currentQueryIndex}function Le(u){Zt.lFrame.currentQueryIndex=u}function pt(u){const f=u[1];return 2===f.type?f.declTNode:1===f.type?u[6]:null}function Vt(u,f,v){if(v&je.SkipSelf){let M=f,D=u;for(;!(M=M.parent,null!==M||v&je.Host||(M=pt(D),null===M||(D=D[15],10&M.type))););if(null===M)return!1;f=M,u=D}const y=Zt.lFrame=ni();return y.currentTNode=f,y.lView=u,!0}function qt(u){const f=ni(),v=u[1];Zt.lFrame=f,f.currentTNode=v.firstChild,f.lView=u,f.tView=v,f.contextLView=u,f.bindingIndex=v.bindingStartIndex,f.inI18n=!1}function ni(){const u=Zt.lFrame,f=null===u?null:u.child;return null===f?pi(u):f}function pi(u){const f={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:u,child:null,inI18n:!1};return null!==u&&(u.child=f),f}function oi(){const u=Zt.lFrame;return Zt.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const Si=oi;function Gi(){const u=oi();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function Zi(){return Zt.lFrame.selectedIndex}function Bi(u){Zt.lFrame.selectedIndex=u}function Pi(){const u=Zt.lFrame;return di(u.tView,u.selectedIndex)}function Hn(){Zt.lFrame.currentNamespace="svg"}function zi(){!function tr(){Zt.lFrame.currentNamespace=null}()}function bs(u,f){for(let v=f.directiveStart,y=f.directiveEnd;v=y)break}else f[Ce]<0&&(u[18]+=65536),(ne>11>16&&(3&u[2])===f){u[2]+=2048;try{D.call(ne)}finally{}}}else try{D.call(ne)}finally{}}class rs{constructor(f,v,y){this.factory=f,this.resolving=!1,this.canSeeViewProviders=v,this.injectImpl=y}}function Cs(u,f,v){const y=Ct(u);let M=0;for(;Mf){k=D-1;break}}}for(;D>16}(u),y=f;for(;v>0;)y=y[15],v--;return y}let q=!0;function Ve(u){const f=q;return q=u,f}let Ft=0;function Ai(u,f){const v=xi(u,f);if(-1!==v)return v;const y=f[1];y.firstCreatePass&&(u.injectorIndex=f.length,Yi(y.data,u),Yi(f,null),Yi(y.blueprint,null));const M=nn(u,f),D=u.injectorIndex;if(qa(M)){const k=as(M),ne=se(M,f),Ce=ne[1].data;for(let et=0;et<8;et++)f[D+et]=ne[k+et]|Ce[k+et]}return f[D+8]=M,D}function Yi(u,f){u.push(0,0,0,0,0,0,0,0,f)}function xi(u,f){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===f[u.injectorIndex+8]?-1:u.injectorIndex}function nn(u,f){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let v=0,y=null,M=f;for(;null!==M;){const D=M[1],k=D.type;if(y=2===k?D.declTNode:1===k?M[6]:null,null===y)return-1;if(v++,M=M[15],-1!==y.injectorIndex)return y.injectorIndex|v<<16}return-1}function on(u,f,v){!function $t(u,f,v){let y;"string"==typeof v?y=v.charCodeAt(0)||0:v.hasOwnProperty(j)&&(y=v[j]),null==y&&(y=v[j]=Ft++);const M=255&y;f.data[u+(M>>5)]|=1<=0?255&f:Sr:f}(v);if("function"==typeof D){if(!Vt(f,u,y))return y&je.Host?Cr(M,v,y):vr(f,v,y,M);try{const k=D(y);if(null!=k||y&je.Optional)return k;Z(v)}finally{Si()}}else if("number"==typeof D){let k=null,ne=xi(u,f),Ce=-1,et=y&je.Host?f[16][6]:null;for((-1===ne||y&je.SkipSelf)&&(Ce=-1===ne?nn(u,f):f[ne+8],-1!==Ce&&pd(y,!1)?(k=f[1],ne=as(Ce),f=se(Ce,f)):ne=-1);-1!==ne;){const dt=f[1];if(hd(D,ne,dt.data)){const wt=Xr(ne,f,v,k,y,et);if(wt!==ls)return wt}Ce=f[ne+8],-1!==Ce&&pd(y,f[1].data[ne+8]===et)&&hd(D,ne,f)?(k=dt,ne=as(Ce),f=se(Ce,f)):ne=-1}}}return vr(f,v,y,M)}const ls={};function Sr(){return new ys(gi(),Xt())}function Xr(u,f,v,y,M,D){const k=f[1],ne=k.data[u+8],dt=Es(ne,k,v,null==y?wn(ne)&&q:y!=k&&0!=(3&ne.type),M&je.Host&&D===ne);return null!==dt?ua(f,k,dt,ne):ls}function Es(u,f,v,y,M){const D=u.providerIndexes,k=f.data,ne=1048575&D,Ce=u.directiveStart,dt=D>>20,Nt=M?ne+dt:u.directiveEnd;for(let zt=y?ne:ne+dt;zt=Ce&&Kt.type===v)return zt}if(M){const zt=k[Ce];if(zt&&Oi(zt)&&zt.type===v)return Ce}return null}function ua(u,f,v,y){let M=u[v];const D=f.data;if(function Bo(u){return u instanceof rs}(M)){const k=M;k.resolving&&function ue(u,f){const v=f?`. Dependency path: ${f.join(" > ")} > ${u}`:"";throw new ie(-200,`Circular dependency in DI detected for ${u}${v}`)}(Ne(D[v]));const ne=Ve(k.canSeeViewProviders);k.resolving=!0;const Ce=k.injectImpl?re(k.injectImpl):null;Vt(u,y,je.Default);try{M=u[v]=k.factory(void 0,D,u,y),f.firstCreatePass&&v>=y.directiveStart&&function Wa(u,f,v){const{ngOnChanges:y,ngOnInit:M,ngDoCheck:D}=f.type.prototype;if(y){const k=Gn(f);(v.preOrderHooks||(v.preOrderHooks=[])).push(u,k),(v.preOrderCheckHooks||(v.preOrderCheckHooks=[])).push(u,k)}M&&(v.preOrderHooks||(v.preOrderHooks=[])).push(0-u,M),D&&((v.preOrderHooks||(v.preOrderHooks=[])).push(u,D),(v.preOrderCheckHooks||(v.preOrderCheckHooks=[])).push(u,D))}(v,D[v],f)}finally{null!==Ce&&re(Ce),Ve(ne),k.resolving=!1,Si()}}return M}function hd(u,f,v){return!!(v[f+(u>>5)]&1<{const f=u.prototype.constructor,v=f[Ge]||Vo(f),y=Object.prototype;let M=Object.getPrototypeOf(u.prototype).constructor;for(;M&&M!==y;){const D=M[Ge]||Vo(M);if(D&&D!==v)return D;M=Object.getPrototypeOf(M)}return D=>new D})}function Vo(u){return L(u)?()=>{const f=Vo(B(u));return f&&f()}:En(u)}function Fo(u){return function os(u,f){if("class"===f)return u.classes;if("style"===f)return u.styles;const v=u.attrs;if(v){const y=v.length;let M=0;for(;M{const y=function Uo(u){return function(...v){if(u){const y=u(...v);for(const M in y)this[M]=y[M]}}}(f);function M(...D){if(this instanceof M)return y.apply(this,D),this;const k=new M(...D);return ne.annotation=k,ne;function ne(Ce,et,dt){const wt=Ce.hasOwnProperty(xs)?Ce[xs]:Object.defineProperty(Ce,xs,{value:[]})[xs];for(;wt.length<=dt;)wt.push(null);return(wt[dt]=wt[dt]||[]).push(k),Ce}}return v&&(M.prototype=Object.create(v.prototype)),M.prototype.ngMetadataName=u,M.annotationCls=M,M})}class Dn{constructor(f,v){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof v?this.__NG_ELEMENT_ID__=v:void 0!==v&&(this.\u0275prov=we({token:this,providedIn:v.providedIn||"root",factory:v.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Hm=new Dn("AnalyzeForEntryComponents");function Tr(u,f){void 0===f&&(f=u);for(let v=0;vArray.isArray(v)?kr(v,f):f(v))}function gd(u,f,v){f>=u.length?u.push(v):u.splice(f,0,v)}function Ja(u,f){return f>=u.length-1?u.pop():u.splice(f,1)[0]}function fa(u,f){const v=[];for(let y=0;y=0?u[1|y]=v:(y=~y,function km(u,f,v,y){let M=u.length;if(M==f)u.push(v,y);else if(1===M)u.push(y,u[0]),u[0]=v;else{for(M--,u.push(u[M-1],u[M]);M>f;)u[M]=u[M-2],M--;u[f]=v,u[f+1]=y}}(u,y,f,v)),y}function Zo(u,f){const v=Ds(u,f);if(v>=0)return u[1|v]}function Ds(u,f){return function bd(u,f,v){let y=0,M=u.length>>v;for(;M!==y;){const D=y+(M-y>>1),k=u[D<f?M=D:y=D+1}return~(M<({token:u})),-1),cs=_a(Ss("Optional"),8),Rs=_a(Ss("SkipSelf"),4);let Xa,eo;function Ps(u){var f;return(null===(f=function qo(){if(void 0===Xa&&(Xa=null,x.trustedTypes))try{Xa=x.trustedTypes.createPolicy("angular",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch(u){}return Xa}())||void 0===f?void 0:f.createHTML(u))||u}function Sd(u){var f;return(null===(f=function Jo(){if(void 0===eo&&(eo=null,x.trustedTypes))try{eo=x.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch(u){}return eo}())||void 0===f?void 0:f.createHTML(u))||u}class ds{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class lg extends ds{getTypeName(){return"HTML"}}class cg extends ds{getTypeName(){return"Style"}}class dg extends ds{getTypeName(){return"Script"}}class ug extends ds{getTypeName(){return"URL"}}class hg extends ds{getTypeName(){return"ResourceURL"}}function Yr(u){return u instanceof ds?u.changingThisBreaksApplicationSecurity:u}function Os(u,f){const v=Id(u);if(null!=v&&v!==f){if("ResourceURL"===v&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${v} (see https://g.co/ng/security#xss)`)}return v===f}function Id(u){return u instanceof ds&&u.getTypeName()||null}function pg(u){return new lg(u)}function fg(u){return new cg(u)}function mg(u){return new dg(u)}function gg(u){return new ug(u)}function _g(u){return new hg(u)}class Ag{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const v=(new window.DOMParser).parseFromString(Ps(f),"text/html").body;return null===v?this.inertDocumentHelper.getInertBodyElement(f):(v.removeChild(v.firstChild),v)}catch(v){return null}}}class bg{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const v=this.inertDocument.createElement("html");this.inertDocument.appendChild(v);const y=this.inertDocument.createElement("body");v.appendChild(y)}}getInertBodyElement(f){const v=this.inertDocument.createElement("template");if("content"in v)return v.innerHTML=Ps(f),v;const y=this.inertDocument.createElement("body");return y.innerHTML=Ps(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(f){const v=f.attributes;for(let M=v.length-1;0Ca(f.trim())).join(", ")),this.buf.push(" ",k,'="',Nd(Ce),'"')}var u;return this.buf.push(">"),!0}endElement(f){const v=f.nodeName.toLowerCase();Qo.hasOwnProperty(v)&&!Hd.hasOwnProperty(v)&&(this.buf.push(""))}chars(f){this.buf.push(Nd(f))}checkClobberedElement(f,v){if(v&&(f.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return v}}const wg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xg=/([^\#-~ |!])/g;function Nd(u){return u.replace(/&/g,"&").replace(wg,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(xg,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let to;function Vd(u,f){let v=null;try{to=to||function Pd(u){const f=new bg(u);return function Cg(){try{return!!(new window.DOMParser).parseFromString(Ps(""),"text/html")}catch(u){return!1}}()?new Ag(f):f}(u);let y=f?String(f):"";v=to.getInertBodyElement(y);let M=5,D=y;do{if(0===M)throw new Error("Failed to sanitize html because the input is unstable");M--,y=D,D=v.innerHTML,v=to.getInertBodyElement(y)}while(y!==D);return Ps((new yg).sanitizeChildren(Xo(v)||v))}finally{if(v){const y=Xo(v)||v;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Xo(u){return"content"in u&&function Mg(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var On=(()=>((On=On||{})[On.NONE=0]="NONE",On[On.HTML=1]="HTML",On[On.STYLE=2]="STYLE",On[On.SCRIPT=3]="SCRIPT",On[On.URL=4]="URL",On[On.RESOURCE_URL=5]="RESOURCE_URL",On))();function Fd(u){const f=Ta();return f?Sd(f.sanitize(On.HTML,u)||""):Os(u,"HTML")?Sd(Yr(u)):Vd(De(),X(u))}function el(u){const f=Ta();return f?f.sanitize(On.URL,u)||"":Os(u,"URL")?Yr(u):Ca(X(u))}function Ta(){const u=Xt();return u&&u[12]}const Zd="__ngContext__";function qn(u,f){u[Zd]=f}function il(u){const f=function Ea(u){return u[Zd]||null}(u);return f?Array.isArray(f)?f:f.lView:null}function rl(u){return u.ngOriginalError}function Zg(u,...f){u.error(...f)}class ya{constructor(){this._console=console}handleError(f){const v=this._findOriginalError(f),y=function jg(u){return u&&u.ngErrorLogger||Zg}(f);y(this._console,"ERROR",f),v&&y(this._console,"ORIGINAL ERROR",v)}_findOriginalError(f){let v=f&&rl(f);for(;v&&rl(v);)v=rl(v);return v||null}}const qd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(x))();function Jd(u){return u.ownerDocument.defaultView}function Qd(u){return u.ownerDocument}function Vr(u){return u instanceof Function?u():u}var Fr=(()=>((Fr=Fr||{})[Fr.Important=1]="Important",Fr[Fr.DashCase=2]="DashCase",Fr))();function al(u,f){return undefined(u,f)}function wa(u){const f=u[3];return an(f)?f[3]:f}function ol(u){return tu(u[13])}function ll(u){return tu(u[4])}function tu(u){for(;null!==u&&!an(u);)u=u[4];return u}function Ls(u,f,v,y,M){if(null!=y){let D,k=!1;an(y)?D=y:en(y)&&(k=!0,y=y[0]);const ne=de(y);0===u&&null!==v?null==M?ou(f,v,ne):us(f,v,ne,M||null,!0):1===u&&null!==v?us(f,v,ne,M||null,!0):2===u?function fu(u,f,v){const y=io(u,f);y&&function d_(u,f,v,y){Ct(u)?u.removeChild(f,v,y):f.removeChild(v)}(u,y,f,v)}(f,ne,k):3===u&&f.destroyNode(ne),null!=D&&function p_(u,f,v,y,M){const D=v[7];D!==de(v)&&Ls(f,u,y,D,M);for(let ne=10;ne0&&(u[v-1][4]=y[4]);const D=Ja(u,10+f);!function i_(u,f){xa(u,f,f[11],2,null,null),f[0]=null,f[6]=null}(y[1],y);const k=D[19];null!==k&&k.detachView(D[1]),y[3]=null,y[4]=null,y[2]&=-129}return y}function ru(u,f){if(!(256&f[2])){const v=f[11];Ct(v)&&v.destroyNode&&xa(u,f,v,3,null,null),function s_(u){let f=u[13];if(!f)return hl(u[1],u);for(;f;){let v=null;if(en(f))v=f[13];else{const y=f[10];y&&(v=y)}if(!v){for(;f&&!f[4]&&f!==u;)en(f)&&hl(f[1],f),f=f[3];null===f&&(f=u),en(f)&&hl(f[1],f),v=f&&f[4]}f=v}}(f)}}function hl(u,f){if(!(256&f[2])){f[2]&=-129,f[2]|=256,function c_(u,f){let v;if(null!=u&&null!=(v=u.destroyHooks))for(let y=0;y=0?y[M=et]():y[M=-et].unsubscribe(),D+=2}else{const k=y[M=v[D+1]];v[D].call(k)}if(null!==y){for(let D=M+1;DD?"":M[wt+1].toLowerCase();const zt=8&y?Nt:null;if(zt&&-1!==_u(zt,et,0)||2&y&&et!==Nt){if(Dr(y))return!1;k=!0}}}}else{if(!k&&!Dr(y)&&!Dr(Ce))return!1;if(k&&Dr(Ce))continue;k=!1,y=Ce|1&y}}return Dr(y)||k}function Dr(u){return 0==(1&u)}function A_(u,f,v,y){if(null===f)return-1;let M=0;if(y||!v){let D=!1;for(;M-1)for(v++;v0?'="'+ne+'"':"")+"]"}else 8&y?M+="."+k:4&y&&(M+=" "+k);else""!==M&&!Dr(k)&&(f+=vu(D,M),M=""),y=k,D=D||!Dr(y);v++}return""!==M&&(f+=vu(D,M)),f}const ki={};function Tu(u){Eu(si(),Xt(),Zi()+u,wr())}function Eu(u,f,v,y){if(!y)if(3==(3&f[2])){const D=u.preOrderCheckHooks;null!==D&&Kr(f,D,v)}else{const D=u.preOrderHooks;null!==D&&is(f,D,0,v)}Bi(v)}function so(u,f){return u<<17|f<<2}function Rr(u){return u>>17&32767}function _l(u){return 2|u}function qr(u){return(131068&u)>>2}function Al(u,f){return-131069&u|f<<2}function bl(u){return 1|u}function Hu(u,f){const v=u.contentQueries;if(null!==v)for(let y=0;y20&&Eu(u,f,20,wr()),v(y,M)}finally{Bi(D)}}function Bu(u,f,v){if(dn(f)){const M=f.directiveEnd;for(let D=f.directiveStart;D0;){const v=u[--f];if("number"==typeof v&&v<0)return v}return 0})(ne)!=Ce&&ne.push(Ce),ne.push(y,M,k)}}function Gu(u,f){null!==u.hostBindings&&u.hostBindings(1,f)}function zu(u,f){f.flags|=2,(u.components||(u.components=[])).push(f.index)}function K_(u,f,v){if(v){if(f.exportAs)for(let y=0;y0&&Ol(v)}}function Ol(u){for(let y=ol(u);null!==y;y=ll(y))for(let M=10;M0&&Ol(D)}const v=u[1].components;if(null!==v)for(let y=0;y0&&Ol(M)}}function sA(u,f){const v=_i(f,u),y=v[1];(function aA(u,f){for(let v=f.length;vPromise.resolve(null))();function Qu(u){return u[7]||(u[7]=[])}function $u(u){return u.cleanup||(u.cleanup=[])}function Ku(u,f,v){return(null===u||Oi(u))&&(v=function tt(u){for(;Array.isArray(u);){if("object"==typeof u[1])return u;u=u[0]}return null}(v[f.index])),v[11]}function Xu(u,f){const v=u[9],y=v?v.get(ya,null):null;y&&y.handleError(f)}function eh(u,f,v,y,M){for(let D=0;Dthis.processProvider(ne,f,v)),kr([f],ne=>this.processInjectorType(ne,[],D)),this.records.set(Nl,Vs(void 0,this));const k=this.records.get(Vl);this.scope=null!=k?k.value:null,this.source=M||("object"==typeof f?null:C(f))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(f=>f.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(f,v=ma,y=je.Default){this.assertNotDestroyed();const M=Td(this),D=re(void 0);try{if(!(y&je.SkipSelf)){let ne=this.records.get(f);if(void 0===ne){const Ce=function TA(u){return"function"==typeof u||"object"==typeof u&&u instanceof Dn}(f)&&nt(f);ne=Ce&&this.injectableDefInScope(Ce)?Vs(Ul(f),Da):null,this.records.set(f,ne)}if(null!=ne)return this.hydrate(f,ne)}return(y&je.Self?ih():this.parent).get(f,v=y&je.Optional&&v===ma?null:v)}catch(k){if("NullInjectorError"===k.name){if((k[$a]=k[$a]||[]).unshift(C(f)),M)throw k;return function Qm(u,f,v,y){const M=u[$a];throw f[vd]&&M.unshift(f[vd]),u.message=function $m(u,f,v,y=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.substr(2):u;let M=C(f);if(Array.isArray(f))M=f.map(C).join(" -> ");else if("object"==typeof f){let D=[];for(let k in f)if(f.hasOwnProperty(k)){let ne=f[k];D.push(k+":"+("string"==typeof ne?JSON.stringify(ne):C(ne)))}M=`{${D.join(", ")}}`}return`${v}${y?"("+y+")":""}[${M}]: ${u.replace(Gm,"\n ")}`}("\n"+u.message,M,v,y),u.ngTokenPath=M,u[$a]=null,u}(k,f,"R3InjectorError",this.source)}throw k}finally{re(D),Td(M)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(f=>this.get(f))}toString(){const f=[];return this.records.forEach((y,M)=>f.push(C(M))),`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processInjectorType(f,v,y){if(!(f=B(f)))return!1;let M=P(f);const D=null==M&&f.ngModule||void 0,k=void 0===D?f:D,ne=-1!==y.indexOf(k);if(void 0!==D&&(M=P(D)),null==M)return!1;if(null!=M.imports&&!ne){let dt;y.push(k);try{kr(M.imports,wt=>{this.processInjectorType(wt,v,y)&&(void 0===dt&&(dt=[]),dt.push(wt))})}finally{}if(void 0!==dt)for(let wt=0;wtthis.processProvider(Kt,Nt,zt||lt))}}this.injectorDefTypes.add(k);const Ce=En(k)||(()=>new k);this.records.set(k,Vs(Ce,Da));const et=M.providers;if(null!=et&&!ne){const dt=f;kr(et,wt=>this.processProvider(wt,dt,et))}return void 0!==D&&void 0!==f.providers}processProvider(f,v,y){let M=Fs(f=B(f))?f:B(f&&f.provide);const D=function gA(u,f,v){return ah(u)?Vs(void 0,u.useValue):Vs(sh(u),Da)}(f);if(Fs(f)||!0!==f.multi)this.records.get(M);else{let k=this.records.get(M);k||(k=Vs(void 0,Da,!0),k.factory=()=>Wo(k.multi),this.records.set(M,k)),M=f,k.multi.push(f)}this.records.set(M,D)}hydrate(f,v){return v.value===Da&&(v.value=pA,v.value=v.factory()),"object"==typeof v.value&&v.value&&function vA(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(v.value)&&this.onDestroy.add(v.value),v.value}injectableDefInScope(f){if(!f.providedIn)return!1;const v=B(f.providedIn);return"string"==typeof v?"any"===v||v===this.scope:this.injectorDefTypes.has(v)}}function Ul(u){const f=nt(u),v=null!==f?f.factory:En(u);if(null!==v)return v;if(u instanceof Dn)throw new ie(204,!1);if(u instanceof Function)return function mA(u){const f=u.length;if(f>0)throw fa(f,"?"),new ie(204,!1);const v=function H(u){const f=u&&(u[R]||u[Q]);if(f){const v=function he(u){if(u.hasOwnProperty("name"))return u.name;const f=(""+u).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(u);return console.warn(`DEPRECATED: DI is instantiating a token "${v}" 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 "${v}" class.`),f}return null}(u);return null!==v?()=>v.factory(u):()=>new u}(u);throw new ie(204,!1)}function sh(u,f,v){let y;if(Fs(u)){const M=B(u);return En(M)||Ul(M)}if(ah(u))y=()=>B(u.useValue);else if(function AA(u){return!(!u||!u.useFactory)}(u))y=()=>u.useFactory(...Wo(u.deps||[]));else if(function _A(u){return!(!u||!u.useExisting)}(u))y=()=>Fn(B(u.useExisting));else{const M=B(u&&(u.useClass||u.provide));if(!function CA(u){return!!u.deps}(u))return En(M)||Ul(M);y=()=>new M(...Wo(u.deps))}return y}function Vs(u,f,v=!1){return{factory:u,value:f,multi:v?[]:void 0}}function ah(u){return null!==u&&"object"==typeof u&&Wm in u}function Fs(u){return"function"==typeof u}let Er=(()=>{class u{static create(v,y){var M;if(Array.isArray(v))return nh({name:""},y,v,"");{const D=null!==(M=v.name)&&void 0!==M?M:"";return nh({name:D},v.parent,v.providers,D)}}}return u.THROW_IF_NOT_FOUND=ma,u.NULL=new th,u.\u0275prov=we({token:u,providedIn:"any",factory:()=>Fn(Nl)}),u.__NG_ELEMENT_ID__=-1,u})();function RA(u,f){bs(il(u)[1],gi())}function Gl(u){let f=function Ah(u){return Object.getPrototypeOf(u.prototype).constructor}(u.type),v=!0;const y=[u];for(;f;){let M;if(Oi(u))M=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new ie(903,"");M=f.\u0275dir}if(M){if(v){y.push(M);const k=u;k.inputs=zl(u.inputs),k.declaredInputs=zl(u.declaredInputs),k.outputs=zl(u.outputs);const ne=M.hostBindings;ne&&HA(u,ne);const Ce=M.viewQuery,et=M.contentQueries;if(Ce&&PA(u,Ce),et&&OA(u,et),E(u.inputs,M.inputs),E(u.declaredInputs,M.declaredInputs),E(u.outputs,M.outputs),Oi(M)&&M.data.animation){const dt=u.data;dt.animation=(dt.animation||[]).concat(M.data.animation)}}const D=M.features;if(D)for(let k=0;k=0;y--){const M=u[y];M.hostVars=f+=M.hostVars,M.hostAttrs=Ts(M.hostAttrs,v=Ts(v,M.hostAttrs))}}(y)}function zl(u){return u===Ht?{}:u===lt?[]:u}function PA(u,f){const v=u.viewQuery;u.viewQuery=v?(y,M)=>{f(y,M),v(y,M)}:f}function OA(u,f){const v=u.contentQueries;u.contentQueries=v?(y,M,D)=>{f(y,M,D),v(y,M,D)}:f}function HA(u,f){const v=u.hostBindings;u.hostBindings=v?(y,M)=>{f(y,M),v(y,M)}:f}let ho=null;function Us(){if(!ho){const u=x.Symbol;if(u&&u.iterator)ho=u.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let v=0;vne(de(Qi[y.index])):y.index;if(Ct(v)){let Qi=null;if(!ne&&Ce&&(Qi=function db(u,f,v,y){const M=u.cleanup;if(null!=M)for(let D=0;DCe?ne[Ce]:null}"string"==typeof k&&(D+=2)}return null}(u,f,M,y.index)),null!==Qi)(Qi.__ngLastListenerFn__||Qi).__ngNextListenerFn__=D,Qi.__ngLastListenerFn__=D,zt=!1;else{D=lc(y,f,wt,D,!1);const un=v.listen(Ci,M,D);Nt.push(D,un),dt&&dt.push(M,Mi,ei,ei+1)}}else D=lc(y,f,wt,D,!0),Ci.addEventListener(M,D,k),Nt.push(D),dt&&dt.push(M,Mi,ei,k)}else D=lc(y,f,wt,D,!1);const Kt=y.outputs;let li;if(zt&&null!==Kt&&(li=Kt[M])){const fi=li.length;if(fi)for(let Ci=0;Ci0;)f=f[15],u--;return f}(u,Zt.lFrame.contextLView))[8]}(u)}function ub(u,f){let v=null;const y=function b_(u){const f=u.attrs;if(null!=f){const v=f.indexOf(5);if(0==(1&v))return f[v+1]}return null}(u);for(let M=0;M=0}const Bn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rp(u){return u.substring(Bn.key,Bn.keyEnd)}function sp(u,f){const v=Bn.textEnd;return v===f?-1:(f=Bn.keyEnd=function Ab(u,f,v){for(;f32;)f++;return f}(u,Bn.key=f,v),Ks(u,f,v))}function Ks(u,f,v){for(;f=0;v=sp(f,v))mr(u,rp(f),!0)}function Pr(u,f,v,y){const M=Xt(),D=si(),k=fr(2);D.firstUpdatePass&&hp(D,u,k,y),f!==ki&&Jn(M,k,f)&&fp(D,D.data[Zi()],M,M[11],u,M[k+1]=function Sb(u,f){return null==u||("string"==typeof f?u+=f:"object"==typeof u&&(u=C(Yr(u)))),u}(f,v),y,k)}function Or(u,f,v,y){const M=si(),D=fr(2);M.firstUpdatePass&&hp(M,null,D,y);const k=Xt();if(v!==ki&&Jn(k,D,v)){const ne=M.data[Zi()];if(gp(ne,y)&&!up(M,D)){let Ce=y?ne.classesWithoutHost:ne.stylesWithoutHost;null!==Ce&&(v=O(Ce,v||"")),ec(M,ne,k,v,y)}else!function Mb(u,f,v,y,M,D,k,ne){M===ki&&(M=lt);let Ce=0,et=0,dt=0=u.expandoStartIndex}function hp(u,f,v,y){const M=u.data;if(null===M[v+1]){const D=M[Zi()],k=up(u,v);gp(D,y)&&null===f&&!k&&(f=!1),f=function Tb(u,f,v,y){const M=fe(u);let D=y?f.residualClasses:f.residualStyles;if(null===M)0===(y?f.classBindings:f.styleBindings)&&(v=Oa(v=pc(null,u,f,v,y),f.attrs,y),D=null);else{const k=f.directiveStylingLast;if(-1===k||u[k]!==M)if(v=pc(M,u,f,v,y),null===D){let Ce=function Eb(u,f,v){const y=v?f.classBindings:f.styleBindings;if(0!==qr(y))return u[Rr(y)]}(u,f,y);void 0!==Ce&&Array.isArray(Ce)&&(Ce=pc(null,u,f,Ce[1],y),Ce=Oa(Ce,f.attrs,y),function yb(u,f,v,y){u[Rr(v?f.classBindings:f.styleBindings)]=y}(u,f,y,Ce))}else D=function wb(u,f,v){let y;const M=f.directiveEnd;for(let D=1+f.directiveStylingLast;D0)&&(et=!0)}else dt=v;if(M)if(0!==Ce){const Nt=Rr(u[ne+1]);u[y+1]=so(Nt,ne),0!==Nt&&(u[Nt+1]=Al(u[Nt+1],y)),u[ne+1]=function x_(u,f){return 131071&u|f<<17}(u[ne+1],y)}else u[y+1]=so(ne,0),0!==ne&&(u[ne+1]=Al(u[ne+1],y)),ne=y;else u[y+1]=so(Ce,0),0===ne?ne=y:u[Ce+1]=Al(u[Ce+1],y),Ce=y;et&&(u[y+1]=_l(u[y+1])),np(u,dt,y,!0),np(u,dt,y,!1),function pb(u,f,v,y,M){const D=M?u.residualClasses:u.residualStyles;null!=D&&"string"==typeof f&&Ds(D,f)>=0&&(v[y+1]=bl(v[y+1]))}(f,dt,u,y,D),k=so(ne,Ce),D?f.classBindings=k:f.styleBindings=k}(M,D,f,v,k,y)}}function pc(u,f,v,y,M){let D=null;const k=v.directiveEnd;let ne=v.directiveStylingLast;for(-1===ne?ne=v.directiveStart:ne++;ne0;){const Ce=u[M],et=Array.isArray(Ce),dt=et?Ce[1]:Ce,wt=null===dt;let Nt=v[M+1];Nt===ki&&(Nt=wt?lt:void 0);let zt=wt?Zo(Nt,y):dt===y?Nt:void 0;if(et&&!go(zt)&&(zt=Zo(Ce,y)),go(zt)&&(ne=zt,k))return ne;const Kt=u[M+1];M=k?Rr(Kt):qr(Kt)}if(null!==f){let Ce=D?f.residualClasses:f.residualStyles;null!=Ce&&(ne=Zo(Ce,y))}return ne}function go(u){return void 0!==u}function gp(u,f){return 0!=(u.flags&(f?16:32))}function _p(u,f=""){const v=Xt(),y=si(),M=u+20,D=y.firstCreatePass?Bs(y,M,1,f,null):y.data[M],k=v[M]=function cl(u,f){return Ct(u)?u.createText(f):u.createTextNode(f)}(v[11],f);no(y,v,k,D),vn(D,!1)}function fc(u){return _o("",u,""),fc}function _o(u,f,v){const y=Xt(),M=Zs(y,u,f,v);return M!==ki&&Jr(y,Zi(),M),_o}function mc(u,f,v,y,M){const D=Xt(),k=Gs(D,u,f,v,y,M);return k!==ki&&Jr(D,Zi(),k),mc}function gc(u,f,v,y,M,D,k){const ne=Xt(),Ce=function zs(u,f,v,y,M,D,k,ne){const et=po(u,Sn(),v,M,k);return fr(3),et?f+X(v)+y+X(M)+D+X(k)+ne:ki}(ne,u,f,v,y,M,D,k);return Ce!==ki&&Jr(ne,Zi(),Ce),gc}function _c(u,f,v,y,M,D,k,ne,Ce){const et=Xt(),dt=function Ws(u,f,v,y,M,D,k,ne,Ce,et){const wt=yr(u,Sn(),v,M,k,Ce);return fr(4),wt?f+X(v)+y+X(M)+D+X(k)+ne+X(Ce)+et:ki}(et,u,f,v,y,M,D,k,ne,Ce);return dt!==ki&&Jr(et,Zi(),dt),_c}function Ac(u,f,v,y,M,D,k,ne,Ce,et,dt){const wt=Xt(),Nt=function Ys(u,f,v,y,M,D,k,ne,Ce,et,dt,wt){const Nt=Sn();let zt=yr(u,Nt,v,M,k,Ce);return zt=Jn(u,Nt+4,dt)||zt,fr(5),zt?f+X(v)+y+X(M)+D+X(k)+ne+X(Ce)+et+X(dt)+wt:ki}(wt,u,f,v,y,M,D,k,ne,Ce,et,dt);return Nt!==ki&&Jr(wt,Zi(),Nt),Ac}function Tp(u,f,v){Or(mr,Gr,Zs(Xt(),u,f,v),!0)}function bc(u,f,v){const y=Xt();return Jn(y,er(),f)&&gr(si(),Pi(),y,u,f,y[11],v,!0),bc}function Cc(u,f,v){const y=Xt();if(Jn(y,er(),f)){const D=si(),k=Pi();gr(D,k,y,u,f,Ku(fe(D.data),k,y),v,!0)}return Cc}const ps=void 0;var Yb=["en",[["a","p"],["AM","PM"],ps],[["AM","PM"],ps,ps],[["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"]],ps,[["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"]],ps,[["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}",ps,"{1} 'at' {0}",ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Wb(u){const v=Math.floor(Math.abs(u)),y=u.toString().replace(/^[^.]*\.?/,"").length;return 1===v&&0===y?1:5}];let Xs={};function vc(u){const f=function qb(u){return u.toLowerCase().replace(/_/g,"-")}(u);let v=Op(f);if(v)return v;const y=f.split("-")[0];if(v=Op(y),v)return v;if("en"===y)return Yb;throw new Error(`Missing locale data for the locale "${u}".`)}function Pp(u){return vc(u)[Ii.PluralCase]}function Op(u){return u in Xs||(Xs[u]=x.ng&&x.ng.common&&x.ng.common.locales&&x.ng.common.locales[u]),Xs[u]}var Ii=(()=>((Ii=Ii||{})[Ii.LocaleId=0]="LocaleId",Ii[Ii.DayPeriodsFormat=1]="DayPeriodsFormat",Ii[Ii.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ii[Ii.DaysFormat=3]="DaysFormat",Ii[Ii.DaysStandalone=4]="DaysStandalone",Ii[Ii.MonthsFormat=5]="MonthsFormat",Ii[Ii.MonthsStandalone=6]="MonthsStandalone",Ii[Ii.Eras=7]="Eras",Ii[Ii.FirstDayOfWeek=8]="FirstDayOfWeek",Ii[Ii.WeekendRange=9]="WeekendRange",Ii[Ii.DateFormat=10]="DateFormat",Ii[Ii.TimeFormat=11]="TimeFormat",Ii[Ii.DateTimeFormat=12]="DateTimeFormat",Ii[Ii.NumberSymbols=13]="NumberSymbols",Ii[Ii.NumberFormats=14]="NumberFormats",Ii[Ii.CurrencyCode=15]="CurrencyCode",Ii[Ii.CurrencySymbol=16]="CurrencySymbol",Ii[Ii.CurrencyName=17]="CurrencyName",Ii[Ii.Currencies=18]="Currencies",Ii[Ii.Directionality=19]="Directionality",Ii[Ii.PluralCase=20]="PluralCase",Ii[Ii.ExtraData=21]="ExtraData",Ii))();const Ao="en-US";let Hp=Ao;function yc(u,f,v,y,M){if(u=B(u),Array.isArray(u))for(let D=0;D>20;if(Fs(u)||!u.multi){const zt=new rs(Ce,M,Pa),Kt=xc(ne,f,M?dt:dt+Nt,wt);-1===Kt?(on(Ai(et,k),D,ne),wc(D,u,f.length),f.push(ne),et.directiveStart++,et.directiveEnd++,M&&(et.providerIndexes+=1048576),v.push(zt),k.push(zt)):(v[Kt]=zt,k[Kt]=zt)}else{const zt=xc(ne,f,dt+Nt,wt),Kt=xc(ne,f,dt,dt+Nt),li=zt>=0&&v[zt],fi=Kt>=0&&v[Kt];if(M&&!fi||!M&&!li){on(Ai(et,k),D,ne);const Ci=function WC(u,f,v,y,M){const D=new rs(u,v,Pa);return D.multi=[],D.index=f,D.componentProviders=0,sf(D,M,y&&!v),D}(M?zC:GC,v.length,M,y,Ce);!M&&fi&&(v[Kt].providerFactory=Ci),wc(D,u,f.length,0),f.push(ne),et.directiveStart++,et.directiveEnd++,M&&(et.providerIndexes+=1048576),v.push(Ci),k.push(Ci)}else wc(D,u,zt>-1?zt:Kt,sf(v[M?Kt:zt],Ce,!M&&y));!M&&y&&fi&&v[Kt].componentProviders++}}}function wc(u,f,v,y){const M=Fs(f),D=function bA(u){return!!u.useClass}(f);if(M||D){const Ce=(D?B(f.useClass):f).prototype.ngOnDestroy;if(Ce){const et=u.destroyHooks||(u.destroyHooks=[]);if(!M&&f.multi){const dt=et.indexOf(v);-1===dt?et.push(v,[y,Ce]):et[dt+1].push(y,Ce)}else et.push(v,Ce)}}}function sf(u,f,v){return v&&u.componentProviders++,u.multi.push(f)-1}function xc(u,f,v,y){for(let M=v;M{v.providersResolver=(y,M)=>function ZC(u,f,v){const y=si();if(y.firstCreatePass){const M=Oi(u);yc(v,y.data,y.blueprint,M,!0),yc(f,y.data,y.blueprint,M,!1)}}(y,M?M(u):u,f)}}class of{}class JC{resolveComponentFactory(f){throw function qC(u){const f=Error(`No component factory found for ${C(u)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=u,f}(f)}}let Na=(()=>{class u{}return u.NULL=new JC,u})();function QC(){return ta(gi(),Xt())}function ta(u,f){return new Va(Wt(u,f))}let Va=(()=>{class u{constructor(v){this.nativeElement=v}}return u.__NG_ELEMENT_ID__=QC,u})();function $C(u){return u instanceof Va?u.nativeElement:u}class cf{}let KC=(()=>{class u{}return u.__NG_ELEMENT_ID__=()=>function ev(){const u=Xt(),v=_i(gi().index,u);return function XC(u){return u[11]}(en(v)?v:u)}(),u})(),tv=(()=>{class u{}return u.\u0275prov=we({token:u,providedIn:"root",factory:()=>null}),u})();class df{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const iv=new df("13.2.2"),Sc={};function Eo(u,f,v,y,M=!1){for(;null!==v;){const D=f[v.index];if(null!==D&&y.push(de(D)),an(D))for(let ne=10;ne-1&&(ul(f,y),Ja(v,y))}this._attachedToViewContainer=!1}ru(this._lView[1],this._lView)}onDestroy(f){Fu(this._lView[1],this._lView,null,f)}markForCheck(){Hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Bl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function lA(u,f,v){bn(!0);try{Bl(u,f,v)}finally{bn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ie(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function r_(u,f){xa(u,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ie(902,"");this._appRef=f}}class nv extends Fa{constructor(f){super(f),this._view=f}detectChanges(){Ju(this._view)}checkNoChanges(){!function cA(u){bn(!0);try{Ju(u)}finally{bn(!1)}}(this._view)}get context(){return null}}class uf extends Na{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const v=Bt(f);return new Dc(v,this.ngModule)}}function hf(u){const f=[];for(let v in u)u.hasOwnProperty(v)&&f.push({propName:u[v],templateName:v});return f}const sv=new Dn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qd});class Dc extends of{constructor(f,v){super(),this.componentDef=f,this.ngModule=v,this.componentType=f.type,this.selector=function y_(u){return u.map(E_).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!v}get inputs(){return hf(this.componentDef.inputs)}get outputs(){return hf(this.componentDef.outputs)}create(f,v,y,M){const D=(M=M||this.ngModule)?function av(u,f){return{get:(v,y,M)=>{const D=u.get(v,Sc,M);return D!==Sc||y===Sc?D:f.get(v,y,M)}}}(f,M.injector):f,k=D.get(cf,$),ne=D.get(tv,null),Ce=k.createRenderer(null,this.componentDef),et=this.componentDef.selectors[0][0]||"div",dt=y?function Vu(u,f,v){if(Ct(u))return u.selectRootElement(f,v===t.ShadowDom);let y="string"==typeof f?u.querySelector(f):f;return y.textContent="",y}(Ce,y,this.componentDef.encapsulation):dl(k.createRenderer(null,this.componentDef),et,function rv(u){const f=u.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(et)),wt=this.componentDef.onPush?576:528,Nt=function _h(u,f){return{components:[],scheduler:u||qd,clean:dA,playerHandler:f||null,flags:0}}(),zt=lo(0,null,null,1,0,null,null,null,null,null),Kt=Ma(null,zt,Nt,wt,null,null,k,Ce,ne,D);let li,fi;qt(Kt);try{const Ci=function mh(u,f,v,y,M,D){const k=v[1];v[20]=u;const Ce=Bs(k,20,2,"#host",null),et=Ce.mergedAttrs=f.hostAttrs;null!==et&&(uo(Ce,et,!0),null!==u&&(Cs(M,u,et),null!==Ce.classes&&gl(M,u,Ce.classes),null!==Ce.styles&&gu(M,u,Ce.styles)));const dt=y.createRenderer(u,f),wt=Ma(v,ku(f),null,f.onPush?64:16,v[20],Ce,y,dt,D||null,null);return k.firstCreatePass&&(on(Ai(Ce,v),k,f.type),zu(k,Ce),Wu(Ce,v.length,1)),co(v,wt),v[20]=wt}(dt,this.componentDef,Kt,k,Ce);if(dt)if(y)Cs(Ce,dt,["ng-version",iv.full]);else{const{attrs:ei,classes:Mi}=function w_(u){const f=[],v=[];let y=1,M=2;for(;y0&&gl(Ce,dt,Mi.join(" "))}if(fi=di(zt,20),void 0!==v){const ei=fi.projection=[];for(let Mi=0;MiCe(k,f)),f.contentQueries){const Ce=gi();f.contentQueries(1,k,Ce.directiveStart)}const ne=gi();return!D.firstCreatePass||null===f.hostBindings&&null===f.hostAttrs||(Bi(ne.index),Zu(v[1],ne,0,ne.directiveStart,ne.directiveEnd,f),Gu(f,k)),k}(Ci,this.componentDef,Kt,Nt,[RA]),Sa(zt,Kt,null)}finally{Gi()}return new lv(this.componentType,li,ta(fi,Kt),Kt,fi)}}class lv extends class YC{}{constructor(f,v,y,M,D){super(),this.location=y,this._rootLView=M,this._tNode=D,this.instance=v,this.hostView=this.changeDetectorRef=new nv(M),this.componentType=f}get injector(){return new ys(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}class ia{}class pf{}const na=new Map;class gf extends ia{constructor(f,v){super(),this._parent=v,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new uf(this);const y=mi(f);this._bootstrapComponents=Vr(y.bootstrap),this._r3Injector=rh(f,v,[{provide:ia,useValue:this},{provide:Na,useValue:this.componentFactoryResolver}],C(f)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(f)}get(f,v=Er.THROW_IF_NOT_FOUND,y=je.Default){return f===Er||f===ia||f===Nl?this:this._r3Injector.get(f,v,y)}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(v=>v()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Rc extends pf{constructor(f){super(),this.moduleType=f,null!==mi(f)&&function dv(u){const f=new Set;!function v(y){const M=mi(y,!0),D=M.id;null!==D&&(function ff(u,f,v){if(f&&f!==v)throw new Error(`Duplicate module registered for ${u} - ${C(f)} vs ${C(f.name)}`)}(D,na.get(D),y),na.set(D,y));const k=Vr(M.imports);for(const ne of k)f.has(ne)||(f.add(ne),v(ne))}(u)}(f)}create(f){return new gf(this.moduleType,f)}}function _f(u,f,v){const y=mn()+u,M=Xt();return M[y]===ki?jr(M,y,v?f.call(v):f()):function Ia(u,f){return u[f]}(M,y)}function Af(u,f,v,y){return vf(Xt(),mn(),u,f,v,y)}function bf(u,f,v,y,M){return Tf(Xt(),mn(),u,f,v,y,M)}function Cf(u,f,v,y,M,D){return Ef(Xt(),mn(),u,f,v,y,M,D)}function Ua(u,f){const v=u[f];return v===ki?void 0:v}function vf(u,f,v,y,M,D){const k=f+v;return Jn(u,k,M)?jr(u,k+1,D?y.call(D,M):y(M)):Ua(u,k+1)}function Tf(u,f,v,y,M,D,k){const ne=f+v;return hs(u,ne,M,D)?jr(u,ne+2,k?y.call(k,M,D):y(M,D)):Ua(u,ne+2)}function Ef(u,f,v,y,M,D,k,ne){const Ce=f+v;return po(u,Ce,M,D,k)?jr(u,Ce+3,ne?y.call(ne,M,D,k):y(M,D,k)):Ua(u,Ce+3)}function xf(u,f){const v=si();let y;const M=u+20;v.firstCreatePass?(y=function _v(u,f){if(f)for(let v=f.length-1;v>=0;v--){const y=f[v];if(u===y.name)return y}}(f,v.pipeRegistry),v.data[M]=y,y.onDestroy&&(v.destroyHooks||(v.destroyHooks=[])).push(M,y.onDestroy)):y=v.data[M];const D=y.factory||(y.factory=En(y.type)),k=re(Pa);try{const ne=Ve(!1),Ce=D();return Ve(ne),function jA(u,f,v,y){v>=u.data.length&&(u.data[v]=null,u.blueprint[v]=null),f[v]=y}(v,Xt(),M,Ce),Ce}finally{re(k)}}function Mf(u,f,v){const y=u+20,M=Xt(),D=ui(M,y);return ja(M,y)?vf(M,mn(),f,D.transform,v,D):D.transform(v)}function Sf(u,f,v,y){const M=u+20,D=Xt(),k=ui(D,M);return ja(D,M)?Tf(D,mn(),f,k.transform,v,y,k):k.transform(v,y)}function Df(u,f,v,y,M){const D=u+20,k=Xt(),ne=ui(k,D);return ja(k,D)?Ef(k,mn(),f,ne.transform,v,y,M,ne):ne.transform(v,y,M)}function ja(u,f){return u[1].data[f].pure}function Ic(u){return f=>{setTimeout(u,void 0,f)}}const zr=class Cv extends e.xQ{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,v,y){var M,D,k;let ne=f,Ce=v||(()=>null),et=y;if(f&&"object"==typeof f){const wt=f;ne=null===(M=wt.next)||void 0===M?void 0:M.bind(wt),Ce=null===(D=wt.error)||void 0===D?void 0:D.bind(wt),et=null===(k=wt.complete)||void 0===k?void 0:k.bind(wt)}this.__isAsync&&(Ce=Ic(Ce),ne&&(ne=Ic(ne)),et&&(et=Ic(et)));const dt=super.subscribe({next:ne,error:Ce,complete:et});return f instanceof b.w&&f.add(dt),dt}};function vv(){return this._results[Us()]()}class yo{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const v=Us(),y=yo.prototype;y[v]||(y[v]=vv)}get changes(){return this._changes||(this._changes=new zr)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,v){return this._results.reduce(f,v)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,v){const y=this;y.dirty=!1;const M=Tr(f);(this._changesDetected=!function Lm(u,f,v){if(u.length!==f.length)return!1;for(let y=0;y{class u{}return u.__NG_ELEMENT_ID__=yv,u})();const Tv=Za,Ev=class extends Tv{constructor(f,v,y){super(),this._declarationLView=f,this._declarationTContainer=v,this.elementRef=y}createEmbeddedView(f){const v=this._declarationTContainer.tViews,y=Ma(this._declarationLView,v,f,16,null,v.declTNode,null,null,null,null);y[17]=this._declarationLView[this._declarationTContainer.index];const D=this._declarationLView[19];return null!==D&&(y[19]=D.createEmbeddedView(v)),Sa(v,y,f),new Fa(y)}};function yv(){return wo(gi(),Xt())}function wo(u,f){return 4&u.type?new Ev(f,u,ta(u,f)):null}let xo=(()=>{class u{}return u.__NG_ELEMENT_ID__=wv,u})();function wv(){return Pf(gi(),Xt())}const xv=xo,Rf=class extends xv{constructor(f,v,y){super(),this._lContainer=f,this._hostTNode=v,this._hostLView=y}get element(){return ta(this._hostTNode,this._hostLView)}get injector(){return new ys(this._hostTNode,this._hostLView)}get parentInjector(){const f=nn(this._hostTNode,this._hostLView);if(qa(f)){const v=se(f,this._hostLView),y=as(f);return new ys(v[1].data[y+8],v)}return new ys(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const v=If(this._lContainer);return null!==v&&v[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,v,y){const M=f.createEmbeddedView(v||{});return this.insert(M,y),M}createComponent(f,v,y,M,D){const k=f&&!function pa(u){return"function"==typeof u}(f);let ne;if(k)ne=v;else{const wt=v||{};ne=wt.index,y=wt.injector,M=wt.projectableNodes,D=wt.ngModuleRef}const Ce=k?f:new Dc(Bt(f)),et=y||this.parentInjector;if(!D&&null==Ce.ngModule&&et){const wt=et.get(ia,null);wt&&(D=wt)}const dt=Ce.create(et,M,void 0,D);return this.insert(dt.hostView,ne),dt}insert(f,v){const y=f._lView,M=y[1];if(function Be(u){return an(u[3])}(y)){const dt=this.indexOf(f);if(-1!==dt)this.detach(dt);else{const wt=y[3],Nt=new Rf(wt,wt[6],wt[3]);Nt.detach(Nt.indexOf(f))}}const D=this._adjustIndex(v),k=this._lContainer;!function a_(u,f,v,y){const M=10+y,D=v.length;y>0&&(v[M-1][4]=f),y0)y.push(k[ne/2]);else{const et=D[ne+1],dt=f[-Ce];for(let wt=10;wt{class u{constructor(v){this.appInits=v,this.resolve=Do,this.reject=Do,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,M)=>{this.resolve=y,this.reject=M})}runInitializers(){if(this.initialized)return;const v=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let M=0;M{D.subscribe({complete:ne,error:Ce})});v.push(k)}}Promise.all(v).then(()=>{y()}).catch(M=>{this.reject(M)}),0===v.length&&y(),this.initialized=!0}}return u.\u0275fac=function(v){return new(v||u)(Fn(Zc,8))},u.\u0275prov=we({token:u,factory:u.\u0275fac}),u})();const sm=new Dn("AppId"),Kv={provide:sm,useFactory:function $v(){return`${Gc()}${Gc()}${Gc()}`},deps:[]};function Gc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const am=new Dn("Platform Initializer"),om=new Dn("Platform ID"),lm=new Dn("appBootstrapListener");let cm=(()=>{class u{log(v){console.log(v)}warn(v){console.warn(v)}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=we({token:u,factory:u.\u0275fac}),u})();const Ro=new Dn("LocaleId"),dm=new Dn("DefaultCurrencyCode");class Xv{constructor(f,v){this.ngModuleFactory=f,this.componentFactories=v}}let zc=(()=>{class u{compileModuleSync(v){return new Rc(v)}compileModuleAsync(v){return Promise.resolve(this.compileModuleSync(v))}compileModuleAndAllComponentsSync(v){const y=this.compileModuleSync(v),D=Vr(mi(v).declarations).reduce((k,ne)=>{const Ce=Bt(ne);return Ce&&k.push(new Dc(Ce)),k},[]);return new Xv(y,D)}compileModuleAndAllComponentsAsync(v){return Promise.resolve(this.compileModuleAndAllComponentsSync(v))}clearCache(){}clearCacheFor(v){}getModuleId(v){}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=we({token:u,factory:u.\u0275fac}),u})();const tT=(()=>Promise.resolve(0))();function Wc(u){"undefined"==typeof Zone?tT.then(()=>{u&&u.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",u)}class _r{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:v=!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),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const M=this;M._nesting=0,M._outer=M._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(M._inner=M._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(M._inner=M._inner.fork(Zone.longStackTraceZoneSpec)),M.shouldCoalesceEventChangeDetection=!y&&v,M.shouldCoalesceRunChangeDetection=y,M.lastRequestAnimationFrameId=-1,M.nativeRequestAnimationFrame=function iT(){let u=x.requestAnimationFrame,f=x.cancelAnimationFrame;if("undefined"!=typeof Zone&&u&&f){const v=u[Zone.__symbol__("OriginalDelegate")];v&&(u=v);const y=f[Zone.__symbol__("OriginalDelegate")];y&&(f=y)}return{nativeRequestAnimationFrame:u,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function sT(u){const f=()=>{!function rT(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(x,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,qc(u),u.isCheckStableRunning=!0,Yc(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),qc(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(v,y,M,D,k,ne)=>{try{return um(u),v.invokeTask(M,D,k,ne)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===D.type||u.shouldCoalesceRunChangeDetection)&&f(),hm(u)}},onInvoke:(v,y,M,D,k,ne,Ce)=>{try{return um(u),v.invoke(M,D,k,ne,Ce)}finally{u.shouldCoalesceRunChangeDetection&&f(),hm(u)}},onHasTask:(v,y,M,D)=>{v.hasTask(M,D),y===M&&("microTask"==D.change?(u._hasPendingMicrotasks=D.microTask,qc(u),Yc(u)):"macroTask"==D.change&&(u.hasPendingMacrotasks=D.macroTask))},onHandleError:(v,y,M,D)=>(v.handleError(M,D),u.runOutsideAngular(()=>u.onError.emit(D)),!1)})}(M)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_r.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_r.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(f,v,y){return this._inner.run(f,v,y)}runTask(f,v,y,M){const D=this._inner,k=D.scheduleEventTask("NgZoneEvent: "+M,f,nT,Do,Do);try{return D.runTask(k,v,y)}finally{D.cancelTask(k)}}runGuarded(f,v,y){return this._inner.runGuarded(f,v,y)}runOutsideAngular(f){return this._outer.run(f)}}const nT={};function Yc(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function qc(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function um(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function hm(u){u._nesting--,Yc(u)}class aT{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(f,v,y){return f.apply(v,y)}runGuarded(f,v,y){return f.apply(v,y)}runOutsideAngular(f){return f()}runTask(f,v,y,M){return f.apply(v,y)}}let pm=(()=>{class u{constructor(v){this._ngZone=v,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),v.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{_r.assertNotInAngularZone(),Wc(()=>{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())Wc(()=>{for(;0!==this._callbacks.length;){let v=this._callbacks.pop();clearTimeout(v.timeoutId),v.doneCb(this._didWork)}this._didWork=!1});else{let v=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(v)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(v=>({source:v.source,creationLocation:v.creationLocation,data:v.data})):[]}addCallback(v,y,M){let D=-1;y&&y>0&&(D=setTimeout(()=>{this._callbacks=this._callbacks.filter(k=>k.timeoutId!==D),v(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:v,timeoutId:D,updateCb:M})}whenStable(v,y,M){if(M&&!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(v,y,M),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(v,y,M){return[]}}return u.\u0275fac=function(v){return new(v||u)(Fn(_r))},u.\u0275prov=we({token:u,factory:u.\u0275fac}),u})(),fm=(()=>{class u{constructor(){this._applications=new Map,Jc.addToWindow(this)}registerApplication(v,y){this._applications.set(v,y)}unregisterApplication(v){this._applications.delete(v)}unregisterAllApplications(){this._applications.clear()}getTestability(v){return this._applications.get(v)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(v,y=!0){return Jc.findTestabilityInTree(this,v,y)}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=we({token:u,factory:u.\u0275fac}),u})();class oT{addToWindow(f){}findTestabilityInTree(f,v,y){return null}}function lT(u){Jc=u}let Hr,Jc=new oT;const mm=new Dn("AllowMultipleToken");class uT{constructor(f,v){this.name=f,this.token=v}}function gm(u,f,v=[]){const y=`Platform: ${f}`,M=new Dn(y);return(D=[])=>{let k=_m();if(!k||k.injector.get(mm,!1))if(u)u(v.concat(D).concat({provide:M,useValue:!0}));else{const ne=v.concat(D).concat({provide:M,useValue:!0},{provide:Vl,useValue:"platform"});!function hT(u){if(Hr&&!Hr.destroyed&&!Hr.injector.get(mm,!1))throw new ie(400,"");Hr=u.get(Am);const f=u.get(am,null);f&&f.forEach(v=>v())}(Er.create({providers:ne,name:y}))}return function pT(u){const f=_m();if(!f)throw new ie(401,"");return f}()}}function _m(){return Hr&&!Hr.destroyed?Hr:null}let Am=(()=>{class u{constructor(v){this._injector=v,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(v,y){const ne=function fT(u,f){let v;return v="noop"===u?new aT:("zone.js"===u?void 0:u)||new _r({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==f?void 0:f.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==f?void 0:f.ngZoneRunCoalescing)}),v}(y?y.ngZone:void 0,{ngZoneEventCoalescing:y&&y.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:y&&y.ngZoneRunCoalescing||!1}),Ce=[{provide:_r,useValue:ne}];return ne.run(()=>{const et=Er.create({providers:Ce,parent:this.injector,name:v.moduleType.name}),dt=v.create(et),wt=dt.injector.get(ya,null);if(!wt)throw new ie(402,"");return ne.runOutsideAngular(()=>{const Nt=ne.onError.subscribe({next:zt=>{wt.handleError(zt)}});dt.onDestroy(()=>{Qc(this._modules,dt),Nt.unsubscribe()})}),function mT(u,f,v){try{const y=v();return sc(y)?y.catch(M=>{throw f.runOutsideAngular(()=>u.handleError(M)),M}):y}catch(y){throw f.runOutsideAngular(()=>u.handleError(y)),y}}(wt,ne,()=>{const Nt=dt.injector.get(sa);return Nt.runInitializers(),Nt.donePromise.then(()=>(function Kb(u){I(u,"Expected localeId to be defined"),"string"==typeof u&&(Hp=u.toLowerCase().replace(/_/g,"-"))}(dt.injector.get(Ro,Ao)||Ao),this._moduleDoBootstrap(dt),dt))})})}bootstrapModule(v,y=[]){const M=bm({},y);return function cT(u,f,v){const y=new Rc(v);return Promise.resolve(y)}(0,0,v).then(D=>this.bootstrapModuleFactory(D,M))}_moduleDoBootstrap(v){const y=v.injector.get(za);if(v._bootstrapComponents.length>0)v._bootstrapComponents.forEach(M=>y.bootstrap(M));else{if(!v.instance.ngDoBootstrap)throw new ie(403,"");v.instance.ngDoBootstrap(y)}this._modules.push(v)}onDestroy(v){this._destroyListeners.push(v)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,"");this._modules.slice().forEach(v=>v.destroy()),this._destroyListeners.forEach(v=>v()),this._destroyed=!0}get destroyed(){return this._destroyed}}return u.\u0275fac=function(v){return new(v||u)(Fn(Er))},u.\u0275prov=we({token:u,factory:u.\u0275fac}),u})();function bm(u,f){return Array.isArray(f)?f.reduce(bm,u):Object.assign(Object.assign({},u),f)}let za=(()=>{class u{constructor(v,y,M,D,k){this._zone=v,this._injector=y,this._exceptionHandler=M,this._componentFactoryResolver=D,this._initStatus=k,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const ne=new _.y(et=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{et.next(this._stable),et.complete()})}),Ce=new _.y(et=>{let dt;this._zone.runOutsideAngular(()=>{dt=this._zone.onStable.subscribe(()=>{_r.assertNotInAngularZone(),Wc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,et.next(!0))})})});const wt=this._zone.onUnstable.subscribe(()=>{_r.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{et.next(!1)}))});return()=>{dt.unsubscribe(),wt.unsubscribe()}});this.isStable=(0,w.T)(ne,Ce.pipe((0,g.B)()))}bootstrap(v,y){if(!this._initStatus.done)throw new ie(405,"");let M;M=v instanceof of?v:this._componentFactoryResolver.resolveComponentFactory(v),this.componentTypes.push(M.componentType);const D=function dT(u){return u.isBoundToModule}(M)?void 0:this._injector.get(ia),ne=M.create(Er.NULL,[],y||M.selector,D),Ce=ne.location.nativeElement,et=ne.injector.get(pm,null),dt=et&&ne.injector.get(fm);return et&&dt&&dt.registerApplication(Ce,et),ne.onDestroy(()=>{this.detachView(ne.hostView),Qc(this.components,ne),dt&&dt.unregisterApplication(Ce)}),this._loadComponent(ne),ne}tick(){if(this._runningTick)throw new ie(101,"");try{this._runningTick=!0;for(let v of this._views)v.detectChanges()}catch(v){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(v))}finally{this._runningTick=!1}}attachView(v){const y=v;this._views.push(y),y.attachToAppRef(this)}detachView(v){const y=v;Qc(this._views,y),y.detachFromAppRef()}_loadComponent(v){this.attachView(v.hostView),this.tick(),this.components.push(v),this._injector.get(lm,[]).concat(this._bootstrapListeners).forEach(M=>M(v))}ngOnDestroy(){this._views.slice().forEach(v=>v.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return u.\u0275fac=function(v){return new(v||u)(Fn(_r),Fn(Er),Fn(ya),Fn(Na),Fn(sa))},u.\u0275prov=we({token:u,factory:u.\u0275fac}),u})();function Qc(u,f){const v=u.indexOf(f);v>-1&&u.splice(v,1)}let vm=!0;function _T(){vm=!1}let AT=(()=>{class u{}return u.__NG_ELEMENT_ID__=bT,u})();function bT(u){return function CT(u,f,v){if(wn(u)&&!v){const y=_i(u.index,f);return new Fa(y,y)}return 47&u.type?new Fa(f[16],f):null}(gi(),Xt(),16==(16&u))}class xm{constructor(){}supports(f){return Ra(f)}create(f){return new xT(f)}}const wT=(u,f)=>f;class xT{constructor(f){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=f||wT}forEachItem(f){let v;for(v=this._itHead;null!==v;v=v._next)f(v)}forEachOperation(f){let v=this._itHead,y=this._removalsHead,M=0,D=null;for(;v||y;){const k=!y||v&&v.currentIndex{k=this._trackByFn(M,ne),null!==v&&Object.is(v.trackById,k)?(y&&(v=this._verifyReinsertion(v,ne,k,M)),Object.is(v.item,ne)||this._addIdentityChange(v,ne)):(v=this._mismatch(v,ne,k,M),y=!0),v=v._next,M++}),this.length=M;return this._truncate(v),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,v,y,M){let D;return null===f?D=this._itTail:(D=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(f.item,v)||this._addIdentityChange(f,v),this._reinsertAfter(f,D,M)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(y,M))?(Object.is(f.item,v)||this._addIdentityChange(f,v),this._moveAfter(f,D,M)):f=this._addAfter(new MT(v,y),D,M),f}_verifyReinsertion(f,v,y,M){let D=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==D?f=this._reinsertAfter(D,f._prev,M):f.currentIndex!=M&&(f.currentIndex=M,this._addToMoves(f,M)),f}_truncate(f){for(;null!==f;){const v=f._next;this._addToRemovals(this._unlink(f)),f=v}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(f,v,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const M=f._prevRemoved,D=f._nextRemoved;return null===M?this._removalsHead=D:M._nextRemoved=D,null===D?this._removalsTail=M:D._prevRemoved=M,this._insertAfter(f,v,y),this._addToMoves(f,y),f}_moveAfter(f,v,y){return this._unlink(f),this._insertAfter(f,v,y),this._addToMoves(f,y),f}_addAfter(f,v,y){return this._insertAfter(f,v,y),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,v,y){const M=null===v?this._itHead:v._next;return f._next=M,f._prev=v,null===M?this._itTail=f:M._prev=f,null===v?this._itHead=f:v._next=f,null===this._linkedRecords&&(this._linkedRecords=new Mm),this._linkedRecords.put(f),f.currentIndex=y,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const v=f._prev,y=f._next;return null===v?this._itHead=y:v._next=y,null===y?this._itTail=v:y._prev=v,f}_addToMoves(f,v){return f.previousIndex===v||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Mm),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,v){return f.item=v,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class MT{constructor(f,v){this.item=f,this.trackById=v,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 ST{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,v){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===v||v<=y.currentIndex)&&Object.is(y.trackById,f))return y;return null}remove(f){const v=f._prevDup,y=f._nextDup;return null===v?this._head=y:v._nextDup=y,null===y?this._tail=v:y._prevDup=v,null===this._head}}class Mm{constructor(){this.map=new Map}put(f){const v=f.trackById;let y=this.map.get(v);y||(y=new ST,this.map.set(v,y)),y.add(f)}get(f,v){const M=this.map.get(f);return M?M.get(f,v):null}remove(f){const v=f.trackById;return this.map.get(v).remove(f)&&this.map.delete(v),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sm(u,f,v){const y=u.previousIndex;if(null===y)return y;let M=0;return v&&y{if(v&&v.key===M)this._maybeAddToChanges(v,y),this._appendAfter=v,v=v._next;else{const D=this._getOrCreateRecordForKey(M,y);v=this._insertBeforeOrAppend(v,D)}}),v){v._prev&&(v._prev._next=null),this._removalsHead=v;for(let y=v;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(f,v){if(f){const y=f._prev;return v._next=f,v._prev=y,f._prev=v,y&&(y._next=v),f===this._mapHead&&(this._mapHead=v),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=v,v._prev=this._appendAfter):this._mapHead=v,this._appendAfter=v,null}_getOrCreateRecordForKey(f,v){if(this._records.has(f)){const M=this._records.get(f);this._maybeAddToChanges(M,v);const D=M._prev,k=M._next;return D&&(D._next=k),k&&(k._prev=D),M._next=null,M._prev=null,M}const y=new RT(f);return this._records.set(f,y),y.currentValue=v,this._addToAdditions(y),y}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,v){Object.is(v,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=v,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,v){f instanceof Map?f.forEach(v):Object.keys(f).forEach(y=>v(f[y],y))}}class RT{constructor(f){this.key=f,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 Rm(){return new Oo([new xm])}let Oo=(()=>{class u{constructor(v){this.factories=v}static create(v,y){if(null!=y){const M=y.factories.slice();v=v.concat(M)}return new u(v)}static extend(v){return{provide:u,useFactory:y=>u.create(v,y||Rm()),deps:[[u,new Rs,new cs]]}}find(v){const y=this.factories.find(M=>M.supports(v));if(null!=y)return y;throw new ie(901,"")}}return u.\u0275prov=we({token:u,providedIn:"root",factory:Rm}),u})();function Im(){return new Ho([new Dm])}let Ho=(()=>{class u{constructor(v){this.factories=v}static create(v,y){if(y){const M=y.factories.slice();v=v.concat(M)}return new u(v)}static extend(v){return{provide:u,useFactory:y=>u.create(v,y||Im()),deps:[[u,new Rs,new cs]]}}find(v){const y=this.factories.find(D=>D.supports(v));if(y)return y;throw new ie(901,"")}}return u.\u0275prov=we({token:u,providedIn:"root",factory:Im}),u})();const IT=[new Dm],OT=new Oo([new xm]),HT=new Ho(IT),LT=gm(null,"core",[{provide:om,useValue:"unknown"},{provide:Am,deps:[Er]},{provide:fm,deps:[]},{provide:cm,deps:[]}]),FT=[{provide:za,useClass:za,deps:[_r,Er,ya,Na,sa]},{provide:sv,deps:[_r],useFactory:function UT(u){let f=[];return u.onStable.subscribe(()=>{for(;f.length;)f.pop()()}),function(v){f.push(v)}}},{provide:sa,useClass:sa,deps:[[new cs,Zc]]},{provide:zc,useClass:zc,deps:[]},Kv,{provide:Oo,useFactory:function BT(){return OT},deps:[]},{provide:Ho,useFactory:function kT(){return HT},deps:[]},{provide:Ro,useFactory:function NT(u){return u||function VT(){return"undefined"!=typeof $localize&&$localize.locale||Ao}()},deps:[[new Aa(Ro),new cs,new Rs]]},{provide:dm,useValue:"USD"}];let jT=(()=>{class u{constructor(v){}}return u.\u0275fac=function(v){return new(v||u)(Fn(za))},u.\u0275mod=xt({type:u}),u.\u0275inj=Je({providers:FT}),u})()},93075:(Xe,_e,p)=>{"use strict";p.d(_e,{Zs:()=>F,Fj:()=>J,qu:()=>Ti,NI:()=>Dt,oH:()=>Qe,u:()=>Vn,sg:()=>jt,u5:()=>di,Cf:()=>X,JU:()=>C,a5:()=>P,JJ:()=>je,JL:()=>Ye,F:()=>$i,On:()=>an,YN:()=>Zn,wV:()=>xn,c5:()=>tt,UX:()=>ui,Q7:()=>ft,EJ:()=>rr,kI:()=>Oe,_Y:()=>dn,Kr:()=>ar});var e=p(5e3),b=p(69808),_=p(5254),w=p(30567),g=p(24850);let A=(()=>{class Be{constructor(Ee,ut){this._renderer=Ee,this._elementRef=ut,this.onChange=Zt=>{},this.onTouched=()=>{}}setProperty(Ee,ut){this._renderer.setProperty(this._elementRef.nativeElement,Ee,ut)}registerOnTouched(Ee){this.onTouched=Ee}registerOnChange(Ee){this.onChange=Ee}setDisabledState(Ee){this.setProperty("disabled",Ee)}}return Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(e.Qsj),e.Y36(e.SBq))},Be.\u0275dir=e.lG2({type:Be}),Be})(),E=(()=>{class Be extends A{}return Be.\u0275fac=function(){let xe;return function(ut){return(xe||(xe=e.n5z(Be)))(ut||Be)}}(),Be.\u0275dir=e.lG2({type:Be,features:[e.qOj]}),Be})();const C=new e.OlP("NgValueAccessor"),m={provide:C,useExisting:(0,e.Gpc)(()=>J),multi:!0},L=new e.OlP("CompositionEventMode");let J=(()=>{class Be extends A{constructor(Ee,ut,Zt){super(Ee,ut),this._compositionMode=Zt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function B(){const Be=(0,b.q)()?(0,b.q)().getUserAgent():"";return/android (\d+)/.test(Be.toLowerCase())}())}writeValue(Ee){this.setProperty("value",null==Ee?"":Ee)}_handleInput(Ee){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ee)}_compositionStart(){this._composing=!0}_compositionEnd(Ee){this._composing=!1,this._compositionMode&&this.onChange(Ee)}}return Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(L,8))},Be.\u0275dir=e.lG2({type:Be,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(Ee,ut){1&Ee&&e.NdJ("input",function(hi){return ut._handleInput(hi.target.value)})("blur",function(){return ut.onTouched()})("compositionstart",function(){return ut._compositionStart()})("compositionend",function(hi){return ut._compositionEnd(hi.target.value)})},features:[e._Bn([m]),e.qOj]}),Be})();function ie(Be){return null==Be||0===Be.length}function ge(Be){return null!=Be&&"number"==typeof Be.length}const X=new e.OlP("NgValidators"),Ne=new e.OlP("NgAsyncValidators"),ue=/^(?=.{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 Oe{static min(xe){return function T(Be){return xe=>{if(ie(xe.value)||ie(Be))return null;const Ee=parseFloat(xe.value);return!isNaN(Ee)&&Ee{if(ie(xe.value)||ie(Be))return null;const Ee=parseFloat(xe.value);return!isNaN(Ee)&&Ee>Be?{max:{max:Be,actual:xe.value}}:null}}(xe)}static required(xe){return W(xe)}static requiredTrue(xe){return Y(xe)}static email(xe){return function ee(Be){return ie(Be.value)||ue.test(Be.value)?null:{email:!0}}(xe)}static minLength(xe){return function ce(Be){return xe=>ie(xe.value)||!ge(xe.value)?null:xe.value.lengthge(xe.value)&&xe.value.length>Be?{maxlength:{requiredLength:Be,actualLength:xe.value.length}}:null}(xe)}static pattern(xe){return Pe(xe)}static nullValidator(xe){return null}static compose(xe){return I(xe)}static composeAsync(xe){return Ae(xe)}}function W(Be){return ie(Be.value)?{required:!0}:null}function Y(Be){return!0===Be.value?null:{required:!0}}function Pe(Be){if(!Be)return Fe;let xe,Ee;return"string"==typeof Be?(Ee="","^"!==Be.charAt(0)&&(Ee+="^"),Ee+=Be,"$"!==Be.charAt(Be.length-1)&&(Ee+="$"),xe=new RegExp(Ee)):(Ee=Be.toString(),xe=Be),ut=>{if(ie(ut.value))return null;const Zt=ut.value;return xe.test(Zt)?null:{pattern:{requiredPattern:Ee,actualValue:Zt}}}}function Fe(Be){return null}function ze(Be){return null!=Be}function ae(Be){const xe=(0,e.QGY)(Be)?(0,_.D)(Be):Be;return(0,e.CqO)(xe),xe}function Ue(Be){let xe={};return Be.forEach(Ee=>{xe=null!=Ee?Object.assign(Object.assign({},xe),Ee):xe}),0===Object.keys(xe).length?null:xe}function ve(Be,xe){return xe.map(Ee=>Ee(Be))}function z(Be){return Be.map(xe=>function He(Be){return!Be.validate}(xe)?xe:Ee=>xe.validate(Ee))}function I(Be){if(!Be)return null;const xe=Be.filter(ze);return 0==xe.length?null:function(Ee){return Ue(ve(Ee,xe))}}function me(Be){return null!=Be?I(z(Be)):null}function Ae(Be){if(!Be)return null;const xe=Be.filter(ze);return 0==xe.length?null:function(Ee){const ut=ve(Ee,xe).map(ae);return(0,w.D)(ut).pipe((0,g.U)(Ue))}}function Me(Be){return null!=Be?Ae(z(Be)):null}function pe(Be,xe){return null===Be?[xe]:Array.isArray(Be)?[...Be,xe]:[Be,xe]}function we(Be){return Be._rawValidators}function $e(Be){return Be._rawAsyncValidators}function Je(Be){return Be?Array.isArray(Be)?Be:[Be]:[]}function nt(Be,xe){return Array.isArray(Be)?Be.includes(xe):Be===xe}function ke(Be,xe){const Ee=Je(xe);return Je(Be).forEach(Zt=>{nt(Ee,Zt)||Ee.push(Zt)}),Ee}function H(Be,xe){return Je(xe).filter(Ee=>!nt(Be,Ee))}class he{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(xe){this._rawValidators=xe||[],this._composedValidatorFn=me(this._rawValidators)}_setAsyncValidators(xe){this._rawAsyncValidators=xe||[],this._composedAsyncValidatorFn=Me(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(xe){this._onDestroyCallbacks.push(xe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(xe=>xe()),this._onDestroyCallbacks=[]}reset(xe){this.control&&this.control.reset(xe)}hasError(xe,Ee){return!!this.control&&this.control.hasError(xe,Ee)}getError(xe,Ee){return this.control?this.control.getError(xe,Ee):null}}class P extends he{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class R extends he{get formDirective(){return null}get path(){return null}}class V{constructor(xe){this._cd=xe}is(xe){var Ee,ut,Zt;return"submitted"===xe?!!(null===(Ee=this._cd)||void 0===Ee?void 0:Ee.submitted):!!(null===(Zt=null===(ut=this._cd)||void 0===ut?void 0:ut.control)||void 0===Zt?void 0:Zt[xe])}}let je=(()=>{class Be extends V{constructor(Ee){super(Ee)}}return Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(P,2))},Be.\u0275dir=e.lG2({type:Be,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ee,ut){2&Ee&&e.ekj("ng-untouched",ut.is("untouched"))("ng-touched",ut.is("touched"))("ng-pristine",ut.is("pristine"))("ng-dirty",ut.is("dirty"))("ng-valid",ut.is("valid"))("ng-invalid",ut.is("invalid"))("ng-pending",ut.is("pending"))},features:[e.qOj]}),Be})(),Ye=(()=>{class Be extends V{constructor(Ee){super(Ee)}}return Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(R,10))},Be.\u0275dir=e.lG2({type:Be,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ee,ut){2&Ee&&e.ekj("ng-untouched",ut.is("untouched"))("ng-touched",ut.is("touched"))("ng-pristine",ut.is("pristine"))("ng-dirty",ut.is("dirty"))("ng-valid",ut.is("valid"))("ng-invalid",ut.is("invalid"))("ng-pending",ut.is("pending"))("ng-submitted",ut.is("submitted"))},features:[e.qOj]}),Be})();function Ht(Be,xe){return[...xe.path,Be]}function lt(Be,xe){Te(Be,xe),xe.valueAccessor.writeValue(Be.value),function j(Be,xe){xe.valueAccessor.registerOnChange(Ee=>{Be._pendingValue=Ee,Be._pendingChange=!0,Be._pendingDirty=!0,"change"===Be.updateOn&&te(Be,xe)})}(Be,xe),function oe(Be,xe){const Ee=(ut,Zt)=>{xe.valueAccessor.writeValue(ut),Zt&&xe.viewToModelUpdate(ut)};Be.registerOnChange(Ee),xe._registerOnDestroy(()=>{Be._unregisterOnChange(Ee)})}(Be,xe),function N(Be,xe){xe.valueAccessor.registerOnTouched(()=>{Be._pendingTouched=!0,"blur"===Be.updateOn&&Be._pendingChange&&te(Be,xe),"submit"!==Be.updateOn&&Be.markAsTouched()})}(Be,xe),function Lt(Be,xe){if(xe.valueAccessor.setDisabledState){const Ee=ut=>{xe.valueAccessor.setDisabledState(ut)};Be.registerOnDisabledChange(Ee),xe._registerOnDestroy(()=>{Be._unregisterOnDisabledChange(Ee)})}}(Be,xe)}function Ut(Be,xe,Ee=!0){const ut=()=>{};xe.valueAccessor&&(xe.valueAccessor.registerOnChange(ut),xe.valueAccessor.registerOnTouched(ut)),Ge(Be,xe),Be&&(xe._invokeOnDestroyCallbacks(),Be._registerOnCollectionChange(()=>{}))}function mt(Be,xe){Be.forEach(Ee=>{Ee.registerOnValidatorChange&&Ee.registerOnValidatorChange(xe)})}function Te(Be,xe){const Ee=we(Be);null!==xe.validator?Be.setValidators(pe(Ee,xe.validator)):"function"==typeof Ee&&Be.setValidators([Ee]);const ut=$e(Be);null!==xe.asyncValidator?Be.setAsyncValidators(pe(ut,xe.asyncValidator)):"function"==typeof ut&&Be.setAsyncValidators([ut]);const Zt=()=>Be.updateValueAndValidity();mt(xe._rawValidators,Zt),mt(xe._rawAsyncValidators,Zt)}function Ge(Be,xe){let Ee=!1;if(null!==Be){if(null!==xe.validator){const Zt=we(Be);if(Array.isArray(Zt)&&Zt.length>0){const hi=Zt.filter(ji=>ji!==xe.validator);hi.length!==Zt.length&&(Ee=!0,Be.setValidators(hi))}}if(null!==xe.asyncValidator){const Zt=$e(Be);if(Array.isArray(Zt)&&Zt.length>0){const hi=Zt.filter(ji=>ji!==xe.asyncValidator);hi.length!==Zt.length&&(Ee=!0,Be.setAsyncValidators(hi))}}}const ut=()=>{};return mt(xe._rawValidators,ut),mt(xe._rawAsyncValidators,ut),Ee}function te(Be,xe){Be._pendingDirty&&Be.markAsDirty(),Be.setValue(Be._pendingValue,{emitModelToViewChange:!1}),xe.viewToModelUpdate(Be._pendingValue),Be._pendingChange=!1}function Ie(Be,xe){Te(Be,xe)}function Yt(Be,xe){if(!Be.hasOwnProperty("model"))return!1;const Ee=Be.model;return!!Ee.isFirstChange()||!Object.is(xe,Ee.currentValue)}function Rt(Be,xe){Be._syncPendingControls(),xe.forEach(Ee=>{const ut=Ee.control;"submit"===ut.updateOn&&ut._pendingChange&&(Ee.viewToModelUpdate(ut._pendingValue),ut._pendingChange=!1)})}function Et(Be,xe){if(!xe)return null;let Ee,ut,Zt;return Array.isArray(xe),xe.forEach(hi=>{hi.constructor===J?Ee=hi:function It(Be){return Object.getPrototypeOf(Be.constructor)===E}(hi)?ut=hi:Zt=hi}),Zt||ut||Ee||null}function Bt(Be,xe){const Ee=Be.indexOf(xe);Ee>-1&&Be.splice(Ee,1)}const mi="VALID",bi="INVALID",yi="PENDING",Wi="DISABLED";function cn(Be){return(st(Be)?Be.validators:Be)||null}function Ki(Be){return Array.isArray(Be)?me(Be):Be||null}function Tn(Be,xe){return(st(xe)?xe.asyncValidators:Be)||null}function rn(Be){return Array.isArray(Be)?Me(Be):Be||null}function st(Be){return null!=Be&&!Array.isArray(Be)&&"object"==typeof Be}const St=Be=>Be instanceof Dt,ot=Be=>Be instanceof ri,Ke=Be=>Be instanceof ti;function vt(Be){return St(Be)?Be.value:Be.getRawValue()}function U(Be,xe){const Ee=ot(Be),ut=Be.controls;if(!(Ee?Object.keys(ut):ut).length)throw new e.vHH(1e3,"");if(!ut[xe])throw new e.vHH(1001,"")}function qe(Be,xe){ot(Be),Be._forEachChild((ut,Zt)=>{if(void 0===xe[Zt])throw new e.vHH(1002,"")})}class gt{constructor(xe,Ee){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=xe,this._rawAsyncValidators=Ee,this._composedValidatorFn=Ki(this._rawValidators),this._composedAsyncValidatorFn=rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(xe){this._rawValidators=this._composedValidatorFn=xe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(xe){this._rawAsyncValidators=this._composedAsyncValidatorFn=xe}get parent(){return this._parent}get valid(){return this.status===mi}get invalid(){return this.status===bi}get pending(){return this.status==yi}get disabled(){return this.status===Wi}get enabled(){return this.status!==Wi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(xe){this._rawValidators=xe,this._composedValidatorFn=Ki(xe)}setAsyncValidators(xe){this._rawAsyncValidators=xe,this._composedAsyncValidatorFn=rn(xe)}addValidators(xe){this.setValidators(ke(xe,this._rawValidators))}addAsyncValidators(xe){this.setAsyncValidators(ke(xe,this._rawAsyncValidators))}removeValidators(xe){this.setValidators(H(xe,this._rawValidators))}removeAsyncValidators(xe){this.setAsyncValidators(H(xe,this._rawAsyncValidators))}hasValidator(xe){return nt(this._rawValidators,xe)}hasAsyncValidator(xe){return nt(this._rawAsyncValidators,xe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(xe={}){this.touched=!0,this._parent&&!xe.onlySelf&&this._parent.markAsTouched(xe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(xe=>xe.markAllAsTouched())}markAsUntouched(xe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ee=>{Ee.markAsUntouched({onlySelf:!0})}),this._parent&&!xe.onlySelf&&this._parent._updateTouched(xe)}markAsDirty(xe={}){this.pristine=!1,this._parent&&!xe.onlySelf&&this._parent.markAsDirty(xe)}markAsPristine(xe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ee=>{Ee.markAsPristine({onlySelf:!0})}),this._parent&&!xe.onlySelf&&this._parent._updatePristine(xe)}markAsPending(xe={}){this.status=yi,!1!==xe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!xe.onlySelf&&this._parent.markAsPending(xe)}disable(xe={}){const Ee=this._parentMarkedDirty(xe.onlySelf);this.status=Wi,this.errors=null,this._forEachChild(ut=>{ut.disable(Object.assign(Object.assign({},xe),{onlySelf:!0}))}),this._updateValue(),!1!==xe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},xe),{skipPristineCheck:Ee})),this._onDisabledChange.forEach(ut=>ut(!0))}enable(xe={}){const Ee=this._parentMarkedDirty(xe.onlySelf);this.status=mi,this._forEachChild(ut=>{ut.enable(Object.assign(Object.assign({},xe),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:xe.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},xe),{skipPristineCheck:Ee})),this._onDisabledChange.forEach(ut=>ut(!1))}_updateAncestors(xe){this._parent&&!xe.onlySelf&&(this._parent.updateValueAndValidity(xe),xe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(xe){this._parent=xe}updateValueAndValidity(xe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mi||this.status===yi)&&this._runAsyncValidator(xe.emitEvent)),!1!==xe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!xe.onlySelf&&this._parent.updateValueAndValidity(xe)}_updateTreeValidity(xe={emitEvent:!0}){this._forEachChild(Ee=>Ee._updateTreeValidity(xe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:xe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wi:mi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(xe){if(this.asyncValidator){this.status=yi,this._hasOwnPendingAsyncValidator=!0;const Ee=ae(this.asyncValidator(this));this._asyncValidationSubscription=Ee.subscribe(ut=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ut,{emitEvent:xe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(xe,Ee={}){this.errors=xe,this._updateControlsErrors(!1!==Ee.emitEvent)}get(xe){return function gn(Be,xe,Ee){if(null==xe||(Array.isArray(xe)||(xe=xe.split(Ee)),Array.isArray(xe)&&0===xe.length))return null;let ut=Be;return xe.forEach(Zt=>{ut=ot(ut)?ut.controls.hasOwnProperty(Zt)?ut.controls[Zt]:null:Ke(ut)&&ut.at(Zt)||null}),ut}(this,xe,".")}getError(xe,Ee){const ut=Ee?this.get(Ee):this;return ut&&ut.errors?ut.errors[xe]:null}hasError(xe,Ee){return!!this.getError(xe,Ee)}get root(){let xe=this;for(;xe._parent;)xe=xe._parent;return xe}_updateControlsErrors(xe){this.status=this._calculateStatus(),xe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(xe)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Wi:this.errors?bi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yi)?yi:this._anyControlsHaveStatus(bi)?bi:mi}_anyControlsHaveStatus(xe){return this._anyControls(Ee=>Ee.status===xe)}_anyControlsDirty(){return this._anyControls(xe=>xe.dirty)}_anyControlsTouched(){return this._anyControls(xe=>xe.touched)}_updatePristine(xe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!xe.onlySelf&&this._parent._updatePristine(xe)}_updateTouched(xe={}){this.touched=this._anyControlsTouched(),this._parent&&!xe.onlySelf&&this._parent._updateTouched(xe)}_isBoxedValue(xe){return"object"==typeof xe&&null!==xe&&2===Object.keys(xe).length&&"value"in xe&&"disabled"in xe}_registerOnCollectionChange(xe){this._onCollectionChange=xe}_setUpdateStrategy(xe){st(xe)&&null!=xe.updateOn&&(this._updateOn=xe.updateOn)}_parentMarkedDirty(xe){return!xe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Dt extends gt{constructor(xe=null,Ee,ut){super(cn(Ee),Tn(ut,Ee)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(xe),this._setUpdateStrategy(Ee),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(Ee)&&Ee.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(xe)?xe.value:xe)}setValue(xe,Ee={}){this.value=this._pendingValue=xe,this._onChange.length&&!1!==Ee.emitModelToViewChange&&this._onChange.forEach(ut=>ut(this.value,!1!==Ee.emitViewToModelChange)),this.updateValueAndValidity(Ee)}patchValue(xe,Ee={}){this.setValue(xe,Ee)}reset(xe=this.defaultValue,Ee={}){this._applyFormState(xe),this.markAsPristine(Ee),this.markAsUntouched(Ee),this.setValue(this.value,Ee),this._pendingChange=!1}_updateValue(){}_anyControls(xe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(xe){this._onChange.push(xe)}_unregisterOnChange(xe){Bt(this._onChange,xe)}registerOnDisabledChange(xe){this._onDisabledChange.push(xe)}_unregisterOnDisabledChange(xe){Bt(this._onDisabledChange,xe)}_forEachChild(xe){}_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(xe){this._isBoxedValue(xe)?(this.value=this._pendingValue=xe.value,xe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=xe}}class ri extends gt{constructor(xe,Ee,ut){super(cn(Ee),Tn(ut,Ee)),this.controls=xe,this._initObservables(),this._setUpdateStrategy(Ee),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(xe,Ee){return this.controls[xe]?this.controls[xe]:(this.controls[xe]=Ee,Ee.setParent(this),Ee._registerOnCollectionChange(this._onCollectionChange),Ee)}addControl(xe,Ee,ut={}){this.registerControl(xe,Ee),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}removeControl(xe,Ee={}){this.controls[xe]&&this.controls[xe]._registerOnCollectionChange(()=>{}),delete this.controls[xe],this.updateValueAndValidity({emitEvent:Ee.emitEvent}),this._onCollectionChange()}setControl(xe,Ee,ut={}){this.controls[xe]&&this.controls[xe]._registerOnCollectionChange(()=>{}),delete this.controls[xe],Ee&&this.registerControl(xe,Ee),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}contains(xe){return this.controls.hasOwnProperty(xe)&&this.controls[xe].enabled}setValue(xe,Ee={}){qe(this,xe),Object.keys(xe).forEach(ut=>{U(this,ut),this.controls[ut].setValue(xe[ut],{onlySelf:!0,emitEvent:Ee.emitEvent})}),this.updateValueAndValidity(Ee)}patchValue(xe,Ee={}){null!=xe&&(Object.keys(xe).forEach(ut=>{this.controls[ut]&&this.controls[ut].patchValue(xe[ut],{onlySelf:!0,emitEvent:Ee.emitEvent})}),this.updateValueAndValidity(Ee))}reset(xe={},Ee={}){this._forEachChild((ut,Zt)=>{ut.reset(xe[Zt],{onlySelf:!0,emitEvent:Ee.emitEvent})}),this._updatePristine(Ee),this._updateTouched(Ee),this.updateValueAndValidity(Ee)}getRawValue(){return this._reduceChildren({},(xe,Ee,ut)=>(xe[ut]=vt(Ee),xe))}_syncPendingControls(){let xe=this._reduceChildren(!1,(Ee,ut)=>!!ut._syncPendingControls()||Ee);return xe&&this.updateValueAndValidity({onlySelf:!0}),xe}_forEachChild(xe){Object.keys(this.controls).forEach(Ee=>{const ut=this.controls[Ee];ut&&xe(ut,Ee)})}_setUpControls(){this._forEachChild(xe=>{xe.setParent(this),xe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(xe){for(const Ee of Object.keys(this.controls)){const ut=this.controls[Ee];if(this.contains(Ee)&&xe(ut))return!0}return!1}_reduceValue(){return this._reduceChildren({},(xe,Ee,ut)=>((Ee.enabled||this.disabled)&&(xe[ut]=Ee.value),xe))}_reduceChildren(xe,Ee){let ut=xe;return this._forEachChild((Zt,hi)=>{ut=Ee(ut,Zt,hi)}),ut}_allControlsDisabled(){for(const xe of Object.keys(this.controls))if(this.controls[xe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class ti extends gt{constructor(xe,Ee,ut){super(cn(Ee),Tn(ut,Ee)),this.controls=xe,this._initObservables(),this._setUpdateStrategy(Ee),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(xe){return this.controls[xe]}push(xe,Ee={}){this.controls.push(xe),this._registerControl(xe),this.updateValueAndValidity({emitEvent:Ee.emitEvent}),this._onCollectionChange()}insert(xe,Ee,ut={}){this.controls.splice(xe,0,Ee),this._registerControl(Ee),this.updateValueAndValidity({emitEvent:ut.emitEvent})}removeAt(xe,Ee={}){this.controls[xe]&&this.controls[xe]._registerOnCollectionChange(()=>{}),this.controls.splice(xe,1),this.updateValueAndValidity({emitEvent:Ee.emitEvent})}setControl(xe,Ee,ut={}){this.controls[xe]&&this.controls[xe]._registerOnCollectionChange(()=>{}),this.controls.splice(xe,1),Ee&&(this.controls.splice(xe,0,Ee),this._registerControl(Ee)),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(xe,Ee={}){qe(this,xe),xe.forEach((ut,Zt)=>{U(this,Zt),this.at(Zt).setValue(ut,{onlySelf:!0,emitEvent:Ee.emitEvent})}),this.updateValueAndValidity(Ee)}patchValue(xe,Ee={}){null!=xe&&(xe.forEach((ut,Zt)=>{this.at(Zt)&&this.at(Zt).patchValue(ut,{onlySelf:!0,emitEvent:Ee.emitEvent})}),this.updateValueAndValidity(Ee))}reset(xe=[],Ee={}){this._forEachChild((ut,Zt)=>{ut.reset(xe[Zt],{onlySelf:!0,emitEvent:Ee.emitEvent})}),this._updatePristine(Ee),this._updateTouched(Ee),this.updateValueAndValidity(Ee)}getRawValue(){return this.controls.map(xe=>vt(xe))}clear(xe={}){this.controls.length<1||(this._forEachChild(Ee=>Ee._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:xe.emitEvent}))}_syncPendingControls(){let xe=this.controls.reduce((Ee,ut)=>!!ut._syncPendingControls()||Ee,!1);return xe&&this.updateValueAndValidity({onlySelf:!0}),xe}_forEachChild(xe){this.controls.forEach((Ee,ut)=>{xe(Ee,ut)})}_updateValue(){this.value=this.controls.filter(xe=>xe.enabled||this.disabled).map(xe=>xe.value)}_anyControls(xe){return this.controls.some(Ee=>Ee.enabled&&xe(Ee))}_setUpControls(){this._forEachChild(xe=>this._registerControl(xe))}_allControlsDisabled(){for(const xe of this.controls)if(xe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(xe){xe.setParent(this),xe._registerOnCollectionChange(this._onCollectionChange)}}const Di={provide:R,useExisting:(0,e.Gpc)(()=>$i)},wi=(()=>Promise.resolve(null))();let $i=(()=>{class Be extends R{constructor(Ee,ut){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new ri({},me(Ee),Me(ut))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ee){wi.then(()=>{const ut=this._findContainer(Ee.path);Ee.control=ut.registerControl(Ee.name,Ee.control),lt(Ee.control,Ee),Ee.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ee)})}getControl(Ee){return this.form.get(Ee.path)}removeControl(Ee){wi.then(()=>{const ut=this._findContainer(Ee.path);ut&&ut.removeControl(Ee.name),this._directives.delete(Ee)})}addFormGroup(Ee){wi.then(()=>{const ut=this._findContainer(Ee.path),Zt=new ri({});Ie(Zt,Ee),ut.registerControl(Ee.name,Zt),Zt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ee){wi.then(()=>{const ut=this._findContainer(Ee.path);ut&&ut.removeControl(Ee.name)})}getFormGroup(Ee){return this.form.get(Ee.path)}updateModel(Ee,ut){wi.then(()=>{this.form.get(Ee.path).setValue(ut)})}setValue(Ee){this.control.setValue(Ee)}onSubmit(Ee){return this.submitted=!0,Rt(this.form,this._directives),this.ngSubmit.emit(Ee),!1}onReset(){this.resetForm()}resetForm(Ee){this.form.reset(Ee),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ee){return Ee.pop(),Ee.length?this.form.get(Ee):this.form}}return Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(X,10),e.Y36(Ne,10))},Be.\u0275dir=e.lG2({type:Be,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ee,ut){1&Ee&&e.NdJ("submit",function(hi){return ut.onSubmit(hi)})("reset",function(){return ut.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Di]),e.qOj]}),Be})();const Xi={provide:P,useExisting:(0,e.Gpc)(()=>an)},en=(()=>Promise.resolve(null))();let an=(()=>{class Be extends P{constructor(Ee,ut,Zt,hi,ji){super(),this._changeDetectorRef=ji,this.control=new Dt,this._registered=!1,this.update=new e.vpe,this._parent=Ee,this._setValidators(ut),this._setAsyncValidators(Zt),this.valueAccessor=Et(0,hi)}ngOnChanges(Ee){if(this._checkForErrors(),!this._registered||"name"in Ee){if(this._registered&&(this._checkName(),this.formDirective)){const ut=Ee.name.previousValue;this.formDirective.removeControl({name:ut,path:this._getPath(ut)})}this._setUpControl()}"isDisabled"in Ee&&this._updateDisabled(Ee),Yt(Ee,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(Ee){this.viewModel=Ee,this.update.emit(Ee)}_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(){lt(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(Ee){en.then(()=>{var ut;this.control.setValue(Ee,{emitViewToModelChange:!1}),null===(ut=this._changeDetectorRef)||void 0===ut||ut.markForCheck()})}_updateDisabled(Ee){const ut=Ee.isDisabled.currentValue,Zt=""===ut||ut&&"false"!==ut;en.then(()=>{var hi;Zt&&!this.control.disabled?this.control.disable():!Zt&&this.control.disabled&&this.control.enable(),null===(hi=this._changeDetectorRef)||void 0===hi||hi.markForCheck()})}_getPath(Ee){return this._parent?Ht(Ee,this._parent):[Ee]}}return Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(R,9),e.Y36(X,10),e.Y36(Ne,10),e.Y36(C,10),e.Y36(e.sBO,8))},Be.\u0275dir=e.lG2({type:Be,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([Xi]),e.qOj,e.TTD]}),Be})(),dn=(()=>{class Be{}return Be.\u0275fac=function(Ee){return new(Ee||Be)},Be.\u0275dir=e.lG2({type:Be,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Be})();const wn={provide:C,useExisting:(0,e.Gpc)(()=>xn),multi:!0};let xn=(()=>{class Be extends E{writeValue(Ee){this.setProperty("value",null==Ee?"":Ee)}registerOnChange(Ee){this.onChange=ut=>{Ee(""==ut?null:parseFloat(ut))}}}return Be.\u0275fac=function(){let xe;return function(ut){return(xe||(xe=e.n5z(Be)))(ut||Be)}}(),Be.\u0275dir=e.lG2({type:Be,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ee,ut){1&Ee&&e.NdJ("input",function(hi){return ut.onChange(hi.target.value)})("blur",function(){return ut.onTouched()})},features:[e._Bn([wn]),e.qOj]}),Be})(),Nn=(()=>{class Be{}return Be.\u0275fac=function(Ee){return new(Ee||Be)},Be.\u0275mod=e.oAB({type:Be}),Be.\u0275inj=e.cJS({}),Be})();const Ze=new e.OlP("NgModelWithFormControlWarning"),Ot={provide:P,useExisting:(0,e.Gpc)(()=>Qe)};let Qe=(()=>{class Be extends P{constructor(Ee,ut,Zt,hi){super(),this._ngModelWarningConfig=hi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Ee),this._setAsyncValidators(ut),this.valueAccessor=Et(0,Zt)}set isDisabled(Ee){}ngOnChanges(Ee){if(this._isControlChanged(Ee)){const ut=Ee.form.previousValue;ut&&Ut(ut,this,!1),lt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Yt(Ee,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ut(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ee){this.viewModel=Ee,this.update.emit(Ee)}_isControlChanged(Ee){return Ee.hasOwnProperty("form")}}return Be._ngModelWarningSentOnce=!1,Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(X,10),e.Y36(Ne,10),e.Y36(C,10),e.Y36(Ze,8))},Be.\u0275dir=e.lG2({type:Be,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Ot]),e.qOj,e.TTD]}),Be})();const Tt={provide:R,useExisting:(0,e.Gpc)(()=>jt)};let jt=(()=>{class Be extends R{constructor(Ee,ut){super(),this.validators=Ee,this.asyncValidators=ut,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Ee),this._setAsyncValidators(ut)}ngOnChanges(Ee){this._checkFormPresent(),Ee.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ge(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ee){const ut=this.form.get(Ee.path);return lt(ut,Ee),ut.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ee),ut}getControl(Ee){return this.form.get(Ee.path)}removeControl(Ee){Ut(Ee.control||null,Ee,!1),Bt(this.directives,Ee)}addFormGroup(Ee){this._setUpFormContainer(Ee)}removeFormGroup(Ee){this._cleanUpFormContainer(Ee)}getFormGroup(Ee){return this.form.get(Ee.path)}addFormArray(Ee){this._setUpFormContainer(Ee)}removeFormArray(Ee){this._cleanUpFormContainer(Ee)}getFormArray(Ee){return this.form.get(Ee.path)}updateModel(Ee,ut){this.form.get(Ee.path).setValue(ut)}onSubmit(Ee){return this.submitted=!0,Rt(this.form,this.directives),this.ngSubmit.emit(Ee),!1}onReset(){this.resetForm()}resetForm(Ee){this.form.reset(Ee),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ee=>{const ut=Ee.control,Zt=this.form.get(Ee.path);ut!==Zt&&(Ut(ut||null,Ee),St(Zt)&&(lt(Zt,Ee),Ee.control=Zt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ee){const ut=this.form.get(Ee.path);Ie(ut,Ee),ut.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ee){if(this.form){const ut=this.form.get(Ee.path);ut&&function ct(Be,xe){return Ge(Be,xe)}(ut,Ee)&&ut.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Te(this.form,this),this._oldForm&&Ge(this._oldForm,this)}_checkFormPresent(){}}return Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(X,10),e.Y36(Ne,10))},Be.\u0275dir=e.lG2({type:Be,selectors:[["","formGroup",""]],hostBindings:function(Ee,ut){1&Ee&&e.NdJ("submit",function(hi){return ut.onSubmit(hi)})("reset",function(){return ut.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Tt]),e.qOj,e.TTD]}),Be})();const cr={provide:P,useExisting:(0,e.Gpc)(()=>Vn)};let Vn=(()=>{class Be extends P{constructor(Ee,ut,Zt,hi,ji){super(),this._ngModelWarningConfig=ji,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Ee,this._setValidators(ut),this._setAsyncValidators(Zt),this.valueAccessor=Et(0,hi)}set isDisabled(Ee){}ngOnChanges(Ee){this._added||this._setUpControl(),Yt(Ee,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ee){this.viewModel=Ee,this.update.emit(Ee)}get path(){return Ht(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return Be._ngModelWarningSentOnce=!1,Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(R,13),e.Y36(X,10),e.Y36(Ne,10),e.Y36(C,10),e.Y36(Ze,8))},Be.\u0275dir=e.lG2({type:Be,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([cr]),e.qOj,e.TTD]}),Be})();const dr={provide:C,useExisting:(0,e.Gpc)(()=>rr),multi:!0};function Qn(Be,xe){return null==Be?`${xe}`:(xe&&"object"==typeof xe&&(xe="Object"),`${Be}: ${xe}`.slice(0,50))}let rr=(()=>{class Be extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ee){this._compareWith=Ee}writeValue(Ee){this.value=Ee;const Zt=Qn(this._getOptionId(Ee),Ee);this.setProperty("value",Zt)}registerOnChange(Ee){this.onChange=ut=>{this.value=this._getOptionValue(ut),Ee(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Ee){for(const ut of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ut),Ee))return ut;return null}_getOptionValue(Ee){const ut=function Lr(Be){return Be.split(":")[0]}(Ee);return this._optionMap.has(ut)?this._optionMap.get(ut):Ee}}return Be.\u0275fac=function(){let xe;return function(ut){return(xe||(xe=e.n5z(Be)))(ut||Be)}}(),Be.\u0275dir=e.lG2({type:Be,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Ee,ut){1&Ee&&e.NdJ("change",function(hi){return ut.onChange(hi.target.value)})("blur",function(){return ut.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([dr]),e.qOj]}),Be})(),Zn=(()=>{class Be{constructor(Ee,ut,Zt){this._element=Ee,this._renderer=ut,this._select=Zt,this._select&&(this.id=this._select._registerOption())}set ngValue(Ee){null!=this._select&&(this._select._optionMap.set(this.id,Ee),this._setElementValue(Qn(this.id,Ee)),this._select.writeValue(this._select.value))}set value(Ee){this._setElementValue(Ee),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Ee){this._renderer.setProperty(this._element.nativeElement,"value",Ee)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(rr,9))},Be.\u0275dir=e.lG2({type:Be,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Be})();const En={provide:C,useExisting:(0,e.Gpc)(()=>sr),multi:!0};function ur(Be,xe){return null==Be?`${xe}`:("string"==typeof xe&&(xe=`'${xe}'`),xe&&"object"==typeof xe&&(xe="Object"),`${Be}: ${xe}`.slice(0,50))}let sr=(()=>{class Be extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ee){this._compareWith=Ee}writeValue(Ee){let ut;if(this.value=Ee,Array.isArray(Ee)){const Zt=Ee.map(hi=>this._getOptionId(hi));ut=(hi,ji)=>{hi._setSelected(Zt.indexOf(ji.toString())>-1)}}else ut=(Zt,hi)=>{Zt._setSelected(!1)};this._optionMap.forEach(ut)}registerOnChange(Ee){this.onChange=ut=>{const Zt=[],hi=ut.selectedOptions;if(void 0!==hi){const ji=hi;for(let tn=0;tn{class Be{constructor(Ee,ut,Zt){this._element=Ee,this._renderer=ut,this._select=Zt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Ee){null!=this._select&&(this._value=Ee,this._setElementValue(ur(this.id,Ee)),this._select.writeValue(this._select.value))}set value(Ee){this._select?(this._value=Ee,this._setElementValue(ur(this.id,Ee)),this._select.writeValue(this._select.value)):this._setElementValue(Ee)}_setElementValue(Ee){this._renderer.setProperty(this._element.nativeElement,"value",Ee)}_setSelected(Ee){this._renderer.setProperty(this._element.nativeElement,"selected",Ee)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Be.\u0275fac=function(Ee){return new(Ee||Be)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(sr,9))},Be.\u0275dir=e.lG2({type:Be,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Be})(),In=(()=>{class Be{constructor(){this._validator=Fe}ngOnChanges(Ee){if(this.inputName in Ee){const ut=this.normalizeInput(Ee[this.inputName].currentValue);this._enabled=this.enabled(ut),this._validator=this._enabled?this.createValidator(ut):Fe,this._onChange&&this._onChange()}}validate(Ee){return this._validator(Ee)}registerOnValidatorChange(Ee){this._onChange=Ee}enabled(Ee){return null!=Ee}}return Be.\u0275fac=function(Ee){return new(Ee||Be)},Be.\u0275dir=e.lG2({type:Be,features:[e.TTD]}),Be})();const zn={provide:X,useExisting:(0,e.Gpc)(()=>ft),multi:!0},lr={provide:X,useExisting:(0,e.Gpc)(()=>F),multi:!0};let ft=(()=>{class Be extends In{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ee=>function hr(Be){return null!=Be&&!1!==Be&&"false"!=`${Be}`}(Ee),this.createValidator=Ee=>W}enabled(Ee){return Ee}}return Be.\u0275fac=function(){let xe;return function(ut){return(xe||(xe=e.n5z(Be)))(ut||Be)}}(),Be.\u0275dir=e.lG2({type:Be,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ee,ut){2&Ee&&e.uIk("required",ut._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([zn]),e.qOj]}),Be})(),F=(()=>{class Be extends ft{constructor(){super(...arguments),this.createValidator=Ee=>Y}}return Be.\u0275fac=function(){let xe;return function(ut){return(xe||(xe=e.n5z(Be)))(ut||Be)}}(),Be.\u0275dir=e.lG2({type:Be,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ee,ut){2&Ee&&e.uIk("required",ut._enabled?"":null)},features:[e._Bn([lr]),e.qOj]}),Be})();const de={provide:X,useExisting:(0,e.Gpc)(()=>tt),multi:!0};let tt=(()=>{class Be extends In{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Ee=>Ee,this.createValidator=Ee=>Pe(Ee)}}return Be.\u0275fac=function(){let xe;return function(ut){return(xe||(xe=e.n5z(Be)))(ut||Be)}}(),Be.\u0275dir=e.lG2({type:Be,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Ee,ut){2&Ee&&e.uIk("pattern",ut._enabled?ut.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([de]),e.qOj]}),Be})(),ii=(()=>{class Be{}return Be.\u0275fac=function(Ee){return new(Ee||Be)},Be.\u0275mod=e.oAB({type:Be}),Be.\u0275inj=e.cJS({imports:[[Nn]]}),Be})(),di=(()=>{class Be{}return Be.\u0275fac=function(Ee){return new(Ee||Be)},Be.\u0275mod=e.oAB({type:Be}),Be.\u0275inj=e.cJS({imports:[ii]}),Be})(),ui=(()=>{class Be{static withConfig(Ee){return{ngModule:Be,providers:[{provide:Ze,useValue:Ee.warnOnNgModelWithFormControl}]}}}return Be.\u0275fac=function(Ee){return new(Ee||Be)},Be.\u0275mod=e.oAB({type:Be}),Be.\u0275inj=e.cJS({imports:[ii]}),Be})(),Ti=(()=>{class Be{group(Ee,ut=null){const Zt=this._reduceControls(Ee);let tn,hi=null,ji=null;return null!=ut&&(function _i(Be){return void 0!==Be.asyncValidators||void 0!==Be.validators||void 0!==Be.updateOn}(ut)?(hi=null!=ut.validators?ut.validators:null,ji=null!=ut.asyncValidators?ut.asyncValidators:null,tn=null!=ut.updateOn?ut.updateOn:void 0):(hi=null!=ut.validator?ut.validator:null,ji=null!=ut.asyncValidator?ut.asyncValidator:null)),new ri(Zt,{asyncValidators:ji,updateOn:tn,validators:hi})}control(Ee,ut,Zt){return new Dt(Ee,ut,Zt)}array(Ee,ut,Zt){const hi=Ee.map(ji=>this._createControl(ji));return new ti(hi,ut,Zt)}_reduceControls(Ee){const ut={};return Object.keys(Ee).forEach(Zt=>{ut[Zt]=this._createControl(Ee[Zt])}),ut}_createControl(Ee){return St(Ee)||ot(Ee)||Ke(Ee)?Ee:Array.isArray(Ee)?this.control(Ee[0],Ee.length>1?Ee[1]:null,Ee.length>2?Ee[2]:null):this.control(Ee)}}return Be.\u0275fac=function(Ee){return new(Ee||Be)},Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:ui}),Be})()},91079:(Xe,_e,p)=>{"use strict";p.d(_e,{XC:()=>I,Bb:()=>H,ZL:()=>Je});var e=p(15664),b=p(63191),_=p(5e3),w=p(90508),g=p(42654),A=p(8929),E=p(88514),C=p(36787),O=p(21086),S=p(23753),m=p(70925),B=p(69808),L=p(92845),J=p(53435),ie=p(91159),ge=p(47429),X=p(93075),Ne=p(67322),ue=p(1059),Oe=p(87545),T=p(72986),Z=p(92198),W=p(24850),Y=p(22868),ee=p(40943),ce=p(50226);const le=["panel"];function Pe(he,P){if(1&he&&(_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA()),2&he){const R=P.id,V=_.oxw();_.Q6J("id",V.id)("ngClass",V._classList),_.uIk("aria-label",V.ariaLabel||null)("aria-labelledby",V._getPanelAriaLabelledby(R))}}const Fe=["*"];let ze=0;class ae{constructor(P,R){this.source=P,this.option=R}}const Ue=(0,w.Kr)(class{}),ve=new _.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function He(){return{autoActiveFirstOption:!1}}});let z=(()=>{class he extends Ue{constructor(R,V,Q,Se){super(),this._changeDetectorRef=R,this._elementRef=V,this._activeOptionChanges=g.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new _.vpe,this.opened=new _.vpe,this.closed=new _.vpe,this.optionActivated=new _.vpe,this._classList={},this.id="mat-autocomplete-"+ze++,this.inertGroups=(null==Se?void 0:Se.SAFARI)||!1,this._autoActiveFirstOption=!!Q.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(R){this._autoActiveFirstOption=(0,b.Ig)(R)}set classList(R){this._classList=R&&R.length?(0,b.du)(R).reduce((V,Q)=>(V[Q]=!0,V),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(R=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[R]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(R){this.panel&&(this.panel.nativeElement.scrollTop=R)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(R){const V=new ae(this,R);this.optionSelected.emit(V)}_getPanelAriaLabelledby(R){return this.ariaLabel?null:this.ariaLabelledby?(R?R+" ":"")+this.ariaLabelledby:R}_setVisibilityClasses(R){R[this._visibleClass]=this.showPanel,R[this._hiddenClass]=!this.showPanel}}return he.\u0275fac=function(R){return new(R||he)(_.Y36(_.sBO),_.Y36(_.SBq),_.Y36(ve),_.Y36(m.t4))},he.\u0275dir=_.lG2({type:he,viewQuery:function(R,V){if(1&R&&(_.Gf(_.Rgc,7),_.Gf(le,5)),2&R){let Q;_.iGM(Q=_.CRH())&&(V.template=Q.first),_.iGM(Q=_.CRH())&&(V.panel=Q.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[_.qOj]}),he})(),I=(()=>{class he extends z{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return he.\u0275fac=function(){let P;return function(V){return(P||(P=_.n5z(he)))(V||he)}}(),he.\u0275cmp=_.Xpm({type:he,selectors:[["mat-autocomplete"]],contentQueries:function(R,V,Q){if(1&R&&(_.Suo(Q,w.K7,5),_.Suo(Q,w.ey,5)),2&R){let Se;_.iGM(Se=_.CRH())&&(V.optionGroups=Se),_.iGM(Se=_.CRH())&&(V.options=Se)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[_._Bn([{provide:w.HF,useExisting:he}]),_.qOj],ngContentSelectors:Fe,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(R,V){1&R&&(_.F$t(),_.YNc(0,Pe,3,4,"ng-template"))},directives:[B.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}\n"],encapsulation:2,changeDetection:0}),he})();const me=new _.OlP("mat-autocomplete-scroll-strategy"),Me={provide:me,deps:[L.aV],useFactory:function Ae(he){return()=>he.scrollStrategies.reposition()}},pe={provide:X.JU,useExisting:(0,_.Gpc)(()=>Je),multi:!0};let $e=(()=>{class he{constructor(R,V,Q,Se,je,Ye,ye,re,r,o,d){this._element=R,this._overlay=V,this._viewContainerRef=Q,this._zone=Se,this._changeDetectorRef=je,this._dir=ye,this._formField=re,this._document=r,this._viewportRuler=o,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=g.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new A.xQ,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,E.P)(()=>{const l=this.autocomplete?this.autocomplete.options:null;return l?l.changes.pipe((0,ue.O)(l),(0,Oe.w)(()=>(0,C.T)(...l.map(s=>s.onSelectionChange)))):this._zone.onStable.pipe((0,T.q)(1),(0,Oe.w)(()=>this.optionSelections))}),this._scrollStrategy=Ye}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(R){this._autocompleteDisabled=(0,b.Ig)(R)}ngAfterViewInit(){const R=this._getWindow();void 0!==R&&this._zone.runOutsideAngular(()=>R.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(R){R.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const R=this._getWindow();void 0!==R&&R.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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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,C.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Z.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Z.h)(()=>this._overlayAttached)):(0,O.of)()).pipe((0,W.U)(R=>R instanceof w.rN?R:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,C.T)((0,S.R)(this._document,"click"),(0,S.R)(this._document,"auxclick"),(0,S.R)(this._document,"touchend")).pipe((0,Z.h)(R=>{const V=(0,m.sA)(R),Q=this._formField?this._formField._elementRef.nativeElement:null,Se=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&V!==this._element.nativeElement&&(!Q||!Q.contains(V))&&(!Se||!Se.contains(V))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(V)}))}writeValue(R){Promise.resolve().then(()=>this._setTriggerValue(R))}registerOnChange(R){this._onChange=R}registerOnTouched(R){this._onTouched=R}setDisabledState(R){this._element.nativeElement.disabled=R}_handleKeydown(R){const V=R.keyCode;if(V===ie.hY&&!(0,ie.Vb)(R)&&R.preventDefault(),this.activeOption&&V===ie.K5&&this.panelOpen&&!(0,ie.Vb)(R))this.activeOption._selectViaInteraction(),this._resetActiveItem(),R.preventDefault();else if(this.autocomplete){const Q=this.autocomplete._keyManager.activeItem,Se=V===ie.LH||V===ie.JH;this.panelOpen||V===ie.Mf?this.autocomplete._keyManager.onKeydown(R):Se&&this._canOpen()&&this.openPanel(),(Se||this.autocomplete._keyManager.activeItem!==Q)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(R){let V=R.target,Q=V.value;"number"===V.type&&(Q=""==Q?null:parseFloat(Q)),this._previousValue!==Q&&(this._previousValue=Q,this._onChange(Q),this._canOpen()&&this._document.activeElement===R.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(R=!1){this._formField&&"auto"===this._formField.floatLabel&&(R?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const R=this._zone.onStable.pipe((0,T.q)(1)),V=this.autocomplete.options.changes.pipe((0,Y.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ee.g)(0));return(0,C.T)(R,V).pipe((0,Oe.w)(()=>{const Q=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),Q!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,T.q)(1)).subscribe(Q=>this._setValueAndClose(Q))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(R){const V=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(R):R,Q=null!=V?V:"";this._formField?this._formField._control.value=Q:this._element.nativeElement.value=Q,this._previousValue=Q}_setValueAndClose(R){const V=R&&R.source;V&&(this._clearPreviousSelectedOption(V),this._setTriggerValue(V.value),this._onChange(V.value),this.autocomplete._emitSelectEvent(V),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(R){this.autocomplete.options.forEach(V=>{V!==R&&V.selected&&V.deselect()})}_attachOverlay(){var R;let V=this._overlayRef;V?(this._positionStrategy.setOrigin(this._getConnectedElement()),V.updateSize({width:this._getPanelWidth()})):(this._portal=new ge.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(R=this._formField)||void 0===R?void 0:R.getLabelId()}),V=this._overlay.create(this._getOverlayConfig()),this._overlayRef=V,V.keydownEvents().subscribe(Se=>{(Se.keyCode===ie.hY&&!(0,ie.Vb)(Se)||Se.keyCode===ie.LH&&(0,ie.Vb)(Se,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Se.stopPropagation(),Se.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&V&&V.updateSize({width:this._getPanelWidth()})})),V&&!V.hasAttached()&&(V.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Q=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Q!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var R;return new L.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(R=this._defaults)||void 0===R?void 0:R.overlayPanelClass})}_getOverlayPosition(){const R=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(R),this._positionStrategy=R,R}_setStrategyPositions(R){const V=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Q=this._aboveClass,Se=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Q},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Q}];let je;je="above"===this.position?Se:"below"===this.position?V:[...V,...Se],R.withPositions(je)}_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 R=this.autocomplete;R.autoActiveFirstOption?R._keyManager.setFirstItemActive():R._keyManager.setActiveItem(-1)}_canOpen(){const R=this._element.nativeElement;return!R.readOnly&&!R.disabled&&!this._autocompleteDisabled}_getWindow(){var R;return(null===(R=this._document)||void 0===R?void 0:R.defaultView)||window}_scrollToOption(R){const V=this.autocomplete,Q=(0,w.CB)(R,V.options,V.optionGroups);if(0===R&&1===Q)V._setScrollTop(0);else if(V.panel){const Se=V.options.toArray()[R];if(Se){const je=Se._getHostElement(),Ye=(0,w.jH)(je.offsetTop,je.offsetHeight,V._getScrollTop(),V.panel.nativeElement.offsetHeight);V._setScrollTop(Ye)}}}}return he.\u0275fac=function(R){return new(R||he)(_.Y36(_.SBq),_.Y36(L.aV),_.Y36(_.s_b),_.Y36(_.R0b),_.Y36(_.sBO),_.Y36(me),_.Y36(ce.Is,8),_.Y36(Ne.G_,9),_.Y36(B.K0,8),_.Y36(J.rL),_.Y36(ve,8))},he.\u0275dir=_.lG2({type:he,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[_.TTD]}),he})(),Je=(()=>{class he extends $e{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return he.\u0275fac=function(){let P;return function(V){return(P||(P=_.n5z(he)))(V||he)}}(),he.\u0275dir=_.lG2({type:he,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(R,V){1&R&&_.NdJ("focusin",function(){return V._handleFocus()})("blur",function(){return V._onTouched()})("input",function(Se){return V._handleInput(Se)})("keydown",function(Se){return V._handleKeydown(Se)}),2&R&&_.uIk("autocomplete",V.autocompleteAttribute)("role",V.autocompleteDisabled?null:"combobox")("aria-autocomplete",V.autocompleteDisabled?null:"list")("aria-activedescendant",V.panelOpen&&V.activeOption?V.activeOption.id:null)("aria-expanded",V.autocompleteDisabled?null:V.panelOpen.toString())("aria-owns",V.autocompleteDisabled||!V.panelOpen||null==V.autocomplete?null:V.autocomplete.id)("aria-haspopup",!V.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[_._Bn([pe]),_.qOj]}),he})(),H=(()=>{class he{}return he.\u0275fac=function(R){return new(R||he)},he.\u0275mod=_.oAB({type:he}),he.\u0275inj=_.cJS({providers:[Me],imports:[[L.U8,w.Ng,w.BQ,B.ez],J.ZD,w.Ng,w.BQ]}),he})()},27544:(Xe,_e,p)=>{"use strict";p.d(_e,{k:()=>O,g:()=>S});var e=p(5e3),b=p(90508),_=p(15664),w=p(63191),g=p(76360);let A=0;const E=(0,b.Id)(class{}),C="mat-badge-content";let O=(()=>{class m extends E{constructor(L,J,ie,ge,X){super(),this._ngZone=L,this._elementRef=J,this._ariaDescriber=ie,this._renderer=ge,this._animationMode=X,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=A++,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,w.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,w.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"),J="mat-badge-active";return L.setAttribute("id",`mat-badge-content-${this._id}`),L.setAttribute("aria-hidden","true"),L.classList.add(C),"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(J)})}):L.classList.add(J),L}_updateRenderedContent(L){const J=`${null!=L?L:""}`.trim();this._isInitialized&&J&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=J),this._content=J}_updateHostAriaDescription(L){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),L&&this._ariaDescriber.describe(this._elementRef.nativeElement,L),this._description=L}_setColor(L){const J=this._elementRef.nativeElement.classList;J.remove(`mat-badge-${this._color}`),L&&J.add(`mat-badge-${L}`)}_clearExistingBadges(){const L=this._elementRef.nativeElement.querySelectorAll(`:scope > .${C}`);for(const J of Array.from(L))J!==this._badgeElement&&J.remove()}}return m.\u0275fac=function(L){return new(L||m)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(_.$s),e.Y36(e.Qsj),e.Y36(g.Qb,8))},m.\u0275dir=e.lG2({type:m,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(L,J){2&L&&e.ekj("mat-badge-overlap",J.overlap)("mat-badge-above",J.isAbove())("mat-badge-below",!J.isAbove())("mat-badge-before",!J.isAfter())("mat-badge-after",J.isAfter())("mat-badge-small","small"===J.size)("mat-badge-medium","medium"===J.size)("mat-badge-large","large"===J.size)("mat-badge-hidden",J.hidden||!J.content)("mat-badge-disabled",J.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]}),m})(),S=(()=>{class m{}return m.\u0275fac=function(L){return new(L||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[[_.rt,b.BQ],b.BQ]}),m})()},47423:(Xe,_e,p)=>{"use strict";p.d(_e,{lW:()=>m,ot:()=>L});var e=p(5e3),b=p(90508),_=p(76360),w=p(15664);const g=["mat-button",""],A=["*"],O=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],S=(0,b.pj)((0,b.Id)((0,b.Kr)(class{constructor(J){this._elementRef=J}})));let m=(()=>{class J extends S{constructor(ge,X,Ne){super(ge),this._focusMonitor=X,this._animationMode=Ne,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ue of O)this._hasHostAttributes(ue)&&this._getHostElement().classList.add(ue);ge.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(ge,X){ge?this._focusMonitor.focusVia(this._getHostElement(),ge,X):this._getHostElement().focus(X)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ge){return ge.some(X=>this._getHostElement().hasAttribute(X))}}return J.\u0275fac=function(ge){return new(ge||J)(e.Y36(e.SBq),e.Y36(w.tE),e.Y36(_.Qb,8))},J.\u0275cmp=e.Xpm({type:J,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(ge,X){if(1&ge&&e.Gf(b.wG,5),2&ge){let Ne;e.iGM(Ne=e.CRH())&&(X.ripple=Ne.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ge,X){2&ge&&(e.uIk("disabled",X.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===X._animationMode)("mat-button-disabled",X.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:g,ngContentSelectors:A,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(ge,X){1&ge&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&ge&&(e.xp6(2),e.ekj("mat-button-ripple-round",X.isRoundButton||X.isIconButton),e.Q6J("matRippleDisabled",X._isRippleDisabled())("matRippleCentered",X.isIconButton)("matRippleTrigger",X._getHostElement()))},directives:[b.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),J})(),L=(()=>{class J{}return J.\u0275fac=function(ge){return new(ge||J)},J.\u0275mod=e.oAB({type:J}),J.\u0275inj=e.cJS({imports:[[b.si,b.BQ],b.BQ]}),J})()},9224:(Xe,_e,p)=>{"use strict";p.d(_e,{a8:()=>T,kc:()=>Oe,dn:()=>S,dk:()=>Z,QW:()=>Y,$j:()=>B,n5:()=>m});var e=p(5e3),b=p(76360),_=p(90508);const w=["*",[["mat-card-footer"]]],g=["*","mat-card-footer"],A=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],E=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let S=(()=>{class ee{}return ee.\u0275fac=function(le){return new(le||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),ee})(),m=(()=>{class ee{}return ee.\u0275fac=function(le){return new(le||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),ee})(),B=(()=>{class ee{}return ee.\u0275fac=function(le){return new(le||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),ee})(),Oe=(()=>{class ee{}return ee.\u0275fac=function(le){return new(le||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),ee})(),T=(()=>{class ee{constructor(le){this._animationMode=le}}return ee.\u0275fac=function(le){return new(le||ee)(e.Y36(b.Qb,8))},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(le,Pe){2&le&&e.ekj("_mat-animation-noopable","NoopAnimations"===Pe._animationMode)},exportAs:["matCard"],ngContentSelectors:g,decls:2,vars:0,template:function(le,Pe){1&le&&(e.F$t(w),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-animation-noopable.mat-card{transition:none;animation:none}.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}\n"],encapsulation:2,changeDetection:0}),ee})(),Z=(()=>{class ee{}return ee.\u0275fac=function(le){return new(le||ee)},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:E,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(le,Pe){1&le&&(e.F$t(A),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),ee})(),Y=(()=>{class ee{}return ee.\u0275fac=function(le){return new(le||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({imports:[[_.BQ],_.BQ]}),ee})()},77446:(Xe,_e,p)=>{"use strict";p.d(_e,{oG:()=>Ne,p9:()=>Z});var e=p(63191),b=p(5e3),_=p(93075),w=p(90508),g=p(76360),A=p(15664),E=p(17144);const C=["input"],O=function(W){return{enterDuration:W}},S=["*"],m=new b.OlP("mat-checkbox-default-options",{providedIn:"root",factory:B});function B(){return{color:"accent",clickAction:"check-indeterminate"}}let L=0;const J=B(),ie={provide:_.JU,useExisting:(0,b.Gpc)(()=>Ne),multi:!0};class ge{}const X=(0,w.sb)((0,w.pj)((0,w.Kr)((0,w.Id)(class{constructor(W){this._elementRef=W}}))));let Ne=(()=>{class W extends X{constructor(ee,ce,le,Pe,Fe,ze,ae){super(ee),this._changeDetectorRef=ce,this._focusMonitor=le,this._ngZone=Pe,this._animationMode=ze,this._options=ae,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++L,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new b.vpe,this.indeterminateChange=new b.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(Fe)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ee){this._required=(0,e.Ig)(ee)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ee=>{ee||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(ee){ee!=this.checked&&(this._checked=ee,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ee){const ce=(0,e.Ig)(ee);ce!==this.disabled&&(this._disabled=ce,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ee){const ce=ee!=this._indeterminate;this._indeterminate=(0,e.Ig)(ee),ce&&(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(ee){this.checked=!!ee}registerOnChange(ee){this._controlValueAccessorChangeFn=ee}registerOnTouched(ee){this._onTouched=ee}setDisabledState(ee){this.disabled=ee}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ee){let ce=this._currentCheckState,le=this._elementRef.nativeElement;if(ce!==ee&&(this._currentAnimationClass.length>0&&le.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ce,ee),this._currentCheckState=ee,this._currentAnimationClass.length>0)){le.classList.add(this._currentAnimationClass);const Pe=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{le.classList.remove(Pe)},1e3)})}}_emitChangeEvent(){const ee=new ge;ee.source=this,ee.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(ee),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(ee){var ce;const le=null===(ce=this._options)||void 0===ce?void 0:ce.clickAction;ee.stopPropagation(),this.disabled||"noop"===le?!this.disabled&&"noop"===le&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==le&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(ee,ce){ee?this._focusMonitor.focusVia(this._inputElement,ee,ce):this._inputElement.nativeElement.focus(ce)}_onInteractionEvent(ee){ee.stopPropagation()}_getAnimationClassForCheckStateTransition(ee,ce){if("NoopAnimations"===this._animationMode)return"";let le="";switch(ee){case 0:if(1===ce)le="unchecked-checked";else{if(3!=ce)return"";le="unchecked-indeterminate"}break;case 2:le=1===ce?"unchecked-checked":"unchecked-indeterminate";break;case 1:le=2===ce?"checked-unchecked":"checked-indeterminate";break;case 3:le=1===ce?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${le}`}_syncIndeterminate(ee){const ce=this._inputElement;ce&&(ce.nativeElement.indeterminate=ee)}}return W.\u0275fac=function(ee){return new(ee||W)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(A.tE),b.Y36(b.R0b),b.$8M("tabindex"),b.Y36(g.Qb,8),b.Y36(m,8))},W.\u0275cmp=b.Xpm({type:W,selectors:[["mat-checkbox"]],viewQuery:function(ee,ce){if(1&ee&&(b.Gf(C,5),b.Gf(w.wG,5)),2&ee){let le;b.iGM(le=b.CRH())&&(ce._inputElement=le.first),b.iGM(le=b.CRH())&&(ce.ripple=le.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(ee,ce){2&ee&&(b.Ikx("id",ce.id),b.uIk("tabindex",null),b.ekj("mat-checkbox-indeterminate",ce.indeterminate)("mat-checkbox-checked",ce.checked)("mat-checkbox-disabled",ce.disabled)("mat-checkbox-label-before","before"==ce.labelPosition)("_mat-animation-noopable","NoopAnimations"===ce._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[b._Bn([ie]),b.qOj],ngContentSelectors:S,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(ee,ce){if(1&ee&&(b.F$t(),b.TgZ(0,"label",0,1),b.TgZ(2,"span",2),b.TgZ(3,"input",3,4),b.NdJ("change",function(Pe){return ce._onInteractionEvent(Pe)})("click",function(Pe){return ce._onInputClick(Pe)}),b.qZA(),b.TgZ(5,"span",5),b._UZ(6,"span",6),b.qZA(),b._UZ(7,"span",7),b.TgZ(8,"span",8),b.O4$(),b.TgZ(9,"svg",9),b._UZ(10,"path",10),b.qZA(),b.kcU(),b._UZ(11,"span",11),b.qZA(),b.qZA(),b.TgZ(12,"span",12,13),b.NdJ("cdkObserveContent",function(){return ce._onLabelTextChange()}),b.TgZ(14,"span",14),b._uU(15,"\xa0"),b.qZA(),b.Hsn(16),b.qZA(),b.qZA()),2&ee){const le=b.MAs(1),Pe=b.MAs(13);b.uIk("for",ce.inputId),b.xp6(2),b.ekj("mat-checkbox-inner-container-no-side-margin",!Pe.textContent||!Pe.textContent.trim()),b.xp6(1),b.Q6J("id",ce.inputId)("required",ce.required)("checked",ce.checked)("disabled",ce.disabled)("tabIndex",ce.tabIndex),b.uIk("value",ce.value)("name",ce.name)("aria-label",ce.ariaLabel||null)("aria-labelledby",ce.ariaLabelledby)("aria-checked",ce._getAriaChecked())("aria-describedby",ce.ariaDescribedby),b.xp6(2),b.Q6J("matRippleTrigger",le)("matRippleDisabled",ce._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",b.VKq(19,O,"NoopAnimations"===ce._animationMode?0:150))}},directives:[w.wG,E.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),W})(),T=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=b.oAB({type:W}),W.\u0275inj=b.cJS({}),W})(),Z=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=b.oAB({type:W}),W.\u0275inj=b.cJS({imports:[[w.si,w.BQ,E.Q8,T],w.BQ,T]}),W})()},26688:(Xe,_e,p)=>{"use strict";p.d(_e,{HS:()=>le,oH:()=>ae,qn:()=>z,Hi:()=>me});var e=p(91159),b=p(5e3),_=p(90508),w=p(63191),g=p(69808),A=p(76360),E=p(8929),C=p(36787),O=p(72986),S=p(7625),m=p(1059),B=p(70925),L=p(15664),J=p(20449),ie=p(93075),ge=p(67322),X=p(50226);const Ne=["*"],Oe=new b.OlP("MatChipRemove"),T=new b.OlP("MatChipAvatar"),Z=new b.OlP("MatChipTrailingIcon");class W{constructor(Me){this._elementRef=Me}}const Y=(0,_.sb)((0,_.pj)((0,_.Kr)(W),"primary"),-1);let le=(()=>{class Ae extends Y{constructor(pe,we,$e,Je,nt,ke,H,he){super(pe),this._ngZone=we,this._changeDetectorRef=nt,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new E.xQ,this._onBlur=new E.xQ,this.selectionChange=new b.vpe,this.destroyed=new b.vpe,this.removed=new b.vpe,this._addHostClassName(),this._chipRippleTarget=ke.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _.IR(this,we,this._chipRippleTarget,$e),this._chipRipple.setupTriggerEvents(pe),this.rippleConfig=Je||{},this._animationsDisabled="NoopAnimations"===H,this.tabIndex=null!=he&&parseInt(he)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(pe){const we=(0,w.Ig)(pe);we!==this._selected&&(this._selected=we,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(pe){this._value=pe}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(pe){this._selectable=(0,w.Ig)(pe)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(pe){this._disabled=(0,w.Ig)(pe)}get removable(){return this._removable}set removable(pe){this._removable=(0,w.Ig)(pe)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const pe="mat-basic-chip",we=this._elementRef.nativeElement;we.hasAttribute(pe)||we.tagName.toLowerCase()===pe?we.classList.add(pe):we.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(pe=!1){return this._selected=!this.selected,this._dispatchSelectionChange(pe),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(pe){this.disabled&&pe.preventDefault()}_handleKeydown(pe){if(!this.disabled)switch(pe.keyCode){case e.yY:case e.ZH:this.remove(),pe.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),pe.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(pe=!1){this.selectionChange.emit({source:this,isUserInput:pe,selected:this._selected})}}return Ae.\u0275fac=function(pe){return new(pe||Ae)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(B.t4),b.Y36(_.Y2,8),b.Y36(b.sBO),b.Y36(g.K0),b.Y36(A.Qb,8),b.$8M("tabindex"))},Ae.\u0275dir=b.lG2({type:Ae,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(pe,we,$e){if(1&pe&&(b.Suo($e,T,5),b.Suo($e,Z,5),b.Suo($e,Oe,5)),2&pe){let Je;b.iGM(Je=b.CRH())&&(we.avatar=Je.first),b.iGM(Je=b.CRH())&&(we.trailingIcon=Je.first),b.iGM(Je=b.CRH())&&(we.removeIcon=Je.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(pe,we){1&pe&&b.NdJ("click",function(Je){return we._handleClick(Je)})("keydown",function(Je){return we._handleKeydown(Je)})("focus",function(){return we.focus()})("blur",function(){return we._blur()}),2&pe&&(b.uIk("tabindex",we.disabled?null:we.tabIndex)("disabled",we.disabled||null)("aria-disabled",we.disabled.toString())("aria-selected",we.ariaSelected),b.ekj("mat-chip-selected",we.selected)("mat-chip-with-avatar",we.avatar)("mat-chip-with-trailing-icon",we.trailingIcon||we.removeIcon)("mat-chip-disabled",we.disabled)("_mat-animation-noopable",we._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[b.qOj]}),Ae})();const Fe=new b.OlP("mat-chips-default-options");let ze=0,ae=(()=>{class Ae{constructor(pe,we){this._elementRef=pe,this._defaultOptions=we,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new b.vpe,this.placeholder="",this.id="mat-chip-list-input-"+ze++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(pe){pe&&(this._chipList=pe,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(pe){this._addOnBlur=(0,w.Ig)(pe)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(pe){this._disabled=(0,w.Ig)(pe)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(pe){if(pe){if(pe.keyCode===e.Mf&&!(0,e.Vb)(pe,"shiftKey")&&this._chipList._allowFocusEscape(),pe.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void pe.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(pe)}_keyup(pe){!this._focusLastChipOnBackspace&&pe.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,pe.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(pe){!this.inputElement.value&&!!pe&&this._chipList._keydown(pe),(!pe||this._isSeparatorKey(pe))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==pe||pe.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(pe){this.inputElement.focus(pe)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(pe){return!(0,e.Vb)(pe)&&new Set(this.separatorKeyCodes).has(pe.keyCode)}}return Ae.\u0275fac=function(pe){return new(pe||Ae)(b.Y36(b.SBq),b.Y36(Fe))},Ae.\u0275dir=b.lG2({type:Ae,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(pe,we){1&pe&&b.NdJ("keydown",function(Je){return we._keydown(Je)})("keyup",function(Je){return we._keyup(Je)})("blur",function(){return we._blur()})("focus",function(){return we._focus()})("input",function(){return we._onInput()}),2&pe&&(b.Ikx("id",we.id),b.uIk("disabled",we.disabled||null)("placeholder",we.placeholder||null)("aria-invalid",we._chipList&&we._chipList.ngControl?we._chipList.ngControl.invalid:null)("aria-required",we._chipList&&we._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:[b.TTD]}),Ae})();const Ue=(0,_.FD)(class{constructor(Ae,Me,pe,we){this._defaultErrorStateMatcher=Ae,this._parentForm=Me,this._parentFormGroup=pe,this.ngControl=we}});let ve=0;class He{constructor(Me,pe){this.source=Me,this.value=pe}}let z=(()=>{class Ae extends Ue{constructor(pe,we,$e,Je,nt,ke,H){super(ke,Je,nt,H),this._elementRef=pe,this._changeDetectorRef=we,this._dir=$e,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new E.xQ,this._uid="mat-chip-list-"+ve++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(he,P)=>he===P,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new b.vpe,this.valueChange=new b.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var pe,we;return this.multiple?(null===(pe=this._selectionModel)||void 0===pe?void 0:pe.selected)||[]:null===(we=this._selectionModel)||void 0===we?void 0:we.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(pe){this._multiple=(0,w.Ig)(pe),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(pe){this._compareWith=pe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(pe){this.writeValue(pe),this._value=pe}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var pe,we,$e,Je;return null!==(Je=null!==(pe=this._required)&&void 0!==pe?pe:null===($e=null===(we=this.ngControl)||void 0===we?void 0:we.control)||void 0===$e?void 0:$e.hasValidator(ie.kI.required))&&void 0!==Je&&Je}set required(pe){this._required=(0,w.Ig)(pe),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(pe){this._placeholder=pe,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(pe){this._disabled=(0,w.Ig)(pe),this._syncChipsState()}get selectable(){return this._selectable}set selectable(pe){this._selectable=(0,w.Ig)(pe),this.chips&&this.chips.forEach(we=>we.chipListSelectable=this._selectable)}set tabIndex(pe){this._userTabIndex=pe,this._tabIndex=pe}get chipSelectionChanges(){return(0,C.T)(...this.chips.map(pe=>pe.selectionChange))}get chipFocusChanges(){return(0,C.T)(...this.chips.map(pe=>pe._onFocus))}get chipBlurChanges(){return(0,C.T)(...this.chips.map(pe=>pe._onBlur))}get chipRemoveChanges(){return(0,C.T)(...this.chips.map(pe=>pe.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,S.R)(this._destroyed)).subscribe(pe=>this._keyManager.withHorizontalOrientation(pe)),this._keyManager.tabOut.pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,m.O)(null),(0,S.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(pe){this._chipInput=pe,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",pe.id)}setDescribedByIds(pe){this._ariaDescribedby=pe.join(" ")}writeValue(pe){this.chips&&this._setSelectionByValue(pe,!1)}registerOnChange(pe){this._onChange=pe}registerOnTouched(pe){this._onTouched=pe}setDisabledState(pe){this.disabled=pe,this.stateChanges.next()}onContainerClick(pe){this._originatesFromChip(pe)||this.focus()}focus(pe){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(pe),this.stateChanges.next()))}_focusInput(pe){this._chipInput&&this._chipInput.focus(pe)}_keydown(pe){const we=pe.target;we&&we.classList.contains("mat-chip")&&(this._keyManager.onKeydown(pe),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const pe=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(pe)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(pe){return pe>=0&&pe$e.deselect()),Array.isArray(pe))pe.forEach($e=>this._selectValue($e,we)),this._sortValues();else{const $e=this._selectValue(pe,we);$e&&we&&this._keyManager.setActiveItem($e)}}_selectValue(pe,we=!0){const $e=this.chips.find(Je=>null!=Je.value&&this._compareWith(Je.value,pe));return $e&&(we?$e.selectViaInteraction():$e.select(),this._selectionModel.select($e)),$e}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(pe){this._selectionModel.clear(),this.chips.forEach(we=>{we!==pe&&we.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(pe=>{pe.selected&&this._selectionModel.select(pe)}),this.stateChanges.next())}_propagateChanges(pe){let we=null;we=Array.isArray(this.selected)?this.selected.map($e=>$e.value):this.selected?this.selected.value:pe,this._value=we,this.change.emit(new He(this,we)),this.valueChange.emit(we),this._onChange(we),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(pe=>{pe.source.selected?this._selectionModel.select(pe.source):this._selectionModel.deselect(pe.source),this.multiple||this.chips.forEach(we=>{!this._selectionModel.isSelected(we)&&we.selected&&we.deselect()}),pe.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(pe=>{let we=this.chips.toArray().indexOf(pe.chip);this._isValidIndex(we)&&this._keyManager.updateActiveItem(we),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(pe=>{const we=pe.chip,$e=this.chips.toArray().indexOf(pe.chip);this._isValidIndex($e)&&we._hasFocus&&(this._lastDestroyedChipIndex=$e)})}_originatesFromChip(pe){let we=pe.target;for(;we&&we!==this._elementRef.nativeElement;){if(we.classList.contains("mat-chip"))return!0;we=we.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(pe=>pe._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(pe=>{pe._chipListDisabled=this._disabled,pe._chipListMultiple=this.multiple})}}return Ae.\u0275fac=function(pe){return new(pe||Ae)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(X.Is,8),b.Y36(ie.F,8),b.Y36(ie.sg,8),b.Y36(_.rD),b.Y36(ie.a5,10))},Ae.\u0275cmp=b.Xpm({type:Ae,selectors:[["mat-chip-list"]],contentQueries:function(pe,we,$e){if(1&pe&&b.Suo($e,le,5),2&pe){let Je;b.iGM(Je=b.CRH())&&(we.chips=Je)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(pe,we){1&pe&&b.NdJ("focus",function(){return we.focus()})("blur",function(){return we._blur()})("keydown",function(Je){return we._keydown(Je)}),2&pe&&(b.Ikx("id",we._uid),b.uIk("tabindex",we.disabled?null:we._tabIndex)("aria-describedby",we._ariaDescribedby||null)("aria-required",we.role?we.required:null)("aria-disabled",we.disabled.toString())("aria-invalid",we.errorState)("aria-multiselectable",we.multiple)("role",we.role)("aria-orientation",we.ariaOrientation),b.ekj("mat-chip-list-disabled",we.disabled)("mat-chip-list-invalid",we.errorState)("mat-chip-list-required",we.required))},inputs:{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:[b._Bn([{provide:ge.Eo,useExisting:Ae}]),b.qOj],ngContentSelectors:Ne,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(pe,we){1&pe&&(b.F$t(),b.TgZ(0,"div",0),b.Hsn(1),b.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),Ae})(),me=(()=>{class Ae{}return Ae.\u0275fac=function(pe){return new(pe||Ae)},Ae.\u0275mod=b.oAB({type:Ae}),Ae.\u0275inj=b.cJS({providers:[_.rD,{provide:Fe,useValue:{separatorKeyCodes:[e.K5]}}],imports:[[_.BQ]]}),Ae})()},90508:(Xe,_e,p)=>{"use strict";p.d(_e,{yN:()=>ue,mZ:()=>Oe,_A:()=>z,rD:()=>nt,sG:()=>I,K7:()=>h,HF:()=>t,Y2:()=>o,BQ:()=>W,X2:()=>ke,uc:()=>P,XK:()=>$e,ey:()=>lt,Ng:()=>Lt,rN:()=>At,nP:()=>s,us:()=>i,wG:()=>d,si:()=>l,LF:()=>Me,IR:()=>ye,CB:()=>Ut,jH:()=>mt,pj:()=>Pe,Kr:()=>Fe,Id:()=>le,FD:()=>ae,dB:()=>Ue,sb:()=>ze,E0:()=>H});var e=p(5e3),b=p(50226),w=p(69808),g=p(70925),A=p(15664),E=p(63191),C=p(8929),O=p(56498),S=p(1059),m=p(76360),B=p(91159);function ie(Te,Ge){if(1&Te&&e._UZ(0,"mat-pseudo-checkbox",4),2&Te){const j=e.oxw();e.Q6J("state",j.selected?"checked":"unchecked")("disabled",j.disabled)}}function ge(Te,Ge){if(1&Te&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Te){const j=e.oxw();e.xp6(1),e.hij("(",j.group.label,")")}}const X=["*"];let ue=(()=>{class Te{}return Te.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Te.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Te.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Te.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Te})(),Oe=(()=>{class Te{}return Te.COMPLEX="375ms",Te.ENTERING="225ms",Te.EXITING="195ms",Te})();const Z=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function T(){return!0}});let W=(()=>{class Te{constructor(j,N,te){this._sanityChecks=N,this._document=te,this._hasDoneGlobalChecks=!1,j._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(j){return!(0,g.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[j])}}return Te.\u0275fac=function(j){return new(j||Te)(e.LFG(A.qm),e.LFG(Z,8),e.LFG(w.K0))},Te.\u0275mod=e.oAB({type:Te}),Te.\u0275inj=e.cJS({imports:[[b.vT],b.vT]}),Te})();function le(Te){return class extends Te{constructor(...Ge){super(...Ge),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ge){this._disabled=(0,E.Ig)(Ge)}}}function Pe(Te,Ge){return class extends Te{constructor(...j){super(...j),this.defaultColor=Ge,this.color=Ge}get color(){return this._color}set color(j){const N=j||this.defaultColor;N!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),N&&this._elementRef.nativeElement.classList.add(`mat-${N}`),this._color=N)}}}function Fe(Te){return class extends Te{constructor(...Ge){super(...Ge),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ge){this._disableRipple=(0,E.Ig)(Ge)}}}function ze(Te,Ge=0){return class extends Te{constructor(...j){super(...j),this._tabIndex=Ge,this.defaultTabIndex=Ge}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(j){this._tabIndex=null!=j?(0,E.su)(j):this.defaultTabIndex}}}function ae(Te){return class extends Te{constructor(...Ge){super(...Ge),this.stateChanges=new C.xQ,this.errorState=!1}updateErrorState(){const Ge=this.errorState,oe=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);oe!==Ge&&(this.errorState=oe,this.stateChanges.next())}}}function Ue(Te){return class extends Te{constructor(...Ge){super(...Ge),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new O.y(j=>{this._isInitialized?this._notifySubscriber(j):this._pendingSubscribers.push(j)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ge){Ge.next(),Ge.complete()}}}const ve=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function He(){return(0,e.f3M)(e.soG)}});class z{constructor(){this._localeChanges=new C.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Ge){return this.isDateInstance(Ge)&&this.isValid(Ge)?Ge:null}deserialize(Ge){return null==Ge||this.isDateInstance(Ge)&&this.isValid(Ge)?Ge:this.invalid()}setLocale(Ge){this.locale=Ge,this._localeChanges.next()}compareDate(Ge,j){return this.getYear(Ge)-this.getYear(j)||this.getMonth(Ge)-this.getMonth(j)||this.getDate(Ge)-this.getDate(j)}sameDate(Ge,j){if(Ge&&j){let N=this.isValid(Ge),te=this.isValid(j);return N&&te?!this.compareDate(Ge,j):N==te}return Ge==j}clampDate(Ge,j,N){return j&&this.compareDate(Ge,j)<0?j:N&&this.compareDate(Ge,N)>0?N:Ge}}const I=new e.OlP("mat-date-formats"),me=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ae(Te,Ge){const j=Array(Te);for(let N=0;N{class Te extends z{constructor(j,N){super(),this.useUtcForDisplay=!1,super.setLocale(j)}getYear(j){return j.getFullYear()}getMonth(j){return j.getMonth()}getDate(j){return j.getDate()}getDayOfWeek(j){return j.getDay()}getMonthNames(j){const N=new Intl.DateTimeFormat(this.locale,{month:j,timeZone:"utc"});return Ae(12,te=>this._format(N,new Date(2017,te,1)))}getDateNames(){const j=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ae(31,N=>this._format(j,new Date(2017,0,N+1)))}getDayOfWeekNames(j){const N=new Intl.DateTimeFormat(this.locale,{weekday:j,timeZone:"utc"});return Ae(7,te=>this._format(N,new Date(2017,0,te+1)))}getYearName(j){const N=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(N,j)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(j){return this.getDate(this._createDateWithOverflow(this.getYear(j),this.getMonth(j)+1,0))}clone(j){return new Date(j.getTime())}createDate(j,N,te){let oe=this._createDateWithOverflow(j,N,te);return oe.getMonth(),oe}today(){return new Date}parse(j){return"number"==typeof j?new Date(j):j?new Date(Date.parse(j)):null}format(j,N){if(!this.isValid(j))throw Error("NativeDateAdapter: Cannot format invalid date.");const te=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},N),{timeZone:"utc"}));return this._format(te,j)}addCalendarYears(j,N){return this.addCalendarMonths(j,12*N)}addCalendarMonths(j,N){let te=this._createDateWithOverflow(this.getYear(j),this.getMonth(j)+N,this.getDate(j));return this.getMonth(te)!=((this.getMonth(j)+N)%12+12)%12&&(te=this._createDateWithOverflow(this.getYear(te),this.getMonth(te),0)),te}addCalendarDays(j,N){return this._createDateWithOverflow(this.getYear(j),this.getMonth(j),this.getDate(j)+N)}toIso8601(j){return[j.getUTCFullYear(),this._2digit(j.getUTCMonth()+1),this._2digit(j.getUTCDate())].join("-")}deserialize(j){if("string"==typeof j){if(!j)return null;if(me.test(j)){let N=new Date(j);if(this.isValid(N))return N}}return super.deserialize(j)}isDateInstance(j){return j instanceof Date}isValid(j){return!isNaN(j.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(j,N,te){const oe=new Date;return oe.setFullYear(j,N,te),oe.setHours(0,0,0,0),oe}_2digit(j){return("00"+j).slice(-2)}_format(j,N){const te=new Date;return te.setUTCFullYear(N.getFullYear(),N.getMonth(),N.getDate()),te.setUTCHours(N.getHours(),N.getMinutes(),N.getSeconds(),N.getMilliseconds()),j.format(te)}}return Te.\u0275fac=function(j){return new(j||Te)(e.LFG(ve,8),e.LFG(g.t4))},Te.\u0275prov=e.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const pe={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 we=(()=>{class Te{}return Te.\u0275fac=function(j){return new(j||Te)},Te.\u0275mod=e.oAB({type:Te}),Te.\u0275inj=e.cJS({providers:[{provide:z,useClass:Me}],imports:[[g.ud]]}),Te})(),$e=(()=>{class Te{}return Te.\u0275fac=function(j){return new(j||Te)},Te.\u0275mod=e.oAB({type:Te}),Te.\u0275inj=e.cJS({providers:[{provide:I,useValue:pe}],imports:[[we]]}),Te})(),nt=(()=>{class Te{isErrorState(j,N){return!!(j&&j.invalid&&(j.touched||N&&N.submitted))}}return Te.\u0275fac=function(j){return new(j||Te)},Te.\u0275prov=e.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),ke=(()=>{class Te{}return Te.\u0275fac=function(j){return new(j||Te)},Te.\u0275dir=e.lG2({type:Te,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Te})();function H(Te,Ge,j="mat"){Te.changes.pipe((0,S.O)(Te)).subscribe(({length:N})=>{he(Ge,`${j}-2-line`,!1),he(Ge,`${j}-3-line`,!1),he(Ge,`${j}-multi-line`,!1),2===N||3===N?he(Ge,`${j}-${N}-line`,!0):N>3&&he(Ge,`${j}-multi-line`,!0)})}function he(Te,Ge,j){Te.nativeElement.classList.toggle(Ge,j)}let P=(()=>{class Te{}return Te.\u0275fac=function(j){return new(j||Te)},Te.\u0275mod=e.oAB({type:Te}),Te.\u0275inj=e.cJS({imports:[[W],W]}),Te})();class R{constructor(Ge,j,N){this._renderer=Ge,this.element=j,this.config=N,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const V={enterDuration:225,exitDuration:150},Se=(0,g.i$)({passive:!0}),je=["mousedown","touchstart"],Ye=["mouseup","mouseleave","touchend","touchcancel"];class ye{constructor(Ge,j,N,te){this._target=Ge,this._ngZone=j,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,te.isBrowser&&(this._containerElement=(0,E.fI)(N))}fadeInRipple(Ge,j,N={}){const te=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),oe=Object.assign(Object.assign({},V),N.animation);N.centered&&(Ge=te.left+te.width/2,j=te.top+te.height/2);const Ie=N.radius||function r(Te,Ge,j){const N=Math.max(Math.abs(Te-j.left),Math.abs(Te-j.right)),te=Math.max(Math.abs(Ge-j.top),Math.abs(Ge-j.bottom));return Math.sqrt(N*N+te*te)}(Ge,j,te),ct=Ge-te.left,bt=j-te.top,xt=oe.enterDuration,Yt=document.createElement("div");Yt.classList.add("mat-ripple-element"),Yt.style.left=ct-Ie+"px",Yt.style.top=bt-Ie+"px",Yt.style.height=2*Ie+"px",Yt.style.width=2*Ie+"px",null!=N.color&&(Yt.style.backgroundColor=N.color),Yt.style.transitionDuration=`${xt}ms`,this._containerElement.appendChild(Yt),function re(Te){window.getComputedStyle(Te).getPropertyValue("opacity")}(Yt),Yt.style.transform="scale(1)";const It=new R(this,Yt,N);return It.state=0,this._activeRipples.add(It),N.persistent||(this._mostRecentTransientRipple=It),this._runTimeoutOutsideZone(()=>{const Rt=It===this._mostRecentTransientRipple;It.state=1,!N.persistent&&(!Rt||!this._isPointerDown)&&It.fadeOut()},xt),It}fadeOutRipple(Ge){const j=this._activeRipples.delete(Ge);if(Ge===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!j)return;const N=Ge.element,te=Object.assign(Object.assign({},V),Ge.config.animation);N.style.transitionDuration=`${te.exitDuration}ms`,N.style.opacity="0",Ge.state=2,this._runTimeoutOutsideZone(()=>{Ge.state=3,N.remove()},te.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ge=>Ge.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ge=>{Ge.config.persistent||Ge.fadeOut()})}setupTriggerEvents(Ge){const j=(0,E.fI)(Ge);!j||j===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=j,this._registerEvents(je))}handleEvent(Ge){"mousedown"===Ge.type?this._onMousedown(Ge):"touchstart"===Ge.type?this._onTouchStart(Ge):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ye),this._pointerUpEventsRegistered=!0)}_onMousedown(Ge){const j=(0,A.X6)(Ge),N=this._lastTouchStartEvent&&Date.now(){!Ge.config.persistent&&(1===Ge.state||Ge.config.terminateOnPointerUp&&0===Ge.state)&&Ge.fadeOut()}))}_runTimeoutOutsideZone(Ge,j=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ge,j))}_registerEvents(Ge){this._ngZone.runOutsideAngular(()=>{Ge.forEach(j=>{this._triggerElement.addEventListener(j,this,Se)})})}_removeTriggerEvents(){this._triggerElement&&(je.forEach(Ge=>{this._triggerElement.removeEventListener(Ge,this,Se)}),this._pointerUpEventsRegistered&&Ye.forEach(Ge=>{this._triggerElement.removeEventListener(Ge,this,Se)}))}}const o=new e.OlP("mat-ripple-global-options");let d=(()=>{class Te{constructor(j,N,te,oe,Ie){this._elementRef=j,this._animationMode=Ie,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=oe||{},this._rippleRenderer=new ye(this,N,j,te)}get disabled(){return this._disabled}set disabled(j){j&&this.fadeOutAllNonPersistent(),this._disabled=j,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(j){this._trigger=j,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(j,N=0,te){return"number"==typeof j?this._rippleRenderer.fadeInRipple(j,N,Object.assign(Object.assign({},this.rippleConfig),te)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),j))}}return Te.\u0275fac=function(j){return new(j||Te)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(g.t4),e.Y36(o,8),e.Y36(m.Qb,8))},Te.\u0275dir=e.lG2({type:Te,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(j,N){2&j&&e.ekj("mat-ripple-unbounded",N.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"]}),Te})(),l=(()=>{class Te{}return Te.\u0275fac=function(j){return new(j||Te)},Te.\u0275mod=e.oAB({type:Te}),Te.\u0275inj=e.cJS({imports:[[W,g.ud],W]}),Te})(),s=(()=>{class Te{constructor(j){this._animationMode=j,this.state="unchecked",this.disabled=!1}}return Te.\u0275fac=function(j){return new(j||Te)(e.Y36(m.Qb,8))},Te.\u0275cmp=e.Xpm({type:Te,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(j,N){2&j&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===N.state)("mat-pseudo-checkbox-checked","checked"===N.state)("mat-pseudo-checkbox-disabled",N.disabled)("_mat-animation-noopable","NoopAnimations"===N._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(j,N){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Te})(),i=(()=>{class Te{}return Te.\u0275fac=function(j){return new(j||Te)},Te.\u0275mod=e.oAB({type:Te}),Te.\u0275inj=e.cJS({imports:[[W]]}),Te})();const t=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),h=new e.OlP("MatOptgroup");let We=0;class At{constructor(Ge,j=!1){this.source=Ge,this.isUserInput=j}}let Ht=(()=>{class Te{constructor(j,N,te,oe){this._element=j,this._changeDetectorRef=N,this._parent=te,this.group=oe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+We++,this.onSelectionChange=new e.vpe,this._stateChanges=new C.xQ}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(j){this._disabled=(0,E.Ig)(j)}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(j,N){const te=this._getHostElement();"function"==typeof te.focus&&te.focus(N)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(j){(j.keyCode===B.K5||j.keyCode===B.L_)&&!(0,B.Vb)(j)&&(this._selectViaInteraction(),j.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 j=this.viewValue;j!==this._mostRecentViewValue&&(this._mostRecentViewValue=j,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(j=!1){this.onSelectionChange.emit(new At(this,j))}}return Te.\u0275fac=function(j){e.$Z()},Te.\u0275dir=e.lG2({type:Te,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Te})(),lt=(()=>{class Te extends Ht{constructor(j,N,te,oe){super(j,N,te,oe)}}return Te.\u0275fac=function(j){return new(j||Te)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(t,8),e.Y36(h,8))},Te.\u0275cmp=e.Xpm({type:Te,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(j,N){1&j&&e.NdJ("click",function(){return N._selectViaInteraction()})("keydown",function(oe){return N._handleKeydown(oe)}),2&j&&(e.Ikx("id",N.id),e.uIk("tabindex",N._getTabIndex())("aria-selected",N._getAriaSelected())("aria-disabled",N.disabled.toString()),e.ekj("mat-selected",N.selected)("mat-option-multiple",N.multiple)("mat-active",N.active)("mat-option-disabled",N.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:X,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(j,N){1&j&&(e.F$t(),e.YNc(0,ie,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,ge,2,1,"span",2),e._UZ(4,"div",3)),2&j&&(e.Q6J("ngIf",N.multiple),e.xp6(3),e.Q6J("ngIf",N.group&&N.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",N._getHostElement())("matRippleDisabled",N.disabled||N.disableRipple))},directives:[s,w.O5,d],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Te})();function Ut(Te,Ge,j){if(j.length){let N=Ge.toArray(),te=j.toArray(),oe=0;for(let Ie=0;Iej+N?Math.max(0,Te-N+Ge):j}let Lt=(()=>{class Te{}return Te.\u0275fac=function(j){return new(j||Te)},Te.\u0275mod=e.oAB({type:Te}),Te.\u0275inj=e.cJS({imports:[[l,w.ez,W,i]]}),Te})()},86856:(Xe,_e,p)=>{"use strict";p.d(_e,{Mq:()=>bt,hl:()=>Bt,FA:()=>ot,nW:()=>ai});var e=p(15664),b=p(92845),_=p(47429),w=p(69808),g=p(5e3),A=p(47423),E=p(53435),C=p(90508),O=p(8929),S=p(42654),m=p(36787),B=p(21086),L=p(91159),J=p(72986),ie=p(1059),ge=p(92198),X=p(50226),Ne=p(63191),ue=p(70925),Oe=p(41777),T=p(93075),Z=p(67322),W=p(98833);const Y=["mat-calendar-body",""];function ee(Ke,vt){if(1&Ke&&(g.TgZ(0,"tr",2),g.TgZ(1,"td",3),g._uU(2),g.qZA(),g.qZA()),2&Ke){const U=g.oxw();g.xp6(1),g.Udp("padding-top",U._cellPadding)("padding-bottom",U._cellPadding),g.uIk("colspan",U.numCols),g.xp6(1),g.hij(" ",U.label," ")}}function ce(Ke,vt){if(1&Ke&&(g.TgZ(0,"td",3),g._uU(1),g.qZA()),2&Ke){const U=g.oxw(2);g.Udp("padding-top",U._cellPadding)("padding-bottom",U._cellPadding),g.uIk("colspan",U._firstRowOffset),g.xp6(1),g.hij(" ",U._firstRowOffset>=U.labelMinRequiredCells?U.label:""," ")}}function le(Ke,vt){if(1&Ke){const U=g.EpF();g.TgZ(0,"td",7),g.TgZ(1,"button",8),g.NdJ("click",function(gt){const ri=g.CHM(U).$implicit;return g.oxw(2)._cellClicked(ri,gt)}),g.TgZ(2,"div",9),g._uU(3),g.qZA(),g._UZ(4,"div",10),g.qZA(),g.qZA()}if(2&Ke){const U=vt.$implicit,qe=vt.index,gt=g.oxw().index,Dt=g.oxw();g.Udp("width",Dt._cellWidth)("padding-top",Dt._cellPadding)("padding-bottom",Dt._cellPadding),g.uIk("data-mat-row",gt)("data-mat-col",qe),g.xp6(1),g.ekj("mat-calendar-body-disabled",!U.enabled)("mat-calendar-body-active",Dt._isActiveCell(gt,qe))("mat-calendar-body-range-start",Dt._isRangeStart(U.compareValue))("mat-calendar-body-range-end",Dt._isRangeEnd(U.compareValue))("mat-calendar-body-in-range",Dt._isInRange(U.compareValue))("mat-calendar-body-comparison-bridge-start",Dt._isComparisonBridgeStart(U.compareValue,gt,qe))("mat-calendar-body-comparison-bridge-end",Dt._isComparisonBridgeEnd(U.compareValue,gt,qe))("mat-calendar-body-comparison-start",Dt._isComparisonStart(U.compareValue))("mat-calendar-body-comparison-end",Dt._isComparisonEnd(U.compareValue))("mat-calendar-body-in-comparison-range",Dt._isInComparisonRange(U.compareValue))("mat-calendar-body-preview-start",Dt._isPreviewStart(U.compareValue))("mat-calendar-body-preview-end",Dt._isPreviewEnd(U.compareValue))("mat-calendar-body-in-preview",Dt._isInPreview(U.compareValue)),g.Q6J("ngClass",U.cssClasses)("tabindex",Dt._isActiveCell(gt,qe)?0:-1),g.uIk("aria-label",U.ariaLabel)("aria-disabled",!U.enabled||null)("aria-pressed",Dt._isSelected(U.compareValue))("aria-current",Dt.todayValue===U.compareValue?"date":null),g.xp6(1),g.ekj("mat-calendar-body-selected",Dt._isSelected(U.compareValue))("mat-calendar-body-comparison-identical",Dt._isComparisonIdentical(U.compareValue))("mat-calendar-body-today",Dt.todayValue===U.compareValue),g.xp6(1),g.hij(" ",U.displayValue," ")}}function Pe(Ke,vt){if(1&Ke&&(g.TgZ(0,"tr",4),g.YNc(1,ce,2,6,"td",5),g.YNc(2,le,5,47,"td",6),g.qZA()),2&Ke){const U=vt.$implicit,qe=vt.index,gt=g.oxw();g.xp6(1),g.Q6J("ngIf",0===qe&>._firstRowOffset),g.xp6(1),g.Q6J("ngForOf",U)}}function Fe(Ke,vt){if(1&Ke&&(g.TgZ(0,"th",5),g._uU(1),g.qZA()),2&Ke){const U=vt.$implicit;g.uIk("aria-label",U.long),g.xp6(1),g.hij(" ",U.narrow," ")}}const ze=["*"];function ae(Ke,vt){}function Ue(Ke,vt){if(1&Ke){const U=g.EpF();g.TgZ(0,"mat-month-view",5),g.NdJ("activeDateChange",function(gt){return g.CHM(U),g.oxw().activeDate=gt})("_userSelection",function(gt){return g.CHM(U),g.oxw()._dateSelected(gt)}),g.qZA()}if(2&Ke){const U=g.oxw();g.Q6J("activeDate",U.activeDate)("selected",U.selected)("dateFilter",U.dateFilter)("maxDate",U.maxDate)("minDate",U.minDate)("dateClass",U.dateClass)("comparisonStart",U.comparisonStart)("comparisonEnd",U.comparisonEnd)}}function ve(Ke,vt){if(1&Ke){const U=g.EpF();g.TgZ(0,"mat-year-view",6),g.NdJ("activeDateChange",function(gt){return g.CHM(U),g.oxw().activeDate=gt})("monthSelected",function(gt){return g.CHM(U),g.oxw()._monthSelectedInYearView(gt)})("selectedChange",function(gt){return g.CHM(U),g.oxw()._goToDateInView(gt,"month")}),g.qZA()}if(2&Ke){const U=g.oxw();g.Q6J("activeDate",U.activeDate)("selected",U.selected)("dateFilter",U.dateFilter)("maxDate",U.maxDate)("minDate",U.minDate)("dateClass",U.dateClass)}}function He(Ke,vt){if(1&Ke){const U=g.EpF();g.TgZ(0,"mat-multi-year-view",7),g.NdJ("activeDateChange",function(gt){return g.CHM(U),g.oxw().activeDate=gt})("yearSelected",function(gt){return g.CHM(U),g.oxw()._yearSelectedInMultiYearView(gt)})("selectedChange",function(gt){return g.CHM(U),g.oxw()._goToDateInView(gt,"year")}),g.qZA()}if(2&Ke){const U=g.oxw();g.Q6J("activeDate",U.activeDate)("selected",U.selected)("dateFilter",U.dateFilter)("maxDate",U.maxDate)("minDate",U.minDate)("dateClass",U.dateClass)}}function z(Ke,vt){}const I=["button"];function me(Ke,vt){1&Ke&&(g.O4$(),g.TgZ(0,"svg",3),g._UZ(1,"path",4),g.qZA())}const Ae=[[["","matDatepickerToggleIcon",""]]],Me=["[matDatepickerToggleIcon]"];class nt{constructor(vt,U,qe,gt,Dt={},ri=vt,ti){this.value=vt,this.displayValue=U,this.ariaLabel=qe,this.enabled=gt,this.cssClasses=Dt,this.compareValue=ri,this.rawValue=ti}}let ke=(()=>{class Ke{constructor(U,qe){this._elementRef=U,this._ngZone=qe,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new g.vpe,this.previewChange=new g.vpe,this._enterHandler=gt=>{if(this._skipNextFocus&&"focus"===gt.type)this._skipNextFocus=!1;else if(gt.target&&this.isRange){const Dt=this._getCellFromElement(gt.target);Dt&&this._ngZone.run(()=>this.previewChange.emit({value:Dt.enabled?Dt:null,event:gt}))}},this._leaveHandler=gt=>{null!==this.previewEnd&&this.isRange&>.target&&this._getCellFromElement(gt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:gt}))},qe.runOutsideAngular(()=>{const gt=U.nativeElement;gt.addEventListener("mouseenter",this._enterHandler,!0),gt.addEventListener("focus",this._enterHandler,!0),gt.addEventListener("mouseleave",this._leaveHandler,!0),gt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(U,qe){U.enabled&&this.selectedValueChange.emit({value:U.value,event:qe})}_isSelected(U){return this.startValue===U||this.endValue===U}ngOnChanges(U){const qe=U.numCols,{rows:gt,numCols:Dt}=this;(U.rows||qe)&&(this._firstRowOffset=gt&>.length&>[0].length?Dt-gt[0].length:0),(U.cellAspectRatio||qe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Dt+"%"),(qe||!this._cellWidth)&&(this._cellWidth=100/Dt+"%")}ngOnDestroy(){const U=this._elementRef.nativeElement;U.removeEventListener("mouseenter",this._enterHandler,!0),U.removeEventListener("focus",this._enterHandler,!0),U.removeEventListener("mouseleave",this._leaveHandler,!0),U.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(U,qe){let gt=U*this.numCols+qe;return U&&(gt-=this._firstRowOffset),gt==this.activeCell}_focusActiveCell(U=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,J.q)(1)).subscribe(()=>{const qe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");qe&&(U||(this._skipNextFocus=!0),qe.focus())})})}_isRangeStart(U){return he(U,this.startValue,this.endValue)}_isRangeEnd(U){return P(U,this.startValue,this.endValue)}_isInRange(U){return R(U,this.startValue,this.endValue,this.isRange)}_isComparisonStart(U){return he(U,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(U,qe,gt){if(!this._isComparisonStart(U)||this._isRangeStart(U)||!this._isInRange(U))return!1;let Dt=this.rows[qe][gt-1];if(!Dt){const ri=this.rows[qe-1];Dt=ri&&ri[ri.length-1]}return Dt&&!this._isRangeEnd(Dt.compareValue)}_isComparisonBridgeEnd(U,qe,gt){if(!this._isComparisonEnd(U)||this._isRangeEnd(U)||!this._isInRange(U))return!1;let Dt=this.rows[qe][gt+1];if(!Dt){const ri=this.rows[qe+1];Dt=ri&&ri[0]}return Dt&&!this._isRangeStart(Dt.compareValue)}_isComparisonEnd(U){return P(U,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(U){return R(U,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(U){return this.comparisonStart===this.comparisonEnd&&U===this.comparisonStart}_isPreviewStart(U){return he(U,this.previewStart,this.previewEnd)}_isPreviewEnd(U){return P(U,this.previewStart,this.previewEnd)}_isInPreview(U){return R(U,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(U){let qe;if(H(U)?qe=U:H(U.parentNode)&&(qe=U.parentNode),qe){const gt=qe.getAttribute("data-mat-row"),Dt=qe.getAttribute("data-mat-col");if(gt&&Dt)return this.rows[parseInt(gt)][parseInt(Dt)]}return null}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.Y36(g.SBq),g.Y36(g.R0b))},Ke.\u0275cmp=g.Xpm({type:Ke,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"},exportAs:["matCalendarBody"],features:[g.TTD],attrs:Y,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"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(U,qe){1&U&&(g.YNc(0,ee,3,6,"tr",0),g.YNc(1,Pe,3,2,"tr",1)),2&U&&(g.Q6J("ngIf",qe._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),Ke})();function H(Ke){return"TD"===Ke.nodeName}function he(Ke,vt,U){return null!==U&&vt!==U&&Ke=vt&&Ke===U}function R(Ke,vt,U,qe){return qe&&null!==vt&&null!==U&&vt!==U&&Ke>=vt&&Ke<=U}class V{constructor(vt,U){this.start=vt,this.end=U}}let Q=(()=>{class Ke{constructor(U,qe){this.selection=U,this._adapter=qe,this._selectionChanged=new O.xQ,this.selectionChanged=this._selectionChanged,this.selection=U}updateSelection(U,qe){const gt=this.selection;this.selection=U,this._selectionChanged.next({selection:U,source:qe,oldValue:gt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(U){return this._adapter.isDateInstance(U)&&this._adapter.isValid(U)}}return Ke.\u0275fac=function(U){g.$Z()},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),Se=(()=>{class Ke extends Q{constructor(U){super(null,U)}add(U){super.updateSelection(U,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const U=new Ke(this._adapter);return U.updateSelection(this.selection,this),U}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.LFG(C._A))},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const ye={provide:Q,deps:[[new g.FiY,new g.tp0,Q],C._A],useFactory:function Ye(Ke,vt){return Ke||new Se(vt)}},o=new g.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let t=(()=>{class Ke{constructor(U,qe,gt,Dt,ri){this._changeDetectorRef=U,this._dateFormats=qe,this._dateAdapter=gt,this._dir=Dt,this._rangeStrategy=ri,this._rerenderSubscription=S.w.EMPTY,this.selectedChange=new g.vpe,this._userSelection=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(U){const qe=this._activeDate,gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._hasSameMonthAndYear(qe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(U){this._selected=U instanceof V?U:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(U){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}get maxDate(){return this._maxDate}set maxDate(U){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ie.O)(null)).subscribe(()=>this._init())}ngOnChanges(U){const qe=U.comparisonStart||U.comparisonEnd;qe&&!qe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(U){const qe=U.value,gt=this._dateAdapter.getYear(this.activeDate),Dt=this._dateAdapter.getMonth(this.activeDate),ri=this._dateAdapter.createDate(gt,Dt,qe);let ti,Di;this._selected instanceof V?(ti=this._getDateInCurrentMonth(this._selected.start),Di=this._getDateInCurrentMonth(this._selected.end)):ti=Di=this._getDateInCurrentMonth(this._selected),(ti!==qe||Di!==qe)&&this.selectedChange.emit(ri),this._userSelection.emit({value:ri,event:U.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(U){const qe=this._activeDate,gt=this._isRtl();switch(U.keyCode){case L.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?1:-1);break;case L.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?-1:1);break;case L.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case L.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case L.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case L.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case L.Ku:this.activeDate=U.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case L.VM:this.activeDate=U.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case L.K5:case L.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&U.preventDefault());case L.hY:return void(null!=this._previewEnd&&!(0,L.Vb)(U)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:U}),U.preventDefault(),U.stopPropagation()));default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),U.preventDefault()}_handleCalendarBodyKeyup(U){(U.keyCode===L.L_||U.keyCode===L.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:U}),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 U=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(U)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(U){this._matCalendarBody._focusActiveCell(U)}_previewChanged({event:U,value:qe}){if(this._rangeStrategy){const Dt=this._rangeStrategy.createPreview(qe?qe.rawValue:null,this.selected,U);this._previewStart=this._getCellCompareValue(Dt.start),this._previewEnd=this._getCellCompareValue(Dt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const U=this._dateAdapter.getFirstDayOfWeek(),qe=this._dateAdapter.getDayOfWeekNames("narrow");let Dt=this._dateAdapter.getDayOfWeekNames("long").map((ri,ti)=>({long:ri,narrow:qe[ti]}));this._weekdays=Dt.slice(U).concat(Dt.slice(0,U))}_createWeekCells(){const U=this._dateAdapter.getNumDaysInMonth(this.activeDate),qe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let gt=0,Dt=this._firstWeekOffset;gt=0)&&(!this.maxDate||this._dateAdapter.compareDate(U,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(U))}_getDateInCurrentMonth(U){return U&&this._hasSameMonthAndYear(U,this.activeDate)?this._dateAdapter.getDate(U):null}_hasSameMonthAndYear(U,qe){return!(!U||!qe||this._dateAdapter.getMonth(U)!=this._dateAdapter.getMonth(qe)||this._dateAdapter.getYear(U)!=this._dateAdapter.getYear(qe))}_getCellCompareValue(U){if(U){const qe=this._dateAdapter.getYear(U),gt=this._dateAdapter.getMonth(U),Dt=this._dateAdapter.getDate(U);return new Date(qe,gt,Dt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(U){U instanceof V?(this._rangeStart=this._getCellCompareValue(U.start),this._rangeEnd=this._getCellCompareValue(U.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(U),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(U){return!this.dateFilter||this.dateFilter(U)}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.Y36(g.sBO),g.Y36(C.sG,8),g.Y36(C._A,8),g.Y36(X.Is,8),g.Y36(o,8))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-month-view"]],viewQuery:function(U,qe){if(1&U&&g.Gf(ke,5),2&U){let gt;g.iGM(gt=g.CRH())&&(qe._matCalendarBody=gt.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:[g.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","previewChange","keyup","keydown"],["scope","col"]],template:function(U,qe){1&U&&(g.TgZ(0,"table",0),g.TgZ(1,"thead",1),g.TgZ(2,"tr"),g.YNc(3,Fe,2,2,"th",2),g.qZA(),g.TgZ(4,"tr"),g._UZ(5,"th",3),g.qZA(),g.qZA(),g.TgZ(6,"tbody",4),g.NdJ("selectedValueChange",function(Dt){return qe._dateSelected(Dt)})("previewChange",function(Dt){return qe._previewChanged(Dt)})("keyup",function(Dt){return qe._handleCalendarBodyKeyup(Dt)})("keydown",function(Dt){return qe._handleCalendarBodyKeydown(Dt)}),g.qZA(),g.qZA()),2&U&&(g.xp6(3),g.Q6J("ngForOf",qe._weekdays),g.xp6(3),g.Q6J("label",qe._monthLabel)("rows",qe._weeks)("todayValue",qe._todayDate)("startValue",qe._rangeStart)("endValue",qe._rangeEnd)("comparisonStart",qe._comparisonRangeStart)("comparisonEnd",qe._comparisonRangeEnd)("previewStart",qe._previewStart)("previewEnd",qe._previewEnd)("isRange",qe._isRange)("labelMinRequiredCells",3)("activeCell",qe._dateAdapter.getDate(qe.activeDate)-1))},directives:[ke,w.sg],encapsulation:2,changeDetection:0}),Ke})();const n=24;let c=(()=>{class Ke{constructor(U,qe,gt){this._changeDetectorRef=U,this._dateAdapter=qe,this._dir=gt,this._rerenderSubscription=S.w.EMPTY,this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(U){let qe=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),h(this._dateAdapter,qe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(U){this._selected=U instanceof V?U:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U)),this._setSelectedYear(U)}get minDate(){return this._minDate}set minDate(U){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}get maxDate(){return this._maxDate}set maxDate(U){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ie.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const qe=this._dateAdapter.getYear(this._activeDate)-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let gt=0,Dt=[];gtthis._createCellForYear(ri))),Dt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(U){const qe=U.value;this.yearSelected.emit(this._dateAdapter.createDate(qe,0,1));let gt=this._dateAdapter.getMonth(this.activeDate),Dt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(qe,gt,1));this.selectedChange.emit(this._dateAdapter.createDate(qe,gt,Math.min(this._dateAdapter.getDate(this.activeDate),Dt)))}_handleCalendarBodyKeydown(U){const qe=this._activeDate,gt=this._isRtl();switch(U.keyCode){case L.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?1:-1);break;case L.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?-1:1);break;case L.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case L.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case L.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case L.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case L.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,U.altKey?-240:-n);break;case L.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,U.altKey?240:n);break;case L.K5:case L.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),U.preventDefault()}_handleCalendarBodyKeyup(U){(U.keyCode===L.L_||U.keyCode===L.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:U}),this._selectionKeyPressed=!1)}_getActiveCell(){return x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(U){const qe=this._dateAdapter.createDate(U,0,1),gt=this._dateAdapter.getYearName(qe),Dt=this.dateClass?this.dateClass(qe,"multi-year"):void 0;return new nt(U,gt,gt,this._shouldEnableYear(U),Dt)}_shouldEnableYear(U){if(null==U||this.maxDate&&U>this._dateAdapter.getYear(this.maxDate)||this.minDate&&U{class Ke{constructor(U,qe,gt,Dt){this._changeDetectorRef=U,this._dateFormats=qe,this._dateAdapter=gt,this._dir=Dt,this._rerenderSubscription=S.w.EMPTY,this.selectedChange=new g.vpe,this.monthSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(U){let qe=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._dateAdapter.getYear(qe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(U){this._selected=U instanceof V?U:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U)),this._setSelectedMonth(U)}get minDate(){return this._minDate}set minDate(U){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}get maxDate(){return this._maxDate}set maxDate(U){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ie.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(U){const qe=U.value,gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),qe,1);this.monthSelected.emit(gt);const Dt=this._dateAdapter.getNumDaysInMonth(gt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),qe,Math.min(this._dateAdapter.getDate(this.activeDate),Dt)))}_handleCalendarBodyKeydown(U){const qe=this._activeDate,gt=this._isRtl();switch(U.keyCode){case L.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?1:-1);break;case L.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?-1:1);break;case L.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case L.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case L.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case L.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case L.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,U.altKey?-10:-1);break;case L.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,U.altKey?10:1);break;case L.K5:case L.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(qe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),U.preventDefault()}_handleCalendarBodyKeyup(U){(U.keyCode===L.L_||U.keyCode===L.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:U}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let U=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(qe=>qe.map(gt=>this._createCellForMonth(gt,U[gt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(U){return U&&this._dateAdapter.getYear(U)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(U):null}_createCellForMonth(U,qe){const gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),U,1),Dt=this._dateAdapter.format(gt,this._dateFormats.display.monthYearA11yLabel),ri=this.dateClass?this.dateClass(gt,"year"):void 0;return new nt(U,qe.toLocaleUpperCase(),Dt,this._shouldEnableMonth(U),ri)}_shouldEnableMonth(U){const qe=this._dateAdapter.getYear(this.activeDate);if(null==U||this._isYearAndMonthAfterMaxDate(qe,U)||this._isYearAndMonthBeforeMinDate(qe,U))return!1;if(!this.dateFilter)return!0;for(let Dt=this._dateAdapter.createDate(qe,U,1);this._dateAdapter.getMonth(Dt)==U;Dt=this._dateAdapter.addCalendarDays(Dt,1))if(this.dateFilter(Dt))return!0;return!1}_isYearAndMonthAfterMaxDate(U,qe){if(this.maxDate){const gt=this._dateAdapter.getYear(this.maxDate),Dt=this._dateAdapter.getMonth(this.maxDate);return U>gt||U===gt&&qe>Dt}return!1}_isYearAndMonthBeforeMinDate(U,qe){if(this.minDate){const gt=this._dateAdapter.getYear(this.minDate),Dt=this._dateAdapter.getMonth(this.minDate);return U{class Ke{constructor(){this.changes=new O.xQ,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"}formatYearRange(U,qe){return`${U} \u2013 ${qe}`}}return Ke.\u0275fac=function(U){return new(U||Ke)},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Ut=0,mt=(()=>{class Ke{constructor(U,qe,gt,Dt,ri){this._intl=U,this.calendar=qe,this._dateAdapter=gt,this._dateFormats=Dt,this._buttonDescriptionId="mat-calendar-button-"+Ut++,this.calendar.stateChanges.subscribe(()=>ri.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 qe=this._dateAdapter.getYear(this.calendar.activeDate)-x(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),gt=qe+n-1,Dt=this._dateAdapter.getYearName(this._dateAdapter.createDate(qe,0,1)),ri=this._dateAdapter.getYearName(this._dateAdapter.createDate(gt,0,1));return this._intl.formatYearRange(Dt,ri)}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:-n)}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:n)}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(U,qe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(U)==this._dateAdapter.getYear(qe)&&this._dateAdapter.getMonth(U)==this._dateAdapter.getMonth(qe):"year"==this.calendar.currentView?this._dateAdapter.getYear(U)==this._dateAdapter.getYear(qe):h(this._dateAdapter,U,qe,this.calendar.minDate,this.calendar.maxDate)}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.Y36(lt),g.Y36((0,g.Gpc)(()=>Lt)),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(g.sBO))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ze,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","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(U,qe){1&U&&(g.F$t(),g.TgZ(0,"div",0),g.TgZ(1,"div",1),g.TgZ(2,"button",2),g.NdJ("click",function(){return qe.currentPeriodClicked()}),g.TgZ(3,"span"),g._uU(4),g.qZA(),g.O4$(),g.TgZ(5,"svg",3),g._UZ(6,"polygon",4),g.qZA(),g.qZA(),g.kcU(),g._UZ(7,"div",5),g.Hsn(8),g.TgZ(9,"button",6),g.NdJ("click",function(){return qe.previousClicked()}),g.qZA(),g.TgZ(10,"button",7),g.NdJ("click",function(){return qe.nextClicked()}),g.qZA(),g.qZA(),g.qZA()),2&U&&(g.xp6(2),g.uIk("aria-label",qe.periodButtonLabel)("aria-describedby",qe._buttonDescriptionId),g.xp6(1),g.uIk("id",qe._buttonDescriptionId),g.xp6(1),g.Oqu(qe.periodButtonText),g.xp6(1),g.ekj("mat-calendar-invert","month"!==qe.calendar.currentView),g.xp6(4),g.Q6J("disabled",!qe.previousEnabled()),g.uIk("aria-label",qe.prevButtonLabel),g.xp6(1),g.Q6J("disabled",!qe.nextEnabled()),g.uIk("aria-label",qe.nextButtonLabel))},directives:[A.lW,e.Qr],encapsulation:2,changeDetection:0}),Ke})(),Lt=(()=>{class Ke{constructor(U,qe,gt,Dt){this._dateAdapter=qe,this._dateFormats=gt,this._changeDetectorRef=Dt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this._userSelection=new g.vpe,this.stateChanges=new O.xQ,this._intlChanges=U.changes.subscribe(()=>{Dt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(U){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}get selected(){return this._selected}set selected(U){this._selected=U instanceof V?U:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}get minDate(){return this._minDate}set minDate(U){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}get maxDate(){return this._maxDate}set maxDate(U){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}get activeDate(){return this._clampedActiveDate}set activeDate(U){this._clampedActiveDate=this._dateAdapter.clampDate(U,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(U){const qe=this._currentView!==U?U:null;this._currentView=U,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),qe&&this.viewChanged.emit(qe)}ngAfterContentInit(){this._calendarHeaderPortal=new _.C5(this.headerComponent||mt),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(U){const qe=U.minDate||U.maxDate||U.dateFilter;if(qe&&!qe.firstChange){const gt=this._getCurrentViewComponent();gt&&(this._changeDetectorRef.detectChanges(),gt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(U){const qe=U.value;(this.selected instanceof V||qe&&!this._dateAdapter.sameDate(qe,this.selected))&&this.selectedChange.emit(qe),this._userSelection.emit(U)}_yearSelectedInMultiYearView(U){this.yearSelected.emit(U)}_monthSelectedInYearView(U){this.monthSelected.emit(U)}_goToDateInView(U,qe){this.activeDate=U,this.currentView=qe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.Y36(lt),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(g.sBO))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-calendar"]],viewQuery:function(U,qe){if(1&U&&(g.Gf(t,5),g.Gf(Ht,5),g.Gf(c,5)),2&U){let gt;g.iGM(gt=g.CRH())&&(qe.monthView=gt.first),g.iGM(gt=g.CRH())&&(qe.yearView=gt.first),g.iGM(gt=g.CRH())&&(qe.multiYearView=gt.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:[g._Bn([ye]),g.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(U,qe){1&U&&(g.YNc(0,ae,0,0,"ng-template",0),g.TgZ(1,"div",1),g.YNc(2,Ue,1,8,"mat-month-view",2),g.YNc(3,ve,1,6,"mat-year-view",3),g.YNc(4,He,1,6,"mat-multi-year-view",4),g.qZA()),2&U&&(g.Q6J("cdkPortalOutlet",qe._calendarHeaderPortal),g.xp6(1),g.Q6J("ngSwitch",qe.currentView),g.xp6(1),g.Q6J("ngSwitchCase","month"),g.xp6(1),g.Q6J("ngSwitchCase","year"),g.xp6(1),g.Q6J("ngSwitchCase","multi-year"))},directives:[t,Ht,c,_.Pl,e.kH,w.RF,w.n9],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}\n'],encapsulation:2,changeDetection:0}),Ke})();const Te={transformPanel:(0,Oe.X$)("transformPanel",[(0,Oe.eR)("void => enter-dropdown",(0,Oe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Oe.F4)([(0,Oe.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Oe.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Oe.eR)("void => enter-dialog",(0,Oe.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Oe.F4)([(0,Oe.oB)({opacity:0,transform:"scale(0.7)"}),(0,Oe.oB)({transform:"none",opacity:1})]))),(0,Oe.eR)("* => void",(0,Oe.jt)("100ms linear",(0,Oe.oB)({opacity:0})))]),fadeInCalendar:(0,Oe.X$)("fadeInCalendar",[(0,Oe.SB)("void",(0,Oe.oB)({opacity:0})),(0,Oe.SB)("enter",(0,Oe.oB)({opacity:1})),(0,Oe.eR)("void => *",(0,Oe.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ge=0;const j=new g.OlP("mat-datepicker-scroll-strategy"),te={provide:j,deps:[b.aV],useFactory:function N(Ke){return()=>Ke.scrollStrategies.reposition()}},oe=(0,C.pj)(class{constructor(Ke){this._elementRef=Ke}});let Ie=(()=>{class Ke extends oe{constructor(U,qe,gt,Dt,ri,ti){super(U),this._changeDetectorRef=qe,this._globalModel=gt,this._dateAdapter=Dt,this._rangeSelectionStrategy=ri,this._subscriptions=new S.w,this._animationDone=new O.xQ,this._actionsPortal=null,this._closeButtonText=ti.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,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(U){const qe=this._model.selection,gt=U.value,Dt=qe instanceof V;if(Dt&&this._rangeSelectionStrategy){const ri=this._rangeSelectionStrategy.selectionFinished(gt,qe,U.event);this._model.updateSelection(ri,this)}else gt&&(Dt||!this._dateAdapter.sameDate(gt,qe))&&this._model.add(gt);(!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)}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Q),g.Y36(C._A),g.Y36(o,8),g.Y36(lt))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker-content"]],viewQuery:function(U,qe){if(1&U&&g.Gf(Lt,5),2&U){let gt;g.iGM(gt=g.CRH())&&(qe._calendar=gt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(U,qe){1&U&&g.WFA("@transformPanel.done",function(){return qe._animationDone.next()}),2&U&&(g.d8E("@transformPanel",qe._animationState),g.ekj("mat-datepicker-content-touch",qe.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[g.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(U,qe){if(1&U&&(g.TgZ(0,"div",0),g.TgZ(1,"mat-calendar",1),g.NdJ("yearSelected",function(Dt){return qe.datepicker._selectYear(Dt)})("monthSelected",function(Dt){return qe.datepicker._selectMonth(Dt)})("viewChanged",function(Dt){return qe.datepicker._viewChanged(Dt)})("_userSelection",function(Dt){return qe._handleUserSelection(Dt)}),g.qZA(),g.YNc(2,z,0,0,"ng-template",2),g.TgZ(3,"button",3),g.NdJ("focus",function(){return qe._closeButtonFocused=!0})("blur",function(){return qe._closeButtonFocused=!1})("click",function(){return qe.datepicker.close()}),g._uU(4),g.qZA(),g.qZA()),2&U){let gt;g.ekj("mat-datepicker-content-container-with-custom-header",qe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",qe._actionsPortal),g.uIk("aria-modal",!0)("aria-labelledby",null!==(gt=qe._dialogLabelId)&&void 0!==gt?gt:void 0),g.xp6(1),g.Q6J("id",qe.datepicker.id)("ngClass",qe.datepicker.panelClass)("startAt",qe.datepicker.startAt)("startView",qe.datepicker.startView)("minDate",qe.datepicker._getMinDate())("maxDate",qe.datepicker._getMaxDate())("dateFilter",qe.datepicker._getDateFilter())("headerComponent",qe.datepicker.calendarHeaderComponent)("selected",qe._getSelected())("dateClass",qe.datepicker.dateClass)("comparisonStart",qe.comparisonStart)("comparisonEnd",qe.comparisonEnd)("@fadeInCalendar","enter"),g.xp6(1),g.Q6J("cdkPortalOutlet",qe._actionsPortal),g.xp6(1),g.ekj("cdk-visually-hidden",!qe._closeButtonFocused),g.Q6J("color",qe.color||"primary"),g.xp6(1),g.Oqu(qe._closeButtonText)}},directives:[Lt,A.lW,e.mK,w.mk,_.Pl],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}}\n"],encapsulation:2,data:{animation:[Te.transformPanel,Te.fadeInCalendar]},changeDetection:0}),Ke})(),ct=(()=>{class Ke{constructor(U,qe,gt,Dt,ri,ti,Di){this._overlay=U,this._ngZone=qe,this._viewContainerRef=gt,this._dateAdapter=ri,this._dir=ti,this._model=Di,this._inputStateChanges=S.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this.openedStream=new g.vpe,this.closedStream=new g.vpe,this._opened=!1,this.id="mat-datepicker-"+Ge++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new O.xQ,this._scrollStrategy=Dt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(U){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(U){this._color=U}get touchUi(){return this._touchUi}set touchUi(U){this._touchUi=(0,Ne.Ig)(U)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(U){const qe=(0,Ne.Ig)(U);qe!==this._disabled&&(this._disabled=qe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(U){this._restoreFocus=(0,Ne.Ig)(U)}get panelClass(){return this._panelClass}set panelClass(U){this._panelClass=(0,Ne.du)(U)}get opened(){return this._opened}set opened(U){(0,Ne.Ig)(U)?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(U){const qe=U.xPosition||U.yPosition;if(qe&&!qe.firstChange&&this._overlayRef){const gt=this._overlayRef.getConfig().positionStrategy;gt instanceof b._G&&(this._setConnectedPositions(gt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(U){this._model.add(U)}_selectYear(U){this.yearSelected.emit(U)}_selectMonth(U){this.monthSelected.emit(U)}_viewChanged(U){this.viewChanged.emit(U)}registerInput(U){return this._inputStateChanges.unsubscribe(),this.datepickerInput=U,this._inputStateChanges=U.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(U){this._actionsPortal=U}removeActions(U){U===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ue.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const qe=this._componentRef.instance;qe._startExitAnimation(),qe._animationDone.pipe((0,J.q)(1)).subscribe(()=>this._destroyOverlay())}const U=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(U)):U()}_applyPendingSelection(){var U,qe;null===(qe=null===(U=this._componentRef)||void 0===U?void 0:U.instance)||void 0===qe||qe._applyPendingSelection()}_forwardContentValues(U){U.datepicker=this,U.color=this.color,U._actionsPortal=this._actionsPortal,U._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const U=this.touchUi,qe=new _.C5(Ie,this._viewContainerRef),gt=this._overlayRef=this._overlay.create(new b.X_({positionStrategy:U?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[U?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:U?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(U?"dialog":"popup")}));this._getCloseStream(gt).subscribe(Dt=>{Dt&&Dt.preventDefault(),this.close()}),this._componentRef=gt.attach(qe),this._forwardContentValues(this._componentRef.instance),U||this._ngZone.onStable.pipe((0,J.q)(1)).subscribe(()=>gt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const U=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(U)}_setConnectedPositions(U){const qe="end"===this.xPosition?"end":"start",gt="start"===qe?"end":"start",Dt="above"===this.yPosition?"bottom":"top",ri="top"===Dt?"bottom":"top";return U.withPositions([{originX:qe,originY:ri,overlayX:qe,overlayY:Dt},{originX:qe,originY:Dt,overlayX:qe,overlayY:ri},{originX:gt,originY:ri,overlayX:gt,overlayY:Dt},{originX:gt,originY:Dt,overlayX:gt,overlayY:ri}])}_getCloseStream(U){return(0,m.T)(U.backdropClick(),U.detachments(),U.keydownEvents().pipe((0,ge.h)(qe=>qe.keyCode===L.hY&&!(0,L.Vb)(qe)||this.datepickerInput&&(0,L.Vb)(qe,"altKey")&&qe.keyCode===L.LH)))}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.Y36(b.aV),g.Y36(g.R0b),g.Y36(g.s_b),g.Y36(j),g.Y36(C._A,8),g.Y36(X.Is,8),g.Y36(Q))},Ke.\u0275dir=g.lG2({type:Ke,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:[g.TTD]}),Ke})(),bt=(()=>{class Ke extends ct{}return Ke.\u0275fac=function(){let vt;return function(qe){return(vt||(vt=g.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[g._Bn([ye,{provide:ct,useExisting:Ke}]),g.qOj],decls:0,vars:0,template:function(U,qe){},encapsulation:2,changeDetection:0}),Ke})();class xt{constructor(vt,U){this.target=vt,this.targetElement=U,this.value=this.target.value}}let Yt=(()=>{class Ke{constructor(U,qe,gt){this._elementRef=U,this._dateAdapter=qe,this._dateFormats=gt,this.dateChange=new g.vpe,this.dateInput=new g.vpe,this.stateChanges=new O.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=S.w.EMPTY,this._localeSubscription=S.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value));return!ri||this._matchesFilter(ri)?null:{matDatepickerFilter:!0}},this._minValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),ti=this._getMinDate();return!ti||!ri||this._dateAdapter.compareDate(ti,ri)<=0?null:{matDatepickerMin:{min:ti,actual:ri}}},this._maxValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),ti=this._getMaxDate();return!ti||!ri||this._dateAdapter.compareDate(ti,ri)>=0?null:{matDatepickerMax:{max:ti,actual:ri}}},this._lastValueValid=!1,this._localeSubscription=qe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(U){this._assignValueProgrammatically(U)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(U){const qe=(0,Ne.Ig)(U),gt=this._elementRef.nativeElement;this._disabled!==qe&&(this._disabled=qe,this.stateChanges.next(void 0)),qe&&this._isInitialized&>.blur&>.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(U){this._model=U,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(qe=>{if(this._shouldHandleChangeEvent(qe)){const gt=this._getValueFromModel(qe.selection);this._lastValueValid=this._isValidValue(gt),this._cvaOnChange(gt),this._onTouched(),this._formatValue(gt),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)),this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(U){(function It(Ke,vt){const U=Object.keys(Ke);for(let qe of U){const{previousValue:gt,currentValue:Dt}=Ke[qe];if(!vt.isDateInstance(gt)||!vt.isDateInstance(Dt))return!0;if(!vt.sameDate(gt,Dt))return!0}return!1})(U,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(U){this._validatorOnChange=U}validate(U){return this._validator?this._validator(U):null}writeValue(U){this._assignValueProgrammatically(U)}registerOnChange(U){this._cvaOnChange=U}registerOnTouched(U){this._onTouched=U}setDisabledState(U){this.disabled=U}_onKeydown(U){U.altKey&&U.keyCode===L.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),U.preventDefault())}_onInput(U){const qe=this._lastValueValid;let gt=this._dateAdapter.parse(U,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(gt),gt=this._dateAdapter.getValidDateOrNull(gt),this._dateAdapter.sameDate(gt,this.value)?(U&&!this.value&&this._cvaOnChange(gt),qe!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(gt),this._cvaOnChange(gt),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(U){this._elementRef.nativeElement.value=U?this._dateAdapter.format(U,this._dateFormats.display.dateInput):""}_assignValue(U){this._model?(this._assignValueToModel(U),this._pendingValue=null):this._pendingValue=U}_isValidValue(U){return!U||this._dateAdapter.isValid(U)}_parentDisabled(){return!1}_assignValueProgrammatically(U){U=this._dateAdapter.deserialize(U),this._lastValueValid=this._isValidValue(U),U=this._dateAdapter.getValidDateOrNull(U),this._assignValue(U),this._formatValue(U)}_matchesFilter(U){const qe=this._getDateFilter();return!qe||qe(U)}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.Y36(g.SBq),g.Y36(C._A,8),g.Y36(C.sG,8))},Ke.\u0275dir=g.lG2({type:Ke,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[g.TTD]}),Ke})();const Rt={provide:T.JU,useExisting:(0,g.Gpc)(()=>Bt),multi:!0},Et={provide:T.Cf,useExisting:(0,g.Gpc)(()=>Bt),multi:!0};let Bt=(()=>{class Ke extends Yt{constructor(U,qe,gt,Dt){super(U,qe,gt),this._formField=Dt,this._closedSubscription=S.w.EMPTY,this._validator=T.kI.compose(super._getValidators())}set matDatepicker(U){U&&(this._datepicker=U,this._closedSubscription=U.closedStream.subscribe(()=>this._onTouched()),this._registerModel(U.registerInput(this)))}get min(){return this._min}set min(U){const qe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U));this._dateAdapter.sameDate(qe,this._min)||(this._min=qe,this._validatorOnChange())}get max(){return this._max}set max(U){const qe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U));this._dateAdapter.sameDate(qe,this._max)||(this._max=qe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(U){const qe=this._matchesFilter(this.value);this._dateFilter=U,this._matchesFilter(this.value)!==qe&&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(U){return U}_assignValueToModel(U){this._model&&this._model.updateSelection(U,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(U){return U.source!==this}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.Y36(g.SBq),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(Z.G_,8))},Ke.\u0275dir=g.lG2({type:Ke,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(U,qe){1&U&&g.NdJ("input",function(Dt){return qe._onInput(Dt.target.value)})("change",function(){return qe._onChange()})("blur",function(){return qe._onBlur()})("keydown",function(Dt){return qe._onKeydown(Dt)}),2&U&&(g.Ikx("disabled",qe.disabled),g.uIk("aria-haspopup",qe._datepicker?"dialog":null)("aria-owns",(null==qe._datepicker?null:qe._datepicker.opened)&&qe._datepicker.id||null)("min",qe.min?qe._dateAdapter.toIso8601(qe.min):null)("max",qe.max?qe._dateAdapter.toIso8601(qe.max):null)("data-mat-calendar",qe._datepicker?qe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[g._Bn([Rt,Et,{provide:W.Jk,useExisting:Ke}]),g.qOj]}),Ke})(),Jt=(()=>{class Ke{}return Ke.\u0275fac=function(U){return new(U||Ke)},Ke.\u0275dir=g.lG2({type:Ke,selectors:[["","matDatepickerToggleIcon",""]]}),Ke})(),ai=(()=>{class Ke{constructor(U,qe,gt){this._intl=U,this._changeDetectorRef=qe,this._stateChanges=S.w.EMPTY;const Dt=Number(gt);this.tabIndex=Dt||0===Dt?Dt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(U){this._disabled=(0,Ne.Ig)(U)}ngOnChanges(U){U.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(U){this.datepicker&&!this.disabled&&(this.datepicker.open(),U.stopPropagation())}_watchStateChanges(){const U=this.datepicker?this.datepicker.stateChanges:(0,B.of)(),qe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,B.of)(),gt=this.datepicker?(0,m.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,B.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,m.T)(this._intl.changes,U,qe,gt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Ke.\u0275fac=function(U){return new(U||Ke)(g.Y36(lt),g.Y36(g.sBO),g.$8M("tabindex"))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker-toggle"]],contentQueries:function(U,qe,gt){if(1&U&&g.Suo(gt,Jt,5),2&U){let Dt;g.iGM(Dt=g.CRH())&&(qe._customIcon=Dt.first)}},viewQuery:function(U,qe){if(1&U&&g.Gf(I,5),2&U){let gt;g.iGM(gt=g.CRH())&&(qe._button=gt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(U,qe){1&U&&g.NdJ("click",function(Dt){return qe._open(Dt)}),2&U&&(g.uIk("tabindex",null)("data-mat-calendar",qe.datepicker?qe.datepicker.id:null),g.ekj("mat-datepicker-toggle-active",qe.datepicker&&qe.datepicker.opened)("mat-accent",qe.datepicker&&"accent"===qe.datepicker.color)("mat-warn",qe.datepicker&&"warn"===qe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[g.TTD],ngContentSelectors:Me,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(U,qe){1&U&&(g.F$t(Ae),g.TgZ(0,"button",0,1),g.YNc(2,me,2,0,"svg",2),g.Hsn(3),g.qZA()),2&U&&(g.Q6J("disabled",qe.disabled)("disableRipple",qe.disableRipple),g.uIk("aria-haspopup",qe.datepicker?"dialog":null)("aria-label",qe.ariaLabel||qe._intl.openCalendarLabel)("tabindex",qe.disabled?-1:qe.tabIndex),g.xp6(2),g.Q6J("ngIf",!qe._customIcon))},directives:[A.lW,w.O5],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}\n"],encapsulation:2,changeDetection:0}),Ke})(),ot=(()=>{class Ke{}return Ke.\u0275fac=function(U){return new(U||Ke)},Ke.\u0275mod=g.oAB({type:Ke}),Ke.\u0275inj=g.cJS({providers:[lt,te],imports:[[w.ez,A.ot,b.U8,e.rt,_.eL,C.BQ],E.ZD]}),Ke})()},48966:(Xe,_e,p)=>{"use strict";p.d(_e,{WI:()=>Pe,uw:()=>z,H8:()=>we,vA:()=>Oe,xY:()=>pe,Is:()=>Je,so:()=>ce,uh:()=>Me});var e=p(92845),b=p(47429),_=p(5e3),w=p(90508),g=p(50226),A=p(8929),E=p(88514),C=p(42654),O=p(21086),S=p(92198),m=p(72986),B=p(1059),L=p(70925),J=p(69808),ie=p(41777),ge=p(15664),X=p(91159),Ne=p(76360);function ue(nt,ke){}class Oe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const T={dialogContainer:(0,ie.X$)("dialogContainer",[(0,ie.SB)("void, exit",(0,ie.oB)({opacity:0,transform:"scale(0.7)"})),(0,ie.SB)("enter",(0,ie.oB)({transform:"none"})),(0,ie.eR)("* => enter",(0,ie.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.oB)({transform:"none",opacity:1}))),(0,ie.eR)("* => void, * => exit",(0,ie.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ie.oB)({opacity:0})))])};let W=(()=>{class nt extends b.en{constructor(H,he,P,R,V,Q,Se,je){super(),this._elementRef=H,this._focusTrapFactory=he,this._changeDetectorRef=P,this._config=V,this._interactivityChecker=Q,this._ngZone=Se,this._focusMonitor=je,this._animationStateChanged=new _.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ye=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Ye)),this._ariaLabelledBy=V.ariaLabelledBy||null,this._document=R}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(H){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(H)}attachTemplatePortal(H){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(H)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(H,he){this._interactivityChecker.isFocusable(H)||(H.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{H.addEventListener("blur",()=>H.removeAttribute("tabindex")),H.addEventListener("mousedown",()=>H.removeAttribute("tabindex"))})),H.focus(he)}_focusByCssSelector(H,he){let P=this._elementRef.nativeElement.querySelector(H);P&&this._forceFocus(P,he)}_trapFocus(){const H=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||H.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(he=>{he||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 H=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&H&&"function"==typeof H.focus){const he=(0,L.ht)(),P=this._elementRef.nativeElement;(!he||he===this._document.body||he===P||P.contains(he))&&(this._focusMonitor?(this._focusMonitor.focusVia(H,this._closeInteractionType),this._closeInteractionType=null):H.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,L.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const H=this._elementRef.nativeElement,he=(0,L.ht)();return H===he||H.contains(he)}}return nt.\u0275fac=function(H){return new(H||nt)(_.Y36(_.SBq),_.Y36(ge.qV),_.Y36(_.sBO),_.Y36(J.K0,8),_.Y36(Oe),_.Y36(ge.ic),_.Y36(_.R0b),_.Y36(ge.tE))},nt.\u0275dir=_.lG2({type:nt,viewQuery:function(H,he){if(1&H&&_.Gf(b.Pl,7),2&H){let P;_.iGM(P=_.CRH())&&(he._portalOutlet=P.first)}},features:[_.qOj]}),nt})(),Y=(()=>{class nt extends W{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:H,totalTime:he}){"enter"===H?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:he})):"exit"===H&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:he}))}_onAnimationStart({toState:H,totalTime:he}){"enter"===H?this._animationStateChanged.next({state:"opening",totalTime:he}):("exit"===H||"void"===H)&&this._animationStateChanged.next({state:"closing",totalTime:he})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return nt.\u0275fac=function(){let ke;return function(he){return(ke||(ke=_.n5z(nt)))(he||nt)}}(),nt.\u0275cmp=_.Xpm({type:nt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(H,he){1&H&&_.WFA("@dialogContainer.start",function(R){return he._onAnimationStart(R)})("@dialogContainer.done",function(R){return he._onAnimationDone(R)}),2&H&&(_.Ikx("id",he._id),_.uIk("role",he._config.role)("aria-labelledby",he._config.ariaLabel?null:he._ariaLabelledBy)("aria-label",he._config.ariaLabel)("aria-describedby",he._config.ariaDescribedBy||null),_.d8E("@dialogContainer",he._state))},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(H,he){1&H&&_.YNc(0,ue,0,0,"ng-template",0)},directives:[b.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[T.dialogContainer]}}),nt})(),ee=0;class ce{constructor(ke,H,he="mat-dialog-"+ee++){this._overlayRef=ke,this._containerInstance=H,this.id=he,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A.xQ,this._afterClosed=new A.xQ,this._beforeClosed=new A.xQ,this._state=0,H._id=he,H._animationStateChanged.pipe((0,S.h)(P=>"opened"===P.state),(0,m.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),H._animationStateChanged.pipe((0,S.h)(P=>"closed"===P.state),(0,m.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ke.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),ke.keydownEvents().pipe((0,S.h)(P=>P.keyCode===X.hY&&!this.disableClose&&!(0,X.Vb)(P))).subscribe(P=>{P.preventDefault(),le(this,"keyboard")}),ke.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():le(this,"mouse")})}close(ke){this._result=ke,this._containerInstance._animationStateChanged.pipe((0,S.h)(H=>"closing"===H.state),(0,m.q)(1)).subscribe(H=>{this._beforeClosed.next(ke),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),H.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(ke){let H=this._getPositionStrategy();return ke&&(ke.left||ke.right)?ke.left?H.left(ke.left):H.right(ke.right):H.centerHorizontally(),ke&&(ke.top||ke.bottom)?ke.top?H.top(ke.top):H.bottom(ke.bottom):H.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(ke="",H=""){return this._overlayRef.updateSize({width:ke,height:H}),this._overlayRef.updatePosition(),this}addPanelClass(ke){return this._overlayRef.addPanelClass(ke),this}removePanelClass(ke){return this._overlayRef.removePanelClass(ke),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function le(nt,ke,H){return void 0!==nt._containerInstance&&(nt._containerInstance._closeInteractionType=ke),nt.close(H)}const Pe=new _.OlP("MatDialogData"),Fe=new _.OlP("mat-dialog-default-options"),ze=new _.OlP("mat-dialog-scroll-strategy"),ve={provide:ze,deps:[e.aV],useFactory:function Ue(nt){return()=>nt.scrollStrategies.block()}};let He=(()=>{class nt{constructor(H,he,P,R,V,Q,Se,je,Ye,ye){this._overlay=H,this._injector=he,this._defaultOptions=P,this._parentDialog=R,this._overlayContainer=V,this._dialogRefConstructor=Se,this._dialogContainerType=je,this._dialogDataToken=Ye,this._animationMode=ye,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A.xQ,this._afterOpenedAtThisLevel=new A.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,E.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,B.O)(void 0))),this._scrollStrategy=Q}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const H=this._parentDialog;return H?H._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(H,he){if(he=function I(nt,ke){return Object.assign(Object.assign({},ke),nt)}(he,this._defaultOptions||new Oe),he.id&&this.getDialogById(he.id),this._dialogAnimatingOpen)return this._lastDialogRef;const P=this._createOverlay(he),R=this._attachDialogContainer(P,he);if("NoopAnimations"!==this._animationMode){const Q=R._animationStateChanged.subscribe(Se=>{"opening"===Se.state&&(this._dialogAnimatingOpen=!0),"opened"===Se.state&&(this._dialogAnimatingOpen=!1,Q.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new C.w),this._animationStateSubscriptions.add(Q)}const V=this._attachDialogContent(H,R,P,he);return this._lastDialogRef=V,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(V),V.afterClosed().subscribe(()=>this._removeOpenDialog(V)),this.afterOpened.next(V),R._initializeWithAttachedContent(),V}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(H){return this.openDialogs.find(he=>he.id===H)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(H){const he=this._getOverlayConfig(H);return this._overlay.create(he)}_getOverlayConfig(H){const he=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:H.scrollStrategy||this._scrollStrategy(),panelClass:H.panelClass,hasBackdrop:H.hasBackdrop,direction:H.direction,minWidth:H.minWidth,minHeight:H.minHeight,maxWidth:H.maxWidth,maxHeight:H.maxHeight,disposeOnNavigation:H.closeOnNavigation});return H.backdropClass&&(he.backdropClass=H.backdropClass),he}_attachDialogContainer(H,he){const R=_.zs3.create({parent:he&&he.viewContainerRef&&he.viewContainerRef.injector||this._injector,providers:[{provide:Oe,useValue:he}]}),V=new b.C5(this._dialogContainerType,he.viewContainerRef,R,he.componentFactoryResolver);return H.attach(V).instance}_attachDialogContent(H,he,P,R){const V=new this._dialogRefConstructor(P,he,R.id);if(H instanceof _.Rgc)he.attachTemplatePortal(new b.UE(H,null,{$implicit:R.data,dialogRef:V}));else{const Q=this._createInjector(R,V,he),Se=he.attachComponentPortal(new b.C5(H,R.viewContainerRef,Q));V.componentInstance=Se.instance}return V.updateSize(R.width,R.height).updatePosition(R.position),V}_createInjector(H,he,P){const R=H&&H.viewContainerRef&&H.viewContainerRef.injector,V=[{provide:this._dialogContainerType,useValue:P},{provide:this._dialogDataToken,useValue:H.data},{provide:this._dialogRefConstructor,useValue:he}];return H.direction&&(!R||!R.get(g.Is,null,_.XFs.Optional))&&V.push({provide:g.Is,useValue:{value:H.direction,change:(0,O.of)()}}),_.zs3.create({parent:R||this._injector,providers:V})}_removeOpenDialog(H){const he=this.openDialogs.indexOf(H);he>-1&&(this.openDialogs.splice(he,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((P,R)=>{P?R.setAttribute("aria-hidden",P):R.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const H=this._overlayContainer.getContainerElement();if(H.parentElement){const he=H.parentElement.children;for(let P=he.length-1;P>-1;P--){let R=he[P];R!==H&&"SCRIPT"!==R.nodeName&&"STYLE"!==R.nodeName&&!R.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(R,R.getAttribute("aria-hidden")),R.setAttribute("aria-hidden","true"))}}}_closeDialogs(H){let he=H.length;for(;he--;)H[he].close()}}return nt.\u0275fac=function(H){_.$Z()},nt.\u0275dir=_.lG2({type:nt}),nt})(),z=(()=>{class nt extends He{constructor(H,he,P,R,V,Q,Se,je){super(H,he,R,Q,Se,V,ce,Y,Pe,je)}}return nt.\u0275fac=function(H){return new(H||nt)(_.LFG(e.aV),_.LFG(_.zs3),_.LFG(J.Ye,8),_.LFG(Fe,8),_.LFG(ze),_.LFG(nt,12),_.LFG(e.Xj),_.LFG(Ne.Qb,8))},nt.\u0275prov=_.Yz7({token:nt,factory:nt.\u0275fac}),nt})(),me=0,Me=(()=>{class nt{constructor(H,he,P){this._dialogRef=H,this._elementRef=he,this._dialog=P,this.id="mat-dialog-title-"+me++}ngOnInit(){this._dialogRef||(this._dialogRef=function $e(nt,ke){let H=nt.nativeElement.parentElement;for(;H&&!H.classList.contains("mat-dialog-container");)H=H.parentElement;return H?ke.find(he=>he.id===H.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const H=this._dialogRef._containerInstance;H&&!H._ariaLabelledBy&&(H._ariaLabelledBy=this.id)})}}return nt.\u0275fac=function(H){return new(H||nt)(_.Y36(ce,8),_.Y36(_.SBq),_.Y36(z))},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(H,he){2&H&&_.Ikx("id",he.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),nt})(),pe=(()=>{class nt{}return nt.\u0275fac=function(H){return new(H||nt)},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),nt})(),we=(()=>{class nt{}return nt.\u0275fac=function(H){return new(H||nt)},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),nt})(),Je=(()=>{class nt{}return nt.\u0275fac=function(H){return new(H||nt)},nt.\u0275mod=_.oAB({type:nt}),nt.\u0275inj=_.cJS({providers:[z,ve],imports:[[e.U8,b.eL,w.BQ],w.BQ]}),nt})()},4834:(Xe,_e,p)=>{"use strict";p.d(_e,{d:()=>w,t:()=>g});var e=p(5e3),b=p(63191),_=p(90508);let w=(()=>{class A{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(C){this._vertical=(0,b.Ig)(C)}get inset(){return this._inset}set inset(C){this._inset=(0,b.Ig)(C)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(C,O){2&C&&(e.uIk("aria-orientation",O.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",O.vertical)("mat-divider-horizontal",!O.vertical)("mat-divider-inset",O.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(C,O){},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}\n"],encapsulation:2,changeDetection:0}),A})(),g=(()=>{class A{}return A.\u0275fac=function(C){return new(C||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[_.BQ],_.BQ]}),A})()},81125:(Xe,_e,p)=>{"use strict";p.d(_e,{pp:()=>ke,To:()=>H,ib:()=>Ae,HS:()=>z,u4:()=>Je,yz:()=>$e,yK:()=>nt});var e=p(5e3),b=p(63191),_=p(8929),w=p(42654),g=p(20449);let A=0;const E=new e.OlP("CdkAccordion");let C=(()=>{class he{constructor(){this._stateChanges=new _.xQ,this._openCloseAllActions=new _.xQ,this.id="cdk-accordion-"+A++,this._multi=!1}get multi(){return this._multi}set multi(R){this._multi=(0,b.Ig)(R)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(R){this._stateChanges.next(R)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return he.\u0275fac=function(R){return new(R||he)},he.\u0275dir=e.lG2({type:he,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:E,useExisting:he}]),e.TTD]}),he})(),O=0,S=(()=>{class he{constructor(R,V,Q){this.accordion=R,this._changeDetectorRef=V,this._expansionDispatcher=Q,this._openCloseAllSubscription=w.w.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-"+O++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Q.listen((Se,je)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===je&&this.id!==Se&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(R){R=(0,b.Ig)(R),this._expanded!==R&&(this._expanded=R,this.expandedChange.emit(R),R?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(R){this._disabled=(0,b.Ig)(R)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(R=>{this.disabled||(this.expanded=R)})}}return he.\u0275fac=function(R){return new(R||he)(e.Y36(E,12),e.Y36(e.sBO),e.Y36(g.A8))},he.\u0275dir=e.lG2({type:he,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:E,useValue:void 0}])]}),he})(),m=(()=>{class he{}return he.\u0275fac=function(R){return new(R||he)},he.\u0275mod=e.oAB({type:he}),he.\u0275inj=e.cJS({}),he})();var B=p(47429),L=p(69808),J=p(90508),ie=p(15664),ge=p(75778),X=p(1059),Ne=p(92198),ue=p(72986),Oe=p(91159),T=p(76360),Z=p(68896),W=p(36787),Y=p(41777);const ee=["body"];function ce(he,P){}const le=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Pe=["mat-expansion-panel-header","*","mat-action-row"];function Fe(he,P){if(1&he&&e._UZ(0,"span",2),2&he){const R=e.oxw();e.Q6J("@indicatorRotate",R._getExpandedState())}}const ze=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ae=["mat-panel-title","mat-panel-description","*"],Ue=new e.OlP("MAT_ACCORDION"),ve="225ms cubic-bezier(0.4,0.0,0.2,1)",He={indicatorRotate:(0,Y.X$)("indicatorRotate",[(0,Y.SB)("collapsed, void",(0,Y.oB)({transform:"rotate(0deg)"})),(0,Y.SB)("expanded",(0,Y.oB)({transform:"rotate(180deg)"})),(0,Y.eR)("expanded <=> collapsed, void => collapsed",(0,Y.jt)(ve))]),bodyExpansion:(0,Y.X$)("bodyExpansion",[(0,Y.SB)("collapsed, void",(0,Y.oB)({height:"0px",visibility:"hidden"})),(0,Y.SB)("expanded",(0,Y.oB)({height:"*",visibility:"visible"})),(0,Y.eR)("expanded <=> collapsed, void => collapsed",(0,Y.jt)(ve))])};let z=(()=>{class he{constructor(R){this._template=R}}return he.\u0275fac=function(R){return new(R||he)(e.Y36(e.Rgc))},he.\u0275dir=e.lG2({type:he,selectors:[["ng-template","matExpansionPanelContent",""]]}),he})(),I=0;const me=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Ae=(()=>{class he extends S{constructor(R,V,Q,Se,je,Ye,ye){super(R,V,Q),this._viewContainerRef=Se,this._animationMode=Ye,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new _.xQ,this._headerId="mat-expansion-panel-header-"+I++,this._bodyAnimationDone=new _.xQ,this.accordion=R,this._document=je,this._bodyAnimationDone.pipe((0,ge.x)((re,r)=>re.fromState===r.fromState&&re.toState===r.toState)).subscribe(re=>{"void"!==re.fromState&&("expanded"===re.toState?this.afterExpand.emit():"collapsed"===re.toState&&this.afterCollapse.emit())}),ye&&(this.hideToggle=ye.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(R){this._hideToggle=(0,b.Ig)(R)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(R){this._togglePosition=R}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,X.O)(null),(0,Ne.h)(()=>this.expanded&&!this._portal),(0,ue.q)(1)).subscribe(()=>{this._portal=new B.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(R){this._inputChanges.next(R)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const R=this._document.activeElement,V=this._body.nativeElement;return R===V||V.contains(R)}return!1}}return he.\u0275fac=function(R){return new(R||he)(e.Y36(Ue,12),e.Y36(e.sBO),e.Y36(g.A8),e.Y36(e.s_b),e.Y36(L.K0),e.Y36(T.Qb,8),e.Y36(me,8))},he.\u0275cmp=e.Xpm({type:he,selectors:[["mat-expansion-panel"]],contentQueries:function(R,V,Q){if(1&R&&e.Suo(Q,z,5),2&R){let Se;e.iGM(Se=e.CRH())&&(V._lazyContent=Se.first)}},viewQuery:function(R,V){if(1&R&&e.Gf(ee,5),2&R){let Q;e.iGM(Q=e.CRH())&&(V._body=Q.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(R,V){2&R&&e.ekj("mat-expanded",V.expanded)("_mat-animation-noopable","NoopAnimations"===V._animationMode)("mat-expansion-panel-spacing",V._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:Ue,useValue:void 0}]),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(R,V){1&R&&(e.F$t(le),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Se){return V._bodyAnimationDone.next(Se)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,ce,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&R&&(e.xp6(1),e.Q6J("@bodyExpansion",V._getExpandedState())("id",V.id),e.uIk("aria-labelledby",V._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",V._portal))},directives:[B.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[He.bodyExpansion]},changeDetection:0}),he})();class pe{}const we=(0,J.sb)(pe);let $e=(()=>{class he extends we{constructor(R,V,Q,Se,je,Ye,ye){super(),this.panel=R,this._element=V,this._focusMonitor=Q,this._changeDetectorRef=Se,this._animationMode=Ye,this._parentChangeSubscription=w.w.EMPTY;const re=R.accordion?R.accordion._stateChanges.pipe((0,Ne.h)(r=>!(!r.hideToggle&&!r.togglePosition))):Z.E;this.tabIndex=parseInt(ye||"")||0,this._parentChangeSubscription=(0,W.T)(R.opened,R.closed,re,R._inputChanges.pipe((0,Ne.h)(r=>!!(r.hideToggle||r.disabled||r.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),R.closed.pipe((0,Ne.h)(()=>R._containsFocus())).subscribe(()=>Q.focusVia(V,"program")),je&&(this.expandedHeight=je.expandedHeight,this.collapsedHeight=je.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const R=this._isExpanded();return R&&this.expandedHeight?this.expandedHeight:!R&&this.collapsedHeight?this.collapsedHeight:null}_keydown(R){switch(R.keyCode){case Oe.L_:case Oe.K5:(0,Oe.Vb)(R)||(R.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(R))}}focus(R,V){R?this._focusMonitor.focusVia(this._element,R,V):this._element.nativeElement.focus(V)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(R=>{R&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return he.\u0275fac=function(R){return new(R||he)(e.Y36(Ae,1),e.Y36(e.SBq),e.Y36(ie.tE),e.Y36(e.sBO),e.Y36(me,8),e.Y36(T.Qb,8),e.$8M("tabindex"))},he.\u0275cmp=e.Xpm({type:he,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(R,V){1&R&&e.NdJ("click",function(){return V._toggle()})("keydown",function(Se){return V._keydown(Se)}),2&R&&(e.uIk("id",V.panel._headerId)("tabindex",V.tabIndex)("aria-controls",V._getPanelId())("aria-expanded",V._isExpanded())("aria-disabled",V.panel.disabled),e.Udp("height",V._getHeaderHeight()),e.ekj("mat-expanded",V._isExpanded())("mat-expansion-toggle-indicator-after","after"===V._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===V._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===V._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:ae,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(R,V){1&R&&(e.F$t(ze),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,Fe,1,1,"span",1)),2&R&&(e.xp6(4),e.Q6J("ngIf",V._showToggle()))},directives:[L.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[He.indicatorRotate]},changeDetection:0}),he})(),Je=(()=>{class he{}return he.\u0275fac=function(R){return new(R||he)},he.\u0275dir=e.lG2({type:he,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),he})(),nt=(()=>{class he{}return he.\u0275fac=function(R){return new(R||he)},he.\u0275dir=e.lG2({type:he,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),he})(),ke=(()=>{class he extends C{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(R){this._hideToggle=(0,b.Ig)(R)}ngAfterContentInit(){this._headers.changes.pipe((0,X.O)(this._headers)).subscribe(R=>{this._ownHeaders.reset(R.filter(V=>V.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ie.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(R){this._keyManager.onKeydown(R)}_handleHeaderFocus(R){this._keyManager.updateActiveItem(R)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return he.\u0275fac=function(){let P;return function(V){return(P||(P=e.n5z(he)))(V||he)}}(),he.\u0275dir=e.lG2({type:he,selectors:[["mat-accordion"]],contentQueries:function(R,V,Q){if(1&R&&e.Suo(Q,$e,5),2&R){let Se;e.iGM(Se=e.CRH())&&(V._headers=Se)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(R,V){2&R&&e.ekj("mat-accordion-multi",V.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:Ue,useExisting:he}]),e.qOj]}),he})(),H=(()=>{class he{}return he.\u0275fac=function(R){return new(R||he)},he.\u0275mod=e.oAB({type:he}),he.\u0275inj=e.cJS({imports:[[L.ez,J.BQ,m,B.eL]]}),he})()},67322:(Xe,_e,p)=>{"use strict";p.d(_e,{G_:()=>Ye,TO:()=>He,KE:()=>ye,Eo:()=>I,lN:()=>re,bx:()=>$e,hX:()=>Je,UY:()=>nt,R9:()=>P});var e=p(17144),b=p(69808),_=p(5e3),w=p(90508),g=p(63191),A=p(8929),E=p(36787),C=p(23753),O=p(1059),S=p(7625),m=p(72986),B=p(41777),L=p(76360),J=p(50226),ie=p(70925);const ge=["connectionContainer"],X=["inputContainer"],Ne=["label"];function ue(r,o){1&r&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15),_._UZ(3,"div",16),_._UZ(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15),_._UZ(7,"div",16),_._UZ(8,"div",17),_.qZA(),_.BQk())}function Oe(r,o){if(1&r){const d=_.EpF();_.TgZ(0,"div",19),_.NdJ("cdkObserveContent",function(){return _.CHM(d),_.oxw().updateOutlineGap()}),_.Hsn(1,1),_.qZA()}if(2&r){const d=_.oxw();_.Q6J("cdkObserveContentDisabled","outline"!=d.appearance)}}function T(r,o){if(1&r&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&r){const d=_.oxw(2);_.xp6(3),_.Oqu(d._control.placeholder)}}function Z(r,o){1&r&&_.Hsn(0,3,["*ngSwitchCase","true"])}function W(r,o){1&r&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function Y(r,o){if(1&r){const d=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){return _.CHM(d),_.oxw().updateOutlineGap()}),_.YNc(2,T,4,1,"ng-container",12),_.YNc(3,Z,1,0,"ng-content",12),_.YNc(4,W,2,0,"span",22),_.qZA()}if(2&r){const d=_.oxw();_.ekj("mat-empty",d._control.empty&&!d._shouldAlwaysFloat())("mat-form-field-empty",d._control.empty&&!d._shouldAlwaysFloat())("mat-accent","accent"==d.color)("mat-warn","warn"==d.color),_.Q6J("cdkObserveContentDisabled","outline"!=d.appearance)("id",d._labelId)("ngSwitch",d._hasLabel()),_.uIk("for",d._control.id)("aria-owns",d._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!d.hideRequiredMarker&&d._control.required&&!d._control.disabled)}}function ee(r,o){1&r&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function ce(r,o){if(1&r&&(_.TgZ(0,"div",25),_._UZ(1,"span",26),_.qZA()),2&r){const d=_.oxw();_.xp6(1),_.ekj("mat-accent","accent"==d.color)("mat-warn","warn"==d.color)}}function le(r,o){if(1&r&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&r){const d=_.oxw();_.Q6J("@transitionMessages",d._subscriptAnimationState)}}function Pe(r,o){if(1&r&&(_.TgZ(0,"div",30),_._uU(1),_.qZA()),2&r){const d=_.oxw(2);_.Q6J("id",d._hintLabelId),_.xp6(1),_.Oqu(d.hintLabel)}}function Fe(r,o){if(1&r&&(_.TgZ(0,"div",27),_.YNc(1,Pe,2,2,"div",28),_.Hsn(2,6),_._UZ(3,"div",29),_.Hsn(4,7),_.qZA()),2&r){const d=_.oxw();_.Q6J("@transitionMessages",d._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",d.hintLabel)}}const ze=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ae=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Ue=0;const ve=new _.OlP("MatError");let He=(()=>{class r{constructor(d,l){this.id="mat-error-"+Ue++,d||l.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(d){return new(d||r)(_.$8M("aria-live"),_.Y36(_.SBq))},r.\u0275dir=_.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(d,l){2&d&&_.uIk("id",l.id)},inputs:{id:"id"},features:[_._Bn([{provide:ve,useExisting:r}])]}),r})();const z={transitionMessages:(0,B.X$)("transitionMessages",[(0,B.SB)("enter",(0,B.oB)({opacity:1,transform:"translateY(0%)"})),(0,B.eR)("void => enter",[(0,B.oB)({opacity:0,transform:"translateY(-5px)"}),(0,B.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let I=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275dir=_.lG2({type:r}),r})(),pe=0;const we=new _.OlP("MatHint");let $e=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+pe++}}return r.\u0275fac=function(d){return new(d||r)},r.\u0275dir=_.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(d,l){2&d&&(_.uIk("id",l.id)("align",null),_.ekj("mat-form-field-hint-end","end"===l.align))},inputs:{align:"align",id:"id"},features:[_._Bn([{provide:we,useExisting:r}])]}),r})(),Je=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275dir=_.lG2({type:r,selectors:[["mat-label"]]}),r})(),nt=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275dir=_.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const ke=new _.OlP("MatPrefix"),he=new _.OlP("MatSuffix");let P=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275dir=_.lG2({type:r,selectors:[["","matSuffix",""]],features:[_._Bn([{provide:he,useExisting:r}])]}),r})(),R=0;const Se=(0,w.pj)(class{constructor(r){this._elementRef=r}},"primary"),je=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ye=new _.OlP("MatFormField");let ye=(()=>{class r extends Se{constructor(d,l,s,i,t,n,a){super(d),this._changeDetectorRef=l,this._dir=s,this._defaults=i,this._platform=t,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new A.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+R++,this._labelId="mat-form-field-label-"+R++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=i&&i.appearance?i.appearance:"legacy",this._hideRequiredMarker=!(!i||null==i.hideRequiredMarker)&&i.hideRequiredMarker}get appearance(){return this._appearance}set appearance(d){const l=this._appearance;this._appearance=d||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&l!==d&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(d){this._hideRequiredMarker=(0,g.Ig)(d)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(d){this._hintLabel=d,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(d){d!==this._floatLabel&&(this._floatLabel=d||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(d){this._explicitFormFieldControl=d}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const d=this._control;d.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${d.controlType}`),d.stateChanges.pipe((0,O.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),d.ngControl&&d.ngControl.valueChanges&&d.ngControl.valueChanges.pipe((0,S.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,E.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,S.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(d){const l=this._control?this._control.ngControl:null;return l&&l[d]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,C.R)(this._label.nativeElement,"transitionend").pipe((0,m.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let d=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&d.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const l=this._hintChildren?this._hintChildren.find(i=>"start"===i.align):null,s=this._hintChildren?this._hintChildren.find(i=>"end"===i.align):null;l?d.push(l.id):this._hintLabel&&d.push(this._hintLabelId),s&&d.push(s.id)}else this._errorChildren&&d.push(...this._errorChildren.map(l=>l.id));this._control.setDescribedByIds(d)}}_validateControlChild(){}updateOutlineGap(){const d=this._label?this._label.nativeElement:null,l=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",i=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!d||!d.children.length||!d.textContent.trim()){const h=l.querySelectorAll(`${s}, ${i}`);for(let x=0;x0?.75*Ht+10:0}for(let h=0;h{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275mod=_.oAB({type:r}),r.\u0275inj=_.cJS({imports:[[b.ez,w.BQ,e.Q8],w.BQ]}),r})()},25245:(Xe,_e,p)=>{"use strict";p.d(_e,{Hw:()=>Ae,Ps:()=>Me,jv:()=>ce});var e=p(5e3),b=p(90508),_=p(63191),w=p(69808),g=p(21086),A=p(61737),E=p(30567),C=p(42654),O=p(22868),S=p(24850),m=p(27221),B=p(40537),L=p(12474),J=p(72986),ie=p(40520),ge=p(22313);const X=["*"];let Ne;function Oe(pe){var we;return(null===(we=function ue(){if(void 0===Ne&&(Ne=null,"undefined"!=typeof window)){const pe=window;void 0!==pe.trustedTypes&&(Ne=pe.trustedTypes.createPolicy("angular#components",{createHTML:we=>we}))}return Ne}())||void 0===we?void 0:we.createHTML(pe))||pe}function T(pe){return Error(`Unable to find icon with the name "${pe}"`)}function W(pe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${pe}".`)}function Y(pe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${pe}".`)}class ee{constructor(we,$e,Je){this.url=we,this.svgText=$e,this.options=Je}}let ce=(()=>{class pe{constructor($e,Je,nt,ke){this._httpClient=$e,this._sanitizer=Je,this._errorHandler=ke,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",this._document=nt}addSvgIcon($e,Je,nt){return this.addSvgIconInNamespace("",$e,Je,nt)}addSvgIconLiteral($e,Je,nt){return this.addSvgIconLiteralInNamespace("",$e,Je,nt)}addSvgIconInNamespace($e,Je,nt,ke){return this._addSvgIconConfig($e,Je,new ee(nt,null,ke))}addSvgIconResolver($e){return this._resolvers.push($e),this}addSvgIconLiteralInNamespace($e,Je,nt,ke){const H=this._sanitizer.sanitize(e.q3G.HTML,nt);if(!H)throw Y(nt);const he=Oe(H);return this._addSvgIconConfig($e,Je,new ee("",he,ke))}addSvgIconSet($e,Je){return this.addSvgIconSetInNamespace("",$e,Je)}addSvgIconSetLiteral($e,Je){return this.addSvgIconSetLiteralInNamespace("",$e,Je)}addSvgIconSetInNamespace($e,Je,nt){return this._addSvgIconSetConfig($e,new ee(Je,null,nt))}addSvgIconSetLiteralInNamespace($e,Je,nt){const ke=this._sanitizer.sanitize(e.q3G.HTML,Je);if(!ke)throw Y(Je);const H=Oe(ke);return this._addSvgIconSetConfig($e,new ee("",H,nt))}registerFontClassAlias($e,Je=$e){return this._fontCssClassesByAlias.set($e,Je),this}classNameForFontAlias($e){return this._fontCssClassesByAlias.get($e)||$e}setDefaultFontSetClass($e){return this._defaultFontSetClass=$e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl($e){const Je=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,$e);if(!Je)throw W($e);const nt=this._cachedIconsByUrl.get(Je);return nt?(0,g.of)(Fe(nt)):this._loadSvgIconFromConfig(new ee($e,null)).pipe((0,O.b)(ke=>this._cachedIconsByUrl.set(Je,ke)),(0,S.U)(ke=>Fe(ke)))}getNamedSvgIcon($e,Je=""){const nt=ze(Je,$e);let ke=this._svgIconConfigs.get(nt);if(ke)return this._getSvgFromConfig(ke);if(ke=this._getIconConfigFromResolvers(Je,$e),ke)return this._svgIconConfigs.set(nt,ke),this._getSvgFromConfig(ke);const H=this._iconSetConfigs.get(Je);return H?this._getSvgFromIconSetConfigs($e,H):(0,A._)(T(nt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig($e){return $e.svgText?(0,g.of)(Fe(this._svgElementFromConfig($e))):this._loadSvgIconFromConfig($e).pipe((0,S.U)(Je=>Fe(Je)))}_getSvgFromIconSetConfigs($e,Je){const nt=this._extractIconWithNameFromAnySet($e,Je);if(nt)return(0,g.of)(nt);const ke=Je.filter(H=>!H.svgText).map(H=>this._loadSvgIconSetFromConfig(H).pipe((0,m.K)(he=>{const R=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,H.url)} failed: ${he.message}`;return this._errorHandler.handleError(new Error(R)),(0,g.of)(null)})));return(0,E.D)(ke).pipe((0,S.U)(()=>{const H=this._extractIconWithNameFromAnySet($e,Je);if(!H)throw T($e);return H}))}_extractIconWithNameFromAnySet($e,Je){for(let nt=Je.length-1;nt>=0;nt--){const ke=Je[nt];if(ke.svgText&&ke.svgText.toString().indexOf($e)>-1){const H=this._svgElementFromConfig(ke),he=this._extractSvgIconFromSet(H,$e,ke.options);if(he)return he}}return null}_loadSvgIconFromConfig($e){return this._fetchIcon($e).pipe((0,O.b)(Je=>$e.svgText=Je),(0,S.U)(()=>this._svgElementFromConfig($e)))}_loadSvgIconSetFromConfig($e){return $e.svgText?(0,g.of)(null):this._fetchIcon($e).pipe((0,O.b)(Je=>$e.svgText=Je))}_extractSvgIconFromSet($e,Je,nt){const ke=$e.querySelector(`[id="${Je}"]`);if(!ke)return null;const H=ke.cloneNode(!0);if(H.removeAttribute("id"),"svg"===H.nodeName.toLowerCase())return this._setSvgAttributes(H,nt);if("symbol"===H.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(H),nt);const he=this._svgElementFromString(Oe(""));return he.appendChild(H),this._setSvgAttributes(he,nt)}_svgElementFromString($e){const Je=this._document.createElement("DIV");Je.innerHTML=$e;const nt=Je.querySelector("svg");if(!nt)throw Error(" tag not found");return nt}_toSvgElement($e){const Je=this._svgElementFromString(Oe("")),nt=$e.attributes;for(let ke=0;keOe(V)),(0,B.x)(()=>this._inProgressUrlFetches.delete(he)),(0,L.B)());return this._inProgressUrlFetches.set(he,R),R}_addSvgIconConfig($e,Je,nt){return this._svgIconConfigs.set(ze($e,Je),nt),this}_addSvgIconSetConfig($e,Je){const nt=this._iconSetConfigs.get($e);return nt?nt.push(Je):this._iconSetConfigs.set($e,[Je]),this}_svgElementFromConfig($e){if(!$e.svgElement){const Je=this._svgElementFromString($e.svgText);this._setSvgAttributes(Je,$e.options),$e.svgElement=Je}return $e.svgElement}_getIconConfigFromResolvers($e,Je){for(let nt=0;ntwe?we.pathname+we.search:""}}}),z=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],I=z.map(pe=>`[${pe}]`).join(", "),me=/^url\(['"]?#(.*?)['"]?\)$/;let Ae=(()=>{class pe extends Ue{constructor($e,Je,nt,ke,H){super($e),this._iconRegistry=Je,this._location=ke,this._errorHandler=H,this._inline=!1,this._currentIconFetch=C.w.EMPTY,nt||$e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline($e){this._inline=(0,_.Ig)($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 Je=this._cleanupFontValue($e);Je!==this._fontSet&&(this._fontSet=Je,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon($e){const Je=this._cleanupFontValue($e);Je!==this._fontIcon&&(this._fontIcon=Je,this._updateFontIconClasses())}_splitIconName($e){if(!$e)return["",""];const Je=$e.split(":");switch(Je.length){case 1:return["",Je[0]];case 2:return Je;default:throw Error(`Invalid icon name: "${$e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const $e=this._elementsWithExternalReferences;if($e&&$e.size){const Je=this._location.getPathname();Je!==this._previousPath&&(this._previousPath=Je,this._prependPathToReferences(Je))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement($e){this._clearSvgElement();const Je=$e.querySelectorAll("style");for(let ke=0;ke{nt.forEach(H=>{ke.setAttribute(H.name,`url('${$e}#${H.value}')`)})})}_cacheChildrenWithExternalReferences($e){const Je=$e.querySelectorAll(I),nt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ke=0;ke{const he=Je[ke],P=he.getAttribute(H),R=P?P.match(me):null;if(R){let V=nt.get(he);V||(V=[],nt.set(he,V)),V.push({name:H,value:R[1]})}})}_updateSvgIcon($e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),$e){const[Je,nt]=this._splitIconName($e);Je&&(this._svgNamespace=Je),nt&&(this._svgName=nt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(nt,Je).pipe((0,J.q)(1)).subscribe(ke=>this._setSvgElement(ke),ke=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Je}:${nt}! ${ke.message}`))})}}}return pe.\u0275fac=function($e){return new($e||pe)(e.Y36(e.SBq),e.Y36(ce),e.$8M("aria-hidden"),e.Y36(ve),e.Y36(e.qLn))},pe.\u0275cmp=e.Xpm({type:pe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function($e,Je){2&$e&&(e.uIk("data-mat-icon-type",Je._usingFontIcon()?"font":"svg")("data-mat-icon-name",Je._svgName||Je.fontIcon)("data-mat-icon-namespace",Je._svgNamespace||Je.fontSet),e.ekj("mat-icon-inline",Je.inline)("mat-icon-no-color","primary"!==Je.color&&"accent"!==Je.color&&"warn"!==Je.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:X,decls:1,vars:0,template:function($e,Je){1&$e&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),pe})(),Me=(()=>{class pe{}return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275mod=e.oAB({type:pe}),pe.\u0275inj=e.cJS({imports:[[b.BQ],b.BQ]}),pe})()},98833:(Xe,_e,p)=>{"use strict";p.d(_e,{Jk:()=>S,Nt:()=>J,c:()=>ie});var e=p(63191),b=p(70925),_=p(5e3),w=p(93075),g=p(90508),A=p(67322),E=p(8929),C=p(74533);const S=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let B=0;const L=(0,g.FD)(class{constructor(ge,X,Ne,ue){this._defaultErrorStateMatcher=ge,this._parentForm=X,this._parentFormGroup=Ne,this.ngControl=ue}});let J=(()=>{class ge extends L{constructor(Ne,ue,Oe,T,Z,W,Y,ee,ce,le){super(W,T,Z,Oe),this._elementRef=Ne,this._platform=ue,this._autofillMonitor=ee,this._formField=le,this._uid="mat-input-"+B++,this.focused=!1,this.stateChanges=new E.xQ,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(ze=>(0,b.qK)().has(ze));const Pe=this._elementRef.nativeElement,Fe=Pe.nodeName.toLowerCase();this._inputValueAccessor=Y||Pe,this._previousNativeValue=this.value,this.id=this.id,ue.IOS&&ce.runOutsideAngular(()=>{Ne.nativeElement.addEventListener("keyup",ze=>{const ae=ze.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Fe,this._isTextarea="textarea"===Fe,this._isInFormField=!!le,this._isNativeSelect&&(this.controlType=Pe.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Ne){this._disabled=(0,e.Ig)(Ne),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Ne){this._id=Ne||this._uid}get required(){var Ne,ue,Oe,T;return null!==(T=null!==(Ne=this._required)&&void 0!==Ne?Ne:null===(Oe=null===(ue=this.ngControl)||void 0===ue?void 0:ue.control)||void 0===Oe?void 0:Oe.hasValidator(w.kI.required))&&void 0!==T&&T}set required(Ne){this._required=(0,e.Ig)(Ne)}get type(){return this._type}set type(Ne){this._type=Ne||"text",this._validateType(),!this._isTextarea&&(0,b.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Ne){Ne!==this.value&&(this._inputValueAccessor.value=Ne,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Ne){this._readonly=(0,e.Ig)(Ne)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Ne=>{this.autofilled=Ne.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Ne){this._elementRef.nativeElement.focus(Ne)}_focusChanged(Ne){Ne!==this.focused&&(this.focused=Ne,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Ne,ue;const Oe=(null===(ue=null===(Ne=this._formField)||void 0===Ne?void 0:Ne._hideControlPlaceholder)||void 0===ue?void 0:ue.call(Ne))?null:this.placeholder;if(Oe!==this._previousPlaceholder){const T=this._elementRef.nativeElement;this._previousPlaceholder=Oe,Oe?T.setAttribute("placeholder",Oe):T.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Ne=this._elementRef.nativeElement.value;this._previousNativeValue!==Ne&&(this._previousNativeValue=Ne,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Ne=this._elementRef.nativeElement.validity;return Ne&&Ne.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Ne=this._elementRef.nativeElement,ue=Ne.options[0];return this.focused||Ne.multiple||!this.empty||!!(Ne.selectedIndex>-1&&ue&&ue.label)}return this.focused||!this.empty}setDescribedByIds(Ne){Ne.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ne.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Ne=this._elementRef.nativeElement;return this._isNativeSelect&&(Ne.multiple||Ne.size>1)}}return ge.\u0275fac=function(Ne){return new(Ne||ge)(_.Y36(_.SBq),_.Y36(b.t4),_.Y36(w.a5,10),_.Y36(w.F,8),_.Y36(w.sg,8),_.Y36(g.rD),_.Y36(S,10),_.Y36(C.Lq),_.Y36(_.R0b),_.Y36(A.G_,8))},ge.\u0275dir=_.lG2({type:ge,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(Ne,ue){1&Ne&&_.NdJ("focus",function(){return ue._focusChanged(!0)})("blur",function(){return ue._focusChanged(!1)})("input",function(){return ue._onInput()}),2&Ne&&(_.Ikx("disabled",ue.disabled)("required",ue.required),_.uIk("id",ue.id)("data-placeholder",ue.placeholder)("name",ue.name||null)("readonly",ue.readonly&&!ue._isNativeSelect||null)("aria-invalid",ue.empty&&ue.required?null:ue.errorState)("aria-required",ue.required),_.ekj("mat-input-server",ue._isServer)("mat-native-select-inline",ue._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:A.Eo,useExisting:ge}]),_.qOj,_.TTD]}),ge})(),ie=(()=>{class ge{}return ge.\u0275fac=function(Ne){return new(Ne||ge)},ge.\u0275mod=_.oAB({type:ge}),ge.\u0275inj=_.cJS({providers:[g.rD],imports:[[C.Ky,A.lN,g.BQ],C.Ky,A.lN]}),ge})()},14623:(Xe,_e,p)=>{"use strict";p.d(_e,{i$:()=>ce,Tg:()=>ze,ie:()=>me});var e=p(69808),b=p(5e3),_=p(90508),w=p(63191),g=p(8929),A=p(7625),B=(p(1059),p(15664),p(20449),p(91159),p(93075),p(4834));const L=["*"],ie=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ge=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],T=(0,_.Id)((0,_.Kr)(class{})),Z=(0,_.Kr)(class{}),W=new b.OlP("MatList"),Y=new b.OlP("MatNavList");let ce=(()=>{class Ae extends T{constructor(pe){super(),this._elementRef=pe,this._stateChanges=new g.xQ,"action-list"===this._getListType()&&pe.nativeElement.classList.add("mat-action-list")}_getListType(){const pe=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===pe?"list":"mat-action-list"===pe?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ae.\u0275fac=function(pe){return new(pe||Ae)(b.Y36(b.SBq))},Ae.\u0275cmp=b.Xpm({type:Ae,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[b._Bn([{provide:W,useExisting:Ae}]),b.qOj,b.TTD],ngContentSelectors:L,decls:1,vars:0,template:function(pe,we){1&pe&&(b.F$t(),b.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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:transparent;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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0}),Ae})(),le=(()=>{class Ae{}return Ae.\u0275fac=function(pe){return new(pe||Ae)},Ae.\u0275dir=b.lG2({type:Ae,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Ae})(),Pe=(()=>{class Ae{}return Ae.\u0275fac=function(pe){return new(pe||Ae)},Ae.\u0275dir=b.lG2({type:Ae,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Ae})(),ze=(()=>{class Ae extends Z{constructor(pe,we,$e,Je){super(),this._element=pe,this._isInteractiveList=!1,this._destroyed=new g.xQ,this._disabled=!1,this._isInteractiveList=!!($e||Je&&"action-list"===Je._getListType()),this._list=$e||Je;const nt=this._getHostElement();"button"===nt.nodeName.toLowerCase()&&!nt.hasAttribute("type")&&nt.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{we.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(pe){this._disabled=(0,w.Ig)(pe)}ngAfterContentInit(){(0,_.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 Ae.\u0275fac=function(pe){return new(pe||Ae)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(Y,8),b.Y36(W,8))},Ae.\u0275cmp=b.Xpm({type:Ae,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(pe,we,$e){if(1&pe&&(b.Suo($e,le,5),b.Suo($e,Pe,5),b.Suo($e,_.X2,5)),2&pe){let Je;b.iGM(Je=b.CRH())&&(we._avatar=Je.first),b.iGM(Je=b.CRH())&&(we._icon=Je.first),b.iGM(Je=b.CRH())&&(we._lines=Je)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(pe,we){2&pe&&b.ekj("mat-list-item-disabled",we.disabled)("mat-list-item-avatar",we._avatar||we._icon)("mat-list-item-with-avatar",we._avatar||we._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[b.qOj],ngContentSelectors:ge,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(pe,we){1&pe&&(b.F$t(ie),b.TgZ(0,"span",0),b._UZ(1,"span",1),b.Hsn(2),b.TgZ(3,"span",2),b.Hsn(4,1),b.qZA(),b.Hsn(5,2),b.qZA()),2&pe&&(b.xp6(1),b.Q6J("matRippleTrigger",we._getHostElement())("matRippleDisabled",we._isRippleDisabled()))},directives:[_.wG],encapsulation:2,changeDetection:0}),Ae})(),me=(()=>{class Ae{}return Ae.\u0275fac=function(pe){return new(pe||Ae)},Ae.\u0275mod=b.oAB({type:Ae}),Ae.\u0275inj=b.cJS({imports:[[_.uc,_.si,_.BQ,_.us,e.ez],_.uc,_.BQ,_.us,B.t]}),Ae})()},92181:(Xe,_e,p)=>{"use strict";p.d(_e,{VK:()=>ke,OP:()=>pe,Tx:()=>je,p6:()=>Se});var e=p(15664),b=p(63191),_=p(91159),w=p(5e3),g=p(8929),A=p(42654),E=p(36787),C=p(21086),O=p(8139),S=p(1059),m=p(87545),B=p(72986),L=p(7625),J=p(92198),ie=p(40943),ge=p(41777),X=p(47429),Ne=p(69808),ue=p(90508),Oe=p(92845),T=p(70925),Z=p(50226),W=p(53435);const Y=["mat-menu-item",""];function ee(Ye,ye){1&Ye&&(w.O4$(),w.TgZ(0,"svg",2),w._UZ(1,"polygon",3),w.qZA())}const ce=["*"];function le(Ye,ye){if(1&Ye){const re=w.EpF();w.TgZ(0,"div",0),w.NdJ("keydown",function(o){return w.CHM(re),w.oxw()._handleKeydown(o)})("click",function(){return w.CHM(re),w.oxw().closed.emit("click")})("@transformMenu.start",function(o){return w.CHM(re),w.oxw()._onAnimationStart(o)})("@transformMenu.done",function(o){return w.CHM(re),w.oxw()._onAnimationDone(o)}),w.TgZ(1,"div",1),w.Hsn(2),w.qZA(),w.qZA()}if(2&Ye){const re=w.oxw();w.Q6J("id",re.panelId)("ngClass",re._classList)("@transformMenu",re._panelAnimationState),w.uIk("aria-label",re.ariaLabel||null)("aria-labelledby",re.ariaLabelledby||null)("aria-describedby",re.ariaDescribedby||null)}}const Pe={transformMenu:(0,ge.X$)("transformMenu",[(0,ge.SB)("void",(0,ge.oB)({opacity:0,transform:"scale(0.8)"})),(0,ge.eR)("void => enter",(0,ge.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ge.oB)({opacity:1,transform:"scale(1)"}))),(0,ge.eR)("* => void",(0,ge.jt)("100ms 25ms linear",(0,ge.oB)({opacity:0})))]),fadeInItems:(0,ge.X$)("fadeInItems",[(0,ge.SB)("showing",(0,ge.oB)({opacity:1})),(0,ge.eR)("void => *",[(0,ge.oB)({opacity:0}),(0,ge.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ae=new w.OlP("MatMenuContent"),Ae=new w.OlP("MAT_MENU_PANEL"),Me=(0,ue.Kr)((0,ue.Id)(class{}));let pe=(()=>{class Ye extends Me{constructor(re,r,o,d,l){var s;super(),this._elementRef=re,this._focusMonitor=o,this._parentMenu=d,this._changeDetectorRef=l,this.role="menuitem",this._hovered=new g.xQ,this._focused=new g.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(s=null==d?void 0:d.addItem)||void 0===s||s.call(d,this)}focus(re,r){this._focusMonitor&&re?this._focusMonitor.focusVia(this._getHostElement(),re,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(re){this.disabled&&(re.preventDefault(),re.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var re;const r=this._elementRef.nativeElement.cloneNode(!0),o=r.querySelectorAll("mat-icon, .material-icons");for(let d=0;d{class Ye{constructor(re,r,o){this._elementRef=re,this._ngZone=r,this._defaultOptions=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new w.n_E,this._tabSubscription=A.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new g.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new w.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Je++}get xPosition(){return this._xPosition}set xPosition(re){this._xPosition=re,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(re){this._yPosition=re,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(re){this._overlapTrigger=(0,b.Ig)(re)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(re){this._hasBackdrop=(0,b.Ig)(re)}set panelClass(re){const r=this._previousPanelClass;r&&r.length&&r.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=re,re&&re.length&&(re.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(re){this.panelClass=re}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,S.O)(this._directDescendantItems),(0,m.w)(re=>(0,E.T)(...re.map(r=>r._focused)))).subscribe(re=>this._keyManager.updateActiveItem(re))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,S.O)(this._directDescendantItems),(0,m.w)(r=>(0,E.T)(...r.map(o=>o._hovered))))}addItem(re){}removeItem(re){}_handleKeydown(re){const r=re.keyCode,o=this._keyManager;switch(r){case _.hY:(0,_.Vb)(re)||(re.preventDefault(),this.closed.emit("keydown"));break;case _.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case _.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(r===_.LH||r===_.JH)&&o.setFocusOrigin("keyboard"),void o.onKeydown(re)}re.stopPropagation()}focusFirstItem(re="program"){this.lazyContent?this._ngZone.onStable.pipe((0,B.q)(1)).subscribe(()=>this._focusFirstItem(re)):this._focusFirstItem(re)}_focusFirstItem(re){const r=this._keyManager;if(r.setFocusOrigin(re).setFirstItemActive(),!r.activeItem&&this._directDescendantItems.length){let o=this._directDescendantItems.first._getHostElement().parentElement;for(;o;){if("menu"===o.getAttribute("role")){o.focus();break}o=o.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(re){const r=Math.min(this._baseElevation+re,24),o=`${this._elevationPrefix}${r}`,d=Object.keys(this._classList).find(l=>l.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(re=this.xPosition,r=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===re,o["mat-menu-after"]="after"===re,o["mat-menu-above"]="above"===r,o["mat-menu-below"]="below"===r}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(re){this._animationDone.next(re),this._isAnimating=!1}_onAnimationStart(re){this._isAnimating=!0,"enter"===re.toState&&0===this._keyManager.activeItemIndex&&(re.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,S.O)(this._allItems)).subscribe(re=>{this._directDescendantItems.reset(re.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ye.\u0275fac=function(re){return new(re||Ye)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(we))},Ye.\u0275dir=w.lG2({type:Ye,contentQueries:function(re,r,o){if(1&re&&(w.Suo(o,ae,5),w.Suo(o,pe,5),w.Suo(o,pe,4)),2&re){let d;w.iGM(d=w.CRH())&&(r.lazyContent=d.first),w.iGM(d=w.CRH())&&(r._allItems=d),w.iGM(d=w.CRH())&&(r.items=d)}},viewQuery:function(re,r){if(1&re&&w.Gf(w.Rgc,5),2&re){let o;w.iGM(o=w.CRH())&&(r.templateRef=o.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"}}),Ye})(),ke=(()=>{class Ye extends nt{constructor(re,r,o){super(re,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Ye.\u0275fac=function(re){return new(re||Ye)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(we))},Ye.\u0275cmp=w.Xpm({type:Ye,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(re,r){2&re&&w.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[w._Bn([{provide:Ae,useExisting:Ye}]),w.qOj],ngContentSelectors:ce,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(re,r){1&re&&(w.F$t(),w.YNc(0,le,3,6,"ng-template"))},directives:[Ne.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Pe.transformMenu,Pe.fadeInItems]},changeDetection:0}),Ye})();const H=new w.OlP("mat-menu-scroll-strategy"),P={provide:H,deps:[Oe.aV],useFactory:function he(Ye){return()=>Ye.scrollStrategies.reposition()}},V=(0,T.i$)({passive:!0});let Q=(()=>{class Ye{constructor(re,r,o,d,l,s,i,t){this._overlay=re,this._element=r,this._viewContainerRef=o,this._menuItemInstance=s,this._dir=i,this._focusMonitor=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=n=>{(0,e.yG)(n)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new w.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new w.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=l instanceof nt?l:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,V),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(re){this.menu=re}get menu(){return this._menu}set menu(re){re!==this._menu&&(this._menu=re,this._menuCloseSubscription.unsubscribe(),re&&(this._menuCloseSubscription=re.close.subscribe(r=>{this._destroyMenu(r),("click"===r||"tab"===r)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,V),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const re=this._createOverlay(),r=re.getConfig(),o=r.positionStrategy;this._setPosition(o),r.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,re.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof nt&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,L.R)(this.menu.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(re,r){this._focusMonitor&&re?this._focusMonitor.focusVia(this._element,re,r):this._element.nativeElement.focus(r)}updatePosition(){var re;null===(re=this._overlayRef)||void 0===re||re.updatePosition()}_destroyMenu(re){if(!this._overlayRef||!this.menuOpen)return;const r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===re||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof nt?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe((0,J.h)(o=>"void"===o.toState),(0,B.q)(1),(0,L.R)(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),r.lazyContent&&r.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let re=0,r=this.menu.parentMenu;for(;r;)re++,r=r.parentMenu;this.menu.setElevation(re)}}_setIsMenuOpen(re){this._menuOpen=re,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(re)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const re=this._getOverlayConfig();this._subscribeToPositions(re.positionStrategy),this._overlayRef=this._overlay.create(re),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Oe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(re){this.menu.setPositionClasses&&re.positionChanges.subscribe(r=>{this.menu.setPositionClasses("start"===r.connectionPair.overlayX?"after":"before","top"===r.connectionPair.overlayY?"below":"above")})}_setPosition(re){let[r,o]="before"===this.menu.xPosition?["end","start"]:["start","end"],[d,l]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,i]=[d,l],[t,n]=[r,o],a=0;this.triggersSubmenu()?(n=r="before"===this.menu.xPosition?"start":"end",o=t="end"===r?"start":"end",a="bottom"===d?8:-8):this.menu.overlapTrigger||(s="top"===d?"bottom":"top",i="top"===l?"bottom":"top"),re.withPositions([{originX:r,originY:s,overlayX:t,overlayY:d,offsetY:a},{originX:o,originY:s,overlayX:n,overlayY:d,offsetY:a},{originX:r,originY:i,overlayX:t,overlayY:l,offsetY:-a},{originX:o,originY:i,overlayX:n,overlayY:l,offsetY:-a}])}_menuClosingActions(){const re=this._overlayRef.backdropClick(),r=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,C.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,J.h)(l=>l!==this._menuItemInstance),(0,J.h)(()=>this._menuOpen)):(0,C.of)();return(0,E.T)(re,o,d,r)}_handleMousedown(re){(0,e.X6)(re)||(this._openedBy=0===re.button?"mouse":void 0,this.triggersSubmenu()&&re.preventDefault())}_handleKeydown(re){const r=re.keyCode;(r===_.K5||r===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(r===_.SV&&"ltr"===this.dir||r===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(re){this.triggersSubmenu()?(re.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,J.h)(re=>re===this._menuItemInstance&&!re.disabled),(0,ie.g)(0,O.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof nt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,B.q)(1),(0,ie.g)(0,O.e),(0,L.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new X.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return Ye.\u0275fac=function(re){return new(re||Ye)(w.Y36(Oe.aV),w.Y36(w.SBq),w.Y36(w.s_b),w.Y36(H),w.Y36(Ae,8),w.Y36(pe,10),w.Y36(Z.Is,8),w.Y36(e.tE))},Ye.\u0275dir=w.lG2({type:Ye,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(re,r){1&re&&w.NdJ("click",function(d){return r._handleClick(d)})("mousedown",function(d){return r._handleMousedown(d)})("keydown",function(d){return r._handleKeydown(d)}),2&re&&w.uIk("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"}}),Ye})(),Se=(()=>{class Ye extends Q{}return Ye.\u0275fac=function(){let ye;return function(r){return(ye||(ye=w.n5z(Ye)))(r||Ye)}}(),Ye.\u0275dir=w.lG2({type:Ye,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[w.qOj]}),Ye})(),je=(()=>{class Ye{}return Ye.\u0275fac=function(re){return new(re||Ye)},Ye.\u0275mod=w.oAB({type:Ye}),Ye.\u0275inj=w.cJS({providers:[P],imports:[[Ne.ez,ue.BQ,ue.si,Oe.U8],W.ZD,ue.BQ]}),Ye})()},86087:(Xe,_e,p)=>{"use strict";p.d(_e,{NW:()=>Y,ye:()=>ge,TU:()=>ee});var e=p(69808),b=p(5e3),_=p(90508),w=p(47423),g=p(74107),A=p(29772),E=p(63191),C=p(8929),O=p(67322);function S(ce,le){if(1&ce&&(b.TgZ(0,"mat-option",19),b._uU(1),b.qZA()),2&ce){const Pe=le.$implicit;b.Q6J("value",Pe),b.xp6(1),b.hij(" ",Pe," ")}}function m(ce,le){if(1&ce){const Pe=b.EpF();b.TgZ(0,"mat-form-field",16),b.TgZ(1,"mat-select",17),b.NdJ("selectionChange",function(ze){return b.CHM(Pe),b.oxw(2)._changePageSize(ze.value)}),b.YNc(2,S,2,2,"mat-option",18),b.qZA(),b.qZA()}if(2&ce){const Pe=b.oxw(2);b.Q6J("appearance",Pe._formFieldAppearance)("color",Pe.color),b.xp6(1),b.Q6J("value",Pe.pageSize)("disabled",Pe.disabled)("aria-label",Pe._intl.itemsPerPageLabel),b.xp6(1),b.Q6J("ngForOf",Pe._displayedPageSizeOptions)}}function B(ce,le){if(1&ce&&(b.TgZ(0,"div",20),b._uU(1),b.qZA()),2&ce){const Pe=b.oxw(2);b.xp6(1),b.Oqu(Pe.pageSize)}}function L(ce,le){if(1&ce&&(b.TgZ(0,"div",12),b.TgZ(1,"div",13),b._uU(2),b.qZA(),b.YNc(3,m,3,6,"mat-form-field",14),b.YNc(4,B,2,1,"div",15),b.qZA()),2&ce){const Pe=b.oxw();b.xp6(2),b.hij(" ",Pe._intl.itemsPerPageLabel," "),b.xp6(1),b.Q6J("ngIf",Pe._displayedPageSizeOptions.length>1),b.xp6(1),b.Q6J("ngIf",Pe._displayedPageSizeOptions.length<=1)}}function J(ce,le){if(1&ce){const Pe=b.EpF();b.TgZ(0,"button",21),b.NdJ("click",function(){return b.CHM(Pe),b.oxw().firstPage()}),b.O4$(),b.TgZ(1,"svg",7),b._UZ(2,"path",22),b.qZA(),b.qZA()}if(2&ce){const Pe=b.oxw();b.Q6J("matTooltip",Pe._intl.firstPageLabel)("matTooltipDisabled",Pe._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Pe._previousButtonsDisabled()),b.uIk("aria-label",Pe._intl.firstPageLabel)}}function ie(ce,le){if(1&ce){const Pe=b.EpF();b.O4$(),b.kcU(),b.TgZ(0,"button",23),b.NdJ("click",function(){return b.CHM(Pe),b.oxw().lastPage()}),b.O4$(),b.TgZ(1,"svg",7),b._UZ(2,"path",24),b.qZA(),b.qZA()}if(2&ce){const Pe=b.oxw();b.Q6J("matTooltip",Pe._intl.lastPageLabel)("matTooltipDisabled",Pe._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Pe._nextButtonsDisabled()),b.uIk("aria-label",Pe._intl.lastPageLabel)}}let ge=(()=>{class ce{constructor(){this.changes=new C.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Pe,Fe,ze)=>{if(0==ze||0==Fe)return`0 of ${ze}`;const ae=Pe*Fe;return`${ae+1} \u2013 ${ae<(ze=Math.max(ze,0))?Math.min(ae+Fe,ze):ae+Fe} of ${ze}`}}}return ce.\u0275fac=function(Pe){return new(Pe||ce)},ce.\u0275prov=b.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const Ne={provide:ge,deps:[[new b.FiY,new b.tp0,ge]],useFactory:function X(ce){return ce||new ge}},T=new b.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Z=(0,_.Id)((0,_.dB)(class{}));let W=(()=>{class ce extends Z{constructor(Pe,Fe,ze){if(super(),this._intl=Pe,this._changeDetectorRef=Fe,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new b.vpe,this._intlChanges=Pe.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),ze){const{pageSize:ae,pageSizeOptions:Ue,hidePageSize:ve,showFirstLastButtons:He}=ze;null!=ae&&(this._pageSize=ae),null!=Ue&&(this._pageSizeOptions=Ue),null!=ve&&(this._hidePageSize=ve),null!=He&&(this._showFirstLastButtons=He)}}get pageIndex(){return this._pageIndex}set pageIndex(Pe){this._pageIndex=Math.max((0,E.su)(Pe),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Pe){this._length=(0,E.su)(Pe),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Pe){this._pageSize=Math.max((0,E.su)(Pe),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Pe){this._pageSizeOptions=(Pe||[]).map(Fe=>(0,E.su)(Fe)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Pe){this._hidePageSize=(0,E.Ig)(Pe)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Pe){this._showFirstLastButtons=(0,E.Ig)(Pe)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Pe=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Pe)}previousPage(){if(!this.hasPreviousPage())return;const Pe=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Pe)}firstPage(){if(!this.hasPreviousPage())return;const Pe=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Pe)}lastPage(){if(!this.hasNextPage())return;const Pe=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Pe)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Pe=this.getNumberOfPages()-1;return this.pageIndexPe-Fe),this._changeDetectorRef.markForCheck())}_emitPageEvent(Pe){this.page.emit({previousPageIndex:Pe,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ce.\u0275fac=function(Pe){b.$Z()},ce.\u0275dir=b.lG2({type:ce,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[b.qOj]}),ce})(),Y=(()=>{class ce extends W{constructor(Pe,Fe,ze){super(Pe,Fe,ze),ze&&null!=ze.formFieldAppearance&&(this._formFieldAppearance=ze.formFieldAppearance)}}return ce.\u0275fac=function(Pe){return new(Pe||ce)(b.Y36(ge),b.Y36(b.sBO),b.Y36(T,8))},ce.\u0275cmp=b.Xpm({type:ce,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[b.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","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(Pe,Fe){1&Pe&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.YNc(2,L,5,3,"div",2),b.TgZ(3,"div",3),b.TgZ(4,"div",4),b._uU(5),b.qZA(),b.YNc(6,J,3,5,"button",5),b.TgZ(7,"button",6),b.NdJ("click",function(){return Fe.previousPage()}),b.O4$(),b.TgZ(8,"svg",7),b._UZ(9,"path",8),b.qZA(),b.qZA(),b.kcU(),b.TgZ(10,"button",9),b.NdJ("click",function(){return Fe.nextPage()}),b.O4$(),b.TgZ(11,"svg",7),b._UZ(12,"path",10),b.qZA(),b.qZA(),b.YNc(13,ie,3,5,"button",11),b.qZA(),b.qZA(),b.qZA()),2&Pe&&(b.xp6(2),b.Q6J("ngIf",!Fe.hidePageSize),b.xp6(3),b.hij(" ",Fe._intl.getRangeLabel(Fe.pageIndex,Fe.pageSize,Fe.length)," "),b.xp6(1),b.Q6J("ngIf",Fe.showFirstLastButtons),b.xp6(1),b.Q6J("matTooltip",Fe._intl.previousPageLabel)("matTooltipDisabled",Fe._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Fe._previousButtonsDisabled()),b.uIk("aria-label",Fe._intl.previousPageLabel),b.xp6(3),b.Q6J("matTooltip",Fe._intl.nextPageLabel)("matTooltipDisabled",Fe._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Fe._nextButtonsDisabled()),b.uIk("aria-label",Fe._intl.nextPageLabel),b.xp6(3),b.Q6J("ngIf",Fe.showFirstLastButtons))},directives:[O.KE,g.gD,_.ey,w.lW,e.O5,e.sg,A.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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),ce})(),ee=(()=>{class ce{}return ce.\u0275fac=function(Pe){return new(Pe||ce)},ce.\u0275mod=b.oAB({type:ce}),ce.\u0275inj=b.cJS({providers:[Ne],imports:[[e.ez,w.ot,g.LD,A.AV,_.BQ]]}),ce})()},85899:(Xe,_e,p)=>{"use strict";p.d(_e,{Cv:()=>B});var e=p(5e3),b=p(69808),_=p(90508);let B=(()=>{class L{}return L.\u0275fac=function(ie){return new(ie||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({imports:[[b.ez,_.BQ],_.BQ]}),L})()},20773:(Xe,_e,p)=>{"use strict";p.d(_e,{Cq:()=>Z,$g:()=>T});var e=p(5e3),b=p(69808),_=p(90508),w=p(63191),g=p(70925),A=p(76360),E=p(42654),C=p(53435);function O(W,Y){if(1&W&&(e.O4$(),e._UZ(0,"circle",4)),2&W){const ee=e.oxw(),ce=e.MAs(1);e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ee._spinnerAnimationLabel)("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(ce)),e.uIk("r",ee._getCircleRadius())}}function S(W,Y){if(1&W&&(e.O4$(),e._UZ(0,"circle",4)),2&W){const ee=e.oxw(),ce=e.MAs(1);e.Udp("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(ce)),e.uIk("r",ee._getCircleRadius())}}function m(W,Y){if(1&W&&(e.O4$(),e._UZ(0,"circle",4)),2&W){const ee=e.oxw(),ce=e.MAs(1);e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ee._spinnerAnimationLabel)("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(ce)),e.uIk("r",ee._getCircleRadius())}}function B(W,Y){if(1&W&&(e.O4$(),e._UZ(0,"circle",4)),2&W){const ee=e.oxw(),ce=e.MAs(1);e.Udp("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(ce)),e.uIk("r",ee._getCircleRadius())}}const ge=(0,_.pj)(class{constructor(W){this._elementRef=W}},"primary"),X=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Ne(){return{diameter:100}}});class Oe extends ge{constructor(Y,ee,ce,le,Pe,Fe,ze,ae){super(Y),this._document=ce,this._diameter=100,this._value=0,this._resizeSubscription=E.w.EMPTY,this.mode="determinate";const Ue=Oe._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Ue.has(ce.head)||Ue.set(ce.head,new Set([100])),this._noopAnimations="NoopAnimations"===le&&!!Pe&&!Pe._forceAnimations,Pe&&(Pe.diameter&&(this.diameter=Pe.diameter),Pe.strokeWidth&&(this.strokeWidth=Pe.strokeWidth)),ee.isBrowser&&ee.SAFARI&&ze&&Fe&&ae&&(this._resizeSubscription=ze.change(150).subscribe(()=>{"indeterminate"===this.mode&&ae.run(()=>Fe.markForCheck())}))}get diameter(){return this._diameter}set diameter(Y){this._diameter=(0,w.su)(Y),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Y){this._strokeWidth=(0,w.su)(Y)}get value(){return"determinate"===this.mode?this._value:0}set value(Y){this._value=Math.max(0,Math.min(100,(0,w.su)(Y)))}ngOnInit(){const Y=this._elementRef.nativeElement;this._styleRoot=(0,g.kV)(Y)||this._document.head,this._attachStyleNode(),Y.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Y=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Y} ${Y}`}_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(Y){var ee;const ce=50*(null!==(ee=Y.currentScale)&&void 0!==ee?ee:1);return`${ce}% ${ce}%`}_attachStyleNode(){const Y=this._styleRoot,ee=this._diameter,ce=Oe._diameters;let le=ce.get(Y);if(!le||!le.has(ee)){const Pe=this._document.createElement("style");Pe.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Pe.textContent=this._getAnimationText(),Y.appendChild(Pe),le||(le=new Set,ce.set(Y,le)),le.add(ee)}}_getAnimationText(){const Y=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*Y).replace(/END_VALUE/g,""+.2*Y).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Oe._diameters=new WeakMap,Oe.\u0275fac=function(Y){return new(Y||Oe)(e.Y36(e.SBq),e.Y36(g.t4),e.Y36(b.K0,8),e.Y36(A.Qb,8),e.Y36(X),e.Y36(e.sBO),e.Y36(C.rL),e.Y36(e.R0b))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(Y,ee){2&Y&&(e.uIk("aria-valuemin","determinate"===ee.mode?0:null)("aria-valuemax","determinate"===ee.mode?100:null)("aria-valuenow","determinate"===ee.mode?ee.value:null)("mode",ee.mode),e.Udp("width",ee.diameter,"px")("height",ee.diameter,"px"),e.ekj("_mat-animation-noopable",ee._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.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(Y,ee){1&Y&&(e.O4$(),e.TgZ(0,"svg",0,1),e.YNc(2,O,1,11,"circle",2),e.YNc(3,S,1,9,"circle",3),e.qZA()),2&Y&&(e.Udp("width",ee.diameter,"px")("height",ee.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===ee.mode),e.uIk("viewBox",ee._getViewBox()),e.xp6(2),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[b.RF,b.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});let T=(()=>{class W extends Oe{constructor(ee,ce,le,Pe,Fe,ze,ae,Ue){super(ee,ce,le,Pe,Fe,ze,ae,Ue),this.mode="indeterminate"}}return W.\u0275fac=function(ee){return new(ee||W)(e.Y36(e.SBq),e.Y36(g.t4),e.Y36(b.K0,8),e.Y36(A.Qb,8),e.Y36(X),e.Y36(e.sBO),e.Y36(C.rL),e.Y36(e.R0b))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(ee,ce){2&ee&&(e.Udp("width",ce.diameter,"px")("height",ce.diameter,"px"),e.ekj("_mat-animation-noopable",ce._noopAnimations))},inputs:{color:"color"},features:[e.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(ee,ce){1&ee&&(e.O4$(),e.TgZ(0,"svg",0,1),e.YNc(2,m,1,11,"circle",2),e.YNc(3,B,1,9,"circle",3),e.qZA()),2&ee&&(e.Udp("width",ce.diameter,"px")("height",ce.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===ce.mode),e.uIk("viewBox",ce._getViewBox()),e.xp6(2),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[b.RF,b.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0}),W})(),Z=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[_.BQ,b.ez],_.BQ]}),W})()},79814:(Xe,_e,p)=>{"use strict";p.d(_e,{U0:()=>Z,VQ:()=>Ne,Fk:()=>W});var e=p(5e3),b=p(90508),_=p(63191),w=p(93075),g=p(76360),A=p(15664),E=p(20449);const C=["input"],O=function(Y){return{enterDuration:Y}},S=["*"],m=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function B(){return{color:"accent"}}});let L=0;const J={provide:w.JU,useExisting:(0,e.Gpc)(()=>Ne),multi:!0};class ie{constructor(ee,ce){this.source=ee,this.value=ce}}const ge=new e.OlP("MatRadioGroup");let X=(()=>{class Y{constructor(ce){this._changeDetector=ce,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(ce){this._name=ce,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ce){this._labelPosition="before"===ce?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ce){this._value!==ce&&(this._value=ce,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ce){this._selected=ce,this.value=ce?ce.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ce){this._disabled=(0,_.Ig)(ce),this._markRadiosForCheck()}get required(){return this._required}set required(ce){this._required=(0,_.Ig)(ce),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ce=>{ce.name=this.name,ce._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(le=>{le.checked=this.value===le.value,le.checked&&(this._selected=le)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new ie(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ce=>ce._markForCheck())}writeValue(ce){this.value=ce,this._changeDetector.markForCheck()}registerOnChange(ce){this._controlValueAccessorChangeFn=ce}registerOnTouched(ce){this.onTouched=ce}setDisabledState(ce){this.disabled=ce,this._changeDetector.markForCheck()}}return Y.\u0275fac=function(ce){return new(ce||Y)(e.Y36(e.sBO))},Y.\u0275dir=e.lG2({type:Y,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),Y})(),Ne=(()=>{class Y extends X{}return Y.\u0275fac=function(){let ee;return function(le){return(ee||(ee=e.n5z(Y)))(le||Y)}}(),Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-radio-group"]],contentQueries:function(ce,le,Pe){if(1&ce&&e.Suo(Pe,Z,5),2&ce){let Fe;e.iGM(Fe=e.CRH())&&(le._radios=Fe)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([J,{provide:ge,useExisting:Y}]),e.qOj]}),Y})();class ue{constructor(ee){this._elementRef=ee}}const Oe=(0,b.Kr)((0,b.sb)(ue));let T=(()=>{class Y extends Oe{constructor(ce,le,Pe,Fe,ze,ae,Ue,ve){super(le),this._changeDetector=Pe,this._focusMonitor=Fe,this._radioDispatcher=ze,this._providerOverride=Ue,this._uniqueId="mat-radio-"+ ++L,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ce,this._noopAnimations="NoopAnimations"===ae,ve&&(this.tabIndex=(0,_.su)(ve,0)),this._removeUniqueSelectionListener=ze.listen((He,z)=>{He!==this.id&&z===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ce){const le=(0,_.Ig)(ce);this._checked!==le&&(this._checked=le,le&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!le&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),le&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ce){this._value!==ce&&(this._value=ce,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ce),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ce){this._labelPosition=ce}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ce){this._setDisabled((0,_.Ig)(ce))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ce){this._required=(0,_.Ig)(ce)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ce){this._color=ce}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ce,le){le?this._focusMonitor.focusVia(this._inputElement,le,ce):this._inputElement.nativeElement.focus(ce)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ce=>{!ce&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new ie(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ce){ce.stopPropagation()}_onInputInteraction(ce){if(ce.stopPropagation(),!this.checked&&!this.disabled){const le=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),le&&this.radioGroup._emitChangeEvent())}}_setDisabled(ce){this._disabled!==ce&&(this._disabled=ce,this._changeDetector.markForCheck())}}return Y.\u0275fac=function(ce){e.$Z()},Y.\u0275dir=e.lG2({type:Y,viewQuery:function(ce,le){if(1&ce&&e.Gf(C,5),2&ce){let Pe;e.iGM(Pe=e.CRH())&&(le._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]}),Y})(),Z=(()=>{class Y extends T{constructor(ce,le,Pe,Fe,ze,ae,Ue,ve){super(ce,le,Pe,Fe,ze,ae,Ue,ve)}}return Y.\u0275fac=function(ce){return new(ce||Y)(e.Y36(ge,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(A.tE),e.Y36(E.A8),e.Y36(g.Qb,8),e.Y36(m,8),e.$8M("tabindex"))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ce,le){1&ce&&e.NdJ("focus",function(){return le._inputElement.nativeElement.focus()}),2&ce&&(e.uIk("tabindex",null)("id",le.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",le.checked)("mat-radio-disabled",le.disabled)("_mat-animation-noopable",le._noopAnimations)("mat-primary","primary"===le.color)("mat-accent","accent"===le.color)("mat-warn","warn"===le.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:S,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(ce,le){if(1&ce&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(Fe){return le._onInputInteraction(Fe)})("click",function(Fe){return le._onInputClick(Fe)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&ce){const Pe=e.MAs(1);e.uIk("for",le.inputId),e.xp6(5),e.Q6J("id",le.inputId)("checked",le.checked)("disabled",le.disabled)("tabIndex",le.tabIndex)("required",le.required),e.uIk("name",le.name)("value",le.value)("aria-label",le.ariaLabel)("aria-labelledby",le.ariaLabelledby)("aria-describedby",le.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",Pe)("matRippleDisabled",le._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,O,le._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==le.labelPosition)}},directives:[b.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-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;-moz-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),Y})(),W=(()=>{class Y{}return Y.\u0275fac=function(ce){return new(ce||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[[b.si,b.BQ],b.BQ]}),Y})()},74107:(Xe,_e,p)=>{"use strict";p.d(_e,{gD:()=>je,LD:()=>Ye,$L:()=>Q});var e=p(92845),b=p(69808),_=p(5e3),w=p(90508),g=p(67322),A=p(53435),E=p(15664),C=p(63191),O=p(20449),S=p(91159),m=p(93075),B=p(8929),L=p(88514),J=p(36787),ie=p(1059),ge=p(87545),X=p(72986),Ne=p(92198),ue=p(24850),Oe=p(75778),T=p(7625),Z=p(41777),W=p(50226);const Y=["trigger"],ee=["panel"];function ce(ye,re){if(1&ye&&(_.TgZ(0,"span",8),_._uU(1),_.qZA()),2&ye){const r=_.oxw();_.xp6(1),_.Oqu(r.placeholder)}}function le(ye,re){if(1&ye&&(_.TgZ(0,"span",12),_._uU(1),_.qZA()),2&ye){const r=_.oxw(2);_.xp6(1),_.Oqu(r.triggerValue)}}function Pe(ye,re){1&ye&&_.Hsn(0,0,["*ngSwitchCase","true"])}function Fe(ye,re){if(1&ye&&(_.TgZ(0,"span",9),_.YNc(1,le,2,1,"span",10),_.YNc(2,Pe,1,0,"ng-content",11),_.qZA()),2&ye){const r=_.oxw();_.Q6J("ngSwitch",!!r.customTrigger),_.xp6(2),_.Q6J("ngSwitchCase",!0)}}function ze(ye,re){if(1&ye){const r=_.EpF();_.TgZ(0,"div",13),_.TgZ(1,"div",14,15),_.NdJ("@transformPanel.done",function(d){return _.CHM(r),_.oxw()._panelDoneAnimatingStream.next(d.toState)})("keydown",function(d){return _.CHM(r),_.oxw()._handleKeydown(d)}),_.Hsn(3,1),_.qZA(),_.qZA()}if(2&ye){const r=_.oxw();_.Q6J("@transformPanelWrap",void 0),_.xp6(1),_.Gre("mat-select-panel ",r._getPanelTheme(),""),_.Udp("transform-origin",r._transformOrigin)("font-size",r._triggerFontSize,"px"),_.Q6J("ngClass",r.panelClass)("@transformPanel",r.multiple?"showing-multiple":"showing"),_.uIk("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}const ae=[[["mat-select-trigger"]],"*"],Ue=["mat-select-trigger","*"],ve={transformPanelWrap:(0,Z.X$)("transformPanelWrap",[(0,Z.eR)("* => void",(0,Z.IO)("@transformPanel",[(0,Z.pV)()],{optional:!0}))]),transformPanel:(0,Z.X$)("transformPanel",[(0,Z.SB)("void",(0,Z.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,Z.SB)("showing",(0,Z.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,Z.SB)("showing-multiple",(0,Z.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,Z.eR)("void => *",(0,Z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,Z.eR)("* => void",(0,Z.jt)("100ms 25ms linear",(0,Z.oB)({opacity:0})))])};let me=0;const nt=new _.OlP("mat-select-scroll-strategy"),H=new _.OlP("MAT_SELECT_CONFIG"),he={provide:nt,deps:[e.aV],useFactory:function ke(ye){return()=>ye.scrollStrategies.reposition()}};class P{constructor(re,r){this.source=re,this.value=r}}const R=(0,w.Kr)((0,w.sb)((0,w.Id)((0,w.FD)(class{constructor(ye,re,r,o,d){this._elementRef=ye,this._defaultErrorStateMatcher=re,this._parentForm=r,this._parentFormGroup=o,this.ngControl=d}})))),V=new _.OlP("MatSelectTrigger");let Q=(()=>{class ye{}return ye.\u0275fac=function(r){return new(r||ye)},ye.\u0275dir=_.lG2({type:ye,selectors:[["mat-select-trigger"]],features:[_._Bn([{provide:V,useExisting:ye}])]}),ye})(),Se=(()=>{class ye extends R{constructor(r,o,d,l,s,i,t,n,a,c,h,x,We,At){var Ht,lt,Ut;super(s,l,t,n,c),this._viewportRuler=r,this._changeDetectorRef=o,this._ngZone=d,this._dir=i,this._parentFormField=a,this._liveAnnouncer=We,this._defaultOptions=At,this._panelOpen=!1,this._compareWith=(mt,Lt)=>mt===Lt,this._uid="mat-select-"+me++,this._triggerAriaLabelledBy=null,this._destroy=new B.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+me++,this._panelDoneAnimatingStream=new B.xQ,this._overlayPanelClass=(null===(Ht=this._defaultOptions)||void 0===Ht?void 0:Ht.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Ut=null===(lt=this._defaultOptions)||void 0===lt?void 0:lt.disableOptionCentering)&&void 0!==Ut&&Ut,this.ariaLabel="",this.optionSelectionChanges=(0,L.P)(()=>{const mt=this.options;return mt?mt.changes.pipe((0,ie.O)(mt),(0,ge.w)(()=>(0,J.T)(...mt.map(Lt=>Lt.onSelectionChange)))):this._ngZone.onStable.pipe((0,X.q)(1),(0,ge.w)(()=>this.optionSelectionChanges))}),this.openedChange=new _.vpe,this._openedStream=this.openedChange.pipe((0,Ne.h)(mt=>mt),(0,ue.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Ne.h)(mt=>!mt),(0,ue.U)(()=>{})),this.selectionChange=new _.vpe,this.valueChange=new _.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==At?void 0:At.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=At.typeaheadDebounceInterval),this._scrollStrategyFactory=x,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(r){this._placeholder=r,this.stateChanges.next()}get required(){var r,o,d,l;return null!==(l=null!==(r=this._required)&&void 0!==r?r:null===(d=null===(o=this.ngControl)||void 0===o?void 0:o.control)||void 0===d?void 0:d.hasValidator(m.kI.required))&&void 0!==l&&l}set required(r){this._required=(0,C.Ig)(r),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(r){this._multiple=(0,C.Ig)(r)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(r){this._disableOptionCentering=(0,C.Ig)(r)}get compareWith(){return this._compareWith}set compareWith(r){this._compareWith=r,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(r){(r!==this._value||this._multiple&&Array.isArray(r))&&(this.options&&this._setSelectionByValue(r),this._value=r)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(r){this._typeaheadDebounceInterval=(0,C.su)(r)}get id(){return this._id}set id(r){this._id=r||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new O.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Oe.x)(),(0,T.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,T.R)(this._destroy)).subscribe(r=>{r.added.forEach(o=>o.select()),r.removed.forEach(o=>o.deselect())}),this.options.changes.pipe((0,ie.O)(null),(0,T.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const r=this._getTriggerAriaLabelledby();if(r!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=r,r?o.setAttribute("aria-labelledby",r):o.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(r){r.disabled&&this.stateChanges.next(),r.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(r){this.value=r}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}setDisabledState(r){this.disabled=r,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var r,o;return this.multiple?(null===(r=this._selectionModel)||void 0===r?void 0:r.selected)||[]:null===(o=this._selectionModel)||void 0===o?void 0:o.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const r=this._selectionModel.selected.map(o=>o.viewValue);return this._isRtl()&&r.reverse(),r.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(r){this.disabled||(this.panelOpen?this._handleOpenKeydown(r):this._handleClosedKeydown(r))}_handleClosedKeydown(r){const o=r.keyCode,d=o===S.JH||o===S.LH||o===S.oh||o===S.SV,l=o===S.K5||o===S.L_,s=this._keyManager;if(!s.isTyping()&&l&&!(0,S.Vb)(r)||(this.multiple||r.altKey)&&d)r.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;s.onKeydown(r);const t=this.selected;t&&i!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(r){const o=this._keyManager,d=r.keyCode,l=d===S.JH||d===S.LH,s=o.isTyping();if(l&&r.altKey)r.preventDefault(),this.close();else if(s||d!==S.K5&&d!==S.L_||!o.activeItem||(0,S.Vb)(r))if(!s&&this._multiple&&d===S.A&&r.ctrlKey){r.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=o.activeItemIndex;o.onKeydown(r),this._multiple&&l&&r.shiftKey&&o.activeItem&&o.activeItemIndex!==i&&o.activeItem._selectViaInteraction()}else r.preventDefault(),o.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,X.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(r){if(this._selectionModel.selected.forEach(o=>o.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&r)Array.isArray(r),r.forEach(o=>this._selectValue(o)),this._sortValues();else{const o=this._selectValue(r);o?this._keyManager.updateActiveItem(o):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(r){const o=this.options.find(d=>{if(this._selectionModel.isSelected(d))return!1;try{return null!=d.value&&this._compareWith(d.value,r)}catch(l){return!1}});return o&&this._selectionModel.select(o),o}_initKeyManager(){this._keyManager=new E.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,T.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,T.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 r=(0,J.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,T.R)(r)).subscribe(o=>{this._onSelect(o.source,o.isUserInput),o.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,J.T)(...this.options.map(o=>o._stateChanges)).pipe((0,T.R)(r)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(r,o){const d=this._selectionModel.isSelected(r);null!=r.value||this._multiple?(d!==r.selected&&(r.selected?this._selectionModel.select(r):this._selectionModel.deselect(r)),o&&this._keyManager.setActiveItem(r),this.multiple&&(this._sortValues(),o&&this.focus())):(r.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(r.value)),d!==this._selectionModel.isSelected(r)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const r=this.options.toArray();this._selectionModel.sort((o,d)=>this.sortComparator?this.sortComparator(o,d,r):r.indexOf(o)-r.indexOf(d)),this.stateChanges.next()}}_propagateChanges(r){let o=null;o=this.multiple?this.selected.map(d=>d.value):this.selected?this.selected.value:r,this._value=o,this.valueChange.emit(o),this._onChange(o),this.selectionChange.emit(this._getChangeEvent(o)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var r;return!this._panelOpen&&!this.disabled&&(null===(r=this.options)||void 0===r?void 0:r.length)>0}focus(r){this._elementRef.nativeElement.focus(r)}_getPanelAriaLabelledby(){var r;if(this.ariaLabel)return null;const o=null===(r=this._parentFormField)||void 0===r?void 0:r.getLabelId();return this.ariaLabelledby?(o?o+" ":"")+this.ariaLabelledby:o}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var r;if(this.ariaLabel)return null;const o=null===(r=this._parentFormField)||void 0===r?void 0:r.getLabelId();let d=(o?o+" ":"")+this._valueId;return this.ariaLabelledby&&(d+=" "+this.ariaLabelledby),d}_panelDoneAnimating(r){this.openedChange.emit(r)}setDescribedByIds(r){this._ariaDescribedby=r.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return ye.\u0275fac=function(r){return new(r||ye)(_.Y36(A.rL),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(w.rD),_.Y36(_.SBq),_.Y36(W.Is,8),_.Y36(m.F,8),_.Y36(m.sg,8),_.Y36(g.G_,8),_.Y36(m.a5,10),_.$8M("tabindex"),_.Y36(nt),_.Y36(E.Kd),_.Y36(H,8))},ye.\u0275dir=_.lG2({type:ye,viewQuery:function(r,o){if(1&r&&(_.Gf(Y,5),_.Gf(ee,5),_.Gf(e.pI,5)),2&r){let d;_.iGM(d=_.CRH())&&(o.trigger=d.first),_.iGM(d=_.CRH())&&(o.panel=d.first),_.iGM(d=_.CRH())&&(o._overlayDir=d.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[_.qOj,_.TTD]}),ye})(),je=(()=>{class ye 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(r,o,d){const l=this._getItemHeight();return Math.min(Math.max(0,l*r-o+l/2),d)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,T.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,X.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(r){const o=(0,w.CB)(r,this.options,this.optionGroups),d=this._getItemHeight();this.panel.nativeElement.scrollTop=0===r&&1===o?0:(0,w.jH)((r+o)*d,d,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(r){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(r)}_getChangeEvent(r){return new P(this,r)}_calculateOverlayOffsetX(){const r=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),d=this._isRtl(),l=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let n=this._selectionModel.selected[0]||this.options.first;s=n&&n.group?32:16}d||(s*=-1);const i=0-(r.left+s-(d?l:0)),t=r.right+s-o.width+(d?0:l);i>0?s+=i+8:t>0&&(s-=t+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(r,o,d){const l=this._getItemHeight(),s=(l-this._triggerRect.height)/2,i=Math.floor(256/l);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?r*l:this._scrollTop===d?(r-(this._getItemCount()-i))*l+(l-(this._getItemCount()*l-256)%l):o-l/2,Math.round(-1*t-s))}_checkOverlayWithinViewport(r){const o=this._getItemHeight(),d=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,s=d.height-this._triggerRect.bottom-8,i=Math.abs(this._offsetY),n=Math.min(this._getItemCount()*o,256)-i-this._triggerRect.height;n>s?this._adjustPanelUp(n,s):i>l?this._adjustPanelDown(i,l,r):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(r,o){const d=Math.round(r-o);this._scrollTop-=d,this._offsetY-=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(r,o,d){const l=Math.round(r-o);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=d)return this._scrollTop=d,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const r=this._getItemHeight(),o=this._getItemCount(),d=Math.min(o*r,256),s=o*r-d;let i;i=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),i+=(0,w.CB)(i,this.options,this.optionGroups);const t=d/2;this._scrollTop=this._calculateOverlayScroll(i,t,s),this._offsetY=this._calculateOverlayOffsetY(i,t,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const r=this._getItemHeight(),o=(r-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-o+r/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return ye.\u0275fac=function(){let re;return function(o){return(re||(re=_.n5z(ye)))(o||ye)}}(),ye.\u0275cmp=_.Xpm({type:ye,selectors:[["mat-select"]],contentQueries:function(r,o,d){if(1&r&&(_.Suo(d,V,5),_.Suo(d,w.ey,5),_.Suo(d,w.K7,5)),2&r){let l;_.iGM(l=_.CRH())&&(o.customTrigger=l.first),_.iGM(l=_.CRH())&&(o.options=l),_.iGM(l=_.CRH())&&(o.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(r,o){1&r&&_.NdJ("keydown",function(l){return o._handleKeydown(l)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&r&&(_.uIk("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-describedby",o._ariaDescribedby||null)("aria-activedescendant",o._getAriaActiveDescendant()),_.ekj("mat-select-disabled",o.disabled)("mat-select-invalid",o.errorState)("mat-select-required",o.required)("mat-select-empty",o.empty)("mat-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[_._Bn([{provide:g.Eo,useExisting:ye},{provide:w.HF,useExisting:ye}]),_.qOj],ngContentSelectors:Ue,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(r,o){if(1&r&&(_.F$t(ae),_.TgZ(0,"div",0,1),_.NdJ("click",function(){return o.toggle()}),_.TgZ(3,"div",2),_.YNc(4,ce,2,1,"span",3),_.YNc(5,Fe,3,2,"span",4),_.qZA(),_.TgZ(6,"div",5),_._UZ(7,"div",6),_.qZA(),_.qZA(),_.YNc(8,ze,4,14,"ng-template",7),_.NdJ("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&r){const d=_.MAs(1);_.uIk("aria-owns",o.panelOpen?o.id+"-panel":null),_.xp6(3),_.Q6J("ngSwitch",o.empty),_.uIk("id",o._valueId),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1),_.xp6(3),_.Q6J("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",d)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayMinWidth",null==o._triggerRect?null:o._triggerRect.width)("cdkConnectedOverlayOffsetY",o._offsetY)}},directives:[e.xu,b.RF,b.n9,b.ED,e.pI,b.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[ve.transformPanelWrap,ve.transformPanel]},changeDetection:0}),ye})(),Ye=(()=>{class ye{}return ye.\u0275fac=function(r){return new(r||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({providers:[he],imports:[[b.ez,e.U8,w.Ng,w.BQ],A.ZD,g.lN,w.Ng,w.BQ]}),ye})()},2638:(Xe,_e,p)=>{"use strict";p.d(_e,{JX:()=>Je,TM:()=>nt,Rh:()=>$e,SJ:()=>ke});var e=p(70925),b=p(53435),_=p(69808),w=p(5e3),g=p(90508),A=p(63191),E=p(91159),C=p(8929),O=p(23753),S=p(36787),m=p(92198),B=p(24850),L=p(77604),J=p(7625),ie=p(75778),ge=p(72986),X=p(1059),Ne=p(80013),ue=p(41777),Oe=p(76360),T=p(15664),Z=p(50226);const W=["*"],Y=["content"];function ee(H,he){if(1&H){const P=w.EpF();w.TgZ(0,"div",2),w.NdJ("click",function(){return w.CHM(P),w.oxw()._onBackdropClicked()}),w.qZA()}if(2&H){const P=w.oxw();w.ekj("mat-drawer-shown",P._isShowingBackdrop())}}function ce(H,he){1&H&&(w.TgZ(0,"mat-drawer-content"),w.Hsn(1,2),w.qZA())}const le=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Pe=["mat-drawer","mat-drawer-content","*"];function Fe(H,he){if(1&H){const P=w.EpF();w.TgZ(0,"div",2),w.NdJ("click",function(){return w.CHM(P),w.oxw()._onBackdropClicked()}),w.qZA()}if(2&H){const P=w.oxw();w.ekj("mat-drawer-shown",P._isShowingBackdrop())}}function ze(H,he){1&H&&(w.TgZ(0,"mat-sidenav-content"),w.Hsn(1,2),w.qZA())}const ae=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ue=["mat-sidenav","mat-sidenav-content","*"],He={transformDrawer:(0,ue.X$)("transform",[(0,ue.SB)("open, open-instant",(0,ue.oB)({transform:"none",visibility:"visible"})),(0,ue.SB)("void",(0,ue.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ue.eR)("void => open-instant",(0,ue.jt)("0ms")),(0,ue.eR)("void <=> open, open-instant => void",(0,ue.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},I=new w.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Ae(){return!1}}),me=new w.OlP("MAT_DRAWER_CONTAINER");let Me=(()=>{class H extends b.PQ{constructor(P,R,V,Q,Se){super(V,Q,Se),this._changeDetectorRef=P,this._container=R}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return H.\u0275fac=function(P){return new(P||H)(w.Y36(w.sBO),w.Y36((0,w.Gpc)(()=>we)),w.Y36(w.SBq),w.Y36(b.mF),w.Y36(w.R0b))},H.\u0275cmp=w.Xpm({type:H,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(P,R){2&P&&w.Udp("margin-left",R._container._contentMargins.left,"px")("margin-right",R._container._contentMargins.right,"px")},features:[w._Bn([{provide:b.PQ,useExisting:H}]),w.qOj],ngContentSelectors:W,decls:1,vars:0,template:function(P,R){1&P&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0}),H})(),pe=(()=>{class H{constructor(P,R,V,Q,Se,je,Ye,ye){this._elementRef=P,this._focusTrapFactory=R,this._focusMonitor=V,this._platform=Q,this._ngZone=Se,this._interactivityChecker=je,this._doc=Ye,this._container=ye,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new C.xQ,this._animationEnd=new C.xQ,this._animationState="void",this.openedChange=new w.vpe(!0),this._openedStream=this.openedChange.pipe((0,m.h)(re=>re),(0,B.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,m.h)(re=>re.fromState!==re.toState&&0===re.toState.indexOf("open")),(0,L.h)(void 0)),this._closedStream=this.openedChange.pipe((0,m.h)(re=>!re),(0,B.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,m.h)(re=>re.fromState!==re.toState&&"void"===re.toState),(0,L.h)(void 0)),this._destroyed=new C.xQ,this.onPositionChanged=new w.vpe,this._modeChanged=new C.xQ,this.openedChange.subscribe(re=>{re?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,O.R)(this._elementRef.nativeElement,"keydown").pipe((0,m.h)(re=>re.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(re)),(0,J.R)(this._destroyed)).subscribe(re=>this._ngZone.run(()=>{this.close(),re.stopPropagation(),re.preventDefault()}))}),this._animationEnd.pipe((0,ie.x)((re,r)=>re.fromState===r.fromState&&re.toState===r.toState)).subscribe(re=>{const{fromState:r,toState:o}=re;(0===o.indexOf("open")&&"void"===r||"void"===o&&0===r.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(P){(P="end"===P?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(P),this._position=P,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(P){this._mode=P,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(P){this._disableClose=(0,A.Ig)(P)}get autoFocus(){const P=this._autoFocus;return null==P?"side"===this.mode?"dialog":"first-tabbable":P}set autoFocus(P){("true"===P||"false"===P||null==P)&&(P=(0,A.Ig)(P)),this._autoFocus=P}get opened(){return this._opened}set opened(P){this.toggle((0,A.Ig)(P))}_forceFocus(P,R){this._interactivityChecker.isFocusable(P)||(P.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{P.addEventListener("blur",()=>P.removeAttribute("tabindex")),P.addEventListener("mousedown",()=>P.removeAttribute("tabindex"))})),P.focus(R)}_focusByCssSelector(P,R){let V=this._elementRef.nativeElement.querySelector(P);V&&this._forceFocus(V,R)}_takeFocus(){if(!this._focusTrap)return;const P=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(R=>{!R&&"function"==typeof this._elementRef.nativeElement.focus&&P.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(P){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,P):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const P=this._doc.activeElement;return!!P&&this._elementRef.nativeElement.contains(P)}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 P;this._focusTrap&&this._focusTrap.destroy(),null===(P=this._anchor)||void 0===P||P.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(P){return this.toggle(!0,P)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(P=!this.opened,R){P&&R&&(this._openedVia=R);const V=this._setOpen(P,!P&&this._isFocusWithinDrawer(),this._openedVia||"program");return P||(this._openedVia=null),V}_setOpen(P,R,V){return this._opened=P,P?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",R&&this._restoreFocus(V)),this._updateFocusTrapState(),new Promise(Q=>{this.openedChange.pipe((0,ge.q)(1)).subscribe(Se=>Q(Se?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(P){const R=this._elementRef.nativeElement,V=R.parentNode;"end"===P?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),V.insertBefore(this._anchor,R)),V.appendChild(R)):this._anchor&&this._anchor.parentNode.insertBefore(R,this._anchor)}}return H.\u0275fac=function(P){return new(P||H)(w.Y36(w.SBq),w.Y36(T.qV),w.Y36(T.tE),w.Y36(e.t4),w.Y36(w.R0b),w.Y36(T.ic),w.Y36(_.K0,8),w.Y36(me,8))},H.\u0275cmp=w.Xpm({type:H,selectors:[["mat-drawer"]],viewQuery:function(P,R){if(1&P&&w.Gf(Y,5),2&P){let V;w.iGM(V=w.CRH())&&(R._content=V.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(P,R){1&P&&w.WFA("@transform.start",function(Q){return R._animationStarted.next(Q)})("@transform.done",function(Q){return R._animationEnd.next(Q)}),2&P&&(w.uIk("align",null),w.d8E("@transform",R._animationState),w.ekj("mat-drawer-end","end"===R.position)("mat-drawer-over","over"===R.mode)("mat-drawer-push","push"===R.mode)("mat-drawer-side","side"===R.mode)("mat-drawer-opened",R.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(P,R){1&P&&(w.F$t(),w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA())},directives:[b.PQ],encapsulation:2,data:{animation:[He.transformDrawer]},changeDetection:0}),H})(),we=(()=>{class H{constructor(P,R,V,Q,Se,je=!1,Ye){this._dir=P,this._element=R,this._ngZone=V,this._changeDetectorRef=Q,this._animationMode=Ye,this._drawers=new w.n_E,this.backdropClick=new w.vpe,this._destroyed=new C.xQ,this._doCheckSubject=new C.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new C.xQ,P&&P.change.pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Se.change().pipe((0,J.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=je}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(P){this._autosize=(0,A.Ig)(P)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(P){this._backdropOverride=null==P?null:(0,A.Ig)(P)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,X.O)(this._allDrawers),(0,J.R)(this._destroyed)).subscribe(P=>{this._drawers.reset(P.filter(R=>!R._container||R._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,X.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(P=>{this._watchDrawerToggle(P),this._watchDrawerPosition(P),this._watchDrawerMode(P)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Ne.b)(10),(0,J.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(P=>P.open())}close(){this._drawers.forEach(P=>P.close())}updateContentMargins(){let P=0,R=0;if(this._left&&this._left.opened)if("side"==this._left.mode)P+=this._left._getWidth();else if("push"==this._left.mode){const V=this._left._getWidth();P+=V,R-=V}if(this._right&&this._right.opened)if("side"==this._right.mode)R+=this._right._getWidth();else if("push"==this._right.mode){const V=this._right._getWidth();R+=V,P-=V}P=P||null,R=R||null,(P!==this._contentMargins.left||R!==this._contentMargins.right)&&(this._contentMargins={left:P,right:R},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(P){P._animationStarted.pipe((0,m.h)(R=>R.fromState!==R.toState),(0,J.R)(this._drawers.changes)).subscribe(R=>{"open-instant"!==R.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==P.mode&&P.openedChange.pipe((0,J.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(P.opened))}_watchDrawerPosition(P){!P||P.onPositionChanged.pipe((0,J.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,ge.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(P){P&&P._modeChanged.pipe((0,J.R)((0,S.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(P){const R=this._element.nativeElement.classList,V="mat-drawer-container-has-open";P?R.add(V):R.remove(V)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(P=>{"end"==P.position?this._end=P:this._start=P}),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(P=>P&&!P.disableClose&&this._canHaveBackdrop(P)).forEach(P=>P._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(P){return"side"!==P.mode||!!this._backdropOverride}_isDrawerOpen(P){return null!=P&&P.opened}}return H.\u0275fac=function(P){return new(P||H)(w.Y36(Z.Is,8),w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(b.rL),w.Y36(I),w.Y36(Oe.Qb,8))},H.\u0275cmp=w.Xpm({type:H,selectors:[["mat-drawer-container"]],contentQueries:function(P,R,V){if(1&P&&(w.Suo(V,Me,5),w.Suo(V,pe,5)),2&P){let Q;w.iGM(Q=w.CRH())&&(R._content=Q.first),w.iGM(Q=w.CRH())&&(R._allDrawers=Q)}},viewQuery:function(P,R){if(1&P&&w.Gf(Me,5),2&P){let V;w.iGM(V=w.CRH())&&(R._userContent=V.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(P,R){2&P&&w.ekj("mat-drawer-container-explicit-backdrop",R._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[w._Bn([{provide:me,useExisting:H}])],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(P,R){1&P&&(w.F$t(le),w.YNc(0,ee,1,2,"div",0),w.Hsn(1),w.Hsn(2,1),w.YNc(3,ce,2,0,"mat-drawer-content",1)),2&P&&(w.Q6J("ngIf",R.hasBackdrop),w.xp6(3),w.Q6J("ngIf",!R._content))},directives:[Me,_.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),H})(),$e=(()=>{class H extends Me{constructor(P,R,V,Q,Se){super(P,R,V,Q,Se)}}return H.\u0275fac=function(P){return new(P||H)(w.Y36(w.sBO),w.Y36((0,w.Gpc)(()=>nt)),w.Y36(w.SBq),w.Y36(b.mF),w.Y36(w.R0b))},H.\u0275cmp=w.Xpm({type:H,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(P,R){2&P&&w.Udp("margin-left",R._container._contentMargins.left,"px")("margin-right",R._container._contentMargins.right,"px")},features:[w._Bn([{provide:b.PQ,useExisting:H}]),w.qOj],ngContentSelectors:W,decls:1,vars:0,template:function(P,R){1&P&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0}),H})(),Je=(()=>{class H extends pe{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(P){this._fixedInViewport=(0,A.Ig)(P)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(P){this._fixedTopGap=(0,A.su)(P)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(P){this._fixedBottomGap=(0,A.su)(P)}}return H.\u0275fac=function(){let he;return function(R){return(he||(he=w.n5z(H)))(R||H)}}(),H.\u0275cmp=w.Xpm({type:H,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(P,R){2&P&&(w.uIk("align",null),w.Udp("top",R.fixedInViewport?R.fixedTopGap:null,"px")("bottom",R.fixedInViewport?R.fixedBottomGap:null,"px"),w.ekj("mat-drawer-end","end"===R.position)("mat-drawer-over","over"===R.mode)("mat-drawer-push","push"===R.mode)("mat-drawer-side","side"===R.mode)("mat-drawer-opened",R.opened)("mat-sidenav-fixed",R.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[w.qOj],ngContentSelectors:W,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(P,R){1&P&&(w.F$t(),w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA())},directives:[b.PQ],encapsulation:2,data:{animation:[He.transformDrawer]},changeDetection:0}),H})(),nt=(()=>{class H extends we{}return H.\u0275fac=function(){let he;return function(R){return(he||(he=w.n5z(H)))(R||H)}}(),H.\u0275cmp=w.Xpm({type:H,selectors:[["mat-sidenav-container"]],contentQueries:function(P,R,V){if(1&P&&(w.Suo(V,$e,5),w.Suo(V,Je,5)),2&P){let Q;w.iGM(Q=w.CRH())&&(R._content=Q.first),w.iGM(Q=w.CRH())&&(R._allDrawers=Q)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(P,R){2&P&&w.ekj("mat-drawer-container-explicit-backdrop",R._backdropOverride)},exportAs:["matSidenavContainer"],features:[w._Bn([{provide:me,useExisting:H}]),w.qOj],ngContentSelectors:Ue,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(P,R){1&P&&(w.F$t(ae),w.YNc(0,Fe,1,2,"div",0),w.Hsn(1),w.Hsn(2,1),w.YNc(3,ze,2,0,"mat-sidenav-content",1)),2&P&&(w.Q6J("ngIf",R.hasBackdrop),w.xp6(3),w.Q6J("ngIf",!R._content))},directives:[$e,_.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),H})(),ke=(()=>{class H{}return H.\u0275fac=function(P){return new(P||H)},H.\u0275mod=w.oAB({type:H}),H.\u0275inj=w.cJS({imports:[[_.ez,g.BQ,e.ud,b.ZD],b.ZD,g.BQ]}),H})()},32368:(Xe,_e,p)=>{"use strict";p.d(_e,{Rr:()=>Ne,rP:()=>Z});var e=p(17144),b=p(5e3),_=p(90508),w=p(63191),g=p(93075),A=p(76360),E=p(15664);const C=["thumbContainer"],O=["toggleBar"],S=["input"],m=function(W){return{enterDuration:W}},B=["*"],L=new b.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let J=0;const ie={provide:g.JU,useExisting:(0,b.Gpc)(()=>Ne),multi:!0};class ge{constructor(Y,ee){this.source=Y,this.checked=ee}}const X=(0,_.sb)((0,_.pj)((0,_.Kr)((0,_.Id)(class{constructor(W){this._elementRef=W}}))));let Ne=(()=>{class W extends X{constructor(ee,ce,le,Pe,Fe,ze){super(ee),this._focusMonitor=ce,this._changeDetectorRef=le,this.defaults=Fe,this._onChange=ae=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++J,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new b.vpe,this.toggleChange=new b.vpe,this.tabIndex=parseInt(Pe)||0,this.color=this.defaultColor=Fe.color||"accent",this._noopAnimations="NoopAnimations"===ze}get required(){return this._required}set required(ee){this._required=(0,w.Ig)(ee)}get checked(){return this._checked}set checked(ee){this._checked=(0,w.Ig)(ee),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ee=>{ee||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(ee){ee.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(ee){ee.stopPropagation()}writeValue(ee){this.checked=!!ee}registerOnChange(ee){this._onChange=ee}registerOnTouched(ee){this._onTouched=ee}setDisabledState(ee){this.disabled=ee,this._changeDetectorRef.markForCheck()}focus(ee,ce){ce?this._focusMonitor.focusVia(this._inputElement,ce,ee):this._inputElement.nativeElement.focus(ee)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new ge(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return W.\u0275fac=function(ee){return new(ee||W)(b.Y36(b.SBq),b.Y36(E.tE),b.Y36(b.sBO),b.$8M("tabindex"),b.Y36(L),b.Y36(A.Qb,8))},W.\u0275cmp=b.Xpm({type:W,selectors:[["mat-slide-toggle"]],viewQuery:function(ee,ce){if(1&ee&&(b.Gf(C,5),b.Gf(O,5),b.Gf(S,5)),2&ee){let le;b.iGM(le=b.CRH())&&(ce._thumbEl=le.first),b.iGM(le=b.CRH())&&(ce._thumbBarEl=le.first),b.iGM(le=b.CRH())&&(ce._inputElement=le.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(ee,ce){2&ee&&(b.Ikx("id",ce.id),b.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),b.ekj("mat-checked",ce.checked)("mat-disabled",ce.disabled)("mat-slide-toggle-label-before","before"==ce.labelPosition)("_mat-animation-noopable",ce._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",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"},exportAs:["matSlideToggle"],features:[b._Bn([ie]),b.qOj],ngContentSelectors:B,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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(ee,ce){if(1&ee&&(b.F$t(),b.TgZ(0,"label",0,1),b.TgZ(2,"span",2,3),b.TgZ(4,"input",4,5),b.NdJ("change",function(Pe){return ce._onChangeEvent(Pe)})("click",function(Pe){return ce._onInputClick(Pe)}),b.qZA(),b.TgZ(6,"span",6,7),b._UZ(8,"span",8),b.TgZ(9,"span",9),b._UZ(10,"span",10),b.qZA(),b.qZA(),b.qZA(),b.TgZ(11,"span",11,12),b.NdJ("cdkObserveContent",function(){return ce._onLabelTextChange()}),b.TgZ(13,"span",13),b._uU(14,"\xa0"),b.qZA(),b.Hsn(15),b.qZA(),b.qZA()),2&ee){const le=b.MAs(1),Pe=b.MAs(12);b.uIk("for",ce.inputId),b.xp6(2),b.ekj("mat-slide-toggle-bar-no-side-margin",!Pe.textContent||!Pe.textContent.trim()),b.xp6(2),b.Q6J("id",ce.inputId)("required",ce.required)("tabIndex",ce.tabIndex)("checked",ce.checked)("disabled",ce.disabled),b.uIk("name",ce.name)("aria-checked",ce.checked)("aria-label",ce.ariaLabel)("aria-labelledby",ce.ariaLabelledby)("aria-describedby",ce.ariaDescribedby),b.xp6(5),b.Q6J("matRippleTrigger",le)("matRippleDisabled",ce.disableRipple||ce.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",b.VKq(18,m,ce._noopAnimations?0:150))}},directives:[_.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:transparent}.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;-moz-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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),W})(),T=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=b.oAB({type:W}),W.\u0275inj=b.cJS({}),W})(),Z=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=b.oAB({type:W}),W.\u0275inj=b.cJS({imports:[[T,_.si,_.BQ,e.Q8],T,_.BQ]}),W})()},57261:(Xe,_e,p)=>{"use strict";p.d(_e,{ZX:()=>X});var e=p(92845),b=p(47429),_=p(69808),w=p(5e3),g=p(90508),A=p(47423);p(41777);let X=(()=>{class Z{}return Z.\u0275fac=function(Y){return new(Y||Z)},Z.\u0275mod=w.oAB({type:Z}),Z.\u0275inj=w.cJS({imports:[[e.U8,b.eL,_.ez,A.ot,g.BQ],g.BQ]}),Z})()},84847:(Xe,_e,p)=>{"use strict";p.d(_e,{YE:()=>Y,nU:()=>le,JX:()=>Pe});var e=p(5e3),b=p(63191),_=p(91159),w=p(90508),g=p(8929),A=p(36787),E=p(41777),C=p(15664),O=p(69808);const S=["mat-sort-header",""];function m(Fe,ze){if(1&Fe){const ae=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(ae),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(ae),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&Fe){const ae=e.oxw();e.Q6J("@arrowOpacity",ae._getArrowViewState())("@arrowPosition",ae._getArrowViewState())("@allowChildren",ae._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",ae._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",ae._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",ae._getArrowDirectionState())}}const B=["*"],L=w.mZ.ENTERING+" "+w.yN.STANDARD_CURVE,J={indicator:(0,E.X$)("indicator",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"translateY(0px)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"translateY(10px)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(L))]),leftPointer:(0,E.X$)("leftPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(L))]),rightPointer:(0,E.X$)("rightPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(L))]),arrowOpacity:(0,E.X$)("arrowOpacity",[(0,E.SB)("desc-to-active, asc-to-active, active",(0,E.oB)({opacity:1})),(0,E.SB)("desc-to-hint, asc-to-hint, hint",(0,E.oB)({opacity:.54})),(0,E.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,E.oB)({opacity:0})),(0,E.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,E.jt)("0ms")),(0,E.eR)("* <=> *",(0,E.jt)(L))]),arrowPosition:(0,E.X$)("arrowPosition",[(0,E.eR)("* => desc-to-hint, * => desc-to-active",(0,E.jt)(L,(0,E.F4)([(0,E.oB)({transform:"translateY(-25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-desc, * => active-to-desc",(0,E.jt)(L,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(25%)"})]))),(0,E.eR)("* => asc-to-hint, * => asc-to-active",(0,E.jt)(L,(0,E.F4)([(0,E.oB)({transform:"translateY(25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-asc, * => active-to-asc",(0,E.jt)(L,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(-25%)"})]))),(0,E.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,E.oB)({transform:"translateY(0)"})),(0,E.SB)("hint-to-desc, active-to-desc, desc",(0,E.oB)({transform:"translateY(-25%)"})),(0,E.SB)("hint-to-asc, active-to-asc, asc",(0,E.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,E.X$)("allowChildren",[(0,E.eR)("* <=> *",[(0,E.IO)("@*",(0,E.pV)(),{optional:!0})])])};let ue=(()=>{class Fe{constructor(){this.changes=new g.xQ}}return Fe.\u0275fac=function(ae){return new(ae||Fe)},Fe.\u0275prov=e.Yz7({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})();const T={provide:ue,deps:[[new e.FiY,new e.tp0,ue]],useFactory:function Oe(Fe){return Fe||new ue}},Z=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),W=(0,w.dB)((0,w.Id)(class{}));let Y=(()=>{class Fe extends W{constructor(ae){super(),this._defaultOptions=ae,this.sortables=new Map,this._stateChanges=new g.xQ,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(ae){this._direction=ae}get disableClear(){return this._disableClear}set disableClear(ae){this._disableClear=(0,b.Ig)(ae)}register(ae){this.sortables.set(ae.id,ae)}deregister(ae){this.sortables.delete(ae.id)}sort(ae){this.active!=ae.id?(this.active=ae.id,this.direction=ae.start?ae.start:this.start):this.direction=this.getNextSortDirection(ae),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(ae){var Ue,ve,He;if(!ae)return"";const z=null!==(ve=null!==(Ue=null==ae?void 0:ae.disableClear)&&void 0!==Ue?Ue:this.disableClear)&&void 0!==ve?ve:!!(null===(He=this._defaultOptions)||void 0===He?void 0:He.disableClear);let I=function ee(Fe,ze){let ae=["asc","desc"];return"desc"==Fe&&ae.reverse(),ze||ae.push(""),ae}(ae.start||this.start,z),me=I.indexOf(this.direction)+1;return me>=I.length&&(me=0),I[me]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Fe.\u0275fac=function(ae){return new(ae||Fe)(e.Y36(Z,8))},Fe.\u0275dir=e.lG2({type:Fe,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]}),Fe})();const ce=(0,w.Id)(class{});let le=(()=>{class Fe extends ce{constructor(ae,Ue,ve,He,z,I,me){super(),this._intl=ae,this._changeDetectorRef=Ue,this._sort=ve,this._columnDef=He,this._focusMonitor=z,this._elementRef=I,this._ariaDescriber=me,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(ae){this._updateSortActionDescription(ae)}get disableClear(){return this._disableClear}set disableClear(ae){this._disableClear=(0,b.Ig)(ae)}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('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ae=>{const Ue=!!ae;Ue!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Ue),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(ae){this._isDisabled()&&ae||(this._showIndicatorHint=ae,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(ae){this._viewState=ae||{},this._disableViewStateAnimation&&(this._viewState={toState:ae.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(ae){!this._isDisabled()&&(ae.keyCode===_.L_||ae.keyCode===_.K5)&&(ae.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 ae=this._viewState.fromState;return(ae?`${ae}-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(ae){var Ue,ve;this._sortButton&&(null===(Ue=this._ariaDescriber)||void 0===Ue||Ue.removeDescription(this._sortButton,this._sortActionDescription),null===(ve=this._ariaDescriber)||void 0===ve||ve.describe(this._sortButton,ae)),this._sortActionDescription=ae}_handleStateChanges(){this._rerenderSubscription=(0,A.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 Fe.\u0275fac=function(ae){return new(ae||Fe)(e.Y36(ue),e.Y36(e.sBO),e.Y36(Y,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(C.tE),e.Y36(e.SBq),e.Y36(C.$s,8))},Fe.\u0275cmp=e.Xpm({type:Fe,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(ae,Ue){1&ae&&e.NdJ("click",function(){return Ue._handleClick()})("keydown",function(He){return Ue._handleKeydown(He)})("mouseenter",function(){return Ue._setIndicatorHintVisible(!0)})("mouseleave",function(){return Ue._setIndicatorHintVisible(!1)}),2&ae&&(e.uIk("aria-sort",Ue._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",Ue._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:S,ngContentSelectors:B,decls:4,vars:6,consts:[["role","button",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(ae,Ue){1&ae&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,m,6,6,"div",2),e.qZA()),2&ae&&(e.ekj("mat-sort-header-sorted",Ue._isSorted())("mat-sort-header-position-before","before"==Ue.arrowPosition),e.uIk("tabindex",Ue._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",Ue._renderArrow()))},directives:[O.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-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}\n"],encapsulation:2,data:{animation:[J.indicator,J.leftPointer,J.rightPointer,J.arrowOpacity,J.arrowPosition,J.allowChildren]},changeDetection:0}),Fe})(),Pe=(()=>{class Fe{}return Fe.\u0275fac=function(ae){return new(ae||Fe)},Fe.\u0275mod=e.oAB({type:Fe}),Fe.\u0275inj=e.cJS({providers:[T],imports:[[O.ez,w.BQ]]}),Fe})()},92081:(Xe,_e,p)=>{"use strict";p.d(_e,{C0:()=>n,BY:()=>t,VY:()=>ye,Vq:()=>x,T5:()=>Ht,fd:()=>At});var e=p(47429),b=p(15664),_=p(63191),w=p(91159),g=p(69808),A=p(5e3),E=p(70925),C=p(8929),O=p(21086),S=p(1059),m=p(7625),B=p(50226);function L(lt,Ut){1<&&A.Hsn(0)}const J=["*"];let ie=(()=>{class lt{constructor(mt){this._elementRef=mt}focus(){this._elementRef.nativeElement.focus()}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.SBq))},lt.\u0275dir=A.lG2({type:lt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),lt})(),ge=(()=>{class lt{constructor(mt){this.template=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["","cdkStepLabel",""]]}),lt})(),X=0;const Oe=new A.OlP("STEPPER_GLOBAL_OPTIONS");let T=(()=>{class lt{constructor(mt,Lt){this._stepper=mt,this.interacted=!1,this.interactedStream=new A.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Lt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(mt){this._editable=(0,_.Ig)(mt)}get optional(){return this._optional}set optional(mt){this._optional=(0,_.Ig)(mt)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(mt){this._completedOverride=(0,_.Ig)(mt)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(mt){this._customError=(0,_.Ig)(mt)}_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 mt;return null!==(mt=this._stepperOptions.showError)&&void 0!==mt?mt:null!=this._customError}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36((0,A.Gpc)(()=>Z)),A.Y36(Oe,8))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["cdk-step"]],contentQueries:function(mt,Lt,Te){if(1&mt&&A.Suo(Te,ge,5),2&mt){let Ge;A.iGM(Ge=A.CRH())&&(Lt.stepLabel=Ge.first)}},viewQuery:function(mt,Lt){if(1&mt&&A.Gf(A.Rgc,7),2&mt){let Te;A.iGM(Te=A.CRH())&&(Lt.content=Te.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:[A.TTD],ngContentSelectors:J,decls:1,vars:0,template:function(mt,Lt){1&mt&&(A.F$t(),A.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),lt})(),Z=(()=>{class lt{constructor(mt,Lt,Te,Ge){this._dir=mt,this._changeDetectorRef=Lt,this._elementRef=Te,this._destroyed=new C.xQ,this.steps=new A.n_E,this._sortedHeaders=new A.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new A.vpe,this._orientation="horizontal",this._groupId=X++}get linear(){return this._linear}set linear(mt){this._linear=(0,_.Ig)(mt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(mt){var Lt;const Te=(0,_.su)(mt);this.steps&&this._steps?(this._isValidIndex(Te),null===(Lt=this.selected)||void 0===Lt||Lt._markAsInteracted(),this._selectedIndex!==Te&&!this._anyControlsInvalidOrPending(Te)&&(Te>=this._selectedIndex||this.steps.toArray()[Te].editable)&&this._updateSelectedItemIndex(Te)):this._selectedIndex=Te}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(mt){this.selectedIndex=mt&&this.steps?this.steps.toArray().indexOf(mt):-1}get orientation(){return this._orientation}set orientation(mt){this._orientation=mt,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===mt)}ngAfterContentInit(){this._steps.changes.pipe((0,S.O)(this._steps),(0,m.R)(this._destroyed)).subscribe(mt=>{this.steps.reset(mt.filter(Lt=>Lt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,S.O)(this._stepHeader),(0,m.R)(this._destroyed)).subscribe(mt=>{this._sortedHeaders.reset(mt.toArray().sort((Lt,Te)=>Lt._elementRef.nativeElement.compareDocumentPosition(Te._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new b.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,O.of)()).pipe((0,S.O)(this._layoutDirection()),(0,m.R)(this._destroyed)).subscribe(mt=>this._keyManager.withHorizontalOrientation(mt)),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(mt=>mt.reset()),this._stateChanged()}_getStepLabelId(mt){return`cdk-step-label-${this._groupId}-${mt}`}_getStepContentId(mt){return`cdk-step-content-${this._groupId}-${mt}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(mt){const Lt=mt-this._selectedIndex;return Lt<0?"rtl"===this._layoutDirection()?"next":"previous":Lt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(mt,Lt="number"){const Te=this.steps.toArray()[mt],Ge=this._isCurrentStep(mt);return Te._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Te,Ge):this._getGuidelineLogic(Te,Ge,Lt)}_getDefaultIndicatorLogic(mt,Lt){return mt._showError()&&mt.hasError&&!Lt?"error":!mt.completed||Lt?"number":mt.editable?"edit":"done"}_getGuidelineLogic(mt,Lt,Te="number"){return mt._showError()&&mt.hasError&&!Lt?"error":mt.completed&&!Lt?"done":mt.completed&&Lt?Te:mt.editable&&Lt?"edit":Te}_isCurrentStep(mt){return this._selectedIndex===mt}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(mt){const Lt=this.steps.toArray();this.selectionChange.emit({selectedIndex:mt,previouslySelectedIndex:this._selectedIndex,selectedStep:Lt[mt],previouslySelectedStep:Lt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(mt):this._keyManager.updateActiveItem(mt),this._selectedIndex=mt,this._stateChanged()}_onKeydown(mt){const Lt=(0,w.Vb)(mt),Te=mt.keyCode,Ge=this._keyManager;null==Ge.activeItemIndex||Lt||Te!==w.L_&&Te!==w.K5?Ge.onKeydown(mt):(this.selectedIndex=Ge.activeItemIndex,mt.preventDefault())}_anyControlsInvalidOrPending(mt){return!!(this._linear&&mt>=0)&&this.steps.toArray().slice(0,mt).some(Lt=>{const Te=Lt.stepControl;return(Te?Te.invalid||Te.pending||!Lt.interacted:!Lt.completed)&&!Lt.optional&&!Lt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const mt=this._elementRef.nativeElement,Lt=(0,E.ht)();return mt===Lt||mt.contains(Lt)}_isValidIndex(mt){return mt>-1&&(!this.steps||mt{class lt{constructor(mt){this._stepper=mt,this.type="button"}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(Z))},lt.\u0275dir=A.lG2({type:lt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(mt,Lt){1&mt&&A.NdJ("click",function(){return Lt._stepper.previous()}),2&mt&&A.Ikx("type",Lt.type)},inputs:{type:"type"}}),lt})(),ee=(()=>{class lt{}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275mod=A.oAB({type:lt}),lt.\u0275inj=A.cJS({imports:[[B.vT]]}),lt})();var ce=p(47423),le=p(90508),Pe=p(25245),Fe=p(42654),ze=p(87545),ae=p(24850),Ue=p(75778),ve=p(41777);function He(lt,Ut){if(1<&&A.GkF(0,8),2<){const mt=A.oxw();A.Q6J("ngTemplateOutlet",mt.iconOverrides[mt.state])("ngTemplateOutletContext",mt._getIconContext())}}function z(lt,Ut){if(1<&&(A.TgZ(0,"span",13),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._getDefaultTextForState(mt.state))}}function I(lt,Ut){if(1<&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._intl.completedLabel)}}function me(lt,Ut){if(1<&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._intl.editableLabel)}}function Ae(lt,Ut){if(1<&&(A.TgZ(0,"mat-icon",13),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._getDefaultTextForState(mt.state))}}function Me(lt,Ut){if(1<&&(A.ynx(0,9),A.YNc(1,z,2,1,"span",10),A.YNc(2,I,2,1,"span",11),A.YNc(3,me,2,1,"span",11),A.YNc(4,Ae,2,1,"mat-icon",12),A.BQk()),2<){const mt=A.oxw();A.Q6J("ngSwitch",mt.state),A.xp6(1),A.Q6J("ngSwitchCase","number"),A.xp6(1),A.Q6J("ngIf","done"===mt.state),A.xp6(1),A.Q6J("ngIf","edit"===mt.state)}}function pe(lt,Ut){if(1<&&(A.TgZ(0,"div",15),A.GkF(1,16),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Q6J("ngTemplateOutlet",mt._templateLabel().template)}}function we(lt,Ut){if(1<&&(A.TgZ(0,"div",15),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt.label)}}function $e(lt,Ut){if(1<&&(A.TgZ(0,"div",17),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt._intl.optionalLabel)}}function Je(lt,Ut){if(1<&&(A.TgZ(0,"div",18),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt.errorMessage)}}function nt(lt,Ut){}function ke(lt,Ut){if(1<&&(A.Hsn(0),A.YNc(1,nt,0,0,"ng-template",0)),2<){const mt=A.oxw();A.xp6(1),A.Q6J("cdkPortalOutlet",mt._portal)}}const H=["*"];function he(lt,Ut){1<&&A._UZ(0,"div",9)}const P=function(lt,Ut){return{step:lt,i:Ut}};function R(lt,Ut){if(1<&&(A.ynx(0),A.GkF(1,7),A.YNc(2,he,1,0,"div",8),A.BQk()),2<){const mt=Ut.$implicit,Lt=Ut.index,Te=Ut.last;A.oxw(2);const Ge=A.MAs(4);A.xp6(1),A.Q6J("ngTemplateOutlet",Ge)("ngTemplateOutletContext",A.WLB(3,P,mt,Lt)),A.xp6(1),A.Q6J("ngIf",!Te)}}function V(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"div",10),A.NdJ("@horizontalStepTransition.done",function(Te){return A.CHM(mt),A.oxw(2)._animationDone.next(Te)}),A.GkF(1,11),A.qZA()}if(2<){const mt=Ut.$implicit,Lt=Ut.index,Te=A.oxw(2);A.Q6J("@horizontalStepTransition",Te._getAnimationDirection(Lt))("id",Te._getStepContentId(Lt)),A.uIk("aria-labelledby",Te._getStepLabelId(Lt))("aria-expanded",Te.selectedIndex===Lt),A.xp6(1),A.Q6J("ngTemplateOutlet",mt.content)}}function Q(lt,Ut){if(1<&&(A.ynx(0),A.TgZ(1,"div",3),A.YNc(2,R,3,6,"ng-container",4),A.qZA(),A.TgZ(3,"div",5),A.YNc(4,V,2,5,"div",6),A.qZA(),A.BQk()),2<){const mt=A.oxw();A.xp6(2),A.Q6J("ngForOf",mt.steps),A.xp6(2),A.Q6J("ngForOf",mt.steps)}}function Se(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"div",13),A.GkF(1,7),A.TgZ(2,"div",14),A.TgZ(3,"div",15),A.NdJ("@verticalStepTransition.done",function(Te){return A.CHM(mt),A.oxw(2)._animationDone.next(Te)}),A.TgZ(4,"div",16),A.GkF(5,11),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2<){const mt=Ut.$implicit,Lt=Ut.index,Te=Ut.last,Ge=A.oxw(2),j=A.MAs(4);A.xp6(1),A.Q6J("ngTemplateOutlet",j)("ngTemplateOutletContext",A.WLB(9,P,mt,Lt)),A.xp6(1),A.ekj("mat-stepper-vertical-line",!Te),A.xp6(1),A.Q6J("@verticalStepTransition",Ge._getAnimationDirection(Lt))("id",Ge._getStepContentId(Lt)),A.uIk("aria-labelledby",Ge._getStepLabelId(Lt))("aria-expanded",Ge.selectedIndex===Lt),A.xp6(2),A.Q6J("ngTemplateOutlet",mt.content)}}function je(lt,Ut){if(1<&&(A.ynx(0),A.YNc(1,Se,6,12,"div",12),A.BQk()),2<){const mt=A.oxw();A.xp6(1),A.Q6J("ngForOf",mt.steps)}}function Ye(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"mat-step-header",17),A.NdJ("click",function(){return A.CHM(mt).step.select()})("keydown",function(Te){return A.CHM(mt),A.oxw()._onKeydown(Te)}),A.qZA()}if(2<){const mt=Ut.step,Lt=Ut.i,Te=A.oxw();A.ekj("mat-horizontal-stepper-header","horizontal"===Te.orientation)("mat-vertical-stepper-header","vertical"===Te.orientation),A.Q6J("tabIndex",Te._getFocusIndex()===Lt?0:-1)("id",Te._getStepLabelId(Lt))("index",Lt)("state",Te._getIndicatorType(Lt,mt.state))("label",mt.stepLabel||mt.label)("selected",Te.selectedIndex===Lt)("active",Te._stepIsNavigable(Lt,mt))("optional",mt.optional)("errorMessage",mt.errorMessage)("iconOverrides",Te._iconOverrides)("disableRipple",Te.disableRipple||!Te._stepIsNavigable(Lt,mt))("color",mt.color||Te.color),A.uIk("aria-posinset",Lt+1)("aria-setsize",Te.steps.length)("aria-controls",Te._getStepContentId(Lt))("aria-selected",Te.selectedIndex==Lt)("aria-label",mt.ariaLabel||null)("aria-labelledby",!mt.ariaLabel&&mt.ariaLabelledby?mt.ariaLabelledby:null)("aria-disabled",!Te._stepIsNavigable(Lt,mt)||null)}}let ye=(()=>{class lt extends ge{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["","matStepLabel",""]],features:[A.qOj]}),lt})(),re=(()=>{class lt{constructor(){this.changes=new C.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275prov=A.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const o={provide:re,deps:[[new A.FiY,new A.tp0,re]],useFactory:function r(lt){return lt||new re}},d=(0,le.pj)(class extends ie{constructor(Ut){super(Ut)}},"primary");let l=(()=>{class lt extends d{constructor(mt,Lt,Te,Ge){super(Te),this._intl=mt,this._focusMonitor=Lt,this._intlSubscription=mt.changes.subscribe(()=>Ge.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(mt,Lt){mt?this._focusMonitor.focusVia(this._elementRef,mt,Lt):this._elementRef.nativeElement.focus(Lt)}_stringLabel(){return this.label instanceof ye?null:this.label}_templateLabel(){return this.label instanceof ye?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(mt){return"number"==mt?`${this.index+1}`:"edit"==mt?"create":"error"==mt?"warning":mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(re),A.Y36(b.tE),A.Y36(A.SBq),A.Y36(A.sBO))},lt.\u0275cmp=A.Xpm({type:lt,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:[A.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(mt,Lt){1&mt&&(A._UZ(0,"div",0),A.TgZ(1,"div"),A.TgZ(2,"div",1),A.YNc(3,He,1,2,"ng-container",2),A.YNc(4,Me,5,4,"ng-container",3),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.YNc(6,pe,2,1,"div",5),A.YNc(7,we,2,1,"div",5),A.YNc(8,$e,2,1,"div",6),A.YNc(9,Je,2,1,"div",7),A.qZA()),2&mt&&(A.Q6J("matRippleTrigger",Lt._getHostElement())("matRippleDisabled",Lt.disableRipple),A.xp6(1),A.Gre("mat-step-icon-state-",Lt.state," mat-step-icon"),A.ekj("mat-step-icon-selected",Lt.selected),A.xp6(1),A.Q6J("ngSwitch",!(!Lt.iconOverrides||!Lt.iconOverrides[Lt.state])),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(2),A.ekj("mat-step-label-active",Lt.active)("mat-step-label-selected",Lt.selected)("mat-step-label-error","error"==Lt.state),A.xp6(1),A.Q6J("ngIf",Lt._templateLabel()),A.xp6(1),A.Q6J("ngIf",Lt._stringLabel()),A.xp6(1),A.Q6J("ngIf",Lt.optional&&"error"!=Lt.state),A.xp6(1),A.Q6J("ngIf","error"==Lt.state))},directives:[Pe.Hw,le.wG,g.RF,g.n9,g.tP,g.ED,g.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.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}\n"],encapsulation:2,changeDetection:0}),lt})();const s={horizontalStepTransition:(0,ve.X$)("horizontalStepTransition",[(0,ve.SB)("previous",(0,ve.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ve.SB)("current",(0,ve.oB)({transform:"none",visibility:"inherit"})),(0,ve.SB)("next",(0,ve.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ve.eR)("* => *",(0,ve.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,ve.X$)("verticalStepTransition",[(0,ve.SB)("previous",(0,ve.oB)({height:"0px",visibility:"hidden"})),(0,ve.SB)("next",(0,ve.oB)({height:"0px",visibility:"hidden"})),(0,ve.SB)("current",(0,ve.oB)({height:"*",visibility:"inherit"})),(0,ve.eR)("* <=> current",(0,ve.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let i=(()=>{class lt{constructor(mt){this.templateRef=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),lt})(),t=(()=>{class lt{constructor(mt){this._template=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["ng-template","matStepContent",""]]}),lt})(),n=(()=>{class lt extends T{constructor(mt,Lt,Te,Ge){super(mt,Ge),this._errorStateMatcher=Lt,this._viewContainerRef=Te,this._isSelected=Fe.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,ze.w)(()=>this._stepper.selectionChange.pipe((0,ae.U)(mt=>mt.selectedStep===this),(0,S.O)(this._stepper.selected===this)))).subscribe(mt=>{mt&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(mt,Lt){return this._errorStateMatcher.isErrorState(mt,Lt)||!!(mt&&mt.invalid&&this.interacted)}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36((0,A.Gpc)(()=>x)),A.Y36(le.rD,4),A.Y36(A.s_b),A.Y36(Oe,8))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-step"]],contentQueries:function(mt,Lt,Te){if(1&mt&&(A.Suo(Te,ye,5),A.Suo(Te,t,5)),2&mt){let Ge;A.iGM(Ge=A.CRH())&&(Lt.stepLabel=Ge.first),A.iGM(Ge=A.CRH())&&(Lt._lazyContent=Ge.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[A._Bn([{provide:le.rD,useExisting:lt},{provide:T,useExisting:lt}]),A.qOj],ngContentSelectors:H,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(mt,Lt){1&mt&&(A.F$t(),A.YNc(0,ke,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),lt})(),a=(()=>{class lt extends Z{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,features:[A.qOj]}),lt})(),c=(()=>{class lt extends a{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["mat-horizontal-stepper"]],features:[A.qOj]}),lt})(),h=(()=>{class lt extends a{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["mat-vertical-stepper"]],features:[A.qOj]}),lt})(),x=(()=>{class lt extends Z{constructor(mt,Lt,Te,Ge){super(mt,Lt,Te,Ge),this.steps=new A.n_E,this.animationDone=new A.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new C.xQ;const j=Te.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===j?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:mt,templateRef:Lt})=>this._iconOverrides[mt]=Lt),this.steps.changes.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,Ue.x)((mt,Lt)=>mt.fromState===Lt.fromState&&mt.toState===Lt.toState),(0,m.R)(this._destroyed)).subscribe(mt=>{"current"===mt.toState&&this.animationDone.emit()})}_stepIsNavigable(mt,Lt){return Lt.completed||this.selectedIndex===mt||!this.linear}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(B.Is,8),A.Y36(A.sBO),A.Y36(A.SBq),A.Y36(g.K0))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(mt,Lt,Te){if(1&mt&&(A.Suo(Te,n,5),A.Suo(Te,i,5)),2&mt){let Ge;A.iGM(Ge=A.CRH())&&(Lt._steps=Ge),A.iGM(Ge=A.CRH())&&(Lt._icons=Ge)}},viewQuery:function(mt,Lt){if(1&mt&&A.Gf(l,5),2&mt){let Te;A.iGM(Te=A.CRH())&&(Lt._stepHeader=Te)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(mt,Lt){2&mt&&(A.uIk("aria-orientation",Lt.orientation),A.ekj("mat-stepper-horizontal","horizontal"===Lt.orientation)("mat-stepper-vertical","vertical"===Lt.orientation)("mat-stepper-label-position-end","horizontal"===Lt.orientation&&"end"==Lt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Lt.orientation&&"bottom"==Lt.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[A._Bn([{provide:Z,useExisting:lt},{provide:c,useExisting:lt},{provide:h,useExisting:lt}]),A.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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(mt,Lt){1&mt&&(A.ynx(0,0),A.YNc(1,Q,5,2,"ng-container",1),A.YNc(2,je,2,1,"ng-container",1),A.BQk(),A.YNc(3,Ye,1,23,"ng-template",null,2,A.W1O)),2&mt&&(A.Q6J("ngSwitch",Lt.orientation),A.xp6(1),A.Q6J("ngSwitchCase","horizontal"),A.xp6(1),A.Q6J("ngSwitchCase","vertical"))},directives:[l,g.RF,g.n9,g.sg,g.tP,g.O5],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-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-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-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}\n'],encapsulation:2,data:{animation:[s.horizontalStepTransition,s.verticalStepTransition]},changeDetection:0}),lt})(),At=(()=>{class lt extends Y{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(mt,Lt){2&mt&&A.Ikx("type",Lt.type)},inputs:{type:"type"},features:[A.qOj]}),lt})(),Ht=(()=>{class lt{}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275mod=A.oAB({type:lt}),lt.\u0275inj=A.cJS({providers:[o,le.rD],imports:[[le.BQ,g.ez,e.eL,ce.ot,ee,Pe.Ps,le.si],le.BQ]}),lt})()},32075:(Xe,_e,p)=>{"use strict";p.d(_e,{ev:()=>Rt,Dz:()=>Ie,w1:()=>xt,ge:()=>Yt,fO:()=>ct,XQ:()=>ai,as:()=>Et,Gk:()=>bi,nj:()=>Jt,BZ:()=>oe,by:()=>rn,p0:()=>cn});var e=p(5e3),b=p(63191),_=p(20449),w=p(69808),g=p(8929),A=p(5254),E=p(591),C=p(54715),O=p(21086),S=p(7625),m=p(72986),B=p(50226),L=p(70925),J=p(53435);const ie=[[["caption"]],[["colgroup"],["col"]]],ge=["caption","colgroup, col"];function ue(st){return class extends st{constructor(...St){super(...St),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(St){const ot=this._sticky;this._sticky=(0,b.Ig)(St),this._hasStickyChanged=ot!==this._sticky}hasStickyChanged(){const St=this._hasStickyChanged;return this._hasStickyChanged=!1,St}resetStickyChanged(){this._hasStickyChanged=!1}}}const Oe=new e.OlP("CDK_TABLE");let Z=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellDef",""]]}),st})(),W=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderCellDef",""]]}),st})(),Y=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterCellDef",""]]}),st})();class ee{}const ce=ue(ee);let le=(()=>{class st extends ce{constructor(ot){super(),this._table=ot,this._stickyEnd=!1}get name(){return this._name}set name(ot){this._setNameInput(ot)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ot){const Ke=this._stickyEnd;this._stickyEnd=(0,b.Ig)(ot),this._hasStickyChanged=Ke!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ot){ot&&(this._name=ot,this.cssClassFriendlyName=ot.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(Oe,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkColumnDef",""]],contentQueries:function(ot,Ke,vt){if(1&ot&&(e.Suo(vt,Z,5),e.Suo(vt,W,5),e.Suo(vt,Y,5)),2&ot){let U;e.iGM(U=e.CRH())&&(Ke.cell=U.first),e.iGM(U=e.CRH())&&(Ke.headerCell=U.first),e.iGM(U=e.CRH())&&(Ke.footerCell=U.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.qOj]}),st})();class Pe{constructor(St,ot){ot.nativeElement.classList.add(...St._columnCssClassName)}}let Fe=(()=>{class st extends Pe{constructor(ot,Ke){super(ot,Ke)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(le),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),st})(),ae=(()=>{class st extends Pe{constructor(ot,Ke){var vt;if(super(ot,Ke),1===(null===(vt=ot._table)||void 0===vt?void 0:vt._elementRef.nativeElement.nodeType)){const U=ot._table._elementRef.nativeElement.getAttribute("role");Ke.nativeElement.setAttribute("role","grid"===U||"treegrid"===U?"gridcell":"cell")}}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(le),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),st})();class Ue{constructor(){this.tasks=[],this.endTasks=[]}}const ve=new e.OlP("_COALESCED_STYLE_SCHEDULER");let He=(()=>{class st{constructor(ot){this._ngZone=ot,this._currentSchedule=null,this._destroyed=new g.xQ}schedule(ot){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ot)}scheduleEnd(ot){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ot)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ue,this._getScheduleObservable().pipe((0,S.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ot=this._currentSchedule;this._currentSchedule=new Ue;for(const Ke of ot.tasks)Ke();for(const Ke of ot.endTasks)Ke()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,A.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return st.\u0275fac=function(ot){return new(ot||st)(e.LFG(e.R0b))},st.\u0275prov=e.Yz7({token:st,factory:st.\u0275fac}),st})(),I=(()=>{class st{constructor(ot,Ke){this.template=ot,this._differs=Ke}ngOnChanges(ot){if(!this._columnsDiffer){const Ke=ot.columns&&ot.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ke).create(),this._columnsDiffer.diff(Ke)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ot){return this instanceof Me?ot.headerCell.template:this instanceof $e?ot.footerCell.template:ot.cell.template}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},st.\u0275dir=e.lG2({type:st,features:[e.TTD]}),st})();class me extends I{}const Ae=ue(me);let Me=(()=>{class st extends Ae{constructor(ot,Ke,vt){super(ot,Ke),this._table=vt}ngOnChanges(ot){super.ngOnChanges(ot)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Oe,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),st})();class pe extends I{}const we=ue(pe);let $e=(()=>{class st extends we{constructor(ot,Ke,vt){super(ot,Ke),this._table=vt}ngOnChanges(ot){super.ngOnChanges(ot)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Oe,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),st})(),Je=(()=>{class st extends I{constructor(ot,Ke,vt){super(ot,Ke),this._table=vt}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Oe,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),st})(),nt=(()=>{class st{constructor(ot){this._viewContainer=ot,st.mostRecentCellOutlet=this}ngOnDestroy(){st.mostRecentCellOutlet===this&&(st.mostRecentCellOutlet=null)}}return st.mostRecentCellOutlet=null,st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellOutlet",""]]}),st})(),ke=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),he=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),P=(()=>{class st{constructor(ot){this.templateRef=ot,this._contentClassName="cdk-no-data-row"}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["ng-template","cdkNoDataRow",""]]}),st})();const R=["top","bottom","left","right"];class V{constructor(St,ot,Ke,vt,U=!0,qe=!0,gt){this._isNativeHtmlTable=St,this._stickCellCss=ot,this.direction=Ke,this._coalescedStyleScheduler=vt,this._isBrowser=U,this._needsPositionStickyOnElement=qe,this._positionListener=gt,this._cachedCellWidths=[],this._borderCellCss={top:`${ot}-border-elem-top`,bottom:`${ot}-border-elem-bottom`,left:`${ot}-border-elem-left`,right:`${ot}-border-elem-right`}}clearStickyPositioning(St,ot){const Ke=[];for(const vt of St)if(vt.nodeType===vt.ELEMENT_NODE){Ke.push(vt);for(let U=0;U{for(const vt of Ke)this._removeStickyStyle(vt,ot)})}updateStickyColumns(St,ot,Ke,vt=!0){if(!St.length||!this._isBrowser||!ot.some(wi=>wi)&&!Ke.some(wi=>wi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const U=St[0],qe=U.children.length,gt=this._getCellWidths(U,vt),Dt=this._getStickyStartColumnPositions(gt,ot),ri=this._getStickyEndColumnPositions(gt,Ke),ti=ot.lastIndexOf(!0),Di=Ke.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const wi="rtl"===this.direction,$i=wi?"right":"left",qi=wi?"left":"right";for(const Fi of St)for(let Ji=0;Jiot[Ji]?Fi:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Di?[]:gt.slice(Di).map((Fi,Ji)=>Ke[Ji+Di]?Fi:null).reverse()}))})}stickRows(St,ot,Ke){if(!this._isBrowser)return;const vt="bottom"===Ke?St.slice().reverse():St,U="bottom"===Ke?ot.slice().reverse():ot,qe=[],gt=[],Dt=[];for(let ti=0,Di=0;ti{var ti,Di;for(let wi=0;wi{ot.some(vt=>!vt)?this._removeStickyStyle(Ke,["bottom"]):this._addStickyStyle(Ke,"bottom",0,!1)})}_removeStickyStyle(St,ot){for(const vt of ot)St.style[vt]="",St.classList.remove(this._borderCellCss[vt]);R.some(vt=>-1===ot.indexOf(vt)&&St.style[vt])?St.style.zIndex=this._getCalculatedZIndex(St):(St.style.zIndex="",this._needsPositionStickyOnElement&&(St.style.position=""),St.classList.remove(this._stickCellCss))}_addStickyStyle(St,ot,Ke,vt){St.classList.add(this._stickCellCss),vt&&St.classList.add(this._borderCellCss[ot]),St.style[ot]=`${Ke}px`,St.style.zIndex=this._getCalculatedZIndex(St),this._needsPositionStickyOnElement&&(St.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(St){const ot={top:100,bottom:10,left:1,right:1};let Ke=0;for(const vt of R)St.style[vt]&&(Ke+=ot[vt]);return Ke?`${Ke}`:""}_getCellWidths(St,ot=!0){if(!ot&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ke=[],vt=St.children;for(let U=0;U0;U--)ot[U]&&(Ke[U]=vt,vt+=St[U]);return Ke}}const d=new e.OlP("CDK_SPL");let s=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","rowOutlet",""]]}),st})(),i=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","headerRowOutlet",""]]}),st})(),t=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","footerRowOutlet",""]]}),st})(),n=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","noDataRowOutlet",""]]}),st})(),h=(()=>{class st{constructor(ot,Ke,vt,U,qe,gt,Dt,ri,ti,Di,wi,$i){this._differs=ot,this._changeDetectorRef=Ke,this._elementRef=vt,this._dir=qe,this._platform=Dt,this._viewRepeater=ri,this._coalescedStyleScheduler=ti,this._viewportRuler=Di,this._stickyPositioningListener=wi,this._ngZone=$i,this._onDestroy=new g.xQ,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 E.X({start:0,end:Number.MAX_VALUE}),U||this._elementRef.nativeElement.setAttribute("role","table"),this._document=gt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ot){this._trackByFn=ot}get dataSource(){return this._dataSource}set dataSource(ot){this._dataSource!==ot&&this._switchDataSource(ot)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ot){this._multiTemplateDataRows=(0,b.Ig)(ot),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ot){this._fixedLayout=(0,b.Ig)(ot),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ot,Ke)=>this.trackBy?this.trackBy(Ke.dataIndex,Ke.data):Ke),this._viewportRuler.change().pipe((0,S.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Ke=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ke,this._forceRecalculateCellWidths=Ke,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(ot=>{ot.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ot=this._dataDiffer.diff(this._renderRows);if(!ot)return this._updateNoDataRow(),void this.contentChanged.next();const Ke=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ot,Ke,(vt,U,qe)=>this._getEmbeddedViewArgs(vt.item,qe),vt=>vt.item.data,vt=>{1===vt.operation&&vt.context&&this._renderCellTemplateForItem(vt.record.item.rowDef,vt.context)}),this._updateRowIndexContext(),ot.forEachIdentityChange(vt=>{Ke.get(vt.currentIndex).context.$implicit=vt.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,m.q)(1),(0,S.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ot){this._customColumnDefs.add(ot)}removeColumnDef(ot){this._customColumnDefs.delete(ot)}addRowDef(ot){this._customRowDefs.add(ot)}removeRowDef(ot){this._customRowDefs.delete(ot)}addHeaderRowDef(ot){this._customHeaderRowDefs.add(ot),this._headerRowDefChanged=!0}removeHeaderRowDef(ot){this._customHeaderRowDefs.delete(ot),this._headerRowDefChanged=!0}addFooterRowDef(ot){this._customFooterRowDefs.add(ot),this._footerRowDefChanged=!0}removeFooterRowDef(ot){this._customFooterRowDefs.delete(ot),this._footerRowDefChanged=!0}setNoDataRow(ot){this._customNoDataRow=ot}updateStickyHeaderRowStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),vt=this._elementRef.nativeElement.querySelector("thead");vt&&(vt.style.display=ot.length?"":"none");const U=this._headerRowDefs.map(qe=>qe.sticky);this._stickyStyler.clearStickyPositioning(ot,["top"]),this._stickyStyler.stickRows(ot,U,"top"),this._headerRowDefs.forEach(qe=>qe.resetStickyChanged())}updateStickyFooterRowStyles(){const ot=this._getRenderedRows(this._footerRowOutlet),vt=this._elementRef.nativeElement.querySelector("tfoot");vt&&(vt.style.display=ot.length?"":"none");const U=this._footerRowDefs.map(qe=>qe.sticky);this._stickyStyler.clearStickyPositioning(ot,["bottom"]),this._stickyStyler.stickRows(ot,U,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,U),this._footerRowDefs.forEach(qe=>qe.resetStickyChanged())}updateStickyColumnStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),Ke=this._getRenderedRows(this._rowOutlet),vt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ot,...Ke,...vt],["left","right"]),this._stickyColumnStylesNeedReset=!1),ot.forEach((U,qe)=>{this._addStickyColumnStyles([U],this._headerRowDefs[qe])}),this._rowDefs.forEach(U=>{const qe=[];for(let gt=0;gt{this._addStickyColumnStyles([U],this._footerRowDefs[qe])}),Array.from(this._columnDefsByName.values()).forEach(U=>U.resetStickyChanged())}_getAllRenderRows(){const ot=[],Ke=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let vt=0;vt{const gt=vt&&vt.has(qe)?vt.get(qe):[];if(gt.length){const Dt=gt.shift();return Dt.dataIndex=Ke,Dt}return{data:ot,rowDef:qe,dataIndex:Ke}})}_cacheColumnDefs(){this._columnDefsByName.clear(),x(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ke=>{this._columnDefsByName.has(Ke.name),this._columnDefsByName.set(Ke.name,Ke)})}_cacheRowDefs(){this._headerRowDefs=x(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=x(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=x(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ot=this._rowDefs.filter(Ke=>!Ke.when);this._defaultRowDef=ot[0]}_renderUpdatedColumns(){const ot=(qe,gt)=>qe||!!gt.getColumnsDiff(),Ke=this._rowDefs.reduce(ot,!1);Ke&&this._forceRenderDataRows();const vt=this._headerRowDefs.reduce(ot,!1);vt&&this._forceRenderHeaderRows();const U=this._footerRowDefs.reduce(ot,!1);return U&&this._forceRenderFooterRows(),Ke||vt||U}_switchDataSource(ot){this._data=[],(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ot||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ot}_observeRenderChanges(){if(!this.dataSource)return;let ot;(0,_.Z9)(this.dataSource)?ot=this.dataSource.connect(this):(0,C.b)(this.dataSource)?ot=this.dataSource:Array.isArray(this.dataSource)&&(ot=(0,O.of)(this.dataSource)),this._renderChangeSubscription=ot.pipe((0,S.R)(this._onDestroy)).subscribe(Ke=>{this._data=Ke||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ot,Ke)=>this._renderRow(this._headerRowOutlet,ot,Ke)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ot,Ke)=>this._renderRow(this._footerRowOutlet,ot,Ke)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ot,Ke){const vt=Array.from(Ke.columns||[]).map(gt=>this._columnDefsByName.get(gt)),U=vt.map(gt=>gt.sticky),qe=vt.map(gt=>gt.stickyEnd);this._stickyStyler.updateStickyColumns(ot,U,qe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ot){const Ke=[];for(let vt=0;vt!U.when||U.when(Ke,ot));else{let U=this._rowDefs.find(qe=>qe.when&&qe.when(Ke,ot))||this._defaultRowDef;U&&vt.push(U)}return vt}_getEmbeddedViewArgs(ot,Ke){return{templateRef:ot.rowDef.template,context:{$implicit:ot.data},index:Ke}}_renderRow(ot,Ke,vt,U={}){const qe=ot.viewContainer.createEmbeddedView(Ke.template,U,vt);return this._renderCellTemplateForItem(Ke,U),qe}_renderCellTemplateForItem(ot,Ke){for(let vt of this._getCellTemplates(ot))nt.mostRecentCellOutlet&&nt.mostRecentCellOutlet._viewContainer.createEmbeddedView(vt,Ke);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ot=this._rowOutlet.viewContainer;for(let Ke=0,vt=ot.length;Ke{const vt=this._columnDefsByName.get(Ke);return ot.extractCellTemplate(vt)}):[]}_applyNativeTableSections(){const ot=this._document.createDocumentFragment(),Ke=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const vt of Ke){const U=this._document.createElement(vt.tag);U.setAttribute("role","rowgroup");for(const qe of vt.outlets)U.appendChild(qe.elementRef.nativeElement);ot.appendChild(U)}this._elementRef.nativeElement.appendChild(ot)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ot=(Ke,vt)=>Ke||vt.hasStickyChanged();this._headerRowDefs.reduce(ot,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ot,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ot,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new V(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,O.of)()).pipe((0,S.R)(this._onDestroy)).subscribe(Ke=>{this._stickyStyler.direction=Ke,this.updateStickyColumnStyles()})}_getOwnDefs(ot){return ot.filter(Ke=>!Ke._table||Ke._table===this)}_updateNoDataRow(){const ot=this._customNoDataRow||this._noDataRow;if(!ot)return;const Ke=0===this._rowOutlet.viewContainer.length;if(Ke===this._isShowingNoDataRow)return;const vt=this._noDataRowOutlet.viewContainer;if(Ke){const U=vt.createEmbeddedView(ot.templateRef),qe=U.rootNodes[0];1===U.rootNodes.length&&(null==qe?void 0:qe.nodeType)===this._document.ELEMENT_NODE&&(qe.setAttribute("role","row"),qe.classList.add(ot._contentClassName))}else vt.clear();this._isShowingNoDataRow=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(B.Is,8),e.Y36(w.K0),e.Y36(L.t4),e.Y36(_.k),e.Y36(ve),e.Y36(J.rL),e.Y36(d,12),e.Y36(e.R0b,8))},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ot,Ke,vt){if(1&ot&&(e.Suo(vt,P,5),e.Suo(vt,le,5),e.Suo(vt,Je,5),e.Suo(vt,Me,5),e.Suo(vt,$e,5)),2&ot){let U;e.iGM(U=e.CRH())&&(Ke._noDataRow=U.first),e.iGM(U=e.CRH())&&(Ke._contentColumnDefs=U),e.iGM(U=e.CRH())&&(Ke._contentRowDefs=U),e.iGM(U=e.CRH())&&(Ke._contentHeaderRowDefs=U),e.iGM(U=e.CRH())&&(Ke._contentFooterRowDefs=U)}},viewQuery:function(ot,Ke){if(1&ot&&(e.Gf(s,7),e.Gf(i,7),e.Gf(t,7),e.Gf(n,7)),2&ot){let vt;e.iGM(vt=e.CRH())&&(Ke._rowOutlet=vt.first),e.iGM(vt=e.CRH())&&(Ke._headerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&(Ke._footerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&(Ke._noDataRowOutlet=vt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ot,Ke){2&ot&&e.ekj("cdk-table-fixed-layout",Ke.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Oe,useExisting:st},{provide:_.k,useClass:_.yy},{provide:ve,useClass:He},{provide:d,useValue:null}])],ngContentSelectors:ge,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,Ke){1&ot&&(e.F$t(ie),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[i,s,n,t],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),st})();function x(st,St){return st.concat(Array.from(St))}let Ht=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[J.Cl]]}),st})();var lt=p(90508),Ut=p(36787),mt=p(36053),Lt=p(24850);const Te=[[["caption"]],[["colgroup"],["col"]]],Ge=["caption","colgroup, col"];let oe=(()=>{class st extends h{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ot,Ke){2&ot&&e.ekj("mat-table-fixed-layout",Ke.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:_.k,useClass:_.yy},{provide:h,useExisting:st},{provide:Oe,useExisting:st},{provide:ve,useClass:He},{provide:d,useValue:null}]),e.qOj],ngContentSelectors:Ge,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,Ke){1&ot&&(e.F$t(Te),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[i,s,n,t],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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),st})(),Ie=(()=>{class st extends Z{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:Z,useExisting:st}]),e.qOj]}),st})(),ct=(()=>{class st extends W{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:W,useExisting:st}]),e.qOj]}),st})(),xt=(()=>{class st extends le{get name(){return this._name}set name(ot){this._setNameInput(ot)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:le,useExisting:st},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.qOj]}),st})(),Yt=(()=>{class st extends Fe{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),st})(),Rt=(()=>{class st extends ae{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),st})(),Et=(()=>{class st extends Me{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Me,useExisting:st}]),e.qOj]}),st})(),Jt=(()=>{class st extends Je{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Je,useExisting:st}]),e.qOj]}),st})(),ai=(()=>{class st extends ke{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:ke,useExisting:st}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),bi=(()=>{class st extends he{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:he,useExisting:st}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),cn=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[Ht,lt.BQ],lt.BQ]}),st})();class Tn extends _.o2{constructor(St=[]){super(),this._renderData=new E.X([]),this._filter=new E.X(""),this._internalPageChanges=new g.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ot,Ke)=>{const vt=ot[Ke];if((0,b.t6)(vt)){const U=Number(vt);return U<9007199254740991?U:vt}return vt},this.sortData=(ot,Ke)=>{const vt=Ke.active,U=Ke.direction;return vt&&""!=U?ot.sort((qe,gt)=>{let Dt=this.sortingDataAccessor(qe,vt),ri=this.sortingDataAccessor(gt,vt);const ti=typeof Dt,Di=typeof ri;ti!==Di&&("number"===ti&&(Dt+=""),"number"===Di&&(ri+=""));let wi=0;return null!=Dt&&null!=ri?Dt>ri?wi=1:Dt{const vt=Object.keys(ot).reduce((qe,gt)=>qe+ot[gt]+"\u25ec","").toLowerCase(),U=Ke.trim().toLowerCase();return-1!=vt.indexOf(U)},this._data=new E.X(St),this._updateChangeSubscription()}get data(){return this._data.value}set data(St){St=Array.isArray(St)?St:[],this._data.next(St),this._renderChangesSubscription||this._filterData(St)}get filter(){return this._filter.value}set filter(St){this._filter.next(St),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(St){this._sort=St,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(St){this._paginator=St,this._updateChangeSubscription()}_updateChangeSubscription(){var St;const ot=this._sort?(0,Ut.T)(this._sort.sortChange,this._sort.initialized):(0,O.of)(null),Ke=this._paginator?(0,Ut.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,O.of)(null),U=(0,mt.aj)([this._data,this._filter]).pipe((0,Lt.U)(([Dt])=>this._filterData(Dt))),qe=(0,mt.aj)([U,ot]).pipe((0,Lt.U)(([Dt])=>this._orderData(Dt))),gt=(0,mt.aj)([qe,Ke]).pipe((0,Lt.U)(([Dt])=>this._pageData(Dt)));null===(St=this._renderChangesSubscription)||void 0===St||St.unsubscribe(),this._renderChangesSubscription=gt.subscribe(Dt=>this._renderData.next(Dt))}_filterData(St){return this.filteredData=null==this.filter||""===this.filter?St:St.filter(ot=>this.filterPredicate(ot,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(St){return this.sort?this.sortData(St.slice(),this.sort):St}_pageData(St){if(!this.paginator)return St;const ot=this.paginator.pageIndex*this.paginator.pageSize;return St.slice(ot,ot+this.paginator.pageSize)}_updatePaginator(St){Promise.resolve().then(()=>{const ot=this.paginator;if(ot&&(ot.length=St,ot.pageIndex>0)){const Ke=Math.ceil(ot.length/ot.pageSize)-1||0,vt=Math.min(ot.pageIndex,Ke);vt!==ot.pageIndex&&(ot.pageIndex=vt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var St;null===(St=this._renderChangesSubscription)||void 0===St||St.unsubscribe(),this._renderChangesSubscription=null}}class rn extends Tn{}},53251:(Xe,_e,p)=>{"use strict";p.d(_e,{uX:()=>Q,Vc:()=>ke,SP:()=>At,uD:()=>P,Nh:()=>j});var e=p(15664),b=p(17144),_=p(47429),w=p(69808),g=p(5e3),A=p(90508),E=p(76360),C=p(8929),O=p(42654),S=p(23753),m=p(21086),B=p(36787),L=p(98723),J=p(41777),ie=p(1059),ge=p(75778),X=p(7625),Ne=p(50226),ue=p(63191),Oe=p(91159),T=p(70925),Z=p(53435);function W(N,te){1&N&&g.Hsn(0)}const Y=["*"];function ee(N,te){}const ce=function(N){return{animationDuration:N}},le=function(N,te){return{value:N,params:te}},Pe=["tabListContainer"],Fe=["tabList"],ze=["tabListInner"],ae=["nextPaginator"],Ue=["previousPaginator"],ve=["tabBodyWrapper"],He=["tabHeader"];function z(N,te){}function I(N,te){if(1&N&&g.YNc(0,z,0,0,"ng-template",10),2&N){const oe=g.oxw().$implicit;g.Q6J("cdkPortalOutlet",oe.templateLabel)}}function me(N,te){if(1&N&&g._uU(0),2&N){const oe=g.oxw().$implicit;g.Oqu(oe.textLabel)}}function Ae(N,te){if(1&N){const oe=g.EpF();g.TgZ(0,"div",6),g.NdJ("click",function(){const ct=g.CHM(oe),bt=ct.$implicit,xt=ct.index,Yt=g.oxw(),It=g.MAs(1);return Yt._handleClick(bt,It,xt)})("cdkFocusChange",function(ct){const xt=g.CHM(oe).index;return g.oxw()._tabFocusChanged(ct,xt)}),g.TgZ(1,"div",7),g.YNc(2,I,1,1,"ng-template",8),g.YNc(3,me,1,1,"ng-template",null,9,g.W1O),g.qZA(),g.qZA()}if(2&N){const oe=te.$implicit,Ie=te.index,ct=g.MAs(4),bt=g.oxw();g.ekj("mat-tab-label-active",bt.selectedIndex===Ie),g.Q6J("id",bt._getTabLabelId(Ie))("ngClass",oe.labelClass)("disabled",oe.disabled)("matRippleDisabled",oe.disabled||bt.disableRipple),g.uIk("tabIndex",bt._getTabIndex(oe,Ie))("aria-posinset",Ie+1)("aria-setsize",bt._tabs.length)("aria-controls",bt._getTabContentId(Ie))("aria-selected",bt.selectedIndex===Ie)("aria-label",oe.ariaLabel||null)("aria-labelledby",!oe.ariaLabel&&oe.ariaLabelledby?oe.ariaLabelledby:null),g.xp6(2),g.Q6J("ngIf",oe.templateLabel)("ngIfElse",ct)}}function Me(N,te){if(1&N){const oe=g.EpF();g.TgZ(0,"mat-tab-body",11),g.NdJ("_onCentered",function(){return g.CHM(oe),g.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(ct){return g.CHM(oe),g.oxw()._setTabBodyWrapperHeight(ct)}),g.qZA()}if(2&N){const oe=te.$implicit,Ie=te.index,ct=g.oxw();g.ekj("mat-tab-body-active",ct.selectedIndex===Ie),g.Q6J("id",ct._getTabContentId(Ie))("ngClass",oe.bodyClass)("content",oe.content)("position",oe.position)("origin",oe.origin)("animationDuration",ct.animationDuration),g.uIk("tabindex",null!=ct.contentTabIndex&&ct.selectedIndex===Ie?ct.contentTabIndex:null)("aria-labelledby",ct._getTabLabelId(Ie))}}const we=new g.OlP("MatInkBarPositioner",{providedIn:"root",factory:function $e(){return te=>({left:te?(te.offsetLeft||0)+"px":"0",width:te?(te.offsetWidth||0)+"px":"0"})}});let Je=(()=>{class N{constructor(oe,Ie,ct,bt){this._elementRef=oe,this._ngZone=Ie,this._inkBarPositioner=ct,this._animationMode=bt}alignToElement(oe){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(oe))}):this._setStyles(oe)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(oe){const Ie=this._inkBarPositioner(oe),ct=this._elementRef.nativeElement;ct.style.left=Ie.left,ct.style.width=Ie.width}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(we),g.Y36(E.Qb,8))},N.\u0275dir=g.lG2({type:N,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(oe,Ie){2&oe&&g.ekj("_mat-animation-noopable","NoopAnimations"===Ie._animationMode)}}),N})();const nt=new g.OlP("MatTabContent");let ke=(()=>{class N{constructor(oe){this.template=oe}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.Rgc))},N.\u0275dir=g.lG2({type:N,selectors:[["","matTabContent",""]],features:[g._Bn([{provide:nt,useExisting:N}])]}),N})();const H=new g.OlP("MatTabLabel"),he=new g.OlP("MAT_TAB");let P=(()=>{class N extends _.ig{constructor(oe,Ie,ct){super(oe,Ie),this._closestTab=ct}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(he,8))},N.\u0275dir=g.lG2({type:N,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[g._Bn([{provide:H,useExisting:N}]),g.qOj]}),N})();const R=(0,A.Id)(class{}),V=new g.OlP("MAT_TAB_GROUP");let Q=(()=>{class N extends R{constructor(oe,Ie){super(),this._viewContainerRef=oe,this._closestTabGroup=Ie,this.textLabel="",this._contentPortal=null,this._stateChanges=new C.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(oe){this._setTemplateLabelInput(oe)}get content(){return this._contentPortal}ngOnChanges(oe){(oe.hasOwnProperty("textLabel")||oe.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(oe){oe&&oe._closestTab===this&&(this._templateLabel=oe)}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.s_b),g.Y36(V,8))},N.\u0275cmp=g.Xpm({type:N,selectors:[["mat-tab"]],contentQueries:function(oe,Ie,ct){if(1&oe&&(g.Suo(ct,H,5),g.Suo(ct,nt,7,g.Rgc)),2&oe){let bt;g.iGM(bt=g.CRH())&&(Ie.templateLabel=bt.first),g.iGM(bt=g.CRH())&&(Ie._explicitContent=bt.first)}},viewQuery:function(oe,Ie){if(1&oe&&g.Gf(g.Rgc,7),2&oe){let ct;g.iGM(ct=g.CRH())&&(Ie._implicitContent=ct.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[g._Bn([{provide:he,useExisting:N}]),g.qOj,g.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(oe,Ie){1&oe&&(g.F$t(),g.YNc(0,W,1,0,"ng-template"))},encapsulation:2}),N})();const Se={translateTab:(0,J.X$)("translateTab",[(0,J.SB)("center, void, left-origin-center, right-origin-center",(0,J.oB)({transform:"none"})),(0,J.SB)("left",(0,J.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,J.SB)("right",(0,J.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,J.eR)("* => left, * => right, left => center, right => center",(0,J.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,J.eR)("void => left-origin-center",[(0,J.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,J.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,J.eR)("void => right-origin-center",[(0,J.oB)({transform:"translate3d(100%, 0, 0)"}),(0,J.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let je=(()=>{class N extends _.Pl{constructor(oe,Ie,ct,bt){super(oe,Ie,bt),this._host=ct,this._centeringSub=O.w.EMPTY,this._leavingSub=O.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,ie.O)(this._host._isCenterPosition(this._host._position))).subscribe(oe=>{oe&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36((0,g.Gpc)(()=>ye)),g.Y36(w.K0))},N.\u0275dir=g.lG2({type:N,selectors:[["","matTabBodyHost",""]],features:[g.qOj]}),N})(),Ye=(()=>{class N{constructor(oe,Ie,ct){this._elementRef=oe,this._dir=Ie,this._dirChangeSubscription=O.w.EMPTY,this._translateTabComplete=new C.xQ,this._onCentering=new g.vpe,this._beforeCentering=new g.vpe,this._afterLeavingCenter=new g.vpe,this._onCentered=new g.vpe(!0),this.animationDuration="500ms",Ie&&(this._dirChangeSubscription=Ie.change.subscribe(bt=>{this._computePositionAnimationState(bt),ct.markForCheck()})),this._translateTabComplete.pipe((0,ge.x)((bt,xt)=>bt.fromState===xt.fromState&&bt.toState===xt.toState)).subscribe(bt=>{this._isCenterPosition(bt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(bt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(oe){this._positionIndex=oe,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(oe){const Ie=this._isCenterPosition(oe.toState);this._beforeCentering.emit(Ie),Ie&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(oe){return"center"==oe||"left-origin-center"==oe||"right-origin-center"==oe}_computePositionAnimationState(oe=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==oe?"left":"right":this._positionIndex>0?"ltr"==oe?"right":"left":"center"}_computePositionFromOrigin(oe){const Ie=this._getLayoutDirection();return"ltr"==Ie&&oe<=0||"rtl"==Ie&&oe>0?"left-origin-center":"right-origin-center"}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.SBq),g.Y36(Ne.Is,8),g.Y36(g.sBO))},N.\u0275dir=g.lG2({type:N,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),N})(),ye=(()=>{class N extends Ye{constructor(oe,Ie,ct){super(oe,Ie,ct)}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.SBq),g.Y36(Ne.Is,8),g.Y36(g.sBO))},N.\u0275cmp=g.Xpm({type:N,selectors:[["mat-tab-body"]],viewQuery:function(oe,Ie){if(1&oe&&g.Gf(_.Pl,5),2&oe){let ct;g.iGM(ct=g.CRH())&&(Ie._portalHost=ct.first)}},hostAttrs:[1,"mat-tab-body"],features:[g.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(oe,Ie){1&oe&&(g.TgZ(0,"div",0,1),g.NdJ("@translateTab.start",function(bt){return Ie._onTranslateTabStarted(bt)})("@translateTab.done",function(bt){return Ie._translateTabComplete.next(bt)}),g.YNc(2,ee,0,0,"ng-template",2),g.qZA()),2&oe&&g.Q6J("@translateTab",g.WLB(3,le,Ie._position,g.VKq(1,ce,Ie.animationDuration)))},directives:[je],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Se.translateTab]}}),N})();const re=new g.OlP("MAT_TABS_CONFIG"),r=(0,A.Id)(class{});let o=(()=>{class N extends r{constructor(oe){super(),this.elementRef=oe}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.SBq))},N.\u0275dir=g.lG2({type:N,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(oe,Ie){2&oe&&(g.uIk("aria-disabled",!!Ie.disabled),g.ekj("mat-tab-disabled",Ie.disabled))},inputs:{disabled:"disabled"},features:[g.qOj]}),N})();const d=(0,T.i$)({passive:!0});let t=(()=>{class N{constructor(oe,Ie,ct,bt,xt,Yt,It){this._elementRef=oe,this._changeDetectorRef=Ie,this._viewportRuler=ct,this._dir=bt,this._ngZone=xt,this._platform=Yt,this._animationMode=It,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new C.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new C.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new g.vpe,this.indexFocused=new g.vpe,xt.runOutsideAngular(()=>{(0,S.R)(oe.nativeElement,"mouseleave").pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(oe){oe=(0,ue.su)(oe),this._selectedIndex!=oe&&(this._selectedIndexChanged=!0,this._selectedIndex=oe,this._keyManager&&this._keyManager.updateActiveItem(oe))}ngAfterViewInit(){(0,S.R)(this._previousPaginator.nativeElement,"touchstart",d).pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,S.R)(this._nextPaginator.nativeElement,"touchstart",d).pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const oe=this._dir?this._dir.change:(0,m.of)("ltr"),Ie=this._viewportRuler.change(150),ct=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(ct):ct(),(0,B.T)(oe,Ie,this._items.changes).pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(ct)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,X.R)(this._destroyed)).subscribe(bt=>{this.indexFocused.emit(bt),this._setTabFocus(bt)})}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(oe){if(!(0,Oe.Vb)(oe))switch(oe.keyCode){case Oe.K5:case Oe.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(oe));break;default:this._keyManager.onKeydown(oe)}}_onContentChanges(){const oe=this._elementRef.nativeElement.textContent;oe!==this._currentTextContent&&(this._currentTextContent=oe||"",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(oe){!this._isValidIndex(oe)||this.focusIndex===oe||!this._keyManager||this._keyManager.setActiveItem(oe)}_isValidIndex(oe){if(!this._items)return!0;const Ie=this._items?this._items.toArray()[oe]:null;return!!Ie&&!Ie.disabled}_setTabFocus(oe){if(this._showPaginationControls&&this._scrollToLabel(oe),this._items&&this._items.length){this._items.toArray()[oe].focus();const Ie=this._tabListContainer.nativeElement;Ie.scrollLeft="ltr"==this._getLayoutDirection()?0:Ie.scrollWidth-Ie.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const oe=this.scrollDistance,Ie="ltr"===this._getLayoutDirection()?-oe:oe;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Ie)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(oe){this._scrollTo(oe)}_scrollHeader(oe){return this._scrollTo(this._scrollDistance+("before"==oe?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(oe){this._stopInterval(),this._scrollHeader(oe)}_scrollToLabel(oe){if(this.disablePagination)return;const Ie=this._items?this._items.toArray()[oe]:null;if(!Ie)return;const ct=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:bt,offsetWidth:xt}=Ie.elementRef.nativeElement;let Yt,It;"ltr"==this._getLayoutDirection()?(Yt=bt,It=Yt+xt):(It=this._tabListInner.nativeElement.offsetWidth-bt,Yt=It-xt);const Rt=this.scrollDistance,Et=this.scrollDistance+ct;YtEt&&(this.scrollDistance+=It-Et+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const oe=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;oe||(this.scrollDistance=0),oe!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=oe}}_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 oe=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ie=oe?oe.elementRef.nativeElement:null;Ie?this._inkBar.alignToElement(Ie):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(oe,Ie){Ie&&null!=Ie.button&&0!==Ie.button||(this._stopInterval(),(0,L.H)(650,100).pipe((0,X.R)((0,B.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ct,distance:bt}=this._scrollHeader(oe);(0===bt||bt>=ct)&&this._stopInterval()}))}_scrollTo(oe){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Ie=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ie,oe)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ie,distance:this._scrollDistance}}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Z.rL),g.Y36(Ne.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},N.\u0275dir=g.lG2({type:N,inputs:{disablePagination:"disablePagination"}}),N})(),n=(()=>{class N extends t{constructor(oe,Ie,ct,bt,xt,Yt,It){super(oe,Ie,ct,bt,xt,Yt,It),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(oe){this._disableRipple=(0,ue.Ig)(oe)}_itemSelected(oe){oe.preventDefault()}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Z.rL),g.Y36(Ne.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},N.\u0275dir=g.lG2({type:N,inputs:{disableRipple:"disableRipple"},features:[g.qOj]}),N})(),a=(()=>{class N extends n{constructor(oe,Ie,ct,bt,xt,Yt,It){super(oe,Ie,ct,bt,xt,Yt,It)}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Z.rL),g.Y36(Ne.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},N.\u0275cmp=g.Xpm({type:N,selectors:[["mat-tab-header"]],contentQueries:function(oe,Ie,ct){if(1&oe&&g.Suo(ct,o,4),2&oe){let bt;g.iGM(bt=g.CRH())&&(Ie._items=bt)}},viewQuery:function(oe,Ie){if(1&oe&&(g.Gf(Je,7),g.Gf(Pe,7),g.Gf(Fe,7),g.Gf(ze,7),g.Gf(ae,5),g.Gf(Ue,5)),2&oe){let ct;g.iGM(ct=g.CRH())&&(Ie._inkBar=ct.first),g.iGM(ct=g.CRH())&&(Ie._tabListContainer=ct.first),g.iGM(ct=g.CRH())&&(Ie._tabList=ct.first),g.iGM(ct=g.CRH())&&(Ie._tabListInner=ct.first),g.iGM(ct=g.CRH())&&(Ie._nextPaginator=ct.first),g.iGM(ct=g.CRH())&&(Ie._previousPaginator=ct.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(oe,Ie){2&oe&&g.ekj("mat-tab-header-pagination-controls-enabled",Ie._showPaginationControls)("mat-tab-header-rtl","rtl"==Ie._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[g.qOj],ngContentSelectors:Y,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(oe,Ie){1&oe&&(g.F$t(),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return Ie._handlePaginatorClick("before")})("mousedown",function(bt){return Ie._handlePaginatorPress("before",bt)})("touchend",function(){return Ie._stopInterval()}),g._UZ(2,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.NdJ("keydown",function(bt){return Ie._handleKeydown(bt)}),g.TgZ(5,"div",5,6),g.NdJ("cdkObserveContent",function(){return Ie._onContentChanges()}),g.TgZ(7,"div",7,8),g.Hsn(9),g.qZA(),g._UZ(10,"mat-ink-bar"),g.qZA(),g.qZA(),g.TgZ(11,"div",9,10),g.NdJ("mousedown",function(bt){return Ie._handlePaginatorPress("after",bt)})("click",function(){return Ie._handlePaginatorClick("after")})("touchend",function(){return Ie._stopInterval()}),g._UZ(13,"div",2),g.qZA()),2&oe&&(g.ekj("mat-tab-header-pagination-disabled",Ie._disableScrollBefore),g.Q6J("matRippleDisabled",Ie._disableScrollBefore||Ie.disableRipple),g.xp6(5),g.ekj("_mat-animation-noopable","NoopAnimations"===Ie._animationMode),g.xp6(6),g.ekj("mat-tab-header-pagination-disabled",Ie._disableScrollAfter),g.Q6J("matRippleDisabled",Ie._disableScrollAfter||Ie.disableRipple))},directives:[A.wG,b.wD,Je],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n"],encapsulation:2}),N})(),c=0;class h{}const x=(0,A.pj)((0,A.Kr)(class{constructor(N){this._elementRef=N}}),"primary");let We=(()=>{class N extends x{constructor(oe,Ie,ct,bt){var xt;super(oe),this._changeDetectorRef=Ie,this._animationMode=bt,this._tabs=new g.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=O.w.EMPTY,this._tabLabelSubscription=O.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new g.vpe,this.focusChange=new g.vpe,this.animationDone=new g.vpe,this.selectedTabChange=new g.vpe(!0),this._groupId=c++,this.animationDuration=ct&&ct.animationDuration?ct.animationDuration:"500ms",this.disablePagination=!(!ct||null==ct.disablePagination)&&ct.disablePagination,this.dynamicHeight=!(!ct||null==ct.dynamicHeight)&&ct.dynamicHeight,this.contentTabIndex=null!==(xt=null==ct?void 0:ct.contentTabIndex)&&void 0!==xt?xt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(oe){this._dynamicHeight=(0,ue.Ig)(oe)}get selectedIndex(){return this._selectedIndex}set selectedIndex(oe){this._indexToSelect=(0,ue.su)(oe,null)}get animationDuration(){return this._animationDuration}set animationDuration(oe){this._animationDuration=/^\d+$/.test(oe+"")?oe+"ms":oe}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(oe){this._contentTabIndex=(0,ue.su)(oe,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(oe){const Ie=this._elementRef.nativeElement;Ie.classList.remove(`mat-background-${this.backgroundColor}`),oe&&Ie.classList.add(`mat-background-${oe}`),this._backgroundColor=oe}ngAfterContentChecked(){const oe=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=oe){const Ie=null==this._selectedIndex;if(!Ie){this.selectedTabChange.emit(this._createChangeEvent(oe));const ct=this._tabBodyWrapper.nativeElement;ct.style.minHeight=ct.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ct,bt)=>ct.isActive=bt===oe),Ie||(this.selectedIndexChange.emit(oe),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Ie,ct)=>{Ie.position=ct-oe,null!=this._selectedIndex&&0==Ie.position&&!Ie.origin&&(Ie.origin=oe-this._selectedIndex)}),this._selectedIndex!==oe&&(this._selectedIndex=oe,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const Ie=this._tabs.toArray();for(let ct=0;ct{this._tabs.reset(oe.filter(Ie=>Ie._closestTabGroup===this||!Ie._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(oe){const Ie=this._tabHeader;Ie&&(Ie.focusIndex=oe)}_focusChanged(oe){this.focusChange.emit(this._createChangeEvent(oe))}_createChangeEvent(oe){const Ie=new h;return Ie.index=oe,this._tabs&&this._tabs.length&&(Ie.tab=this._tabs.toArray()[oe]),Ie}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,B.T)(...this._tabs.map(oe=>oe._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(oe){return Math.min(this._tabs.length-1,Math.max(oe||0,0))}_getTabLabelId(oe){return`mat-tab-label-${this._groupId}-${oe}`}_getTabContentId(oe){return`mat-tab-content-${this._groupId}-${oe}`}_setTabBodyWrapperHeight(oe){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Ie=this._tabBodyWrapper.nativeElement;Ie.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Ie.style.height=oe+"px")}_removeTabBodyWrapperHeight(){const oe=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=oe.clientHeight,oe.style.height="",this.animationDone.emit()}_handleClick(oe,Ie,ct){oe.disabled||(this.selectedIndex=Ie.focusIndex=ct)}_getTabIndex(oe,Ie){return oe.disabled?null:this.selectedIndex===Ie?0:-1}_tabFocusChanged(oe,Ie){oe&&"mouse"!==oe&&"touch"!==oe&&(this._tabHeader.focusIndex=Ie)}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(re,8),g.Y36(E.Qb,8))},N.\u0275dir=g.lG2({type:N,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[g.qOj]}),N})(),At=(()=>{class N extends We{constructor(oe,Ie,ct,bt){super(oe,Ie,ct,bt)}}return N.\u0275fac=function(oe){return new(oe||N)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(re,8),g.Y36(E.Qb,8))},N.\u0275cmp=g.Xpm({type:N,selectors:[["mat-tab-group"]],contentQueries:function(oe,Ie,ct){if(1&oe&&g.Suo(ct,Q,5),2&oe){let bt;g.iGM(bt=g.CRH())&&(Ie._allTabs=bt)}},viewQuery:function(oe,Ie){if(1&oe&&(g.Gf(ve,5),g.Gf(He,5)),2&oe){let ct;g.iGM(ct=g.CRH())&&(Ie._tabBodyWrapper=ct.first),g.iGM(ct=g.CRH())&&(Ie._tabHeader=ct.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(oe,Ie){2&oe&&g.ekj("mat-tab-group-dynamic-height",Ie.dynamicHeight)("mat-tab-group-inverted-header","below"===Ie.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[g._Bn([{provide:V,useExisting:N}]),g.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","_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","_onCentered","_onCentering"]],template:function(oe,Ie){1&oe&&(g.TgZ(0,"mat-tab-header",0,1),g.NdJ("indexFocused",function(bt){return Ie._focusChanged(bt)})("selectFocusedIndex",function(bt){return Ie.selectedIndex=bt}),g.YNc(2,Ae,5,15,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.YNc(5,Me,1,10,"mat-tab-body",5),g.qZA()),2&oe&&(g.Q6J("selectedIndex",Ie.selectedIndex||0)("disableRipple",Ie.disableRipple)("disablePagination",Ie.disablePagination),g.xp6(2),g.Q6J("ngForOf",Ie._tabs),g.xp6(1),g.ekj("_mat-animation-noopable","NoopAnimations"===Ie._animationMode),g.xp6(2),g.Q6J("ngForOf",Ie._tabs))},directives:[a,ye,w.sg,o,A.wG,e.kH,w.mk,w.O5,_.Pl],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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.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}\n"],encapsulation:2}),N})(),j=(()=>{class N{}return N.\u0275fac=function(oe){return new(oe||N)},N.\u0275mod=g.oAB({type:N}),N.\u0275inj=g.cJS({imports:[[w.ez,A.BQ,_.eL,A.si,b.Q8,e.rt],A.BQ]}),N})()},29772:(Xe,_e,p)=>{"use strict";p.d(_e,{gM:()=>ke,AV:()=>P});var e=p(92845),b=p(15664),_=p(69808),w=p(5e3),g=p(90508),A=p(53435),E=p(63191),C=p(91159),O=p(8929),S=p(36053),m=p(61221),B=p(56498),L=p(72986),J=p(31307),ie=p(80013),ge=p(24850),X=p(1059),Ne=p(7625),ue=p(70925);const T=new Set;let Z,W=(()=>{class R{constructor(Q){this._platform=Q,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ee}matchMedia(Q){return(this._platform.WEBKIT||this._platform.BLINK)&&function Y(R){if(!T.has(R))try{Z||(Z=document.createElement("style"),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${R} {body{ }}`,0),T.add(R))}catch(V){console.error(V)}}(Q),this._matchMedia(Q)}}return R.\u0275fac=function(Q){return new(Q||R)(w.LFG(ue.t4))},R.\u0275prov=w.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function ee(R){return{matches:"all"===R||""===R,media:R,addListener:()=>{},removeListener:()=>{}}}let ce=(()=>{class R{constructor(Q,Se){this._mediaMatcher=Q,this._zone=Se,this._queries=new Map,this._destroySubject=new O.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Q){return le((0,E.Eq)(Q)).some(je=>this._registerQuery(je).mql.matches)}observe(Q){const je=le((0,E.Eq)(Q)).map(ye=>this._registerQuery(ye).observable);let Ye=(0,S.aj)(je);return Ye=(0,m.z)(Ye.pipe((0,L.q)(1)),Ye.pipe((0,J.T)(1),(0,ie.b)(0))),Ye.pipe((0,ge.U)(ye=>{const re={matches:!1,breakpoints:{}};return ye.forEach(({matches:r,query:o})=>{re.matches=re.matches||r,re.breakpoints[o]=r}),re}))}_registerQuery(Q){if(this._queries.has(Q))return this._queries.get(Q);const Se=this._mediaMatcher.matchMedia(Q),Ye={observable:new B.y(ye=>{const re=r=>this._zone.run(()=>ye.next(r));return Se.addListener(re),()=>{Se.removeListener(re)}}).pipe((0,X.O)(Se),(0,ge.U)(({matches:ye})=>({query:Q,matches:ye})),(0,Ne.R)(this._destroySubject)),mql:Se};return this._queries.set(Q,Ye),Ye}}return R.\u0275fac=function(Q){return new(Q||R)(w.LFG(W),w.LFG(w.R0b))},R.\u0275prov=w.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function le(R){return R.map(V=>V.split(",")).reduce((V,Q)=>V.concat(Q)).map(V=>V.trim())}var Fe=p(47429),ze=p(41777),ae=p(50226);const Ue={tooltipState:(0,ze.X$)("state",[(0,ze.SB)("initial, void, hidden",(0,ze.oB)({opacity:0,transform:"scale(0)"})),(0,ze.SB)("visible",(0,ze.oB)({transform:"scale(1)"})),(0,ze.eR)("* => visible",(0,ze.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ze.F4)([(0,ze.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ze.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ze.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ze.eR)("* => hidden",(0,ze.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ze.oB)({opacity:0})))])},z="tooltip-panel",I=(0,ue.i$)({passive:!0}),Me=new w.OlP("mat-tooltip-scroll-strategy"),we={provide:Me,deps:[e.aV],useFactory:function pe(R){return()=>R.scrollStrategies.reposition({scrollThrottle:20})}},$e=new w.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Je(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let nt=(()=>{class R{constructor(Q,Se,je,Ye,ye,re,r,o,d,l,s,i){this._overlay=Q,this._elementRef=Se,this._scrollDispatcher=je,this._viewContainerRef=Ye,this._ngZone=ye,this._platform=re,this._ariaDescriber=r,this._focusMonitor=o,this._dir=l,this._defaultOptions=s,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.xQ,this._scrollStrategy=d,this._document=i,s&&(s.position&&(this.position=s.position),s.touchGestures&&(this.touchGestures=s.touchGestures)),l.change.pipe((0,Ne.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Q){var Se;Q!==this._position&&(this._position=Q,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(Se=this._tooltipInstance)||void 0===Se||Se.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Q){this._disabled=(0,E.Ig)(Q),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Q){this._showDelay=(0,E.su)(Q)}get hideDelay(){return this._hideDelay}set hideDelay(Q){this._hideDelay=(0,E.su)(Q)}get message(){return this._message}set message(Q){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Q?String(Q).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(Q){this._tooltipClass=Q,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Ne.R)(this._destroyed)).subscribe(Q=>{Q?"keyboard"===Q&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Q=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Se,je])=>{Q.removeEventListener(Se,je,I)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Q,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Q)}show(Q=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Se=this._createOverlay();this._detach(),this._portal=this._portal||new Fe.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=Se.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,Ne.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(Q)}hide(Q=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(Q)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Q=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Se=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Q);return Se.positionChanges.pipe((0,Ne.R)(this._destroyed)).subscribe(je=>{this._updateCurrentPositionClass(je.connectionPair),this._tooltipInstance&&je.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Se,panelClass:`${this._cssClassPrefix}-${z}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Ne.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,Ne.R)(this._destroyed)).subscribe(()=>{var je;return null===(je=this._tooltipInstance)||void 0===je?void 0:je._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Ne.R)(this._destroyed)).subscribe(je=>{this._isTooltipVisible()&&je.keyCode===C.hY&&!(0,C.Vb)(je)&&(je.preventDefault(),je.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Q){const Se=Q.getConfig().positionStrategy,je=this._getOrigin(),Ye=this._getOverlayPosition();Se.withPositions([this._addOffset(Object.assign(Object.assign({},je.main),Ye.main)),this._addOffset(Object.assign(Object.assign({},je.fallback),Ye.fallback))])}_addOffset(Q){return Q}_getOrigin(){const Q=!this._dir||"ltr"==this._dir.value,Se=this.position;let je;"above"==Se||"below"==Se?je={originX:"center",originY:"above"==Se?"top":"bottom"}:"before"==Se||"left"==Se&&Q||"right"==Se&&!Q?je={originX:"start",originY:"center"}:("after"==Se||"right"==Se&&Q||"left"==Se&&!Q)&&(je={originX:"end",originY:"center"});const{x:Ye,y:ye}=this._invertPosition(je.originX,je.originY);return{main:je,fallback:{originX:Ye,originY:ye}}}_getOverlayPosition(){const Q=!this._dir||"ltr"==this._dir.value,Se=this.position;let je;"above"==Se?je={overlayX:"center",overlayY:"bottom"}:"below"==Se?je={overlayX:"center",overlayY:"top"}:"before"==Se||"left"==Se&&Q||"right"==Se&&!Q?je={overlayX:"end",overlayY:"center"}:("after"==Se||"right"==Se&&Q||"left"==Se&&!Q)&&(je={overlayX:"start",overlayY:"center"});const{x:Ye,y:ye}=this._invertPosition(je.overlayX,je.overlayY);return{main:je,fallback:{overlayX:Ye,overlayY:ye}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,L.q)(1),(0,Ne.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Q){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Q,this._tooltipInstance._markForCheck())}_invertPosition(Q,Se){return"above"===this.position||"below"===this.position?"top"===Se?Se="bottom":"bottom"===Se&&(Se="top"):"end"===Q?Q="start":"start"===Q&&(Q="end"),{x:Q,y:Se}}_updateCurrentPositionClass(Q){const{overlayY:Se,originX:je,originY:Ye}=Q;let ye;if(ye="center"===Se?this._dir&&"rtl"===this._dir.value?"end"===je?"left":"right":"start"===je?"left":"right":"bottom"===Se&&"top"===Ye?"above":"below",ye!==this._currentPosition){const re=this._overlayRef;if(re){const r=`${this._cssClassPrefix}-${z}-`;re.removePanelClass(r+this._currentPosition),re.addPanelClass(r+ye)}this._currentPosition=ye}}_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 Q=[];if(this._platformSupportsMouseEvents())Q.push(["mouseleave",()=>this.hide()],["wheel",Se=>this._wheelListener(Se)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Se=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Q.push(["touchend",Se],["touchcancel",Se])}this._addListeners(Q),this._passiveListeners.push(...Q)}_addListeners(Q){Q.forEach(([Se,je])=>{this._elementRef.nativeElement.addEventListener(Se,je,I)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Q){if(this._isTooltipVisible()){const Se=this._document.elementFromPoint(Q.clientX,Q.clientY),je=this._elementRef.nativeElement;Se!==je&&!je.contains(Se)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Q=this.touchGestures;if("off"!==Q){const Se=this._elementRef.nativeElement,je=Se.style;("on"===Q||"INPUT"!==Se.nodeName&&"TEXTAREA"!==Se.nodeName)&&(je.userSelect=je.msUserSelect=je.webkitUserSelect=je.MozUserSelect="none"),("on"===Q||!Se.draggable)&&(je.webkitUserDrag="none"),je.touchAction="none",je.webkitTapHighlightColor="transparent"}}}return R.\u0275fac=function(Q){w.$Z()},R.\u0275dir=w.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})(),ke=(()=>{class R extends nt{constructor(Q,Se,je,Ye,ye,re,r,o,d,l,s,i){super(Q,Se,je,Ye,ye,re,r,o,d,l,s,i),this._tooltipComponent=he}}return R.\u0275fac=function(Q){return new(Q||R)(w.Y36(e.aV),w.Y36(w.SBq),w.Y36(A.mF),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(ue.t4),w.Y36(b.$s),w.Y36(b.tE),w.Y36(Me),w.Y36(ae.Is,8),w.Y36($e,8),w.Y36(_.K0))},R.\u0275dir=w.lG2({type:R,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[w.qOj]}),R})(),H=(()=>{class R{constructor(Q){this._changeDetectorRef=Q,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new O.xQ}show(Q){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},Q)}hide(Q){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},Q)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(Q){const Se=Q.toState;"hidden"===Se&&!this.isVisible()&&this._onHide.next(),("visible"===Se||"hidden"===Se)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return R.\u0275fac=function(Q){return new(Q||R)(w.Y36(w.sBO))},R.\u0275dir=w.lG2({type:R}),R})(),he=(()=>{class R extends H{constructor(Q,Se){super(Q),this._breakpointObserver=Se,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return R.\u0275fac=function(Q){return new(Q||R)(w.Y36(w.sBO),w.Y36(ce))},R.\u0275cmp=w.Xpm({type:R,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Q,Se){2&Q&&w.Udp("zoom","visible"===Se._visibility?1:null)},features:[w.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(Q,Se){if(1&Q&&(w.TgZ(0,"div",0),w.NdJ("@state.start",function(){return Se._animationStart()})("@state.done",function(Ye){return Se._animationDone(Ye)}),w.ALo(1,"async"),w._uU(2),w.qZA()),2&Q){let je;w.ekj("mat-tooltip-handset",null==(je=w.lcZ(1,5,Se._isHandset))?null:je.matches),w.Q6J("ngClass",Se.tooltipClass)("@state",Se._visibility),w.xp6(2),w.Oqu(Se.message)}},directives:[_.mk],pipes:[_.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Ue.tooltipState]},changeDetection:0}),R})(),P=(()=>{class R{}return R.\u0275fac=function(Q){return new(Q||R)},R.\u0275mod=w.oAB({type:R}),R.\u0275inj=w.cJS({providers:[we],imports:[[b.rt,_.ez,e.U8,g.BQ],g.BQ,A.ZD]}),R})()},90149:(Xe,_e,p)=>{"use strict";p.d(_e,{GZ:()=>L,gi:()=>ge,kc:()=>T,JZ:()=>Oe,dp:()=>ue,WX:()=>Z,uo:()=>m,fQ:()=>B,Ar:()=>ie,eu:()=>X});var e=p(28258),b=p(5e3),_=p(90508),w=p(63191),g=p(20449),A=p(591),E=p(36787),C=p(72986),O=p(24850);const S=(0,_.sb)((0,_.Id)(e.Hs));let m=(()=>{class W extends S{constructor(ee,ce,le){super(ee,ce),this.tabIndex=Number(le)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return W.\u0275fac=function(ee){return new(ee||W)(b.Y36(b.SBq),b.Y36(e._0),b.$8M("tabindex"))},W.\u0275dir=b.lG2({type:W,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[b._Bn([{provide:e.Hs,useExisting:W}]),b.qOj]}),W})(),B=(()=>{class W extends e.rO{}return W.\u0275fac=function(){let Y;return function(ce){return(Y||(Y=b.n5z(W)))(ce||W)}}(),W.\u0275dir=b.lG2({type:W,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[b._Bn([{provide:e.rO,useExisting:W}]),b.qOj]}),W})(),L=(()=>{class W extends e.Xx{constructor(ee,ce,le,Pe){super(ee,ce,le),this._disabled=!1,this.tabIndex=Number(Pe)||0}get disabled(){return this._disabled}set disabled(ee){this._disabled=(0,w.Ig)(ee)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ee){this._tabIndex=null!=ee?ee:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return W.\u0275fac=function(ee){return new(ee||W)(b.Y36(b.SBq),b.Y36(e._0),b.Y36(b.ZZ4),b.$8M("tabindex"))},W.\u0275dir=b.lG2({type:W,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[b._Bn([{provide:e.Xx,useExisting:W},{provide:e.Hs,useExisting:W},{provide:e.HI,useExisting:W}]),b.qOj]}),W})(),ie=(()=>{class W{constructor(ee,ce){this.viewContainer=ee,this._node=ce}}return W.\u0275fac=function(ee){return new(ee||W)(b.Y36(b.s_b),b.Y36(e.HI,8))},W.\u0275dir=b.lG2({type:W,selectors:[["","matTreeNodeOutlet",""]],features:[b._Bn([{provide:e.cu,useExisting:W}])]}),W})(),ge=(()=>{class W extends e._0{}return W.\u0275fac=function(){let Y;return function(ce){return(Y||(Y=b.n5z(W)))(ce||W)}}(),W.\u0275cmp=b.Xpm({type:W,selectors:[["mat-tree"]],viewQuery:function(ee,ce){if(1&ee&&b.Gf(ie,7),2&ee){let le;b.iGM(le=b.CRH())&&(ce._nodeOutlet=le.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[b._Bn([{provide:e._0,useExisting:W}]),b.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ee,ce){1&ee&&b.GkF(0,0)},directives:[ie],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}\n"],encapsulation:2}),W})(),X=(()=>{class W extends e.Ud{}return W.\u0275fac=function(){let Y;return function(ce){return(Y||(Y=b.n5z(W)))(ce||W)}}(),W.\u0275dir=b.lG2({type:W,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[b._Bn([{provide:e.Ud,useExisting:W}]),b.qOj]}),W})(),ue=(()=>{class W{}return W.\u0275fac=function(ee){return new(ee||W)},W.\u0275mod=b.oAB({type:W}),W.\u0275inj=b.cJS({imports:[[e.nZ,_.BQ],_.BQ]}),W})();class Oe{constructor(Y,ee,ce,le){this.transformFunction=Y,this.getLevel=ee,this.isExpandable=ce,this.getChildren=le}_flattenNode(Y,ee,ce,le){const Pe=this.transformFunction(Y,ee);if(ce.push(Pe),this.isExpandable(Pe)){const Fe=this.getChildren(Y);Fe&&(Array.isArray(Fe)?this._flattenChildren(Fe,ee,ce,le):Fe.pipe((0,C.q)(1)).subscribe(ze=>{this._flattenChildren(ze,ee,ce,le)}))}return ce}_flattenChildren(Y,ee,ce,le){Y.forEach((Pe,Fe)=>{let ze=le.slice();ze.push(Fe!=Y.length-1),this._flattenNode(Pe,ee+1,ce,ze)})}flattenNodes(Y){let ee=[];return Y.forEach(ce=>this._flattenNode(ce,0,ee,[])),ee}expandFlattenedNodes(Y,ee){let ce=[],le=[];return le[0]=!0,Y.forEach(Pe=>{let Fe=!0;for(let ze=0;ze<=this.getLevel(Pe);ze++)Fe=Fe&&le[ze];Fe&&ce.push(Pe),this.isExpandable(Pe)&&(le[this.getLevel(Pe)+1]=ee.isExpanded(Pe))}),ce}}class T extends g.o2{constructor(Y,ee,ce){super(),this._treeControl=Y,this._treeFlattener=ee,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),ce&&(this.data=ce)}get data(){return this._data.value}set data(Y){this._data.next(Y),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Y){return(0,E.T)(Y.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,O.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class Z extends g.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(Y){this._data.next(Y)}connect(Y){return(0,E.T)(Y.viewChange,this._data).pipe((0,O.U)(()=>this.data))}disconnect(){}}},76360:(Xe,_e,p)=>{"use strict";p.d(_e,{Qb:()=>yn,PW:()=>zn});var e=p(5e3),b=p(22313),_=p(41777);function w(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function A(ft){switch(ft.length){case 0:return new _.ZN;case 1:return ft[0];default:return new _.ZE(ft)}}function E(ft,F,G,De,ht={},Ct={}){const $=[],Re=[];let de=-1,tt=null;if(De.forEach(yt=>{const Gt=yt.offset,Wt=Gt==de,ii=Wt&&tt||{};Object.keys(yt).forEach(di=>{let ui=di,_i=yt[di];if("offset"!==di)switch(ui=F.normalizePropertyName(ui,$),_i){case _.k1:_i=ht[di];break;case _.l3:_i=Ct[di];break;default:_i=F.normalizeStyleValue(di,ui,_i,$)}ii[ui]=_i}),Wt||Re.push(ii),tt=ii,de=Gt}),$.length){const yt="\n - ";throw new Error(`Unable to animate due to the following errors:${yt}${$.join(yt)}`)}return Re}function C(ft,F,G,De){switch(F){case"start":ft.onStart(()=>De(G&&O(G,"start",ft)));break;case"done":ft.onDone(()=>De(G&&O(G,"done",ft)));break;case"destroy":ft.onDestroy(()=>De(G&&O(G,"destroy",ft)))}}function O(ft,F,G){const De=G.totalTime,Ct=S(ft.element,ft.triggerName,ft.fromState,ft.toState,F||ft.phaseName,null==De?ft.totalTime:De,!!G.disabled),$=ft._data;return null!=$&&(Ct._data=$),Ct}function S(ft,F,G,De,ht="",Ct=0,$){return{element:ft,triggerName:F,fromState:G,toState:De,phaseName:ht,totalTime:Ct,disabled:!!$}}function m(ft,F,G){let De;return ft instanceof Map?(De=ft.get(F),De||ft.set(F,De=G)):(De=ft[F],De||(De=ft[F]=G)),De}function B(ft){const F=ft.indexOf(":");return[ft.substring(1,F),ft.substr(F+1)]}let L=(ft,F)=>!1,J=(ft,F,G)=>[];(g()||"undefined"!=typeof Element)&&(L=w()?(ft,F)=>{for(;F&&F!==document.documentElement;){if(F===ft)return!0;F=F.parentNode||F.host}return!1}:(ft,F)=>ft.contains(F),J=(ft,F,G)=>{if(G)return Array.from(ft.querySelectorAll(F));const De=ft.querySelector(F);return De?[De]:[]});let X=null,Ne=!1;function ue(ft){X||(X=function Oe(){return"undefined"!=typeof document?document.body:null}()||{},Ne=!!X.style&&"WebkitAppearance"in X.style);let F=!0;return X.style&&!function ge(ft){return"ebkit"==ft.substring(1,6)}(ft)&&(F=ft in X.style,!F&&Ne&&(F="Webkit"+ft.charAt(0).toUpperCase()+ft.substr(1)in X.style)),F}const T=L,Z=J;let Y=(()=>{class ft{validateStyleProperty(G){return ue(G)}matchesElement(G,De){return!1}containsElement(G,De){return T(G,De)}query(G,De,ht){return Z(G,De,ht)}computeStyle(G,De,ht){return ht||""}animate(G,De,ht,Ct,$,Re=[],de){return new _.ZN(ht,Ct)}}return ft.\u0275fac=function(G){return new(G||ft)},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),ee=(()=>{class ft{}return ft.NOOP=new Y,ft})();const Fe="ng-enter",ze="ng-leave",ae="ng-trigger",Ue=".ng-trigger",ve="ng-animating",He=".ng-animating";function z(ft){if("number"==typeof ft)return ft;const F=ft.match(/^(-?[\.\d]+)(m?s)/);return!F||F.length<2?0:I(parseFloat(F[1]),F[2])}function I(ft,F){return"s"===F?1e3*ft:ft}function me(ft,F,G){return ft.hasOwnProperty("duration")?ft:function Ae(ft,F,G){let ht,Ct=0,$="";if("string"==typeof ft){const Re=ft.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Re)return F.push(`The provided timing value "${ft}" is invalid.`),{duration:0,delay:0,easing:""};ht=I(parseFloat(Re[1]),Re[2]);const de=Re[3];null!=de&&(Ct=I(parseFloat(de),Re[4]));const tt=Re[5];tt&&($=tt)}else ht=ft;if(!G){let Re=!1,de=F.length;ht<0&&(F.push("Duration values below 0 are not allowed for this animation step."),Re=!0),Ct<0&&(F.push("Delay values below 0 are not allowed for this animation step."),Re=!0),Re&&F.splice(de,0,`The provided timing value "${ft}" is invalid.`)}return{duration:ht,delay:Ct,easing:$}}(ft,F,G)}function Me(ft,F={}){return Object.keys(ft).forEach(G=>{F[G]=ft[G]}),F}function we(ft,F,G={}){if(F)for(let De in ft)G[De]=ft[De];else Me(ft,G);return G}function $e(ft,F,G){return G?F+":"+G+";":""}function Je(ft){let F="";for(let G=0;G{const ht=je(De);G&&!G.hasOwnProperty(De)&&(G[De]=ft.style[ht]),ft.style[ht]=F[De]}),g()&&Je(ft))}function ke(ft,F){ft.style&&(Object.keys(F).forEach(G=>{const De=je(G);ft.style[De]=""}),g()&&Je(ft))}function H(ft){return Array.isArray(ft)?1==ft.length?ft[0]:(0,_.vP)(ft):ft}const P=new RegExp("{{\\s*(.+?)\\s*}}","g");function R(ft){let F=[];if("string"==typeof ft){let G;for(;G=P.exec(ft);)F.push(G[1]);P.lastIndex=0}return F}function V(ft,F,G){const De=ft.toString(),ht=De.replace(P,(Ct,$)=>{let Re=F[$];return F.hasOwnProperty($)||(G.push(`Please provide a value for the animation param ${$}`),Re=""),Re.toString()});return ht==De?ft:ht}function Q(ft){const F=[];let G=ft.next();for(;!G.done;)F.push(G.value),G=ft.next();return F}const Se=/-+([a-z0-9])/g;function je(ft){return ft.replace(Se,(...F)=>F[1].toUpperCase())}function Ye(ft){return ft.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function r(ft,F,G){switch(F.type){case 7:return ft.visitTrigger(F,G);case 0:return ft.visitState(F,G);case 1:return ft.visitTransition(F,G);case 2:return ft.visitSequence(F,G);case 3:return ft.visitGroup(F,G);case 4:return ft.visitAnimate(F,G);case 5:return ft.visitKeyframes(F,G);case 6:return ft.visitStyle(F,G);case 8:return ft.visitReference(F,G);case 9:return ft.visitAnimateChild(F,G);case 10:return ft.visitAnimateRef(F,G);case 11:return ft.visitQuery(F,G);case 12:return ft.visitStagger(F,G);default:throw new Error(`Unable to resolve animation metadata node #${F.type}`)}}function o(ft,F){return window.getComputedStyle(ft)[F]}const d="*";function l(ft,F){const G=[];return"string"==typeof ft?ft.split(/\s*,\s*/).forEach(De=>function s(ft,F,G){if(":"==ft[0]){const de=function i(ft,F){switch(ft){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(G,De)=>parseFloat(De)>parseFloat(G);case":decrement":return(G,De)=>parseFloat(De) *"}}(ft,G);if("function"==typeof de)return void F.push(de);ft=de}const De=ft.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==De||De.length<4)return G.push(`The provided transition expression "${ft}" is not supported`),F;const ht=De[1],Ct=De[2],$=De[3];F.push(a(ht,$));"<"==Ct[0]&&!(ht==d&&$==d)&&F.push(a($,ht))}(De,G,F)):G.push(ft),G}const t=new Set(["true","1"]),n=new Set(["false","0"]);function a(ft,F){const G=t.has(ft)||n.has(ft),De=t.has(F)||n.has(F);return(ht,Ct)=>{let $=ft==d||ft==ht,Re=F==d||F==Ct;return!$&&G&&"boolean"==typeof ht&&($=ht?t.has(ft):n.has(ft)),!Re&&De&&"boolean"==typeof Ct&&(Re=Ct?t.has(F):n.has(F)),$&&Re}}const c=":self",h=new RegExp(`s*${c}s*,?`,"g");function x(ft,F,G){return new At(ft).build(F,G)}class At{constructor(F){this._driver=F}build(F,G){const De=new Ut(G);return this._resetContextStyleTimingState(De),r(this,H(F),De)}_resetContextStyleTimingState(F){F.currentQuerySelector="",F.collectedStyles={},F.collectedStyles[""]={},F.currentTime=0}visitTrigger(F,G){let De=G.queryCount=0,ht=G.depCount=0;const Ct=[],$=[];return"@"==F.name.charAt(0)&&G.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),F.definitions.forEach(Re=>{if(this._resetContextStyleTimingState(G),0==Re.type){const de=Re,tt=de.name;tt.toString().split(/\s*,\s*/).forEach(yt=>{de.name=yt,Ct.push(this.visitState(de,G))}),de.name=tt}else if(1==Re.type){const de=this.visitTransition(Re,G);De+=de.queryCount,ht+=de.depCount,$.push(de)}else G.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:F.name,states:Ct,transitions:$,queryCount:De,depCount:ht,options:null}}visitState(F,G){const De=this.visitStyle(F.styles,G),ht=F.options&&F.options.params||null;if(De.containsDynamicStyles){const Ct=new Set,$=ht||{};if(De.styles.forEach(Re=>{if(Lt(Re)){const de=Re;Object.keys(de).forEach(tt=>{R(de[tt]).forEach(yt=>{$.hasOwnProperty(yt)||Ct.add(yt)})})}}),Ct.size){const Re=Q(Ct.values());G.errors.push(`state("${F.name}", ...) must define default values for all the following style substitutions: ${Re.join(", ")}`)}}return{type:0,name:F.name,style:De,options:ht?{params:ht}:null}}visitTransition(F,G){G.queryCount=0,G.depCount=0;const De=r(this,H(F.animation),G);return{type:1,matchers:l(F.expr,G.errors),animation:De,queryCount:G.queryCount,depCount:G.depCount,options:Ge(F.options)}}visitSequence(F,G){return{type:2,steps:F.steps.map(De=>r(this,De,G)),options:Ge(F.options)}}visitGroup(F,G){const De=G.currentTime;let ht=0;const Ct=F.steps.map($=>{G.currentTime=De;const Re=r(this,$,G);return ht=Math.max(ht,G.currentTime),Re});return G.currentTime=ht,{type:3,steps:Ct,options:Ge(F.options)}}visitAnimate(F,G){const De=function Te(ft,F){let G=null;if(ft.hasOwnProperty("duration"))G=ft;else if("number"==typeof ft)return j(me(ft,F).duration,0,"");const De=ft;if(De.split(/\s+/).some(Ct=>"{"==Ct.charAt(0)&&"{"==Ct.charAt(1))){const Ct=j(0,0,"");return Ct.dynamic=!0,Ct.strValue=De,Ct}return G=G||me(De,F),j(G.duration,G.delay,G.easing)}(F.timings,G.errors);G.currentAnimateTimings=De;let ht,Ct=F.styles?F.styles:(0,_.oB)({});if(5==Ct.type)ht=this.visitKeyframes(Ct,G);else{let $=F.styles,Re=!1;if(!$){Re=!0;const tt={};De.easing&&(tt.easing=De.easing),$=(0,_.oB)(tt)}G.currentTime+=De.duration+De.delay;const de=this.visitStyle($,G);de.isEmptyStep=Re,ht=de}return G.currentAnimateTimings=null,{type:4,timings:De,style:ht,options:null}}visitStyle(F,G){const De=this._makeStyleAst(F,G);return this._validateStyleAst(De,G),De}_makeStyleAst(F,G){const De=[];Array.isArray(F.styles)?F.styles.forEach($=>{"string"==typeof $?$==_.l3?De.push($):G.errors.push(`The provided style string value ${$} is not allowed.`):De.push($)}):De.push(F.styles);let ht=!1,Ct=null;return De.forEach($=>{if(Lt($)){const Re=$,de=Re.easing;if(de&&(Ct=de,delete Re.easing),!ht)for(let tt in Re)if(Re[tt].toString().indexOf("{{")>=0){ht=!0;break}}}),{type:6,styles:De,easing:Ct,offset:F.offset,containsDynamicStyles:ht,options:null}}_validateStyleAst(F,G){const De=G.currentAnimateTimings;let ht=G.currentTime,Ct=G.currentTime;De&&Ct>0&&(Ct-=De.duration+De.delay),F.styles.forEach($=>{"string"!=typeof $&&Object.keys($).forEach(Re=>{if(!this._driver.validateStyleProperty(Re))return void G.errors.push(`The provided animation property "${Re}" is not a supported CSS property for animations`);const de=G.collectedStyles[G.currentQuerySelector],tt=de[Re];let yt=!0;tt&&(Ct!=ht&&Ct>=tt.startTime&&ht<=tt.endTime&&(G.errors.push(`The CSS property "${Re}" that exists between the times of "${tt.startTime}ms" and "${tt.endTime}ms" is also being animated in a parallel animation between the times of "${Ct}ms" and "${ht}ms"`),yt=!1),Ct=tt.startTime),yt&&(de[Re]={startTime:Ct,endTime:ht}),G.options&&function he(ft,F,G){const De=F.params||{},ht=R(ft);ht.length&&ht.forEach(Ct=>{De.hasOwnProperty(Ct)||G.push(`Unable to resolve the local animation param ${Ct} in the given list of values`)})}($[Re],G.options,G.errors)})})}visitKeyframes(F,G){const De={type:5,styles:[],options:null};if(!G.currentAnimateTimings)return G.errors.push("keyframes() must be placed inside of a call to animate()"),De;let Ct=0;const $=[];let Re=!1,de=!1,tt=0;const yt=F.steps.map(Ti=>{const Hi=this._makeStyleAst(Ti,G);let Be=null!=Hi.offset?Hi.offset:function mt(ft){if("string"==typeof ft)return null;let F=null;if(Array.isArray(ft))ft.forEach(G=>{if(Lt(G)&&G.hasOwnProperty("offset")){const De=G;F=parseFloat(De.offset),delete De.offset}});else if(Lt(ft)&&ft.hasOwnProperty("offset")){const G=ft;F=parseFloat(G.offset),delete G.offset}return F}(Hi.styles),xe=0;return null!=Be&&(Ct++,xe=Hi.offset=Be),de=de||xe<0||xe>1,Re=Re||xe0&&Ct{const Be=Wt>0?Hi==ii?1:Wt*Hi:$[Hi],xe=Be*_i;G.currentTime=di+ui.delay+xe,ui.duration=xe,this._validateStyleAst(Ti,G),Ti.offset=Be,De.styles.push(Ti)}),De}visitReference(F,G){return{type:8,animation:r(this,H(F.animation),G),options:Ge(F.options)}}visitAnimateChild(F,G){return G.depCount++,{type:9,options:Ge(F.options)}}visitAnimateRef(F,G){return{type:10,animation:this.visitReference(F.animation,G),options:Ge(F.options)}}visitQuery(F,G){const De=G.currentQuerySelector,ht=F.options||{};G.queryCount++,G.currentQuery=F;const[Ct,$]=function Ht(ft){const F=!!ft.split(/\s*,\s*/).find(G=>G==c);return F&&(ft=ft.replace(h,"")),ft=ft.replace(/@\*/g,Ue).replace(/@\w+/g,G=>Ue+"-"+G.substr(1)).replace(/:animating/g,He),[ft,F]}(F.selector);G.currentQuerySelector=De.length?De+" "+Ct:Ct,m(G.collectedStyles,G.currentQuerySelector,{});const Re=r(this,H(F.animation),G);return G.currentQuery=null,G.currentQuerySelector=De,{type:11,selector:Ct,limit:ht.limit||0,optional:!!ht.optional,includeSelf:$,animation:Re,originalSelector:F.selector,options:Ge(F.options)}}visitStagger(F,G){G.currentQuery||G.errors.push("stagger() can only be used inside of query()");const De="full"===F.timings?{duration:0,delay:0,easing:"full"}:me(F.timings,G.errors,!0);return{type:12,animation:r(this,H(F.animation),G),timings:De,options:null}}}class Ut{constructor(F){this.errors=F,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Lt(ft){return!Array.isArray(ft)&&"object"==typeof ft}function Ge(ft){return ft?(ft=Me(ft)).params&&(ft.params=function lt(ft){return ft?Me(ft):null}(ft.params)):ft={},ft}function j(ft,F,G){return{duration:ft,delay:F,easing:G}}function N(ft,F,G,De,ht,Ct,$=null,Re=!1){return{type:1,element:ft,keyframes:F,preStyleProps:G,postStyleProps:De,duration:ht,delay:Ct,totalTime:ht+Ct,easing:$,subTimeline:Re}}class te{constructor(){this._map=new Map}get(F){return this._map.get(F)||[]}append(F,G){let De=this._map.get(F);De||this._map.set(F,De=[]),De.push(...G)}has(F){return this._map.has(F)}clear(){this._map.clear()}}const ct=new RegExp(":enter","g"),xt=new RegExp(":leave","g");function Yt(ft,F,G,De,ht,Ct={},$={},Re,de,tt=[]){return(new It).buildKeyframes(ft,F,G,De,ht,Ct,$,Re,de,tt)}class It{buildKeyframes(F,G,De,ht,Ct,$,Re,de,tt,yt=[]){tt=tt||new te;const Gt=new Et(F,G,tt,ht,Ct,yt,[]);Gt.options=de,Gt.currentTimeline.setStyles([$],null,Gt.errors,de),r(this,De,Gt);const Wt=Gt.timelines.filter(ii=>ii.containsAnimation());if(Object.keys(Re).length){let ii;for(let di=Wt.length-1;di>=0;di--){const ui=Wt[di];if(ui.element===G){ii=ui;break}}ii&&!ii.allowOnlyTimelineStyles()&&ii.setStyles([Re],null,Gt.errors,de)}return Wt.length?Wt.map(ii=>ii.buildKeyframes()):[N(G,[],[],[],0,0,"",!1)]}visitTrigger(F,G){}visitState(F,G){}visitTransition(F,G){}visitAnimateChild(F,G){const De=G.subInstructions.get(G.element);if(De){const ht=G.createSubContext(F.options),Ct=G.currentTimeline.currentTime,$=this._visitSubInstructions(De,ht,ht.options);Ct!=$&&G.transformIntoNewTimeline($)}G.previousNode=F}visitAnimateRef(F,G){const De=G.createSubContext(F.options);De.transformIntoNewTimeline(),this.visitReference(F.animation,De),G.transformIntoNewTimeline(De.currentTimeline.currentTime),G.previousNode=F}_visitSubInstructions(F,G,De){let Ct=G.currentTimeline.currentTime;const $=null!=De.duration?z(De.duration):null,Re=null!=De.delay?z(De.delay):null;return 0!==$&&F.forEach(de=>{const tt=G.appendInstructionToTimeline(de,$,Re);Ct=Math.max(Ct,tt.duration+tt.delay)}),Ct}visitReference(F,G){G.updateOptions(F.options,!0),r(this,F.animation,G),G.previousNode=F}visitSequence(F,G){const De=G.subContextCount;let ht=G;const Ct=F.options;if(Ct&&(Ct.params||Ct.delay)&&(ht=G.createSubContext(Ct),ht.transformIntoNewTimeline(),null!=Ct.delay)){6==ht.previousNode.type&&(ht.currentTimeline.snapshotCurrentStyles(),ht.previousNode=Rt);const $=z(Ct.delay);ht.delayNextStep($)}F.steps.length&&(F.steps.forEach($=>r(this,$,ht)),ht.currentTimeline.applyStylesToKeyframe(),ht.subContextCount>De&&ht.transformIntoNewTimeline()),G.previousNode=F}visitGroup(F,G){const De=[];let ht=G.currentTimeline.currentTime;const Ct=F.options&&F.options.delay?z(F.options.delay):0;F.steps.forEach($=>{const Re=G.createSubContext(F.options);Ct&&Re.delayNextStep(Ct),r(this,$,Re),ht=Math.max(ht,Re.currentTimeline.currentTime),De.push(Re.currentTimeline)}),De.forEach($=>G.currentTimeline.mergeTimelineCollectedStyles($)),G.transformIntoNewTimeline(ht),G.previousNode=F}_visitTiming(F,G){if(F.dynamic){const De=F.strValue;return me(G.params?V(De,G.params,G.errors):De,G.errors)}return{duration:F.duration,delay:F.delay,easing:F.easing}}visitAnimate(F,G){const De=G.currentAnimateTimings=this._visitTiming(F.timings,G),ht=G.currentTimeline;De.delay&&(G.incrementTime(De.delay),ht.snapshotCurrentStyles());const Ct=F.style;5==Ct.type?this.visitKeyframes(Ct,G):(G.incrementTime(De.duration),this.visitStyle(Ct,G),ht.applyStylesToKeyframe()),G.currentAnimateTimings=null,G.previousNode=F}visitStyle(F,G){const De=G.currentTimeline,ht=G.currentAnimateTimings;!ht&&De.getCurrentStyleProperties().length&&De.forwardFrame();const Ct=ht&&ht.easing||F.easing;F.isEmptyStep?De.applyEmptyStep(Ct):De.setStyles(F.styles,Ct,G.errors,G.options),G.previousNode=F}visitKeyframes(F,G){const De=G.currentAnimateTimings,ht=G.currentTimeline.duration,Ct=De.duration,Re=G.createSubContext().currentTimeline;Re.easing=De.easing,F.styles.forEach(de=>{Re.forwardTime((de.offset||0)*Ct),Re.setStyles(de.styles,de.easing,G.errors,G.options),Re.applyStylesToKeyframe()}),G.currentTimeline.mergeTimelineCollectedStyles(Re),G.transformIntoNewTimeline(ht+Ct),G.previousNode=F}visitQuery(F,G){const De=G.currentTimeline.currentTime,ht=F.options||{},Ct=ht.delay?z(ht.delay):0;Ct&&(6===G.previousNode.type||0==De&&G.currentTimeline.getCurrentStyleProperties().length)&&(G.currentTimeline.snapshotCurrentStyles(),G.previousNode=Rt);let $=De;const Re=G.invokeQuery(F.selector,F.originalSelector,F.limit,F.includeSelf,!!ht.optional,G.errors);G.currentQueryTotal=Re.length;let de=null;Re.forEach((tt,yt)=>{G.currentQueryIndex=yt;const Gt=G.createSubContext(F.options,tt);Ct&&Gt.delayNextStep(Ct),tt===G.element&&(de=Gt.currentTimeline),r(this,F.animation,Gt),Gt.currentTimeline.applyStylesToKeyframe(),$=Math.max($,Gt.currentTimeline.currentTime)}),G.currentQueryIndex=0,G.currentQueryTotal=0,G.transformIntoNewTimeline($),de&&(G.currentTimeline.mergeTimelineCollectedStyles(de),G.currentTimeline.snapshotCurrentStyles()),G.previousNode=F}visitStagger(F,G){const De=G.parentContext,ht=G.currentTimeline,Ct=F.timings,$=Math.abs(Ct.duration),Re=$*(G.currentQueryTotal-1);let de=$*G.currentQueryIndex;switch(Ct.duration<0?"reverse":Ct.easing){case"reverse":de=Re-de;break;case"full":de=De.currentStaggerTime}const yt=G.currentTimeline;de&&yt.delayNextStep(de);const Gt=yt.currentTime;r(this,F.animation,G),G.previousNode=F,De.currentStaggerTime=ht.currentTime-Gt+(ht.startTime-De.currentTimeline.startTime)}}const Rt={};class Et{constructor(F,G,De,ht,Ct,$,Re,de){this._driver=F,this.element=G,this.subInstructions=De,this._enterClassName=ht,this._leaveClassName=Ct,this.errors=$,this.timelines=Re,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=de||new Bt(this._driver,G,0),Re.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(F,G){if(!F)return;const De=F;let ht=this.options;null!=De.duration&&(ht.duration=z(De.duration)),null!=De.delay&&(ht.delay=z(De.delay));const Ct=De.params;if(Ct){let $=ht.params;$||($=this.options.params={}),Object.keys(Ct).forEach(Re=>{(!G||!$.hasOwnProperty(Re))&&($[Re]=V(Ct[Re],$,this.errors))})}}_copyOptions(){const F={};if(this.options){const G=this.options.params;if(G){const De=F.params={};Object.keys(G).forEach(ht=>{De[ht]=G[ht]})}}return F}createSubContext(F=null,G,De){const ht=G||this.element,Ct=new Et(this._driver,ht,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ht,De||0));return Ct.previousNode=this.previousNode,Ct.currentAnimateTimings=this.currentAnimateTimings,Ct.options=this._copyOptions(),Ct.updateOptions(F),Ct.currentQueryIndex=this.currentQueryIndex,Ct.currentQueryTotal=this.currentQueryTotal,Ct.parentContext=this,this.subContextCount++,Ct}transformIntoNewTimeline(F){return this.previousNode=Rt,this.currentTimeline=this.currentTimeline.fork(this.element,F),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(F,G,De){const ht={duration:null!=G?G:F.duration,delay:this.currentTimeline.currentTime+(null!=De?De:0)+F.delay,easing:""},Ct=new Jt(this._driver,F.element,F.keyframes,F.preStyleProps,F.postStyleProps,ht,F.stretchStartingKeyframe);return this.timelines.push(Ct),ht}incrementTime(F){this.currentTimeline.forwardTime(this.currentTimeline.duration+F)}delayNextStep(F){F>0&&this.currentTimeline.delayNextStep(F)}invokeQuery(F,G,De,ht,Ct,$){let Re=[];if(ht&&Re.push(this.element),F.length>0){F=(F=F.replace(ct,"."+this._enterClassName)).replace(xt,"."+this._leaveClassName);let tt=this._driver.query(this.element,F,1!=De);0!==De&&(tt=De<0?tt.slice(tt.length+De,tt.length):tt.slice(0,De)),Re.push(...tt)}return!Ct&&0==Re.length&&$.push(`\`query("${G}")\` returned zero elements. (Use \`query("${G}", { optional: true })\` if you wish to allow this.)`),Re}}class Bt{constructor(F,G,De,ht){this._driver=F,this.element=G,this.startTime=De,this._elementTimelineStylesLookup=ht,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(G),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(G,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(F){const G=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||G?(this.forwardTime(this.currentTime+F),G&&this.snapshotCurrentStyles()):this.startTime+=F}fork(F,G){return this.applyStylesToKeyframe(),new Bt(this._driver,F,G||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(F){this.applyStylesToKeyframe(),this.duration=F,this._loadKeyframe()}_updateStyle(F,G){this._localTimelineStyles[F]=G,this._globalTimelineStyles[F]=G,this._styleSummary[F]={time:this.currentTime,value:G}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(F){F&&(this._previousKeyframe.easing=F),Object.keys(this._globalTimelineStyles).forEach(G=>{this._backFill[G]=this._globalTimelineStyles[G]||_.l3,this._currentKeyframe[G]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(F,G,De,ht){G&&(this._previousKeyframe.easing=G);const Ct=ht&&ht.params||{},$=function mi(ft,F){const G={};let De;return ft.forEach(ht=>{"*"===ht?(De=De||Object.keys(F),De.forEach(Ct=>{G[Ct]=_.l3})):we(ht,!1,G)}),G}(F,this._globalTimelineStyles);Object.keys($).forEach(Re=>{const de=V($[Re],Ct,De);this._pendingStyles[Re]=de,this._localTimelineStyles.hasOwnProperty(Re)||(this._backFill[Re]=this._globalTimelineStyles.hasOwnProperty(Re)?this._globalTimelineStyles[Re]:_.l3),this._updateStyle(Re,de)})}applyStylesToKeyframe(){const F=this._pendingStyles,G=Object.keys(F);0!=G.length&&(this._pendingStyles={},G.forEach(De=>{this._currentKeyframe[De]=F[De]}),Object.keys(this._localTimelineStyles).forEach(De=>{this._currentKeyframe.hasOwnProperty(De)||(this._currentKeyframe[De]=this._localTimelineStyles[De])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(F=>{const G=this._localTimelineStyles[F];this._pendingStyles[F]=G,this._updateStyle(F,G)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const F=[];for(let G in this._currentKeyframe)F.push(G);return F}mergeTimelineCollectedStyles(F){Object.keys(F._styleSummary).forEach(G=>{const De=this._styleSummary[G],ht=F._styleSummary[G];(!De||ht.time>De.time)&&this._updateStyle(G,ht.value)})}buildKeyframes(){this.applyStylesToKeyframe();const F=new Set,G=new Set,De=1===this._keyframes.size&&0===this.duration;let ht=[];this._keyframes.forEach((Re,de)=>{const tt=we(Re,!0);Object.keys(tt).forEach(yt=>{const Gt=tt[yt];Gt==_.k1?F.add(yt):Gt==_.l3&&G.add(yt)}),De||(tt.offset=de/this.duration),ht.push(tt)});const Ct=F.size?Q(F.values()):[],$=G.size?Q(G.values()):[];if(De){const Re=ht[0],de=Me(Re);Re.offset=0,de.offset=1,ht=[Re,de]}return N(this.element,ht,Ct,$,this.duration,this.startTime,this.easing,!1)}}class Jt extends Bt{constructor(F,G,De,ht,Ct,$,Re=!1){super(F,G,$.delay),this.keyframes=De,this.preStyleProps=ht,this.postStyleProps=Ct,this._stretchStartingKeyframe=Re,this.timings={duration:$.duration,delay:$.delay,easing:$.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let F=this.keyframes,{delay:G,duration:De,easing:ht}=this.timings;if(this._stretchStartingKeyframe&&G){const Ct=[],$=De+G,Re=G/$,de=we(F[0],!1);de.offset=0,Ct.push(de);const tt=we(F[0],!1);tt.offset=ai(Re),Ct.push(tt);const yt=F.length-1;for(let Gt=1;Gt<=yt;Gt++){let Wt=we(F[Gt],!1);Wt.offset=ai((G+Wt.offset*De)/$),Ct.push(Wt)}De=$,G=0,ht="",F=Ct}return N(this.element,F,this.preStyleProps,this.postStyleProps,De,G,ht,!0)}}function ai(ft,F=3){const G=Math.pow(10,F-1);return Math.round(ft*G)/G}class yi{}class gn extends yi{normalizePropertyName(F,G){return je(F)}normalizeStyleValue(F,G,De,ht){let Ct="";const $=De.toString().trim();if(cn[G]&&0!==De&&"0"!==De)if("number"==typeof De)Ct="px";else{const Re=De.match(/^[+-]?[\d\.]+([a-z]*)$/);Re&&0==Re[1].length&&ht.push(`Please provide a CSS unit value for ${F}:${De}`)}return $+Ct}}const cn=(()=>function Ki(ft){const F={};return ft.forEach(G=>F[G]=!0),F}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Tn(ft,F,G,De,ht,Ct,$,Re,de,tt,yt,Gt,Wt){return{type:0,element:ft,triggerName:F,isRemovalTransition:ht,fromState:G,fromStyles:Ct,toState:De,toStyles:$,timelines:Re,queriedElements:de,preStyleProps:tt,postStyleProps:yt,totalTime:Gt,errors:Wt}}const rn={};class st{constructor(F,G,De){this._triggerName=F,this.ast=G,this._stateStyles=De}match(F,G,De,ht){return function St(ft,F,G,De,ht){return ft.some(Ct=>Ct(F,G,De,ht))}(this.ast.matchers,F,G,De,ht)}buildStyles(F,G,De){const ht=this._stateStyles["*"],Ct=this._stateStyles[F],$=ht?ht.buildStyles(G,De):{};return Ct?Ct.buildStyles(G,De):$}build(F,G,De,ht,Ct,$,Re,de,tt,yt){const Gt=[],Wt=this.ast.options&&this.ast.options.params||rn,di=this.buildStyles(De,Re&&Re.params||rn,Gt),ui=de&&de.params||rn,_i=this.buildStyles(ht,ui,Gt),Ti=new Set,Hi=new Map,Be=new Map,xe="void"===ht,Ee={params:Object.assign(Object.assign({},Wt),ui)},ut=yt?[]:Yt(F,G,this.ast.animation,Ct,$,di,_i,Ee,tt,Gt);let Zt=0;if(ut.forEach(ji=>{Zt=Math.max(ji.duration+ji.delay,Zt)}),Gt.length)return Tn(G,this._triggerName,De,ht,xe,di,_i,[],[],Hi,Be,Zt,Gt);ut.forEach(ji=>{const tn=ji.element,Kn=m(Hi,tn,{});ji.preStyleProps.forEach(pr=>Kn[pr]=!0);const Wn=m(Be,tn,{});ji.postStyleProps.forEach(pr=>Wn[pr]=!0),tn!==G&&Ti.add(tn)});const hi=Q(Ti.values());return Tn(G,this._triggerName,De,ht,xe,di,_i,ut,hi,Hi,Be,Zt)}}class ot{constructor(F,G,De){this.styles=F,this.defaultParams=G,this.normalizer=De}buildStyles(F,G){const De={},ht=Me(this.defaultParams);return Object.keys(F).forEach(Ct=>{const $=F[Ct];null!=$&&(ht[Ct]=$)}),this.styles.styles.forEach(Ct=>{if("string"!=typeof Ct){const $=Ct;Object.keys($).forEach(Re=>{let de=$[Re];de.length>1&&(de=V(de,ht,G));const tt=this.normalizer.normalizePropertyName(Re,G);de=this.normalizer.normalizeStyleValue(Re,tt,de,G),De[tt]=de})}}),De}}class vt{constructor(F,G,De){this.name=F,this.ast=G,this._normalizer=De,this.transitionFactories=[],this.states={},G.states.forEach(ht=>{this.states[ht.name]=new ot(ht.style,ht.options&&ht.options.params||{},De)}),qe(this.states,"true","1"),qe(this.states,"false","0"),G.transitions.forEach(ht=>{this.transitionFactories.push(new st(F,ht,this.states))}),this.fallbackTransition=function U(ft,F,G){return new st(ft,{type:1,animation:{type:2,steps:[],options:null},matchers:[($,Re)=>!0],options:null,queryCount:0,depCount:0},F)}(F,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(F,G,De,ht){return this.transitionFactories.find($=>$.match(F,G,De,ht))||null}matchStyles(F,G,De){return this.fallbackTransition.buildStyles(F,G,De)}}function qe(ft,F,G){ft.hasOwnProperty(F)?ft.hasOwnProperty(G)||(ft[G]=ft[F]):ft.hasOwnProperty(G)&&(ft[F]=ft[G])}const gt=new te;class Dt{constructor(F,G,De){this.bodyNode=F,this._driver=G,this._normalizer=De,this._animations={},this._playersById={},this.players=[]}register(F,G){const De=[],ht=x(this._driver,G,De);if(De.length)throw new Error(`Unable to build the animation due to the following errors: ${De.join("\n")}`);this._animations[F]=ht}_buildPlayer(F,G,De){const ht=F.element,Ct=E(0,this._normalizer,0,F.keyframes,G,De);return this._driver.animate(ht,Ct,F.duration,F.delay,F.easing,[],!0)}create(F,G,De={}){const ht=[],Ct=this._animations[F];let $;const Re=new Map;if(Ct?($=Yt(this._driver,G,Ct,Fe,ze,{},{},De,gt,ht),$.forEach(yt=>{const Gt=m(Re,yt.element,{});yt.postStyleProps.forEach(Wt=>Gt[Wt]=null)})):(ht.push("The requested animation doesn't exist or has already been destroyed"),$=[]),ht.length)throw new Error(`Unable to create the animation due to the following errors: ${ht.join("\n")}`);Re.forEach((yt,Gt)=>{Object.keys(yt).forEach(Wt=>{yt[Wt]=this._driver.computeStyle(Gt,Wt,_.l3)})});const tt=A($.map(yt=>{const Gt=Re.get(yt.element);return this._buildPlayer(yt,{},Gt)}));return this._playersById[F]=tt,tt.onDestroy(()=>this.destroy(F)),this.players.push(tt),tt}destroy(F){const G=this._getPlayer(F);G.destroy(),delete this._playersById[F];const De=this.players.indexOf(G);De>=0&&this.players.splice(De,1)}_getPlayer(F){const G=this._playersById[F];if(!G)throw new Error(`Unable to find the timeline player referenced by ${F}`);return G}listen(F,G,De,ht){const Ct=S(G,"","","");return C(this._getPlayer(F),De,Ct,ht),()=>{}}command(F,G,De,ht){if("register"==De)return void this.register(F,ht[0]);if("create"==De)return void this.create(F,G,ht[0]||{});const Ct=this._getPlayer(F);switch(De){case"play":Ct.play();break;case"pause":Ct.pause();break;case"reset":Ct.reset();break;case"restart":Ct.restart();break;case"finish":Ct.finish();break;case"init":Ct.init();break;case"setPosition":Ct.setPosition(parseFloat(ht[0]));break;case"destroy":this.destroy(F)}}}const ri="ng-animate-queued",Di="ng-animate-disabled",Fi=[],Ji={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_n={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ni="__ng_removed";class Ri{constructor(F,G=""){this.namespaceId=G;const De=F&&F.hasOwnProperty("value");if(this.value=function xn(ft){return null!=ft?ft:null}(De?F.value:F),De){const Ct=Me(F);delete Ct.value,this.options=Ct}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(F){const G=F.params;if(G){const De=this.options.params;Object.keys(G).forEach(ht=>{null==De[ht]&&(De[ht]=G[ht])})}}}const sn="void",Xi=new Ri(sn);class en{constructor(F,G,De){this.id=F,this.hostElement=G,this._engine=De,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+F,rt(G,this._hostClassName)}listen(F,G,De,ht){if(!this._triggers.hasOwnProperty(G))throw new Error(`Unable to listen on the animation trigger event "${De}" because the animation trigger "${G}" doesn't exist!`);if(null==De||0==De.length)throw new Error(`Unable to listen on the animation trigger "${G}" because the provided event is undefined!`);if(!function kn(ft){return"start"==ft||"done"==ft}(De))throw new Error(`The provided animation trigger event "${De}" for the animation trigger "${G}" is not supported!`);const Ct=m(this._elementListeners,F,[]),$={name:G,phase:De,callback:ht};Ct.push($);const Re=m(this._engine.statesByElement,F,{});return Re.hasOwnProperty(G)||(rt(F,ae),rt(F,ae+"-"+G),Re[G]=Xi),()=>{this._engine.afterFlush(()=>{const de=Ct.indexOf($);de>=0&&Ct.splice(de,1),this._triggers[G]||delete Re[G]})}}register(F,G){return!this._triggers[F]&&(this._triggers[F]=G,!0)}_getTrigger(F){const G=this._triggers[F];if(!G)throw new Error(`The provided animation trigger "${F}" has not been registered!`);return G}trigger(F,G,De,ht=!0){const Ct=this._getTrigger(G),$=new dn(this.id,G,F);let Re=this._engine.statesByElement.get(F);Re||(rt(F,ae),rt(F,ae+"-"+G),this._engine.statesByElement.set(F,Re={}));let de=Re[G];const tt=new Ri(De,this.id);if(!(De&&De.hasOwnProperty("value"))&&de&&tt.absorbOptions(de.options),Re[G]=tt,de||(de=Xi),tt.value!==sn&&de.value===tt.value){if(!function Tt(ft,F){const G=Object.keys(ft),De=Object.keys(F);if(G.length!=De.length)return!1;for(let ht=0;ht{ke(F,_i),nt(F,Ti)})}return}const Wt=m(this._engine.playersByElement,F,[]);Wt.forEach(ui=>{ui.namespaceId==this.id&&ui.triggerName==G&&ui.queued&&ui.destroy()});let ii=Ct.matchTransition(de.value,tt.value,F,tt.params),di=!1;if(!ii){if(!ht)return;ii=Ct.fallbackTransition,di=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:F,triggerName:G,transition:ii,fromState:de,toState:tt,player:$,isFallbackTransition:di}),di||(rt(F,ri),$.onStart(()=>{kt(F,ri)})),$.onDone(()=>{let ui=this.players.indexOf($);ui>=0&&this.players.splice(ui,1);const _i=this._engine.playersByElement.get(F);if(_i){let Ti=_i.indexOf($);Ti>=0&&_i.splice(Ti,1)}}),this.players.push($),Wt.push($),$}deregister(F){delete this._triggers[F],this._engine.statesByElement.forEach((G,De)=>{delete G[F]}),this._elementListeners.forEach((G,De)=>{this._elementListeners.set(De,G.filter(ht=>ht.name!=F))})}clearElementCache(F){this._engine.statesByElement.delete(F),this._elementListeners.delete(F);const G=this._engine.playersByElement.get(F);G&&(G.forEach(De=>De.destroy()),this._engine.playersByElement.delete(F))}_signalRemovalForInnerTriggers(F,G){const De=this._engine.driver.query(F,Ue,!0);De.forEach(ht=>{if(ht[Ni])return;const Ct=this._engine.fetchNamespacesByElement(ht);Ct.size?Ct.forEach($=>$.triggerLeaveAnimation(ht,G,!1,!0)):this.clearElementCache(ht)}),this._engine.afterFlushAnimationsDone(()=>De.forEach(ht=>this.clearElementCache(ht)))}triggerLeaveAnimation(F,G,De,ht){const Ct=this._engine.statesByElement.get(F),$=new Map;if(Ct){const Re=[];if(Object.keys(Ct).forEach(de=>{if($.set(de,Ct[de].value),this._triggers[de]){const tt=this.trigger(F,de,sn,ht);tt&&Re.push(tt)}}),Re.length)return this._engine.markElementAsRemoved(this.id,F,!0,G,$),De&&A(Re).onDone(()=>this._engine.processLeaveNode(F)),!0}return!1}prepareLeaveAnimationListeners(F){const G=this._elementListeners.get(F),De=this._engine.statesByElement.get(F);if(G&&De){const ht=new Set;G.forEach(Ct=>{const $=Ct.name;if(ht.has($))return;ht.add($);const de=this._triggers[$].fallbackTransition,tt=De[$]||Xi,yt=new Ri(sn),Gt=new dn(this.id,$,F);this._engine.totalQueuedPlayers++,this._queue.push({element:F,triggerName:$,transition:de,fromState:tt,toState:yt,player:Gt,isFallbackTransition:!0})})}}removeNode(F,G){const De=this._engine;if(F.childElementCount&&this._signalRemovalForInnerTriggers(F,G),this.triggerLeaveAnimation(F,G,!0))return;let ht=!1;if(De.totalAnimations){const Ct=De.players.length?De.playersByQueriedElement.get(F):[];if(Ct&&Ct.length)ht=!0;else{let $=F;for(;$=$.parentNode;)if(De.statesByElement.get($)){ht=!0;break}}}if(this.prepareLeaveAnimationListeners(F),ht)De.markElementAsRemoved(this.id,F,!1,G);else{const Ct=F[Ni];(!Ct||Ct===Ji)&&(De.afterFlush(()=>this.clearElementCache(F)),De.destroyInnerAnimations(F),De._onRemovalComplete(F,G))}}insertNode(F,G){rt(F,this._hostClassName)}drainQueuedTransitions(F){const G=[];return this._queue.forEach(De=>{const ht=De.player;if(ht.destroyed)return;const Ct=De.element,$=this._elementListeners.get(Ct);$&&$.forEach(Re=>{if(Re.name==De.triggerName){const de=S(Ct,De.triggerName,De.fromState.value,De.toState.value);de._data=F,C(De.player,Re.phase,de,Re.callback)}}),ht.markedForDestroy?this._engine.afterFlush(()=>{ht.destroy()}):G.push(De)}),this._queue=[],G.sort((De,ht)=>{const Ct=De.transition.ast.depCount,$=ht.transition.ast.depCount;return 0==Ct||0==$?Ct-$:this._engine.driver.containsElement(De.element,ht.element)?1:-1})}destroy(F){this.players.forEach(G=>G.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,F)}elementContainsData(F){let G=!1;return this._elementListeners.has(F)&&(G=!0),G=!!this._queue.find(De=>De.element===F)||G,G}}class an{constructor(F,G,De){this.bodyNode=F,this.driver=G,this._normalizer=De,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=(ht,Ct)=>{}}_onRemovalComplete(F,G){this.onRemovalComplete(F,G)}get queuedPlayers(){const F=[];return this._namespaceList.forEach(G=>{G.players.forEach(De=>{De.queued&&F.push(De)})}),F}createNamespace(F,G){const De=new en(F,G,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,G)?this._balanceNamespaceList(De,G):(this.newHostElements.set(G,De),this.collectEnterElement(G)),this._namespaceLookup[F]=De}_balanceNamespaceList(F,G){const De=this._namespaceList.length-1;if(De>=0){let ht=!1;for(let Ct=De;Ct>=0;Ct--)if(this.driver.containsElement(this._namespaceList[Ct].hostElement,G)){this._namespaceList.splice(Ct+1,0,F),ht=!0;break}ht||this._namespaceList.splice(0,0,F)}else this._namespaceList.push(F);return this.namespacesByHostElement.set(G,F),F}register(F,G){let De=this._namespaceLookup[F];return De||(De=this.createNamespace(F,G)),De}registerTrigger(F,G,De){let ht=this._namespaceLookup[F];ht&&ht.register(G,De)&&this.totalAnimations++}destroy(F,G){if(!F)return;const De=this._fetchNamespace(F);this.afterFlush(()=>{this.namespacesByHostElement.delete(De.hostElement),delete this._namespaceLookup[F];const ht=this._namespaceList.indexOf(De);ht>=0&&this._namespaceList.splice(ht,1)}),this.afterFlushAnimationsDone(()=>De.destroy(G))}_fetchNamespace(F){return this._namespaceLookup[F]}fetchNamespacesByElement(F){const G=new Set,De=this.statesByElement.get(F);if(De){const ht=Object.keys(De);for(let Ct=0;Ct=0&&this.collectedLeaveElements.splice($,1)}if(F){const $=this._fetchNamespace(F);$&&$.insertNode(G,De)}ht&&this.collectEnterElement(G)}collectEnterElement(F){this.collectedEnterElements.push(F)}markElementAsDisabled(F,G){G?this.disabledNodes.has(F)||(this.disabledNodes.add(F),rt(F,Di)):this.disabledNodes.has(F)&&(this.disabledNodes.delete(F),kt(F,Di))}removeNode(F,G,De,ht){if(Oi(G)){const Ct=F?this._fetchNamespace(F):null;if(Ct?Ct.removeNode(G,ht):this.markElementAsRemoved(F,G,!1,ht),De){const $=this.namespacesByHostElement.get(G);$&&$.id!==F&&$.removeNode(G,ht)}}else this._onRemovalComplete(G,ht)}markElementAsRemoved(F,G,De,ht,Ct){this.collectedLeaveElements.push(G),G[Ni]={namespaceId:F,setForRemoval:ht,hasAnimation:De,removedBeforeQueried:!1,previousTriggersValues:Ct}}listen(F,G,De,ht,Ct){return Oi(G)?this._fetchNamespace(F).listen(G,De,ht,Ct):()=>{}}_buildInstruction(F,G,De,ht,Ct){return F.transition.build(this.driver,F.element,F.fromState.value,F.toState.value,De,ht,F.fromState.options,F.toState.options,G,Ct)}destroyInnerAnimations(F){let G=this.driver.query(F,Ue,!0);G.forEach(De=>this.destroyActiveAnimationsForElement(De)),0!=this.playersByQueriedElement.size&&(G=this.driver.query(F,He,!0),G.forEach(De=>this.finishActiveQueriedAnimationOnElement(De)))}destroyActiveAnimationsForElement(F){const G=this.playersByElement.get(F);G&&G.forEach(De=>{De.queued?De.markedForDestroy=!0:De.destroy()})}finishActiveQueriedAnimationOnElement(F){const G=this.playersByQueriedElement.get(F);G&&G.forEach(De=>De.finish())}whenRenderingDone(){return new Promise(F=>{if(this.players.length)return A(this.players).onDone(()=>F());F()})}processLeaveNode(F){var G;const De=F[Ni];if(De&&De.setForRemoval){if(F[Ni]=Ji,De.namespaceId){this.destroyInnerAnimations(F);const ht=this._fetchNamespace(De.namespaceId);ht&&ht.clearElementCache(F)}this._onRemovalComplete(F,De.setForRemoval)}(null===(G=F.classList)||void 0===G?void 0:G.contains(Di))&&this.markElementAsDisabled(F,!1),this.driver.query(F,".ng-animate-disabled",!0).forEach(ht=>{this.markElementAsDisabled(ht,!1)})}flush(F=-1){let G=[];if(this.newHostElements.size&&(this.newHostElements.forEach((De,ht)=>this._balanceNamespaceList(De,ht)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let De=0;DeDe()),this._flushFns=[],this._whenQuietFns.length){const De=this._whenQuietFns;this._whenQuietFns=[],G.length?A(G).onDone(()=>{De.forEach(ht=>ht())}):De.forEach(ht=>ht())}}reportError(F){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${F.join("\n")}`)}_flushAnimations(F,G){const De=new te,ht=[],Ct=new Map,$=[],Re=new Map,de=new Map,tt=new Map,yt=new Set;this.disabledNodes.forEach(si=>{yt.add(si);const Ei=this.driver.query(si,".ng-animate-queued",!0);for(let gi=0;gi{const gi=Fe+ui++;di.set(Ei,gi),si.forEach(Vi=>rt(Vi,gi))});const _i=[],Ti=new Set,Hi=new Set;for(let si=0;siTi.add(Vi)):Hi.add(Ei))}const Be=new Map,xe=Qt(Wt,Array.from(Ti));xe.forEach((si,Ei)=>{const gi=ze+ui++;Be.set(Ei,gi),si.forEach(Vi=>rt(Vi,gi))}),F.push(()=>{ii.forEach((si,Ei)=>{const gi=di.get(Ei);si.forEach(Vi=>kt(Vi,gi))}),xe.forEach((si,Ei)=>{const gi=Be.get(Ei);si.forEach(Vi=>kt(Vi,gi))}),_i.forEach(si=>{this.processLeaveNode(si)})});const Ee=[],ut=[];for(let si=this._namespaceList.length-1;si>=0;si--)this._namespaceList[si].drainQueuedTransitions(G).forEach(gi=>{const Vi=gi.player,pn=gi.element;if(Ee.push(Vi),this.collectedEnterElements.length){const bn=pn[Ni];if(bn&&bn.setForMove){if(bn.previousTriggersValues&&bn.previousTriggersValues.has(gi.triggerName)){const mn=bn.previousTriggersValues.get(gi.triggerName),Sn=this.statesByElement.get(gi.element);Sn&&Sn[gi.triggerName]&&(Sn[gi.triggerName].value=mn)}return void Vi.destroy()}}const vn=!Gt||!this.driver.containsElement(Gt,pn),Pn=Be.get(pn),Yn=di.get(pn),fn=this._buildInstruction(gi,De,Yn,Pn,vn);if(fn.errors&&fn.errors.length)return void ut.push(fn);if(vn)return Vi.onStart(()=>ke(pn,fn.fromStyles)),Vi.onDestroy(()=>nt(pn,fn.toStyles)),void ht.push(Vi);if(gi.isFallbackTransition)return Vi.onStart(()=>ke(pn,fn.fromStyles)),Vi.onDestroy(()=>nt(pn,fn.toStyles)),void ht.push(Vi);const $r=[];fn.timelines.forEach(bn=>{bn.stretchStartingKeyframe=!0,this.disabledNodes.has(bn.element)||$r.push(bn)}),fn.timelines=$r,De.append(pn,fn.timelines),$.push({instruction:fn,player:Vi,element:pn}),fn.queriedElements.forEach(bn=>m(Re,bn,[]).push(Vi)),fn.preStyleProps.forEach((bn,mn)=>{const Sn=Object.keys(bn);if(Sn.length){let Xn=de.get(mn);Xn||de.set(mn,Xn=new Set),Sn.forEach(er=>Xn.add(er))}}),fn.postStyleProps.forEach((bn,mn)=>{const Sn=Object.keys(bn);let Xn=tt.get(mn);Xn||tt.set(mn,Xn=new Set),Sn.forEach(er=>Xn.add(er))})});if(ut.length){const si=[];ut.forEach(Ei=>{si.push(`@${Ei.triggerName} has failed due to:\n`),Ei.errors.forEach(gi=>si.push(`- ${gi}\n`))}),Ee.forEach(Ei=>Ei.destroy()),this.reportError(si)}const Zt=new Map,hi=new Map;$.forEach(si=>{const Ei=si.element;De.has(Ei)&&(hi.set(Ei,Ei),this._beforeAnimationBuild(si.player.namespaceId,si.instruction,Zt))}),ht.forEach(si=>{const Ei=si.element;this._getPreviousPlayers(Ei,!1,si.namespaceId,si.triggerName,null).forEach(Vi=>{m(Zt,Ei,[]).push(Vi),Vi.destroy()})});const ji=_i.filter(si=>jt(si,de,tt)),tn=new Map;Mt(tn,this.driver,Hi,tt,_.l3).forEach(si=>{jt(si,de,tt)&&ji.push(si)});const Wn=new Map;ii.forEach((si,Ei)=>{Mt(Wn,this.driver,new Set(si),de,_.k1)}),ji.forEach(si=>{const Ei=tn.get(si),gi=Wn.get(si);tn.set(si,Object.assign(Object.assign({},Ei),gi))});const pr=[],Qr=[],Xt={};$.forEach(si=>{const{element:Ei,player:gi,instruction:Vi}=si;if(De.has(Ei)){if(yt.has(Ei))return gi.onDestroy(()=>nt(Ei,Vi.toStyles)),gi.disabled=!0,gi.overrideTotalTime(Vi.totalTime),void ht.push(gi);let pn=Xt;if(hi.size>1){let Pn=Ei;const Yn=[];for(;Pn=Pn.parentNode;){const fn=hi.get(Pn);if(fn){pn=fn;break}Yn.push(Pn)}Yn.forEach(fn=>hi.set(fn,pn))}const vn=this._buildAnimation(gi.namespaceId,Vi,Zt,Ct,Wn,tn);if(gi.setRealPlayer(vn),pn===Xt)pr.push(gi);else{const Pn=this.playersByElement.get(pn);Pn&&Pn.length&&(gi.parentPlayer=A(Pn)),ht.push(gi)}}else ke(Ei,Vi.fromStyles),gi.onDestroy(()=>nt(Ei,Vi.toStyles)),Qr.push(gi),yt.has(Ei)&&ht.push(gi)}),Qr.forEach(si=>{const Ei=Ct.get(si.element);if(Ei&&Ei.length){const gi=A(Ei);si.setRealPlayer(gi)}}),ht.forEach(si=>{si.parentPlayer?si.syncPlayerEvents(si.parentPlayer):si.destroy()});for(let si=0;si<_i.length;si++){const Ei=_i[si],gi=Ei[Ni];if(kt(Ei,ze),gi&&gi.hasAnimation)continue;let Vi=[];if(Re.size){let vn=Re.get(Ei);vn&&vn.length&&Vi.push(...vn);let Pn=this.driver.query(Ei,He,!0);for(let Yn=0;Yn!vn.destroyed);pn.length?Ze(this,Ei,pn):this.processLeaveNode(Ei)}return _i.length=0,pr.forEach(si=>{this.players.push(si),si.onDone(()=>{si.destroy();const Ei=this.players.indexOf(si);this.players.splice(Ei,1)}),si.play()}),pr}elementContainsData(F,G){let De=!1;const ht=G[Ni];return ht&&ht.setForRemoval&&(De=!0),this.playersByElement.has(G)&&(De=!0),this.playersByQueriedElement.has(G)&&(De=!0),this.statesByElement.has(G)&&(De=!0),this._fetchNamespace(F).elementContainsData(G)||De}afterFlush(F){this._flushFns.push(F)}afterFlushAnimationsDone(F){this._whenQuietFns.push(F)}_getPreviousPlayers(F,G,De,ht,Ct){let $=[];if(G){const Re=this.playersByQueriedElement.get(F);Re&&($=Re)}else{const Re=this.playersByElement.get(F);if(Re){const de=!Ct||Ct==sn;Re.forEach(tt=>{tt.queued||!de&&tt.triggerName!=ht||$.push(tt)})}}return(De||ht)&&($=$.filter(Re=>!(De&&De!=Re.namespaceId||ht&&ht!=Re.triggerName))),$}_beforeAnimationBuild(F,G,De){const Ct=G.element,$=G.isRemovalTransition?void 0:F,Re=G.isRemovalTransition?void 0:G.triggerName;for(const de of G.timelines){const tt=de.element,yt=tt!==Ct,Gt=m(De,tt,[]);this._getPreviousPlayers(tt,yt,$,Re,G.toState).forEach(ii=>{const di=ii.getRealPlayer();di.beforeDestroy&&di.beforeDestroy(),ii.destroy(),Gt.push(ii)})}ke(Ct,G.fromStyles)}_buildAnimation(F,G,De,ht,Ct,$){const Re=G.triggerName,de=G.element,tt=[],yt=new Set,Gt=new Set,Wt=G.timelines.map(di=>{const ui=di.element;yt.add(ui);const _i=ui[Ni];if(_i&&_i.removedBeforeQueried)return new _.ZN(di.duration,di.delay);const Ti=ui!==de,Hi=function Ot(ft){const F=[];return Qe(ft,F),F}((De.get(ui)||Fi).map(Zt=>Zt.getRealPlayer())).filter(Zt=>!!Zt.element&&Zt.element===ui),Be=Ct.get(ui),xe=$.get(ui),Ee=E(0,this._normalizer,0,di.keyframes,Be,xe),ut=this._buildPlayer(di,Ee,Hi);if(di.subTimeline&&ht&&Gt.add(ui),Ti){const Zt=new dn(F,Re,ui);Zt.setRealPlayer(ut),tt.push(Zt)}return ut});tt.forEach(di=>{m(this.playersByQueriedElement,di.element,[]).push(di),di.onDone(()=>function wn(ft,F,G){let De;if(ft instanceof Map){if(De=ft.get(F),De){if(De.length){const ht=De.indexOf(G);De.splice(ht,1)}0==De.length&&ft.delete(F)}}else if(De=ft[F],De){if(De.length){const ht=De.indexOf(G);De.splice(ht,1)}0==De.length&&delete ft[F]}return De}(this.playersByQueriedElement,di.element,di))}),yt.forEach(di=>rt(di,ve));const ii=A(Wt);return ii.onDestroy(()=>{yt.forEach(di=>kt(di,ve)),nt(de,G.toStyles)}),Gt.forEach(di=>{m(ht,di,[]).push(ii)}),ii}_buildPlayer(F,G,De){return G.length>0?this.driver.animate(F.element,G,F.duration,F.delay,F.easing,De):new _.ZN(F.duration,F.delay)}}class dn{constructor(F,G,De){this.namespaceId=F,this.triggerName=G,this.element=De,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(F){this._containsRealPlayer||(this._player=F,Object.keys(this._queuedCallbacks).forEach(G=>{this._queuedCallbacks[G].forEach(De=>C(F,G,void 0,De))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(F.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(F){this.totalTime=F}syncPlayerEvents(F){const G=this._player;G.triggerCallback&&F.onStart(()=>G.triggerCallback("start")),F.onDone(()=>this.finish()),F.onDestroy(()=>this.destroy())}_queueEvent(F,G){m(this._queuedCallbacks,F,[]).push(G)}onDone(F){this.queued&&this._queueEvent("done",F),this._player.onDone(F)}onStart(F){this.queued&&this._queueEvent("start",F),this._player.onStart(F)}onDestroy(F){this.queued&&this._queueEvent("destroy",F),this._player.onDestroy(F)}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(F){this.queued||this._player.setPosition(F)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(F){const G=this._player;G.triggerCallback&&G.triggerCallback(F)}}function Oi(ft){return ft&&1===ft.nodeType}function Nn(ft,F){const G=ft.style.display;return ft.style.display=null!=F?F:"none",G}function Mt(ft,F,G,De,ht){const Ct=[];G.forEach(de=>Ct.push(Nn(de)));const $=[];De.forEach((de,tt)=>{const yt={};de.forEach(Gt=>{const Wt=yt[Gt]=F.computeStyle(tt,Gt,ht);(!Wt||0==Wt.length)&&(tt[Ni]=_n,$.push(tt))}),ft.set(tt,yt)});let Re=0;return G.forEach(de=>Nn(de,Ct[Re++])),$}function Qt(ft,F){const G=new Map;if(ft.forEach(Re=>G.set(Re,[])),0==F.length)return G;const ht=new Set(F),Ct=new Map;function $(Re){if(!Re)return 1;let de=Ct.get(Re);if(de)return de;const tt=Re.parentNode;return de=G.has(tt)?tt:ht.has(tt)?1:$(tt),Ct.set(Re,de),de}return F.forEach(Re=>{const de=$(Re);1!==de&&G.get(de).push(Re)}),G}function rt(ft,F){var G;null===(G=ft.classList)||void 0===G||G.add(F)}function kt(ft,F){var G;null===(G=ft.classList)||void 0===G||G.remove(F)}function Ze(ft,F,G){A(G).onDone(()=>ft.processLeaveNode(F))}function Qe(ft,F){for(let G=0;Ght.add(Ct)):F.set(ft,De),G.delete(ft),!0}class ci{constructor(F,G,De){this.bodyNode=F,this._driver=G,this._normalizer=De,this._triggerCache={},this.onRemovalComplete=(ht,Ct)=>{},this._transitionEngine=new an(F,G,De),this._timelineEngine=new Dt(F,G,De),this._transitionEngine.onRemovalComplete=(ht,Ct)=>this.onRemovalComplete(ht,Ct)}registerTrigger(F,G,De,ht,Ct){const $=F+"-"+ht;let Re=this._triggerCache[$];if(!Re){const de=[],tt=x(this._driver,Ct,de);if(de.length)throw new Error(`The animation trigger "${ht}" has failed to build due to the following errors:\n - ${de.join("\n - ")}`);Re=function Ke(ft,F,G){return new vt(ft,F,G)}(ht,tt,this._normalizer),this._triggerCache[$]=Re}this._transitionEngine.registerTrigger(G,ht,Re)}register(F,G){this._transitionEngine.register(F,G)}destroy(F,G){this._transitionEngine.destroy(F,G)}onInsert(F,G,De,ht){this._transitionEngine.insertNode(F,G,De,ht)}onRemove(F,G,De,ht){this._transitionEngine.removeNode(F,G,ht||!1,De)}disableAnimations(F,G){this._transitionEngine.markElementAsDisabled(F,G)}process(F,G,De,ht){if("@"==De.charAt(0)){const[Ct,$]=B(De);this._timelineEngine.command(Ct,G,$,ht)}else this._transitionEngine.trigger(F,G,De,ht)}listen(F,G,De,ht,Ct){if("@"==De.charAt(0)){const[$,Re]=B(De);return this._timelineEngine.listen($,G,Re,Ct)}return this._transitionEngine.listen(F,G,De,ht,Ct)}flush(F=-1){this._transitionEngine.flush(F)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ui=(()=>{class ft{constructor(G,De,ht){this._element=G,this._startStyles=De,this._endStyles=ht,this._state=0;let Ct=ft.initialStylesByElement.get(G);Ct||ft.initialStylesByElement.set(G,Ct={}),this._initialStyles=Ct}start(){this._state<1&&(this._startStyles&&nt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(nt(this._element,this._initialStyles),this._endStyles&&(nt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ft.initialStylesByElement.delete(this._element),this._startStyles&&(ke(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ke(this._element,this._endStyles),this._endStyles=null),nt(this._element,this._initialStyles),this._state=3)}}return ft.initialStylesByElement=new WeakMap,ft})();function Li(ft){let F=null;const G=Object.keys(ft);for(let De=0;DeF()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const F=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,F,this.options),this._finalKeyframe=F.length?F[F.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(F,G,De){return F.animate(G,De)}onStart(F){this._onStartFns.push(F)}onDone(F){this._onDoneFns.push(F)}onDestroy(F){this._onDestroyFns.push(F)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(F=>F()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(F=>F()),this._onDestroyFns=[])}setPosition(F){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=F*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const F={};if(this.hasStarted()){const G=this._finalKeyframe;Object.keys(G).forEach(De=>{"offset"!=De&&(F[De]=this._finished?G[De]:o(this.element,De))})}this.currentSnapshot=F}triggerCallback(F){const G="start"==F?this._onStartFns:this._onDoneFns;G.forEach(De=>De()),G.length=0}}class Vn{validateStyleProperty(F){return ue(F)}matchesElement(F,G){return!1}containsElement(F,G){return T(F,G)}query(F,G,De){return Z(F,G,De)}computeStyle(F,G,De){return window.getComputedStyle(F)[G]}animate(F,G,De,ht,Ct,$=[]){const de={duration:De,delay:ht,fill:0==ht?"both":"forwards"};Ct&&(de.easing=Ct);const tt={},yt=$.filter(Wt=>Wt instanceof cr);(function ye(ft,F){return 0===ft||0===F})(De,ht)&&yt.forEach(Wt=>{let ii=Wt.currentSnapshot;Object.keys(ii).forEach(di=>tt[di]=ii[di])}),G=function re(ft,F,G){const De=Object.keys(G);if(De.length&&F.length){let Ct=F[0],$=[];if(De.forEach(Re=>{Ct.hasOwnProperty(Re)||$.push(Re),Ct[Re]=G[Re]}),$.length)for(var ht=1;htwe(Wt,!1)),tt);const Gt=function vi(ft,F){let G=null,De=null;return Array.isArray(F)&&F.length?(G=Li(F[0]),F.length>1&&(De=Li(F[F.length-1]))):F&&(G=Li(F)),G||De?new Ui(ft,G,De):null}(F,G);return new cr(F,G,de,Gt)}}var dr=p(69808);let Qn=(()=>{class ft extends _._j{constructor(G,De){super(),this._nextAnimationId=0,this._renderer=G.createRenderer(De.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(G){const De=this._nextAnimationId.toString();this._nextAnimationId++;const ht=Array.isArray(G)?(0,_.vP)(G):G;return Zn(this._renderer,null,De,"register",[ht]),new Lr(De,this._renderer)}}return ft.\u0275fac=function(G){return new(G||ft)(e.LFG(e.FYo),e.LFG(dr.K0))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Lr extends _.LC{constructor(F,G){super(),this._id=F,this._renderer=G}create(F,G){return new rr(this._id,F,G||{},this._renderer)}}class rr{constructor(F,G,De,ht){this.id=F,this.element=G,this._renderer=ht,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",De)}_listen(F,G){return this._renderer.listen(this.element,`@@${this.id}:${F}`,G)}_command(F,...G){return Zn(this._renderer,this.element,this.id,F,G)}onDone(F){this._listen("done",F)}onStart(F){this._listen("start",F)}onDestroy(F){this._listen("destroy",F)}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(F){this._command("setPosition",F)}getPosition(){var F,G;return null!==(G=null===(F=this._renderer.engine.players[+this.id])||void 0===F?void 0:F.getPosition())&&void 0!==G?G:0}}function Zn(ft,F,G,De,ht){return ft.setProperty(F,`@@${G}:${De}`,ht)}const ur="@.disabled";let Mn=(()=>{class ft{constructor(G,De,ht){this.delegate=G,this.engine=De,this._zone=ht,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),De.onRemovalComplete=(Ct,$)=>{const Re=null==$?void 0:$.parentNode(Ct);Re&&$.removeChild(Re,Ct)}}createRenderer(G,De){const Ct=this.delegate.createRenderer(G,De);if(!(G&&De&&De.data&&De.data.animation)){let yt=this._rendererCache.get(Ct);return yt||(yt=new Gn("",Ct,this.engine),this._rendererCache.set(Ct,yt)),yt}const $=De.id,Re=De.id+"-"+this._currentId;this._currentId++,this.engine.register(Re,G);const de=yt=>{Array.isArray(yt)?yt.forEach(de):this.engine.registerTrigger($,Re,G,yt.name,yt)};return De.data.animation.forEach(de),new sr(this,Re,Ct,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(G,De,ht){G>=0&&GDe(ht)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ct=>{const[$,Re]=Ct;$(Re)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([De,ht]))}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 ft.\u0275fac=function(G){return new(G||ft)(e.LFG(e.FYo),e.LFG(ci),e.LFG(e.R0b))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Gn{constructor(F,G,De){this.namespaceId=F,this.delegate=G,this.engine=De,this.destroyNode=this.delegate.destroyNode?ht=>G.destroyNode(ht):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(F,G){return this.delegate.createElement(F,G)}createComment(F){return this.delegate.createComment(F)}createText(F){return this.delegate.createText(F)}appendChild(F,G){this.delegate.appendChild(F,G),this.engine.onInsert(this.namespaceId,G,F,!1)}insertBefore(F,G,De,ht=!0){this.delegate.insertBefore(F,G,De),this.engine.onInsert(this.namespaceId,G,F,ht)}removeChild(F,G,De){this.engine.onRemove(this.namespaceId,G,this.delegate,De)}selectRootElement(F,G){return this.delegate.selectRootElement(F,G)}parentNode(F){return this.delegate.parentNode(F)}nextSibling(F){return this.delegate.nextSibling(F)}setAttribute(F,G,De,ht){this.delegate.setAttribute(F,G,De,ht)}removeAttribute(F,G,De){this.delegate.removeAttribute(F,G,De)}addClass(F,G){this.delegate.addClass(F,G)}removeClass(F,G){this.delegate.removeClass(F,G)}setStyle(F,G,De,ht){this.delegate.setStyle(F,G,De,ht)}removeStyle(F,G,De){this.delegate.removeStyle(F,G,De)}setProperty(F,G,De){"@"==G.charAt(0)&&G==ur?this.disableAnimations(F,!!De):this.delegate.setProperty(F,G,De)}setValue(F,G){this.delegate.setValue(F,G)}listen(F,G,De){return this.delegate.listen(F,G,De)}disableAnimations(F,G){this.engine.disableAnimations(F,G)}}class sr extends Gn{constructor(F,G,De,ht){super(G,De,ht),this.factory=F,this.namespaceId=G}setProperty(F,G,De){"@"==G.charAt(0)?"."==G.charAt(1)&&G==ur?this.disableAnimations(F,De=void 0===De||!!De):this.engine.process(this.namespaceId,F,G.substr(1),De):this.delegate.setProperty(F,G,De)}listen(F,G,De){if("@"==G.charAt(0)){const ht=function ar(ft){switch(ft){case"body":return document.body;case"document":return document;case"window":return window;default:return ft}}(F);let Ct=G.substr(1),$="";return"@"!=Ct.charAt(0)&&([Ct,$]=function Un(ft){const F=ft.indexOf(".");return[ft.substring(0,F),ft.substr(F+1)]}(Ct)),this.engine.listen(this.namespaceId,ht,Ct,$,Re=>{this.factory.scheduleListenerCallback(Re._data||-1,De,Re)})}return this.delegate.listen(F,G,De)}}let hr=(()=>{class ft extends ci{constructor(G,De,ht){super(G.body,De,ht)}ngOnDestroy(){this.flush()}}return ft.\u0275fac=function(G){return new(G||ft)(e.LFG(dr.K0),e.LFG(ee),e.LFG(yi))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();const yn=new e.OlP("AnimationModuleType"),Cn=[{provide:_._j,useClass:Qn},{provide:yi,useFactory:function br(){return new gn}},{provide:ci,useClass:hr},{provide:e.FYo,useFactory:function In(ft,F,G){return new Mn(ft,F,G)},deps:[b.se,ci,e.R0b]}],$n=[{provide:ee,useFactory:()=>new Vn},{provide:yn,useValue:"BrowserAnimations"},...Cn],or=[{provide:ee,useClass:Y},{provide:yn,useValue:"NoopAnimations"},...Cn];let zn=(()=>{class ft{static withConfig(G){return{ngModule:ft,providers:G.disableAnimations?or:$n}}}return ft.\u0275fac=function(G){return new(G||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({providers:$n,imports:[b.b2]}),ft})()},22313:(Xe,_e,p)=>{"use strict";p.d(_e,{b2:()=>Q,H7:()=>ct,Dx:()=>re,q6:()=>R,se:()=>ae});var e=p(69808),b=p(5e3);class _ extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends _{static makeCurrent(){(0,e.HT)(new w)}onAndCancel(Rt,Et,Bt){return Rt.addEventListener(Et,Bt,!1),()=>{Rt.removeEventListener(Et,Bt,!1)}}dispatchEvent(Rt,Et){Rt.dispatchEvent(Et)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,Et){return(Et=Et||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,Et){return"window"===Et?window:"document"===Et?Rt:"body"===Et?Rt.body:null}getBaseHref(Rt){const Et=function A(){return g=g||document.querySelector("base"),g?g.getAttribute("href"):null}();return null==Et?null:function C(It){E=E||document.createElement("a"),E.setAttribute("href",It);const Rt=E.pathname;return"/"===Rt.charAt(0)?Rt:`/${Rt}`}(Et)}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,e.Mx)(document.cookie,Rt)}}let E,g=null;const O=new b.OlP("TRANSITION_ID"),m=[{provide:b.ip1,useFactory:function S(It,Rt,Et){return()=>{Et.get(b.CZH).donePromise.then(()=>{const Bt=(0,e.q)(),Jt=Rt.querySelectorAll(`style[ng-transition="${It}"]`);for(let ai=0;ai{const ai=Rt.findTestabilityInTree(Bt,Jt);if(null==ai)throw new Error("Could not find testability for element.");return ai},b.dqk.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),b.dqk.getAllAngularRootElements=()=>Rt.getAllRootElements(),b.dqk.frameworkStabilizers||(b.dqk.frameworkStabilizers=[]),b.dqk.frameworkStabilizers.push(Bt=>{const Jt=b.dqk.getAllAngularTestabilities();let ai=Jt.length,mi=!1;const bi=function(yi){mi=mi||yi,ai--,0==ai&&Bt(mi)};Jt.forEach(function(yi){yi.whenStable(bi)})})}findTestabilityInTree(Rt,Et,Bt){if(null==Et)return null;const Jt=Rt.getTestability(Et);return null!=Jt?Jt:Bt?(0,e.q)().isShadowRoot(Et)?this.findTestabilityInTree(Rt,Et.host,!0):this.findTestabilityInTree(Rt,Et.parentElement,!0):null}}let L=(()=>{class It{build(){return new XMLHttpRequest}}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const J=new b.OlP("EventManagerPlugins");let ie=(()=>{class It{constructor(Et,Bt){this._zone=Bt,this._eventNameToPlugin=new Map,Et.forEach(Jt=>Jt.manager=this),this._plugins=Et.slice().reverse()}addEventListener(Et,Bt,Jt){return this._findPluginFor(Bt).addEventListener(Et,Bt,Jt)}addGlobalEventListener(Et,Bt,Jt){return this._findPluginFor(Bt).addGlobalEventListener(Et,Bt,Jt)}getZone(){return this._zone}_findPluginFor(Et){const Bt=this._eventNameToPlugin.get(Et);if(Bt)return Bt;const Jt=this._plugins;for(let ai=0;ai{class It{constructor(){this._stylesSet=new Set}addStyles(Et){const Bt=new Set;Et.forEach(Jt=>{this._stylesSet.has(Jt)||(this._stylesSet.add(Jt),Bt.add(Jt))}),this.onStylesAdded(Bt)}onStylesAdded(Et){}getAllStyles(){return Array.from(this._stylesSet)}}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})(),Ne=(()=>{class It extends X{constructor(Et){super(),this._doc=Et,this._hostNodes=new Map,this._hostNodes.set(Et.head,[])}_addStylesToHost(Et,Bt,Jt){Et.forEach(ai=>{const mi=this._doc.createElement("style");mi.textContent=ai,Jt.push(Bt.appendChild(mi))})}addHost(Et){const Bt=[];this._addStylesToHost(this._stylesSet,Et,Bt),this._hostNodes.set(Et,Bt)}removeHost(Et){const Bt=this._hostNodes.get(Et);Bt&&Bt.forEach(ue),this._hostNodes.delete(Et)}onStylesAdded(Et){this._hostNodes.forEach((Bt,Jt)=>{this._addStylesToHost(Et,Jt,Bt)})}ngOnDestroy(){this._hostNodes.forEach(Et=>Et.forEach(ue))}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();function ue(It){(0,e.q)().remove(It)}const Oe={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,W="%COMP%",Y=`_nghost-${W}`,ee=`_ngcontent-${W}`;function Pe(It,Rt,Et){for(let Bt=0;Bt{if("__ngUnwrap__"===Rt)return It;!1===It(Rt)&&(Rt.preventDefault(),Rt.returnValue=!1)}}let ae=(()=>{class It{constructor(Et,Bt,Jt){this.eventManager=Et,this.sharedStylesHost=Bt,this.appId=Jt,this.rendererByCompId=new Map,this.defaultRenderer=new Ue(Et)}createRenderer(Et,Bt){if(!Et||!Bt)return this.defaultRenderer;switch(Bt.encapsulation){case b.ifc.Emulated:{let Jt=this.rendererByCompId.get(Bt.id);return Jt||(Jt=new z(this.eventManager,this.sharedStylesHost,Bt,this.appId),this.rendererByCompId.set(Bt.id,Jt)),Jt.applyToHost(Et),Jt}case 1:case b.ifc.ShadowDom:return new I(this.eventManager,this.sharedStylesHost,Et,Bt);default:if(!this.rendererByCompId.has(Bt.id)){const Jt=Pe(Bt.id,Bt.styles,[]);this.sharedStylesHost.addStyles(Jt),this.rendererByCompId.set(Bt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(ie),b.LFG(Ne),b.LFG(b.AFp))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();class Ue{constructor(Rt){this.eventManager=Rt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Rt,Et){return Et?document.createElementNS(Oe[Et]||Et,Rt):document.createElement(Rt)}createComment(Rt){return document.createComment(Rt)}createText(Rt){return document.createTextNode(Rt)}appendChild(Rt,Et){Rt.appendChild(Et)}insertBefore(Rt,Et,Bt){Rt&&Rt.insertBefore(Et,Bt)}removeChild(Rt,Et){Rt&&Rt.removeChild(Et)}selectRootElement(Rt,Et){let Bt="string"==typeof Rt?document.querySelector(Rt):Rt;if(!Bt)throw new Error(`The selector "${Rt}" did not match any elements`);return Et||(Bt.textContent=""),Bt}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,Et,Bt,Jt){if(Jt){Et=Jt+":"+Et;const ai=Oe[Jt];ai?Rt.setAttributeNS(ai,Et,Bt):Rt.setAttribute(Et,Bt)}else Rt.setAttribute(Et,Bt)}removeAttribute(Rt,Et,Bt){if(Bt){const Jt=Oe[Bt];Jt?Rt.removeAttributeNS(Jt,Et):Rt.removeAttribute(`${Bt}:${Et}`)}else Rt.removeAttribute(Et)}addClass(Rt,Et){Rt.classList.add(Et)}removeClass(Rt,Et){Rt.classList.remove(Et)}setStyle(Rt,Et,Bt,Jt){Jt&(b.JOm.DashCase|b.JOm.Important)?Rt.style.setProperty(Et,Bt,Jt&b.JOm.Important?"important":""):Rt.style[Et]=Bt}removeStyle(Rt,Et,Bt){Bt&b.JOm.DashCase?Rt.style.removeProperty(Et):Rt.style[Et]=""}setProperty(Rt,Et,Bt){Rt[Et]=Bt}setValue(Rt,Et){Rt.nodeValue=Et}listen(Rt,Et,Bt){return"string"==typeof Rt?this.eventManager.addGlobalEventListener(Rt,Et,Fe(Bt)):this.eventManager.addEventListener(Rt,Et,Fe(Bt))}}class z extends Ue{constructor(Rt,Et,Bt,Jt){super(Rt),this.component=Bt;const ai=Pe(Jt+"-"+Bt.id,Bt.styles,[]);Et.addStyles(ai),this.contentAttr=function ce(It){return ee.replace(T,It)}(Jt+"-"+Bt.id),this.hostAttr=function le(It){return Y.replace(T,It)}(Jt+"-"+Bt.id)}applyToHost(Rt){super.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,Et){const Bt=super.createElement(Rt,Et);return super.setAttribute(Bt,this.contentAttr,""),Bt}}class I extends Ue{constructor(Rt,Et,Bt,Jt){super(Rt),this.sharedStylesHost=Et,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ai=Pe(Jt.id,Jt.styles,[]);for(let mi=0;mi{class It extends ge{constructor(Et){super(Et)}supports(Et){return!0}addEventListener(Et,Bt,Jt){return Et.addEventListener(Bt,Jt,!1),()=>this.removeEventListener(Et,Bt,Jt)}removeEventListener(Et,Bt,Jt){return Et.removeEventListener(Bt,Jt)}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const Ae=["alt","control","meta","shift"],pe={"\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"},we={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"},$e={alt:It=>It.altKey,control:It=>It.ctrlKey,meta:It=>It.metaKey,shift:It=>It.shiftKey};let Je=(()=>{class It extends ge{constructor(Et){super(Et)}supports(Et){return null!=It.parseEventName(Et)}addEventListener(Et,Bt,Jt){const ai=It.parseEventName(Bt),mi=It.eventCallback(ai.fullKey,Jt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Et,ai.domEventName,mi))}static parseEventName(Et){const Bt=Et.toLowerCase().split("."),Jt=Bt.shift();if(0===Bt.length||"keydown"!==Jt&&"keyup"!==Jt)return null;const ai=It._normalizeKey(Bt.pop());let mi="";if(Ae.forEach(yi=>{const Wi=Bt.indexOf(yi);Wi>-1&&(Bt.splice(Wi,1),mi+=yi+".")}),mi+=ai,0!=Bt.length||0===ai.length)return null;const bi={};return bi.domEventName=Jt,bi.fullKey=mi,bi}static getEventFullKey(Et){let Bt="",Jt=function nt(It){let Rt=It.key;if(null==Rt){if(Rt=It.keyIdentifier,null==Rt)return"Unidentified";Rt.startsWith("U+")&&(Rt=String.fromCharCode(parseInt(Rt.substring(2),16)),3===It.location&&we.hasOwnProperty(Rt)&&(Rt=we[Rt]))}return pe[Rt]||Rt}(Et);return Jt=Jt.toLowerCase()," "===Jt?Jt="space":"."===Jt&&(Jt="dot"),Ae.forEach(ai=>{ai!=Jt&&$e[ai](Et)&&(Bt+=ai+".")}),Bt+=Jt,Bt}static eventCallback(Et,Bt,Jt){return ai=>{It.getEventFullKey(ai)===Et&&Jt.runGuarded(()=>Bt(ai))}}static _normalizeKey(Et){return"esc"===Et?"escape":Et}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const R=(0,b.eFA)(b._c5,"browser",[{provide:b.Lbi,useValue:e.bD},{provide:b.g9A,useValue:function ke(){w.makeCurrent(),B.init()},multi:!0},{provide:e.K0,useFactory:function he(){return(0,b.RDi)(document),document},deps:[]}]),V=[{provide:b.zSh,useValue:"root"},{provide:b.qLn,useFactory:function H(){return new b.qLn},deps:[]},{provide:J,useClass:me,multi:!0,deps:[e.K0,b.R0b,b.Lbi]},{provide:J,useClass:Je,multi:!0,deps:[e.K0]},{provide:ae,useClass:ae,deps:[ie,Ne,b.AFp]},{provide:b.FYo,useExisting:ae},{provide:X,useExisting:Ne},{provide:Ne,useClass:Ne,deps:[e.K0]},{provide:b.dDg,useClass:b.dDg,deps:[b.R0b]},{provide:ie,useClass:ie,deps:[J,b.R0b]},{provide:e.JF,useClass:L,deps:[]}];let Q=(()=>{class It{constructor(Et){if(Et)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(Et){return{ngModule:It,providers:[{provide:b.AFp,useValue:Et.appId},{provide:O,useExisting:b.AFp},m]}}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(It,12))},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({providers:V,imports:[e.ez,b.hGG]}),It})(),re=(()=>{class It{constructor(Et){this._doc=Et}getTitle(){return this._doc.title}setTitle(Et){this._doc.title=Et||""}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new Et:function ye(){return new re((0,b.LFG)(e.K0))}(),Bt},providedIn:"root"}),It})();"undefined"!=typeof window&&window;let ct=(()=>{class It{}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new(Et||It):b.LFG(xt),Bt},providedIn:"root"}),It})(),xt=(()=>{class It extends ct{constructor(Et){super(),this._doc=Et}sanitize(Et,Bt){if(null==Bt)return null;switch(Et){case b.q3G.NONE:return Bt;case b.q3G.HTML:return(0,b.qzn)(Bt,"HTML")?(0,b.z3N)(Bt):(0,b.EiD)(this._doc,String(Bt)).toString();case b.q3G.STYLE:return(0,b.qzn)(Bt,"Style")?(0,b.z3N)(Bt):Bt;case b.q3G.SCRIPT:if((0,b.qzn)(Bt,"Script"))return(0,b.z3N)(Bt);throw new Error("unsafe value used in a script context");case b.q3G.URL:return(0,b.yhl)(Bt),(0,b.qzn)(Bt,"URL")?(0,b.z3N)(Bt):(0,b.mCW)(String(Bt));case b.q3G.RESOURCE_URL:if((0,b.qzn)(Bt,"ResourceURL"))return(0,b.z3N)(Bt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Et} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Et){return(0,b.JVY)(Et)}bypassSecurityTrustStyle(Et){return(0,b.L6k)(Et)}bypassSecurityTrustScript(Et){return(0,b.eBb)(Et)}bypassSecurityTrustUrl(Et){return(0,b.LAX)(Et)}bypassSecurityTrustResourceUrl(Et){return(0,b.pB0)(Et)}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new Et:function bt(It){return new xt(It.get(e.K0))}(b.LFG(b.zs3)),Bt},providedIn:"root"}),It})()},11735:(Xe,_e,p)=>{"use strict";p.d(_e,{gz:()=>Dt,m2:()=>z,OD:()=>He,GZ:()=>Kr,wN:()=>at,F0:()=>Zi,rH:()=>Hn,yS:()=>ln,Bz:()=>ko,lC:()=>Gn});var e=p(5e3),b=p(5254),_=p(21086),w=p(591),g=p(36053),A=p(56498),E=p(84450),C=p(61221),O=p(88514),S=p(68896),m=p(71762),B=p(8929),L=p(92198),J=p(92821),ie=p(34907),ge=p(47314),X=p(35379),ue=p(24850),Oe=p(87545),T=p(72986),Z=p(1059),W=p(92014),Y=p(27221),ee=p(21406),ce=p(87224),le=p(61709),Pe=p(22868),Fe=p(74327),ze=p(40537),ae=p(89146),Ue=p(69808);class ve{constructor(se,q){this.id=se,this.url=q}}class He extends ve{constructor(se,q,Ve="imperative",it=null){super(se,q),this.navigationTrigger=Ve,this.restoredState=it}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class z extends ve{constructor(se,q,Ve){super(se,q),this.urlAfterRedirects=Ve}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class I extends ve{constructor(se,q,Ve){super(se,q),this.reason=Ve}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class me extends ve{constructor(se,q,Ve){super(se,q),this.error=Ve}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ae extends ve{constructor(se,q,Ve,it){super(se,q),this.urlAfterRedirects=Ve,this.state=it}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Me extends ve{constructor(se,q,Ve,it){super(se,q),this.urlAfterRedirects=Ve,this.state=it}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pe extends ve{constructor(se,q,Ve,it,_t){super(se,q),this.urlAfterRedirects=Ve,this.state=it,this.shouldActivate=_t}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class we extends ve{constructor(se,q,Ve,it){super(se,q),this.urlAfterRedirects=Ve,this.state=it}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $e extends ve{constructor(se,q,Ve,it){super(se,q),this.urlAfterRedirects=Ve,this.state=it}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Je{constructor(se){this.route=se}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(se){this.route=se}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ke{constructor(se){this.snapshot=se}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class H{constructor(se){this.snapshot=se}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class he{constructor(se){this.snapshot=se}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class P{constructor(se){this.snapshot=se}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class R{constructor(se,q,Ve){this.routerEvent=se,this.position=q,this.anchor=Ve}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const V="primary";class Q{constructor(se){this.params=se||{}}has(se){return Object.prototype.hasOwnProperty.call(this.params,se)}get(se){if(this.has(se)){const q=this.params[se];return Array.isArray(q)?q[0]:q}return null}getAll(se){if(this.has(se)){const q=this.params[se];return Array.isArray(q)?q:[q]}return[]}get keys(){return Object.keys(this.params)}}function Se(be){return new Q(be)}const je="ngNavigationCancelingError";function Ye(be){const se=Error("NavigationCancelingError: "+be);return se[je]=!0,se}function re(be,se,q){const Ve=q.path.split("/");if(Ve.length>be.length||"full"===q.pathMatch&&(se.hasChildren()||Ve.lengthVe[_t]===it)}return be===se}function l(be){return Array.prototype.concat.apply([],be)}function s(be){return be.length>0?be[be.length-1]:null}function t(be,se){for(const q in be)be.hasOwnProperty(q)&&se(be[q],q)}function n(be){return(0,e.CqO)(be)?be:(0,e.QGY)(be)?(0,b.D)(Promise.resolve(be)):(0,_.of)(be)}const c={exact:function At(be,se,q){if(!N(be.segments,se.segments)||!mt(be.segments,se.segments,q)||be.numberOfChildren!==se.numberOfChildren)return!1;for(const Ve in se.children)if(!be.children[Ve]||!At(be.children[Ve],se.children[Ve],q))return!1;return!0},subset:lt},h={exact:function We(be,se){return o(be,se)},subset:function Ht(be,se){return Object.keys(se).length<=Object.keys(be).length&&Object.keys(se).every(q=>d(be[q],se[q]))},ignored:()=>!0};function x(be,se,q){return c[q.paths](be.root,se.root,q.matrixParams)&&h[q.queryParams](be.queryParams,se.queryParams)&&!("exact"===q.fragment&&be.fragment!==se.fragment)}function lt(be,se,q){return Ut(be,se,se.segments,q)}function Ut(be,se,q,Ve){if(be.segments.length>q.length){const it=be.segments.slice(0,q.length);return!(!N(it,q)||se.hasChildren()||!mt(it,q,Ve))}if(be.segments.length===q.length){if(!N(be.segments,q)||!mt(be.segments,q,Ve))return!1;for(const it in se.children)if(!be.children[it]||!lt(be.children[it],se.children[it],Ve))return!1;return!0}{const it=q.slice(0,be.segments.length),_t=q.slice(be.segments.length);return!!(N(be.segments,it)&&mt(be.segments,it,Ve)&&be.children[V])&&Ut(be.children[V],se,_t,Ve)}}function mt(be,se,q){return se.every((Ve,it)=>h[q](be[it].parameters,Ve.parameters))}class Lt{constructor(se,q,Ve){this.root=se,this.queryParams=q,this.fragment=Ve}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Se(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class Te{constructor(se,q){this.segments=se,this.children=q,this.parent=null,t(q,(Ve,it)=>Ve.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bt(this)}}class Ge{constructor(se,q){this.path=se,this.parameters=q}get parameterMap(){return this._parameterMap||(this._parameterMap=Se(this.parameters)),this._parameterMap}toString(){return ai(this)}}function N(be,se){return be.length===se.length&&be.every((q,Ve)=>q.path===se[Ve].path)}class oe{}class Ie{parse(se){const q=new rn(se);return new Lt(q.parseRootSegment(),q.parseQueryParams(),q.parseFragment())}serialize(se){const q=`/${xt(se.root,!0)}`,Ve=function bi(be){const se=Object.keys(be).map(q=>{const Ve=be[q];return Array.isArray(Ve)?Ve.map(it=>`${It(q)}=${It(it)}`).join("&"):`${It(q)}=${It(Ve)}`}).filter(q=>!!q);return se.length?`?${se.join("&")}`:""}(se.queryParams);return`${q}${Ve}${"string"==typeof se.fragment?`#${function Rt(be){return encodeURI(be)}(se.fragment)}`:""}`}}const ct=new Ie;function bt(be){return be.segments.map(se=>ai(se)).join("/")}function xt(be,se){if(!be.hasChildren())return bt(be);if(se){const q=be.children[V]?xt(be.children[V],!1):"",Ve=[];return t(be.children,(it,_t)=>{_t!==V&&Ve.push(`${_t}:${xt(it,!1)}`)}),Ve.length>0?`${q}(${Ve.join("//")})`:q}{const q=function te(be,se){let q=[];return t(be.children,(Ve,it)=>{it===V&&(q=q.concat(se(Ve,it)))}),t(be.children,(Ve,it)=>{it!==V&&(q=q.concat(se(Ve,it)))}),q}(be,(Ve,it)=>it===V?[xt(be.children[V],!1)]:[`${it}:${xt(Ve,!1)}`]);return 1===Object.keys(be.children).length&&null!=be.children[V]?`${bt(be)}/${q[0]}`:`${bt(be)}/(${q.join("//")})`}}function Yt(be){return encodeURIComponent(be).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(be){return Yt(be).replace(/%3B/gi,";")}function Et(be){return Yt(be).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(be){return decodeURIComponent(be)}function Jt(be){return Bt(be.replace(/\+/g,"%20"))}function ai(be){return`${Et(be.path)}${function mi(be){return Object.keys(be).map(se=>`;${Et(se)}=${Et(be[se])}`).join("")}(be.parameters)}`}const yi=/^[^\/()?;=#]+/;function Wi(be){const se=be.match(yi);return se?se[0]:""}const gn=/^[^=?&#]+/,Ki=/^[^&#]+/;class rn{constructor(se){this.url=se,this.remaining=se}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Te([],{}):new Te([],this.parseChildren())}parseQueryParams(){const se={};if(this.consumeOptional("?"))do{this.parseQueryParam(se)}while(this.consumeOptional("&"));return se}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const se=[];for(this.peekStartsWith("(")||se.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),se.push(this.parseSegment());let q={};this.peekStartsWith("/(")&&(this.capture("/"),q=this.parseParens(!0));let Ve={};return this.peekStartsWith("(")&&(Ve=this.parseParens(!1)),(se.length>0||Object.keys(q).length>0)&&(Ve[V]=new Te(se,q)),Ve}parseSegment(){const se=Wi(this.remaining);if(""===se&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(se),new Ge(Bt(se),this.parseMatrixParams())}parseMatrixParams(){const se={};for(;this.consumeOptional(";");)this.parseParam(se);return se}parseParam(se){const q=Wi(this.remaining);if(!q)return;this.capture(q);let Ve="";if(this.consumeOptional("=")){const it=Wi(this.remaining);it&&(Ve=it,this.capture(Ve))}se[Bt(q)]=Bt(Ve)}parseQueryParam(se){const q=function cn(be){const se=be.match(gn);return se?se[0]:""}(this.remaining);if(!q)return;this.capture(q);let Ve="";if(this.consumeOptional("=")){const Pt=function Tn(be){const se=be.match(Ki);return se?se[0]:""}(this.remaining);Pt&&(Ve=Pt,this.capture(Ve))}const it=Jt(q),_t=Jt(Ve);if(se.hasOwnProperty(it)){let Pt=se[it];Array.isArray(Pt)||(Pt=[Pt],se[it]=Pt),Pt.push(_t)}else se[it]=_t}parseParens(se){const q={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ve=Wi(this.remaining),it=this.remaining[Ve.length];if("/"!==it&&")"!==it&&";"!==it)throw new Error(`Cannot parse url '${this.url}'`);let _t;Ve.indexOf(":")>-1?(_t=Ve.substr(0,Ve.indexOf(":")),this.capture(_t),this.capture(":")):se&&(_t=V);const Pt=this.parseChildren();q[_t]=1===Object.keys(Pt).length?Pt[V]:new Te([],Pt),this.consumeOptional("//")}return q}peekStartsWith(se){return this.remaining.startsWith(se)}consumeOptional(se){return!!this.peekStartsWith(se)&&(this.remaining=this.remaining.substring(se.length),!0)}capture(se){if(!this.consumeOptional(se))throw new Error(`Expected "${se}".`)}}class st{constructor(se){this._root=se}get root(){return this._root.value}parent(se){const q=this.pathFromRoot(se);return q.length>1?q[q.length-2]:null}children(se){const q=St(se,this._root);return q?q.children.map(Ve=>Ve.value):[]}firstChild(se){const q=St(se,this._root);return q&&q.children.length>0?q.children[0].value:null}siblings(se){const q=ot(se,this._root);return q.length<2?[]:q[q.length-2].children.map(it=>it.value).filter(it=>it!==se)}pathFromRoot(se){return ot(se,this._root).map(q=>q.value)}}function St(be,se){if(be===se.value)return se;for(const q of se.children){const Ve=St(be,q);if(Ve)return Ve}return null}function ot(be,se){if(be===se.value)return[se];for(const q of se.children){const Ve=ot(be,q);if(Ve.length)return Ve.unshift(se),Ve}return[]}class Ke{constructor(se,q){this.value=se,this.children=q}toString(){return`TreeNode(${this.value})`}}function vt(be){const se={};return be&&be.children.forEach(q=>se[q.value.outlet]=q),se}class U extends st{constructor(se,q){super(se),this.snapshot=q,$i(this,se)}toString(){return this.snapshot.toString()}}function qe(be,se){const q=function gt(be,se){const Pt=new Di([],{},{},"",{},V,se,null,be.root,-1,{});return new wi("",new Ke(Pt,[]))}(be,se),Ve=new w.X([new Ge("",{})]),it=new w.X({}),_t=new w.X({}),Pt=new w.X({}),Ft=new w.X(""),$t=new Dt(Ve,it,Pt,Ft,_t,V,se,q.root);return $t.snapshot=q.root,new U(new Ke($t,[]),q)}class Dt{constructor(se,q,Ve,it,_t,Pt,Ft,$t){this.url=se,this.params=q,this.queryParams=Ve,this.fragment=it,this.data=_t,this.outlet=Pt,this.component=Ft,this._futureSnapshot=$t}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,ue.U)(se=>Se(se)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ue.U)(se=>Se(se)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ri(be,se="emptyOnly"){const q=be.pathFromRoot;let Ve=0;if("always"!==se)for(Ve=q.length-1;Ve>=1;){const it=q[Ve],_t=q[Ve-1];if(it.routeConfig&&""===it.routeConfig.path)Ve--;else{if(_t.component)break;Ve--}}return function ti(be){return be.reduce((se,q)=>({params:Object.assign(Object.assign({},se.params),q.params),data:Object.assign(Object.assign({},se.data),q.data),resolve:Object.assign(Object.assign({},se.resolve),q._resolvedData)}),{params:{},data:{},resolve:{}})}(q.slice(Ve))}class Di{constructor(se,q,Ve,it,_t,Pt,Ft,$t,Ai,Yi,xi){this.url=se,this.params=q,this.queryParams=Ve,this.fragment=it,this.data=_t,this.outlet=Pt,this.component=Ft,this.routeConfig=$t,this._urlSegment=Ai,this._lastPathIndex=Yi,this._resolve=xi}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=Se(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Se(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ve=>Ve.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class wi extends st{constructor(se,q){super(q),this.url=se,$i(this,q)}toString(){return qi(this._root)}}function $i(be,se){se.value._routerState=be,se.children.forEach(q=>$i(be,q))}function qi(be){const se=be.children.length>0?` { ${be.children.map(qi).join(", ")} } `:"";return`${be.value}${se}`}function Fi(be){if(be.snapshot){const se=be.snapshot,q=be._futureSnapshot;be.snapshot=q,o(se.queryParams,q.queryParams)||be.queryParams.next(q.queryParams),se.fragment!==q.fragment&&be.fragment.next(q.fragment),o(se.params,q.params)||be.params.next(q.params),function r(be,se){if(be.length!==se.length)return!1;for(let q=0;qo(q.parameters,se[Ve].parameters))}(be.url,se.url);return q&&!(!be.parent!=!se.parent)&&(!be.parent||Ji(be.parent,se.parent))}function Ni(be,se,q){if(q&&be.shouldReuseRoute(se.value,q.value.snapshot)){const Ve=q.value;Ve._futureSnapshot=se.value;const it=function Ri(be,se,q){return se.children.map(Ve=>{for(const it of q.children)if(be.shouldReuseRoute(Ve.value,it.value.snapshot))return Ni(be,Ve,it);return Ni(be,Ve)})}(be,se,q);return new Ke(Ve,it)}{if(be.shouldAttach(se.value)){const _t=be.retrieve(se.value);if(null!==_t){const Pt=_t.route;return Pt.value._futureSnapshot=se.value,Pt.children=se.children.map(Ft=>Ni(be,Ft)),Pt}}const Ve=function sn(be){return new Dt(new w.X(be.url),new w.X(be.params),new w.X(be.queryParams),new w.X(be.fragment),new w.X(be.data),be.outlet,be.component,be)}(se.value),it=se.children.map(_t=>Ni(be,_t));return new Ke(Ve,it)}}function en(be){return"object"==typeof be&&null!=be&&!be.outlets&&!be.segmentPath}function an(be){return"object"==typeof be&&null!=be&&be.outlets}function dn(be,se,q,Ve,it){let _t={};return Ve&&t(Ve,(Pt,Ft)=>{_t[Ft]=Array.isArray(Pt)?Pt.map($t=>`${$t}`):`${Pt}`}),new Lt(q.root===be?se:wn(q.root,be,se),_t,it)}function wn(be,se,q){const Ve={};return t(be.children,(it,_t)=>{Ve[_t]=it===se?q:wn(it,se,q)}),new Te(be.segments,Ve)}class xn{constructor(se,q,Ve){if(this.isAbsolute=se,this.numberOfDoubleDots=q,this.commands=Ve,se&&Ve.length>0&&en(Ve[0]))throw new Error("Root segment cannot have matrix parameters");const it=Ve.find(an);if(it&&it!==s(Ve))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kn{constructor(se,q,Ve){this.segmentGroup=se,this.processChildren=q,this.index=Ve}}function rt(be,se,q){if(be||(be=new Te([],{})),0===be.segments.length&&be.hasChildren())return kt(be,se,q);const Ve=function Ze(be,se,q){let Ve=0,it=se;const _t={match:!1,pathIndex:0,commandIndex:0};for(;it=q.length)return _t;const Pt=be.segments[it],Ft=q[Ve];if(an(Ft))break;const $t=`${Ft}`,Ai=Ve0&&void 0===$t)break;if($t&&Ai&&"object"==typeof Ai&&void 0===Ai.outlets){if(!jt($t,Ai,Pt))return _t;Ve+=2}else{if(!jt($t,{},Pt))return _t;Ve++}it++}return{match:!0,pathIndex:it,commandIndex:Ve}}(be,se,q),it=q.slice(Ve.commandIndex);if(Ve.match&&Ve.pathIndex{"string"==typeof _t&&(_t=[_t]),null!==_t&&(it[Pt]=rt(be.children[Pt],se,_t))}),t(be.children,(_t,Pt)=>{void 0===Ve[Pt]&&(it[Pt]=_t)}),new Te(be.segments,it)}}function Ot(be,se,q){const Ve=be.segments.slice(0,se);let it=0;for(;it{"string"==typeof q&&(q=[q]),null!==q&&(se[Ve]=Ot(new Te([],{}),0,q))}),se}function Tt(be){const se={};return t(be,(q,Ve)=>se[Ve]=`${q}`),se}function jt(be,se,q){return be==q.path&&o(se,q.parameters)}class vi{constructor(se,q,Ve,it){this.routeReuseStrategy=se,this.futureState=q,this.currState=Ve,this.forwardEvent=it}activate(se){const q=this.futureState._root,Ve=this.currState?this.currState._root:null;this.deactivateChildRoutes(q,Ve,se),Fi(this.futureState.root),this.activateChildRoutes(q,Ve,se)}deactivateChildRoutes(se,q,Ve){const it=vt(q);se.children.forEach(_t=>{const Pt=_t.value.outlet;this.deactivateRoutes(_t,it[Pt],Ve),delete it[Pt]}),t(it,(_t,Pt)=>{this.deactivateRouteAndItsChildren(_t,Ve)})}deactivateRoutes(se,q,Ve){const it=se.value,_t=q?q.value:null;if(it===_t)if(it.component){const Pt=Ve.getContext(it.outlet);Pt&&this.deactivateChildRoutes(se,q,Pt.children)}else this.deactivateChildRoutes(se,q,Ve);else _t&&this.deactivateRouteAndItsChildren(q,Ve)}deactivateRouteAndItsChildren(se,q){se.value.component&&this.routeReuseStrategy.shouldDetach(se.value.snapshot)?this.detachAndStoreRouteSubtree(se,q):this.deactivateRouteAndOutlet(se,q)}detachAndStoreRouteSubtree(se,q){const Ve=q.getContext(se.value.outlet),it=Ve&&se.value.component?Ve.children:q,_t=vt(se);for(const Pt of Object.keys(_t))this.deactivateRouteAndItsChildren(_t[Pt],it);if(Ve&&Ve.outlet){const Pt=Ve.outlet.detach(),Ft=Ve.children.onOutletDeactivated();this.routeReuseStrategy.store(se.value.snapshot,{componentRef:Pt,route:se,contexts:Ft})}}deactivateRouteAndOutlet(se,q){const Ve=q.getContext(se.value.outlet),it=Ve&&se.value.component?Ve.children:q,_t=vt(se);for(const Pt of Object.keys(_t))this.deactivateRouteAndItsChildren(_t[Pt],it);Ve&&Ve.outlet&&(Ve.outlet.deactivate(),Ve.children.onOutletDeactivated(),Ve.attachRef=null,Ve.resolver=null,Ve.route=null)}activateChildRoutes(se,q,Ve){const it=vt(q);se.children.forEach(_t=>{this.activateRoutes(_t,it[_t.value.outlet],Ve),this.forwardEvent(new P(_t.value.snapshot))}),se.children.length&&this.forwardEvent(new H(se.value.snapshot))}activateRoutes(se,q,Ve){const it=se.value,_t=q?q.value:null;if(Fi(it),it===_t)if(it.component){const Pt=Ve.getOrCreateContext(it.outlet);this.activateChildRoutes(se,q,Pt.children)}else this.activateChildRoutes(se,q,Ve);else if(it.component){const Pt=Ve.getOrCreateContext(it.outlet);if(this.routeReuseStrategy.shouldAttach(it.snapshot)){const Ft=this.routeReuseStrategy.retrieve(it.snapshot);this.routeReuseStrategy.store(it.snapshot,null),Pt.children.onOutletReAttached(Ft.contexts),Pt.attachRef=Ft.componentRef,Pt.route=Ft.route.value,Pt.outlet&&Pt.outlet.attach(Ft.componentRef,Ft.route.value),Fi(Ft.route.value),this.activateChildRoutes(se,null,Pt.children)}else{const Ft=function Ui(be){for(let se=be.parent;se;se=se.parent){const q=se.routeConfig;if(q&&q._loadedConfig)return q._loadedConfig;if(q&&q.component)return null}return null}(it.snapshot),$t=Ft?Ft.module.componentFactoryResolver:null;Pt.attachRef=null,Pt.route=it,Pt.resolver=$t,Pt.outlet&&Pt.outlet.activateWith(it,$t),this.activateChildRoutes(se,null,Pt.children)}}else this.activateChildRoutes(se,null,Ve)}}class Li{constructor(se,q){this.routes=se,this.module=q}}function hn(be){return"function"==typeof be}function Vn(be){return be instanceof Lt}const Zn=Symbol("INITIAL_VALUE");function En(){return(0,Oe.w)(be=>(0,g.aj)(be.map(se=>se.pipe((0,T.q)(1),(0,Z.O)(Zn)))).pipe((0,W.R)((se,q)=>{let Ve=!1;return q.reduce((it,_t,Pt)=>it!==Zn?it:(_t===Zn&&(Ve=!0),Ve||!1!==_t&&Pt!==q.length-1&&!Vn(_t)?it:_t),se)},Zn),(0,L.h)(se=>se!==Zn),(0,ue.U)(se=>Vn(se)?se:!0===se),(0,T.q)(1)))}class ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Mn,this.attachRef=null}}class Mn{constructor(){this.contexts=new Map}onChildOutletCreated(se,q){const Ve=this.getOrCreateContext(se);Ve.outlet=q,this.contexts.set(se,Ve)}onChildOutletDestroyed(se){const q=this.getContext(se);q&&(q.outlet=null,q.attachRef=null)}onOutletDeactivated(){const se=this.contexts;return this.contexts=new Map,se}onOutletReAttached(se){this.contexts=se}getOrCreateContext(se){let q=this.getContext(se);return q||(q=new ur,this.contexts.set(se,q)),q}getContext(se){return this.contexts.get(se)||null}}let Gn=(()=>{class be{constructor(q,Ve,it,_t,Pt){this.parentContexts=q,this.location=Ve,this.resolver=it,this.changeDetector=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=_t||V,q.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const q=this.parentContexts.getContext(this.name);q&&q.route&&(q.attachRef?this.attach(q.attachRef,q.route):this.activateWith(q.route,q.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const q=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(q.instance),q}attach(q,Ve){this.activated=q,this._activatedRoute=Ve,this.location.insert(q.hostView),this.attachEvents.emit(q.instance)}deactivate(){if(this.activated){const q=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(q)}}activateWith(q,Ve){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=q;const Pt=(Ve=Ve||this.resolver).resolveComponentFactory(q._futureSnapshot.routeConfig.component),Ft=this.parentContexts.getOrCreateContext(this.name).children,$t=new sr(q,Ft,this.location.injector);this.activated=this.location.createComponent(Pt,this.location.length,$t),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return be.\u0275fac=function(q){return new(q||be)(e.Y36(Mn),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},be.\u0275dir=e.lG2({type:be,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),be})();class sr{constructor(se,q,Ve){this.route=se,this.childContexts=q,this.parent=Ve}get(se,q){return se===Dt?this.route:se===Mn?this.childContexts:this.parent.get(se,q)}}let ar=(()=>{class be{}return be.\u0275fac=function(q){return new(q||be)},be.\u0275cmp=e.Xpm({type:be,selectors:[["ng-component"]],decls:1,vars:0,template:function(q,Ve){1&q&&e._UZ(0,"router-outlet")},directives:[Gn],encapsulation:2}),be})();function Un(be,se=""){for(let q=0;qyn(Ve)===se);return q.push(...be.filter(Ve=>yn(Ve)!==se)),q}const $n={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function or(be,se,q){var Ve;if(""===se.path)return"full"===se.pathMatch&&(be.hasChildren()||q.length>0)?Object.assign({},$n):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const _t=(se.matcher||re)(q,be,se);if(!_t)return Object.assign({},$n);const Pt={};t(_t.posParams,($t,Ai)=>{Pt[Ai]=$t.path});const Ft=_t.consumed.length>0?Object.assign(Object.assign({},Pt),_t.consumed[_t.consumed.length-1].parameters):Pt;return{matched:!0,consumedSegments:_t.consumed,lastChild:_t.consumed.length,parameters:Ft,positionalParamSegments:null!==(Ve=_t.posParams)&&void 0!==Ve?Ve:{}}}function zn(be,se,q,Ve,it="corrected"){if(q.length>0&&function F(be,se,q){return q.some(Ve=>De(be,se,Ve)&&yn(Ve)!==V)}(be,q,Ve)){const Pt=new Te(se,function ft(be,se,q,Ve){const it={};it[V]=Ve,Ve._sourceSegment=be,Ve._segmentIndexShift=se.length;for(const _t of q)if(""===_t.path&&yn(_t)!==V){const Pt=new Te([],{});Pt._sourceSegment=be,Pt._segmentIndexShift=se.length,it[yn(_t)]=Pt}return it}(be,se,Ve,new Te(q,be.children)));return Pt._sourceSegment=be,Pt._segmentIndexShift=se.length,{segmentGroup:Pt,slicedSegments:[]}}if(0===q.length&&function G(be,se,q){return q.some(Ve=>De(be,se,Ve))}(be,q,Ve)){const Pt=new Te(be.segments,function lr(be,se,q,Ve,it,_t){const Pt={};for(const Ft of Ve)if(De(be,q,Ft)&&!it[yn(Ft)]){const $t=new Te([],{});$t._sourceSegment=be,$t._segmentIndexShift="legacy"===_t?be.segments.length:se.length,Pt[yn(Ft)]=$t}return Object.assign(Object.assign({},it),Pt)}(be,se,q,Ve,be.children,it));return Pt._sourceSegment=be,Pt._segmentIndexShift=se.length,{segmentGroup:Pt,slicedSegments:q}}const _t=new Te(be.segments,be.children);return _t._sourceSegment=be,_t._segmentIndexShift=se.length,{segmentGroup:_t,slicedSegments:q}}function De(be,se,q){return(!(be.hasChildren()||se.length>0)||"full"!==q.pathMatch)&&""===q.path}function ht(be,se,q,Ve){return!!(yn(be)===Ve||Ve!==V&&De(se,q,be))&&("**"===be.path||or(se,be,q).matched)}function Ct(be,se,q){return 0===se.length&&!be.children[q]}class ${constructor(se){this.segmentGroup=se||null}}class Re{constructor(se){this.urlTree=se}}function de(be){return new A.y(se=>se.error(new $(be)))}function tt(be){return new A.y(se=>se.error(new Re(be)))}function yt(be){return new A.y(se=>se.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${be}'`)))}class ii{constructor(se,q,Ve,it,_t){this.configLoader=q,this.urlSerializer=Ve,this.urlTree=it,this.config=_t,this.allowRedirects=!0,this.ngModule=se.get(e.h0i)}apply(){const se=zn(this.urlTree.root,[],[],this.config).segmentGroup,q=new Te(se.segments,se.children);return this.expandSegmentGroup(this.ngModule,this.config,q,V).pipe((0,ue.U)(_t=>this.createUrlTree(ui(_t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Y.K)(_t=>{if(_t instanceof Re)return this.allowRedirects=!1,this.match(_t.urlTree);throw _t instanceof $?this.noMatchError(_t):_t}))}match(se){return this.expandSegmentGroup(this.ngModule,this.config,se.root,V).pipe((0,ue.U)(it=>this.createUrlTree(ui(it),se.queryParams,se.fragment))).pipe((0,Y.K)(it=>{throw it instanceof $?this.noMatchError(it):it}))}noMatchError(se){return new Error(`Cannot match any routes. URL Segment: '${se.segmentGroup}'`)}createUrlTree(se,q,Ve){const it=se.segments.length>0?new Te([],{[V]:se}):se;return new Lt(it,q,Ve)}expandSegmentGroup(se,q,Ve,it){return 0===Ve.segments.length&&Ve.hasChildren()?this.expandChildren(se,q,Ve).pipe((0,ue.U)(_t=>new Te([],_t))):this.expandSegment(se,Ve,q,Ve.segments,it,!0)}expandChildren(se,q,Ve){const it=[];for(const _t of Object.keys(Ve.children))"primary"===_t?it.unshift(_t):it.push(_t);return(0,b.D)(it).pipe((0,ee.b)(_t=>{const Pt=Ve.children[_t],Ft=Cn(q,_t);return this.expandSegmentGroup(se,Ft,Pt,_t).pipe((0,ue.U)($t=>({segment:$t,outlet:_t})))}),(0,W.R)((_t,Pt)=>(_t[Pt.outlet]=Pt.segment,_t),{}),function Ne(be,se){const q=arguments.length>=2;return Ve=>Ve.pipe(be?(0,L.h)((it,_t)=>be(it,_t,Ve)):X.y,(0,J.h)(1),q?(0,ge.d)(se):(0,ie.T)(()=>new E.K))}())}expandSegment(se,q,Ve,it,_t,Pt){return(0,b.D)(Ve).pipe((0,ee.b)(Ft=>this.expandSegmentAgainstRoute(se,q,Ve,Ft,it,_t,Pt).pipe((0,Y.K)(Ai=>{if(Ai instanceof $)return(0,_.of)(null);throw Ai}))),(0,ce.P)(Ft=>!!Ft),(0,Y.K)((Ft,$t)=>{if(Ft instanceof E.K||"EmptyError"===Ft.name){if(Ct(q,it,_t))return(0,_.of)(new Te([],{}));throw new $(q)}throw Ft}))}expandSegmentAgainstRoute(se,q,Ve,it,_t,Pt,Ft){return ht(it,q,_t,Pt)?void 0===it.redirectTo?this.matchSegmentAgainstRoute(se,q,it,_t,Pt):Ft&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(se,q,Ve,it,_t,Pt):de(q):de(q)}expandSegmentAgainstRouteUsingRedirect(se,q,Ve,it,_t,Pt){return"**"===it.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(se,Ve,it,Pt):this.expandRegularSegmentAgainstRouteUsingRedirect(se,q,Ve,it,_t,Pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(se,q,Ve,it){const _t=this.applyRedirectCommands([],Ve.redirectTo,{});return Ve.redirectTo.startsWith("/")?tt(_t):this.lineralizeSegments(Ve,_t).pipe((0,le.zg)(Pt=>{const Ft=new Te(Pt,{});return this.expandSegment(se,Ft,q,Pt,it,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(se,q,Ve,it,_t,Pt){const{matched:Ft,consumedSegments:$t,lastChild:Ai,positionalParamSegments:Yi}=or(q,it,_t);if(!Ft)return de(q);const xi=this.applyRedirectCommands($t,it.redirectTo,Yi);return it.redirectTo.startsWith("/")?tt(xi):this.lineralizeSegments(it,xi).pipe((0,le.zg)(nn=>this.expandSegment(se,q,Ve,nn.concat(_t.slice(Ai)),Pt,!1)))}matchSegmentAgainstRoute(se,q,Ve,it,_t){if("**"===Ve.path)return Ve.loadChildren?(Ve._loadedConfig?(0,_.of)(Ve._loadedConfig):this.configLoader.load(se.injector,Ve)).pipe((0,ue.U)(nn=>(Ve._loadedConfig=nn,new Te(it,{})))):(0,_.of)(new Te(it,{}));const{matched:Pt,consumedSegments:Ft,lastChild:$t}=or(q,Ve,it);if(!Pt)return de(q);const Ai=it.slice($t);return this.getChildConfig(se,Ve,it).pipe((0,le.zg)(xi=>{const nn=xi.module,on=xi.routes,{segmentGroup:os,slicedSegments:Cr}=zn(q,Ft,Ai,on),vr=new Te(os.segments,os.children);if(0===Cr.length&&vr.hasChildren())return this.expandChildren(nn,on,vr).pipe((0,ue.U)(Xr=>new Te(Ft,Xr)));if(0===on.length&&0===Cr.length)return(0,_.of)(new Te(Ft,{}));const Mr=yn(Ve)===_t;return this.expandSegment(nn,vr,on,Cr,Mr?V:_t,!0).pipe((0,ue.U)(Sr=>new Te(Ft.concat(Sr.segments),Sr.children)))}))}getChildConfig(se,q,Ve){return q.children?(0,_.of)(new Li(q.children,se)):q.loadChildren?void 0!==q._loadedConfig?(0,_.of)(q._loadedConfig):this.runCanLoadGuards(se.injector,q,Ve).pipe((0,le.zg)(it=>it?this.configLoader.load(se.injector,q).pipe((0,ue.U)(_t=>(q._loadedConfig=_t,_t))):function Gt(be){return new A.y(se=>se.error(Ye(`Cannot load children because the guard of the route "path: '${be.path}'" returned false`)))}(q))):(0,_.of)(new Li([],se))}runCanLoadGuards(se,q,Ve){const it=q.canLoad;if(!it||0===it.length)return(0,_.of)(!0);const _t=it.map(Pt=>{const Ft=se.get(Pt);let $t;if(function dr(be){return be&&hn(be.canLoad)}(Ft))$t=Ft.canLoad(q,Ve);else{if(!hn(Ft))throw new Error("Invalid CanLoad guard");$t=Ft(q,Ve)}return n($t)});return(0,_.of)(_t).pipe(En(),(0,Pe.b)(Pt=>{if(!Vn(Pt))return;const Ft=Ye(`Redirecting to "${this.urlSerializer.serialize(Pt)}"`);throw Ft.url=Pt,Ft}),(0,ue.U)(Pt=>!0===Pt))}lineralizeSegments(se,q){let Ve=[],it=q.root;for(;;){if(Ve=Ve.concat(it.segments),0===it.numberOfChildren)return(0,_.of)(Ve);if(it.numberOfChildren>1||!it.children[V])return yt(se.redirectTo);it=it.children[V]}}applyRedirectCommands(se,q,Ve){return this.applyRedirectCreatreUrlTree(q,this.urlSerializer.parse(q),se,Ve)}applyRedirectCreatreUrlTree(se,q,Ve,it){const _t=this.createSegmentGroup(se,q.root,Ve,it);return new Lt(_t,this.createQueryParams(q.queryParams,this.urlTree.queryParams),q.fragment)}createQueryParams(se,q){const Ve={};return t(se,(it,_t)=>{if("string"==typeof it&&it.startsWith(":")){const Ft=it.substring(1);Ve[_t]=q[Ft]}else Ve[_t]=it}),Ve}createSegmentGroup(se,q,Ve,it){const _t=this.createSegments(se,q.segments,Ve,it);let Pt={};return t(q.children,(Ft,$t)=>{Pt[$t]=this.createSegmentGroup(se,Ft,Ve,it)}),new Te(_t,Pt)}createSegments(se,q,Ve,it){return q.map(_t=>_t.path.startsWith(":")?this.findPosParam(se,_t,it):this.findOrReturn(_t,Ve))}findPosParam(se,q,Ve){const it=Ve[q.path.substring(1)];if(!it)throw new Error(`Cannot redirect to '${se}'. Cannot find '${q.path}'.`);return it}findOrReturn(se,q){let Ve=0;for(const it of q){if(it.path===se.path)return q.splice(Ve),it;Ve++}return se}}function ui(be){const se={};for(const Ve of Object.keys(be.children)){const _t=ui(be.children[Ve]);(_t.segments.length>0||_t.hasChildren())&&(se[Ve]=_t)}return function di(be){if(1===be.numberOfChildren&&be.children[V]){const se=be.children[V];return new Te(be.segments.concat(se.segments),se.children)}return be}(new Te(be.segments,se))}class Ti{constructor(se){this.path=se,this.route=this.path[this.path.length-1]}}class Hi{constructor(se,q){this.component=se,this.route=q}}function Be(be,se,q){const Ve=be._root;return Zt(Ve,se?se._root:null,q,[Ve.value])}function Ee(be,se,q){const Ve=function ut(be){if(!be)return null;for(let se=be.parent;se;se=se.parent){const q=se.routeConfig;if(q&&q._loadedConfig)return q._loadedConfig}return null}(se);return(Ve?Ve.module.injector:q).get(be)}function Zt(be,se,q,Ve,it={canDeactivateChecks:[],canActivateChecks:[]}){const _t=vt(se);return be.children.forEach(Pt=>{(function hi(be,se,q,Ve,it={canDeactivateChecks:[],canActivateChecks:[]}){const _t=be.value,Pt=se?se.value:null,Ft=q?q.getContext(be.value.outlet):null;if(Pt&&_t.routeConfig===Pt.routeConfig){const $t=function ji(be,se,q){if("function"==typeof q)return q(be,se);switch(q){case"pathParamsChange":return!N(be.url,se.url);case"pathParamsOrQueryParamsChange":return!N(be.url,se.url)||!o(be.queryParams,se.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ji(be,se)||!o(be.queryParams,se.queryParams);default:return!Ji(be,se)}}(Pt,_t,_t.routeConfig.runGuardsAndResolvers);$t?it.canActivateChecks.push(new Ti(Ve)):(_t.data=Pt.data,_t._resolvedData=Pt._resolvedData),Zt(be,se,_t.component?Ft?Ft.children:null:q,Ve,it),$t&&Ft&&Ft.outlet&&Ft.outlet.isActivated&&it.canDeactivateChecks.push(new Hi(Ft.outlet.component,Pt))}else Pt&&tn(se,Ft,it),it.canActivateChecks.push(new Ti(Ve)),Zt(be,null,_t.component?Ft?Ft.children:null:q,Ve,it)})(Pt,_t[Pt.value.outlet],q,Ve.concat([Pt.value]),it),delete _t[Pt.value.outlet]}),t(_t,(Pt,Ft)=>tn(Pt,q.getContext(Ft),it)),it}function tn(be,se,q){const Ve=vt(be),it=be.value;t(Ve,(_t,Pt)=>{tn(_t,it.component?se?se.children.getContext(Pt):null:se,q)}),q.canDeactivateChecks.push(new Hi(it.component&&se&&se.outlet&&se.outlet.isActivated?se.outlet.component:null,it))}class Vi{}function pn(be){return new A.y(se=>se.error(be))}class Pn{constructor(se,q,Ve,it,_t,Pt){this.rootComponentType=se,this.config=q,this.urlTree=Ve,this.url=it,this.paramsInheritanceStrategy=_t,this.relativeLinkResolution=Pt}recognize(){const se=zn(this.urlTree.root,[],[],this.config.filter(Pt=>void 0===Pt.redirectTo),this.relativeLinkResolution).segmentGroup,q=this.processSegmentGroup(this.config,se,V);if(null===q)return null;const Ve=new Di([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},V,this.rootComponentType,null,this.urlTree.root,-1,{}),it=new Ke(Ve,q),_t=new wi(this.url,it);return this.inheritParamsAndData(_t._root),_t}inheritParamsAndData(se){const q=se.value,Ve=ri(q,this.paramsInheritanceStrategy);q.params=Object.freeze(Ve.params),q.data=Object.freeze(Ve.data),se.children.forEach(it=>this.inheritParamsAndData(it))}processSegmentGroup(se,q,Ve){return 0===q.segments.length&&q.hasChildren()?this.processChildren(se,q):this.processSegment(se,q,q.segments,Ve)}processChildren(se,q){const Ve=[];for(const _t of Object.keys(q.children)){const Pt=q.children[_t],Ft=Cn(se,_t),$t=this.processSegmentGroup(Ft,Pt,_t);if(null===$t)return null;Ve.push(...$t)}const it=wr(Ve);return function Yn(be){be.sort((se,q)=>se.value.outlet===V?-1:q.value.outlet===V?1:se.value.outlet.localeCompare(q.value.outlet))}(it),it}processSegment(se,q,Ve,it){for(const _t of se){const Pt=this.processSegmentAgainstRoute(_t,q,Ve,it);if(null!==Pt)return Pt}return Ct(q,Ve,it)?[]:null}processSegmentAgainstRoute(se,q,Ve,it){if(se.redirectTo||!ht(se,q,Ve,it))return null;let _t,Pt=[],Ft=[];if("**"===se.path){const on=Ve.length>0?s(Ve).parameters:{};_t=new Di(Ve,on,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xn(se),yn(se),se.component,se,mn(q),Sn(q)+Ve.length,er(se))}else{const on=or(q,se,Ve);if(!on.matched)return null;Pt=on.consumedSegments,Ft=Ve.slice(on.lastChild),_t=new Di(Pt,on.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xn(se),yn(se),se.component,se,mn(q),Sn(q)+Pt.length,er(se))}const $t=function fn(be){return be.children?be.children:be.loadChildren?be._loadedConfig.routes:[]}(se),{segmentGroup:Ai,slicedSegments:Yi}=zn(q,Pt,Ft,$t.filter(on=>void 0===on.redirectTo),this.relativeLinkResolution);if(0===Yi.length&&Ai.hasChildren()){const on=this.processChildren($t,Ai);return null===on?null:[new Ke(_t,on)]}if(0===$t.length&&0===Yi.length)return[new Ke(_t,[])];const xi=yn(se)===it,nn=this.processSegment($t,Ai,Yi,xi?V:it);return null===nn?null:[new Ke(_t,nn)]}}function $r(be){const se=be.value.routeConfig;return se&&""===se.path&&void 0===se.redirectTo}function wr(be){const se=[],q=new Set;for(const Ve of be){if(!$r(Ve)){se.push(Ve);continue}const it=se.find(_t=>Ve.value.routeConfig===_t.value.routeConfig);void 0!==it?(it.children.push(...Ve.children),q.add(it)):se.push(Ve)}for(const Ve of q){const it=wr(Ve.children);se.push(new Ke(Ve.value,it))}return se.filter(Ve=>!q.has(Ve))}function mn(be){let se=be;for(;se._sourceSegment;)se=se._sourceSegment;return se}function Sn(be){let se=be,q=se._segmentIndexShift?se._segmentIndexShift:0;for(;se._sourceSegment;)se=se._sourceSegment,q+=se._segmentIndexShift?se._segmentIndexShift:0;return q-1}function Xn(be){return be.data||{}}function er(be){return be.resolve||{}}function _s(be){return[...Object.keys(be),...Object.getOwnPropertySymbols(be)]}function fe(be){return(0,Oe.w)(se=>{const q=be(se);return q?(0,b.D)(q).pipe((0,ue.U)(()=>se)):(0,_.of)(se)})}class at{}class pt extends class Le{shouldDetach(se){return!1}store(se,q){}shouldAttach(se){return!1}retrieve(se){return null}shouldReuseRoute(se,q){return se.routeConfig===q.routeConfig}}{}const Vt=new e.OlP("ROUTES");class qt{constructor(se,q,Ve,it){this.injector=se,this.compiler=q,this.onLoadStartListener=Ve,this.onLoadEndListener=it}load(se,q){if(q._loader$)return q._loader$;this.onLoadStartListener&&this.onLoadStartListener(q);const it=this.loadModuleFactory(q.loadChildren).pipe((0,ue.U)(_t=>{this.onLoadEndListener&&this.onLoadEndListener(q);const Pt=_t.create(se);return new Li(l(Pt.injector.get(Vt,void 0,e.XFs.Self|e.XFs.Optional)).map(In),Pt)}),(0,Y.K)(_t=>{throw q._loader$=void 0,_t}));return q._loader$=new m.c(it,()=>new B.xQ).pipe((0,Fe.x)()),q._loader$}loadModuleFactory(se){return n(se()).pipe((0,le.zg)(q=>q instanceof e.YKP?(0,_.of)(q):(0,b.D)(this.compiler.compileModuleAsync(q))))}}class pi{shouldProcessUrl(se){return!0}extract(se){return se}merge(se,q){return se}}function oi(be){throw be}function Si(be,se,q){return se.parse("/")}function Gi(be,se){return(0,_.of)(null)}const An={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Zi=(()=>{class be{constructor(q,Ve,it,_t,Pt,Ft,$t){this.rootComponentType=q,this.urlSerializer=Ve,this.rootContexts=it,this.location=_t,this.config=$t,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new B.xQ,this.errorHandler=oi,this.malformedUriErrorHandler=Si,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Gi,afterPreactivation:Gi},this.urlHandlingStrategy=new pi,this.routeReuseStrategy=new pt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Pt.get(e.h0i),this.console=Pt.get(e.c2e);const xi=Pt.get(e.R0b);this.isNgZoneEnabled=xi instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig($t),this.currentUrlTree=function a(){return new Lt(new Te([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qt(Pt,Ft,nn=>this.triggerEvent(new Je(nn)),nn=>this.triggerEvent(new nt(nn))),this.routerState=qe(this.currentUrlTree,this.rootComponentType),this.transitions=new w.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 q;return null===(q=this.location.getState())||void 0===q?void 0:q.\u0275routerPageId}setupNavigations(q){const Ve=this.events;return q.pipe((0,L.h)(it=>0!==it.id),(0,ue.U)(it=>Object.assign(Object.assign({},it),{extractedUrl:this.urlHandlingStrategy.extract(it.rawUrl)})),(0,Oe.w)(it=>{let _t=!1,Pt=!1;return(0,_.of)(it).pipe((0,Pe.b)(Ft=>{this.currentNavigation={id:Ft.id,initialUrl:Ft.currentRawUrl,extractedUrl:Ft.extractedUrl,trigger:Ft.source,extras:Ft.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Oe.w)(Ft=>{const $t=this.browserUrlTree.toString(),Ai=!this.navigated||Ft.extractedUrl.toString()!==$t||$t!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ai)&&this.urlHandlingStrategy.shouldProcessUrl(Ft.rawUrl))return Pi(Ft.source)&&(this.browserUrlTree=Ft.extractedUrl),(0,_.of)(Ft).pipe((0,Oe.w)(xi=>{const nn=this.transitions.getValue();return Ve.next(new He(xi.id,this.serializeUrl(xi.extractedUrl),xi.source,xi.restoredState)),nn!==this.transitions.getValue()?S.E:Promise.resolve(xi)}),function _i(be,se,q,Ve){return(0,Oe.w)(it=>function Wt(be,se,q,Ve,it){return new ii(be,se,q,Ve,it).apply()}(be,se,q,it.extractedUrl,Ve).pipe((0,ue.U)(_t=>Object.assign(Object.assign({},it),{urlAfterRedirects:_t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Pe.b)(xi=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xi.urlAfterRedirects})}),function fr(be,se,q,Ve,it){return(0,le.zg)(_t=>function vn(be,se,q,Ve,it="emptyOnly",_t="legacy"){try{const Pt=new Pn(be,se,q,Ve,it,_t).recognize();return null===Pt?pn(new Vi):(0,_.of)(Pt)}catch(Pt){return pn(Pt)}}(be,se,_t.urlAfterRedirects,q(_t.urlAfterRedirects),Ve,it).pipe((0,ue.U)(Pt=>Object.assign(Object.assign({},_t),{targetSnapshot:Pt}))))}(this.rootComponentType,this.config,xi=>this.serializeUrl(xi),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Pe.b)(xi=>{if("eager"===this.urlUpdateStrategy){if(!xi.extras.skipLocationChange){const on=this.urlHandlingStrategy.merge(xi.urlAfterRedirects,xi.rawUrl);this.setBrowserUrl(on,xi)}this.browserUrlTree=xi.urlAfterRedirects}const nn=new Ae(xi.id,this.serializeUrl(xi.extractedUrl),this.serializeUrl(xi.urlAfterRedirects),xi.targetSnapshot);Ve.next(nn)}));if(Ai&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:nn,extractedUrl:on,source:os,restoredState:Cr,extras:vr}=Ft,Mr=new He(nn,this.serializeUrl(on),os,Cr);Ve.next(Mr);const ls=qe(on,this.rootComponentType).snapshot;return(0,_.of)(Object.assign(Object.assign({},Ft),{targetSnapshot:ls,urlAfterRedirects:on,extras:Object.assign(Object.assign({},vr),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Ft.rawUrl,Ft.resolve(null),S.E}),fe(Ft=>{const{targetSnapshot:$t,id:Ai,extractedUrl:Yi,rawUrl:xi,extras:{skipLocationChange:nn,replaceUrl:on}}=Ft;return this.hooks.beforePreactivation($t,{navigationId:Ai,appliedUrlTree:Yi,rawUrlTree:xi,skipLocationChange:!!nn,replaceUrl:!!on})}),(0,Pe.b)(Ft=>{const $t=new Me(Ft.id,this.serializeUrl(Ft.extractedUrl),this.serializeUrl(Ft.urlAfterRedirects),Ft.targetSnapshot);this.triggerEvent($t)}),(0,ue.U)(Ft=>Object.assign(Object.assign({},Ft),{guards:Be(Ft.targetSnapshot,Ft.currentSnapshot,this.rootContexts)})),function Kn(be,se){return(0,le.zg)(q=>{const{targetSnapshot:Ve,currentSnapshot:it,guards:{canActivateChecks:_t,canDeactivateChecks:Pt}}=q;return 0===Pt.length&&0===_t.length?(0,_.of)(Object.assign(Object.assign({},q),{guardsResult:!0})):function Wn(be,se,q,Ve){return(0,b.D)(be).pipe((0,le.zg)(it=>function gi(be,se,q,Ve,it){const _t=se&&se.routeConfig?se.routeConfig.canDeactivate:null;if(!_t||0===_t.length)return(0,_.of)(!0);const Pt=_t.map(Ft=>{const $t=Ee(Ft,se,it);let Ai;if(function rr(be){return be&&hn(be.canDeactivate)}($t))Ai=n($t.canDeactivate(be,se,q,Ve));else{if(!hn($t))throw new Error("Invalid CanDeactivate guard");Ai=n($t(be,se,q,Ve))}return Ai.pipe((0,ce.P)())});return(0,_.of)(Pt).pipe(En())}(it.component,it.route,q,se,Ve)),(0,ce.P)(it=>!0!==it,!0))}(Pt,Ve,it,be).pipe((0,le.zg)(Ft=>Ft&&function cr(be){return"boolean"==typeof be}(Ft)?function pr(be,se,q,Ve){return(0,b.D)(se).pipe((0,ee.b)(it=>(0,C.z)(function Xt(be,se){return null!==be&&se&&se(new ke(be)),(0,_.of)(!0)}(it.route.parent,Ve),function Qr(be,se){return null!==be&&se&&se(new he(be)),(0,_.of)(!0)}(it.route,Ve),function Ei(be,se,q){const Ve=se[se.length-1],_t=se.slice(0,se.length-1).reverse().map(Pt=>function xe(be){const se=be.routeConfig?be.routeConfig.canActivateChild:null;return se&&0!==se.length?{node:be,guards:se}:null}(Pt)).filter(Pt=>null!==Pt).map(Pt=>(0,O.P)(()=>{const Ft=Pt.guards.map($t=>{const Ai=Ee($t,Pt.node,q);let Yi;if(function Lr(be){return be&&hn(be.canActivateChild)}(Ai))Yi=n(Ai.canActivateChild(Ve,be));else{if(!hn(Ai))throw new Error("Invalid CanActivateChild guard");Yi=n(Ai(Ve,be))}return Yi.pipe((0,ce.P)())});return(0,_.of)(Ft).pipe(En())}));return(0,_.of)(_t).pipe(En())}(be,it.path,q),function si(be,se,q){const Ve=se.routeConfig?se.routeConfig.canActivate:null;if(!Ve||0===Ve.length)return(0,_.of)(!0);const it=Ve.map(_t=>(0,O.P)(()=>{const Pt=Ee(_t,se,q);let Ft;if(function Qn(be){return be&&hn(be.canActivate)}(Pt))Ft=n(Pt.canActivate(se,be));else{if(!hn(Pt))throw new Error("Invalid CanActivate guard");Ft=n(Pt(se,be))}return Ft.pipe((0,ce.P)())}));return(0,_.of)(it).pipe(En())}(be,it.route,q))),(0,ce.P)(it=>!0!==it,!0))}(Ve,_t,be,se):(0,_.of)(Ft)),(0,ue.U)(Ft=>Object.assign(Object.assign({},q),{guardsResult:Ft})))})}(this.ngModule.injector,Ft=>this.triggerEvent(Ft)),(0,Pe.b)(Ft=>{if(Vn(Ft.guardsResult)){const Ai=Ye(`Redirecting to "${this.serializeUrl(Ft.guardsResult)}"`);throw Ai.url=Ft.guardsResult,Ai}const $t=new pe(Ft.id,this.serializeUrl(Ft.extractedUrl),this.serializeUrl(Ft.urlAfterRedirects),Ft.targetSnapshot,!!Ft.guardsResult);this.triggerEvent($t)}),(0,L.h)(Ft=>!!Ft.guardsResult||(this.restoreHistory(Ft),this.cancelNavigationTransition(Ft,""),!1)),fe(Ft=>{if(Ft.guards.canActivateChecks.length)return(0,_.of)(Ft).pipe((0,Pe.b)($t=>{const Ai=new we($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(Ai)}),(0,Oe.w)($t=>{let Ai=!1;return(0,_.of)($t).pipe(function aa(be,se){return(0,le.zg)(q=>{const{targetSnapshot:Ve,guards:{canActivateChecks:it}}=q;if(!it.length)return(0,_.of)(q);let _t=0;return(0,b.D)(it).pipe((0,ee.b)(Pt=>function gs(be,se,q,Ve){return function oa(be,se,q,Ve){const it=_s(be);if(0===it.length)return(0,_.of)({});const _t={};return(0,b.D)(it).pipe((0,le.zg)(Pt=>function As(be,se,q,Ve){const it=Ee(be,se,Ve);return n(it.resolve?it.resolve(se,q):it(se,q))}(be[Pt],se,q,Ve).pipe((0,Pe.b)(Ft=>{_t[Pt]=Ft}))),(0,J.h)(1),(0,le.zg)(()=>_s(_t).length===it.length?(0,_.of)(_t):S.E))}(be._resolve,be,se,Ve).pipe((0,ue.U)(_t=>(be._resolvedData=_t,be.data=Object.assign(Object.assign({},be.data),ri(be,q).resolve),null)))}(Pt.route,Ve,be,se)),(0,Pe.b)(()=>_t++),(0,J.h)(1),(0,le.zg)(Pt=>_t===it.length?(0,_.of)(q):S.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Pe.b)({next:()=>Ai=!0,complete:()=>{Ai||(this.restoreHistory($t),this.cancelNavigationTransition($t,"At least one route resolver didn't emit any value."))}}))}),(0,Pe.b)($t=>{const Ai=new $e($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(Ai)}))}),fe(Ft=>{const{targetSnapshot:$t,id:Ai,extractedUrl:Yi,rawUrl:xi,extras:{skipLocationChange:nn,replaceUrl:on}}=Ft;return this.hooks.afterPreactivation($t,{navigationId:Ai,appliedUrlTree:Yi,rawUrlTree:xi,skipLocationChange:!!nn,replaceUrl:!!on})}),(0,ue.U)(Ft=>{const $t=function _n(be,se,q){const Ve=Ni(be,se._root,q?q._root:void 0);return new U(Ve,se)}(this.routeReuseStrategy,Ft.targetSnapshot,Ft.currentRouterState);return Object.assign(Object.assign({},Ft),{targetRouterState:$t})}),(0,Pe.b)(Ft=>{this.currentUrlTree=Ft.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ft.urlAfterRedirects,Ft.rawUrl),this.routerState=Ft.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ft.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ft),this.browserUrlTree=Ft.urlAfterRedirects)}),((be,se,q)=>(0,ue.U)(Ve=>(new vi(se,Ve.targetRouterState,Ve.currentRouterState,q).activate(be),Ve)))(this.rootContexts,this.routeReuseStrategy,Ft=>this.triggerEvent(Ft)),(0,Pe.b)({next(){_t=!0},complete(){_t=!0}}),(0,ze.x)(()=>{var Ft;_t||Pt||this.cancelNavigationTransition(it,`Navigation ID ${it.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Ft=this.currentNavigation)||void 0===Ft?void 0:Ft.id)===it.id&&(this.currentNavigation=null)}),(0,Y.K)(Ft=>{if(Pt=!0,function ye(be){return be&&be[je]}(Ft)){const $t=Vn(Ft.url);$t||(this.navigated=!0,this.restoreHistory(it,!0));const Ai=new I(it.id,this.serializeUrl(it.extractedUrl),Ft.message);Ve.next(Ai),$t?setTimeout(()=>{const Yi=this.urlHandlingStrategy.merge(Ft.url,this.rawUrlTree),xi={skipLocationChange:it.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Pi(it.source)};this.scheduleNavigation(Yi,"imperative",null,xi,{resolve:it.resolve,reject:it.reject,promise:it.promise})},0):it.resolve(!1)}else{this.restoreHistory(it,!0);const $t=new me(it.id,this.serializeUrl(it.extractedUrl),Ft);Ve.next($t);try{it.resolve(this.errorHandler(Ft))}catch(Ai){it.reject(Ai)}}return S.E}))}))}resetRootComponentType(q){this.rootComponentType=q,this.routerState.root.component=this.rootComponentType}setTransition(q){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),q))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(q=>{const Ve="popstate"===q.type?"popstate":"hashchange";"popstate"===Ve&&setTimeout(()=>{var it;const _t={replaceUrl:!0},Pt=(null===(it=q.state)||void 0===it?void 0:it.navigationId)?q.state:null;if(Pt){const $t=Object.assign({},Pt);delete $t.navigationId,delete $t.\u0275routerPageId,0!==Object.keys($t).length&&(_t.state=$t)}const Ft=this.parseUrl(q.url);this.scheduleNavigation(Ft,Ve,Pt,_t)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(q){this.events.next(q)}resetConfig(q){Un(q),this.config=q.map(In),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(q,Ve={}){const{relativeTo:it,queryParams:_t,fragment:Pt,queryParamsHandling:Ft,preserveFragment:$t}=Ve,Ai=it||this.routerState.root,Yi=$t?this.currentUrlTree.fragment:Pt;let xi=null;switch(Ft){case"merge":xi=Object.assign(Object.assign({},this.currentUrlTree.queryParams),_t);break;case"preserve":xi=this.currentUrlTree.queryParams;break;default:xi=_t||null}return null!==xi&&(xi=this.removeEmptyProps(xi)),function Xi(be,se,q,Ve,it){if(0===q.length)return dn(se.root,se.root,se,Ve,it);const _t=function Oi(be){if("string"==typeof be[0]&&1===be.length&&"/"===be[0])return new xn(!0,0,be);let se=0,q=!1;const Ve=be.reduce((it,_t,Pt)=>{if("object"==typeof _t&&null!=_t){if(_t.outlets){const Ft={};return t(_t.outlets,($t,Ai)=>{Ft[Ai]="string"==typeof $t?$t.split("/"):$t}),[...it,{outlets:Ft}]}if(_t.segmentPath)return[...it,_t.segmentPath]}return"string"!=typeof _t?[...it,_t]:0===Pt?(_t.split("/").forEach((Ft,$t)=>{0==$t&&"."===Ft||(0==$t&&""===Ft?q=!0:".."===Ft?se++:""!=Ft&&it.push(Ft))}),it):[...it,_t]},[]);return new xn(q,se,Ve)}(q);if(_t.toRoot())return dn(se.root,new Te([],{}),se,Ve,it);const Pt=function Nn(be,se,q){if(be.isAbsolute)return new kn(se.root,!0,0);if(-1===q.snapshot._lastPathIndex){const _t=q.snapshot._urlSegment;return new kn(_t,_t===se.root,0)}const Ve=en(be.commands[0])?0:1;return function Mt(be,se,q){let Ve=be,it=se,_t=q;for(;_t>it;){if(_t-=it,Ve=Ve.parent,!Ve)throw new Error("Invalid number of '../'");it=Ve.segments.length}return new kn(Ve,!1,it-_t)}(q.snapshot._urlSegment,q.snapshot._lastPathIndex+Ve,be.numberOfDoubleDots)}(_t,se,be),Ft=Pt.processChildren?kt(Pt.segmentGroup,Pt.index,_t.commands):rt(Pt.segmentGroup,Pt.index,_t.commands);return dn(Pt.segmentGroup,Ft,se,Ve,it)}(Ai,this.currentUrlTree,q,xi,null!=Yi?Yi:null)}navigateByUrl(q,Ve={skipLocationChange:!1}){const it=Vn(q)?q:this.parseUrl(q),_t=this.urlHandlingStrategy.merge(it,this.rawUrlTree);return this.scheduleNavigation(_t,"imperative",null,Ve)}navigate(q,Ve={skipLocationChange:!1}){return function Bi(be){for(let se=0;se{const _t=q[it];return null!=_t&&(Ve[it]=_t),Ve},{})}processNavigations(){this.navigations.subscribe(q=>{this.navigated=!0,this.lastSuccessfulId=q.id,this.currentPageId=q.targetPageId,this.events.next(new z(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,q.resolve(!0)},q=>{this.console.warn(`Unhandled Navigation Error: ${q}`)})}scheduleNavigation(q,Ve,it,_t,Pt){var Ft,$t,Ai;if(this.disposed)return Promise.resolve(!1);const Yi=this.transitions.value,xi=Pi(Ve)&&Yi&&!Pi(Yi.source),nn=Yi.rawUrl.toString()===q.toString(),on=Yi.id===(null===(Ft=this.currentNavigation)||void 0===Ft?void 0:Ft.id);if(xi&&nn&&on)return Promise.resolve(!0);let Cr,vr,Mr;Pt?(Cr=Pt.resolve,vr=Pt.reject,Mr=Pt.promise):Mr=new Promise((Xr,Es)=>{Cr=Xr,vr=Es});const ls=++this.navigationId;let Sr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(it=this.location.getState()),Sr=it&&it.\u0275routerPageId?it.\u0275routerPageId:_t.replaceUrl||_t.skipLocationChange?null!==($t=this.browserPageId)&&void 0!==$t?$t:0:(null!==(Ai=this.browserPageId)&&void 0!==Ai?Ai:0)+1):Sr=0,this.setTransition({id:ls,targetPageId:Sr,source:Ve,restoredState:it,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:q,extras:_t,resolve:Cr,reject:vr,promise:Mr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Mr.catch(Xr=>Promise.reject(Xr))}setBrowserUrl(q,Ve){const it=this.urlSerializer.serialize(q),_t=Object.assign(Object.assign({},Ve.extras.state),this.generateNgRouterState(Ve.id,Ve.targetPageId));this.location.isCurrentPathEqualTo(it)||Ve.extras.replaceUrl?this.location.replaceState(it,"",_t):this.location.go(it,"",_t)}restoreHistory(q,Ve=!1){var it,_t;if("computed"===this.canceledNavigationResolution){const Pt=this.currentPageId-q.targetPageId;"popstate"!==q.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(it=this.currentNavigation)||void 0===it?void 0:it.finalUrl)||0===Pt?this.currentUrlTree===(null===(_t=this.currentNavigation)||void 0===_t?void 0:_t.finalUrl)&&0===Pt&&(this.resetState(q),this.browserUrlTree=q.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Pt)}else"replace"===this.canceledNavigationResolution&&(Ve&&this.resetState(q),this.resetUrlToCurrentUrlTree())}resetState(q){this.routerState=q.currentRouterState,this.currentUrlTree=q.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,q.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(q,Ve){const it=new I(q.id,this.serializeUrl(q.extractedUrl),Ve);this.triggerEvent(it),q.resolve(!1)}generateNgRouterState(q,Ve){return"computed"===this.canceledNavigationResolution?{navigationId:q,\u0275routerPageId:Ve}:{navigationId:q}}}return be.\u0275fac=function(q){e.$Z()},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})();function Pi(be){return"imperative"!==be}let Hn=(()=>{class be{constructor(q,Ve,it,_t,Pt){this.router=q,this.route=Ve,this.tabIndexAttribute=it,this.renderer=_t,this.el=Pt,this.commands=null,this.onChanges=new B.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(q){if(null!=this.tabIndexAttribute)return;const Ve=this.renderer,it=this.el.nativeElement;null!==q?Ve.setAttribute(it,"tabindex",q):Ve.removeAttribute(it,"tabindex")}ngOnChanges(q){this.onChanges.next(this)}set routerLink(q){null!=q?(this.commands=Array.isArray(q)?q:[q],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const q={skipLocationChange:zi(this.skipLocationChange),replaceUrl:zi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,q),!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:zi(this.preserveFragment)})}}return be.\u0275fac=function(q){return new(q||be)(e.Y36(Zi),e.Y36(Dt),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},be.\u0275dir=e.lG2({type:be,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(q,Ve){1&q&&e.NdJ("click",function(){return Ve.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),be})(),ln=(()=>{class be{constructor(q,Ve,it){this.router=q,this.route=Ve,this.locationStrategy=it,this.commands=null,this.href=null,this.onChanges=new B.xQ,this.subscription=q.events.subscribe(_t=>{_t instanceof z&&this.updateTargetUrlAndHref()})}set routerLink(q){this.commands=null!=q?Array.isArray(q)?q:[q]:null}ngOnChanges(q){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(q,Ve,it,_t,Pt){if(0!==q||Ve||it||_t||Pt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Ft={skipLocationChange:zi(this.skipLocationChange),replaceUrl:zi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ft),!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:zi(this.preserveFragment)})}}return be.\u0275fac=function(q){return new(q||be)(e.Y36(Zi),e.Y36(Dt),e.Y36(Ue.S$))},be.\u0275dir=e.lG2({type:be,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(q,Ve){1&q&&e.NdJ("click",function(_t){return Ve.onClick(_t.button,_t.ctrlKey,_t.shiftKey,_t.altKey,_t.metaKey)}),2&q&&e.uIk("target",Ve.target)("href",Ve.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]}),be})();function zi(be){return""===be||!!be}class Wa{}class Kr{preload(se,q){return(0,_.of)(null)}}let is=(()=>{class be{constructor(q,Ve,it,_t){this.router=q,this.injector=it,this.preloadingStrategy=_t,this.loader=new qt(it,Ve,$t=>q.triggerEvent(new Je($t)),$t=>q.triggerEvent(new nt($t)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,L.h)(q=>q instanceof z),(0,ee.b)(()=>this.preload())).subscribe(()=>{})}preload(){const q=this.injector.get(e.h0i);return this.processRoutes(q,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(q,Ve){const it=[];for(const _t of Ve)if(_t.loadChildren&&!_t.canLoad&&_t._loadedConfig){const Pt=_t._loadedConfig;it.push(this.processRoutes(Pt.module,Pt.routes))}else _t.loadChildren&&!_t.canLoad?it.push(this.preloadConfig(q,_t)):_t.children&&it.push(this.processRoutes(q,_t.children));return(0,b.D)(it).pipe((0,ae.J)(),(0,ue.U)(_t=>{}))}preloadConfig(q,Ve){return this.preloadingStrategy.preload(Ve,()=>(Ve._loadedConfig?(0,_.of)(Ve._loadedConfig):this.loader.load(q.injector,Ve)).pipe((0,le.zg)(_t=>(Ve._loadedConfig=_t,this.processRoutes(_t.module,_t.routes)))))}}return be.\u0275fac=function(q){return new(q||be)(e.LFG(Zi),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(Wa))},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})(),ns=(()=>{class be{constructor(q,Ve,it={}){this.router=q,this.viewportScroller=Ve,this.options=it,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},it.scrollPositionRestoration=it.scrollPositionRestoration||"disabled",it.anchorScrolling=it.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(q=>{q instanceof He?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=q.navigationTrigger,this.restoredId=q.restoredState?q.restoredState.navigationId:0):q instanceof z&&(this.lastId=q.id,this.scheduleScrollEvent(q,this.router.parseUrl(q.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(q=>{q instanceof R&&(q.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(q.position):q.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(q.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(q,Ve){this.router.triggerEvent(new R(q,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ve))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return be.\u0275fac=function(q){e.$Z()},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})();const Wr=new e.OlP("ROUTER_CONFIGURATION"),xr=new e.OlP("ROUTER_FORROOT_GUARD"),rs=[Ue.Ye,{provide:oe,useClass:Ie},{provide:Zi,useFactory:function dd(be,se,q,Ve,it,_t,Pt={},Ft,$t){const Ai=new Zi(null,be,se,q,Ve,it,l(_t));return Ft&&(Ai.urlHandlingStrategy=Ft),$t&&(Ai.routeReuseStrategy=$t),function ud(be,se){be.errorHandler&&(se.errorHandler=be.errorHandler),be.malformedUriErrorHandler&&(se.malformedUriErrorHandler=be.malformedUriErrorHandler),be.onSameUrlNavigation&&(se.onSameUrlNavigation=be.onSameUrlNavigation),be.paramsInheritanceStrategy&&(se.paramsInheritanceStrategy=be.paramsInheritanceStrategy),be.relativeLinkResolution&&(se.relativeLinkResolution=be.relativeLinkResolution),be.urlUpdateStrategy&&(se.urlUpdateStrategy=be.urlUpdateStrategy),be.canceledNavigationResolution&&(se.canceledNavigationResolution=be.canceledNavigationResolution)}(Pt,Ai),Pt.enableTracing&&Ai.events.subscribe(Yi=>{var xi,nn;null===(xi=console.group)||void 0===xi||xi.call(console,`Router Event: ${Yi.constructor.name}`),console.log(Yi.toString()),console.log(Yi),null===(nn=console.groupEnd)||void 0===nn||nn.call(console)}),Ai},deps:[oe,Mn,Ue.Ye,e.zs3,e.Sil,Vt,Wr,[class ni{},new e.FiY],[at,new e.FiY]]},Mn,{provide:Dt,useFactory:function Cs(be){return be.routerState.root},deps:[Zi]},is,Kr,class bs{preload(se,q){return q().pipe((0,Y.K)(()=>(0,_.of)(null)))}},{provide:Wr,useValue:{enableTracing:!1}}];function Bo(){return new e.PXZ("Router",Zi)}let ko=(()=>{class be{constructor(q,Ve){}static forRoot(q,Ve){return{ngModule:be,providers:[rs,Ya(q),{provide:xr,useFactory:No,deps:[[Zi,new e.FiY,new e.tp0]]},{provide:Wr,useValue:Ve||{}},{provide:Ue.S$,useFactory:la,deps:[Ue.lw,[new e.tBr(Ue.mr),new e.FiY],Wr]},{provide:ns,useFactory:ss,deps:[Zi,Ue.EM,Wr]},{provide:Wa,useExisting:Ve&&Ve.preloadingStrategy?Ve.preloadingStrategy:Kr},{provide:e.PXZ,multi:!0,useFactory:Bo},[vs,{provide:e.ip1,multi:!0,useFactory:ca,deps:[vs]},{provide:da,useFactory:Ts,deps:[vs]},{provide:e.tb,multi:!0,useExisting:da}]]}}static forChild(q){return{ngModule:be,providers:[Ya(q)]}}}return be.\u0275fac=function(q){return new(q||be)(e.LFG(xr,8),e.LFG(Zi,8))},be.\u0275mod=e.oAB({type:be}),be.\u0275inj=e.cJS({}),be})();function ss(be,se,q){return q.scrollOffset&&se.setOffset(q.scrollOffset),new ns(be,se,q)}function la(be,se,q={}){return q.useHash?new Ue.Do(be,se):new Ue.b0(be,se)}function No(be){return"guarded"}function Ya(be){return[{provide:e.deG,multi:!0,useValue:be},{provide:Vt,multi:!0,useValue:be}]}let vs=(()=>{class be{constructor(q){this.injector=q,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new B.xQ}appInitializer(){return this.injector.get(Ue.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Ve=null;const it=new Promise(Ft=>Ve=Ft),_t=this.injector.get(Zi),Pt=this.injector.get(Wr);return"disabled"===Pt.initialNavigation?(_t.setUpLocationChangeListener(),Ve(!0)):"enabled"===Pt.initialNavigation||"enabledBlocking"===Pt.initialNavigation?(_t.hooks.afterPreactivation=()=>this.initNavigation?(0,_.of)(null):(this.initNavigation=!0,Ve(!0),this.resultOfPreactivationDone),_t.initialNavigation()):Ve(!0),it})}bootstrapListener(q){const Ve=this.injector.get(Wr),it=this.injector.get(is),_t=this.injector.get(ns),Pt=this.injector.get(Zi),Ft=this.injector.get(e.z2F);q===Ft.components[0]&&(("enabledNonBlocking"===Ve.initialNavigation||void 0===Ve.initialNavigation)&&Pt.initialNavigation(),it.setUpPreloading(),_t.init(),Pt.resetRootComponentType(Ft.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return be.\u0275fac=function(q){return new(q||be)(e.LFG(e.zs3))},be.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac}),be})();function ca(be){return be.appInitializer.bind(be)}function Ts(be){return be.bootstrapListener.bind(be)}const da=new e.OlP("Router Initializer")},51062:(Xe,_e,p)=>{"use strict";p.d(_e,{Zw:()=>B,aw:()=>Ue,X$:()=>ae,sK:()=>Fe});var e=p(5e3),b=p(21086),_=p(54715),w=p(30567),g=p(61221),A=p(88514),E=p(72986),C=p(5154),O=p(24850),S=p(21406),m=p(87545);class B{}let L=(()=>{class ve extends B{getTranslation(z){return(0,b.of)({})}}return ve.\u0275fac=function(){let He;return function(I){return(He||(He=e.n5z(ve)))(I||ve)}}(),ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})();class J{}let ie=(()=>{class ve{handle(z){return z.key}}return ve.\u0275fac=function(z){return new(z||ve)},ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})();function ge(ve,He){if(ve===He)return!0;if(null===ve||null===He)return!1;if(ve!=ve&&He!=He)return!0;let me,Ae,Me,z=typeof ve;if(z==typeof He&&"object"==z){if(!Array.isArray(ve)){if(Array.isArray(He))return!1;for(Ae in Me=Object.create(null),ve){if(!ge(ve[Ae],He[Ae]))return!1;Me[Ae]=!0}for(Ae in He)if(!(Ae in Me)&&void 0!==He[Ae])return!1;return!0}if(!Array.isArray(He))return!1;if((me=ve.length)==He.length){for(Ae=0;Ae{Ne(He[I])?I in ve?z[I]=ue(ve[I],He[I]):Object.assign(z,{[I]:He[I]}):Object.assign(z,{[I]:He[I]})}),z}class Oe{}let T=(()=>{class ve extends Oe{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(z,I){let me;return me="string"==typeof z?this.interpolateString(z,I):"function"==typeof z?this.interpolateFunction(z,I):z,me}getValue(z,I){let me="string"==typeof I?I.split("."):[I];I="";do{I+=me.shift(),!X(z)||!X(z[I])||"object"!=typeof z[I]&&me.length?me.length?I+=".":z=void 0:(z=z[I],I="")}while(me.length);return z}interpolateFunction(z,I){return z(I)}interpolateString(z,I){return I?z.replace(this.templateMatcher,(me,Ae)=>{let Me=this.getValue(I,Ae);return X(Me)?Me:me}):z}}return ve.\u0275fac=function(){let He;return function(I){return(He||(He=e.n5z(ve)))(I||ve)}}(),ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})();class Z{}let W=(()=>{class ve extends Z{compile(z,I){return z}compileTranslations(z,I){return z}}return ve.\u0275fac=function(){let He;return function(I){return(He||(He=e.n5z(ve)))(I||ve)}}(),ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})();class Y{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 ee=new e.OlP("USE_STORE"),ce=new e.OlP("USE_DEFAULT_LANG"),le=new e.OlP("DEFAULT_LANGUAGE"),Pe=new e.OlP("USE_EXTEND");let Fe=(()=>{class ve{constructor(z,I,me,Ae,Me,pe=!0,we=!1,$e=!1,Je){this.store=z,this.currentLoader=I,this.compiler=me,this.parser=Ae,this.missingTranslationHandler=Me,this.useDefaultLang=pe,this.isolate=we,this.extend=$e,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(z){this.isolate?this._defaultLang=z:this.store.defaultLang=z}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(z){this.isolate?this._currentLang=z:this.store.currentLang=z}get langs(){return this.isolate?this._langs:this.store.langs}set langs(z){this.isolate?this._langs=z:this.store.langs=z}get translations(){return this.isolate?this._translations:this.store.translations}set translations(z){this.isolate?this._translations=z:this.store.translations=z}setDefaultLang(z){if(z===this.defaultLang)return;let I=this.retrieveTranslations(z);void 0!==I?(null==this.defaultLang&&(this.defaultLang=z),I.pipe((0,E.q)(1)).subscribe(me=>{this.changeDefaultLang(z)})):this.changeDefaultLang(z)}getDefaultLang(){return this.defaultLang}use(z){if(z===this.currentLang)return(0,b.of)(this.translations[z]);let I=this.retrieveTranslations(z);return void 0!==I?(this.currentLang||(this.currentLang=z),I.pipe((0,E.q)(1)).subscribe(me=>{this.changeLang(z)}),I):(this.changeLang(z),(0,b.of)(this.translations[z]))}retrieveTranslations(z){let I;return(void 0===this.translations[z]||this.extend)&&(this._translationRequests[z]=this._translationRequests[z]||this.getTranslation(z),I=this._translationRequests[z]),I}getTranslation(z){this.pending=!0;const I=this.currentLoader.getTranslation(z).pipe((0,C.d)(1),(0,E.q)(1));return this.loadingTranslations=I.pipe((0,O.U)(me=>this.compiler.compileTranslations(me,z)),(0,C.d)(1),(0,E.q)(1)),this.loadingTranslations.subscribe({next:me=>{this.translations[z]=this.extend&&this.translations[z]?Object.assign(Object.assign({},me),this.translations[z]):me,this.updateLangs(),this.pending=!1},error:me=>{this.pending=!1}}),I}setTranslation(z,I,me=!1){I=this.compiler.compileTranslations(I,z),this.translations[z]=(me||this.extend)&&this.translations[z]?ue(this.translations[z],I):I,this.updateLangs(),this.onTranslationChange.emit({lang:z,translations:this.translations[z]})}getLangs(){return this.langs}addLangs(z){z.forEach(I=>{-1===this.langs.indexOf(I)&&this.langs.push(I)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(z,I,me){let Ae;if(I instanceof Array){let Me={},pe=!1;for(let we of I)Me[we]=this.getParsedResult(z,we,me),(0,_.b)(Me[we])&&(pe=!0);if(pe){const we=I.map($e=>(0,_.b)(Me[$e])?Me[$e]:(0,b.of)(Me[$e]));return(0,w.D)(we).pipe((0,O.U)($e=>{let Je={};return $e.forEach((nt,ke)=>{Je[I[ke]]=nt}),Je}))}return Me}if(z&&(Ae=this.parser.interpolate(this.parser.getValue(z,I),me)),void 0===Ae&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Ae=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],I),me)),void 0===Ae){let Me={key:I,translateService:this};void 0!==me&&(Me.interpolateParams=me),Ae=this.missingTranslationHandler.handle(Me)}return void 0!==Ae?Ae:I}get(z,I){if(!X(z)||!z.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,S.b)(me=>(me=this.getParsedResult(me,z,I),(0,_.b)(me)?me:(0,b.of)(me))));{let me=this.getParsedResult(this.translations[this.currentLang],z,I);return(0,_.b)(me)?me:(0,b.of)(me)}}getStreamOnTranslationChange(z,I){if(!X(z)||!z.length)throw new Error('Parameter "key" required');return(0,g.z)((0,A.P)(()=>this.get(z,I)),this.onTranslationChange.pipe((0,m.w)(me=>{const Ae=this.getParsedResult(me.translations,z,I);return"function"==typeof Ae.subscribe?Ae:(0,b.of)(Ae)})))}stream(z,I){if(!X(z)||!z.length)throw new Error('Parameter "key" required');return(0,g.z)((0,A.P)(()=>this.get(z,I)),this.onLangChange.pipe((0,m.w)(me=>{const Ae=this.getParsedResult(me.translations,z,I);return(0,_.b)(Ae)?Ae:(0,b.of)(Ae)})))}instant(z,I){if(!X(z)||!z.length)throw new Error('Parameter "key" required');let me=this.getParsedResult(this.translations[this.currentLang],z,I);if((0,_.b)(me)){if(z instanceof Array){let Ae={};return z.forEach((Me,pe)=>{Ae[z[pe]]=z[pe]}),Ae}return z}return me}set(z,I,me=this.currentLang){this.translations[me][z]=this.compiler.compile(I,me),this.updateLangs(),this.onTranslationChange.emit({lang:me,translations:this.translations[me]})}changeLang(z){this.currentLang=z,this.onLangChange.emit({lang:z,translations:this.translations[z]}),null==this.defaultLang&&this.changeDefaultLang(z)}changeDefaultLang(z){this.defaultLang=z,this.onDefaultLangChange.emit({lang:z,translations:this.translations[z]})}reloadLang(z){return this.resetLang(z),this.getTranslation(z)}resetLang(z){this._translationRequests[z]=void 0,this.translations[z]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let z=window.navigator.languages?window.navigator.languages[0]:null;return z=z||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==z?(-1!==z.indexOf("-")&&(z=z.split("-")[0]),-1!==z.indexOf("_")&&(z=z.split("_")[0]),z):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let z=window.navigator.languages?window.navigator.languages[0]:null;return z=z||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,z}}return ve.\u0275fac=function(z){return new(z||ve)(e.LFG(Y),e.LFG(B),e.LFG(Z),e.LFG(Oe),e.LFG(J),e.LFG(ce),e.LFG(ee),e.LFG(Pe),e.LFG(le))},ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),ae=(()=>{class ve{constructor(z,I){this.translate=z,this._ref=I,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(z,I,me){let Ae=Me=>{this.value=void 0!==Me?Me:z,this.lastKey=z,this._ref.markForCheck()};if(me){let Me=this.translate.getParsedResult(me,z,I);(0,_.b)(Me.subscribe)?Me.subscribe(Ae):Ae(Me)}this.translate.get(z,I).subscribe(Ae)}transform(z,...I){if(!z||!z.length)return z;if(ge(z,this.lastKey)&&ge(I,this.lastParams))return this.value;let me;if(X(I[0])&&I.length)if("string"==typeof I[0]&&I[0].length){let Ae=I[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{me=JSON.parse(Ae)}catch(Me){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${I[0]}`)}}else"object"==typeof I[0]&&!Array.isArray(I[0])&&(me=I[0]);return this.lastKey=z,this.lastParams=I,this.updateValue(z,me),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Ae=>{this.lastKey&&Ae.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(z,me,Ae.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Ae=>{this.lastKey&&(this.lastKey=null,this.updateValue(z,me,Ae.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(z,me))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return ve.\u0275fac=function(z){return new(z||ve)(e.Y36(Fe,16),e.Y36(e.sBO,16))},ve.\u0275pipe=e.Yjl({name:"translate",type:ve,pure:!1}),ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),Ue=(()=>{class ve{static forRoot(z={}){return{ngModule:ve,providers:[z.loader||{provide:B,useClass:L},z.compiler||{provide:Z,useClass:W},z.parser||{provide:Oe,useClass:T},z.missingTranslationHandler||{provide:J,useClass:ie},Y,{provide:ee,useValue:z.isolate},{provide:ce,useValue:z.useDefaultLang},{provide:Pe,useValue:z.extend},{provide:le,useValue:z.defaultLanguage},Fe]}}static forChild(z={}){return{ngModule:ve,providers:[z.loader||{provide:B,useClass:L},z.compiler||{provide:Z,useClass:W},z.parser||{provide:Oe,useClass:T},z.missingTranslationHandler||{provide:J,useClass:ie},{provide:ee,useValue:z.isolate},{provide:ce,useValue:z.useDefaultLang},{provide:Pe,useValue:z.extend},{provide:le,useValue:z.defaultLanguage},Fe]}}}return ve.\u0275fac=function(z){return new(z||ve)},ve.\u0275mod=e.oAB({type:ve}),ve.\u0275inj=e.cJS({}),ve})()},86114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(69808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(40520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(70655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(21086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(61946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(61737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(36053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(36787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(92198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(22868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(80013),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(40943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(87545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(24850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(87224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(27221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(46227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(72986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(61709),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 _e;return function(e){return(_e||(_e=_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(_e){this.type=_e}}class OAuthSuccessEvent extends OAuthEvent{constructor(_e,p=null){super(_e),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(_e,p=null){super(_e),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(_e,p,e=null){super(_e),this.reason=p,this.params=e}}function b64DecodeUnicode(Xe){const _e=Xe.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(_e).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(_e){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},_e&&Object.assign(this,_e)}}class WebHttpUrlEncodingCodec{encodeKey(_e){return encodeURIComponent(_e)}encodeValue(_e){return encodeURIComponent(_e)}decodeKey(_e){return decodeURIComponent(_e)}decodeValue(_e){return decodeURIComponent(_e)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(_e){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let p=this.inferHashAlgorithm(_e.idTokenHeader),e=yield this.calcHash(_e.accessToken,p),_=base64UrlEncode(e.substr(0,e.length/2)),w=_e.idTokenClaims.at_hash.replace(/=/g,"");return _!==w&&(console.error("exptected at_hash: "+_),console.error("actual at_hash: "+w)),_===w})}inferHashAlgorithm(_e){let p=_e.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 b=e.indexOf("?");return e=e.substr(b>-1?b+1:1),this.parseQueryString(e)}parseQueryString(p){const e={};let b,_,w,g,A,E,C;if(null===p)return e;b=p.split("&");for(let O=0;O>6,_[g++]=128|63&A):A<55296||A>=57344?(_[g++]=224|A>>12,_[g++]=128|A>>6&63,_[g++]=128|63&A):(A=65536+((1023&A)<<10|1023&Xe.charCodeAt(++e)),_[g++]=240|A>>18,_[g++]=128|A>>12&63,_[g++]=128|A>>6&63,_[g++]=128|63&A);Xe=_}else{if("object"!==b)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(_e,!0).update(Xe).array());var E=[],C=[];for(e=0;e<64;++e){var O=Xe[e]||0;E[e]=92^O,C[e]=54^O}Sha256.call(this,_e,p),this.update(C),this.oKeyPad=E,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function(Xe){if(!this.finalized){var _e,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);_e=!0}for(var e,_,b=0,w=Xe.length,g=this.blocks;b>2]|=Xe[b]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(g[_>>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=g[16],this.start=_-64,this.hash(),this.hashed=!0):this.start=_}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,_e=this.lastByteIndex;Xe[16]=this.block,Xe[_e>>2]|=EXTRA[3&_e],this.block=Xe[16],_e>=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 E,m,J,ie,ge,X,Xe=this.h0,_e=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=this.blocks;for(E=16;E<64;++E)A[E]=A[E-16]+(((m=A[E-15])>>>7|m<<25)^(m>>>18|m<<14)^m>>>3)+A[E-7]+(((m=A[E-2])>>>17|m<<15)^(m>>>19|m<<13)^m>>>10)<<0;for(X=_e&p,E=0;E<64;E+=4)this.first?(this.is224?(J=300032,g=(m=A[0]-1413257819)-150054599<<0,e=m+24177077<<0):(J=704751109,g=(m=A[0]-210244248)-1521486534<<0,e=m+143694565<<0),this.first=!1):(g=e+(m=g+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&_^~b&w)+K[E]+A[E])<<0,e=m+(((Xe>>>2|Xe<<30)^(Xe>>>13|Xe<<19)^(Xe>>>22|Xe<<10))+((J=Xe&_e)^Xe&p^X))<<0),w=p+(m=w+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&_)+K[E+1]+A[E+1])<<0,p=m+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((ie=e&Xe)^e&_e^J))<<0,_=_e+(m=_+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&g^~w&b)+K[E+2]+A[E+2])<<0,_e=m+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((ge=p&e)^p&Xe^ie))<<0,b=Xe+(m=b+((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&w^~_&g)+K[E+3]+A[E+3])<<0,Xe=m+(((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+((X=_e&p)^_e&e^ge))<<0;this.h0=this.h0+Xe<<0,this.h1=this.h1+_e<<0,this.h2=this.h2+p<<0,this.h3=this.h3+e<<0,this.h4=this.h4+b<<0,this.h5=this.h5+_<<0,this.h6=this.h6+w<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var Xe=this.h0,_e=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=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[_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[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[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]+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[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];return this.is224||(A+=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]),A},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Xe=this.h0,_e=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=[Xe>>24&255,Xe>>16&255,Xe>>8&255,255&Xe,_e>>24&255,_e>>16&255,_e>>8&255,255&_e,p>>24&255,p>>16&255,p>>8&255,255&p,e>>24&255,e>>16&255,e>>8&255,255&e,b>>24&255,b>>16&255,b>>8&255,255&b,_>>24&255,_>>16&255,_>>8&255,255&_,w>>24&255,w>>16&255,w>>8&255,255&w];return this.is224||A.push(g>>24&255,g>>16&255,g>>8&255,255&g),A},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Xe=new ArrayBuffer(this.is224?28:32),_e=new DataView(Xe);return _e.setUint32(0,this.h0),_e.setUint32(4,this.h1),_e.setUint32(8,this.h2),_e.setUint32(12,this.h3),_e.setUint32(16,this.h4),_e.setUint32(20,this.h5),_e.setUint32(24,this.h6),this.is224||_e.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 _e,p=Xe,e=new Uint8Array(p.length);for(_e=0;_e{class Xe{calcHash(p,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})}toHashString2(p){let e="";for(let b of p)e+=String.fromCharCode(b);return e}toHashString(p){const e=new Uint8Array(p);let b="";for(let _ of e)b+=String.fromCharCode(_);return b}}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,b,_,w,g,A,E,C,O){var S;super(),this.ngZone=p,this.http=e,this.config=w,this.urlHelper=g,this.logger=A,this.crypto=E,this.dateTimeService=O,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=C,w||(w={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),_&&(this.tokenValidationHandler=_),w&&this.configure(w);try{b?this.setStorage(b):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(m){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",m)}if(this.checkLocalStorageAccessable()){const m=null===(S=null==window?void 0:window.navigator)||void 0===S?void 0:S.userAgent;((null==m?void 0:m.includes("MSIE "))||(null==m?void 0:m.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const p="test";try{return void 0!==window.localStorage&&(localStorage.setItem(p,p),localStorage.removeItem(p),!0)}catch(e){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,b=!0){let _=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(w=>{"token_received"===w.type?_=!0:"logout"===w.type&&(_=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_expires"===w.type&&(null==e||"any"===e||w.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(w=>{_&&this.refreshInternal(p,b).catch(g=>{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=[],b=this.validateUrlForHttps(p),_=this.validateUrlAgainstIssuer(p);return b||e.push("https for all urls required. Also for urls received by discovery."),_||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(){"undefined"!=typeof window?((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()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),b=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)(b)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),b=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)(b)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}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 b=this.dateTimeService.now();return Math.max(0,(e-p)*this.timeoutFactor-(b-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((e,b)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(_=>{if(!this.validateDiscoveryDocument(_))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void b("discovery_document_validation_error");this.loginUrl=_.authorization_endpoint,this.logoutUrl=_.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=_.grant_types_supported,this.issuer=_.issuer,this.tokenEndpoint=_.token_endpoint,this.userinfoEndpoint=_.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=_.jwks_uri,this.sessionCheckIFrameUrl=_.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(_),this.revocationEndpoint=_.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(w=>{const A=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:_,jwks:w});this.eventsSubject.next(A),e(A)}).catch(w=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",w)),b(w)})},_=>{this.logger.error("error loading discovery document",_),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",_)),b(_)}):b("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(b=>{this.jwks=b,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(b)},b=>{this.logger.error("error loading jwks",b),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",b)),e(b)}):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,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(p,e,b).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 b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:b,observe:"response",responseType:"text"}).subscribe(_=>{if(this.debug("userinfo received",JSON.stringify(_)),_.headers.get("content-type").startsWith("application/json")){let w=JSON.parse(_.body);const g=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!g.sub||w.sub!==g.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");w=Object.assign({},g,w),this._storage.setItem("id_token_claims_obj",JSON.stringify(w)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:w})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(_.body))},_=>{this.logger.error("error loading user info",_),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",_)),e(_)})})}fetchTokenUsingPasswordFlow(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:p,password:e},b)}fetchTokenUsingGrant(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(_=_.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_=_.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))_=_.set(w,this.customQueryParams[w]);for(const w of Object.keys(e))_=_.set(w,e[w]);return b=b.set("Content-Type","application/x-www-form-urlencoded"),new Promise((w,g)=>{this.http.post(this.tokenEndpoint,_,{headers:b}).subscribe(A=>{this.debug("tokenResponse",A),this.storeAccessTokenResponse(A.access_token,A.refresh_token,A.expires_in||this.fallbackAccessTokenExpirationTimeInSec,A.scope,this.extractRecognizedCustomParameters(A)),this.oidc&&A.id_token&&this.processIdToken(A.id_token,A.access_token).then(E=>{this.storeIdToken(E),w(A)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),w(A)},A=>{this.logger.error("Error performing ${grantType} flow",A),this.eventsSubject.next(new OAuthErrorEvent("token_error",A)),g(A)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,e)=>{let b=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")),_=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+w)}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 w of Object.getOwnPropertyNames(this.customQueryParams))b=b.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,b,{headers:_}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(w=>w.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(w.id_token,w.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(g=>this.storeIdToken(g)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(g=>w)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(w))).subscribe(w=>{this.debug("refresh tokenResponse",w),this.storeAccessTokenResponse(w.access_token,w.refresh_token,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,w.scope,this.extractRecognizedCustomParameters(w)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(w)},w=>{this.logger.error("Error refreshing token",w),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",w)),e(w)})})}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(b=>this.debug("tryLogin during silent refresh failed",b))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},e=!0){const b=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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const _=this.document.getElementById(this.silentRefreshIFrameName);_&&this.document.body.removeChild(_),this.silentRefreshSubject=b.sub;const w=this.document.createElement("iframe");w.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,p).then(O=>{w.setAttribute("src",O),this.silentRefreshShowIFrame||(w.style.display="none"),this.document.body.appendChild(w)});const A=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>O instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),E=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),C=(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__.S3)([A,E,C]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>{if(O instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===O.type||(O=new OAuthErrorEvent("silent_refresh_error",O)),this.eventsSubject.next(O),O;return"token_received"===O.type&&(O=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(O)),O})).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((b,_)=>{let A,g=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(g=p.windowRef,g.location.href=e):g=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const E=B=>{this.tryLogin({customHashFragment:B,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{O(),b(!0)},L=>{O(),_(L)})};g?A=window.setInterval(()=>{(!g||g.closed)&&(O(),_(new OAuthErrorEvent("popup_closed",{})))},500):_(new OAuthErrorEvent("popup_blocked",{}));const O=()=>{window.clearInterval(A),window.removeEventListener("storage",m),window.removeEventListener("message",S),null!==g&&g.close(),g=null},S=B=>{const L=this.processMessageEventMessage(B);L&&null!==L?(window.removeEventListener("storage",m),E(L)):console.log("false event firing")},m=B=>{"auth_hash"===B.key&&(window.removeEventListener("message",S),E(B.newValue))};window.addEventListener("message",S),window.addEventListener("storage",m)}))}calculatePopupFeatures(p){const e=p.height||470,b=p.width||500,_=window.screenLeft+(window.outerWidth-b)/2;return`location=no,toolbar=no,width=${b},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${_}`}processMessageEventMessage(p){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const b=p.data;return b.startsWith(e)?"#"+b.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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(),b=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),b.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",b,"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="",b="",_=!1,w={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const g=this;let A;A=b||this.redirectUri;const E=yield this.createAndSaveNonce();if(p=p?E+this.config.nonceStateSeparator+encodeURIComponent(p):E,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const C=g.loginUrl.indexOf("?")>-1?"&":"?";let O=g.scope;this.oidc&&!O.match(/(^|\s)openid($|\s)/)&&(O="openid "+O);let S=g.loginUrl+C+"response_type="+encodeURIComponent(g.responseType)+"&client_id="+encodeURIComponent(g.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(A)+"&scope="+encodeURIComponent(O);if(this.responseType.includes("code")&&!this.disablePKCE){const[m,B]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",B):this._storage.setItem("PKCE_verifier",B),S+="&code_challenge="+m,S+="&code_challenge_method=S256"}e&&(S+="&login_hint="+encodeURIComponent(e)),g.resource&&(S+="&resource="+encodeURIComponent(g.resource)),g.oidc&&(S+="&nonce="+encodeURIComponent(E)),_&&(S+="&prompt=none");for(const m of Object.keys(w))S+="&"+encodeURIComponent(m)+"="+encodeURIComponent(w[m]);if(this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))S+="&"+m+"="+encodeURIComponent(this.customQueryParams[m]);return S})}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 b={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(b=e),this.createLoginUrl(p,_,null,!1,b).then(this.config.openUri).catch(w=>{console.error("Error in initImplicitFlow",w),this.inImplicitFlow=!1})}initImplicitFlow(p="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(b=>"discovery_document_loaded"===b.type)).subscribe(b=>this.initImplicitFlowInternal(p,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const e=this;if(p.onTokenReceived){const b={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};p.onTokenReceived(b)}}storeAccessTokenResponse(p,e,b,_,w){if(this._storage.setItem("access_token",p),_&&!Array.isArray(_)?this._storage.setItem("granted_scopes",JSON.stringify(_.split(" "))):_&&Array.isArray(_)&&this._storage.setItem("granted_scopes",JSON.stringify(_)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),b){const g=1e3*b,E=this.dateTimeService.new().getTime()+g;this._storage.setItem("expires_at",""+E)}e&&this._storage.setItem("refresh_token",e),w&&w.forEach((g,A)=>{this._storage.setItem(A,g)})}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){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const e=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,b=this.getCodePartsFromUrl(e),_=b.code,w=b.state,g=b.session_state;if(!p.preventClearHashAfterLogin){const C=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,C)}let[A,E]=this.parseState(w);if(this.state=E,b.error){this.debug("error trying to login"),this.handleLoginError(p,b);const C=new OAuthErrorEvent("code_error",{},b);return this.eventsSubject.next(C),Promise.reject(C)}if(!p.disableNonceCheck){if(!A)return this.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!this.validateNonce(A)){const O=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(O),Promise.reject(O)}return this.storeSessionState(g),_&&(yield this.getTokenFromCode(_,p),this.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 b=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 _;_=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),_?b=b.set("code_verifier",_):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(b,e)}fetchAndProcessToken(p,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const _=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+_)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((_,w)=>{if(this.customQueryParams)for(let g of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(g,this.customQueryParams[g]);this.http.post(this.tokenEndpoint,p,{headers:b}).subscribe(g=>{this.debug("refresh tokenResponse",g),this.storeAccessTokenResponse(g.access_token,g.refresh_token,g.expires_in||this.fallbackAccessTokenExpirationTimeInSec,g.scope,this.extractRecognizedCustomParameters(g)),this.oidc&&g.id_token?this.processIdToken(g.id_token,g.access_token,e.disableNonceCheck).then(A=>{this.storeIdToken(A),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(g)}).catch(A=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",A)),console.error("Error validating tokens"),console.error(A),w(A)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(g))},g=>{console.error("Error getting token",g),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",g)),w(g)})})}tryLoginImplicitFlow(p=null){let e;e=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const b=e.state;let[_,w]=this.parseState(b);if(this.state=w,e.error){this.debug("error trying to login"),this.handleLoginError(p,e);const O=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(O),Promise.reject(O)}const g=e.access_token,A=e.id_token,E=e.session_state,C=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!g||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!b||this.oidc&&!A)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!E&&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(_)){const S=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(S),Promise.reject(S)}return this.requestAccessToken&&this.storeAccessTokenResponse(g,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,C),this.oidc?this.processIdToken(A,g,p.disableNonceCheck).then(O=>p.validationHandler?p.validationHandler({accessToken:g,idClaims:O.idTokenClaims,idToken:O.idToken,state:b}).then(S=>O):O).then(O=>(this.storeIdToken(O),this.storeSessionState(E),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(O=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),this.logger.error("Error validating tokens"),this.logger.error(O),Promise.reject(O))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let e=p,b="";if(p){const _=p.indexOf(this.config.nonceStateSeparator);_>-1&&(e=p.substr(0,_),b=p.substr(_+this.config.nonceStateSeparator.length))}return[e,b]}validateNonce(p){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?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,b=!1){const _=p.split("."),g=b64DecodeUnicode(this.padBase64(_[0])),A=JSON.parse(g),C=b64DecodeUnicode(this.padBase64(_[1])),O=JSON.parse(C);let S;if(S=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(O.aud)){if(O.aud.every(ge=>ge!==this.clientId)){const ge="Wrong audience: "+O.aud.join(",");return this.logger.warn(ge),Promise.reject(ge)}}else if(O.aud!==this.clientId){const ge="Wrong audience: "+O.aud;return this.logger.warn(ge),Promise.reject(ge)}if(!O.sub){const ge="No sub claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==O.sub){const ge=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${O.sub}`;return this.logger.warn(ge),Promise.reject(ge)}if(!O.iat){const ge="No iat claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(!this.skipIssuerCheck&&O.iss!==this.issuer){const ge="Wrong issuer: "+O.iss;return this.logger.warn(ge),Promise.reject(ge)}if(!b&&O.nonce!==S){const ge="Wrong nonce: "+O.nonce;return this.logger.warn(ge),Promise.reject(ge)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!O.at_hash){const ge="An at_hash is needed!";return this.logger.warn(ge),Promise.reject(ge)}const m=this.dateTimeService.now(),B=1e3*O.iat,L=1e3*O.exp,J=this.getClockSkewInMsec();if(B-J>=m||L+J<=m){const ge="Token has expired";return console.error(ge),console.error({now:m,issuedAtMSec:B,expiresAtMSec:L}),Promise.reject(ge)}const ie={accessToken:e,idToken:p,jwks:this.jwks,idTokenClaims:O,idTokenHeader:A,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(ge=>({idToken:p,idTokenClaims:O,idTokenClaimsJson:C,idTokenHeader:A,idTokenHeaderJson:g,idTokenExpiresAt:L})):this.checkAtHash(ie).then(ge=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ge){const X="Wrong at_hash";return this.logger.warn(X),Promise.reject(X)}return this.checkSignature(ie).then(X=>{const ue={idToken:p,idTokenClaims:O,idTokenClaimsJson:C,idTokenHeader:A,idTokenHeaderJson:g,idTokenExpiresAt:L};return this.disableAtHashCheck?ue:this.checkAtHash(ie).then(Oe=>{if(this.requestAccessToken&&!Oe){const T="Wrong at_hash";return this.logger.warn(T),Promise.reject(T)}return ue})})})}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 b=!1;"boolean"==typeof p&&(b=p,p={});const _=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(g=>this._storage.removeItem(g)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||b||!_&&!this.postLogoutRedirectUri)return;let w;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)w=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(_)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});_&&(g=g.set("id_token_hint",_));const A=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";A&&(g=g.set("post_logout_redirect_uri",A),e&&(g=g.set("state",e)));for(let E in p)g=g.set(E,p[E]);w=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+g.toString()}this.config.openUri(w)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(e){return p.saveNoncesInLocalStorage&&void 0!==window.localStorage?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 b=45,_="";const w="undefined"==typeof self?null:self.crypto||self.msCrypto;if(w){let g=new Uint8Array(b);w.getRandomValues(g),g.map||(g.map=Array.prototype.map),g=g.map(A=>e.charCodeAt(A%e.length)),_=String.fromCharCode.apply(null,g)}else for(;0"discovery_document_loaded"===b.type)).subscribe(b=>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 b={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(b=e),this.createLoginUrl(p,_,null,!1,b).then(this.config.openUri).catch(w=>{console.error("Error in initAuthorizationCodeFlow"),console.error(w)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const p=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(p,"sha-256")),p]})}extractRecognizedCustomParameters(p){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(b=>{p[b]&&e.set(b,JSON.stringify(p[b]))}),e}revokeTokenAndLogout(p={},e=!1){let b=this.revocationEndpoint,_=this.getAccessToken(),w=this.getRefreshToken();if(!_)return;let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+E)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const E of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(E,this.customQueryParams[E]);return new Promise((E,C)=>{let O,S;if(_){let m=g.set("token",_).set("token_type_hint","access_token");O=this.http.post(b,m,{headers:A})}else O=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(w){let m=g.set("token",w).set("token_type_hint","refresh_token");S=this.http.post(b,m,{headers:A})}else S=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(O=O.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>0===m.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(m))),S=S.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>0===m.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(m)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([O,S]).subscribe(m=>{this.logOut(p),E(m),this.logger.info("Token successfully revoked")},m=>{this.logger.error("Error revoking token",m),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",m)),C(m)})})}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(_e){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(_e)}}let DefaultOAuthInterceptor=(()=>{class Xe{constructor(p,e,b){this.oAuthService=p,this.errorHandler=e,this.moduleConfig=b}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 b=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(b)?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)(w=>!!w)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_received"===w.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(w=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(w=>{if(w){const A=p.headers.set("Authorization","Bearer "+w);p=p.clone({headers:A})}return e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(g=>this.errorHandler.handleError(g)))})):e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w))):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(_e){return Promise.resolve(null)}validateAtHash(_e){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?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")},43586:(Xe,_e,p)=>{"use strict";p.d(_e,{nu:()=>pe,Co:()=>$e});var e=p(5e3),b=p(93075),_=p(90508),w=p(74107),g=p(67322),A=p(91159),E=p(591),C=p(21086),O=p(36053),S=p(8929),m=p(87545),B=p(24850),L=p(1059),J=p(40943),ie=p(7625),ge=p(72986),X=p(92198),Ne=p(22868),ue=p(53435),Oe=p(15664),T=p(77446),Z=p(20773),W=p(47423),Y=p(25245),ee=p(69808),ce=p(29772);const le=["searchSelectInput"],Pe=["innerSelectSearch"];function Fe(Je,nt){if(1&Je){const ke=e.EpF();e.TgZ(0,"mat-checkbox",9),e.NdJ("change",function(he){return e.CHM(ke),e.oxw()._emitSelectAllBooleanToParent(he.checked)}),e.qZA()}if(2&Je){const ke=e.oxw();e.Q6J("color",null==ke.matFormField?null:ke.matFormField.color)("checked",ke.toggleAllCheckboxChecked)("indeterminate",ke.toggleAllCheckboxIndeterminate)("matTooltip",ke.toggleAllCheckboxTooltipMessage)("matTooltipPosition",ke.toogleAllCheckboxTooltipPosition)}}function ze(Je,nt){1&Je&&e._UZ(0,"mat-spinner",10)}function ae(Je,nt){1&Je&&e.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Ue(Je,nt){1&Je&&(e.TgZ(0,"mat-icon"),e._uU(1,"close"),e.qZA())}function ve(Je,nt){if(1&Je){const ke=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(ke),e.oxw()._reset(!0)}),e.YNc(1,ae,1,0,"ng-content",12),e.YNc(2,Ue,2,0,"ng-template",null,13,e.W1O),e.qZA()}if(2&Je){const ke=e.MAs(3),H=e.oxw();e.xp6(1),e.Q6J("ngIf",H.clearIcon)("ngIfElse",ke)}}function He(Je,nt){if(1&Je&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&Je){const ke=e.oxw();e.xp6(1),e.hij(" ",ke.noEntriesFoundLabel,"\n")}}const z=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],I=function(Je,nt){return{"mat-select-search-inner-multiple":Je,"mat-select-search-inner-toggle-all":nt}},me=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let Ae=(()=>{class Je{}return Je.\u0275fac=function(ke){return new(ke||Je)},Je.\u0275dir=e.lG2({type:Je,selectors:[["","ngxMatSelectSearchClear",""]]}),Je})(),pe=(()=>{class Je{constructor(ke,H,he,P=null,R,V=null){this.matSelect=ke,this.changeDetectorRef=H,this._viewportRuler=he,this.matOption=P,this.liveAnnouncer=R,this.matFormField=V,this.placeholderLabel="Suche",this.type="text",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 e.vpe,this.onTouched=Q=>{},this._options$=new E.X(null),this.optionsList$=this._options$.pipe((0,m.w)(Q=>Q?Q.changes.pipe((0,B.U)(Se=>Se.toArray()),(0,L.O)(Q.toArray())):(0,C.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,B.U)(Q=>Q?Q.length:0)),this._formControl=new b.NI(""),this._showNoEntriesFound$=(0,O.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,B.U)(([Q,Se])=>this.noEntriesFoundLabel&&Q&&Se===this.getOptionsLengthOffset())),this._onDestroy=new S.xQ}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(ke){this._options$.next(ke)}get _options(){return this._options$.getValue()}ngOnInit(){const ke="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(ke):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,ke]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[ke]=!0):this.matSelect.panelClass=ke,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,ie.R)(this._onDestroy)).subscribe(H=>{H?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,ge.q)(1)).pipe((0,ie.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,ie.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let H=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,ie.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const he=this._options.toArray(),P=he[this.getOptionsLengthOffset()],R=this.matSelect._keyManager;R&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(H,P)||!R.activeItem||!he.find(Q=>this.matSelect.compareWith(Q,R.activeItem)))&&R.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),H=P})})}),this._showNoEntriesFound$.pipe((0,ie.R)(this._onDestroy)).subscribe(H=>{this.matOption&&(H?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,ie.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,ie.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(ke){this.toggleAll.emit(ke)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(ke){(ke.key&&1===ke.key.length||ke.keyCode>=A.A&&ke.keyCode<=A.Z||ke.keyCode>=A.xE&&ke.keyCode<=A.aO||ke.keyCode===A.L_||this.preventHomeEndKeyPropagation&&(ke.keyCode===A.Sd||ke.keyCode===A.uR))&&ke.stopPropagation(),this.matSelect.multiple&&ke.key&&ke.keyCode===A.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&ke.keyCode===A.hY&&this.value&&(this._reset(!0),ke.stopPropagation())}_handleKeyup(ke){if(ke.keyCode===A.LH||ke.keyCode===A.JH){const H=this.matSelect._getAriaActiveDescendant(),he=this._options.toArray().findIndex(P=>P.id===H);if(-1!==he){const P=this._options.toArray()[he];this.liveAnnouncer.announce(P.viewValue+" "+this.getAriaIndex(he)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(ke){return 0===this.getOptionsLengthOffset()?ke+1:ke}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(ke){this._lastExternalInputValue=ke,this._formControl.setValue(ke),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(ke){this._formControl.valueChanges.pipe((0,X.h)(H=>H!==this._lastExternalInputValue),(0,Ne.b)(()=>this._lastExternalInputValue=void 0),(0,ie.R)(this._onDestroy)).subscribe(ke)}registerOnTouched(ke){this.onTouched=ke}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const ke=this.matSelect.panel.nativeElement,H=ke.scrollTop;this.searchSelectInput.nativeElement.focus(),ke.scrollTop=H}_reset(ke){this._formControl.setValue(""),ke&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,ie.R)(this._onDestroy)).subscribe(ke=>{let H=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!ke||!Array.isArray(ke))&&(ke=[]);const he=this.matSelect.options.map(P=>P.value);this.previousSelectedValues.forEach(P=>{!ke.some(R=>this.matSelect.compareWith(R,P))&&!he.some(R=>this.matSelect.compareWith(R,P))&&(ke.push(P),H=!0)})}this.previousSelectedValues=ke,H&&this.matSelect._onChange(ke)})):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 ke=this.getMatOptionHeight(),H=this.matSelect._keyManager.activeItemIndex||0,he=(0,_.CB)(H,this.matSelect.options,this.matSelect.optionGroups),P=(this.matOption?-1:0)+he+H,R=this.matSelect.panel.nativeElement.scrollTop,V=this.innerSelectSearch.nativeElement.offsetHeight,Q=Math.floor((256-V)/ke),Se=Math.round((R+V)/ke)-1;Se>=P?this.matSelect.panel.nativeElement.scrollTop=P*ke:Se+Q<=P&&(this.matSelect.panel.nativeElement.scrollTop=(P+1)*ke-(256-V))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let H,ke=this.innerSelectSearch.nativeElement;for(;ke=ke.parentElement;)if(ke.classList.contains("mat-select-panel")){H=ke;break}H&&(this.innerSelectSearch.nativeElement.style.width=H.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return Je.\u0275fac=function(ke){return new(ke||Je)(e.Y36(w.gD),e.Y36(e.sBO),e.Y36(ue.rL),e.Y36(_.ey,8),e.Y36(Oe.Kd),e.Y36(g.KE,8))},Je.\u0275cmp=e.Xpm({type:Je,selectors:[["ngx-mat-select-search"]],contentQueries:function(ke,H,he){if(1&ke&&e.Suo(he,Ae,5),2&ke){let P;e.iGM(P=e.CRH())&&(H.clearIcon=P.first)}},viewQuery:function(ke,H){if(1&ke&&(e.Gf(le,7,e.SBq),e.Gf(Pe,7,e.SBq)),2&ke){let he;e.iGM(he=e.CRH())&&(H.searchSelectInput=he.first),e.iGM(he=e.CRH())&&(H.innerSelectSearch=he.first)}},hostVars:2,hostBindings:function(ke,H){2&ke&&e.ekj("mat-select-search-inside-mat-option",H.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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:[e._Bn([{provide:b.JU,useExisting:(0,e.Gpc)(()=>Je),multi:!0}])],ngContentSelectors:me,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",""],[1,"mat-select-search-no-entries-found"]],template:function(ke,H){1&ke&&(e.F$t(z),e._UZ(0,"input",0),e.TgZ(1,"div",1,2),e.YNc(3,Fe,1,5,"mat-checkbox",3),e.TgZ(4,"input",4,5),e.NdJ("keydown",function(P){return H._handleKeydown(P)})("keyup",function(P){return H._handleKeyup(P)})("blur",function(){return H.onBlur()}),e.qZA(),e.YNc(6,ze,1,0,"mat-spinner",6),e.YNc(7,ve,4,2,"button",7),e.Hsn(8),e.qZA(),e.YNc(9,He,2,1,"div",8),e.ALo(10,"async")),2&ke&&(e.xp6(1),e.Q6J("ngClass",e.WLB(11,I,H.matSelect.multiple,H._isToggleAllCheckboxVisible())),e.xp6(2),e.Q6J("ngIf",H._isToggleAllCheckboxVisible()),e.xp6(1),e.Q6J("type",H.type)("formControl",H._formControl)("placeholder",H.placeholderLabel),e.uIk("aria-label",H.ariaLabel),e.xp6(2),e.Q6J("ngIf",H.searching),e.xp6(1),e.Q6J("ngIf",!H.hideClearSearchButton&&H.value&&!H.searching),e.xp6(2),e.Q6J("ngIf",e.lcZ(10,9,H._showNoEntriesFound$)))},directives:[T.oG,Z.$g,W.lW,Y.Hw,ee.mk,ee.O5,ce.gM,b.Fj,b.JJ,b.oH],pipes:[ee.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}),Je})(),$e=(()=>{class Je{}return Je.\u0275fac=function(ke){return new(ke||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({imports:[[ee.ez,b.UX,W.ot,T.p9,Y.Ps,Z.Cq,ce.AV]]}),Je})()},4147:Xe=>{"use strict";Xe.exports={i8:"8.0.0"}}},Xe=>{Xe(Xe.s=9193)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/runtime.9f80791e2b30e159.js b/dist/apps/admin-gui/runtime.de62e81bee9162b5.js similarity index 92% rename from dist/apps/admin-gui/runtime.9f80791e2b30e159.js rename to dist/apps/admin-gui/runtime.de62e81bee9162b5.js index e5260dfe5..db2a3dbc4 100644 --- a/dist/apps/admin-gui/runtime.9f80791e2b30e159.js +++ b/dist/apps/admin-gui/runtime.de62e81bee9162b5.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(p=>r.O[p](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+"."+{142:"ec51f521514a6ae6",228:"d7073fee712f12e7",243:"5f974848de01a8dc",357:"b680344f1c9676d6",417:"897012db208fbc0e",493:"2871d9551d589868",641:"e4764992bfd886ec",902:"c803c25ce3764f9f",958:"41c0822d13d9697b"}[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(b);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(p)),_)return _(p)},b=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=>{"undefined"!=typeof Symbol&&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},"undefined"!=typeof trustedTypes&&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),b=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+b+")",d.name="ChunkLoadError",d.type=s,d.request=b,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(b=>0!==e[b])){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(p=>r.O[p](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+"."+{142:"ec51f521514a6ae6",243:"6d3d1f3024f100ed",357:"b680344f1c9676d6",417:"e549ef1f1f337e2f",462:"885ced9d1174fe3f",493:"2871d9551d589868",641:"e4764992bfd886ec",858:"89bd34484ea4bff6",958:"4cd11592a5992446"}[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(b);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(p)),_)return _(p)},b=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=>{"undefined"!=typeof Symbol&&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},"undefined"!=typeof trustedTypes&&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),b=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+b+")",d.name="ChunkLoadError",d.type=s,d.request=b,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(b=>0!==e[b])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);cPasswordReset - + - + diff --git a/dist/apps/password-reset/main.1e14ad4339b56377.js b/dist/apps/password-reset/main.392243c53a1c3b01.js similarity index 62% rename from dist/apps/password-reset/main.1e14ad4339b56377.js rename to dist/apps/password-reset/main.392243c53a1c3b01.js index 80f169ae4..8c056638a 100644 --- a/dist/apps/password-reset/main.1e14ad4339b56377.js +++ b/dist/apps/password-reset/main.392243c53a1c3b01.js @@ -1 +1 @@ -(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{2342:(z,W,E)=>{"use strict";var T=E(9808),g=E(5e3);class B extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class j extends B{static makeCurrent(){(0,T.HT)(new j)}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 I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function $(o){Y=Y||document.createElement("a"),Y.setAttribute("href",o);const a=Y.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let Y,I=null;const U=new g.OlP("TRANSITION_ID"),L=[{provide:g.ip1,useFactory:function F(o,a,e){return()=>{e.get(g.CZH).donePromise.then(()=>{const t=(0,T.q)(),s=a.querySelectorAll(`style[ng-transition="${o}"]`);for(let c=0;c{const c=a.findTestabilityInTree(t,s);if(null==c)throw new Error("Could not find testability for element.");return c},g.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),g.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),g.dqk.frameworkStabilizers||(g.dqk.frameworkStabilizers=[]),g.dqk.frameworkStabilizers.push(t=>{const s=g.dqk.getAllAngularTestabilities();let c=s.length,l=!1;const n=function(i){l=l||i,c--,0==c&&t(l)};s.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const s=a.getTestability(e);return null!=s?s:t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let Q=(()=>{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const ie=new g.OlP("EventManagerPlugins");let re=(()=>{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 c=0;c{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=g.Yz7({token:o,factory:o.\u0275fac}),o})(),xe=(()=>{class o extends le{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(c=>{const l=this._doc.createElement("style");l.textContent=c,s.push(t.appendChild(l))})}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(Ae),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ae))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function Ae(o){(0,T.q)().remove(o)}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/"},ft=/%COMP%/g;function he(o,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return o;!1===o(a)&&(a.preventDefault(),a.returnValue=!1)}}let we=(()=>{class o{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new ce(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case g.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Bi(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case g.ifc.ShadowDom:return new ze(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=he(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)(g.LFG(re),g.LFG(xe),g.LFG(g.AFp))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class ce{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Be[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){a.appendChild(e)}insertBefore(a,e,t){a&&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 c=Be[s];c?a.setAttributeNS(c,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const s=Be[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&(g.JOm.DashCase|g.JOm.Important)?a.style.setProperty(e,t,s&g.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&g.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,pe(t)):this.eventManager.addEventListener(a,e,pe(t))}}class Bi extends ce{constructor(a,e,t,s){super(a),this.component=t;const c=he(s+"-"+t.id,t.styles,[]);e.addStyles(c),this.contentAttr=function Ze(o){return"_ngcontent-%COMP%".replace(ft,o)}(s+"-"+t.id),this.hostAttr=function oe(o){return"_nghost-%COMP%".replace(ft,o)}(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 ze extends ce{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 c=he(s.id,s.styles,[]);for(let l=0;l{class o extends ne{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)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const yn=["alt","control","meta","shift"],or={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Vt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Er={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let wn=(()=>{class o extends ne{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,s){const c=o.parseEventName(t),l=o.eventCallback(c.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,c.domEventName,l))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const c=o._normalizeKey(t.pop());let l="";if(yn.forEach(i=>{const r=t.indexOf(i);r>-1&&(t.splice(r,1),l+=i+".")}),l+=c,0!=t.length||0===c.length)return null;const n={};return n.domEventName=s,n.fullKey=l,n}static getEventFullKey(e){let t="",s=function si(o){let a=o.key;if(null==a){if(a=o.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===o.location&&Vt.hasOwnProperty(a)&&(a=Vt[a]))}return or[a]||a}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),yn.forEach(c=>{c!=s&&Er[c](e)&&(t+=c+".")}),t+=s,t}static eventCallback(e,t,s){return c=>{o.getEventFullKey(c)===e&&s.runGuarded(()=>t(c))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const Sr=(0,g.eFA)(g._c5,"browser",[{provide:g.Lbi,useValue:T.bD},{provide:g.g9A,useValue:function lr(){j.makeCurrent(),G.init()},multi:!0},{provide:T.K0,useFactory:function Ya(){return(0,g.RDi)(document),document},deps:[]}]),cr=[{provide:g.zSh,useValue:"root"},{provide:g.qLn,useFactory:function Qa(){return new g.qLn},deps:[]},{provide:ie,useClass:tt,multi:!0,deps:[T.K0,g.R0b,g.Lbi]},{provide:ie,useClass:wn,multi:!0,deps:[T.K0]},{provide:we,useClass:we,deps:[re,xe,g.AFp]},{provide:g.FYo,useExisting:we},{provide:le,useExisting:xe},{provide:xe,useClass:xe,deps:[T.K0]},{provide:g.dDg,useClass:g.dDg,deps:[g.R0b]},{provide:re,useClass:re,deps:[ie,g.R0b]},{provide:T.JF,useClass:Q,deps:[]}];let Mr=(()=>{class o{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:o,providers:[{provide:g.AFp,useValue:e.appId},{provide:U,useExisting:g.AFp},L]}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(o,12))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:cr,imports:[T.ez,g.hGG]}),o})(),Oi=(()=>{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)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function mi(){return new Oi((0,g.LFG)(T.K0))}(),t},providedIn:"root"}),o})();"undefined"!=typeof window&&window;let xn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):g.LFG(ia),t},providedIn:"root"}),o})(),ia=(()=>{class o extends xn{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case g.q3G.NONE:return t;case g.q3G.HTML:return(0,g.qzn)(t,"HTML")?(0,g.z3N)(t):(0,g.EiD)(this._doc,String(t)).toString();case g.q3G.STYLE:return(0,g.qzn)(t,"Style")?(0,g.z3N)(t):t;case g.q3G.SCRIPT:if((0,g.qzn)(t,"Script"))return(0,g.z3N)(t);throw new Error("unsafe value used in a script context");case g.q3G.URL:return(0,g.yhl)(t),(0,g.qzn)(t,"URL")?(0,g.z3N)(t):(0,g.mCW)(String(t));case g.q3G.RESOURCE_URL:if((0,g.qzn)(t,"ResourceURL"))return(0,g.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,g.JVY)(e)}bypassSecurityTrustStyle(e){return(0,g.L6k)(e)}bypassSecurityTrustScript(e){return(0,g.eBb)(e)}bypassSecurityTrustUrl(e){return(0,g.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,g.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function jl(o){return new ia(o.get(T.K0))}(g.LFG(g.zs3)),t},providedIn:"root"}),o})();var y=E(520);class Ot{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Ft=new g.OlP("basePath");class je{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 Tn=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}convertAttributeToUnique(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}createAttributeDefinition(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}deleteAttributeDefinition(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}deleteAttributeDefinitions(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAllAttributeDefinitions(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getAttribute(e,t,s,c,l,n,i,r,d,u,f,b="body",D=!1,q){let se=new y.LE({encoder:this.encoder});null!=e&&(se=this.addToHttpParams(se,e,"attributeName")),null!=t&&(se=this.addToHttpParams(se,t,"attributeId")),null!=s&&(se=this.addToHttpParams(se,s,"facility")),null!=c&&(se=this.addToHttpParams(se,c,"user")),null!=l&&(se=this.addToHttpParams(se,l,"vo")),null!=n&&(se=this.addToHttpParams(se,n,"resource")),null!=i&&(se=this.addToHttpParams(se,i,"member")),null!=r&&(se=this.addToHttpParams(se,r,"group")),null!=d&&(se=this.addToHttpParams(se,d,"host")),null!=u&&(se=this.addToHttpParams(se,u,"userExtSource")),null!=f&&(se=this.addToHttpParams(se,f,"key"));let rt,De=this.defaultHeaders;rt=this.configuration.lookupCredential("BasicAuth"),rt&&(De=De.set("Authorization","Basic "+rt)),rt=this.configuration.lookupCredential("BearerAuth"),rt&&(De=De.set("Authorization","Bearer "+rt));let Qe=q&&q.httpHeaderAccept;void 0===Qe&&(Qe=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Qe&&(De=De.set("Accept",Qe));let vt=q&&q.context;void 0===vt&&(vt=new y.qT);let jn="json";return Qe&&(jn=Qe.startsWith("text")?"text":this.configuration.isJsonMime(Qe)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:vt,params:se,responseType:jn,withCredentials:this.configuration.withCredentials,headers:De,observe:b,reportProgress:D})}getAttributeDefinitionById(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeDefinitionByName(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeDefinitionsByNamespace(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getAttributeModulesDependenciesGraphText(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributePolicyCollections(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeRights(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributesDefinitionWithRights(e,t,s,c,l,n,i,r,d="body",u=!1,f){let b=new y.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=s&&(b=this.addToHttpParams(b,s,"vo")),null!=c&&(b=this.addToHttpParams(b,c,"group")),null!=l&&(b=this.addToHttpParams(b,l,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=r&&(b=this.addToHttpParams(b,r,"userExtSource"));let q,D=this.defaultHeaders;q=this.configuration.lookupCredential("BasicAuth"),q&&(D=D.set("Authorization","Basic "+q)),q=this.configuration.lookupCredential("BearerAuth"),q&&(D=D.set("Authorization","Bearer "+q));let se=f&&f.httpHeaderAccept;void 0===se&&(se=this.configuration.selectHeaderAccept(["application/json"])),void 0!==se&&(D=D.set("Accept",se));let De=f&&f.context;void 0===De&&(De=new y.qT);let rt="json";return se&&(rt=se.startsWith("text")?"text":this.configuration.isJsonMime(se)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:De,params:b,responseType:rt,withCredentials:this.configuration.withCredentials,headers:D,observe:d,reportProgress:u})}getEntitylessAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getEntitylessAttributesByKey(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getEntitylessAttributesByName(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getEntitylessAttributesWithKeys(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"keys[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getEntitylessKeys(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getFacilityAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getFacilityAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getFacilityAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getFacilityAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getFacilityResourceUserMemberAttributes(e,t,s,c,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==c)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"facility")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),null!=s&&(r=this.addToHttpParams(r,s,"user")),null!=c&&(r=this.addToHttpParams(r,c,"member"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupResourceAttributeById(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getGroupResourceAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getHostAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getHostAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getHostAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getHostAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getLogins(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getMemberAndUserAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberAndUserAttributesByNames(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(D=>{i=this.addToHttpParams(i,D,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getMemberAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberGroupAndUserAttributesByNames(e,t,s,c,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==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"member")),null!=t&&(r=this.addToHttpParams(r,t,"group")),s&&s.forEach(q=>{r=this.addToHttpParams(r,q,"attrNames[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberGroupAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberGroupAttributesByNames(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attrNames[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,c,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==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"member")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),s&&s.forEach(q=>{r=this.addToHttpParams(r,q,"attrNames[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesDefinition(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesFacility(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesFacilityService(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesFacilityServices(e,t,s="body",c=!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 y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesGroupResourceService(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getRequiredAttributesHostService(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesMember(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesMemberGroup(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,c,l,n="body",i=!1,r){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==c)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=s&&(d=this.addToHttpParams(d,s,"group")),null!=c&&(d=this.addToHttpParams(d,c,"member")),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let q="json";return b&&(q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:D,params:d,responseType:q,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,c,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 r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"service")),null!=t&&(r=this.addToHttpParams(r,t,"group")),null!=s&&(r=this.addToHttpParams(r,s,"member")),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,c,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 r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"service")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),null!=s&&(r=this.addToHttpParams(r,s,"member")),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesResourceService(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesResourceServices(e,t,s="body",c=!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 y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesUserFacility(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesVoService(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getResourceAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceGroupAndGroupAttributes(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,c,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==c)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"resource")),null!=t&&(r=this.addToHttpParams(r,t,"group")),s&&s.forEach(q=>{r=this.addToHttpParams(r,q,"attrNames[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceGroupMemberAttributesByNames(e,t,s,c,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==c)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"resource")),null!=t&&(r=this.addToHttpParams(r,t,"group")),null!=s&&(r=this.addToHttpParams(r,s,"member")),c&&c.forEach(q=>{r=this.addToHttpParams(r,q,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getUserAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserFacilityAttributeById(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getUserFacilityAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getVoAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getVoAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getVoAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVoAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,c,l,n,i="body",r=!1,d){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==c)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=s&&(u=this.addToHttpParams(u,s,"group")),null!=c&&(u=this.addToHttpParams(u,c,"user")),null!=l&&(u=this.addToHttpParams(u,l,"member")),n&&n.forEach(De=>{u=this.addToHttpParams(u,De,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(f=f.set("Accept",D));let q=d&&d.context;void 0===q&&(q=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:q,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:r})}removeAttributesForFacilityResourceUserMember(e,t,s,c,l,n="body",i=!1,r){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==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=s&&(d=this.addToHttpParams(d,s,"user")),null!=c&&(d=this.addToHttpParams(d,c,"member")),l&&l.forEach(se=>{d=this.addToHttpParams(d,se,"attributes[]")});let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let q="json";return b&&(q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:D,params:d,responseType:q,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeFacilityAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeFacilityAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeGroupAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeGroupAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeGroupResourceAttribute(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeGroupResourceAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,c,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==c)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"group")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),s&&s.forEach(q=>{r=this.addToHttpParams(r,q,"attributes[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}removeHostAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeHostAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeMemberAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeMemberAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeMemberAttributesWorkWithUserAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberGroupAttribute(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberGroupAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,c,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==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"member")),null!=t&&(r=this.addToHttpParams(r,t,"group")),s&&s.forEach(q=>{r=this.addToHttpParams(r,q,"attributes[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberResourceAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeResourceAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeResourceAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUesAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserExtSourceAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserFacilityAttribute(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeUserFacilityAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeVoAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeVoAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}setAttributePolicyCollections(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setAttributeRights(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setEntitylessAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityResourceGroupUserMemberAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityResourceUserMemberAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupResourceAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupResourceAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setHostAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setHostAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberGroupAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberGroupAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberGroupWithUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberResourceAndUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberResourceAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberResourceAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberWithUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceGroupAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceGroupWithGroupAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserExtSourceAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserExtSourceAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserFacilityAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserFacilityAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setVoAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setVoAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}updateAttributeDefinition(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Wi=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getAuthzRichAdmins(e,t,s,c,l,n,i="body",r=!1,d){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==c)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=s&&(u=this.addToHttpParams(u,s,"complementaryObjectName")),c&&c.forEach(De=>{u=this.addToHttpParams(u,De,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(f=f.set("Accept",D));let q=d&&d.context;void 0===q&&(q=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:q,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:r})}getFacilitiesWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupRoleNames(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupRoles(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupsWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getLoggedUser(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getPerunPrincipal(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getSecurityTeamsWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserRoleNames(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserRoles(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVosWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}isFacilityAdmin(e,t="body",s=!1,c){let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isGroupAdmin(e,t="body",s=!1,c){let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isPerunAdmin(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}isVoAdmin(e,t="body",s=!1,c){let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}keepAlive(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setRoleWithUserComplementaryObject(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}unsetRoleWithGroupComplementaryObject(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}unsetRoleWithUserComplementaryObject(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),_i=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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,c,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==c)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"memberId")),null!=t&&(r=this.addToHttpParams(r,t,"queue")),null!=s&&(r=this.addToHttpParams(r,s,"subject")),null!=c&&(r=this.addToHttpParams(r,c,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}sentMessageToRTWithVo(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,c,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==c)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"voId")),null!=t&&(r=this.addToHttpParams(r,t,"queue")),null!=s&&(r=this.addToHttpParams(r,s,"subject")),null!=c&&(r=this.addToHttpParams(r,c,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Sn=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}addUserExtSource(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}anonymizeUser(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}changeNonAuthzPasswordByToken(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"token")),null!=t&&(i=this.addToHttpParams(i,t,"password")),null!=s&&(i=this.addToHttpParams(i,s,"lang"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}changePasswordForLogin(e,t,s,c,l,n="body",i=!1,r){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==s)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"login")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=s&&(d=this.addToHttpParams(d,s,"newPassword")),null!=c&&(d=this.addToHttpParams(d,c,"oldPassword")),null!=l&&(d=this.addToHttpParams(d,l,"checkOldPassword"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let q="json";return b&&(q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:D,params:d,responseType:q,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}changePasswordForUser(e,t,s,c,l,n="body",i=!1,r){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==s)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=s&&(d=this.addToHttpParams(d,s,"newPassword")),null!=c&&(d=this.addToHttpParams(d,c,"oldPassword")),null!=l&&(d=this.addToHttpParams(d,l,"checkOldPassword"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let q="json";return b&&(q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:D,params:d,responseType:q,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}checkPasswordResetRequestByTokenIsValid(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}checkPasswordStrength(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"password")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}createAlternativePassword(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==s)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==c)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"user")),null!=t&&(r=this.addToHttpParams(r,t,"description")),null!=s&&(r=this.addToHttpParams(r,s,"loginNamespace")),null!=c&&(r=this.addToHttpParams(r,c,"password"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}createServiceUser(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}deleteAlternativePassword(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}deletePasswordForLogin(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}deletePasswordForUser(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}deleteUser(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}findRichUsers(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}findRichUsersWithAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}findUsers(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}generateAccountForName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getAllRichUsersWithAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAssignedRichResourcesForUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupsForFacilityWhereUserIsActive(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupsForResourceWhereUserIsActive(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupsInVoWhereUserIsAdmin(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupsWhereUserIsAdmin(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getPendingPreferredEmailChanges(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUserExtSources(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUserWithAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersWithAttributesByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersWithoutVoWithAttributes(e,t="body",s=!1,c){let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getSpecificUsersByUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getSponsorsForMember(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getSponsorsForMemberByVoAndLogin(e,t,s,c,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 r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"vo")),null!=t&&(r=this.addToHttpParams(r,t,"extSourceName")),null!=s&&(r=this.addToHttpParams(r,s,"extLogin")),c&&c.forEach(q=>{r=this.addToHttpParams(r,q,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserById(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceById(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSources(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourcesByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsers(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getUsersByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsersBySpecificUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsersPage(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}getVosWhereUserIsAdmin(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVosWhereUserIsMember(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isLoginAvailable(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}loginExist(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeSpecificUserOwner(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserExtSource(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}requestPreferredEmailChange(e,t,s,c,l,n,i="body",r=!1,d){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 u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"email")),null!=s&&(u=this.addToHttpParams(u,s,"lang")),null!=c&&(u=this.addToHttpParams(u,c,"linkPath")),null!=l&&(u=this.addToHttpParams(u,l,"customUrl")),null!=n&&(u=this.addToHttpParams(u,n,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(f=f.set("Accept",D));let q=d&&d.context;void 0===q&&(q=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:q,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:r})}reservePasswordForLogin(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==s)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"login")),null!=t&&(i=this.addToHttpParams(i,t,"namespace")),null!=s&&(i=this.addToHttpParams(i,s,"password"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}reservePasswordForUser(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==s)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"namespace")),null!=s&&(i=this.addToHttpParams(i,s,"password"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}reserveRandomPassword(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}updateUser(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}updateUserExtSourceLastAccess(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}validatePasswordForLogin(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}validatePasswordForUser(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}validatePreferredEmailChangeWithToken(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xe=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Of=(()=>{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:je,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(o,12),g.LFG(y.eN,8))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[],imports:[[]]}),o})();var st=(()=>{return(o=st||(st={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",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",st;var o})();let Ff=(()=>{class o{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const s=this.fetchPolicyWithAllIncludedPolicies(e);let c=[];for(const n of s)c=c.concat(n.perunRoles);const l=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(c,l)}principalHasRole(e,t,s){let c=t;return t.startsWith("Rich")&&(c=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][c])&&this.principal.roles[e][c].includes(Number(s.toString()))}canManageFacilities(){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER,st.FACILITYADMIN,st.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(st.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(st.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(st.PERUNADMIN,st.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(st.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(st.PERUNADMIN,st.VOOBSERVER,st.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{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.roleName)}),e.sort(),"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 c=new Map;this.setRolesAuthorization(t,e,c);for(const l of c.values())if(l.readAuth||l.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const c of e){let l=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===c){l=l.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const D of Object.keys(b.entitiesToManage))i="User"===D?[D].concat(i):i.concat(D);break}const r=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(l,r),u=this.resolveAuthorization(n,r);s.set(c,{readAuth:d,manageAuth:u,modes:i})}}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""}resolveAuthorization(e,t){for(const s of e){let c=!0;for(const l of Object.keys(s)){const n=s[l];if(null===n)this.principalRoles.has(l)||(c=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(l,n,i)){c=!1;break}}else c=!1;if(!c)break}if(c)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 c=s.beanName;switch(s.beanName.startsWith("Rich")&&(c=s.beanName.substring(4)),t[c]?t[c].push(s.id):t[c]=[s.id],c){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 l=s.shift();if(t.has(l))continue;const n=this.getPerunPolicy(l);if(!n)return[];t.set(l,n),s=s.concat(n.includePolicies)}const c=[];for(const l of t.values())c.push(l);return c}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.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const s=this.instanceConfig.brandings[this.branding];for(let c=0;c(0,cn.k)(s)?t(...s):t(s))):new Ci.y(s=>{Kd(o,a,function c(l){s.next(arguments.length>1?Array.prototype.slice.call(arguments):l)},s,e)})}function Kd(o,a,e,t,s){let c;if(function Zd(o){return o&&"function"==typeof o.addEventListener&&"function"==typeof o.removeEventListener}(o)){const l=o;o.addEventListener(a,e,s),c=()=>l.removeEventListener(a,e,s)}else if(function ro(o){return o&&"function"==typeof o.on&&"function"==typeof o.off}(o)){const l=o;o.on(a,e),c=()=>l.off(a,e)}else if(function Wl(o){return o&&"function"==typeof o.addListener&&"function"==typeof o.removeListener}(o)){const l=o;o.addListener(a,e),c=()=>l.removeListener(a,e)}else{if(!o||!o.length)throw new TypeError("Invalid event target");for(let l=0,n=o.length;l0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Ql=1;const jf=Promise.resolve(),es={};function ts(o){return o in es&&(delete es[o],!0)}const ao={setImmediate(o){const a=Ql++;return es[a]=!0,jf.then(()=>ts(a)&&o()),a},clearImmediate(o){ts(o)}},H=new class jt extends yi.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,s=-1,c=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++s0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=ao.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(ao.clearImmediate(e),a.scheduled=void 0)}});var k=E(353),M=E(826),V=E(9054);class de{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new me(a,this.durationSelector))}}class me extends M.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(a)}catch(s){return this.destination.error(s)}const t=(0,V.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,s){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Oe(o){return!(0,cn.k)(o)&&o-parseFloat(o)+1>=0}var Mt=E(2866);function xt(o=0,a,e){let t=-1;return Oe(a)?t=Number(a)<1?1:Number(a):(0,Mt.K)(a)&&(e=a),(0,Mt.K)(e)||(e=k.P),new Ci.y(s=>{const c=Oe(o)?o:+o-e.now();return e.schedule(ut,c,{index:0,period:t,subscriber:s})})}function ut(o){const{index:a,period:e,subscriber:t}=o;if(t.next(a),!t.closed){if(-1===e)return t.complete();o.index=a+1,this.schedule(o,e)}}function gt(o,a=k.P){return function X(o){return function(e){return e.lift(new de(o))}}(()=>xt(o,a))}var mt=E(2198);let kt;try{kt="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(o){kt=!1}let wi,Je=(()=>{class o{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&&!kt)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.Lbi))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Yi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();const Ue=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Rr(){if(wi)return wi;if("object"!=typeof document||!document)return wi=new Set(Ue),wi;let o=document.createElement("input");return wi=new Set(Ue.filter(a=>(o.setAttribute("type",a),o.type===a))),wi}let kr,oa,_t;function dn(o){return function so(){if(null==kr&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>kr=!0}))}finally{kr=kr||!1}return kr}()?o:!!o.capture}function tC(){if(null==oa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return oa=!1,oa;if("scrollBehavior"in document.documentElement.style)oa=!0;else{const o=Element.prototype.scrollTo;oa=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return oa}function Ut(o){if(function Nf(){if(null==_t){const o="undefined"!=typeof document?document.head:null;_t=!(!o||!o.createShadowRoot&&!o.attachShadow)}return _t}()){const a=o.getRootNode?o.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Jl(){let o="undefined"!=typeof document&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const a=o.shadowRoot.activeElement;if(a===o)break;o=a}return o}function Di(o){return o.composedPath?o.composedPath()[0]:o.target}function un(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const tu=new g.OlP("cdk-dir-doc",{providedIn:"root",factory:function iu(){return(0,g.f3M)(T.K0)}}),wx=/^(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 g.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function iC(o){const a=(null==o?void 0:o.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wx.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(tu,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ti=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),zf=(()=>{class o{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.xQ,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 Ci.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(gt(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,mt.h)(c=>!c||s.indexOf(c)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,c)=>{this._scrollableContainsElement(c,e)&&t.push(c)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Lt(t),c=e.getElementRef().nativeElement;do{if(s==c)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>no(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)(g.LFG(g.R0b),g.LFG(Je),g.LFG(T.K0,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),la=(()=>{class o{constructor(e,t,s){this._platform=e,this._change=new He.xQ,this._changeListener=c=>{this._change.next(c)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const c=this._getWindow();c.addEventListener("resize",this._changeListener),c.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,c=s.getBoundingClientRect();return{top:-c.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-c.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(gt(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)(g.LFG(Je),g.LFG(g.R0b),g.LFG(T.K0,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),qn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),ca=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ti,Yi,qn],ti,qn]}),o})();class Nt{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 co extends Nt{constructor(a,e,t,s){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class ou extends Nt{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}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 Gf extends Nt{constructor(a){super(),this.element=a instanceof g.SBq?a.nativeElement:a}}class lu{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof co?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof ou?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof Gf?(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 cC extends lu{constructor(a,e,t,s,c){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=l=>{const n=l.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=l,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=c}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),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{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);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 Kl=(()=>{class o extends lu{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new g.vpe,this.attachDomPortal=c=>{const l=c.element,n=this._document.createComment("dom-portal");c.setAttachedHost(this),l.parentNode.insertBefore(n,l),this._getRootNode().appendChild(l),this._attachedPortal=c,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},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,c=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),l=t.createComponent(c,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(l.hostView.rootNodes[0]),super.setDisposeFn(()=>l.destroy()),this._attachedPortal=e,this._attachedRef=l,this.attached.emit(l),l}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);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)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36(T.K0))},o.\u0275dir=g.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[g.qOj]}),o})(),uo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();var zt=E(2654),Gn=E(6787),Qt=E(2986);function ht(o){return a=>a.lift(new hu(o))}class hu{constructor(a){this.notifier=a}call(a,e){const t=new uC(a),s=(0,V.D)(t,this.notifier);return s&&!t.seenValue?(t.add(s),e.subscribe(t)):t}}class uC extends M.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,s,c){this.seenValue=!0,this.complete()}notifyComplete(){}}const Wf=tC();class Sx{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=$t(-this._previousScrollPosition.left),a.style.top=$t(-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,c=t.scrollBehavior||"",l=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Wf&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Wf&&(t.scrollBehavior=c,s.scrollBehavior=l)}}_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 Zl{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 pu{enable(){}disable(){}attach(){}}function ho(o,a){return a.some(e=>o.bottome.bottom||o.righte.right)}function po(o,a){return a.some(e=>o.tope.bottom||o.lefte.right)}class $f{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();ho(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 Qf=(()=>{class o{constructor(e,t,s,c){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new pu,this.close=l=>new Zl(this._scrollDispatcher,this._ngZone,this._viewportRuler,l),this.block=()=>new Sx(this._viewportRuler,this._document),this.reposition=l=>new $f(this._scrollDispatcher,this._viewportRuler,this._ngZone,l),this._document=c}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(zf),g.LFG(la),g.LFG(g.R0b),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Br{constructor(a){if(this.scrollStrategy=new pu,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 fu{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class Yf{constructor(a,e,t,s,c,l,n,i,r){this._portalOutlet=a,this._host=e,this._pane=t,this._config=s,this._ngZone=c,this._keyboardDispatcher=l,this._document=n,this._location=i,this._outsideClickDispatcher=r,this._backdropElement=null,this._backdropClick=new He.xQ,this._attachments=new He.xQ,this._detachments=new He.xQ,this._locationChanges=zt.w.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._keydownEvents=new He.xQ,this._outsidePointerEvents=new He.xQ,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){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,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),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=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},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=$t(this._config.width),a.height=$t(this._config.height),a.minWidth=$t(this._config.minWidth),a.minHeight=$t(this._config.minHeight),a.maxWidth=$t(this._config.maxWidth),a.maxHeight=$t(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._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const s=to(e||[]).filter(c=>!!c);s.length&&(t?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(ht((0,Gn.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.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let Xl=(()=>{class o{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||un()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let c=0;c{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,c=[];let l;for(let n of this._preferredPositions){let i=this._getOriginPoint(a,s,n),r=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(r,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,r,t)?c.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!l||l.overlayFit.visibleAreai&&(i=d,n=r)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(l.position,l.originPoint);this._applyPosition(l.position,l.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ur(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Jf),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,c;if("center"==t.originX)s=a.left+a.width/2;else{const l=this._isRtl()?a.right:a.left,n=this._isRtl()?a.left:a.right;s="start"==t.originX?l:n}return e.left<0&&(s-=e.left),c="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(c-=e.top),{x:s,y:c}}_getOverlayPoint(a,e,t){let s,c;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,c="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+s,y:a.y+c}}_getOverlayFit(a,e,t,s){const c=mo(e);let{x:l,y:n}=a,i=this._getOffset(s,"x"),r=this._getOffset(s,"y");i&&(l+=i),r&&(n+=r);let f=0-n,b=n+c.height-t.height,D=this._subtractOverflows(c.width,0-l,l+c.width-t.width),q=this._subtractOverflows(c.height,f,b),se=D*q;return{visibleArea:se,isCompletelyWithinViewport:c.width*c.height===se,fitsInViewportVertically:q===c.height,fitsInViewportHorizontally:D==c.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,c=t.right-e.x,l=ec(this._overlayRef.getConfig().minHeight),n=ec(this._overlayRef.getConfig().minWidth),r=a.fitsInViewportHorizontally||null!=n&&n<=c;return(a.fitsInViewportVertically||null!=l&&l<=s)&&r}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=mo(e),c=this._viewportRect,l=Math.max(a.x+s.width-c.width,0),n=Math.max(a.y+s.height-c.height,0),i=Math.max(c.top-t.top-a.y,0),r=Math.max(c.left-t.left-a.x,0);let d=0,u=0;return d=s.width<=c.width?r||-l:a.xD&&!this._isInitialRender&&!this._growAfterOpen&&(l=a.y-D/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)f=t.width-a.x+this._viewportMargin,d=a.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)u=a.x,d=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),D=this._lastBoundingBoxSize.width;d=2*b,u=a.x-b,d>D&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.x-D/2)}return{top:l,left:u,bottom:n,right:f,width:d,height:c}}_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 c=this._overlayRef.getConfig().maxHeight,l=this._overlayRef.getConfig().maxWidth;s.height=$t(t.height),s.top=$t(t.top),s.bottom=$t(t.bottom),s.width=$t(t.width),s.left=$t(t.left),s.right=$t(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",c&&(s.maxHeight=$t(c)),l&&(s.maxWidth=$t(l))}this._lastBoundingBoxSize=t,ur(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ur(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ur(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},s=this._hasExactPosition(),c=this._hasFlexibleDimensions,l=this._overlayRef.getConfig();if(s){const d=this._viewportRuler.getViewportScrollPosition();ur(t,this._getExactOverlayY(e,a,d)),ur(t,this._getExactOverlayX(e,a,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),r=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),r&&(n+=`translateY(${r}px)`),t.transform=n.trim(),l.maxHeight&&(s?t.maxHeight=$t(l.maxHeight):c&&(t.maxHeight="")),l.maxWidth&&(s?t.maxWidth=$t(l.maxWidth):c&&(t.maxWidth="")),ur(this._pane.style,t)}_getExactOverlayY(a,e,t){let s={top:"",bottom:""},c=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(c=this._pushOverlayOnScreen(c,this._overlayRect,t)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(c.y+this._overlayRect.height)+"px":s.top=$t(c.y),s}_getExactOverlayX(a,e,t){let l,s={left:"",right:""},c=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(c=this._pushOverlayOnScreen(c,this._overlayRect,t)),l=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===l?s.right=this._document.documentElement.clientWidth-(c.x+this._overlayRect.width)+"px":s.left=$t(c.x),s}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:po(a,t),isOriginOutsideView:ho(a,t),isOverlayClipped:po(e,t),isOverlayOutsideView:ho(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?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&to(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 g.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 ur(o,a){for(let e in a)a.hasOwnProperty(e)&&(o[e]=a[e]);return o}function ec(o){if("number"!=typeof o&&null!=o){const[a,e]=o.split(hC);return e&&"px"!==e?null:parseFloat(a)}return o||null}function mo(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 _o="cdk-global-overlay-wrapper";class pC{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}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(_o),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-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._justifyContent="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:c,maxWidth:l,maxHeight:n}=t,i=!("100%"!==s&&"100vw"!==s||l&&"100%"!==l&&"100vw"!==l),r=!("100%"!==c&&"100vh"!==c||n&&"100%"!==n&&"100vh"!==n);a.position=this._cssPosition,a.marginLeft=i?"0":this._leftOffset,a.marginTop=r?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,i?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=r?"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(_o),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Kf=(()=>{class o{constructor(e,t,s,c){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=c}global(){return new pC}flexibleConnectedTo(e){return new go(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(la),g.LFG(T.K0),g.LFG(Je),g.LFG(Xl))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),mu=(()=>{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)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Zf=(()=>{class o extends mu{constructor(e){super(e),this._keydownListener=t=>{const s=this._attachedOverlays;for(let c=s.length-1;c>-1;c--)if(s[c]._keydownEvents.observers.length>0){s[c]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(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)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xf=(()=>{class o extends mu{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Di(s)},this._clickListener=s=>{const c=Di(s),l="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(c)||r.overlayElement.contains(l))break;r._outsidePointerEvents.next(s)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),fC=0,Wn=(()=>{class o{constructor(e,t,s,c,l,n,i,r,d,u,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=c,this._keyboardDispatcher=l,this._injector=n,this._ngZone=i,this._document=r,this._directionality=d,this._location=u,this._outsideClickDispatcher=f}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),c=this._createPortalOutlet(s),l=new Br(e);return l.direction=l.direction||this._directionality.value,new Yf(c,t,s,l,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+fC++,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(g.z2F)),new cC(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Qf),g.LFG(Xl),g.LFG(g._Vd),g.LFG(Kf),g.LFG(Zf),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(hn),g.LFG(T.Ye),g.LFG(Xf))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const is={provide:new g.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Wn],useFactory:function eg(o){return()=>o.scrollStrategies.reposition()}};let ns=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Wn,is],imports:[[ti,uo,ca],ca]}),o})();var ha=E(5279);class ai extends He.xQ{constructor(a){super(),this._value=a}get value(){return this.getValue()}_subscribe(a){const e=super._subscribe(a);return e&&!e.closed&&a.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ha.N;return this._value}next(a){super.next(this._value=a)}}function pr(o,...a){return a.length?a.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var It=E(2868),fa=E(13),ga=E(3489);function Tu(o){return a=>a.lift(new pg(o))}class pg{constructor(a){this.total=a}call(a,e){return e.subscribe(new _0(a,this.total))}}class _0 extends ga.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}class C0{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new Eu(a,this.compare,this.keySelector))}}class Eu extends ga.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:s}=this;e=s?s(a):a}catch(s){return this.destination.error(s)}let t=!1;if(this.hasKey)try{const{compare:s}=this;t=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let uc=(()=>{class o{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Su=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Lt(e);return new Ci.y(s=>{const l=this._observeElement(t).subscribe(s);return()=>{l.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.xQ,s=this._mutationObserverFactory.create(c=>t.next(c));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)(g.LFG(uc))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),BC=(()=>{class o{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new g.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=it(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ln(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,fa.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Su),g.Y36(g.SBq),g.Y36(g.R0b))},o.\u0275dir=g.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),fg=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[uc]}),o})();function hc(o,a){return(o.getAttribute(a)||"").match(/\S+/g)||[]}const Hu="cdk-describedby-message",ma="cdk-describedby-host";let Du=0,Pu=(()=>{class o{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Du++,this._document=e}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const c=Ru(t,s);"string"!=typeof t?(Gt(t),this._messageRegistry.set(c,{messageElement:t,referenceCount:0})):this._messageRegistry.has(c)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,c)||this._addMessageReference(e,c)}removeDescription(e,t,s){var c;if(!t||!this._isElementNode(e))return;const l=Ru(t,s);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const n=this._messageRegistry.get(l);n&&0===n.referenceCount&&this._deleteMessageElement(l)}0===(null===(c=this._messagesContainer)||void 0===c?void 0:c.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${ma}="${this._id}"]`);for(let s=0;s0!=s.indexOf(Hu));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function OC(o,a,e){const t=hc(o,a);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),o.setAttribute(a,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(ma,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function FC(o,a,e){const s=hc(o,a).filter(c=>c!=e.trim());s.length?o.setAttribute(a,s.join(" ")):o.removeAttribute(a)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(ma)}_isElementDescribedByMessage(e,t){const s=hc(e,"aria-describedby"),c=this._messageRegistry.get(t),l=c&&c.messageElement.id;return!!l&&-1!=s.indexOf(l)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),c=e.getAttribute("aria-label");return!(!s||c&&c.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ru(o,a){return"string"==typeof o?`${a||""}/${o}`:o}function Gt(o){o.id||(o.id=`${Hu}-${Du++}`)}class Ho extends class gg{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.xQ,this._typeaheadSubscription=zt.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.xQ,this.change=new He.xQ,a instanceof g.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,It.b)(e=>this._pressedLetters.push(e)),(0,fa.b)(a),(0,mt.h)(()=>this._pressedLetters.length>0),(0,et.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!a[c]||this._allowedModifierKeys.indexOf(c)>-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||pr(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),s=e[t];this._activeItem=null==s?null:s,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 g.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 mg=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function NC(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 jC(o){try{return o.frameElement}catch(a){return null}}(function Ai(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===pc(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),c=pc(e);return e.hasAttribute("contenteditable")?-1!==c:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function _g(o){let a=o.nodeName.toLowerCase(),e="input"===a&&o.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==c:"video"===s?-1!==c&&(null!==c||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function bg(o){return!function UC(o){return function A0(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function zC(o){let a=o.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(o)||function v0(o){return function Do(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||vi(o))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function vi(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let a=o.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function pc(o){if(!vi(o))return null;const a=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class Po{constructor(a,e,t,s,c=!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,c||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 null==t||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 ku=(()=>{class o{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new Po(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(mg),g.LFG(g.R0b),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ro(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function fc(o){const a=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const WC=new g.OlP("cdk-input-modality-detector-options"),Iu={ignoreKeys:[18,17,224,91,16]},ss=dn({passive:!0,capture:!0});let Vu=(()=>{class o{constructor(e,t,s,c){this._platform=e,this._mostRecentTarget=null,this._modality=new ai(null),this._lastTouchMs=0,this._onKeydown=l=>{var n,i;(null===(i=null===(n=this._options)||void 0===n?void 0:n.ignoreKeys)||void 0===i?void 0:i.some(r=>r===l.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Di(l))},this._onMousedown=l=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ro(l)?"keyboard":"mouse"),this._mostRecentTarget=Di(l))},this._onTouchstart=l=>{fc(l)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Di(l))},this._options=Object.assign(Object.assign({},Iu),c),this.modalityDetected=this._modality.pipe(Tu(1)),this.modalityChanged=this.modalityDetected.pipe(function b0(o,a){return e=>e.lift(new C0(o,a))}()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,ss),s.addEventListener("mousedown",this._onMousedown,ss),s.addEventListener("touchstart",this._onTouchstart,ss)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ss),document.removeEventListener("mousedown",this._onMousedown,ss),document.removeEventListener("touchstart",this._onTouchstart,ss))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(WC,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const QC=new g.OlP("cdk-focus-monitor-default-options"),mc=dn({passive:!0,capture:!0});let Fr=(()=>{class o{constructor(e,t,s,c,l){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.xQ,this._rootNodeFocusAndBlurListener=n=>{const i=Di(n),r="focus"===n.type?this._onFocus:this._onBlur;for(let d=i;d;d=d.parentElement)r.call(this,n,d)},this._document=c,this._detectionMode=(null==l?void 0:l.detectionMode)||0}monitor(e,t=!1){const s=Lt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,ke.of)(null);const c=Ut(s)||this._getDocument(),l=this._elementInfo.get(s);if(l)return t&&(l.checkChildren=!0),l.subject;const n={checkChildren:t,subject:new He.xQ,rootNode:c};return this._elementInfo.set(s,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=Lt(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 c=Lt(e);c===this._getDocument().activeElement?this._getClosestElementsInfo(c).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof c.focus&&c.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:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0: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),c=Di(e);!s||!s.checkChildren&&t!==c||this._originChanged(t,this._getFocusOrigin(c),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.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.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,mc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,mc)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ht(this._stopInputModalityDetector)).subscribe(c=>{this._setOrigin(c,!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,mc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mc),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.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,c)=>{(c===e||s.checkChildren&&c.contains(e))&&t.push([c,s])}),t}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.R0b),g.LFG(Je),g.LFG(Vu),g.LFG(T.K0,8),g.LFG(QC,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const yg="cdk-high-contrast-black-on-white",wg="cdk-high-contrast-white-on-black",Bu="cdk-high-contrast-active";let vg=(()=>{class o{constructor(e,t){this._platform=e,this._document=t}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,c=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),c){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Bu),e.remove(yg),e.remove(wg),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Bu),e.add(yg)):2===t&&(e.add(Bu),e.add(wg))}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ou=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(vg))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yi,fg]]}),o})();var _c=E(9146);function os(...o){return function JC(){return(0,_c.J)(1)}()((0,ke.of)(...o))}function hi(...o){const a=o[o.length-1];return(0,Mt.K)(a)?(o.pop(),e=>os(o,e,a)):e=>os(o,e)}class Hn{}const Lr="*";function Jt(o,a){return{type:7,name:o,definitions:a,options:{}}}function Pt(o,a=null){return{type:4,styles:a,timings:o}}function bc(o,a=null){return{type:2,steps:o,options:a}}function Ve(o){return{type:6,styles:o,offset:null}}function bt(o,a,e){return{type:0,name:o,styles:a,options:e}}function jr(o){return{type:5,steps:o}}function wt(o,a,e=null){return{type:1,expr:o,animation:a,options:e}}function XC(o){Promise.resolve(null).then(o)}class $n{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(a)}onDone(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(){XC(()=>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}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 yc{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 c=this.players.length;0==c?XC(()=>this._onFinish()):this.players.forEach(l=>{l.onDone(()=>{++e==c&&this._onFinish()}),l.onDestroy(()=>{++t==c&&this._onDestroy()}),l.onStart(()=>{++s==c&&this._onStart()})}),this.totalTime=this.players.reduce((l,n)=>Math.max(l,n.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}}function ey(){return"undefined"!=typeof window&&void 0!==window.document}function ko(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Nr(o){switch(o.length){case 0:return new $n;case 1:return o[0];default:return new yc(o)}}function xg(o,a,e,t,s={},c={}){const l=[],n=[];let i=-1,r=null;if(t.forEach(d=>{const u=d.offset,f=u==i,b=f&&r||{};Object.keys(d).forEach(D=>{let q=D,se=d[D];if("offset"!==D)switch(q=a.normalizePropertyName(q,l),se){case"!":se=s[D];break;case Lr:se=c[D];break;default:se=a.normalizeStyleValue(D,q,se,l)}b[q]=se}),f||n.push(b),r=b,i=u}),l.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${l.join(d)}`)}return n}function Lu(o,a,e,t){switch(a){case"start":o.onStart(()=>t(e&&ju(e,"start",o)));break;case"done":o.onDone(()=>t(e&&ju(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&ju(e,"destroy",o)))}}function ju(o,a,e){const t=e.totalTime,c=Nu(o.element,o.triggerName,o.fromState,o.toState,a||o.phaseName,null==t?o.totalTime:t,!!e.disabled),l=o._data;return null!=l&&(c._data=l),c}function Nu(o,a,e,t,s="",c=0,l){return{element:o,triggerName:a,fromState:e,toState:t,phaseName:s,totalTime:c,disabled:!!l}}function Ji(o,a,e){let t;return o instanceof Map?(t=o.get(a),t||o.set(a,t=e)):(t=o[a],t||(t=o[a]=e)),t}function zu(o){const a=o.indexOf(":");return[o.substring(1,a),o.substr(a+1)]}let Io=(o,a)=>!1,Uu=(o,a,e)=>[];(ko()||"undefined"!=typeof Element)&&(Io=ey()?(o,a)=>{for(;a&&a!==document.documentElement;){if(a===o)return!0;a=a.parentNode||a.host}return!1}:(o,a)=>o.contains(a),Uu=(o,a,e)=>{if(e)return Array.from(o.querySelectorAll(a));const t=o.querySelector(a);return t?[t]:[]});let _a=null,qu=!1;function Gu(o){_a||(_a=function ba(){return"undefined"!=typeof document?document.body:null}()||{},qu=!!_a.style&&"WebkitAppearance"in _a.style);let a=!0;return _a.style&&!function ty(o){return"ebkit"==o.substring(1,6)}(o)&&(a=o in _a.style,!a&&qu&&(a="Webkit"+o.charAt(0).toUpperCase()+o.substr(1)in _a.style)),a}const Wu=Io,$u=Uu;let Vo=(()=>{class o{validateStyleProperty(e){return Gu(e)}matchesElement(e,t){return!1}containsElement(e,t){return Wu(e,t)}query(e,t,s){return $u(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,c,l,n=[],i){return new $n(s,c)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),Qu=(()=>{class o{}return o.NOOP=new Vo,o})();const Bo="ng-enter",Oo="ng-leave",Ca="ng-trigger",ya=".ng-trigger",Ju="ng-animating",Fo=".ng-animating";function zr(o){if("number"==typeof o)return o;const a=o.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Lo(parseFloat(a[1]),a[2])}function Lo(o,a){return"s"===a?1e3*o:o}function Ur(o,a,e){return o.hasOwnProperty("duration")?o:function iy(o,a,e){let s,c=0,l="";if("string"==typeof o){const n=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return a.push(`The provided timing value "${o}" is invalid.`),{duration:0,delay:0,easing:""};s=Lo(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(c=Lo(parseFloat(i),n[4]));const r=n[5];r&&(l=r)}else s=o;if(!e){let n=!1,i=a.length;s<0&&(a.push("Duration values below 0 are not allowed for this animation step."),n=!0),c<0&&(a.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&a.splice(i,0,`The provided timing value "${o}" is invalid.`)}return{duration:s,delay:c,easing:l}}(o,a,e)}function wa(o,a={}){return Object.keys(o).forEach(e=>{a[e]=o[e]}),a}function qr(o,a,e={}){if(a)for(let t in o)e[t]=o[t];else wa(o,e);return e}function Ku(o,a,e){return e?a+":"+e+";":""}function vc(o){let a="";for(let e=0;e{const s=Tc(t);e&&!e.hasOwnProperty(t)&&(e[t]=o.style[s]),o.style[s]=a[t]}),ko()&&vc(o))}function ls(o,a){o.style&&(Object.keys(a).forEach(e=>{const t=Tc(e);o.style[t]=""}),ko()&&vc(o))}function cs(o){return Array.isArray(o)?1==o.length?o[0]:bc(o):o}const Ac=new RegExp("{{\\s*(.+?)\\s*}}","g");function Hg(o){let a=[];if("string"==typeof o){let e;for(;e=Ac.exec(o);)a.push(e[1]);Ac.lastIndex=0}return a}function xc(o,a,e){const t=o.toString(),s=t.replace(Ac,(c,l)=>{let n=a[l];return a.hasOwnProperty(l)||(e.push(`Please provide a value for the animation param ${l}`),n=""),n.toString()});return s==t?o:s}function Ni(o){const a=[];let e=o.next();for(;!e.done;)a.push(e.value),e=o.next();return a}const ry=/-+([a-z0-9])/g;function Tc(o){return o.replace(ry,(...a)=>a[1].toUpperCase())}function ay(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ki(o,a,e){switch(a.type){case 7:return o.visitTrigger(a,e);case 0:return o.visitState(a,e);case 1:return o.visitTransition(a,e);case 2:return o.visitSequence(a,e);case 3:return o.visitGroup(a,e);case 4:return o.visitAnimate(a,e);case 5:return o.visitKeyframes(a,e);case 6:return o.visitStyle(a,e);case 8:return o.visitReference(a,e);case 9:return o.visitAnimateChild(a,e);case 10:return o.visitAnimateRef(a,e);case 11:return o.visitQuery(a,e);case 12:return o.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function Zu(o,a){return window.getComputedStyle(o)[a]}function ly(o,a){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function cy(o,a,e){if(":"==o[0]){const i=function Ke(o,a){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 i)return void a.push(i);o=i}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${o}" is not supported`),a;const s=t[1],c=t[2],l=t[3];a.push(Xu(s,l));"<"==c[0]&&!("*"==s&&"*"==l)&&a.push(Xu(l,s))}(t,e,a)):e.push(o),e}const jo=new Set(["true","1"]),No=new Set(["false","0"]);function Xu(o,a){const e=jo.has(o)||No.has(o),t=jo.has(a)||No.has(a);return(s,c)=>{let l="*"==o||o==s,n="*"==a||a==c;return!l&&e&&"boolean"==typeof s&&(l=s?jo.has(o):No.has(o)),!n&&t&&"boolean"==typeof c&&(n=c?jo.has(a):No.has(a)),l&&n}}const Pn=new RegExp("s*:selfs*,?","g");function Sc(o,a,e){return new eh(o).build(a,e)}class eh{constructor(a){this._driver=a}build(a,e){const t=new Pg(e);return this._resetContextStyleTimingState(t),Ki(this,cs(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,s=e.depCount=0;const c=[],l=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,r=i.name;r.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,c.push(this.visitState(i,e))}),i.name=r}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,s+=i.depCount,l.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:c,transitions:l,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 c=new Set,l=s||{};if(t.styles.forEach(n=>{if(nh(n)){const i=n;Object.keys(i).forEach(r=>{Hg(i[r]).forEach(d=>{l.hasOwnProperty(d)||c.add(d)})})}}),c.size){const n=Ni(c.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:a.name,style:t,options:s?{params:s}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Ki(this,cs(a.animation),e);return{type:1,matchers:ly(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ds(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Ki(this,t,e)),options:ds(a.options)}}visitGroup(a,e){const t=e.currentTime;let s=0;const c=a.steps.map(l=>{e.currentTime=t;const n=Ki(this,l,e);return s=Math.max(s,e.currentTime),n});return e.currentTime=s,{type:3,steps:c,options:ds(a.options)}}visitAnimate(a,e){const t=function Rg(o,a){let e=null;if(o.hasOwnProperty("duration"))e=o;else if("number"==typeof o)return us(Ur(o,a).duration,0,"");const t=o;if(t.split(/\s+/).some(c=>"{"==c.charAt(0)&&"{"==c.charAt(1))){const c=us(0,0,"");return c.dynamic=!0,c.strValue=t,c}return e=e||Ur(t,a),us(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let s,c=a.styles?a.styles:Ve({});if(5==c.type)s=this.visitKeyframes(c,e);else{let l=a.styles,n=!1;if(!l){n=!0;const r={};t.easing&&(r.easing=t.easing),l=Ve(r)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(l,e);i.isEmptyStep=n,s=i}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=[];Array.isArray(a.styles)?a.styles.forEach(l=>{"string"==typeof l?l==Lr?t.push(l):e.errors.push(`The provided style string value ${l} is not allowed.`):t.push(l)}):t.push(a.styles);let s=!1,c=null;return t.forEach(l=>{if(nh(l)){const n=l,i=n.easing;if(i&&(c=i,delete n.easing),!s)for(let r in n)if(n[r].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let s=e.currentTime,c=e.currentTime;t&&c>0&&(c-=t.duration+t.delay),a.styles.forEach(l=>{"string"!=typeof l&&Object.keys(l).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],r=i[n];let d=!0;r&&(c!=s&&c>=r.startTime&&s<=r.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${c}ms" and "${s}ms"`),d=!1),c=r.startTime),d&&(i[n]={startTime:c,endTime:s}),e.options&&function ny(o,a,e){const t=a.params||{},s=Hg(o);s.length&&s.forEach(c=>{t.hasOwnProperty(c)||e.push(`Unable to resolve the local animation param ${c} in the given list of values`)})}(l[n],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let c=0;const l=[];let n=!1,i=!1,r=0;const d=a.steps.map(De=>{const rt=this._makeStyleAst(De,e);let Qe=null!=rt.offset?rt.offset:function ih(o){if("string"==typeof o)return null;let a=null;if(Array.isArray(o))o.forEach(e=>{if(nh(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(nh(o)&&o.hasOwnProperty("offset")){const e=o;a=parseFloat(e.offset),delete e.offset}return a}(rt.styles),vt=0;return null!=Qe&&(c++,vt=rt.offset=Qe),i=i||vt<0||vt>1,n=n||vt0&&c{const Qe=f>0?rt==b?1:f*rt:l[rt],vt=Qe*se;e.currentTime=D+q.delay+vt,q.duration=vt,this._validateStyleAst(De,e),De.offset=Qe,t.styles.push(De)}),t}visitReference(a,e){return{type:8,animation:Ki(this,cs(a.animation),e),options:ds(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:ds(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:ds(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,s=a.options||{};e.queryCount++,e.currentQuery=a;const[c,l]=function gr(o){const a=!!o.split(/\s*,\s*/).find(e=>":self"==e);return a&&(o=o.replace(Pn,"")),o=o.replace(/@\*/g,ya).replace(/@\w+/g,e=>ya+"-"+e.substr(1)).replace(/:animating/g,Fo),[o,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+c:c,Ji(e.collectedStyles,e.currentQuerySelector,{});const n=Ki(this,cs(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:c,limit:s.limit||0,optional:!!s.optional,includeSelf:l,animation:n,originalSelector:a.selector,options:ds(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:Ur(a.timings,e.errors,!0);return{type:12,animation:Ki(this,cs(a.animation),e),timings:t,options:null}}}class Pg{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function nh(o){return!Array.isArray(o)&&"object"==typeof o}function ds(o){return o?(o=wa(o)).params&&(o.params=function th(o){return o?wa(o):null}(o.params)):o={},o}function us(o,a,e){return{duration:o,delay:a,easing:e}}function hs(o,a,e,t,s,c,l=null,n=!1){return{type:1,element:o,keyframes:a,preStyleProps:e,postStyleProps:t,duration:s,delay:c,totalTime:s+c,easing:l,subTimeline:n}}class ps{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 k0=new RegExp(":enter","g"),uy=new RegExp(":leave","g");function sh(o,a,e,t,s,c={},l={},n,i,r=[]){return(new hy).buildKeyframes(o,a,e,t,s,c,l,n,i,r)}class hy{buildKeyframes(a,e,t,s,c,l,n,i,r,d=[]){r=r||new ps;const u=new kg(a,e,r,s,c,d,[]);u.options=i,u.currentTimeline.setStyles([l],null,u.errors,i),Ki(this,t,u);const f=u.timelines.filter(b=>b.containsAnimation());if(Object.keys(n).length){let b;for(let D=f.length-1;D>=0;D--){const q=f[D];if(q.element===e){b=q;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([n],null,u.errors,i)}return f.length?f.map(b=>b.buildKeyframes()):[hs(e,[],[],[],0,0,"",!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),c=e.currentTimeline.currentTime,l=this._visitSubInstructions(t,s,s.options);c!=l&&e.transformIntoNewTimeline(l)}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 c=e.currentTimeline.currentTime;const l=null!=t.duration?zr(t.duration):null,n=null!=t.delay?zr(t.delay):null;return 0!==l&&a.forEach(i=>{const r=e.appendInstructionToTimeline(i,l,n);c=Math.max(c,r.duration+r.delay)}),c}visitReference(a,e){e.updateOptions(a.options,!0),Ki(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let s=e;const c=a.options;if(c&&(c.params||c.delay)&&(s=e.createSubContext(c),s.transformIntoNewTimeline(),null!=c.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Uo);const l=zr(c.delay);s.delayNextStep(l)}a.steps.length&&(a.steps.forEach(l=>Ki(this,l,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let s=e.currentTimeline.currentTime;const c=a.options&&a.options.delay?zr(a.options.delay):0;a.steps.forEach(l=>{const n=e.createSubContext(a.options);c&&n.delayNextStep(c),Ki(this,l,n),s=Math.max(s,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(l=>e.currentTimeline.mergeTimelineCollectedStyles(l)),e.transformIntoNewTimeline(s),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return Ur(e.params?xc(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 c=a.style;5==c.type?this.visitKeyframes(c,e):(e.incrementTime(t.duration),this.visitStyle(c,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.getCurrentStyleProperties().length&&t.forwardFrame();const c=s&&s.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(c):t.setStyles(a.styles,c,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,c=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,a.styles.forEach(i=>{n.forwardTime((i.offset||0)*c),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(s+c),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,s=a.options||{},c=s.delay?zr(s.delay):0;c&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Uo);let l=t;const n=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((r,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(a.options,r);c&&u.delayNextStep(c),r===e.element&&(i=u.currentTimeline),Ki(this,a.animation,u),u.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,s=e.currentTimeline,c=a.timings,l=Math.abs(c.duration),n=l*(e.currentQueryTotal-1);let i=l*e.currentQueryIndex;switch(c.duration<0?"reverse":c.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Ki(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=s.currentTime-u+(s.startTime-t.currentTimeline.startTime)}}const Uo={};class kg{constructor(a,e,t,s,c,l,n,i){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=c,this.errors=l,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Uo,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Mc(this._driver,e,0),n.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=zr(t.duration)),null!=t.delay&&(s.delay=zr(t.delay));const c=t.params;if(c){let l=s.params;l||(l=this.options.params={}),Object.keys(c).forEach(n=>{(!e||!l.hasOwnProperty(n))&&(l[n]=xc(c[n],l,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,c=new kg(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return c.previousNode=this.previousNode,c.currentAnimateTimings=this.currentAnimateTimings,c.options=this._copyOptions(),c.updateOptions(a),c.currentQueryIndex=this.currentQueryIndex,c.currentQueryTotal=this.currentQueryTotal,c.parentContext=this,this.subContextCount++,c}transformIntoNewTimeline(a){return this.previousNode=Uo,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const s={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},c=new I0(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,s,a.stretchStartingKeyframe);return this.timelines.push(c),s}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,s,c,l){let n=[];if(s&&n.push(this.element),a.length>0){a=(a=a.replace(k0,"."+this._enterClassName)).replace(uy,"."+this._leaveClassName);let r=this._driver.query(this.element,a,1!=t);0!==t&&(r=t<0?r.slice(r.length+t,r.length):r.slice(0,t)),n.push(...r)}return!c&&0==n.length&&l.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),n}}class Mc{constructor(a,e,t,s){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new Mc(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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Lr,this._currentKeyframe[e]=Lr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,s){e&&(this._previousKeyframe.easing=e);const c=s&&s.params||{},l=function Ig(o,a){const e={};let t;return o.forEach(s=>{"*"===s?(t=t||Object.keys(a),t.forEach(c=>{e[c]=Lr})):qr(s,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(l).forEach(n=>{const i=xc(l[n],c,t);this._pendingStyles[n]=i,this._localTimelineStyles.hasOwnProperty(n)||(this._backFill[n]=this._globalTimelineStyles.hasOwnProperty(n)?this._globalTimelineStyles[n]:Lr),this._updateStyle(n,i)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[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){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],s=a._styleSummary[e];(!t||s.time>t.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((n,i)=>{const r=qr(n,!0);Object.keys(r).forEach(d=>{const u=r[d];"!"==u?a.add(d):u==Lr&&e.add(d)}),t||(r.offset=i/this.duration),s.push(r)});const c=a.size?Ni(a.values()):[],l=e.size?Ni(e.values()):[];if(t){const n=s[0],i=wa(n);n.offset=0,i.offset=1,s=[n,i]}return hs(this.element,s,c,l,this.duration,this.startTime,this.easing,!1)}}class I0 extends Mc{constructor(a,e,t,s,c,l,n=!1){super(a,e,l.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=c,this._stretchStartingKeyframe=n,this.timings={duration:l.duration,delay:l.delay,easing:l.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 c=[],l=t+e,n=e/l,i=qr(a[0],!1);i.offset=0,c.push(i);const r=qr(a[0],!1);r.offset=oh(n),c.push(r);const d=a.length-1;for(let u=1;u<=d;u++){let f=qr(a[u],!1);f.offset=oh((e+f.offset*t)/l),c.push(f)}t=l,e=0,s="",a=c}return hs(this.element,a,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function oh(o,a=3){const e=Math.pow(10,a-1);return Math.round(o*e)/e}class qo{}class B0 extends qo{normalizePropertyName(a,e){return Tc(a)}normalizeStyleValue(a,e,t,s){let c="";const l=t.toString().trim();if(O0[e]&&0!==t&&"0"!==t)if("number"==typeof t)c="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&s.push(`Please provide a CSS unit value for ${a}:${t}`)}return l+c}}const O0=(()=>function F0(o){const a={};return o.forEach(e=>a[e]=!0),a}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function py(o,a,e,t,s,c,l,n,i,r,d,u,f){return{type:0,element:o,triggerName:a,isRemovalTransition:s,fromState:e,fromStyles:c,toState:t,toStyles:l,timelines:n,queriedElements:i,preStyleProps:r,postStyleProps:d,totalTime:u,errors:f}}const Vg={};class fy{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,s){return function L0(o,a,e,t,s){return o.some(c=>c(a,e,t,s))}(this.ast.matchers,a,e,t,s)}buildStyles(a,e,t){const s=this._stateStyles["*"],c=this._stateStyles[a],l=s?s.buildStyles(e,t):{};return c?c.buildStyles(e,t):l}build(a,e,t,s,c,l,n,i,r,d){const u=[],f=this.ast.options&&this.ast.options.params||Vg,D=this.buildStyles(t,n&&n.params||Vg,u),q=i&&i.params||Vg,se=this.buildStyles(s,q,u),De=new Set,rt=new Map,Qe=new Map,vt="void"===s,jn={params:Object.assign(Object.assign({},f),q)},sr=d?[]:sh(a,e,this.ast.animation,c,l,D,se,jn,r,u);let tn=0;if(sr.forEach(Wa=>{tn=Math.max(Wa.duration+Wa.delay,tn)}),u.length)return py(e,this._triggerName,t,s,vt,D,se,[],[],rt,Qe,tn,u);sr.forEach(Wa=>{const $a=Wa.element,cM=Ji(rt,$a,{});Wa.preStyleProps.forEach(Bl=>cM[Bl]=!0);const kf=Ji(Qe,$a,{});Wa.postStyleProps.forEach(Bl=>kf[Bl]=!0),$a!==e&&De.add($a)});const Ga=Ni(De.values());return py(e,this._triggerName,t,s,vt,D,se,sr,Ga,rt,Qe,tn)}}class j0{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},s=wa(this.defaultParams);return Object.keys(a).forEach(c=>{const l=a[c];null!=l&&(s[c]=l)}),this.styles.styles.forEach(c=>{if("string"!=typeof c){const l=c;Object.keys(l).forEach(n=>{let i=l[n];i.length>1&&(i=xc(i,s,e));const r=this.normalizer.normalizePropertyName(n,e);i=this.normalizer.normalizeStyleValue(n,r,i,e),t[r]=i})}}),t}}class Gr{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new j0(s.style,s.options&&s.options.params||{},t)}),Bg(this.states,"true","1"),Bg(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new fy(a,s,this.states))}),this.fallbackTransition=function lh(o,a,e){return new fy(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(l,n)=>!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(l=>l.match(a,e,t,s))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function Bg(o,a,e){o.hasOwnProperty(a)?o.hasOwnProperty(e)||(o[e]=o[a]):o.hasOwnProperty(e)&&(o[a]=o[e])}const Og=new ps;class ch{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],s=Sc(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=s}_buildPlayer(a,e,t){const s=a.element,c=xg(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(s,c,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const s=[],c=this._animations[a];let l;const n=new Map;if(c?(l=sh(this._driver,e,c,Bo,Oo,{},{},t,Og,s),l.forEach(d=>{const u=Ji(n,d.element,{});d.postStyleProps.forEach(f=>u[f]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),l=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);n.forEach((d,u)=>{Object.keys(d).forEach(f=>{d[f]=this._driver.computeStyle(u,f,Lr)})});const r=Nr(l.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[a]=r,r.onDestroy(()=>this.destroy(a)),this.players.push(r),r}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,s){const c=Nu(e,"","","");return Lu(this._getPlayer(a),t,c,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 c=this._getPlayer(a);switch(t){case"play":c.play();break;case"pause":c.pause();break;case"reset":c.reset();break;case"restart":c.restart();break;case"finish":c.finish();break;case"init":c.init();break;case"setPosition":c.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(a)}}}const dh="ng-animate-queued",hh="ng-animate-disabled",ph=[],Lg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fn="__ng_removed";class fh{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function my(o){return null!=o?o:null}(t?a.value:a),t){const c=wa(a);delete c.value,this.options=c}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 mr="void",$r=new fh(mr);class gh{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Pi(e,this._hostClassName)}listen(a,e,t,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function Ng(o){return"start"==o||"done"==o}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const c=Ji(this._elementListeners,a,[]),l={name:e,phase:t,callback:s};c.push(l);const n=Ji(this._engine.statesByElement,a,{});return n.hasOwnProperty(e)||(Pi(a,Ca),Pi(a,Ca+"-"+e),n[e]=$r),()=>{this._engine.afterFlush(()=>{const i=c.indexOf(l);i>=0&&c.splice(i,1),this._triggers[e]||delete n[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,s=!0){const c=this._getTrigger(e),l=new va(this.id,e,a);let n=this._engine.statesByElement.get(a);n||(Pi(a,Ca),Pi(a,Ca+"-"+e),this._engine.statesByElement.set(a,n={}));let i=n[e];const r=new fh(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&r.absorbOptions(i.options),n[e]=r,i||(i=$r),r.value!==mr&&i.value===r.value){if(!function Ug(o,a){const e=Object.keys(o),t=Object.keys(a);if(e.length!=t.length)return!1;for(let s=0;s{ls(a,se),Dn(a,De)})}return}const f=Ji(this._engine.playersByElement,a,[]);f.forEach(q=>{q.namespaceId==this.id&&q.triggerName==e&&q.queued&&q.destroy()});let b=c.matchTransition(i.value,r.value,a,r.params),D=!1;if(!b){if(!s)return;b=c.fallbackTransition,D=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:i,toState:r,player:l,isFallbackTransition:D}),D||(Pi(a,dh),l.onStart(()=>{ms(a,dh)})),l.onDone(()=>{let q=this.players.indexOf(l);q>=0&&this.players.splice(q,1);const se=this._engine.playersByElement.get(a);if(se){let De=se.indexOf(l);De>=0&&se.splice(De,1)}}),this.players.push(l),f.push(l),l}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[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,ya,!0);t.forEach(s=>{if(s[fn])return;const c=this._engine.fetchNamespacesByElement(s);c.size?c.forEach(l=>l.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(a,e,t,s){const c=this._engine.statesByElement.get(a),l=new Map;if(c){const n=[];if(Object.keys(c).forEach(i=>{if(l.set(i,c[i].value),this._triggers[i]){const r=this.trigger(a,i,mr,s);r&&n.push(r)}}),n.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,l),t&&Nr(n).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(c=>{const l=c.name;if(s.has(l))return;s.add(l);const i=this._triggers[l].fallbackTransition,r=t[l]||$r,d=new fh(mr),u=new va(this.id,l,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:i,fromState:r,toState:d,player:u,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 c=t.players.length?t.playersByQueriedElement.get(a):[];if(c&&c.length)s=!0;else{let l=a;for(;l=l.parentNode;)if(t.statesByElement.get(l)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(a),s)t.markElementAsRemoved(this.id,a,!1,e);else{const c=a[fn];(!c||c===Lg)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){Pi(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const c=t.element,l=this._elementListeners.get(c);l&&l.forEach(n=>{if(n.name==t.triggerName){const i=Nu(c,t.triggerName,t.fromState.value,t.toState.value);i._data=a,Lu(t.player,n.phase,i,n.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const c=t.transition.ast.depCount,l=s.transition.ast.depCount;return 0==c||0==l?c-l: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 fs{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,c)=>{}}_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 gh(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.length-1;if(t>=0){let s=!1;for(let c=t;c>=0;c--)if(this.driver.containsElement(this._namespaceList[c].hostElement,e)){this._namespaceList.splice(c+1,0,a),s=!0;break}s||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.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){const s=Object.keys(t);for(let c=0;c=0&&this.collectedLeaveElements.splice(l,1)}if(a){const l=this._fetchNamespace(a);l&&l.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),Pi(a,hh)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ms(a,hh))}removeNode(a,e,t,s){if(Go(e)){const c=a?this._fetchNamespace(a):null;if(c?c.removeNode(e,s):this.markElementAsRemoved(a,e,!1,s),t){const l=this.namespacesByHostElement.get(e);l&&l.id!==a&&l.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(a,e,t,s,c){this.collectedLeaveElements.push(e),e[fn]={namespaceId:a,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:c}}listen(a,e,t,s,c){return Go(e)?this._fetchNamespace(a).listen(e,t,s,c):()=>{}}_buildInstruction(a,e,t,s,c){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,s,a.fromState.options,a.toState.options,e,c)}destroyInnerAnimations(a){let e=this.driver.query(a,ya,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,Fo,!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 Nr(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[fn];if(t&&t.setForRemoval){if(a[fn]=Lg,t.namespaceId){this.destroyInnerAnimations(a);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}(null===(e=a.classList)||void 0===e?void 0:e.contains(hh))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!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?Nr(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new ps,s=[],c=new Map,l=[],n=new Map,i=new Map,r=new Map,d=new Set;this.disabledNodes.forEach(Fe=>{d.add(Fe);const Ge=this.driver.query(Fe,".ng-animate-queued",!0);for(let $e=0;$e{const $e=Bo+q++;D.set(Ge,$e),Fe.forEach(Et=>Pi(Et,$e))});const se=[],De=new Set,rt=new Set;for(let Fe=0;FeDe.add(Et)):rt.add(Ge))}const Qe=new Map,vt=mh(f,Array.from(De));vt.forEach((Fe,Ge)=>{const $e=Oo+q++;Qe.set(Ge,$e),Fe.forEach(Et=>Pi(Et,$e))}),a.push(()=>{b.forEach((Fe,Ge)=>{const $e=D.get(Ge);Fe.forEach(Et=>ms(Et,$e))}),vt.forEach((Fe,Ge)=>{const $e=Qe.get(Ge);Fe.forEach(Et=>ms(Et,$e))}),se.forEach(Fe=>{this.processLeaveNode(Fe)})});const jn=[],sr=[];for(let Fe=this._namespaceList.length-1;Fe>=0;Fe--)this._namespaceList[Fe].drainQueuedTransitions(e).forEach($e=>{const Et=$e.player,Mi=$e.element;if(jn.push(Et),this.collectedEnterElements.length){const nn=Mi[fn];if(nn&&nn.setForMove){if(nn.previousTriggersValues&&nn.previousTriggersValues.has($e.triggerName)){const Ol=nn.previousTriggersValues.get($e.triggerName),Qs=this.statesByElement.get($e.element);Qs&&Qs[$e.triggerName]&&(Qs[$e.triggerName].value=Ol)}return void Et.destroy()}}const ta=!u||!this.driver.containsElement(u,Mi),Nn=Qe.get(Mi),$s=D.get(Mi),Kt=this._buildInstruction($e,t,$s,Nn,ta);if(Kt.errors&&Kt.errors.length)return void sr.push(Kt);if(ta)return Et.onStart(()=>ls(Mi,Kt.fromStyles)),Et.onDestroy(()=>Dn(Mi,Kt.toStyles)),void s.push(Et);if($e.isFallbackTransition)return Et.onStart(()=>ls(Mi,Kt.fromStyles)),Et.onDestroy(()=>Dn(Mi,Kt.toStyles)),void s.push(Et);const hM=[];Kt.timelines.forEach(nn=>{nn.stretchStartingKeyframe=!0,this.disabledNodes.has(nn.element)||hM.push(nn)}),Kt.timelines=hM,t.append(Mi,Kt.timelines),l.push({instruction:Kt,player:Et,element:Mi}),Kt.queriedElements.forEach(nn=>Ji(n,nn,[]).push(Et)),Kt.preStyleProps.forEach((nn,Ol)=>{const Qs=Object.keys(nn);if(Qs.length){let Fl=i.get(Ol);Fl||i.set(Ol,Fl=new Set),Qs.forEach(yx=>Fl.add(yx))}}),Kt.postStyleProps.forEach((nn,Ol)=>{const Qs=Object.keys(nn);let Fl=r.get(Ol);Fl||r.set(Ol,Fl=new Set),Qs.forEach(yx=>Fl.add(yx))})});if(sr.length){const Fe=[];sr.forEach(Ge=>{Fe.push(`@${Ge.triggerName} has failed due to:\n`),Ge.errors.forEach($e=>Fe.push(`- ${$e}\n`))}),jn.forEach(Ge=>Ge.destroy()),this.reportError(Fe)}const tn=new Map,Ga=new Map;l.forEach(Fe=>{const Ge=Fe.element;t.has(Ge)&&(Ga.set(Ge,Ge),this._beforeAnimationBuild(Fe.player.namespaceId,Fe.instruction,tn))}),s.forEach(Fe=>{const Ge=Fe.element;this._getPreviousPlayers(Ge,!1,Fe.namespaceId,Fe.triggerName,null).forEach(Et=>{Ji(tn,Ge,[]).push(Et),Et.destroy()})});const Wa=se.filter(Fe=>qg(Fe,i,r)),$a=new Map;Dc($a,this.driver,rt,r,Lr).forEach(Fe=>{qg(Fe,i,r)&&Wa.push(Fe)});const kf=new Map;b.forEach((Fe,Ge)=>{Dc(kf,this.driver,new Set(Fe),i,"!")}),Wa.forEach(Fe=>{const Ge=$a.get(Fe),$e=kf.get(Fe);$a.set(Fe,Object.assign(Object.assign({},Ge),$e))});const Bl=[],dM=[],uM={};l.forEach(Fe=>{const{element:Ge,player:$e,instruction:Et}=Fe;if(t.has(Ge)){if(d.has(Ge))return $e.onDestroy(()=>Dn(Ge,Et.toStyles)),$e.disabled=!0,$e.overrideTotalTime(Et.totalTime),void s.push($e);let Mi=uM;if(Ga.size>1){let Nn=Ge;const $s=[];for(;Nn=Nn.parentNode;){const Kt=Ga.get(Nn);if(Kt){Mi=Kt;break}$s.push(Nn)}$s.forEach(Kt=>Ga.set(Kt,Mi))}const ta=this._buildAnimation($e.namespaceId,Et,tn,c,kf,$a);if($e.setRealPlayer(ta),Mi===uM)Bl.push($e);else{const Nn=this.playersByElement.get(Mi);Nn&&Nn.length&&($e.parentPlayer=Nr(Nn)),s.push($e)}}else ls(Ge,Et.fromStyles),$e.onDestroy(()=>Dn(Ge,Et.toStyles)),dM.push($e),d.has(Ge)&&s.push($e)}),dM.forEach(Fe=>{const Ge=c.get(Fe.element);if(Ge&&Ge.length){const $e=Nr(Ge);Fe.setRealPlayer($e)}}),s.forEach(Fe=>{Fe.parentPlayer?Fe.syncPlayerEvents(Fe.parentPlayer):Fe.destroy()});for(let Fe=0;Fe!ta.destroyed);Mi.length?zg(this,Ge,Mi):this.processLeaveNode(Ge)}return se.length=0,Bl.forEach(Fe=>{this.players.push(Fe),Fe.onDone(()=>{Fe.destroy();const Ge=this.players.indexOf(Fe);this.players.splice(Ge,1)}),Fe.play()}),Bl}elementContainsData(a,e){let t=!1;const s=e[fn];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,c){let l=[];if(e){const n=this.playersByQueriedElement.get(a);n&&(l=n)}else{const n=this.playersByElement.get(a);if(n){const i=!c||c==mr;n.forEach(r=>{r.queued||!i&&r.triggerName!=s||l.push(r)})}}return(t||s)&&(l=l.filter(n=>!(t&&t!=n.namespaceId||s&&s!=n.triggerName))),l}_beforeAnimationBuild(a,e,t){const c=e.element,l=e.isRemovalTransition?void 0:a,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const r=i.element,d=r!==c,u=Ji(t,r,[]);this._getPreviousPlayers(r,d,l,n,e.toState).forEach(b=>{const D=b.getRealPlayer();D.beforeDestroy&&D.beforeDestroy(),b.destroy(),u.push(b)})}ls(c,e.fromStyles)}_buildAnimation(a,e,t,s,c,l){const n=e.triggerName,i=e.element,r=[],d=new Set,u=new Set,f=e.timelines.map(D=>{const q=D.element;d.add(q);const se=q[fn];if(se&&se.removedBeforeQueried)return new $n(D.duration,D.delay);const De=q!==i,rt=function z0(o){const a=[];return _h(o,a),a}((t.get(q)||ph).map(tn=>tn.getRealPlayer())).filter(tn=>!!tn.element&&tn.element===q),Qe=c.get(q),vt=l.get(q),jn=xg(0,this._normalizer,0,D.keyframes,Qe,vt),sr=this._buildPlayer(D,jn,rt);if(D.subTimeline&&s&&u.add(q),De){const tn=new va(a,n,q);tn.setRealPlayer(sr),r.push(tn)}return sr});r.forEach(D=>{Ji(this.playersByQueriedElement,D.element,[]).push(D),D.onDone(()=>function gs(o,a,e){let t;if(o instanceof Map){if(t=o.get(a),t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&o.delete(a)}}else if(t=o[a],t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&delete o[a]}return t}(this.playersByQueriedElement,D.element,D))}),d.forEach(D=>Pi(D,Ju));const b=Nr(f);return b.onDestroy(()=>{d.forEach(D=>ms(D,Ju)),Dn(i,e.toStyles)}),u.forEach(D=>{Ji(s,D,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new $n(a.duration,a.delay)}}class va{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new $n,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>Lu(a,e,void 0,t))}),this._queuedCallbacks={},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){Ji(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 Go(o){return o&&1===o.nodeType}function Hc(o,a){const e=o.style.display;return o.style.display=null!=a?a:"none",e}function Dc(o,a,e,t,s){const c=[];e.forEach(i=>c.push(Hc(i)));const l=[];t.forEach((i,r)=>{const d={};i.forEach(u=>{const f=d[u]=a.computeStyle(r,u,s);(!f||0==f.length)&&(r[fn]=jg,l.push(r))}),o.set(r,d)});let n=0;return e.forEach(i=>Hc(i,c[n++])),l}function mh(o,a){const e=new Map;if(o.forEach(n=>e.set(n,[])),0==a.length)return e;const s=new Set(a),c=new Map;function l(n){if(!n)return 1;let i=c.get(n);if(i)return i;const r=n.parentNode;return i=e.has(r)?r:s.has(r)?1:l(r),c.set(n,i),i}return a.forEach(n=>{const i=l(n);1!==i&&e.get(i).push(n)}),e}function Pi(o,a){var e;null===(e=o.classList)||void 0===e||e.add(a)}function ms(o,a){var e;null===(e=o.classList)||void 0===e||e.remove(a)}function zg(o,a,e){Nr(e).onDone(()=>o.processLeaveNode(a))}function _h(o,a){for(let e=0;es.add(c)):a.set(o,t),e.delete(o),!0}class Wo{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,c)=>{},this._transitionEngine=new fs(a,e,t),this._timelineEngine=new ch(a,e,t),this._transitionEngine.onRemovalComplete=(s,c)=>this.onRemovalComplete(s,c)}registerTrigger(a,e,t,s,c){const l=a+"-"+s;let n=this._triggerCache[l];if(!n){const i=[],r=Sc(this._driver,c,i);if(i.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${i.join("\n - ")}`);n=function N0(o,a,e){return new Gr(o,a,e)}(s,r,this._normalizer),this._triggerCache[l]=n}this._transitionEngine.registerTrigger(e,s,n)}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[c,l]=zu(t);this._timelineEngine.command(c,e,l,s)}else this._transitionEngine.trigger(a,e,t,s)}listen(a,e,t,s,c){if("@"==t.charAt(0)){const[l,n]=zu(t);return this._timelineEngine.listen(l,e,n,c)}return this._transitionEngine.listen(a,e,t,s,c)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let by=(()=>{class o{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let c=o.initialStylesByElement.get(e);c||o.initialStylesByElement.set(e,c={}),this._initialStyles=c}start(){this._state<1&&(this._startStyles&&Dn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Dn(this._element,this._initialStyles),this._endStyles&&(Dn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(ls(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ls(this._element,this._endStyles),this._endStyles=null),Dn(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function Ri(o){let a=null;const e=Object.keys(o);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:Zu(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class U0{validateStyleProperty(a){return Gu(a)}matchesElement(a,e){return!1}containsElement(a,e){return Wu(a,e)}query(a,e,t){return $u(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,s,c,l=[]){const i={duration:t,delay:s,fill:0==s?"both":"forwards"};c&&(i.easing=c);const r={},d=l.filter(f=>f instanceof Gg);(function sy(o,a){return 0===o||0===a})(t,s)&&d.forEach(f=>{let b=f.currentSnapshot;Object.keys(b).forEach(D=>r[D]=b[D])}),e=function oy(o,a,e){const t=Object.keys(e);if(t.length&&a.length){let c=a[0],l=[];if(t.forEach(n=>{c.hasOwnProperty(n)||l.push(n),c[n]=e[n]}),l.length)for(var s=1;sqr(f,!1)),r);const u=function _y(o,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=Ri(a[0]),a.length>1&&(t=Ri(a[a.length-1]))):a&&(e=Ri(a)),e||t?new by(o,e,t):null}(a,e);return new Gg(a,e,i,u)}}let q0=(()=>{class o extends Hn{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:g.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?bc(e):e;return $g(this._renderer,null,t,"register",[s]),new Wg(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.FYo),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Wg extends class P0{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new G0(this._id,a,e||{},this._renderer)}}class G0{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 $g(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!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function $g(o,a,e,t,s){return o.setProperty(a,`@@${e}:${t}`,s)}const bh="@.disabled";let yy=(()=>{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=(c,l)=>{const n=null==l?void 0:l.parentNode(c);n&&l.removeChild(n,c)}}createRenderer(e,t){const c=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(c);return d||(d=new Qg("",c,this.engine),this._rendererCache.set(c,d)),d}const l=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(l,n,e,d.name,d)};return t.data.animation.forEach(i),new wy(this,n,c,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(c=>{const[l,n]=c;l(n)}),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)(g.LFG(g.FYo),g.LFG(Wo),g.LFG(g.R0b))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Qg{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==bh?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 wy extends Qg{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==bh?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const s=function Yg(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(a);let c=e.substr(1),l="";return"@"!=c.charAt(0)&&([c,l]=function vy(o){const a=o.indexOf(".");return[o.substring(0,a),o.substr(a+1)]}(c)),this.engine.listen(this.namespaceId,s,c,l,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(a,e,t)}}let Jg=(()=>{class o extends Wo{constructor(e,t,s){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(Qu),g.LFG(qo))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const Zi=new g.OlP("AnimationModuleType"),Ch=[{provide:Hn,useClass:q0},{provide:qo,useFactory:function Ay(){return new B0}},{provide:Wo,useClass:Jg},{provide:g.FYo,useFactory:function xy(o,a,e){return new yy(o,a,e)},deps:[we,Wo,g.R0b]}],Kg=[{provide:Qu,useFactory:()=>new U0},{provide:Zi,useValue:"BrowserAnimations"},...Ch],Qn=[{provide:Qu,useClass:Vo},{provide:Zi,useValue:"NoopAnimations"},...Ch];let yh=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?Qn:Kg}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:Kg,imports:[Mr]}),o})();const Pc=new g.OlP("mat-sanity-checks",{providedIn:"root",factory:function Sy(){return!0}});let qe=(()=>{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!un()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(vg),g.LFG(Pc,8),g.LFG(T.K0))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ti],ti]}),o})();function $o(o){return class extends o{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=it(a)}}}function Aa(o,a){return class extends o{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 xa(o){return class extends o{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=it(a)}}}function My(o){return class extends o{constructor(...a){super(...a),this.stateChanges=new He.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,c=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);c!==a&&(this.errorState=c,this.stateChanges.next())}}}const tm=new g.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function im(){return(0,g.f3M)(g.soG)}});class gn{constructor(){this._localeChanges=new He.xQ,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 Qo=new g.OlP("mat-date-formats"),nm=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Rn(o,a){const e=Array(o);for(let t=0;t{class o extends gn{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 Rn(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Rn(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 Rn(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 c=this._createDateWithOverflow(e,t,s);return c.getMonth(),c}today(){return new Date}parse(e){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,Object.assign(Object.assign({},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(nm.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 c=new Date;return c.setFullYear(e,t,s),c.setHours(0,0,0,0),c}_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)(g.LFG(tm,8),g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const Hy={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 Dy=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[{provide:gn,useClass:Yo}],imports:[[Yi]]}),o})(),Py=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[{provide:Qo,useValue:Hy}],imports:[[Dy]]}),o})(),Cs=(()=>{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=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ys=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[qe],qe]}),o})();class am{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ah={enterDuration:225,exitDuration:150},xh=dn({passive:!0}),Rc=["mousedown","touchstart"],om=["mouseup","mouseleave","touchend","touchcancel"];class lm{constructor(a,e,t,s){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Lt(t))}fadeInRipple(a,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),c=Object.assign(Object.assign({},Ah),t.animation);t.centered&&(a=s.left+s.width/2,e=s.top+s.height/2);const l=t.radius||function ws(o,a,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-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),n=a-s.left,i=e-s.top,r=c.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-l+"px",d.style.top=i-l+"px",d.style.height=2*l+"px",d.style.width=2*l+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${r}ms`,this._containerElement.appendChild(d),function cm(o){window.getComputedStyle(o).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new am(this,d,t);return u.state=0,this._activeRipples.add(u),t.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const f=u===this._mostRecentTransientRipple;u.state=1,!t.persistent&&(!f||!this._isPointerDown)&&u.fadeOut()},r),u}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,s=Object.assign(Object.assign({},Ah),a.config.animation);t.style.transitionDuration=`${s.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Lt(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Rc))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(om),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Ro(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,xh)})})}_removeTriggerEvents(){this._triggerElement&&(Rc.forEach(a=>{this._triggerElement.removeEventListener(a,this,xh)}),this._pointerUpEventsRegistered&&om.forEach(a=>{this._triggerElement.removeEventListener(a,this,xh)}))}}const Th=new g.OlP("mat-ripple-global-options");let Ta=(()=>{class o{constructor(e,t,s,c,l){this._elementRef=e,this._animationMode=l,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new lm(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:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Je),g.Y36(Th,8),g.Y36(Zi,8))},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&g.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})(),Yn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[qe,Yi],qe]}),o})(),Eh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[qe]]}),o})(),Sh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,T.ez,qe,Eh]]}),o})();var xi=E(5254),Ea=E(8896);function As(o){return new Ci.y(a=>{let e;try{e=o()}catch(s){return void a.error(s)}return(e?(0,xi.D)(e):(0,Ea.c)()).subscribe(a)})}function By(o,a){}class kc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const rT={dialogContainer:Jt("dialogContainer",[bt("void, exit",Ve({opacity:0,transform:"scale(0.7)"})),bt("enter",Ve({transform:"none"})),wt("* => enter",Pt("150ms cubic-bezier(0, 0, 0.2, 1)",Ve({transform:"none",opacity:1}))),wt("* => void, * => exit",Pt("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ve({opacity:0})))])};let Mh=(()=>{class o extends lu{constructor(e,t,s,c,l,n,i,r){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=s,this._config=l,this._interactivityChecker=n,this._ngZone=i,this._focusMonitor=r,this._animationStateChanged=new g.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(d)),this._ariaLabelledBy=l.ariaLabelledBy||null,this._document=c}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=Jl(),s=this._elementRef.nativeElement;(!t||t===this._document.body||t===s||s.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Jl())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Jl();return e===t||e.contains(t)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(ku),g.Y36(g.sBO),g.Y36(T.K0,8),g.Y36(kc),g.Y36(mg),g.Y36(g.R0b),g.Y36(Fr))},o.\u0275dir=g.lG2({type:o,viewQuery:function(e,t){if(1&e&&g.Gf(Kl,7),2&e){let s;g.iGM(s=g.CRH())&&(t._portalOutlet=s.first)}},features:[g.qOj]}),o})(),Oy=(()=>{class o extends Mh{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),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()}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&g.WFA("@dialogContainer.start",function(c){return t._onAnimationStart(c)})("@dialogContainer.done",function(c){return t._onAnimationDone(c)}),2&e&&(g.Ikx("id",t._id),g.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),g.d8E("@dialogContainer",t._state))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,By,0,0,"ng-template",0)},directives:[Kl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[rT.dialogContainer]}}),o})(),um=0;class xs{constructor(a,e,t="mat-dialog-"+um++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new He.xQ,this._afterClosed=new He.xQ,this._beforeClosed=new He.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,mt.h)(s=>"opened"===s.state),(0,Qt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,mt.h)(s=>"closed"===s.state),(0,Qt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,mt.h)(s=>27===s.keyCode&&!this.disableClose&&!pr(s))).subscribe(s=>{s.preventDefault(),Fy(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Fy(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,mt.h)(e=>"closing"===e.state),(0,Qt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();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._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Fy(o,a,e){return void 0!==o._containerInstance&&(o._containerInstance._closeInteractionType=a),o.close(e)}const In=new g.OlP("MatDialogData"),aT=new g.OlP("mat-dialog-default-options"),Ly=new g.OlP("mat-dialog-scroll-strategy"),pm={provide:Ly,deps:[Wn],useFactory:function hm(o){return()=>o.scrollStrategies.block()}};let Ny=(()=>{class o{constructor(e,t,s,c,l,n,i,r,d,u){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=c,this._overlayContainer=l,this._dialogRefConstructor=i,this._dialogContainerType=r,this._dialogDataToken=d,this._animationMode=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.xQ,this._afterOpenedAtThisLevel=new He.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=As(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hi(void 0))),this._scrollStrategy=n}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){if(t=function fm(o,a){return Object.assign(Object.assign({},a),o)}(t,this._defaultOptions||new kc),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const s=this._createOverlay(t),c=this._attachDialogContainer(s,t);if("NoopAnimations"!==this._animationMode){const n=c._animationStateChanged.subscribe(i=>{"opening"===i.state&&(this._dialogAnimatingOpen=!0),"opened"===i.state&&(this._dialogAnimatingOpen=!1,n.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new zt.w),this._animationStateSubscriptions.add(n)}const l=this._attachDialogContent(e,c,s,t);return this._lastDialogRef=l,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(()=>this._removeOpenDialog(l)),this.afterOpened.next(l),c._initializeWithAttachedContent(),l}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(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new Br({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const c=g.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:kc,useValue:t}]}),l=new co(this._dialogContainerType,t.viewContainerRef,c,t.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,t,s,c){const l=new this._dialogRefConstructor(s,t,c.id);if(e instanceof g.Rgc)t.attachTemplatePortal(new ou(e,null,{$implicit:c.data,dialogRef:l}));else{const n=this._createInjector(c,l,t),i=t.attachComponentPortal(new co(e,c.viewContainerRef,n));l.componentInstance=i.instance}return l.updateSize(c.width,c.height).updatePosition(c.position),l}_createInjector(e,t,s){const c=e&&e.viewContainerRef&&e.viewContainerRef.injector,l=[{provide:this._dialogContainerType,useValue:s},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!c||!c.get(hn,null,g.XFs.Optional))&&l.push({provide:hn,useValue:{value:e.direction,change:(0,ke.of)()}}),g.zs3.create({parent:c||this._injector,providers:l})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,c)=>{s?c.setAttribute("aria-hidden",s):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),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--){let c=t[s];c!==e&&"SCRIPT"!==c.nodeName&&"STYLE"!==c.nodeName&&!c.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(c,c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){g.$Z()},o.\u0275dir=g.lG2({type:o}),o})(),Ts=(()=>{class o extends Ny{constructor(e,t,s,c,l,n,i,r){super(e,t,c,n,i,l,xs,Oy,In,r)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Wn),g.LFG(g.zs3),g.LFG(T.Ye,8),g.LFG(aT,8),g.LFG(Ly),g.LFG(o,12),g.LFG(Xl),g.LFG(Zi,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),Hh=0,Ic=(()=>{class o{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+Hh++}ngOnInit(){this._dialogRef||(this._dialogRef=function zy(o,a){let e=o.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 o.\u0275fac=function(e){return new(e||o)(g.Y36(xs,8),g.Y36(g.SBq),g.Y36(Ts))},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&g.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),Dh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),gm=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),o})(),Vc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Ts,pm],imports:[[ns,uo,qe],qe]}),o})();function Jn(o){return!!o&&(o instanceof Ci.y||"function"==typeof o.lift&&"function"==typeof o.subscribe)}var Uy=E(7830);function Es(...o){if(1===o.length){const a=o[0];if((0,cn.k)(a))return _r(a,null);if((0,Uy.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return _r(e.map(t=>a[t]),e)}}if("function"==typeof o[o.length-1]){const a=o.pop();return _r(o=1===o.length&&(0,cn.k)(o[0])?o[0]:o,null).pipe((0,et.U)(e=>a(...e)))}return _r(o,null)}function _r(o,a){return new Ci.y(e=>{const t=o.length;if(0===t)return void e.complete();const s=new Array(t);let c=0,l=0;for(let n=0;n{r||(r=!0,l++),s[n]=d},error:d=>e.error(d),complete:()=>{c++,(c===t||!r)&&(l===t&&e.next(a?a.reduce((d,u,f)=>(d[u]=s[f],d),{}):s),e.complete())}}))}})}const Gy=new class Zo extends yi.v{}(class qy extends sa.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var Ph=E(9312);class Qr extends ga.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(Qr.dispatch,this.delay,new Ti(a,this.destination)))}_next(a){this.scheduleMessage(Ph.P.createNext(a))}_error(a){this.scheduleMessage(Ph.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(Ph.P.createComplete()),this.unsubscribe()}}class Ti{constructor(a,e){this.notification=a,this.destination=e}}var Sa=E(5283);class Bc extends He.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new mn(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,c=t.length;let l;if(this.closed)throw new ha.N;if(this.isStopped||this.hasError?l=zt.w.EMPTY:(this.observers.push(a),l=new Sa.W(this,a)),s&&a.add(a=new Qr(a,s)),e)for(let n=0;ne&&(l=Math.max(l,c-e)),l>0&&s.splice(0,l),s}}class mn{constructor(a,e){this.time=a,this.value=e}}function Oc(o,a,e){let t;return t=o&&"object"==typeof o?o:{bufferSize:o,windowTime:a,refCount:!1,scheduler:e},s=>s.lift(function Ss({bufferSize:o=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let s,l,c=0,n=!1,i=!1;return function(d){c++,(!s||n)&&(n=!1,s=new Bc(o,a,t),l=d.subscribe({next(f){s.next(f)},error(f){n=!0,s.error(f)},complete(){i=!0,l=void 0,s.complete()}}));const u=s.subscribe(this);this.add(()=>{c--,u.unsubscribe(),l&&!i&&e&&0===c&&(l.unsubscribe(),l=void 0,s=void 0)})}}(t))}var Vn=E(1406),pi=E(7545);class Zn{}let Ma=(()=>{class o extends Zn{getTranslation(e){return(0,ke.of)({})}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Yr{}let Ha=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function br(o,a){if(o===a)return!0;if(null===o||null===a)return!1;if(o!=o&&a!=a)return!0;let s,c,l,e=typeof o;if(e==typeof a&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(a))return!1;for(c in l=Object.create(null),o){if(!br(o[c],a[c]))return!1;l[c]=!0}for(c in a)if(!(c in l)&&void 0!==a[c])return!1;return!0}if(!Array.isArray(a))return!1;if((s=o.length)==a.length){for(c=0;c{Fc(a[t])?t in o?e[t]=Rh(o[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Xo{}let kh=(()=>{class o extends Xo{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(),!Xi(e)||!Xi(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,c)=>{let l=this.getValue(t,c);return Xi(l)?l:s}):e}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class el{}let Ih=(()=>{class o extends el{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Vh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new g.vpe,this.onLangChange=new g.vpe,this.onDefaultLangChange=new g.vpe}}const Lc=new g.OlP("USE_STORE"),jc=new g.OlP("USE_DEFAULT_LANG"),Bh=new g.OlP("DEFAULT_LANGUAGE"),Nc=new g.OlP("USE_EXTEND");let _n=(()=>{class o{constructor(e,t,s,c,l,n=!0,i=!1,r=!1,d){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=c,this.missingTranslationHandler=l,this.useDefaultLang=n,this.isolate=i,this.extend=r,this.pending=!1,this._onTranslationChange=new g.vpe,this._onLangChange=new g.vpe,this._onDefaultLangChange=new g.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}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);void 0!==t?(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 void 0!==t?(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(void 0===this.translations[e]||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(Oc(1),(0,Qt.q)(1));return this.loadingTranslations=t.pipe((0,et.U)(s=>this.compiler.compileTranslations(s,e)),Oc(1),(0,Qt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},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]?Rh(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 c;if(t instanceof Array){let l={},n=!1;for(let i of t)l[i]=this.getParsedResult(e,i,s),Jn(l[i])&&(n=!0);return n?Es(t.map(r=>Jn(l[r])?l[r]:(0,ke.of)(l[r]))).pipe((0,et.U)(r=>{let d={};return r.forEach((u,f)=>{d[t[f]]=u}),d})):l}if(e&&(c=this.parser.interpolate(this.parser.getValue(e,t),s)),void 0===c&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(c=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),void 0===c){let l={key:t,translateService:this};void 0!==s&&(l.interpolateParams=s),c=this.missingTranslationHandler.handle(l)}return void 0!==c?c:t}get(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Vn.b)(s=>Jn(s=this.getParsedResult(s,e,t))?s:(0,ke.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return Jn(s)?s:(0,ke.of)(s)}}getStreamOnTranslationChange(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');return os(As(()=>this.get(e,t)),this.onTranslationChange.pipe((0,pi.w)(s=>{const c=this.getParsedResult(s.translations,e,t);return"function"==typeof c.subscribe?c:(0,ke.of)(c)})))}stream(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');return os(As(()=>this.get(e,t)),this.onLangChange.pipe((0,pi.w)(s=>{const c=this.getParsedResult(s.translations,e,t);return Jn(c)?c:(0,ke.of)(c)})))}instant(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(Jn(s)){if(e instanceof Array){let c={};return e.forEach((l,n)=>{c[e[n]]=e[n]}),c}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("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)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)(g.LFG(Vh),g.LFG(Zn),g.LFG(el),g.LFG(Xo),g.LFG(Yr),g.LFG(jc),g.LFG(Lc),g.LFG(Nc),g.LFG(Bh))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),Jr=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let c=l=>{this.value=void 0!==l?l:e,this.lastKey=e,this._ref.markForCheck()};if(s){let l=this.translate.getParsedResult(s,e,t);Jn(l.subscribe)?l.subscribe(c):c(l)}this.translate.get(e,t).subscribe(c)}transform(e,...t){if(!e||!e.length)return e;if(br(e,this.lastKey)&&br(t,this.lastParams))return this.value;let s;if(Xi(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let c=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(c)}catch(l){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(c=>{this.lastKey&&c.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,c.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(c=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,c.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(_n,16),g.Y36(g.sBO,16))},o.\u0275pipe=g.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),tl=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:Zn,useClass:Ma},e.compiler||{provide:el,useClass:Ih},e.parser||{provide:Xo,useClass:kh},e.missingTranslationHandler||{provide:Yr,useClass:Ha},Vh,{provide:Lc,useValue:e.isolate},{provide:jc,useValue:e.useDefaultLang},{provide:Nc,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},_n]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:Zn,useClass:Ma},e.compiler||{provide:el,useClass:Ih},e.parser||{provide:Xo,useClass:kh},e.missingTranslationHandler||{provide:Yr,useClass:Ha},{provide:Lc,useValue:e.isolate},{provide:jc,useValue:e.useDefaultLang},{provide:Nc,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},_n]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),$y=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(xs))},o.\u0275cmp=g.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&&(g.TgZ(0,"h2",0),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[Dh],pipes:[Jr],styles:[""]}),o})();const _m=["mat-button",""],Qy=["*"],Ky=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],oT=Aa($o(xa(class{constructor(o){this._elementRef=o}})));let zc=(()=>{class o extends oT{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 c of Ky)this._hasHostAttributes(c)&&this._getHostElement().classList.add(c);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)(g.Y36(g.SBq),g.Y36(Fr),g.Y36(Zi,8))},o.\u0275cmp=g.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&&g.Gf(Ta,5),2&e){let s;g.iGM(s=g.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(g.uIk("disabled",t.disabled||null),g.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[g.qOj],attrs:_m,ngContentSelectors:Qy,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&&(g.F$t(),g.TgZ(0,"span",0),g.Hsn(1),g.qZA(),g._UZ(2,"span",1),g._UZ(3,"span",2)),2&e&&(g.xp6(2),g.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),g.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Ta],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),o})(),Bn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,qe],qe]}),o})();const Zy=["connectionContainer"],lT=["inputContainer"],cT=["label"];function dT(o,a){1&o&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15),g._UZ(3,"div",16),g._UZ(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15),g._UZ(7,"div",16),g._UZ(8,"div",17),g.qZA(),g.BQk())}function Xy(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){return g.CHM(e),g.oxw().updateOutlineGap()}),g.Hsn(1,1),g.qZA()}if(2&o){const e=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Cm(o,a){if(1&o&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&o){const e=g.oxw(2);g.xp6(3),g.Oqu(e._control.placeholder)}}function uT(o,a){1&o&&g.Hsn(0,3,["*ngSwitchCase","true"])}function ew(o,a){1&o&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function Ms(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){return g.CHM(e),g.oxw().updateOutlineGap()}),g.YNc(2,Cm,4,1,"ng-container",12),g.YNc(3,uT,1,0,"ng-content",12),g.YNc(4,ew,2,0,"span",22),g.qZA()}if(2&o){const e=g.oxw();g.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),g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),g.uIk("for",e._control.id)("aria-owns",e._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function tw(o,a){1&o&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function ym(o,a){if(1&o&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&o){const e=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function iw(o,a){if(1&o&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&o){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState)}}function wm(o,a){if(1&o&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&o){const e=g.oxw(2);g.Q6J("id",e._hintLabelId),g.xp6(1),g.Oqu(e.hintLabel)}}function Uc(o,a){if(1&o&&(g.TgZ(0,"div",27),g.YNc(1,wm,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&o){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",e.hintLabel)}}const nw=["*",[["","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 rw=0;const Am=new g.OlP("MatError");let xm=(()=>{class o{constructor(e,t){this.id="mat-error-"+rw++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(g.$8M("aria-live"),g.Y36(g.SBq))},o.\u0275dir=g.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&g.uIk("id",t.id)},inputs:{id:"id"},features:[g._Bn([{provide:Am,useExisting:o}])]}),o})();const aw={transitionMessages:Jt("transitionMessages",[bt("enter",Ve({opacity:1,transform:"translateY(0%)"})),wt("void => enter",[Ve({opacity:0,transform:"translateY(-5px)"}),Pt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let qc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o}),o})(),Tm=0;const Gc=new g.OlP("MatHint");let pT=(()=>{class o{constructor(){this.align="start",this.id="mat-hint-"+Tm++}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(g.uIk("id",t.id)("align",null),g.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[g._Bn([{provide:Gc,useExisting:o}])]}),o})(),Hs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-label"]]}),o})(),lw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const fT=new g.OlP("MatPrefix"),Oh=new g.OlP("MatSuffix");let Fh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["","matSuffix",""]],features:[g._Bn([{provide:Oh,useExisting:o}])]}),o})(),$c=0;const Lh=Aa(class{constructor(o){this._elementRef=o}},"primary"),Em=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Sm=new g.OlP("MatFormField");let Mm=(()=>{class o extends Lh{constructor(e,t,s,c,l,n,i){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=c,this._platform=l,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+$c++,this._labelId="mat-form-field-label-"+$c++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=c&&c.appearance?c.appearance:"legacy",this._hideRequiredMarker=!(!c||null==c.hideRequiredMarker)&&c.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=it(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(hi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ht(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ht(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Gn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(hi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(hi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ht(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,no(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(c=>"start"===c.align):null,s=this._hintChildren?this._hintChildren.find(c=>"end"===c.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",c=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${s}, ${c}`);for(let u=0;u0?.75*D+10:0}for(let d=0;d{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,qe,fg],qe]}),o})();const Fm={provide:new g.OlP("mat-select-scroll-strategy"),deps:[Wn],useFactory:function Om(o){return()=>o.scrollStrategies.reposition()}};let Yc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Fm],imports:[[T.ez,ns,Sh,qe],qn,Cr,Sh,qe]}),o})();var ii=E(6053);const Lm=new Set;let Ds,jm=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Nm}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function xw(o){if(!Lm.has(o))try{Ds||(Ds=document.createElement("style"),Ds.setAttribute("type","text/css"),document.head.appendChild(Ds)),Ds.sheet&&(Ds.sheet.insertRule(`@media ${o} {body{ }}`,0),Lm.add(o))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Nm(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let zm=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Da(to(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=Da(to(e)).map(l=>this._registerQuery(l).observable);let c=(0,ii.aj)(s);return c=os(c.pipe((0,Qt.q)(1)),c.pipe(Tu(1),(0,fa.b)(0))),c.pipe((0,et.U)(l=>{const n={matches:!1,breakpoints:{}};return l.forEach(({matches:i,query:r})=>{n.matches=n.matches||i,n.breakpoints[r]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),c={observable:new Ci.y(l=>{const n=i=>this._zone.run(()=>l.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(hi(t),(0,et.U)(({matches:l})=>({query:e,matches:l})),ht(this._destroySubject)),mql:t};return this._queries.set(e,c),c}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(jm),g.LFG(g.R0b))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Da(o){return o.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const Ew={tooltipState:Jt("state",[bt("initial, void, hidden",Ve({opacity:0,transform:"scale(0)"})),bt("visible",Ve({transform:"scale(1)"})),wt("* => visible",Pt("200ms cubic-bezier(0, 0, 0.2, 1)",jr([Ve({opacity:0,transform:"scale(0)",offset:0}),Ve({opacity:.5,transform:"scale(0.99)",offset:.5}),Ve({opacity:1,transform:"scale(1)",offset:1})]))),wt("* => hidden",Pt("100ms cubic-bezier(0, 0, 0.2, 1)",Ve({opacity:0})))])},zh="tooltip-panel",Sw=dn({passive:!0}),On=new g.OlP("mat-tooltip-scroll-strategy"),Hw={provide:On,deps:[Wn],useFactory:function Mw(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}},Xn=new g.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Fn(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ln=(()=>{class o{constructor(e,t,s,c,l,n,i,r,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=c,this._ngZone=l,this._platform=n,this._ariaDescriber=i,this._focusMonitor=r,this._dir=u,this._defaultOptions=f,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.xQ,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ht(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=it(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ln(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ln(e)}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(ht(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,Sw)}),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 co(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ht(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.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(ht(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}-${zh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ht(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ht(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(ht(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!pr(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),c=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),c.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),c.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:c,y:l}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:c,originY:l}}}_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:c,y:l}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:c,overlayY:l}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Qt.q)(1),ht(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:c}=e;let l;if(l="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===c?"above":"below",l!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${zh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+l)}this._currentPosition=l}}_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",()=>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,Sw)})}_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 o.\u0275fac=function(e){g.$Z()},o.\u0275dir=g.lG2({type:o,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),o})(),Gm=(()=>{class o extends Ln{constructor(e,t,s,c,l,n,i,r,d,u,f,b){super(e,t,s,c,l,n,i,r,d,u,f,b),this._tooltipComponent=Dw}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Wn),g.Y36(g.SBq),g.Y36(zf),g.Y36(g.s_b),g.Y36(g.R0b),g.Y36(Je),g.Y36(Pu),g.Y36(Fr),g.Y36(On),g.Y36(hn,8),g.Y36(Xn,8),g.Y36(T.K0))},o.\u0275dir=g.lG2({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[g.qOj]}),o})(),Wm=(()=>{class o{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new He.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.sBO))},o.\u0275dir=g.lG2({type:o}),o})(),Dw=(()=>{class o extends Wm{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.sBO),g.Y36(zm))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&g.Udp("zoom","visible"===t._visibility?1:null)},features:[g.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(g.TgZ(0,"div",0),g.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(c){return t._animationDone(c)}),g.ALo(1,"async"),g._uU(2),g.qZA()),2&e){let s;g.ekj("mat-tooltip-handset",null==(s=g.lcZ(1,5,t._isHandset))?null:s.matches),g.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),g.xp6(2),g.Oqu(t.message)}},directives:[T.mk],pipes:[T.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Ew.tooltipState]},changeDetection:0}),o})(),Ps=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Hw],imports:[[Ou,T.ez,ns,qe],qe,qn]}),o})(),Gh=(()=>{class o{constructor(){this.changes=new He.xQ,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 c=e*t;return`${c+1} \u2013 ${c<(s=Math.max(s,0))?Math.min(c+t,s):c+t} of ${s}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Qm={provide:Gh,deps:[[new g.FiY,new g.tp0,Gh]],useFactory:function $m(o){return o||new Gh}};let Rs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Qm],imports:[[T.ez,Bn,Yc,Ps,qe]]}),o})();var Qh=E(943);const Jm=["mat-menu-item",""];function Km(o,a){1&o&&(g.O4$(),g.TgZ(0,"svg",2),g._UZ(1,"polygon",3),g.qZA())}const Yh=["*"];function Zm(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"div",0),g.NdJ("keydown",function(s){return g.CHM(e),g.oxw()._handleKeydown(s)})("click",function(){return g.CHM(e),g.oxw().closed.emit("click")})("@transformMenu.start",function(s){return g.CHM(e),g.oxw()._onAnimationStart(s)})("@transformMenu.done",function(s){return g.CHM(e),g.oxw()._onAnimationDone(s)}),g.TgZ(1,"div",1),g.Hsn(2),g.qZA(),g.qZA()}if(2&o){const e=g.oxw();g.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),g.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const il={transformMenu:Jt("transformMenu",[bt("void",Ve({opacity:0,transform:"scale(0.8)"})),wt("void => enter",Pt("120ms cubic-bezier(0, 0, 0.2, 1)",Ve({opacity:1,transform:"scale(1)"}))),wt("* => void",Pt("100ms 25ms linear",Ve({opacity:0})))]),fadeInItems:Jt("fadeInItems",[bt("showing",Ve({opacity:1})),wt("void => *",[Ve({opacity:0}),Pt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ow=new g.OlP("MatMenuContent"),Jh=new g.OlP("MAT_MENU_PANEL"),Fw=xa($o(class{}));let Kc=(()=>{class o extends Fw{constructor(e,t,s,c,l){var n;super(),this._elementRef=e,this._focusMonitor=s,this._parentMenu=c,this._changeDetectorRef=l,this.role="menuitem",this._hovered=new He.xQ,this._focused=new He.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(n=null==c?void 0:c.addItem)||void 0===n||n.call(c,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),s=t.querySelectorAll("mat-icon, .material-icons");for(let c=0;c{class o{constructor(e,t,s){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new g.n_E,this._tabSubscription=zt.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new g.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+jw++}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=it(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=it(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 Ho(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(hi(this._directDescendantItems),(0,pi.w)(e=>(0,Gn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(hi(this._directDescendantItems),(0,pi.w)(t=>(0,Gn.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:pr(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.lazyContent?this._ngZone.onStable.pipe((0,Qt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let s=this._directDescendantItems.first._getHostElement().parentElement;for(;s;){if("menu"===s.getAttribute("role")){s.focus();break}s=s.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,c=Object.keys(this._classList).find(l=>l.startsWith(this._elevationPrefix));(!c||c===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}_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(hi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Xm))},o.\u0275dir=g.lG2({type:o,contentQueries:function(e,t,s){if(1&e&&(g.Suo(s,Ow,5),g.Suo(s,Kc,5),g.Suo(s,Kc,4)),2&e){let c;g.iGM(c=g.CRH())&&(t.lazyContent=c.first),g.iGM(c=g.CRH())&&(t._allItems=c),g.iGM(c=g.CRH())&&(t.items=c)}},viewQuery:function(e,t){if(1&e&&g.Gf(g.Rgc,5),2&e){let s;g.iGM(s=g.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"}}),o})(),Nw=(()=>{class o extends nl{constructor(e,t,s){super(e,t,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Xm))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&g.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[g._Bn([{provide:Jh,useExisting:o}]),g.qOj],ngContentSelectors:Yh,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&&(g.F$t(),g.YNc(0,Zm,3,6,"ng-template"))},directives:[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}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[il.transformMenu,il.fadeInItems]},changeDetection:0}),o})();const e_=new g.OlP("mat-menu-scroll-strategy"),t_={provide:e_,deps:[Wn],useFactory:function zw(o){return()=>o.scrollStrategies.reposition()}},Zh=dn({passive:!0});let i_=(()=>{class o{constructor(e,t,s,c,l,n,i,r){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=n,this._dir=i,this._focusMonitor=r,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=zt.w.EMPTY,this._hoverSubscription=zt.w.EMPTY,this._menuCloseSubscription=zt.w.EMPTY,this._handleTouchStart=d=>{fc(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new g.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new g.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=l instanceof nl?l:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Zh),n&&(n._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._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Zh),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),s=t.positionStrategy;this._setPosition(s),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof nl&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(ht(this.menu.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.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(){var e;null===(e=this._overlayRef)||void 0===e||e.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 nl?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,mt.h)(s=>"void"===s.toState),(0,Qt.q)(1),ht(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Br({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,s]="before"===this.menu.xPosition?["end","start"]:["start","end"],[c,l]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[c,l],[r,d]=[t,s],u=0;this.triggersSubmenu()?(d=t="before"===this.menu.xPosition?"start":"end",s=r="end"===t?"start":"end",u="bottom"===c?8:-8):this.menu.overlapTrigger||(n="top"===c?"bottom":"top",i="top"===l?"bottom":"top"),e.withPositions([{originX:t,originY:n,overlayX:r,overlayY:c,offsetY:u},{originX:s,originY:n,overlayX:d,overlayY:c,offsetY:u},{originX:t,originY:i,overlayX:r,overlayY:l,offsetY:-u},{originX:s,originY:i,overlayX:d,overlayY:l,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,ke.of)(),c=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,mt.h)(l=>l!==this._menuItemInstance),(0,mt.h)(()=>this._menuOpen)):(0,ke.of)();return(0,Gn.T)(e,s,c,t)}_handleMousedown(e){Ro(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,mt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Qh.g)(0,H)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof nl&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Qt.q)(1),(0,Qh.g)(0,H),ht(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new ou(this.menu.templateRef,this._viewContainerRef)),this._portal}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Wn),g.Y36(g.SBq),g.Y36(g.s_b),g.Y36(e_),g.Y36(Jh,8),g.Y36(Kc,10),g.Y36(hn,8),g.Y36(Fr))},o.\u0275dir=g.lG2({type:o,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&g.NdJ("click",function(c){return t._handleClick(c)})("mousedown",function(c){return t._handleMousedown(c)})("keydown",function(c){return t._handleKeydown(c)}),2&e&&g.uIk("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"}}),o})(),n_=(()=>{class o extends i_{}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275dir=g.lG2({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[g.qOj]}),o})(),rl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[t_],imports:[[T.ez,qe,Yn,ns],qn,qe]}),o})();var al=E(1737),zi=E(7221);function Zc(o){return a=>a.lift(new Xh(o))}class Xh{constructor(a){this.callback=a}call(a,e){return e.subscribe(new ep(a,this.callback))}}class ep extends ga.L{constructor(a,e){super(a),this.add(new zt.w(e))}}var Pa=E(2474);const Uw=["*"];let Xc;function ed(o){var a;return(null===(a=function ks(){if(void 0===Xc&&(Xc=null,"undefined"!=typeof window)){const o=window;void 0!==o.trustedTypes&&(Xc=o.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Xc}())||void 0===a?void 0:a.createHTML(o))||o}function td(o){return Error(`Unable to find icon with the name "${o}"`)}function tp(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function ip(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class Is{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Ne=(()=>{class o{constructor(e,t,s,c){this._httpClient=e,this._sanitizer=t,this._errorHandler=c,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",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,c){return this._addSvgIconConfig(e,t,new Is(s,null,c))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,c){const l=this._sanitizer.sanitize(g.q3G.HTML,s);if(!l)throw ip(s);const n=ed(l);return this._addSvgIconConfig(e,t,new Is("",n,c))}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 Is(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const c=this._sanitizer.sanitize(g.q3G.HTML,t);if(!c)throw ip(t);const l=ed(c);return this._addSvgIconSetConfig(e,new Is("",l,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(g.q3G.RESOURCE_URL,e);if(!t)throw tp(e);const s=this._cachedIconsByUrl.get(t);return s?(0,ke.of)(id(s)):this._loadSvgIconFromConfig(new Is(e,null)).pipe((0,It.b)(c=>this._cachedIconsByUrl.set(t,c)),(0,et.U)(c=>id(c)))}getNamedSvgIcon(e,t=""){const s=sl(t,e);let c=this._svgIconConfigs.get(s);if(c)return this._getSvgFromConfig(c);if(c=this._getIconConfigFromResolvers(t,e),c)return this._svgIconConfigs.set(s,c),this._getSvgFromConfig(c);const l=this._iconSetConfigs.get(t);return l?this._getSvgFromIconSetConfigs(e,l):(0,al._)(td(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,ke.of)(id(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,et.U)(t=>id(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,ke.of)(s):Es(t.filter(l=>!l.svgText).map(l=>this._loadSvgIconSetFromConfig(l).pipe((0,zi.K)(n=>{const r=`Loading icon set URL: ${this._sanitizer.sanitize(g.q3G.RESOURCE_URL,l.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(r)),(0,ke.of)(null)})))).pipe((0,et.U)(()=>{const l=this._extractIconWithNameFromAnySet(e,t);if(!l)throw td(e);return l}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const c=t[s];if(c.svgText&&c.svgText.toString().indexOf(e)>-1){const l=this._svgElementFromConfig(c),n=this._extractSvgIconFromSet(l,e,c.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,It.b)(t=>e.svgText=t),(0,et.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,ke.of)(null):this._fetchIcon(e).pipe((0,It.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const c=e.querySelector(`[id="${t}"]`);if(!c)return null;const l=c.cloneNode(!0);if(l.removeAttribute("id"),"svg"===l.nodeName.toLowerCase())return this._setSvgAttributes(l,s);if("symbol"===l.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(l),s);const n=this._svgElementFromString(ed(""));return n.appendChild(l),this._setSvgAttributes(n,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(ed("")),s=e.attributes;for(let c=0;ced(d)),Zc(()=>this._inProgressUrlFetches.delete(n)),(0,Pa.B)());return this._inProgressUrlFetches.set(n,r),r}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(sl(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:""}}}),Ww=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r_=Ww.map(o=>`[${o}]`).join(", "),$w=/^url\(['"]?#(.*?)['"]?\)$/;let np=(()=>{class o extends nd{constructor(e,t,s,c,l){super(e),this._iconRegistry=t,this._location=c,this._errorHandler=l,this._inline=!1,this._currentIconFetch=zt.w.EMPTY,s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=it(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=e.querySelectorAll("style");for(let c=0;c{s.forEach(l=>{c.setAttribute(l.name,`url('${e}#${l.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(r_),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let c=0;c{const n=t[c],i=n.getAttribute(l),r=i?i.match($w):null;if(r){let d=s.get(n);d||(d=[],s.set(n,d)),d.push({name:l,value:r[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(c=>this._setSvgElement(c),c=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${c.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Ne),g.$8M("aria-hidden"),g.Y36(rd),g.Y36(g.qLn))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(g.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),g.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:[g.qOj],ngContentSelectors:Uw,decls:1,vars:0,template:function(e,t){1&e&&(g.F$t(),g.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),o})(),er=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[qe],qe]}),o})(),a_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[],imports:[[Rs,rl,er,Bn,tl,T.ez]]}),o})();function Vs(){const o=new kc;return o.disableClose=!0,o.autoFocus=!1,o}E(9441),new Intl.Collator("cs",{numeric:!0});class d_{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}}}}var sp=E(4450),sv=E(1762);function u_(o,a){let e=!1;return arguments.length>=2&&(e=!0),function(s){return s.lift(new ov(o,a,e))}}class ov{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new op(a,this.accumulator,this.seed,this.hasSeed))}}class op extends ga.L{constructor(a,e,t,s){super(a),this.accumulator=e,this._seed=t,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(s){this.destination.error(s)}this.seed=t,this.destination.next(t)}}var lv=E(4231);function ld(o){return function(e){return 0===o?(0,Ea.c)():e.lift(new cv(o))}}class cv{constructor(a){if(this.total=a,this.total<0)throw new lv.W}call(a,e){return e.subscribe(new dv(a,this.total))}}class dv extends ga.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,s=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,s=this.ring;for(let c=0;co.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[c]===s)}return o===a}function Av(o){return Array.prototype.concat.apply([],o)}function fp(o){return o.length>0?o[o.length-1]:null}function fi(o,a){for(const e in o)o.hasOwnProperty(e)&&a(o[e],e)}function ir(o){return(0,g.CqO)(o)?o:(0,g.QGY)(o)?(0,xi.D)(Promise.resolve(o)):(0,ke.of)(o)}const b_={exact:function Ls(o,a,e){if(!js(o.segments,a.segments)||!hd(o.segments,a.segments,e)||o.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!o.children[t]||!Ls(o.children[t],a.children[t],e))return!1;return!0},subset:gp},C_={exact:function ud(o,a){return qi(o,a)},subset:function Tv(o,a){return Object.keys(a).length<=Object.keys(o).length&&Object.keys(a).every(e=>__(o[e],a[e]))},ignored:()=>!0};function dd(o,a,e){return b_[e.paths](o.root,a.root,e.matrixParams)&&C_[e.queryParams](o.queryParams,a.queryParams)&&!("exact"===e.fragment&&o.fragment!==a.fragment)}function gp(o,a,e){return mp(o,a,a.segments,e)}function mp(o,a,e,t){if(o.segments.length>e.length){const s=o.segments.slice(0,e.length);return!(!js(s,e)||a.hasChildren()||!hd(s,e,t))}if(o.segments.length===e.length){if(!js(o.segments,e)||!hd(o.segments,e,t))return!1;for(const s in a.children)if(!o.children[s]||!gp(o.children[s],a.children[s],t))return!1;return!0}{const s=e.slice(0,o.segments.length),c=e.slice(o.segments.length);return!!(js(o.segments,s)&&hd(o.segments,s,t)&&o.children[dt])&&mp(o.children[dt],a,c,t)}}function hd(o,a,e){return a.every((t,s)=>C_[e](o[s].parameters,t.parameters))}class ka{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 w_.serialize(this)}}class Ct{constructor(a,e){this.segments=a,this.children=e,this.parent=null,fi(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yr(this)}}class Ia{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ra(this.parameters)),this._parameterMap}toString(){return md(this)}}function js(o,a){return o.length===a.length&&o.every((e,t)=>e.path===a[t].path)}class y_{}class Va{parse(a){const e=new Iv(a);return new ka(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${pd(a.root,!0)}`,t=function v_(o){const a=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(s=>`${fd(e)}=${fd(s)}`).join("&"):`${fd(e)}=${fd(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function oE(o){return encodeURI(o)}(a.fragment)}`:""}`}}const w_=new Va;function yr(o){return o.segments.map(a=>md(a)).join("/")}function pd(o,a){if(!o.hasChildren())return yr(o);if(a){const e=o.children[dt]?pd(o.children[dt],!1):"",t=[];return fi(o.children,(s,c)=>{c!==dt&&t.push(`${c}:${pd(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Sv(o,a){let e=[];return fi(o.children,(t,s)=>{s===dt&&(e=e.concat(a(t,s)))}),fi(o.children,(t,s)=>{s!==dt&&(e=e.concat(a(t,s)))}),e}(o,(t,s)=>s===dt?[pd(o.children[dt],!1)]:[`${s}:${pd(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[dt]?`${yr(o)}/${e[0]}`:`${yr(o)}/(${e.join("//")})`}}function _p(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fd(o){return _p(o).replace(/%3B/gi,";")}function gd(o){return _p(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bp(o){return decodeURIComponent(o)}function Cp(o){return bp(o.replace(/\+/g,"%20"))}function md(o){return`${gd(o.path)}${function Mv(o){return Object.keys(o).map(a=>`;${gd(a)}=${gd(o[a])}`).join("")}(o.parameters)}`}const Hv=/^[^\/()?;=#]+/;function _d(o){const a=o.match(Hv);return a?a[0]:""}const Dv=/^[^=?&#]+/,Rv=/^[^&#]+/;class Iv{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],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[dt]=new Ct(a,e)),t}parseSegment(){const a=_d(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new Ia(bp(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=_d(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=_d(this.remaining);s&&(t=s,this.capture(t))}a[bp(e)]=bp(t)}parseQueryParam(a){const e=function Pv(o){const a=o.match(Dv);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const l=function kv(o){const a=o.match(Rv);return a?a[0]:""}(this.remaining);l&&(t=l,this.capture(t))}const s=Cp(e),c=Cp(t);if(a.hasOwnProperty(s)){let l=a[s];Array.isArray(l)||(l=[l],a[s]=l),l.push(c)}else a[s]=c}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=_d(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let c;t.indexOf(":")>-1?(c=t.substr(0,t.indexOf(":")),this.capture(c),this.capture(":")):a&&(c=dt);const l=this.parseChildren();e[c]=1===Object.keys(l).length?l[dt]:new Ct([],l),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 Error(`Expected "${a}".`)}}class A_{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=Ba(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Ba(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=bd(a,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==a)}pathFromRoot(a){return bd(a,this._root).map(e=>e.value)}}function Ba(o,a){if(o===a.value)return a;for(const e of a.children){const t=Ba(o,e);if(t)return t}return null}function bd(o,a){if(o===a.value)return[a];for(const e of a.children){const t=bd(o,e);if(t.length)return t.unshift(a),t}return[]}class nr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Oa(o){const a={};return o&&o.children.forEach(e=>a[e.value.outlet]=e),a}class yp extends A_{constructor(a,e){super(a),this.snapshot=e,Ap(this,a)}toString(){return this.snapshot.toString()}}function wp(o,a){const e=function x_(o,a){const l=new dl([],{},{},"",{},dt,a,null,o.root,-1,{});return new E_("",new nr(l,[]))}(o,a),t=new ai([new Ia("",{})]),s=new ai({}),c=new ai({}),l=new ai({}),n=new ai(""),i=new Kr(t,s,l,n,c,dt,a,e.root);return i.snapshot=e.root,new yp(new nr(i,[]),e)}class Kr{constructor(a,e,t,s,c,l,n,i){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=c,this.outlet=l,this.component=n,this._futureSnapshot=i}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,et.U)(a=>Ra(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,et.U)(a=>Ra(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function vp(o,a="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const s=e[t],c=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(c.component)break;t--}}return function T_(o){return o.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class dl{constructor(a,e,t,s,c,l,n,i,r,d,u){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=c,this.outlet=l,this.component=n,this.routeConfig=i,this._urlSegment=r,this._lastPathIndex=d,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=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 E_ extends A_{constructor(a,e){super(e),this.url=a,Ap(this,e)}toString(){return Ns(this._root)}}function Ap(o,a){a.value._routerState=o,a.children.forEach(e=>Ap(o,e))}function Ns(o){const a=o.children.length>0?` { ${o.children.map(Ns).join(", ")} } `:"";return`${o.value}${a}`}function xp(o){if(o.snapshot){const a=o.snapshot,e=o._futureSnapshot;o.snapshot=e,qi(a.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),a.fragment!==e.fragment&&o.fragment.next(e.fragment),qi(a.params,e.params)||o.params.next(e.params),function Fs(o,a){if(o.length!==a.length)return!1;for(let e=0;eqi(e.parameters,a[t].parameters))}(o.url,a.url);return e&&!(!o.parent!=!a.parent)&&(!o.parent||ul(o.parent,a.parent))}function hl(o,a,e){if(e&&o.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const s=function Cd(o,a,e){return a.children.map(t=>{for(const s of e.children)if(o.shouldReuseRoute(t.value,s.value.snapshot))return hl(o,t,s);return hl(o,t)})}(o,a,e);return new nr(t,s)}{if(o.shouldAttach(a.value)){const c=o.retrieve(a.value);if(null!==c){const l=c.route;return l.value._futureSnapshot=a.value,l.children=a.children.map(n=>hl(o,n)),l}}const t=function pl(o){return new Kr(new ai(o.url),new ai(o.params),new ai(o.queryParams),new ai(o.fragment),new ai(o.data),o.outlet,o.component,o)}(a.value),s=a.children.map(c=>hl(o,c));return new nr(t,s)}}function yd(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function fl(o){return"object"==typeof o&&null!=o&&o.outlets}function zs(o,a,e,t,s){let c={};return t&&fi(t,(l,n)=>{c[n]=Array.isArray(l)?l.map(i=>`${i}`):`${l}`}),new ka(e.root===o?a:gl(e.root,o,a),c,s)}function gl(o,a,e){const t={};return fi(o.children,(s,c)=>{t[c]=s===a?e:gl(s,a,e)}),new Ct(o.segments,t)}class S_{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&yd(t[0]))throw new Error("Root segment cannot have matrix parameters");const s=t.find(fl);if(s&&s!==fp(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wd{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function D_(o,a,e){if(o||(o=new Ct([],{})),0===o.segments.length&&o.hasChildren())return vd(o,a,e);const t=function lE(o,a,e){let t=0,s=a;const c={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return c;const l=o.segments[s],n=e[t];if(fl(n))break;const i=`${n}`,r=t0&&void 0===i)break;if(i&&r&&"object"==typeof r&&void 0===r.outlets){if(!Ad(i,r,l))return c;t+=2}else{if(!Ad(i,{},l))return c;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(o,a,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof c&&(c=[c]),null!==c&&(s[l]=D_(o.children[l],a,c))}),fi(o.children,(c,l)=>{void 0===t[l]&&(s[l]=c)}),new Ct(o.segments,s)}}function ml(o,a,e){const t=o.segments.slice(0,a);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=ml(new Ct([],{}),0,e))}),a}function Sp(o){const a={};return fi(o,(e,t)=>a[t]=`${e}`),a}function Ad(o,a,e){return o==e.path&&qi(a,e.parameters)}class Ov{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),xp(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const s=Oa(e);a.children.forEach(c=>{const l=c.value.outlet;this.deactivateRoutes(c,s[l],t),delete s[l]}),fi(s,(c,l)=>{this.deactivateRouteAndItsChildren(c,t)})}deactivateRoutes(a,e,t){const s=a.value,c=e?e.value:null;if(s===c)if(s.component){const l=t.getContext(s.outlet);l&&this.deactivateChildRoutes(a,e,l.children)}else this.deactivateChildRoutes(a,e,t);else c&&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,c=Oa(a);for(const l of Object.keys(c))this.deactivateRouteAndItsChildren(c[l],s);if(t&&t.outlet){const l=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:l,route:a,contexts:n})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,c=Oa(a);for(const l of Object.keys(c))this.deactivateRouteAndItsChildren(c[l],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=Oa(e);a.children.forEach(c=>{this.activateRoutes(c,s[c.value.outlet],t),this.forwardEvent(new g_(c.value.snapshot))}),a.children.length&&this.forwardEvent(new hp(a.value.snapshot))}activateRoutes(a,e,t){const s=a.value,c=e?e.value:null;if(xp(s),s===c)if(s.component){const l=t.getOrCreateContext(s.outlet);this.activateChildRoutes(a,e,l.children)}else this.activateChildRoutes(a,e,t);else if(s.component){const l=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const n=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),l.children.onOutletReAttached(n.contexts),l.attachRef=n.componentRef,l.route=n.route.value,l.outlet&&l.outlet.attach(n.componentRef,n.route.value),xp(n.route.value),this.activateChildRoutes(a,null,l.children)}else{const n=function Fv(o){for(let a=o.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),i=n?n.module.componentFactoryResolver:null;l.attachRef=null,l.route=s,l.resolver=i,l.outlet&&l.outlet.activateWith(s,i),this.activateChildRoutes(a,null,l.children)}}else this.activateChildRoutes(a,null,t)}}class Hp{constructor(a,e){this.routes=a,this.module=e}}function Zr(o){return"function"==typeof o}function wr(o){return o instanceof ka}const _l=Symbol("INITIAL_VALUE");function Us(){return(0,pi.w)(o=>(0,ii.aj)(o.map(a=>a.pipe((0,Qt.q)(1),hi(_l)))).pipe(u_((a,e)=>{let t=!1;return e.reduce((s,c,l)=>s!==_l?s:(c===_l&&(t=!0),t||!1!==c&&l!==e.length-1&&!wr(c)?s:c),a)},_l),(0,mt.h)(a=>a!==_l),(0,et.U)(a=>wr(a)?a:!0===a),(0,Qt.q)(1)))}class B_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new bl,this.attachRef=null}}class bl{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new B_,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let Dp=(()=>{class o{constructor(e,t,s,c,l){this.parentContexts=e,this.location=t,this.resolver=s,this.changeDetector=l,this.activated=null,this._activatedRoute=null,this.activateEvents=new g.vpe,this.deactivateEvents=new g.vpe,this.attachEvents=new g.vpe,this.detachEvents=new g.vpe,this.name=c||dt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){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.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const 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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;const l=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,i=new Lv(e,n,this.location.injector);this.activated=this.location.createComponent(l,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(bl),g.Y36(g.s_b),g.Y36(g._Vd),g.$8M("name"),g.Y36(g.sBO))},o.\u0275dir=g.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class Lv{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Kr?this.route:a===bl?this.childContexts:this.parent.get(a,e)}}let Ei=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=g.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},directives:[Dp],encapsulation:2}),o})();function Fa(o,a=""){for(let e=0;eSi(t)===a);return e.push(...o.filter(t=>Si(t)!==a)),e}const xd={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Td(o,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(o.hasChildren()||e.length>0)?Object.assign({},xd):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const c=(a.matcher||vv)(e,o,a);if(!c)return Object.assign({},xd);const l={};fi(c.posParams,(i,r)=>{l[r]=i.path});const n=c.consumed.length>0?Object.assign(Object.assign({},l),c.consumed[c.consumed.length-1].parameters):l;return{matched:!0,consumedSegments:c.consumed,lastChild:c.consumed.length,parameters:n,positionalParamSegments:null!==(t=c.posParams)&&void 0!==t?t:{}}}function Cl(o,a,e,t,s="corrected"){if(e.length>0&&function Pp(o,a,e){return e.some(t=>yl(o,a,t)&&Si(t)!==dt)}(o,e,t)){const l=new Ct(a,function Uv(o,a,e,t){const s={};s[dt]=t,t._sourceSegment=o,t._segmentIndexShift=a.length;for(const c of e)if(""===c.path&&Si(c)!==dt){const l=new Ct([],{});l._sourceSegment=o,l._segmentIndexShift=a.length,s[Si(c)]=l}return s}(o,a,t,new Ct(e,o.children)));return l._sourceSegment=o,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:[]}}if(0===e.length&&function L_(o,a,e){return e.some(t=>yl(o,a,t))}(o,e,t)){const l=new Ct(o.segments,function zv(o,a,e,t,s,c){const l={};for(const n of t)if(yl(o,e,n)&&!s[Si(n)]){const i=new Ct([],{});i._sourceSegment=o,i._segmentIndexShift="legacy"===c?o.segments.length:a.length,l[Si(n)]=i}return Object.assign(Object.assign({},s),l)}(o,a,e,t,o.children,s));return l._sourceSegment=o,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}const c=new Ct(o.segments,o.children);return c._sourceSegment=o,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}function yl(o,a,e){return(!(o.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function wl(o,a,e,t){return!!(Si(o)===t||t!==dt&&yl(a,e,o))&&("**"===o.path||Td(a,o,e).matched)}function Ed(o,a,e){return 0===a.length&&!o.children[e]}class Sd{constructor(a){this.segmentGroup=a||null}}class Rp{constructor(a){this.urlTree=a}}function Md(o){return new Ci.y(a=>a.error(new Sd(o)))}function kp(o){return new Ci.y(a=>a.error(new Rp(o)))}function Hd(o){return new Ci.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${o}'`)))}class Ip{constructor(a,e,t,s,c){this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=c,this.allowRedirects=!0,this.ngModule=a.get(g.h0i)}apply(){const a=Cl(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ct(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,dt).pipe((0,et.U)(c=>this.createUrlTree(N_(c),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,zi.K)(c=>{if(c instanceof Rp)return this.allowRedirects=!1,this.match(c.urlTree);throw c instanceof Sd?this.noMatchError(c):c}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,dt).pipe((0,et.U)(s=>this.createUrlTree(N_(s),a.queryParams,a.fragment))).pipe((0,zi.K)(s=>{throw s instanceof Sd?this.noMatchError(s):s}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const s=a.segments.length>0?new Ct([],{[dt]:a}):a;return new ka(s,e,t)}expandSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,et.U)(c=>new Ct([],c))):this.expandSegment(a,t,e,t.segments,s,!0)}expandChildren(a,e,t){const s=[];for(const c of Object.keys(t.children))"primary"===c?s.unshift(c):s.push(c);return(0,xi.D)(s).pipe((0,Vn.b)(c=>{const l=t.children[c],n=F_(e,c);return this.expandSegmentGroup(a,n,l,c).pipe((0,et.U)(i=>({segment:i,outlet:c})))}),u_((c,l)=>(c[l.outlet]=l.segment,c),{}),function fv(o,a){const e=arguments.length>=2;return t=>t.pipe(o?(0,mt.h)((s,c)=>o(s,c,t)):pv.y,ld(1),e?(0,hv.d)(a):(0,uv.T)(()=>new sp.K))}())}expandSegment(a,e,t,s,c,l){return(0,xi.D)(t).pipe((0,Vn.b)(n=>this.expandSegmentAgainstRoute(a,e,t,n,s,c,l).pipe((0,zi.K)(r=>{if(r instanceof Sd)return(0,ke.of)(null);throw r}))),(0,Bs.P)(n=>!!n),(0,zi.K)((n,i)=>{if(n instanceof sp.K||"EmptyError"===n.name){if(Ed(e,s,c))return(0,ke.of)(new Ct([],{}));throw new Sd(e)}throw n}))}expandSegmentAgainstRoute(a,e,t,s,c,l,n){return wl(s,e,c,l)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(a,e,s,c,l):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l):Md(e):Md(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,s,l):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,s){const c=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?kp(c):this.lineralizeSegments(t,c).pipe((0,Ui.zg)(l=>{const n=new Ct(l,{});return this.expandSegment(a,n,e,l,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l){const{matched:n,consumedSegments:i,lastChild:r,positionalParamSegments:d}=Td(e,s,c);if(!n)return Md(e);const u=this.applyRedirectCommands(i,s.redirectTo,d);return s.redirectTo.startsWith("/")?kp(u):this.lineralizeSegments(s,u).pipe((0,Ui.zg)(f=>this.expandSegment(a,e,t,f.concat(c.slice(r)),l,!1)))}matchSegmentAgainstRoute(a,e,t,s,c){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,ke.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,et.U)(f=>(t._loadedConfig=f,new Ct(s,{})))):(0,ke.of)(new Ct(s,{}));const{matched:l,consumedSegments:n,lastChild:i}=Td(e,t,s);if(!l)return Md(e);const r=s.slice(i);return this.getChildConfig(a,t,s).pipe((0,Ui.zg)(u=>{const f=u.module,b=u.routes,{segmentGroup:D,slicedSegments:q}=Cl(e,n,r,b),se=new Ct(D.segments,D.children);if(0===q.length&&se.hasChildren())return this.expandChildren(f,b,se).pipe((0,et.U)(vt=>new Ct(n,vt)));if(0===b.length&&0===q.length)return(0,ke.of)(new Ct(n,{}));const De=Si(t)===c;return this.expandSegment(f,se,b,q,De?dt:c,!0).pipe((0,et.U)(Qe=>new Ct(n.concat(Qe.segments),Qe.children)))}))}getChildConfig(a,e,t){return e.children?(0,ke.of)(new Hp(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,ke.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,Ui.zg)(s=>s?this.configLoader.load(a.injector,e).pipe((0,et.U)(c=>(e._loadedConfig=c,c))):function j_(o){return new Ci.y(a=>a.error(pp(`Cannot load children because the guard of the route "path: '${o.path}'" returned false`)))}(e))):(0,ke.of)(new Hp([],a))}runCanLoadGuards(a,e,t){const s=e.canLoad;if(!s||0===s.length)return(0,ke.of)(!0);const c=s.map(l=>{const n=a.get(l);let i;if(function R_(o){return o&&Zr(o.canLoad)}(n))i=n.canLoad(e,t);else{if(!Zr(n))throw new Error("Invalid CanLoad guard");i=n(e,t)}return ir(i)});return(0,ke.of)(c).pipe(Us(),(0,It.b)(l=>{if(!wr(l))return;const n=pp(`Redirecting to "${this.urlSerializer.serialize(l)}"`);throw n.url=l,n}),(0,et.U)(l=>!0===l))}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[dt])return Hd(a.redirectTo);s=s.children[dt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,s){const c=this.createSegmentGroup(a,e.root,t,s);return new ka(c,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return fi(a,(s,c)=>{if("string"==typeof s&&s.startsWith(":")){const n=s.substring(1);t[c]=e[n]}else t[c]=s}),t}createSegmentGroup(a,e,t,s){const c=this.createSegments(a,e.segments,t,s);let l={};return fi(e.children,(n,i)=>{l[i]=this.createSegmentGroup(a,n,t,s)}),new Ct(c,l)}createSegments(a,e,t,s){return e.map(c=>c.path.startsWith(":")?this.findPosParam(a,c,s):this.findOrReturn(c,t))}findPosParam(a,e,t){const s=t[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);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}}function N_(o){const a={};for(const t of Object.keys(o.children)){const c=N_(o.children[t]);(c.segments.length>0||c.hasChildren())&&(a[t]=c)}return function Vp(o){if(1===o.numberOfChildren&&o.children[dt]){const a=o.children[dt];return new Ct(o.segments.concat(a.segments),a.children)}return o}(new Ct(o.segments,a))}class z_{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class vl{constructor(a,e){this.component=a,this.route=e}}function U_(o,a,e){const t=o._root;return xl(t,a?a._root:null,e,[t.value])}function Al(o,a,e){const t=function q_(o){if(!o)return null;for(let a=o.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(o)}function xl(o,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const c=Oa(a);return o.children.forEach(l=>{(function $v(o,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const c=o.value,l=a?a.value:null,n=e?e.getContext(o.value.outlet):null;if(l&&c.routeConfig===l.routeConfig){const i=function G_(o,a,e){if("function"==typeof e)return e(o,a);switch(e){case"pathParamsChange":return!js(o.url,a.url);case"pathParamsOrQueryParamsChange":return!js(o.url,a.url)||!qi(o.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ul(o,a)||!qi(o.queryParams,a.queryParams);default:return!ul(o,a)}}(l,c,c.routeConfig.runGuardsAndResolvers);i?s.canActivateChecks.push(new z_(t)):(c.data=l.data,c._resolvedData=l._resolvedData),xl(o,a,c.component?n?n.children:null:e,t,s),i&&n&&n.outlet&&n.outlet.isActivated&&s.canDeactivateChecks.push(new vl(n.outlet.component,l))}else l&&Tl(a,n,s),s.canActivateChecks.push(new z_(t)),xl(o,null,c.component?n?n.children:null:e,t,s)})(l,c[l.value.outlet],e,t.concat([l.value]),s),delete c[l.value.outlet]}),fi(c,(l,n)=>Tl(l,e.getContext(n),s)),s}function Tl(o,a,e){const t=Oa(o),s=o.value;fi(t,(c,l)=>{Tl(c,s.component?a?a.children.getContext(l):null:a,e)}),e.canDeactivateChecks.push(new vl(s.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,s))}class dE{}function Jv(o){return new Ci.y(a=>a.error(o))}class hE{constructor(a,e,t,s,c,l){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=s,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=l}recognize(){const a=Cl(this.urlTree.root,[],[],this.config.filter(l=>void 0===l.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,dt);if(null===e)return null;const t=new dl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},dt,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new nr(t,e),c=new E_(this.url,s);return this.inheritParamsAndData(c._root),c}inheritParamsAndData(a){const e=a.value,t=vp(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){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const c of Object.keys(e.children)){const l=e.children[c],n=F_(a,c),i=this.processSegmentGroup(n,l,c);if(null===i)return null;t.push(...i)}const s=Kv(t);return function pE(o){o.sort((a,e)=>a.value.outlet===dt?-1:e.value.outlet===dt?1:a.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(a,e,t,s){for(const c of a){const l=this.processSegmentAgainstRoute(c,e,t,s);if(null!==l)return l}return Ed(e,t,s)?[]:null}processSegmentAgainstRoute(a,e,t,s){if(a.redirectTo||!wl(a,e,t,s))return null;let c,l=[],n=[];if("**"===a.path){const b=t.length>0?fp(t).parameters:{};c=new dl(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,La(a),Si(a),a.component,a,Zv(e),Dd(e)+t.length,Op(a))}else{const b=Td(e,a,t);if(!b.matched)return null;l=b.consumedSegments,n=t.slice(b.lastChild),c=new dl(l,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,La(a),Si(a),a.component,a,Zv(e),Dd(e)+l.length,Op(a))}const i=function fE(o){return o.children?o.children:o.loadChildren?o._loadedConfig.routes:[]}(a),{segmentGroup:r,slicedSegments:d}=Cl(e,l,n,i.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===d.length&&r.hasChildren()){const b=this.processChildren(i,r);return null===b?null:[new nr(c,b)]}if(0===i.length&&0===d.length)return[new nr(c,[])];const u=Si(a)===s,f=this.processSegment(i,r,d,u?dt:s);return null===f?null:[new nr(c,f)]}}function gE(o){const a=o.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Kv(o){const a=[],e=new Set;for(const t of o){if(!gE(t)){a.push(t);continue}const s=a.find(c=>t.value.routeConfig===c.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):a.push(t)}for(const t of e){const s=Kv(t.children);a.push(new nr(t.value,s))}return a.filter(t=>!e.has(t))}function Zv(o){let a=o;for(;a._sourceSegment;)a=a._sourceSegment;return a}function Dd(o){let a=o,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function La(o){return o.data||{}}function Op(o){return o.resolve||{}}function Lp(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}function X_(o){return(0,pi.w)(a=>{const e=o(a);return e?(0,xi.D)(e).pipe((0,et.U)(()=>a)):(0,ke.of)(a)})}class tb extends class Pd{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const ib=new g.OlP("ROUTES");class tA{constructor(a,e,t,s){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=s}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const s=this.loadModuleFactory(e.loadChildren).pipe((0,et.U)(c=>{this.onLoadEndListener&&this.onLoadEndListener(e);const l=c.create(a);return new Hp(Av(l.injector.get(ib,void 0,g.XFs.Self|g.XFs.Optional)).map(O_),l)}),(0,zi.K)(c=>{throw e._loader$=void 0,c}));return e._loader$=new sv.c(s,()=>new He.xQ).pipe((0,h_.x)()),e._loader$}loadModuleFactory(a){return ir(a()).pipe((0,Ui.zg)(e=>e instanceof g.YKP?(0,ke.of)(e):(0,xi.D)(this.compiler.compileModuleAsync(e))))}}class iA{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function jp(o){throw o}function nA(o,a,e){return a.parse("/")}function rA(o,a){return(0,ke.of)(null)}const aA={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Np={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ki=(()=>{class o{constructor(e,t,s,c,l,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=c,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.xQ,this.errorHandler=jp,this.malformedUriErrorHandler=nA,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:rA,afterPreactivation:rA},this.urlHandlingStrategy=new iA,this.routeReuseStrategy=new tb,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=l.get(g.h0i),this.console=l.get(g.c2e);const u=l.get(g.R0b);this.isNgZoneEnabled=u instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function xv(){return new ka(new Ct([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new tA(l,n,f=>this.triggerEvent(new cd(f)),f=>this.triggerEvent(new f_(f))),this.routerState=wp(this.currentUrlTree,this.rootComponentType),this.transitions=new ai({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,mt.h)(s=>0!==s.id),(0,et.U)(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,pi.w)(s=>{let c=!1,l=!1;return(0,ke.of)(s).pipe((0,It.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.currentRawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,pi.w)(n=>{const i=this.browserUrlTree.toString(),r=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||r)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return Rd(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,ke.of)(n).pipe((0,pi.w)(u=>{const f=this.transitions.getValue();return t.next(new lp(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?Ea.E:Promise.resolve(u)}),function Gv(o,a,e,t){return(0,pi.w)(s=>function qv(o,a,e,t,s){return new Ip(o,a,e,t,s).apply()}(o,a,e,s.extractedUrl,t).pipe((0,et.U)(c=>Object.assign(Object.assign({},s),{urlAfterRedirects:c}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,It.b)(u=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:u.urlAfterRedirects})}),function Xv(o,a,e,t,s){return(0,Ui.zg)(c=>function uE(o,a,e,t,s="emptyOnly",c="legacy"){try{const l=new hE(o,a,e,t,s,c).recognize();return null===l?Jv(new dE):(0,ke.of)(l)}catch(l){return Jv(l)}}(o,a,c.urlAfterRedirects,e(c.urlAfterRedirects),t,s).pipe((0,et.U)(l=>Object.assign(Object.assign({},c),{targetSnapshot:l}))))}(this.rootComponentType,this.config,u=>this.serializeUrl(u),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,It.b)(u=>{if("eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const f=new mv(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(r&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:D,restoredState:q,extras:se}=n,De=new lp(f,this.serializeUrl(b),D,q);t.next(De);const rt=wp(b,this.rootComponentType).snapshot;return(0,ke.of)(Object.assign(Object.assign({},n),{targetSnapshot:rt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},se),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=n.rawUrl,n.resolve(null),Ea.E}),X_(n=>{const{targetSnapshot:i,id:r,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:b}}=n;return this.hooks.beforePreactivation(i,{navigationId:r,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!b})}),(0,It.b)(n=>{const i=new _v(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,et.U)(n=>Object.assign(Object.assign({},n),{guards:U_(n.targetSnapshot,n.currentSnapshot,this.rootContexts)})),function W_(o,a){return(0,Ui.zg)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:c,canDeactivateChecks:l}}=e;return 0===l.length&&0===c.length?(0,ke.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function $_(o,a,e,t){return(0,xi.D)(o).pipe((0,Ui.zg)(s=>function J_(o,a,e,t,s){const c=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!c||0===c.length)return(0,ke.of)(!0);const l=c.map(n=>{const i=Al(n,a,s);let r;if(function V_(o){return o&&Zr(o.canDeactivate)}(i))r=ir(i.canDeactivate(o,a,e,t));else{if(!Zr(i))throw new Error("Invalid CanDeactivate guard");r=ir(i(o,a,e,t))}return r.pipe((0,Bs.P)())});return(0,ke.of)(l).pipe(Us())}(s.component,s.route,e,a,t)),(0,Bs.P)(s=>!0!==s,!0))}(l,t,s,o).pipe((0,Ui.zg)(n=>n&&function P_(o){return"boolean"==typeof o}(n)?function Q_(o,a,e,t){return(0,xi.D)(a).pipe((0,Vn.b)(s=>os(function Qv(o,a){return null!==o&&a&&a(new bv(o)),(0,ke.of)(!0)}(s.route.parent,t),function Y_(o,a){return null!==o&&a&&a(new Cv(o)),(0,ke.of)(!0)}(s.route,t),function cE(o,a,e){const t=a[a.length-1],c=a.slice(0,a.length-1).reverse().map(l=>function Wv(o){const a=o.routeConfig?o.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:o,guards:a}:null}(l)).filter(l=>null!==l).map(l=>As(()=>{const n=l.guards.map(i=>{const r=Al(i,l.node,e);let d;if(function I_(o){return o&&Zr(o.canActivateChild)}(r))d=ir(r.canActivateChild(t,o));else{if(!Zr(r))throw new Error("Invalid CanActivateChild guard");d=ir(r(t,o))}return d.pipe((0,Bs.P)())});return(0,ke.of)(n).pipe(Us())}));return(0,ke.of)(c).pipe(Us())}(o,s.path,e),function Yv(o,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,ke.of)(!0);const s=t.map(c=>As(()=>{const l=Al(c,a,e);let n;if(function k_(o){return o&&Zr(o.canActivate)}(l))n=ir(l.canActivate(a,o));else{if(!Zr(l))throw new Error("Invalid CanActivate guard");n=ir(l(a,o))}return n.pipe((0,Bs.P)())}));return(0,ke.of)(s).pipe(Us())}(o,s.route,e))),(0,Bs.P)(s=>!0!==s,!0))}(t,c,o,a):(0,ke.of)(n)),(0,et.U)(n=>Object.assign(Object.assign({},e),{guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,It.b)(n=>{if(wr(n.guardsResult)){const r=pp(`Redirecting to "${this.serializeUrl(n.guardsResult)}"`);throw r.url=n.guardsResult,r}const i=new dp(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,mt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,""),!1)),X_(n=>{if(n.guards.canActivateChecks.length)return(0,ke.of)(n).pipe((0,It.b)(i=>{const r=new up(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(r)}),(0,pi.w)(i=>{let r=!1;return(0,ke.of)(i).pipe(function eA(o,a){return(0,Ui.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,ke.of)(e);let c=0;return(0,xi.D)(s).pipe((0,Vn.b)(l=>function Fp(o,a,e,t){return function K_(o,a,e,t){const s=Lp(o);if(0===s.length)return(0,ke.of)({});const c={};return(0,xi.D)(s).pipe((0,Ui.zg)(l=>function Z_(o,a,e,t){const s=Al(o,a,t);return ir(s.resolve?s.resolve(a,e):s(a,e))}(o[l],a,e,t).pipe((0,It.b)(n=>{c[l]=n}))),ld(1),(0,Ui.zg)(()=>Lp(c).length===s.length?(0,ke.of)(c):Ea.E))}(o._resolve,o,a,t).pipe((0,et.U)(c=>(o._resolvedData=c,o.data=Object.assign(Object.assign({},o.data),vp(o,e).resolve),null)))}(l.route,t,o,a)),(0,It.b)(()=>c++),ld(1),(0,Ui.zg)(l=>c===s.length?(0,ke.of)(e):Ea.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,It.b)({next:()=>r=!0,complete:()=>{r||(this.restoreHistory(i),this.cancelNavigationTransition(i,"At least one route resolver didn't emit any value."))}}))}),(0,It.b)(i=>{const r=new p_(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(r)}))}),X_(n=>{const{targetSnapshot:i,id:r,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:b}}=n;return this.hooks.afterPreactivation(i,{navigationId:r,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!b})}),(0,et.U)(n=>{const i=function rr(o,a,e){const t=hl(o,a._root,e?e._root:void 0);return new yp(t,a)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return Object.assign(Object.assign({},n),{targetRouterState:i})}),(0,It.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((o,a,e)=>(0,et.U)(t=>(new Ov(a,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,It.b)({next(){c=!0},complete(){c=!0}}),Zc(()=>{var n;c||l||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`),(null===(n=this.currentNavigation)||void 0===n?void 0:n.id)===s.id&&(this.currentNavigation=null)}),(0,zi.K)(n=>{if(l=!0,function cl(o){return o&&o[wv]}(n)){const i=wr(n.url);i||(this.navigated=!0,this.restoreHistory(s,!0));const r=new cp(s.id,this.serializeUrl(s.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),u={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Rd(s.source)};this.scheduleNavigation(d,"imperative",null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const i=new gv(s.id,this.serializeUrl(s.extractedUrl),n);t.next(i);try{s.resolve(this.errorHandler(n))}catch(r){s.reject(r)}}return Ea.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},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 s;const c={replaceUrl:!0},l=(null===(s=e.state)||void 0===s?void 0:s.navigationId)?e.state:null;if(l){const i=Object.assign({},l);delete i.navigationId,delete i.\u0275routerPageId,0!==Object.keys(i).length&&(c.state=i)}const n=this.parseUrl(e.url);this.scheduleNavigation(n,t,l,c)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Fa(e),this.config=e.map(O_),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:c,fragment:l,queryParamsHandling:n,preserveFragment:i}=t,r=s||this.routerState.root,d=i?this.currentUrlTree.fragment:l;let u=null;switch(n){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),c);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=c||null}return null!==u&&(u=this.removeEmptyProps(u)),function Vv(o,a,e,t,s){if(0===e.length)return zs(a.root,a.root,a,t,s);const c=function Bv(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new S_(!0,0,o);let a=0,e=!1;const t=o.reduce((s,c,l)=>{if("object"==typeof c&&null!=c){if(c.outlets){const n={};return fi(c.outlets,(i,r)=>{n[r]="string"==typeof i?i.split("/"):i}),[...s,{outlets:n}]}if(c.segmentPath)return[...s,c.segmentPath]}return"string"!=typeof c?[...s,c]:0===l?(c.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?a++:""!=n&&s.push(n))}),s):[...s,c]},[]);return new S_(e,a,t)}(e);if(c.toRoot())return zs(a.root,new Ct([],{}),a,t,s);const l=function M_(o,a,e){if(o.isAbsolute)return new wd(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const c=e.snapshot._urlSegment;return new wd(c,c===a.root,0)}const t=yd(o.commands[0])?0:1;return function Tp(o,a,e){let t=o,s=a,c=e;for(;c>s;){if(c-=s,t=t.parent,!t)throw new Error("Invalid number of '../'");s=t.segments.length}return new wd(t,!1,s-c)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,o.numberOfDoubleDots)}(c,a,o),n=l.processChildren?vd(l.segmentGroup,l.index,c.commands):D_(l.segmentGroup,l.index,c.commands);return zs(l.segmentGroup,n,a,t,s)}(r,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=wr(e)?e:this.parseUrl(e),c=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(c,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function en(o){for(let a=0;a{const c=e[s];return null!=c&&(t[s]=c),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Os(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,c,l){var n,i,r;if(this.disposed)return Promise.resolve(!1);const d=this.transitions.value,u=Rd(t)&&d&&!Rd(d.source),f=d.rawUrl.toString()===e.toString(),b=d.id===(null===(n=this.currentNavigation)||void 0===n?void 0:n.id);if(u&&f&&b)return Promise.resolve(!0);let q,se,De;l?(q=l.resolve,se=l.reject,De=l.promise):De=new Promise((vt,jn)=>{q=vt,se=jn});const rt=++this.navigationId;let Qe;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),Qe=s&&s.\u0275routerPageId?s.\u0275routerPageId:c.replaceUrl||c.skipLocationChange?null!==(i=this.browserPageId)&&void 0!==i?i:0:(null!==(r=this.browserPageId)&&void 0!==r?r:0)+1):Qe=0,this.setTransition({id:rt,targetPageId:Qe,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:c,resolve:q,reject:se,promise:De,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),De.catch(vt=>Promise.reject(vt))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),c=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",c):this.location.go(s,"",c)}restoreHistory(e,t=!1){var s,c;if("computed"===this.canceledNavigationResolution){const l=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===l?this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl)&&0===l&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(l)}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){const s=new cp(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){g.$Z()},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function Rd(o){return"imperative"!==o}class qp{}class Gp{preload(a,e){return(0,ke.of)(null)}}let Wp=(()=>{class o{constructor(e,t,s,c){this.router=e,this.injector=s,this.preloadingStrategy=c,this.loader=new tA(s,t,i=>e.triggerEvent(new cd(i)),i=>e.triggerEvent(new f_(i)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,mt.h)(e=>e instanceof Os),(0,Vn.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(g.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const c of t)if(c.loadChildren&&!c.canLoad&&c._loadedConfig){const l=c._loadedConfig;s.push(this.processRoutes(l.module,l.routes))}else c.loadChildren&&!c.canLoad?s.push(this.preloadConfig(e,c)):c.children&&s.push(this.processRoutes(e,c.children));return(0,xi.D)(s).pipe((0,_c.J)(),(0,et.U)(c=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,ke.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,Ui.zg)(c=>(t._loadedConfig=c,this.processRoutes(c.module,c.routes)))))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(ki),g.LFG(g.Sil),g.LFG(g.zs3),g.LFG(qp))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),$p=(()=>{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 lp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Os&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof m_&&(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 m_(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){g.$Z()},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const vr=new g.OlP("ROUTER_CONFIGURATION"),bn=new g.OlP("ROUTER_FORROOT_GUARD"),oA=[T.Ye,{provide:y_,useClass:Va},{provide:ki,useFactory:function dA(o,a,e,t,s,c,l={},n,i){const r=new ki(null,o,a,e,t,s,Av(c));return n&&(r.urlHandlingStrategy=n),i&&(r.routeReuseStrategy=i),function CE(o,a){o.errorHandler&&(a.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(a.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(a.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(a.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(a.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(a.canceledNavigationResolution=o.canceledNavigationResolution)}(l,r),l.enableTracing&&r.events.subscribe(d=>{var u,f;null===(u=console.group)||void 0===u||u.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(f=console.groupEnd)||void 0===f||f.call(console)}),r},deps:[y_,bl,T.Ye,g.zs3,g.Sil,ib,vr,[class mE{},new g.FiY],[class eb{},new g.FiY]]},bl,{provide:Kr,useFactory:function ab(o){return o.routerState.root},deps:[ki]},Wp,Gp,class sA{preload(a,e){return e().pipe((0,zi.K)(()=>(0,ke.of)(null)))}},{provide:vr,useValue:{enableTracing:!1}}];function bE(){return new g.PXZ("Router",ki)}let Qp=(()=>{class o{constructor(e,t){}static forRoot(e,t){return{ngModule:o,providers:[oA,Yp(e),{provide:bn,useFactory:cA,deps:[[ki,new g.FiY,new g.tp0]]},{provide:vr,useValue:t||{}},{provide:T.S$,useFactory:lA,deps:[T.lw,[new g.tBr(T.mr),new g.FiY],vr]},{provide:$p,useFactory:rb,deps:[ki,T.EM,vr]},{provide:qp,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Gp},{provide:g.PXZ,multi:!0,useFactory:bE},[kd,{provide:g.ip1,multi:!0,useFactory:uA,deps:[kd]},{provide:Jp,useFactory:hA,deps:[kd]},{provide:g.tb,multi:!0,useExisting:Jp}]]}}static forChild(e){return{ngModule:o,providers:[Yp(e)]}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(bn,8),g.LFG(ki,8))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();function rb(o,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new $p(o,a,e)}function lA(o,a,e={}){return e.useHash?new T.Do(o,a):new T.b0(o,a)}function cA(o){return"guarded"}function Yp(o){return[{provide:g.deG,multi:!0,useValue:o},{provide:ib,multi:!0,useValue:o}]}let kd=(()=>{class o{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He.xQ}appInitializer(){return this.injector.get(T.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const s=new Promise(n=>t=n),c=this.injector.get(ki),l=this.injector.get(vr);return"disabled"===l.initialNavigation?(c.setUpLocationChangeListener(),t(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(c.hooks.afterPreactivation=()=>this.initNavigation?(0,ke.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),c.initialNavigation()):t(!0),s})}bootstrapListener(e){const t=this.injector.get(vr),s=this.injector.get(Wp),c=this.injector.get($p),l=this.injector.get(ki),n=this.injector.get(g.z2F);e===n.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&l.initialNavigation(),s.setUpPreloading(),c.init(),l.resetRootComponentType(n.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.zs3))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function uA(o){return o.appInitializer.bind(o)}function hA(o){return o.bootstrapListener.bind(o)}const Jp=new g.OlP("Router Initializer");var Kp=E(6114);let Zp=(()=>{class o{constructor(e,t,s,c,l){this.injector=e,this.store=t,this.dialog=s,this.route=c,this.oauthService=l,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(ki),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),s=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(s.prompt="consent"),sessionStorage.getItem("mfa_route")&&(s.acr_values="https://refeds.org/profile/mfa",s.prompt="login",s.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:s}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let s=null;return e.forEach(c=>{const l=c.split("=");"idpFilter"===l[0]&&t[l[1]]&&(this.filterShortname=l[1],s=t[l[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,mt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let c=[];s&&(c=s.split("&"));const l={};return c.forEach(n=>{const i=n.split("=");l[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),l.idpFilter&&(this.filterShortname=String(l.idpFilter)),this.router.navigate([t],{queryParams:l,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,mt.h)(e=>e instanceof Os)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}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}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(e=>(localStorage.setItem("refresh_token",e.refresh_token),!0),()=>!1)}verifyAuthentication(e,t){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(s=>!!s||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((c,l)=>l("Invalid path"))))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.zs3),g.LFG(Hi),g.LFG(Ts),g.LFG(Kr),g.LFG(Kp.Ct))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xp=(()=>{class o{constructor(e,t,s,c,l,n){this.authService=e,this.storeService=t,this.authResolver=s,this.authzService=c,this.dialog=l,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Vs();this.dialog.open($y,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const e=location.search.substr(1).split("&"),t={};for(const s of e){const c=s.split("=");t[c[0]]=c[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Zp),g.LFG(Hi),g.LFG(Ff),g.LFG(Wi),g.LFG(Ts),g.LFG(ki))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),fA=(()=>{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/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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Ne),g.LFG(xn))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),gA=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(xs))},o.\u0275cmp=g.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&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"div",2),g.TgZ(7,"div",3),g.TgZ(8,"button",4),g.NdJ("click",function(){return t.close()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),g.xp6(3),g.hij(" ",g.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),g.xp6(5),g.hij(" ",g.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Ic,Dh,gm,zc],pipes:[Jr],styles:[""]}),o})(),mA=(()=>{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=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ob=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new g.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,c,l){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===c&&void 0!==s?this.getDefaultActionMessage():c,delay:this.defaultErrorDelayMs,icon:"error_outline",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,c){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:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(_n))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ef=(()=>{class o{constructor(e,t,s,c,l,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=c,this.dialog=l,this.initAuthService=n}intercept(e,t){const s=this.store.get("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.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=Vs();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(gA,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Zc(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}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()}}));const c=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,It.b)(n=>{n instanceof y.Zn&&l&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,al._)(n):c?void this.notificator.showRPCError(i):(0,al._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let s;console.error(e);const c=e.error;if(c.errorId&&(s=c),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Zp),g.LFG(mA),g.LFG(ob),g.LFG(Hi),g.LFG(Ts),g.LFG(Xp))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),_A=(()=>{class o{constructor(e,t,s,c){this.http=e,this.notificator=t,this.authService=s,this.storeService=c}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.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,zi.K)(c=>this.formatErrors(c,s,null,t)))}put(e,t={},s=!0){const c=`${this.getApiUrl()}${e}`,l=JSON.stringify(t);return this.http.put(c,l,{headers:this.getHeaders()}).pipe((0,zi.K)(n=>this.formatErrors(n,c,l,s)))}post(e,t={},s=!0){const c=`${this.getApiUrl()}${e}`,l=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(c,l,{headers:n}).pipe((0,zi.K)(i=>this.formatErrors(i,c,l,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,zi.K)(c=>this.formatErrors(c,s,null,t)))}formatErrors(e,t,s,c){const l=e.error;return l.call=t,l.payload=s,c&&this.notificator.showRPCError(e.error),(0,al._)(l)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(ob),g.LFG(Zp),g.LFG(Hi))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),lb=(()=>{class o{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),s=navigator.languages.map(n=>n.split("-")[0]),c=location.search.substring(1).split("&");let l=null;for(const n of c){const i=n.split("=");"lang"===i[0]&&(l=i[1])}return l&&t.includes(l)?l:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Kr),g.LFG(Hi))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const wE=["*",[["mat-toolbar-row"]]],vE=["*","mat-toolbar-row"],AE=Aa(class{constructor(o){this._elementRef=o}});let xE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),o})(),bA=(()=>{class o extends AE{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 o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Je),g.Y36(T.K0))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&g.Suo(s,xE,5),2&e){let c;g.iGM(c=g.CRH())&&(t._toolbarRows=c)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&g.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[g.qOj],ngContentSelectors:vE,decls:2,vars:0,template:function(e,t){1&e&&(g.F$t(wE),g.Hsn(0),g.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),o})(),cb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[qe],qe]}),o})();function CA(o,a){1&o&&(g.TgZ(0,"div",10),g.TgZ(1,"span",11),g._uU(2," ~ \u{1f5f2}\xa0 "),g.qZA(),g.TgZ(3,"span",12),g._uU(4," DEVEL "),g.qZA(),g.TgZ(5,"span",11),g._uU(6," \xa0\u{1f5f2} ~ "),g.qZA(),g.qZA())}const db=function(o){return{background:o}},Ar=function(o){return{color:o}};let ub=(()=>{class o{constructor(e,t,s,c){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=c,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.label=this.storeService.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`),this.isDevel=this.storeService.get("is_devel")}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(xn),g.Y36(lb),g.Y36(_n))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(g.TgZ(0,"mat-toolbar",0),g.TgZ(1,"div",1),g._UZ(2,"a",2),g.TgZ(3,"p",3),g._uU(4),g.qZA(),g.qZA(),g.YNc(5,CA,7,0,"div",4),g.TgZ(6,"div",5),g.TgZ(7,"button",6),g.TgZ(8,"mat-icon",7),g._uU(9," language "),g.qZA(),g.qZA(),g.TgZ(10,"mat-menu",null,8),g.TgZ(12,"button",9),g.NdJ("click",function(){return t.changeLanguage()}),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.qZA(),g.qZA(),g.qZA()),2&e){const s=g.MAs(11);g.Q6J("ngStyle",g.VKq(11,db,t.bgColor)),g.xp6(2),g.Q6J("innerHTML",t.logo,g.oJD),g.xp6(1),g.Q6J("ngStyle",g.VKq(13,Ar,t.textColor)),g.xp6(1),g.Oqu(t.label),g.xp6(1),g.Q6J("ngIf",t.isDevel),g.xp6(1),g.Q6J("ngStyle",g.VKq(15,Ar,t.textColor)),g.xp6(1),g.Q6J("matMenuTriggerFor",s),g.xp6(1),g.Q6J("ngStyle",g.VKq(17,Ar,t.iconColor)),g.xp6(5),g.hij(" ",g.lcZ(14,9,"HEADER.LANGUAGE")," ")}},directives:[bA,T.PC,T.O5,zc,n_,np,Nw,Kc],pipes:[Jr],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),o})(),Id=(()=>{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)(g.Y36(g.Qsj),g.Y36(g.SBq))},o.\u0275dir=g.lG2({type:o}),o})(),xr=(()=>{class o extends Id{}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275dir=g.lG2({type:o,features:[g.qOj]}),o})();const Gi=new g.OlP("NgValueAccessor"),Bd={provide:Gi,useExisting:(0,g.Gpc)(()=>Od),multi:!0},EE=new g.OlP("CompositionEventMode");let Od=(()=>{class o extends Id{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function TE(){const o=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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)(g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(EE,8))},o.\u0275dir=g.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&&g.NdJ("input",function(c){return t._handleInput(c.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(c){return t._compositionEnd(c.target.value)})},features:[g._Bn([Bd]),g.qOj]}),o})();function ja(o){return null==o||0===o.length}function rf(o){return null!=o&&"number"==typeof o.length}const ci=new g.OlP("NgValidators"),Xr=new g.OlP("NgAsyncValidators"),yA=/^(?=.{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 Ml{static min(a){return function af(o){return a=>{if(ja(a.value)||ja(o))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(ja(a.value)||ja(o))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>o?{max:{max:o,actual:a.value}}:null}}(a)}static required(a){return lf(a)}static requiredTrue(a){return function hb(o){return!0===o.value?null:{required:!0}}(a)}static email(a){return function pb(o){return ja(o.value)||yA.test(o.value)?null:{email:!0}}(a)}static minLength(a){return function cf(o){return a=>ja(a.value)||!rf(a.value)?null:a.value.lengthrf(a.value)&&a.value.length>o?{maxlength:{requiredLength:o,actualLength:a.value.length}}:null}(a)}static pattern(a){return function wA(o){if(!o)return Dl;let a,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),a=new RegExp(e)):(e=o.toString(),a=o),t=>{if(ja(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 _b(a)}static composeAsync(a){return bb(a)}}function lf(o){return ja(o.value)?{required:!0}:null}function Dl(o){return null}function Pl(o){return null!=o}function fb(o){const a=(0,g.QGY)(o)?(0,xi.D)(o):o;return(0,g.CqO)(a),a}function gb(o){let a={};return o.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function mb(o,a){return a.map(e=>e(o))}function AA(o){return o.map(a=>function vA(o){return!o.validate}(a)?a:e=>a.validate(e))}function _b(o){if(!o)return null;const a=o.filter(Pl);return 0==a.length?null:function(e){return gb(mb(e,a))}}function df(o){return null!=o?_b(AA(o)):null}function bb(o){if(!o)return null;const a=o.filter(Pl);return 0==a.length?null:function(e){return Es(mb(e,a).map(fb)).pipe((0,et.U)(gb))}}function uf(o){return null!=o?bb(AA(o)):null}function Cb(o,a){return null===o?[a]:Array.isArray(o)?[...o,a]:[o,a]}function yb(o){return o._rawValidators}function wb(o){return o._rawAsyncValidators}function hf(o){return o?Array.isArray(o)?o:[o]:[]}function pf(o,a){return Array.isArray(o)?o.includes(a):o===a}function xA(o,a){const e=hf(a);return hf(o).forEach(s=>{pf(e,s)||e.push(s)}),e}function TA(o,a){return hf(a).filter(e=>!pf(o,e))}class EA{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=df(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=uf(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 Tr extends EA{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ii extends EA{get formDirective(){return null}get path(){return null}}class SA{constructor(a){this._cd=a}is(a){var e,t,s;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===s?void 0:s[a])}}let vb=(()=>{class o extends SA{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Tr,2))},o.\u0275dir=g.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[g.qOj]}),o})(),h=(()=>{class o extends SA{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Ii,10))},o.\u0275dir=g.lG2({type:o,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[g.qOj]}),o})();function Re(o,a){return[...a.path,o]}function ge(o,a){Vi(o,a),a.valueAccessor.writeValue(o.value),function ff(o,a){a.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&Fd(o,a)})}(o,a),function mf(o,a){const e=(t,s)=>{a.valueAccessor.writeValue(t),s&&a.viewToModelUpdate(t)};o.registerOnChange(e),a._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,a),function gf(o,a){a.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&Fd(o,a),"submit"!==o.updateOn&&o.markAsTouched()})}(o,a),function Ht(o,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),a._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,a)}function Le(o,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),ar(o,a),o&&(a._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function ot(o,a){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Vi(o,a){const e=yb(o);null!==a.validator?o.setValidators(Cb(e,a.validator)):"function"==typeof e&&o.setValidators([e]);const t=wb(o);null!==a.asyncValidator?o.setAsyncValidators(Cb(t,a.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const s=()=>o.updateValueAndValidity();ot(a._rawValidators,s),ot(a._rawAsyncValidators,s)}function ar(o,a){let e=!1;if(null!==o){if(null!==a.validator){const s=yb(o);if(Array.isArray(s)&&s.length>0){const c=s.filter(l=>l!==a.validator);c.length!==s.length&&(e=!0,o.setValidators(c))}}if(null!==a.asyncValidator){const s=wb(o);if(Array.isArray(s)&&s.length>0){const c=s.filter(l=>l!==a.asyncValidator);c.length!==s.length&&(e=!0,o.setAsyncValidators(c))}}}const t=()=>{};return ot(a._rawValidators,t),ot(a._rawAsyncValidators,t),e}function Fd(o,a){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function Ld(o,a){Vi(o,a)}function Rl(o,a){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function SE(o,a){o._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function MA(o,a){if(!a)return null;let e,t,s;return Array.isArray(a),a.forEach(c=>{c.constructor===Od?e=c:function VM(o){return Object.getPrototypeOf(o.constructor)===xr}(c)?t=c:s=c}),s||t||e||null}function HA(o,a){const e=o.indexOf(a);e>-1&&o.splice(e,1)}const Cf="VALID",xb="INVALID",jd="PENDING",yf="DISABLED";function PA(o){return(Tb(o)?o.validators:o)||null}function ME(o){return Array.isArray(o)?df(o):o||null}function RA(o,a){return(Tb(a)?a.asyncValidators:o)||null}function HE(o){return Array.isArray(o)?uf(o):o||null}function Tb(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}const kA=o=>o instanceof wf,Eb=o=>o instanceof Sb,DE=o=>o instanceof IE;function PE(o){return kA(o)?o.value:o.getRawValue()}function RE(o,a){const e=Eb(o),t=o.controls;if(!(e?Object.keys(t):t).length)throw new g.vHH(1e3,"");if(!t[a])throw new g.vHH(1001,"")}function kE(o,a){Eb(o),o._forEachChild((t,s)=>{if(void 0===a[s])throw new g.vHH(1002,"")})}class IA{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=ME(this._rawValidators),this._composedAsyncValidatorFn=HE(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===Cf}get invalid(){return this.status===xb}get pending(){return this.status==jd}get disabled(){return this.status===yf}get enabled(){return this.status!==yf}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=ME(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=HE(a)}addValidators(a){this.setValidators(xA(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(xA(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(TA(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(TA(a,this._rawAsyncValidators))}hasValidator(a){return pf(this._rawValidators,a)}hasAsyncValidator(a){return pf(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=jd,!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=yf,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Cf,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},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}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Cf||this.status===jd)&&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()?yf:Cf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=jd,this._hasOwnPendingAsyncValidator=!0;const e=fb(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){return function BM(o,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=o;return a.forEach(s=>{t=Eb(t)?t.controls.hasOwnProperty(s)?t.controls[s]:null:DE(t)&&t.at(s)||null}),t}(this,a,".")}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 g.vpe,this.statusChanges=new g.vpe}_calculateStatus(){return this._allControlsDisabled()?yf:this.errors?xb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jd)?jd:this._anyControlsHaveStatus(xb)?xb:Cf}_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)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Tb(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class wf extends IA{constructor(a=null,e,t){super(PA(e),RA(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}),Tb(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(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){HA(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){HA(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){this._isBoxedValue(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}}class Sb extends IA{constructor(a,e,t){super(PA(e),RA(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={}){kE(this,a),Object.keys(a).forEach(t=>{RE(this,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=>{this.controls[t]&&this.controls[t].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]=PE(e),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 of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((s,c)=>{t=e(t,s,c)}),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}}class IE extends IA{constructor(a,e,t){super(PA(e),RA(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[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={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){kE(this,a),a.forEach((t,s)=>{RE(this,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=>PE(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_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)}}const OM={provide:Ii,useExisting:(0,g.Gpc)(()=>Af)},vf=(()=>Promise.resolve(null))();let Af=(()=>{class o extends Ii{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.vpe,this.form=new Sb({},df(e),uf(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){vf.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ge(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){vf.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){vf.then(()=>{const t=this._findContainer(e.path),s=new Sb({});Ld(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){vf.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){vf.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,SE(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)(g.Y36(ci,10),g.Y36(Xr,10))},o.\u0275dir=g.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(c){return t.onSubmit(c)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([OM]),g.qOj]}),o})();const LM={provide:Tr,useExisting:(0,g.Gpc)(()=>VA)},OE=(()=>Promise.resolve(null))();let VA=(()=>{class o extends Tr{constructor(e,t,s,c,l){super(),this._changeDetectorRef=l,this.control=new wf,this._registered=!1,this.update=new g.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=MA(0,c)}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),Rl(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(){ge(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){OE.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,s=""===t||t&&"false"!==t;OE.then(()=>{var c;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(c=this._changeDetectorRef)||void 0===c||c.markForCheck()})}_getPath(e){return this._parent?Re(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Ii,9),g.Y36(ci,10),g.Y36(Xr,10),g.Y36(Gi,10),g.Y36(g.sBO,8))},o.\u0275dir=g.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:[g._Bn([LM]),g.qOj,g.TTD]}),o})(),LE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();const BA=new g.OlP("NgModelWithFormControlWarning"),WM={provide:Ii,useExisting:(0,g.Gpc)(()=>kl)};let kl=(()=>{class o extends Ii{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 g.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&&(ar(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 ge(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Le(e.control||null,e,!1),HA(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,SE(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&&(Le(t||null,e),kA(s)&&(ge(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Ld(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function _f(o,a){return ar(o,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vi(this.form,this),this._oldForm&&ar(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(ci,10),g.Y36(Xr,10))},o.\u0275dir=g.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(c){return t.onSubmit(c)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([WM]),g.qOj,g.TTD]}),o})();const YM={provide:Tr,useExisting:(0,g.Gpc)(()=>LA)};let LA=(()=>{class o extends Tr{constructor(e,t,s,c,l){super(),this._ngModelWarningConfig=l,this._added=!1,this.update=new g.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=MA(0,c)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Rl(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 Re(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return o._ngModelWarningSentOnce=!1,o.\u0275fac=function(e){return new(e||o)(g.Y36(Ii,13),g.Y36(ci,10),g.Y36(Xr,10),g.Y36(Gi,10),g.Y36(BA,8))},o.\u0275dir=g.lG2({type:o,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[g._Bn([YM]),g.qOj,g.TTD]}),o})(),Il=(()=>{class o{constructor(){this._validator=Dl}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):Dl,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=g.lG2({type:o,features:[g.TTD]}),o})();const aH={provide:ci,useExisting:(0,g.Gpc)(()=>xf),multi:!0};let xf=(()=>{class o extends Il{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function iH(o){return null!=o&&!1!==o&&"false"!=`${o}`}(e),this.createValidator=e=>lf}enabled(e){return e}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275dir=g.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&&g.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[g._Bn([aH]),g.qOj]}),o})(),eS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[LE]]}),o})(),UA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[eS]}),o})(),Nd=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:BA,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[eS]}),o})(),hH=(()=>{class o{group(e,t=null){const s=this._reduceControls(e);let n,c=null,l=null;return null!=t&&(function uH(o){return void 0!==o.asyncValidators||void 0!==o.validators||void 0!==o.updateOn}(t)?(c=null!=t.validators?t.validators:null,l=null!=t.asyncValidators?t.asyncValidators:null,n=null!=t.updateOn?t.updateOn:void 0):(c=null!=t.validator?t.validator:null,l=null!=t.asyncValidator?t.asyncValidator:null)),new Sb(s,{asyncValidators:l,updateOn:n,validators:c})}control(e,t,s){return new wf(e,t,s)}array(e,t,s){const c=e.map(l=>this._createControl(l));return new IE(c,t,s)}_reduceControls(e){const t={};return Object.keys(e).forEach(s=>{t[s]=this._createControl(e[s])}),t}_createControl(e){return kA(e)||Eb(e)||DE(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:Nd}),o})();const tS=dn({passive:!0});let pH=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ea.E;const t=Lt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const c=new He.xQ,l="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(l)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(l)&&(t.classList.remove(l),this._ngZone.run(()=>c.next({target:i.target,isAutofilled:!1}))):(t.classList.add(l),this._ngZone.run(()=>c.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,tS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:c,unlisten:()=>{t.removeEventListener("animationstart",n,tS)}}),c}stopMonitoring(e){const t=Lt(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)(g.LFG(Je),g.LFG(g.R0b))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),iS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yi]]}),o})();const nS=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),fH=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let gH=0;const mH=My(class{constructor(o,a,e,t){this._defaultErrorStateMatcher=o,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let rS=(()=>{class o extends mH{constructor(e,t,s,c,l,n,i,r,d,u){super(n,c,l,s),this._elementRef=e,this._platform=t,this._autofillMonitor=r,this._formField=u,this._uid="mat-input-"+gH++,this.focused=!1,this.stateChanges=new He.xQ,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(D=>Rr().has(D));const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",D=>{const q=D.target;!q.value&&0===q.selectionStart&&0===q.selectionEnd&&(q.setSelectionRange(1,1),q.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.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=it(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,s,c;return null!==(c=null!==(e=this._required)&&void 0!==e?e:null===(s=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===s?void 0:s.hasValidator(Ml.required))&&void 0!==c&&c}set required(e){this._required=it(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Rr().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=it(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)}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,t;const s=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(s!==this._previousPlaceholder){const c=this._elementRef.nativeElement;this._previousPlaceholder=s,s?c.setAttribute("placeholder",s):c.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){fH.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)(g.Y36(g.SBq),g.Y36(Je),g.Y36(Tr,10),g.Y36(Af,8),g.Y36(kl,8),g.Y36(Cs),g.Y36(nS,10),g.Y36(pH),g.Y36(g.R0b),g.Y36(Sm,8))},o.\u0275dir=g.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&&g.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(g.Ikx("disabled",t.disabled)("required",t.required),g.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),g.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:[g._Bn([{provide:qc,useExisting:o}]),g.qOj,g.TTD]}),o})(),Mb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Cs],imports:[[iS,Cr,qe],iS,Cr]}),o})();function _H(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.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)),g.uIk("r",e._getCircleRadius())}}function bH(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}function CH(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.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)),g.uIk("r",e._getCircleRadius())}}function yH(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}const AH=Aa(class{constructor(o){this._elementRef=o}},"primary"),aS=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function xH(){return{diameter:100}}});class Na extends AH{constructor(a,e,t,s,c,l,n,i){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=zt.w.EMPTY,this.mode="determinate";const r=Na._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(t.head)||r.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!c&&!c._forceAnimations,c&&(c.diameter&&(this.diameter=c.diameter),c.strokeWidth&&(this.strokeWidth=c.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&l&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>l.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=ln(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=ln(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,ln(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Ut(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=Na._diameters;let s=t.get(a);if(!s||!s.has(e)){const c=this._document.createElement("style");c.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),c.textContent=this._getAnimationText(),a.appendChild(c),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(".","_")}}Na._diameters=new WeakMap,Na.\u0275fac=function(a){return new(a||Na)(g.Y36(g.SBq),g.Y36(Je),g.Y36(T.K0,8),g.Y36(Zi,8),g.Y36(aS),g.Y36(g.sBO),g.Y36(la),g.Y36(g.R0b))},Na.\u0275cmp=g.Xpm({type:Na,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(g.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),g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[g.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&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,_H,1,11,"circle",2),g.YNc(3,bH,1,9,"circle",3),g.qZA()),2&a&&(g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===e.mode),g.uIk("viewBox",e._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},directives:[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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});let sS=(()=>{class o extends Na{constructor(e,t,s,c,l,n,i,r){super(e,t,s,c,l,n,i,r),this.mode="indeterminate"}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Je),g.Y36(T.K0,8),g.Y36(Zi,8),g.Y36(aS),g.Y36(g.sBO),g.Y36(la),g.Y36(g.R0b))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(g.Udp("width",t.diameter,"px")("height",t.diameter,"px"),g.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[g.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(e,t){1&e&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,CH,1,11,"circle",2),g.YNc(3,yH,1,9,"circle",3),g.qZA()),2&e&&(g.Udp("width",t.diameter,"px")("height",t.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===t.mode),g.uIk("viewBox",t._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},directives:[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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0}),o})(),Tf=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[qe,T.ez],qe]}),o})(),GA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[er,T.ez]]}),o})(),EH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[],imports:[[T.ez,Cr,Ps,Nd,Mb,tl,Tf,er,GA]]}),o})();class SH{isErrorState(a){return!(!(null==a?void 0:a.invalid)||!(null==a?void 0:a.dirty))}}const MH=(o,a,e,t=500)=>s=>xt(t).pipe((0,pi.w)(()=>(e.dontHandleErrorForNext(),o&&"No namespace"!==o?a.checkPasswordStrength(s.value,o):(0,ke.of)(null))),(0,et.U)(()=>null),(0,zi.K)(c=>{const l=c.error,n={backendError:l.message.substring(l.message.indexOf(":")+1)};return(0,ke.of)(n)}));function HH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," info "),g.qZA())}function DH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," warning "),g.qZA())}function PH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," dangerous "),g.qZA())}function RH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," check_circle "),g.qZA())}const kH=["*"];let WA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:kH,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&&(g.F$t(),g.TgZ(0,"div",0),g.YNc(1,HH,2,0,"mat-icon",1),g.YNc(2,DH,2,0,"mat-icon",1),g.YNc(3,PH,2,0,"mat-icon",1),g.YNc(4,RH,2,0,"mat-icon",1),g.Hsn(5),g.qZA()),2&e&&(g.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),g.xp6(1),g.Q6J("ngIf","info"===t.alert_type),g.xp6(1),g.Q6J("ngIf","warn"===t.alert_type),g.xp6(1),g.Q6J("ngIf","error"===t.alert_type),g.xp6(1),g.Q6J("ngIf","success"===t.alert_type))},directives:[T.O5,np],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})();function IH(o,a){1&o&&g._UZ(0,"mat-spinner",12),2&o&&g.Q6J("diameter",18)}function VH(o,a){if(1&o&&(g.TgZ(0,"mat-icon",13),g._uU(1," error "),g.qZA()),2&o){const e=g.oxw();g.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function BH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function OH(o,a){if(1&o&&(g.TgZ(0,"mat-error",14),g._uU(1),g.qZA()),2&o){const e=g.oxw();g.Q6J("matTooltip",e.getErrorTooltip()),g.xp6(1),g.Oqu(e.getErrorTooltip())}}function FH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function LH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let jH=(()=>{class o{constructor(e,t,s){this.translator=e,this.usersManagerService=t,this.store=s,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new SH,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const s=e.userAttributes.find(c=>"preferredLanguage"===c.friendlyName);this.language=null!==(t=null==s?void 0:s.value)&&void 0!==t?t:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),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.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(_n),g.Y36(Sn),g.Y36(Hi))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[g.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["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"],["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&&(g.TgZ(0,"div",0),g.TgZ(1,"mat-form-field",1),g._UZ(2,"input",2),g.ALo(3,"translate"),g.YNc(4,IH,1,1,"mat-spinner",3),g.TgZ(5,"mat-icon",4),g.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),g._uU(6),g.qZA(),g.YNc(7,VH,2,2,"mat-icon",5),g.YNc(8,BH,3,3,"mat-error",6),g.YNc(9,OH,2,2,"mat-error",7),g.qZA(),g.TgZ(10,"mat-form-field",8),g.TgZ(11,"mat-label"),g._uU(12),g.ALo(13,"translate"),g.qZA(),g._UZ(14,"input",9),g.TgZ(15,"mat-icon",4),g.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),g._uU(16),g.qZA(),g.YNc(17,FH,3,3,"mat-error",6),g.YNc(18,LH,3,3,"mat-error",6),g.qZA(),g.TgZ(19,"perun-web-apps-alert",10),g._UZ(20,"div",11),g.qZA(),g.qZA()),2&e&&(g.Q6J("formGroup",t.formGroup),g.xp6(1),g.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),g.xp6(1),g.s9C("placeholder",g.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),g.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),g.xp6(2),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),g.xp6(2),g.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),g.xp6(3),g.Oqu(g.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),g.xp6(2),g.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),g.xp6(2),g.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),g.xp6(2),g.Q6J("innerHTML",t.passwordRequirement,g.oJD))},directives:[h,kl,Mm,Gm,rS,Od,vb,LA,xf,T.O5,sS,Fh,np,xm,Hs,WA],pipes:[Jr],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)}"]}),o})();function NH(o,a){if(1&o&&g._UZ(0,"perun-web-apps-password-form",4),2&o){const e=g.oxw();g.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function zH(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"div"),g.TgZ(1,"button",5),g.NdJ("click",function(){return g.CHM(e),g.oxw().onSubmit()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()}if(2&o){const e=g.oxw();g.xp6(1),g.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),g.xp6(1),g.hij(" ",g.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function UH(o,a){if(1&o&&(g.TgZ(0,"div",6),g.TgZ(1,"perun-web-apps-alert",7),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()),2&o){const e=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,1,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function qH(o,a){1&o&&g._UZ(0,"mat-spinner",8)}let GH=(()=>{class o{constructor(e,t,s,c,l){this.storeService=e,this.translate=t,this.apiRequestConfiguration=s,this.usersService=c,this._formBuilder=l,this.loading=!1,this.success=!1,this.language="en"}ngOnInit(){this.loading=!0,this.translate.onLangChange.subscribe(e=>{this.language=e.lang}),this.newPasswdForm=this._formBuilder.group({passwordCtrl:new wf("",Ml.required,[MH(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new wf("",Ml.required)},{validators:d_.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin(this.login,this.namespace,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken(this.token,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(_n),g.Y36(mA),g.Y36(Sn),g.Y36(hH))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:4,vars:4,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"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(g.YNc(0,NH,1,3,"perun-web-apps-password-form",0),g.YNc(1,zH,4,4,"div",1),g.YNc(2,UH,4,3,"div",2),g.YNc(3,qH,1,0,"mat-spinner",3)),2&e&&(g.Q6J("ngIf",!t.success&&!t.loading),g.xp6(1),g.Q6J("ngIf",!t.success&&!t.loading),g.xp6(1),g.Q6J("ngIf",t.success&&!t.loading),g.xp6(1),g.Q6J("ngIf",t.loading))},directives:[T.O5,jH,h,kl,zc,WA,sS],pipes:[Jr],styles:[""]}),o})(),WH=(()=>{class o{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(_n))},o.\u0275cmp=g.Xpm({type:o,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&&(g.TgZ(0,"perun-web-apps-alert",0),g._UZ(1,"div",1),g.qZA()),2&e&&(g.xp6(1),g.Q6J("innerHTML",t.invalidRequestMessage,g.oJD))},directives:[WA],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),o})();function $H(o,a){if(1&o&&(g.O4$(),g.kcU(),g.TgZ(0,"p",9),g.TgZ(1,"em"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()),2&o){const e=g.oxw();g.xp6(2),g.AsE("",g.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function QH(o,a){if(1&o&&(g.O4$(),g.kcU(),g.TgZ(0,"p",9),g.TgZ(1,"em"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()),2&o){const e=g.oxw();g.xp6(2),g.AsE("",g.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function YH(o,a){if(1&o&&(g.O4$(),g.kcU(),g._UZ(0,"perun-web-apps-password-reset-form",10)),2&o){const e=g.oxw();g.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function JH(o,a){1&o&&(g.O4$(),g.kcU(),g._UZ(0,"perun-web-apps-invalid-request-alert"))}let KH=(()=>{class o{constructor(e,t){this.storeService=e,this.sanitizer=t}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("password_reset_logo"))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(xn))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:14,vars:8,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&&(g.TgZ(0,"div"),g._UZ(1,"div",0),g.TgZ(2,"div",1),g.TgZ(3,"h1"),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.O4$(),g.TgZ(6,"svg",2),g.TgZ(7,"g",3),g._UZ(8,"path",4),g._UZ(9,"path",5),g.qZA(),g.qZA(),g.qZA(),g.YNc(10,$H,4,4,"p",6),g.YNc(11,QH,4,4,"p",6),g.YNc(12,YH,1,5,"perun-web-apps-password-reset-form",7),g.YNc(13,JH,1,0,"perun-web-apps-invalid-request-alert",8),g.qZA()),2&e&&(g.xp6(1),g.Q6J("innerHTML",t.passwordResetLogo,g.oJD),g.xp6(3),g.hij(" ",g.lcZ(5,6,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),g.xp6(6),g.Q6J("ngIf",t.login),g.xp6(1),g.Q6J("ngIf",t.namespace),g.xp6(1),g.Q6J("ngIf",t.validToken||t.authWithoutToken),g.xp6(1),g.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},directives:[T.O5,GH,WH],pipes:[Jr],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),o})();function ZH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let XH=(()=>{class o{constructor(e,t,s,c,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=c,this.storeService=l,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("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 o.\u0275fac=function(e){return new(e||o)(g.Y36(xs),g.Y36(_n),g.Y36(ob),g.Y36(_i),g.Y36(Hi))},o.\u0275cmp=g.Xpm({type:o,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&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g.TgZ(4,"mat-form-field"),g.TgZ(5,"mat-label"),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.TgZ(8,"input",2,3),g.NdJ("ngModelChange",function(c){return t.subject=c}),g.qZA(),g.YNc(10,ZH,3,3,"mat-error",4),g.qZA(),g.TgZ(11,"mat-form-field"),g.TgZ(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"textarea",5),g.NdJ("ngModelChange",function(c){return t.message=c}),g.ALo(16,"translate"),g._uU(17," "),g.qZA(),g.TgZ(18,"mat-hint"),g._uU(19),g.ALo(20,"translate"),g.qZA(),g.qZA(),g.qZA(),g.TgZ(21,"div",6),g.TgZ(22,"div",7),g.TgZ(23,"button",8),g.NdJ("click",function(){return t.close()}),g._uU(24),g.ALo(25,"translate"),g.qZA(),g.TgZ(26,"button",9),g.NdJ("click",function(){return t.sendBugReport()}),g._uU(27),g.ALo(28,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e){const s=g.MAs(9);g.xp6(1),g.Oqu(g.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),g.xp6(5),g.Oqu(g.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),g.xp6(2),g.Q6J("ngModel",t.subject),g.xp6(2),g.Q6J("ngIf",s.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),g.xp6(2),g.s9C("placeholder",g.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),g.Q6J("ngModel",t.message),g.xp6(4),g.Oqu(g.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),g.xp6(5),g.hij(" ",g.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",s.invalid),g.xp6(1),g.hij(" ",g.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Ic,Dh,Mm,Hs,rS,Od,xf,vb,VA,T.O5,xm,pT,gm,zc],pipes:[Jr],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),eD=(()=>{class o{transform(e,t,s){return e[`${s}_${t}`]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=g.Yjl({name:"localisedText",type:o,pure:!0}),o})(),tD=(()=>{class o{transform(e,t){return e["link_"+t]||e.link_en}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=g.Yjl({name:"localisedLink",type:o,pure:!0}),o})(),iD=(()=>{class o{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=g.Yjl({name:"footerLogoPath",type:o,pure:!0}),o})();function nD(o,a){if(1&o&&(g.TgZ(0,"a",13),g.ALo(1,"localisedLink"),g._UZ(2,"img",14),g.ALo(3,"footerLogoPath"),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("href",g.xi3(1,2,e,t.language),g.LSH),g.xp6(2),g.s9C("src",g.lcZ(3,5,e.logo),g.LSH)}}function rD(o,a){if(1&o&&(g.TgZ(0,"span"),g._UZ(1,"img",14),g.ALo(2,"footerLogoPath"),g.qZA()),2&o){const e=g.oxw().$implicit;g.xp6(1),g.s9C("src",g.lcZ(2,1,e.logo),g.LSH)}}function aD(o,a){if(1&o&&(g.TgZ(0,"div"),g.YNc(1,nD,4,7,"a",11),g.ALo(2,"localisedLink"),g.YNc(3,rD,3,3,"span",12),g.ALo(4,"localisedLink"),g.qZA()),2&o){const e=a.$implicit,t=g.oxw(3);g.xp6(1),g.Q6J("ngIf",g.xi3(2,2,e,t.language)),g.xp6(2),g.Q6J("ngIf",!g.xi3(4,5,e,t.language))}}const sD=function(o){return{"min-height":o}};function oD(o,a){if(1&o&&(g.TgZ(0,"div",10),g.YNc(1,aD,5,8,"div",5),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw();g.Q6J("ngStyle",g.VKq(2,sD,t.columnContentHeight+"px")),g.xp6(1),g.Q6J("ngForOf",e.elements)}}const Gs=function(o){return{color:o}};function lD(o,a){if(1&o&&(g.TgZ(0,"i",20),g._uU(1),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("ngStyle",g.VKq(2,Gs,t.linksTextColor)),g.xp6(1),g.hij(" ",e.icon," ")}}function cD(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"span",21),g.NdJ("click",function(){g.CHM(e);const s=g.oxw().$implicit;return g.oxw(3).openDialog(s.dialog)}),g._uU(1),g.ALo(2,"localisedText"),g.qZA()}if(2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("ngStyle",g.VKq(6,Gs,t.linksTextColor)),g.xp6(1),g.hij("",g.Dn7(2,2,e,t.language,"label")," ")}}function dD(o,a){if(1&o&&(g.TgZ(0,"a",22),g.ALo(1,"localisedLink"),g._uU(2),g.ALo(3,"localisedText"),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("href",g.xi3(1,3,e,t.language),g.LSH)("ngStyle",g.VKq(10,Gs,t.linksTextColor)),g.xp6(2),g.Oqu(g.Dn7(3,6,e,t.language,"label"))}}function uD(o,a){if(1&o&&(g.TgZ(0,"span",10),g._uU(1),g.ALo(2,"localisedText"),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("ngStyle",g.VKq(6,Gs,t.linksTextColor)),g.xp6(1),g.Oqu(g.Dn7(2,2,e,t.language,"label"))}}function hD(o,a){if(1&o&&(g.TgZ(0,"div",16),g.YNc(1,lD,2,4,"i",17),g.YNc(2,cD,3,8,"span",18),g.YNc(3,dD,4,12,"a",19),g.ALo(4,"localisedLink"),g.YNc(5,uD,3,8,"span",9),g.ALo(6,"localisedLink"),g.qZA()),2&o){const e=a.$implicit,t=g.oxw(3);g.xp6(1),g.Q6J("ngIf",e.icon),g.xp6(1),g.Q6J("ngIf",e.dialog),g.xp6(1),g.Q6J("ngIf",g.xi3(4,4,e,t.language)&&!e.dialog),g.xp6(2),g.Q6J("ngIf",!g.xi3(6,7,e,t.language)&&!e.dialog)}}const pD=function(o){return{height:o}};function fD(o,a){if(1&o&&(g.TgZ(0,"div",10),g.YNc(1,hD,7,10,"div",15),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw();g.Q6J("ngStyle",g.VKq(2,pD,t.columnContentHeight+"px")),g.xp6(1),g.Q6J("ngForOf",e.elements)}}function gD(o,a){if(1&o&&(g.TgZ(0,"div",7),g.TgZ(1,"h6",8),g._uU(2),g.ALo(3,"localisedText"),g.qZA(),g.YNc(4,oD,2,4,"div",9),g.YNc(5,fD,2,4,"div",9),g.qZA()),2&o){const e=a.$implicit,t=g.oxw();g.ekj("my-auto",t.containsLogos),g.xp6(1),g.Q6J("ngStyle",g.VKq(10,Gs,t.headersTextColor)),g.xp6(1),g.hij(" ",g.Dn7(3,6,e,t.language,"title")," "),g.xp6(2),g.Q6J("ngIf",e.logos),g.xp6(1),g.Q6J("ngIf",e.elements&&!e.logos)}}function mD(o,a){if(1&o&&(g.TgZ(0,"span"),g.TgZ(1,"a",6),g._uU(2),g.qZA(),g.qZA()),2&o){const e=a.$implicit,t=a.index,s=g.oxw();g.xp6(1),g.Q6J("href",e.url,g.LSH)("ngStyle",g.VKq(3,Gs,s.copyrightTextColor)),g.xp6(1),g.Oqu(t?", "+e.name:e.name)}}const _D=function(o){return{background:o}};let bD=(()=>{class o{constructor(e,t,s){this.storeService=e,this.translateService=t,this.dialog=s,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",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.get("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.get("footer","copyright_items")}openDialog(e){const t=Vs();"reportIssue"===e&&(t.width="550px",this.dialog.open(XH,t))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(_n),g.Y36(Ts))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,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&&(g.TgZ(0,"footer",0),g.TgZ(1,"div",1),g.YNc(2,gD,6,12,"div",2),g.qZA(),g._UZ(3,"hr",3),g.TgZ(4,"div",4),g._uU(5),g.YNc(6,mD,3,5,"span",5),g._uU(7," Version "),g.TgZ(8,"a",6),g._uU(9),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Q6J("ngStyle",g.VKq(8,_D,t.bgColor)),g.xp6(2),g.Q6J("ngForOf",t.footerColumns),g.xp6(2),g.Q6J("ngStyle",g.VKq(10,Gs,t.copyrightTextColor)),g.xp6(1),g.hij(" \xa9 ",t.currentYear," Copyright: "),g.xp6(1),g.Q6J("ngForOf",t.copyrightItems),g.xp6(2),g.Q6J("href",t.githubRepository,g.LSH)("ngStyle",g.VKq(12,Gs,t.copyrightTextColor)),g.xp6(1),g.Oqu(t.version))},directives:[T.PC,T.sg,T.O5],pipes:[eD,tD,iD],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}"]}),o})();const CD=["footer"],yD=function(o){return{background:o}},wD=function(o){return{"min-height":o}};let vD=(()=>{class o{constructor(e,t,s,c,l,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=s,this.translateService=c,this.store=l,this.attributesManagerService=n,this.changeDetector=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.get("theme","content_bg_color")}ngOnInit(){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode=t.includes("activation")?"activation":"reset",this.namespace=this.parseQueryParams("namespace",t),t.includes("token")?(this.token=this.parseQueryParams("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(s=>{const c=s.find(l=>l.friendlyNameParameter===this.namespace);this.login=c?String(c.value):""}))}parseQueryParams(e,t){const s=t.split("&");for(const c of s){const[l,n]=c.split("=");if(l.includes(e))return n}}ngAfterViewInit(){var e,t,s,c;const l=null!==(c=null===(s=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===s?void 0:s.toString())&&void 0!==c?c:"0";this.contentHeight="calc(100vh - 84px - "+l+"px)",this.changeDetector.detectChanges()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Ts),g.Y36(Sn),g.Y36(lb),g.Y36(_n),g.Y36(Hi),g.Y36(Tn),g.Y36(g.sBO))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&g.Gf(CD,5),2&e){let s;g.iGM(s=g.CRH())&&(t.footer=s.first)}},decls:8,vars:12,consts:[["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""]],template:function(e,t){1&e&&(g.TgZ(0,"div"),g._UZ(1,"perun-web-apps-header",0),g.TgZ(2,"div",1),g.TgZ(3,"div",2),g._UZ(4,"perun-web-apps-password-reset-page",3),g.qZA(),g.TgZ(5,"div",null,4),g._UZ(7,"perun-web-apps-footer"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.xp6(2),g.Q6J("ngStyle",g.VKq(8,yD,t.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(10,wD,t.contentHeight)),g.xp6(1),g.Q6J("mode",t.mode)("token",t.token)("namespace",t.namespace)("login",t.login)("validToken",t.validToken)("authWithoutToken",t.authWithoutToken))},directives:[ub,T.PC,KH,bD],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}}"]}),o})();class AD{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 xD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Vc,Bn,tl]]}),o})();const TD=[];let ED=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Qp.forRoot(TD,{relativeLinkResolution:"legacy"}),T.ez],Qp]}),o})(),SD=(()=>{class o{constructor(e,t,s,c,l){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=c,this.utilsService=l}initializeColors(e,t){return new Promise(s=>{t.forEach(c=>{const l=this.storeService.get("theme",c.configValue);document.documentElement.style.setProperty(c.cssVariable,l)}),e.forEach(c=>{const l=this.storeService.get("theme",c.configValue);document.documentElement.style.setProperty(c.cssVariable,l),this.setEntityTheme(c.entity,l)}),s()})}setEntityTheme(e,t){const s=function MD(o){return[Cn(tinycolor(o).lighten(52),"50"),Cn(tinycolor(o).lighten(37),"100"),Cn(tinycolor(o).lighten(26),"200"),Cn(tinycolor(o).lighten(12),"300"),Cn(tinycolor(o).lighten(6),"400"),Cn(tinycolor(o),"500"),Cn(tinycolor(o).darken(6),"600"),Cn(tinycolor(o).darken(12),"700"),Cn(tinycolor(o).darken(18),"800"),Cn(tinycolor(o).darken(24),"900"),Cn(tinycolor(o).lighten(50).saturate(30),"A100"),Cn(tinycolor(o).lighten(30).saturate(30),"A200"),Cn(tinycolor(o).lighten(10).saturate(15),"A400"),Cn(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const c of s){const i=`--${e}-theme-primary-contrast-${c.name}`,r=c.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${c.name}`,`${c.red},${c.green},${c.blue}`),document.documentElement.style.setProperty(i,r)}}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=>{var s;this.storeService.setInstanceConfig(t);const c=document.location.hostname;(null===(s=null==t?void 0:t.brandings)||void 0===s?void 0:s[c])&&this.storeService.setBanding(c),e()},()=>{e()})})}getNoCacheHeaders(){return new y.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.get("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.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("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)(g.LFG(y.eN),g.LFG(Hi),g.LFG(Wi),g.LFG(Oi),g.LFG(Xe))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Cn(o,a){const e=tinycolor(o),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let HD=(()=>{class o{constructor(e,t,s){this.initAuthService=e,this.appConfigService=t,this.location=s}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substr(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.location.go("/"),location.reload(),e}).then(e=>e?location.search.substr(1).includes("token")?void 0:this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Xp),g.LFG(SD),g.LFG(T.Ye))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const DD=new g.OlP("perun-api-service");let oS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[qe],qe]}),o})(),dS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),Hb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,qe,fg,dS],qe,dS]}),o})(),$A=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[qe],qe]}),o})(),zD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),hS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,qe,zD,uo]]}),o})(),fS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ys,qe],ys,qe]}),o})(),GD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ti]]}),o})(),QA=(()=>{class o{constructor(){this.changes=new He.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const iP={provide:QA,deps:[[new g.FiY,new g.tp0,QA]],useFactory:function tP(o){return o||new QA}};let mS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[iP,Cs],imports:[[qe,T.ez,uo,Bn,GD,er,Yn],qe]}),o})(),_P=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ca]]}),o})(),sx=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[_P,qe],qe]}),o})(),qP=(()=>{class o{constructor(){this.changes=new He.xQ,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"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const $P={provide:new g.OlP("mat-datepicker-scroll-strategy"),deps:[Wn],useFactory:function WP(o){return()=>o.scrollStrategies.reposition()}};let ox=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[qP,$P],imports:[[T.ez,Bn,ns,Ou,uo,qe],qn]}),o})(),RS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,qe,Yi,qn],qn,qe]}),o})(),IS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ys,Yn,qe,Eh,T.ez],ys,qe,Eh,$A]}),o})(),lx=(()=>{class o{constructor(){this.changes=new He.xQ}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const pR={provide:lx,deps:[[new g.FiY,new g.tp0,lx]],useFactory:function hR(o){return o||new lx}};let cx=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[pR],imports:[[T.ez,qe]]}),o})(),VS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,oS,$A,hS,Bn,fS,Hb,er,sx,Vc,Tf,Cr,Mb,ca,UA,Nd,mS,ox,Py,RS,IS,rl,cb,cx,Rs,Ps,Yc,Yn],oS,$A,hS,Bn,fS,Hb,er,sx,Vc,Tf,Cr,Mb,ca,UA,Nd,mS,ox,Py,RS,IS,rl,cb,cx,Rs,Ps,Yc,Yn]}),o})();const LS=new g.OlP("mat-chips-default-options");let ER=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Cs,{provide:LS,useValue:{separatorKeyCodes:[13]}}],imports:[[qe]]}),o})();function MR(o){const{subscriber:a,counter:e,period:t}=o;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function ux(o,a,e){for(let t in a)if(a.hasOwnProperty(t)){const s=a[t];s?o.setProperty(t,s,(null==e?void 0:e.has(t))?"important":""):o.removeProperty(t)}return o}function Wd(o,a){const e=a?"":"none";ux(o.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 jS(o,a,e){ux(o.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function Ub(o,a){return a&&"none"!=a?o+" "+a:o}function NS(o){const a=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*a}function hx(o,a){return o.getPropertyValue(a).split(",").map(t=>t.trim())}function px(o){const a=o.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 fx(o,a,e){const{top:t,bottom:s,left:c,right:l}=o;return e>=t&&e<=s&&a>=c&&a<=l}function Hf(o,a,e){o.top+=a,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function zS(o,a,e,t){const{top:s,right:c,bottom:l,left:n,width:i,height:r}=o,d=i*a,u=r*a;return t>s-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:px(e)})})}handleScroll(a){const e=Di(a),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let c,l;if(e===this._document){const r=this._viewportRuler.getViewportScrollPosition();c=r.top,l=r.left}else c=e.scrollTop,l=e.scrollLeft;const n=s.top-c,i=s.left-l;return this.positions.forEach((r,d)=>{r.clientRect&&e!==d&&e.contains(d)&&Hf(r.clientRect,n,i)}),s.top=c,s.left=l,{top:n,left:i}}}function qS(o){const a=o.cloneNode(!0),e=a.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();a.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const i=this._handles.find(r=>n.target&&(n.target===r||r.contains(n.target)));i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),D=this._dropContainer;if(!b)return void this._endDragSequence(n);(!D||!D.isDragging()&&!D.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),n.preventDefault();const r=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(r),this._dropContainer)this._updateActiveDropContainer(r,i);else{const d=this._activeTransform;d.x=r.x-this._pickupPositionOnPage.x+this._passiveTransform.x,d.y=r.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:r,event:n,distance:this._getDragDistance(r),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new US(t,c),l.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=it(a);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(a){this._handles=a.map(t=>Lt(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(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Lt(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,YS),e.addEventListener("touchstart",this._pointerDown,QS)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Lt(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===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.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),Wd(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Wd(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}),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})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){Df(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,c=this._placeholder=this._createPlaceholderElement(),l=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();s.insertBefore(l,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),jS(t,!1,gx),this._document.body.appendChild(s.replaceChild(c,t)),this._getPreviewInsertionPoint(s,n).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=Df(e),c=!s&&0!==e.button,l=this._rootElement,n=Di(e),i=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),r=s?fc(e):Ro(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||c||i||r)return;if(this._handles.length){const f=l.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=px(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(a,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(a){jS(this._rootElement,!0,gx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(a),c=this._getDragDistance(s),l=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:c,dropPoint:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:l,distance:c,dropPoint:s}),e.drop(this,t,this._initialIndex,this._initialContainer,l,c,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:s}){let c=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!c&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(c=this._initialContainer),c&&c!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=c,this._dropContainer.enter(this,a,e,c===this._initialContainer&&c.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:c,currentIndex:c.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),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 c=a.matchSize?this._rootElement.getBoundingClientRect():null,l=a.viewContainer.createEmbeddedView(t,a.context);l.detectChanges(),s=KS(l,this._document),this._previewRef=l,a.matchSize?ZS(s,c):s.style.transform=qb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const c=this._rootElement;s=qS(c),ZS(s,c.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return ux(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},gx),Wd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(c=>s.classList.add(c)):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 HR(o){const a=getComputedStyle(o),e=hx(a,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const s=e.indexOf(t),c=hx(a,"transition-duration"),l=hx(a,"transition-delay");return NS(c[s])+NS(l[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=l=>{var n;(!l||Di(l)===this._preview&&"transform"===l.propertyName)&&(null===(n=this._preview)||void 0===n||n.removeEventListener("transitionend",s),t(),clearTimeout(c))},c=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=KS(this._placeholderRef,this._document)):t=qS(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),s=a===this._rootElement?null:a,c=s?s.getBoundingClientRect():t,l=Df(e)?e.targetTouches[0]:e,n=this._getViewportScrollPosition();return{x:c.left-t.left+(l.pageX-c.left-n.left),y:c.top-t.top+(l.pageY-c.top-n.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=Df(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,s=t.pageX-e.left,c=t.pageY-e.top;if(this._ownerSVGElement){const l=this._ownerSVGElement.getScreenCTM();if(l){const n=this._ownerSVGElement.createSVGPoint();return n.x=s,n.y=c,n.matrixTransform(l.inverse())}}return{x:s,y:c}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:c,y:l}=this._pickupPositionInElement,n=this._boundaryRect,i=this._previewRect,r=n.top+l,d=n.bottom-(i.height-l);t=JS(t,n.left+c,n.right-(i.width-c)),s=JS(s,r,d)}return{x:t,y:s}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,s=this._pointerDirectionDelta,c=this._pointerPositionAtLastDirectionChange,l=Math.abs(e-c.x),n=Math.abs(t-c.y);return l>this._config.pointerDirectionChangeThreshold&&(s.x=e>c.x?1:-1,c.x=e),n>this._config.pointerDirectionChangeThreshold&&(s.y=t>c.y?1:-1,c.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Wd(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,YS),a.removeEventListener("touchstart",this._pointerDown,QS)}_applyRootElementTransform(a,e){const t=qb(a,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=Ub(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const s=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,c=qb(a,e);this._preview.style.transform=Ub(c,s)}_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._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===s.width&&0===s.height)return;const c=t.left-s.left,l=s.right-t.right,n=t.top-s.top,i=s.bottom-t.bottom;t.width>s.width?(c>0&&(a+=c),l>0&&(a-=l)):a=0,t.height>s.height?(n>0&&(e+=n),i>0&&(e-=i)):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:Df(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Di(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Hf(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(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Ut(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 Lt(t)}}function qb(o,a){return`translate3d(${Math.round(o)}px, ${Math.round(a)}px, 0)`}function JS(o,a,e){return Math.max(a,Math.min(e,o))}function Df(o){return"t"===o.type[0]}function KS(o,a){const e=o.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 ZS(o,a){o.style.width=`${a.width}px`,o.style.height=`${a.height}px`,o.style.transform=qb(a.left,a.top)}function Pf(o,a){return Math.max(0,Math.min(a,o))}class IR{constructor(a,e,t,s,c){this._dragDropRegistry=e,this._ngZone=s,this._viewportRuler=c,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.xQ,this.entered=new He.xQ,this.exited=new He.xQ,this.dropped=new He.xQ,this.sorted=new He.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=zt.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function SR(o=0,a=k.P){return(!Oe(o)||o<0)&&(o=0),(!a||"function"!=typeof a.schedule)&&(a=k.P),new Ci.y(e=>(e.add(a.schedule(MR,o,{subscriber:e,counter:0,period:o})),e))}(0,eu).pipe(ht(this._stopScrollTimers)).subscribe(()=>{const l=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?l.scrollBy(0,-n):2===this._verticalScrollDirection&&l.scrollBy(0,n),1===this._horizontalScrollDirection?l.scrollBy(-n,0):2===this._horizontalScrollDirection&&l.scrollBy(n,0)})},this.element=Lt(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new US(t,c)}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){let c;this._draggingStarted(),null==s?(c=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===c&&(c=this._getItemIndexFromPointerPosition(a,e,t))):c=s;const l=this._activeDraggables,n=l.indexOf(a),i=a.getPlaceholderElement();let r=l[c];if(r===a&&(r=l[c+1]),!r&&(null==c||-1===c||c-1&&l.splice(n,1),r&&!this._dragDropRegistry.isDragging(r)){const d=r.getRootElement();d.parentElement.insertBefore(i,d),l.splice(c,0,a)}else Lt(this.element).appendChild(i),l.push(a);i.style.transform="",this._cacheItemPositions(),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,c,l,n){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:c,distance:l,dropPoint: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._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=Lt(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,s){if(this.sortingDisabled||!this._clientRect||!zS(this._clientRect,.05,e,t))return;const c=this._itemPositions,l=this._getItemIndexFromPointerPosition(a,e,t,s);if(-1===l&&c.length>0)return;const n="horizontal"===this._orientation,i=c.findIndex(se=>se.drag===a),r=c[l],u=r.clientRect,f=i>l?1:-1,b=this._getItemOffsetPx(c[i].clientRect,u,f),D=this._getSiblingOffsetPx(i,c,f),q=c.slice();(function kR(o,a,e){const t=Pf(a,o.length-1),s=Pf(e,o.length-1);if(t===s)return;const c=o[t],l=s{if(q[De]===se)return;const rt=se.drag===a,Qe=rt?b:D,vt=rt?a.getPlaceholderElement():se.drag.getRootElement();se.offset+=Qe,n?(vt.style.transform=Ub(`translate3d(${Math.round(se.offset)}px, 0, 0)`,se.initialTransform),Hf(se.clientRect,0,Qe)):(vt.style.transform=Ub(`translate3d(0, ${Math.round(se.offset)}px, 0)`,se.initialTransform),Hf(se.clientRect,Qe,0))}),this._previousSwap.overlaps=fx(u,e,t),this._previousSwap.drag=r.drag,this._previousSwap.delta=n?s.x:s.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,s=0,c=0;if(this._parentPositions.positions.forEach((l,n)=>{n===this._document||!l.clientRect||t||zS(l.clientRect,.05,a,e)&&([s,c]=function VR(o,a,e,t){const s=tM(a,t),c=iM(a,e);let l=0,n=0;if(s){const i=o.scrollTop;1===s?i>0&&(l=1):o.scrollHeight-i>o.clientHeight&&(l=2)}if(c){const i=o.scrollLeft;1===c?i>0&&(n=1):o.scrollWidth-i>o.clientWidth&&(n=2)}return[l,n]}(n,l.clientRect,a,e),(s||c)&&(t=n))}),!s&&!c){const{width:l,height:n}=this._viewportRuler.getViewportSize(),i={width:l,height:n,top:0,right:l,bottom:n,left:0};s=tM(i,e),c=iM(i,a),t=window}t&&(s!==this._verticalScrollDirection||c!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=c,this._scrollNode=t,(s||c)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Lt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Lt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_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:px(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=Lt(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const s=e.getRootElement();if(s){const c=null===(t=this._itemPositions.find(l=>l.drag===e))||void 0===t?void 0:t.initialTransform;s.style.transform=c||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const s="horizontal"===this._orientation,c=e[a].clientRect,l=e[a+-1*t];let n=c[s?"width":"height"]*t;if(l){const i=s?"left":"top",r=s?"right":"bottom";-1===t?n-=l.clientRect[i]-c[r]:n+=c[i]-l.clientRect[r]}return n}_getItemOffsetPx(a,e,t){const s="horizontal"===this._orientation;let c=s?e.left-a.left:e.top-a.top;return-1===t&&(c+=s?e.width-a.width:e.height-a.height),c}_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 l=t[t.length-1].clientRect;return s?a>=l.right:e>=l.bottom}{const l=t[0].clientRect;return s?a<=l.left:e<=l.top}}_getItemIndexFromPointerPosition(a,e,t,s){const c="horizontal"===this._orientation,l=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===a)return!1;if(s){const r=c?s.x:s.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&r===this._previousSwap.delta)return!1}return c?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&ts._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!fx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const c=Lt(this.element);return s===c||c.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._itemPositions.forEach(({clientRect:t})=>{Hf(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Ut(Lt(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function tM(o,a){const{top:e,bottom:t,height:s}=o,c=.05*s;return a>=e-c&&a<=e+c?1:a>=t-c&&a<=t+c?2:0}function iM(o,a){const{left:e,right:t,width:s}=o,c=.05*s;return a>=e-c&&a<=e+c?1:a>=t-c&&a<=t+c?2:0}const Gb=dn({passive:!1,capture:!0});let BR=(()=>{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 He.xQ,this.pointerUp=new He.xQ,this.scroll=new He.xQ,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,Gb)})}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,Gb)}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:c=>this.pointerUp.next(c),options:!0}).set("scroll",{handler:c=>this.scroll.next(c),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Gb}),s||this._globalListeners.set("mousemove",{handler:c=>this.pointerMove.next(c),options:Gb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((c,l)=>{this._document.addEventListener(l,c.handler,c.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 Ci.y(s=>this._ngZone.runOutsideAngular(()=>{const l=n=>{this._activeDragInstances.length&&s.next(n)};return e.addEventListener("scroll",l,!0),()=>{e.removeEventListener("scroll",l,!0)}}))),(0,Gn.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)(g.LFG(g.R0b),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const OR={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let FR=(()=>{class o{constructor(e,t,s,c){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=c}createDrag(e,t=OR){return new RR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new IR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(g.R0b),g.LFG(la),g.LFG(BR))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),LR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[FR],imports:[qn]}),o})(),jR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez]]}),o})(),NR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),WR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),ek=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[WR,qe],qe]}),o})(),pk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,qe],qe]}),o})(),mk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Nd,Bn,Hb,er,Tf,Ps]]}),o})(),_k=(()=>{class o extends Yo{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const bk={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 Ck=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[{provide:gn,useClass:_k},{provide:Qo,useValue:bk}],imports:[[T.ez,Hb,sx,UA,ER,LR,tl,Qp,cx,Rs,Tf,GA,er,rl,Bn,Ps,Cr,Nd,Mb,Yn,jR,NR,ek,ox,pk,Sh,Yc,mk,ca,Vc,a_,VS]]}),o})();const CI={provide:y.TP,useExisting:(0,g.Gpc)(()=>ef),multi:!0};function yI(o){return new AD(o,"./assets/i18n/",".json")}function wI(o){const a={basePath:o.get("api_url")};return new je(a)}const vI=o=>()=>o.loadConfigs();let AI=(()=>{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)(g.LFG(fA),g.LFG(_n))},o.\u0275mod=g.oAB({type:o,bootstrap:[vD]}),o.\u0275inj=g.cJS({providers:[fA,{provide:g.ip1,useFactory:vI,multi:!0,deps:[HD]},{provide:je,useFactory:wI,deps:[Hi]},ef,CI,{provide:DD,useClass:_A}],imports:[[Mr,tl.forRoot({loader:{provide:Zn,useFactory:yI,deps:[y.eN]}}),yh,er,xD,Of,y.JF,ED,VS,GA,EH,Kp.zr.forRoot(),Ck]]}),o})();(0,g.G48)(),Sr().bootstrapModule(AI).catch(o=>console.error(o))},1302:function(z,W,E){var T;!function(g,B){var j={};!function(g){"use strict";g.__esModule=!0,g.digestLength=32,g.blockSize=64;var B=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 j(Q,ie,re,ne,le){for(var xe,Ae,Be,ft,yt,We,gi,St,Ze,oe,he,pe,ue;le>=64;){for(xe=ie[0],Ae=ie[1],Be=ie[2],ft=ie[3],yt=ie[4],We=ie[5],gi=ie[6],St=ie[7],oe=0;oe<16;oe++)Q[oe]=(255&re[he=ne+4*oe])<<24|(255&re[he+1])<<16|(255&re[he+2])<<8|255&re[he+3];for(oe=16;oe<64;oe++)Q[oe]=((pe=((Ze=Q[oe-2])>>>17|Ze<<15)^(Ze>>>19|Ze<<13)^Ze>>>10)+Q[oe-7]|0)+((ue=((Ze=Q[oe-15])>>>7|Ze<<25)^(Ze>>>18|Ze<<14)^Ze>>>3)+Q[oe-16]|0);for(oe=0;oe<64;oe++)pe=(((yt>>>6|yt<<26)^(yt>>>11|yt<<21)^(yt>>>25|yt<<7))+(yt&We^~yt&gi)|0)+(St+(B[oe]+Q[oe]|0)|0)|0,ue=((xe>>>2|xe<<30)^(xe>>>13|xe<<19)^(xe>>>22|xe<<10))+(xe&Ae^xe&Be^Ae&Be)|0,St=gi,gi=We,We=yt,yt=ft+pe|0,ft=Be,Be=Ae,Ae=xe,xe=pe+ue|0;ie[0]+=xe,ie[1]+=Ae,ie[2]+=Be,ie[3]+=ft,ie[4]+=yt,ie[5]+=We,ie[6]+=gi,ie[7]+=St,ne+=64,le-=64}return ne}var I=function(){function Q(){this.digestLength=g.digestLength,this.blockSize=g.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 Q.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},Q.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=ie[ne++],re--;64===this.bufferLength&&(j(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(ne=j(this.temp,this.state,ie,ne,re),re%=64);re>0;)this.buffer[this.bufferLength++]=ie[ne++],re--;return this},Q.prototype.finish=function(ie){if(!this.finished){var re=this.bytesHashed,ne=this.bufferLength,le=re/536870912|0,xe=re<<3,Ae=re%64<56?64:128;this.buffer[ne]=128;for(var Be=ne+1;Be>>24&255,this.buffer[Ae-7]=le>>>16&255,this.buffer[Ae-6]=le>>>8&255,this.buffer[Ae-5]=le>>>0&255,this.buffer[Ae-4]=xe>>>24&255,this.buffer[Ae-3]=xe>>>16&255,this.buffer[Ae-2]=xe>>>8&255,this.buffer[Ae-1]=xe>>>0&255,j(this.temp,this.state,this.buffer,0,Ae),this.finished=!0}for(Be=0;Be<8;Be++)ie[4*Be+0]=this.state[Be]>>>24&255,ie[4*Be+1]=this.state[Be]>>>16&255,ie[4*Be+2]=this.state[Be]>>>8&255,ie[4*Be+3]=this.state[Be]>>>0&255;return this},Q.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},Q.prototype._saveState=function(ie){for(var re=0;rethis.blockSize)(new I).update(ie).finish(re).clean();else for(var ne=0;ne1&&ie.update(Q),re&&ie.update(re),ie.update(ne),ie.finish(Q),ne[0]++}g.HMAC=O,g.hash=Y,g.default=Y,g.hmac=$;var F=new Uint8Array(g.digestLength);g.hkdf=function L(Q,ie,re,ne){void 0===ie&&(ie=F),void 0===ne&&(ne=32);for(var le=new Uint8Array([1]),xe=$(ie,Q),Ae=new O(xe),Be=new Uint8Array(Ae.digestLength),ft=Be.length,yt=new Uint8Array(ne),We=0;We>>24&255,Ae[1]=gi>>>16&255,Ae[2]=gi>>>8&255,Ae[3]=gi>>>0&255,le.reset(),le.update(ie),le.update(Ae),le.finish(ft);for(var St=0;St=L.status}function O(F){try{F.dispatchEvent(new MouseEvent("click"))}catch(G){var L=document.createEvent("MouseEvents");L.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(L)}}var Y="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,$=Y.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=Y.saveAs||("object"!=typeof window||window!==Y?function(){}:"download"in HTMLAnchorElement.prototype&&!$?function(F,L,G){var Q=Y.URL||Y.webkitURL,ie=document.createElement("a");ie.download=L=L||F.name||"download",ie.rel="noopener","string"==typeof F?(ie.href=F,ie.origin===location.origin?O(ie):I(ie.href)?j(F,L,G):O(ie,ie.target="_blank")):(ie.href=Q.createObjectURL(F),setTimeout(function(){Q.revokeObjectURL(ie.href)},4e4),setTimeout(function(){O(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(F,L,G){if(L=L||F.name||"download","string"!=typeof F)navigator.msSaveOrOpenBlob(function B(F,L){return void 0===L?L={autoBom:!1}:"object"!=typeof L&&(console.warn("Deprecated: Expected third argument to be a object"),L={autoBom:!L}),L.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob(["\ufeff",F],{type:F.type}):F}(F,G),L);else if(I(F))j(F,L,G);else{var Q=document.createElement("a");Q.href=F,Q.target="_blank",setTimeout(function(){O(Q)})}}:function(F,L,G,Q){if((Q=Q||open("","_blank"))&&(Q.document.title=Q.document.body.innerText="downloading..."),"string"==typeof F)return j(F,L,G);var ie="application/octet-stream"===F.type,re=/constructor/i.test(Y.HTMLElement)||Y.safari,ne=/CriOS\/[\d]+/.test(navigator.userAgent);if((ne||ie&&re||$)&&"undefined"!=typeof FileReader){var le=new FileReader;le.onloadend=function(){var Be=le.result;Be=ne?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),Q?Q.location.href=Be:location=Be,Q=null},le.readAsDataURL(F)}else{var xe=Y.URL||Y.webkitURL,Ae=xe.createObjectURL(F);Q?Q.location=Ae:location.href=Ae,Q=null,setTimeout(function(){xe.revokeObjectURL(Ae)},4e4)}});Y.saveAs=U.saveAs=U,z.exports=U}.apply(W,[]))&&(z.exports=g)},1869:(z,W,E)=>{"use strict";E.d(W,{d:()=>g});var T=E(3489);class g extends T.L{constructor(j,I,O){super(),this.parent=j,this.outerValue=I,this.outerIndex=O,this.index=0}_next(j){this.parent.notifyNext(this.outerValue,j,this.outerIndex,this.index++,this)}_error(j){this.parent.notifyError(j,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(z,W,E)=>{"use strict";E.d(W,{P:()=>I});var T=E(8896),g=E(1086),B=E(1737);class I{constructor(Y,$,U){this.kind=Y,this.value=$,this.error=U,this.hasValue="N"===Y}observe(Y){switch(this.kind){case"N":return Y.next&&Y.next(this.value);case"E":return Y.error&&Y.error(this.error);case"C":return Y.complete&&Y.complete()}}do(Y,$,U){switch(this.kind){case"N":return Y&&Y(this.value);case"E":return $&&$(this.error);case"C":return U&&U()}}accept(Y,$,U){return Y&&"function"==typeof Y.next?this.observe(Y):this.do(Y,$,U)}toObservable(){switch(this.kind){case"N":return(0,g.of)(this.value);case"E":return(0,B._)(this.error);case"C":return(0,T.c)()}throw new Error("unexpected notification kind value")}static createNext(Y){return void 0!==Y?new I("N",Y):I.undefinedValueNotification}static createError(Y){return new I("E",void 0,Y)}static createComplete(){return I.completeNotification}}I.completeNotification=new I("C"),I.undefinedValueNotification=new I("N",void 0)},2916:(z,W,E)=>{"use strict";E.d(W,{y:()=>L});var T=E(3489),B=E(7668),j=E(3292),O=E(3821),Y=E(5379);var F=E(2830);let L=(()=>{class Q{constructor(re){this._isScalar=!1,re&&(this._subscribe=re)}lift(re){const ne=new Q;return ne.source=this,ne.operator=re,ne}subscribe(re,ne,le){const{operator:xe}=this,Ae=function I(Q,ie,re){if(Q){if(Q instanceof T.L)return Q;if(Q[B.b])return Q[B.b]()}return Q||ie||re?new T.L(Q,ie,re):new T.L(j.c)}(re,ne,le);if(Ae.add(xe?xe.call(Ae,this.source):this.source||F.v.useDeprecatedSynchronousErrorHandling&&!Ae.syncErrorThrowable?this._subscribe(Ae):this._trySubscribe(Ae)),F.v.useDeprecatedSynchronousErrorHandling&&Ae.syncErrorThrowable&&(Ae.syncErrorThrowable=!1,Ae.syncErrorThrown))throw Ae.syncErrorValue;return Ae}_trySubscribe(re){try{return this._subscribe(re)}catch(ne){F.v.useDeprecatedSynchronousErrorHandling&&(re.syncErrorThrown=!0,re.syncErrorValue=ne),function g(Q){for(;Q;){const{closed:ie,destination:re,isStopped:ne}=Q;if(ie||ne)return!1;Q=re&&re instanceof T.L?re:null}return!0}(re)?re.error(ne):console.warn(ne)}}forEach(re,ne){return new(ne=G(ne))((le,xe)=>{let Ae;Ae=this.subscribe(Be=>{try{re(Be)}catch(ft){xe(ft),Ae&&Ae.unsubscribe()}},xe,le)})}_subscribe(re){const{source:ne}=this;return ne&&ne.subscribe(re)}[O.L](){return this}pipe(...re){return 0===re.length?this:function U(Q){return 0===Q.length?Y.y:1===Q.length?Q[0]:function(re){return Q.reduce((ne,le)=>le(ne),re)}}(re)(this)}toPromise(re){return new(re=G(re))((ne,le)=>{let xe;this.subscribe(Ae=>xe=Ae,Ae=>le(Ae),()=>ne(xe))})}}return Q.create=ie=>new Q(ie),Q})();function G(Q){if(Q||(Q=F.v.Promise||Promise),!Q)throw new Error("no Promise impl found");return Q}},3292:(z,W,E)=>{"use strict";E.d(W,{c:()=>B});var T=E(2830),g=E(2782);const B={closed:!0,next(j){},error(j){if(T.v.useDeprecatedSynchronousErrorHandling)throw j;(0,g.z)(j)},complete(){}}},826:(z,W,E)=>{"use strict";E.d(W,{L:()=>g});var T=E(3489);class g extends T.L{notifyNext(j,I,O,Y,$){this.destination.next(I)}notifyError(j,I){this.destination.error(j)}notifyComplete(j){this.destination.complete()}}},8929:(z,W,E)=>{"use strict";E.d(W,{Yc:()=>Y,xQ:()=>$});var T=E(2916),g=E(3489),B=E(2654),j=E(5279),I=E(5283),O=E(7668);class Y extends g.L{constructor(L){super(L),this.destination=L}}let $=(()=>{class F extends T.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[O.b](){return new Y(this)}lift(G){const Q=new U(this,this);return Q.operator=G,Q}next(G){if(this.closed)throw new j.N;if(!this.isStopped){const{observers:Q}=this,ie=Q.length,re=Q.slice();for(let ne=0;nenew U(L,G),F})();class U extends ${constructor(L,G){super(),this.destination=L,this.source=G}next(L){const{destination:G}=this;G&&G.next&&G.next(L)}error(L){const{destination:G}=this;G&&G.error&&this.destination.error(L)}complete(){const{destination:L}=this;L&&L.complete&&this.destination.complete()}_subscribe(L){const{source:G}=this;return G?this.source.subscribe(L):B.w.EMPTY}}},5283:(z,W,E)=>{"use strict";E.d(W,{W:()=>g});var T=E(2654);class g extends T.w{constructor(j,I){super(),this.subject=j,this.subscriber=I,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const j=this.subject,I=j.observers;if(this.subject=null,!I||0===I.length||j.isStopped||j.closed)return;const O=I.indexOf(this.subscriber);-1!==O&&I.splice(O,1)}}},3489:(z,W,E)=>{"use strict";E.d(W,{L:()=>Y});var T=E(7043),g=E(3292),B=E(2654),j=E(7668),I=E(2830),O=E(2782);class Y extends B.w{constructor(F,L,G){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=g.c;break;case 1:if(!F){this.destination=g.c;break}if("object"==typeof F){F instanceof Y?(this.syncErrorThrowable=F.syncErrorThrowable,this.destination=F,F.add(this)):(this.syncErrorThrowable=!0,this.destination=new $(this,F));break}default:this.syncErrorThrowable=!0,this.destination=new $(this,F,L,G)}}[j.b](){return this}static create(F,L,G){const Q=new Y(F,L,G);return Q.syncErrorThrowable=!1,Q}next(F){this.isStopped||this._next(F)}error(F){this.isStopped||(this.isStopped=!0,this._error(F))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(F){this.destination.next(F)}_error(F){this.destination.error(F),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:F}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=F,this}}class $ extends Y{constructor(F,L,G,Q){super(),this._parentSubscriber=F;let ie,re=this;(0,T.m)(L)?ie=L:L&&(ie=L.next,G=L.error,Q=L.complete,L!==g.c&&(re=Object.create(L),(0,T.m)(re.unsubscribe)&&this.add(re.unsubscribe.bind(re)),re.unsubscribe=this.unsubscribe.bind(this))),this._context=re,this._next=ie,this._error=G,this._complete=Q}next(F){if(!this.isStopped&&this._next){const{_parentSubscriber:L}=this;I.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?this.__tryOrSetError(L,this._next,F)&&this.unsubscribe():this.__tryOrUnsub(this._next,F)}}error(F){if(!this.isStopped){const{_parentSubscriber:L}=this,{useDeprecatedSynchronousErrorHandling:G}=I.v;if(this._error)G&&L.syncErrorThrowable?(this.__tryOrSetError(L,this._error,F),this.unsubscribe()):(this.__tryOrUnsub(this._error,F),this.unsubscribe());else if(L.syncErrorThrowable)G?(L.syncErrorValue=F,L.syncErrorThrown=!0):(0,O.z)(F),this.unsubscribe();else{if(this.unsubscribe(),G)throw F;(0,O.z)(F)}}}complete(){if(!this.isStopped){const{_parentSubscriber:F}=this;if(this._complete){const L=()=>this._complete.call(this._context);I.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,L),this.unsubscribe()):(this.__tryOrUnsub(L),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(F,L){try{F.call(this._context,L)}catch(G){if(this.unsubscribe(),I.v.useDeprecatedSynchronousErrorHandling)throw G;(0,O.z)(G)}}__tryOrSetError(F,L,G){if(!I.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{L.call(this._context,G)}catch(Q){return I.v.useDeprecatedSynchronousErrorHandling?(F.syncErrorValue=Q,F.syncErrorThrown=!0,!0):((0,O.z)(Q),!0)}return!1}_unsubscribe(){const{_parentSubscriber:F}=this;this._context=null,this._parentSubscriber=null,F.unsubscribe()}}},2654:(z,W,E)=>{"use strict";E.d(W,{w:()=>O});var T=E(6688),g=E(7830),B=E(7043);const I=(()=>{function $(U){return Error.call(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((F,L)=>`${L+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U,this}return $.prototype=Object.create(Error.prototype),$})();class O{constructor(U){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,U&&(this._unsubscribe=U)}unsubscribe(){let U;if(this.closed)return;let{_parentOrParents:F,_unsubscribe:L,_subscriptions:G}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,F instanceof O)F.remove(this);else if(null!==F)for(let Q=0;QU.concat(F instanceof I?F.errors:F),[])}O.EMPTY=(($=new O).closed=!0,$)},2830:(z,W,E)=>{"use strict";E.d(W,{v:()=>g});let T=!1;const g={Promise:void 0,set useDeprecatedSynchronousErrorHandling(B){if(B){const j=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+j.stack)}else T&&console.log("RxJS: Back to a better error behavior. Thank you. <3");T=B},get useDeprecatedSynchronousErrorHandling(){return T}}},1762:(z,W,E)=>{"use strict";E.d(W,{c:()=>I,N:()=>O});var T=E(8929),g=E(2916),B=E(2654),j=E(4327);class I extends g.y{constructor(L,G){super(),this.source=L,this.subjectFactory=G,this._refCount=0,this._isComplete=!1}_subscribe(L){return this.getSubject().subscribe(L)}getSubject(){const L=this._subject;return(!L||L.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let L=this._connection;return L||(this._isComplete=!1,L=this._connection=new B.w,L.add(this.source.subscribe(new Y(this.getSubject(),this))),L.closed&&(this._connection=null,L=B.w.EMPTY)),L}refCount(){return(0,j.x)()(this)}}const O=(()=>{const F=I.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:F._subscribe},_isComplete:{value:F._isComplete,writable:!0},getSubject:{value:F.getSubject},connect:{value:F.connect},refCount:{value:F.refCount}}})();class Y extends T.Yc{constructor(L,G){super(L),this.connectable=G}_error(L){this._unsubscribe(),super._error(L)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const L=this.connectable;if(L){this.connectable=null;const G=L._connection;L._refCount=0,L._subject=null,L._connection=null,G&&G.unsubscribe()}}}},6053:(z,W,E)=>{"use strict";E.d(W,{aj:()=>Y});var T=E(2866),g=E(6688),B=E(826),j=E(9054),I=E(3009);const O={};function Y(...F){let L=null,G=null;return(0,T.K)(F[F.length-1])&&(G=F.pop()),"function"==typeof F[F.length-1]&&(L=F.pop()),1===F.length&&(0,g.k)(F[0])&&(F=F[0]),(0,I.n)(F,G).lift(new $(L))}class ${constructor(L){this.resultSelector=L}call(L,G){return G.subscribe(new U(L,this.resultSelector))}}class U extends B.L{constructor(L,G){super(L),this.resultSelector=G,this.active=0,this.values=[],this.observables=[]}_next(L){this.values.push(O),this.observables.push(L)}_complete(){const L=this.observables,G=L.length;if(0===G)this.destination.complete();else{this.active=G,this.toRespond=G;for(let Q=0;Q{"use strict";E.d(W,{E:()=>g,c:()=>B});var T=E(2916);const g=new T.y(I=>I.complete());function B(I){return I?function j(I){return new T.y(O=>I.schedule(()=>O.complete()))}(I):g}},5254:(z,W,E)=>{"use strict";E.d(W,{D:()=>re});var T=E(2916),g=E(9249),B=E(2654),j=E(3821),Y=E(6454),$=E(5430),L=E(8955),G=E(8515);function re(ne,le){return le?function ie(ne,le){if(null!=ne){if(function F(ne){return ne&&"function"==typeof ne[j.L]}(ne))return function I(ne,le){return new T.y(xe=>{const Ae=new B.w;return Ae.add(le.schedule(()=>{const Be=ne[j.L]();Ae.add(Be.subscribe({next(ft){Ae.add(le.schedule(()=>xe.next(ft)))},error(ft){Ae.add(le.schedule(()=>xe.error(ft)))},complete(){Ae.add(le.schedule(()=>xe.complete()))}}))})),Ae})}(ne,le);if((0,L.t)(ne))return function O(ne,le){return new T.y(xe=>{const Ae=new B.w;return Ae.add(le.schedule(()=>ne.then(Be=>{Ae.add(le.schedule(()=>{xe.next(Be),Ae.add(le.schedule(()=>xe.complete()))}))},Be=>{Ae.add(le.schedule(()=>xe.error(Be)))}))),Ae})}(ne,le);if((0,G.z)(ne))return(0,Y.r)(ne,le);if(function Q(ne){return ne&&"function"==typeof ne[$.hZ]}(ne)||"string"==typeof ne)return function U(ne,le){if(!ne)throw new Error("Iterable cannot be null");return new T.y(xe=>{const Ae=new B.w;let Be;return Ae.add(()=>{Be&&"function"==typeof Be.return&&Be.return()}),Ae.add(le.schedule(()=>{Be=ne[$.hZ](),Ae.add(le.schedule(function(){if(xe.closed)return;let ft,yt;try{const We=Be.next();ft=We.value,yt=We.done}catch(We){return void xe.error(We)}yt?xe.complete():(xe.next(ft),this.schedule())}))})),Ae})}(ne,le)}throw new TypeError((null!==ne&&typeof ne||ne)+" is not observable")}(ne,le):ne instanceof T.y?ne:new T.y((0,g.s)(ne))}},3009:(z,W,E)=>{"use strict";E.d(W,{n:()=>j});var T=E(2916),g=E(3650),B=E(6454);function j(I,O){return O?(0,B.r)(I,O):new T.y((0,g.V)(I))}},6787:(z,W,E)=>{"use strict";E.d(W,{T:()=>I});var T=E(2916),g=E(2866),B=E(9146),j=E(3009);function I(...O){let Y=Number.POSITIVE_INFINITY,$=null,U=O[O.length-1];return(0,g.K)(U)?($=O.pop(),O.length>1&&"number"==typeof O[O.length-1]&&(Y=O.pop())):"number"==typeof U&&(Y=O.pop()),null===$&&1===O.length&&O[0]instanceof T.y?O[0]:(0,B.J)(Y)((0,j.n)(O,$))}},1086:(z,W,E)=>{"use strict";E.d(W,{of:()=>j});var T=E(2866),g=E(3009),B=E(6454);function j(...I){let O=I[I.length-1];return(0,T.K)(O)?(I.pop(),(0,B.r)(I,O)):(0,g.n)(I)}},1946:(z,W,E)=>{"use strict";E.d(W,{S3:()=>I});var T=E(6688),g=E(3009),B=E(826),j=E(9054);function I(...$){if(1===$.length){if(!(0,T.k)($[0]))return $[0];$=$[0]}return(0,g.n)($,void 0).lift(new O)}class O{call(U,F){return F.subscribe(new Y(U))}}class Y extends B.L{constructor(U){super(U),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(U){this.observables.push(U)}_complete(){const U=this.observables,F=U.length;if(0===F)this.destination.complete();else{for(let L=0;L{"use strict";E.d(W,{_:()=>g});var T=E(2916);function g(j,I){return new T.y(I?O=>I.schedule(B,0,{error:j,subscriber:O}):O=>O.error(j))}function B({error:j,subscriber:I}){I.error(j)}},7221:(z,W,E)=>{"use strict";E.d(W,{K:()=>j});var T=E(826),g=E(1869),B=E(9054);function j(Y){return function(U){const F=new I(Y),L=U.lift(F);return F.caught=L}}class I{constructor($){this.selector=$}call($,U){return U.subscribe(new O($,this.selector,this.caught))}}class O extends T.L{constructor($,U,F){super($),this.selector=U,this.caught=F}error($){if(!this.isStopped){let U;try{U=this.selector($,this.caught)}catch(G){return void super.error(G)}this._unsubscribeAndRecycle();const F=new g.d(this,void 0,void 0);this.add(F);const L=(0,B.D)(this,U,void 0,void 0,F);L!==F&&this.add(L)}}}},1406:(z,W,E)=>{"use strict";E.d(W,{b:()=>g});var T=E(1709);function g(B,j){return(0,T.zg)(B,j,1)}},13:(z,W,E)=>{"use strict";E.d(W,{b:()=>B});var T=E(3489),g=E(353);function B(Y,$=g.P){return U=>U.lift(new j(Y,$))}class j{constructor($,U){this.dueTime=$,this.scheduler=U}call($,U){return U.subscribe(new I($,this.dueTime,this.scheduler))}}class I extends T.L{constructor($,U,F){super($),this.dueTime=U,this.scheduler=F,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next($){this.clearDebounce(),this.lastValue=$,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:$}=this;this.lastValue=null,this.hasValue=!1,this.destination.next($)}}clearDebounce(){const $=this.debouncedSubscription;null!==$&&(this.remove($),$.unsubscribe(),this.debouncedSubscription=null)}}function O(Y){Y.debouncedNext()}},7314:(z,W,E)=>{"use strict";E.d(W,{d:()=>g});var T=E(3489);function g(I=null){return O=>O.lift(new B(I))}class B{constructor(O){this.defaultValue=O}call(O,Y){return Y.subscribe(new j(O,this.defaultValue))}}class j extends T.L{constructor(O,Y){super(O),this.defaultValue=Y,this.isEmpty=!0}_next(O){this.isEmpty=!1,this.destination.next(O)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(z,W,E)=>{"use strict";E.d(W,{g:()=>I});var T=E(353),g=E(2697),B=E(3489),j=E(9312);function I(U,F=T.P){const G=(0,g.J)(U)?+U-F.now():Math.abs(U);return Q=>Q.lift(new O(G,F))}class O{constructor(F,L){this.delay=F,this.scheduler=L}call(F,L){return L.subscribe(new Y(F,this.delay,this.scheduler))}}class Y extends B.L{constructor(F,L,G){super(F),this.delay=L,this.scheduler=G,this.queue=[],this.active=!1,this.errored=!1}static dispatch(F){const L=F.source,G=L.queue,Q=F.scheduler,ie=F.destination;for(;G.length>0&&G[0].time-Q.now()<=0;)G.shift().notification.observe(ie);if(G.length>0){const re=Math.max(0,G[0].time-Q.now());this.schedule(F,re)}else this.unsubscribe(),L.active=!1}_schedule(F){this.active=!0,this.destination.add(F.schedule(Y.dispatch,this.delay,{source:this,destination:this.destination,scheduler:F}))}scheduleNotification(F){if(!0===this.errored)return;const L=this.scheduler,G=new $(L.now()+this.delay,F);this.queue.push(G),!1===this.active&&this._schedule(L)}_next(F){this.scheduleNotification(j.P.createNext(F))}_error(F){this.errored=!0,this.queue=[],this.destination.error(F),this.unsubscribe()}_complete(){this.scheduleNotification(j.P.createComplete()),this.unsubscribe()}}class ${constructor(F,L){this.time=F,this.notification=L}}},2198:(z,W,E)=>{"use strict";E.d(W,{h:()=>g});var T=E(3489);function g(I,O){return function($){return $.lift(new B(I,O))}}class B{constructor(O,Y){this.predicate=O,this.thisArg=Y}call(O,Y){return Y.subscribe(new j(O,this.predicate,this.thisArg))}}class j extends T.L{constructor(O,Y,$){super(O),this.predicate=Y,this.thisArg=$,this.count=0}_next(O){let Y;try{Y=this.predicate.call(this.thisArg,O,this.count++)}catch($){return void this.destination.error($)}Y&&this.destination.next(O)}}},7224:(z,W,E)=>{"use strict";E.d(W,{P:()=>Y});var T=E(4450),g=E(2198),B=E(2986),j=E(7314),I=E(4907),O=E(5379);function Y($,U){const F=arguments.length>=2;return L=>L.pipe($?(0,g.h)((G,Q)=>$(G,Q,L)):O.y,(0,B.q)(1),F?(0,j.d)(U):(0,I.T)(()=>new T.K))}},4850:(z,W,E)=>{"use strict";E.d(W,{U:()=>g});var T=E(3489);function g(I,O){return function($){if("function"!=typeof I)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return $.lift(new B(I,O))}}class B{constructor(O,Y){this.project=O,this.thisArg=Y}call(O,Y){return Y.subscribe(new j(O,this.project,this.thisArg))}}class j extends T.L{constructor(O,Y,$){super(O),this.project=Y,this.count=0,this.thisArg=$||this}_next(O){let Y;try{Y=this.project.call(this.thisArg,O,this.count++)}catch($){return void this.destination.error($)}this.destination.next(Y)}}},9146:(z,W,E)=>{"use strict";E.d(W,{J:()=>B});var T=E(1709),g=E(5379);function B(j=Number.POSITIVE_INFINITY){return(0,T.zg)(g.y,j)}},1709:(z,W,E)=>{"use strict";E.d(W,{zg:()=>O});var T=E(9054),g=E(826),B=E(1869),j=E(4850),I=E(5254);function O(U,F,L=Number.POSITIVE_INFINITY){return"function"==typeof F?G=>G.pipe(O((Q,ie)=>(0,I.D)(U(Q,ie)).pipe((0,j.U)((re,ne)=>F(Q,re,ie,ne))),L)):("number"==typeof F&&(L=F),G=>G.lift(new Y(U,L)))}class Y{constructor(F,L=Number.POSITIVE_INFINITY){this.project=F,this.concurrent=L}call(F,L){return L.subscribe(new $(F,this.project,this.concurrent))}}class $ extends g.L{constructor(F,L,G=Number.POSITIVE_INFINITY){super(F),this.project=L,this.concurrent=G,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(F){this.active0?this._next(L.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(z,W,E)=>{"use strict";E.d(W,{x:()=>g});var T=E(3489);function g(){return function(O){return O.lift(new B(O))}}class B{constructor(O){this.connectable=O}call(O,Y){const{connectable:$}=this;$._refCount++;const U=new j(O,$),F=Y.subscribe(U);return U.closed||(U.connection=$.connect()),F}}class j extends T.L{constructor(O,Y){super(O),this.connectable=Y}_unsubscribe(){const{connectable:O}=this;if(!O)return void(this.connection=null);this.connectable=null;const Y=O._refCount;if(Y<=0)return void(this.connection=null);if(O._refCount=Y-1,Y>1)return void(this.connection=null);const{connection:$}=this,U=O._connection;this.connection=null,U&&(!$||U===$)&&U.unsubscribe()}}},2474:(z,W,E)=>{"use strict";E.d(W,{B:()=>Y});var T=E(1762);class B{constructor(U,F){this.subjectFactory=U,this.selector=F}call(U,F){const{selector:L}=this,G=this.subjectFactory(),Q=L(G).subscribe(U);return Q.add(F.subscribe(G)),Q}}var j=E(4327),I=E(8929);function O(){return new I.xQ}function Y(){return $=>(0,j.x)()(function g($,U){return function(L){let G;if(G="function"==typeof $?$:function(){return $},"function"==typeof U)return L.lift(new B(G,U));const Q=Object.create(L,T.N);return Q.source=L,Q.subjectFactory=G,Q}}(O)($))}},7545:(z,W,E)=>{"use strict";E.d(W,{w:()=>O});var T=E(826),g=E(1869),B=E(9054),j=E(4850),I=E(5254);function O(U,F){return"function"==typeof F?L=>L.pipe(O((G,Q)=>(0,I.D)(U(G,Q)).pipe((0,j.U)((ie,re)=>F(G,ie,Q,re))))):L=>L.lift(new Y(U))}class Y{constructor(F){this.project=F}call(F,L){return L.subscribe(new $(F,this.project))}}class $ extends T.L{constructor(F,L){super(F),this.project=L,this.index=0}_next(F){let L;const G=this.index++;try{L=this.project(F,G)}catch(Q){return void this.destination.error(Q)}this._innerSub(L,F,G)}_innerSub(F,L,G){const Q=this.innerSubscription;Q&&Q.unsubscribe();const ie=new g.d(this,L,G),re=this.destination;re.add(ie),this.innerSubscription=(0,B.D)(this,F,void 0,void 0,ie),this.innerSubscription!==ie&&re.add(this.innerSubscription)}_complete(){const{innerSubscription:F}=this;(!F||F.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(F){this.destination.remove(F),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(F,L,G,Q,ie){this.destination.next(L)}}},2986:(z,W,E)=>{"use strict";E.d(W,{q:()=>j});var T=E(3489),g=E(4231),B=E(8896);function j(Y){return $=>0===Y?(0,B.c)():$.lift(new I(Y))}class I{constructor($){if(this.total=$,this.total<0)throw new g.W}call($,U){return U.subscribe(new O($,this.total))}}class O extends T.L{constructor($,U){super($),this.total=U,this.count=0}_next($){const U=this.total,F=++this.count;F<=U&&(this.destination.next($),F===U&&(this.destination.complete(),this.unsubscribe()))}}},2868:(z,W,E)=>{"use strict";E.d(W,{b:()=>j});var T=E(3489);function g(){}var B=E(7043);function j(Y,$,U){return function(L){return L.lift(new I(Y,$,U))}}class I{constructor($,U,F){this.nextOrObserver=$,this.error=U,this.complete=F}call($,U){return U.subscribe(new O($,this.nextOrObserver,this.error,this.complete))}}class O extends T.L{constructor($,U,F,L){super($),this._tapNext=g,this._tapError=g,this._tapComplete=g,this._tapError=F||g,this._tapComplete=L||g,(0,B.m)(U)?(this._context=this,this._tapNext=U):U&&(this._context=U,this._tapNext=U.next||g,this._tapError=U.error||g,this._tapComplete=U.complete||g)}_next($){try{this._tapNext.call(this._context,$)}catch(U){return void this.destination.error(U)}this.destination.next($)}_error($){try{this._tapError.call(this._context,$)}catch(U){return void this.destination.error(U)}this.destination.error($)}_complete(){try{this._tapComplete.call(this._context)}catch($){return void this.destination.error($)}return this.destination.complete()}}},4907:(z,W,E)=>{"use strict";E.d(W,{T:()=>B});var T=E(4450),g=E(3489);function B(Y=O){return $=>$.lift(new j(Y))}class j{constructor($){this.errorFactory=$}call($,U){return U.subscribe(new I($,this.errorFactory))}}class I extends g.L{constructor($,U){super($),this.errorFactory=U,this.hasValue=!1}_next($){this.hasValue=!0,this.destination.next($)}_complete(){if(this.hasValue)return this.destination.complete();{let $;try{$=this.errorFactory()}catch(U){$=U}this.destination.error($)}}}function O(){return new T.K}},6227:(z,W,E)=>{"use strict";E.d(W,{V:()=>L});var T=E(353);const B=(()=>{function G(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return G.prototype=Object.create(Error.prototype),G})();var j=E(2697),I=E(826),O=E(9054);class ${constructor(Q,ie,re,ne){this.waitFor=Q,this.absoluteTimeout=ie,this.withObservable=re,this.scheduler=ne}call(Q,ie){return ie.subscribe(new U(Q,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class U extends I.L{constructor(Q,ie,re,ne,le){super(Q),this.absoluteTimeout=ie,this.waitFor=re,this.withObservable=ne,this.scheduler=le,this.action=null,this.scheduleTimeout()}static dispatchTimeout(Q){const{withObservable:ie}=Q;Q._unsubscribeAndRecycle(),Q.add((0,O.D)(Q,ie))}scheduleTimeout(){const{action:Q}=this;Q?this.action=Q.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(U.dispatchTimeout,this.waitFor,this))}_next(Q){this.absoluteTimeout||this.scheduleTimeout(),super._next(Q)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var F=E(1737);function L(G,Q=T.P){return function Y(G,Q,ie=T.P){return re=>{let ne=(0,j.J)(G),le=ne?+G-ie.now():Math.abs(G);return re.lift(new $(le,ne,Q,ie))}}(G,(0,F._)(new B),Q)}},6454:(z,W,E)=>{"use strict";E.d(W,{r:()=>B});var T=E(2916),g=E(2654);function B(j,I){return new T.y(O=>{const Y=new g.w;let $=0;return Y.add(I.schedule(function(){$!==j.length?(O.next(j[$++]),O.closed||Y.add(this.schedule())):O.complete()})),Y})}},6686:(z,W,E)=>{"use strict";E.d(W,{o:()=>B});var T=E(2654);class g extends T.w{constructor(I,O){super()}schedule(I,O=0){return this}}class B extends g{constructor(I,O){super(I,O),this.scheduler=I,this.work=O,this.pending=!1}schedule(I,O=0){if(this.closed)return this;this.state=I;const Y=this.id,$=this.scheduler;return null!=Y&&(this.id=this.recycleAsyncId($,Y,O)),this.pending=!0,this.delay=O,this.id=this.id||this.requestAsyncId($,this.id,O),this}requestAsyncId(I,O,Y=0){return setInterval(I.flush.bind(I,this),Y)}recycleAsyncId(I,O,Y=0){if(null!==Y&&this.delay===Y&&!1===this.pending)return O;clearInterval(O)}execute(I,O){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Y=this._execute(I,O);if(Y)return Y;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(I,O){let $,Y=!1;try{this.work(I)}catch(U){Y=!0,$=!!U&&U||new Error(U)}if(Y)return this.unsubscribe(),$}_unsubscribe(){const I=this.id,O=this.scheduler,Y=O.actions,$=Y.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==$&&Y.splice($,1),null!=I&&(this.id=this.recycleAsyncId(O,I,null)),this.delay=null}}},2268:(z,W,E)=>{"use strict";E.d(W,{v:()=>g});let T=(()=>{class B{constructor(I,O=B.now){this.SchedulerAction=I,this.now=O}schedule(I,O=0,Y){return new this.SchedulerAction(this,I).schedule(Y,O)}}return B.now=()=>Date.now(),B})();class g extends T{constructor(j,I=T.now){super(j,()=>g.delegate&&g.delegate!==this?g.delegate.now():I()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(j,I=0,O){return g.delegate&&g.delegate!==this?g.delegate.schedule(j,I,O):super.schedule(j,I,O)}flush(j){const{actions:I}=this;if(this.active)return void I.push(j);let O;this.active=!0;do{if(O=j.execute(j.state,j.delay))break}while(j=I.shift());if(this.active=!1,O){for(;j=I.shift();)j.unsubscribe();throw O}}}},353:(z,W,E)=>{"use strict";E.d(W,{P:()=>B});var T=E(6686);const B=new(E(2268).v)(T.o)},5430:(z,W,E)=>{"use strict";E.d(W,{hZ:()=>g});const g=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(z,W,E)=>{"use strict";E.d(W,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(z,W,E)=>{"use strict";E.d(W,{b:()=>T});const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(z,W,E)=>{"use strict";E.d(W,{W:()=>g});const g=(()=>{function B(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return B.prototype=Object.create(Error.prototype),B})()},4450:(z,W,E)=>{"use strict";E.d(W,{K:()=>g});const g=(()=>{function B(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return B.prototype=Object.create(Error.prototype),B})()},5279:(z,W,E)=>{"use strict";E.d(W,{N:()=>g});const g=(()=>{function B(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return B.prototype=Object.create(Error.prototype),B})()},2782:(z,W,E)=>{"use strict";function T(g){setTimeout(()=>{throw g},0)}E.d(W,{z:()=>T})},5379:(z,W,E)=>{"use strict";function T(g){return g}E.d(W,{y:()=>T})},6688:(z,W,E)=>{"use strict";E.d(W,{k:()=>T});const T=Array.isArray||(g=>g&&"number"==typeof g.length)},8515:(z,W,E)=>{"use strict";E.d(W,{z:()=>T});const T=g=>g&&"number"==typeof g.length&&"function"!=typeof g},2697:(z,W,E)=>{"use strict";function T(g){return g instanceof Date&&!isNaN(+g)}E.d(W,{J:()=>T})},7043:(z,W,E)=>{"use strict";function T(g){return"function"==typeof g}E.d(W,{m:()=>T})},7830:(z,W,E)=>{"use strict";function T(g){return null!==g&&"object"==typeof g}E.d(W,{K:()=>T})},8955:(z,W,E)=>{"use strict";function T(g){return!!g&&"function"!=typeof g.subscribe&&"function"==typeof g.then}E.d(W,{t:()=>T})},2866:(z,W,E)=>{"use strict";function T(g){return g&&"function"==typeof g.schedule}E.d(W,{K:()=>T})},9249:(z,W,E)=>{"use strict";E.d(W,{s:()=>L});var T=E(3650),g=E(2782),j=E(5430),O=E(3821),$=E(8515),U=E(8955),F=E(7830);const L=G=>{if(G&&"function"==typeof G[O.L])return(G=>Q=>{const ie=G[O.L]();if("function"!=typeof ie.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ie.subscribe(Q)})(G);if((0,$.z)(G))return(0,T.V)(G);if((0,U.t)(G))return(G=>Q=>(G.then(ie=>{Q.closed||(Q.next(ie),Q.complete())},ie=>Q.error(ie)).then(null,g.z),Q))(G);if(G&&"function"==typeof G[j.hZ])return(G=>Q=>{const ie=G[j.hZ]();for(;;){const re=ie.next();if(re.done){Q.complete();break}if(Q.next(re.value),Q.closed)break}return"function"==typeof ie.return&&Q.add(()=>{ie.return&&ie.return()}),Q})(G);{const ie=`You provided ${(0,F.K)(G)?"an invalid object":`'${G}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ie)}}},3650:(z,W,E)=>{"use strict";E.d(W,{V:()=>T});const T=g=>B=>{for(let j=0,I=g.length;j{"use strict";E.d(W,{D:()=>j});var T=E(1869),g=E(9249),B=E(2916);function j(I,O,Y,$,U=new T.d(I,Y,$)){if(!U.closed)return O instanceof B.y?O.subscribe(U):(0,g.s)(O)(U)}},655:(z,W,E)=>{"use strict";function $(oe,he,pe,ue){return new(pe||(pe=Promise))(function(ce,nt){function Tt(tt){try{ze(ue.next(tt))}catch(yn){nt(yn)}}function Bi(tt){try{ze(ue.throw(tt))}catch(yn){nt(yn)}}function ze(tt){tt.done?ce(tt.value):function we(ce){return ce instanceof pe?ce:new pe(function(nt){nt(ce)})}(tt.value).then(Tt,Bi)}ze((ue=ue.apply(oe,he||[])).next())})}E.d(W,{mG:()=>$})},9808:(z,W,E)=>{"use strict";E.d(W,{mr:()=>Ae,Ov:()=>Bf,ez:()=>Wl,K0:()=>Y,Do:()=>ft,V_:()=>F,Ye:()=>yt,S$:()=>le,mk:()=>Pr,sg:()=>bi,O5:()=>$i,PC:()=>Yd,RF:()=>Li,n9:()=>Qi,b0:()=>Be,lw:()=>$,EM:()=>es,JF:()=>jt,NF:()=>yi,w_:()=>O,bD:()=>ro,q:()=>B,Mx:()=>eo,HT:()=>I});var T=E(5e3);let g=null;function B(){return g}function I(H){g||(g=H)}class O{}const Y=new T.OlP("DocumentToken");let $=(()=>{class H{historyGo(M){throw new Error("Not implemented")}}return H.\u0275fac=function(M){return new(M||H)},H.\u0275prov=T.Yz7({token:H,factory:function(){return function U(){return(0,T.LFG)(L)}()},providedIn:"platform"}),H})();const F=new T.OlP("Location Initialized");let L=(()=>{class H extends ${constructor(M){super(),this._doc=M,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return B().getBaseHref(this._doc)}onPopState(M){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",M,!1),()=>V.removeEventListener("popstate",M)}onHashChange(M){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",M,!1),()=>V.removeEventListener("hashchange",M)}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(M){this.location.pathname=M}pushState(M,V,X){G()?this._history.pushState(M,V,X):this.location.hash=X}replaceState(M,V,X){G()?this._history.replaceState(M,V,X):this.location.hash=X}forward(){this._history.forward()}back(){this._history.back()}historyGo(M=0){this._history.go(M)}getState(){return this._history.state}}return H.\u0275fac=function(M){return new(M||H)(T.LFG(Y))},H.\u0275prov=T.Yz7({token:H,factory:function(){return function Q(){return new L((0,T.LFG)(Y))}()},providedIn:"platform"}),H})();function G(){return!!window.history.pushState}function ie(H,k){if(0==H.length)return k;if(0==k.length)return H;let M=0;return H.endsWith("/")&&M++,k.startsWith("/")&&M++,2==M?H+k.substring(1):1==M?H+k:H+"/"+k}function re(H){const k=H.match(/#|\?|$/),M=k&&k.index||H.length;return H.slice(0,M-("/"===H[M-1]?1:0))+H.slice(M)}function ne(H){return H&&"?"!==H[0]?"?"+H:H}let le=(()=>{class H{historyGo(M){throw new Error("Not implemented")}}return H.\u0275fac=function(M){return new(M||H)},H.\u0275prov=T.Yz7({token:H,factory:function(){return function xe(H){const k=(0,T.LFG)(Y).location;return new Be((0,T.LFG)($),k&&k.origin||"")}()},providedIn:"root"}),H})();const Ae=new T.OlP("appBaseHref");let Be=(()=>{class H extends le{constructor(M,V){if(super(),this._platformLocation=M,this._removeListenerFns=[],null==V&&(V=this._platformLocation.getBaseHrefFromDOM()),null==V)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=V}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}prepareExternalUrl(M){return ie(this._baseHref,M)}path(M=!1){const V=this._platformLocation.pathname+ne(this._platformLocation.search),X=this._platformLocation.hash;return X&&M?`${V}${X}`:V}pushState(M,V,X,de){const me=this.prepareExternalUrl(X+ne(de));this._platformLocation.pushState(M,V,me)}replaceState(M,V,X,de){const me=this.prepareExternalUrl(X+ne(de));this._platformLocation.replaceState(M,V,me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformLocation).historyGo)||void 0===X||X.call(V,M)}}return H.\u0275fac=function(M){return new(M||H)(T.LFG($),T.LFG(Ae,8))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})(),ft=(()=>{class H extends le{constructor(M,V){super(),this._platformLocation=M,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}path(M=!1){let V=this._platformLocation.hash;return null==V&&(V="#"),V.length>0?V.substring(1):V}prepareExternalUrl(M){const V=ie(this._baseHref,M);return V.length>0?"#"+V:V}pushState(M,V,X,de){let me=this.prepareExternalUrl(X+ne(de));0==me.length&&(me=this._platformLocation.pathname),this._platformLocation.pushState(M,V,me)}replaceState(M,V,X,de){let me=this.prepareExternalUrl(X+ne(de));0==me.length&&(me=this._platformLocation.pathname),this._platformLocation.replaceState(M,V,me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformLocation).historyGo)||void 0===X||X.call(V,M)}}return H.\u0275fac=function(M){return new(M||H)(T.LFG($),T.LFG(Ae,8))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})(),yt=(()=>{class H{constructor(M,V){this._subject=new T.vpe,this._urlChangeListeners=[],this._platformStrategy=M;const X=this._platformStrategy.getBaseHref();this._platformLocation=V,this._baseHref=re(St(X)),this._platformStrategy.onPopState(de=>{this._subject.emit({url:this.path(!0),pop:!0,state:de.state,type:de.type})})}path(M=!1){return this.normalize(this._platformStrategy.path(M))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(M,V=""){return this.path()==this.normalize(M+ne(V))}normalize(M){return H.stripTrailingSlash(function gi(H,k){return H&&k.startsWith(H)?k.substring(H.length):k}(this._baseHref,St(M)))}prepareExternalUrl(M){return M&&"/"!==M[0]&&(M="/"+M),this._platformStrategy.prepareExternalUrl(M)}go(M,V="",X=null){this._platformStrategy.pushState(X,"",M,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+ne(V)),X)}replaceState(M,V="",X=null){this._platformStrategy.replaceState(X,"",M,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+ne(V)),X)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformStrategy).historyGo)||void 0===X||X.call(V,M)}onUrlChange(M){this._urlChangeListeners.push(M),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}))}_notifyUrlChangeListeners(M="",V){this._urlChangeListeners.forEach(X=>X(M,V))}subscribe(M,V,X){return this._subject.subscribe({next:M,error:V,complete:X})}}return H.normalizeQueryParams=ne,H.joinWithSlash=ie,H.stripTrailingSlash=re,H.\u0275fac=function(M){return new(M||H)(T.LFG(le),T.LFG($))},H.\u0275prov=T.Yz7({token:H,factory:function(){return function We(){return new yt((0,T.LFG)(le),(0,T.LFG)($))}()},providedIn:"root"}),H})();function St(H){return H.replace(/\/index.html$/,"")}var he=(()=>((he=he||{})[he.Zero=0]="Zero",he[he.One=1]="One",he[he.Two=2]="Two",he[he.Few=3]="Few",he[he.Many=4]="Many",he[he.Other=5]="Other",he))();const cr=T.kL8;class Bt{}let Sn=(()=>{class H extends Bt{constructor(M){super(),this.locale=M}getPluralCategory(M,V){switch(cr(V||this.locale)(M)){case he.Zero:return"zero";case he.One:return"one";case he.Two:return"two";case he.Few:return"few";case he.Many:return"many";default:return"other"}}}return H.\u0275fac=function(M){return new(M||H)(T.LFG(T.soG))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})();function eo(H,k){k=encodeURIComponent(k);for(const M of H.split(";")){const V=M.indexOf("="),[X,de]=-1==V?[M,""]:[M.slice(0,V),M.slice(V+1)];if(X.trim()===k)return decodeURIComponent(de)}return null}let Pr=(()=>{class H{constructor(M,V,X,de){this._iterableDiffers=M,this._keyValueDiffers=V,this._ngEl=X,this._renderer=de,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(M){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof M?M.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(M){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof M?M.split(/\s+/):M,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 M=this._iterableDiffer.diff(this._rawClass);M&&this._applyIterableChanges(M)}else if(this._keyValueDiffer){const M=this._keyValueDiffer.diff(this._rawClass);M&&this._applyKeyValueChanges(M)}}_applyKeyValueChanges(M){M.forEachAddedItem(V=>this._toggleClass(V.key,V.currentValue)),M.forEachChangedItem(V=>this._toggleClass(V.key,V.currentValue)),M.forEachRemovedItem(V=>{V.previousValue&&this._toggleClass(V.key,!1)})}_applyIterableChanges(M){M.forEachAddedItem(V=>{if("string"!=typeof V.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(V.item)}`);this._toggleClass(V.item,!0)}),M.forEachRemovedItem(V=>this._toggleClass(V.item,!1))}_applyClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(V=>this._toggleClass(V,!0)):Object.keys(M).forEach(V=>this._toggleClass(V,!!M[V])))}_removeClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(V=>this._toggleClass(V,!1)):Object.keys(M).forEach(V=>this._toggleClass(V,!1)))}_toggleClass(M,V){(M=M.trim())&&M.split(/\s+/g).forEach(X=>{V?this._renderer.addClass(this._ngEl.nativeElement,X):this._renderer.removeClass(this._ngEl.nativeElement,X)})}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),H})();class ra{constructor(k,M,V,X){this.$implicit=k,this.ngForOf=M,this.index=V,this.count=X}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 bi=(()=>{class H{constructor(M,V,X){this._viewContainer=M,this._template=V,this._differs=X,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(M){this._ngForOf=M,this._ngForOfDirty=!0}set ngForTrackBy(M){this._trackByFn=M}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(M){M&&(this._template=M)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const M=this._ngForOf;!this._differ&&M&&(this._differ=this._differs.find(M).create(this.ngForTrackBy))}if(this._differ){const M=this._differ.diff(this._ngForOf);M&&this._applyChanges(M)}}_applyChanges(M){const V=this._viewContainer;M.forEachOperation((X,de,me)=>{if(null==X.previousIndex)V.createEmbeddedView(this._template,new ra(X.item,this._ngForOf,-1,-1),null===me?void 0:me);else if(null==me)V.remove(null===de?void 0:de);else if(null!==de){const Oe=V.get(de);V.move(Oe,me),aa(Oe,X)}});for(let X=0,de=V.length;X{aa(V.get(X.currentIndex),X)})}static ngTemplateContextGuard(M,V){return!0}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),H})();function aa(H,k){H.context.$implicit=k.item}let $i=(()=>{class H{constructor(M,V){this._viewContainer=M,this._context=new Rt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(M){this._context.$implicit=this._context.ngIf=M,this._updateView()}set ngIfThen(M){Qd("ngIfThen",M),this._thenTemplateRef=M,this._thenViewRef=null,this._updateView()}set ngIfElse(M){Qd("ngIfElse",M),this._elseTemplateRef=M,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(M,V){return!0}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),H})();class Rt{constructor(){this.$implicit=null,this.ngIf=null}}function Qd(H,k){if(k&&!k.createEmbeddedView)throw new Error(`${H} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class zl{constructor(k,M){this._viewContainerRef=k,this._templateRef=M,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Li=(()=>{class H{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(M){this._ngSwitch=M,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(M){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(M)}_matchCase(M){const V=M==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(M){if(this._defaultViews&&M!==this._defaultUsed){this._defaultUsed=M;for(let V=0;V{class H{constructor(M,V,X){this.ngSwitch=X,X._addCase(),this._view=new zl(M,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Li,9))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),H})(),Yd=(()=>{class H{constructor(M,V,X){this._ngEl=M,this._differs=V,this._renderer=X,this._ngStyle=null,this._differ=null}set ngStyle(M){this._ngStyle=M,!this._differ&&M&&(this._differ=this._differs.find(M).create())}ngDoCheck(){if(this._differ){const M=this._differ.diff(this._ngStyle);M&&this._applyChanges(M)}}_setStyle(M,V){const[X,de]=M.split(".");null!=(V=null!=V&&de?`${V}${de}`:V)?this._renderer.setStyle(this._ngEl.nativeElement,X,V):this._renderer.removeStyle(this._ngEl.nativeElement,X)}_applyChanges(M){M.forEachRemovedItem(V=>this._setStyle(V.key,null)),M.forEachAddedItem(V=>this._setStyle(V.key,V.currentValue)),M.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),H})();class Jb{createSubscription(k,M){return k.subscribe({next:M,error:V=>{throw V}})}dispose(k){k.unsubscribe()}onDestroy(k){k.unsubscribe()}}class Kb{createSubscription(k,M){return k.then(M,V=>{throw V})}dispose(k){}onDestroy(k){}}const Zb=new Kb,Xb=new Jb;let Bf=(()=>{class H{constructor(M){this._ref=M,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(M){return this._obj?M!==this._obj?(this._dispose(),this.transform(M)):this._latestValue:(M&&this._subscribe(M),this._latestValue)}_subscribe(M){this._obj=M,this._strategy=this._selectStrategy(M),this._subscription=this._strategy.createSubscription(M,V=>this._updateLatestValue(M,V))}_selectStrategy(M){if((0,T.QGY)(M))return Zb;if((0,T.F4k)(M))return Xb;throw function on(H,k){return new T.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(M,V){M===this._obj&&(this._latestValue=V,this._ref.markForCheck())}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.sBO,16))},H.\u0275pipe=T.Yjl({name:"async",type:H,pure:!1}),H})(),Wl=(()=>{class H{}return H.\u0275fac=function(M){return new(M||H)},H.\u0275mod=T.oAB({type:H}),H.\u0275inj=T.cJS({providers:[{provide:Bt,useClass:Sn}]}),H})();const ro="browser";function yi(H){return H===ro}let es=(()=>{class H{}return H.\u0275prov=(0,T.Yz7)({token:H,providedIn:"root",factory:()=>new ts((0,T.LFG)(Y),window)}),H})();class ts{constructor(k,M){this.document=k,this.window=M,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const M=function Yl(H,k){const M=H.getElementById(k)||H.getElementsByName(k)[0];if(M)return M;if("function"==typeof H.createTreeWalker&&H.body&&(H.body.createShadowRoot||H.body.attachShadow)){const V=H.createTreeWalker(H.body,NodeFilter.SHOW_ELEMENT);let X=V.currentNode;for(;X;){const de=X.shadowRoot;if(de){const me=de.getElementById(k)||de.querySelector(`[name="${k}"]`);if(me)return me}X=V.nextNode()}}return null}(this.document,k);M&&(this.scrollToElement(M),M.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const M=this.window.history;M&&M.scrollRestoration&&(M.scrollRestoration=k)}}scrollToElement(k){const M=k.getBoundingClientRect(),V=M.left+this.window.pageXOffset,X=M.top+this.window.pageYOffset,de=this.offset();this.window.scrollTo(V-de[0],X-de[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=ao(this.window.history)||ao(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch(k){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(k){return!1}}}function ao(H){return Object.getOwnPropertyDescriptor(H,"scrollRestoration")}class jt{}},520:(z,W,E)=>{"use strict";E.d(W,{TP:()=>Tt,eN:()=>ce,JF:()=>mi,qT:()=>Ae,WM:()=>F,LE:()=>le,Zn:()=>pe});var T=E(9808),g=E(5e3),B=E(1086),j=E(2916),I=E(1406),O=E(2198),Y=E(4850);class ${}class U{}class F{constructor(ee){this.normalizedNames=new Map,this.lazyUpdate=null,ee?this.lazyInit="string"==typeof ee?()=>{this.headers=new Map,ee.split("\n").forEach(te=>{const ye=te.indexOf(":");if(ye>0){const Ce=te.slice(0,ye),Me=Ce.toLowerCase(),Ee=te.slice(ye+1).trim();this.maybeSetNormalizedName(Ce,Me),this.headers.has(Me)?this.headers.get(Me).push(Ee):this.headers.set(Me,[Ee])}})}:()=>{this.headers=new Map,Object.keys(ee).forEach(te=>{let ye=ee[te];const Ce=te.toLowerCase();"string"==typeof ye&&(ye=[ye]),ye.length>0&&(this.headers.set(Ce,ye),this.maybeSetNormalizedName(te,Ce))})}:this.headers=new Map}has(ee){return this.init(),this.headers.has(ee.toLowerCase())}get(ee){this.init();const te=this.headers.get(ee.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ee){return this.init(),this.headers.get(ee.toLowerCase())||null}append(ee,te){return this.clone({name:ee,value:te,op:"a"})}set(ee,te){return this.clone({name:ee,value:te,op:"s"})}delete(ee,te){return this.clone({name:ee,value:te,op:"d"})}maybeSetNormalizedName(ee,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,ee)}init(){this.lazyInit&&(this.lazyInit instanceof F?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ee=>this.applyUpdate(ee)),this.lazyUpdate=null))}copyFrom(ee){ee.init(),Array.from(ee.headers.keys()).forEach(te=>{this.headers.set(te,ee.headers.get(te)),this.normalizedNames.set(te,ee.normalizedNames.get(te))})}clone(ee){const te=new F;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof F?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([ee]),te}applyUpdate(ee){const te=ee.name.toLowerCase();switch(ee.op){case"a":case"s":let ye=ee.value;if("string"==typeof ye&&(ye=[ye]),0===ye.length)return;this.maybeSetNormalizedName(ee.name,te);const Ce=("a"===ee.op?this.headers.get(te):void 0)||[];Ce.push(...ye),this.headers.set(te,Ce);break;case"d":const Me=ee.value;if(Me){let Ee=this.headers.get(te);if(!Ee)return;Ee=Ee.filter(Ie=>-1===Me.indexOf(Ie)),0===Ee.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Ee)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(ee){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>ee(this.normalizedNames.get(te),this.headers.get(te)))}}class L{encodeKey(ee){return re(ee)}encodeValue(ee){return re(ee)}decodeKey(ee){return decodeURIComponent(ee)}decodeValue(ee){return decodeURIComponent(ee)}}const Q=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function re(_e){return encodeURIComponent(_e).replace(Q,(ee,te)=>{var ye;return null!==(ye=ie[te])&&void 0!==ye?ye:ee})}function ne(_e){return`${_e}`}class le{constructor(ee={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ee.encoder||new L,ee.fromString){if(ee.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function G(_e,ee){const te=new Map;return _e.length>0&&_e.replace(/^\?/,"").split("&").forEach(Ce=>{const Me=Ce.indexOf("="),[Ee,Ie]=-1==Me?[ee.decodeKey(Ce),""]:[ee.decodeKey(Ce.slice(0,Me)),ee.decodeValue(Ce.slice(Me+1))],pt=te.get(Ee)||[];pt.push(Ie),te.set(Ee,pt)}),te}(ee.fromString,this.encoder)}else ee.fromObject?(this.map=new Map,Object.keys(ee.fromObject).forEach(te=>{const ye=ee.fromObject[te];this.map.set(te,Array.isArray(ye)?ye:[ye])})):this.map=null}has(ee){return this.init(),this.map.has(ee)}get(ee){this.init();const te=this.map.get(ee);return te?te[0]:null}getAll(ee){return this.init(),this.map.get(ee)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ee,te){return this.clone({param:ee,value:te,op:"a"})}appendAll(ee){const te=[];return Object.keys(ee).forEach(ye=>{const Ce=ee[ye];Array.isArray(Ce)?Ce.forEach(Me=>{te.push({param:ye,value:Me,op:"a"})}):te.push({param:ye,value:Ce,op:"a"})}),this.clone(te)}set(ee,te){return this.clone({param:ee,value:te,op:"s"})}delete(ee,te){return this.clone({param:ee,value:te,op:"d"})}toString(){return this.init(),this.keys().map(ee=>{const te=this.encoder.encodeKey(ee);return this.map.get(ee).map(ye=>te+"="+this.encoder.encodeValue(ye)).join("&")}).filter(ee=>""!==ee).join("&")}clone(ee){const te=new le({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(ee),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ee=>this.map.set(ee,this.cloneFrom.map.get(ee))),this.updates.forEach(ee=>{switch(ee.op){case"a":case"s":const te=("a"===ee.op?this.map.get(ee.param):void 0)||[];te.push(ne(ee.value)),this.map.set(ee.param,te);break;case"d":if(void 0===ee.value){this.map.delete(ee.param);break}{let ye=this.map.get(ee.param)||[];const Ce=ye.indexOf(ne(ee.value));-1!==Ce&&ye.splice(Ce,1),ye.length>0?this.map.set(ee.param,ye):this.map.delete(ee.param)}}}),this.cloneFrom=this.updates=null)}}class Ae{constructor(){this.map=new Map}set(ee,te){return this.map.set(ee,te),this}get(ee){return this.map.has(ee)||this.map.set(ee,ee.defaultValue()),this.map.get(ee)}delete(ee){return this.map.delete(ee),this}has(ee){return this.map.has(ee)}keys(){return this.map.keys()}}function ft(_e){return"undefined"!=typeof ArrayBuffer&&_e instanceof ArrayBuffer}function yt(_e){return"undefined"!=typeof Blob&&_e instanceof Blob}function We(_e){return"undefined"!=typeof FormData&&_e instanceof FormData}class St{constructor(ee,te,ye,Ce){let Me;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ee.toUpperCase(),function Be(_e){switch(_e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ce?(this.body=void 0!==ye?ye:null,Me=Ce):Me=ye,Me&&(this.reportProgress=!!Me.reportProgress,this.withCredentials=!!Me.withCredentials,Me.responseType&&(this.responseType=Me.responseType),Me.headers&&(this.headers=Me.headers),Me.context&&(this.context=Me.context),Me.params&&(this.params=Me.params)),this.headers||(this.headers=new F),this.context||(this.context=new Ae),this.params){const Ee=this.params.toString();if(0===Ee.length)this.urlWithParams=te;else{const Ie=te.indexOf("?");this.urlWithParams=te+(-1===Ie?"?":IeXt.set(ct,ee.setHeaders[ct]),Zt)),ee.setParams&&(lt=Object.keys(ee.setParams).reduce((Xt,ct)=>Xt.set(ct,ee.setParams[ct]),lt)),new St(ye,Ce,Ee,{params:lt,headers:Zt,context:zn,reportProgress:pt,responseType:Me,withCredentials:Ie})}}var Ze=(()=>((Ze=Ze||{})[Ze.Sent=0]="Sent",Ze[Ze.UploadProgress=1]="UploadProgress",Ze[Ze.ResponseHeader=2]="ResponseHeader",Ze[Ze.DownloadProgress=3]="DownloadProgress",Ze[Ze.Response=4]="Response",Ze[Ze.User=5]="User",Ze))();class oe{constructor(ee,te=200,ye="OK"){this.headers=ee.headers||new F,this.status=void 0!==ee.status?ee.status:te,this.statusText=ee.statusText||ye,this.url=ee.url||null,this.ok=this.status>=200&&this.status<300}}class he extends oe{constructor(ee={}){super(ee),this.type=Ze.ResponseHeader}clone(ee={}){return new he({headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class pe extends oe{constructor(ee={}){super(ee),this.type=Ze.Response,this.body=void 0!==ee.body?ee.body:null}clone(ee={}){return new pe({body:void 0!==ee.body?ee.body:this.body,headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class ue extends oe{constructor(ee){super(ee,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ee.url||"(unknown url)"}`:`Http failure response for ${ee.url||"(unknown url)"}: ${ee.status} ${ee.statusText}`,this.error=ee.error||null}}function we(_e,ee){return{body:ee,headers:_e.headers,context:_e.context,observe:_e.observe,params:_e.params,reportProgress:_e.reportProgress,responseType:_e.responseType,withCredentials:_e.withCredentials}}let ce=(()=>{class _e{constructor(te){this.handler=te}request(te,ye,Ce={}){let Me;if(te instanceof St)Me=te;else{let pt,Zt;pt=Ce.headers instanceof F?Ce.headers:new F(Ce.headers),Ce.params&&(Zt=Ce.params instanceof le?Ce.params:new le({fromObject:Ce.params})),Me=new St(te,ye,void 0!==Ce.body?Ce.body:null,{headers:pt,context:Ce.context,params:Zt,reportProgress:Ce.reportProgress,responseType:Ce.responseType||"json",withCredentials:Ce.withCredentials})}const Ee=(0,B.of)(Me).pipe((0,I.b)(pt=>this.handler.handle(pt)));if(te instanceof St||"events"===Ce.observe)return Ee;const Ie=Ee.pipe((0,O.h)(pt=>pt instanceof pe));switch(Ce.observe||"body"){case"body":switch(Me.responseType){case"arraybuffer":return Ie.pipe((0,Y.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return pt.body}));case"blob":return Ie.pipe((0,Y.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof Blob))throw new Error("Response is not a Blob.");return pt.body}));case"text":return Ie.pipe((0,Y.U)(pt=>{if(null!==pt.body&&"string"!=typeof pt.body)throw new Error("Response is not a string.");return pt.body}));default:return Ie.pipe((0,Y.U)(pt=>pt.body))}case"response":return Ie;default:throw new Error(`Unreachable: unhandled observe type ${Ce.observe}}`)}}delete(te,ye={}){return this.request("DELETE",te,ye)}get(te,ye={}){return this.request("GET",te,ye)}head(te,ye={}){return this.request("HEAD",te,ye)}jsonp(te,ye){return this.request("JSONP",te,{params:(new le).append(ye,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ye={}){return this.request("OPTIONS",te,ye)}patch(te,ye,Ce={}){return this.request("PATCH",te,we(Ce,ye))}post(te,ye,Ce={}){return this.request("POST",te,we(Ce,ye))}put(te,ye,Ce={}){return this.request("PUT",te,we(Ce,ye))}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG($))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})();class nt{constructor(ee,te){this.next=ee,this.interceptor=te}handle(ee){return this.interceptor.intercept(ee,this.next)}}const Tt=new g.OlP("HTTP_INTERCEPTORS");let Bi=(()=>{class _e{intercept(te,ye){return ye.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const wn=/^\)\]\}',?\n/;let lr=(()=>{class _e{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j.y(ye=>{const Ce=this.xhrFactory.build();if(Ce.open(te.method,te.urlWithParams),te.withCredentials&&(Ce.withCredentials=!0),te.headers.forEach((ct,Pe)=>Ce.setRequestHeader(ct,Pe.join(","))),te.headers.has("Accept")||Ce.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const ct=te.detectContentTypeHeader();null!==ct&&Ce.setRequestHeader("Content-Type",ct)}if(te.responseType){const ct=te.responseType.toLowerCase();Ce.responseType="json"!==ct?ct:"text"}const Me=te.serializeBody();let Ee=null;const Ie=()=>{if(null!==Ee)return Ee;const ct=Ce.statusText||"OK",Pe=new F(Ce.getAllResponseHeaders()),rn=function si(_e){return"responseURL"in _e&&_e.responseURL?_e.responseURL:/^X-Request-URL:/m.test(_e.getAllResponseHeaders())?_e.getResponseHeader("X-Request-URL"):null}(Ce)||te.url;return Ee=new he({headers:Pe,status:Ce.status,statusText:ct,url:rn}),Ee},pt=()=>{let{headers:ct,status:Pe,statusText:rn,url:At}=Ie(),ri=null;204!==Pe&&(ri=void 0===Ce.response?Ce.responseText:Ce.response),0===Pe&&(Pe=ri?200:0);let vn=Pe>=200&&Pe<300;if("json"===te.responseType&&"string"==typeof ri){const an=ri;ri=ri.replace(wn,"");try{ri=""!==ri?JSON.parse(ri):null}catch(An){ri=an,vn&&(vn=!1,ri={error:An,text:ri})}}vn?(ye.next(new pe({body:ri,headers:ct,status:Pe,statusText:rn,url:At||void 0})),ye.complete()):ye.error(new ue({error:ri,headers:ct,status:Pe,statusText:rn,url:At||void 0}))},Zt=ct=>{const{url:Pe}=Ie(),rn=new ue({error:ct,status:Ce.status||0,statusText:Ce.statusText||"Unknown Error",url:Pe||void 0});ye.error(rn)};let lt=!1;const zn=ct=>{lt||(ye.next(Ie()),lt=!0);let Pe={type:Ze.DownloadProgress,loaded:ct.loaded};ct.lengthComputable&&(Pe.total=ct.total),"text"===te.responseType&&!!Ce.responseText&&(Pe.partialText=Ce.responseText),ye.next(Pe)},Xt=ct=>{let Pe={type:Ze.UploadProgress,loaded:ct.loaded};ct.lengthComputable&&(Pe.total=ct.total),ye.next(Pe)};return Ce.addEventListener("load",pt),Ce.addEventListener("error",Zt),Ce.addEventListener("timeout",Zt),Ce.addEventListener("abort",Zt),te.reportProgress&&(Ce.addEventListener("progress",zn),null!==Me&&Ce.upload&&Ce.upload.addEventListener("progress",Xt)),Ce.send(Me),ye.next({type:Ze.Sent}),()=>{Ce.removeEventListener("error",Zt),Ce.removeEventListener("abort",Zt),Ce.removeEventListener("load",pt),Ce.removeEventListener("timeout",Zt),te.reportProgress&&(Ce.removeEventListener("progress",zn),null!==Me&&Ce.upload&&Ce.upload.removeEventListener("progress",Xt)),Ce.readyState!==Ce.DONE&&Ce.abort()}})}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(T.JF))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const Qa=new g.OlP("XSRF_COOKIE_NAME"),Ya=new g.OlP("XSRF_HEADER_NAME");class Ja{}let Sr=(()=>{class _e{constructor(te,ye,Ce){this.doc=te,this.platform=ye,this.cookieName=Ce,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(T.K0),g.LFG(g.Lbi),g.LFG(Qa))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),cr=(()=>{class _e{constructor(te,ye){this.tokenService=te,this.headerName=ye}intercept(te,ye){const Ce=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||Ce.startsWith("http://")||Ce.startsWith("https://"))return ye.handle(te);const Me=this.tokenService.getToken();return null!==Me&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,Me)})),ye.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(Ja),g.LFG(Ya))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Mr=(()=>{class _e{constructor(te,ye){this.backend=te,this.injector=ye,this.chain=null}handle(te){if(null===this.chain){const ye=this.injector.get(Tt,[]);this.chain=ye.reduceRight((Ce,Me)=>new nt(Ce,Me),this.backend)}return this.chain.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(U),g.LFG(g.zs3))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Ys=(()=>{class _e{static disable(){return{ngModule:_e,providers:[{provide:cr,useClass:Bi}]}}static withOptions(te={}){return{ngModule:_e,providers:[te.cookieName?{provide:Qa,useValue:te.cookieName}:[],te.headerName?{provide:Ya,useValue:te.headerName}:[]]}}}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=g.oAB({type:_e}),_e.\u0275inj=g.cJS({providers:[cr,{provide:Tt,useExisting:cr,multi:!0},{provide:Ja,useClass:Sr},{provide:Qa,useValue:"XSRF-TOKEN"},{provide:Ya,useValue:"X-XSRF-TOKEN"}]}),_e})(),mi=(()=>{class _e{}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=g.oAB({type:_e}),_e.\u0275inj=g.cJS({providers:[ce,{provide:$,useClass:Mr},lr,{provide:U,useExisting:lr}],imports:[[Ys.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),_e})()},5e3:(z,W,E)=>{"use strict";E.d(W,{deG:()=>_C,tb:()=>Z_,AFp:()=>Op,ip1:()=>Dd,CZH:()=>La,hGG:()=>hf,z2F:()=>Sl,sBO:()=>_A,Sil:()=>jp,_Vd:()=>cl,EJc:()=>tb,SBq:()=>qi,qLn:()=>gc,vpe:()=>rr,tBr:()=>cc,XFs:()=>Ye,OlP:()=>qt,zs3:()=>kn,ZZ4:()=>Hl,aQg:()=>Pl,soG:()=>Pd,YKP:()=>w_,h0i:()=>Va,PXZ:()=>lA,R0b:()=>en,FiY:()=>rs,Lbi:()=>Lp,g9A:()=>K_,n_E:()=>Cd,Qsj:()=>sE,FYo:()=>fp,JOm:()=>fr,q3G:()=>Gt,tp0:()=>xo,Rgc:()=>pl,dDg:()=>Gp,GfV:()=>b_,s_b:()=>gl,ifc:()=>Me,eFA:()=>Yp,G48:()=>gA,Gpc:()=>L,f3M:()=>Ux,_c5:()=>_b,VLi:()=>_E,c2e:()=>eb,zSh:()=>vh,wAp:()=>Ne,vHH:()=>re,EiD:()=>Du,mCW:()=>Mo,qzn:()=>So,JVY:()=>o0,pB0:()=>u0,eBb:()=>c0,L6k:()=>l0,LAX:()=>d0,cg1:()=>td,kL8:()=>tp,yhl:()=>IC,dqk:()=>lt,sIi:()=>Zo,CqO:()=>hw,QGY:()=>jh,F4k:()=>Dm,RDi:()=>ao,AaK:()=>$,z3N:()=>Or,qOj:()=>Hh,TTD:()=>et,_Bn:()=>g_,xp6:()=>jo,uIk:()=>Oc,ekj:()=>qm,Suo:()=>I_,Xpm:()=>Ks,lG2:()=>Ot,Yz7:()=>Vt,cJS:()=>wn,oAB:()=>ia,Yjl:()=>Ft,Y36:()=>Wc,_UZ:()=>Em,GkF:()=>dw,BQk:()=>Hm,ynx:()=>Cr,qZA:()=>Lh,TgZ:()=>Qc,EpF:()=>uw,n5z:()=>ns,Ikx:()=>Xh,LFG:()=>ui,$8M:()=>tc,$Z:()=>Oh,NdJ:()=>Pm,CRH:()=>V_,kcU:()=>Gf,O4$:()=>co,oxw:()=>gw,ALo:()=>x_,lcZ:()=>vp,xi3:()=>T_,Dn7:()=>dl,Hsn:()=>Nh,F$t:()=>mw,Q6J:()=>Fh,s9C:()=>Im,VKq:()=>v_,iGM:()=>R_,MAs:()=>Wy,CHM:()=>Nf,oJD:()=>gg,LSH:()=>Ho,Udp:()=>Uh,WFA:()=>Rm,d8E:()=>ep,YNc:()=>Nc,_uU:()=>Vw,Oqu:()=>Ym,hij:()=>$h,AsE:()=>Rs,Gf:()=>k_});var T=E(8929),g=E(2654),B=E(2916),j=E(6787),I=E(2474);function O(h){for(let p in h)if(h[p]===O)return p;throw Error("Could not find renamed property on target object.")}function Y(h,p){for(const m in p)p.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=p[m])}function $(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map($).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const p=h.toString();if(null==p)return""+p;const m=p.indexOf("\n");return-1===m?p:p.substring(0,m)}function U(h,p){return null==h||""===h?null===p?"":p:null==p||""===p?h:h+" "+p}const F=O({__forward_ref__:O});function L(h){return h.__forward_ref__=L,h.toString=function(){return $(this())},h}function G(h){return Q(h)?h():h}function Q(h){return"function"==typeof h&&h.hasOwnProperty(F)&&h.__forward_ref__===L}class re extends Error{constructor(p,m){super(function ne(h,p){return`NG0${Math.abs(h)}${p?": "+p:""}`}(p,m)),this.code=p}}function le(h){return"string"==typeof h?h:null==h?"":String(h)}function xe(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():le(h)}function yt(h,p){const m=p?` in ${p}`:"";throw new re(-201,`No provider for ${xe(h)} found${m}`)}function ze(h,p){null==h&&function tt(h,p,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${p} <=Actual]`))}(p,h,null,"!=")}function Vt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function wn(h){return{providers:h.providers||[],imports:h.imports||[]}}function si(h){return lr(h,Sr)||lr(h,Mr)}function lr(h,p){return h.hasOwnProperty(p)?h[p]:null}function Ja(h){return h&&(h.hasOwnProperty(cr)||h.hasOwnProperty($d))?h[cr]:null}const Sr=O({\u0275prov:O}),cr=O({\u0275inj:O}),Mr=O({ngInjectableDef:O}),$d=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 Ys;function Oi(h){const p=Ys;return Ys=h,p}function Js(h,p,m){const _=si(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Ye.Optional?null:void 0!==p?p:void yt($(h),"Injector")}function ee(h){return{toString:h}.toString()}var te=(()=>((te=te||{})[te.OnPush=0]="OnPush",te[te.Default=1]="Default",te))(),Me=(()=>{return(h=Me||(Me={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",Me;var h})();const Ee="undefined"!=typeof globalThis&&globalThis,Ie="undefined"!=typeof window&&window,pt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,lt=Ee||"undefined"!=typeof global&&global||Ie||pt,ct={},Pe=[],rn=O({\u0275cmp:O}),At=O({\u0275dir:O}),ri=O({\u0275pipe:O}),vn=O({\u0275mod:O}),an=O({\u0275fac:O}),An=O({__NG_ELEMENT_ID__:O});let If=0;function Ks(h){return ee(()=>{const m={},_={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:m,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===te.OnPush,directiveDefs:null,pipeDefs:null,selectors:h.selectors||Pe,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||Me.Emulated,id:"c",styles:h.styles||Pe,_:null,setInput:null,schemas:h.schemas||null,tView:null},C=h.directives,w=h.features,v=h.pipes;return _.id+=If++,_.inputs=y(h.inputs,m),_.outputs=y(h.outputs),w&&w.forEach(x=>x(_)),_.directiveDefs=C?()=>("function"==typeof C?C():C).map(Ka):null,_.pipeDefs=v?()=>("function"==typeof v?v():v).map(xn):null,_})}function Ka(h){return oi(h)||function je(h){return h[At]||null}(h)}function xn(h){return function Tn(h){return h[ri]||null}(h)}const jl={};function ia(h){return ee(()=>{const p={type:h.type,bootstrap:h.bootstrap||Pe,declarations:h.declarations||Pe,imports:h.imports||Pe,exports:h.exports||Pe,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null};return null!=h.id&&(jl[h.id]=h.type),p})}function y(h,p){if(null==h)return ct;const m={};for(const _ in h)if(h.hasOwnProperty(_)){let C=h[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,p&&(p[C]=w)}return m}const Ot=Ks;function Ft(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,onDestroy:h.type.prototype.ngOnDestroy||null}}function oi(h){return h[rn]||null}function di(h,p){const m=h[vn]||null;if(!m&&!0===p)throw new Error(`Type ${$(h)} does not have '\u0275mod' property.`);return m}function Li(h){return Array.isArray(h)&&"object"==typeof h[1]}function Qi(h){return Array.isArray(h)&&!0===h[1]}function Ul(h){return 0!=(8&h.flags)}function ql(h){return 2==(2&h.flags)}function Xa(h){return 1==(1&h.flags)}function sn(h){return null!==h.template}function Yd(h){return 0!=(512&h[2])}function cn(h,p){return h.hasOwnProperty(an)?h[an]:null}class Jd{constructor(p,m,_){this.previousValue=p,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function et(){return io}function io(h){return h.type.prototype.ngOnChanges&&(h.setInput=Kd),no}function no(){const h=ro(this),p=null==h?void 0:h.current;if(p){const m=h.previous;if(m===ct)h.previous=p;else for(let _ in p)m[_]=p[_];h.current=null,this.ngOnChanges(p)}}function Kd(h,p,m,_){const C=ro(h)||function Zd(h,p){return h[Wl]=p}(h,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,x=this.declaredInputs[m],S=v[x];w[x]=new Jd(S&&S.currentValue,p,v===ct),h[_]=p}et.ngInherit=!0;const Wl="__ngSimpleChanges__";function ro(h){return h[Wl]||null}let ts;function ao(h){ts=h}function Yl(){return void 0!==ts?ts:"undefined"!=typeof document?document:void 0}function jt(h){return!!h.listen}const H={createRenderer:(h,p)=>Yl()};function M(h){for(;Array.isArray(h);)h=h[0];return h}function de(h,p){return M(p[h])}function me(h,p){return M(p[h.index])}function Mt(h,p){return h.data[p]}function xt(h,p){return h[p]}function ut(h,p){const m=p[h];return Li(m)?m:m[0]}function gt(h){return 4==(4&h[2])}function mt(h){return 128==(128&h[2])}function Je(h,p){return null==p?null:h[p]}function Yi(h){h[18]=0}function wi(h,p){h[5]+=p;let m=h,_=h[3];for(;null!==_&&(1===p&&1===m[5]||-1===p&&0===m[5]);)_[5]+=p,m=_,_=_[3]}const Ue={lFrame:qn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function oo(){return Ue.bindingsEnabled}function be(){return Ue.lFrame.lView}function _t(){return Ue.lFrame.tView}function Nf(h){return Ue.lFrame.contextLView=h,h[8]}function Ut(){let h=Jl();for(;null!==h&&64===h.type;)h=h.parent;return h}function Jl(){return Ue.lFrame.currentTNode}function un(h,p){const m=Ue.lFrame;m.currentTNode=h,m.isParent=p}function tu(){return Ue.lFrame.isParent}function iu(){Ue.lFrame.isParent=!1}function hn(){return Ue.isInCheckNoChangesMode}function nu(h){Ue.isInCheckNoChangesMode=h}function ti(){const h=Ue.lFrame;let p=h.bindingRootIndex;return-1===p&&(p=h.bindingRootIndex=h.tView.bindingStartIndex),p}function lo(){return Ue.lFrame.bindingIndex++}function Vr(h){const p=Ue.lFrame,m=p.bindingIndex;return p.bindingIndex=p.bindingIndex+h,m}function aC(h,p){const m=Ue.lFrame;m.bindingIndex=m.bindingRootIndex=h,Uf(p)}function Uf(h){Ue.lFrame.currentDirectiveIndex=h}function ru(h){const p=Ue.lFrame.currentDirectiveIndex;return-1===p?null:h[p]}function la(){return Ue.lFrame.currentQueryIndex}function qf(h){Ue.lFrame.currentQueryIndex=h}function Ax(h){const p=h[1];return 2===p.type?p.declTNode:1===p.type?h[6]:null}function sC(h,p,m){if(m&Ye.SkipSelf){let C=p,w=h;for(;!(C=C.parent,null!==C||m&Ye.Host||(C=Ax(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;p=C,h=w}const _=Ue.lFrame=oC();return _.currentTNode=p,_.lView=h,!0}function au(h){const p=oC(),m=h[1];Ue.lFrame=p,p.currentTNode=m.firstChild,p.lView=h,p.tView=m,p.contextLView=h,p.bindingIndex=m.bindingStartIndex,p.inI18n=!1}function oC(){const h=Ue.lFrame,p=null===h?null:h.child;return null===p?qn(h):p}function qn(h){const p={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:h,child:null,inI18n:!1};return null!==h&&(h.child=p),p}function ca(){const h=Ue.lFrame;return Ue.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const lC=ca;function su(){const h=ca();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function ji(){return Ue.lFrame.selectedIndex}function da(h){Ue.lFrame.selectedIndex=h}function Nt(){const h=Ue.lFrame;return Mt(h.tView,h.selectedIndex)}function co(){Ue.lFrame.currentNamespace="svg"}function Gf(){!function lu(){Ue.lFrame.currentNamespace=null}()}function cu(h,p){for(let m=p.directiveStart,_=p.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:x,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),x&&((h.contentHooks||(h.contentHooks=[])).push(m,x),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,x)),S&&(h.viewHooks||(h.viewHooks=[])).push(-m,S),P&&((h.viewHooks||(h.viewHooks=[])).push(m,P),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(m,P)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(m,R)}}function du(h,p,m){dC(h,p,3,m)}function uu(h,p,m,_){(3&h[2])===m&&dC(h,p,m,_)}function Kl(h,p){let m=h[2];(3&m)===p&&(m&=2047,m+=1,h[2]=m)}function dC(h,p,m,_){const w=null!=_?_:-1,v=p.length-1;let x=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else p[S]<0&&(h[18]+=65536),(x>11>16&&(3&h[2])===p){h[2]+=2048;try{w.call(x)}finally{}}}else try{w.call(x)}finally{}}class zt{constructor(p,m,_){this.factory=p,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function Zl(h,p,m){const _=jt(h);let C=0;for(;Cp){v=w-1;break}}}for(;w>16}(h),_=p;for(;m>0;)_=_[15],m--;return _}let fu=!0;function gu(h){const p=fu;return fu=h,p}let Jf=0;function go(h,p){const m=ec(h,p);if(-1!==m)return m;const _=p[1];_.firstCreatePass&&(h.injectorIndex=p.length,ur(_.data,h),ur(p,null),ur(_.blueprint,null));const C=mo(h,p),w=h.injectorIndex;if(Qf(C)){const v=Br(C),x=fo(C,p),S=x[1].data;for(let P=0;P<8;P++)p[w+P]=x[v+P]|S[v+P]}return p[w+8]=C,w}function ur(h,p){h.push(0,0,0,0,0,0,0,0,p)}function ec(h,p){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===p[h.injectorIndex+8]?-1:h.injectorIndex}function mo(h,p){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=p;for(;null!==C;){const w=C[1],v=w.type;if(_=2===v?w.declTNode:1===v?C[6]:null,null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function _o(h,p,m){!function hC(h,p,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(An)&&(_=m[An]),null==_&&(_=m[An]=Jf++);const C=255&_;p.data[h+(C>>5)]|=1<=0?255&p:fC:p}(m);if("function"==typeof w){if(!sC(p,h,_))return _&Ye.Host?Kf(C,m,_):mu(p,m,_,C);try{const v=w(_);if(null!=v||_&Ye.Optional)return v;yt(m)}finally{lC()}}else if("number"==typeof w){let v=null,x=ec(h,p),S=-1,P=_&Ye.Host?p[16][6]:null;for((-1===x||_&Ye.SkipSelf)&&(S=-1===x?mo(h,p):p[x+8],-1!==S&&eg(_,!1)?(v=p[1],x=Br(S),p=fo(S,p)):x=-1);-1!==x;){const R=p[1];if(gC(w,x,R.data)){const N=Wn(x,p,m,v,_,P);if(N!==Xf)return N}S=p[x+8],-1!==S&&eg(_,p[1].data[x+8]===P)&&gC(w,x,p)?(v=R,x=Br(S),p=fo(S,p)):x=-1}}}return mu(p,m,_,C)}const Xf={};function fC(){return new is(Ut(),be())}function Wn(h,p,m,_,C,w){const v=p[1],x=v.data[h+8],R=_u(x,v,m,null==_?ql(x)&&fu:_!=v&&0!=(3&x.type),C&Ye.Host&&w===x);return null!==R?bo(p,v,R,x):Xf}function _u(h,p,m,_,C){const w=h.providerIndexes,v=p.data,x=1048575&w,S=h.directiveStart,R=w>>20,J=C?x+R:h.directiveEnd;for(let ae=_?x:x+R;ae=S&&fe.type===m)return ae}if(C){const ae=v[S];if(ae&&sn(ae)&&ae.type===m)return S}return null}function bo(h,p,m,_){let C=h[m];const w=p.data;if(function Gn(h){return h instanceof zt}(C)){const v=C;v.resolving&&function Ae(h,p){const m=p?`. Dependency path: ${p.join(" > ")} > ${h}`:"";throw new re(-200,`Circular dependency in DI detected for ${h}${m}`)}(xe(w[m]));const x=gu(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Oi(v.injectImpl):null;sC(h,_,Ye.Default);try{C=h[m]=v.factory(void 0,w,h,_),p.firstCreatePass&&m>=_.directiveStart&&function cC(h,p,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=p.type.prototype;if(_){const v=io(p);(m.preOrderHooks||(m.preOrderHooks=[])).push(h,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-h,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(h,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,w))}(m,w[m],p)}finally{null!==S&&Oi(S),gu(x),v.resolving=!1,lC()}}return C}function gC(h,p,m){return!!(m[p+(h>>5)]&1<{const p=h.prototype.constructor,m=p[an]||tg(p),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[an]||tg(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function tg(h){return Q(h)?()=>{const p=tg(G(h));return p&&p()}:cn(h)}function tc(h){return function pC(h,p){if("class"===p)return h.classes;if("style"===p)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(pu(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===p)return m[C+1];C+=2}}}return null}(Ut(),h)}const ai="__parameters__";function yo(h,p,m){return ee(()=>{const _=function nc(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(p);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return x.annotation=v,x;function x(S,P,R){const N=S.hasOwnProperty(ai)?S[ai]:Object.defineProperty(S,ai,{value:[]})[ai];for(;N.length<=R;)N.push(null);return(N[R]=N[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class qt{constructor(p,m){this._desc=p,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Vt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}toString(){return`InjectionToken ${this._desc}`}}const _C=new qt("AnalyzeForEntryComponents");function Mn(h,p){void 0===p&&(p=h);for(let m=0;mArray.isArray(m)?hr(m,p):p(m))}function ag(h,p,m){p>=h.length?h.push(m):h.splice(p,0,m)}function rc(h,p){return p>=h.length-1?h.pop():h.splice(p,1)[0]}function ac(h,p){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function kx(h,p,m,_){let C=h.length;if(C==p)h.push(m,_);else if(1===C)h.push(_,h[0]),h[0]=m;else{for(C--,h.push(h[C-1],h[C]);C>p;)h[C]=h[C-2],C--;h[p]=m,h[p+1]=_}}(h,_,p,m)),_}function Cu(h,p){const m=Ao(h,p);if(m>=0)return h[1|m]}function Ao(h,p){return function yC(h,p,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<p?C=w:_=w+1}return~(C<({token:h})),-1),rs=lc(yo("Optional"),8),xo=lc(yo("SkipSelf"),4);let Au,xu;function Eo(h){var p;return(null===(p=function ug(){if(void 0===Au&&(Au=null,lt.trustedTypes))try{Au=lt.trustedTypes.createPolicy("angular",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch(h){}return Au}())||void 0===p?void 0:p.createHTML(h))||h}function PC(h){var p;return(null===(p=function hg(){if(void 0===xu&&(xu=null,lt.trustedTypes))try{xu=lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch(h){}return xu}())||void 0===p?void 0:p.createHTML(h))||h}class as{constructor(p){this.changingThisBreaksApplicationSecurity=p}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class t0 extends as{getTypeName(){return"HTML"}}class n0 extends as{getTypeName(){return"Style"}}class r0 extends as{getTypeName(){return"Script"}}class a0 extends as{getTypeName(){return"URL"}}class s0 extends as{getTypeName(){return"ResourceURL"}}function Or(h){return h instanceof as?h.changingThisBreaksApplicationSecurity:h}function So(h,p){const m=IC(h);if(null!=m&&m!==p){if("ResourceURL"===m&&"URL"===p)return!0;throw new Error(`Required a safe ${p}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===p}function IC(h){return h instanceof as&&h.getTypeName()||null}function o0(h){return new t0(h)}function l0(h){return new n0(h)}function c0(h){return new r0(h)}function d0(h){return new a0(h)}function u0(h){return new s0(h)}class h0{constructor(p){this.inertDocumentHelper=p}getInertBodyElement(p){p=""+p;try{const m=(new window.DOMParser).parseFromString(Eo(p),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(p):(m.removeChild(m.firstChild),m)}catch(m){return null}}}class p0{constructor(p){if(this.defaultDoc=p,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(p){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Eo(p),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Eo(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(p){const m=p.attributes;for(let C=m.length-1;0Mo(p.trim())).join(", ")),this.buf.push(" ",v,'="',Hu(S),'"')}var h;return this.buf.push(">"),!0}endElement(p){const m=p.nodeName.toLowerCase();Eu.hasOwnProperty(m)&&!ga.hasOwnProperty(m)&&(this.buf.push(""))}chars(p){this.buf.push(Hu(p))}checkClobberedElement(p,m){if(m&&(p.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${p.outerHTML}`);return m}}const hc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y0=/([^\#-~ |!])/g;function Hu(h){return h.replace(/&/g,"&").replace(hc,function(p){return"&#"+(1024*(p.charCodeAt(0)-55296)+(p.charCodeAt(1)-56320)+65536)+";"}).replace(y0,function(p){return"&#"+p.charCodeAt(0)+";"}).replace(//g,">")}let ma;function Du(h,p){let m=null;try{ma=ma||function VC(h){const p=new p0(h);return function f0(){try{return!!(new window.DOMParser).parseFromString(Eo(""),"text/html")}catch(h){return!1}}()?new h0(p):p}(h);let _=p?String(p):"";m=ma.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=ma.getInertBodyElement(_)}while(_!==w);return Eo((new FC).sanitizeChildren(Pu(m)||m))}finally{if(m){const _=Pu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Pu(h){return"content"in h&&function Ru(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var Gt=(()=>((Gt=Gt||{})[Gt.NONE=0]="NONE",Gt[Gt.HTML=1]="HTML",Gt[Gt.STYLE=2]="STYLE",Gt[Gt.SCRIPT=3]="SCRIPT",Gt[Gt.URL=4]="URL",Gt[Gt.RESOURCE_URL=5]="RESOURCE_URL",Gt))();function gg(h){const p=Do();return p?PC(p.sanitize(Gt.HTML,h)||""):So(h,"HTML")?PC(Or(h)):Du(Yl(),le(h))}function Ho(h){const p=Do();return p?p.sanitize(Gt.URL,h)||"":So(h,"URL")?Or(h):Mo(le(h))}function Do(){const h=be();return h&&h[12]}const bg="__ngContext__";function Ai(h,p){h[bg]=p}function ku(h){const p=function Po(h){return h[bg]||null}(h);return p?Array.isArray(p)?p:p.lView:null}function Vu(h){return h.ngOriginalError}function $C(h,...p){h.error(...p)}class gc{constructor(){this._console=console}handleError(p){const m=this._findOriginalError(p),_=function M0(h){return h&&h.ngErrorLogger||$C}(p);_(this._console,"ERROR",p),m&&_(this._console,"ORIGINAL ERROR",m)}_findOriginalError(p){let m=p&&Vu(p);for(;m&&Vu(m);)m=Vu(m);return m||null}}const Ou=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(lt))();function Hn(h){return h instanceof Function?h():h}var fr=(()=>((fr=fr||{})[fr.Important=1]="Important",fr[fr.DashCase=2]="DashCase",fr))();function Ve(h,p){return undefined(h,p)}function wt(h){const p=h[3];return Qi(p)?p[3]:p}function Ag(h){return ZC(h[13])}function Cc(h){return ZC(h[4])}function ZC(h){for(;null!==h&&!Qi(h);)h=h[4];return h}function $n(h,p,m,_,C){if(null!=_){let w,v=!1;Qi(_)?w=_:Li(_)&&(v=!0,_=_[0]);const x=M(_);0===h&&null!==m?null==C?Wu(p,m,x):ba(p,m,x,C||null,!0):1===h&&null!==m?ba(p,m,x,C||null,!0):2===h?function zr(h,p,m){const _=Vo(h,p);_&&function R0(h,p,m,_){jt(h)?h.removeChild(p,m,_):p.removeChild(m)}(h,_,p,m)}(p,x,v):3===h&&p.destroyNode(x),null!=w&&function Mg(h,p,m,_,C){const w=m[7];w!==M(m)&&$n(p,h,_,w,C);for(let x=10;x0&&(h[m-1][4]=_[4]);const w=rc(h,10+p);!function Nr(h,p){Ur(h,p,p[11],2,null,null),p[0]=null,p[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function Uu(h,p){if(!(256&p[2])){const m=p[11];jt(m)&&m.destroyNode&&Ur(h,p,m,3,null,null),function ju(h){let p=h[13];if(!p)return Tg(h[1],h);for(;p;){let m=null;if(Li(p))m=p[13];else{const _=p[10];_&&(m=_)}if(!m){for(;p&&!p[4]&&p!==h;)Li(p)&&Tg(p[1],p),p=p[3];null===p&&(p=h),Li(p)&&Tg(p[1],p),m=p&&p[4]}p=m}}(p)}}function Tg(h,p){if(!(256&p[2])){p[2]&=-129,p[2]|=256,function _a(h,p){let m;if(null!=h&&null!=(m=h.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)_[w]();p[7]=null}}(h,p),1===p[1].type&&jt(p[11])&&p[11].destroy();const m=p[17];if(null!==m&&Qi(p[3])){m!==p[3]&&zu(m,p);const _=p[19];null!==_&&_.detachView(h)}}}function qu(h,p,m){return function Gu(h,p,m){let _=p;for(;null!==_&&40&_.type;)_=(p=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===Me.None||C===Me.Emulated)return null}return me(_,m)}(h,p.parent,m)}function ba(h,p,m,_,C){jt(h)?h.insertBefore(p,m,_,C):p.insertBefore(m,_,C)}function Wu(h,p,m){jt(h)?h.appendChild(p,m):p.appendChild(m)}function $u(h,p,m,_,C){null!==_?ba(h,p,m,_,C):Wu(h,p,m)}function Vo(h,p){return jt(h)?h.parentNode(p):p.parentNode}function Eg(h,p,m){return Sg(h,p,m)}let Sg=function Yu(h,p,m){return 40&h.type?me(h,m):null};function Ca(h,p,m,_){const C=qu(h,_,p),w=p[11],x=Eg(_.parent||p[6],_,p);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[N+1].toLowerCase();const ae=8&_?J:null;if(ae&&-1!==Dn(ae,P,0)||2&_&&P!==J){if(Ni(_))return!1;v=!0}}}}else{if(!v&&!Ni(_)&&!Ni(S))return!1;if(v&&Ni(S))continue;v=!1,_=S|1&_}}return Ni(_)||v}function Ni(h){return 0==(1&h)}function ry(h,p,m,_){if(null===p)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+x+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!Ni(v)&&(p+=Zu(w,C),C=""),_=v,w=w||!Ni(_);m++}return""!==C&&(p+=Zu(w,C)),p}const Ke={};function jo(h){No(_t(),be(),ji()+h,hn())}function No(h,p,m,_){if(!_)if(3==(3&p[2])){const w=h.preOrderCheckHooks;null!==w&&du(p,w,m)}else{const w=h.preOrderHooks;null!==w&&uu(p,w,0,m)}da(m)}function zo(h,p){return h<<17|p<<2}function Pn(h){return h>>17&32767}function eh(h){return 2|h}function gr(h){return(131068&h)>>2}function th(h,p){return-131069&h|p<<2}function ih(h){return 1|h}function jg(h,p){const m=h.contentQueries;if(null!==m)for(let _=0;_20&&No(h,p,20,hn()),m(_,C)}finally{da(w)}}function Ng(h,p,m){if(Ul(p)){const C=p.directiveEnd;for(let w=p.directiveStart;w0;){const m=h[--p];if("number"==typeof m&&m<0)return m}return 0})(x)!=S&&x.push(S),x.push(_,C,v)}}function Yg(h,p){null!==h.hostBindings&&h.hostBindings(1,p)}function Jg(h,p){p.flags|=2,(h.components||(h.components=[])).push(p.index)}function xy(h,p,m){if(m){if(p.exportAs)for(let _=0;_0&&wh(m)}}function wh(h){for(let _=Ag(h);null!==_;_=Cc(_))for(let C=10;C<_.length;C++){const w=_[C];if(1024&w[2]){const v=w[1];gs(v,w,v.template,w[8])}else w[5]>0&&wh(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&wh(C)}}function Ey(h,p){const m=ut(p,h),_=m[1];(function Sy(h,p){for(let m=p.length;mPromise.resolve(null))();function tm(h){return h[7]||(h[7]=[])}function im(h){return h.cleanup||(h.cleanup=[])}function gn(h,p,m){return(null===h||sn(h))&&(m=function V(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[p.index])),m[11]}function Qo(h,p){const m=h[9],_=m?m.get(gc,null):null;_&&_.handleError(p)}function nm(h,p,m,_,C){for(let w=0;wthis.processProvider(x,p,m)),hr([p],x=>this.processInjectorType(x,[],w)),this.records.set(rm,ws(void 0,this));const v=this.records.get(vh);this.scope=null!=v?v.value:null,this.source=C||("object"==typeof p?null:$(p))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(p=>p.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(p,m=sc,_=Ye.Default){this.assertNotDestroyed();const C=AC(this),w=Oi(void 0);try{if(!(_&Ye.SkipSelf)){let x=this.records.get(p);if(void 0===x){const S=function eT(h){return"function"==typeof h||"object"==typeof h&&h instanceof qt}(p)&&si(p);x=S&&this.injectableDefInScope(S)?ws(Rc(p),Jo):null,this.records.set(p,x)}if(null!=x)return this.hydrate(p,x)}return(_&Ye.Self?am():this.parent).get(p,m=_&Ye.Optional&&m===sc?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[wu]=v[wu]||[]).unshift($(p)),C)throw v;return function TC(h,p,m,_){const C=h[wu];throw p[vC]&&C.unshift(p[vC]),h.message=function EC(h,p,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.substr(2):h;let C=$(p);if(Array.isArray(p))C=p.map($).join(" -> ");else if("object"==typeof p){let w=[];for(let v in p)if(p.hasOwnProperty(v)){let x=p[v];w.push(v+":"+("string"==typeof x?JSON.stringify(x):$(x)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(Lx,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[wu]=null,h}(v,p,"R3InjectorError",this.source)}throw v}finally{Oi(w),AC(C)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(p=>this.get(p))}toString(){const p=[];return this.records.forEach((_,C)=>p.push($(C))),`R3Injector[${p.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processInjectorType(p,m,_){if(!(p=G(p)))return!1;let C=Ja(p);const w=null==C&&p.ngModule||void 0,v=void 0===w?p:w,x=-1!==_.indexOf(v);if(void 0!==w&&(C=Ja(w)),null==C)return!1;if(null!=C.imports&&!x){let R;_.push(v);try{hr(C.imports,N=>{this.processInjectorType(N,m,_)&&(void 0===R&&(R=[]),R.push(N))})}finally{}if(void 0!==R)for(let N=0;Nthis.processProvider(fe,J,ae||Pe))}}this.injectorDefTypes.add(v);const S=cn(v)||(()=>new v);this.records.set(v,ws(S,Jo));const P=C.providers;if(null!=P&&!x){const R=p;hr(P,N=>this.processProvider(N,R,P))}return void 0!==w&&void 0!==p.providers}processProvider(p,m,_){let C=vs(p=G(p))?p:G(p&&p.provide);const w=function lm(h,p,m){return Th(h)?ws(void 0,h.useValue):ws(cm(h),Jo)}(p);if(vs(p)||!0!==p.multi)this.records.get(C);else{let v=this.records.get(C);v||(v=ws(void 0,Jo,!0),v.factory=()=>cg(v.multi),this.records.set(C,v)),C=p,v.multi.push(p)}this.records.set(C,w)}hydrate(p,m){return m.value===Jo&&(m.value=Ko,m.value=m.factory()),"object"==typeof m.value&&m.value&&function X0(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this.onDestroy.add(m.value),m.value}injectableDefInScope(p){if(!p.providedIn)return!1;const m=G(p.providedIn);return"string"==typeof m?"any"===m||m===this.scope:this.injectorDefTypes.has(m)}}function Rc(h){const p=si(h),m=null!==p?p.factory:cn(h);if(null!==m)return m;if(h instanceof qt)throw new re(204,!1);if(h instanceof Function)return function om(h){const p=h.length;if(p>0)throw ac(p,"?"),new re(204,!1);const m=function Qa(h){const p=h&&(h[Sr]||h[Mr]);if(p){const m=function Ya(h){if(h.hasOwnProperty("name"))return h.name;const p=(""+h).match(/^function\s*([^\s(]+)/);return null===p?"":p[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" 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 "${m}" class.`),p}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new re(204,!1)}function cm(h,p,m){let _;if(vs(h)){const C=G(h);return cn(C)||Rc(C)}if(Th(h))_=()=>G(h.useValue);else if(function Yn(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...cg(h.deps||[]));else if(function Ta(h){return!(!h||!h.useExisting)}(h))_=()=>ui(G(h.useExisting));else{const C=G(h&&(h.useClass||h.provide));if(!function Z0(h){return!!h.deps}(h))return cn(C)||Rc(C);_=()=>new C(...cg(h.deps))}return _}function ws(h,p,m=!1){return{factory:h,value:p,multi:m?[]:void 0}}function Th(h){return null!==h&&"object"==typeof h&&Nx in h}function vs(h){return"function"==typeof h}let kn=(()=>{class h{static create(m,_){var C;if(Array.isArray(m))return Ah({name:""},_,m,"");{const w=null!==(C=m.name)&&void 0!==C?C:"";return Ah({name:w},m.parent,m.providers,w)}}}return h.THROW_IF_NOT_FOUND=sc,h.NULL=new Cs,h.\u0275prov=Vt({token:h,providedIn:"any",factory:()=>ui(rm)}),h.__NG_ELEMENT_ID__=-1,h})();function Ny(h,p){cu(ku(h)[1],Ut())}function Hh(h){let p=function fm(h){return Object.getPrototypeOf(h.prototype).constructor}(h.type),m=!0;const _=[h];for(;p;){let C;if(sn(h))C=p.\u0275cmp||p.\u0275dir;else{if(p.\u0275cmp)throw new re(903,"");C=p.\u0275dir}if(C){if(m){_.push(C);const v=h;v.inputs=Ic(h.inputs),v.declaredInputs=Ic(h.declaredInputs),v.outputs=Ic(h.outputs);const x=C.hostBindings;x&&zy(h,x);const S=C.viewQuery,P=C.contentQueries;if(S&&Dh(h,S),P&&gm(h,P),Y(h.inputs,C.inputs),Y(h.declaredInputs,C.declaredInputs),Y(h.outputs,C.outputs),sn(C)&&C.data.animation){const R=h.data;R.animation=(R.animation||[]).concat(C.data.animation)}}const w=C.features;if(w)for(let v=0;v=0;_--){const C=h[_];C.hostVars=p+=C.hostVars,C.hostAttrs=po(C.hostAttrs,m=po(m,C.hostAttrs))}}(_)}function Ic(h){return h===ct?{}:h===Pe?[]:h}function Dh(h,p){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{p(_,C),m(_,C)}:p}function gm(h,p){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{p(_,C,w),m(_,C,w)}:p}function zy(h,p){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{p(_,C),m(_,C)}:p}let Es=null;function _r(){if(!Es){const h=lt.Symbol;if(h&&h.iterator)Es=h.iterator;else{const p=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mx(M(ot[_.index])):_.index;if(jt(m)){let ot=null;if(!x&&S&&(ot=function gT(h,p,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?x[S]:null}"string"==typeof v&&(w+=2)}return null}(h,p,C,_.index)),null!==ot)(ot.__ngLastListenerFn__||ot).__ngNextListenerFn__=w,ot.__ngLastListenerFn__=w,ae=!1;else{w=km(_,p,N,w,!1);const Ht=m.listen(Re,C,w);J.push(w,Ht),R&&R.push(C,Le,ge,ge+1)}}else w=km(_,p,N,w,!0),Re.addEventListener(C,w,v),J.push(w),R&&R.push(C,Le,ge,v)}else w=km(_,p,N,w,!1);const fe=_.outputs;let ve;if(ae&&null!==fe&&(ve=fe[C])){const Te=ve.length;if(Te)for(let Re=0;Re0;)p=p[15],h--;return p}(h,Ue.lFrame.contextLView))[8]}(h)}function mT(h,p){let m=null;const _=function ay(h){const p=h.attrs;if(null!=p){const m=p.indexOf(5);if(0==(1&m))return p[m+1]}return null}(h);for(let C=0;C=0}function Uh(h,p,m){return Fn(h,p,m,!1),Uh}function qm(h,p){return Fn(h,p,null,!0),qm}function Fn(h,p,m,_){const C=be(),w=_t(),v=Vr(2);w.firstUpdatePass&&function Wm(h,p,m,_){const C=h.data;if(null===C[m+1]){const w=C[ji()],v=function Gm(h,p){return p>=h.expandoStartIndex}(h,m);(function Iw(h,p){return 0!=(h.flags&(p?16:32))})(w,_)&&null===p&&!v&&(p=!1),p=function Dw(h,p,m,_){const C=ru(h);let w=_?p.residualClasses:p.residualStyles;if(null===C)0===(_?p.classBindings:p.styleBindings)&&(m=Jc(m=qh(null,h,p,m,_),p.attrs,_),w=null);else{const v=p.directiveStylingLast;if(-1===v||h[v]!==C)if(m=qh(C,h,p,m,_),null===w){let S=function Ps(h,p,m){const _=m?p.classBindings:p.styleBindings;if(0!==gr(_))return h[Pn(_)]}(h,p,_);void 0!==S&&Array.isArray(S)&&(S=qh(null,h,p,S[1],_),S=Jc(S,p.attrs,_),function Pw(h,p,m,_){h[Pn(m?p.classBindings:p.styleBindings)]=_}(h,p,_,S))}else w=function Rw(h,p,m){let _;const C=p.directiveEnd;for(let w=1+p.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const J=Pn(h[x+1]);h[_+1]=zo(J,x),0!==J&&(h[J+1]=th(h[J+1],_)),h[x+1]=function Dg(h,p){return 131071&h|p<<17}(h[x+1],_)}else h[_+1]=zo(x,0),0!==x&&(h[x+1]=th(h[x+1],_)),x=_;else h[_+1]=zo(S,0),0===x?x=_:h[S+1]=th(h[S+1],_),S=_;P&&(h[_+1]=eh(h[_+1])),vw(h,R,_,!0),vw(h,R,_,!1),function bT(h,p,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof p&&Ao(w,p)>=0&&(m[_+1]=ih(m[_+1]))}(p,R,h,_,w),v=zo(x,S),w?p.classBindings=v:p.styleBindings=v}(C,w,p,m,v,_)}}(w,h,v,_),p!==Ke&&Ti(C,v,p)&&function $m(h,p,m,_,C,w,v,x){if(!(3&p.type))return;const S=h.data,P=S[x+1];Wh(function Pg(h){return 1==(1&h)}(P)?Qm(S,p,m,C,gr(P),v):void 0)||(Wh(w)||function Sc(h){return 2==(2&h)}(P)&&(w=Qm(S,null,m,C,x,v)),function qr(h,p,m,_,C){const w=jt(h);if(p)C?w?h.addClass(m,_):m.classList.add(_):w?h.removeClass(m,_):m.classList.remove(_);else{let v=-1===_.indexOf("-")?void 0:fr.DashCase;if(null==C)w?h.removeStyle(m,_,v):m.style.removeProperty(_);else{const x="string"==typeof C&&C.endsWith("!important");x&&(C=C.slice(0,-10),v|=fr.Important),w?h.setStyle(m,_,C,v):m.style.setProperty(_,C,x?"important":"")}}}(_,v,de(ji(),m),C,w))}(w,w.data[ji()],C,C[11],h,C[v+1]=function wT(h,p){return null==h||("string"==typeof p?h+=p:"object"==typeof h&&(h=$(Or(h)))),h}(p,m),_,v)}function qh(h,p,m,_,C){let w=null;const v=m.directiveEnd;let x=m.directiveStylingLast;for(-1===x?x=m.directiveStart:x++;x0;){const S=h[C],P=Array.isArray(S),R=P?S[1]:S,N=null===R;let J=m[C+1];J===Ke&&(J=N?Pe:void 0);let ae=N?Cu(J,_):R===_?J:void 0;if(P&&!Wh(ae)&&(ae=Cu(S,_)),Wh(ae)&&(x=ae,v))return x;const fe=h[C+1];C=v?Pn(fe):gr(fe)}if(null!==p){let S=w?p.residualClasses:p.residualStyles;null!=S&&(x=Cu(S,_))}return x}function Wh(h){return void 0!==h}function Vw(h,p=""){const m=be(),_=_t(),C=h+20,w=_.firstCreatePass?$r(_,C,1,p,null):_.data[C],v=m[C]=function yc(h,p){return jt(h)?h.createText(p):h.createTextNode(p)}(m[11],p);Ca(_,m,v,w),un(w,!1)}function Ym(h){return $h("",h,""),Ym}function $h(h,p,m){const _=be(),C=Vn(_,h,p,m);return C!==Ke&&Rn(_,ji(),C),$h}function Rs(h,p,m,_,C){const w=be(),v=pi(w,h,p,m,_,C);return v!==Ke&&Rn(w,ji(),v),Rs}function Xh(h,p,m){const _=be();return Ti(_,lo(),p)&&Ri(_t(),Nt(),_,h,p,_[11],m,!0),Xh}function ep(h,p,m){const _=be();if(Ti(_,lo(),p)){const w=_t(),v=Nt();Ri(w,v,_,h,p,gn(ru(w.data),v,_),m,!0)}return ep}const Pa=void 0;var Xc=["en",[["a","p"],["AM","PM"],Pa],[["AM","PM"],Pa,Pa],[["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"]],Pa,[["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"]],Pa,[["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}",Pa,"{1} 'at' {0}",Pa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Uw(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let ks={};function td(h){const p=function qw(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=ip(p);if(m)return m;const _=p.split("-")[0];if(m=ip(_),m)return m;if("en"===_)return Xc;throw new Error(`Missing locale data for the locale "${h}".`)}function tp(h){return td(h)[Ne.PluralCase]}function ip(h){return h in ks||(ks[h]=lt.ng&<.ng.common&<.ng.common.locales&<.ng.common.locales[h]),ks[h]}var Ne=(()=>((Ne=Ne||{})[Ne.LocaleId=0]="LocaleId",Ne[Ne.DayPeriodsFormat=1]="DayPeriodsFormat",Ne[Ne.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ne[Ne.DaysFormat=3]="DaysFormat",Ne[Ne.DaysStandalone=4]="DaysStandalone",Ne[Ne.MonthsFormat=5]="MonthsFormat",Ne[Ne.MonthsStandalone=6]="MonthsStandalone",Ne[Ne.Eras=7]="Eras",Ne[Ne.FirstDayOfWeek=8]="FirstDayOfWeek",Ne[Ne.WeekendRange=9]="WeekendRange",Ne[Ne.DateFormat=10]="DateFormat",Ne[Ne.TimeFormat=11]="TimeFormat",Ne[Ne.DateTimeFormat=12]="DateTimeFormat",Ne[Ne.NumberSymbols=13]="NumberSymbols",Ne[Ne.NumberFormats=14]="NumberFormats",Ne[Ne.CurrencyCode=15]="CurrencyCode",Ne[Ne.CurrencySymbol=16]="CurrencySymbol",Ne[Ne.CurrencyName=17]="CurrencyName",Ne[Ne.Currencies=18]="Currencies",Ne[Ne.Directionality=19]="Directionality",Ne[Ne.PluralCase=20]="PluralCase",Ne[Ne.ExtraData=21]="ExtraData",Ne))();const sl="en-US";let r_=sl;function dp(h,p,m,_,C){if(h=G(h),Array.isArray(h))for(let w=0;w>20;if(vs(h)||!h.multi){const ae=new zt(S,C,Wc),fe=cd(x,p,C?R:R+J,N);-1===fe?(_o(go(P,v),w,x),up(w,h,p.length),p.push(x),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(ae),v.push(ae)):(m[fe]=ae,v[fe]=ae)}else{const ae=cd(x,p,R+J,N),fe=cd(x,p,R,R+J),ve=ae>=0&&m[ae],Te=fe>=0&&m[fe];if(C&&!Te||!C&&!ve){_o(go(P,v),w,x);const Re=function Cv(h,p,m,_,C){const w=new zt(h,m,Wc);return w.multi=[],w.index=p,w.componentProviders=0,p_(w,C,_&&!m),w}(C?bv:f_,m.length,C,_,S);!C&&Te&&(m[fe].providerFactory=Re),up(w,h,p.length,0),p.push(x),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(Re),v.push(Re)}else up(w,h,ae>-1?ae:fe,p_(m[C?fe:ae],S,!C&&_));!C&&_&&Te&&m[fe].componentProviders++}}}function up(h,p,m,_){const C=vs(p),w=function Eh(h){return!!h.useClass}(p);if(C||w){const S=(w?G(p.useClass):p).prototype.ngOnDestroy;if(S){const P=h.destroyHooks||(h.destroyHooks=[]);if(!C&&p.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function p_(h,p,m){return m&&h.componentProviders++,h.multi.push(p)-1}function cd(h,p,m,_){for(let C=m;C<_;C++)if(p[C]===h)return C;return-1}function f_(h,p,m,_){return hp(this.multi,[])}function bv(h,p,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,x=bo(m,m[1],this.providerFactory.index,_);w=x.slice(0,v),hp(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function _v(h,p,m){const _=_t();if(_.firstCreatePass){const C=sn(h);dp(m,_.data,_.blueprint,C,!0),dp(p,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,p)}}class dt{}class pp{resolveComponentFactory(p){throw function yv(h){const p=Error(`No component factory found for ${$(h)}. Did you add it to @NgModule.entryComponents?`);return p.ngComponent=h,p}(p)}}let cl=(()=>{class h{}return h.NULL=new pp,h})();function vv(){return Fs(Ut(),be())}function Fs(h,p){return new qi(me(h,p))}let qi=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=vv,h})();function __(h){return h instanceof qi?h.nativeElement:h}class fp{}let sE=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function ir(){const h=be(),m=ut(Ut().index,h);return function fi(h){return h[11]}(Li(m)?m:h)}(),h})(),xv=(()=>{class h{}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:()=>null}),h})();class b_{constructor(p){this.full=p,this.major=p.split(".")[0],this.minor=p.split(".")[1],this.patch=p.split(".").slice(2).join(".")}}const C_=new b_("13.2.2"),dd={};function ud(h,p,m,_,C=!1){for(;null!==m;){const w=p[m.index];if(null!==w&&_.push(M(w)),Qi(w))for(let x=10;x-1&&(Io(p,_),rc(m,_))}this._attachedToViewContainer=!1}Uu(this._lView[1],this._lView)}onDestroy(p){Ug(this._lView[1],this._lView,null,p)}markForCheck(){qe(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){em(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Aa(h,p,m){nu(!0);try{em(h,p,m)}finally{nu(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Lu(h,p){Ur(h,p,p[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(p){if(this._attachedToViewContainer)throw new re(902,"");this._appRef=p}}class Tv extends Ls{constructor(p){super(p),this._view=p}detectChanges(){$o(this._view)}checkNoChanges(){!function xa(h){nu(!0);try{$o(h)}finally{nu(!1)}}(this._view)}get context(){return null}}class gp extends cl{constructor(p){super(),this.ngModule=p}resolveComponentFactory(p){const m=oi(p);return new Ia(m,this.ngModule)}}function mp(h){const p=[];for(let m in h)h.hasOwnProperty(m)&&p.push({propName:h[m],templateName:m});return p}const ka=new qt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ou});class Ia extends dt{constructor(p,m){super(),this.componentDef=p,this.ngModule=m,this.componentType=p.type,this.selector=function ly(h){return h.map(Ec).join(",")}(p.selectors),this.ngContentSelectors=p.ngContentSelectors?p.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(p,m,_,C){const w=(C=C||this.ngModule)?function Ct(h,p){return{get:(m,_,C)=>{const w=h.get(m,dd,C);return w!==dd||_===dd?w:p.get(m,_,C)}}}(p,C.injector):p,v=w.get(fp,H),x=w.get(xv,null),S=v.createRenderer(null,this.componentDef),P=this.componentDef.selectors[0][0]||"div",R=_?function _h(h,p,m){if(jt(h))return h.selectRootElement(p,m===Me.ShadowDom);let _="string"==typeof p?h.querySelector(p):p;return _.textContent="",_}(S,_,this.componentDef.encapsulation):ko(v.createRenderer(null,this.componentDef),P,function hd(h){const p=h.toLowerCase();return"svg"===p?"svg":"math"===p?"math":null}(P)),N=this.componentDef.onPush?576:528,J=function pm(h,p){return{components:[],scheduler:h||Ou,clean:K0,playerHandler:p||null,flags:0}}(),ae=Pi(0,null,null,1,0,null,null,null,null,null),fe=mr(null,ae,J,N,null,null,v,S,x,w);let ve,Te;au(fe);try{const Re=function jy(h,p,m,_,C,w){const v=m[1];m[20]=h;const S=$r(v,20,2,"#host",null),P=S.mergedAttrs=p.hostAttrs;null!==P&&(Yo(S,P,!0),null!==h&&(Zl(C,h,P),null!==S.classes&&vc(C,h,S.classes),null!==S.styles&&Ku(C,h,S.styles)));const R=_.createRenderer(h,p),N=mr(m,mh(p),null,p.onPush?64:16,m[20],S,_,R,w||null,null);return v.firstCreatePass&&(_o(go(S,m),v,p.type),Jg(v,S),Zi(S,m.length,1)),Pc(m,N),m[20]=N}(R,this.componentDef,fe,v,S);if(R)if(_)Zl(S,R,["ng-version",C_.full]);else{const{attrs:ge,classes:Le}=function cy(h){const p=[],m=[];let _=1,C=2;for(;_0&&vc(S,R,Le.join(" "))}if(Te=Mt(ae,20),void 0!==m){const ge=Te.projection=[];for(let Le=0;LeS(v,p)),p.contentQueries){const S=Ut();p.contentQueries(1,v,S.directiveStart)}const x=Ut();return!w.firstCreatePass||null===p.hostBindings&&null===p.hostAttrs||(da(x.index),bh(m[1],x,0,x.directiveStart,x.directiveEnd,p),Yg(p,v)),v}(Re,this.componentDef,fe,J,[Ny]),va(ae,fe,null)}finally{su()}return new Sv(this.componentType,ve,Fs(Te,fe),fe,Te)}}class Sv extends class m_{}{constructor(p,m,_,C,w){super(),this.location=_,this._rootLView=C,this._tNode=w,this.instance=m,this.hostView=this.changeDetectorRef=new Tv(C),this.componentType=p}get injector(){return new is(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(p){this.hostView.onDestroy(p)}}class Va{}class w_{}const yr=new Map;class Cp extends Va{constructor(p,m){super(),this._parent=m,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new gp(this);const _=di(p);this._bootstrapComponents=Hn(_.bootstrap),this._r3Injector=sm(p,m,[{provide:Va,useValue:this},{provide:cl,useValue:this.componentFactoryResolver}],$(p)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(p)}get(p,m=kn.THROW_IF_NOT_FOUND,_=Ye.Default){return p===kn||p===Va||p===rm?this:this._r3Injector.get(p,m,_)}destroy(){const p=this._r3Injector;!p.destroyed&&p.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(p){this.destroyCbs.push(p)}}class md extends w_{constructor(p){super(),this.moduleType=p,null!==di(p)&&function fd(h){const p=new Set;!function m(_){const C=di(_,!0),w=C.id;null!==w&&(function _p(h,p,m){if(p&&p!==m)throw new Error(`Duplicate module registered for ${h} - ${$(p)} vs ${$(p.name)}`)}(w,yr.get(w),_),yr.set(w,_));const v=Hn(C.imports);for(const x of v)p.has(x)||(p.add(x),m(x))}(h)}(p)}create(p){return new Cp(this.moduleType,p)}}function v_(h,p,m,_){return bd(be(),ti(),h,p,m,_)}function Ba(h,p){const m=h[p];return m===Ke?void 0:m}function bd(h,p,m,_,C,w){const v=p+m;return Ti(h,v,C)?Kn(h,v+1,w?_.call(w,C):_(C)):Ba(h,v+1)}function Oa(h,p,m,_,C,w,v,x){const S=p+m;return function Bc(h,p,m,_,C){const w=Sa(h,p,m,_);return Ti(h,p+2,C)||w}(h,S,C,w,v)?Kn(h,S+3,x?_.call(x,C,w,v):_(C,w,v)):Ba(h,S+3)}function x_(h,p){const m=_t();let _;const C=h+20;m.firstCreatePass?(_=function Kr(h,p){if(p)for(let m=p.length-1;m>=0;m--){const _=p[m];if(h===_.name)return _}}(p,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=cn(_.type)),v=Oi(Wc);try{const x=gu(!1),S=w();return gu(x),function _n(h,p,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),p[m]=_}(m,be(),C,S),S}finally{Oi(v)}}function vp(h,p,m){const _=h+20,C=be(),w=xt(C,_);return Ns(C,_)?bd(C,ti(),p,w.transform,m,w):w.transform(m)}function T_(h,p,m,_){const C=h+20,w=be(),v=xt(w,C);return Ns(w,C)?function nr(h,p,m,_,C,w,v){const x=p+m;return Sa(h,x,C,w)?Kn(h,x+2,v?_.call(v,C,w):_(C,w)):Ba(h,x+2)}(w,ti(),p,v.transform,m,_,v):v.transform(m,_)}function dl(h,p,m,_,C){const w=h+20,v=be(),x=xt(v,w);return Ns(v,w)?Oa(v,ti(),p,x.transform,m,_,C,x):x.transform(m,_,C)}function Ns(h,p){return h[1].data[p].pure}function ul(h){return p=>{setTimeout(h,void 0,p)}}const rr=class xp extends T.xQ{constructor(p=!1){super(),this.__isAsync=p}emit(p){super.next(p)}subscribe(p,m,_){var C,w,v;let x=p,S=m||(()=>null),P=_;if(p&&"object"==typeof p){const N=p;x=null===(C=N.next)||void 0===C?void 0:C.bind(N),S=null===(w=N.error)||void 0===w?void 0:w.bind(N),P=null===(v=N.complete)||void 0===v?void 0:v.bind(N)}this.__isAsync&&(S=ul(S),x&&(x=ul(x)),P&&(P=ul(P)));const R=super.subscribe({next:x,error:S,complete:P});return p instanceof g.w&&p.add(R),R}};function hl(){return this._results[_r()]()}class Cd{constructor(p=!1){this._emitDistinctChangesOnly=p,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=_r(),_=Cd.prototype;_[m]||(_[m]=hl)}get changes(){return this._changes||(this._changes=new rr)}get(p){return this._results[p]}map(p){return this._results.map(p)}filter(p){return this._results.filter(p)}find(p){return this._results.find(p)}reduce(p,m){return this._results.reduce(p,m)}forEach(p){this._results.forEach(p)}some(p){return this._results.some(p)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(p,m){const _=this;_.dirty=!1;const C=Mn(p);(this._changesDetected=!function Px(h,p,m){if(h.length!==p.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=fl,h})();const Vv=pl,yd=class extends Vv{constructor(p,m,_){super(),this._declarationLView=p,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(p){const m=this._declarationTContainer.tViews,_=mr(this._declarationLView,m,p,16,null,m.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const w=this._declarationLView[19];return null!==w&&(_[19]=w.createEmbeddedView(m)),va(m,_,p),new Ls(_)}};function fl(){return zs(Ut(),be())}function zs(h,p){return 4&h.type?new yd(p,h,Fs(h,p)):null}let gl=(()=>{class h{}return h.__NG_ELEMENT_ID__=S_,h})();function S_(){return H_(Ut(),be())}const Bv=gl,wd=class extends Bv{constructor(p,m,_){super(),this._lContainer=p,this._hostTNode=m,this._hostLView=_}get element(){return Fs(this._hostTNode,this._hostLView)}get injector(){return new is(this._hostTNode,this._hostLView)}get parentInjector(){const p=mo(this._hostTNode,this._hostLView);if(Qf(p)){const m=fo(p,this._hostLView),_=Br(p);return new is(m[1].data[_+8],m)}return new is(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(p){const m=M_(this._lContainer);return null!==m&&m[p]||null}get length(){return this._lContainer.length-10}createEmbeddedView(p,m,_){const C=p.createEmbeddedView(m||{});return this.insert(C,_),C}createComponent(p,m,_,C,w){const v=p&&!function pa(h){return"function"==typeof h}(p);let x;if(v)x=m;else{const N=m||{};x=N.index,_=N.injector,C=N.projectableNodes,w=N.ngModuleRef}const S=v?p:new Ia(oi(p)),P=_||this.parentInjector;if(!w&&null==S.ngModule&&P){const N=P.get(Va,null);N&&(w=N)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,x),R}insert(p,m){const _=p._lView,C=_[1];if(function kt(h){return Qi(h[3])}(_)){const R=this.indexOf(p);if(-1!==R)this.detach(R);else{const N=_[3],J=new wd(N,N[6],N[3]);J.detach(J.indexOf(p))}}const w=this._adjustIndex(m),v=this._lContainer;!function Nu(h,p,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=p),_0)_.push(v[x/2]);else{const P=w[x+1],R=p[-S];for(let N=10;N{class h{constructor(m){this.appInits=m,this.resolve=Bp,this.reject=Bp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:x,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return h.\u0275fac=function(m){return new(m||h)(ui(Dd,8))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const Op=new qt("AppId"),eA={provide:Op,useFactory:function Xv(){return`${Fp()}${Fp()}${Fp()}`},deps:[]};function Fp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const K_=new qt("Platform Initializer"),Lp=new qt("Platform ID"),Z_=new qt("appBootstrapListener");let eb=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const Pd=new qt("LocaleId"),tb=new qt("DefaultCurrencyCode");class iA{constructor(p,m){this.ngModuleFactory=p,this.componentFactories=m}}let jp=(()=>{class h{compileModuleSync(m){return new md(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Hn(di(m).declarations).reduce((v,x)=>{const S=oi(x);return S&&v.push(new Ia(S)),v},[]);return new iA(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const aA=(()=>Promise.resolve(0))();function Np(h){"undefined"==typeof Zone?aA.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class en{constructor({enableLongStackTrace:p=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const C=this;C._nesting=0,C._outer=C._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),p&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function ki(){let h=lt.requestAnimationFrame,p=lt.cancelAnimationFrame;if("undefined"!=typeof Zone&&h&&p){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=p[Zone.__symbol__("OriginalDelegate")];_&&(p=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:p}}().nativeRequestAnimationFrame,function qs(h){const p=()=>{!function zp(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(lt,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Up(h),h.isCheckStableRunning=!0,El(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Up(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,x)=>{try{return nb(h),m.invokeTask(C,w,v,x)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&p(),qp(h)}},onInvoke:(m,_,C,w,v,x,S)=>{try{return nb(h),m.invoke(C,w,v,x,S)}finally{h.shouldCoalesceRunChangeDetection&&p(),qp(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,Up(h),El(h)):"macroTask"==w.change&&(h.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),h.runOutsideAngular(()=>h.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!en.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(en.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(p,m,_){return this._inner.run(p,m,_)}runTask(p,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,p,Rd,Bp,Bp);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(p,m,_){return this._inner.runGuarded(p,m,_)}runOutsideAngular(p){return this._outer.run(p)}}const Rd={};function El(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function Up(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function nb(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function qp(h){h._nesting--,El(h)}class sA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(p,m,_){return p.apply(m,_)}runGuarded(p,m,_){return p.apply(m,_)}runOutsideAngular(p){return p()}runTask(p,m,_,C){return p.apply(m,_)}}let Gp=(()=>{class h{constructor(m){this._ngZone=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{en.assertNotInAngularZone(),Np(()=>{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())Np(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!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(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(ui(en))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})(),Wp=(()=>{class h{constructor(){this._applications=new Map,vr.addToWindow(this)}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return vr.findTestabilityInTree(this,m,_)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();class $p{addToWindow(p){}findTestabilityInTree(p,m,_){return null}}function _E(h){vr=h}let bn,vr=new $p;const rb=new qt("AllowMultipleToken");class lA{constructor(p,m){this.name=p,this.token=m}}function Yp(h,p,m=[]){const _=`Platform: ${p}`,C=new qt(_);return(w=[])=>{let v=ab();if(!v||v.injector.get(rb,!1))if(h)h(m.concat(w).concat({provide:C,useValue:!0}));else{const x=m.concat(w).concat({provide:C,useValue:!0},{provide:vh,useValue:"platform"});!function cA(h){if(bn&&!bn.destroyed&&!bn.injector.get(rb,!1))throw new re(400,"");bn=h.get(kd);const p=h.get(K_,null);p&&p.forEach(m=>m())}(kn.create({providers:x,name:_}))}return function dA(h){const p=ab();if(!p)throw new re(401,"");return p}()}}function ab(){return bn&&!bn.destroyed?bn:null}let kd=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const x=function uA(h,p){let m;return m="noop"===h?new sA:("zone.js"===h?void 0:h)||new en({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==p?void 0:p.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==p?void 0:p.ngZoneRunCoalescing)}),m}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),S=[{provide:en,useValue:x}];return x.run(()=>{const P=kn.create({providers:S,parent:this.injector,name:m.moduleType.name}),R=m.create(P),N=R.injector.get(gc,null);if(!N)throw new re(402,"");return x.runOutsideAngular(()=>{const J=x.onError.subscribe({next:ae=>{N.handleError(ae)}});R.onDestroy(()=>{sb(this._modules,R),J.unsubscribe()})}),function hA(h,p,m){try{const _=m();return jh(_)?_.catch(C=>{throw p.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw p.runOutsideAngular(()=>h.handleError(_)),_}}(N,x,()=>{const J=R.injector.get(La);return J.runInitializers(),J.donePromise.then(()=>(function $w(h){ze(h,"Expected localeId to be defined"),"string"==typeof h&&(r_=h.toLowerCase().replace(/_/g,"-"))}(R.injector.get(Pd,sl)||sl),this._moduleDoBootstrap(R),R))})})}bootstrapModule(m,_=[]){const C=Jp({},_);return function oA(h,p,m){const _=new md(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Sl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new re(403,"");m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,"");this._modules.slice().forEach(m=>m.destroy()),this._destroyListeners.forEach(m=>m()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(ui(kn))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();function Jp(h,p){return Array.isArray(p)?p.reduce(Jp,h):Object.assign(Object.assign({},h),p)}let Sl=(()=>{class h{constructor(m,_,C,w,v){this._zone=m,this._injector=_,this._exceptionHandler=C,this._componentFactoryResolver=w,this._initStatus=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const x=new B.y(P=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{P.next(this._stable),P.complete()})}),S=new B.y(P=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{en.assertNotInAngularZone(),Np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,P.next(!0))})})});const N=this._zone.onUnstable.subscribe(()=>{en.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{P.next(!1)}))});return()=>{R.unsubscribe(),N.unsubscribe()}});this.isStable=(0,j.T)(x,S.pipe((0,I.B)()))}bootstrap(m,_){if(!this._initStatus.done)throw new re(405,"");let C;C=m instanceof dt?m:this._componentFactoryResolver.resolveComponentFactory(m),this.componentTypes.push(C.componentType);const w=function Qp(h){return h.isBoundToModule}(C)?void 0:this._injector.get(Va),x=C.create(kn.NULL,[],_||C.selector,w),S=x.location.nativeElement,P=x.injector.get(Gp,null),R=P&&x.injector.get(Wp);return P&&R&&R.registerApplication(S,P),x.onDestroy(()=>{this.detachView(x.hostView),sb(this.components,x),R&&R.unregisterApplication(S)}),this._loadComponent(x),x}tick(){if(this._runningTick)throw new re(101,"");try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;sb(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(Z_,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return h.\u0275fac=function(m){return new(m||h)(ui(en),ui(kn),ui(gc),ui(cl),ui(La))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();function sb(h,p){const m=h.indexOf(p);m>-1&&h.splice(m,1)}let Xp=!0;function gA(){Xp=!1}let _A=(()=>{class h{}return h.__NG_ELEMENT_ID__=yE,h})();function yE(h){return function lb(h,p,m){if(ql(h)&&!m){const _=ut(h.index,p);return new Ls(_,_)}return 47&h.type?new Ls(p[16],p):null}(Ut(),be(),16==(16&h))}class rf{constructor(){}supports(p){return Zo(p)}create(p){return new Xr(p)}}const ci=(h,p)=>p;class Xr{constructor(p){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=p||ci}forEachItem(p){let m;for(m=this._itHead;null!==m;m=m._next)p(m)}forEachOperation(p){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,x),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,x,v,C)),Object.is(m.item,x)||this._addIdentityChange(m,x)):(m=this._mismatch(m,x,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=p,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let p;for(p=this._previousItHead=this._itHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._additionsHead;null!==p;p=p._nextAdded)p.previousIndex=p.currentIndex;for(this._additionsHead=this._additionsTail=null,p=this._movesHead;null!==p;p=p._nextMoved)p.previousIndex=p.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(p,m,_,C){let w;return null===p?w=this._itTail:(w=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(p.item,m)||this._addIdentityChange(p,m),this._reinsertAfter(p,w,C)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(p.item,m)||this._addIdentityChange(p,m),this._moveAfter(p,w,C)):p=this._addAfter(new yA(m,_),w,C),p}_verifyReinsertion(p,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?p=this._reinsertAfter(w,p._prev,C):p.currentIndex!=C&&(p.currentIndex=C,this._addToMoves(p,C)),p}_truncate(p){for(;null!==p;){const m=p._next;this._addToRemovals(this._unlink(p)),p=m}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(p,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);const C=p._prevRemoved,w=p._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(p,m,_),this._addToMoves(p,_),p}_moveAfter(p,m,_){return this._unlink(p),this._insertAfter(p,m,_),this._addToMoves(p,_),p}_addAfter(p,m,_){return this._insertAfter(p,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=p:this._additionsTail._nextAdded=p,p}_insertAfter(p,m,_){const C=null===m?this._itHead:m._next;return p._next=C,p._prev=m,null===C?this._itTail=p:C._prev=p,null===m?this._itHead=p:m._next=p,null===this._linkedRecords&&(this._linkedRecords=new af),this._linkedRecords.put(p),p.currentIndex=_,p}_remove(p){return this._addToRemovals(this._unlink(p))}_unlink(p){null!==this._linkedRecords&&this._linkedRecords.remove(p);const m=p._prev,_=p._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,p}_addToMoves(p,m){return p.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=p:this._movesTail._nextMoved=p),p}_addToRemovals(p){return null===this._unlinkedRecords&&(this._unlinkedRecords=new af),this._unlinkedRecords.put(p),p.currentIndex=null,p._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=p,p._prevRemoved=null):(p._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=p),p}_addIdentityChange(p,m){return p.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=p:this._identityChangesTail._nextIdentityChange=p,p}}class yA{constructor(p,m){this.item=p,this.trackById=m,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 Ml{constructor(){this._head=null,this._tail=null}add(p){null===this._head?(this._head=this._tail=p,p._nextDup=null,p._prevDup=null):(this._tail._nextDup=p,p._prevDup=this._tail,p._nextDup=null,this._tail=p)}get(p,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,p))return _;return null}remove(p){const m=p._prevDup,_=p._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class af{constructor(){this.map=new Map}put(p){const m=p.trackById;let _=this.map.get(m);_||(_=new Ml,this.map.set(m,_)),_.add(p)}get(p,m){const C=this.map.get(p);return C?C.get(p,m):null}remove(p){const m=p.trackById;return this.map.get(m).remove(p)&&this.map.delete(m),p}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function sf(h,p,m){const _=h.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(p,m){if(p){const _=p._prev;return m._next=p,m._prev=_,p._prev=m,_&&(_._next=m),p===this._mapHead&&(this._mapHead=m),this._appendAfter=p,p}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(p,m){if(this._records.has(p)){const C=this._records.get(p);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new pb(p);return this._records.set(p,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(p,m){Object.is(m,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=m,this._addToChanges(p))}_addToAdditions(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}_addToChanges(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}_forEach(p,m){p instanceof Map?p.forEach(m):Object.keys(p).forEach(_=>m(p[_],_))}}class pb{constructor(p){this.key=p,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 cf(){return new Hl([new rf])}let Hl=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||cf()),deps:[[h,new xo,new rs]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new re(901,"")}}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:cf}),h})();function Dl(){return new Pl([new lf])}let Pl=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||Dl()),deps:[[h,new xo,new rs]]}}find(m){const _=this.factories.find(w=>w.supports(m));if(_)return _;throw new re(901,"")}}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:Dl}),h})();const fb=[new lf],mb=new Hl([new rf]),vA=new Pl(fb),_b=Yp(null,"core",[{provide:Lp,useValue:"unknown"},{provide:kd,deps:[kn]},{provide:Wp,deps:[]},{provide:eb,deps:[]}]),yb=[{provide:Sl,useClass:Sl,deps:[en,kn,gc,cl,La]},{provide:ka,deps:[en],useFactory:function wb(h){let p=[];return h.onStable.subscribe(()=>{for(;p.length;)p.pop()()}),function(m){p.push(m)}}},{provide:La,useClass:La,deps:[[new rs,Dd]]},{provide:jp,useClass:jp,deps:[]},eA,{provide:Hl,useFactory:function df(){return mb},deps:[]},{provide:Pl,useFactory:function bb(){return vA},deps:[]},{provide:Pd,useFactory:function uf(h){return h||function Cb(){return"undefined"!=typeof $localize&&$localize.locale||sl}()},deps:[[new cc(Pd),new rs,new xo]]},{provide:tb,useValue:"USD"}];let hf=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(ui(Sl))},h.\u0275mod=ia({type:h}),h.\u0275inj=wn({providers:yb}),h})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),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(T){return(W||(W=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(T||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,T){this.data.set(E,T)}}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,T=null){super(W),this.reason=E,this.params=T}}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){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let E=this.inferHashAlgorithm(W.idTokenHeader),T=yield this.calcHash(W.accessToken,E),B=base64UrlEncode(T.substr(0,T.length/2)),j=W.idTokenClaims.at_hash.replace(/=/g,"");return B!==j&&(console.error("exptected at_hash: "+B),console.error("actual at_hash: "+j)),B===j})}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 T=E||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const g=T.indexOf("?");return T=T.substr(g>-1?g+1:1),this.parseQueryString(T)}parseQueryString(E){const T={};let g,B,j,I,O,Y,$;if(null===E)return T;g=E.split("&");for(let U=0;U>6,B[I++]=128|63&O):O<55296||O>=57344?(B[I++]=224|O>>12,B[I++]=128|O>>6&63,B[I++]=128|63&O):(O=65536+((1023&O)<<10|1023&z.charCodeAt(++T)),B[I++]=240|O>>18,B[I++]=128|O>>12&63,B[I++]=128|O>>6&63,B[I++]=128|63&O);z=B}else{if("object"!==g)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 Y=[],$=[];for(T=0;T<64;++T){var U=z[T]||0;Y[T]=92^U,$[T]=54^U}Sha256.call(this,W,E),this.update($),this.oKeyPad=Y,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 T,B,g=0,j=z.length,I=this.blocks;g>2]|=z[g]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[B>>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=I[16],this.start=B-64,this.hash(),this.hashed=!0):this.start=B}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 Y,L,ie,re,ne,le,z=this.h0,W=this.h1,E=this.h2,T=this.h3,g=this.h4,B=this.h5,j=this.h6,I=this.h7,O=this.blocks;for(Y=16;Y<64;++Y)O[Y]=O[Y-16]+(((L=O[Y-15])>>>7|L<<25)^(L>>>18|L<<14)^L>>>3)+O[Y-7]+(((L=O[Y-2])>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)<<0;for(le=W&E,Y=0;Y<64;Y+=4)this.first?(this.is224?(ie=300032,I=(L=O[0]-1413257819)-150054599<<0,T=L+24177077<<0):(ie=704751109,I=(L=O[0]-210244248)-1521486534<<0,T=L+143694565<<0),this.first=!1):(I=T+(L=I+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&B^~g&j)+K[Y]+O[Y])<<0,T=L+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((ie=z&W)^z&E^le))<<0),j=E+(L=j+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&g^~I&B)+K[Y+1]+O[Y+1])<<0,E=L+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((re=T&z)^T&W^ie))<<0,B=W+(L=B+((j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7))+(j&I^~j&g)+K[Y+2]+O[Y+2])<<0,W=L+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((ne=E&T)^E&z^re))<<0,g=z+(L=g+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&j^~B&I)+K[Y+3]+O[Y+3])<<0,z=L+(((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+((le=W&E)^W&T^ne))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+W<<0,this.h2=this.h2+E<<0,this.h3=this.h3+T<<0,this.h4=this.h4+g<<0,this.h5=this.h5+B<<0,this.h6=this.h6+j<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,T=this.h3,g=this.h4,B=this.h5,j=this.h6,I=this.h7,O=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[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[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[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]+HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j];return this.is224||(O+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),O},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,T=this.h3,g=this.h4,B=this.h5,j=this.h6,I=this.h7,O=[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,T>>24&255,T>>16&255,T>>8&255,255&T,g>>24&255,g>>16&255,g>>8&255,255&g,B>>24&255,B>>16&255,B>>8&255,255&B,j>>24&255,j>>16&255,j>>8&255,255&j];return this.is224||O.push(I>>24&255,I>>16&255,I>>8&255,255&I),O},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,T=new Uint8Array(E.length);for(W=0;W{class z{calcHash(E,T){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})}toHashString2(E){let T="";for(let g of E)T+=String.fromCharCode(g);return T}toHashString(E){const T=new Uint8Array(E);let g="";for(let B of T)g+=String.fromCharCode(B);return g}}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,T,g,B,j,I,O,Y,$,U){var F;super(),this.ngZone=E,this.http=T,this.config=j,this.urlHelper=I,this.logger=O,this.crypto=Y,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=$,j||(j={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),B&&(this.tokenValidationHandler=B),j&&this.configure(j);try{g?this.setStorage(g):"undefined"!=typeof sessionStorage&&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()){const L=null===(F=null==window?void 0:window.navigator)||void 0===F?void 0:F.userAgent;((null==L?void 0:L.includes("MSIE "))||(null==L?void 0:L.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const E="test";try{return void 0!==window.localStorage&&(localStorage.setItem(E,E),localStorage.removeItem(E),!0)}catch(T){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,g=!0){let B=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(j=>{"token_received"===j.type?B=!0:"logout"===j.type&&(B=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_expires"===j.type&&(null==T||"any"===T||j.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(j=>{B&&this.refreshInternal(E,g).catch(I=>{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=[],g=this.validateUrlForHttps(E),B=this.validateUrlAgainstIssuer(E);return g||T.push("https for all urls required. Also for urls received by discovery."),B||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(){"undefined"!=typeof window?((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()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),g=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)(g)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),g=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)(g)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}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 g=this.dateTimeService.now();return Math.max(0,(T-E)*this.timeoutFactor-(g-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((T,g)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(B=>{if(!this.validateDiscoveryDocument(B))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void g("discovery_document_validation_error");this.loginUrl=B.authorization_endpoint,this.logoutUrl=B.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=B.grant_types_supported,this.issuer=B.issuer,this.tokenEndpoint=B.token_endpoint,this.userinfoEndpoint=B.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=B.jwks_uri,this.sessionCheckIFrameUrl=B.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(B),this.revocationEndpoint=B.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(j=>{const O=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:B,jwks:j});this.eventsSubject.next(O),T(O)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",j)),g(j)})},B=>{this.logger.error("error loading discovery document",B),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",B)),g(B)}):g("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(g=>{this.jwks=g,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(g)},g=>{this.logger.error("error loading jwks",g),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",g)),T(g)}):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,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,T,g).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 g=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:g,observe:"response",responseType:"text"}).subscribe(B=>{if(this.debug("userinfo received",JSON.stringify(B)),B.headers.get("content-type").startsWith("application/json")){let j=JSON.parse(B.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||j.sub!==I.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");j=Object.assign({},I,j),this._storage.setItem("id_token_claims_obj",JSON.stringify(j)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:j})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(B.body))},B=>{this.logger.error("error loading user info",B),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",B)),T(B)})})}fetchTokenUsingPasswordFlow(E,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:T},g)}fetchTokenUsingGrant(E,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const j=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+j)}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 j of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(j,this.customQueryParams[j]);for(const j of Object.keys(T))B=B.set(j,T[j]);return g=g.set("Content-Type","application/x-www-form-urlencoded"),new Promise((j,I)=>{this.http.post(this.tokenEndpoint,B,{headers:g}).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(Y=>{this.storeIdToken(Y),j(O)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),j(O)},O=>{this.logger.error("Error performing ${grantType} flow",O),this.eventsSubject.next(new OAuthErrorEvent("token_error",O)),I(O)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,T)=>{let g=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")),B=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const j=btoa(`${this.clientId}:${this.dummyClientSecret}`);B=B.set("Authorization","Basic "+j)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const j of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(j,this.customQueryParams[j]);this.http.post(this.tokenEndpoint,g,{headers:B}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(j=>j.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(j.id_token,j.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>j)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(j))).subscribe(j=>{this.debug("refresh tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(j)},j=>{this.logger.error("Error refreshing token",j),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",j)),T(j)})})}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(g=>this.debug("tryLogin during silent refresh failed",g))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},T=!0){const g=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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const B=this.document.getElementById(this.silentRefreshIFrameName);B&&this.document.body.removeChild(B),this.silentRefreshSubject=g.sub;const j=this.document.createElement("iframe");j.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,E).then(U=>{j.setAttribute("src",U),this.silentRefreshShowIFrame||(j.style.display="none"),this.document.body.appendChild(j)});const O=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Y=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),$=(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__.S3)([O,Y,$]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(U=>{if(U instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===U.type||(U=new OAuthErrorEvent("silent_refresh_error",U)),this.eventsSubject.next(U),U;return"token_received"===U.type&&(U=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(U)),U})).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((g,B)=>{let O,I=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(I=E.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Y=G=>{this.tryLogin({customHashFragment:G,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),g(!0)},Q=>{U(),B(Q)})};I?O=window.setInterval(()=>{(!I||I.closed)&&(U(),B(new OAuthErrorEvent("popup_closed",{})))},500):B(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(O),window.removeEventListener("storage",L),window.removeEventListener("message",F),null!==I&&I.close(),I=null},F=G=>{const Q=this.processMessageEventMessage(G);Q&&null!==Q?(window.removeEventListener("storage",L),Y(Q)):console.log("false event firing")},L=G=>{"auth_hash"===G.key&&(window.removeEventListener("message",F),Y(G.newValue))};window.addEventListener("message",F),window.addEventListener("storage",L)}))}calculatePopupFeatures(E){const T=E.height||470,g=E.width||500,B=window.screenLeft+(window.outerWidth-g)/2;return`location=no,toolbar=no,width=${g},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${B}`}processMessageEventMessage(E){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const g=E.data;return g.startsWith(T)?"#"+g.substr(T.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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(),g=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),g.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",g,"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="",g="",B=!1,j={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const I=this;let O;O=g||this.redirectUri;const Y=yield this.createAndSaveNonce();if(E=E?Y+this.config.nonceStateSeparator+encodeURIComponent(E):Y,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const $=I.loginUrl.indexOf("?")>-1?"&":"?";let U=I.scope;this.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let F=I.loginUrl+$+"response_type="+encodeURIComponent(I.responseType)+"&client_id="+encodeURIComponent(I.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(O)+"&scope="+encodeURIComponent(U);if(this.responseType.includes("code")&&!this.disablePKCE){const[L,G]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",G):this._storage.setItem("PKCE_verifier",G),F+="&code_challenge="+L,F+="&code_challenge_method=S256"}T&&(F+="&login_hint="+encodeURIComponent(T)),I.resource&&(F+="&resource="+encodeURIComponent(I.resource)),I.oidc&&(F+="&nonce="+encodeURIComponent(Y)),B&&(F+="&prompt=none");for(const L of Object.keys(j))F+="&"+encodeURIComponent(L)+"="+encodeURIComponent(j[L]);if(this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))F+="&"+L+"="+encodeURIComponent(this.customQueryParams[L]);return F})}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 g={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(g=T),this.createLoginUrl(E,B,null,!1,g).then(this.config.openUri).catch(j=>{console.error("Error in initImplicitFlow",j),this.inImplicitFlow=!1})}initImplicitFlow(E="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(g=>"discovery_document_loaded"===g.type)).subscribe(g=>this.initImplicitFlowInternal(E,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const T=this;if(E.onTokenReceived){const g={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};E.onTokenReceived(g)}}storeAccessTokenResponse(E,T,g,B,j){if(this._storage.setItem("access_token",E),B&&!Array.isArray(B)?this._storage.setItem("granted_scopes",JSON.stringify(B.split(" "))):B&&Array.isArray(B)&&this._storage.setItem("granted_scopes",JSON.stringify(B)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),g){const I=1e3*g,Y=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+Y)}T&&this._storage.setItem("refresh_token",T),j&&j.forEach((I,O)=>{this._storage.setItem(O,I)})}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){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const T=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,g=this.getCodePartsFromUrl(T),B=g.code,j=g.state,I=g.session_state;if(!E.preventClearHashAfterLogin){const $=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,$)}let[O,Y]=this.parseState(j);if(this.state=Y,g.error){this.debug("error trying to login"),this.handleLoginError(E,g);const $=new OAuthErrorEvent("code_error",{},g);return this.eventsSubject.next($),Promise.reject($)}if(!E.disableNonceCheck){if(!O)return this.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!this.validateNonce(O)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.storeSessionState(I),B&&(yield this.getTokenFromCode(B,E),this.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 g=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 B;B=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),B?g=g.set("code_verifier",B):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(g,T)}fetchAndProcessToken(E,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let g=(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}`);g=g.set("Authorization","Basic "+B)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((B,j)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,E,{headers:g}).subscribe(I=>{this.debug("refresh 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,T.disableNonceCheck).then(O=>{this.storeIdToken(O),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),console.error("Error validating tokens"),console.error(O),j(O)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),j(I)})})}tryLoginImplicitFlow(E=null){let T;T=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const g=T.state;let[B,j]=this.parseState(g);if(this.state=j,T.error){this.debug("error trying to login"),this.handleLoginError(E,T);const U=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(U),Promise.reject(U)}const I=T.access_token,O=T.id_token,Y=T.session_state,$=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!g||this.oidc&&!O)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Y&&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(B)){const F=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(F),Promise.reject(F)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,$),this.oidc?this.processIdToken(O,I,E.disableNonceCheck).then(U=>E.validationHandler?E.validationHandler({accessToken:I,idClaims:U.idTokenClaims,idToken:U.idToken,state:g}).then(F=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(Y),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(U=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",U)),this.logger.error("Error validating tokens"),this.logger.error(U),Promise.reject(U))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let T=E,g="";if(E){const B=E.indexOf(this.config.nonceStateSeparator);B>-1&&(T=E.substr(0,B),g=E.substr(B+this.config.nonceStateSeparator.length))}return[T,g]}validateNonce(E){let T;return T=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?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,g=!1){const B=E.split("."),I=b64DecodeUnicode(this.padBase64(B[0])),O=JSON.parse(I),$=b64DecodeUnicode(this.padBase64(B[1])),U=JSON.parse($);let F;if(F=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(ne=>ne!==this.clientId)){const ne="Wrong audience: "+U.aud.join(",");return this.logger.warn(ne),Promise.reject(ne)}}else if(U.aud!==this.clientId){const ne="Wrong audience: "+U.aud;return this.logger.warn(ne),Promise.reject(ne)}if(!U.sub){const ne="No sub claim in id_token";return this.logger.warn(ne),Promise.reject(ne)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const ne=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(ne),Promise.reject(ne)}if(!U.iat){const ne="No iat claim in id_token";return this.logger.warn(ne),Promise.reject(ne)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const ne="Wrong issuer: "+U.iss;return this.logger.warn(ne),Promise.reject(ne)}if(!g&&U.nonce!==F){const ne="Wrong nonce: "+U.nonce;return this.logger.warn(ne),Promise.reject(ne)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const ne="An at_hash is needed!";return this.logger.warn(ne),Promise.reject(ne)}const L=this.dateTimeService.now(),G=1e3*U.iat,Q=1e3*U.exp,ie=this.getClockSkewInMsec();if(G-ie>=L||Q+ie<=L){const ne="Token has expired";return console.error(ne),console.error({now:L,issuedAtMSec:G,expiresAtMSec:Q}),Promise.reject(ne)}const re={accessToken:T,idToken:E,jwks:this.jwks,idTokenClaims:U,idTokenHeader:O,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(ne=>({idToken:E,idTokenClaims:U,idTokenClaimsJson:$,idTokenHeader:O,idTokenHeaderJson:I,idTokenExpiresAt:Q})):this.checkAtHash(re).then(ne=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ne){const le="Wrong at_hash";return this.logger.warn(le),Promise.reject(le)}return this.checkSignature(re).then(le=>{const Ae={idToken:E,idTokenClaims:U,idTokenClaimsJson:$,idTokenHeader:O,idTokenHeaderJson:I,idTokenExpiresAt:Q};return this.disableAtHashCheck?Ae:this.checkAtHash(re).then(Be=>{if(this.requestAccessToken&&!Be){const ft="Wrong at_hash";return this.logger.warn(ft),Promise.reject(ft)}return Ae})})})}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 g=!1;"boolean"==typeof E&&(g=E,E={});const B=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(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||g||!B&&!this.postLogoutRedirectUri)return;let j;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)j=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(B)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});B&&(I=I.set("id_token_hint",B));const O=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";O&&(I=I.set("post_logout_redirect_uri",O),T&&(I=I.set("state",T)));for(let Y in E)I=I.set(Y,E[Y]);j=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(j)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(T){return E.saveNoncesInLocalStorage&&void 0!==window.localStorage?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 g=45,B="";const j="undefined"==typeof self?null:self.crypto||self.msCrypto;if(j){let I=new Uint8Array(g);j.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(O=>T.charCodeAt(O%T.length)),B=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===g.type)).subscribe(g=>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 g={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(g=T),this.createLoginUrl(E,B,null,!1,g).then(this.config.openUri).catch(j=>{console.error("Error in initAuthorizationCodeFlow"),console.error(j)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const E=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(E,"sha-256")),E]})}extractRecognizedCustomParameters(E){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>{E[g]&&T.set(g,JSON.stringify(E[g]))}),T}revokeTokenAndLogout(E={},T=!1){let g=this.revocationEndpoint,B=this.getAccessToken(),j=this.getRefreshToken();if(!B)return;let I=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 Y=btoa(`${this.clientId}:${this.dummyClientSecret}`);O=O.set("Authorization","Basic "+Y)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Y of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(Y,this.customQueryParams[Y]);return new Promise((Y,$)=>{let U,F;if(B){let L=I.set("token",B).set("token_type_hint","access_token");U=this.http.post(g,L,{headers:O})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(j){let L=I.set("token",j).set("token_type_hint","refresh_token");F=this.http.post(g,L,{headers:O})}else F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>0===L.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(L))),F=F.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>0===L.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(L)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([U,F]).subscribe(L=>{this.logOut(E),Y(L),this.logger.info("Token successfully revoked")},L=>{this.logger.error("Error revoking token",L),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",L)),$(L)})})}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,T,g){this.oAuthService=E,this.errorHandler=T,this.moduleConfig=g}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 g=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(g)?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)(j=>!!j)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_received"===j.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(j=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(j=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(j=>{if(j){const O=E.headers.set("Authorization","Bearer "+j);E=E.clone({headers:O})}return T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(j=>this.errorHandler.handleError(j))):T.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"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(E=null,T=NullValidationHandler){return{ngModule:z,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 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")},4147:z=>{"use strict";z.exports={i8:"8.0.0"}}},z=>{z(z.s=2342)}]); \ No newline at end of file +(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{2342:(z,W,E)=>{"use strict";var T=E(9808),g=E(5e3);class B extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class j extends B{static makeCurrent(){(0,T.HT)(new j)}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 I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function $(o){Y=Y||document.createElement("a"),Y.setAttribute("href",o);const a=Y.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let Y,I=null;const G=new g.OlP("TRANSITION_ID"),L=[{provide:g.ip1,useFactory:function F(o,a,e){return()=>{e.get(g.CZH).donePromise.then(()=>{const t=(0,T.q)(),s=a.querySelectorAll(`style[ng-transition="${o}"]`);for(let c=0;c{const c=a.findTestabilityInTree(t,s);if(null==c)throw new Error("Could not find testability for element.");return c},g.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),g.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),g.dqk.frameworkStabilizers||(g.dqk.frameworkStabilizers=[]),g.dqk.frameworkStabilizers.push(t=>{const s=g.dqk.getAllAngularTestabilities();let c=s.length,l=!1;const n=function(i){l=l||i,c--,0==c&&t(l)};s.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const s=a.getTestability(e);return null!=s?s:t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let Q=(()=>{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const ie=new g.OlP("EventManagerPlugins");let re=(()=>{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 c=0;c{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=g.Yz7({token:o,factory:o.\u0275fac}),o})(),xe=(()=>{class o extends le{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(c=>{const l=this._doc.createElement("style");l.textContent=c,s.push(t.appendChild(l))})}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(Ae),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ae))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function Ae(o){(0,T.q)().remove(o)}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/"},ft=/%COMP%/g;function he(o,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return o;!1===o(a)&&(a.preventDefault(),a.returnValue=!1)}}let we=(()=>{class o{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new ce(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case g.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Bi(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case g.ifc.ShadowDom:return new ze(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=he(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)(g.LFG(re),g.LFG(xe),g.LFG(g.AFp))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class ce{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Be[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){a.appendChild(e)}insertBefore(a,e,t){a&&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 c=Be[s];c?a.setAttributeNS(c,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const s=Be[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&(g.JOm.DashCase|g.JOm.Important)?a.style.setProperty(e,t,s&g.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&g.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,pe(t)):this.eventManager.addEventListener(a,e,pe(t))}}class Bi extends ce{constructor(a,e,t,s){super(a),this.component=t;const c=he(s+"-"+t.id,t.styles,[]);e.addStyles(c),this.contentAttr=function Ze(o){return"_ngcontent-%COMP%".replace(ft,o)}(s+"-"+t.id),this.hostAttr=function oe(o){return"_nghost-%COMP%".replace(ft,o)}(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 ze extends ce{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 c=he(s.id,s.styles,[]);for(let l=0;l{class o extends ne{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)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const yn=["alt","control","meta","shift"],or={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Vt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Er={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let wn=(()=>{class o extends ne{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,s){const c=o.parseEventName(t),l=o.eventCallback(c.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,c.domEventName,l))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const c=o._normalizeKey(t.pop());let l="";if(yn.forEach(i=>{const r=t.indexOf(i);r>-1&&(t.splice(r,1),l+=i+".")}),l+=c,0!=t.length||0===c.length)return null;const n={};return n.domEventName=s,n.fullKey=l,n}static getEventFullKey(e){let t="",s=function si(o){let a=o.key;if(null==a){if(a=o.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===o.location&&Vt.hasOwnProperty(a)&&(a=Vt[a]))}return or[a]||a}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),yn.forEach(c=>{c!=s&&Er[c](e)&&(t+=c+".")}),t+=s,t}static eventCallback(e,t,s){return c=>{o.getEventFullKey(c)===e&&s.runGuarded(()=>t(c))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const Sr=(0,g.eFA)(g._c5,"browser",[{provide:g.Lbi,useValue:T.bD},{provide:g.g9A,useValue:function lr(){j.makeCurrent(),q.init()},multi:!0},{provide:T.K0,useFactory:function Ya(){return(0,g.RDi)(document),document},deps:[]}]),cr=[{provide:g.zSh,useValue:"root"},{provide:g.qLn,useFactory:function Qa(){return new g.qLn},deps:[]},{provide:ie,useClass:tt,multi:!0,deps:[T.K0,g.R0b,g.Lbi]},{provide:ie,useClass:wn,multi:!0,deps:[T.K0]},{provide:we,useClass:we,deps:[re,xe,g.AFp]},{provide:g.FYo,useExisting:we},{provide:le,useExisting:xe},{provide:xe,useClass:xe,deps:[T.K0]},{provide:g.dDg,useClass:g.dDg,deps:[g.R0b]},{provide:re,useClass:re,deps:[ie,g.R0b]},{provide:T.JF,useClass:Q,deps:[]}];let Mr=(()=>{class o{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:o,providers:[{provide:g.AFp,useValue:e.appId},{provide:G,useExisting:g.AFp},L]}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(o,12))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:cr,imports:[T.ez,g.hGG]}),o})(),Oi=(()=>{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)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function mi(){return new Oi((0,g.LFG)(T.K0))}(),t},providedIn:"root"}),o})();"undefined"!=typeof window&&window;let xn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):g.LFG(ia),t},providedIn:"root"}),o})(),ia=(()=>{class o extends xn{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case g.q3G.NONE:return t;case g.q3G.HTML:return(0,g.qzn)(t,"HTML")?(0,g.z3N)(t):(0,g.EiD)(this._doc,String(t)).toString();case g.q3G.STYLE:return(0,g.qzn)(t,"Style")?(0,g.z3N)(t):t;case g.q3G.SCRIPT:if((0,g.qzn)(t,"Script"))return(0,g.z3N)(t);throw new Error("unsafe value used in a script context");case g.q3G.URL:return(0,g.yhl)(t),(0,g.qzn)(t,"URL")?(0,g.z3N)(t):(0,g.mCW)(String(t));case g.q3G.RESOURCE_URL:if((0,g.qzn)(t,"ResourceURL"))return(0,g.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,g.JVY)(e)}bypassSecurityTrustStyle(e){return(0,g.L6k)(e)}bypassSecurityTrustScript(e){return(0,g.eBb)(e)}bypassSecurityTrustUrl(e){return(0,g.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,g.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function jl(o){return new ia(o.get(T.K0))}(g.LFG(g.zs3)),t},providedIn:"root"}),o})();var y=E(520);class Ot{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Ft=new g.OlP("basePath");class je{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 Tn=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}convertAttributeToUnique(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}createAttributeDefinition(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}deleteAttributeDefinition(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}deleteAttributeDefinitions(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAllAttributeDefinitions(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getAttribute(e,t,s,c,l,n,i,r,d,u,f,b="body",D=!1,U){let se=new y.LE({encoder:this.encoder});null!=e&&(se=this.addToHttpParams(se,e,"attributeName")),null!=t&&(se=this.addToHttpParams(se,t,"attributeId")),null!=s&&(se=this.addToHttpParams(se,s,"facility")),null!=c&&(se=this.addToHttpParams(se,c,"user")),null!=l&&(se=this.addToHttpParams(se,l,"vo")),null!=n&&(se=this.addToHttpParams(se,n,"resource")),null!=i&&(se=this.addToHttpParams(se,i,"member")),null!=r&&(se=this.addToHttpParams(se,r,"group")),null!=d&&(se=this.addToHttpParams(se,d,"host")),null!=u&&(se=this.addToHttpParams(se,u,"userExtSource")),null!=f&&(se=this.addToHttpParams(se,f,"key"));let rt,De=this.defaultHeaders;rt=this.configuration.lookupCredential("BasicAuth"),rt&&(De=De.set("Authorization","Basic "+rt)),rt=this.configuration.lookupCredential("BearerAuth"),rt&&(De=De.set("Authorization","Bearer "+rt));let Qe=U&&U.httpHeaderAccept;void 0===Qe&&(Qe=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Qe&&(De=De.set("Accept",Qe));let vt=U&&U.context;void 0===vt&&(vt=new y.qT);let jn="json";return Qe&&(jn=Qe.startsWith("text")?"text":this.configuration.isJsonMime(Qe)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:vt,params:se,responseType:jn,withCredentials:this.configuration.withCredentials,headers:De,observe:b,reportProgress:D})}getAttributeDefinitionById(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeDefinitionByName(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeDefinitionsByNamespace(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getAttributeModulesDependenciesGraphText(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributePolicyCollections(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeRights(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributesDefinitionWithRights(e,t,s,c,l,n,i,r,d="body",u=!1,f){let b=new y.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=s&&(b=this.addToHttpParams(b,s,"vo")),null!=c&&(b=this.addToHttpParams(b,c,"group")),null!=l&&(b=this.addToHttpParams(b,l,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=r&&(b=this.addToHttpParams(b,r,"userExtSource"));let U,D=this.defaultHeaders;U=this.configuration.lookupCredential("BasicAuth"),U&&(D=D.set("Authorization","Basic "+U)),U=this.configuration.lookupCredential("BearerAuth"),U&&(D=D.set("Authorization","Bearer "+U));let se=f&&f.httpHeaderAccept;void 0===se&&(se=this.configuration.selectHeaderAccept(["application/json"])),void 0!==se&&(D=D.set("Accept",se));let De=f&&f.context;void 0===De&&(De=new y.qT);let rt="json";return se&&(rt=se.startsWith("text")?"text":this.configuration.isJsonMime(se)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:De,params:b,responseType:rt,withCredentials:this.configuration.withCredentials,headers:D,observe:d,reportProgress:u})}getEntitylessAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getEntitylessAttributesByKey(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getEntitylessAttributesByName(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getEntitylessAttributesWithKeys(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"keys[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getEntitylessKeys(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getFacilityAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getFacilityAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getFacilityAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getFacilityAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getFacilityResourceUserMemberAttributes(e,t,s,c,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==c)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"facility")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),null!=s&&(r=this.addToHttpParams(r,s,"user")),null!=c&&(r=this.addToHttpParams(r,c,"member"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupResourceAttributeById(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getGroupResourceAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getHostAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getHostAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getHostAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getHostAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getLogins(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getMemberAndUserAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberAndUserAttributesByNames(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(D=>{i=this.addToHttpParams(i,D,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getMemberAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberGroupAndUserAttributesByNames(e,t,s,c,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==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"member")),null!=t&&(r=this.addToHttpParams(r,t,"group")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberGroupAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberGroupAttributesByNames(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attrNames[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,c,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==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"member")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesDefinition(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesFacility(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesFacilityService(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesFacilityServices(e,t,s="body",c=!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 y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesGroupResourceService(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getRequiredAttributesHostService(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesMember(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesMemberGroup(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,c,l,n="body",i=!1,r){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==c)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=s&&(d=this.addToHttpParams(d,s,"group")),null!=c&&(d=this.addToHttpParams(d,c,"member")),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let U="json";return b&&(U=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:D,params:d,responseType:U,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,c,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 r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"service")),null!=t&&(r=this.addToHttpParams(r,t,"group")),null!=s&&(r=this.addToHttpParams(r,s,"member")),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,c,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 r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"service")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),null!=s&&(r=this.addToHttpParams(r,s,"member")),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesResourceService(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesResourceServices(e,t,s="body",c=!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 y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesUserFacility(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesVoService(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getResourceAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceGroupAndGroupAttributes(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,c,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==c)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"resource")),null!=t&&(r=this.addToHttpParams(r,t,"group")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceGroupMemberAttributesByNames(e,t,s,c,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==c)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"resource")),null!=t&&(r=this.addToHttpParams(r,t,"group")),null!=s&&(r=this.addToHttpParams(r,s,"member")),c&&c.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getUserAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserFacilityAttributeById(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getUserFacilityAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getVoAttributeById(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getVoAttributeByName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getVoAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVoAttributesByNames(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,c,l,n,i="body",r=!1,d){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==c)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=s&&(u=this.addToHttpParams(u,s,"group")),null!=c&&(u=this.addToHttpParams(u,c,"user")),null!=l&&(u=this.addToHttpParams(u,l,"member")),n&&n.forEach(De=>{u=this.addToHttpParams(u,De,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(f=f.set("Accept",D));let U=d&&d.context;void 0===U&&(U=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:U,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:r})}removeAttributesForFacilityResourceUserMember(e,t,s,c,l,n="body",i=!1,r){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==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=s&&(d=this.addToHttpParams(d,s,"user")),null!=c&&(d=this.addToHttpParams(d,c,"member")),l&&l.forEach(se=>{d=this.addToHttpParams(d,se,"attributes[]")});let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let U="json";return b&&(U=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:D,params:d,responseType:U,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeFacilityAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeFacilityAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeGroupAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeGroupAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeGroupResourceAttribute(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeGroupResourceAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,c,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==c)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"group")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attributes[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}removeHostAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeHostAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeMemberAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeMemberAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeMemberAttributesWorkWithUserAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberGroupAttribute(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberGroupAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,c,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==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"member")),null!=t&&(r=this.addToHttpParams(r,t,"group")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attributes[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberResourceAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeResourceAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeResourceAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUesAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserExtSourceAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserFacilityAttribute(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeUserFacilityAttributes(e,t,s,c="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 y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeVoAttribute(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeVoAttributes(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}setAttributePolicyCollections(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setAttributeRights(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setEntitylessAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityResourceGroupUserMemberAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityResourceUserMemberAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupResourceAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupResourceAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setHostAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setHostAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberGroupAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberGroupAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberGroupWithUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberResourceAndUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberResourceAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberResourceAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberWithUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceGroupAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceGroupWithGroupAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserExtSourceAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserExtSourceAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserFacilityAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserFacilityAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setVoAttribute(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setVoAttributes(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}updateAttributeDefinition(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Wi=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getAuthzRichAdmins(e,t,s,c,l,n,i="body",r=!1,d){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==c)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=s&&(u=this.addToHttpParams(u,s,"complementaryObjectName")),c&&c.forEach(De=>{u=this.addToHttpParams(u,De,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(f=f.set("Accept",D));let U=d&&d.context;void 0===U&&(U=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:U,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:r})}getFacilitiesWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupRoleNames(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupRoles(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupsWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getLoggedUser(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getPerunPrincipal(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getSecurityTeamsWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserRoleNames(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserRoles(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVosWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}isFacilityAdmin(e,t="body",s=!1,c){let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isGroupAdmin(e,t="body",s=!1,c){let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isPerunAdmin(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}isVoAdmin(e,t="body",s=!1,c){let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}keepAlive(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setRoleWithUserComplementaryObject(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}unsetRoleWithGroupComplementaryObject(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}unsetRoleWithUserComplementaryObject(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),_i=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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,c,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==c)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"memberId")),null!=t&&(r=this.addToHttpParams(r,t,"queue")),null!=s&&(r=this.addToHttpParams(r,s,"subject")),null!=c&&(r=this.addToHttpParams(r,c,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}sentMessageToRTWithVo(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,c,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==c)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"voId")),null!=t&&(r=this.addToHttpParams(r,t,"queue")),null!=s&&(r=this.addToHttpParams(r,s,"subject")),null!=c&&(r=this.addToHttpParams(r,c,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Sn=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}addUserExtSource(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}anonymizeUser(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}changeNonAuthzPasswordByToken(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"token")),null!=t&&(i=this.addToHttpParams(i,t,"password")),null!=s&&(i=this.addToHttpParams(i,s,"lang"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}changePasswordForLogin(e,t,s,c,l,n="body",i=!1,r){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==s)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"login")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=s&&(d=this.addToHttpParams(d,s,"newPassword")),null!=c&&(d=this.addToHttpParams(d,c,"oldPassword")),null!=l&&(d=this.addToHttpParams(d,l,"checkOldPassword"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let U="json";return b&&(U=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:D,params:d,responseType:U,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}changePasswordForUser(e,t,s,c,l,n="body",i=!1,r){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==s)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=s&&(d=this.addToHttpParams(d,s,"newPassword")),null!=c&&(d=this.addToHttpParams(d,c,"oldPassword")),null!=l&&(d=this.addToHttpParams(d,l,"checkOldPassword"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let U="json";return b&&(U=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:D,params:d,responseType:U,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}checkPasswordResetRequestByTokenIsValid(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}checkPasswordStrength(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"password")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}createAlternativePassword(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==s)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==c)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"user")),null!=t&&(r=this.addToHttpParams(r,t,"description")),null!=s&&(r=this.addToHttpParams(r,s,"loginNamespace")),null!=c&&(r=this.addToHttpParams(r,c,"password"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}createServiceUser(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}deleteAlternativePassword(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}deletePasswordForLogin(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}deletePasswordForUser(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}deleteUser(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}findRichUsers(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}findRichUsersWithAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}findUsers(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}generateAccountForName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getAllRichUsersWithAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAssignedRichResourcesForUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupsForFacilityWhereUserIsActive(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupsForResourceWhereUserIsActive(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupsInVoWhereUserIsAdmin(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupsWhereUserIsAdmin(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getPendingPreferredEmailChanges(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUserExtSources(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUserWithAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersWithAttributesByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersWithoutVoWithAttributes(e,t="body",s=!1,c){let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getSpecificUsersByUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getSponsorsForMember(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getSponsorsForMemberByVoAndLogin(e,t,s,c,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 r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"vo")),null!=t&&(r=this.addToHttpParams(r,t,"extSourceName")),null!=s&&(r=this.addToHttpParams(r,s,"extLogin")),c&&c.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserById(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceById(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSources(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourcesByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsers(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getUsersByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsersBySpecificUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsersPage(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}getVosWhereUserIsAdmin(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVosWhereUserIsMember(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isLoginAvailable(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}loginExist(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeSpecificUserOwner(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserExtSource(e,t,s,c="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 y.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 d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}requestPreferredEmailChange(e,t,s,c,l,n,i="body",r=!1,d){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 u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"email")),null!=s&&(u=this.addToHttpParams(u,s,"lang")),null!=c&&(u=this.addToHttpParams(u,c,"linkPath")),null!=l&&(u=this.addToHttpParams(u,l,"customUrl")),null!=n&&(u=this.addToHttpParams(u,n,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(f=f.set("Accept",D));let U=d&&d.context;void 0===U&&(U=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:U,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:r})}reservePasswordForLogin(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==s)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"login")),null!=t&&(i=this.addToHttpParams(i,t,"namespace")),null!=s&&(i=this.addToHttpParams(i,s,"password"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}reservePasswordForUser(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==s)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"namespace")),null!=s&&(i=this.addToHttpParams(i,s,"password"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}reserveRandomPassword(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}updateUser(e,t="body",s=!1,c){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=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}updateUserExtSourceLastAccess(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let l=new y.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 r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}validatePasswordForLogin(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}validatePasswordForUser(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}validatePreferredEmailChangeWithToken(e,t,s="body",c=!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 y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xe=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,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 Ot}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(c=>e=this.addToHttpParamsRecursive(e,c,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(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));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="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Of=(()=>{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:je,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(o,12),g.LFG(y.eN,8))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[],imports:[[]]}),o})();var st=(()=>{return(o=st||(st={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",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",st;var o})();let Ff=(()=>{class o{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const s=this.fetchPolicyWithAllIncludedPolicies(e);let c=[];for(const n of s)c=c.concat(n.perunRoles);const l=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(c,l)}principalHasRole(e,t,s){let c=t;return t.startsWith("Rich")&&(c=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][c])&&this.principal.roles[e][c].includes(Number(s.toString()))}canManageFacilities(){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER,st.FACILITYADMIN,st.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(st.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(st.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(st.PERUNADMIN,st.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(st.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(st.PERUNADMIN,st.VOOBSERVER,st.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{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.roleName)}),e.sort(),"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 c=new Map;this.setRolesAuthorization(t,e,c);for(const l of c.values())if(l.readAuth||l.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const c of e){let l=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===c){l=l.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const D of Object.keys(b.entitiesToManage))i="User"===D?[D].concat(i):i.concat(D);break}const r=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(l,r),u=this.resolveAuthorization(n,r);s.set(c,{readAuth:d,manageAuth:u,modes:i})}}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""}resolveAuthorization(e,t){for(const s of e){let c=!0;for(const l of Object.keys(s)){const n=s[l];if(null===n)this.principalRoles.has(l)||(c=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(l,n,i)){c=!1;break}}else c=!1;if(!c)break}if(c)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 c=s.beanName;switch(s.beanName.startsWith("Rich")&&(c=s.beanName.substring(4)),t[c]?t[c].push(s.id):t[c]=[s.id],c){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 l=s.shift();if(t.has(l))continue;const n=this.getPerunPolicy(l);if(!n)return[];t.set(l,n),s=s.concat(n.includePolicies)}const c=[];for(const l of t.values())c.push(l);return c}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.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const s=this.instanceConfig.brandings[this.branding];for(let c=0;c(0,cn.k)(s)?t(...s):t(s))):new Ci.y(s=>{Kd(o,a,function c(l){s.next(arguments.length>1?Array.prototype.slice.call(arguments):l)},s,e)})}function Kd(o,a,e,t,s){let c;if(function Zd(o){return o&&"function"==typeof o.addEventListener&&"function"==typeof o.removeEventListener}(o)){const l=o;o.addEventListener(a,e,s),c=()=>l.removeEventListener(a,e,s)}else if(function ro(o){return o&&"function"==typeof o.on&&"function"==typeof o.off}(o)){const l=o;o.on(a,e),c=()=>l.off(a,e)}else if(function Wl(o){return o&&"function"==typeof o.addListener&&"function"==typeof o.removeListener}(o)){const l=o;o.addListener(a,e),c=()=>l.removeListener(a,e)}else{if(!o||!o.length)throw new TypeError("Invalid event target");for(let l=0,n=o.length;l0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Ql=1;const jf=Promise.resolve(),es={};function ts(o){return o in es&&(delete es[o],!0)}const ao={setImmediate(o){const a=Ql++;return es[a]=!0,jf.then(()=>ts(a)&&o()),a},clearImmediate(o){ts(o)}},H=new class jt extends yi.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,s=-1,c=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++s0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=ao.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(ao.clearImmediate(e),a.scheduled=void 0)}});var k=E(353),M=E(826),V=E(9054);class de{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new me(a,this.durationSelector))}}class me extends M.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(a)}catch(s){return this.destination.error(s)}const t=(0,V.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,s){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Oe(o){return!(0,cn.k)(o)&&o-parseFloat(o)+1>=0}var Mt=E(2866);function xt(o=0,a,e){let t=-1;return Oe(a)?t=Number(a)<1?1:Number(a):(0,Mt.K)(a)&&(e=a),(0,Mt.K)(e)||(e=k.P),new Ci.y(s=>{const c=Oe(o)?o:+o-e.now();return e.schedule(ut,c,{index:0,period:t,subscriber:s})})}function ut(o){const{index:a,period:e,subscriber:t}=o;if(t.next(a),!t.closed){if(-1===e)return t.complete();o.index=a+1,this.schedule(o,e)}}function gt(o,a=k.P){return function X(o){return function(e){return e.lift(new de(o))}}(()=>xt(o,a))}var mt=E(2198);let kt;try{kt="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(o){kt=!1}let wi,Je=(()=>{class o{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&&!kt)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.Lbi))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Yi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();const Ge=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Rr(){if(wi)return wi;if("object"!=typeof document||!document)return wi=new Set(Ge),wi;let o=document.createElement("input");return wi=new Set(Ge.filter(a=>(o.setAttribute("type",a),o.type===a))),wi}let kr,oa,_t;function dn(o){return function so(){if(null==kr&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>kr=!0}))}finally{kr=kr||!1}return kr}()?o:!!o.capture}function tC(){if(null==oa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return oa=!1,oa;if("scrollBehavior"in document.documentElement.style)oa=!0;else{const o=Element.prototype.scrollTo;oa=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return oa}function Gt(o){if(function Nf(){if(null==_t){const o="undefined"!=typeof document?document.head:null;_t=!(!o||!o.createShadowRoot&&!o.attachShadow)}return _t}()){const a=o.getRootNode?o.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Jl(){let o="undefined"!=typeof document&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const a=o.shadowRoot.activeElement;if(a===o)break;o=a}return o}function Di(o){return o.composedPath?o.composedPath()[0]:o.target}function un(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const tu=new g.OlP("cdk-dir-doc",{providedIn:"root",factory:function iu(){return(0,g.f3M)(T.K0)}}),wx=/^(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 g.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function iC(o){const a=(null==o?void 0:o.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wx.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(tu,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ti=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),zf=(()=>{class o{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.xQ,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 Ci.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(gt(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,mt.h)(c=>!c||s.indexOf(c)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,c)=>{this._scrollableContainsElement(c,e)&&t.push(c)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Lt(t),c=e.getElementRef().nativeElement;do{if(s==c)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>no(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)(g.LFG(g.R0b),g.LFG(Je),g.LFG(T.K0,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),la=(()=>{class o{constructor(e,t,s){this._platform=e,this._change=new He.xQ,this._changeListener=c=>{this._change.next(c)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const c=this._getWindow();c.addEventListener("resize",this._changeListener),c.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,c=s.getBoundingClientRect();return{top:-c.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-c.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(gt(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)(g.LFG(Je),g.LFG(g.R0b),g.LFG(T.K0,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Un=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),ca=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ti,Yi,Un],ti,Un]}),o})();class Nt{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 co extends Nt{constructor(a,e,t,s){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class ou extends Nt{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}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 qf extends Nt{constructor(a){super(),this.element=a instanceof g.SBq?a.nativeElement:a}}class lu{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof co?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof ou?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof qf?(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 cC extends lu{constructor(a,e,t,s,c){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=l=>{const n=l.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=l,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=c}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),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{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);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 Kl=(()=>{class o extends lu{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new g.vpe,this.attachDomPortal=c=>{const l=c.element,n=this._document.createComment("dom-portal");c.setAttachedHost(this),l.parentNode.insertBefore(n,l),this._getRootNode().appendChild(l),this._attachedPortal=c,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},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,c=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),l=t.createComponent(c,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(l.hostView.rootNodes[0]),super.setDisposeFn(()=>l.destroy()),this._attachedPortal=e,this._attachedRef=l,this.attached.emit(l),l}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);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)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36(T.K0))},o.\u0275dir=g.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[g.qOj]}),o})(),uo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();var zt=E(2654),qn=E(6787),Qt=E(2986);function ht(o){return a=>a.lift(new hu(o))}class hu{constructor(a){this.notifier=a}call(a,e){const t=new uC(a),s=(0,V.D)(t,this.notifier);return s&&!t.seenValue?(t.add(s),e.subscribe(t)):t}}class uC extends M.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,s,c){this.seenValue=!0,this.complete()}notifyComplete(){}}const Wf=tC();class Sx{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=$t(-this._previousScrollPosition.left),a.style.top=$t(-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,c=t.scrollBehavior||"",l=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Wf&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Wf&&(t.scrollBehavior=c,s.scrollBehavior=l)}}_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 Zl{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 pu{enable(){}disable(){}attach(){}}function ho(o,a){return a.some(e=>o.bottome.bottom||o.righte.right)}function po(o,a){return a.some(e=>o.tope.bottom||o.lefte.right)}class $f{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();ho(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 Qf=(()=>{class o{constructor(e,t,s,c){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new pu,this.close=l=>new Zl(this._scrollDispatcher,this._ngZone,this._viewportRuler,l),this.block=()=>new Sx(this._viewportRuler,this._document),this.reposition=l=>new $f(this._scrollDispatcher,this._viewportRuler,this._ngZone,l),this._document=c}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(zf),g.LFG(la),g.LFG(g.R0b),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Br{constructor(a){if(this.scrollStrategy=new pu,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 fu{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class Yf{constructor(a,e,t,s,c,l,n,i,r){this._portalOutlet=a,this._host=e,this._pane=t,this._config=s,this._ngZone=c,this._keyboardDispatcher=l,this._document=n,this._location=i,this._outsideClickDispatcher=r,this._backdropElement=null,this._backdropClick=new He.xQ,this._attachments=new He.xQ,this._detachments=new He.xQ,this._locationChanges=zt.w.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._keydownEvents=new He.xQ,this._outsidePointerEvents=new He.xQ,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){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,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),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=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},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=$t(this._config.width),a.height=$t(this._config.height),a.minWidth=$t(this._config.minWidth),a.minHeight=$t(this._config.minHeight),a.maxWidth=$t(this._config.maxWidth),a.maxHeight=$t(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._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const s=to(e||[]).filter(c=>!!c);s.length&&(t?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(ht((0,qn.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.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let Xl=(()=>{class o{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||un()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let c=0;c{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,c=[];let l;for(let n of this._preferredPositions){let i=this._getOriginPoint(a,s,n),r=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(r,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,r,t)?c.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!l||l.overlayFit.visibleAreai&&(i=d,n=r)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(l.position,l.originPoint);this._applyPosition(l.position,l.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ur(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Jf),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,c;if("center"==t.originX)s=a.left+a.width/2;else{const l=this._isRtl()?a.right:a.left,n=this._isRtl()?a.left:a.right;s="start"==t.originX?l:n}return e.left<0&&(s-=e.left),c="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(c-=e.top),{x:s,y:c}}_getOverlayPoint(a,e,t){let s,c;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,c="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+s,y:a.y+c}}_getOverlayFit(a,e,t,s){const c=mo(e);let{x:l,y:n}=a,i=this._getOffset(s,"x"),r=this._getOffset(s,"y");i&&(l+=i),r&&(n+=r);let f=0-n,b=n+c.height-t.height,D=this._subtractOverflows(c.width,0-l,l+c.width-t.width),U=this._subtractOverflows(c.height,f,b),se=D*U;return{visibleArea:se,isCompletelyWithinViewport:c.width*c.height===se,fitsInViewportVertically:U===c.height,fitsInViewportHorizontally:D==c.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,c=t.right-e.x,l=ec(this._overlayRef.getConfig().minHeight),n=ec(this._overlayRef.getConfig().minWidth),r=a.fitsInViewportHorizontally||null!=n&&n<=c;return(a.fitsInViewportVertically||null!=l&&l<=s)&&r}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=mo(e),c=this._viewportRect,l=Math.max(a.x+s.width-c.width,0),n=Math.max(a.y+s.height-c.height,0),i=Math.max(c.top-t.top-a.y,0),r=Math.max(c.left-t.left-a.x,0);let d=0,u=0;return d=s.width<=c.width?r||-l:a.xD&&!this._isInitialRender&&!this._growAfterOpen&&(l=a.y-D/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)f=t.width-a.x+this._viewportMargin,d=a.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)u=a.x,d=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),D=this._lastBoundingBoxSize.width;d=2*b,u=a.x-b,d>D&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.x-D/2)}return{top:l,left:u,bottom:n,right:f,width:d,height:c}}_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 c=this._overlayRef.getConfig().maxHeight,l=this._overlayRef.getConfig().maxWidth;s.height=$t(t.height),s.top=$t(t.top),s.bottom=$t(t.bottom),s.width=$t(t.width),s.left=$t(t.left),s.right=$t(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",c&&(s.maxHeight=$t(c)),l&&(s.maxWidth=$t(l))}this._lastBoundingBoxSize=t,ur(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ur(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ur(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},s=this._hasExactPosition(),c=this._hasFlexibleDimensions,l=this._overlayRef.getConfig();if(s){const d=this._viewportRuler.getViewportScrollPosition();ur(t,this._getExactOverlayY(e,a,d)),ur(t,this._getExactOverlayX(e,a,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),r=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),r&&(n+=`translateY(${r}px)`),t.transform=n.trim(),l.maxHeight&&(s?t.maxHeight=$t(l.maxHeight):c&&(t.maxHeight="")),l.maxWidth&&(s?t.maxWidth=$t(l.maxWidth):c&&(t.maxWidth="")),ur(this._pane.style,t)}_getExactOverlayY(a,e,t){let s={top:"",bottom:""},c=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(c=this._pushOverlayOnScreen(c,this._overlayRect,t)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(c.y+this._overlayRect.height)+"px":s.top=$t(c.y),s}_getExactOverlayX(a,e,t){let l,s={left:"",right:""},c=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(c=this._pushOverlayOnScreen(c,this._overlayRect,t)),l=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===l?s.right=this._document.documentElement.clientWidth-(c.x+this._overlayRect.width)+"px":s.left=$t(c.x),s}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:po(a,t),isOriginOutsideView:ho(a,t),isOverlayClipped:po(e,t),isOverlayOutsideView:ho(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?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&to(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 g.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 ur(o,a){for(let e in a)a.hasOwnProperty(e)&&(o[e]=a[e]);return o}function ec(o){if("number"!=typeof o&&null!=o){const[a,e]=o.split(hC);return e&&"px"!==e?null:parseFloat(a)}return o||null}function mo(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 _o="cdk-global-overlay-wrapper";class pC{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}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(_o),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-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._justifyContent="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:c,maxWidth:l,maxHeight:n}=t,i=!("100%"!==s&&"100vw"!==s||l&&"100%"!==l&&"100vw"!==l),r=!("100%"!==c&&"100vh"!==c||n&&"100%"!==n&&"100vh"!==n);a.position=this._cssPosition,a.marginLeft=i?"0":this._leftOffset,a.marginTop=r?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,i?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=r?"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(_o),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Kf=(()=>{class o{constructor(e,t,s,c){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=c}global(){return new pC}flexibleConnectedTo(e){return new go(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(la),g.LFG(T.K0),g.LFG(Je),g.LFG(Xl))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),mu=(()=>{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)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Zf=(()=>{class o extends mu{constructor(e){super(e),this._keydownListener=t=>{const s=this._attachedOverlays;for(let c=s.length-1;c>-1;c--)if(s[c]._keydownEvents.observers.length>0){s[c]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(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)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xf=(()=>{class o extends mu{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Di(s)},this._clickListener=s=>{const c=Di(s),l="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(c)||r.overlayElement.contains(l))break;r._outsidePointerEvents.next(s)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),fC=0,Wn=(()=>{class o{constructor(e,t,s,c,l,n,i,r,d,u,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=c,this._keyboardDispatcher=l,this._injector=n,this._ngZone=i,this._document=r,this._directionality=d,this._location=u,this._outsideClickDispatcher=f}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),c=this._createPortalOutlet(s),l=new Br(e);return l.direction=l.direction||this._directionality.value,new Yf(c,t,s,l,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+fC++,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(g.z2F)),new cC(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Qf),g.LFG(Xl),g.LFG(g._Vd),g.LFG(Kf),g.LFG(Zf),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(hn),g.LFG(T.Ye),g.LFG(Xf))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const is={provide:new g.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Wn],useFactory:function eg(o){return()=>o.scrollStrategies.reposition()}};let ns=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Wn,is],imports:[[ti,uo,ca],ca]}),o})();var ha=E(5279);class ai extends He.xQ{constructor(a){super(),this._value=a}get value(){return this.getValue()}_subscribe(a){const e=super._subscribe(a);return e&&!e.closed&&a.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ha.N;return this._value}next(a){super.next(this._value=a)}}function pr(o,...a){return a.length?a.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var It=E(2868),fa=E(13),ga=E(3489);function Tu(o){return a=>a.lift(new pg(o))}class pg{constructor(a){this.total=a}call(a,e){return e.subscribe(new _0(a,this.total))}}class _0 extends ga.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}class C0{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new Eu(a,this.compare,this.keySelector))}}class Eu extends ga.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:s}=this;e=s?s(a):a}catch(s){return this.destination.error(s)}let t=!1;if(this.hasKey)try{const{compare:s}=this;t=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let uc=(()=>{class o{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Su=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Lt(e);return new Ci.y(s=>{const l=this._observeElement(t).subscribe(s);return()=>{l.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.xQ,s=this._mutationObserverFactory.create(c=>t.next(c));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)(g.LFG(uc))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),BC=(()=>{class o{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new g.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=it(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ln(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,fa.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Su),g.Y36(g.SBq),g.Y36(g.R0b))},o.\u0275dir=g.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),fg=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[uc]}),o})();function hc(o,a){return(o.getAttribute(a)||"").match(/\S+/g)||[]}const Hu="cdk-describedby-message",ma="cdk-describedby-host";let Du=0,Pu=(()=>{class o{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Du++,this._document=e}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const c=Ru(t,s);"string"!=typeof t?(qt(t),this._messageRegistry.set(c,{messageElement:t,referenceCount:0})):this._messageRegistry.has(c)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,c)||this._addMessageReference(e,c)}removeDescription(e,t,s){var c;if(!t||!this._isElementNode(e))return;const l=Ru(t,s);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const n=this._messageRegistry.get(l);n&&0===n.referenceCount&&this._deleteMessageElement(l)}0===(null===(c=this._messagesContainer)||void 0===c?void 0:c.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${ma}="${this._id}"]`);for(let s=0;s0!=s.indexOf(Hu));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function OC(o,a,e){const t=hc(o,a);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),o.setAttribute(a,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(ma,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function FC(o,a,e){const s=hc(o,a).filter(c=>c!=e.trim());s.length?o.setAttribute(a,s.join(" ")):o.removeAttribute(a)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(ma)}_isElementDescribedByMessage(e,t){const s=hc(e,"aria-describedby"),c=this._messageRegistry.get(t),l=c&&c.messageElement.id;return!!l&&-1!=s.indexOf(l)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),c=e.getAttribute("aria-label");return!(!s||c&&c.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ru(o,a){return"string"==typeof o?`${a||""}/${o}`:o}function qt(o){o.id||(o.id=`${Hu}-${Du++}`)}class Ho extends class gg{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.xQ,this._typeaheadSubscription=zt.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.xQ,this.change=new He.xQ,a instanceof g.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,It.b)(e=>this._pressedLetters.push(e)),(0,fa.b)(a),(0,mt.h)(()=>this._pressedLetters.length>0),(0,et.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!a[c]||this._allowedModifierKeys.indexOf(c)>-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||pr(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),s=e[t];this._activeItem=null==s?null:s,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 g.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 mg=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function NC(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 jC(o){try{return o.frameElement}catch(a){return null}}(function Ai(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===pc(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),c=pc(e);return e.hasAttribute("contenteditable")?-1!==c:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function _g(o){let a=o.nodeName.toLowerCase(),e="input"===a&&o.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==c:"video"===s?-1!==c&&(null!==c||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function bg(o){return!function GC(o){return function A0(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function zC(o){let a=o.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(o)||function v0(o){return function Do(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||vi(o))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function vi(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let a=o.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function pc(o){if(!vi(o))return null;const a=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class Po{constructor(a,e,t,s,c=!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,c||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 null==t||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 ku=(()=>{class o{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new Po(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(mg),g.LFG(g.R0b),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ro(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function fc(o){const a=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const WC=new g.OlP("cdk-input-modality-detector-options"),Iu={ignoreKeys:[18,17,224,91,16]},ss=dn({passive:!0,capture:!0});let Vu=(()=>{class o{constructor(e,t,s,c){this._platform=e,this._mostRecentTarget=null,this._modality=new ai(null),this._lastTouchMs=0,this._onKeydown=l=>{var n,i;(null===(i=null===(n=this._options)||void 0===n?void 0:n.ignoreKeys)||void 0===i?void 0:i.some(r=>r===l.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Di(l))},this._onMousedown=l=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ro(l)?"keyboard":"mouse"),this._mostRecentTarget=Di(l))},this._onTouchstart=l=>{fc(l)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Di(l))},this._options=Object.assign(Object.assign({},Iu),c),this.modalityDetected=this._modality.pipe(Tu(1)),this.modalityChanged=this.modalityDetected.pipe(function b0(o,a){return e=>e.lift(new C0(o,a))}()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,ss),s.addEventListener("mousedown",this._onMousedown,ss),s.addEventListener("touchstart",this._onTouchstart,ss)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ss),document.removeEventListener("mousedown",this._onMousedown,ss),document.removeEventListener("touchstart",this._onTouchstart,ss))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(WC,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const QC=new g.OlP("cdk-focus-monitor-default-options"),mc=dn({passive:!0,capture:!0});let Fr=(()=>{class o{constructor(e,t,s,c,l){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.xQ,this._rootNodeFocusAndBlurListener=n=>{const i=Di(n),r="focus"===n.type?this._onFocus:this._onBlur;for(let d=i;d;d=d.parentElement)r.call(this,n,d)},this._document=c,this._detectionMode=(null==l?void 0:l.detectionMode)||0}monitor(e,t=!1){const s=Lt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,ke.of)(null);const c=Gt(s)||this._getDocument(),l=this._elementInfo.get(s);if(l)return t&&(l.checkChildren=!0),l.subject;const n={checkChildren:t,subject:new He.xQ,rootNode:c};return this._elementInfo.set(s,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=Lt(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 c=Lt(e);c===this._getDocument().activeElement?this._getClosestElementsInfo(c).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof c.focus&&c.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:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0: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),c=Di(e);!s||!s.checkChildren&&t!==c||this._originChanged(t,this._getFocusOrigin(c),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.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.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,mc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,mc)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ht(this._stopInputModalityDetector)).subscribe(c=>{this._setOrigin(c,!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,mc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mc),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.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,c)=>{(c===e||s.checkChildren&&c.contains(e))&&t.push([c,s])}),t}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.R0b),g.LFG(Je),g.LFG(Vu),g.LFG(T.K0,8),g.LFG(QC,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const yg="cdk-high-contrast-black-on-white",wg="cdk-high-contrast-white-on-black",Bu="cdk-high-contrast-active";let vg=(()=>{class o{constructor(e,t){this._platform=e,this._document=t}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,c=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),c){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Bu),e.remove(yg),e.remove(wg),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Bu),e.add(yg)):2===t&&(e.add(Bu),e.add(wg))}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ou=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(vg))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yi,fg]]}),o})();var _c=E(9146);function os(...o){return function JC(){return(0,_c.J)(1)}()((0,ke.of)(...o))}function hi(...o){const a=o[o.length-1];return(0,Mt.K)(a)?(o.pop(),e=>os(o,e,a)):e=>os(o,e)}class Hn{}const Lr="*";function Jt(o,a){return{type:7,name:o,definitions:a,options:{}}}function Pt(o,a=null){return{type:4,styles:a,timings:o}}function bc(o,a=null){return{type:2,steps:o,options:a}}function Ve(o){return{type:6,styles:o,offset:null}}function bt(o,a,e){return{type:0,name:o,styles:a,options:e}}function jr(o){return{type:5,steps:o}}function wt(o,a,e=null){return{type:1,expr:o,animation:a,options:e}}function XC(o){Promise.resolve(null).then(o)}class $n{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(a)}onDone(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(){XC(()=>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}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 yc{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 c=this.players.length;0==c?XC(()=>this._onFinish()):this.players.forEach(l=>{l.onDone(()=>{++e==c&&this._onFinish()}),l.onDestroy(()=>{++t==c&&this._onDestroy()}),l.onStart(()=>{++s==c&&this._onStart()})}),this.totalTime=this.players.reduce((l,n)=>Math.max(l,n.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}}function ey(){return"undefined"!=typeof window&&void 0!==window.document}function ko(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Nr(o){switch(o.length){case 0:return new $n;case 1:return o[0];default:return new yc(o)}}function xg(o,a,e,t,s={},c={}){const l=[],n=[];let i=-1,r=null;if(t.forEach(d=>{const u=d.offset,f=u==i,b=f&&r||{};Object.keys(d).forEach(D=>{let U=D,se=d[D];if("offset"!==D)switch(U=a.normalizePropertyName(U,l),se){case"!":se=s[D];break;case Lr:se=c[D];break;default:se=a.normalizeStyleValue(D,U,se,l)}b[U]=se}),f||n.push(b),r=b,i=u}),l.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${l.join(d)}`)}return n}function Lu(o,a,e,t){switch(a){case"start":o.onStart(()=>t(e&&ju(e,"start",o)));break;case"done":o.onDone(()=>t(e&&ju(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&ju(e,"destroy",o)))}}function ju(o,a,e){const t=e.totalTime,c=Nu(o.element,o.triggerName,o.fromState,o.toState,a||o.phaseName,null==t?o.totalTime:t,!!e.disabled),l=o._data;return null!=l&&(c._data=l),c}function Nu(o,a,e,t,s="",c=0,l){return{element:o,triggerName:a,fromState:e,toState:t,phaseName:s,totalTime:c,disabled:!!l}}function Ji(o,a,e){let t;return o instanceof Map?(t=o.get(a),t||o.set(a,t=e)):(t=o[a],t||(t=o[a]=e)),t}function zu(o){const a=o.indexOf(":");return[o.substring(1,a),o.substr(a+1)]}let Io=(o,a)=>!1,Gu=(o,a,e)=>[];(ko()||"undefined"!=typeof Element)&&(Io=ey()?(o,a)=>{for(;a&&a!==document.documentElement;){if(a===o)return!0;a=a.parentNode||a.host}return!1}:(o,a)=>o.contains(a),Gu=(o,a,e)=>{if(e)return Array.from(o.querySelectorAll(a));const t=o.querySelector(a);return t?[t]:[]});let _a=null,Uu=!1;function qu(o){_a||(_a=function ba(){return"undefined"!=typeof document?document.body:null}()||{},Uu=!!_a.style&&"WebkitAppearance"in _a.style);let a=!0;return _a.style&&!function ty(o){return"ebkit"==o.substring(1,6)}(o)&&(a=o in _a.style,!a&&Uu&&(a="Webkit"+o.charAt(0).toUpperCase()+o.substr(1)in _a.style)),a}const Wu=Io,$u=Gu;let Vo=(()=>{class o{validateStyleProperty(e){return qu(e)}matchesElement(e,t){return!1}containsElement(e,t){return Wu(e,t)}query(e,t,s){return $u(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,c,l,n=[],i){return new $n(s,c)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),Qu=(()=>{class o{}return o.NOOP=new Vo,o})();const Bo="ng-enter",Oo="ng-leave",Ca="ng-trigger",ya=".ng-trigger",Ju="ng-animating",Fo=".ng-animating";function zr(o){if("number"==typeof o)return o;const a=o.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Lo(parseFloat(a[1]),a[2])}function Lo(o,a){return"s"===a?1e3*o:o}function Gr(o,a,e){return o.hasOwnProperty("duration")?o:function iy(o,a,e){let s,c=0,l="";if("string"==typeof o){const n=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return a.push(`The provided timing value "${o}" is invalid.`),{duration:0,delay:0,easing:""};s=Lo(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(c=Lo(parseFloat(i),n[4]));const r=n[5];r&&(l=r)}else s=o;if(!e){let n=!1,i=a.length;s<0&&(a.push("Duration values below 0 are not allowed for this animation step."),n=!0),c<0&&(a.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&a.splice(i,0,`The provided timing value "${o}" is invalid.`)}return{duration:s,delay:c,easing:l}}(o,a,e)}function wa(o,a={}){return Object.keys(o).forEach(e=>{a[e]=o[e]}),a}function Ur(o,a,e={}){if(a)for(let t in o)e[t]=o[t];else wa(o,e);return e}function Ku(o,a,e){return e?a+":"+e+";":""}function vc(o){let a="";for(let e=0;e{const s=Tc(t);e&&!e.hasOwnProperty(t)&&(e[t]=o.style[s]),o.style[s]=a[t]}),ko()&&vc(o))}function ls(o,a){o.style&&(Object.keys(a).forEach(e=>{const t=Tc(e);o.style[t]=""}),ko()&&vc(o))}function cs(o){return Array.isArray(o)?1==o.length?o[0]:bc(o):o}const Ac=new RegExp("{{\\s*(.+?)\\s*}}","g");function Hg(o){let a=[];if("string"==typeof o){let e;for(;e=Ac.exec(o);)a.push(e[1]);Ac.lastIndex=0}return a}function xc(o,a,e){const t=o.toString(),s=t.replace(Ac,(c,l)=>{let n=a[l];return a.hasOwnProperty(l)||(e.push(`Please provide a value for the animation param ${l}`),n=""),n.toString()});return s==t?o:s}function Ni(o){const a=[];let e=o.next();for(;!e.done;)a.push(e.value),e=o.next();return a}const ry=/-+([a-z0-9])/g;function Tc(o){return o.replace(ry,(...a)=>a[1].toUpperCase())}function ay(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ki(o,a,e){switch(a.type){case 7:return o.visitTrigger(a,e);case 0:return o.visitState(a,e);case 1:return o.visitTransition(a,e);case 2:return o.visitSequence(a,e);case 3:return o.visitGroup(a,e);case 4:return o.visitAnimate(a,e);case 5:return o.visitKeyframes(a,e);case 6:return o.visitStyle(a,e);case 8:return o.visitReference(a,e);case 9:return o.visitAnimateChild(a,e);case 10:return o.visitAnimateRef(a,e);case 11:return o.visitQuery(a,e);case 12:return o.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function Zu(o,a){return window.getComputedStyle(o)[a]}function ly(o,a){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function cy(o,a,e){if(":"==o[0]){const i=function Ke(o,a){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 i)return void a.push(i);o=i}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${o}" is not supported`),a;const s=t[1],c=t[2],l=t[3];a.push(Xu(s,l));"<"==c[0]&&!("*"==s&&"*"==l)&&a.push(Xu(l,s))}(t,e,a)):e.push(o),e}const jo=new Set(["true","1"]),No=new Set(["false","0"]);function Xu(o,a){const e=jo.has(o)||No.has(o),t=jo.has(a)||No.has(a);return(s,c)=>{let l="*"==o||o==s,n="*"==a||a==c;return!l&&e&&"boolean"==typeof s&&(l=s?jo.has(o):No.has(o)),!n&&t&&"boolean"==typeof c&&(n=c?jo.has(a):No.has(a)),l&&n}}const Pn=new RegExp("s*:selfs*,?","g");function Sc(o,a,e){return new eh(o).build(a,e)}class eh{constructor(a){this._driver=a}build(a,e){const t=new Pg(e);return this._resetContextStyleTimingState(t),Ki(this,cs(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,s=e.depCount=0;const c=[],l=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,r=i.name;r.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,c.push(this.visitState(i,e))}),i.name=r}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,s+=i.depCount,l.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:c,transitions:l,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 c=new Set,l=s||{};if(t.styles.forEach(n=>{if(nh(n)){const i=n;Object.keys(i).forEach(r=>{Hg(i[r]).forEach(d=>{l.hasOwnProperty(d)||c.add(d)})})}}),c.size){const n=Ni(c.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:a.name,style:t,options:s?{params:s}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Ki(this,cs(a.animation),e);return{type:1,matchers:ly(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ds(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Ki(this,t,e)),options:ds(a.options)}}visitGroup(a,e){const t=e.currentTime;let s=0;const c=a.steps.map(l=>{e.currentTime=t;const n=Ki(this,l,e);return s=Math.max(s,e.currentTime),n});return e.currentTime=s,{type:3,steps:c,options:ds(a.options)}}visitAnimate(a,e){const t=function Rg(o,a){let e=null;if(o.hasOwnProperty("duration"))e=o;else if("number"==typeof o)return us(Gr(o,a).duration,0,"");const t=o;if(t.split(/\s+/).some(c=>"{"==c.charAt(0)&&"{"==c.charAt(1))){const c=us(0,0,"");return c.dynamic=!0,c.strValue=t,c}return e=e||Gr(t,a),us(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let s,c=a.styles?a.styles:Ve({});if(5==c.type)s=this.visitKeyframes(c,e);else{let l=a.styles,n=!1;if(!l){n=!0;const r={};t.easing&&(r.easing=t.easing),l=Ve(r)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(l,e);i.isEmptyStep=n,s=i}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=[];Array.isArray(a.styles)?a.styles.forEach(l=>{"string"==typeof l?l==Lr?t.push(l):e.errors.push(`The provided style string value ${l} is not allowed.`):t.push(l)}):t.push(a.styles);let s=!1,c=null;return t.forEach(l=>{if(nh(l)){const n=l,i=n.easing;if(i&&(c=i,delete n.easing),!s)for(let r in n)if(n[r].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let s=e.currentTime,c=e.currentTime;t&&c>0&&(c-=t.duration+t.delay),a.styles.forEach(l=>{"string"!=typeof l&&Object.keys(l).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],r=i[n];let d=!0;r&&(c!=s&&c>=r.startTime&&s<=r.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${c}ms" and "${s}ms"`),d=!1),c=r.startTime),d&&(i[n]={startTime:c,endTime:s}),e.options&&function ny(o,a,e){const t=a.params||{},s=Hg(o);s.length&&s.forEach(c=>{t.hasOwnProperty(c)||e.push(`Unable to resolve the local animation param ${c} in the given list of values`)})}(l[n],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let c=0;const l=[];let n=!1,i=!1,r=0;const d=a.steps.map(De=>{const rt=this._makeStyleAst(De,e);let Qe=null!=rt.offset?rt.offset:function ih(o){if("string"==typeof o)return null;let a=null;if(Array.isArray(o))o.forEach(e=>{if(nh(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(nh(o)&&o.hasOwnProperty("offset")){const e=o;a=parseFloat(e.offset),delete e.offset}return a}(rt.styles),vt=0;return null!=Qe&&(c++,vt=rt.offset=Qe),i=i||vt<0||vt>1,n=n||vt0&&c{const Qe=f>0?rt==b?1:f*rt:l[rt],vt=Qe*se;e.currentTime=D+U.delay+vt,U.duration=vt,this._validateStyleAst(De,e),De.offset=Qe,t.styles.push(De)}),t}visitReference(a,e){return{type:8,animation:Ki(this,cs(a.animation),e),options:ds(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:ds(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:ds(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,s=a.options||{};e.queryCount++,e.currentQuery=a;const[c,l]=function gr(o){const a=!!o.split(/\s*,\s*/).find(e=>":self"==e);return a&&(o=o.replace(Pn,"")),o=o.replace(/@\*/g,ya).replace(/@\w+/g,e=>ya+"-"+e.substr(1)).replace(/:animating/g,Fo),[o,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+c:c,Ji(e.collectedStyles,e.currentQuerySelector,{});const n=Ki(this,cs(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:c,limit:s.limit||0,optional:!!s.optional,includeSelf:l,animation:n,originalSelector:a.selector,options:ds(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:Gr(a.timings,e.errors,!0);return{type:12,animation:Ki(this,cs(a.animation),e),timings:t,options:null}}}class Pg{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function nh(o){return!Array.isArray(o)&&"object"==typeof o}function ds(o){return o?(o=wa(o)).params&&(o.params=function th(o){return o?wa(o):null}(o.params)):o={},o}function us(o,a,e){return{duration:o,delay:a,easing:e}}function hs(o,a,e,t,s,c,l=null,n=!1){return{type:1,element:o,keyframes:a,preStyleProps:e,postStyleProps:t,duration:s,delay:c,totalTime:s+c,easing:l,subTimeline:n}}class ps{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 k0=new RegExp(":enter","g"),uy=new RegExp(":leave","g");function sh(o,a,e,t,s,c={},l={},n,i,r=[]){return(new hy).buildKeyframes(o,a,e,t,s,c,l,n,i,r)}class hy{buildKeyframes(a,e,t,s,c,l,n,i,r,d=[]){r=r||new ps;const u=new kg(a,e,r,s,c,d,[]);u.options=i,u.currentTimeline.setStyles([l],null,u.errors,i),Ki(this,t,u);const f=u.timelines.filter(b=>b.containsAnimation());if(Object.keys(n).length){let b;for(let D=f.length-1;D>=0;D--){const U=f[D];if(U.element===e){b=U;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([n],null,u.errors,i)}return f.length?f.map(b=>b.buildKeyframes()):[hs(e,[],[],[],0,0,"",!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),c=e.currentTimeline.currentTime,l=this._visitSubInstructions(t,s,s.options);c!=l&&e.transformIntoNewTimeline(l)}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 c=e.currentTimeline.currentTime;const l=null!=t.duration?zr(t.duration):null,n=null!=t.delay?zr(t.delay):null;return 0!==l&&a.forEach(i=>{const r=e.appendInstructionToTimeline(i,l,n);c=Math.max(c,r.duration+r.delay)}),c}visitReference(a,e){e.updateOptions(a.options,!0),Ki(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let s=e;const c=a.options;if(c&&(c.params||c.delay)&&(s=e.createSubContext(c),s.transformIntoNewTimeline(),null!=c.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Go);const l=zr(c.delay);s.delayNextStep(l)}a.steps.length&&(a.steps.forEach(l=>Ki(this,l,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let s=e.currentTimeline.currentTime;const c=a.options&&a.options.delay?zr(a.options.delay):0;a.steps.forEach(l=>{const n=e.createSubContext(a.options);c&&n.delayNextStep(c),Ki(this,l,n),s=Math.max(s,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(l=>e.currentTimeline.mergeTimelineCollectedStyles(l)),e.transformIntoNewTimeline(s),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return Gr(e.params?xc(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 c=a.style;5==c.type?this.visitKeyframes(c,e):(e.incrementTime(t.duration),this.visitStyle(c,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.getCurrentStyleProperties().length&&t.forwardFrame();const c=s&&s.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(c):t.setStyles(a.styles,c,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,c=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,a.styles.forEach(i=>{n.forwardTime((i.offset||0)*c),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(s+c),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,s=a.options||{},c=s.delay?zr(s.delay):0;c&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Go);let l=t;const n=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((r,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(a.options,r);c&&u.delayNextStep(c),r===e.element&&(i=u.currentTimeline),Ki(this,a.animation,u),u.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,s=e.currentTimeline,c=a.timings,l=Math.abs(c.duration),n=l*(e.currentQueryTotal-1);let i=l*e.currentQueryIndex;switch(c.duration<0?"reverse":c.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Ki(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=s.currentTime-u+(s.startTime-t.currentTimeline.startTime)}}const Go={};class kg{constructor(a,e,t,s,c,l,n,i){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=c,this.errors=l,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Go,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Mc(this._driver,e,0),n.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=zr(t.duration)),null!=t.delay&&(s.delay=zr(t.delay));const c=t.params;if(c){let l=s.params;l||(l=this.options.params={}),Object.keys(c).forEach(n=>{(!e||!l.hasOwnProperty(n))&&(l[n]=xc(c[n],l,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,c=new kg(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return c.previousNode=this.previousNode,c.currentAnimateTimings=this.currentAnimateTimings,c.options=this._copyOptions(),c.updateOptions(a),c.currentQueryIndex=this.currentQueryIndex,c.currentQueryTotal=this.currentQueryTotal,c.parentContext=this,this.subContextCount++,c}transformIntoNewTimeline(a){return this.previousNode=Go,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const s={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},c=new I0(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,s,a.stretchStartingKeyframe);return this.timelines.push(c),s}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,s,c,l){let n=[];if(s&&n.push(this.element),a.length>0){a=(a=a.replace(k0,"."+this._enterClassName)).replace(uy,"."+this._leaveClassName);let r=this._driver.query(this.element,a,1!=t);0!==t&&(r=t<0?r.slice(r.length+t,r.length):r.slice(0,t)),n.push(...r)}return!c&&0==n.length&&l.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),n}}class Mc{constructor(a,e,t,s){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new Mc(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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Lr,this._currentKeyframe[e]=Lr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,s){e&&(this._previousKeyframe.easing=e);const c=s&&s.params||{},l=function Ig(o,a){const e={};let t;return o.forEach(s=>{"*"===s?(t=t||Object.keys(a),t.forEach(c=>{e[c]=Lr})):Ur(s,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(l).forEach(n=>{const i=xc(l[n],c,t);this._pendingStyles[n]=i,this._localTimelineStyles.hasOwnProperty(n)||(this._backFill[n]=this._globalTimelineStyles.hasOwnProperty(n)?this._globalTimelineStyles[n]:Lr),this._updateStyle(n,i)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[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){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],s=a._styleSummary[e];(!t||s.time>t.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((n,i)=>{const r=Ur(n,!0);Object.keys(r).forEach(d=>{const u=r[d];"!"==u?a.add(d):u==Lr&&e.add(d)}),t||(r.offset=i/this.duration),s.push(r)});const c=a.size?Ni(a.values()):[],l=e.size?Ni(e.values()):[];if(t){const n=s[0],i=wa(n);n.offset=0,i.offset=1,s=[n,i]}return hs(this.element,s,c,l,this.duration,this.startTime,this.easing,!1)}}class I0 extends Mc{constructor(a,e,t,s,c,l,n=!1){super(a,e,l.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=c,this._stretchStartingKeyframe=n,this.timings={duration:l.duration,delay:l.delay,easing:l.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 c=[],l=t+e,n=e/l,i=Ur(a[0],!1);i.offset=0,c.push(i);const r=Ur(a[0],!1);r.offset=oh(n),c.push(r);const d=a.length-1;for(let u=1;u<=d;u++){let f=Ur(a[u],!1);f.offset=oh((e+f.offset*t)/l),c.push(f)}t=l,e=0,s="",a=c}return hs(this.element,a,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function oh(o,a=3){const e=Math.pow(10,a-1);return Math.round(o*e)/e}class Uo{}class B0 extends Uo{normalizePropertyName(a,e){return Tc(a)}normalizeStyleValue(a,e,t,s){let c="";const l=t.toString().trim();if(O0[e]&&0!==t&&"0"!==t)if("number"==typeof t)c="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&s.push(`Please provide a CSS unit value for ${a}:${t}`)}return l+c}}const O0=(()=>function F0(o){const a={};return o.forEach(e=>a[e]=!0),a}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function py(o,a,e,t,s,c,l,n,i,r,d,u,f){return{type:0,element:o,triggerName:a,isRemovalTransition:s,fromState:e,fromStyles:c,toState:t,toStyles:l,timelines:n,queriedElements:i,preStyleProps:r,postStyleProps:d,totalTime:u,errors:f}}const Vg={};class fy{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,s){return function L0(o,a,e,t,s){return o.some(c=>c(a,e,t,s))}(this.ast.matchers,a,e,t,s)}buildStyles(a,e,t){const s=this._stateStyles["*"],c=this._stateStyles[a],l=s?s.buildStyles(e,t):{};return c?c.buildStyles(e,t):l}build(a,e,t,s,c,l,n,i,r,d){const u=[],f=this.ast.options&&this.ast.options.params||Vg,D=this.buildStyles(t,n&&n.params||Vg,u),U=i&&i.params||Vg,se=this.buildStyles(s,U,u),De=new Set,rt=new Map,Qe=new Map,vt="void"===s,jn={params:Object.assign(Object.assign({},f),U)},sr=d?[]:sh(a,e,this.ast.animation,c,l,D,se,jn,r,u);let tn=0;if(sr.forEach(Wa=>{tn=Math.max(Wa.duration+Wa.delay,tn)}),u.length)return py(e,this._triggerName,t,s,vt,D,se,[],[],rt,Qe,tn,u);sr.forEach(Wa=>{const $a=Wa.element,cM=Ji(rt,$a,{});Wa.preStyleProps.forEach(Bl=>cM[Bl]=!0);const kf=Ji(Qe,$a,{});Wa.postStyleProps.forEach(Bl=>kf[Bl]=!0),$a!==e&&De.add($a)});const qa=Ni(De.values());return py(e,this._triggerName,t,s,vt,D,se,sr,qa,rt,Qe,tn)}}class j0{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},s=wa(this.defaultParams);return Object.keys(a).forEach(c=>{const l=a[c];null!=l&&(s[c]=l)}),this.styles.styles.forEach(c=>{if("string"!=typeof c){const l=c;Object.keys(l).forEach(n=>{let i=l[n];i.length>1&&(i=xc(i,s,e));const r=this.normalizer.normalizePropertyName(n,e);i=this.normalizer.normalizeStyleValue(n,r,i,e),t[r]=i})}}),t}}class qr{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new j0(s.style,s.options&&s.options.params||{},t)}),Bg(this.states,"true","1"),Bg(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new fy(a,s,this.states))}),this.fallbackTransition=function lh(o,a,e){return new fy(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(l,n)=>!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(l=>l.match(a,e,t,s))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function Bg(o,a,e){o.hasOwnProperty(a)?o.hasOwnProperty(e)||(o[e]=o[a]):o.hasOwnProperty(e)&&(o[a]=o[e])}const Og=new ps;class ch{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],s=Sc(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=s}_buildPlayer(a,e,t){const s=a.element,c=xg(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(s,c,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const s=[],c=this._animations[a];let l;const n=new Map;if(c?(l=sh(this._driver,e,c,Bo,Oo,{},{},t,Og,s),l.forEach(d=>{const u=Ji(n,d.element,{});d.postStyleProps.forEach(f=>u[f]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),l=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);n.forEach((d,u)=>{Object.keys(d).forEach(f=>{d[f]=this._driver.computeStyle(u,f,Lr)})});const r=Nr(l.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[a]=r,r.onDestroy(()=>this.destroy(a)),this.players.push(r),r}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,s){const c=Nu(e,"","","");return Lu(this._getPlayer(a),t,c,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 c=this._getPlayer(a);switch(t){case"play":c.play();break;case"pause":c.pause();break;case"reset":c.reset();break;case"restart":c.restart();break;case"finish":c.finish();break;case"init":c.init();break;case"setPosition":c.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(a)}}}const dh="ng-animate-queued",hh="ng-animate-disabled",ph=[],Lg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fn="__ng_removed";class fh{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function my(o){return null!=o?o:null}(t?a.value:a),t){const c=wa(a);delete c.value,this.options=c}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 mr="void",$r=new fh(mr);class gh{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Pi(e,this._hostClassName)}listen(a,e,t,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function Ng(o){return"start"==o||"done"==o}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const c=Ji(this._elementListeners,a,[]),l={name:e,phase:t,callback:s};c.push(l);const n=Ji(this._engine.statesByElement,a,{});return n.hasOwnProperty(e)||(Pi(a,Ca),Pi(a,Ca+"-"+e),n[e]=$r),()=>{this._engine.afterFlush(()=>{const i=c.indexOf(l);i>=0&&c.splice(i,1),this._triggers[e]||delete n[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,s=!0){const c=this._getTrigger(e),l=new va(this.id,e,a);let n=this._engine.statesByElement.get(a);n||(Pi(a,Ca),Pi(a,Ca+"-"+e),this._engine.statesByElement.set(a,n={}));let i=n[e];const r=new fh(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&r.absorbOptions(i.options),n[e]=r,i||(i=$r),r.value!==mr&&i.value===r.value){if(!function Gg(o,a){const e=Object.keys(o),t=Object.keys(a);if(e.length!=t.length)return!1;for(let s=0;s{ls(a,se),Dn(a,De)})}return}const f=Ji(this._engine.playersByElement,a,[]);f.forEach(U=>{U.namespaceId==this.id&&U.triggerName==e&&U.queued&&U.destroy()});let b=c.matchTransition(i.value,r.value,a,r.params),D=!1;if(!b){if(!s)return;b=c.fallbackTransition,D=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:i,toState:r,player:l,isFallbackTransition:D}),D||(Pi(a,dh),l.onStart(()=>{ms(a,dh)})),l.onDone(()=>{let U=this.players.indexOf(l);U>=0&&this.players.splice(U,1);const se=this._engine.playersByElement.get(a);if(se){let De=se.indexOf(l);De>=0&&se.splice(De,1)}}),this.players.push(l),f.push(l),l}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[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,ya,!0);t.forEach(s=>{if(s[fn])return;const c=this._engine.fetchNamespacesByElement(s);c.size?c.forEach(l=>l.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(a,e,t,s){const c=this._engine.statesByElement.get(a),l=new Map;if(c){const n=[];if(Object.keys(c).forEach(i=>{if(l.set(i,c[i].value),this._triggers[i]){const r=this.trigger(a,i,mr,s);r&&n.push(r)}}),n.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,l),t&&Nr(n).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(c=>{const l=c.name;if(s.has(l))return;s.add(l);const i=this._triggers[l].fallbackTransition,r=t[l]||$r,d=new fh(mr),u=new va(this.id,l,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:i,fromState:r,toState:d,player:u,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 c=t.players.length?t.playersByQueriedElement.get(a):[];if(c&&c.length)s=!0;else{let l=a;for(;l=l.parentNode;)if(t.statesByElement.get(l)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(a),s)t.markElementAsRemoved(this.id,a,!1,e);else{const c=a[fn];(!c||c===Lg)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){Pi(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const c=t.element,l=this._elementListeners.get(c);l&&l.forEach(n=>{if(n.name==t.triggerName){const i=Nu(c,t.triggerName,t.fromState.value,t.toState.value);i._data=a,Lu(t.player,n.phase,i,n.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const c=t.transition.ast.depCount,l=s.transition.ast.depCount;return 0==c||0==l?c-l: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 fs{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,c)=>{}}_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 gh(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.length-1;if(t>=0){let s=!1;for(let c=t;c>=0;c--)if(this.driver.containsElement(this._namespaceList[c].hostElement,e)){this._namespaceList.splice(c+1,0,a),s=!0;break}s||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.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){const s=Object.keys(t);for(let c=0;c=0&&this.collectedLeaveElements.splice(l,1)}if(a){const l=this._fetchNamespace(a);l&&l.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),Pi(a,hh)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ms(a,hh))}removeNode(a,e,t,s){if(qo(e)){const c=a?this._fetchNamespace(a):null;if(c?c.removeNode(e,s):this.markElementAsRemoved(a,e,!1,s),t){const l=this.namespacesByHostElement.get(e);l&&l.id!==a&&l.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(a,e,t,s,c){this.collectedLeaveElements.push(e),e[fn]={namespaceId:a,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:c}}listen(a,e,t,s,c){return qo(e)?this._fetchNamespace(a).listen(e,t,s,c):()=>{}}_buildInstruction(a,e,t,s,c){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,s,a.fromState.options,a.toState.options,e,c)}destroyInnerAnimations(a){let e=this.driver.query(a,ya,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,Fo,!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 Nr(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[fn];if(t&&t.setForRemoval){if(a[fn]=Lg,t.namespaceId){this.destroyInnerAnimations(a);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}(null===(e=a.classList)||void 0===e?void 0:e.contains(hh))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!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?Nr(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new ps,s=[],c=new Map,l=[],n=new Map,i=new Map,r=new Map,d=new Set;this.disabledNodes.forEach(Fe=>{d.add(Fe);const qe=this.driver.query(Fe,".ng-animate-queued",!0);for(let $e=0;$e{const $e=Bo+U++;D.set(qe,$e),Fe.forEach(Et=>Pi(Et,$e))});const se=[],De=new Set,rt=new Set;for(let Fe=0;FeDe.add(Et)):rt.add(qe))}const Qe=new Map,vt=mh(f,Array.from(De));vt.forEach((Fe,qe)=>{const $e=Oo+U++;Qe.set(qe,$e),Fe.forEach(Et=>Pi(Et,$e))}),a.push(()=>{b.forEach((Fe,qe)=>{const $e=D.get(qe);Fe.forEach(Et=>ms(Et,$e))}),vt.forEach((Fe,qe)=>{const $e=Qe.get(qe);Fe.forEach(Et=>ms(Et,$e))}),se.forEach(Fe=>{this.processLeaveNode(Fe)})});const jn=[],sr=[];for(let Fe=this._namespaceList.length-1;Fe>=0;Fe--)this._namespaceList[Fe].drainQueuedTransitions(e).forEach($e=>{const Et=$e.player,Mi=$e.element;if(jn.push(Et),this.collectedEnterElements.length){const nn=Mi[fn];if(nn&&nn.setForMove){if(nn.previousTriggersValues&&nn.previousTriggersValues.has($e.triggerName)){const Ol=nn.previousTriggersValues.get($e.triggerName),Qs=this.statesByElement.get($e.element);Qs&&Qs[$e.triggerName]&&(Qs[$e.triggerName].value=Ol)}return void Et.destroy()}}const ta=!u||!this.driver.containsElement(u,Mi),Nn=Qe.get(Mi),$s=D.get(Mi),Kt=this._buildInstruction($e,t,$s,Nn,ta);if(Kt.errors&&Kt.errors.length)return void sr.push(Kt);if(ta)return Et.onStart(()=>ls(Mi,Kt.fromStyles)),Et.onDestroy(()=>Dn(Mi,Kt.toStyles)),void s.push(Et);if($e.isFallbackTransition)return Et.onStart(()=>ls(Mi,Kt.fromStyles)),Et.onDestroy(()=>Dn(Mi,Kt.toStyles)),void s.push(Et);const hM=[];Kt.timelines.forEach(nn=>{nn.stretchStartingKeyframe=!0,this.disabledNodes.has(nn.element)||hM.push(nn)}),Kt.timelines=hM,t.append(Mi,Kt.timelines),l.push({instruction:Kt,player:Et,element:Mi}),Kt.queriedElements.forEach(nn=>Ji(n,nn,[]).push(Et)),Kt.preStyleProps.forEach((nn,Ol)=>{const Qs=Object.keys(nn);if(Qs.length){let Fl=i.get(Ol);Fl||i.set(Ol,Fl=new Set),Qs.forEach(yx=>Fl.add(yx))}}),Kt.postStyleProps.forEach((nn,Ol)=>{const Qs=Object.keys(nn);let Fl=r.get(Ol);Fl||r.set(Ol,Fl=new Set),Qs.forEach(yx=>Fl.add(yx))})});if(sr.length){const Fe=[];sr.forEach(qe=>{Fe.push(`@${qe.triggerName} has failed due to:\n`),qe.errors.forEach($e=>Fe.push(`- ${$e}\n`))}),jn.forEach(qe=>qe.destroy()),this.reportError(Fe)}const tn=new Map,qa=new Map;l.forEach(Fe=>{const qe=Fe.element;t.has(qe)&&(qa.set(qe,qe),this._beforeAnimationBuild(Fe.player.namespaceId,Fe.instruction,tn))}),s.forEach(Fe=>{const qe=Fe.element;this._getPreviousPlayers(qe,!1,Fe.namespaceId,Fe.triggerName,null).forEach(Et=>{Ji(tn,qe,[]).push(Et),Et.destroy()})});const Wa=se.filter(Fe=>Ug(Fe,i,r)),$a=new Map;Dc($a,this.driver,rt,r,Lr).forEach(Fe=>{Ug(Fe,i,r)&&Wa.push(Fe)});const kf=new Map;b.forEach((Fe,qe)=>{Dc(kf,this.driver,new Set(Fe),i,"!")}),Wa.forEach(Fe=>{const qe=$a.get(Fe),$e=kf.get(Fe);$a.set(Fe,Object.assign(Object.assign({},qe),$e))});const Bl=[],dM=[],uM={};l.forEach(Fe=>{const{element:qe,player:$e,instruction:Et}=Fe;if(t.has(qe)){if(d.has(qe))return $e.onDestroy(()=>Dn(qe,Et.toStyles)),$e.disabled=!0,$e.overrideTotalTime(Et.totalTime),void s.push($e);let Mi=uM;if(qa.size>1){let Nn=qe;const $s=[];for(;Nn=Nn.parentNode;){const Kt=qa.get(Nn);if(Kt){Mi=Kt;break}$s.push(Nn)}$s.forEach(Kt=>qa.set(Kt,Mi))}const ta=this._buildAnimation($e.namespaceId,Et,tn,c,kf,$a);if($e.setRealPlayer(ta),Mi===uM)Bl.push($e);else{const Nn=this.playersByElement.get(Mi);Nn&&Nn.length&&($e.parentPlayer=Nr(Nn)),s.push($e)}}else ls(qe,Et.fromStyles),$e.onDestroy(()=>Dn(qe,Et.toStyles)),dM.push($e),d.has(qe)&&s.push($e)}),dM.forEach(Fe=>{const qe=c.get(Fe.element);if(qe&&qe.length){const $e=Nr(qe);Fe.setRealPlayer($e)}}),s.forEach(Fe=>{Fe.parentPlayer?Fe.syncPlayerEvents(Fe.parentPlayer):Fe.destroy()});for(let Fe=0;Fe!ta.destroyed);Mi.length?zg(this,qe,Mi):this.processLeaveNode(qe)}return se.length=0,Bl.forEach(Fe=>{this.players.push(Fe),Fe.onDone(()=>{Fe.destroy();const qe=this.players.indexOf(Fe);this.players.splice(qe,1)}),Fe.play()}),Bl}elementContainsData(a,e){let t=!1;const s=e[fn];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,c){let l=[];if(e){const n=this.playersByQueriedElement.get(a);n&&(l=n)}else{const n=this.playersByElement.get(a);if(n){const i=!c||c==mr;n.forEach(r=>{r.queued||!i&&r.triggerName!=s||l.push(r)})}}return(t||s)&&(l=l.filter(n=>!(t&&t!=n.namespaceId||s&&s!=n.triggerName))),l}_beforeAnimationBuild(a,e,t){const c=e.element,l=e.isRemovalTransition?void 0:a,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const r=i.element,d=r!==c,u=Ji(t,r,[]);this._getPreviousPlayers(r,d,l,n,e.toState).forEach(b=>{const D=b.getRealPlayer();D.beforeDestroy&&D.beforeDestroy(),b.destroy(),u.push(b)})}ls(c,e.fromStyles)}_buildAnimation(a,e,t,s,c,l){const n=e.triggerName,i=e.element,r=[],d=new Set,u=new Set,f=e.timelines.map(D=>{const U=D.element;d.add(U);const se=U[fn];if(se&&se.removedBeforeQueried)return new $n(D.duration,D.delay);const De=U!==i,rt=function z0(o){const a=[];return _h(o,a),a}((t.get(U)||ph).map(tn=>tn.getRealPlayer())).filter(tn=>!!tn.element&&tn.element===U),Qe=c.get(U),vt=l.get(U),jn=xg(0,this._normalizer,0,D.keyframes,Qe,vt),sr=this._buildPlayer(D,jn,rt);if(D.subTimeline&&s&&u.add(U),De){const tn=new va(a,n,U);tn.setRealPlayer(sr),r.push(tn)}return sr});r.forEach(D=>{Ji(this.playersByQueriedElement,D.element,[]).push(D),D.onDone(()=>function gs(o,a,e){let t;if(o instanceof Map){if(t=o.get(a),t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&o.delete(a)}}else if(t=o[a],t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&delete o[a]}return t}(this.playersByQueriedElement,D.element,D))}),d.forEach(D=>Pi(D,Ju));const b=Nr(f);return b.onDestroy(()=>{d.forEach(D=>ms(D,Ju)),Dn(i,e.toStyles)}),u.forEach(D=>{Ji(s,D,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new $n(a.duration,a.delay)}}class va{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new $n,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>Lu(a,e,void 0,t))}),this._queuedCallbacks={},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){Ji(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 qo(o){return o&&1===o.nodeType}function Hc(o,a){const e=o.style.display;return o.style.display=null!=a?a:"none",e}function Dc(o,a,e,t,s){const c=[];e.forEach(i=>c.push(Hc(i)));const l=[];t.forEach((i,r)=>{const d={};i.forEach(u=>{const f=d[u]=a.computeStyle(r,u,s);(!f||0==f.length)&&(r[fn]=jg,l.push(r))}),o.set(r,d)});let n=0;return e.forEach(i=>Hc(i,c[n++])),l}function mh(o,a){const e=new Map;if(o.forEach(n=>e.set(n,[])),0==a.length)return e;const s=new Set(a),c=new Map;function l(n){if(!n)return 1;let i=c.get(n);if(i)return i;const r=n.parentNode;return i=e.has(r)?r:s.has(r)?1:l(r),c.set(n,i),i}return a.forEach(n=>{const i=l(n);1!==i&&e.get(i).push(n)}),e}function Pi(o,a){var e;null===(e=o.classList)||void 0===e||e.add(a)}function ms(o,a){var e;null===(e=o.classList)||void 0===e||e.remove(a)}function zg(o,a,e){Nr(e).onDone(()=>o.processLeaveNode(a))}function _h(o,a){for(let e=0;es.add(c)):a.set(o,t),e.delete(o),!0}class Wo{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,c)=>{},this._transitionEngine=new fs(a,e,t),this._timelineEngine=new ch(a,e,t),this._transitionEngine.onRemovalComplete=(s,c)=>this.onRemovalComplete(s,c)}registerTrigger(a,e,t,s,c){const l=a+"-"+s;let n=this._triggerCache[l];if(!n){const i=[],r=Sc(this._driver,c,i);if(i.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${i.join("\n - ")}`);n=function N0(o,a,e){return new qr(o,a,e)}(s,r,this._normalizer),this._triggerCache[l]=n}this._transitionEngine.registerTrigger(e,s,n)}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[c,l]=zu(t);this._timelineEngine.command(c,e,l,s)}else this._transitionEngine.trigger(a,e,t,s)}listen(a,e,t,s,c){if("@"==t.charAt(0)){const[l,n]=zu(t);return this._timelineEngine.listen(l,e,n,c)}return this._transitionEngine.listen(a,e,t,s,c)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let by=(()=>{class o{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let c=o.initialStylesByElement.get(e);c||o.initialStylesByElement.set(e,c={}),this._initialStyles=c}start(){this._state<1&&(this._startStyles&&Dn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Dn(this._element,this._initialStyles),this._endStyles&&(Dn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(ls(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ls(this._element,this._endStyles),this._endStyles=null),Dn(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function Ri(o){let a=null;const e=Object.keys(o);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:Zu(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class G0{validateStyleProperty(a){return qu(a)}matchesElement(a,e){return!1}containsElement(a,e){return Wu(a,e)}query(a,e,t){return $u(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,s,c,l=[]){const i={duration:t,delay:s,fill:0==s?"both":"forwards"};c&&(i.easing=c);const r={},d=l.filter(f=>f instanceof qg);(function sy(o,a){return 0===o||0===a})(t,s)&&d.forEach(f=>{let b=f.currentSnapshot;Object.keys(b).forEach(D=>r[D]=b[D])}),e=function oy(o,a,e){const t=Object.keys(e);if(t.length&&a.length){let c=a[0],l=[];if(t.forEach(n=>{c.hasOwnProperty(n)||l.push(n),c[n]=e[n]}),l.length)for(var s=1;sUr(f,!1)),r);const u=function _y(o,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=Ri(a[0]),a.length>1&&(t=Ri(a[a.length-1]))):a&&(e=Ri(a)),e||t?new by(o,e,t):null}(a,e);return new qg(a,e,i,u)}}let U0=(()=>{class o extends Hn{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:g.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?bc(e):e;return $g(this._renderer,null,t,"register",[s]),new Wg(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.FYo),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Wg extends class P0{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new q0(this._id,a,e||{},this._renderer)}}class q0{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 $g(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!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function $g(o,a,e,t,s){return o.setProperty(a,`@@${e}:${t}`,s)}const bh="@.disabled";let yy=(()=>{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=(c,l)=>{const n=null==l?void 0:l.parentNode(c);n&&l.removeChild(n,c)}}createRenderer(e,t){const c=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(c);return d||(d=new Qg("",c,this.engine),this._rendererCache.set(c,d)),d}const l=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(l,n,e,d.name,d)};return t.data.animation.forEach(i),new wy(this,n,c,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(c=>{const[l,n]=c;l(n)}),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)(g.LFG(g.FYo),g.LFG(Wo),g.LFG(g.R0b))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Qg{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==bh?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 wy extends Qg{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==bh?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const s=function Yg(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(a);let c=e.substr(1),l="";return"@"!=c.charAt(0)&&([c,l]=function vy(o){const a=o.indexOf(".");return[o.substring(0,a),o.substr(a+1)]}(c)),this.engine.listen(this.namespaceId,s,c,l,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(a,e,t)}}let Jg=(()=>{class o extends Wo{constructor(e,t,s){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(Qu),g.LFG(Uo))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const Zi=new g.OlP("AnimationModuleType"),Ch=[{provide:Hn,useClass:U0},{provide:Uo,useFactory:function Ay(){return new B0}},{provide:Wo,useClass:Jg},{provide:g.FYo,useFactory:function xy(o,a,e){return new yy(o,a,e)},deps:[we,Wo,g.R0b]}],Kg=[{provide:Qu,useFactory:()=>new G0},{provide:Zi,useValue:"BrowserAnimations"},...Ch],Qn=[{provide:Qu,useClass:Vo},{provide:Zi,useValue:"NoopAnimations"},...Ch];let yh=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?Qn:Kg}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:Kg,imports:[Mr]}),o})();const Pc=new g.OlP("mat-sanity-checks",{providedIn:"root",factory:function Sy(){return!0}});let Ue=(()=>{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!un()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(vg),g.LFG(Pc,8),g.LFG(T.K0))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ti],ti]}),o})();function $o(o){return class extends o{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=it(a)}}}function Aa(o,a){return class extends o{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 xa(o){return class extends o{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=it(a)}}}function My(o){return class extends o{constructor(...a){super(...a),this.stateChanges=new He.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,c=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);c!==a&&(this.errorState=c,this.stateChanges.next())}}}const tm=new g.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function im(){return(0,g.f3M)(g.soG)}});class gn{constructor(){this._localeChanges=new He.xQ,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 Qo=new g.OlP("mat-date-formats"),nm=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Rn(o,a){const e=Array(o);for(let t=0;t{class o extends gn{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 Rn(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Rn(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 Rn(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 c=this._createDateWithOverflow(e,t,s);return c.getMonth(),c}today(){return new Date}parse(e){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,Object.assign(Object.assign({},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(nm.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 c=new Date;return c.setFullYear(e,t,s),c.setHours(0,0,0,0),c}_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)(g.LFG(tm,8),g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const Hy={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 Dy=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[{provide:gn,useClass:Yo}],imports:[[Yi]]}),o})(),Py=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[{provide:Qo,useValue:Hy}],imports:[[Dy]]}),o})(),Cs=(()=>{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=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ys=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})();class am{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ah={enterDuration:225,exitDuration:150},xh=dn({passive:!0}),Rc=["mousedown","touchstart"],om=["mouseup","mouseleave","touchend","touchcancel"];class lm{constructor(a,e,t,s){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Lt(t))}fadeInRipple(a,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),c=Object.assign(Object.assign({},Ah),t.animation);t.centered&&(a=s.left+s.width/2,e=s.top+s.height/2);const l=t.radius||function ws(o,a,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-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),n=a-s.left,i=e-s.top,r=c.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-l+"px",d.style.top=i-l+"px",d.style.height=2*l+"px",d.style.width=2*l+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${r}ms`,this._containerElement.appendChild(d),function cm(o){window.getComputedStyle(o).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new am(this,d,t);return u.state=0,this._activeRipples.add(u),t.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const f=u===this._mostRecentTransientRipple;u.state=1,!t.persistent&&(!f||!this._isPointerDown)&&u.fadeOut()},r),u}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,s=Object.assign(Object.assign({},Ah),a.config.animation);t.style.transitionDuration=`${s.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Lt(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Rc))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(om),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Ro(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,xh)})})}_removeTriggerEvents(){this._triggerElement&&(Rc.forEach(a=>{this._triggerElement.removeEventListener(a,this,xh)}),this._pointerUpEventsRegistered&&om.forEach(a=>{this._triggerElement.removeEventListener(a,this,xh)}))}}const Th=new g.OlP("mat-ripple-global-options");let Ta=(()=>{class o{constructor(e,t,s,c,l){this._elementRef=e,this._animationMode=l,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new lm(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:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Je),g.Y36(Th,8),g.Y36(Zi,8))},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&g.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})(),Yn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue,Yi],Ue]}),o})(),Eh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue]]}),o})(),Sh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,T.ez,Ue,Eh]]}),o})();var xi=E(5254),Ea=E(8896);function As(o){return new Ci.y(a=>{let e;try{e=o()}catch(s){return void a.error(s)}return(e?(0,xi.D)(e):(0,Ea.c)()).subscribe(a)})}function By(o,a){}class kc{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const rT={dialogContainer:Jt("dialogContainer",[bt("void, exit",Ve({opacity:0,transform:"scale(0.7)"})),bt("enter",Ve({transform:"none"})),wt("* => enter",Pt("150ms cubic-bezier(0, 0, 0.2, 1)",Ve({transform:"none",opacity:1}))),wt("* => void, * => exit",Pt("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ve({opacity:0})))])};let Mh=(()=>{class o extends lu{constructor(e,t,s,c,l,n,i,r){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=s,this._config=l,this._interactivityChecker=n,this._ngZone=i,this._focusMonitor=r,this._animationStateChanged=new g.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(d)),this._ariaLabelledBy=l.ariaLabelledBy||null,this._document=c}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=Jl(),s=this._elementRef.nativeElement;(!t||t===this._document.body||t===s||s.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Jl())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Jl();return e===t||e.contains(t)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(ku),g.Y36(g.sBO),g.Y36(T.K0,8),g.Y36(kc),g.Y36(mg),g.Y36(g.R0b),g.Y36(Fr))},o.\u0275dir=g.lG2({type:o,viewQuery:function(e,t){if(1&e&&g.Gf(Kl,7),2&e){let s;g.iGM(s=g.CRH())&&(t._portalOutlet=s.first)}},features:[g.qOj]}),o})(),Oy=(()=>{class o extends Mh{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),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()}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&g.WFA("@dialogContainer.start",function(c){return t._onAnimationStart(c)})("@dialogContainer.done",function(c){return t._onAnimationDone(c)}),2&e&&(g.Ikx("id",t._id),g.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),g.d8E("@dialogContainer",t._state))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,By,0,0,"ng-template",0)},directives:[Kl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[rT.dialogContainer]}}),o})(),um=0;class xs{constructor(a,e,t="mat-dialog-"+um++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new He.xQ,this._afterClosed=new He.xQ,this._beforeClosed=new He.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,mt.h)(s=>"opened"===s.state),(0,Qt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,mt.h)(s=>"closed"===s.state),(0,Qt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,mt.h)(s=>27===s.keyCode&&!this.disableClose&&!pr(s))).subscribe(s=>{s.preventDefault(),Fy(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Fy(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,mt.h)(e=>"closing"===e.state),(0,Qt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();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._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Fy(o,a,e){return void 0!==o._containerInstance&&(o._containerInstance._closeInteractionType=a),o.close(e)}const In=new g.OlP("MatDialogData"),aT=new g.OlP("mat-dialog-default-options"),Ly=new g.OlP("mat-dialog-scroll-strategy"),pm={provide:Ly,deps:[Wn],useFactory:function hm(o){return()=>o.scrollStrategies.block()}};let Ny=(()=>{class o{constructor(e,t,s,c,l,n,i,r,d,u){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=c,this._overlayContainer=l,this._dialogRefConstructor=i,this._dialogContainerType=r,this._dialogDataToken=d,this._animationMode=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.xQ,this._afterOpenedAtThisLevel=new He.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=As(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hi(void 0))),this._scrollStrategy=n}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){if(t=function fm(o,a){return Object.assign(Object.assign({},a),o)}(t,this._defaultOptions||new kc),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const s=this._createOverlay(t),c=this._attachDialogContainer(s,t);if("NoopAnimations"!==this._animationMode){const n=c._animationStateChanged.subscribe(i=>{"opening"===i.state&&(this._dialogAnimatingOpen=!0),"opened"===i.state&&(this._dialogAnimatingOpen=!1,n.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new zt.w),this._animationStateSubscriptions.add(n)}const l=this._attachDialogContent(e,c,s,t);return this._lastDialogRef=l,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(()=>this._removeOpenDialog(l)),this.afterOpened.next(l),c._initializeWithAttachedContent(),l}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(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new Br({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const c=g.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:kc,useValue:t}]}),l=new co(this._dialogContainerType,t.viewContainerRef,c,t.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,t,s,c){const l=new this._dialogRefConstructor(s,t,c.id);if(e instanceof g.Rgc)t.attachTemplatePortal(new ou(e,null,{$implicit:c.data,dialogRef:l}));else{const n=this._createInjector(c,l,t),i=t.attachComponentPortal(new co(e,c.viewContainerRef,n));l.componentInstance=i.instance}return l.updateSize(c.width,c.height).updatePosition(c.position),l}_createInjector(e,t,s){const c=e&&e.viewContainerRef&&e.viewContainerRef.injector,l=[{provide:this._dialogContainerType,useValue:s},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!c||!c.get(hn,null,g.XFs.Optional))&&l.push({provide:hn,useValue:{value:e.direction,change:(0,ke.of)()}}),g.zs3.create({parent:c||this._injector,providers:l})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,c)=>{s?c.setAttribute("aria-hidden",s):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),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--){let c=t[s];c!==e&&"SCRIPT"!==c.nodeName&&"STYLE"!==c.nodeName&&!c.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(c,c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){g.$Z()},o.\u0275dir=g.lG2({type:o}),o})(),Ts=(()=>{class o extends Ny{constructor(e,t,s,c,l,n,i,r){super(e,t,c,n,i,l,xs,Oy,In,r)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Wn),g.LFG(g.zs3),g.LFG(T.Ye,8),g.LFG(aT,8),g.LFG(Ly),g.LFG(o,12),g.LFG(Xl),g.LFG(Zi,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),Hh=0,Ic=(()=>{class o{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+Hh++}ngOnInit(){this._dialogRef||(this._dialogRef=function zy(o,a){let e=o.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 o.\u0275fac=function(e){return new(e||o)(g.Y36(xs,8),g.Y36(g.SBq),g.Y36(Ts))},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&g.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),Dh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),gm=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),o})(),Vc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Ts,pm],imports:[[ns,uo,Ue],Ue]}),o})();function Jn(o){return!!o&&(o instanceof Ci.y||"function"==typeof o.lift&&"function"==typeof o.subscribe)}var Gy=E(7830);function Es(...o){if(1===o.length){const a=o[0];if((0,cn.k)(a))return _r(a,null);if((0,Gy.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return _r(e.map(t=>a[t]),e)}}if("function"==typeof o[o.length-1]){const a=o.pop();return _r(o=1===o.length&&(0,cn.k)(o[0])?o[0]:o,null).pipe((0,et.U)(e=>a(...e)))}return _r(o,null)}function _r(o,a){return new Ci.y(e=>{const t=o.length;if(0===t)return void e.complete();const s=new Array(t);let c=0,l=0;for(let n=0;n{r||(r=!0,l++),s[n]=d},error:d=>e.error(d),complete:()=>{c++,(c===t||!r)&&(l===t&&e.next(a?a.reduce((d,u,f)=>(d[u]=s[f],d),{}):s),e.complete())}}))}})}const qy=new class Zo extends yi.v{}(class Uy extends sa.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var Ph=E(9312);class Qr extends ga.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(Qr.dispatch,this.delay,new Ti(a,this.destination)))}_next(a){this.scheduleMessage(Ph.P.createNext(a))}_error(a){this.scheduleMessage(Ph.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(Ph.P.createComplete()),this.unsubscribe()}}class Ti{constructor(a,e){this.notification=a,this.destination=e}}var Sa=E(5283);class Bc extends He.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new mn(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,c=t.length;let l;if(this.closed)throw new ha.N;if(this.isStopped||this.hasError?l=zt.w.EMPTY:(this.observers.push(a),l=new Sa.W(this,a)),s&&a.add(a=new Qr(a,s)),e)for(let n=0;ne&&(l=Math.max(l,c-e)),l>0&&s.splice(0,l),s}}class mn{constructor(a,e){this.time=a,this.value=e}}function Oc(o,a,e){let t;return t=o&&"object"==typeof o?o:{bufferSize:o,windowTime:a,refCount:!1,scheduler:e},s=>s.lift(function Ss({bufferSize:o=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let s,l,c=0,n=!1,i=!1;return function(d){c++,(!s||n)&&(n=!1,s=new Bc(o,a,t),l=d.subscribe({next(f){s.next(f)},error(f){n=!0,s.error(f)},complete(){i=!0,l=void 0,s.complete()}}));const u=s.subscribe(this);this.add(()=>{c--,u.unsubscribe(),l&&!i&&e&&0===c&&(l.unsubscribe(),l=void 0,s=void 0)})}}(t))}var Vn=E(1406),pi=E(7545);class Zn{}let Ma=(()=>{class o extends Zn{getTranslation(e){return(0,ke.of)({})}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Yr{}let Ha=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function br(o,a){if(o===a)return!0;if(null===o||null===a)return!1;if(o!=o&&a!=a)return!0;let s,c,l,e=typeof o;if(e==typeof a&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(a))return!1;for(c in l=Object.create(null),o){if(!br(o[c],a[c]))return!1;l[c]=!0}for(c in a)if(!(c in l)&&void 0!==a[c])return!1;return!0}if(!Array.isArray(a))return!1;if((s=o.length)==a.length){for(c=0;c{Fc(a[t])?t in o?e[t]=Rh(o[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Xo{}let kh=(()=>{class o extends Xo{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(),!Xi(e)||!Xi(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,c)=>{let l=this.getValue(t,c);return Xi(l)?l:s}):e}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class el{}let Ih=(()=>{class o extends el{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Vh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new g.vpe,this.onLangChange=new g.vpe,this.onDefaultLangChange=new g.vpe}}const Lc=new g.OlP("USE_STORE"),jc=new g.OlP("USE_DEFAULT_LANG"),Bh=new g.OlP("DEFAULT_LANGUAGE"),Nc=new g.OlP("USE_EXTEND");let _n=(()=>{class o{constructor(e,t,s,c,l,n=!0,i=!1,r=!1,d){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=c,this.missingTranslationHandler=l,this.useDefaultLang=n,this.isolate=i,this.extend=r,this.pending=!1,this._onTranslationChange=new g.vpe,this._onLangChange=new g.vpe,this._onDefaultLangChange=new g.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}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);void 0!==t?(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 void 0!==t?(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(void 0===this.translations[e]||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(Oc(1),(0,Qt.q)(1));return this.loadingTranslations=t.pipe((0,et.U)(s=>this.compiler.compileTranslations(s,e)),Oc(1),(0,Qt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},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]?Rh(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 c;if(t instanceof Array){let l={},n=!1;for(let i of t)l[i]=this.getParsedResult(e,i,s),Jn(l[i])&&(n=!0);return n?Es(t.map(r=>Jn(l[r])?l[r]:(0,ke.of)(l[r]))).pipe((0,et.U)(r=>{let d={};return r.forEach((u,f)=>{d[t[f]]=u}),d})):l}if(e&&(c=this.parser.interpolate(this.parser.getValue(e,t),s)),void 0===c&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(c=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),void 0===c){let l={key:t,translateService:this};void 0!==s&&(l.interpolateParams=s),c=this.missingTranslationHandler.handle(l)}return void 0!==c?c:t}get(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Vn.b)(s=>Jn(s=this.getParsedResult(s,e,t))?s:(0,ke.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return Jn(s)?s:(0,ke.of)(s)}}getStreamOnTranslationChange(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');return os(As(()=>this.get(e,t)),this.onTranslationChange.pipe((0,pi.w)(s=>{const c=this.getParsedResult(s.translations,e,t);return"function"==typeof c.subscribe?c:(0,ke.of)(c)})))}stream(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');return os(As(()=>this.get(e,t)),this.onLangChange.pipe((0,pi.w)(s=>{const c=this.getParsedResult(s.translations,e,t);return Jn(c)?c:(0,ke.of)(c)})))}instant(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(Jn(s)){if(e instanceof Array){let c={};return e.forEach((l,n)=>{c[e[n]]=e[n]}),c}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("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)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)(g.LFG(Vh),g.LFG(Zn),g.LFG(el),g.LFG(Xo),g.LFG(Yr),g.LFG(jc),g.LFG(Lc),g.LFG(Nc),g.LFG(Bh))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),Jr=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let c=l=>{this.value=void 0!==l?l:e,this.lastKey=e,this._ref.markForCheck()};if(s){let l=this.translate.getParsedResult(s,e,t);Jn(l.subscribe)?l.subscribe(c):c(l)}this.translate.get(e,t).subscribe(c)}transform(e,...t){if(!e||!e.length)return e;if(br(e,this.lastKey)&&br(t,this.lastParams))return this.value;let s;if(Xi(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let c=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(c)}catch(l){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(c=>{this.lastKey&&c.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,c.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(c=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,c.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(_n,16),g.Y36(g.sBO,16))},o.\u0275pipe=g.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),tl=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:Zn,useClass:Ma},e.compiler||{provide:el,useClass:Ih},e.parser||{provide:Xo,useClass:kh},e.missingTranslationHandler||{provide:Yr,useClass:Ha},Vh,{provide:Lc,useValue:e.isolate},{provide:jc,useValue:e.useDefaultLang},{provide:Nc,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},_n]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:Zn,useClass:Ma},e.compiler||{provide:el,useClass:Ih},e.parser||{provide:Xo,useClass:kh},e.missingTranslationHandler||{provide:Yr,useClass:Ha},{provide:Lc,useValue:e.isolate},{provide:jc,useValue:e.useDefaultLang},{provide:Nc,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},_n]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),$y=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(xs))},o.\u0275cmp=g.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&&(g.TgZ(0,"h2",0),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[Dh],pipes:[Jr],styles:[""]}),o})();const _m=["mat-button",""],Qy=["*"],Ky=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],oT=Aa($o(xa(class{constructor(o){this._elementRef=o}})));let zc=(()=>{class o extends oT{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 c of Ky)this._hasHostAttributes(c)&&this._getHostElement().classList.add(c);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)(g.Y36(g.SBq),g.Y36(Fr),g.Y36(Zi,8))},o.\u0275cmp=g.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&&g.Gf(Ta,5),2&e){let s;g.iGM(s=g.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(g.uIk("disabled",t.disabled||null),g.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[g.qOj],attrs:_m,ngContentSelectors:Qy,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&&(g.F$t(),g.TgZ(0,"span",0),g.Hsn(1),g.qZA(),g._UZ(2,"span",1),g._UZ(3,"span",2)),2&e&&(g.xp6(2),g.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),g.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Ta],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),o})(),Bn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,Ue],Ue]}),o})();const Zy=["connectionContainer"],lT=["inputContainer"],cT=["label"];function dT(o,a){1&o&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15),g._UZ(3,"div",16),g._UZ(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15),g._UZ(7,"div",16),g._UZ(8,"div",17),g.qZA(),g.BQk())}function Xy(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){return g.CHM(e),g.oxw().updateOutlineGap()}),g.Hsn(1,1),g.qZA()}if(2&o){const e=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Cm(o,a){if(1&o&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&o){const e=g.oxw(2);g.xp6(3),g.Oqu(e._control.placeholder)}}function uT(o,a){1&o&&g.Hsn(0,3,["*ngSwitchCase","true"])}function ew(o,a){1&o&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function Ms(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){return g.CHM(e),g.oxw().updateOutlineGap()}),g.YNc(2,Cm,4,1,"ng-container",12),g.YNc(3,uT,1,0,"ng-content",12),g.YNc(4,ew,2,0,"span",22),g.qZA()}if(2&o){const e=g.oxw();g.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),g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),g.uIk("for",e._control.id)("aria-owns",e._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function tw(o,a){1&o&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function ym(o,a){if(1&o&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&o){const e=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function iw(o,a){if(1&o&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&o){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState)}}function wm(o,a){if(1&o&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&o){const e=g.oxw(2);g.Q6J("id",e._hintLabelId),g.xp6(1),g.Oqu(e.hintLabel)}}function Gc(o,a){if(1&o&&(g.TgZ(0,"div",27),g.YNc(1,wm,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&o){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",e.hintLabel)}}const nw=["*",[["","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 rw=0;const Am=new g.OlP("MatError");let xm=(()=>{class o{constructor(e,t){this.id="mat-error-"+rw++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(g.$8M("aria-live"),g.Y36(g.SBq))},o.\u0275dir=g.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&g.uIk("id",t.id)},inputs:{id:"id"},features:[g._Bn([{provide:Am,useExisting:o}])]}),o})();const aw={transitionMessages:Jt("transitionMessages",[bt("enter",Ve({opacity:1,transform:"translateY(0%)"})),wt("void => enter",[Ve({opacity:0,transform:"translateY(-5px)"}),Pt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Uc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o}),o})(),Tm=0;const qc=new g.OlP("MatHint");let pT=(()=>{class o{constructor(){this.align="start",this.id="mat-hint-"+Tm++}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(g.uIk("id",t.id)("align",null),g.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[g._Bn([{provide:qc,useExisting:o}])]}),o})(),Hs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-label"]]}),o})(),lw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const fT=new g.OlP("MatPrefix"),Oh=new g.OlP("MatSuffix");let Fh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["","matSuffix",""]],features:[g._Bn([{provide:Oh,useExisting:o}])]}),o})(),$c=0;const Lh=Aa(class{constructor(o){this._elementRef=o}},"primary"),Em=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Sm=new g.OlP("MatFormField");let Mm=(()=>{class o extends Lh{constructor(e,t,s,c,l,n,i){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=c,this._platform=l,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+$c++,this._labelId="mat-form-field-label-"+$c++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=c&&c.appearance?c.appearance:"legacy",this._hideRequiredMarker=!(!c||null==c.hideRequiredMarker)&&c.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=it(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(hi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ht(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ht(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,qn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(hi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(hi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ht(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,no(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(c=>"start"===c.align):null,s=this._hintChildren?this._hintChildren.find(c=>"end"===c.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",c=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${s}, ${c}`);for(let u=0;u0?.75*D+10:0}for(let d=0;d{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Ue,fg],Ue]}),o})();const Fm={provide:new g.OlP("mat-select-scroll-strategy"),deps:[Wn],useFactory:function Om(o){return()=>o.scrollStrategies.reposition()}};let Yc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Fm],imports:[[T.ez,ns,Sh,Ue],Un,Cr,Sh,Ue]}),o})();var ii=E(6053);const Lm=new Set;let Ds,jm=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Nm}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function xw(o){if(!Lm.has(o))try{Ds||(Ds=document.createElement("style"),Ds.setAttribute("type","text/css"),document.head.appendChild(Ds)),Ds.sheet&&(Ds.sheet.insertRule(`@media ${o} {body{ }}`,0),Lm.add(o))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Nm(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let zm=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Da(to(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=Da(to(e)).map(l=>this._registerQuery(l).observable);let c=(0,ii.aj)(s);return c=os(c.pipe((0,Qt.q)(1)),c.pipe(Tu(1),(0,fa.b)(0))),c.pipe((0,et.U)(l=>{const n={matches:!1,breakpoints:{}};return l.forEach(({matches:i,query:r})=>{n.matches=n.matches||i,n.breakpoints[r]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),c={observable:new Ci.y(l=>{const n=i=>this._zone.run(()=>l.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(hi(t),(0,et.U)(({matches:l})=>({query:e,matches:l})),ht(this._destroySubject)),mql:t};return this._queries.set(e,c),c}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(jm),g.LFG(g.R0b))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Da(o){return o.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const Ew={tooltipState:Jt("state",[bt("initial, void, hidden",Ve({opacity:0,transform:"scale(0)"})),bt("visible",Ve({transform:"scale(1)"})),wt("* => visible",Pt("200ms cubic-bezier(0, 0, 0.2, 1)",jr([Ve({opacity:0,transform:"scale(0)",offset:0}),Ve({opacity:.5,transform:"scale(0.99)",offset:.5}),Ve({opacity:1,transform:"scale(1)",offset:1})]))),wt("* => hidden",Pt("100ms cubic-bezier(0, 0, 0.2, 1)",Ve({opacity:0})))])},zh="tooltip-panel",Sw=dn({passive:!0}),On=new g.OlP("mat-tooltip-scroll-strategy"),Hw={provide:On,deps:[Wn],useFactory:function Mw(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}},Xn=new g.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Fn(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ln=(()=>{class o{constructor(e,t,s,c,l,n,i,r,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=c,this._ngZone=l,this._platform=n,this._ariaDescriber=i,this._focusMonitor=r,this._dir=u,this._defaultOptions=f,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.xQ,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ht(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=it(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ln(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ln(e)}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(ht(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,Sw)}),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 co(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ht(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.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(ht(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}-${zh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ht(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ht(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(ht(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!pr(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),c=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),c.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),c.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:c,y:l}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:c,originY:l}}}_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:c,y:l}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:c,overlayY:l}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Qt.q)(1),ht(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:c}=e;let l;if(l="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===c?"above":"below",l!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${zh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+l)}this._currentPosition=l}}_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",()=>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,Sw)})}_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 o.\u0275fac=function(e){g.$Z()},o.\u0275dir=g.lG2({type:o,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),o})(),qm=(()=>{class o extends Ln{constructor(e,t,s,c,l,n,i,r,d,u,f,b){super(e,t,s,c,l,n,i,r,d,u,f,b),this._tooltipComponent=Dw}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Wn),g.Y36(g.SBq),g.Y36(zf),g.Y36(g.s_b),g.Y36(g.R0b),g.Y36(Je),g.Y36(Pu),g.Y36(Fr),g.Y36(On),g.Y36(hn,8),g.Y36(Xn,8),g.Y36(T.K0))},o.\u0275dir=g.lG2({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[g.qOj]}),o})(),Wm=(()=>{class o{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new He.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.sBO))},o.\u0275dir=g.lG2({type:o}),o})(),Dw=(()=>{class o extends Wm{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.sBO),g.Y36(zm))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&g.Udp("zoom","visible"===t._visibility?1:null)},features:[g.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(g.TgZ(0,"div",0),g.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(c){return t._animationDone(c)}),g.ALo(1,"async"),g._uU(2),g.qZA()),2&e){let s;g.ekj("mat-tooltip-handset",null==(s=g.lcZ(1,5,t._isHandset))?null:s.matches),g.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),g.xp6(2),g.Oqu(t.message)}},directives:[T.mk],pipes:[T.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Ew.tooltipState]},changeDetection:0}),o})(),Ps=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Hw],imports:[[Ou,T.ez,ns,Ue],Ue,Un]}),o})(),qh=(()=>{class o{constructor(){this.changes=new He.xQ,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 c=e*t;return`${c+1} \u2013 ${c<(s=Math.max(s,0))?Math.min(c+t,s):c+t} of ${s}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Qm={provide:qh,deps:[[new g.FiY,new g.tp0,qh]],useFactory:function $m(o){return o||new qh}};let Rs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Qm],imports:[[T.ez,Bn,Yc,Ps,Ue]]}),o})();var Qh=E(943);const Jm=["mat-menu-item",""];function Km(o,a){1&o&&(g.O4$(),g.TgZ(0,"svg",2),g._UZ(1,"polygon",3),g.qZA())}const Yh=["*"];function Zm(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"div",0),g.NdJ("keydown",function(s){return g.CHM(e),g.oxw()._handleKeydown(s)})("click",function(){return g.CHM(e),g.oxw().closed.emit("click")})("@transformMenu.start",function(s){return g.CHM(e),g.oxw()._onAnimationStart(s)})("@transformMenu.done",function(s){return g.CHM(e),g.oxw()._onAnimationDone(s)}),g.TgZ(1,"div",1),g.Hsn(2),g.qZA(),g.qZA()}if(2&o){const e=g.oxw();g.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),g.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const il={transformMenu:Jt("transformMenu",[bt("void",Ve({opacity:0,transform:"scale(0.8)"})),wt("void => enter",Pt("120ms cubic-bezier(0, 0, 0.2, 1)",Ve({opacity:1,transform:"scale(1)"}))),wt("* => void",Pt("100ms 25ms linear",Ve({opacity:0})))]),fadeInItems:Jt("fadeInItems",[bt("showing",Ve({opacity:1})),wt("void => *",[Ve({opacity:0}),Pt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ow=new g.OlP("MatMenuContent"),Jh=new g.OlP("MAT_MENU_PANEL"),Fw=xa($o(class{}));let Kc=(()=>{class o extends Fw{constructor(e,t,s,c,l){var n;super(),this._elementRef=e,this._focusMonitor=s,this._parentMenu=c,this._changeDetectorRef=l,this.role="menuitem",this._hovered=new He.xQ,this._focused=new He.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(n=null==c?void 0:c.addItem)||void 0===n||n.call(c,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),s=t.querySelectorAll("mat-icon, .material-icons");for(let c=0;c{class o{constructor(e,t,s){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new g.n_E,this._tabSubscription=zt.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new g.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+jw++}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=it(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=it(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 Ho(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(hi(this._directDescendantItems),(0,pi.w)(e=>(0,qn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(hi(this._directDescendantItems),(0,pi.w)(t=>(0,qn.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:pr(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.lazyContent?this._ngZone.onStable.pipe((0,Qt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let s=this._directDescendantItems.first._getHostElement().parentElement;for(;s;){if("menu"===s.getAttribute("role")){s.focus();break}s=s.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,c=Object.keys(this._classList).find(l=>l.startsWith(this._elevationPrefix));(!c||c===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}_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(hi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Xm))},o.\u0275dir=g.lG2({type:o,contentQueries:function(e,t,s){if(1&e&&(g.Suo(s,Ow,5),g.Suo(s,Kc,5),g.Suo(s,Kc,4)),2&e){let c;g.iGM(c=g.CRH())&&(t.lazyContent=c.first),g.iGM(c=g.CRH())&&(t._allItems=c),g.iGM(c=g.CRH())&&(t.items=c)}},viewQuery:function(e,t){if(1&e&&g.Gf(g.Rgc,5),2&e){let s;g.iGM(s=g.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"}}),o})(),Nw=(()=>{class o extends nl{constructor(e,t,s){super(e,t,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Xm))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&g.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[g._Bn([{provide:Jh,useExisting:o}]),g.qOj],ngContentSelectors:Yh,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&&(g.F$t(),g.YNc(0,Zm,3,6,"ng-template"))},directives:[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}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[il.transformMenu,il.fadeInItems]},changeDetection:0}),o})();const e_=new g.OlP("mat-menu-scroll-strategy"),t_={provide:e_,deps:[Wn],useFactory:function zw(o){return()=>o.scrollStrategies.reposition()}},Zh=dn({passive:!0});let i_=(()=>{class o{constructor(e,t,s,c,l,n,i,r){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=n,this._dir=i,this._focusMonitor=r,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=zt.w.EMPTY,this._hoverSubscription=zt.w.EMPTY,this._menuCloseSubscription=zt.w.EMPTY,this._handleTouchStart=d=>{fc(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new g.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new g.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=l instanceof nl?l:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Zh),n&&(n._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._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Zh),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),s=t.positionStrategy;this._setPosition(s),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof nl&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(ht(this.menu.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.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(){var e;null===(e=this._overlayRef)||void 0===e||e.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 nl?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,mt.h)(s=>"void"===s.toState),(0,Qt.q)(1),ht(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Br({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,s]="before"===this.menu.xPosition?["end","start"]:["start","end"],[c,l]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[c,l],[r,d]=[t,s],u=0;this.triggersSubmenu()?(d=t="before"===this.menu.xPosition?"start":"end",s=r="end"===t?"start":"end",u="bottom"===c?8:-8):this.menu.overlapTrigger||(n="top"===c?"bottom":"top",i="top"===l?"bottom":"top"),e.withPositions([{originX:t,originY:n,overlayX:r,overlayY:c,offsetY:u},{originX:s,originY:n,overlayX:d,overlayY:c,offsetY:u},{originX:t,originY:i,overlayX:r,overlayY:l,offsetY:-u},{originX:s,originY:i,overlayX:d,overlayY:l,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,ke.of)(),c=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,mt.h)(l=>l!==this._menuItemInstance),(0,mt.h)(()=>this._menuOpen)):(0,ke.of)();return(0,qn.T)(e,s,c,t)}_handleMousedown(e){Ro(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,mt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Qh.g)(0,H)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof nl&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Qt.q)(1),(0,Qh.g)(0,H),ht(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new ou(this.menu.templateRef,this._viewContainerRef)),this._portal}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Wn),g.Y36(g.SBq),g.Y36(g.s_b),g.Y36(e_),g.Y36(Jh,8),g.Y36(Kc,10),g.Y36(hn,8),g.Y36(Fr))},o.\u0275dir=g.lG2({type:o,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&g.NdJ("click",function(c){return t._handleClick(c)})("mousedown",function(c){return t._handleMousedown(c)})("keydown",function(c){return t._handleKeydown(c)}),2&e&&g.uIk("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"}}),o})(),n_=(()=>{class o extends i_{}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275dir=g.lG2({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[g.qOj]}),o})(),rl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[t_],imports:[[T.ez,Ue,Yn,ns],Un,Ue]}),o})();var al=E(1737),zi=E(7221);function Zc(o){return a=>a.lift(new Xh(o))}class Xh{constructor(a){this.callback=a}call(a,e){return e.subscribe(new ep(a,this.callback))}}class ep extends ga.L{constructor(a,e){super(a),this.add(new zt.w(e))}}var Pa=E(2474);const Gw=["*"];let Xc;function ed(o){var a;return(null===(a=function ks(){if(void 0===Xc&&(Xc=null,"undefined"!=typeof window)){const o=window;void 0!==o.trustedTypes&&(Xc=o.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Xc}())||void 0===a?void 0:a.createHTML(o))||o}function td(o){return Error(`Unable to find icon with the name "${o}"`)}function tp(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function ip(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class Is{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Ne=(()=>{class o{constructor(e,t,s,c){this._httpClient=e,this._sanitizer=t,this._errorHandler=c,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",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,c){return this._addSvgIconConfig(e,t,new Is(s,null,c))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,c){const l=this._sanitizer.sanitize(g.q3G.HTML,s);if(!l)throw ip(s);const n=ed(l);return this._addSvgIconConfig(e,t,new Is("",n,c))}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 Is(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const c=this._sanitizer.sanitize(g.q3G.HTML,t);if(!c)throw ip(t);const l=ed(c);return this._addSvgIconSetConfig(e,new Is("",l,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(g.q3G.RESOURCE_URL,e);if(!t)throw tp(e);const s=this._cachedIconsByUrl.get(t);return s?(0,ke.of)(id(s)):this._loadSvgIconFromConfig(new Is(e,null)).pipe((0,It.b)(c=>this._cachedIconsByUrl.set(t,c)),(0,et.U)(c=>id(c)))}getNamedSvgIcon(e,t=""){const s=sl(t,e);let c=this._svgIconConfigs.get(s);if(c)return this._getSvgFromConfig(c);if(c=this._getIconConfigFromResolvers(t,e),c)return this._svgIconConfigs.set(s,c),this._getSvgFromConfig(c);const l=this._iconSetConfigs.get(t);return l?this._getSvgFromIconSetConfigs(e,l):(0,al._)(td(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,ke.of)(id(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,et.U)(t=>id(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,ke.of)(s):Es(t.filter(l=>!l.svgText).map(l=>this._loadSvgIconSetFromConfig(l).pipe((0,zi.K)(n=>{const r=`Loading icon set URL: ${this._sanitizer.sanitize(g.q3G.RESOURCE_URL,l.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(r)),(0,ke.of)(null)})))).pipe((0,et.U)(()=>{const l=this._extractIconWithNameFromAnySet(e,t);if(!l)throw td(e);return l}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const c=t[s];if(c.svgText&&c.svgText.toString().indexOf(e)>-1){const l=this._svgElementFromConfig(c),n=this._extractSvgIconFromSet(l,e,c.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,It.b)(t=>e.svgText=t),(0,et.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,ke.of)(null):this._fetchIcon(e).pipe((0,It.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const c=e.querySelector(`[id="${t}"]`);if(!c)return null;const l=c.cloneNode(!0);if(l.removeAttribute("id"),"svg"===l.nodeName.toLowerCase())return this._setSvgAttributes(l,s);if("symbol"===l.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(l),s);const n=this._svgElementFromString(ed(""));return n.appendChild(l),this._setSvgAttributes(n,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(ed("")),s=e.attributes;for(let c=0;ced(d)),Zc(()=>this._inProgressUrlFetches.delete(n)),(0,Pa.B)());return this._inProgressUrlFetches.set(n,r),r}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(sl(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:""}}}),Ww=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r_=Ww.map(o=>`[${o}]`).join(", "),$w=/^url\(['"]?#(.*?)['"]?\)$/;let np=(()=>{class o extends nd{constructor(e,t,s,c,l){super(e),this._iconRegistry=t,this._location=c,this._errorHandler=l,this._inline=!1,this._currentIconFetch=zt.w.EMPTY,s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=it(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=e.querySelectorAll("style");for(let c=0;c{s.forEach(l=>{c.setAttribute(l.name,`url('${e}#${l.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(r_),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let c=0;c{const n=t[c],i=n.getAttribute(l),r=i?i.match($w):null;if(r){let d=s.get(n);d||(d=[],s.set(n,d)),d.push({name:l,value:r[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(c=>this._setSvgElement(c),c=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${c.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Ne),g.$8M("aria-hidden"),g.Y36(rd),g.Y36(g.qLn))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(g.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),g.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:[g.qOj],ngContentSelectors:Gw,decls:1,vars:0,template:function(e,t){1&e&&(g.F$t(),g.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),o})(),er=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})(),a_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[],imports:[[Rs,rl,er,Bn,tl,T.ez]]}),o})();function Vs(){const o=new kc;return o.disableClose=!0,o.autoFocus=!1,o}E(9441),new Intl.Collator("cs",{numeric:!0});class d_{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}}}}var sp=E(4450),sv=E(1762);function u_(o,a){let e=!1;return arguments.length>=2&&(e=!0),function(s){return s.lift(new ov(o,a,e))}}class ov{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new op(a,this.accumulator,this.seed,this.hasSeed))}}class op extends ga.L{constructor(a,e,t,s){super(a),this.accumulator=e,this._seed=t,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(s){this.destination.error(s)}this.seed=t,this.destination.next(t)}}var lv=E(4231);function ld(o){return function(e){return 0===o?(0,Ea.c)():e.lift(new cv(o))}}class cv{constructor(a){if(this.total=a,this.total<0)throw new lv.W}call(a,e){return e.subscribe(new dv(a,this.total))}}class dv extends ga.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,s=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,s=this.ring;for(let c=0;co.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[c]===s)}return o===a}function Av(o){return Array.prototype.concat.apply([],o)}function fp(o){return o.length>0?o[o.length-1]:null}function fi(o,a){for(const e in o)o.hasOwnProperty(e)&&a(o[e],e)}function ir(o){return(0,g.CqO)(o)?o:(0,g.QGY)(o)?(0,xi.D)(Promise.resolve(o)):(0,ke.of)(o)}const b_={exact:function Ls(o,a,e){if(!js(o.segments,a.segments)||!hd(o.segments,a.segments,e)||o.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!o.children[t]||!Ls(o.children[t],a.children[t],e))return!1;return!0},subset:gp},C_={exact:function ud(o,a){return Ui(o,a)},subset:function Tv(o,a){return Object.keys(a).length<=Object.keys(o).length&&Object.keys(a).every(e=>__(o[e],a[e]))},ignored:()=>!0};function dd(o,a,e){return b_[e.paths](o.root,a.root,e.matrixParams)&&C_[e.queryParams](o.queryParams,a.queryParams)&&!("exact"===e.fragment&&o.fragment!==a.fragment)}function gp(o,a,e){return mp(o,a,a.segments,e)}function mp(o,a,e,t){if(o.segments.length>e.length){const s=o.segments.slice(0,e.length);return!(!js(s,e)||a.hasChildren()||!hd(s,e,t))}if(o.segments.length===e.length){if(!js(o.segments,e)||!hd(o.segments,e,t))return!1;for(const s in a.children)if(!o.children[s]||!gp(o.children[s],a.children[s],t))return!1;return!0}{const s=e.slice(0,o.segments.length),c=e.slice(o.segments.length);return!!(js(o.segments,s)&&hd(o.segments,s,t)&&o.children[dt])&&mp(o.children[dt],a,c,t)}}function hd(o,a,e){return a.every((t,s)=>C_[e](o[s].parameters,t.parameters))}class ka{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 w_.serialize(this)}}class Ct{constructor(a,e){this.segments=a,this.children=e,this.parent=null,fi(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yr(this)}}class Ia{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ra(this.parameters)),this._parameterMap}toString(){return md(this)}}function js(o,a){return o.length===a.length&&o.every((e,t)=>e.path===a[t].path)}class y_{}class Va{parse(a){const e=new Iv(a);return new ka(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${pd(a.root,!0)}`,t=function v_(o){const a=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(s=>`${fd(e)}=${fd(s)}`).join("&"):`${fd(e)}=${fd(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function oE(o){return encodeURI(o)}(a.fragment)}`:""}`}}const w_=new Va;function yr(o){return o.segments.map(a=>md(a)).join("/")}function pd(o,a){if(!o.hasChildren())return yr(o);if(a){const e=o.children[dt]?pd(o.children[dt],!1):"",t=[];return fi(o.children,(s,c)=>{c!==dt&&t.push(`${c}:${pd(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Sv(o,a){let e=[];return fi(o.children,(t,s)=>{s===dt&&(e=e.concat(a(t,s)))}),fi(o.children,(t,s)=>{s!==dt&&(e=e.concat(a(t,s)))}),e}(o,(t,s)=>s===dt?[pd(o.children[dt],!1)]:[`${s}:${pd(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[dt]?`${yr(o)}/${e[0]}`:`${yr(o)}/(${e.join("//")})`}}function _p(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fd(o){return _p(o).replace(/%3B/gi,";")}function gd(o){return _p(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bp(o){return decodeURIComponent(o)}function Cp(o){return bp(o.replace(/\+/g,"%20"))}function md(o){return`${gd(o.path)}${function Mv(o){return Object.keys(o).map(a=>`;${gd(a)}=${gd(o[a])}`).join("")}(o.parameters)}`}const Hv=/^[^\/()?;=#]+/;function _d(o){const a=o.match(Hv);return a?a[0]:""}const Dv=/^[^=?&#]+/,Rv=/^[^&#]+/;class Iv{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],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[dt]=new Ct(a,e)),t}parseSegment(){const a=_d(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new Ia(bp(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=_d(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=_d(this.remaining);s&&(t=s,this.capture(t))}a[bp(e)]=bp(t)}parseQueryParam(a){const e=function Pv(o){const a=o.match(Dv);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const l=function kv(o){const a=o.match(Rv);return a?a[0]:""}(this.remaining);l&&(t=l,this.capture(t))}const s=Cp(e),c=Cp(t);if(a.hasOwnProperty(s)){let l=a[s];Array.isArray(l)||(l=[l],a[s]=l),l.push(c)}else a[s]=c}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=_d(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let c;t.indexOf(":")>-1?(c=t.substr(0,t.indexOf(":")),this.capture(c),this.capture(":")):a&&(c=dt);const l=this.parseChildren();e[c]=1===Object.keys(l).length?l[dt]:new Ct([],l),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 Error(`Expected "${a}".`)}}class A_{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=Ba(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Ba(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=bd(a,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==a)}pathFromRoot(a){return bd(a,this._root).map(e=>e.value)}}function Ba(o,a){if(o===a.value)return a;for(const e of a.children){const t=Ba(o,e);if(t)return t}return null}function bd(o,a){if(o===a.value)return[a];for(const e of a.children){const t=bd(o,e);if(t.length)return t.unshift(a),t}return[]}class nr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Oa(o){const a={};return o&&o.children.forEach(e=>a[e.value.outlet]=e),a}class yp extends A_{constructor(a,e){super(a),this.snapshot=e,Ap(this,a)}toString(){return this.snapshot.toString()}}function wp(o,a){const e=function x_(o,a){const l=new dl([],{},{},"",{},dt,a,null,o.root,-1,{});return new E_("",new nr(l,[]))}(o,a),t=new ai([new Ia("",{})]),s=new ai({}),c=new ai({}),l=new ai({}),n=new ai(""),i=new Kr(t,s,l,n,c,dt,a,e.root);return i.snapshot=e.root,new yp(new nr(i,[]),e)}class Kr{constructor(a,e,t,s,c,l,n,i){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=c,this.outlet=l,this.component=n,this._futureSnapshot=i}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,et.U)(a=>Ra(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,et.U)(a=>Ra(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function vp(o,a="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const s=e[t],c=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(c.component)break;t--}}return function T_(o){return o.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class dl{constructor(a,e,t,s,c,l,n,i,r,d,u){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=c,this.outlet=l,this.component=n,this.routeConfig=i,this._urlSegment=r,this._lastPathIndex=d,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=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 E_ extends A_{constructor(a,e){super(e),this.url=a,Ap(this,e)}toString(){return Ns(this._root)}}function Ap(o,a){a.value._routerState=o,a.children.forEach(e=>Ap(o,e))}function Ns(o){const a=o.children.length>0?` { ${o.children.map(Ns).join(", ")} } `:"";return`${o.value}${a}`}function xp(o){if(o.snapshot){const a=o.snapshot,e=o._futureSnapshot;o.snapshot=e,Ui(a.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),a.fragment!==e.fragment&&o.fragment.next(e.fragment),Ui(a.params,e.params)||o.params.next(e.params),function Fs(o,a){if(o.length!==a.length)return!1;for(let e=0;eUi(e.parameters,a[t].parameters))}(o.url,a.url);return e&&!(!o.parent!=!a.parent)&&(!o.parent||ul(o.parent,a.parent))}function hl(o,a,e){if(e&&o.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const s=function Cd(o,a,e){return a.children.map(t=>{for(const s of e.children)if(o.shouldReuseRoute(t.value,s.value.snapshot))return hl(o,t,s);return hl(o,t)})}(o,a,e);return new nr(t,s)}{if(o.shouldAttach(a.value)){const c=o.retrieve(a.value);if(null!==c){const l=c.route;return l.value._futureSnapshot=a.value,l.children=a.children.map(n=>hl(o,n)),l}}const t=function pl(o){return new Kr(new ai(o.url),new ai(o.params),new ai(o.queryParams),new ai(o.fragment),new ai(o.data),o.outlet,o.component,o)}(a.value),s=a.children.map(c=>hl(o,c));return new nr(t,s)}}function yd(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function fl(o){return"object"==typeof o&&null!=o&&o.outlets}function zs(o,a,e,t,s){let c={};return t&&fi(t,(l,n)=>{c[n]=Array.isArray(l)?l.map(i=>`${i}`):`${l}`}),new ka(e.root===o?a:gl(e.root,o,a),c,s)}function gl(o,a,e){const t={};return fi(o.children,(s,c)=>{t[c]=s===a?e:gl(s,a,e)}),new Ct(o.segments,t)}class S_{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&yd(t[0]))throw new Error("Root segment cannot have matrix parameters");const s=t.find(fl);if(s&&s!==fp(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wd{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function D_(o,a,e){if(o||(o=new Ct([],{})),0===o.segments.length&&o.hasChildren())return vd(o,a,e);const t=function lE(o,a,e){let t=0,s=a;const c={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return c;const l=o.segments[s],n=e[t];if(fl(n))break;const i=`${n}`,r=t0&&void 0===i)break;if(i&&r&&"object"==typeof r&&void 0===r.outlets){if(!Ad(i,r,l))return c;t+=2}else{if(!Ad(i,{},l))return c;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(o,a,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof c&&(c=[c]),null!==c&&(s[l]=D_(o.children[l],a,c))}),fi(o.children,(c,l)=>{void 0===t[l]&&(s[l]=c)}),new Ct(o.segments,s)}}function ml(o,a,e){const t=o.segments.slice(0,a);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=ml(new Ct([],{}),0,e))}),a}function Sp(o){const a={};return fi(o,(e,t)=>a[t]=`${e}`),a}function Ad(o,a,e){return o==e.path&&Ui(a,e.parameters)}class Ov{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),xp(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const s=Oa(e);a.children.forEach(c=>{const l=c.value.outlet;this.deactivateRoutes(c,s[l],t),delete s[l]}),fi(s,(c,l)=>{this.deactivateRouteAndItsChildren(c,t)})}deactivateRoutes(a,e,t){const s=a.value,c=e?e.value:null;if(s===c)if(s.component){const l=t.getContext(s.outlet);l&&this.deactivateChildRoutes(a,e,l.children)}else this.deactivateChildRoutes(a,e,t);else c&&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,c=Oa(a);for(const l of Object.keys(c))this.deactivateRouteAndItsChildren(c[l],s);if(t&&t.outlet){const l=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:l,route:a,contexts:n})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,c=Oa(a);for(const l of Object.keys(c))this.deactivateRouteAndItsChildren(c[l],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=Oa(e);a.children.forEach(c=>{this.activateRoutes(c,s[c.value.outlet],t),this.forwardEvent(new g_(c.value.snapshot))}),a.children.length&&this.forwardEvent(new hp(a.value.snapshot))}activateRoutes(a,e,t){const s=a.value,c=e?e.value:null;if(xp(s),s===c)if(s.component){const l=t.getOrCreateContext(s.outlet);this.activateChildRoutes(a,e,l.children)}else this.activateChildRoutes(a,e,t);else if(s.component){const l=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const n=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),l.children.onOutletReAttached(n.contexts),l.attachRef=n.componentRef,l.route=n.route.value,l.outlet&&l.outlet.attach(n.componentRef,n.route.value),xp(n.route.value),this.activateChildRoutes(a,null,l.children)}else{const n=function Fv(o){for(let a=o.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),i=n?n.module.componentFactoryResolver:null;l.attachRef=null,l.route=s,l.resolver=i,l.outlet&&l.outlet.activateWith(s,i),this.activateChildRoutes(a,null,l.children)}}else this.activateChildRoutes(a,null,t)}}class Hp{constructor(a,e){this.routes=a,this.module=e}}function Zr(o){return"function"==typeof o}function wr(o){return o instanceof ka}const _l=Symbol("INITIAL_VALUE");function Gs(){return(0,pi.w)(o=>(0,ii.aj)(o.map(a=>a.pipe((0,Qt.q)(1),hi(_l)))).pipe(u_((a,e)=>{let t=!1;return e.reduce((s,c,l)=>s!==_l?s:(c===_l&&(t=!0),t||!1!==c&&l!==e.length-1&&!wr(c)?s:c),a)},_l),(0,mt.h)(a=>a!==_l),(0,et.U)(a=>wr(a)?a:!0===a),(0,Qt.q)(1)))}class B_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new bl,this.attachRef=null}}class bl{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new B_,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let Dp=(()=>{class o{constructor(e,t,s,c,l){this.parentContexts=e,this.location=t,this.resolver=s,this.changeDetector=l,this.activated=null,this._activatedRoute=null,this.activateEvents=new g.vpe,this.deactivateEvents=new g.vpe,this.attachEvents=new g.vpe,this.detachEvents=new g.vpe,this.name=c||dt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){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.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const 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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;const l=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,i=new Lv(e,n,this.location.injector);this.activated=this.location.createComponent(l,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(bl),g.Y36(g.s_b),g.Y36(g._Vd),g.$8M("name"),g.Y36(g.sBO))},o.\u0275dir=g.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class Lv{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Kr?this.route:a===bl?this.childContexts:this.parent.get(a,e)}}let Ei=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=g.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},directives:[Dp],encapsulation:2}),o})();function Fa(o,a=""){for(let e=0;eSi(t)===a);return e.push(...o.filter(t=>Si(t)!==a)),e}const xd={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Td(o,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(o.hasChildren()||e.length>0)?Object.assign({},xd):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const c=(a.matcher||vv)(e,o,a);if(!c)return Object.assign({},xd);const l={};fi(c.posParams,(i,r)=>{l[r]=i.path});const n=c.consumed.length>0?Object.assign(Object.assign({},l),c.consumed[c.consumed.length-1].parameters):l;return{matched:!0,consumedSegments:c.consumed,lastChild:c.consumed.length,parameters:n,positionalParamSegments:null!==(t=c.posParams)&&void 0!==t?t:{}}}function Cl(o,a,e,t,s="corrected"){if(e.length>0&&function Pp(o,a,e){return e.some(t=>yl(o,a,t)&&Si(t)!==dt)}(o,e,t)){const l=new Ct(a,function Gv(o,a,e,t){const s={};s[dt]=t,t._sourceSegment=o,t._segmentIndexShift=a.length;for(const c of e)if(""===c.path&&Si(c)!==dt){const l=new Ct([],{});l._sourceSegment=o,l._segmentIndexShift=a.length,s[Si(c)]=l}return s}(o,a,t,new Ct(e,o.children)));return l._sourceSegment=o,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:[]}}if(0===e.length&&function L_(o,a,e){return e.some(t=>yl(o,a,t))}(o,e,t)){const l=new Ct(o.segments,function zv(o,a,e,t,s,c){const l={};for(const n of t)if(yl(o,e,n)&&!s[Si(n)]){const i=new Ct([],{});i._sourceSegment=o,i._segmentIndexShift="legacy"===c?o.segments.length:a.length,l[Si(n)]=i}return Object.assign(Object.assign({},s),l)}(o,a,e,t,o.children,s));return l._sourceSegment=o,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}const c=new Ct(o.segments,o.children);return c._sourceSegment=o,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}function yl(o,a,e){return(!(o.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function wl(o,a,e,t){return!!(Si(o)===t||t!==dt&&yl(a,e,o))&&("**"===o.path||Td(a,o,e).matched)}function Ed(o,a,e){return 0===a.length&&!o.children[e]}class Sd{constructor(a){this.segmentGroup=a||null}}class Rp{constructor(a){this.urlTree=a}}function Md(o){return new Ci.y(a=>a.error(new Sd(o)))}function kp(o){return new Ci.y(a=>a.error(new Rp(o)))}function Hd(o){return new Ci.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${o}'`)))}class Ip{constructor(a,e,t,s,c){this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=c,this.allowRedirects=!0,this.ngModule=a.get(g.h0i)}apply(){const a=Cl(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ct(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,dt).pipe((0,et.U)(c=>this.createUrlTree(N_(c),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,zi.K)(c=>{if(c instanceof Rp)return this.allowRedirects=!1,this.match(c.urlTree);throw c instanceof Sd?this.noMatchError(c):c}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,dt).pipe((0,et.U)(s=>this.createUrlTree(N_(s),a.queryParams,a.fragment))).pipe((0,zi.K)(s=>{throw s instanceof Sd?this.noMatchError(s):s}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const s=a.segments.length>0?new Ct([],{[dt]:a}):a;return new ka(s,e,t)}expandSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,et.U)(c=>new Ct([],c))):this.expandSegment(a,t,e,t.segments,s,!0)}expandChildren(a,e,t){const s=[];for(const c of Object.keys(t.children))"primary"===c?s.unshift(c):s.push(c);return(0,xi.D)(s).pipe((0,Vn.b)(c=>{const l=t.children[c],n=F_(e,c);return this.expandSegmentGroup(a,n,l,c).pipe((0,et.U)(i=>({segment:i,outlet:c})))}),u_((c,l)=>(c[l.outlet]=l.segment,c),{}),function fv(o,a){const e=arguments.length>=2;return t=>t.pipe(o?(0,mt.h)((s,c)=>o(s,c,t)):pv.y,ld(1),e?(0,hv.d)(a):(0,uv.T)(()=>new sp.K))}())}expandSegment(a,e,t,s,c,l){return(0,xi.D)(t).pipe((0,Vn.b)(n=>this.expandSegmentAgainstRoute(a,e,t,n,s,c,l).pipe((0,zi.K)(r=>{if(r instanceof Sd)return(0,ke.of)(null);throw r}))),(0,Bs.P)(n=>!!n),(0,zi.K)((n,i)=>{if(n instanceof sp.K||"EmptyError"===n.name){if(Ed(e,s,c))return(0,ke.of)(new Ct([],{}));throw new Sd(e)}throw n}))}expandSegmentAgainstRoute(a,e,t,s,c,l,n){return wl(s,e,c,l)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(a,e,s,c,l):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l):Md(e):Md(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,s,l):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,s){const c=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?kp(c):this.lineralizeSegments(t,c).pipe((0,Gi.zg)(l=>{const n=new Ct(l,{});return this.expandSegment(a,n,e,l,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l){const{matched:n,consumedSegments:i,lastChild:r,positionalParamSegments:d}=Td(e,s,c);if(!n)return Md(e);const u=this.applyRedirectCommands(i,s.redirectTo,d);return s.redirectTo.startsWith("/")?kp(u):this.lineralizeSegments(s,u).pipe((0,Gi.zg)(f=>this.expandSegment(a,e,t,f.concat(c.slice(r)),l,!1)))}matchSegmentAgainstRoute(a,e,t,s,c){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,ke.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,et.U)(f=>(t._loadedConfig=f,new Ct(s,{})))):(0,ke.of)(new Ct(s,{}));const{matched:l,consumedSegments:n,lastChild:i}=Td(e,t,s);if(!l)return Md(e);const r=s.slice(i);return this.getChildConfig(a,t,s).pipe((0,Gi.zg)(u=>{const f=u.module,b=u.routes,{segmentGroup:D,slicedSegments:U}=Cl(e,n,r,b),se=new Ct(D.segments,D.children);if(0===U.length&&se.hasChildren())return this.expandChildren(f,b,se).pipe((0,et.U)(vt=>new Ct(n,vt)));if(0===b.length&&0===U.length)return(0,ke.of)(new Ct(n,{}));const De=Si(t)===c;return this.expandSegment(f,se,b,U,De?dt:c,!0).pipe((0,et.U)(Qe=>new Ct(n.concat(Qe.segments),Qe.children)))}))}getChildConfig(a,e,t){return e.children?(0,ke.of)(new Hp(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,ke.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,Gi.zg)(s=>s?this.configLoader.load(a.injector,e).pipe((0,et.U)(c=>(e._loadedConfig=c,c))):function j_(o){return new Ci.y(a=>a.error(pp(`Cannot load children because the guard of the route "path: '${o.path}'" returned false`)))}(e))):(0,ke.of)(new Hp([],a))}runCanLoadGuards(a,e,t){const s=e.canLoad;if(!s||0===s.length)return(0,ke.of)(!0);const c=s.map(l=>{const n=a.get(l);let i;if(function R_(o){return o&&Zr(o.canLoad)}(n))i=n.canLoad(e,t);else{if(!Zr(n))throw new Error("Invalid CanLoad guard");i=n(e,t)}return ir(i)});return(0,ke.of)(c).pipe(Gs(),(0,It.b)(l=>{if(!wr(l))return;const n=pp(`Redirecting to "${this.urlSerializer.serialize(l)}"`);throw n.url=l,n}),(0,et.U)(l=>!0===l))}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[dt])return Hd(a.redirectTo);s=s.children[dt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,s){const c=this.createSegmentGroup(a,e.root,t,s);return new ka(c,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return fi(a,(s,c)=>{if("string"==typeof s&&s.startsWith(":")){const n=s.substring(1);t[c]=e[n]}else t[c]=s}),t}createSegmentGroup(a,e,t,s){const c=this.createSegments(a,e.segments,t,s);let l={};return fi(e.children,(n,i)=>{l[i]=this.createSegmentGroup(a,n,t,s)}),new Ct(c,l)}createSegments(a,e,t,s){return e.map(c=>c.path.startsWith(":")?this.findPosParam(a,c,s):this.findOrReturn(c,t))}findPosParam(a,e,t){const s=t[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);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}}function N_(o){const a={};for(const t of Object.keys(o.children)){const c=N_(o.children[t]);(c.segments.length>0||c.hasChildren())&&(a[t]=c)}return function Vp(o){if(1===o.numberOfChildren&&o.children[dt]){const a=o.children[dt];return new Ct(o.segments.concat(a.segments),a.children)}return o}(new Ct(o.segments,a))}class z_{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class vl{constructor(a,e){this.component=a,this.route=e}}function G_(o,a,e){const t=o._root;return xl(t,a?a._root:null,e,[t.value])}function Al(o,a,e){const t=function U_(o){if(!o)return null;for(let a=o.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(o)}function xl(o,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const c=Oa(a);return o.children.forEach(l=>{(function $v(o,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const c=o.value,l=a?a.value:null,n=e?e.getContext(o.value.outlet):null;if(l&&c.routeConfig===l.routeConfig){const i=function q_(o,a,e){if("function"==typeof e)return e(o,a);switch(e){case"pathParamsChange":return!js(o.url,a.url);case"pathParamsOrQueryParamsChange":return!js(o.url,a.url)||!Ui(o.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ul(o,a)||!Ui(o.queryParams,a.queryParams);default:return!ul(o,a)}}(l,c,c.routeConfig.runGuardsAndResolvers);i?s.canActivateChecks.push(new z_(t)):(c.data=l.data,c._resolvedData=l._resolvedData),xl(o,a,c.component?n?n.children:null:e,t,s),i&&n&&n.outlet&&n.outlet.isActivated&&s.canDeactivateChecks.push(new vl(n.outlet.component,l))}else l&&Tl(a,n,s),s.canActivateChecks.push(new z_(t)),xl(o,null,c.component?n?n.children:null:e,t,s)})(l,c[l.value.outlet],e,t.concat([l.value]),s),delete c[l.value.outlet]}),fi(c,(l,n)=>Tl(l,e.getContext(n),s)),s}function Tl(o,a,e){const t=Oa(o),s=o.value;fi(t,(c,l)=>{Tl(c,s.component?a?a.children.getContext(l):null:a,e)}),e.canDeactivateChecks.push(new vl(s.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,s))}class dE{}function Jv(o){return new Ci.y(a=>a.error(o))}class hE{constructor(a,e,t,s,c,l){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=s,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=l}recognize(){const a=Cl(this.urlTree.root,[],[],this.config.filter(l=>void 0===l.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,dt);if(null===e)return null;const t=new dl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},dt,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new nr(t,e),c=new E_(this.url,s);return this.inheritParamsAndData(c._root),c}inheritParamsAndData(a){const e=a.value,t=vp(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){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const c of Object.keys(e.children)){const l=e.children[c],n=F_(a,c),i=this.processSegmentGroup(n,l,c);if(null===i)return null;t.push(...i)}const s=Kv(t);return function pE(o){o.sort((a,e)=>a.value.outlet===dt?-1:e.value.outlet===dt?1:a.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(a,e,t,s){for(const c of a){const l=this.processSegmentAgainstRoute(c,e,t,s);if(null!==l)return l}return Ed(e,t,s)?[]:null}processSegmentAgainstRoute(a,e,t,s){if(a.redirectTo||!wl(a,e,t,s))return null;let c,l=[],n=[];if("**"===a.path){const b=t.length>0?fp(t).parameters:{};c=new dl(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,La(a),Si(a),a.component,a,Zv(e),Dd(e)+t.length,Op(a))}else{const b=Td(e,a,t);if(!b.matched)return null;l=b.consumedSegments,n=t.slice(b.lastChild),c=new dl(l,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,La(a),Si(a),a.component,a,Zv(e),Dd(e)+l.length,Op(a))}const i=function fE(o){return o.children?o.children:o.loadChildren?o._loadedConfig.routes:[]}(a),{segmentGroup:r,slicedSegments:d}=Cl(e,l,n,i.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===d.length&&r.hasChildren()){const b=this.processChildren(i,r);return null===b?null:[new nr(c,b)]}if(0===i.length&&0===d.length)return[new nr(c,[])];const u=Si(a)===s,f=this.processSegment(i,r,d,u?dt:s);return null===f?null:[new nr(c,f)]}}function gE(o){const a=o.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Kv(o){const a=[],e=new Set;for(const t of o){if(!gE(t)){a.push(t);continue}const s=a.find(c=>t.value.routeConfig===c.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):a.push(t)}for(const t of e){const s=Kv(t.children);a.push(new nr(t.value,s))}return a.filter(t=>!e.has(t))}function Zv(o){let a=o;for(;a._sourceSegment;)a=a._sourceSegment;return a}function Dd(o){let a=o,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function La(o){return o.data||{}}function Op(o){return o.resolve||{}}function Lp(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}function X_(o){return(0,pi.w)(a=>{const e=o(a);return e?(0,xi.D)(e).pipe((0,et.U)(()=>a)):(0,ke.of)(a)})}class tb extends class Pd{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const ib=new g.OlP("ROUTES");class tA{constructor(a,e,t,s){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=s}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const s=this.loadModuleFactory(e.loadChildren).pipe((0,et.U)(c=>{this.onLoadEndListener&&this.onLoadEndListener(e);const l=c.create(a);return new Hp(Av(l.injector.get(ib,void 0,g.XFs.Self|g.XFs.Optional)).map(O_),l)}),(0,zi.K)(c=>{throw e._loader$=void 0,c}));return e._loader$=new sv.c(s,()=>new He.xQ).pipe((0,h_.x)()),e._loader$}loadModuleFactory(a){return ir(a()).pipe((0,Gi.zg)(e=>e instanceof g.YKP?(0,ke.of)(e):(0,xi.D)(this.compiler.compileModuleAsync(e))))}}class iA{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function jp(o){throw o}function nA(o,a,e){return a.parse("/")}function rA(o,a){return(0,ke.of)(null)}const aA={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Np={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ki=(()=>{class o{constructor(e,t,s,c,l,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=c,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.xQ,this.errorHandler=jp,this.malformedUriErrorHandler=nA,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:rA,afterPreactivation:rA},this.urlHandlingStrategy=new iA,this.routeReuseStrategy=new tb,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=l.get(g.h0i),this.console=l.get(g.c2e);const u=l.get(g.R0b);this.isNgZoneEnabled=u instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function xv(){return new ka(new Ct([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new tA(l,n,f=>this.triggerEvent(new cd(f)),f=>this.triggerEvent(new f_(f))),this.routerState=wp(this.currentUrlTree,this.rootComponentType),this.transitions=new ai({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,mt.h)(s=>0!==s.id),(0,et.U)(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,pi.w)(s=>{let c=!1,l=!1;return(0,ke.of)(s).pipe((0,It.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.currentRawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,pi.w)(n=>{const i=this.browserUrlTree.toString(),r=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||r)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return Rd(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,ke.of)(n).pipe((0,pi.w)(u=>{const f=this.transitions.getValue();return t.next(new lp(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?Ea.E:Promise.resolve(u)}),function qv(o,a,e,t){return(0,pi.w)(s=>function Uv(o,a,e,t,s){return new Ip(o,a,e,t,s).apply()}(o,a,e,s.extractedUrl,t).pipe((0,et.U)(c=>Object.assign(Object.assign({},s),{urlAfterRedirects:c}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,It.b)(u=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:u.urlAfterRedirects})}),function Xv(o,a,e,t,s){return(0,Gi.zg)(c=>function uE(o,a,e,t,s="emptyOnly",c="legacy"){try{const l=new hE(o,a,e,t,s,c).recognize();return null===l?Jv(new dE):(0,ke.of)(l)}catch(l){return Jv(l)}}(o,a,c.urlAfterRedirects,e(c.urlAfterRedirects),t,s).pipe((0,et.U)(l=>Object.assign(Object.assign({},c),{targetSnapshot:l}))))}(this.rootComponentType,this.config,u=>this.serializeUrl(u),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,It.b)(u=>{if("eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const f=new mv(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(r&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:D,restoredState:U,extras:se}=n,De=new lp(f,this.serializeUrl(b),D,U);t.next(De);const rt=wp(b,this.rootComponentType).snapshot;return(0,ke.of)(Object.assign(Object.assign({},n),{targetSnapshot:rt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},se),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=n.rawUrl,n.resolve(null),Ea.E}),X_(n=>{const{targetSnapshot:i,id:r,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:b}}=n;return this.hooks.beforePreactivation(i,{navigationId:r,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!b})}),(0,It.b)(n=>{const i=new _v(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,et.U)(n=>Object.assign(Object.assign({},n),{guards:G_(n.targetSnapshot,n.currentSnapshot,this.rootContexts)})),function W_(o,a){return(0,Gi.zg)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:c,canDeactivateChecks:l}}=e;return 0===l.length&&0===c.length?(0,ke.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function $_(o,a,e,t){return(0,xi.D)(o).pipe((0,Gi.zg)(s=>function J_(o,a,e,t,s){const c=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!c||0===c.length)return(0,ke.of)(!0);const l=c.map(n=>{const i=Al(n,a,s);let r;if(function V_(o){return o&&Zr(o.canDeactivate)}(i))r=ir(i.canDeactivate(o,a,e,t));else{if(!Zr(i))throw new Error("Invalid CanDeactivate guard");r=ir(i(o,a,e,t))}return r.pipe((0,Bs.P)())});return(0,ke.of)(l).pipe(Gs())}(s.component,s.route,e,a,t)),(0,Bs.P)(s=>!0!==s,!0))}(l,t,s,o).pipe((0,Gi.zg)(n=>n&&function P_(o){return"boolean"==typeof o}(n)?function Q_(o,a,e,t){return(0,xi.D)(a).pipe((0,Vn.b)(s=>os(function Qv(o,a){return null!==o&&a&&a(new bv(o)),(0,ke.of)(!0)}(s.route.parent,t),function Y_(o,a){return null!==o&&a&&a(new Cv(o)),(0,ke.of)(!0)}(s.route,t),function cE(o,a,e){const t=a[a.length-1],c=a.slice(0,a.length-1).reverse().map(l=>function Wv(o){const a=o.routeConfig?o.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:o,guards:a}:null}(l)).filter(l=>null!==l).map(l=>As(()=>{const n=l.guards.map(i=>{const r=Al(i,l.node,e);let d;if(function I_(o){return o&&Zr(o.canActivateChild)}(r))d=ir(r.canActivateChild(t,o));else{if(!Zr(r))throw new Error("Invalid CanActivateChild guard");d=ir(r(t,o))}return d.pipe((0,Bs.P)())});return(0,ke.of)(n).pipe(Gs())}));return(0,ke.of)(c).pipe(Gs())}(o,s.path,e),function Yv(o,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,ke.of)(!0);const s=t.map(c=>As(()=>{const l=Al(c,a,e);let n;if(function k_(o){return o&&Zr(o.canActivate)}(l))n=ir(l.canActivate(a,o));else{if(!Zr(l))throw new Error("Invalid CanActivate guard");n=ir(l(a,o))}return n.pipe((0,Bs.P)())}));return(0,ke.of)(s).pipe(Gs())}(o,s.route,e))),(0,Bs.P)(s=>!0!==s,!0))}(t,c,o,a):(0,ke.of)(n)),(0,et.U)(n=>Object.assign(Object.assign({},e),{guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,It.b)(n=>{if(wr(n.guardsResult)){const r=pp(`Redirecting to "${this.serializeUrl(n.guardsResult)}"`);throw r.url=n.guardsResult,r}const i=new dp(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,mt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,""),!1)),X_(n=>{if(n.guards.canActivateChecks.length)return(0,ke.of)(n).pipe((0,It.b)(i=>{const r=new up(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(r)}),(0,pi.w)(i=>{let r=!1;return(0,ke.of)(i).pipe(function eA(o,a){return(0,Gi.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,ke.of)(e);let c=0;return(0,xi.D)(s).pipe((0,Vn.b)(l=>function Fp(o,a,e,t){return function K_(o,a,e,t){const s=Lp(o);if(0===s.length)return(0,ke.of)({});const c={};return(0,xi.D)(s).pipe((0,Gi.zg)(l=>function Z_(o,a,e,t){const s=Al(o,a,t);return ir(s.resolve?s.resolve(a,e):s(a,e))}(o[l],a,e,t).pipe((0,It.b)(n=>{c[l]=n}))),ld(1),(0,Gi.zg)(()=>Lp(c).length===s.length?(0,ke.of)(c):Ea.E))}(o._resolve,o,a,t).pipe((0,et.U)(c=>(o._resolvedData=c,o.data=Object.assign(Object.assign({},o.data),vp(o,e).resolve),null)))}(l.route,t,o,a)),(0,It.b)(()=>c++),ld(1),(0,Gi.zg)(l=>c===s.length?(0,ke.of)(e):Ea.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,It.b)({next:()=>r=!0,complete:()=>{r||(this.restoreHistory(i),this.cancelNavigationTransition(i,"At least one route resolver didn't emit any value."))}}))}),(0,It.b)(i=>{const r=new p_(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(r)}))}),X_(n=>{const{targetSnapshot:i,id:r,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:b}}=n;return this.hooks.afterPreactivation(i,{navigationId:r,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!b})}),(0,et.U)(n=>{const i=function rr(o,a,e){const t=hl(o,a._root,e?e._root:void 0);return new yp(t,a)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return Object.assign(Object.assign({},n),{targetRouterState:i})}),(0,It.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((o,a,e)=>(0,et.U)(t=>(new Ov(a,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,It.b)({next(){c=!0},complete(){c=!0}}),Zc(()=>{var n;c||l||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`),(null===(n=this.currentNavigation)||void 0===n?void 0:n.id)===s.id&&(this.currentNavigation=null)}),(0,zi.K)(n=>{if(l=!0,function cl(o){return o&&o[wv]}(n)){const i=wr(n.url);i||(this.navigated=!0,this.restoreHistory(s,!0));const r=new cp(s.id,this.serializeUrl(s.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),u={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Rd(s.source)};this.scheduleNavigation(d,"imperative",null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const i=new gv(s.id,this.serializeUrl(s.extractedUrl),n);t.next(i);try{s.resolve(this.errorHandler(n))}catch(r){s.reject(r)}}return Ea.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},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 s;const c={replaceUrl:!0},l=(null===(s=e.state)||void 0===s?void 0:s.navigationId)?e.state:null;if(l){const i=Object.assign({},l);delete i.navigationId,delete i.\u0275routerPageId,0!==Object.keys(i).length&&(c.state=i)}const n=this.parseUrl(e.url);this.scheduleNavigation(n,t,l,c)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Fa(e),this.config=e.map(O_),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:c,fragment:l,queryParamsHandling:n,preserveFragment:i}=t,r=s||this.routerState.root,d=i?this.currentUrlTree.fragment:l;let u=null;switch(n){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),c);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=c||null}return null!==u&&(u=this.removeEmptyProps(u)),function Vv(o,a,e,t,s){if(0===e.length)return zs(a.root,a.root,a,t,s);const c=function Bv(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new S_(!0,0,o);let a=0,e=!1;const t=o.reduce((s,c,l)=>{if("object"==typeof c&&null!=c){if(c.outlets){const n={};return fi(c.outlets,(i,r)=>{n[r]="string"==typeof i?i.split("/"):i}),[...s,{outlets:n}]}if(c.segmentPath)return[...s,c.segmentPath]}return"string"!=typeof c?[...s,c]:0===l?(c.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?a++:""!=n&&s.push(n))}),s):[...s,c]},[]);return new S_(e,a,t)}(e);if(c.toRoot())return zs(a.root,new Ct([],{}),a,t,s);const l=function M_(o,a,e){if(o.isAbsolute)return new wd(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const c=e.snapshot._urlSegment;return new wd(c,c===a.root,0)}const t=yd(o.commands[0])?0:1;return function Tp(o,a,e){let t=o,s=a,c=e;for(;c>s;){if(c-=s,t=t.parent,!t)throw new Error("Invalid number of '../'");s=t.segments.length}return new wd(t,!1,s-c)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,o.numberOfDoubleDots)}(c,a,o),n=l.processChildren?vd(l.segmentGroup,l.index,c.commands):D_(l.segmentGroup,l.index,c.commands);return zs(l.segmentGroup,n,a,t,s)}(r,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=wr(e)?e:this.parseUrl(e),c=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(c,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function en(o){for(let a=0;a{const c=e[s];return null!=c&&(t[s]=c),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Os(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,c,l){var n,i,r;if(this.disposed)return Promise.resolve(!1);const d=this.transitions.value,u=Rd(t)&&d&&!Rd(d.source),f=d.rawUrl.toString()===e.toString(),b=d.id===(null===(n=this.currentNavigation)||void 0===n?void 0:n.id);if(u&&f&&b)return Promise.resolve(!0);let U,se,De;l?(U=l.resolve,se=l.reject,De=l.promise):De=new Promise((vt,jn)=>{U=vt,se=jn});const rt=++this.navigationId;let Qe;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),Qe=s&&s.\u0275routerPageId?s.\u0275routerPageId:c.replaceUrl||c.skipLocationChange?null!==(i=this.browserPageId)&&void 0!==i?i:0:(null!==(r=this.browserPageId)&&void 0!==r?r:0)+1):Qe=0,this.setTransition({id:rt,targetPageId:Qe,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:c,resolve:U,reject:se,promise:De,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),De.catch(vt=>Promise.reject(vt))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),c=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",c):this.location.go(s,"",c)}restoreHistory(e,t=!1){var s,c;if("computed"===this.canceledNavigationResolution){const l=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===l?this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl)&&0===l&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(l)}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){const s=new cp(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){g.$Z()},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function Rd(o){return"imperative"!==o}class Up{}class qp{preload(a,e){return(0,ke.of)(null)}}let Wp=(()=>{class o{constructor(e,t,s,c){this.router=e,this.injector=s,this.preloadingStrategy=c,this.loader=new tA(s,t,i=>e.triggerEvent(new cd(i)),i=>e.triggerEvent(new f_(i)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,mt.h)(e=>e instanceof Os),(0,Vn.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(g.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const c of t)if(c.loadChildren&&!c.canLoad&&c._loadedConfig){const l=c._loadedConfig;s.push(this.processRoutes(l.module,l.routes))}else c.loadChildren&&!c.canLoad?s.push(this.preloadConfig(e,c)):c.children&&s.push(this.processRoutes(e,c.children));return(0,xi.D)(s).pipe((0,_c.J)(),(0,et.U)(c=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,ke.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,Gi.zg)(c=>(t._loadedConfig=c,this.processRoutes(c.module,c.routes)))))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(ki),g.LFG(g.Sil),g.LFG(g.zs3),g.LFG(Up))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),$p=(()=>{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 lp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Os&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof m_&&(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 m_(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){g.$Z()},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const vr=new g.OlP("ROUTER_CONFIGURATION"),bn=new g.OlP("ROUTER_FORROOT_GUARD"),oA=[T.Ye,{provide:y_,useClass:Va},{provide:ki,useFactory:function dA(o,a,e,t,s,c,l={},n,i){const r=new ki(null,o,a,e,t,s,Av(c));return n&&(r.urlHandlingStrategy=n),i&&(r.routeReuseStrategy=i),function CE(o,a){o.errorHandler&&(a.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(a.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(a.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(a.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(a.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(a.canceledNavigationResolution=o.canceledNavigationResolution)}(l,r),l.enableTracing&&r.events.subscribe(d=>{var u,f;null===(u=console.group)||void 0===u||u.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(f=console.groupEnd)||void 0===f||f.call(console)}),r},deps:[y_,bl,T.Ye,g.zs3,g.Sil,ib,vr,[class mE{},new g.FiY],[class eb{},new g.FiY]]},bl,{provide:Kr,useFactory:function ab(o){return o.routerState.root},deps:[ki]},Wp,qp,class sA{preload(a,e){return e().pipe((0,zi.K)(()=>(0,ke.of)(null)))}},{provide:vr,useValue:{enableTracing:!1}}];function bE(){return new g.PXZ("Router",ki)}let Qp=(()=>{class o{constructor(e,t){}static forRoot(e,t){return{ngModule:o,providers:[oA,Yp(e),{provide:bn,useFactory:cA,deps:[[ki,new g.FiY,new g.tp0]]},{provide:vr,useValue:t||{}},{provide:T.S$,useFactory:lA,deps:[T.lw,[new g.tBr(T.mr),new g.FiY],vr]},{provide:$p,useFactory:rb,deps:[ki,T.EM,vr]},{provide:Up,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:qp},{provide:g.PXZ,multi:!0,useFactory:bE},[kd,{provide:g.ip1,multi:!0,useFactory:uA,deps:[kd]},{provide:Jp,useFactory:hA,deps:[kd]},{provide:g.tb,multi:!0,useExisting:Jp}]]}}static forChild(e){return{ngModule:o,providers:[Yp(e)]}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(bn,8),g.LFG(ki,8))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();function rb(o,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new $p(o,a,e)}function lA(o,a,e={}){return e.useHash?new T.Do(o,a):new T.b0(o,a)}function cA(o){return"guarded"}function Yp(o){return[{provide:g.deG,multi:!0,useValue:o},{provide:ib,multi:!0,useValue:o}]}let kd=(()=>{class o{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He.xQ}appInitializer(){return this.injector.get(T.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const s=new Promise(n=>t=n),c=this.injector.get(ki),l=this.injector.get(vr);return"disabled"===l.initialNavigation?(c.setUpLocationChangeListener(),t(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(c.hooks.afterPreactivation=()=>this.initNavigation?(0,ke.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),c.initialNavigation()):t(!0),s})}bootstrapListener(e){const t=this.injector.get(vr),s=this.injector.get(Wp),c=this.injector.get($p),l=this.injector.get(ki),n=this.injector.get(g.z2F);e===n.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&l.initialNavigation(),s.setUpPreloading(),c.init(),l.resetRootComponentType(n.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.zs3))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function uA(o){return o.appInitializer.bind(o)}function hA(o){return o.bootstrapListener.bind(o)}const Jp=new g.OlP("Router Initializer");var Kp=E(6114);let Zp=(()=>{class o{constructor(e,t,s,c,l){this.injector=e,this.store=t,this.dialog=s,this.route=c,this.oauthService=l,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(ki),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),s=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(s.prompt="consent"),sessionStorage.getItem("mfa_route")&&(s.acr_values="https://refeds.org/profile/mfa",s.prompt="login",s.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:s}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let s=null;return e.forEach(c=>{const l=c.split("=");"idpFilter"===l[0]&&t[l[1]]&&(this.filterShortname=l[1],s=t[l[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,mt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let c=[];s&&(c=s.split("&"));const l={};return c.forEach(n=>{const i=n.split("=");l[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),l.idpFilter&&(this.filterShortname=String(l.idpFilter)),this.router.navigate([t],{queryParams:l,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,mt.h)(e=>e instanceof Os)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}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}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(e=>(localStorage.setItem("refresh_token",e.refresh_token),!0),()=>!1)}verifyAuthentication(e,t){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(s=>!!s||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((c,l)=>l("Invalid path"))))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.zs3),g.LFG(Hi),g.LFG(Ts),g.LFG(Kr),g.LFG(Kp.Ct))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xp=(()=>{class o{constructor(e,t,s,c,l,n){this.authService=e,this.storeService=t,this.authResolver=s,this.authzService=c,this.dialog=l,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Vs();this.dialog.open($y,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const s of e){const c=s.split("=");t[c[0]]=c[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Zp),g.LFG(Hi),g.LFG(Ff),g.LFG(Wi),g.LFG(Ts),g.LFG(ki))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),fA=(()=>{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/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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Ne),g.LFG(xn))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),gA=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(xs))},o.\u0275cmp=g.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&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"div",2),g.TgZ(7,"div",3),g.TgZ(8,"button",4),g.NdJ("click",function(){return t.close()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),g.xp6(3),g.hij(" ",g.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),g.xp6(5),g.hij(" ",g.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Ic,Dh,gm,zc],pipes:[Jr],styles:[""]}),o})(),mA=(()=>{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=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ob=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new g.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,c,l){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===c&&void 0!==s?this.getDefaultActionMessage():c,delay:this.defaultErrorDelayMs,icon:"error_outline",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,c){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:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(_n))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ef=(()=>{class o{constructor(e,t,s,c,l,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=c,this.dialog=l,this.initAuthService=n}intercept(e,t){const s=this.store.get("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.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=Vs();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(gA,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Zc(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}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()}}));const c=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,It.b)(n=>{n instanceof y.Zn&&l&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,al._)(n):c?void this.notificator.showRPCError(i):(0,al._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let s;console.error(e);const c=e.error;if(c.errorId&&(s=c),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Zp),g.LFG(mA),g.LFG(ob),g.LFG(Hi),g.LFG(Ts),g.LFG(Xp))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),_A=(()=>{class o{constructor(e,t,s,c){this.http=e,this.notificator=t,this.authService=s,this.storeService=c}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.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,zi.K)(c=>this.formatErrors(c,s,null,t)))}put(e,t={},s=!0){const c=`${this.getApiUrl()}${e}`,l=JSON.stringify(t);return this.http.put(c,l,{headers:this.getHeaders()}).pipe((0,zi.K)(n=>this.formatErrors(n,c,l,s)))}post(e,t={},s=!0){const c=`${this.getApiUrl()}${e}`,l=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(c,l,{headers:n}).pipe((0,zi.K)(i=>this.formatErrors(i,c,l,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,zi.K)(c=>this.formatErrors(c,s,null,t)))}formatErrors(e,t,s,c){const l=e.error;return l.call=t,l.payload=s,c&&this.notificator.showRPCError(e.error),(0,al._)(l)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(ob),g.LFG(Zp),g.LFG(Hi))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),lb=(()=>{class o{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),s=navigator.languages.map(n=>n.split("-")[0]),c=location.search.substring(1).split("&");let l=null;for(const n of c){const i=n.split("=");"lang"===i[0]&&(l=i[1])}return l&&t.includes(l)?l:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Kr),g.LFG(Hi))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const wE=["*",[["mat-toolbar-row"]]],vE=["*","mat-toolbar-row"],AE=Aa(class{constructor(o){this._elementRef=o}});let xE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),o})(),bA=(()=>{class o extends AE{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 o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Je),g.Y36(T.K0))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&g.Suo(s,xE,5),2&e){let c;g.iGM(c=g.CRH())&&(t._toolbarRows=c)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&g.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[g.qOj],ngContentSelectors:vE,decls:2,vars:0,template:function(e,t){1&e&&(g.F$t(wE),g.Hsn(0),g.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),o})(),cb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})();function CA(o,a){1&o&&(g.TgZ(0,"div",10),g.TgZ(1,"span",11),g._uU(2," ~ \u{1f5f2}\xa0 "),g.qZA(),g.TgZ(3,"span",12),g._uU(4," DEVEL "),g.qZA(),g.TgZ(5,"span",11),g._uU(6," \xa0\u{1f5f2} ~ "),g.qZA(),g.qZA())}const db=function(o){return{background:o}},Ar=function(o){return{color:o}};let ub=(()=>{class o{constructor(e,t,s,c){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=c,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.label=this.storeService.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`),this.isDevel=this.storeService.get("is_devel")}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(xn),g.Y36(lb),g.Y36(_n))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(g.TgZ(0,"mat-toolbar",0),g.TgZ(1,"div",1),g._UZ(2,"a",2),g.TgZ(3,"p",3),g._uU(4),g.qZA(),g.qZA(),g.YNc(5,CA,7,0,"div",4),g.TgZ(6,"div",5),g.TgZ(7,"button",6),g.TgZ(8,"mat-icon",7),g._uU(9," language "),g.qZA(),g.qZA(),g.TgZ(10,"mat-menu",null,8),g.TgZ(12,"button",9),g.NdJ("click",function(){return t.changeLanguage()}),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.qZA(),g.qZA(),g.qZA()),2&e){const s=g.MAs(11);g.Q6J("ngStyle",g.VKq(11,db,t.bgColor)),g.xp6(2),g.Q6J("innerHTML",t.logo,g.oJD),g.xp6(1),g.Q6J("ngStyle",g.VKq(13,Ar,t.textColor)),g.xp6(1),g.Oqu(t.label),g.xp6(1),g.Q6J("ngIf",t.isDevel),g.xp6(1),g.Q6J("ngStyle",g.VKq(15,Ar,t.textColor)),g.xp6(1),g.Q6J("matMenuTriggerFor",s),g.xp6(1),g.Q6J("ngStyle",g.VKq(17,Ar,t.iconColor)),g.xp6(5),g.hij(" ",g.lcZ(14,9,"HEADER.LANGUAGE")," ")}},directives:[bA,T.PC,T.O5,zc,n_,np,Nw,Kc],pipes:[Jr],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),o})(),Id=(()=>{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)(g.Y36(g.Qsj),g.Y36(g.SBq))},o.\u0275dir=g.lG2({type:o}),o})(),xr=(()=>{class o extends Id{}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275dir=g.lG2({type:o,features:[g.qOj]}),o})();const qi=new g.OlP("NgValueAccessor"),Bd={provide:qi,useExisting:(0,g.Gpc)(()=>Od),multi:!0},EE=new g.OlP("CompositionEventMode");let Od=(()=>{class o extends Id{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function TE(){const o=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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)(g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(EE,8))},o.\u0275dir=g.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&&g.NdJ("input",function(c){return t._handleInput(c.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(c){return t._compositionEnd(c.target.value)})},features:[g._Bn([Bd]),g.qOj]}),o})();function ja(o){return null==o||0===o.length}function rf(o){return null!=o&&"number"==typeof o.length}const ci=new g.OlP("NgValidators"),Xr=new g.OlP("NgAsyncValidators"),yA=/^(?=.{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 Ml{static min(a){return function af(o){return a=>{if(ja(a.value)||ja(o))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(ja(a.value)||ja(o))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>o?{max:{max:o,actual:a.value}}:null}}(a)}static required(a){return lf(a)}static requiredTrue(a){return function hb(o){return!0===o.value?null:{required:!0}}(a)}static email(a){return function pb(o){return ja(o.value)||yA.test(o.value)?null:{email:!0}}(a)}static minLength(a){return function cf(o){return a=>ja(a.value)||!rf(a.value)?null:a.value.lengthrf(a.value)&&a.value.length>o?{maxlength:{requiredLength:o,actualLength:a.value.length}}:null}(a)}static pattern(a){return function wA(o){if(!o)return Dl;let a,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),a=new RegExp(e)):(e=o.toString(),a=o),t=>{if(ja(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 _b(a)}static composeAsync(a){return bb(a)}}function lf(o){return ja(o.value)?{required:!0}:null}function Dl(o){return null}function Pl(o){return null!=o}function fb(o){const a=(0,g.QGY)(o)?(0,xi.D)(o):o;return(0,g.CqO)(a),a}function gb(o){let a={};return o.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function mb(o,a){return a.map(e=>e(o))}function AA(o){return o.map(a=>function vA(o){return!o.validate}(a)?a:e=>a.validate(e))}function _b(o){if(!o)return null;const a=o.filter(Pl);return 0==a.length?null:function(e){return gb(mb(e,a))}}function df(o){return null!=o?_b(AA(o)):null}function bb(o){if(!o)return null;const a=o.filter(Pl);return 0==a.length?null:function(e){return Es(mb(e,a).map(fb)).pipe((0,et.U)(gb))}}function uf(o){return null!=o?bb(AA(o)):null}function Cb(o,a){return null===o?[a]:Array.isArray(o)?[...o,a]:[o,a]}function yb(o){return o._rawValidators}function wb(o){return o._rawAsyncValidators}function hf(o){return o?Array.isArray(o)?o:[o]:[]}function pf(o,a){return Array.isArray(o)?o.includes(a):o===a}function xA(o,a){const e=hf(a);return hf(o).forEach(s=>{pf(e,s)||e.push(s)}),e}function TA(o,a){return hf(a).filter(e=>!pf(o,e))}class EA{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=df(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=uf(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 Tr extends EA{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ii extends EA{get formDirective(){return null}get path(){return null}}class SA{constructor(a){this._cd=a}is(a){var e,t,s;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===s?void 0:s[a])}}let vb=(()=>{class o extends SA{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Tr,2))},o.\u0275dir=g.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[g.qOj]}),o})(),h=(()=>{class o extends SA{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Ii,10))},o.\u0275dir=g.lG2({type:o,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[g.qOj]}),o})();function Re(o,a){return[...a.path,o]}function ge(o,a){Vi(o,a),a.valueAccessor.writeValue(o.value),function ff(o,a){a.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&Fd(o,a)})}(o,a),function mf(o,a){const e=(t,s)=>{a.valueAccessor.writeValue(t),s&&a.viewToModelUpdate(t)};o.registerOnChange(e),a._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,a),function gf(o,a){a.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&Fd(o,a),"submit"!==o.updateOn&&o.markAsTouched()})}(o,a),function Ht(o,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),a._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,a)}function Le(o,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),ar(o,a),o&&(a._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function ot(o,a){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Vi(o,a){const e=yb(o);null!==a.validator?o.setValidators(Cb(e,a.validator)):"function"==typeof e&&o.setValidators([e]);const t=wb(o);null!==a.asyncValidator?o.setAsyncValidators(Cb(t,a.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const s=()=>o.updateValueAndValidity();ot(a._rawValidators,s),ot(a._rawAsyncValidators,s)}function ar(o,a){let e=!1;if(null!==o){if(null!==a.validator){const s=yb(o);if(Array.isArray(s)&&s.length>0){const c=s.filter(l=>l!==a.validator);c.length!==s.length&&(e=!0,o.setValidators(c))}}if(null!==a.asyncValidator){const s=wb(o);if(Array.isArray(s)&&s.length>0){const c=s.filter(l=>l!==a.asyncValidator);c.length!==s.length&&(e=!0,o.setAsyncValidators(c))}}}const t=()=>{};return ot(a._rawValidators,t),ot(a._rawAsyncValidators,t),e}function Fd(o,a){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function Ld(o,a){Vi(o,a)}function Rl(o,a){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function SE(o,a){o._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function MA(o,a){if(!a)return null;let e,t,s;return Array.isArray(a),a.forEach(c=>{c.constructor===Od?e=c:function VM(o){return Object.getPrototypeOf(o.constructor)===xr}(c)?t=c:s=c}),s||t||e||null}function HA(o,a){const e=o.indexOf(a);e>-1&&o.splice(e,1)}const Cf="VALID",xb="INVALID",jd="PENDING",yf="DISABLED";function PA(o){return(Tb(o)?o.validators:o)||null}function ME(o){return Array.isArray(o)?df(o):o||null}function RA(o,a){return(Tb(a)?a.asyncValidators:o)||null}function HE(o){return Array.isArray(o)?uf(o):o||null}function Tb(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}const kA=o=>o instanceof wf,Eb=o=>o instanceof Sb,DE=o=>o instanceof IE;function PE(o){return kA(o)?o.value:o.getRawValue()}function RE(o,a){const e=Eb(o),t=o.controls;if(!(e?Object.keys(t):t).length)throw new g.vHH(1e3,"");if(!t[a])throw new g.vHH(1001,"")}function kE(o,a){Eb(o),o._forEachChild((t,s)=>{if(void 0===a[s])throw new g.vHH(1002,"")})}class IA{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=ME(this._rawValidators),this._composedAsyncValidatorFn=HE(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===Cf}get invalid(){return this.status===xb}get pending(){return this.status==jd}get disabled(){return this.status===yf}get enabled(){return this.status!==yf}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=ME(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=HE(a)}addValidators(a){this.setValidators(xA(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(xA(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(TA(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(TA(a,this._rawAsyncValidators))}hasValidator(a){return pf(this._rawValidators,a)}hasAsyncValidator(a){return pf(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=jd,!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=yf,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Cf,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},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}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Cf||this.status===jd)&&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()?yf:Cf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=jd,this._hasOwnPendingAsyncValidator=!0;const e=fb(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){return function BM(o,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=o;return a.forEach(s=>{t=Eb(t)?t.controls.hasOwnProperty(s)?t.controls[s]:null:DE(t)&&t.at(s)||null}),t}(this,a,".")}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 g.vpe,this.statusChanges=new g.vpe}_calculateStatus(){return this._allControlsDisabled()?yf:this.errors?xb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jd)?jd:this._anyControlsHaveStatus(xb)?xb:Cf}_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)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Tb(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class wf extends IA{constructor(a=null,e,t){super(PA(e),RA(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}),Tb(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(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){HA(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){HA(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){this._isBoxedValue(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}}class Sb extends IA{constructor(a,e,t){super(PA(e),RA(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={}){kE(this,a),Object.keys(a).forEach(t=>{RE(this,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=>{this.controls[t]&&this.controls[t].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]=PE(e),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 of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((s,c)=>{t=e(t,s,c)}),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}}class IE extends IA{constructor(a,e,t){super(PA(e),RA(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[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={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){kE(this,a),a.forEach((t,s)=>{RE(this,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=>PE(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_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)}}const OM={provide:Ii,useExisting:(0,g.Gpc)(()=>Af)},vf=(()=>Promise.resolve(null))();let Af=(()=>{class o extends Ii{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.vpe,this.form=new Sb({},df(e),uf(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){vf.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ge(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){vf.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){vf.then(()=>{const t=this._findContainer(e.path),s=new Sb({});Ld(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){vf.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){vf.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,SE(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)(g.Y36(ci,10),g.Y36(Xr,10))},o.\u0275dir=g.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(c){return t.onSubmit(c)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([OM]),g.qOj]}),o})();const LM={provide:Tr,useExisting:(0,g.Gpc)(()=>VA)},OE=(()=>Promise.resolve(null))();let VA=(()=>{class o extends Tr{constructor(e,t,s,c,l){super(),this._changeDetectorRef=l,this.control=new wf,this._registered=!1,this.update=new g.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=MA(0,c)}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),Rl(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(){ge(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){OE.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,s=""===t||t&&"false"!==t;OE.then(()=>{var c;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(c=this._changeDetectorRef)||void 0===c||c.markForCheck()})}_getPath(e){return this._parent?Re(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Ii,9),g.Y36(ci,10),g.Y36(Xr,10),g.Y36(qi,10),g.Y36(g.sBO,8))},o.\u0275dir=g.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:[g._Bn([LM]),g.qOj,g.TTD]}),o})(),LE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();const BA=new g.OlP("NgModelWithFormControlWarning"),WM={provide:Ii,useExisting:(0,g.Gpc)(()=>kl)};let kl=(()=>{class o extends Ii{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 g.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&&(ar(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 ge(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Le(e.control||null,e,!1),HA(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,SE(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&&(Le(t||null,e),kA(s)&&(ge(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Ld(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function _f(o,a){return ar(o,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vi(this.form,this),this._oldForm&&ar(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(ci,10),g.Y36(Xr,10))},o.\u0275dir=g.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(c){return t.onSubmit(c)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([WM]),g.qOj,g.TTD]}),o})();const YM={provide:Tr,useExisting:(0,g.Gpc)(()=>LA)};let LA=(()=>{class o extends Tr{constructor(e,t,s,c,l){super(),this._ngModelWarningConfig=l,this._added=!1,this.update=new g.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=MA(0,c)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Rl(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 Re(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return o._ngModelWarningSentOnce=!1,o.\u0275fac=function(e){return new(e||o)(g.Y36(Ii,13),g.Y36(ci,10),g.Y36(Xr,10),g.Y36(qi,10),g.Y36(BA,8))},o.\u0275dir=g.lG2({type:o,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[g._Bn([YM]),g.qOj,g.TTD]}),o})(),Il=(()=>{class o{constructor(){this._validator=Dl}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):Dl,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=g.lG2({type:o,features:[g.TTD]}),o})();const aH={provide:ci,useExisting:(0,g.Gpc)(()=>xf),multi:!0};let xf=(()=>{class o extends Il{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function iH(o){return null!=o&&!1!==o&&"false"!=`${o}`}(e),this.createValidator=e=>lf}enabled(e){return e}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275dir=g.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&&g.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[g._Bn([aH]),g.qOj]}),o})(),eS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[LE]]}),o})(),GA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[eS]}),o})(),Nd=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:BA,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[eS]}),o})(),hH=(()=>{class o{group(e,t=null){const s=this._reduceControls(e);let n,c=null,l=null;return null!=t&&(function uH(o){return void 0!==o.asyncValidators||void 0!==o.validators||void 0!==o.updateOn}(t)?(c=null!=t.validators?t.validators:null,l=null!=t.asyncValidators?t.asyncValidators:null,n=null!=t.updateOn?t.updateOn:void 0):(c=null!=t.validator?t.validator:null,l=null!=t.asyncValidator?t.asyncValidator:null)),new Sb(s,{asyncValidators:l,updateOn:n,validators:c})}control(e,t,s){return new wf(e,t,s)}array(e,t,s){const c=e.map(l=>this._createControl(l));return new IE(c,t,s)}_reduceControls(e){const t={};return Object.keys(e).forEach(s=>{t[s]=this._createControl(e[s])}),t}_createControl(e){return kA(e)||Eb(e)||DE(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:Nd}),o})();const tS=dn({passive:!0});let pH=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ea.E;const t=Lt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const c=new He.xQ,l="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(l)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(l)&&(t.classList.remove(l),this._ngZone.run(()=>c.next({target:i.target,isAutofilled:!1}))):(t.classList.add(l),this._ngZone.run(()=>c.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,tS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:c,unlisten:()=>{t.removeEventListener("animationstart",n,tS)}}),c}stopMonitoring(e){const t=Lt(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)(g.LFG(Je),g.LFG(g.R0b))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),iS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yi]]}),o})();const nS=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),fH=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let gH=0;const mH=My(class{constructor(o,a,e,t){this._defaultErrorStateMatcher=o,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let rS=(()=>{class o extends mH{constructor(e,t,s,c,l,n,i,r,d,u){super(n,c,l,s),this._elementRef=e,this._platform=t,this._autofillMonitor=r,this._formField=u,this._uid="mat-input-"+gH++,this.focused=!1,this.stateChanges=new He.xQ,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(D=>Rr().has(D));const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",D=>{const U=D.target;!U.value&&0===U.selectionStart&&0===U.selectionEnd&&(U.setSelectionRange(1,1),U.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.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=it(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,s,c;return null!==(c=null!==(e=this._required)&&void 0!==e?e:null===(s=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===s?void 0:s.hasValidator(Ml.required))&&void 0!==c&&c}set required(e){this._required=it(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Rr().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=it(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)}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,t;const s=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(s!==this._previousPlaceholder){const c=this._elementRef.nativeElement;this._previousPlaceholder=s,s?c.setAttribute("placeholder",s):c.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){fH.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)(g.Y36(g.SBq),g.Y36(Je),g.Y36(Tr,10),g.Y36(Af,8),g.Y36(kl,8),g.Y36(Cs),g.Y36(nS,10),g.Y36(pH),g.Y36(g.R0b),g.Y36(Sm,8))},o.\u0275dir=g.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&&g.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(g.Ikx("disabled",t.disabled)("required",t.required),g.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),g.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:[g._Bn([{provide:Uc,useExisting:o}]),g.qOj,g.TTD]}),o})(),Mb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Cs],imports:[[iS,Cr,Ue],iS,Cr]}),o})();function _H(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.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)),g.uIk("r",e._getCircleRadius())}}function bH(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}function CH(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.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)),g.uIk("r",e._getCircleRadius())}}function yH(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}const AH=Aa(class{constructor(o){this._elementRef=o}},"primary"),aS=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function xH(){return{diameter:100}}});class Na extends AH{constructor(a,e,t,s,c,l,n,i){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=zt.w.EMPTY,this.mode="determinate";const r=Na._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(t.head)||r.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!c&&!c._forceAnimations,c&&(c.diameter&&(this.diameter=c.diameter),c.strokeWidth&&(this.strokeWidth=c.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&l&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>l.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=ln(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=ln(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,ln(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Gt(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=Na._diameters;let s=t.get(a);if(!s||!s.has(e)){const c=this._document.createElement("style");c.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),c.textContent=this._getAnimationText(),a.appendChild(c),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(".","_")}}Na._diameters=new WeakMap,Na.\u0275fac=function(a){return new(a||Na)(g.Y36(g.SBq),g.Y36(Je),g.Y36(T.K0,8),g.Y36(Zi,8),g.Y36(aS),g.Y36(g.sBO),g.Y36(la),g.Y36(g.R0b))},Na.\u0275cmp=g.Xpm({type:Na,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(g.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),g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[g.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&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,_H,1,11,"circle",2),g.YNc(3,bH,1,9,"circle",3),g.qZA()),2&a&&(g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===e.mode),g.uIk("viewBox",e._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},directives:[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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});let sS=(()=>{class o extends Na{constructor(e,t,s,c,l,n,i,r){super(e,t,s,c,l,n,i,r),this.mode="indeterminate"}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Je),g.Y36(T.K0,8),g.Y36(Zi,8),g.Y36(aS),g.Y36(g.sBO),g.Y36(la),g.Y36(g.R0b))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(g.Udp("width",t.diameter,"px")("height",t.diameter,"px"),g.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[g.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(e,t){1&e&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,CH,1,11,"circle",2),g.YNc(3,yH,1,9,"circle",3),g.qZA()),2&e&&(g.Udp("width",t.diameter,"px")("height",t.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===t.mode),g.uIk("viewBox",t._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},directives:[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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0}),o})(),Tf=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue,T.ez],Ue]}),o})(),qA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[er,T.ez]]}),o})(),EH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[],imports:[[T.ez,Cr,Ps,Nd,Mb,tl,Tf,er,qA]]}),o})();class SH{isErrorState(a){return!(!(null==a?void 0:a.invalid)||!(null==a?void 0:a.dirty))}}const MH=(o,a,e,t=500)=>s=>xt(t).pipe((0,pi.w)(()=>(e.dontHandleErrorForNext(),o&&"No namespace"!==o?a.checkPasswordStrength(s.value,o):(0,ke.of)(null))),(0,et.U)(()=>null),(0,zi.K)(c=>{const l=c.error,n={backendError:l.message.substring(l.message.indexOf(":")+1)};return(0,ke.of)(n)}));function HH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," info "),g.qZA())}function DH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," warning "),g.qZA())}function PH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," dangerous "),g.qZA())}function RH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," check_circle "),g.qZA())}const kH=["*"];let WA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:kH,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&&(g.F$t(),g.TgZ(0,"div",0),g.YNc(1,HH,2,0,"mat-icon",1),g.YNc(2,DH,2,0,"mat-icon",1),g.YNc(3,PH,2,0,"mat-icon",1),g.YNc(4,RH,2,0,"mat-icon",1),g.Hsn(5),g.qZA()),2&e&&(g.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),g.xp6(1),g.Q6J("ngIf","info"===t.alert_type),g.xp6(1),g.Q6J("ngIf","warn"===t.alert_type),g.xp6(1),g.Q6J("ngIf","error"===t.alert_type),g.xp6(1),g.Q6J("ngIf","success"===t.alert_type))},directives:[T.O5,np],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})();function IH(o,a){1&o&&g._UZ(0,"mat-spinner",12),2&o&&g.Q6J("diameter",18)}function VH(o,a){if(1&o&&(g.TgZ(0,"mat-icon",13),g._uU(1," error "),g.qZA()),2&o){const e=g.oxw();g.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function BH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function OH(o,a){if(1&o&&(g.TgZ(0,"mat-error",14),g._uU(1),g.qZA()),2&o){const e=g.oxw();g.Q6J("matTooltip",e.getErrorTooltip()),g.xp6(1),g.Oqu(e.getErrorTooltip())}}function FH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function LH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let jH=(()=>{class o{constructor(e,t,s){this.translator=e,this.usersManagerService=t,this.store=s,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new SH,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const s=e.userAttributes.find(c=>"preferredLanguage"===c.friendlyName);this.language=null!==(t=null==s?void 0:s.value)&&void 0!==t?t:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),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.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(_n),g.Y36(Sn),g.Y36(Hi))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[g.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["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"],["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&&(g.TgZ(0,"div",0),g.TgZ(1,"mat-form-field",1),g._UZ(2,"input",2),g.ALo(3,"translate"),g.YNc(4,IH,1,1,"mat-spinner",3),g.TgZ(5,"mat-icon",4),g.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),g._uU(6),g.qZA(),g.YNc(7,VH,2,2,"mat-icon",5),g.YNc(8,BH,3,3,"mat-error",6),g.YNc(9,OH,2,2,"mat-error",7),g.qZA(),g.TgZ(10,"mat-form-field",8),g.TgZ(11,"mat-label"),g._uU(12),g.ALo(13,"translate"),g.qZA(),g._UZ(14,"input",9),g.TgZ(15,"mat-icon",4),g.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),g._uU(16),g.qZA(),g.YNc(17,FH,3,3,"mat-error",6),g.YNc(18,LH,3,3,"mat-error",6),g.qZA(),g.TgZ(19,"perun-web-apps-alert",10),g._UZ(20,"div",11),g.qZA(),g.qZA()),2&e&&(g.Q6J("formGroup",t.formGroup),g.xp6(1),g.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),g.xp6(1),g.s9C("placeholder",g.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),g.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),g.xp6(2),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),g.xp6(2),g.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),g.xp6(3),g.Oqu(g.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),g.xp6(2),g.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),g.xp6(2),g.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),g.xp6(2),g.Q6J("innerHTML",t.passwordRequirement,g.oJD))},directives:[h,kl,Mm,qm,rS,Od,vb,LA,xf,T.O5,sS,Fh,np,xm,Hs,WA],pipes:[Jr],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)}"]}),o})();function NH(o,a){if(1&o&&g._UZ(0,"perun-web-apps-password-form",4),2&o){const e=g.oxw();g.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function zH(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"div"),g.TgZ(1,"button",5),g.NdJ("click",function(){return g.CHM(e),g.oxw().onSubmit()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()}if(2&o){const e=g.oxw();g.xp6(1),g.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),g.xp6(1),g.hij(" ",g.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function GH(o,a){if(1&o&&(g.TgZ(0,"div",6),g.TgZ(1,"perun-web-apps-alert",7),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()),2&o){const e=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,1,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function UH(o,a){1&o&&g._UZ(0,"mat-spinner",8)}let qH=(()=>{class o{constructor(e,t,s,c,l){this.storeService=e,this.translate=t,this.apiRequestConfiguration=s,this.usersService=c,this._formBuilder=l,this.loading=!1,this.success=!1,this.language="en"}ngOnInit(){this.loading=!0,this.translate.onLangChange.subscribe(e=>{this.language=e.lang}),this.newPasswdForm=this._formBuilder.group({passwordCtrl:new wf("",Ml.required,[MH(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new wf("",Ml.required)},{validators:d_.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin(this.login,this.namespace,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken(this.token,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(_n),g.Y36(mA),g.Y36(Sn),g.Y36(hH))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:4,vars:4,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"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(g.YNc(0,NH,1,3,"perun-web-apps-password-form",0),g.YNc(1,zH,4,4,"div",1),g.YNc(2,GH,4,3,"div",2),g.YNc(3,UH,1,0,"mat-spinner",3)),2&e&&(g.Q6J("ngIf",!t.success&&!t.loading),g.xp6(1),g.Q6J("ngIf",!t.success&&!t.loading),g.xp6(1),g.Q6J("ngIf",t.success&&!t.loading),g.xp6(1),g.Q6J("ngIf",t.loading))},directives:[T.O5,jH,h,kl,zc,WA,sS],pipes:[Jr],styles:[""]}),o})(),WH=(()=>{class o{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(_n))},o.\u0275cmp=g.Xpm({type:o,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&&(g.TgZ(0,"perun-web-apps-alert",0),g._UZ(1,"div",1),g.qZA()),2&e&&(g.xp6(1),g.Q6J("innerHTML",t.invalidRequestMessage,g.oJD))},directives:[WA],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),o})();function $H(o,a){if(1&o&&(g.O4$(),g.kcU(),g.TgZ(0,"p",9),g.TgZ(1,"em"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()),2&o){const e=g.oxw();g.xp6(2),g.AsE("",g.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function QH(o,a){if(1&o&&(g.O4$(),g.kcU(),g.TgZ(0,"p",9),g.TgZ(1,"em"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()),2&o){const e=g.oxw();g.xp6(2),g.AsE("",g.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function YH(o,a){if(1&o&&(g.O4$(),g.kcU(),g._UZ(0,"perun-web-apps-password-reset-form",10)),2&o){const e=g.oxw();g.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function JH(o,a){1&o&&(g.O4$(),g.kcU(),g._UZ(0,"perun-web-apps-invalid-request-alert"))}let KH=(()=>{class o{constructor(e,t){this.storeService=e,this.sanitizer=t}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("password_reset_logo"))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(xn))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:14,vars:8,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&&(g.TgZ(0,"div"),g._UZ(1,"div",0),g.TgZ(2,"div",1),g.TgZ(3,"h1"),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.O4$(),g.TgZ(6,"svg",2),g.TgZ(7,"g",3),g._UZ(8,"path",4),g._UZ(9,"path",5),g.qZA(),g.qZA(),g.qZA(),g.YNc(10,$H,4,4,"p",6),g.YNc(11,QH,4,4,"p",6),g.YNc(12,YH,1,5,"perun-web-apps-password-reset-form",7),g.YNc(13,JH,1,0,"perun-web-apps-invalid-request-alert",8),g.qZA()),2&e&&(g.xp6(1),g.Q6J("innerHTML",t.passwordResetLogo,g.oJD),g.xp6(3),g.hij(" ",g.lcZ(5,6,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),g.xp6(6),g.Q6J("ngIf",t.login),g.xp6(1),g.Q6J("ngIf",t.namespace),g.xp6(1),g.Q6J("ngIf",t.validToken||t.authWithoutToken),g.xp6(1),g.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},directives:[T.O5,qH,WH],pipes:[Jr],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),o})();function ZH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let XH=(()=>{class o{constructor(e,t,s,c,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=c,this.storeService=l,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("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 o.\u0275fac=function(e){return new(e||o)(g.Y36(xs),g.Y36(_n),g.Y36(ob),g.Y36(_i),g.Y36(Hi))},o.\u0275cmp=g.Xpm({type:o,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&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g.TgZ(4,"mat-form-field"),g.TgZ(5,"mat-label"),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.TgZ(8,"input",2,3),g.NdJ("ngModelChange",function(c){return t.subject=c}),g.qZA(),g.YNc(10,ZH,3,3,"mat-error",4),g.qZA(),g.TgZ(11,"mat-form-field"),g.TgZ(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"textarea",5),g.NdJ("ngModelChange",function(c){return t.message=c}),g.ALo(16,"translate"),g._uU(17," "),g.qZA(),g.TgZ(18,"mat-hint"),g._uU(19),g.ALo(20,"translate"),g.qZA(),g.qZA(),g.qZA(),g.TgZ(21,"div",6),g.TgZ(22,"div",7),g.TgZ(23,"button",8),g.NdJ("click",function(){return t.close()}),g._uU(24),g.ALo(25,"translate"),g.qZA(),g.TgZ(26,"button",9),g.NdJ("click",function(){return t.sendBugReport()}),g._uU(27),g.ALo(28,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e){const s=g.MAs(9);g.xp6(1),g.Oqu(g.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),g.xp6(5),g.Oqu(g.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),g.xp6(2),g.Q6J("ngModel",t.subject),g.xp6(2),g.Q6J("ngIf",s.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),g.xp6(2),g.s9C("placeholder",g.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),g.Q6J("ngModel",t.message),g.xp6(4),g.Oqu(g.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),g.xp6(5),g.hij(" ",g.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",s.invalid),g.xp6(1),g.hij(" ",g.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Ic,Dh,Mm,Hs,rS,Od,xf,vb,VA,T.O5,xm,pT,gm,zc],pipes:[Jr],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),eD=(()=>{class o{transform(e,t,s){return e[`${s}_${t}`]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=g.Yjl({name:"localisedText",type:o,pure:!0}),o})(),tD=(()=>{class o{transform(e,t){return e["link_"+t]||e.link_en}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=g.Yjl({name:"localisedLink",type:o,pure:!0}),o})(),iD=(()=>{class o{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=g.Yjl({name:"footerLogoPath",type:o,pure:!0}),o})();function nD(o,a){if(1&o&&(g.TgZ(0,"a",13),g.ALo(1,"localisedLink"),g._UZ(2,"img",14),g.ALo(3,"footerLogoPath"),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("href",g.xi3(1,2,e,t.language),g.LSH),g.xp6(2),g.s9C("src",g.lcZ(3,5,e.logo),g.LSH)}}function rD(o,a){if(1&o&&(g.TgZ(0,"span"),g._UZ(1,"img",14),g.ALo(2,"footerLogoPath"),g.qZA()),2&o){const e=g.oxw().$implicit;g.xp6(1),g.s9C("src",g.lcZ(2,1,e.logo),g.LSH)}}function aD(o,a){if(1&o&&(g.TgZ(0,"div"),g.YNc(1,nD,4,7,"a",11),g.ALo(2,"localisedLink"),g.YNc(3,rD,3,3,"span",12),g.ALo(4,"localisedLink"),g.qZA()),2&o){const e=a.$implicit,t=g.oxw(3);g.xp6(1),g.Q6J("ngIf",g.xi3(2,2,e,t.language)),g.xp6(2),g.Q6J("ngIf",!g.xi3(4,5,e,t.language))}}const sD=function(o){return{"min-height":o}};function oD(o,a){if(1&o&&(g.TgZ(0,"div",10),g.YNc(1,aD,5,8,"div",5),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw();g.Q6J("ngStyle",g.VKq(2,sD,t.columnContentHeight+"px")),g.xp6(1),g.Q6J("ngForOf",e.elements)}}const qs=function(o){return{color:o}};function lD(o,a){if(1&o&&(g.TgZ(0,"i",20),g._uU(1),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("ngStyle",g.VKq(2,qs,t.linksTextColor)),g.xp6(1),g.hij(" ",e.icon," ")}}function cD(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"span",21),g.NdJ("click",function(){g.CHM(e);const s=g.oxw().$implicit;return g.oxw(3).openDialog(s.dialog)}),g._uU(1),g.ALo(2,"localisedText"),g.qZA()}if(2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("ngStyle",g.VKq(6,qs,t.linksTextColor)),g.xp6(1),g.hij("",g.Dn7(2,2,e,t.language,"label")," ")}}function dD(o,a){if(1&o&&(g.TgZ(0,"a",22),g.ALo(1,"localisedLink"),g._uU(2),g.ALo(3,"localisedText"),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("href",g.xi3(1,3,e,t.language),g.LSH)("ngStyle",g.VKq(10,qs,t.linksTextColor)),g.xp6(2),g.Oqu(g.Dn7(3,6,e,t.language,"label"))}}function uD(o,a){if(1&o&&(g.TgZ(0,"span",10),g._uU(1),g.ALo(2,"localisedText"),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("ngStyle",g.VKq(6,qs,t.linksTextColor)),g.xp6(1),g.Oqu(g.Dn7(2,2,e,t.language,"label"))}}function hD(o,a){if(1&o&&(g.TgZ(0,"div",16),g.YNc(1,lD,2,4,"i",17),g.YNc(2,cD,3,8,"span",18),g.YNc(3,dD,4,12,"a",19),g.ALo(4,"localisedLink"),g.YNc(5,uD,3,8,"span",9),g.ALo(6,"localisedLink"),g.qZA()),2&o){const e=a.$implicit,t=g.oxw(3);g.xp6(1),g.Q6J("ngIf",e.icon),g.xp6(1),g.Q6J("ngIf",e.dialog),g.xp6(1),g.Q6J("ngIf",g.xi3(4,4,e,t.language)&&!e.dialog),g.xp6(2),g.Q6J("ngIf",!g.xi3(6,7,e,t.language)&&!e.dialog)}}const pD=function(o){return{height:o}};function fD(o,a){if(1&o&&(g.TgZ(0,"div",10),g.YNc(1,hD,7,10,"div",15),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw();g.Q6J("ngStyle",g.VKq(2,pD,t.columnContentHeight+"px")),g.xp6(1),g.Q6J("ngForOf",e.elements)}}function gD(o,a){if(1&o&&(g.TgZ(0,"div",7),g.TgZ(1,"h6",8),g._uU(2),g.ALo(3,"localisedText"),g.qZA(),g.YNc(4,oD,2,4,"div",9),g.YNc(5,fD,2,4,"div",9),g.qZA()),2&o){const e=a.$implicit,t=g.oxw();g.ekj("my-auto",t.containsLogos),g.xp6(1),g.Q6J("ngStyle",g.VKq(10,qs,t.headersTextColor)),g.xp6(1),g.hij(" ",g.Dn7(3,6,e,t.language,"title")," "),g.xp6(2),g.Q6J("ngIf",e.logos),g.xp6(1),g.Q6J("ngIf",e.elements&&!e.logos)}}function mD(o,a){if(1&o&&(g.TgZ(0,"span"),g.TgZ(1,"a",6),g._uU(2),g.qZA(),g.qZA()),2&o){const e=a.$implicit,t=a.index,s=g.oxw();g.xp6(1),g.Q6J("href",e.url,g.LSH)("ngStyle",g.VKq(3,qs,s.copyrightTextColor)),g.xp6(1),g.Oqu(t?", "+e.name:e.name)}}const _D=function(o){return{background:o}};let bD=(()=>{class o{constructor(e,t,s){this.storeService=e,this.translateService=t,this.dialog=s,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",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.get("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.get("footer","copyright_items")}openDialog(e){const t=Vs();"reportIssue"===e&&(t.width="550px",this.dialog.open(XH,t))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(_n),g.Y36(Ts))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,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&&(g.TgZ(0,"footer",0),g.TgZ(1,"div",1),g.YNc(2,gD,6,12,"div",2),g.qZA(),g._UZ(3,"hr",3),g.TgZ(4,"div",4),g._uU(5),g.YNc(6,mD,3,5,"span",5),g._uU(7," Version "),g.TgZ(8,"a",6),g._uU(9),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Q6J("ngStyle",g.VKq(8,_D,t.bgColor)),g.xp6(2),g.Q6J("ngForOf",t.footerColumns),g.xp6(2),g.Q6J("ngStyle",g.VKq(10,qs,t.copyrightTextColor)),g.xp6(1),g.hij(" \xa9 ",t.currentYear," Copyright: "),g.xp6(1),g.Q6J("ngForOf",t.copyrightItems),g.xp6(2),g.Q6J("href",t.githubRepository,g.LSH)("ngStyle",g.VKq(12,qs,t.copyrightTextColor)),g.xp6(1),g.Oqu(t.version))},directives:[T.PC,T.sg,T.O5],pipes:[eD,tD,iD],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}"]}),o})();const CD=["footer"],yD=function(o){return{background:o}},wD=function(o){return{"min-height":o}};let vD=(()=>{class o{constructor(e,t,s,c,l,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=s,this.translateService=c,this.store=l,this.attributesManagerService=n,this.changeDetector=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.get("theme","content_bg_color")}ngOnInit(){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode=t.includes("activation")?"activation":"reset",this.namespace=this.parseQueryParams("namespace",t),t.includes("token")?(this.token=this.parseQueryParams("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(s=>{const c=s.find(l=>l.friendlyNameParameter===this.namespace);this.login=c?String(c.value):""}))}parseQueryParams(e,t){const s=t.split("&");for(const c of s){const[l,n]=c.split("=");if(l.includes(e))return n}}ngAfterViewInit(){var e,t,s,c;const l=null!==(c=null===(s=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===s?void 0:s.toString())&&void 0!==c?c:"0";this.contentHeight="calc(100vh - 84px - "+l+"px)",this.changeDetector.detectChanges()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Ts),g.Y36(Sn),g.Y36(lb),g.Y36(_n),g.Y36(Hi),g.Y36(Tn),g.Y36(g.sBO))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&g.Gf(CD,5),2&e){let s;g.iGM(s=g.CRH())&&(t.footer=s.first)}},decls:8,vars:12,consts:[["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""]],template:function(e,t){1&e&&(g.TgZ(0,"div"),g._UZ(1,"perun-web-apps-header",0),g.TgZ(2,"div",1),g.TgZ(3,"div",2),g._UZ(4,"perun-web-apps-password-reset-page",3),g.qZA(),g.TgZ(5,"div",null,4),g._UZ(7,"perun-web-apps-footer"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.xp6(2),g.Q6J("ngStyle",g.VKq(8,yD,t.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(10,wD,t.contentHeight)),g.xp6(1),g.Q6J("mode",t.mode)("token",t.token)("namespace",t.namespace)("login",t.login)("validToken",t.validToken)("authWithoutToken",t.authWithoutToken))},directives:[ub,T.PC,KH,bD],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}}"]}),o})();class AD{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 xD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Vc,Bn,tl]]}),o})();const TD=[];let ED=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Qp.forRoot(TD,{relativeLinkResolution:"legacy"}),T.ez],Qp]}),o})(),SD=(()=>{class o{constructor(e,t,s,c,l){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=c,this.utilsService=l}initializeColors(e,t){return new Promise(s=>{t.forEach(c=>{const l=this.storeService.get("theme",c.configValue);document.documentElement.style.setProperty(c.cssVariable,l)}),e.forEach(c=>{const l=this.storeService.get("theme",c.configValue);document.documentElement.style.setProperty(c.cssVariable,l),this.setEntityTheme(c.entity,l)}),s()})}setEntityTheme(e,t){const s=function MD(o){return[Cn(tinycolor(o).lighten(52),"50"),Cn(tinycolor(o).lighten(37),"100"),Cn(tinycolor(o).lighten(26),"200"),Cn(tinycolor(o).lighten(12),"300"),Cn(tinycolor(o).lighten(6),"400"),Cn(tinycolor(o),"500"),Cn(tinycolor(o).darken(6),"600"),Cn(tinycolor(o).darken(12),"700"),Cn(tinycolor(o).darken(18),"800"),Cn(tinycolor(o).darken(24),"900"),Cn(tinycolor(o).lighten(50).saturate(30),"A100"),Cn(tinycolor(o).lighten(30).saturate(30),"A200"),Cn(tinycolor(o).lighten(10).saturate(15),"A400"),Cn(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const c of s){const i=`--${e}-theme-primary-contrast-${c.name}`,r=c.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${c.name}`,`${c.red},${c.green},${c.blue}`),document.documentElement.style.setProperty(i,r)}}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=>{var s;this.storeService.setInstanceConfig(t);const c=document.location.hostname;(null===(s=null==t?void 0:t.brandings)||void 0===s?void 0:s[c])&&this.storeService.setBanding(c),e()},()=>{e()})})}getNoCacheHeaders(){return new y.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.get("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.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("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)(g.LFG(y.eN),g.LFG(Hi),g.LFG(Wi),g.LFG(Oi),g.LFG(Xe))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Cn(o,a){const e=tinycolor(o),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let HD=(()=>{class o{constructor(e,t,s){this.initAuthService=e,this.appConfigService=t,this.location=s}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substr(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.location.go("/"),location.reload(),e}).then(e=>e?location.search.substr(1).includes("token")?void 0:this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Xp),g.LFG(SD),g.LFG(T.Ye))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const DD=new g.OlP("perun-api-service");let oS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})(),dS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),Hb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,Ue,fg,dS],Ue,dS]}),o})(),$A=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})(),zD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),hS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Ue,zD,uo]]}),o})(),fS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ys,Ue],ys,Ue]}),o})(),qD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ti]]}),o})(),QA=(()=>{class o{constructor(){this.changes=new He.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const iP={provide:QA,deps:[[new g.FiY,new g.tp0,QA]],useFactory:function tP(o){return o||new QA}};let mS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[iP,Cs],imports:[[Ue,T.ez,uo,Bn,qD,er,Yn],Ue]}),o})(),_P=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ca]]}),o})(),sx=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[_P,Ue],Ue]}),o})(),UP=(()=>{class o{constructor(){this.changes=new He.xQ,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"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const $P={provide:new g.OlP("mat-datepicker-scroll-strategy"),deps:[Wn],useFactory:function WP(o){return()=>o.scrollStrategies.reposition()}};let ox=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[UP,$P],imports:[[T.ez,Bn,ns,Ou,uo,Ue],Un]}),o})(),RS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Ue,Yi,Un],Un,Ue]}),o})(),IS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ys,Yn,Ue,Eh,T.ez],ys,Ue,Eh,$A]}),o})(),lx=(()=>{class o{constructor(){this.changes=new He.xQ}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const pR={provide:lx,deps:[[new g.FiY,new g.tp0,lx]],useFactory:function hR(o){return o||new lx}};let cx=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[pR],imports:[[T.ez,Ue]]}),o})(),VS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,oS,$A,hS,Bn,fS,Hb,er,sx,Vc,Tf,Cr,Mb,ca,GA,Nd,mS,ox,Py,RS,IS,rl,cb,cx,Rs,Ps,Yc,Yn],oS,$A,hS,Bn,fS,Hb,er,sx,Vc,Tf,Cr,Mb,ca,GA,Nd,mS,ox,Py,RS,IS,rl,cb,cx,Rs,Ps,Yc,Yn]}),o})();const LS=new g.OlP("mat-chips-default-options");let ER=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Cs,{provide:LS,useValue:{separatorKeyCodes:[13]}}],imports:[[Ue]]}),o})();function MR(o){const{subscriber:a,counter:e,period:t}=o;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function ux(o,a,e){for(let t in a)if(a.hasOwnProperty(t)){const s=a[t];s?o.setProperty(t,s,(null==e?void 0:e.has(t))?"important":""):o.removeProperty(t)}return o}function Wd(o,a){const e=a?"":"none";ux(o.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 jS(o,a,e){ux(o.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function Gb(o,a){return a&&"none"!=a?o+" "+a:o}function NS(o){const a=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*a}function hx(o,a){return o.getPropertyValue(a).split(",").map(t=>t.trim())}function px(o){const a=o.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 fx(o,a,e){const{top:t,bottom:s,left:c,right:l}=o;return e>=t&&e<=s&&a>=c&&a<=l}function Hf(o,a,e){o.top+=a,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function zS(o,a,e,t){const{top:s,right:c,bottom:l,left:n,width:i,height:r}=o,d=i*a,u=r*a;return t>s-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:px(e)})})}handleScroll(a){const e=Di(a),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let c,l;if(e===this._document){const r=this._viewportRuler.getViewportScrollPosition();c=r.top,l=r.left}else c=e.scrollTop,l=e.scrollLeft;const n=s.top-c,i=s.left-l;return this.positions.forEach((r,d)=>{r.clientRect&&e!==d&&e.contains(d)&&Hf(r.clientRect,n,i)}),s.top=c,s.left=l,{top:n,left:i}}}function US(o){const a=o.cloneNode(!0),e=a.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();a.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const i=this._handles.find(r=>n.target&&(n.target===r||r.contains(n.target)));i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),D=this._dropContainer;if(!b)return void this._endDragSequence(n);(!D||!D.isDragging()&&!D.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),n.preventDefault();const r=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(r),this._dropContainer)this._updateActiveDropContainer(r,i);else{const d=this._activeTransform;d.x=r.x-this._pickupPositionOnPage.x+this._passiveTransform.x,d.y=r.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:r,event:n,distance:this._getDragDistance(r),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new GS(t,c),l.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=it(a);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(a){this._handles=a.map(t=>Lt(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(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Lt(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,YS),e.addEventListener("touchstart",this._pointerDown,QS)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Lt(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===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.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),Wd(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Wd(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}),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})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){Df(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,c=this._placeholder=this._createPlaceholderElement(),l=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();s.insertBefore(l,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),jS(t,!1,gx),this._document.body.appendChild(s.replaceChild(c,t)),this._getPreviewInsertionPoint(s,n).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=Df(e),c=!s&&0!==e.button,l=this._rootElement,n=Di(e),i=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),r=s?fc(e):Ro(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||c||i||r)return;if(this._handles.length){const f=l.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=px(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(a,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(a){jS(this._rootElement,!0,gx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(a),c=this._getDragDistance(s),l=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:c,dropPoint:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:l,distance:c,dropPoint:s}),e.drop(this,t,this._initialIndex,this._initialContainer,l,c,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:s}){let c=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!c&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(c=this._initialContainer),c&&c!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=c,this._dropContainer.enter(this,a,e,c===this._initialContainer&&c.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:c,currentIndex:c.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),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 c=a.matchSize?this._rootElement.getBoundingClientRect():null,l=a.viewContainer.createEmbeddedView(t,a.context);l.detectChanges(),s=KS(l,this._document),this._previewRef=l,a.matchSize?ZS(s,c):s.style.transform=Ub(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const c=this._rootElement;s=US(c),ZS(s,c.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return ux(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},gx),Wd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(c=>s.classList.add(c)):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 HR(o){const a=getComputedStyle(o),e=hx(a,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const s=e.indexOf(t),c=hx(a,"transition-duration"),l=hx(a,"transition-delay");return NS(c[s])+NS(l[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=l=>{var n;(!l||Di(l)===this._preview&&"transform"===l.propertyName)&&(null===(n=this._preview)||void 0===n||n.removeEventListener("transitionend",s),t(),clearTimeout(c))},c=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=KS(this._placeholderRef,this._document)):t=US(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),s=a===this._rootElement?null:a,c=s?s.getBoundingClientRect():t,l=Df(e)?e.targetTouches[0]:e,n=this._getViewportScrollPosition();return{x:c.left-t.left+(l.pageX-c.left-n.left),y:c.top-t.top+(l.pageY-c.top-n.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=Df(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,s=t.pageX-e.left,c=t.pageY-e.top;if(this._ownerSVGElement){const l=this._ownerSVGElement.getScreenCTM();if(l){const n=this._ownerSVGElement.createSVGPoint();return n.x=s,n.y=c,n.matrixTransform(l.inverse())}}return{x:s,y:c}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:c,y:l}=this._pickupPositionInElement,n=this._boundaryRect,i=this._previewRect,r=n.top+l,d=n.bottom-(i.height-l);t=JS(t,n.left+c,n.right-(i.width-c)),s=JS(s,r,d)}return{x:t,y:s}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,s=this._pointerDirectionDelta,c=this._pointerPositionAtLastDirectionChange,l=Math.abs(e-c.x),n=Math.abs(t-c.y);return l>this._config.pointerDirectionChangeThreshold&&(s.x=e>c.x?1:-1,c.x=e),n>this._config.pointerDirectionChangeThreshold&&(s.y=t>c.y?1:-1,c.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Wd(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,YS),a.removeEventListener("touchstart",this._pointerDown,QS)}_applyRootElementTransform(a,e){const t=Ub(a,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=Gb(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const s=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,c=Ub(a,e);this._preview.style.transform=Gb(c,s)}_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._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===s.width&&0===s.height)return;const c=t.left-s.left,l=s.right-t.right,n=t.top-s.top,i=s.bottom-t.bottom;t.width>s.width?(c>0&&(a+=c),l>0&&(a-=l)):a=0,t.height>s.height?(n>0&&(e+=n),i>0&&(e-=i)):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:Df(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Di(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Hf(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(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Gt(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 Lt(t)}}function Ub(o,a){return`translate3d(${Math.round(o)}px, ${Math.round(a)}px, 0)`}function JS(o,a,e){return Math.max(a,Math.min(e,o))}function Df(o){return"t"===o.type[0]}function KS(o,a){const e=o.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 ZS(o,a){o.style.width=`${a.width}px`,o.style.height=`${a.height}px`,o.style.transform=Ub(a.left,a.top)}function Pf(o,a){return Math.max(0,Math.min(a,o))}class IR{constructor(a,e,t,s,c){this._dragDropRegistry=e,this._ngZone=s,this._viewportRuler=c,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.xQ,this.entered=new He.xQ,this.exited=new He.xQ,this.dropped=new He.xQ,this.sorted=new He.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=zt.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function SR(o=0,a=k.P){return(!Oe(o)||o<0)&&(o=0),(!a||"function"!=typeof a.schedule)&&(a=k.P),new Ci.y(e=>(e.add(a.schedule(MR,o,{subscriber:e,counter:0,period:o})),e))}(0,eu).pipe(ht(this._stopScrollTimers)).subscribe(()=>{const l=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?l.scrollBy(0,-n):2===this._verticalScrollDirection&&l.scrollBy(0,n),1===this._horizontalScrollDirection?l.scrollBy(-n,0):2===this._horizontalScrollDirection&&l.scrollBy(n,0)})},this.element=Lt(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new GS(t,c)}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){let c;this._draggingStarted(),null==s?(c=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===c&&(c=this._getItemIndexFromPointerPosition(a,e,t))):c=s;const l=this._activeDraggables,n=l.indexOf(a),i=a.getPlaceholderElement();let r=l[c];if(r===a&&(r=l[c+1]),!r&&(null==c||-1===c||c-1&&l.splice(n,1),r&&!this._dragDropRegistry.isDragging(r)){const d=r.getRootElement();d.parentElement.insertBefore(i,d),l.splice(c,0,a)}else Lt(this.element).appendChild(i),l.push(a);i.style.transform="",this._cacheItemPositions(),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,c,l,n){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:c,distance:l,dropPoint: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._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=Lt(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,s){if(this.sortingDisabled||!this._clientRect||!zS(this._clientRect,.05,e,t))return;const c=this._itemPositions,l=this._getItemIndexFromPointerPosition(a,e,t,s);if(-1===l&&c.length>0)return;const n="horizontal"===this._orientation,i=c.findIndex(se=>se.drag===a),r=c[l],u=r.clientRect,f=i>l?1:-1,b=this._getItemOffsetPx(c[i].clientRect,u,f),D=this._getSiblingOffsetPx(i,c,f),U=c.slice();(function kR(o,a,e){const t=Pf(a,o.length-1),s=Pf(e,o.length-1);if(t===s)return;const c=o[t],l=s{if(U[De]===se)return;const rt=se.drag===a,Qe=rt?b:D,vt=rt?a.getPlaceholderElement():se.drag.getRootElement();se.offset+=Qe,n?(vt.style.transform=Gb(`translate3d(${Math.round(se.offset)}px, 0, 0)`,se.initialTransform),Hf(se.clientRect,0,Qe)):(vt.style.transform=Gb(`translate3d(0, ${Math.round(se.offset)}px, 0)`,se.initialTransform),Hf(se.clientRect,Qe,0))}),this._previousSwap.overlaps=fx(u,e,t),this._previousSwap.drag=r.drag,this._previousSwap.delta=n?s.x:s.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,s=0,c=0;if(this._parentPositions.positions.forEach((l,n)=>{n===this._document||!l.clientRect||t||zS(l.clientRect,.05,a,e)&&([s,c]=function VR(o,a,e,t){const s=tM(a,t),c=iM(a,e);let l=0,n=0;if(s){const i=o.scrollTop;1===s?i>0&&(l=1):o.scrollHeight-i>o.clientHeight&&(l=2)}if(c){const i=o.scrollLeft;1===c?i>0&&(n=1):o.scrollWidth-i>o.clientWidth&&(n=2)}return[l,n]}(n,l.clientRect,a,e),(s||c)&&(t=n))}),!s&&!c){const{width:l,height:n}=this._viewportRuler.getViewportSize(),i={width:l,height:n,top:0,right:l,bottom:n,left:0};s=tM(i,e),c=iM(i,a),t=window}t&&(s!==this._verticalScrollDirection||c!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=c,this._scrollNode=t,(s||c)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Lt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Lt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_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:px(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=Lt(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const s=e.getRootElement();if(s){const c=null===(t=this._itemPositions.find(l=>l.drag===e))||void 0===t?void 0:t.initialTransform;s.style.transform=c||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const s="horizontal"===this._orientation,c=e[a].clientRect,l=e[a+-1*t];let n=c[s?"width":"height"]*t;if(l){const i=s?"left":"top",r=s?"right":"bottom";-1===t?n-=l.clientRect[i]-c[r]:n+=c[i]-l.clientRect[r]}return n}_getItemOffsetPx(a,e,t){const s="horizontal"===this._orientation;let c=s?e.left-a.left:e.top-a.top;return-1===t&&(c+=s?e.width-a.width:e.height-a.height),c}_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 l=t[t.length-1].clientRect;return s?a>=l.right:e>=l.bottom}{const l=t[0].clientRect;return s?a<=l.left:e<=l.top}}_getItemIndexFromPointerPosition(a,e,t,s){const c="horizontal"===this._orientation,l=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===a)return!1;if(s){const r=c?s.x:s.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&r===this._previousSwap.delta)return!1}return c?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&ts._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!fx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const c=Lt(this.element);return s===c||c.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._itemPositions.forEach(({clientRect:t})=>{Hf(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Gt(Lt(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function tM(o,a){const{top:e,bottom:t,height:s}=o,c=.05*s;return a>=e-c&&a<=e+c?1:a>=t-c&&a<=t+c?2:0}function iM(o,a){const{left:e,right:t,width:s}=o,c=.05*s;return a>=e-c&&a<=e+c?1:a>=t-c&&a<=t+c?2:0}const qb=dn({passive:!1,capture:!0});let BR=(()=>{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 He.xQ,this.pointerUp=new He.xQ,this.scroll=new He.xQ,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,qb)})}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,qb)}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:c=>this.pointerUp.next(c),options:!0}).set("scroll",{handler:c=>this.scroll.next(c),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:qb}),s||this._globalListeners.set("mousemove",{handler:c=>this.pointerMove.next(c),options:qb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((c,l)=>{this._document.addEventListener(l,c.handler,c.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 Ci.y(s=>this._ngZone.runOutsideAngular(()=>{const l=n=>{this._activeDragInstances.length&&s.next(n)};return e.addEventListener("scroll",l,!0),()=>{e.removeEventListener("scroll",l,!0)}}))),(0,qn.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)(g.LFG(g.R0b),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const OR={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let FR=(()=>{class o{constructor(e,t,s,c){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=c}createDrag(e,t=OR){return new RR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new IR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(g.R0b),g.LFG(la),g.LFG(BR))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),LR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[FR],imports:[Un]}),o})(),jR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez]]}),o})(),NR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),WR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),ek=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[WR,Ue],Ue]}),o})(),pk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,Ue],Ue]}),o})(),mk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Nd,Bn,Hb,er,Tf,Ps]]}),o})(),_k=(()=>{class o extends Yo{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const bk={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 Ck=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[{provide:gn,useClass:_k},{provide:Qo,useValue:bk}],imports:[[T.ez,Hb,sx,GA,ER,LR,tl,Qp,cx,Rs,Tf,qA,er,rl,Bn,Ps,Cr,Nd,Mb,Yn,jR,NR,ek,ox,pk,Sh,Yc,mk,ca,Vc,a_,VS]]}),o})();const CI={provide:y.TP,useExisting:(0,g.Gpc)(()=>ef),multi:!0};function yI(o){return new AD(o,"./assets/i18n/",".json")}function wI(o){const a={basePath:o.get("api_url")};return new je(a)}const vI=o=>()=>o.loadConfigs();let AI=(()=>{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)(g.LFG(fA),g.LFG(_n))},o.\u0275mod=g.oAB({type:o,bootstrap:[vD]}),o.\u0275inj=g.cJS({providers:[fA,{provide:g.ip1,useFactory:vI,multi:!0,deps:[HD]},{provide:je,useFactory:wI,deps:[Hi]},ef,CI,{provide:DD,useClass:_A}],imports:[[Mr,tl.forRoot({loader:{provide:Zn,useFactory:yI,deps:[y.eN]}}),yh,er,xD,Of,y.JF,ED,VS,qA,EH,Kp.zr.forRoot(),Ck]]}),o})();(0,g.G48)(),Sr().bootstrapModule(AI).catch(o=>console.error(o))},1302:function(z,W,E){var T;!function(g,B){var j={};!function(g){"use strict";g.__esModule=!0,g.digestLength=32,g.blockSize=64;var B=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 j(Q,ie,re,ne,le){for(var xe,Ae,Be,ft,yt,We,gi,St,Ze,oe,he,pe,ue;le>=64;){for(xe=ie[0],Ae=ie[1],Be=ie[2],ft=ie[3],yt=ie[4],We=ie[5],gi=ie[6],St=ie[7],oe=0;oe<16;oe++)Q[oe]=(255&re[he=ne+4*oe])<<24|(255&re[he+1])<<16|(255&re[he+2])<<8|255&re[he+3];for(oe=16;oe<64;oe++)Q[oe]=((pe=((Ze=Q[oe-2])>>>17|Ze<<15)^(Ze>>>19|Ze<<13)^Ze>>>10)+Q[oe-7]|0)+((ue=((Ze=Q[oe-15])>>>7|Ze<<25)^(Ze>>>18|Ze<<14)^Ze>>>3)+Q[oe-16]|0);for(oe=0;oe<64;oe++)pe=(((yt>>>6|yt<<26)^(yt>>>11|yt<<21)^(yt>>>25|yt<<7))+(yt&We^~yt&gi)|0)+(St+(B[oe]+Q[oe]|0)|0)|0,ue=((xe>>>2|xe<<30)^(xe>>>13|xe<<19)^(xe>>>22|xe<<10))+(xe&Ae^xe&Be^Ae&Be)|0,St=gi,gi=We,We=yt,yt=ft+pe|0,ft=Be,Be=Ae,Ae=xe,xe=pe+ue|0;ie[0]+=xe,ie[1]+=Ae,ie[2]+=Be,ie[3]+=ft,ie[4]+=yt,ie[5]+=We,ie[6]+=gi,ie[7]+=St,ne+=64,le-=64}return ne}var I=function(){function Q(){this.digestLength=g.digestLength,this.blockSize=g.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 Q.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},Q.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=ie[ne++],re--;64===this.bufferLength&&(j(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(ne=j(this.temp,this.state,ie,ne,re),re%=64);re>0;)this.buffer[this.bufferLength++]=ie[ne++],re--;return this},Q.prototype.finish=function(ie){if(!this.finished){var re=this.bytesHashed,ne=this.bufferLength,le=re/536870912|0,xe=re<<3,Ae=re%64<56?64:128;this.buffer[ne]=128;for(var Be=ne+1;Be>>24&255,this.buffer[Ae-7]=le>>>16&255,this.buffer[Ae-6]=le>>>8&255,this.buffer[Ae-5]=le>>>0&255,this.buffer[Ae-4]=xe>>>24&255,this.buffer[Ae-3]=xe>>>16&255,this.buffer[Ae-2]=xe>>>8&255,this.buffer[Ae-1]=xe>>>0&255,j(this.temp,this.state,this.buffer,0,Ae),this.finished=!0}for(Be=0;Be<8;Be++)ie[4*Be+0]=this.state[Be]>>>24&255,ie[4*Be+1]=this.state[Be]>>>16&255,ie[4*Be+2]=this.state[Be]>>>8&255,ie[4*Be+3]=this.state[Be]>>>0&255;return this},Q.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},Q.prototype._saveState=function(ie){for(var re=0;rethis.blockSize)(new I).update(ie).finish(re).clean();else for(var ne=0;ne1&&ie.update(Q),re&&ie.update(re),ie.update(ne),ie.finish(Q),ne[0]++}g.HMAC=O,g.hash=Y,g.default=Y,g.hmac=$;var F=new Uint8Array(g.digestLength);g.hkdf=function L(Q,ie,re,ne){void 0===ie&&(ie=F),void 0===ne&&(ne=32);for(var le=new Uint8Array([1]),xe=$(ie,Q),Ae=new O(xe),Be=new Uint8Array(Ae.digestLength),ft=Be.length,yt=new Uint8Array(ne),We=0;We>>24&255,Ae[1]=gi>>>16&255,Ae[2]=gi>>>8&255,Ae[3]=gi>>>0&255,le.reset(),le.update(ie),le.update(Ae),le.finish(ft);for(var St=0;St=L.status}function O(F){try{F.dispatchEvent(new MouseEvent("click"))}catch(q){var L=document.createEvent("MouseEvents");L.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(L)}}var Y="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,$=Y.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=Y.saveAs||("object"!=typeof window||window!==Y?function(){}:"download"in HTMLAnchorElement.prototype&&!$?function(F,L,q){var Q=Y.URL||Y.webkitURL,ie=document.createElement("a");ie.download=L=L||F.name||"download",ie.rel="noopener","string"==typeof F?(ie.href=F,ie.origin===location.origin?O(ie):I(ie.href)?j(F,L,q):O(ie,ie.target="_blank")):(ie.href=Q.createObjectURL(F),setTimeout(function(){Q.revokeObjectURL(ie.href)},4e4),setTimeout(function(){O(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(F,L,q){if(L=L||F.name||"download","string"!=typeof F)navigator.msSaveOrOpenBlob(function B(F,L){return void 0===L?L={autoBom:!1}:"object"!=typeof L&&(console.warn("Deprecated: Expected third argument to be a object"),L={autoBom:!L}),L.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob(["\ufeff",F],{type:F.type}):F}(F,q),L);else if(I(F))j(F,L,q);else{var Q=document.createElement("a");Q.href=F,Q.target="_blank",setTimeout(function(){O(Q)})}}:function(F,L,q,Q){if((Q=Q||open("","_blank"))&&(Q.document.title=Q.document.body.innerText="downloading..."),"string"==typeof F)return j(F,L,q);var ie="application/octet-stream"===F.type,re=/constructor/i.test(Y.HTMLElement)||Y.safari,ne=/CriOS\/[\d]+/.test(navigator.userAgent);if((ne||ie&&re||$)&&"undefined"!=typeof FileReader){var le=new FileReader;le.onloadend=function(){var Be=le.result;Be=ne?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),Q?Q.location.href=Be:location=Be,Q=null},le.readAsDataURL(F)}else{var xe=Y.URL||Y.webkitURL,Ae=xe.createObjectURL(F);Q?Q.location=Ae:location.href=Ae,Q=null,setTimeout(function(){xe.revokeObjectURL(Ae)},4e4)}});Y.saveAs=G.saveAs=G,z.exports=G}.apply(W,[]))&&(z.exports=g)},1869:(z,W,E)=>{"use strict";E.d(W,{d:()=>g});var T=E(3489);class g extends T.L{constructor(j,I,O){super(),this.parent=j,this.outerValue=I,this.outerIndex=O,this.index=0}_next(j){this.parent.notifyNext(this.outerValue,j,this.outerIndex,this.index++,this)}_error(j){this.parent.notifyError(j,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(z,W,E)=>{"use strict";E.d(W,{P:()=>I});var T=E(8896),g=E(1086),B=E(1737);class I{constructor(Y,$,G){this.kind=Y,this.value=$,this.error=G,this.hasValue="N"===Y}observe(Y){switch(this.kind){case"N":return Y.next&&Y.next(this.value);case"E":return Y.error&&Y.error(this.error);case"C":return Y.complete&&Y.complete()}}do(Y,$,G){switch(this.kind){case"N":return Y&&Y(this.value);case"E":return $&&$(this.error);case"C":return G&&G()}}accept(Y,$,G){return Y&&"function"==typeof Y.next?this.observe(Y):this.do(Y,$,G)}toObservable(){switch(this.kind){case"N":return(0,g.of)(this.value);case"E":return(0,B._)(this.error);case"C":return(0,T.c)()}throw new Error("unexpected notification kind value")}static createNext(Y){return void 0!==Y?new I("N",Y):I.undefinedValueNotification}static createError(Y){return new I("E",void 0,Y)}static createComplete(){return I.completeNotification}}I.completeNotification=new I("C"),I.undefinedValueNotification=new I("N",void 0)},2916:(z,W,E)=>{"use strict";E.d(W,{y:()=>L});var T=E(3489),B=E(7668),j=E(3292),O=E(3821),Y=E(5379);var F=E(2830);let L=(()=>{class Q{constructor(re){this._isScalar=!1,re&&(this._subscribe=re)}lift(re){const ne=new Q;return ne.source=this,ne.operator=re,ne}subscribe(re,ne,le){const{operator:xe}=this,Ae=function I(Q,ie,re){if(Q){if(Q instanceof T.L)return Q;if(Q[B.b])return Q[B.b]()}return Q||ie||re?new T.L(Q,ie,re):new T.L(j.c)}(re,ne,le);if(Ae.add(xe?xe.call(Ae,this.source):this.source||F.v.useDeprecatedSynchronousErrorHandling&&!Ae.syncErrorThrowable?this._subscribe(Ae):this._trySubscribe(Ae)),F.v.useDeprecatedSynchronousErrorHandling&&Ae.syncErrorThrowable&&(Ae.syncErrorThrowable=!1,Ae.syncErrorThrown))throw Ae.syncErrorValue;return Ae}_trySubscribe(re){try{return this._subscribe(re)}catch(ne){F.v.useDeprecatedSynchronousErrorHandling&&(re.syncErrorThrown=!0,re.syncErrorValue=ne),function g(Q){for(;Q;){const{closed:ie,destination:re,isStopped:ne}=Q;if(ie||ne)return!1;Q=re&&re instanceof T.L?re:null}return!0}(re)?re.error(ne):console.warn(ne)}}forEach(re,ne){return new(ne=q(ne))((le,xe)=>{let Ae;Ae=this.subscribe(Be=>{try{re(Be)}catch(ft){xe(ft),Ae&&Ae.unsubscribe()}},xe,le)})}_subscribe(re){const{source:ne}=this;return ne&&ne.subscribe(re)}[O.L](){return this}pipe(...re){return 0===re.length?this:function G(Q){return 0===Q.length?Y.y:1===Q.length?Q[0]:function(re){return Q.reduce((ne,le)=>le(ne),re)}}(re)(this)}toPromise(re){return new(re=q(re))((ne,le)=>{let xe;this.subscribe(Ae=>xe=Ae,Ae=>le(Ae),()=>ne(xe))})}}return Q.create=ie=>new Q(ie),Q})();function q(Q){if(Q||(Q=F.v.Promise||Promise),!Q)throw new Error("no Promise impl found");return Q}},3292:(z,W,E)=>{"use strict";E.d(W,{c:()=>B});var T=E(2830),g=E(2782);const B={closed:!0,next(j){},error(j){if(T.v.useDeprecatedSynchronousErrorHandling)throw j;(0,g.z)(j)},complete(){}}},826:(z,W,E)=>{"use strict";E.d(W,{L:()=>g});var T=E(3489);class g extends T.L{notifyNext(j,I,O,Y,$){this.destination.next(I)}notifyError(j,I){this.destination.error(j)}notifyComplete(j){this.destination.complete()}}},8929:(z,W,E)=>{"use strict";E.d(W,{Yc:()=>Y,xQ:()=>$});var T=E(2916),g=E(3489),B=E(2654),j=E(5279),I=E(5283),O=E(7668);class Y extends g.L{constructor(L){super(L),this.destination=L}}let $=(()=>{class F extends T.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[O.b](){return new Y(this)}lift(q){const Q=new G(this,this);return Q.operator=q,Q}next(q){if(this.closed)throw new j.N;if(!this.isStopped){const{observers:Q}=this,ie=Q.length,re=Q.slice();for(let ne=0;nenew G(L,q),F})();class G extends ${constructor(L,q){super(),this.destination=L,this.source=q}next(L){const{destination:q}=this;q&&q.next&&q.next(L)}error(L){const{destination:q}=this;q&&q.error&&this.destination.error(L)}complete(){const{destination:L}=this;L&&L.complete&&this.destination.complete()}_subscribe(L){const{source:q}=this;return q?this.source.subscribe(L):B.w.EMPTY}}},5283:(z,W,E)=>{"use strict";E.d(W,{W:()=>g});var T=E(2654);class g extends T.w{constructor(j,I){super(),this.subject=j,this.subscriber=I,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const j=this.subject,I=j.observers;if(this.subject=null,!I||0===I.length||j.isStopped||j.closed)return;const O=I.indexOf(this.subscriber);-1!==O&&I.splice(O,1)}}},3489:(z,W,E)=>{"use strict";E.d(W,{L:()=>Y});var T=E(7043),g=E(3292),B=E(2654),j=E(7668),I=E(2830),O=E(2782);class Y extends B.w{constructor(F,L,q){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=g.c;break;case 1:if(!F){this.destination=g.c;break}if("object"==typeof F){F instanceof Y?(this.syncErrorThrowable=F.syncErrorThrowable,this.destination=F,F.add(this)):(this.syncErrorThrowable=!0,this.destination=new $(this,F));break}default:this.syncErrorThrowable=!0,this.destination=new $(this,F,L,q)}}[j.b](){return this}static create(F,L,q){const Q=new Y(F,L,q);return Q.syncErrorThrowable=!1,Q}next(F){this.isStopped||this._next(F)}error(F){this.isStopped||(this.isStopped=!0,this._error(F))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(F){this.destination.next(F)}_error(F){this.destination.error(F),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:F}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=F,this}}class $ extends Y{constructor(F,L,q,Q){super(),this._parentSubscriber=F;let ie,re=this;(0,T.m)(L)?ie=L:L&&(ie=L.next,q=L.error,Q=L.complete,L!==g.c&&(re=Object.create(L),(0,T.m)(re.unsubscribe)&&this.add(re.unsubscribe.bind(re)),re.unsubscribe=this.unsubscribe.bind(this))),this._context=re,this._next=ie,this._error=q,this._complete=Q}next(F){if(!this.isStopped&&this._next){const{_parentSubscriber:L}=this;I.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?this.__tryOrSetError(L,this._next,F)&&this.unsubscribe():this.__tryOrUnsub(this._next,F)}}error(F){if(!this.isStopped){const{_parentSubscriber:L}=this,{useDeprecatedSynchronousErrorHandling:q}=I.v;if(this._error)q&&L.syncErrorThrowable?(this.__tryOrSetError(L,this._error,F),this.unsubscribe()):(this.__tryOrUnsub(this._error,F),this.unsubscribe());else if(L.syncErrorThrowable)q?(L.syncErrorValue=F,L.syncErrorThrown=!0):(0,O.z)(F),this.unsubscribe();else{if(this.unsubscribe(),q)throw F;(0,O.z)(F)}}}complete(){if(!this.isStopped){const{_parentSubscriber:F}=this;if(this._complete){const L=()=>this._complete.call(this._context);I.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,L),this.unsubscribe()):(this.__tryOrUnsub(L),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(F,L){try{F.call(this._context,L)}catch(q){if(this.unsubscribe(),I.v.useDeprecatedSynchronousErrorHandling)throw q;(0,O.z)(q)}}__tryOrSetError(F,L,q){if(!I.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{L.call(this._context,q)}catch(Q){return I.v.useDeprecatedSynchronousErrorHandling?(F.syncErrorValue=Q,F.syncErrorThrown=!0,!0):((0,O.z)(Q),!0)}return!1}_unsubscribe(){const{_parentSubscriber:F}=this;this._context=null,this._parentSubscriber=null,F.unsubscribe()}}},2654:(z,W,E)=>{"use strict";E.d(W,{w:()=>O});var T=E(6688),g=E(7830),B=E(7043);const I=(()=>{function $(G){return Error.call(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((F,L)=>`${L+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G,this}return $.prototype=Object.create(Error.prototype),$})();class O{constructor(G){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,G&&(this._unsubscribe=G)}unsubscribe(){let G;if(this.closed)return;let{_parentOrParents:F,_unsubscribe:L,_subscriptions:q}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,F instanceof O)F.remove(this);else if(null!==F)for(let Q=0;QG.concat(F instanceof I?F.errors:F),[])}O.EMPTY=(($=new O).closed=!0,$)},2830:(z,W,E)=>{"use strict";E.d(W,{v:()=>g});let T=!1;const g={Promise:void 0,set useDeprecatedSynchronousErrorHandling(B){if(B){const j=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+j.stack)}else T&&console.log("RxJS: Back to a better error behavior. Thank you. <3");T=B},get useDeprecatedSynchronousErrorHandling(){return T}}},1762:(z,W,E)=>{"use strict";E.d(W,{c:()=>I,N:()=>O});var T=E(8929),g=E(2916),B=E(2654),j=E(4327);class I extends g.y{constructor(L,q){super(),this.source=L,this.subjectFactory=q,this._refCount=0,this._isComplete=!1}_subscribe(L){return this.getSubject().subscribe(L)}getSubject(){const L=this._subject;return(!L||L.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let L=this._connection;return L||(this._isComplete=!1,L=this._connection=new B.w,L.add(this.source.subscribe(new Y(this.getSubject(),this))),L.closed&&(this._connection=null,L=B.w.EMPTY)),L}refCount(){return(0,j.x)()(this)}}const O=(()=>{const F=I.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:F._subscribe},_isComplete:{value:F._isComplete,writable:!0},getSubject:{value:F.getSubject},connect:{value:F.connect},refCount:{value:F.refCount}}})();class Y extends T.Yc{constructor(L,q){super(L),this.connectable=q}_error(L){this._unsubscribe(),super._error(L)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const L=this.connectable;if(L){this.connectable=null;const q=L._connection;L._refCount=0,L._subject=null,L._connection=null,q&&q.unsubscribe()}}}},6053:(z,W,E)=>{"use strict";E.d(W,{aj:()=>Y});var T=E(2866),g=E(6688),B=E(826),j=E(9054),I=E(3009);const O={};function Y(...F){let L=null,q=null;return(0,T.K)(F[F.length-1])&&(q=F.pop()),"function"==typeof F[F.length-1]&&(L=F.pop()),1===F.length&&(0,g.k)(F[0])&&(F=F[0]),(0,I.n)(F,q).lift(new $(L))}class ${constructor(L){this.resultSelector=L}call(L,q){return q.subscribe(new G(L,this.resultSelector))}}class G extends B.L{constructor(L,q){super(L),this.resultSelector=q,this.active=0,this.values=[],this.observables=[]}_next(L){this.values.push(O),this.observables.push(L)}_complete(){const L=this.observables,q=L.length;if(0===q)this.destination.complete();else{this.active=q,this.toRespond=q;for(let Q=0;Q{"use strict";E.d(W,{E:()=>g,c:()=>B});var T=E(2916);const g=new T.y(I=>I.complete());function B(I){return I?function j(I){return new T.y(O=>I.schedule(()=>O.complete()))}(I):g}},5254:(z,W,E)=>{"use strict";E.d(W,{D:()=>re});var T=E(2916),g=E(9249),B=E(2654),j=E(3821),Y=E(6454),$=E(5430),L=E(8955),q=E(8515);function re(ne,le){return le?function ie(ne,le){if(null!=ne){if(function F(ne){return ne&&"function"==typeof ne[j.L]}(ne))return function I(ne,le){return new T.y(xe=>{const Ae=new B.w;return Ae.add(le.schedule(()=>{const Be=ne[j.L]();Ae.add(Be.subscribe({next(ft){Ae.add(le.schedule(()=>xe.next(ft)))},error(ft){Ae.add(le.schedule(()=>xe.error(ft)))},complete(){Ae.add(le.schedule(()=>xe.complete()))}}))})),Ae})}(ne,le);if((0,L.t)(ne))return function O(ne,le){return new T.y(xe=>{const Ae=new B.w;return Ae.add(le.schedule(()=>ne.then(Be=>{Ae.add(le.schedule(()=>{xe.next(Be),Ae.add(le.schedule(()=>xe.complete()))}))},Be=>{Ae.add(le.schedule(()=>xe.error(Be)))}))),Ae})}(ne,le);if((0,q.z)(ne))return(0,Y.r)(ne,le);if(function Q(ne){return ne&&"function"==typeof ne[$.hZ]}(ne)||"string"==typeof ne)return function G(ne,le){if(!ne)throw new Error("Iterable cannot be null");return new T.y(xe=>{const Ae=new B.w;let Be;return Ae.add(()=>{Be&&"function"==typeof Be.return&&Be.return()}),Ae.add(le.schedule(()=>{Be=ne[$.hZ](),Ae.add(le.schedule(function(){if(xe.closed)return;let ft,yt;try{const We=Be.next();ft=We.value,yt=We.done}catch(We){return void xe.error(We)}yt?xe.complete():(xe.next(ft),this.schedule())}))})),Ae})}(ne,le)}throw new TypeError((null!==ne&&typeof ne||ne)+" is not observable")}(ne,le):ne instanceof T.y?ne:new T.y((0,g.s)(ne))}},3009:(z,W,E)=>{"use strict";E.d(W,{n:()=>j});var T=E(2916),g=E(3650),B=E(6454);function j(I,O){return O?(0,B.r)(I,O):new T.y((0,g.V)(I))}},6787:(z,W,E)=>{"use strict";E.d(W,{T:()=>I});var T=E(2916),g=E(2866),B=E(9146),j=E(3009);function I(...O){let Y=Number.POSITIVE_INFINITY,$=null,G=O[O.length-1];return(0,g.K)(G)?($=O.pop(),O.length>1&&"number"==typeof O[O.length-1]&&(Y=O.pop())):"number"==typeof G&&(Y=O.pop()),null===$&&1===O.length&&O[0]instanceof T.y?O[0]:(0,B.J)(Y)((0,j.n)(O,$))}},1086:(z,W,E)=>{"use strict";E.d(W,{of:()=>j});var T=E(2866),g=E(3009),B=E(6454);function j(...I){let O=I[I.length-1];return(0,T.K)(O)?(I.pop(),(0,B.r)(I,O)):(0,g.n)(I)}},1946:(z,W,E)=>{"use strict";E.d(W,{S3:()=>I});var T=E(6688),g=E(3009),B=E(826),j=E(9054);function I(...$){if(1===$.length){if(!(0,T.k)($[0]))return $[0];$=$[0]}return(0,g.n)($,void 0).lift(new O)}class O{call(G,F){return F.subscribe(new Y(G))}}class Y extends B.L{constructor(G){super(G),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(G){this.observables.push(G)}_complete(){const G=this.observables,F=G.length;if(0===F)this.destination.complete();else{for(let L=0;L{"use strict";E.d(W,{_:()=>g});var T=E(2916);function g(j,I){return new T.y(I?O=>I.schedule(B,0,{error:j,subscriber:O}):O=>O.error(j))}function B({error:j,subscriber:I}){I.error(j)}},7221:(z,W,E)=>{"use strict";E.d(W,{K:()=>j});var T=E(826),g=E(1869),B=E(9054);function j(Y){return function(G){const F=new I(Y),L=G.lift(F);return F.caught=L}}class I{constructor($){this.selector=$}call($,G){return G.subscribe(new O($,this.selector,this.caught))}}class O extends T.L{constructor($,G,F){super($),this.selector=G,this.caught=F}error($){if(!this.isStopped){let G;try{G=this.selector($,this.caught)}catch(q){return void super.error(q)}this._unsubscribeAndRecycle();const F=new g.d(this,void 0,void 0);this.add(F);const L=(0,B.D)(this,G,void 0,void 0,F);L!==F&&this.add(L)}}}},1406:(z,W,E)=>{"use strict";E.d(W,{b:()=>g});var T=E(1709);function g(B,j){return(0,T.zg)(B,j,1)}},13:(z,W,E)=>{"use strict";E.d(W,{b:()=>B});var T=E(3489),g=E(353);function B(Y,$=g.P){return G=>G.lift(new j(Y,$))}class j{constructor($,G){this.dueTime=$,this.scheduler=G}call($,G){return G.subscribe(new I($,this.dueTime,this.scheduler))}}class I extends T.L{constructor($,G,F){super($),this.dueTime=G,this.scheduler=F,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next($){this.clearDebounce(),this.lastValue=$,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:$}=this;this.lastValue=null,this.hasValue=!1,this.destination.next($)}}clearDebounce(){const $=this.debouncedSubscription;null!==$&&(this.remove($),$.unsubscribe(),this.debouncedSubscription=null)}}function O(Y){Y.debouncedNext()}},7314:(z,W,E)=>{"use strict";E.d(W,{d:()=>g});var T=E(3489);function g(I=null){return O=>O.lift(new B(I))}class B{constructor(O){this.defaultValue=O}call(O,Y){return Y.subscribe(new j(O,this.defaultValue))}}class j extends T.L{constructor(O,Y){super(O),this.defaultValue=Y,this.isEmpty=!0}_next(O){this.isEmpty=!1,this.destination.next(O)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(z,W,E)=>{"use strict";E.d(W,{g:()=>I});var T=E(353),g=E(2697),B=E(3489),j=E(9312);function I(G,F=T.P){const q=(0,g.J)(G)?+G-F.now():Math.abs(G);return Q=>Q.lift(new O(q,F))}class O{constructor(F,L){this.delay=F,this.scheduler=L}call(F,L){return L.subscribe(new Y(F,this.delay,this.scheduler))}}class Y extends B.L{constructor(F,L,q){super(F),this.delay=L,this.scheduler=q,this.queue=[],this.active=!1,this.errored=!1}static dispatch(F){const L=F.source,q=L.queue,Q=F.scheduler,ie=F.destination;for(;q.length>0&&q[0].time-Q.now()<=0;)q.shift().notification.observe(ie);if(q.length>0){const re=Math.max(0,q[0].time-Q.now());this.schedule(F,re)}else this.unsubscribe(),L.active=!1}_schedule(F){this.active=!0,this.destination.add(F.schedule(Y.dispatch,this.delay,{source:this,destination:this.destination,scheduler:F}))}scheduleNotification(F){if(!0===this.errored)return;const L=this.scheduler,q=new $(L.now()+this.delay,F);this.queue.push(q),!1===this.active&&this._schedule(L)}_next(F){this.scheduleNotification(j.P.createNext(F))}_error(F){this.errored=!0,this.queue=[],this.destination.error(F),this.unsubscribe()}_complete(){this.scheduleNotification(j.P.createComplete()),this.unsubscribe()}}class ${constructor(F,L){this.time=F,this.notification=L}}},2198:(z,W,E)=>{"use strict";E.d(W,{h:()=>g});var T=E(3489);function g(I,O){return function($){return $.lift(new B(I,O))}}class B{constructor(O,Y){this.predicate=O,this.thisArg=Y}call(O,Y){return Y.subscribe(new j(O,this.predicate,this.thisArg))}}class j extends T.L{constructor(O,Y,$){super(O),this.predicate=Y,this.thisArg=$,this.count=0}_next(O){let Y;try{Y=this.predicate.call(this.thisArg,O,this.count++)}catch($){return void this.destination.error($)}Y&&this.destination.next(O)}}},7224:(z,W,E)=>{"use strict";E.d(W,{P:()=>Y});var T=E(4450),g=E(2198),B=E(2986),j=E(7314),I=E(4907),O=E(5379);function Y($,G){const F=arguments.length>=2;return L=>L.pipe($?(0,g.h)((q,Q)=>$(q,Q,L)):O.y,(0,B.q)(1),F?(0,j.d)(G):(0,I.T)(()=>new T.K))}},4850:(z,W,E)=>{"use strict";E.d(W,{U:()=>g});var T=E(3489);function g(I,O){return function($){if("function"!=typeof I)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return $.lift(new B(I,O))}}class B{constructor(O,Y){this.project=O,this.thisArg=Y}call(O,Y){return Y.subscribe(new j(O,this.project,this.thisArg))}}class j extends T.L{constructor(O,Y,$){super(O),this.project=Y,this.count=0,this.thisArg=$||this}_next(O){let Y;try{Y=this.project.call(this.thisArg,O,this.count++)}catch($){return void this.destination.error($)}this.destination.next(Y)}}},9146:(z,W,E)=>{"use strict";E.d(W,{J:()=>B});var T=E(1709),g=E(5379);function B(j=Number.POSITIVE_INFINITY){return(0,T.zg)(g.y,j)}},1709:(z,W,E)=>{"use strict";E.d(W,{zg:()=>O});var T=E(9054),g=E(826),B=E(1869),j=E(4850),I=E(5254);function O(G,F,L=Number.POSITIVE_INFINITY){return"function"==typeof F?q=>q.pipe(O((Q,ie)=>(0,I.D)(G(Q,ie)).pipe((0,j.U)((re,ne)=>F(Q,re,ie,ne))),L)):("number"==typeof F&&(L=F),q=>q.lift(new Y(G,L)))}class Y{constructor(F,L=Number.POSITIVE_INFINITY){this.project=F,this.concurrent=L}call(F,L){return L.subscribe(new $(F,this.project,this.concurrent))}}class $ extends g.L{constructor(F,L,q=Number.POSITIVE_INFINITY){super(F),this.project=L,this.concurrent=q,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(F){this.active0?this._next(L.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(z,W,E)=>{"use strict";E.d(W,{x:()=>g});var T=E(3489);function g(){return function(O){return O.lift(new B(O))}}class B{constructor(O){this.connectable=O}call(O,Y){const{connectable:$}=this;$._refCount++;const G=new j(O,$),F=Y.subscribe(G);return G.closed||(G.connection=$.connect()),F}}class j extends T.L{constructor(O,Y){super(O),this.connectable=Y}_unsubscribe(){const{connectable:O}=this;if(!O)return void(this.connection=null);this.connectable=null;const Y=O._refCount;if(Y<=0)return void(this.connection=null);if(O._refCount=Y-1,Y>1)return void(this.connection=null);const{connection:$}=this,G=O._connection;this.connection=null,G&&(!$||G===$)&&G.unsubscribe()}}},2474:(z,W,E)=>{"use strict";E.d(W,{B:()=>Y});var T=E(1762);class B{constructor(G,F){this.subjectFactory=G,this.selector=F}call(G,F){const{selector:L}=this,q=this.subjectFactory(),Q=L(q).subscribe(G);return Q.add(F.subscribe(q)),Q}}var j=E(4327),I=E(8929);function O(){return new I.xQ}function Y(){return $=>(0,j.x)()(function g($,G){return function(L){let q;if(q="function"==typeof $?$:function(){return $},"function"==typeof G)return L.lift(new B(q,G));const Q=Object.create(L,T.N);return Q.source=L,Q.subjectFactory=q,Q}}(O)($))}},7545:(z,W,E)=>{"use strict";E.d(W,{w:()=>O});var T=E(826),g=E(1869),B=E(9054),j=E(4850),I=E(5254);function O(G,F){return"function"==typeof F?L=>L.pipe(O((q,Q)=>(0,I.D)(G(q,Q)).pipe((0,j.U)((ie,re)=>F(q,ie,Q,re))))):L=>L.lift(new Y(G))}class Y{constructor(F){this.project=F}call(F,L){return L.subscribe(new $(F,this.project))}}class $ extends T.L{constructor(F,L){super(F),this.project=L,this.index=0}_next(F){let L;const q=this.index++;try{L=this.project(F,q)}catch(Q){return void this.destination.error(Q)}this._innerSub(L,F,q)}_innerSub(F,L,q){const Q=this.innerSubscription;Q&&Q.unsubscribe();const ie=new g.d(this,L,q),re=this.destination;re.add(ie),this.innerSubscription=(0,B.D)(this,F,void 0,void 0,ie),this.innerSubscription!==ie&&re.add(this.innerSubscription)}_complete(){const{innerSubscription:F}=this;(!F||F.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(F){this.destination.remove(F),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(F,L,q,Q,ie){this.destination.next(L)}}},2986:(z,W,E)=>{"use strict";E.d(W,{q:()=>j});var T=E(3489),g=E(4231),B=E(8896);function j(Y){return $=>0===Y?(0,B.c)():$.lift(new I(Y))}class I{constructor($){if(this.total=$,this.total<0)throw new g.W}call($,G){return G.subscribe(new O($,this.total))}}class O extends T.L{constructor($,G){super($),this.total=G,this.count=0}_next($){const G=this.total,F=++this.count;F<=G&&(this.destination.next($),F===G&&(this.destination.complete(),this.unsubscribe()))}}},2868:(z,W,E)=>{"use strict";E.d(W,{b:()=>j});var T=E(3489);function g(){}var B=E(7043);function j(Y,$,G){return function(L){return L.lift(new I(Y,$,G))}}class I{constructor($,G,F){this.nextOrObserver=$,this.error=G,this.complete=F}call($,G){return G.subscribe(new O($,this.nextOrObserver,this.error,this.complete))}}class O extends T.L{constructor($,G,F,L){super($),this._tapNext=g,this._tapError=g,this._tapComplete=g,this._tapError=F||g,this._tapComplete=L||g,(0,B.m)(G)?(this._context=this,this._tapNext=G):G&&(this._context=G,this._tapNext=G.next||g,this._tapError=G.error||g,this._tapComplete=G.complete||g)}_next($){try{this._tapNext.call(this._context,$)}catch(G){return void this.destination.error(G)}this.destination.next($)}_error($){try{this._tapError.call(this._context,$)}catch(G){return void this.destination.error(G)}this.destination.error($)}_complete(){try{this._tapComplete.call(this._context)}catch($){return void this.destination.error($)}return this.destination.complete()}}},4907:(z,W,E)=>{"use strict";E.d(W,{T:()=>B});var T=E(4450),g=E(3489);function B(Y=O){return $=>$.lift(new j(Y))}class j{constructor($){this.errorFactory=$}call($,G){return G.subscribe(new I($,this.errorFactory))}}class I extends g.L{constructor($,G){super($),this.errorFactory=G,this.hasValue=!1}_next($){this.hasValue=!0,this.destination.next($)}_complete(){if(this.hasValue)return this.destination.complete();{let $;try{$=this.errorFactory()}catch(G){$=G}this.destination.error($)}}}function O(){return new T.K}},6227:(z,W,E)=>{"use strict";E.d(W,{V:()=>L});var T=E(353);const B=(()=>{function q(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return q.prototype=Object.create(Error.prototype),q})();var j=E(2697),I=E(826),O=E(9054);class ${constructor(Q,ie,re,ne){this.waitFor=Q,this.absoluteTimeout=ie,this.withObservable=re,this.scheduler=ne}call(Q,ie){return ie.subscribe(new G(Q,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class G extends I.L{constructor(Q,ie,re,ne,le){super(Q),this.absoluteTimeout=ie,this.waitFor=re,this.withObservable=ne,this.scheduler=le,this.action=null,this.scheduleTimeout()}static dispatchTimeout(Q){const{withObservable:ie}=Q;Q._unsubscribeAndRecycle(),Q.add((0,O.D)(Q,ie))}scheduleTimeout(){const{action:Q}=this;Q?this.action=Q.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(G.dispatchTimeout,this.waitFor,this))}_next(Q){this.absoluteTimeout||this.scheduleTimeout(),super._next(Q)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var F=E(1737);function L(q,Q=T.P){return function Y(q,Q,ie=T.P){return re=>{let ne=(0,j.J)(q),le=ne?+q-ie.now():Math.abs(q);return re.lift(new $(le,ne,Q,ie))}}(q,(0,F._)(new B),Q)}},6454:(z,W,E)=>{"use strict";E.d(W,{r:()=>B});var T=E(2916),g=E(2654);function B(j,I){return new T.y(O=>{const Y=new g.w;let $=0;return Y.add(I.schedule(function(){$!==j.length?(O.next(j[$++]),O.closed||Y.add(this.schedule())):O.complete()})),Y})}},6686:(z,W,E)=>{"use strict";E.d(W,{o:()=>B});var T=E(2654);class g extends T.w{constructor(I,O){super()}schedule(I,O=0){return this}}class B extends g{constructor(I,O){super(I,O),this.scheduler=I,this.work=O,this.pending=!1}schedule(I,O=0){if(this.closed)return this;this.state=I;const Y=this.id,$=this.scheduler;return null!=Y&&(this.id=this.recycleAsyncId($,Y,O)),this.pending=!0,this.delay=O,this.id=this.id||this.requestAsyncId($,this.id,O),this}requestAsyncId(I,O,Y=0){return setInterval(I.flush.bind(I,this),Y)}recycleAsyncId(I,O,Y=0){if(null!==Y&&this.delay===Y&&!1===this.pending)return O;clearInterval(O)}execute(I,O){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Y=this._execute(I,O);if(Y)return Y;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(I,O){let $,Y=!1;try{this.work(I)}catch(G){Y=!0,$=!!G&&G||new Error(G)}if(Y)return this.unsubscribe(),$}_unsubscribe(){const I=this.id,O=this.scheduler,Y=O.actions,$=Y.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==$&&Y.splice($,1),null!=I&&(this.id=this.recycleAsyncId(O,I,null)),this.delay=null}}},2268:(z,W,E)=>{"use strict";E.d(W,{v:()=>g});let T=(()=>{class B{constructor(I,O=B.now){this.SchedulerAction=I,this.now=O}schedule(I,O=0,Y){return new this.SchedulerAction(this,I).schedule(Y,O)}}return B.now=()=>Date.now(),B})();class g extends T{constructor(j,I=T.now){super(j,()=>g.delegate&&g.delegate!==this?g.delegate.now():I()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(j,I=0,O){return g.delegate&&g.delegate!==this?g.delegate.schedule(j,I,O):super.schedule(j,I,O)}flush(j){const{actions:I}=this;if(this.active)return void I.push(j);let O;this.active=!0;do{if(O=j.execute(j.state,j.delay))break}while(j=I.shift());if(this.active=!1,O){for(;j=I.shift();)j.unsubscribe();throw O}}}},353:(z,W,E)=>{"use strict";E.d(W,{P:()=>B});var T=E(6686);const B=new(E(2268).v)(T.o)},5430:(z,W,E)=>{"use strict";E.d(W,{hZ:()=>g});const g=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(z,W,E)=>{"use strict";E.d(W,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(z,W,E)=>{"use strict";E.d(W,{b:()=>T});const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(z,W,E)=>{"use strict";E.d(W,{W:()=>g});const g=(()=>{function B(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return B.prototype=Object.create(Error.prototype),B})()},4450:(z,W,E)=>{"use strict";E.d(W,{K:()=>g});const g=(()=>{function B(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return B.prototype=Object.create(Error.prototype),B})()},5279:(z,W,E)=>{"use strict";E.d(W,{N:()=>g});const g=(()=>{function B(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return B.prototype=Object.create(Error.prototype),B})()},2782:(z,W,E)=>{"use strict";function T(g){setTimeout(()=>{throw g},0)}E.d(W,{z:()=>T})},5379:(z,W,E)=>{"use strict";function T(g){return g}E.d(W,{y:()=>T})},6688:(z,W,E)=>{"use strict";E.d(W,{k:()=>T});const T=Array.isArray||(g=>g&&"number"==typeof g.length)},8515:(z,W,E)=>{"use strict";E.d(W,{z:()=>T});const T=g=>g&&"number"==typeof g.length&&"function"!=typeof g},2697:(z,W,E)=>{"use strict";function T(g){return g instanceof Date&&!isNaN(+g)}E.d(W,{J:()=>T})},7043:(z,W,E)=>{"use strict";function T(g){return"function"==typeof g}E.d(W,{m:()=>T})},7830:(z,W,E)=>{"use strict";function T(g){return null!==g&&"object"==typeof g}E.d(W,{K:()=>T})},8955:(z,W,E)=>{"use strict";function T(g){return!!g&&"function"!=typeof g.subscribe&&"function"==typeof g.then}E.d(W,{t:()=>T})},2866:(z,W,E)=>{"use strict";function T(g){return g&&"function"==typeof g.schedule}E.d(W,{K:()=>T})},9249:(z,W,E)=>{"use strict";E.d(W,{s:()=>L});var T=E(3650),g=E(2782),j=E(5430),O=E(3821),$=E(8515),G=E(8955),F=E(7830);const L=q=>{if(q&&"function"==typeof q[O.L])return(q=>Q=>{const ie=q[O.L]();if("function"!=typeof ie.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ie.subscribe(Q)})(q);if((0,$.z)(q))return(0,T.V)(q);if((0,G.t)(q))return(q=>Q=>(q.then(ie=>{Q.closed||(Q.next(ie),Q.complete())},ie=>Q.error(ie)).then(null,g.z),Q))(q);if(q&&"function"==typeof q[j.hZ])return(q=>Q=>{const ie=q[j.hZ]();for(;;){const re=ie.next();if(re.done){Q.complete();break}if(Q.next(re.value),Q.closed)break}return"function"==typeof ie.return&&Q.add(()=>{ie.return&&ie.return()}),Q})(q);{const ie=`You provided ${(0,F.K)(q)?"an invalid object":`'${q}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ie)}}},3650:(z,W,E)=>{"use strict";E.d(W,{V:()=>T});const T=g=>B=>{for(let j=0,I=g.length;j{"use strict";E.d(W,{D:()=>j});var T=E(1869),g=E(9249),B=E(2916);function j(I,O,Y,$,G=new T.d(I,Y,$)){if(!G.closed)return O instanceof B.y?O.subscribe(G):(0,g.s)(O)(G)}},655:(z,W,E)=>{"use strict";function $(oe,he,pe,ue){return new(pe||(pe=Promise))(function(ce,nt){function Tt(tt){try{ze(ue.next(tt))}catch(yn){nt(yn)}}function Bi(tt){try{ze(ue.throw(tt))}catch(yn){nt(yn)}}function ze(tt){tt.done?ce(tt.value):function we(ce){return ce instanceof pe?ce:new pe(function(nt){nt(ce)})}(tt.value).then(Tt,Bi)}ze((ue=ue.apply(oe,he||[])).next())})}E.d(W,{mG:()=>$})},9808:(z,W,E)=>{"use strict";E.d(W,{mr:()=>Ae,Ov:()=>Bf,ez:()=>Wl,K0:()=>Y,Do:()=>ft,V_:()=>F,Ye:()=>yt,S$:()=>le,mk:()=>Pr,sg:()=>bi,O5:()=>$i,PC:()=>Yd,RF:()=>Li,n9:()=>Qi,b0:()=>Be,lw:()=>$,EM:()=>es,JF:()=>jt,NF:()=>yi,w_:()=>O,bD:()=>ro,q:()=>B,Mx:()=>eo,HT:()=>I});var T=E(5e3);let g=null;function B(){return g}function I(H){g||(g=H)}class O{}const Y=new T.OlP("DocumentToken");let $=(()=>{class H{historyGo(M){throw new Error("Not implemented")}}return H.\u0275fac=function(M){return new(M||H)},H.\u0275prov=T.Yz7({token:H,factory:function(){return function G(){return(0,T.LFG)(L)}()},providedIn:"platform"}),H})();const F=new T.OlP("Location Initialized");let L=(()=>{class H extends ${constructor(M){super(),this._doc=M,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return B().getBaseHref(this._doc)}onPopState(M){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",M,!1),()=>V.removeEventListener("popstate",M)}onHashChange(M){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",M,!1),()=>V.removeEventListener("hashchange",M)}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(M){this.location.pathname=M}pushState(M,V,X){q()?this._history.pushState(M,V,X):this.location.hash=X}replaceState(M,V,X){q()?this._history.replaceState(M,V,X):this.location.hash=X}forward(){this._history.forward()}back(){this._history.back()}historyGo(M=0){this._history.go(M)}getState(){return this._history.state}}return H.\u0275fac=function(M){return new(M||H)(T.LFG(Y))},H.\u0275prov=T.Yz7({token:H,factory:function(){return function Q(){return new L((0,T.LFG)(Y))}()},providedIn:"platform"}),H})();function q(){return!!window.history.pushState}function ie(H,k){if(0==H.length)return k;if(0==k.length)return H;let M=0;return H.endsWith("/")&&M++,k.startsWith("/")&&M++,2==M?H+k.substring(1):1==M?H+k:H+"/"+k}function re(H){const k=H.match(/#|\?|$/),M=k&&k.index||H.length;return H.slice(0,M-("/"===H[M-1]?1:0))+H.slice(M)}function ne(H){return H&&"?"!==H[0]?"?"+H:H}let le=(()=>{class H{historyGo(M){throw new Error("Not implemented")}}return H.\u0275fac=function(M){return new(M||H)},H.\u0275prov=T.Yz7({token:H,factory:function(){return function xe(H){const k=(0,T.LFG)(Y).location;return new Be((0,T.LFG)($),k&&k.origin||"")}()},providedIn:"root"}),H})();const Ae=new T.OlP("appBaseHref");let Be=(()=>{class H extends le{constructor(M,V){if(super(),this._platformLocation=M,this._removeListenerFns=[],null==V&&(V=this._platformLocation.getBaseHrefFromDOM()),null==V)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=V}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}prepareExternalUrl(M){return ie(this._baseHref,M)}path(M=!1){const V=this._platformLocation.pathname+ne(this._platformLocation.search),X=this._platformLocation.hash;return X&&M?`${V}${X}`:V}pushState(M,V,X,de){const me=this.prepareExternalUrl(X+ne(de));this._platformLocation.pushState(M,V,me)}replaceState(M,V,X,de){const me=this.prepareExternalUrl(X+ne(de));this._platformLocation.replaceState(M,V,me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformLocation).historyGo)||void 0===X||X.call(V,M)}}return H.\u0275fac=function(M){return new(M||H)(T.LFG($),T.LFG(Ae,8))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})(),ft=(()=>{class H extends le{constructor(M,V){super(),this._platformLocation=M,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}path(M=!1){let V=this._platformLocation.hash;return null==V&&(V="#"),V.length>0?V.substring(1):V}prepareExternalUrl(M){const V=ie(this._baseHref,M);return V.length>0?"#"+V:V}pushState(M,V,X,de){let me=this.prepareExternalUrl(X+ne(de));0==me.length&&(me=this._platformLocation.pathname),this._platformLocation.pushState(M,V,me)}replaceState(M,V,X,de){let me=this.prepareExternalUrl(X+ne(de));0==me.length&&(me=this._platformLocation.pathname),this._platformLocation.replaceState(M,V,me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformLocation).historyGo)||void 0===X||X.call(V,M)}}return H.\u0275fac=function(M){return new(M||H)(T.LFG($),T.LFG(Ae,8))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})(),yt=(()=>{class H{constructor(M,V){this._subject=new T.vpe,this._urlChangeListeners=[],this._platformStrategy=M;const X=this._platformStrategy.getBaseHref();this._platformLocation=V,this._baseHref=re(St(X)),this._platformStrategy.onPopState(de=>{this._subject.emit({url:this.path(!0),pop:!0,state:de.state,type:de.type})})}path(M=!1){return this.normalize(this._platformStrategy.path(M))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(M,V=""){return this.path()==this.normalize(M+ne(V))}normalize(M){return H.stripTrailingSlash(function gi(H,k){return H&&k.startsWith(H)?k.substring(H.length):k}(this._baseHref,St(M)))}prepareExternalUrl(M){return M&&"/"!==M[0]&&(M="/"+M),this._platformStrategy.prepareExternalUrl(M)}go(M,V="",X=null){this._platformStrategy.pushState(X,"",M,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+ne(V)),X)}replaceState(M,V="",X=null){this._platformStrategy.replaceState(X,"",M,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+ne(V)),X)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformStrategy).historyGo)||void 0===X||X.call(V,M)}onUrlChange(M){this._urlChangeListeners.push(M),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}))}_notifyUrlChangeListeners(M="",V){this._urlChangeListeners.forEach(X=>X(M,V))}subscribe(M,V,X){return this._subject.subscribe({next:M,error:V,complete:X})}}return H.normalizeQueryParams=ne,H.joinWithSlash=ie,H.stripTrailingSlash=re,H.\u0275fac=function(M){return new(M||H)(T.LFG(le),T.LFG($))},H.\u0275prov=T.Yz7({token:H,factory:function(){return function We(){return new yt((0,T.LFG)(le),(0,T.LFG)($))}()},providedIn:"root"}),H})();function St(H){return H.replace(/\/index.html$/,"")}var he=(()=>((he=he||{})[he.Zero=0]="Zero",he[he.One=1]="One",he[he.Two=2]="Two",he[he.Few=3]="Few",he[he.Many=4]="Many",he[he.Other=5]="Other",he))();const cr=T.kL8;class Bt{}let Sn=(()=>{class H extends Bt{constructor(M){super(),this.locale=M}getPluralCategory(M,V){switch(cr(V||this.locale)(M)){case he.Zero:return"zero";case he.One:return"one";case he.Two:return"two";case he.Few:return"few";case he.Many:return"many";default:return"other"}}}return H.\u0275fac=function(M){return new(M||H)(T.LFG(T.soG))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})();function eo(H,k){k=encodeURIComponent(k);for(const M of H.split(";")){const V=M.indexOf("="),[X,de]=-1==V?[M,""]:[M.slice(0,V),M.slice(V+1)];if(X.trim()===k)return decodeURIComponent(de)}return null}let Pr=(()=>{class H{constructor(M,V,X,de){this._iterableDiffers=M,this._keyValueDiffers=V,this._ngEl=X,this._renderer=de,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(M){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof M?M.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(M){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof M?M.split(/\s+/):M,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 M=this._iterableDiffer.diff(this._rawClass);M&&this._applyIterableChanges(M)}else if(this._keyValueDiffer){const M=this._keyValueDiffer.diff(this._rawClass);M&&this._applyKeyValueChanges(M)}}_applyKeyValueChanges(M){M.forEachAddedItem(V=>this._toggleClass(V.key,V.currentValue)),M.forEachChangedItem(V=>this._toggleClass(V.key,V.currentValue)),M.forEachRemovedItem(V=>{V.previousValue&&this._toggleClass(V.key,!1)})}_applyIterableChanges(M){M.forEachAddedItem(V=>{if("string"!=typeof V.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(V.item)}`);this._toggleClass(V.item,!0)}),M.forEachRemovedItem(V=>this._toggleClass(V.item,!1))}_applyClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(V=>this._toggleClass(V,!0)):Object.keys(M).forEach(V=>this._toggleClass(V,!!M[V])))}_removeClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(V=>this._toggleClass(V,!1)):Object.keys(M).forEach(V=>this._toggleClass(V,!1)))}_toggleClass(M,V){(M=M.trim())&&M.split(/\s+/g).forEach(X=>{V?this._renderer.addClass(this._ngEl.nativeElement,X):this._renderer.removeClass(this._ngEl.nativeElement,X)})}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),H})();class ra{constructor(k,M,V,X){this.$implicit=k,this.ngForOf=M,this.index=V,this.count=X}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 bi=(()=>{class H{constructor(M,V,X){this._viewContainer=M,this._template=V,this._differs=X,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(M){this._ngForOf=M,this._ngForOfDirty=!0}set ngForTrackBy(M){this._trackByFn=M}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(M){M&&(this._template=M)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const M=this._ngForOf;!this._differ&&M&&(this._differ=this._differs.find(M).create(this.ngForTrackBy))}if(this._differ){const M=this._differ.diff(this._ngForOf);M&&this._applyChanges(M)}}_applyChanges(M){const V=this._viewContainer;M.forEachOperation((X,de,me)=>{if(null==X.previousIndex)V.createEmbeddedView(this._template,new ra(X.item,this._ngForOf,-1,-1),null===me?void 0:me);else if(null==me)V.remove(null===de?void 0:de);else if(null!==de){const Oe=V.get(de);V.move(Oe,me),aa(Oe,X)}});for(let X=0,de=V.length;X{aa(V.get(X.currentIndex),X)})}static ngTemplateContextGuard(M,V){return!0}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),H})();function aa(H,k){H.context.$implicit=k.item}let $i=(()=>{class H{constructor(M,V){this._viewContainer=M,this._context=new Rt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(M){this._context.$implicit=this._context.ngIf=M,this._updateView()}set ngIfThen(M){Qd("ngIfThen",M),this._thenTemplateRef=M,this._thenViewRef=null,this._updateView()}set ngIfElse(M){Qd("ngIfElse",M),this._elseTemplateRef=M,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(M,V){return!0}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),H})();class Rt{constructor(){this.$implicit=null,this.ngIf=null}}function Qd(H,k){if(k&&!k.createEmbeddedView)throw new Error(`${H} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class zl{constructor(k,M){this._viewContainerRef=k,this._templateRef=M,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Li=(()=>{class H{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(M){this._ngSwitch=M,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(M){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(M)}_matchCase(M){const V=M==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(M){if(this._defaultViews&&M!==this._defaultUsed){this._defaultUsed=M;for(let V=0;V{class H{constructor(M,V,X){this.ngSwitch=X,X._addCase(),this._view=new zl(M,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Li,9))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),H})(),Yd=(()=>{class H{constructor(M,V,X){this._ngEl=M,this._differs=V,this._renderer=X,this._ngStyle=null,this._differ=null}set ngStyle(M){this._ngStyle=M,!this._differ&&M&&(this._differ=this._differs.find(M).create())}ngDoCheck(){if(this._differ){const M=this._differ.diff(this._ngStyle);M&&this._applyChanges(M)}}_setStyle(M,V){const[X,de]=M.split(".");null!=(V=null!=V&&de?`${V}${de}`:V)?this._renderer.setStyle(this._ngEl.nativeElement,X,V):this._renderer.removeStyle(this._ngEl.nativeElement,X)}_applyChanges(M){M.forEachRemovedItem(V=>this._setStyle(V.key,null)),M.forEachAddedItem(V=>this._setStyle(V.key,V.currentValue)),M.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),H})();class Jb{createSubscription(k,M){return k.subscribe({next:M,error:V=>{throw V}})}dispose(k){k.unsubscribe()}onDestroy(k){k.unsubscribe()}}class Kb{createSubscription(k,M){return k.then(M,V=>{throw V})}dispose(k){}onDestroy(k){}}const Zb=new Kb,Xb=new Jb;let Bf=(()=>{class H{constructor(M){this._ref=M,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(M){return this._obj?M!==this._obj?(this._dispose(),this.transform(M)):this._latestValue:(M&&this._subscribe(M),this._latestValue)}_subscribe(M){this._obj=M,this._strategy=this._selectStrategy(M),this._subscription=this._strategy.createSubscription(M,V=>this._updateLatestValue(M,V))}_selectStrategy(M){if((0,T.QGY)(M))return Zb;if((0,T.F4k)(M))return Xb;throw function on(H,k){return new T.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(M,V){M===this._obj&&(this._latestValue=V,this._ref.markForCheck())}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.sBO,16))},H.\u0275pipe=T.Yjl({name:"async",type:H,pure:!1}),H})(),Wl=(()=>{class H{}return H.\u0275fac=function(M){return new(M||H)},H.\u0275mod=T.oAB({type:H}),H.\u0275inj=T.cJS({providers:[{provide:Bt,useClass:Sn}]}),H})();const ro="browser";function yi(H){return H===ro}let es=(()=>{class H{}return H.\u0275prov=(0,T.Yz7)({token:H,providedIn:"root",factory:()=>new ts((0,T.LFG)(Y),window)}),H})();class ts{constructor(k,M){this.document=k,this.window=M,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const M=function Yl(H,k){const M=H.getElementById(k)||H.getElementsByName(k)[0];if(M)return M;if("function"==typeof H.createTreeWalker&&H.body&&(H.body.createShadowRoot||H.body.attachShadow)){const V=H.createTreeWalker(H.body,NodeFilter.SHOW_ELEMENT);let X=V.currentNode;for(;X;){const de=X.shadowRoot;if(de){const me=de.getElementById(k)||de.querySelector(`[name="${k}"]`);if(me)return me}X=V.nextNode()}}return null}(this.document,k);M&&(this.scrollToElement(M),M.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const M=this.window.history;M&&M.scrollRestoration&&(M.scrollRestoration=k)}}scrollToElement(k){const M=k.getBoundingClientRect(),V=M.left+this.window.pageXOffset,X=M.top+this.window.pageYOffset,de=this.offset();this.window.scrollTo(V-de[0],X-de[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=ao(this.window.history)||ao(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch(k){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(k){return!1}}}function ao(H){return Object.getOwnPropertyDescriptor(H,"scrollRestoration")}class jt{}},520:(z,W,E)=>{"use strict";E.d(W,{TP:()=>Tt,eN:()=>ce,JF:()=>mi,qT:()=>Ae,WM:()=>F,LE:()=>le,Zn:()=>pe});var T=E(9808),g=E(5e3),B=E(1086),j=E(2916),I=E(1406),O=E(2198),Y=E(4850);class ${}class G{}class F{constructor(ee){this.normalizedNames=new Map,this.lazyUpdate=null,ee?this.lazyInit="string"==typeof ee?()=>{this.headers=new Map,ee.split("\n").forEach(te=>{const ye=te.indexOf(":");if(ye>0){const Ce=te.slice(0,ye),Me=Ce.toLowerCase(),Ee=te.slice(ye+1).trim();this.maybeSetNormalizedName(Ce,Me),this.headers.has(Me)?this.headers.get(Me).push(Ee):this.headers.set(Me,[Ee])}})}:()=>{this.headers=new Map,Object.keys(ee).forEach(te=>{let ye=ee[te];const Ce=te.toLowerCase();"string"==typeof ye&&(ye=[ye]),ye.length>0&&(this.headers.set(Ce,ye),this.maybeSetNormalizedName(te,Ce))})}:this.headers=new Map}has(ee){return this.init(),this.headers.has(ee.toLowerCase())}get(ee){this.init();const te=this.headers.get(ee.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ee){return this.init(),this.headers.get(ee.toLowerCase())||null}append(ee,te){return this.clone({name:ee,value:te,op:"a"})}set(ee,te){return this.clone({name:ee,value:te,op:"s"})}delete(ee,te){return this.clone({name:ee,value:te,op:"d"})}maybeSetNormalizedName(ee,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,ee)}init(){this.lazyInit&&(this.lazyInit instanceof F?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ee=>this.applyUpdate(ee)),this.lazyUpdate=null))}copyFrom(ee){ee.init(),Array.from(ee.headers.keys()).forEach(te=>{this.headers.set(te,ee.headers.get(te)),this.normalizedNames.set(te,ee.normalizedNames.get(te))})}clone(ee){const te=new F;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof F?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([ee]),te}applyUpdate(ee){const te=ee.name.toLowerCase();switch(ee.op){case"a":case"s":let ye=ee.value;if("string"==typeof ye&&(ye=[ye]),0===ye.length)return;this.maybeSetNormalizedName(ee.name,te);const Ce=("a"===ee.op?this.headers.get(te):void 0)||[];Ce.push(...ye),this.headers.set(te,Ce);break;case"d":const Me=ee.value;if(Me){let Ee=this.headers.get(te);if(!Ee)return;Ee=Ee.filter(Ie=>-1===Me.indexOf(Ie)),0===Ee.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Ee)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(ee){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>ee(this.normalizedNames.get(te),this.headers.get(te)))}}class L{encodeKey(ee){return re(ee)}encodeValue(ee){return re(ee)}decodeKey(ee){return decodeURIComponent(ee)}decodeValue(ee){return decodeURIComponent(ee)}}const Q=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function re(_e){return encodeURIComponent(_e).replace(Q,(ee,te)=>{var ye;return null!==(ye=ie[te])&&void 0!==ye?ye:ee})}function ne(_e){return`${_e}`}class le{constructor(ee={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ee.encoder||new L,ee.fromString){if(ee.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function q(_e,ee){const te=new Map;return _e.length>0&&_e.replace(/^\?/,"").split("&").forEach(Ce=>{const Me=Ce.indexOf("="),[Ee,Ie]=-1==Me?[ee.decodeKey(Ce),""]:[ee.decodeKey(Ce.slice(0,Me)),ee.decodeValue(Ce.slice(Me+1))],pt=te.get(Ee)||[];pt.push(Ie),te.set(Ee,pt)}),te}(ee.fromString,this.encoder)}else ee.fromObject?(this.map=new Map,Object.keys(ee.fromObject).forEach(te=>{const ye=ee.fromObject[te];this.map.set(te,Array.isArray(ye)?ye:[ye])})):this.map=null}has(ee){return this.init(),this.map.has(ee)}get(ee){this.init();const te=this.map.get(ee);return te?te[0]:null}getAll(ee){return this.init(),this.map.get(ee)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ee,te){return this.clone({param:ee,value:te,op:"a"})}appendAll(ee){const te=[];return Object.keys(ee).forEach(ye=>{const Ce=ee[ye];Array.isArray(Ce)?Ce.forEach(Me=>{te.push({param:ye,value:Me,op:"a"})}):te.push({param:ye,value:Ce,op:"a"})}),this.clone(te)}set(ee,te){return this.clone({param:ee,value:te,op:"s"})}delete(ee,te){return this.clone({param:ee,value:te,op:"d"})}toString(){return this.init(),this.keys().map(ee=>{const te=this.encoder.encodeKey(ee);return this.map.get(ee).map(ye=>te+"="+this.encoder.encodeValue(ye)).join("&")}).filter(ee=>""!==ee).join("&")}clone(ee){const te=new le({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(ee),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ee=>this.map.set(ee,this.cloneFrom.map.get(ee))),this.updates.forEach(ee=>{switch(ee.op){case"a":case"s":const te=("a"===ee.op?this.map.get(ee.param):void 0)||[];te.push(ne(ee.value)),this.map.set(ee.param,te);break;case"d":if(void 0===ee.value){this.map.delete(ee.param);break}{let ye=this.map.get(ee.param)||[];const Ce=ye.indexOf(ne(ee.value));-1!==Ce&&ye.splice(Ce,1),ye.length>0?this.map.set(ee.param,ye):this.map.delete(ee.param)}}}),this.cloneFrom=this.updates=null)}}class Ae{constructor(){this.map=new Map}set(ee,te){return this.map.set(ee,te),this}get(ee){return this.map.has(ee)||this.map.set(ee,ee.defaultValue()),this.map.get(ee)}delete(ee){return this.map.delete(ee),this}has(ee){return this.map.has(ee)}keys(){return this.map.keys()}}function ft(_e){return"undefined"!=typeof ArrayBuffer&&_e instanceof ArrayBuffer}function yt(_e){return"undefined"!=typeof Blob&&_e instanceof Blob}function We(_e){return"undefined"!=typeof FormData&&_e instanceof FormData}class St{constructor(ee,te,ye,Ce){let Me;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ee.toUpperCase(),function Be(_e){switch(_e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ce?(this.body=void 0!==ye?ye:null,Me=Ce):Me=ye,Me&&(this.reportProgress=!!Me.reportProgress,this.withCredentials=!!Me.withCredentials,Me.responseType&&(this.responseType=Me.responseType),Me.headers&&(this.headers=Me.headers),Me.context&&(this.context=Me.context),Me.params&&(this.params=Me.params)),this.headers||(this.headers=new F),this.context||(this.context=new Ae),this.params){const Ee=this.params.toString();if(0===Ee.length)this.urlWithParams=te;else{const Ie=te.indexOf("?");this.urlWithParams=te+(-1===Ie?"?":IeXt.set(ct,ee.setHeaders[ct]),Zt)),ee.setParams&&(lt=Object.keys(ee.setParams).reduce((Xt,ct)=>Xt.set(ct,ee.setParams[ct]),lt)),new St(ye,Ce,Ee,{params:lt,headers:Zt,context:zn,reportProgress:pt,responseType:Me,withCredentials:Ie})}}var Ze=(()=>((Ze=Ze||{})[Ze.Sent=0]="Sent",Ze[Ze.UploadProgress=1]="UploadProgress",Ze[Ze.ResponseHeader=2]="ResponseHeader",Ze[Ze.DownloadProgress=3]="DownloadProgress",Ze[Ze.Response=4]="Response",Ze[Ze.User=5]="User",Ze))();class oe{constructor(ee,te=200,ye="OK"){this.headers=ee.headers||new F,this.status=void 0!==ee.status?ee.status:te,this.statusText=ee.statusText||ye,this.url=ee.url||null,this.ok=this.status>=200&&this.status<300}}class he extends oe{constructor(ee={}){super(ee),this.type=Ze.ResponseHeader}clone(ee={}){return new he({headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class pe extends oe{constructor(ee={}){super(ee),this.type=Ze.Response,this.body=void 0!==ee.body?ee.body:null}clone(ee={}){return new pe({body:void 0!==ee.body?ee.body:this.body,headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class ue extends oe{constructor(ee){super(ee,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ee.url||"(unknown url)"}`:`Http failure response for ${ee.url||"(unknown url)"}: ${ee.status} ${ee.statusText}`,this.error=ee.error||null}}function we(_e,ee){return{body:ee,headers:_e.headers,context:_e.context,observe:_e.observe,params:_e.params,reportProgress:_e.reportProgress,responseType:_e.responseType,withCredentials:_e.withCredentials}}let ce=(()=>{class _e{constructor(te){this.handler=te}request(te,ye,Ce={}){let Me;if(te instanceof St)Me=te;else{let pt,Zt;pt=Ce.headers instanceof F?Ce.headers:new F(Ce.headers),Ce.params&&(Zt=Ce.params instanceof le?Ce.params:new le({fromObject:Ce.params})),Me=new St(te,ye,void 0!==Ce.body?Ce.body:null,{headers:pt,context:Ce.context,params:Zt,reportProgress:Ce.reportProgress,responseType:Ce.responseType||"json",withCredentials:Ce.withCredentials})}const Ee=(0,B.of)(Me).pipe((0,I.b)(pt=>this.handler.handle(pt)));if(te instanceof St||"events"===Ce.observe)return Ee;const Ie=Ee.pipe((0,O.h)(pt=>pt instanceof pe));switch(Ce.observe||"body"){case"body":switch(Me.responseType){case"arraybuffer":return Ie.pipe((0,Y.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return pt.body}));case"blob":return Ie.pipe((0,Y.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof Blob))throw new Error("Response is not a Blob.");return pt.body}));case"text":return Ie.pipe((0,Y.U)(pt=>{if(null!==pt.body&&"string"!=typeof pt.body)throw new Error("Response is not a string.");return pt.body}));default:return Ie.pipe((0,Y.U)(pt=>pt.body))}case"response":return Ie;default:throw new Error(`Unreachable: unhandled observe type ${Ce.observe}}`)}}delete(te,ye={}){return this.request("DELETE",te,ye)}get(te,ye={}){return this.request("GET",te,ye)}head(te,ye={}){return this.request("HEAD",te,ye)}jsonp(te,ye){return this.request("JSONP",te,{params:(new le).append(ye,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ye={}){return this.request("OPTIONS",te,ye)}patch(te,ye,Ce={}){return this.request("PATCH",te,we(Ce,ye))}post(te,ye,Ce={}){return this.request("POST",te,we(Ce,ye))}put(te,ye,Ce={}){return this.request("PUT",te,we(Ce,ye))}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG($))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})();class nt{constructor(ee,te){this.next=ee,this.interceptor=te}handle(ee){return this.interceptor.intercept(ee,this.next)}}const Tt=new g.OlP("HTTP_INTERCEPTORS");let Bi=(()=>{class _e{intercept(te,ye){return ye.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const wn=/^\)\]\}',?\n/;let lr=(()=>{class _e{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j.y(ye=>{const Ce=this.xhrFactory.build();if(Ce.open(te.method,te.urlWithParams),te.withCredentials&&(Ce.withCredentials=!0),te.headers.forEach((ct,Pe)=>Ce.setRequestHeader(ct,Pe.join(","))),te.headers.has("Accept")||Ce.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const ct=te.detectContentTypeHeader();null!==ct&&Ce.setRequestHeader("Content-Type",ct)}if(te.responseType){const ct=te.responseType.toLowerCase();Ce.responseType="json"!==ct?ct:"text"}const Me=te.serializeBody();let Ee=null;const Ie=()=>{if(null!==Ee)return Ee;const ct=Ce.statusText||"OK",Pe=new F(Ce.getAllResponseHeaders()),rn=function si(_e){return"responseURL"in _e&&_e.responseURL?_e.responseURL:/^X-Request-URL:/m.test(_e.getAllResponseHeaders())?_e.getResponseHeader("X-Request-URL"):null}(Ce)||te.url;return Ee=new he({headers:Pe,status:Ce.status,statusText:ct,url:rn}),Ee},pt=()=>{let{headers:ct,status:Pe,statusText:rn,url:At}=Ie(),ri=null;204!==Pe&&(ri=void 0===Ce.response?Ce.responseText:Ce.response),0===Pe&&(Pe=ri?200:0);let vn=Pe>=200&&Pe<300;if("json"===te.responseType&&"string"==typeof ri){const an=ri;ri=ri.replace(wn,"");try{ri=""!==ri?JSON.parse(ri):null}catch(An){ri=an,vn&&(vn=!1,ri={error:An,text:ri})}}vn?(ye.next(new pe({body:ri,headers:ct,status:Pe,statusText:rn,url:At||void 0})),ye.complete()):ye.error(new ue({error:ri,headers:ct,status:Pe,statusText:rn,url:At||void 0}))},Zt=ct=>{const{url:Pe}=Ie(),rn=new ue({error:ct,status:Ce.status||0,statusText:Ce.statusText||"Unknown Error",url:Pe||void 0});ye.error(rn)};let lt=!1;const zn=ct=>{lt||(ye.next(Ie()),lt=!0);let Pe={type:Ze.DownloadProgress,loaded:ct.loaded};ct.lengthComputable&&(Pe.total=ct.total),"text"===te.responseType&&!!Ce.responseText&&(Pe.partialText=Ce.responseText),ye.next(Pe)},Xt=ct=>{let Pe={type:Ze.UploadProgress,loaded:ct.loaded};ct.lengthComputable&&(Pe.total=ct.total),ye.next(Pe)};return Ce.addEventListener("load",pt),Ce.addEventListener("error",Zt),Ce.addEventListener("timeout",Zt),Ce.addEventListener("abort",Zt),te.reportProgress&&(Ce.addEventListener("progress",zn),null!==Me&&Ce.upload&&Ce.upload.addEventListener("progress",Xt)),Ce.send(Me),ye.next({type:Ze.Sent}),()=>{Ce.removeEventListener("error",Zt),Ce.removeEventListener("abort",Zt),Ce.removeEventListener("load",pt),Ce.removeEventListener("timeout",Zt),te.reportProgress&&(Ce.removeEventListener("progress",zn),null!==Me&&Ce.upload&&Ce.upload.removeEventListener("progress",Xt)),Ce.readyState!==Ce.DONE&&Ce.abort()}})}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(T.JF))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const Qa=new g.OlP("XSRF_COOKIE_NAME"),Ya=new g.OlP("XSRF_HEADER_NAME");class Ja{}let Sr=(()=>{class _e{constructor(te,ye,Ce){this.doc=te,this.platform=ye,this.cookieName=Ce,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(T.K0),g.LFG(g.Lbi),g.LFG(Qa))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),cr=(()=>{class _e{constructor(te,ye){this.tokenService=te,this.headerName=ye}intercept(te,ye){const Ce=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||Ce.startsWith("http://")||Ce.startsWith("https://"))return ye.handle(te);const Me=this.tokenService.getToken();return null!==Me&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,Me)})),ye.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(Ja),g.LFG(Ya))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Mr=(()=>{class _e{constructor(te,ye){this.backend=te,this.injector=ye,this.chain=null}handle(te){if(null===this.chain){const ye=this.injector.get(Tt,[]);this.chain=ye.reduceRight((Ce,Me)=>new nt(Ce,Me),this.backend)}return this.chain.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(G),g.LFG(g.zs3))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Ys=(()=>{class _e{static disable(){return{ngModule:_e,providers:[{provide:cr,useClass:Bi}]}}static withOptions(te={}){return{ngModule:_e,providers:[te.cookieName?{provide:Qa,useValue:te.cookieName}:[],te.headerName?{provide:Ya,useValue:te.headerName}:[]]}}}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=g.oAB({type:_e}),_e.\u0275inj=g.cJS({providers:[cr,{provide:Tt,useExisting:cr,multi:!0},{provide:Ja,useClass:Sr},{provide:Qa,useValue:"XSRF-TOKEN"},{provide:Ya,useValue:"X-XSRF-TOKEN"}]}),_e})(),mi=(()=>{class _e{}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=g.oAB({type:_e}),_e.\u0275inj=g.cJS({providers:[ce,{provide:$,useClass:Mr},lr,{provide:G,useExisting:lr}],imports:[[Ys.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),_e})()},5e3:(z,W,E)=>{"use strict";E.d(W,{deG:()=>_C,tb:()=>Z_,AFp:()=>Op,ip1:()=>Dd,CZH:()=>La,hGG:()=>hf,z2F:()=>Sl,sBO:()=>_A,Sil:()=>jp,_Vd:()=>cl,EJc:()=>tb,SBq:()=>Ui,qLn:()=>gc,vpe:()=>rr,tBr:()=>cc,XFs:()=>Ye,OlP:()=>Ut,zs3:()=>kn,ZZ4:()=>Hl,aQg:()=>Pl,soG:()=>Pd,YKP:()=>w_,h0i:()=>Va,PXZ:()=>lA,R0b:()=>en,FiY:()=>rs,Lbi:()=>Lp,g9A:()=>K_,n_E:()=>Cd,Qsj:()=>sE,FYo:()=>fp,JOm:()=>fr,q3G:()=>qt,tp0:()=>xo,Rgc:()=>pl,dDg:()=>qp,GfV:()=>b_,s_b:()=>gl,ifc:()=>Me,eFA:()=>Yp,G48:()=>gA,Gpc:()=>L,f3M:()=>Gx,_c5:()=>_b,VLi:()=>_E,c2e:()=>eb,zSh:()=>vh,wAp:()=>Ne,vHH:()=>re,EiD:()=>Du,mCW:()=>Mo,qzn:()=>So,JVY:()=>o0,pB0:()=>u0,eBb:()=>c0,L6k:()=>l0,LAX:()=>d0,cg1:()=>td,kL8:()=>tp,yhl:()=>IC,dqk:()=>lt,sIi:()=>Zo,CqO:()=>hw,QGY:()=>jh,F4k:()=>Dm,RDi:()=>ao,AaK:()=>$,z3N:()=>Or,qOj:()=>Hh,TTD:()=>et,_Bn:()=>g_,xp6:()=>jo,uIk:()=>Oc,ekj:()=>Um,Suo:()=>I_,Xpm:()=>Ks,lG2:()=>Ot,Yz7:()=>Vt,cJS:()=>wn,oAB:()=>ia,Yjl:()=>Ft,Y36:()=>Wc,_UZ:()=>Em,GkF:()=>dw,BQk:()=>Hm,ynx:()=>Cr,qZA:()=>Lh,TgZ:()=>Qc,EpF:()=>uw,n5z:()=>ns,Ikx:()=>Xh,LFG:()=>ui,$8M:()=>tc,$Z:()=>Oh,NdJ:()=>Pm,CRH:()=>V_,kcU:()=>qf,O4$:()=>co,oxw:()=>gw,ALo:()=>x_,lcZ:()=>vp,xi3:()=>T_,Dn7:()=>dl,Hsn:()=>Nh,F$t:()=>mw,Q6J:()=>Fh,s9C:()=>Im,VKq:()=>v_,iGM:()=>R_,MAs:()=>Wy,CHM:()=>Nf,oJD:()=>gg,LSH:()=>Ho,Udp:()=>Gh,WFA:()=>Rm,d8E:()=>ep,YNc:()=>Nc,_uU:()=>Vw,Oqu:()=>Ym,hij:()=>$h,AsE:()=>Rs,Gf:()=>k_});var T=E(8929),g=E(2654),B=E(2916),j=E(6787),I=E(2474);function O(h){for(let p in h)if(h[p]===O)return p;throw Error("Could not find renamed property on target object.")}function Y(h,p){for(const m in p)p.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=p[m])}function $(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map($).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const p=h.toString();if(null==p)return""+p;const m=p.indexOf("\n");return-1===m?p:p.substring(0,m)}function G(h,p){return null==h||""===h?null===p?"":p:null==p||""===p?h:h+" "+p}const F=O({__forward_ref__:O});function L(h){return h.__forward_ref__=L,h.toString=function(){return $(this())},h}function q(h){return Q(h)?h():h}function Q(h){return"function"==typeof h&&h.hasOwnProperty(F)&&h.__forward_ref__===L}class re extends Error{constructor(p,m){super(function ne(h,p){return`NG0${Math.abs(h)}${p?": "+p:""}`}(p,m)),this.code=p}}function le(h){return"string"==typeof h?h:null==h?"":String(h)}function xe(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():le(h)}function yt(h,p){const m=p?` in ${p}`:"";throw new re(-201,`No provider for ${xe(h)} found${m}`)}function ze(h,p){null==h&&function tt(h,p,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${p} <=Actual]`))}(p,h,null,"!=")}function Vt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function wn(h){return{providers:h.providers||[],imports:h.imports||[]}}function si(h){return lr(h,Sr)||lr(h,Mr)}function lr(h,p){return h.hasOwnProperty(p)?h[p]:null}function Ja(h){return h&&(h.hasOwnProperty(cr)||h.hasOwnProperty($d))?h[cr]:null}const Sr=O({\u0275prov:O}),cr=O({\u0275inj:O}),Mr=O({ngInjectableDef:O}),$d=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 Ys;function Oi(h){const p=Ys;return Ys=h,p}function Js(h,p,m){const _=si(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Ye.Optional?null:void 0!==p?p:void yt($(h),"Injector")}function ee(h){return{toString:h}.toString()}var te=(()=>((te=te||{})[te.OnPush=0]="OnPush",te[te.Default=1]="Default",te))(),Me=(()=>{return(h=Me||(Me={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",Me;var h})();const Ee="undefined"!=typeof globalThis&&globalThis,Ie="undefined"!=typeof window&&window,pt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,lt=Ee||"undefined"!=typeof global&&global||Ie||pt,ct={},Pe=[],rn=O({\u0275cmp:O}),At=O({\u0275dir:O}),ri=O({\u0275pipe:O}),vn=O({\u0275mod:O}),an=O({\u0275fac:O}),An=O({__NG_ELEMENT_ID__:O});let If=0;function Ks(h){return ee(()=>{const m={},_={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:m,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===te.OnPush,directiveDefs:null,pipeDefs:null,selectors:h.selectors||Pe,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||Me.Emulated,id:"c",styles:h.styles||Pe,_:null,setInput:null,schemas:h.schemas||null,tView:null},C=h.directives,w=h.features,v=h.pipes;return _.id+=If++,_.inputs=y(h.inputs,m),_.outputs=y(h.outputs),w&&w.forEach(x=>x(_)),_.directiveDefs=C?()=>("function"==typeof C?C():C).map(Ka):null,_.pipeDefs=v?()=>("function"==typeof v?v():v).map(xn):null,_})}function Ka(h){return oi(h)||function je(h){return h[At]||null}(h)}function xn(h){return function Tn(h){return h[ri]||null}(h)}const jl={};function ia(h){return ee(()=>{const p={type:h.type,bootstrap:h.bootstrap||Pe,declarations:h.declarations||Pe,imports:h.imports||Pe,exports:h.exports||Pe,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null};return null!=h.id&&(jl[h.id]=h.type),p})}function y(h,p){if(null==h)return ct;const m={};for(const _ in h)if(h.hasOwnProperty(_)){let C=h[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,p&&(p[C]=w)}return m}const Ot=Ks;function Ft(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,onDestroy:h.type.prototype.ngOnDestroy||null}}function oi(h){return h[rn]||null}function di(h,p){const m=h[vn]||null;if(!m&&!0===p)throw new Error(`Type ${$(h)} does not have '\u0275mod' property.`);return m}function Li(h){return Array.isArray(h)&&"object"==typeof h[1]}function Qi(h){return Array.isArray(h)&&!0===h[1]}function Gl(h){return 0!=(8&h.flags)}function Ul(h){return 2==(2&h.flags)}function Xa(h){return 1==(1&h.flags)}function sn(h){return null!==h.template}function Yd(h){return 0!=(512&h[2])}function cn(h,p){return h.hasOwnProperty(an)?h[an]:null}class Jd{constructor(p,m,_){this.previousValue=p,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function et(){return io}function io(h){return h.type.prototype.ngOnChanges&&(h.setInput=Kd),no}function no(){const h=ro(this),p=null==h?void 0:h.current;if(p){const m=h.previous;if(m===ct)h.previous=p;else for(let _ in p)m[_]=p[_];h.current=null,this.ngOnChanges(p)}}function Kd(h,p,m,_){const C=ro(h)||function Zd(h,p){return h[Wl]=p}(h,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,x=this.declaredInputs[m],S=v[x];w[x]=new Jd(S&&S.currentValue,p,v===ct),h[_]=p}et.ngInherit=!0;const Wl="__ngSimpleChanges__";function ro(h){return h[Wl]||null}let ts;function ao(h){ts=h}function Yl(){return void 0!==ts?ts:"undefined"!=typeof document?document:void 0}function jt(h){return!!h.listen}const H={createRenderer:(h,p)=>Yl()};function M(h){for(;Array.isArray(h);)h=h[0];return h}function de(h,p){return M(p[h])}function me(h,p){return M(p[h.index])}function Mt(h,p){return h.data[p]}function xt(h,p){return h[p]}function ut(h,p){const m=p[h];return Li(m)?m:m[0]}function gt(h){return 4==(4&h[2])}function mt(h){return 128==(128&h[2])}function Je(h,p){return null==p?null:h[p]}function Yi(h){h[18]=0}function wi(h,p){h[5]+=p;let m=h,_=h[3];for(;null!==_&&(1===p&&1===m[5]||-1===p&&0===m[5]);)_[5]+=p,m=_,_=_[3]}const Ge={lFrame:Un(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function oo(){return Ge.bindingsEnabled}function be(){return Ge.lFrame.lView}function _t(){return Ge.lFrame.tView}function Nf(h){return Ge.lFrame.contextLView=h,h[8]}function Gt(){let h=Jl();for(;null!==h&&64===h.type;)h=h.parent;return h}function Jl(){return Ge.lFrame.currentTNode}function un(h,p){const m=Ge.lFrame;m.currentTNode=h,m.isParent=p}function tu(){return Ge.lFrame.isParent}function iu(){Ge.lFrame.isParent=!1}function hn(){return Ge.isInCheckNoChangesMode}function nu(h){Ge.isInCheckNoChangesMode=h}function ti(){const h=Ge.lFrame;let p=h.bindingRootIndex;return-1===p&&(p=h.bindingRootIndex=h.tView.bindingStartIndex),p}function lo(){return Ge.lFrame.bindingIndex++}function Vr(h){const p=Ge.lFrame,m=p.bindingIndex;return p.bindingIndex=p.bindingIndex+h,m}function aC(h,p){const m=Ge.lFrame;m.bindingIndex=m.bindingRootIndex=h,Gf(p)}function Gf(h){Ge.lFrame.currentDirectiveIndex=h}function ru(h){const p=Ge.lFrame.currentDirectiveIndex;return-1===p?null:h[p]}function la(){return Ge.lFrame.currentQueryIndex}function Uf(h){Ge.lFrame.currentQueryIndex=h}function Ax(h){const p=h[1];return 2===p.type?p.declTNode:1===p.type?h[6]:null}function sC(h,p,m){if(m&Ye.SkipSelf){let C=p,w=h;for(;!(C=C.parent,null!==C||m&Ye.Host||(C=Ax(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;p=C,h=w}const _=Ge.lFrame=oC();return _.currentTNode=p,_.lView=h,!0}function au(h){const p=oC(),m=h[1];Ge.lFrame=p,p.currentTNode=m.firstChild,p.lView=h,p.tView=m,p.contextLView=h,p.bindingIndex=m.bindingStartIndex,p.inI18n=!1}function oC(){const h=Ge.lFrame,p=null===h?null:h.child;return null===p?Un(h):p}function Un(h){const p={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:h,child:null,inI18n:!1};return null!==h&&(h.child=p),p}function ca(){const h=Ge.lFrame;return Ge.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const lC=ca;function su(){const h=ca();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function ji(){return Ge.lFrame.selectedIndex}function da(h){Ge.lFrame.selectedIndex=h}function Nt(){const h=Ge.lFrame;return Mt(h.tView,h.selectedIndex)}function co(){Ge.lFrame.currentNamespace="svg"}function qf(){!function lu(){Ge.lFrame.currentNamespace=null}()}function cu(h,p){for(let m=p.directiveStart,_=p.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:x,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),x&&((h.contentHooks||(h.contentHooks=[])).push(m,x),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,x)),S&&(h.viewHooks||(h.viewHooks=[])).push(-m,S),P&&((h.viewHooks||(h.viewHooks=[])).push(m,P),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(m,P)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(m,R)}}function du(h,p,m){dC(h,p,3,m)}function uu(h,p,m,_){(3&h[2])===m&&dC(h,p,m,_)}function Kl(h,p){let m=h[2];(3&m)===p&&(m&=2047,m+=1,h[2]=m)}function dC(h,p,m,_){const w=null!=_?_:-1,v=p.length-1;let x=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else p[S]<0&&(h[18]+=65536),(x>11>16&&(3&h[2])===p){h[2]+=2048;try{w.call(x)}finally{}}}else try{w.call(x)}finally{}}class zt{constructor(p,m,_){this.factory=p,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function Zl(h,p,m){const _=jt(h);let C=0;for(;Cp){v=w-1;break}}}for(;w>16}(h),_=p;for(;m>0;)_=_[15],m--;return _}let fu=!0;function gu(h){const p=fu;return fu=h,p}let Jf=0;function go(h,p){const m=ec(h,p);if(-1!==m)return m;const _=p[1];_.firstCreatePass&&(h.injectorIndex=p.length,ur(_.data,h),ur(p,null),ur(_.blueprint,null));const C=mo(h,p),w=h.injectorIndex;if(Qf(C)){const v=Br(C),x=fo(C,p),S=x[1].data;for(let P=0;P<8;P++)p[w+P]=x[v+P]|S[v+P]}return p[w+8]=C,w}function ur(h,p){h.push(0,0,0,0,0,0,0,0,p)}function ec(h,p){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===p[h.injectorIndex+8]?-1:h.injectorIndex}function mo(h,p){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=p;for(;null!==C;){const w=C[1],v=w.type;if(_=2===v?w.declTNode:1===v?C[6]:null,null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function _o(h,p,m){!function hC(h,p,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(An)&&(_=m[An]),null==_&&(_=m[An]=Jf++);const C=255&_;p.data[h+(C>>5)]|=1<=0?255&p:fC:p}(m);if("function"==typeof w){if(!sC(p,h,_))return _&Ye.Host?Kf(C,m,_):mu(p,m,_,C);try{const v=w(_);if(null!=v||_&Ye.Optional)return v;yt(m)}finally{lC()}}else if("number"==typeof w){let v=null,x=ec(h,p),S=-1,P=_&Ye.Host?p[16][6]:null;for((-1===x||_&Ye.SkipSelf)&&(S=-1===x?mo(h,p):p[x+8],-1!==S&&eg(_,!1)?(v=p[1],x=Br(S),p=fo(S,p)):x=-1);-1!==x;){const R=p[1];if(gC(w,x,R.data)){const N=Wn(x,p,m,v,_,P);if(N!==Xf)return N}S=p[x+8],-1!==S&&eg(_,p[1].data[x+8]===P)&&gC(w,x,p)?(v=R,x=Br(S),p=fo(S,p)):x=-1}}}return mu(p,m,_,C)}const Xf={};function fC(){return new is(Gt(),be())}function Wn(h,p,m,_,C,w){const v=p[1],x=v.data[h+8],R=_u(x,v,m,null==_?Ul(x)&&fu:_!=v&&0!=(3&x.type),C&Ye.Host&&w===x);return null!==R?bo(p,v,R,x):Xf}function _u(h,p,m,_,C){const w=h.providerIndexes,v=p.data,x=1048575&w,S=h.directiveStart,R=w>>20,J=C?x+R:h.directiveEnd;for(let ae=_?x:x+R;ae=S&&fe.type===m)return ae}if(C){const ae=v[S];if(ae&&sn(ae)&&ae.type===m)return S}return null}function bo(h,p,m,_){let C=h[m];const w=p.data;if(function qn(h){return h instanceof zt}(C)){const v=C;v.resolving&&function Ae(h,p){const m=p?`. Dependency path: ${p.join(" > ")} > ${h}`:"";throw new re(-200,`Circular dependency in DI detected for ${h}${m}`)}(xe(w[m]));const x=gu(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Oi(v.injectImpl):null;sC(h,_,Ye.Default);try{C=h[m]=v.factory(void 0,w,h,_),p.firstCreatePass&&m>=_.directiveStart&&function cC(h,p,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=p.type.prototype;if(_){const v=io(p);(m.preOrderHooks||(m.preOrderHooks=[])).push(h,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-h,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(h,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,w))}(m,w[m],p)}finally{null!==S&&Oi(S),gu(x),v.resolving=!1,lC()}}return C}function gC(h,p,m){return!!(m[p+(h>>5)]&1<{const p=h.prototype.constructor,m=p[an]||tg(p),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[an]||tg(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function tg(h){return Q(h)?()=>{const p=tg(q(h));return p&&p()}:cn(h)}function tc(h){return function pC(h,p){if("class"===p)return h.classes;if("style"===p)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(pu(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===p)return m[C+1];C+=2}}}return null}(Gt(),h)}const ai="__parameters__";function yo(h,p,m){return ee(()=>{const _=function nc(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(p);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return x.annotation=v,x;function x(S,P,R){const N=S.hasOwnProperty(ai)?S[ai]:Object.defineProperty(S,ai,{value:[]})[ai];for(;N.length<=R;)N.push(null);return(N[R]=N[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class Ut{constructor(p,m){this._desc=p,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Vt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}toString(){return`InjectionToken ${this._desc}`}}const _C=new Ut("AnalyzeForEntryComponents");function Mn(h,p){void 0===p&&(p=h);for(let m=0;mArray.isArray(m)?hr(m,p):p(m))}function ag(h,p,m){p>=h.length?h.push(m):h.splice(p,0,m)}function rc(h,p){return p>=h.length-1?h.pop():h.splice(p,1)[0]}function ac(h,p){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function kx(h,p,m,_){let C=h.length;if(C==p)h.push(m,_);else if(1===C)h.push(_,h[0]),h[0]=m;else{for(C--,h.push(h[C-1],h[C]);C>p;)h[C]=h[C-2],C--;h[p]=m,h[p+1]=_}}(h,_,p,m)),_}function Cu(h,p){const m=Ao(h,p);if(m>=0)return h[1|m]}function Ao(h,p){return function yC(h,p,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<p?C=w:_=w+1}return~(C<({token:h})),-1),rs=lc(yo("Optional"),8),xo=lc(yo("SkipSelf"),4);let Au,xu;function Eo(h){var p;return(null===(p=function ug(){if(void 0===Au&&(Au=null,lt.trustedTypes))try{Au=lt.trustedTypes.createPolicy("angular",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch(h){}return Au}())||void 0===p?void 0:p.createHTML(h))||h}function PC(h){var p;return(null===(p=function hg(){if(void 0===xu&&(xu=null,lt.trustedTypes))try{xu=lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch(h){}return xu}())||void 0===p?void 0:p.createHTML(h))||h}class as{constructor(p){this.changingThisBreaksApplicationSecurity=p}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class t0 extends as{getTypeName(){return"HTML"}}class n0 extends as{getTypeName(){return"Style"}}class r0 extends as{getTypeName(){return"Script"}}class a0 extends as{getTypeName(){return"URL"}}class s0 extends as{getTypeName(){return"ResourceURL"}}function Or(h){return h instanceof as?h.changingThisBreaksApplicationSecurity:h}function So(h,p){const m=IC(h);if(null!=m&&m!==p){if("ResourceURL"===m&&"URL"===p)return!0;throw new Error(`Required a safe ${p}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===p}function IC(h){return h instanceof as&&h.getTypeName()||null}function o0(h){return new t0(h)}function l0(h){return new n0(h)}function c0(h){return new r0(h)}function d0(h){return new a0(h)}function u0(h){return new s0(h)}class h0{constructor(p){this.inertDocumentHelper=p}getInertBodyElement(p){p=""+p;try{const m=(new window.DOMParser).parseFromString(Eo(p),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(p):(m.removeChild(m.firstChild),m)}catch(m){return null}}}class p0{constructor(p){if(this.defaultDoc=p,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(p){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Eo(p),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Eo(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(p){const m=p.attributes;for(let C=m.length-1;0Mo(p.trim())).join(", ")),this.buf.push(" ",v,'="',Hu(S),'"')}var h;return this.buf.push(">"),!0}endElement(p){const m=p.nodeName.toLowerCase();Eu.hasOwnProperty(m)&&!ga.hasOwnProperty(m)&&(this.buf.push(""))}chars(p){this.buf.push(Hu(p))}checkClobberedElement(p,m){if(m&&(p.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${p.outerHTML}`);return m}}const hc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y0=/([^\#-~ |!])/g;function Hu(h){return h.replace(/&/g,"&").replace(hc,function(p){return"&#"+(1024*(p.charCodeAt(0)-55296)+(p.charCodeAt(1)-56320)+65536)+";"}).replace(y0,function(p){return"&#"+p.charCodeAt(0)+";"}).replace(//g,">")}let ma;function Du(h,p){let m=null;try{ma=ma||function VC(h){const p=new p0(h);return function f0(){try{return!!(new window.DOMParser).parseFromString(Eo(""),"text/html")}catch(h){return!1}}()?new h0(p):p}(h);let _=p?String(p):"";m=ma.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=ma.getInertBodyElement(_)}while(_!==w);return Eo((new FC).sanitizeChildren(Pu(m)||m))}finally{if(m){const _=Pu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Pu(h){return"content"in h&&function Ru(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var qt=(()=>((qt=qt||{})[qt.NONE=0]="NONE",qt[qt.HTML=1]="HTML",qt[qt.STYLE=2]="STYLE",qt[qt.SCRIPT=3]="SCRIPT",qt[qt.URL=4]="URL",qt[qt.RESOURCE_URL=5]="RESOURCE_URL",qt))();function gg(h){const p=Do();return p?PC(p.sanitize(qt.HTML,h)||""):So(h,"HTML")?PC(Or(h)):Du(Yl(),le(h))}function Ho(h){const p=Do();return p?p.sanitize(qt.URL,h)||"":So(h,"URL")?Or(h):Mo(le(h))}function Do(){const h=be();return h&&h[12]}const bg="__ngContext__";function Ai(h,p){h[bg]=p}function ku(h){const p=function Po(h){return h[bg]||null}(h);return p?Array.isArray(p)?p:p.lView:null}function Vu(h){return h.ngOriginalError}function $C(h,...p){h.error(...p)}class gc{constructor(){this._console=console}handleError(p){const m=this._findOriginalError(p),_=function M0(h){return h&&h.ngErrorLogger||$C}(p);_(this._console,"ERROR",p),m&&_(this._console,"ORIGINAL ERROR",m)}_findOriginalError(p){let m=p&&Vu(p);for(;m&&Vu(m);)m=Vu(m);return m||null}}const Ou=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(lt))();function Hn(h){return h instanceof Function?h():h}var fr=(()=>((fr=fr||{})[fr.Important=1]="Important",fr[fr.DashCase=2]="DashCase",fr))();function Ve(h,p){return undefined(h,p)}function wt(h){const p=h[3];return Qi(p)?p[3]:p}function Ag(h){return ZC(h[13])}function Cc(h){return ZC(h[4])}function ZC(h){for(;null!==h&&!Qi(h);)h=h[4];return h}function $n(h,p,m,_,C){if(null!=_){let w,v=!1;Qi(_)?w=_:Li(_)&&(v=!0,_=_[0]);const x=M(_);0===h&&null!==m?null==C?Wu(p,m,x):ba(p,m,x,C||null,!0):1===h&&null!==m?ba(p,m,x,C||null,!0):2===h?function zr(h,p,m){const _=Vo(h,p);_&&function R0(h,p,m,_){jt(h)?h.removeChild(p,m,_):p.removeChild(m)}(h,_,p,m)}(p,x,v):3===h&&p.destroyNode(x),null!=w&&function Mg(h,p,m,_,C){const w=m[7];w!==M(m)&&$n(p,h,_,w,C);for(let x=10;x0&&(h[m-1][4]=_[4]);const w=rc(h,10+p);!function Nr(h,p){Gr(h,p,p[11],2,null,null),p[0]=null,p[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function Gu(h,p){if(!(256&p[2])){const m=p[11];jt(m)&&m.destroyNode&&Gr(h,p,m,3,null,null),function ju(h){let p=h[13];if(!p)return Tg(h[1],h);for(;p;){let m=null;if(Li(p))m=p[13];else{const _=p[10];_&&(m=_)}if(!m){for(;p&&!p[4]&&p!==h;)Li(p)&&Tg(p[1],p),p=p[3];null===p&&(p=h),Li(p)&&Tg(p[1],p),m=p&&p[4]}p=m}}(p)}}function Tg(h,p){if(!(256&p[2])){p[2]&=-129,p[2]|=256,function _a(h,p){let m;if(null!=h&&null!=(m=h.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)_[w]();p[7]=null}}(h,p),1===p[1].type&&jt(p[11])&&p[11].destroy();const m=p[17];if(null!==m&&Qi(p[3])){m!==p[3]&&zu(m,p);const _=p[19];null!==_&&_.detachView(h)}}}function Uu(h,p,m){return function qu(h,p,m){let _=p;for(;null!==_&&40&_.type;)_=(p=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===Me.None||C===Me.Emulated)return null}return me(_,m)}(h,p.parent,m)}function ba(h,p,m,_,C){jt(h)?h.insertBefore(p,m,_,C):p.insertBefore(m,_,C)}function Wu(h,p,m){jt(h)?h.appendChild(p,m):p.appendChild(m)}function $u(h,p,m,_,C){null!==_?ba(h,p,m,_,C):Wu(h,p,m)}function Vo(h,p){return jt(h)?h.parentNode(p):p.parentNode}function Eg(h,p,m){return Sg(h,p,m)}let Sg=function Yu(h,p,m){return 40&h.type?me(h,m):null};function Ca(h,p,m,_){const C=Uu(h,_,p),w=p[11],x=Eg(_.parent||p[6],_,p);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[N+1].toLowerCase();const ae=8&_?J:null;if(ae&&-1!==Dn(ae,P,0)||2&_&&P!==J){if(Ni(_))return!1;v=!0}}}}else{if(!v&&!Ni(_)&&!Ni(S))return!1;if(v&&Ni(S))continue;v=!1,_=S|1&_}}return Ni(_)||v}function Ni(h){return 0==(1&h)}function ry(h,p,m,_){if(null===p)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+x+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!Ni(v)&&(p+=Zu(w,C),C=""),_=v,w=w||!Ni(_);m++}return""!==C&&(p+=Zu(w,C)),p}const Ke={};function jo(h){No(_t(),be(),ji()+h,hn())}function No(h,p,m,_){if(!_)if(3==(3&p[2])){const w=h.preOrderCheckHooks;null!==w&&du(p,w,m)}else{const w=h.preOrderHooks;null!==w&&uu(p,w,0,m)}da(m)}function zo(h,p){return h<<17|p<<2}function Pn(h){return h>>17&32767}function eh(h){return 2|h}function gr(h){return(131068&h)>>2}function th(h,p){return-131069&h|p<<2}function ih(h){return 1|h}function jg(h,p){const m=h.contentQueries;if(null!==m)for(let _=0;_20&&No(h,p,20,hn()),m(_,C)}finally{da(w)}}function Ng(h,p,m){if(Gl(p)){const C=p.directiveEnd;for(let w=p.directiveStart;w0;){const m=h[--p];if("number"==typeof m&&m<0)return m}return 0})(x)!=S&&x.push(S),x.push(_,C,v)}}function Yg(h,p){null!==h.hostBindings&&h.hostBindings(1,p)}function Jg(h,p){p.flags|=2,(h.components||(h.components=[])).push(p.index)}function xy(h,p,m){if(m){if(p.exportAs)for(let _=0;_0&&wh(m)}}function wh(h){for(let _=Ag(h);null!==_;_=Cc(_))for(let C=10;C<_.length;C++){const w=_[C];if(1024&w[2]){const v=w[1];gs(v,w,v.template,w[8])}else w[5]>0&&wh(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&wh(C)}}function Ey(h,p){const m=ut(p,h),_=m[1];(function Sy(h,p){for(let m=p.length;mPromise.resolve(null))();function tm(h){return h[7]||(h[7]=[])}function im(h){return h.cleanup||(h.cleanup=[])}function gn(h,p,m){return(null===h||sn(h))&&(m=function V(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[p.index])),m[11]}function Qo(h,p){const m=h[9],_=m?m.get(gc,null):null;_&&_.handleError(p)}function nm(h,p,m,_,C){for(let w=0;wthis.processProvider(x,p,m)),hr([p],x=>this.processInjectorType(x,[],w)),this.records.set(rm,ws(void 0,this));const v=this.records.get(vh);this.scope=null!=v?v.value:null,this.source=C||("object"==typeof p?null:$(p))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(p=>p.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(p,m=sc,_=Ye.Default){this.assertNotDestroyed();const C=AC(this),w=Oi(void 0);try{if(!(_&Ye.SkipSelf)){let x=this.records.get(p);if(void 0===x){const S=function eT(h){return"function"==typeof h||"object"==typeof h&&h instanceof Ut}(p)&&si(p);x=S&&this.injectableDefInScope(S)?ws(Rc(p),Jo):null,this.records.set(p,x)}if(null!=x)return this.hydrate(p,x)}return(_&Ye.Self?am():this.parent).get(p,m=_&Ye.Optional&&m===sc?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[wu]=v[wu]||[]).unshift($(p)),C)throw v;return function TC(h,p,m,_){const C=h[wu];throw p[vC]&&C.unshift(p[vC]),h.message=function EC(h,p,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.substr(2):h;let C=$(p);if(Array.isArray(p))C=p.map($).join(" -> ");else if("object"==typeof p){let w=[];for(let v in p)if(p.hasOwnProperty(v)){let x=p[v];w.push(v+":"+("string"==typeof x?JSON.stringify(x):$(x)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(Lx,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[wu]=null,h}(v,p,"R3InjectorError",this.source)}throw v}finally{Oi(w),AC(C)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(p=>this.get(p))}toString(){const p=[];return this.records.forEach((_,C)=>p.push($(C))),`R3Injector[${p.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processInjectorType(p,m,_){if(!(p=q(p)))return!1;let C=Ja(p);const w=null==C&&p.ngModule||void 0,v=void 0===w?p:w,x=-1!==_.indexOf(v);if(void 0!==w&&(C=Ja(w)),null==C)return!1;if(null!=C.imports&&!x){let R;_.push(v);try{hr(C.imports,N=>{this.processInjectorType(N,m,_)&&(void 0===R&&(R=[]),R.push(N))})}finally{}if(void 0!==R)for(let N=0;Nthis.processProvider(fe,J,ae||Pe))}}this.injectorDefTypes.add(v);const S=cn(v)||(()=>new v);this.records.set(v,ws(S,Jo));const P=C.providers;if(null!=P&&!x){const R=p;hr(P,N=>this.processProvider(N,R,P))}return void 0!==w&&void 0!==p.providers}processProvider(p,m,_){let C=vs(p=q(p))?p:q(p&&p.provide);const w=function lm(h,p,m){return Th(h)?ws(void 0,h.useValue):ws(cm(h),Jo)}(p);if(vs(p)||!0!==p.multi)this.records.get(C);else{let v=this.records.get(C);v||(v=ws(void 0,Jo,!0),v.factory=()=>cg(v.multi),this.records.set(C,v)),C=p,v.multi.push(p)}this.records.set(C,w)}hydrate(p,m){return m.value===Jo&&(m.value=Ko,m.value=m.factory()),"object"==typeof m.value&&m.value&&function X0(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this.onDestroy.add(m.value),m.value}injectableDefInScope(p){if(!p.providedIn)return!1;const m=q(p.providedIn);return"string"==typeof m?"any"===m||m===this.scope:this.injectorDefTypes.has(m)}}function Rc(h){const p=si(h),m=null!==p?p.factory:cn(h);if(null!==m)return m;if(h instanceof Ut)throw new re(204,!1);if(h instanceof Function)return function om(h){const p=h.length;if(p>0)throw ac(p,"?"),new re(204,!1);const m=function Qa(h){const p=h&&(h[Sr]||h[Mr]);if(p){const m=function Ya(h){if(h.hasOwnProperty("name"))return h.name;const p=(""+h).match(/^function\s*([^\s(]+)/);return null===p?"":p[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" 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 "${m}" class.`),p}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new re(204,!1)}function cm(h,p,m){let _;if(vs(h)){const C=q(h);return cn(C)||Rc(C)}if(Th(h))_=()=>q(h.useValue);else if(function Yn(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...cg(h.deps||[]));else if(function Ta(h){return!(!h||!h.useExisting)}(h))_=()=>ui(q(h.useExisting));else{const C=q(h&&(h.useClass||h.provide));if(!function Z0(h){return!!h.deps}(h))return cn(C)||Rc(C);_=()=>new C(...cg(h.deps))}return _}function ws(h,p,m=!1){return{factory:h,value:p,multi:m?[]:void 0}}function Th(h){return null!==h&&"object"==typeof h&&Nx in h}function vs(h){return"function"==typeof h}let kn=(()=>{class h{static create(m,_){var C;if(Array.isArray(m))return Ah({name:""},_,m,"");{const w=null!==(C=m.name)&&void 0!==C?C:"";return Ah({name:w},m.parent,m.providers,w)}}}return h.THROW_IF_NOT_FOUND=sc,h.NULL=new Cs,h.\u0275prov=Vt({token:h,providedIn:"any",factory:()=>ui(rm)}),h.__NG_ELEMENT_ID__=-1,h})();function Ny(h,p){cu(ku(h)[1],Gt())}function Hh(h){let p=function fm(h){return Object.getPrototypeOf(h.prototype).constructor}(h.type),m=!0;const _=[h];for(;p;){let C;if(sn(h))C=p.\u0275cmp||p.\u0275dir;else{if(p.\u0275cmp)throw new re(903,"");C=p.\u0275dir}if(C){if(m){_.push(C);const v=h;v.inputs=Ic(h.inputs),v.declaredInputs=Ic(h.declaredInputs),v.outputs=Ic(h.outputs);const x=C.hostBindings;x&&zy(h,x);const S=C.viewQuery,P=C.contentQueries;if(S&&Dh(h,S),P&&gm(h,P),Y(h.inputs,C.inputs),Y(h.declaredInputs,C.declaredInputs),Y(h.outputs,C.outputs),sn(C)&&C.data.animation){const R=h.data;R.animation=(R.animation||[]).concat(C.data.animation)}}const w=C.features;if(w)for(let v=0;v=0;_--){const C=h[_];C.hostVars=p+=C.hostVars,C.hostAttrs=po(C.hostAttrs,m=po(m,C.hostAttrs))}}(_)}function Ic(h){return h===ct?{}:h===Pe?[]:h}function Dh(h,p){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{p(_,C),m(_,C)}:p}function gm(h,p){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{p(_,C,w),m(_,C,w)}:p}function zy(h,p){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{p(_,C),m(_,C)}:p}let Es=null;function _r(){if(!Es){const h=lt.Symbol;if(h&&h.iterator)Es=h.iterator;else{const p=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mx(M(ot[_.index])):_.index;if(jt(m)){let ot=null;if(!x&&S&&(ot=function gT(h,p,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?x[S]:null}"string"==typeof v&&(w+=2)}return null}(h,p,C,_.index)),null!==ot)(ot.__ngLastListenerFn__||ot).__ngNextListenerFn__=w,ot.__ngLastListenerFn__=w,ae=!1;else{w=km(_,p,N,w,!1);const Ht=m.listen(Re,C,w);J.push(w,Ht),R&&R.push(C,Le,ge,ge+1)}}else w=km(_,p,N,w,!0),Re.addEventListener(C,w,v),J.push(w),R&&R.push(C,Le,ge,v)}else w=km(_,p,N,w,!1);const fe=_.outputs;let ve;if(ae&&null!==fe&&(ve=fe[C])){const Te=ve.length;if(Te)for(let Re=0;Re0;)p=p[15],h--;return p}(h,Ge.lFrame.contextLView))[8]}(h)}function mT(h,p){let m=null;const _=function ay(h){const p=h.attrs;if(null!=p){const m=p.indexOf(5);if(0==(1&m))return p[m+1]}return null}(h);for(let C=0;C=0}function Gh(h,p,m){return Fn(h,p,m,!1),Gh}function Um(h,p){return Fn(h,p,null,!0),Um}function Fn(h,p,m,_){const C=be(),w=_t(),v=Vr(2);w.firstUpdatePass&&function Wm(h,p,m,_){const C=h.data;if(null===C[m+1]){const w=C[ji()],v=function qm(h,p){return p>=h.expandoStartIndex}(h,m);(function Iw(h,p){return 0!=(h.flags&(p?16:32))})(w,_)&&null===p&&!v&&(p=!1),p=function Dw(h,p,m,_){const C=ru(h);let w=_?p.residualClasses:p.residualStyles;if(null===C)0===(_?p.classBindings:p.styleBindings)&&(m=Jc(m=Uh(null,h,p,m,_),p.attrs,_),w=null);else{const v=p.directiveStylingLast;if(-1===v||h[v]!==C)if(m=Uh(C,h,p,m,_),null===w){let S=function Ps(h,p,m){const _=m?p.classBindings:p.styleBindings;if(0!==gr(_))return h[Pn(_)]}(h,p,_);void 0!==S&&Array.isArray(S)&&(S=Uh(null,h,p,S[1],_),S=Jc(S,p.attrs,_),function Pw(h,p,m,_){h[Pn(m?p.classBindings:p.styleBindings)]=_}(h,p,_,S))}else w=function Rw(h,p,m){let _;const C=p.directiveEnd;for(let w=1+p.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const J=Pn(h[x+1]);h[_+1]=zo(J,x),0!==J&&(h[J+1]=th(h[J+1],_)),h[x+1]=function Dg(h,p){return 131071&h|p<<17}(h[x+1],_)}else h[_+1]=zo(x,0),0!==x&&(h[x+1]=th(h[x+1],_)),x=_;else h[_+1]=zo(S,0),0===x?x=_:h[S+1]=th(h[S+1],_),S=_;P&&(h[_+1]=eh(h[_+1])),vw(h,R,_,!0),vw(h,R,_,!1),function bT(h,p,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof p&&Ao(w,p)>=0&&(m[_+1]=ih(m[_+1]))}(p,R,h,_,w),v=zo(x,S),w?p.classBindings=v:p.styleBindings=v}(C,w,p,m,v,_)}}(w,h,v,_),p!==Ke&&Ti(C,v,p)&&function $m(h,p,m,_,C,w,v,x){if(!(3&p.type))return;const S=h.data,P=S[x+1];Wh(function Pg(h){return 1==(1&h)}(P)?Qm(S,p,m,C,gr(P),v):void 0)||(Wh(w)||function Sc(h){return 2==(2&h)}(P)&&(w=Qm(S,null,m,C,x,v)),function Ur(h,p,m,_,C){const w=jt(h);if(p)C?w?h.addClass(m,_):m.classList.add(_):w?h.removeClass(m,_):m.classList.remove(_);else{let v=-1===_.indexOf("-")?void 0:fr.DashCase;if(null==C)w?h.removeStyle(m,_,v):m.style.removeProperty(_);else{const x="string"==typeof C&&C.endsWith("!important");x&&(C=C.slice(0,-10),v|=fr.Important),w?h.setStyle(m,_,C,v):m.style.setProperty(_,C,x?"important":"")}}}(_,v,de(ji(),m),C,w))}(w,w.data[ji()],C,C[11],h,C[v+1]=function wT(h,p){return null==h||("string"==typeof p?h+=p:"object"==typeof h&&(h=$(Or(h)))),h}(p,m),_,v)}function Uh(h,p,m,_,C){let w=null;const v=m.directiveEnd;let x=m.directiveStylingLast;for(-1===x?x=m.directiveStart:x++;x0;){const S=h[C],P=Array.isArray(S),R=P?S[1]:S,N=null===R;let J=m[C+1];J===Ke&&(J=N?Pe:void 0);let ae=N?Cu(J,_):R===_?J:void 0;if(P&&!Wh(ae)&&(ae=Cu(S,_)),Wh(ae)&&(x=ae,v))return x;const fe=h[C+1];C=v?Pn(fe):gr(fe)}if(null!==p){let S=w?p.residualClasses:p.residualStyles;null!=S&&(x=Cu(S,_))}return x}function Wh(h){return void 0!==h}function Vw(h,p=""){const m=be(),_=_t(),C=h+20,w=_.firstCreatePass?$r(_,C,1,p,null):_.data[C],v=m[C]=function yc(h,p){return jt(h)?h.createText(p):h.createTextNode(p)}(m[11],p);Ca(_,m,v,w),un(w,!1)}function Ym(h){return $h("",h,""),Ym}function $h(h,p,m){const _=be(),C=Vn(_,h,p,m);return C!==Ke&&Rn(_,ji(),C),$h}function Rs(h,p,m,_,C){const w=be(),v=pi(w,h,p,m,_,C);return v!==Ke&&Rn(w,ji(),v),Rs}function Xh(h,p,m){const _=be();return Ti(_,lo(),p)&&Ri(_t(),Nt(),_,h,p,_[11],m,!0),Xh}function ep(h,p,m){const _=be();if(Ti(_,lo(),p)){const w=_t(),v=Nt();Ri(w,v,_,h,p,gn(ru(w.data),v,_),m,!0)}return ep}const Pa=void 0;var Xc=["en",[["a","p"],["AM","PM"],Pa],[["AM","PM"],Pa,Pa],[["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"]],Pa,[["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"]],Pa,[["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}",Pa,"{1} 'at' {0}",Pa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gw(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let ks={};function td(h){const p=function Uw(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=ip(p);if(m)return m;const _=p.split("-")[0];if(m=ip(_),m)return m;if("en"===_)return Xc;throw new Error(`Missing locale data for the locale "${h}".`)}function tp(h){return td(h)[Ne.PluralCase]}function ip(h){return h in ks||(ks[h]=lt.ng&<.ng.common&<.ng.common.locales&<.ng.common.locales[h]),ks[h]}var Ne=(()=>((Ne=Ne||{})[Ne.LocaleId=0]="LocaleId",Ne[Ne.DayPeriodsFormat=1]="DayPeriodsFormat",Ne[Ne.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ne[Ne.DaysFormat=3]="DaysFormat",Ne[Ne.DaysStandalone=4]="DaysStandalone",Ne[Ne.MonthsFormat=5]="MonthsFormat",Ne[Ne.MonthsStandalone=6]="MonthsStandalone",Ne[Ne.Eras=7]="Eras",Ne[Ne.FirstDayOfWeek=8]="FirstDayOfWeek",Ne[Ne.WeekendRange=9]="WeekendRange",Ne[Ne.DateFormat=10]="DateFormat",Ne[Ne.TimeFormat=11]="TimeFormat",Ne[Ne.DateTimeFormat=12]="DateTimeFormat",Ne[Ne.NumberSymbols=13]="NumberSymbols",Ne[Ne.NumberFormats=14]="NumberFormats",Ne[Ne.CurrencyCode=15]="CurrencyCode",Ne[Ne.CurrencySymbol=16]="CurrencySymbol",Ne[Ne.CurrencyName=17]="CurrencyName",Ne[Ne.Currencies=18]="Currencies",Ne[Ne.Directionality=19]="Directionality",Ne[Ne.PluralCase=20]="PluralCase",Ne[Ne.ExtraData=21]="ExtraData",Ne))();const sl="en-US";let r_=sl;function dp(h,p,m,_,C){if(h=q(h),Array.isArray(h))for(let w=0;w>20;if(vs(h)||!h.multi){const ae=new zt(S,C,Wc),fe=cd(x,p,C?R:R+J,N);-1===fe?(_o(go(P,v),w,x),up(w,h,p.length),p.push(x),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(ae),v.push(ae)):(m[fe]=ae,v[fe]=ae)}else{const ae=cd(x,p,R+J,N),fe=cd(x,p,R,R+J),ve=ae>=0&&m[ae],Te=fe>=0&&m[fe];if(C&&!Te||!C&&!ve){_o(go(P,v),w,x);const Re=function Cv(h,p,m,_,C){const w=new zt(h,m,Wc);return w.multi=[],w.index=p,w.componentProviders=0,p_(w,C,_&&!m),w}(C?bv:f_,m.length,C,_,S);!C&&Te&&(m[fe].providerFactory=Re),up(w,h,p.length,0),p.push(x),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(Re),v.push(Re)}else up(w,h,ae>-1?ae:fe,p_(m[C?fe:ae],S,!C&&_));!C&&_&&Te&&m[fe].componentProviders++}}}function up(h,p,m,_){const C=vs(p),w=function Eh(h){return!!h.useClass}(p);if(C||w){const S=(w?q(p.useClass):p).prototype.ngOnDestroy;if(S){const P=h.destroyHooks||(h.destroyHooks=[]);if(!C&&p.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function p_(h,p,m){return m&&h.componentProviders++,h.multi.push(p)-1}function cd(h,p,m,_){for(let C=m;C<_;C++)if(p[C]===h)return C;return-1}function f_(h,p,m,_){return hp(this.multi,[])}function bv(h,p,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,x=bo(m,m[1],this.providerFactory.index,_);w=x.slice(0,v),hp(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function _v(h,p,m){const _=_t();if(_.firstCreatePass){const C=sn(h);dp(m,_.data,_.blueprint,C,!0),dp(p,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,p)}}class dt{}class pp{resolveComponentFactory(p){throw function yv(h){const p=Error(`No component factory found for ${$(h)}. Did you add it to @NgModule.entryComponents?`);return p.ngComponent=h,p}(p)}}let cl=(()=>{class h{}return h.NULL=new pp,h})();function vv(){return Fs(Gt(),be())}function Fs(h,p){return new Ui(me(h,p))}let Ui=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=vv,h})();function __(h){return h instanceof Ui?h.nativeElement:h}class fp{}let sE=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function ir(){const h=be(),m=ut(Gt().index,h);return function fi(h){return h[11]}(Li(m)?m:h)}(),h})(),xv=(()=>{class h{}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:()=>null}),h})();class b_{constructor(p){this.full=p,this.major=p.split(".")[0],this.minor=p.split(".")[1],this.patch=p.split(".").slice(2).join(".")}}const C_=new b_("13.2.2"),dd={};function ud(h,p,m,_,C=!1){for(;null!==m;){const w=p[m.index];if(null!==w&&_.push(M(w)),Qi(w))for(let x=10;x-1&&(Io(p,_),rc(m,_))}this._attachedToViewContainer=!1}Gu(this._lView[1],this._lView)}onDestroy(p){Gg(this._lView[1],this._lView,null,p)}markForCheck(){Ue(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){em(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Aa(h,p,m){nu(!0);try{em(h,p,m)}finally{nu(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Lu(h,p){Gr(h,p,p[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(p){if(this._attachedToViewContainer)throw new re(902,"");this._appRef=p}}class Tv extends Ls{constructor(p){super(p),this._view=p}detectChanges(){$o(this._view)}checkNoChanges(){!function xa(h){nu(!0);try{$o(h)}finally{nu(!1)}}(this._view)}get context(){return null}}class gp extends cl{constructor(p){super(),this.ngModule=p}resolveComponentFactory(p){const m=oi(p);return new Ia(m,this.ngModule)}}function mp(h){const p=[];for(let m in h)h.hasOwnProperty(m)&&p.push({propName:h[m],templateName:m});return p}const ka=new Ut("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ou});class Ia extends dt{constructor(p,m){super(),this.componentDef=p,this.ngModule=m,this.componentType=p.type,this.selector=function ly(h){return h.map(Ec).join(",")}(p.selectors),this.ngContentSelectors=p.ngContentSelectors?p.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(p,m,_,C){const w=(C=C||this.ngModule)?function Ct(h,p){return{get:(m,_,C)=>{const w=h.get(m,dd,C);return w!==dd||_===dd?w:p.get(m,_,C)}}}(p,C.injector):p,v=w.get(fp,H),x=w.get(xv,null),S=v.createRenderer(null,this.componentDef),P=this.componentDef.selectors[0][0]||"div",R=_?function _h(h,p,m){if(jt(h))return h.selectRootElement(p,m===Me.ShadowDom);let _="string"==typeof p?h.querySelector(p):p;return _.textContent="",_}(S,_,this.componentDef.encapsulation):ko(v.createRenderer(null,this.componentDef),P,function hd(h){const p=h.toLowerCase();return"svg"===p?"svg":"math"===p?"math":null}(P)),N=this.componentDef.onPush?576:528,J=function pm(h,p){return{components:[],scheduler:h||Ou,clean:K0,playerHandler:p||null,flags:0}}(),ae=Pi(0,null,null,1,0,null,null,null,null,null),fe=mr(null,ae,J,N,null,null,v,S,x,w);let ve,Te;au(fe);try{const Re=function jy(h,p,m,_,C,w){const v=m[1];m[20]=h;const S=$r(v,20,2,"#host",null),P=S.mergedAttrs=p.hostAttrs;null!==P&&(Yo(S,P,!0),null!==h&&(Zl(C,h,P),null!==S.classes&&vc(C,h,S.classes),null!==S.styles&&Ku(C,h,S.styles)));const R=_.createRenderer(h,p),N=mr(m,mh(p),null,p.onPush?64:16,m[20],S,_,R,w||null,null);return v.firstCreatePass&&(_o(go(S,m),v,p.type),Jg(v,S),Zi(S,m.length,1)),Pc(m,N),m[20]=N}(R,this.componentDef,fe,v,S);if(R)if(_)Zl(S,R,["ng-version",C_.full]);else{const{attrs:ge,classes:Le}=function cy(h){const p=[],m=[];let _=1,C=2;for(;_0&&vc(S,R,Le.join(" "))}if(Te=Mt(ae,20),void 0!==m){const ge=Te.projection=[];for(let Le=0;LeS(v,p)),p.contentQueries){const S=Gt();p.contentQueries(1,v,S.directiveStart)}const x=Gt();return!w.firstCreatePass||null===p.hostBindings&&null===p.hostAttrs||(da(x.index),bh(m[1],x,0,x.directiveStart,x.directiveEnd,p),Yg(p,v)),v}(Re,this.componentDef,fe,J,[Ny]),va(ae,fe,null)}finally{su()}return new Sv(this.componentType,ve,Fs(Te,fe),fe,Te)}}class Sv extends class m_{}{constructor(p,m,_,C,w){super(),this.location=_,this._rootLView=C,this._tNode=w,this.instance=m,this.hostView=this.changeDetectorRef=new Tv(C),this.componentType=p}get injector(){return new is(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(p){this.hostView.onDestroy(p)}}class Va{}class w_{}const yr=new Map;class Cp extends Va{constructor(p,m){super(),this._parent=m,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new gp(this);const _=di(p);this._bootstrapComponents=Hn(_.bootstrap),this._r3Injector=sm(p,m,[{provide:Va,useValue:this},{provide:cl,useValue:this.componentFactoryResolver}],$(p)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(p)}get(p,m=kn.THROW_IF_NOT_FOUND,_=Ye.Default){return p===kn||p===Va||p===rm?this:this._r3Injector.get(p,m,_)}destroy(){const p=this._r3Injector;!p.destroyed&&p.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(p){this.destroyCbs.push(p)}}class md extends w_{constructor(p){super(),this.moduleType=p,null!==di(p)&&function fd(h){const p=new Set;!function m(_){const C=di(_,!0),w=C.id;null!==w&&(function _p(h,p,m){if(p&&p!==m)throw new Error(`Duplicate module registered for ${h} - ${$(p)} vs ${$(p.name)}`)}(w,yr.get(w),_),yr.set(w,_));const v=Hn(C.imports);for(const x of v)p.has(x)||(p.add(x),m(x))}(h)}(p)}create(p){return new Cp(this.moduleType,p)}}function v_(h,p,m,_){return bd(be(),ti(),h,p,m,_)}function Ba(h,p){const m=h[p];return m===Ke?void 0:m}function bd(h,p,m,_,C,w){const v=p+m;return Ti(h,v,C)?Kn(h,v+1,w?_.call(w,C):_(C)):Ba(h,v+1)}function Oa(h,p,m,_,C,w,v,x){const S=p+m;return function Bc(h,p,m,_,C){const w=Sa(h,p,m,_);return Ti(h,p+2,C)||w}(h,S,C,w,v)?Kn(h,S+3,x?_.call(x,C,w,v):_(C,w,v)):Ba(h,S+3)}function x_(h,p){const m=_t();let _;const C=h+20;m.firstCreatePass?(_=function Kr(h,p){if(p)for(let m=p.length-1;m>=0;m--){const _=p[m];if(h===_.name)return _}}(p,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=cn(_.type)),v=Oi(Wc);try{const x=gu(!1),S=w();return gu(x),function _n(h,p,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),p[m]=_}(m,be(),C,S),S}finally{Oi(v)}}function vp(h,p,m){const _=h+20,C=be(),w=xt(C,_);return Ns(C,_)?bd(C,ti(),p,w.transform,m,w):w.transform(m)}function T_(h,p,m,_){const C=h+20,w=be(),v=xt(w,C);return Ns(w,C)?function nr(h,p,m,_,C,w,v){const x=p+m;return Sa(h,x,C,w)?Kn(h,x+2,v?_.call(v,C,w):_(C,w)):Ba(h,x+2)}(w,ti(),p,v.transform,m,_,v):v.transform(m,_)}function dl(h,p,m,_,C){const w=h+20,v=be(),x=xt(v,w);return Ns(v,w)?Oa(v,ti(),p,x.transform,m,_,C,x):x.transform(m,_,C)}function Ns(h,p){return h[1].data[p].pure}function ul(h){return p=>{setTimeout(h,void 0,p)}}const rr=class xp extends T.xQ{constructor(p=!1){super(),this.__isAsync=p}emit(p){super.next(p)}subscribe(p,m,_){var C,w,v;let x=p,S=m||(()=>null),P=_;if(p&&"object"==typeof p){const N=p;x=null===(C=N.next)||void 0===C?void 0:C.bind(N),S=null===(w=N.error)||void 0===w?void 0:w.bind(N),P=null===(v=N.complete)||void 0===v?void 0:v.bind(N)}this.__isAsync&&(S=ul(S),x&&(x=ul(x)),P&&(P=ul(P)));const R=super.subscribe({next:x,error:S,complete:P});return p instanceof g.w&&p.add(R),R}};function hl(){return this._results[_r()]()}class Cd{constructor(p=!1){this._emitDistinctChangesOnly=p,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=_r(),_=Cd.prototype;_[m]||(_[m]=hl)}get changes(){return this._changes||(this._changes=new rr)}get(p){return this._results[p]}map(p){return this._results.map(p)}filter(p){return this._results.filter(p)}find(p){return this._results.find(p)}reduce(p,m){return this._results.reduce(p,m)}forEach(p){this._results.forEach(p)}some(p){return this._results.some(p)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(p,m){const _=this;_.dirty=!1;const C=Mn(p);(this._changesDetected=!function Px(h,p,m){if(h.length!==p.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=fl,h})();const Vv=pl,yd=class extends Vv{constructor(p,m,_){super(),this._declarationLView=p,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(p){const m=this._declarationTContainer.tViews,_=mr(this._declarationLView,m,p,16,null,m.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const w=this._declarationLView[19];return null!==w&&(_[19]=w.createEmbeddedView(m)),va(m,_,p),new Ls(_)}};function fl(){return zs(Gt(),be())}function zs(h,p){return 4&h.type?new yd(p,h,Fs(h,p)):null}let gl=(()=>{class h{}return h.__NG_ELEMENT_ID__=S_,h})();function S_(){return H_(Gt(),be())}const Bv=gl,wd=class extends Bv{constructor(p,m,_){super(),this._lContainer=p,this._hostTNode=m,this._hostLView=_}get element(){return Fs(this._hostTNode,this._hostLView)}get injector(){return new is(this._hostTNode,this._hostLView)}get parentInjector(){const p=mo(this._hostTNode,this._hostLView);if(Qf(p)){const m=fo(p,this._hostLView),_=Br(p);return new is(m[1].data[_+8],m)}return new is(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(p){const m=M_(this._lContainer);return null!==m&&m[p]||null}get length(){return this._lContainer.length-10}createEmbeddedView(p,m,_){const C=p.createEmbeddedView(m||{});return this.insert(C,_),C}createComponent(p,m,_,C,w){const v=p&&!function pa(h){return"function"==typeof h}(p);let x;if(v)x=m;else{const N=m||{};x=N.index,_=N.injector,C=N.projectableNodes,w=N.ngModuleRef}const S=v?p:new Ia(oi(p)),P=_||this.parentInjector;if(!w&&null==S.ngModule&&P){const N=P.get(Va,null);N&&(w=N)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,x),R}insert(p,m){const _=p._lView,C=_[1];if(function kt(h){return Qi(h[3])}(_)){const R=this.indexOf(p);if(-1!==R)this.detach(R);else{const N=_[3],J=new wd(N,N[6],N[3]);J.detach(J.indexOf(p))}}const w=this._adjustIndex(m),v=this._lContainer;!function Nu(h,p,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=p),_0)_.push(v[x/2]);else{const P=w[x+1],R=p[-S];for(let N=10;N{class h{constructor(m){this.appInits=m,this.resolve=Bp,this.reject=Bp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:x,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return h.\u0275fac=function(m){return new(m||h)(ui(Dd,8))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const Op=new Ut("AppId"),eA={provide:Op,useFactory:function Xv(){return`${Fp()}${Fp()}${Fp()}`},deps:[]};function Fp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const K_=new Ut("Platform Initializer"),Lp=new Ut("Platform ID"),Z_=new Ut("appBootstrapListener");let eb=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const Pd=new Ut("LocaleId"),tb=new Ut("DefaultCurrencyCode");class iA{constructor(p,m){this.ngModuleFactory=p,this.componentFactories=m}}let jp=(()=>{class h{compileModuleSync(m){return new md(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Hn(di(m).declarations).reduce((v,x)=>{const S=oi(x);return S&&v.push(new Ia(S)),v},[]);return new iA(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const aA=(()=>Promise.resolve(0))();function Np(h){"undefined"==typeof Zone?aA.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class en{constructor({enableLongStackTrace:p=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const C=this;C._nesting=0,C._outer=C._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),p&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function ki(){let h=lt.requestAnimationFrame,p=lt.cancelAnimationFrame;if("undefined"!=typeof Zone&&h&&p){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=p[Zone.__symbol__("OriginalDelegate")];_&&(p=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:p}}().nativeRequestAnimationFrame,function Us(h){const p=()=>{!function zp(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(lt,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Gp(h),h.isCheckStableRunning=!0,El(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Gp(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,x)=>{try{return nb(h),m.invokeTask(C,w,v,x)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&p(),Up(h)}},onInvoke:(m,_,C,w,v,x,S)=>{try{return nb(h),m.invoke(C,w,v,x,S)}finally{h.shouldCoalesceRunChangeDetection&&p(),Up(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,Gp(h),El(h)):"macroTask"==w.change&&(h.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),h.runOutsideAngular(()=>h.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!en.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(en.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(p,m,_){return this._inner.run(p,m,_)}runTask(p,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,p,Rd,Bp,Bp);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(p,m,_){return this._inner.runGuarded(p,m,_)}runOutsideAngular(p){return this._outer.run(p)}}const Rd={};function El(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function Gp(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function nb(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function Up(h){h._nesting--,El(h)}class sA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(p,m,_){return p.apply(m,_)}runGuarded(p,m,_){return p.apply(m,_)}runOutsideAngular(p){return p()}runTask(p,m,_,C){return p.apply(m,_)}}let qp=(()=>{class h{constructor(m){this._ngZone=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{en.assertNotInAngularZone(),Np(()=>{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())Np(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!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(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(ui(en))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})(),Wp=(()=>{class h{constructor(){this._applications=new Map,vr.addToWindow(this)}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return vr.findTestabilityInTree(this,m,_)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();class $p{addToWindow(p){}findTestabilityInTree(p,m,_){return null}}function _E(h){vr=h}let bn,vr=new $p;const rb=new Ut("AllowMultipleToken");class lA{constructor(p,m){this.name=p,this.token=m}}function Yp(h,p,m=[]){const _=`Platform: ${p}`,C=new Ut(_);return(w=[])=>{let v=ab();if(!v||v.injector.get(rb,!1))if(h)h(m.concat(w).concat({provide:C,useValue:!0}));else{const x=m.concat(w).concat({provide:C,useValue:!0},{provide:vh,useValue:"platform"});!function cA(h){if(bn&&!bn.destroyed&&!bn.injector.get(rb,!1))throw new re(400,"");bn=h.get(kd);const p=h.get(K_,null);p&&p.forEach(m=>m())}(kn.create({providers:x,name:_}))}return function dA(h){const p=ab();if(!p)throw new re(401,"");return p}()}}function ab(){return bn&&!bn.destroyed?bn:null}let kd=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const x=function uA(h,p){let m;return m="noop"===h?new sA:("zone.js"===h?void 0:h)||new en({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==p?void 0:p.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==p?void 0:p.ngZoneRunCoalescing)}),m}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),S=[{provide:en,useValue:x}];return x.run(()=>{const P=kn.create({providers:S,parent:this.injector,name:m.moduleType.name}),R=m.create(P),N=R.injector.get(gc,null);if(!N)throw new re(402,"");return x.runOutsideAngular(()=>{const J=x.onError.subscribe({next:ae=>{N.handleError(ae)}});R.onDestroy(()=>{sb(this._modules,R),J.unsubscribe()})}),function hA(h,p,m){try{const _=m();return jh(_)?_.catch(C=>{throw p.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw p.runOutsideAngular(()=>h.handleError(_)),_}}(N,x,()=>{const J=R.injector.get(La);return J.runInitializers(),J.donePromise.then(()=>(function $w(h){ze(h,"Expected localeId to be defined"),"string"==typeof h&&(r_=h.toLowerCase().replace(/_/g,"-"))}(R.injector.get(Pd,sl)||sl),this._moduleDoBootstrap(R),R))})})}bootstrapModule(m,_=[]){const C=Jp({},_);return function oA(h,p,m){const _=new md(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Sl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new re(403,"");m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,"");this._modules.slice().forEach(m=>m.destroy()),this._destroyListeners.forEach(m=>m()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(ui(kn))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();function Jp(h,p){return Array.isArray(p)?p.reduce(Jp,h):Object.assign(Object.assign({},h),p)}let Sl=(()=>{class h{constructor(m,_,C,w,v){this._zone=m,this._injector=_,this._exceptionHandler=C,this._componentFactoryResolver=w,this._initStatus=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const x=new B.y(P=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{P.next(this._stable),P.complete()})}),S=new B.y(P=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{en.assertNotInAngularZone(),Np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,P.next(!0))})})});const N=this._zone.onUnstable.subscribe(()=>{en.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{P.next(!1)}))});return()=>{R.unsubscribe(),N.unsubscribe()}});this.isStable=(0,j.T)(x,S.pipe((0,I.B)()))}bootstrap(m,_){if(!this._initStatus.done)throw new re(405,"");let C;C=m instanceof dt?m:this._componentFactoryResolver.resolveComponentFactory(m),this.componentTypes.push(C.componentType);const w=function Qp(h){return h.isBoundToModule}(C)?void 0:this._injector.get(Va),x=C.create(kn.NULL,[],_||C.selector,w),S=x.location.nativeElement,P=x.injector.get(qp,null),R=P&&x.injector.get(Wp);return P&&R&&R.registerApplication(S,P),x.onDestroy(()=>{this.detachView(x.hostView),sb(this.components,x),R&&R.unregisterApplication(S)}),this._loadComponent(x),x}tick(){if(this._runningTick)throw new re(101,"");try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;sb(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(Z_,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return h.\u0275fac=function(m){return new(m||h)(ui(en),ui(kn),ui(gc),ui(cl),ui(La))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();function sb(h,p){const m=h.indexOf(p);m>-1&&h.splice(m,1)}let Xp=!0;function gA(){Xp=!1}let _A=(()=>{class h{}return h.__NG_ELEMENT_ID__=yE,h})();function yE(h){return function lb(h,p,m){if(Ul(h)&&!m){const _=ut(h.index,p);return new Ls(_,_)}return 47&h.type?new Ls(p[16],p):null}(Gt(),be(),16==(16&h))}class rf{constructor(){}supports(p){return Zo(p)}create(p){return new Xr(p)}}const ci=(h,p)=>p;class Xr{constructor(p){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=p||ci}forEachItem(p){let m;for(m=this._itHead;null!==m;m=m._next)p(m)}forEachOperation(p){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,x),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,x,v,C)),Object.is(m.item,x)||this._addIdentityChange(m,x)):(m=this._mismatch(m,x,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=p,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let p;for(p=this._previousItHead=this._itHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._additionsHead;null!==p;p=p._nextAdded)p.previousIndex=p.currentIndex;for(this._additionsHead=this._additionsTail=null,p=this._movesHead;null!==p;p=p._nextMoved)p.previousIndex=p.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(p,m,_,C){let w;return null===p?w=this._itTail:(w=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(p.item,m)||this._addIdentityChange(p,m),this._reinsertAfter(p,w,C)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(p.item,m)||this._addIdentityChange(p,m),this._moveAfter(p,w,C)):p=this._addAfter(new yA(m,_),w,C),p}_verifyReinsertion(p,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?p=this._reinsertAfter(w,p._prev,C):p.currentIndex!=C&&(p.currentIndex=C,this._addToMoves(p,C)),p}_truncate(p){for(;null!==p;){const m=p._next;this._addToRemovals(this._unlink(p)),p=m}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(p,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);const C=p._prevRemoved,w=p._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(p,m,_),this._addToMoves(p,_),p}_moveAfter(p,m,_){return this._unlink(p),this._insertAfter(p,m,_),this._addToMoves(p,_),p}_addAfter(p,m,_){return this._insertAfter(p,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=p:this._additionsTail._nextAdded=p,p}_insertAfter(p,m,_){const C=null===m?this._itHead:m._next;return p._next=C,p._prev=m,null===C?this._itTail=p:C._prev=p,null===m?this._itHead=p:m._next=p,null===this._linkedRecords&&(this._linkedRecords=new af),this._linkedRecords.put(p),p.currentIndex=_,p}_remove(p){return this._addToRemovals(this._unlink(p))}_unlink(p){null!==this._linkedRecords&&this._linkedRecords.remove(p);const m=p._prev,_=p._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,p}_addToMoves(p,m){return p.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=p:this._movesTail._nextMoved=p),p}_addToRemovals(p){return null===this._unlinkedRecords&&(this._unlinkedRecords=new af),this._unlinkedRecords.put(p),p.currentIndex=null,p._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=p,p._prevRemoved=null):(p._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=p),p}_addIdentityChange(p,m){return p.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=p:this._identityChangesTail._nextIdentityChange=p,p}}class yA{constructor(p,m){this.item=p,this.trackById=m,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 Ml{constructor(){this._head=null,this._tail=null}add(p){null===this._head?(this._head=this._tail=p,p._nextDup=null,p._prevDup=null):(this._tail._nextDup=p,p._prevDup=this._tail,p._nextDup=null,this._tail=p)}get(p,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,p))return _;return null}remove(p){const m=p._prevDup,_=p._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class af{constructor(){this.map=new Map}put(p){const m=p.trackById;let _=this.map.get(m);_||(_=new Ml,this.map.set(m,_)),_.add(p)}get(p,m){const C=this.map.get(p);return C?C.get(p,m):null}remove(p){const m=p.trackById;return this.map.get(m).remove(p)&&this.map.delete(m),p}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function sf(h,p,m){const _=h.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(p,m){if(p){const _=p._prev;return m._next=p,m._prev=_,p._prev=m,_&&(_._next=m),p===this._mapHead&&(this._mapHead=m),this._appendAfter=p,p}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(p,m){if(this._records.has(p)){const C=this._records.get(p);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new pb(p);return this._records.set(p,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(p,m){Object.is(m,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=m,this._addToChanges(p))}_addToAdditions(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}_addToChanges(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}_forEach(p,m){p instanceof Map?p.forEach(m):Object.keys(p).forEach(_=>m(p[_],_))}}class pb{constructor(p){this.key=p,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 cf(){return new Hl([new rf])}let Hl=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||cf()),deps:[[h,new xo,new rs]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new re(901,"")}}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:cf}),h})();function Dl(){return new Pl([new lf])}let Pl=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||Dl()),deps:[[h,new xo,new rs]]}}find(m){const _=this.factories.find(w=>w.supports(m));if(_)return _;throw new re(901,"")}}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:Dl}),h})();const fb=[new lf],mb=new Hl([new rf]),vA=new Pl(fb),_b=Yp(null,"core",[{provide:Lp,useValue:"unknown"},{provide:kd,deps:[kn]},{provide:Wp,deps:[]},{provide:eb,deps:[]}]),yb=[{provide:Sl,useClass:Sl,deps:[en,kn,gc,cl,La]},{provide:ka,deps:[en],useFactory:function wb(h){let p=[];return h.onStable.subscribe(()=>{for(;p.length;)p.pop()()}),function(m){p.push(m)}}},{provide:La,useClass:La,deps:[[new rs,Dd]]},{provide:jp,useClass:jp,deps:[]},eA,{provide:Hl,useFactory:function df(){return mb},deps:[]},{provide:Pl,useFactory:function bb(){return vA},deps:[]},{provide:Pd,useFactory:function uf(h){return h||function Cb(){return"undefined"!=typeof $localize&&$localize.locale||sl}()},deps:[[new cc(Pd),new rs,new xo]]},{provide:tb,useValue:"USD"}];let hf=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(ui(Sl))},h.\u0275mod=ia({type:h}),h.\u0275inj=wn({providers:yb}),h})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),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(T){return(W||(W=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(T||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,T){this.data.set(E,T)}}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,T=null){super(W),this.reason=E,this.params=T}}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){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let E=this.inferHashAlgorithm(W.idTokenHeader),T=yield this.calcHash(W.accessToken,E),B=base64UrlEncode(T.substr(0,T.length/2)),j=W.idTokenClaims.at_hash.replace(/=/g,"");return B!==j&&(console.error("exptected at_hash: "+B),console.error("actual at_hash: "+j)),B===j})}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 T=E||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const g=T.indexOf("?");return T=T.substr(g>-1?g+1:1),this.parseQueryString(T)}parseQueryString(E){const T={};let g,B,j,I,O,Y,$;if(null===E)return T;g=E.split("&");for(let G=0;G>6,B[I++]=128|63&O):O<55296||O>=57344?(B[I++]=224|O>>12,B[I++]=128|O>>6&63,B[I++]=128|63&O):(O=65536+((1023&O)<<10|1023&z.charCodeAt(++T)),B[I++]=240|O>>18,B[I++]=128|O>>12&63,B[I++]=128|O>>6&63,B[I++]=128|63&O);z=B}else{if("object"!==g)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 Y=[],$=[];for(T=0;T<64;++T){var G=z[T]||0;Y[T]=92^G,$[T]=54^G}Sha256.call(this,W,E),this.update($),this.oKeyPad=Y,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 T,B,g=0,j=z.length,I=this.blocks;g>2]|=z[g]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[B>>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=I[16],this.start=B-64,this.hash(),this.hashed=!0):this.start=B}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 Y,L,ie,re,ne,le,z=this.h0,W=this.h1,E=this.h2,T=this.h3,g=this.h4,B=this.h5,j=this.h6,I=this.h7,O=this.blocks;for(Y=16;Y<64;++Y)O[Y]=O[Y-16]+(((L=O[Y-15])>>>7|L<<25)^(L>>>18|L<<14)^L>>>3)+O[Y-7]+(((L=O[Y-2])>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)<<0;for(le=W&E,Y=0;Y<64;Y+=4)this.first?(this.is224?(ie=300032,I=(L=O[0]-1413257819)-150054599<<0,T=L+24177077<<0):(ie=704751109,I=(L=O[0]-210244248)-1521486534<<0,T=L+143694565<<0),this.first=!1):(I=T+(L=I+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&B^~g&j)+K[Y]+O[Y])<<0,T=L+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((ie=z&W)^z&E^le))<<0),j=E+(L=j+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&g^~I&B)+K[Y+1]+O[Y+1])<<0,E=L+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((re=T&z)^T&W^ie))<<0,B=W+(L=B+((j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7))+(j&I^~j&g)+K[Y+2]+O[Y+2])<<0,W=L+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((ne=E&T)^E&z^re))<<0,g=z+(L=g+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&j^~B&I)+K[Y+3]+O[Y+3])<<0,z=L+(((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+((le=W&E)^W&T^ne))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+W<<0,this.h2=this.h2+E<<0,this.h3=this.h3+T<<0,this.h4=this.h4+g<<0,this.h5=this.h5+B<<0,this.h6=this.h6+j<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,T=this.h3,g=this.h4,B=this.h5,j=this.h6,I=this.h7,O=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[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[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[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]+HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j];return this.is224||(O+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),O},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,T=this.h3,g=this.h4,B=this.h5,j=this.h6,I=this.h7,O=[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,T>>24&255,T>>16&255,T>>8&255,255&T,g>>24&255,g>>16&255,g>>8&255,255&g,B>>24&255,B>>16&255,B>>8&255,255&B,j>>24&255,j>>16&255,j>>8&255,255&j];return this.is224||O.push(I>>24&255,I>>16&255,I>>8&255,255&I),O},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,T=new Uint8Array(E.length);for(W=0;W{class z{calcHash(E,T){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})}toHashString2(E){let T="";for(let g of E)T+=String.fromCharCode(g);return T}toHashString(E){const T=new Uint8Array(E);let g="";for(let B of T)g+=String.fromCharCode(B);return g}}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,T,g,B,j,I,O,Y,$,G){var F;super(),this.ngZone=E,this.http=T,this.config=j,this.urlHelper=I,this.logger=O,this.crypto=Y,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=$,j||(j={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),B&&(this.tokenValidationHandler=B),j&&this.configure(j);try{g?this.setStorage(g):"undefined"!=typeof sessionStorage&&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()){const L=null===(F=null==window?void 0:window.navigator)||void 0===F?void 0:F.userAgent;((null==L?void 0:L.includes("MSIE "))||(null==L?void 0:L.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const E="test";try{return void 0!==window.localStorage&&(localStorage.setItem(E,E),localStorage.removeItem(E),!0)}catch(T){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,g=!0){let B=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(j=>{"token_received"===j.type?B=!0:"logout"===j.type&&(B=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_expires"===j.type&&(null==T||"any"===T||j.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(j=>{B&&this.refreshInternal(E,g).catch(I=>{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=[],g=this.validateUrlForHttps(E),B=this.validateUrlAgainstIssuer(E);return g||T.push("https for all urls required. Also for urls received by discovery."),B||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(){"undefined"!=typeof window?((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()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),g=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)(g)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),g=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)(g)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}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 g=this.dateTimeService.now();return Math.max(0,(T-E)*this.timeoutFactor-(g-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((T,g)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(B=>{if(!this.validateDiscoveryDocument(B))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void g("discovery_document_validation_error");this.loginUrl=B.authorization_endpoint,this.logoutUrl=B.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=B.grant_types_supported,this.issuer=B.issuer,this.tokenEndpoint=B.token_endpoint,this.userinfoEndpoint=B.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=B.jwks_uri,this.sessionCheckIFrameUrl=B.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(B),this.revocationEndpoint=B.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(j=>{const O=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:B,jwks:j});this.eventsSubject.next(O),T(O)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",j)),g(j)})},B=>{this.logger.error("error loading discovery document",B),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",B)),g(B)}):g("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(g=>{this.jwks=g,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(g)},g=>{this.logger.error("error loading jwks",g),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",g)),T(g)}):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,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,T,g).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 g=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:g,observe:"response",responseType:"text"}).subscribe(B=>{if(this.debug("userinfo received",JSON.stringify(B)),B.headers.get("content-type").startsWith("application/json")){let j=JSON.parse(B.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||j.sub!==I.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");j=Object.assign({},I,j),this._storage.setItem("id_token_claims_obj",JSON.stringify(j)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:j})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(B.body))},B=>{this.logger.error("error loading user info",B),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",B)),T(B)})})}fetchTokenUsingPasswordFlow(E,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:T},g)}fetchTokenUsingGrant(E,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const j=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+j)}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 j of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(j,this.customQueryParams[j]);for(const j of Object.keys(T))B=B.set(j,T[j]);return g=g.set("Content-Type","application/x-www-form-urlencoded"),new Promise((j,I)=>{this.http.post(this.tokenEndpoint,B,{headers:g}).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(Y=>{this.storeIdToken(Y),j(O)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),j(O)},O=>{this.logger.error("Error performing ${grantType} flow",O),this.eventsSubject.next(new OAuthErrorEvent("token_error",O)),I(O)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,T)=>{let g=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")),B=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const j=btoa(`${this.clientId}:${this.dummyClientSecret}`);B=B.set("Authorization","Basic "+j)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const j of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(j,this.customQueryParams[j]);this.http.post(this.tokenEndpoint,g,{headers:B}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(j=>j.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(j.id_token,j.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>j)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(j))).subscribe(j=>{this.debug("refresh tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(j)},j=>{this.logger.error("Error refreshing token",j),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",j)),T(j)})})}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(g=>this.debug("tryLogin during silent refresh failed",g))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},T=!0){const g=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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const B=this.document.getElementById(this.silentRefreshIFrameName);B&&this.document.body.removeChild(B),this.silentRefreshSubject=g.sub;const j=this.document.createElement("iframe");j.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,E).then(G=>{j.setAttribute("src",G),this.silentRefreshShowIFrame||(j.style.display="none"),this.document.body.appendChild(j)});const O=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Y=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),$=(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__.S3)([O,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(T=>new Promise((g,B)=>{let O,I=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(I=E.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Y=q=>{this.tryLogin({customHashFragment:q,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),g(!0)},Q=>{G(),B(Q)})};I?O=window.setInterval(()=>{(!I||I.closed)&&(G(),B(new OAuthErrorEvent("popup_closed",{})))},500):B(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(O),window.removeEventListener("storage",L),window.removeEventListener("message",F),null!==I&&I.close(),I=null},F=q=>{const Q=this.processMessageEventMessage(q);Q&&null!==Q?(window.removeEventListener("storage",L),Y(Q)):console.log("false event firing")},L=q=>{"auth_hash"===q.key&&(window.removeEventListener("message",F),Y(q.newValue))};window.addEventListener("message",F),window.addEventListener("storage",L)}))}calculatePopupFeatures(E){const T=E.height||470,g=E.width||500,B=window.screenLeft+(window.outerWidth-g)/2;return`location=no,toolbar=no,width=${g},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${B}`}processMessageEventMessage(E){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const g=E.data;return g.startsWith(T)?"#"+g.substr(T.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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(),g=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),g.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",g,"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="",g="",B=!1,j={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const I=this;let O;O=g||this.redirectUri;const Y=yield this.createAndSaveNonce();if(E=E?Y+this.config.nonceStateSeparator+encodeURIComponent(E):Y,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const $=I.loginUrl.indexOf("?")>-1?"&":"?";let G=I.scope;this.oidc&&!G.match(/(^|\s)openid($|\s)/)&&(G="openid "+G);let F=I.loginUrl+$+"response_type="+encodeURIComponent(I.responseType)+"&client_id="+encodeURIComponent(I.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(O)+"&scope="+encodeURIComponent(G);if(this.responseType.includes("code")&&!this.disablePKCE){const[L,q]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",q):this._storage.setItem("PKCE_verifier",q),F+="&code_challenge="+L,F+="&code_challenge_method=S256"}T&&(F+="&login_hint="+encodeURIComponent(T)),I.resource&&(F+="&resource="+encodeURIComponent(I.resource)),I.oidc&&(F+="&nonce="+encodeURIComponent(Y)),B&&(F+="&prompt=none");for(const L of Object.keys(j))F+="&"+encodeURIComponent(L)+"="+encodeURIComponent(j[L]);if(this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))F+="&"+L+"="+encodeURIComponent(this.customQueryParams[L]);return F})}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 g={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(g=T),this.createLoginUrl(E,B,null,!1,g).then(this.config.openUri).catch(j=>{console.error("Error in initImplicitFlow",j),this.inImplicitFlow=!1})}initImplicitFlow(E="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(g=>"discovery_document_loaded"===g.type)).subscribe(g=>this.initImplicitFlowInternal(E,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const T=this;if(E.onTokenReceived){const g={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};E.onTokenReceived(g)}}storeAccessTokenResponse(E,T,g,B,j){if(this._storage.setItem("access_token",E),B&&!Array.isArray(B)?this._storage.setItem("granted_scopes",JSON.stringify(B.split(" "))):B&&Array.isArray(B)&&this._storage.setItem("granted_scopes",JSON.stringify(B)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),g){const I=1e3*g,Y=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+Y)}T&&this._storage.setItem("refresh_token",T),j&&j.forEach((I,O)=>{this._storage.setItem(O,I)})}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){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const T=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,g=this.getCodePartsFromUrl(T),B=g.code,j=g.state,I=g.session_state;if(!E.preventClearHashAfterLogin){const $=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,$)}let[O,Y]=this.parseState(j);if(this.state=Y,g.error){this.debug("error trying to login"),this.handleLoginError(E,g);const $=new OAuthErrorEvent("code_error",{},g);return this.eventsSubject.next($),Promise.reject($)}if(!E.disableNonceCheck){if(!O)return this.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!this.validateNonce(O)){const G=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(G),Promise.reject(G)}return this.storeSessionState(I),B&&(yield this.getTokenFromCode(B,E),this.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 g=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 B;B=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),B?g=g.set("code_verifier",B):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(g,T)}fetchAndProcessToken(E,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let g=(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}`);g=g.set("Authorization","Basic "+B)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((B,j)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,E,{headers:g}).subscribe(I=>{this.debug("refresh 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,T.disableNonceCheck).then(O=>{this.storeIdToken(O),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),console.error("Error validating tokens"),console.error(O),j(O)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),j(I)})})}tryLoginImplicitFlow(E=null){let T;T=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const g=T.state;let[B,j]=this.parseState(g);if(this.state=j,T.error){this.debug("error trying to login"),this.handleLoginError(E,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,O=T.id_token,Y=T.session_state,$=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!g||this.oidc&&!O)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Y&&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(B)){const F=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(F),Promise.reject(F)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,$),this.oidc?this.processIdToken(O,I,E.disableNonceCheck).then(G=>E.validationHandler?E.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:g}).then(F=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(Y),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 T=E,g="";if(E){const B=E.indexOf(this.config.nonceStateSeparator);B>-1&&(T=E.substr(0,B),g=E.substr(B+this.config.nonceStateSeparator.length))}return[T,g]}validateNonce(E){let T;return T=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?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,g=!1){const B=E.split("."),I=b64DecodeUnicode(this.padBase64(B[0])),O=JSON.parse(I),$=b64DecodeUnicode(this.padBase64(B[1])),G=JSON.parse($);let F;if(F=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(ne=>ne!==this.clientId)){const ne="Wrong audience: "+G.aud.join(",");return this.logger.warn(ne),Promise.reject(ne)}}else if(G.aud!==this.clientId){const ne="Wrong audience: "+G.aud;return this.logger.warn(ne),Promise.reject(ne)}if(!G.sub){const ne="No sub claim in id_token";return this.logger.warn(ne),Promise.reject(ne)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const ne=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(ne),Promise.reject(ne)}if(!G.iat){const ne="No iat claim in id_token";return this.logger.warn(ne),Promise.reject(ne)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const ne="Wrong issuer: "+G.iss;return this.logger.warn(ne),Promise.reject(ne)}if(!g&&G.nonce!==F){const ne="Wrong nonce: "+G.nonce;return this.logger.warn(ne),Promise.reject(ne)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const ne="An at_hash is needed!";return this.logger.warn(ne),Promise.reject(ne)}const L=this.dateTimeService.now(),q=1e3*G.iat,Q=1e3*G.exp,ie=this.getClockSkewInMsec();if(q-ie>=L||Q+ie<=L){const ne="Token has expired";return console.error(ne),console.error({now:L,issuedAtMSec:q,expiresAtMSec:Q}),Promise.reject(ne)}const re={accessToken:T,idToken:E,jwks:this.jwks,idTokenClaims:G,idTokenHeader:O,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(ne=>({idToken:E,idTokenClaims:G,idTokenClaimsJson:$,idTokenHeader:O,idTokenHeaderJson:I,idTokenExpiresAt:Q})):this.checkAtHash(re).then(ne=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ne){const le="Wrong at_hash";return this.logger.warn(le),Promise.reject(le)}return this.checkSignature(re).then(le=>{const Ae={idToken:E,idTokenClaims:G,idTokenClaimsJson:$,idTokenHeader:O,idTokenHeaderJson:I,idTokenExpiresAt:Q};return this.disableAtHashCheck?Ae:this.checkAtHash(re).then(Be=>{if(this.requestAccessToken&&!Be){const ft="Wrong at_hash";return this.logger.warn(ft),Promise.reject(ft)}return Ae})})})}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 g=!1;"boolean"==typeof E&&(g=E,E={});const B=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(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||g||!B&&!this.postLogoutRedirectUri)return;let j;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)j=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(B)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});B&&(I=I.set("id_token_hint",B));const O=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";O&&(I=I.set("post_logout_redirect_uri",O),T&&(I=I.set("state",T)));for(let Y in E)I=I.set(Y,E[Y]);j=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(j)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(T){return E.saveNoncesInLocalStorage&&void 0!==window.localStorage?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 g=45,B="";const j="undefined"==typeof self?null:self.crypto||self.msCrypto;if(j){let I=new Uint8Array(g);j.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(O=>T.charCodeAt(O%T.length)),B=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===g.type)).subscribe(g=>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 g={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(g=T),this.createLoginUrl(E,B,null,!1,g).then(this.config.openUri).catch(j=>{console.error("Error in initAuthorizationCodeFlow"),console.error(j)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const E=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(E,"sha-256")),E]})}extractRecognizedCustomParameters(E){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>{E[g]&&T.set(g,JSON.stringify(E[g]))}),T}revokeTokenAndLogout(E={},T=!1){let g=this.revocationEndpoint,B=this.getAccessToken(),j=this.getRefreshToken();if(!B)return;let I=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 Y=btoa(`${this.clientId}:${this.dummyClientSecret}`);O=O.set("Authorization","Basic "+Y)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Y of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(Y,this.customQueryParams[Y]);return new Promise((Y,$)=>{let G,F;if(B){let L=I.set("token",B).set("token_type_hint","access_token");G=this.http.post(g,L,{headers:O})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(j){let L=I.set("token",j).set("token_type_hint","refresh_token");F=this.http.post(g,L,{headers:O})}else F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>0===L.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(L))),F=F.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>0===L.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(L)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([G,F]).subscribe(L=>{this.logOut(E),Y(L),this.logger.info("Token successfully revoked")},L=>{this.logger.error("Error revoking token",L),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",L)),$(L)})})}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,T,g){this.oAuthService=E,this.errorHandler=T,this.moduleConfig=g}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 g=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(g)?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)(j=>!!j)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_received"===j.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(j=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(j=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(j=>{if(j){const O=E.headers.set("Authorization","Bearer "+j);E=E.clone({headers:O})}return T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(j=>this.errorHandler.handleError(j))):T.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"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(E=null,T=NullValidationHandler){return{ngModule:z,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 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")},4147:z=>{"use strict";z.exports={i8:"8.1.0"}}},z=>{z(z.s=2342)}]); \ No newline at end of file diff --git a/dist/apps/publications/index.html b/dist/apps/publications/index.html index 9f7fe305d..98e7de95e 100644 --- a/dist/apps/publications/index.html +++ b/dist/apps/publications/index.html @@ -6,7 +6,7 @@ - + @@ -40,5 +40,5 @@ - + diff --git a/dist/apps/publications/main.8a1fb1410da44541.js b/dist/apps/publications/main.8a1fb1410da44541.js deleted file mode 100644 index 24e0ec07b..000000000 --- a/dist/apps/publications/main.8a1fb1410da44541.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{9636:(z,G,x)=>{"use strict";var T=x(9808),i=x(5e3);class E extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends E{static makeCurrent(){(0,T.HT)(new M)}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 P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function V(n){L=L||document.createElement("a"),L.setAttribute("href",n);const a=L.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let L,S=null;const U=new i.OlP("TRANSITION_ID"),$=[{provide:i.ip1,useFactory:function Y(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,T.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const o=function(s){d=d||s,l--,0==l&&t(d)};r.forEach(function(s){s.whenStable(o)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const r=a.getTestability(e);return null!=r?r:t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let te=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ce=new i.OlP("EventManagerPlugins");let ne=(()=>{class n{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 l=0;l{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ie=(()=>{class n extends me{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.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(Be),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Be))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Be(n){(0,T.q)().remove(n)}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/"},It=/%COMP%/g;function _e(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ke=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ge(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new yi(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new tt(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=_e(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ne),i.LFG(Ie),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ge{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Ze[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){a.appendChild(e)}insertBefore(a,e,t){a&&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 l=Ze[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Ze[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&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.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,we(t)):this.eventManager.addEventListener(a,e,we(t))}}class yi extends ge{constructor(a,e,t,r){super(a),this.component=t;const l=_e(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function mt(n){return"_ngcontent-%COMP%".replace(It,n)}(r+"-"+t.id),this.hostAttr=function fe(n){return"_nghost-%COMP%".replace(It,n)}(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 ge{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 l=_e(r.id,r.styles,[]);for(let d=0;d{class n extends de{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const In=["alt","control","meta","shift"],$e={"\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"},ri={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"},Aa={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Cn=(()=>{class n extends de{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(In.forEach(s=>{const c=t.indexOf(s);c>-1&&(t.splice(c,1),d+=s+".")}),d+=l,0!=t.length||0===l.length)return null;const o={};return o.domEventName=r,o.fullKey=d,o}static getEventFullKey(e){let t="",r=function Ni(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&ri.hasOwnProperty(a)&&(a=ri[a]))}return $e[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),In.forEach(l=>{l!=r&&Aa[l](e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const va=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:T.bD},{provide:i.g9A,useValue:function Qr(){M.makeCurrent(),X.init()},multi:!0},{provide:T.K0,useFactory:function Ns(){return(0,i.RDi)(document),document},deps:[]}]),Kr=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function Fs(){return new i.qLn},deps:[]},{provide:ce,useClass:ht,multi:!0,deps:[T.K0,i.R0b,i.Lbi]},{provide:ce,useClass:Cn,multi:!0,deps:[T.K0]},{provide:ke,useClass:ke,deps:[ne,Ie,i.AFp]},{provide:i.FYo,useExisting:ke},{provide:me,useExisting:Ie},{provide:Ie,useClass:Ie,deps:[T.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:ne,useClass:ne,deps:[ce,i.R0b]},{provide:T.JF,useClass:te,deps:[]}];let Ta=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:U,useExisting:i.AFp},$]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:Kr,imports:[T.ez,i.hGG]}),n})(),Zt=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Bi(){return new Zt((0,i.LFG)(T.K0))}(),t},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let Bn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(as),t},providedIn:"root"}),n})(),as=(()=>{class n extends Bn{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(t),(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.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,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function rs(n){return new as(n.get(T.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var w=x(520);class Re{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const oi=new i.OlP("basePath");class Ge{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 Vi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,o,s="body",c=!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==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Ue=>{h=this.addToHttpParams(h,Ue,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=o&&(h=this.addToHttpParams(h,o,"onlyDirectAdmins"));let b,m=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(m=m.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(m=m.set("Authorization","Bearer "+b));let j=u&&u.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(m=m.set("Accept",j));let ie=u&&u.context;void 0===ie&&(ie=new w.qT);let pe="json";return j&&(pe=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ie,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),li=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryCat(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryNR(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAuthorship(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"publicationId")),null!=t&&(o=this.addToHttpParams(o,t,"userId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findAllAuthors(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}findAuthorsByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findExternalPublications(e,t,r,l,d="body",o=!1,s){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==l)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"yearSince")),null!=r&&(c=this.addToHttpParams(c,r,"yearTill")),null!=l&&(c=this.addToHttpParams(c,l,"pubSysNamespace"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}findNewAuthors(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationsByFilter(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"yearSince")),null!=r&&(s=this.addToHttpParams(s,r,"yearTill")),null!=e&&(s=this.addToHttpParams(s,e,"userId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findPublicationsByGUIFilter(e,t,r,l,d,o,s,c,u,h="body",m=!1,b){let j=new w.LE({encoder:this.encoder});null!=e&&(j=this.addToHttpParams(j,e,"title")),null!=t&&(j=this.addToHttpParams(j,t,"isbn")),null!=r&&(j=this.addToHttpParams(j,r,"doi")),null!=l&&(j=this.addToHttpParams(j,l,"id")),null!=d&&(j=this.addToHttpParams(j,d,"year")),null!=o&&(j=this.addToHttpParams(j,o,"category")),null!=s&&(j=this.addToHttpParams(j,s,"yearSince")),null!=c&&(j=this.addToHttpParams(j,c,"yearTill")),null!=u&&(j=this.addToHttpParams(j,u,"userId"));let pe,ie=this.defaultHeaders;pe=this.configuration.lookupCredential("BasicAuth"),pe&&(ie=ie.set("Authorization","Basic "+pe)),pe=this.configuration.lookupCredential("BearerAuth"),pe&&(ie=ie.set("Authorization","Bearer "+pe));let Ue=b&&b.httpHeaderAccept;void 0===Ue&&(Ue=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ue&&(ie=ie.set("Accept",Ue));let Tt=b&&b.context;void 0===Tt&&(Tt=new w.qT);let at="json";return Ue&&(at=Ue.startsWith("text")?"text":this.configuration.isJsonMime(Ue)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{context:Tt,params:j,responseType:at,withCredentials:this.configuration.withCredentials,headers:ie,observe:h,reportProgress:m})}findSimilarPublications(e,t,r,l="body",d=!1,o){let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"title")),null!=t&&(s=this.addToHttpParams(s,t,"doi")),null!=r&&(s=this.addToHttpParams(s,r,"isbn"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCategories(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPublicationSystems(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getRank(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichThanksByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}lockPublications(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$t=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"owner")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllOwners(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getOwnerById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getOwnerByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"owner"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),en=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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,l,d="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==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="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==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mr=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"password")),null!=r&&(s=this.addToHttpParams(s,r,"lang"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}changePasswordForLogin(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let u=new w.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"login")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let j=c&&c.context;void 0===j&&(j=new w.qT);let ie="json";return b&&(ie=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:j,params:u,responseType:ie,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}changePasswordForUser(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let u=new w.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let j=c&&c.context;void 0===j&&(j=new w.qT);let ie="json";return b&&(ie=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:j,params:u,responseType:ie,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}checkPasswordStrength(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"password")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createAlternativePassword(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"description")),null!=r&&(c=this.addToHttpParams(c,r,"loginNamespace")),null!=l&&(c=this.addToHttpParams(c,l,"password"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrsNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="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 c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ie=>{c=this.addToHttpParams(c,ie,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,o,s="body",c=!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 h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=o&&(h=this.addToHttpParams(h,o,"idpFilter"));let b,m=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(m=m.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(m=m.set("Authorization","Bearer "+b));let j=u&&u.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(m=m.set("Accept",j));let ie=u&&u.context;void 0===ie&&(ie=new w.qT);let pe="json";return j&&(pe=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ie,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:c})}reservePasswordForLogin(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reservePasswordForUser(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reserveRandomPassword(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ju=(()=>{class n{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:n,providers:[{provide:Ge,useFactory:e}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12),i.LFG(w.eN,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[]]}),n})();var At=(()=>{return(n=At||(At={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",At;var n})();let na=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const o of r)l=l.concat(o.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER,At.FACILITYADMIN,At.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(At.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(At.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(At.PERUNADMIN,At.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(At.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(At.PERUNADMIN,At.VOOBSERVER,At.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{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.roleName)}),e.sort(),"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 l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],o=[],s=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),o=o.concat(b.privilegedRolesToManage);for(const j of Object.keys(b.entitiesToManage))s="User"===j?[j].concat(s):s.concat(j);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(o,c);r.set(l,{readAuth:u,manageAuth:h,modes:s})}}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""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const o=r[d];if(null===o)this.principalRoles.has(d)||(l=!1);else if(t[o]){for(const s of t[o])if(!this.principalHasRole(d,o,s)){l=!1;break}}else l=!1;if(!l)break}if(l)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 l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){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 d=r.shift();if(t.has(d))continue;const o=this.getPerunPolicy(d);if(!o)return[];t.set(d,o),r=r.concat(o.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{let e;try{e=n()}catch(r){return void a.error(r)}return(e?(0,dn.D)(e):(0,dr.c)()).subscribe(a)})}var Gs=x(1762),dt=x(4850),nn=x(7545),jt=x(2986),ls=x(2866);function Wt(...n){const a=n[n.length-1];return(0,ls.K)(a)?(n.pop(),e=>Tn(n,e,a)):e=>Tn(n,e)}var Nn=x(3489);function zl(n,a){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new xn(n,a,e))}}class xn{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new ql(a,this.accumulator,this.seed,this.hasSeed))}}class ql extends Nn.L{constructor(a,e,t,r){super(a),this.accumulator=e,this._seed=t,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}var Yn=x(7221),Er=x(1406),ci=x(4231);function ra(n){return function(e){return 0===n?(0,dr.c)():e.lift(new aa(n))}}class aa{constructor(a){if(this.total=a,this.total<0)throw new ci.W}call(a,e){return e.subscribe(new Gl(a,this.total))}}class Gl extends Nn.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,r=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,r=this.ring;for(let l=0;la.lift(new Qe(n))}class Qe{constructor(a){this.callback=a}call(a,e){return e.subscribe(new Xt(a,this.callback))}}class Xt extends Nn.L{constructor(a,e){super(a),this.add(new he.w(e))}}class Rt{constructor(a,e){this.id=a,this.url=e}}class yt extends Rt{constructor(a,e,t="imperative",r=null){super(a,e),this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wt extends Rt{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ki extends Rt{constructor(a,e,t){super(a,e),this.reason=t}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class di extends Rt{constructor(a,e,t){super(a,e),this.error=t}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mi extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sa extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ur extends Rt{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rt extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cs extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lo{constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zs{constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Io{constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ku{constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $s{constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hf{constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Me{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ye="primary";class Wl{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 gi(n){return new Wl(n)}const id="ngNavigationCancelingError";function ds(n){const a=Error("NavigationCancelingError: "+n);return a[id]=!0,a}function Zl(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function Oo(n){return Array.prototype.concat.apply([],n)}function Bo(n){return n.length>0?n[n.length-1]:null}function ui(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function hr(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,dn.D)(Promise.resolve(n)):(0,Ne.of)(n)}const Un={exact:function Vo(n,a,e){if(!ka(n.segments,a.segments)||!us(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Vo(n.children[t],a.children[t],e))return!1;return!0},subset:Ks},Xu={exact:function kf(n,a){return Hr(n,a)},subset:function Qs(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>ai(n[e],a[e]))},ignored:()=>!0};function rd(n,a,e){return Un[e.paths](n.root,a.root,e.matrixParams)&&Xu[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function Ks(n,a,e){return ad(n,a,a.segments,e)}function ad(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ka(r,e)||a.hasChildren()||!us(r,e,t))}if(n.segments.length===e.length){if(!ka(n.segments,e)||!us(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!Ks(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(ka(n.segments,r)&&us(n.segments,r,t)&&n.children[Ye])&&ad(n.children[Ye],a,l,t)}}function us(n,a,e){return a.every((t,r)=>Xu[e](n[r].parameters,t.parameters))}class hs{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return Pf.serialize(this)}}class Lt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ui(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jl(this)}}class kr{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=gi(this.parameters)),this._parameterMap}toString(){return Xn(this)}}function ka(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}class sd{}class jo{parse(a){const e=new Yo(a);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ui(a.root,!0)}`,t=function No(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${hi(e)}=${hi(r)}`).join("&"):`${hi(e)}=${hi(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function th(n){return encodeURI(n)}(a.fragment)}`:""}`}}const Pf=new jo;function Jl(n){return n.segments.map(a=>Xn(a)).join("/")}function Ui(n,a){if(!n.hasChildren())return Jl(n);if(a){const e=n.children[Ye]?Ui(n.children[Ye],!1):"",t=[];return ui(n.children,(r,l)=>{l!==Ye&&t.push(`${l}:${Ui(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function eh(n,a){let e=[];return ui(n.children,(t,r)=>{r===Ye&&(e=e.concat(a(t,r)))}),ui(n.children,(t,r)=>{r!==Ye&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===Ye?[Ui(n.children[Ye],!1)]:[`${r}:${Ui(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ye]?`${Jl(n)}/${e[0]}`:`${Jl(n)}/(${e.join("//")})`}}function oa(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hi(n){return oa(n).replace(/%3B/gi,";")}function Ql(n){return oa(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fo(n){return decodeURIComponent(n)}function ih(n){return Fo(n.replace(/\+/g,"%20"))}function Xn(n){return`${Ql(n.path)}${function ps(n){return Object.keys(n).map(a=>`;${Ql(a)}=${Ql(n[a])}`).join("")}(n.parameters)}`}const Kl=/^[^\/()?;=#]+/;function Pa(n){const a=n.match(Kl);return a?a[0]:""}const Xl=/^[^=?&#]+/,Rf=/^[^&#]+/;class Yo{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Lt([],{}):new Lt([],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[Ye]=new Lt(a,e)),t}parseSegment(){const a=Pa(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new kr(Fo(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Pa(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Pa(this.remaining);r&&(t=r,this.capture(t))}a[Fo(e)]=Fo(t)}parseQueryParam(a){const e=function nh(n){const a=n.match(Xl);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function la(n){const a=n.match(Rf);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=ih(e),l=ih(t);if(a.hasOwnProperty(r)){let d=a[r];Array.isArray(d)||(d=[d],a[r]=d),d.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Pa(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let l;t.indexOf(":")>-1?(l=t.substr(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=Ye);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[Ye]:new Lt([],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 Error(`Expected "${a}".`)}}class rh{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=od(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=od(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=fs(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return fs(a,this._root).map(e=>e.value)}}function od(n,a){if(n===a.value)return a;for(const e of a.children){const t=od(n,e);if(t)return t}return null}function fs(n,a){if(n===a.value)return[a];for(const e of a.children){const t=fs(n,e);if(t.length)return t.unshift(a),t}return[]}class pr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Xs(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class ah extends rh{constructor(a,e){super(a),this.snapshot=e,gs(this,a)}toString(){return this.snapshot.toString()}}function Lf(n,a){const e=function V_(n,a){const d=new ms([],{},{},"",{},Ye,a,null,n.root,-1,{});return new dd("",new pr(d,[]))}(n,a),t=new $i([new kr("",{})]),r=new $i({}),l=new $i({}),d=new $i({}),o=new $i(""),s=new yn(t,r,d,o,l,Ye,a,e.root);return s.snapshot=e.root,new ah(new pr(s,[]),e)}class yn{constructor(a,e,t,r,l,d,o,s){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this._futureSnapshot=s}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,dt.U)(a=>gi(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,dt.U)(a=>gi(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ld(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function cd(n){return n.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class ms{constructor(a,e,t,r,l,d,o,s,c,u,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,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=gi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dd extends rh{constructor(a,e){super(e),this.url=a,gs(this,e)}toString(){return _s(this._root)}}function gs(n,a){a.value._routerState=n,a.children.forEach(e=>gs(n,e))}function _s(n){const a=n.children.length>0?` { ${n.children.map(_s).join(", ")} } `:"";return`${n.value}${a}`}function ud(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Hr(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),Hr(a.params,e.params)||n.params.next(e.params),function nd(n,a){if(n.length!==a.length)return!1;for(let e=0;eHr(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Ra(n.parent,a.parent))}function La(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function j_(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return La(n,t,r);return La(n,t)})}(n,a,e);return new pr(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(o=>La(n,o)),d}}const t=function sh(n){return new yn(new $i(n.url),new $i(n.params),new $i(n.queryParams),new $i(n.fragment),new $i(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>La(n,l));return new pr(t,r)}}function Uo(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function eo(n){return"object"==typeof n&&null!=n&&n.outlets}function Ia(n,a,e,t,r){let l={};return t&&ui(t,(d,o)=>{l[o]=Array.isArray(d)?d.map(s=>`${s}`):`${d}`}),new hs(e.root===n?a:bs(e.root,n,a),l,r)}function bs(n,a,e){const t={};return ui(n.children,(r,l)=>{t[l]=r===a?e:bs(r,a,e)}),new Lt(n.segments,t)}class ca{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Uo(t[0]))throw new Error("Root segment cannot have matrix parameters");const r=t.find(eo);if(r&&r!==Bo(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ws{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function md(n,a,e){if(n||(n=new Lt([],{})),0===n.segments.length&&n.hasChildren())return zo(n,a,e);const t=function If(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],o=e[t];if(eo(o))break;const s=`${o}`,c=t0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!lh(s,c,d))return l;t+=2}else{if(!lh(s,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=md(n.children[d],a,l))}),ui(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Lt(n.segments,r)}}function gd(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=gd(new Lt([],{}),0,e))}),a}function io(n){const a={};return ui(n,(e,t)=>a[t]=`${e}`),a}function lh(n,a,e){return n==e.path&&Hr(a,e.parameters)}class dh{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),ud(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=Xs(e);a.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),ui(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else l&&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,l=Xs(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:o})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=Xs(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],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=Xs(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new Hf(l.value.snapshot))}),a.children.length&&this.forwardEvent(new Ku(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(ud(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(o.contexts),d.attachRef=o.componentRef,d.route=o.route.value,d.outlet&&d.outlet.attach(o.componentRef,o.route.value),ud(o.route.value),this.activateChildRoutes(a,null,d.children)}else{const o=function no(n){for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=o?o.module.componentFactoryResolver:null;d.attachRef=null,d.route=r,d.resolver=s,d.outlet&&d.outlet.activateWith(r,s),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class tc{constructor(a,e){this.routes=a,this.module=e}}function Pr(n){return"function"==typeof n}function er(n){return n instanceof hs}const Rr=Symbol("INITIAL_VALUE");function ic(){return(0,nn.w)(n=>(0,Ha.aj)(n.map(a=>a.pipe((0,jt.q)(1),Wt(Rr)))).pipe(zl((a,e)=>{let t=!1;return e.reduce((r,l,d)=>r!==Rr?r:(l===Rr&&(t=!0),t||!1!==l&&d!==e.length-1&&!er(l)?r:l),a)},Rr),(0,zt.h)(a=>a!==Rr),(0,dt.U)(a=>er(a)?a:!0===a),(0,jt.q)(1)))}class Of{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new si,this.attachRef=null}}class si{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new Of,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let so=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=l||Ye,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){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.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const 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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;const d=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),o=this.parentContexts.getOrCreateContext(this.name).children,s=new F_(e,o,this.location.injector);this.activated=this.location.createComponent(d,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(si),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class F_{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===yn?this.route:a===si?this.childContexts:this.parent.get(a,e)}}let Bf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[so],encapsulation:2}),n})();function Vf(n,a=""){for(let e=0;eun(t)===a);return e.push(...n.filter(t=>un(t)!==a)),e}const ji={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function oo(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},ji):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const l=(a.matcher||Zl)(e,n,a);if(!l)return Object.assign({},ji);const d={};ui(l.posParams,(s,c)=>{d[c]=s.path});const o=l.consumed.length>0?Object.assign(Object.assign({},d),l.consumed[l.consumed.length-1].parameters):d;return{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:o,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function Oa(n,a,e,t,r="corrected"){if(e.length>0&&function tr(n,a,e){return e.some(t=>qo(n,a,t)&&un(t)!==Ye)}(n,e,t)){const d=new Lt(a,function Nf(n,a,e,t){const r={};r[Ye]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&un(l)!==Ye){const d=new Lt([],{});d._sourceSegment=n,d._segmentIndexShift=a.length,r[un(l)]=d}return r}(n,a,t,new Lt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function fr(n,a,e){return e.some(t=>qo(n,a,t))}(n,e,t)){const d=new Lt(n.segments,function Ff(n,a,e,t,r,l){const d={};for(const o of t)if(qo(n,e,o)&&!r[un(o)]){const s=new Lt([],{});s._sourceSegment=n,s._segmentIndexShift="legacy"===l?n.segments.length:a.length,d[un(o)]=s}return Object.assign(Object.assign({},r),d)}(n,a,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const l=new Lt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function qo(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Go(n,a,e,t){return!!(un(n)===t||t!==Ye&&qo(a,e,n))&&("**"===n.path||oo(a,n,e).matched)}function lo(n,a,e){return 0===a.length&&!n.children[e]}class zn{constructor(a){this.segmentGroup=a||null}}class wd{constructor(a){this.urlTree=a}}function nc(n){return new Hi.y(a=>a.error(new zn(n)))}function Yf(n){return new Hi.y(a=>a.error(new wd(n)))}function N_(n){return new Hi.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class Cd{constructor(a,e,t,r,l){this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0,this.ngModule=a.get(i.h0i)}apply(){const a=Oa(this.urlTree.root,[],[],this.config).segmentGroup,e=new Lt(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ye).pipe((0,dt.U)(l=>this.createUrlTree(Yt(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Yn.K)(l=>{if(l instanceof wd)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof zn?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,Ye).pipe((0,dt.U)(r=>this.createUrlTree(Yt(r),a.queryParams,a.fragment))).pipe((0,Yn.K)(r=>{throw r instanceof zn?this.noMatchError(r):r}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const r=a.segments.length>0?new Lt([],{[Ye]:a}):a;return new hs(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,dt.U)(l=>new Lt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,dn.D)(r).pipe((0,Er.b)(l=>{const d=t.children[l],o=jf(e,l);return this.expandSegmentGroup(a,o,d,l).pipe((0,dt.U)(s=>({segment:s,outlet:l})))}),zl((l,d)=>(l[d.outlet]=d.segment,l),{}),function B(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,zt.h)((r,l)=>n(r,l,t)):fi.y,ra(1),e?(0,Df.d)(a):(0,Ws.T)(()=>new td.K))}())}expandSegment(a,e,t,r,l,d){return(0,dn.D)(t).pipe((0,Er.b)(o=>this.expandSegmentAgainstRoute(a,e,t,o,r,l,d).pipe((0,Yn.K)(c=>{if(c instanceof zn)return(0,Ne.of)(null);throw c}))),(0,W.P)(o=>!!o),(0,Yn.K)((o,s)=>{if(o instanceof td.K||"EmptyError"===o.name){if(lo(e,r,l))return(0,Ne.of)(new Lt([],{}));throw new zn(e)}throw o}))}expandSegmentAgainstRoute(a,e,t,r,l,d,o){return Go(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,d):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d):nc(e):nc(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Yf(l):this.lineralizeSegments(t,l).pipe((0,O.zg)(d=>{const o=new Lt(d,{});return this.expandSegment(a,o,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){const{matched:o,consumedSegments:s,lastChild:c,positionalParamSegments:u}=oo(e,r,l);if(!o)return nc(e);const h=this.applyRedirectCommands(s,r.redirectTo,u);return r.redirectTo.startsWith("/")?Yf(h):this.lineralizeSegments(r,h).pipe((0,O.zg)(m=>this.expandSegment(a,e,t,m.concat(l.slice(c)),d,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,Ne.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,dt.U)(m=>(t._loadedConfig=m,new Lt(r,{})))):(0,Ne.of)(new Lt(r,{}));const{matched:d,consumedSegments:o,lastChild:s}=oo(e,t,r);if(!d)return nc(e);const c=r.slice(s);return this.getChildConfig(a,t,r).pipe((0,O.zg)(h=>{const m=h.module,b=h.routes,{segmentGroup:j,slicedSegments:ie}=Oa(e,o,c,b),pe=new Lt(j.segments,j.children);if(0===ie.length&&pe.hasChildren())return this.expandChildren(m,b,pe).pipe((0,dt.U)(Ut=>new Lt(o,Ut)));if(0===b.length&&0===ie.length)return(0,Ne.of)(new Lt(o,{}));const Ue=un(t)===l;return this.expandSegment(m,pe,b,ie,Ue?Ye:l,!0).pipe((0,dt.U)(at=>new Lt(o.concat(at.segments),at.children)))}))}getChildConfig(a,e,t){return e.children?(0,Ne.of)(new tc(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,Ne.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,O.zg)(r=>r?this.configLoader.load(a.injector,e).pipe((0,dt.U)(l=>(e._loadedConfig=l,l))):function Pe(n){return new Hi.y(a=>a.error(ds(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):(0,Ne.of)(new tc([],a))}runCanLoadGuards(a,e,t){const r=e.canLoad;if(!r||0===r.length)return(0,Ne.of)(!0);const l=r.map(d=>{const o=a.get(d);let s;if(function ro(n){return n&&Pr(n.canLoad)}(o))s=o.canLoad(e,t);else{if(!Pr(o))throw new Error("Invalid CanLoad guard");s=o(e,t)}return hr(s)});return(0,Ne.of)(l).pipe(ic(),(0,Q.b)(d=>{if(!er(d))return;const o=ds(`Redirecting to "${this.urlSerializer.serialize(d)}"`);throw o.url=d,o}),(0,dt.U)(d=>!0===d))}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ne.of)(t);if(r.numberOfChildren>1||!r.children[Ye])return N_(a.redirectTo);r=r.children[Ye]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new hs(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ui(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const o=r.substring(1);t[l]=e[o]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let d={};return ui(e.children,(o,s)=>{d[s]=this.createSegmentGroup(a,o,t,r)}),new Lt(l,d)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);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}}function Yt(n){const a={};for(const t of Object.keys(n.children)){const l=Yt(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Cs(n){if(1===n.numberOfChildren&&n.children[Ye]){const a=n.children[Ye];return new Lt(n.segments.concat(a.segments),a.children)}return n}(new Lt(n.segments,a))}class Ad{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class co{constructor(a,e){this.component=a,this.route=e}}function Uf(n,a,e){const t=n._root;return As(t,a?a._root:null,e,[t.value])}function rc(n,a,e){const t=function fh(n){if(!n)return null;for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(n)}function As(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=Xs(a);return n.children.forEach(d=>{(function ir(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=a?a.value:null,o=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const s=function Y_(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!ka(n.url,a.url);case"pathParamsOrQueryParamsChange":return!ka(n.url,a.url)||!Hr(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ra(n,a)||!Hr(n.queryParams,a.queryParams);default:return!Ra(n,a)}}(d,l,l.routeConfig.runGuardsAndResolvers);s?r.canActivateChecks.push(new Ad(t)):(l.data=d.data,l._resolvedData=d._resolvedData),As(n,a,l.component?o?o.children:null:e,t,r),s&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new co(o.outlet.component,d))}else d&&Lr(a,o,r),r.canActivateChecks.push(new Ad(t)),As(n,null,l.component?o?o.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),ui(l,(d,o)=>Lr(d,e.getContext(o),r)),r}function Lr(n,a,e){const t=Xs(n),r=n.value;ui(t,(l,d)=>{Lr(l,r.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new co(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}class Ir{}function _h(n){return new Hi.y(a=>a.error(n))}class bh{constructor(a,e,t,r,l,d){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=r,this.paramsInheritanceStrategy=l,this.relativeLinkResolution=d}recognize(){const a=Oa(this.urlTree.root,[],[],this.config.filter(d=>void 0===d.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,Ye);if(null===e)return null;const t=new ms([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ye,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new pr(t,e),l=new dd(this.url,r);return this.inheritParamsAndData(l._root),l}inheritParamsAndData(a){const e=a.value,t=ld(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){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const l of Object.keys(e.children)){const d=e.children[l],o=jf(a,l),s=this.processSegmentGroup(o,d,l);if(null===s)return null;t.push(...s)}const r=yh(t);return function Wf(n){n.sort((a,e)=>a.value.outlet===Ye?-1:e.value.outlet===Ye?1:a.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(a,e,t,r){for(const l of a){const d=this.processSegmentAgainstRoute(l,e,t,r);if(null!==d)return d}return lo(e,t,r)?[]:null}processSegmentAgainstRoute(a,e,t,r){if(a.redirectTo||!Go(a,e,t,r))return null;let l,d=[],o=[];if("**"===a.path){const b=t.length>0?Bo(t).parameters:{};l=new ms(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ba(a),un(a),a.component,a,wh(e),uo(e)+t.length,da(a))}else{const b=oo(e,a,t);if(!b.matched)return null;d=b.consumedSegments,o=t.slice(b.lastChild),l=new ms(d,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ba(a),un(a),a.component,a,wh(e),uo(e)+d.length,da(a))}const s=function Td(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(a),{segmentGroup:c,slicedSegments:u}=Oa(e,d,o,s.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const b=this.processChildren(s,c);return null===b?null:[new pr(l,b)]}if(0===s.length&&0===u.length)return[new pr(l,[])];const h=un(a)===r,m=this.processSegment(s,c,u,h?Ye:r);return null===m?null:[new pr(l,m)]}}function $o(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function yh(n){const a=[],e=new Set;for(const t of n){if(!$o(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=yh(t.children);a.push(new pr(t.value,r))}return a.filter(t=>!e.has(t))}function wh(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function uo(n){let a=n,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function Ba(n){return n.data||{}}function da(n){return n.resolve||{}}function Jo(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Md(n){return(0,nn.w)(a=>{const e=n(a);return e?(0,dn.D)(e).pipe((0,dt.U)(()=>a)):(0,Ne.of)(a)})}class Or extends class Mn{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Sd=new i.OlP("ROUTES");class Jf{constructor(a,e,t,r){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=r}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe((0,dt.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e);const d=l.create(a);return new tc(Oo(d.injector.get(Sd,void 0,i.XFs.Self|i.XFs.Optional)).map(ph),d)}),(0,Yn.K)(l=>{throw e._loader$=void 0,l}));return e._loader$=new Gs.c(r,()=>new Ee.xQ).pipe((0,re.x)()),e._loader$}loadModuleFactory(a){return hr(a()).pipe((0,O.zg)(e=>e instanceof i.YKP?(0,Ne.of)(e):(0,dn.D)(this.compiler.compileModuleAsync(e))))}}class Qf{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function z_(n){throw n}function Ed(n,a,e){return a.parse("/")}function vs(n,a){return(0,Ne.of)(null)}const oc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ot={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let C=(()=>{class n{constructor(e,t,r,l,d,o,s){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ee.xQ,this.errorHandler=z_,this.malformedUriErrorHandler=Ed,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vs,afterPreactivation:vs},this.urlHandlingStrategy=new Qf,this.routeReuseStrategy=new Or,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=function Js(){return new hs(new Lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Jf(d,o,m=>this.triggerEvent(new Lo(m)),m=>this.triggerEvent(new Zs(m))),this.routerState=Lf(this.currentUrlTree,this.rootComponentType),this.transitions=new $i({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,zt.h)(r=>0!==r.id),(0,dt.U)(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,nn.w)(r=>{let l=!1,d=!1;return(0,Ne.of)(r).pipe((0,Q.b)(o=>{this.currentNavigation={id:o.id,initialUrl:o.currentRawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,nn.w)(o=>{const s=this.browserUrlTree.toString(),c=!this.navigated||o.extractedUrl.toString()!==s||s!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return I(o.source)&&(this.browserUrlTree=o.extractedUrl),(0,Ne.of)(o).pipe((0,nn.w)(h=>{const m=this.transitions.getValue();return t.next(new yt(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),m!==this.transitions.getValue()?dr.E:Promise.resolve(h)}),function Wo(n,a,e,t){return(0,nn.w)(r=>function qn(n,a,e,t,r){return new Cd(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,dt.U)(l=>Object.assign(Object.assign({},r),{urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Q.b)(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function ho(n,a,e,t,r){return(0,O.zg)(l=>function Ji(n,a,e,t,r="emptyOnly",l="legacy"){try{const d=new bh(n,a,e,t,r,l).recognize();return null===d?_h(new Ir):(0,Ne.of)(d)}catch(d){return _h(d)}}(n,a,l.urlAfterRedirects,e(l.urlAfterRedirects),t,r).pipe((0,dt.U)(d=>Object.assign(Object.assign({},l),{targetSnapshot:d}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Q.b)(h=>{if("eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const m=new mi(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(m)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:m,extractedUrl:b,source:j,restoredState:ie,extras:pe}=o,Ue=new yt(m,this.serializeUrl(b),j,ie);t.next(Ue);const Tt=Lf(b,this.rootComponentType).snapshot;return(0,Ne.of)(Object.assign(Object.assign({},o),{targetSnapshot:Tt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},pe),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=o.rawUrl,o.resolve(null),dr.E}),Md(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:m,replaceUrl:b}}=o;return this.hooks.beforePreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!m,replaceUrl:!!b})}),(0,Q.b)(o=>{const s=new sa(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}),(0,dt.U)(o=>Object.assign(Object.assign({},o),{guards:Uf(o.targetSnapshot,o.currentSnapshot,this.rootContexts)})),function vd(n,a){return(0,O.zg)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,Ne.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function ac(n,a,e,t){return(0,dn.D)(n).pipe((0,O.zg)(r=>function Zo(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Ne.of)(!0);const d=l.map(o=>{const s=rc(o,a,r);let c;if(function bd(n){return n&&Pr(n.canDeactivate)}(s))c=hr(s.canDeactivate(n,a,e,t));else{if(!Pr(s))throw new Error("Invalid CanDeactivate guard");c=hr(s(n,a,e,t))}return c.pipe((0,W.P)())});return(0,Ne.of)(d).pipe(ic())}(r.component,r.route,e,a,t)),(0,W.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,O.zg)(o=>o&&function _d(n){return"boolean"==typeof n}(o)?function mh(n,a,e,t){return(0,dn.D)(a).pipe((0,Er.b)(r=>Tn(function gh(n,a){return null!==n&&a&&a(new Io(n)),(0,Ne.of)(!0)}(r.route.parent,t),function qf(n,a){return null!==n&&a&&a(new $s(n)),(0,Ne.of)(!0)}(r.route,t),function Gf(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(d=>function zf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(d)).filter(d=>null!==d).map(d=>Kn(()=>{const o=d.guards.map(s=>{const c=rc(s,d.node,e);let u;if(function uh(n){return n&&Pr(n.canActivateChild)}(c))u=hr(c.canActivateChild(t,n));else{if(!Pr(c))throw new Error("Invalid CanActivateChild guard");u=hr(c(t,n))}return u.pipe((0,W.P)())});return(0,Ne.of)(o).pipe(ic())}));return(0,Ne.of)(l).pipe(ic())}(n,r.path,e),function sc(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ne.of)(!0);const r=t.map(l=>Kn(()=>{const d=rc(l,a,e);let o;if(function ao(n){return n&&Pr(n.canActivate)}(d))o=hr(d.canActivate(a,n));else{if(!Pr(d))throw new Error("Invalid CanActivate guard");o=hr(d(a,n))}return o.pipe((0,W.P)())}));return(0,Ne.of)(r).pipe(ic())}(n,r.route,e))),(0,W.P)(r=>!0!==r,!0))}(t,l,n,a):(0,Ne.of)(o)),(0,dt.U)(o=>Object.assign(Object.assign({},e),{guardsResult:o})))})}(this.ngModule.injector,o=>this.triggerEvent(o)),(0,Q.b)(o=>{if(er(o.guardsResult)){const c=ds(`Redirecting to "${this.serializeUrl(o.guardsResult)}"`);throw c.url=o.guardsResult,c}const s=new ur(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.triggerEvent(s)}),(0,zt.h)(o=>!!o.guardsResult||(this.restoreHistory(o),this.cancelNavigationTransition(o,""),!1)),Md(o=>{if(o.guards.canActivateChecks.length)return(0,Ne.of)(o).pipe((0,Q.b)(s=>{const c=new rt(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),(0,nn.w)(s=>{let c=!1;return(0,Ne.of)(s).pipe(function Zf(n,a){return(0,O.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ne.of)(e);let l=0;return(0,dn.D)(r).pipe((0,Er.b)(d=>function Ch(n,a,e,t){return function xd(n,a,e,t){const r=Jo(n);if(0===r.length)return(0,Ne.of)({});const l={};return(0,dn.D)(r).pipe((0,O.zg)(d=>function Ah(n,a,e,t){const r=rc(n,a,t);return hr(r.resolve?r.resolve(a,e):r(a,e))}(n[d],a,e,t).pipe((0,Q.b)(o=>{l[d]=o}))),ra(1),(0,O.zg)(()=>Jo(l).length===r.length?(0,Ne.of)(l):dr.E))}(n._resolve,n,a,t).pipe((0,dt.U)(l=>(n._resolvedData=l,n.data=Object.assign(Object.assign({},n.data),ld(n,e).resolve),null)))}(d.route,t,n,a)),(0,Q.b)(()=>l++),ra(1),(0,O.zg)(d=>l===r.length?(0,Ne.of)(e):dr.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Q.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(s),this.cancelNavigationTransition(s,"At least one route resolver didn't emit any value."))}}))}),(0,Q.b)(s=>{const c=new cs(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}))}),Md(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:m,replaceUrl:b}}=o;return this.hooks.afterPreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!m,replaceUrl:!!b})}),(0,dt.U)(o=>{const s=function hd(n,a,e){const t=La(n,a._root,e?e._root:void 0);return new ah(t,a)}(this.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return Object.assign(Object.assign({},o),{targetRouterState:s})}),(0,Q.b)(o=>{this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects)}),((n,a,e)=>(0,dt.U)(t=>(new dh(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,o=>this.triggerEvent(o)),(0,Q.b)({next(){l=!0},complete(){l=!0}}),ve(()=>{var o;l||d||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(o=this.currentNavigation)||void 0===o?void 0:o.id)===r.id&&(this.currentNavigation=null)}),(0,Yn.K)(o=>{if(d=!0,function Dr(n){return n&&n[id]}(o)){const s=er(o.url);s||(this.navigated=!0,this.restoreHistory(r,!0));const c=new ki(r.id,this.serializeUrl(r.extractedUrl),o.message);t.next(c),s?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(o.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||I(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const s=new di(r.id,this.serializeUrl(r.extractedUrl),o);t.next(s);try{r.resolve(this.errorHandler(o))}catch(c){r.reject(c)}}return dr.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},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 l={replaceUrl:!0},d=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(d){const s=Object.assign({},d);delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(l.state=s)}const o=this.parseUrl(e.url);this.scheduleNavigation(o,t,d,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Vf(e),this.config=e.map(ph),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:l,fragment:d,queryParamsHandling:o,preserveFragment:s}=t,c=r||this.routerState.root,u=s?this.currentUrlTree.fragment:d;let h=null;switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),l);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),function oh(n,a,e,t,r){if(0===e.length)return Ia(a.root,a.root,a,t,r);const l=function ys(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ca(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const o={};return ui(l.outlets,(s,c)=>{o[c]="string"==typeof s?s.split("/"):s}),[...r,{outlets:o}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((o,s)=>{0==s&&"."===o||(0==s&&""===o?e=!0:".."===o?a++:""!=o&&r.push(o))}),r):[...r,l]},[]);return new ca(e,a,t)}(e);if(l.toRoot())return Ia(a.root,new Lt([],{}),a,t,r);const d=function to(n,a,e){if(n.isAbsolute)return new ws(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const l=e.snapshot._urlSegment;return new ws(l,l===a.root,0)}const t=Uo(n.commands[0])?0:1;return function pd(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new Error("Invalid number of '../'");r=t.segments.length}return new ws(t,!1,r-l)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,n.numberOfDoubleDots)}(l,a,n),o=d.processChildren?zo(d.segmentGroup,d.index,l.commands):md(d.segmentGroup,d.index,l.commands);return Ia(d.segmentGroup,o,a,t,r)}(c,this.currentUrlTree,e,h,null!=u?u:null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=er(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function H(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new wt(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){var o,s,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,h=I(t)&&u&&!I(u.source),m=u.rawUrl.toString()===e.toString(),b=u.id===(null===(o=this.currentNavigation)||void 0===o?void 0:o.id);if(h&&m&&b)return Promise.resolve(!0);let ie,pe,Ue;d?(ie=d.resolve,pe=d.reject,Ue=d.promise):Ue=new Promise((Ut,wa)=>{ie=Ut,pe=wa});const Tt=++this.navigationId;let at;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),at=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):at=0,this.setTransition({id:Tt,targetPageId:at,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:ie,reject:pe,promise:Ue,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ue.catch(Ut=>Promise.reject(Ut))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){var r,l;if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===d?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===d&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}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){const r=new ki(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function I(n){return"imperative"!==n}let F=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new Ee.xQ,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:ae(this.skipLocationChange),replaceUrl:ae(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:ae(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C),i.Y36(yn),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.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:[i.TTD]}),n})(),J=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Ee.xQ,this.subscription=e.events.subscribe(l=>{l instanceof wt&&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,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const o={skipLocationChange:ae(this.skipLocationChange),replaceUrl:ae(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!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:ae(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C),i.Y36(yn),i.Y36(T.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();function ae(n){return""===n||!!n}class vt{}class Ci{preload(a,e){return(0,Ne.of)(null)}}let Br=(()=>{class n{constructor(e,t,r,l){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=new Jf(r,t,s=>e.triggerEvent(new Lo(s)),s=>e.triggerEvent(new Zs(s)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,zt.h)(e=>e instanceof wt),(0,Er.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const d=l._loadedConfig;r.push(this.processRoutes(d.module,d.routes))}else l.loadChildren&&!l.canLoad?r.push(this.preloadConfig(e,l)):l.children&&r.push(this.processRoutes(e,l.children));return(0,dn.D)(r).pipe((0,qs.J)(),(0,dt.U)(l=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,Ne.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,O.zg)(l=>(t._loadedConfig=l,this.processRoutes(l.module,l.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(vt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Vr=(()=>{class n{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 yt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof wt&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Me&&(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 Me(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Qo=new i.OlP("ROUTER_CONFIGURATION"),q_=new i.OlP("ROUTER_FORROOT_GUARD"),Ts=[T.Ye,{provide:sd,useClass:jo},{provide:C,useFactory:function QC(n,a,e,t,r,l,d={},o,s){const c=new C(null,n,a,e,t,r,Oo(l));return o&&(c.urlHandlingStrategy=o),s&&(c.routeReuseStrategy=s),function W_(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(d,c),d.enableTracing&&c.events.subscribe(u=>{var h,m;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(m=console.groupEnd)||void 0===m||m.call(console)}),c},deps:[sd,si,T.Ye,i.zs3,i.Sil,Sd,Qo,[class vh{},new i.FiY],[class $f{},new i.FiY]]},si,{provide:yn,useFactory:function KC(n){return n.routerState.root},deps:[C]},Br,Ci,class Qt{preload(a,e){return e().pipe((0,Yn.K)(()=>(0,Ne.of)(null)))}},{provide:Qo,useValue:{enableTracing:!1}}];function lc(){return new i.PXZ("Router",C)}let Dd=(()=>{class n{constructor(e,t){}static forRoot(e,t){return{ngModule:n,providers:[Ts,G_(e),{provide:q_,useFactory:JC,deps:[[C,new i.FiY,new i.tp0]]},{provide:Qo,useValue:t||{}},{provide:T.S$,useFactory:$C,deps:[T.lw,[new i.tBr(T.mr),new i.FiY],Qo]},{provide:Vr,useFactory:ZC,deps:[C,T.EM,Qo]},{provide:vt,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Ci},{provide:i.PXZ,multi:!0,useFactory:lc},[Kf,{provide:i.ip1,multi:!0,useFactory:XC,deps:[Kf]},{provide:tA,useFactory:eA,deps:[Kf]},{provide:i.tb,multi:!0,useExisting:tA}]]}}static forChild(e){return{ngModule:n,providers:[G_(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(q_,8),i.LFG(C,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function ZC(n,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new Vr(n,a,e)}function $C(n,a,e={}){return e.useHash?new T.Do(n,a):new T.b0(n,a)}function JC(n){return"guarded"}function G_(n){return[{provide:i.deG,multi:!0,useValue:n},{provide:Sd,multi:!0,useValue:n}]}let Kf=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ee.xQ}appInitializer(){return this.injector.get(T.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const r=new Promise(o=>t=o),l=this.injector.get(C),d=this.injector.get(Qo);return"disabled"===d.initialNavigation?(l.setUpLocationChangeListener(),t(!0)):"enabled"===d.initialNavigation||"enabledBlocking"===d.initialNavigation?(l.hooks.afterPreactivation=()=>this.initNavigation?(0,Ne.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),l.initialNavigation()):t(!0),r})}bootstrapListener(e){const t=this.injector.get(Qo),r=this.injector.get(Br),l=this.injector.get(Vr),d=this.injector.get(C),o=this.injector.get(i.z2F);e===o.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&d.initialNavigation(),r.setUpPreloading(),l.init(),d.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function XC(n){return n.appInitializer.bind(n)}function eA(n){return n.bootstrapListener.bind(n)}const tA=new i.OlP("Router Initializer");let hn=(()=>{class n{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.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l(0,em.k)(r)?t(...r):t(r))):new Hi.y(r=>{nA(n,a,function l(d){r.next(arguments.length>1?Array.prototype.slice.call(arguments):d)},r,e)})}function nA(n,a,e,t,r){let l;if(function rA(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const d=n;n.addEventListener(a,e,r),l=()=>d.removeEventListener(a,e,r)}else if(function $_(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const d=n;n.on(a,e),l=()=>d.off(a,e)}else if(function _M(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const d=n;n.addListener(a,e),l=()=>d.removeListener(a,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let d=0,o=n.length;d0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Q_=1;const rm=Promise.resolve(),xh={};function Fi(n){return n in xh&&(delete xh[n],!0)}const am={setImmediate(n){const a=Q_++;return xh[a]=!0,rm.then(()=>Fi(a)&&n()),a},clearImmediate(n){Fi(n)}},om=new class K_ extends nm.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,r=-1,l=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++r0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=am.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(am.clearImmediate(e),a.scheduled=void 0)}});var Mh=x(353),X_=x(826),eb=x(9054);class yM{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new wM(a,this.durationSelector))}}class wM extends X_.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(a)}catch(r){return this.destination.error(r)}const t=(0,eb.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Ko(n){return!(0,em.k)(n)&&n-parseFloat(n)+1>=0}function Sn(n=0,a,e){let t=-1;return Ko(a)?t=Number(a)<1?1:Number(a):(0,ls.K)(a)&&(e=a),(0,ls.K)(e)||(e=Mh.P),new Hi.y(r=>{const l=Ko(n)?n:+n-e.now();return e.schedule(lm,l,{index:0,period:t,subscriber:r})})}function lm(n){const{index:a,period:e,subscriber:t}=n;if(t.next(a),!t.closed){if(-1===e)return t.complete();n.index=a+1,this.schedule(n,e)}}function cm(n,a=Mh.P){return function sA(n){return function(e){return e.lift(new yM(n))}}(()=>Sn(n,a))}function Je(n){return a=>a.lift(new En(n))}class En{constructor(a){this.notifier=a}call(a,e){const t=new Pd(a),r=(0,eb.D)(t,this.notifier);return r&&!t.seenValue?(t.add(r),e.subscribe(t)):t}}class Pd extends X_.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,r,l){this.seenValue=!0,this.complete()}notifyComplete(){}}let Rd;try{Rd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Rd=!1}let Xo,bi=(()=>{class n{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&&!Rd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const tb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function dm(){if(Xo)return Xo;if("object"!=typeof document||!document)return Xo=new Set(tb),Xo;let n=document.createElement("input");return Xo=new Set(tb.filter(a=>(n.setAttribute("type",a),n.type===a))),Xo}let Ld,Sh,xs,Od;function Va(n){return function ib(){if(null==Ld&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ld=!0}))}finally{Ld=Ld||!1}return Ld}()?n:!!n.capture}function nb(){if(null==xs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return xs=!1,xs;if("scrollBehavior"in document.documentElement.style)xs=!0;else{const n=Element.prototype.scrollTo;xs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return xs}function Id(){if("object"!=typeof document||!document)return 0;if(null==Sh){const n=document.createElement("div"),a=n.style;n.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",n.appendChild(e),document.body.appendChild(n),Sh=0,0===n.scrollLeft&&(n.scrollLeft=1,Sh=0===n.scrollLeft?1:2),n.remove()}return Sh}function Eh(n){if(function oA(){if(null==Od){const n="undefined"!=typeof document?document.head:null;Od=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Od}()){const a=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function ja(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function ha(n){return n.composedPath?n.composedPath()[0]:n.target}function um(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const lA=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function cA(){return(0,i.f3M)(T.K0)}}),dA=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let xi=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function rb(n){const a=(null==n?void 0:n.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?dA.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(lA,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Dh=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Ee.xQ,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 Hi.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(cm(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ne.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,zt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=Qi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ua(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(bi),i.LFG(T.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hh=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new Ee.xQ,this._elementScrolled=new Hi.y(d=>this.ngZone.runOutsideAngular(()=>ua(this.elementRef.nativeElement,"scroll").pipe(Je(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,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!=Id()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Id()?e.left=e.right:1==Id()&&(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;nb()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==Id()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==Id()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.R0b),i.Y36(xi,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Na=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new Ee.xQ,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.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,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(cm(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 n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b),i.LFG(T.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),el=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc,cc,mr],dc,mr]}),n})();class jd{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 tl extends jd{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class po extends jd{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}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 hm extends jd{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class pm{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof tl?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof po?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof hm?(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 gA extends pm{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const o=d.element,s=this._document.createComment("dom-portal");o.parentNode.insertBefore(s,o),this.outletElement.appendChild(o),this._attachedPortal=d,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(o,s)})},this._document=l}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),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{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);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 _A=(()=>{class n extends po{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.qOj]}),n})(),Ya=(()=>{class n extends pm{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,o=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(o,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(d,o)})},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,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,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);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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),il=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Mi=x(6787);class hb{constructor(a,e){this.predicate=a,this.inclusive=e}call(a,e){return e.subscribe(new pb(a,this.predicate,this.inclusive))}}class pb extends Nn.L{constructor(a,e,t){super(a),this.predicate=e,this.inclusive=t,this.index=0}_next(a){const e=this.destination;let t;try{t=this.predicate(a,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(a,t)}nextOrComplete(a,e){const t=this.destination;Boolean(e)?t.next(a):(this.inclusive&&t.next(a),t.complete())}}function Ki(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const Lb=nb();class Ib{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=zi(-this._previousScrollPosition.left),a.style.top=zi(-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,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Lb&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Lb&&(t.scrollBehavior=l,r.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 YA{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 nr{enable(){}disable(){}attach(){}}function wm(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function Ob(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class s0{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();wm(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 o0=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new nr,this.close=d=>new YA(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Ib(this._viewportRuler,this._document),this.reposition=d=>new s0(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Dh),i.LFG(Na),i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class fc{constructor(a){if(this.scrollStrategy=new nr,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 Cm{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class zA{constructor(a,e,t,r,l,d,o,s,c){this._portalOutlet=a,this._host=e,this._pane=t,this._config=r,this._ngZone=l,this._keyboardDispatcher=d,this._document=o,this._location=s,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Ee.xQ,this._attachments=new Ee.xQ,this._detachments=new Ee.xQ,this._locationChanges=he.w.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new Ee.xQ,this._outsidePointerEvents=new Ee.xQ,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){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,jt.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),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=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},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=zi(this._config.width),a.height=zi(this._config.height),a.minWidth=zi(this._config.minWidth),a.minHeight=zi(this._config.minHeight),a.maxWidth=zi(this._config.maxWidth),a.maxHeight=zi(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._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const r=Hd(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(Je((0,Mi.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.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let Am=(()=>{class n{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||um()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;l{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let o of this._preferredPositions){let s=this._getOriginPoint(a,r,o),c=this._getOverlayPoint(s,e,o),u=this._getOverlayFit(c,e,t,o);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!d||d.overlayFit.visibleAreas&&(s=u,o=c)}return this._isPushed=!1,void this._applyPosition(o.position,o.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&&sl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vm),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,l;if("center"==t.originX)r=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,o=this._isRtl()?a.left:a.right;r="start"==t.originX?d:o}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=xm(e);let{x:d,y:o}=a,s=this._getOffset(r,"x"),c=this._getOffset(r,"y");s&&(d+=s),c&&(o+=c);let m=0-o,b=o+l.height-t.height,j=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ie=this._subtractOverflows(l.height,m,b),pe=j*ie;return{visibleArea:pe,isCompletelyWithinViewport:l.width*l.height===pe,fitsInViewportVertically:ie===l.height,fitsInViewportHorizontally:j==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=Bb(this._overlayRef.getConfig().minHeight),o=Bb(this._overlayRef.getConfig().minWidth),c=a.fitsInViewportHorizontally||null!=o&&o<=l;return(a.fitsInViewportVertically||null!=d&&d<=r)&&c}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=xm(e),l=this._viewportRect,d=Math.max(a.x+r.width-l.width,0),o=Math.max(a.y+r.height-l.height,0),s=Math.max(l.top-t.top-a.y,0),c=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:a.xj&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-j/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)m=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),j=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>j&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-j/2)}return{top:d,left:h,bottom:o,right:m,width:u,height:l}}_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 l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=zi(t.height),r.top=zi(t.top),r.bottom=zi(t.bottom),r.width=zi(t.width),r.left=zi(t.left),r.right=zi(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",l&&(r.maxHeight=zi(l)),d&&(r.maxWidth=zi(d))}this._lastBoundingBoxSize=t,sl(this._boundingBox.style,r)}_resetBoundingBoxStyles(){sl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){sl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();sl(t,this._getExactOverlayY(e,a,u)),sl(t,this._getExactOverlayX(e,a,u))}else t.position="static";let o="",s=this._getOffset(e,"x"),c=this._getOffset(e,"y");s&&(o+=`translateX(${s}px) `),c&&(o+=`translateY(${c}px)`),t.transform=o.trim(),d.maxHeight&&(r?t.maxHeight=zi(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=zi(d.maxWidth):l&&(t.maxWidth="")),sl(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=zi(l.y),r}_getExactOverlayX(a,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=zi(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ob(a,t),isOriginOutsideView:wm(a,t),isOverlayClipped:Ob(e,t),isOverlayOutsideView:wm(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?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Hd(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 i.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 sl(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function Bb(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(qA);return e&&"px"!==e?null:parseFloat(a)}return n||null}function xm(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Mm="cdk-global-overlay-wrapper";class GA{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}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(Mm),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-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._justifyContent="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:l,maxWidth:d,maxHeight:o}=t,s=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||o&&"100%"!==o&&"100vh"!==o);a.position=this._cssPosition,a.marginLeft=s?"0":this._leftOffset,a.marginTop=c?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"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(Mm),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Ga=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new GA}flexibleConnectedTo(e){return new Tm(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Na),i.LFG(T.K0),i.LFG(bi),i.LFG(Am))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),WA=(()=>{class n extends Oh{constructor(e){super(e),this._keydownListener=t=>{const r=this._attachedOverlays;for(let l=r.length-1;l>-1;l--)if(r[l]._keydownEvents.observers.length>0){r[l]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZA=(()=>{class n extends Oh{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=ha(r)},this._clickListener=r=>{const l=ha(r),d="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const c=o[s];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(l)||c.overlayElement.contains(d))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),d0=0,_r=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=o,this._ngZone=s,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=m}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new fc(e);return d.direction=d.direction||this._directionality.value,new zA(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+d0++,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(i.z2F)),new gA(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(o0),i.LFG(Am),i.LFG(i._Vd),i.LFG(Ga),i.LFG(WA),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(T.K0),i.LFG(xi),i.LFG(T.Ye),i.LFG(ZA))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const $A=[{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"}],Vb=new i.OlP("cdk-connected-overlay-scroll-strategy");let jb=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Bh=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=he.w.EMPTY,this._attachSubscription=he.w.EMPTY,this._detachSubscription=he.w.EMPTY,this._positionSubscription=he.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new po(t,r),this._scrollStrategyFactory=l,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=$A);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&&!Ki(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 fc({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 jb?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(function bA(n,a=!1){return e=>e.lift(new hb(n,a))}(()=>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 n.\u0275fac=function(e){return new(e||n)(i.Y36(_r),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Vb),i.Y36(xi,8))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})();const QA={provide:Vb,deps:[_r],useFactory:function JA(n){return()=>n.scrollStrategies.reposition()}};let go=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[_r,QA],imports:[[dc,il,el],el]}),n})();var ol=x(13);function Vh(n){return a=>a.lift(new Yb(n))}class Yb{constructor(a){this.total=a}call(a,e){return e.subscribe(new KA(a,this.total))}}class KA extends Nn.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}function ll(n,a){return e=>e.lift(new Sm(n,a))}class Sm{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new u0(a,this.compare,this.keySelector))}}class u0 extends Nn.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:r}=this;e=r?r(a):a}catch(r){return this.destination.error(r)}let t=!1;if(this.hasKey)try{const{compare:r}=this;t=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let Ub=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Em=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Qi(e);return new Hi.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Ee.xQ,r=this._mutationObserverFactory.create(l=>t.next(l));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 n.\u0275fac=function(e){return new(e||n)(i.LFG(Ub))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.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=_i(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,ol.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Em),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),zd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Ub]}),n})();function cl(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const qb="cdk-describedby-message",Hm="cdk-describedby-host";let Fh=0,km=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Fh++,this._document=e}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=qd(t,r);"string"!=typeof t?(mc(t),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const d=qd(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const o=this._messageRegistry.get(d);o&&0===o.referenceCount&&this._deleteMessageElement(d)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Hm}="${this._id}"]`);for(let r=0;r0!=r.indexOf(qb));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function zb(n,a,e){const t=cl(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Hm,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function Es(n,a,e){const r=cl(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Hm)}_isElementDescribedByMessage(e,t){const r=cl(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function qd(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function mc(n){n.id||(n.id=`${qb}-${Fh++}`)}class Gb{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ee.xQ,this._typeaheadSubscription=he.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ee.xQ,this.change=new Ee.xQ,a instanceof i.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,Q.b)(e=>this._pressedLetters.push(e)),(0,ol.b)(a),(0,zt.h)(()=>this._pressedLetters.length>0),(0,dt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-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||Ki(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),r=e[t];this._activeItem=null==r?null:r,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 i.n_E?this._items.toArray():this._items}}class Pm extends Gb{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class dl extends Gb{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 Nh=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Rm(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ev(n){try{return n.frameElement}catch(a){return null}}(function rv(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Jb(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Jb(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _c(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function nv(n){return!function iv(n){return function gc(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function tv(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function Wb(n){return function Zb(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||$b(n))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $b(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Jb(n){if(!$b(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class av{constructor(a,e,t,r,l=!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,l||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 null==t||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,jt.q)(1)).subscribe(a)}}let Lm=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new av(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Nh),i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jr=(()=>{class n{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=ja(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),n})();function Yh(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Uh(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const dv=new i.OlP("cdk-input-modality-detector-options"),uv={ignoreKeys:[18,17,224,91,16]},Gd=Va({passive:!0,capture:!0});let Kb=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new $i(null),this._lastTouchMs=0,this._onKeydown=d=>{var o,s;(null===(s=null===(o=this._options)||void 0===o?void 0:o.ignoreKeys)||void 0===s?void 0:s.some(c=>c===d.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=ha(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Yh(d)?"keyboard":"mouse"),this._mostRecentTarget=ha(d))},this._onTouchstart=d=>{Uh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ha(d))},this._options=Object.assign(Object.assign({},uv),l),this.modalityDetected=this._modality.pipe(Vh(1)),this.modalityChanged=this.modalityDetected.pipe(ll()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Gd),r.addEventListener("mousedown",this._onMousedown,Gd),r.addEventListener("touchstart",this._onTouchstart,Gd)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Gd),document.removeEventListener("mousedown",this._onMousedown,Gd),document.removeEventListener("touchstart",this._onTouchstart,Gd))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b),i.LFG(T.K0),i.LFG(dv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hv=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function pv(){return null}}),p0=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let fv=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>new Promise(o=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,o(),"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l){this._elementRef=e,this._liveAnnouncer=t,this._contentObserver=r,this._ngZone=l,this._politeness="polite"}get politeness(){return this._politeness}set politeness(e){this._politeness="off"===e||"assertive"===e?e:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(fv),i.Y36(Em),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),n})();const mv=new i.OlP("cdk-focus-monitor-default-options"),Wd=Va({passive:!0,capture:!0});let rr=(()=>{class n{constructor(e,t,r,l,d){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 Ee.xQ,this._rootNodeFocusAndBlurListener=o=>{const s=ha(o),c="focus"===o.type?this._onFocus:this._onBlur;for(let u=s;u;u=u.parentElement)c.call(this,o,u)},this._document=l,this._detectionMode=(null==d?void 0:d.detectionMode)||0}monitor(e,t=!1){const r=Qi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ne.of)(null);const l=Eh(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const o={checkChildren:t,subject:new Ee.xQ,rootNode:l};return this._elementInfo.set(r,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const t=Qi(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 l=Qi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([o,s])=>this._originChanged(o,t,s)):(this._setOrigin(t),"function"==typeof l.focus&&l.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:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0: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),l=ha(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),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.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.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,Wd),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wd)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Je(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!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,Wd),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wd),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.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(bi),i.LFG(Kb),i.LFG(T.K0,8),i.LFG(mv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gv=(()=>{class n{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new i.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(rr))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const Fr="cdk-high-contrast-black-on-white",_v="cdk-high-contrast-white-on-black",Xb="cdk-high-contrast-active";let Bm=(()=>{class n{constructor(e,t){this._platform=e,this._document=t}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,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Xb),e.remove(Fr),e.remove(_v),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Xb),e.add(Fr)):2===t&&(e.add(Xb),e.add(_v))}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Bm))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cc,zd]]}),n})();class Vm{}const _o="*";function ei(n,a){return{type:7,name:n,definitions:a,options:{}}}function ct(n,a=null){return{type:4,styles:a,timings:n}}function ey(n,a=null){return{type:3,steps:n,options:a}}function qh(n,a=null){return{type:2,steps:n,options:a}}function He(n){return{type:6,styles:n,offset:null}}function Dt(n,a,e){return{type:0,name:n,styles:a,options:e}}function ul(n){return{type:5,steps:n}}function ft(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function ty(n=null){return{type:9,options:n}}function Dn(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function bc(n){Promise.resolve(null).then(n)}class Zd{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(a)}onDone(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(){bc(()=>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}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 iy{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 l=this.players.length;0==l?bc(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,o)=>Math.max(d,o.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}}function Wa(){return"undefined"!=typeof window&&void 0!==window.document}function hl(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Pi(n){switch(n.length){case 0:return new Zd;case 1:return n[0];default:return new iy(n)}}function bo(n,a,e,t,r={},l={}){const d=[],o=[];let s=-1,c=null;if(t.forEach(u=>{const h=u.offset,m=h==s,b=m&&c||{};Object.keys(u).forEach(j=>{let ie=j,pe=u[j];if("offset"!==j)switch(ie=a.normalizePropertyName(ie,d),pe){case"!":pe=r[j];break;case _o:pe=l[j];break;default:pe=a.normalizeStyleValue(j,ie,pe,d)}b[ie]=pe}),m||o.push(b),c=b,s=h}),d.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${d.join(u)}`)}return o}function yc(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&ar(e,"start",n)));break;case"done":n.onDone(()=>t(e&&ar(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&ar(e,"destroy",n)))}}function ar(n,a,e){const t=e.totalTime,l=Jd(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,null==t?n.totalTime:t,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function Jd(n,a,e,t,r="",l=0,d){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function pn(n,a,e){let t;return n instanceof Map?(t=n.get(a),t||n.set(a,t=e)):(t=n[a],t||(t=n[a]=e)),t}function pl(n){const a=n.indexOf(":");return[n.substring(1,a),n.substr(a+1)]}let yo=(n,a)=>!1,fl=(n,a,e)=>[];(hl()||"undefined"!=typeof Element)&&(yo=Wa()?(n,a)=>{for(;a&&a!==document.documentElement;){if(a===n)return!0;a=a.parentNode||a.host}return!1}:(n,a)=>n.contains(a),fl=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Nr=null,ml=!1;function gl(n){Nr||(Nr=function ny(){return"undefined"!=typeof document?document.body:null}()||{},ml=!!Nr.style&&"WebkitAppearance"in Nr.style);let a=!0;return Nr.style&&!function wc(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Nr.style,!a&&ml&&(a="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Nr.style)),a}const Fm=yo,Nm=fl;let Ym=(()=>{class n{validateStyleProperty(e){return gl(e)}matchesElement(e,t){return!1}containsElement(e,t){return Fm(e,t)}query(e,t,r){return Nm(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,o=[],s){return new Zd(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Gh=(()=>{class n{}return n.NOOP=new Ym,n})();const zm="ng-enter",Kd="ng-leave",Wh="ng-trigger",Xd=".ng-trigger",qm="ng-animating",Gm=".ng-animating";function _l(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Zh(parseFloat(a[1]),a[2])}function Zh(n,a){return"s"===a?1e3*n:n}function $h(n,a,e){return n.hasOwnProperty("duration")?n:function sy(n,a,e){let r,l=0,d="";if("string"==typeof n){const o=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return a.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=Zh(parseFloat(o[1]),o[2]);const s=o[3];null!=s&&(l=Zh(parseFloat(s),o[4]));const c=o[5];c&&(d=c)}else r=n;if(!e){let o=!1,s=a.length;r<0&&(a.push("Duration values below 0 are not allowed for this animation step."),o=!0),l<0&&(a.push("Delay values below 0 are not allowed for this animation step."),o=!0),o&&a.splice(s,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:l,easing:d}}(n,a,e)}function Cc(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function bl(n,a,e={}){if(a)for(let t in n)e[t]=n[t];else Cc(n,e);return e}function ly(n,a,e){return e?a+":"+e+";":""}function Jh(n){let a="";for(let e=0;e{const r=wo(t);e&&!e.hasOwnProperty(t)&&(e[t]=n.style[r]),n.style[r]=a[t]}),hl()&&Jh(n))}function yl(n,a){n.style&&(Object.keys(a).forEach(e=>{const t=wo(e);n.style[t]=""}),hl()&&Jh(n))}function Qh(n){return Array.isArray(n)?1==n.length?n[0]:qh(n):n}const cy=new RegExp("{{\\s*(.+?)\\s*}}","g");function dy(n){let a=[];if("string"==typeof n){let e;for(;e=cy.exec(n);)a.push(e[1]);cy.lastIndex=0}return a}function eu(n,a,e){const t=n.toString(),r=t.replace(cy,(l,d)=>{let o=a[d];return a.hasOwnProperty(d)||(e.push(`Please provide a value for the animation param ${d}`),o=""),o.toString()});return r==t?n:r}function Wm(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const wv=/-+([a-z0-9])/g;function wo(n){return n.replace(wv,(...a)=>a[1].toUpperCase())}function Cv(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function sr(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function tu(n,a){return window.getComputedStyle(n)[a]}function hy(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function vv(n,a,e){if(":"==n[0]){const s=function Tv(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof s)return void a.push(s);n=s}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${n}" is not supported`),a;const r=t[1],l=t[2],d=t[3];a.push(py(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&a.push(py(d,r))}(t,e,a)):e.push(n),e}const Xh=new Set(["true","1"]),ep=new Set(["false","0"]);function py(n,a){const e=Xh.has(n)||ep.has(n),t=Xh.has(a)||ep.has(a);return(r,l)=>{let d="*"==n||n==r,o="*"==a||a==l;return!d&&e&&"boolean"==typeof r&&(d=r?Xh.has(n):ep.has(n)),!o&&t&&"boolean"==typeof l&&(o=l?Xh.has(a):ep.has(a)),d&&o}}const xv=new RegExp("s*:selfs*,?","g");function tp(n,a,e){return new Jm(n).build(a,e)}class Jm{constructor(a){this._driver=a}build(a,e){const t=new Mv(e);return this._resetContextStyleTimingState(t),sr(this,Qh(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(o=>{if(this._resetContextStyleTimingState(e),0==o.type){const s=o,c=s.name;c.toString().split(/\s*,\s*/).forEach(u=>{s.name=u,l.push(this.visitState(s,e))}),s.name=c}else if(1==o.type){const s=this.visitTransition(o,e);t+=s.queryCount,r+=s.depCount,d.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:l,transitions:d,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 l=new Set,d=r||{};if(t.styles.forEach(o=>{if(Co(o)){const s=o;Object.keys(s).forEach(c=>{dy(s[c]).forEach(u=>{d.hasOwnProperty(u)||l.add(u)})})}}),l.size){const o=Wm(l.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${o.join(", ")}`)}}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=sr(this,Qh(a.animation),e);return{type:1,matchers:hy(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Ds(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>sr(this,t,e)),options:Ds(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(d=>{e.currentTime=t;const o=sr(this,d,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:l,options:Ds(a.options)}}visitAnimate(a,e){const t=function fy(n,a){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return iu($h(n,a).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=iu(0,0,"");return l.dynamic=!0,l.strValue=t,l}return e=e||$h(t,a),iu(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:He({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=a.styles,o=!1;if(!d){o=!0;const c={};t.easing&&(c.easing=t.easing),d=He(c)}e.currentTime+=t.duration+t.delay;const s=this.visitStyle(d,e);s.isEmptyStep=o,r=s}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=[];Array.isArray(a.styles)?a.styles.forEach(d=>{"string"==typeof d?d==_o?t.push(d):e.errors.push(`The provided style string value ${d} is not allowed.`):t.push(d)}):t.push(a.styles);let r=!1,l=null;return t.forEach(d=>{if(Co(d)){const o=d,s=o.easing;if(s&&(l=s,delete o.easing),!r)for(let c in o)if(o[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:t,easing:l,offset:a.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&Object.keys(d).forEach(o=>{if(!this._driver.validateStyleProperty(o))return void e.errors.push(`The provided animation property "${o}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],c=s[o];let u=!0;c&&(l!=r&&l>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${o}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${l}ms" and "${r}ms"`),u=!1),l=c.startTime),u&&(s[o]={startTime:l,endTime:r}),e.options&&function g0(n,a,e){const t=a.params||{},r=dy(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(`Unable to resolve the local animation param ${l} in the given list of values`)})}(d[o],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let l=0;const d=[];let o=!1,s=!1,c=0;const u=a.steps.map(Ue=>{const Tt=this._makeStyleAst(Ue,e);let at=null!=Tt.offset?Tt.offset:function b0(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(Co(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(Co(n)&&n.hasOwnProperty("offset")){const e=n;a=parseFloat(e.offset),delete e.offset}return a}(Tt.styles),Ut=0;return null!=at&&(l++,Ut=Tt.offset=at),s=s||Ut<0||Ut>1,o=o||Ut0&&l{const at=m>0?Tt==b?1:m*Tt:d[Tt],Ut=at*pe;e.currentTime=j+ie.delay+Ut,ie.duration=Ut,this._validateStyleAst(Ue,e),Ue.offset=at,t.styles.push(Ue)}),t}visitReference(a,e){return{type:8,animation:sr(this,Qh(a.animation),e),options:Ds(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Ds(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Ds(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,d]=function _0(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(xv,"")),n=n.replace(/@\*/g,Xd).replace(/@\w+/g,e=>Xd+"-"+e.substr(1)).replace(/:animating/g,Gm),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,pn(e.collectedStyles,e.currentQuerySelector,{});const o=sr(this,Qh(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:o,originalSelector:a.selector,options:Ds(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:$h(a.timings,e.errors,!0);return{type:12,animation:sr(this,Qh(a.animation),e),timings:t,options:null}}}class Mv{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Co(n){return!Array.isArray(n)&&"object"==typeof n}function Ds(n){return n?(n=Cc(n)).params&&(n.params=function Qm(n){return n?Cc(n):null}(n.params)):n={},n}function iu(n,a,e){return{duration:n,delay:a,easing:e}}function Km(n,a,e,t,r,l,d=null,o=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:o}}class Ac{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 y0=new RegExp(":enter","g"),eg=new RegExp(":leave","g");function nu(n,a,e,t,r,l={},d={},o,s,c=[]){return(new gy).buildKeyframes(n,a,e,t,r,l,d,o,s,c)}class gy{buildKeyframes(a,e,t,r,l,d,o,s,c,u=[]){c=c||new Ac;const h=new au(a,e,c,r,l,u,[]);h.options=s,h.currentTimeline.setStyles([d],null,h.errors,s),sr(this,t,h);const m=h.timelines.filter(b=>b.containsAnimation());if(Object.keys(o).length){let b;for(let j=m.length-1;j>=0;j--){const ie=m[j];if(ie.element===e){b=ie;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([o],null,h.errors,s)}return m.length?m.map(b=>b.buildKeyframes()):[Km(e,[],[],[],0,0,"",!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),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=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 l=e.currentTimeline.currentTime;const d=null!=t.duration?_l(t.duration):null,o=null!=t.delay?_l(t.delay):null;return 0!==d&&a.forEach(s=>{const c=e.appendInstructionToTimeline(s,d,o);l=Math.max(l,c.duration+c.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),sr(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ru);const d=_l(l.delay);r.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>sr(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?_l(a.options.delay):0;a.steps.forEach(d=>{const o=e.createSubContext(a.options);l&&o.delayNextStep(l),sr(this,d,o),r=Math.max(r,o.currentTimeline.currentTime),t.push(o.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return $h(e.params?eu(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 l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.getCurrentStyleProperties().length&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,o=e.createSubContext().currentTimeline;o.easing=t.easing,a.styles.forEach(s=>{o.forwardTime((s.offset||0)*l),o.setStyles(s.styles,s.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?_l(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ru);let d=t;const o=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let s=null;o.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,c);l&&h.delayNextStep(l),c===e.element&&(s=h.currentTimeline),sr(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),s&&(e.currentTimeline.mergeTimelineCollectedStyles(s),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,d=Math.abs(l.duration),o=d*(e.currentQueryTotal-1);let s=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":s=o-s;break;case"full":s=t.currentStaggerTime}const u=e.currentTimeline;s&&u.delayNextStep(s);const h=u.currentTime;sr(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const ru={};class au{constructor(a,e,t,r,l,d,o,s){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ru,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new su(this._driver,e,0),o.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=_l(t.duration)),null!=t.delay&&(r.delay=_l(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(o=>{(!e||!d.hasOwnProperty(o))&&(d[o]=eu(l[o],d,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,l=new au(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=ru,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},l=new _y(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,d){let o=[];if(r&&o.push(this.element),a.length>0){a=(a=a.replace(y0,"."+this._enterClassName)).replace(eg,"."+this._leaveClassName);let c=this._driver.query(this.element,a,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),o.push(...c)}return!l&&0==o.length&&d.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class su{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new su(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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||_o,this._currentKeyframe[e]=_o}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&(this._previousKeyframe.easing=e);const l=r&&r.params||{},d=function tg(n,a){const e={};let t;return n.forEach(r=>{"*"===r?(t=t||Object.keys(a),t.forEach(l=>{e[l]=_o})):bl(r,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(d).forEach(o=>{const s=eu(d[o],l,t);this._pendingStyles[o]=s,this._localTimelineStyles.hasOwnProperty(o)||(this._backFill[o]=this._globalTimelineStyles.hasOwnProperty(o)?this._globalTimelineStyles[o]:_o),this._updateStyle(o,s)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[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){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],r=a._styleSummary[e];(!t||r.time>t.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((o,s)=>{const c=bl(o,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?a.add(u):h==_o&&e.add(u)}),t||(c.offset=s/this.duration),r.push(c)});const l=a.size?Wm(a.values()):[],d=e.size?Wm(e.values()):[];if(t){const o=r[0],s=Cc(o);o.offset=0,s.offset=1,r=[o,s]}return Km(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class _y extends su{constructor(a,e,t,r,l,d,o=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=o,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:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,o=e/d,s=bl(a[0],!1);s.offset=0,l.push(s);const c=bl(a[0],!1);c.offset=ip(o),l.push(c);const u=a.length-1;for(let h=1;h<=u;h++){let m=bl(a[h],!1);m.offset=ip((e+m.offset*t)/d),l.push(m)}t=d,e=0,r="",a=l}return Km(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function ip(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class np{}class ig extends np{normalizePropertyName(a,e){return wo(a)}normalizeStyleValue(a,e,t,r){let l="";const d=t.toString().trim();if(by[e]&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const o=t.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push(`Please provide a CSS unit value for ${a}:${t}`)}return d+l}}const by=(()=>function Dv(n){const a={};return n.forEach(e=>a[e]=!0),a}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function ng(n,a,e,t,r,l,d,o,s,c,u,h,m){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:o,queriedElements:s,preStyleProps:c,postStyleProps:u,totalTime:h,errors:m}}const rp={};class ap{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function rg(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){const r=this._stateStyles["*"],l=this._stateStyles[a],d=r?r.buildStyles(e,t):{};return l?l.buildStyles(e,t):d}build(a,e,t,r,l,d,o,s,c,u){const h=[],m=this.ast.options&&this.ast.options.params||rp,j=this.buildStyles(t,o&&o.params||rp,h),ie=s&&s.params||rp,pe=this.buildStyles(r,ie,h),Ue=new Set,Tt=new Map,at=new Map,Ut="void"===r,wa={params:Object.assign(Object.assign({},m),ie)},ns=u?[]:nu(a,e,this.ast.animation,l,d,j,pe,wa,c,h);let vr=0;if(ns.forEach(jl=>{vr=Math.max(jl.duration+jl.delay,vr)}),h.length)return ng(e,this._triggerName,t,r,Ut,j,pe,[],[],Tt,at,vr,h);ns.forEach(jl=>{const Fl=jl.element,LD=pn(Tt,Fl,{});jl.preStyleProps.forEach(Gu=>LD[Gu]=!0);const B_=pn(at,Fl,{});jl.postStyleProps.forEach(Gu=>B_[Gu]=!0),Fl!==e&&Ue.add(Fl)});const Vl=Wm(Ue.values());return ng(e,this._triggerName,t,r,Ut,j,pe,ns,Vl,Tt,at,vr)}}class yy{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},r=Cc(this.defaultParams);return Object.keys(a).forEach(l=>{const d=a[l];null!=d&&(r[l]=d)}),this.styles.styles.forEach(l=>{if("string"!=typeof l){const d=l;Object.keys(d).forEach(o=>{let s=d[o];s.length>1&&(s=eu(s,r,e));const c=this.normalizer.normalizePropertyName(o,e);s=this.normalizer.normalizeStyleValue(o,c,s,e),t[c]=s})}}),t}}class Cy{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new yy(r.style,r.options&&r.options.params||{},t)}),ag(this.states,"true","1"),ag(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new ap(a,r,this.states))}),this.fallbackTransition=function Ay(n,a,e){return new ap(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,o)=>!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(d=>d.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function ag(n,a,e){n.hasOwnProperty(a)?n.hasOwnProperty(e)||(n[e]=n[a]):n.hasOwnProperty(e)&&(n[a]=n[e])}const vy=new Ac;class Ty{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],r=tp(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=r}_buildPlayer(a,e,t){const r=a.element,l=bo(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations[a];let d;const o=new Map;if(l?(d=nu(this._driver,e,l,zm,Kd,{},{},t,vy,r),d.forEach(u=>{const h=pn(o,u.element,{});u.postStyleProps.forEach(m=>h[m]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),d=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);o.forEach((u,h)=>{Object.keys(u).forEach(m=>{u[m]=this._driver.computeStyle(h,m,_o)})});const c=Pi(d.map(u=>{const h=o.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[a]=c,c.onDestroy(()=>this.destroy(a)),this.players.push(c),c}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,r){const l=Jd(e,"","","");return yc(this._getPlayer(a),t,l,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 l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const sg="ng-animate-queued",og="ng-animate-disabled",sn=[],lg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ur="__ng_removed";class sp{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function Sy(n){return null!=n?n:null}(t?a.value:a),t){const l=Cc(a);delete l.value,this.options=l}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 ou="void",op=new sp(ou);class My{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,qi(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function Ey(n){return"start"==n||"done"==n}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const l=pn(this._elementListeners,a,[]),d={name:e,phase:t,callback:r};l.push(d);const o=pn(this._engine.statesByElement,a,{});return o.hasOwnProperty(e)||(qi(a,Wh),qi(a,Wh+"-"+e),o[e]=op),()=>{this._engine.afterFlush(()=>{const s=l.indexOf(d);s>=0&&l.splice(s,1),this._triggers[e]||delete o[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),d=new cg(this.id,e,a);let o=this._engine.statesByElement.get(a);o||(qi(a,Wh),qi(a,Wh+"-"+e),this._engine.statesByElement.set(a,o={}));let s=o[e];const c=new sp(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&s&&c.absorbOptions(s.options),o[e]=c,s||(s=op),c.value!==ou&&s.value===c.value){if(!function pa(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{yl(a,pe),Yr(a,Ue)})}return}const m=pn(this._engine.playersByElement,a,[]);m.forEach(ie=>{ie.namespaceId==this.id&&ie.triggerName==e&&ie.queued&&ie.destroy()});let b=l.matchTransition(s.value,c.value,a,c.params),j=!1;if(!b){if(!r)return;b=l.fallbackTransition,j=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:s,toState:c,player:d,isFallbackTransition:j}),j||(qi(a,sg),d.onStart(()=>{Tc(a,sg)})),d.onDone(()=>{let ie=this.players.indexOf(d);ie>=0&&this.players.splice(ie,1);const pe=this._engine.playersByElement.get(a);if(pe){let Ue=pe.indexOf(d);Ue>=0&&pe.splice(Ue,1)}}),this.players.push(d),m.push(d),d}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[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,Xd,!0);t.forEach(r=>{if(r[Ur])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),d=new Map;if(l){const o=[];if(Object.keys(l).forEach(s=>{if(d.set(s,l[s].value),this._triggers[s]){const c=this.trigger(a,s,ou,r);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Pi(o).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(l=>{const d=l.name;if(r.has(d))return;r.add(d);const s=this._triggers[d].fallbackTransition,c=t[d]||op,u=new sp(ou),h=new cg(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:s,fromState:c,toState:u,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 l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[Ur];(!l||l===lg)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){qi(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(o=>{if(o.name==t.triggerName){const s=Jd(l,t.triggerName,t.fromState.value,t.toState.value);s._data=a,yc(t.player,o.phase,s,o.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d: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 vc{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,l)=>{}}_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 My(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.length-1;if(t>=0){let r=!1;for(let l=t;l>=0;l--)if(this.driver.containsElement(this._namespaceList[l].hostElement,e)){this._namespaceList.splice(l+1,0,a),r=!0;break}r||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.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){const r=Object.keys(t);for(let l=0;l=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.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),qi(a,og)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),Tc(a,og))}removeNode(a,e,t,r){if(lp(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[Ur]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return lp(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,Xd,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,Gm,!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 Pi(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[Ur];if(t&&t.setForRemoval){if(a[Ur]=lg,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?void 0:e.contains(og))&&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?Pi(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new Ac,r=[],l=new Map,d=[],o=new Map,s=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Xe=>{u.add(Xe);const lt=this.driver.query(Xe,".ng-animate-queued",!0);for(let ut=0;ut{const ut=zm+ie++;j.set(lt,ut),Xe.forEach(Kt=>qi(Kt,ut))});const pe=[],Ue=new Set,Tt=new Set;for(let Xe=0;XeUe.add(Kt)):Tt.add(lt))}const at=new Map,Ut=dp(m,Array.from(Ue));Ut.forEach((Xe,lt)=>{const ut=Kd+ie++;at.set(lt,ut),Xe.forEach(Kt=>qi(Kt,ut))}),a.push(()=>{b.forEach((Xe,lt)=>{const ut=j.get(lt);Xe.forEach(Kt=>Tc(Kt,ut))}),Ut.forEach((Xe,lt)=>{const ut=at.get(lt);Xe.forEach(Kt=>Tc(Kt,ut))}),pe.forEach(Xe=>{this.processLeaveNode(Xe)})});const wa=[],ns=[];for(let Xe=this._namespaceList.length-1;Xe>=0;Xe--)this._namespaceList[Xe].drainQueuedTransitions(e).forEach(ut=>{const Kt=ut.player,Ln=ut.element;if(wa.push(Kt),this.collectedEnterElements.length){const Tr=Ln[Ur];if(Tr&&Tr.setForMove){if(Tr.previousTriggersValues&&Tr.previousTriggersValues.has(ut.triggerName)){const Wu=Tr.previousTriggersValues.get(ut.triggerName),Kc=this.statesByElement.get(ut.element);Kc&&Kc[ut.triggerName]&&(Kc[ut.triggerName].value=Wu)}return void Kt.destroy()}}const Ho=!h||!this.driver.containsElement(h,Ln),Ca=at.get(Ln),Qc=j.get(Ln),Wi=this._buildInstruction(ut,t,Qc,Ca,Ho);if(Wi.errors&&Wi.errors.length)return void ns.push(Wi);if(Ho)return Kt.onStart(()=>yl(Ln,Wi.fromStyles)),Kt.onDestroy(()=>Yr(Ln,Wi.toStyles)),void r.push(Kt);if(ut.isFallbackTransition)return Kt.onStart(()=>yl(Ln,Wi.fromStyles)),Kt.onDestroy(()=>Yr(Ln,Wi.toStyles)),void r.push(Kt);const BD=[];Wi.timelines.forEach(Tr=>{Tr.stretchStartingKeyframe=!0,this.disabledNodes.has(Tr.element)||BD.push(Tr)}),Wi.timelines=BD,t.append(Ln,Wi.timelines),d.push({instruction:Wi,player:Kt,element:Ln}),Wi.queriedElements.forEach(Tr=>pn(o,Tr,[]).push(Kt)),Wi.preStyleProps.forEach((Tr,Wu)=>{const Kc=Object.keys(Tr);if(Kc.length){let Zu=s.get(Wu);Zu||s.set(Wu,Zu=new Set),Kc.forEach(fM=>Zu.add(fM))}}),Wi.postStyleProps.forEach((Tr,Wu)=>{const Kc=Object.keys(Tr);let Zu=c.get(Wu);Zu||c.set(Wu,Zu=new Set),Kc.forEach(fM=>Zu.add(fM))})});if(ns.length){const Xe=[];ns.forEach(lt=>{Xe.push(`@${lt.triggerName} has failed due to:\n`),lt.errors.forEach(ut=>Xe.push(`- ${ut}\n`))}),wa.forEach(lt=>lt.destroy()),this.reportError(Xe)}const vr=new Map,Vl=new Map;d.forEach(Xe=>{const lt=Xe.element;t.has(lt)&&(Vl.set(lt,lt),this._beforeAnimationBuild(Xe.player.namespaceId,Xe.instruction,vr))}),r.forEach(Xe=>{const lt=Xe.element;this._getPreviousPlayers(lt,!1,Xe.namespaceId,Xe.triggerName,null).forEach(Kt=>{pn(vr,lt,[]).push(Kt),Kt.destroy()})});const jl=pe.filter(Xe=>dg(Xe,s,c)),Fl=new Map;cp(Fl,this.driver,Tt,c,_o).forEach(Xe=>{dg(Xe,s,c)&&jl.push(Xe)});const B_=new Map;b.forEach((Xe,lt)=>{cp(B_,this.driver,new Set(Xe),s,"!")}),jl.forEach(Xe=>{const lt=Fl.get(Xe),ut=B_.get(Xe);Fl.set(Xe,Object.assign(Object.assign({},lt),ut))});const Gu=[],ID=[],OD={};d.forEach(Xe=>{const{element:lt,player:ut,instruction:Kt}=Xe;if(t.has(lt)){if(u.has(lt))return ut.onDestroy(()=>Yr(lt,Kt.toStyles)),ut.disabled=!0,ut.overrideTotalTime(Kt.totalTime),void r.push(ut);let Ln=OD;if(Vl.size>1){let Ca=lt;const Qc=[];for(;Ca=Ca.parentNode;){const Wi=Vl.get(Ca);if(Wi){Ln=Wi;break}Qc.push(Ca)}Qc.forEach(Wi=>Vl.set(Wi,Ln))}const Ho=this._buildAnimation(ut.namespaceId,Kt,vr,l,B_,Fl);if(ut.setRealPlayer(Ho),Ln===OD)Gu.push(ut);else{const Ca=this.playersByElement.get(Ln);Ca&&Ca.length&&(ut.parentPlayer=Pi(Ca)),r.push(ut)}}else yl(lt,Kt.fromStyles),ut.onDestroy(()=>Yr(lt,Kt.toStyles)),ID.push(ut),u.has(lt)&&r.push(ut)}),ID.forEach(Xe=>{const lt=l.get(Xe.element);if(lt&<.length){const ut=Pi(lt);Xe.setRealPlayer(ut)}}),r.forEach(Xe=>{Xe.parentPlayer?Xe.syncPlayerEvents(Xe.parentPlayer):Xe.destroy()});for(let Xe=0;Xe!Ho.destroyed);Ln.length?Dy(this,lt,Ln):this.processLeaveNode(lt)}return pe.length=0,Gu.forEach(Xe=>{this.players.push(Xe),Xe.onDone(()=>{Xe.destroy();const lt=this.players.indexOf(Xe);this.players.splice(lt,1)}),Xe.play()}),Gu}elementContainsData(a,e){let t=!1;const r=e[Ur];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,l){let d=[];if(e){const o=this.playersByQueriedElement.get(a);o&&(d=o)}else{const o=this.playersByElement.get(a);if(o){const s=!l||l==ou;o.forEach(c=>{c.queued||!s&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(o=>!(t&&t!=o.namespaceId||r&&r!=o.triggerName))),d}_beforeAnimationBuild(a,e,t){const l=e.element,d=e.isRemovalTransition?void 0:a,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const c=s.element,u=c!==l,h=pn(t,c,[]);this._getPreviousPlayers(c,u,d,o,e.toState).forEach(b=>{const j=b.getRealPlayer();j.beforeDestroy&&j.beforeDestroy(),b.destroy(),h.push(b)})}yl(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,d){const o=e.triggerName,s=e.element,c=[],u=new Set,h=new Set,m=e.timelines.map(j=>{const ie=j.element;u.add(ie);const pe=ie[Ur];if(pe&&pe.removedBeforeQueried)return new Zd(j.duration,j.delay);const Ue=ie!==s,Tt=function Za(n){const a=[];return zr(n,a),a}((t.get(ie)||sn).map(vr=>vr.getRealPlayer())).filter(vr=>!!vr.element&&vr.element===ie),at=l.get(ie),Ut=d.get(ie),wa=bo(0,this._normalizer,0,j.keyframes,at,Ut),ns=this._buildPlayer(j,wa,Tt);if(j.subTimeline&&r&&h.add(ie),Ue){const vr=new cg(a,o,ie);vr.setRealPlayer(ns),c.push(vr)}return ns});c.forEach(j=>{pn(this.playersByQueriedElement,j.element,[]).push(j),j.onDone(()=>function Rv(n,a,e){let t;if(n instanceof Map){if(t=n.get(a),t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}}else if(t=n[a],t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&delete n[a]}return t}(this.playersByQueriedElement,j.element,j))}),u.forEach(j=>qi(j,qm));const b=Pi(m);return b.onDestroy(()=>{u.forEach(j=>Tc(j,qm)),Yr(s,e.toStyles)}),h.forEach(j=>{pn(r,j,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Zd(a.duration,a.delay)}}class cg{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Zd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>yc(a,e,void 0,t))}),this._queuedCallbacks={},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){pn(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 lp(n){return n&&1===n.nodeType}function Lv(n,a){const e=n.style.display;return n.style.display=null!=a?a:"none",e}function cp(n,a,e,t,r){const l=[];e.forEach(s=>l.push(Lv(s)));const d=[];t.forEach((s,c)=>{const u={};s.forEach(h=>{const m=u[h]=a.computeStyle(c,h,r);(!m||0==m.length)&&(c[Ur]=Pv,d.push(c))}),n.set(c,u)});let o=0;return e.forEach(s=>Lv(s,l[o++])),d}function dp(n,a){const e=new Map;if(n.forEach(o=>e.set(o,[])),0==a.length)return e;const r=new Set(a),l=new Map;function d(o){if(!o)return 1;let s=l.get(o);if(s)return s;const c=o.parentNode;return s=e.has(c)?c:r.has(c)?1:d(c),l.set(o,s),s}return a.forEach(o=>{const s=d(o);1!==s&&e.get(s).push(o)}),e}function qi(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function Tc(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function Dy(n,a,e){Pi(e).onDone(()=>n.processLeaveNode(a))}function zr(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class lu{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new vc(a,e,t),this._timelineEngine=new Ty(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const d=a+"-"+r;let o=this._triggerCache[d];if(!o){const s=[],c=tp(this._driver,l,s);if(s.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${s.join("\n - ")}`);o=function wy(n,a,e){return new Cy(n,a,e)}(r,c,this._normalizer),this._triggerCache[d]=o}this._transitionEngine.registerTrigger(e,r,o)}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[l,d]=pl(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[d,o]=pl(t);return this._timelineEngine.listen(d,e,o,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ov=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l={}),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Yr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Yr(this._element,this._initialStyles),this._endStyles&&(Yr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(yl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yl(this._element,this._endStyles),this._endStyles=null),Yr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ug(n){let a=null;const e=Object.keys(n);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:tu(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class cu{validateStyleProperty(a){return gl(a)}matchesElement(a,e){return!1}containsElement(a,e){return Fm(a,e)}query(a,e,t){return Nm(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,d=[]){const s={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(s.easing=l);const c={},u=d.filter(m=>m instanceof up);(function uy(n,a){return 0===n||0===a})(t,r)&&u.forEach(m=>{let b=m.currentSnapshot;Object.keys(b).forEach(j=>c[j]=b[j])}),e=function Av(n,a,e){const t=Object.keys(e);if(t.length&&a.length){let l=a[0],d=[];if(t.forEach(o=>{l.hasOwnProperty(o)||d.push(o),l[o]=e[o]}),d.length)for(var r=1;rbl(m,!1)),c);const h=function Iv(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=ug(a[0]),a.length>1&&(t=ug(a[a.length-1]))):a&&(e=ug(a)),e||t?new Ov(n,e,t):null}(a,e);return new up(a,e,s,h)}}let Vv=(()=>{class n extends Vm{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?qh(e):e;return hg(this._renderer,null,t,"register",[r]),new Hy(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Hy extends class bv{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new jv(this._id,a,e||{},this._renderer)}}class jv{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 hg(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!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function hg(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const uu="@.disabled";let Fv=(()=>{class n{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=(l,d)=>{const o=null==d?void 0:d.parentNode(l);o&&d.removeChild(o,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new pg("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(d,o,e,u.name,u)};return t.data.animation.forEach(s),new ky(this,o,l,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(l=>{const[d,o]=l;d(o)}),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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(lu),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class pg{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==uu?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 ky extends pg{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==uu?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function fg(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.substr(1),d="";return"@"!=l.charAt(0)&&([l,d]=function hp(n){const a=n.indexOf(".");return[n.substring(0,a),n.substr(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,o=>{this.factory.scheduleListenerCallback(o._data||-1,t,o)})}return this.delegate.listen(a,e,t)}}let mg=(()=>{class n extends lu{constructor(e,t,r){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(Gh),i.LFG(np))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Si=new i.OlP("AnimationModuleType"),gg=[{provide:Vm,useClass:Vv},{provide:np,useFactory:function Py(){return new ig}},{provide:lu,useClass:mg},{provide:i.FYo,useFactory:function Ry(n,a,e){return new Fv(n,a,e)},deps:[ke,lu,i.R0b]}],_g=[{provide:Gh,useFactory:()=>new cu},{provide:Si,useValue:"BrowserAnimations"},...gg],Ly=[{provide:Gh,useClass:Ym},{provide:Si,useValue:"NoopAnimations"},...gg];let Iy=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Ly:_g}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:_g,imports:[Ta]}),n})();function Yv(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Uv(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const zv=["*"];let qv=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),Gv=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const Zv=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function Wv(){return!0}});let st=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!um()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Bm),i.LFG(Zv,8),i.LFG(T.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc],dc]}),n})();function fa(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Oe(a)}}}function $a(n,a){return class extends n{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 ma(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Oe(a)}}}function wl(n,a=0){return class extends n{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?_i(e):this.defaultTabIndex}}}function pp(n){return class extends n{constructor(...a){super(...a),this.stateChanges=new Ee.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function bg(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Hi.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 Ao=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function By(){return(0,i.f3M)(i.soG)}});class Ai{constructor(){this._localeChanges=new Ee.xQ,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 br=new i.OlP("mat-date-formats"),Vy=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fp(n,a){const e=Array(n);for(let t=0;t{class n extends Ai{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 fp(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fp(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 fp(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 l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e){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,Object.assign(Object.assign({},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(Vy.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 l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_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 n.\u0275fac=function(e){return new(e||n)(i.LFG(Ao,8),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yg={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 Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ai,useClass:mp}],imports:[[cc]]}),n})(),jy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:br,useValue:yg}],imports:[[Cl]]}),n})(),yr=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$v=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function _p(n,a,e){n.nativeElement.classList.toggle(a,e)}let hu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();class Fy{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Jv={enterDuration:225,exitDuration:150},wg=Va({passive:!0}),Ny=["mousedown","touchstart"],Yy=["mouseup","mouseleave","touchend","touchcancel"];class pu{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Qi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l=Object.assign(Object.assign({},Jv),t.animation);t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function bp(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-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),o=a-r.left,s=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-d+"px",u.style.top=s-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function Qv(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new Fy(this,u,t);return h.state=0,this._activeRipples.add(h),t.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const m=h===this._mostRecentTransientRipple;h.state=1,!t.persistent&&(!m||!this._isPointerDown)&&h.fadeOut()},c),h}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,r=Object.assign(Object.assign({},Jv),a.config.animation);t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Qi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Ny))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Yy),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Yh(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,wg)})})}_removeTriggerEvents(){this._triggerElement&&(Ny.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}),this._pointerUpEventsRegistered&&Yy.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}))}}const fu=new i.OlP("mat-ripple-global-options");let qt=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new pu(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:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(bi),i.Y36(fu,8),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.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"]}),n})(),Ja=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st,cc],st]}),n})(),Cg=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),Ag=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st]]}),n})();const Uy=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),vg=new i.OlP("MatOptgroup");let tT=0;class iT{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let mu=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+tT++,this.onSelectionChange=new i.vpe,this._stateChanges=new Ee.xQ}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)&&!Ki(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 iT(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),xc=(()=>{class n extends mu{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Uy,8),i.Y36(vg,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:zv,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&&(i.F$t(),i.YNc(0,Yv,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Uv,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Cg,T.O5,qt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function zy(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let d=0;d{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Ja,T.ez,st,Ag]]}),n})();function qy(n,a){}class gu{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const Gy={dialogContainer:ei("dialogContainer",[Dt("void, exit",He({opacity:0,transform:"scale(0.7)"})),Dt("enter",He({transform:"none"})),ft("* => enter",ct("150ms cubic-bezier(0, 0, 0.2, 1)",He({transform:"none",opacity:1}))),ft("* => void, * => exit",ct("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",He({opacity:0})))])};let _u=(()=>{class n extends pm{constructor(e,t,r,l,d,o,s,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=r,this._config=d,this._interactivityChecker=o,this._ngZone=s,this._focusMonitor=c,this._animationStateChanged=new i.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=d.ariaLabelledBy||null,this._document=l}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=ja(),r=this._elementRef.nativeElement;(!t||t===this._document.body||t===r||r.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=ja())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ja();return e===t||e.contains(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(i.sBO),i.Y36(T.K0,8),i.Y36(gu),i.Y36(Nh),i.Y36(i.R0b),i.Y36(rr))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(Ya,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},features:[i.qOj]}),n})(),bu=(()=>{class n extends _u{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),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()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._id),i.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._state))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,qy,0,0,"ng-template",0)},directives:[Ya],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Gy.dialogContainer]}}),n})(),rT=0;class Hn{constructor(a,e,t="mat-dialog-"+rT++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Ee.xQ,this._afterClosed=new Ee.xQ,this._beforeClosed=new Ee.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,zt.h)(r=>"opened"===r.state),(0,jt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,zt.h)(r=>"closed"===r.state),(0,jt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,zt.h)(r=>27===r.keyCode&&!this.disableClose&&!Ki(r))).subscribe(r=>{r.preventDefault(),Wy(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Wy(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,zt.h)(e=>"closing"===e.state),(0,jt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();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._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Wy(n,a,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=a),n.close(e)}const qr=new i.OlP("MatDialogData"),Zy=new i.OlP("mat-dialog-default-options"),Tg=new i.OlP("mat-dialog-scroll-strategy"),aT={provide:Tg,deps:[_r],useFactory:function $y(n){return()=>n.scrollStrategies.block()}};let sT=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.xQ,this._afterOpenedAtThisLevel=new Ee.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=Kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wt(void 0))),this._scrollStrategy=o}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){if(t=function k0(n,a){return Object.assign(Object.assign({},a),n)}(t,this._defaultOptions||new gu),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(t),l=this._attachDialogContainer(r,t);if("NoopAnimations"!==this._animationMode){const o=l._animationStateChanged.subscribe(s=>{"opening"===s.state&&(this._dialogAnimatingOpen=!0),"opened"===s.state&&(this._dialogAnimatingOpen=!1,o.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new he.w),this._animationStateSubscriptions.add(o)}const d=this._attachDialogContent(e,l,r,t);return this._lastDialogRef=d,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(d),d.afterClosed().subscribe(()=>this._removeOpenDialog(d)),this.afterOpened.next(d),l._initializeWithAttachedContent(),d}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(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new fc({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const l=i.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:gu,useValue:t}]}),d=new tl(this._dialogContainerType,t.viewContainerRef,l,t.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,t,r,l){const d=new this._dialogRefConstructor(r,t,l.id);if(e instanceof i.Rgc)t.attachTemplatePortal(new po(e,null,{$implicit:l.data,dialogRef:d}));else{const o=this._createInjector(l,d,t),s=t.attachComponentPortal(new tl(e,l.viewContainerRef,o));d.componentInstance=s.instance}return d.updateSize(l.width,l.height).updatePosition(l.position),d}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!l||!l.get(xi,null,i.XFs.Optional))&&d.push({provide:xi,useValue:{value:e.direction,change:(0,Ne.of)()}}),i.zs3.create({parent:l||this._injector,providers:d})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,l)=>{r?l.setAttribute("aria-hidden",r):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),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--){let l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n}),n})(),fn=(()=>{class n extends sT{constructor(e,t,r,l,d,o,s,c){super(e,t,l,o,s,d,Hn,bu,qr,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_r),i.LFG(i.zs3),i.LFG(T.Ye,8),i.LFG(Zy,8),i.LFG(Tg),i.LFG(n,12),i.LFG(Am),i.LFG(Si,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),P0=0,or=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+P0++}ngOnInit(){this._dialogRef||(this._dialogRef=function oT(n,a){let e=n.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn,8),i.Y36(i.SBq),i.Y36(fn))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),kn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),wr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),yu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fn,aT],imports:[[go,il,st],st]}),n})();var Sc=x(6114);let wu=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(C),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(o=>{o.idpFilter&&(this.filterShortname=String(o.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),r=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(r.prompt="consent"),sessionStorage.getItem("mfa_route")&&(r.acr_values="https://refeds.org/profile/mfa",r.prompt="login",r.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:r}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,zt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(o=>{const s=o.split("=");d[s[0]]=s[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,zt.h)(e=>e instanceof wt)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}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}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(e=>(localStorage.setItem("refresh_token",e.refresh_token),!0),()=>!1)}verifyAuthentication(e,t){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(r=>!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(hn),i.LFG(fn),i.LFG(yn),i.LFG(Sc.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Qa(n){return!!n&&(n instanceof Hi.y||"function"==typeof n.lift&&"function"==typeof n.subscribe)}var lT=x(7830);function xg(...n){if(1===n.length){const a=n[0];if((0,em.k)(a))return yp(a,null);if((0,lT.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return yp(e.map(t=>a[t]),e)}}if("function"==typeof n[n.length-1]){const a=n.pop();return yp(n=1===n.length&&(0,em.k)(n[0])?n[0]:n,null).pipe((0,dt.U)(e=>a(...e)))}return yp(n,null)}function yp(n,a){return new Hi.y(e=>{const t=n.length;if(0===t)return void e.complete();const r=new Array(t);let l=0,d=0;for(let o=0;o{c||(c=!0,d++),r[o]=u},error:u=>e.error(u),complete:()=>{l++,(l===t||!c)&&(d===t&&e.next(a?a.reduce((u,h,m)=>(u[h]=r[m],u),{}):r),e.complete())}}))}})}const dT=new class cT extends nm.v{}(class Jy extends im.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var vo=x(9312);class wp extends Nn.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(wp.dispatch,this.delay,new Ky(a,this.destination)))}_next(a){this.scheduleMessage(vo.P.createNext(a))}_error(a){this.scheduleMessage(vo.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(vo.P.createComplete()),this.unsubscribe()}}class Ky{constructor(a,e){this.notification=a,this.destination=e}}var uT=x(5283);class Xy extends Ee.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new hT(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,l=t.length;let d;if(this.closed)throw new ed.N;if(this.isStopped||this.hasError?d=he.w.EMPTY:(this.observers.push(a),d=new uT.W(this,a)),r&&a.add(a=new wp(a,r)),e)for(let o=0;oe&&(d=Math.max(d,l-e)),d>0&&r.splice(0,d),r}}class hT{constructor(a,e){this.time=a,this.value=e}}function Cp(n,a,e){let t;return t=n&&"object"==typeof n?n:{bufferSize:n,windowTime:a,refCount:!1,scheduler:e},r=>r.lift(function pT({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let r,d,l=0,o=!1,s=!1;return function(u){l++,(!r||o)&&(o=!1,r=new Xy(n,a,t),d=u.subscribe({next(m){r.next(m)},error(m){o=!0,r.error(m)},complete(){s=!0,d=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{l--,h.unsubscribe(),d&&!s&&e&&0===l&&(d.unsubscribe(),d=void 0,r=void 0)})}}(t))}class Ec{}let Mg=(()=>{class n extends Ec{getTranslation(e){return(0,Ne.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Sg{}let ew=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Ap(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,d,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in d=Object.create(null),n){if(!Ap(n[l],a[l]))return!1;d[l]=!0}for(l in a)if(!(l in d)&&void 0!==a[l])return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{Eg(a[t])?t in n?e[t]=Dg(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class vp{}let tw=(()=>{class n extends vp{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(),!Ka(e)||!Ka(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,l)=>{let d=this.getValue(t,l);return Ka(d)?d:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Tp{}let iw=(()=>{class n extends Tp{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class nw{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const Hg=new i.OlP("USE_STORE"),kg=new i.OlP("USE_DEFAULT_LANG"),Pg=new i.OlP("DEFAULT_LANGUAGE"),xp=new i.OlP("USE_EXTEND");let Ri=(()=>{class n{constructor(e,t,r,l,d,o=!0,s=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=o,this.isolate=s,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}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);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,jt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ne.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,jt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ne.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||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(Cp(1),(0,jt.q)(1));return this.loadingTranslations=t.pipe((0,dt.U)(r=>this.compiler.compileTranslations(r,e)),Cp(1),(0,jt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},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]?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,r){let l;if(t instanceof Array){let d={},o=!1;for(let s of t)d[s]=this.getParsedResult(e,s,r),Qa(d[s])&&(o=!0);return o?xg(t.map(c=>Qa(d[c])?d[c]:(0,Ne.of)(d[c]))).pipe((0,dt.U)(c=>{let u={};return c.forEach((h,m)=>{u[t[m]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),void 0===l&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),void 0===l){let d={key:t,translateService:this};void 0!==r&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return void 0!==l?l:t}get(e,t){if(!Ka(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Er.b)(r=>Qa(r=this.getParsedResult(r,e,t))?r:(0,Ne.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Qa(r)?r:(0,Ne.of)(r)}}getStreamOnTranslationChange(e,t){if(!Ka(e)||!e.length)throw new Error('Parameter "key" required');return Tn(Kn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,nn.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,Ne.of)(l)})))}stream(e,t){if(!Ka(e)||!e.length)throw new Error('Parameter "key" required');return Tn(Kn(()=>this.get(e,t)),this.onLangChange.pipe((0,nn.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Qa(l)?l:(0,Ne.of)(l)})))}instant(e,t){if(!Ka(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Qa(r)){if(e instanceof Array){let l={};return e.forEach((d,o)=>{l[e[o]]=e[o]}),l}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("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)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 n.\u0275fac=function(e){return new(e||n)(i.LFG(nw),i.LFG(Ec),i.LFG(Tp),i.LFG(vp),i.LFG(Sg),i.LFG(kg),i.LFG(Hg),i.LFG(xp),i.LFG(Pg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ct=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);Qa(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Ap(e,this.lastKey)&&Ap(t,this.lastParams))return this.value;let r;if(Ka(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch(d){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(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ri,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Dc=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:Ec,useClass:Mg},e.compiler||{provide:Tp,useClass:iw},e.parser||{provide:vp,useClass:tw},e.missingTranslationHandler||{provide:Sg,useClass:ew},nw,{provide:Hg,useValue:e.isolate},{provide:kg,useValue:e.useDefaultLang},{provide:xp,useValue:e.extend},{provide:Pg,useValue:e.defaultLanguage},Ri]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:Ec,useClass:Mg},e.compiler||{provide:Tp,useClass:iw},e.parser||{provide:vp,useClass:tw},e.missingTranslationHandler||{provide:Sg,useClass:ew},{provide:Hg,useValue:e.isolate},{provide:kg,useValue:e.useDefaultLang},{provide:xp,useValue:e.extend},{provide:Pg,useValue:e.defaultLanguage},Ri]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),fT=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn))},n.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[kn],pipes:[Ct],styles:[""]}),n})();const mT=["mat-button",""],gT=["*"],aw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lg=$a(fa(ma(class{constructor(n){this._elementRef=n}})));let Ft=(()=>{class n extends Lg{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 l of aw)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(rr),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,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&&i.Gf(qt,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:mT,ngContentSelectors:gT,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&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[qt],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),Gr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Ja,st],st]}),n})();const _T=["connectionContainer"],sw=["inputContainer"],bT=["label"];function ow(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15),i._UZ(3,"div",16),i._UZ(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i.qZA(),i.BQk())}function yT(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function lw(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function O0(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function wT(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Cu(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.YNc(2,lw,4,1,"ng-container",12),i.YNc(3,O0,1,0,"ng-content",12),i.YNc(4,wT,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.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),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function CT(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function Hc(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Au(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function AT(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function B0(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,AT,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const cw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],vT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let TT=0;const dw=new i.OlP("MatError");let To=(()=>{class n{constructor(e,t){this.id="mat-error-"+TT++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:dw,useExisting:n}])]}),n})();const uw={transitionMessages:ei("transitionMessages",[Dt("enter",He({opacity:1,transform:"translateY(0%)"})),ft("void => enter",[He({opacity:0,transform:"translateY(-5px)"}),ct("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),xT=0;const Og=new i.OlP("MatHint");let pw=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+xT++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:Og,useExisting:n}])]}),n})(),Xa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),MT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const ST=new i.OlP("MatPrefix"),mw=new i.OlP("MatSuffix");let gw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:mw,useExisting:n}])]}),n})(),_w=0;const bw=$a(class{constructor(n){this._elementRef=n}},"primary"),kc=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bg=new i.OlP("MatFormField");let Gn=(()=>{class n extends bw{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ee.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+_w++,this._labelId="mat-form-field-label-"+_w++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==s,this.appearance=l&&l.appearance?l.appearance:"legacy",this._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&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(Wt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Je(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Je(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Mi.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Wt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Wt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Je(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,ua(this._label.nativeElement,"transitionend").pipe((0,jt.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(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.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",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*j+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,zd],st]}),n})();function Tu(n){return n&&"function"==typeof n.connect}class Vg{applyChanges(a,e,t,r,l){a.forEachOperation((d,o,s)=>{let c,u;if(null==d.previousIndex){const h=t(d,o,s);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==s?(e.remove(o),u=3):(c=e.get(o),e.move(c,s),u=2);l&&l({context:null==c?void 0:c.context,operation:u,record:d})})}detach(){}}class Li{constructor(a=!1,e,t=!0){this._multiple=a,this._emitChanges=t,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ee.xQ,e&&e.length&&(a?e.forEach(r=>this._markSelected(r)):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(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...a){this._verifyValueAssignment(a),a.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(a){this.isSelected(a)?this.deselect(a):this.select(a)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(a){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._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){}}let Ep=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xu=new i.OlP("_ViewRepeater");let yw=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),Tl=(()=>{class n extends yw{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const lr=new i.OlP("NgValueAccessor"),kT={provide:lr,useExisting:(0,i.Gpc)(()=>Wn),multi:!0},Cw=new i.OlP("CompositionEventMode");let Wn=(()=>{class n extends yw{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Mu(){const n=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(Cw,8))},n.\u0275dir=i.lG2({type:n,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&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([kT]),i.qOj]}),n})();function Hs(n){return null==n||0===n.length}function jg(n){return null!=n&&"number"==typeof n.length}const on=new i.OlP("NgValidators"),ks=new i.OlP("NgAsyncValidators"),PT=/^(?=.{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 Ii{static min(a){return function Fg(n){return a=>{if(Hs(a.value)||Hs(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Hs(a.value)||Hs(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return Aw(a)}static requiredTrue(a){return function vw(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function Pc(n){return Hs(n.value)||PT.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function Tw(n){return a=>Hs(a.value)||!jg(a.value)?null:a.value.lengthjg(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function ga(n){if(!n)return Hp;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(Hs(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 Du(a)}static composeAsync(a){return Sw(a)}}function Aw(n){return Hs(n.value)?{required:!0}:null}function Hp(n){return null}function Su(n){return null!=n}function Rc(n){const a=(0,i.QGY)(n)?(0,dn.D)(n):n;return(0,i.CqO)(a),a}function xw(n){let a={};return n.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function Mw(n,a){return a.map(e=>e(n))}function Eu(n){return n.map(a=>function RT(n){return!n.validate}(a)?a:e=>a.validate(e))}function Du(n){if(!n)return null;const a=n.filter(Su);return 0==a.length?null:function(e){return xw(Mw(e,a))}}function Yg(n){return null!=n?Du(Eu(n)):null}function Sw(n){if(!n)return null;const a=n.filter(Su);return 0==a.length?null:function(e){return xg(Mw(e,a).map(Rc)).pipe((0,dt.U)(xw))}}function kp(n){return null!=n?Sw(Eu(n)):null}function Ug(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function Pp(n){return n._rawValidators}function zg(n){return n._rawAsyncValidators}function qg(n){return n?Array.isArray(n)?n:[n]:[]}function Rp(n,a){return Array.isArray(n)?n.includes(a):n===a}function LT(n,a){const e=qg(a);return qg(n).forEach(r=>{Rp(e,r)||e.push(r)}),e}function Lp(n,a){return qg(a).filter(e=>!Rp(n,e))}class Ip{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=Yg(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=kp(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 Wr extends Ip{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wn extends Ip{get formDirective(){return null}get path(){return null}}class Op{constructor(a){this._cd=a}is(a){var e,t,r;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===r?void 0:r[a])}}let Cr=(()=>{class n extends Op{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Wr,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.qOj]}),n})(),Ew=(()=>{class n extends Op{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[i.qOj]}),n})();function Gg(n,a){return[...a.path,n]}function Ps(n,a){Fp(n,a),a.valueAccessor.writeValue(n.value),function YT(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Zg(n,a)})}(n,a),function Pw(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function Wg(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Zg(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function NT(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function jp(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Np(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Oc(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Fp(n,a){const e=Pp(n);null!==a.validator?n.setValidators(Ug(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=zg(n);null!==a.asyncValidator?n.setAsyncValidators(Ug(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();Oc(a._rawValidators,r),Oc(a._rawAsyncValidators,r)}function Np(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=Pp(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=zg(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return Oc(a._rawValidators,t),Oc(a._rawAsyncValidators,t),e}function Zg(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Hu(n,a){Fp(n,a)}function Jg(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function ku(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Yp(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===Wn?e=l:function Lw(n){return Object.getPrototypeOf(n.constructor)===Tl}(l)?t=l:r=l}),r||t||e||null}function Qg(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}const Up="VALID",zp="INVALID",Bc="PENDING",Vc="DISABLED";function Kg(n){return(Gp(n)?n.validators:n)||null}function Xg(n){return Array.isArray(n)?Yg(n):n||null}function qp(n,a){return(Gp(a)?a.asyncValidators:n)||null}function Bw(n){return Array.isArray(n)?kp(n):n||null}function Gp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Wp=n=>n instanceof Oi,Zp=n=>n instanceof a_,e_=n=>n instanceof s_;function t_(n){return Wp(n)?n.value:n.getRawValue()}function i_(n,a){const e=Zp(n),t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[a])throw new i.vHH(1001,"")}function n_(n,a){Zp(n),n._forEachChild((t,r)=>{if(void 0===a[r])throw new i.vHH(1002,"")})}class r_{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=Xg(this._rawValidators),this._composedAsyncValidatorFn=Bw(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===Up}get invalid(){return this.status===zp}get pending(){return this.status==Bc}get disabled(){return this.status===Vc}get enabled(){return this.status!==Vc}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=Xg(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Bw(a)}addValidators(a){this.setValidators(LT(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(LT(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Lp(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Lp(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=Bc,!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=Vc,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Up,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},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}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Up||this.status===Bc)&&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()?Vc:Up}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Bc,this._hasOwnPendingAsyncValidator=!0;const e=Rc(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){return function Ow(n,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=n;return a.forEach(r=>{t=Zp(t)?t.controls.hasOwnProperty(r)?t.controls[r]:null:e_(t)&&t.at(r)||null}),t}(this,a,".")}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 i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Vc:this.errors?zp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bc)?Bc:this._anyControlsHaveStatus(zp)?zp:Up}_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)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Gp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Oi extends r_{constructor(a=null,e,t){super(Kg(e),qp(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}),Gp(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(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){Qg(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Qg(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){this._isBoxedValue(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}}class a_ extends r_{constructor(a,e,t){super(Kg(e),qp(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={}){n_(this,a),Object.keys(a).forEach(t=>{i_(this,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=>{this.controls[t]&&this.controls[t].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]=t_(e),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 of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),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}}class s_ extends r_{constructor(a,e,t){super(Kg(e),qp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[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={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){n_(this,a),a.forEach((t,r)=>{i_(this,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=>t_(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_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)}}const U0={provide:wn,useExisting:(0,i.Gpc)(()=>jc)},$p=(()=>Promise.resolve(null))();let jc=(()=>{class n extends wn{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new a_({},Yg(e),kp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){$p.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Ps(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){$p.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){$p.then(()=>{const t=this._findContainer(e.path),r=new a_({});Hu(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){$p.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){$p.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,ku(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(on,10),i.Y36(ks,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([U0]),i.qOj]}),n})();const o_={provide:Wr,useExisting:(0,i.Gpc)(()=>Ml)},xl=(()=>Promise.resolve(null))();let Ml=(()=>{class n extends Wr{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new Oi,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Yp(0,l)}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),Jg(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(){Ps(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){xl.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=""===t||t&&"false"!==t;xl.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?Gg(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,9),i.Y36(on,10),i.Y36(ks,10),i.Y36(lr,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([o_]),i.qOj,i.TTD]}),n})(),Vw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),l_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Fw=new i.OlP("NgModelWithFormControlWarning"),q0={provide:Wr,useExisting:(0,i.Gpc)(()=>es)};let es=(()=>{class n extends Wr{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Yp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&jp(t,this,!1),Ps(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Jg(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&jp(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 n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(on,10),i.Y36(ks,10),i.Y36(lr,10),i.Y36(Fw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([q0]),i.qOj,i.TTD]}),n})();const WT={provide:wn,useExisting:(0,i.Gpc)(()=>Rs)};let Rs=(()=>{class n extends wn{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 i.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&&(Np(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 Ps(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){jp(e.control||null,e,!1),Qg(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,ku(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&&(jp(t||null,e),Wp(r)&&(Ps(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Hu(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function $g(n,a){return Np(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Fp(this.form,this),this._oldForm&&Np(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(on,10),i.Y36(ks,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([WT]),i.qOj,i.TTD]}),n})();const Ar={provide:Wr,useExisting:(0,i.Gpc)(()=>u_)};let u_=(()=>{class n extends Wr{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Yp(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Jg(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 Gg(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,13),i.Y36(on,10),i.Y36(ks,10),i.Y36(lr,10),i.Y36(Fw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([Ar]),i.qOj,i.TTD]}),n})(),Fc=(()=>{class n{constructor(){this._validator=Hp}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):Hp,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const Jw={provide:on,useExisting:(0,i.Gpc)(()=>xo),multi:!0};let xo=(()=>{class n extends Fc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function _a(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>Aw}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([Jw]),i.qOj]}),n})(),tC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[l_]]}),n})(),iC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tC]}),n})(),Ou=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Fw,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tC]}),n})(),ax=(()=>{class n{group(e,t=null){const r=this._reduceControls(e);let o,l=null,d=null;return null!=t&&(function nC(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(t)?(l=null!=t.validators?t.validators:null,d=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,d=null!=t.asyncValidator?t.asyncValidator:null)),new a_(r,{asyncValidators:d,updateOn:o,validators:l})}control(e,t,r){return new Oi(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new s_(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return Wp(e)||Zp(e)||e_(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Ou}),n})();const sx=["trigger"],W0=["panel"];function Z0(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function $0(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function J0(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function Q0(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,$0,2,1,"span",10),i.YNc(2,J0,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function ox(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.TgZ(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){return i.CHM(e),i.oxw()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)}),i.Hsn(3,1),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const nf=[[["mat-select-trigger"]],"*"],lx=["mat-select-trigger","*"],rC={transformPanelWrap:ei("transformPanelWrap",[ft("* => void",Dn("@transformPanel",[ty()],{optional:!0}))]),transformPanel:ei("transformPanel",[Dt("void",He({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Dt("showing",He({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Dt("showing-multiple",He({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ft("void => *",ct("120ms cubic-bezier(0, 0, 0.2, 1)")),ft("* => void",ct("100ms 25ms linear",He({opacity:0})))])};let rf=0;const ux=new i.OlP("mat-select-scroll-strategy"),X0=new i.OlP("MAT_SELECT_CONFIG"),aC={provide:ux,deps:[_r],useFactory:function K0(n){return()=>n.scrollStrategies.reposition()}};class hx{constructor(a,e){this.source=a,this.value=e}}const px=ma(wl(fa(pp(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r}})))),fx=new i.OlP("MatSelectTrigger");let sC=(()=>{class n extends px{constructor(e,t,r,l,d,o,s,c,u,h,m,b,j,ie){var pe,Ue,Tt;super(d,l,s,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=o,this._parentFormField=u,this._liveAnnouncer=j,this._defaultOptions=ie,this._panelOpen=!1,this._compareWith=(at,Ut)=>at===Ut,this._uid="mat-select-"+rf++,this._triggerAriaLabelledBy=null,this._destroy=new Ee.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+rf++,this._panelDoneAnimatingStream=new Ee.xQ,this._overlayPanelClass=(null===(pe=this._defaultOptions)||void 0===pe?void 0:pe.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Tt=null===(Ue=this._defaultOptions)||void 0===Ue?void 0:Ue.disableOptionCentering)&&void 0!==Tt&&Tt,this.ariaLabel="",this.optionSelectionChanges=Kn(()=>{const at=this.options;return at?at.changes.pipe(Wt(at),(0,nn.w)(()=>(0,Mi.T)(...at.map(Ut=>Ut.onSelectionChange)))):this._ngZone.onStable.pipe((0,jt.q)(1),(0,nn.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,zt.h)(at=>at),(0,dt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,zt.h)(at=>!at),(0,dt.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ie?void 0:ie.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ie.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(m)||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,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Ii.required))&&void 0!==l&&l}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){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=_i(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Li(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ll(),Je(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Je(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Wt(null),Je(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,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,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!Ki(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const o=this.selected;d.onKeydown(e);const s=this.selected;s&&o!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||Ki(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const o=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(o?s.select():s.deselect())})}else{const o=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&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,jt.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._selectValue(t)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(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(l){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new Pm(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Je(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Je(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,Mi.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Je(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Mi.T)(...this.options.map(t=>t._stateChanges)).pipe(Je(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){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Na),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(yr),i.Y36(i.SBq),i.Y36(xi,8),i.Y36(jc,8),i.Y36(Rs,8),i.Y36(Bg,8),i.Y36(Wr,10),i.$8M("tabindex"),i.Y36(ux),i.Y36(fv),i.Y36(X0,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(sx,5),i.Gf(W0,5),i.Gf(Bh,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),Uc=(()=>{class n extends sC{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 l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Je(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,jt.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=zy(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function nT(n,a,e,t){return ne+t?Math.max(0,n-t+a):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 hx(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const o=0-(e.left+d-(r?l:0)),s=e.right+d-t.width+(r?0:l);o>0?d+=o+8:s>0&&(d-=s+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,o=Math.floor(256/l);let s;return this.disableOptionCentering?0:(s=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-o))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*s-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):o>l?this._adjustPanelDown(o,l,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 l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,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),d=t*e-r;let o;o=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),o+=zy(o,this.options,this.optionGroups);const s=r/2;this._scrollTop=this._calculateOverlayScroll(o,s,d),this._offsetY=this._calculateOverlayOffsetY(o,s,d),this._checkOverlayWithinViewport(d)}_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 n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,fx,5),i.Suo(r,xc,5),i.Suo(r,vg,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.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-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),i.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:[i._Bn([{provide:vu,useExisting:n},{provide:Uy,useExisting:n}]),i.qOj],ngContentSelectors:lx,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&&(i.F$t(nf),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,Z0,2,1,"span",3),i.YNc(5,Q0,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA(),i.qZA(),i.YNc(8,ox,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.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)}},directives:[jb,T.RF,T.n9,T.ED,Bh,T.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[rC.transformPanelWrap,rC.transformPanel]},changeDetection:0}),n})(),Vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[aC],imports:[[T.ez,go,Mc,st],mr,vl,Mc,st]}),n})();const oC=new Set;let El,af=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lC}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function iS(n){if(!oC.has(n))try{El||(El=document.createElement("style"),El.setAttribute("type","text/css"),document.head.appendChild(El)),El.sheet&&(El.sheet.insertRule(`@media ${n} {body{ }}`,0),oC.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lC(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let sf=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Ee.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return cC(Hd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=cC(Hd(e)).map(d=>this._registerQuery(d).observable);let l=(0,Ha.aj)(r);return l=Tn(l.pipe((0,jt.q)(1)),l.pipe(Vh(1),(0,ol.b)(0))),l.pipe((0,dt.U)(d=>{const o={matches:!1,breakpoints:{}};return d.forEach(({matches:s,query:c})=>{o.matches=o.matches||s,o.breakpoints[c]=s}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Hi.y(d=>{const o=s=>this._zone.run(()=>d.next(s));return t.addListener(o),()=>{t.removeListener(o)}}).pipe(Wt(t),(0,dt.U)(({matches:d})=>({query:e,matches:d})),Je(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(af),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cC(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const gx={tooltipState:ei("state",[Dt("initial, void, hidden",He({opacity:0,transform:"scale(0)"})),Dt("visible",He({transform:"scale(1)"})),ft("* => visible",ct("200ms cubic-bezier(0, 0, 0.2, 1)",ul([He({opacity:0,transform:"scale(0)",offset:0}),He({opacity:.5,transform:"scale(0.99)",offset:.5}),He({opacity:1,transform:"scale(1)",offset:1})]))),ft("* => hidden",ct("100ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:0})))])},dC="tooltip-panel",uC=Va({passive:!0}),hC=new i.OlP("mat-tooltip-scroll-strategy"),wx={provide:hC,deps:[_r],useFactory:function yx(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Cx=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function rS(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let aS=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,m,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=h,this._defaultOptions=m,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 Ee.xQ,this._scrollStrategy=u,this._document=b,m&&(m.position&&(this.position=m.position),m.touchGestures&&(this.touchGestures=m.touchGestures)),h.change.pipe(Je(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=Oe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=_i(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=_i(e)}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(Je(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,uC)}),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 tl(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.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(Je(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}-${dC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Je(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Je(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Ki(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),l.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),l.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:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_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:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,jt.q)(1),Je(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:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const o=this._overlayRef;if(o){const s=`${this._cssClassPrefix}-${dC}-`;o.removePanelClass(s+this._currentPosition),o.addPanelClass(s+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",()=>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,uC)})}_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 n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),zc=(()=>{class n extends aS{constructor(e,t,r,l,d,o,s,c,u,h,m,b){super(e,t,r,l,d,o,s,c,u,h,m,b),this._tooltipComponent=oS}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_r),i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(bi),i.Y36(km),i.Y36(rr),i.Y36(hC),i.Y36(xi,8),i.Y36(Cx,8),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),sS=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Ee.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n}),n})(),oS=(()=>{class n extends sS{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(sf))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&i.Udp("zoom","visible"===t._visibility?1:null)},features:[i.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(l){return t._animationDone(l)}),i.ALo(1,"async"),i._uU(2),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(1,5,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),i.xp6(2),i.Oqu(t.message)}},directives:[T.mk],pipes:[T.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[gx.tooltipState]},changeDetection:0}),n})(),ju=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wx],imports:[[zh,T.ez,go,st],st,mr]}),n})();function lS(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function cS(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16),i.TgZ(1,"mat-select",17),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw(2)._changePageSize(r.value)}),i.YNc(2,lS,2,2,"mat-option",18),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function dS(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function uS(n,a){if(1&n&&(i.TgZ(0,"div",12),i.TgZ(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,cS,3,6,"mat-form-field",14),i.YNc(4,dS,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function p(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(e),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function f(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let g=(()=>{class n{constructor(){this.changes=new Ee.xQ,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 l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const y={provide:g,deps:[[new i.FiY,new i.tp0,g]],useFactory:function _(n){return n||new g}},k=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),R=fa(bg(class{}));let N=(()=>{class n extends R{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.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:o,showFirstLastButtons:s}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=o&&(this._hidePageSize=o),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(_i(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=_i(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(_i(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>_i(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 n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),n})(),q=(()=>{class n extends N{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(g),i.Y36(i.sBO),i.Y36(k,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.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","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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,uS,5,3,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,p,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA(),i.qZA(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA(),i.qZA(),i.YNc(13,f,3,5,"button",11),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},directives:[Gn,Uc,xc,Ft,T.O5,T.sg,zc],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[y],imports:[[T.ez,Gr,Vu,ju,st]]}),n})();var se=x(943);const ue=["mat-menu-item",""];function Ce(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const Le=["*"];function Fe(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)})("click",function(){return i.CHM(e),i.oxw().closed.emit("click")})("@transformMenu.start",function(r){return i.CHM(e),i.oxw()._onAnimationStart(r)})("@transformMenu.done",function(r){return i.CHM(e),i.oxw()._onAnimationDone(r)}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const We={transformMenu:ei("transformMenu",[Dt("void",He({opacity:0,transform:"scale(0.8)"})),ft("void => enter",ct("120ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:1,transform:"scale(1)"}))),ft("* => void",ct("100ms 25ms linear",He({opacity:0})))]),fadeInItems:ei("fadeInItems",[Dt("showing",He({opacity:1})),ft("void => *",[He({opacity:0}),ct("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Nt=new i.OlP("MatMenuContent"),Fu=new i.OlP("MAT_MENU_PANEL"),y_=ma(fa(class{}));let Dl=(()=>{class n extends y_{constructor(e,t,r,l,d){var o;super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new Ee.xQ,this._focused=new Ee.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(o=null==l?void 0:l.addItem)||void 0===o||o.call(l,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 l=0;l{class n{constructor(e,t,r){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=he.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Ee.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+C_++}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 dl(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Wt(this._directDescendantItems),(0,nn.w)(e=>(0,Mi.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Wt(this._directDescendantItems),(0,nn.w)(t=>(0,Mi.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Ki(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.lazyContent?this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===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}_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(Wt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(lf))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Nt,5),i.Suo(r,Dl,5),i.Suo(r,Dl,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.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"}}),n})(),hS=(()=>{class n extends A_{constructor(e,t,r){super(e,t,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(lf))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Fu,useExisting:n}]),i.qOj],ngContentSelectors:Le,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&&(i.F$t(),i.YNc(0,Fe,3,6,"ng-template"))},directives:[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}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),n})();const pS=new i.OlP("mat-menu-scroll-strategy"),hH={provide:pS,deps:[_r],useFactory:function uH(n){return()=>n.scrollStrategies.reposition()}},mS=Va({passive:!0});let pH=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=o,this._dir=s,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=he.w.EMPTY,this._hoverSubscription=he.w.EMPTY,this._menuCloseSubscription=he.w.EMPTY,this._handleTouchStart=u=>{Uh(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=d instanceof A_?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,mS),o&&(o._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._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,mS),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),r=t.positionStrategy;this._setPosition(r),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof A_&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Je(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.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(){var e;null===(e=this._overlayRef)||void 0===e||e.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 A_?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,zt.h)(r=>"void"===r.toState),(0,jt.q)(1),Je(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new fc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,d]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[l,d],[c,u]=[t,r],h=0;this.triggersSubmenu()?(u=t="before"===this.menu.xPosition?"start":"end",r=c="end"===t?"start":"end",h="bottom"===l?8:-8):this.menu.overlapTrigger||(o="top"===l?"bottom":"top",s="top"===d?"bottom":"top"),e.withPositions([{originX:t,originY:o,overlayX:c,overlayY:l,offsetY:h},{originX:r,originY:o,overlayX:u,overlayY:l,offsetY:h},{originX:t,originY:s,overlayX:c,overlayY:d,offsetY:-h},{originX:r,originY:s,overlayX:u,overlayY:d,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ne.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,zt.h)(d=>d!==this._menuItemInstance),(0,zt.h)(()=>this._menuOpen)):(0,Ne.of)();return(0,Mi.T)(e,r,l,t)}_handleMousedown(e){Yh(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,zt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,se.g)(0,om)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof A_&&this.menu._isAnimating?this.menu._animationDone.pipe((0,jt.q)(1),(0,se.g)(0,om),Je(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new po(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_r),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(pS),i.Y36(Fu,8),i.Y36(Dl,10),i.Y36(xi,8),i.Y36(rr))},n.\u0275dir=i.lG2({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("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"}}),n})(),gS=(()=>{class n extends pH{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),gC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hH],imports:[[T.ez,st,Ja,go],mr,st]}),n})();var _C=x(1737),fH=x(2474);const mH=["*"];let bC;function v_(n){var a;return(null===(a=function gH(){if(void 0===bC&&(bC=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(bC=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return bC}())||void 0===a?void 0:a.createHTML(n))||n}function _S(n){return Error(`Unable to find icon with the name "${n}"`)}function bS(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function yS(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Nu{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Yu=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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",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,l){return this._addSvgIconConfig(e,t,new Nu(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw yS(r);const o=v_(d);return this._addSvgIconConfig(e,t,new Nu("",o,l))}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 Nu(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw yS(t);const d=v_(l);return this._addSvgIconSetConfig(e,new Nu("",d,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(i.q3G.RESOURCE_URL,e);if(!t)throw bS(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ne.of)(yC(r)):this._loadSvgIconFromConfig(new Nu(e,null)).pipe((0,Q.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,dt.U)(l=>yC(l)))}getNamedSvgIcon(e,t=""){const r=wS(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,_C._)(_S(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ne.of)(yC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,dt.U)(t=>yC(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ne.of)(r):xg(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Yn.K)(o=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${o.message}`;return this._errorHandler.handleError(new Error(c)),(0,Ne.of)(null)})))).pipe((0,dt.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw _S(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),o=this._extractSvgIconFromSet(d,e,l.options);if(o)return o}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Q.b)(t=>e.svgText=t),(0,dt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ne.of)(null):this._fetchIcon(e).pipe((0,Q.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const o=this._svgElementFromString(v_(""));return o.appendChild(d),this._setSvgAttributes(o,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(v_("")),r=e.attributes;for(let l=0;lv_(u)),ve(()=>this._inProgressUrlFetches.delete(o)),(0,fH.B)());return this._inProgressUrlFetches.set(o,c),c}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(wS(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:""}}}),CS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],vH=CS.map(n=>`[${n}]`).join(", "),TH=/^url\(['"]?#(.*?)['"]?\)$/;let Gi=(()=>{class n extends wH{constructor(e,t,r,l,d){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._currentIconFetch=he.w.EMPTY,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=e.querySelectorAll("style");for(let l=0;l{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(vH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const o=t[l],s=o.getAttribute(d),c=s?s.match(TH):null;if(c){let u=r.get(o);u||(u=[],r.set(o,u)),u.push({name:d,value:c[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,jt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Yu),i.$8M("aria-hidden"),i.Y36(CH),i.Y36(i.qLn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.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),i.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:[i.qOj],ngContentSelectors:mH,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),n})(),Gc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})(),AS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[ee,gC,Gc,Gr,Dc,T.ez]]}),n})();var xH=x(655),MH=x(9441);const Uu=[5,10,25,100];function vS(n){let a="";return null!==n.titleBefore&&(a+=n.titleBefore+" "),null!==n.firstName&&(a+=n.firstName+" "),null!==n.middleName&&(a+=n.middleName+" "),null!==n.lastName&&(a+=n.lastName+" "),null!==n.titleAfter&&(a+=n.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function Zn(){const n=new gu;return n.disableClose=!0,n.autoFocus=!1,n}const OH=new Intl.Collator("cs",{numeric:!0});function cf(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,d)=>{const o=e(l,t),s=e(d,t);return OH.compare(o,s)*("asc"===r?1:-1)}):n}function T_(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function df(n,a){let e="";return n.attributes&&n.attributes.forEach(t=>{t.friendlyName===a&&(e=t.value)}),e}function uf(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};a.forEach(o=>{var s;d[o]=(null!==(s=e(l,o))&&void 0!==s?s:"").split('"').join("''").trim()}),t.push(d)}),t}function hf(n,a="csv",e="export"){if("csv"===a){const t=(s,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(s=>r.map(c=>JSON.stringify(s[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),o=new Blob([d],{type:"text/csv"});(0,MH.saveAs)(o,`${e}.${a}`)}}const xS="GUI_CONFIG.PREF_PAGE_SIZE.";let VH=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jH=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(xS+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(xS+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(VH))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UH=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"button",1),i.TgZ(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA(),i.qZA(),i.TgZ(4,"mat-menu",null,2),i.TgZ(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-menu",null,4),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[Ft,gS,Gi,hS,Dl],pipes:[Ct],styles:[""]}),n})();function zH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}function qH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}const GH=["*"];let ts=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Uu,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}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)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jH))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(q,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:GH,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,zH,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1),i.TgZ(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,qH,1,0,"perun-web-apps-table-options",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},directives:[q,T.O5,UH],styles:[""]}),n})(),Tx=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Zn();this.dialog.open(fT,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(wu),i.LFG(hn),i.LFG(na),i.LFG(Vi),i.LFG(fn),i.LFG(C))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SS=(()=>{class n{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/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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yu),i.LFG(Bn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),WH=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn))},n.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[or,kn,wr,Ft],pipes:[Ct],styles:[""]}),n})(),ZH=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rn=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.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,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){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:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ri))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ES=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=o}intercept(e,t){const r=this.store.get("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.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const o=Zn();o.width="450px",this.dialogRefSessionExpiration=this.dialog.open(WH,o),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ve(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}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()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Q.b)(o=>{o instanceof w.Zn&&d&&this.initAuthService.loadPrincipal()},o=>{const s=this.formatErrors(o,e);return void 0===s?(0,_C._)(o):l?void this.notificator.showRPCError(s):(0,_C._)(s)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(wu),i.LFG(ZH),i.LFG(Rn),i.LFG(hn),i.LFG(fn),i.LFG(Tx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),DS=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$H=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new w.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,Yn.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,Yn.K)(o=>this.formatErrors(o,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:o}).pipe((0,Yn.K)(s=>this.formatErrors(s,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Yn.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,_C._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rn),i.LFG(wu),i.LFG(hn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,o,s,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?o.data.length:o.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),o.sortData(o.filteredData,s).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(o=>o.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const o of l){const s=o.split("=");"lang"===s[0]&&(d=s[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(hn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();ei("openClose",[Dt("open",He({overflow:"hidden"})),Dt("closed",He({height:"0px",overflow:"hidden"})),ft("open <=> closed",[ct(".3s ease-in")])]);const QH=ei("flyInOut",[ft(":enter",[He({transform:"translateX(100%)"}),ct(".25s")]),ft(":leave",[ct(".5s",He({transform:"translateX(100%)"}))])]);ei("rollInOut",[ft(":enter",[He({height:"0px"}),ct(".25s")]),ft(":leave",[ct(".25s",He({height:"0px"}))])]),ei("routeAnimations",[ft("* => *",[He({position:"relative"}),Dn(":enter",[He({width:"100%",opacity:0})],{optional:!0}),Dn(":leave",[He({position:"absolute",width:"100%",opacity:1}),ct("0.15s",He({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Dn(":enter",[He({position:"absolute",width:"100%",opacity:0}),ct("0.15s",He({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),ei("tagsOpenClose",[Dt("open",He({})),Dt("closed",He({width:"0px",height:"0px"})),ft("open <=> closed",[ct(".3s ease-in")])]),ei("switchAnimations",[ft("true => false",[Dn(":enter, :leave",He({})),ey([Dn(":enter",[He({transform:"translateX(-100%)"}),ct("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),Dn(":leave",[He({transform:"translateX(0%)",position:"absolute"}),ct("1s ease-in-out",He({transform:"translateX(100%)"}))],{optional:!0})])]),ft("false => true",[Dn(":enter, :leave",He({})),ey([Dn(":enter",[He({transform:"translateX(100%)"}),ct("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),Dn(":leave",[He({transform:"translateX(0%)",position:"absolute"}),ct("1s ease-in-out",He({transform:"translateX(-100%)"}))],{optional:!0})])])]),ei("slideInOutLeft",[ft(":enter",[He({transform:"translateX(-100%)",position:"relative"}),ct("0.5s ease-in",He({transform:"translateX(0%)"}))]),ft(":leave",[ct("0.5s ease-in",He({transform:"translateX(-100%)"}))])]),ei("slideInOutRight",[ft(":enter",[He({transform:"translateX(100%)",position:"fixed"}),ct("0.5s ease-in",He({transform:"translateX(0%)"}))]),ft(":leave",[He({transform:"translateX(-100%)",position:"relative"}),ct("0.5s ease-in",He({transform:"translateX(100%)"}))])]);let HS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez]]}),n})();function a1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.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)),i.uIk("r",e._getCircleRadius())}}function s1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function o1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.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)),i.uIk("r",e._getCircleRadius())}}function l1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const u1=$a(class{constructor(n){this._elementRef=n}},"primary"),kS=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function h1(){return{diameter:100}}});class Hl extends u1{constructor(a,e,t,r,l,d,o,s){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=he.w.EMPTY,this.mode="determinate";const c=Hl._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,l&&(l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&o&&d&&s&&(this._resizeSubscription=o.change(150).subscribe(()=>{"indeterminate"===this.mode&&s.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=_i(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=_i(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,_i(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Eh(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=Hl._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),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(".","_")}}Hl._diameters=new WeakMap,Hl.\u0275fac=function(a){return new(a||Hl)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0,8),i.Y36(Si,8),i.Y36(kS),i.Y36(i.sBO),i.Y36(Na),i.Y36(i.R0b))},Hl.\u0275cmp=i.Xpm({type:Hl,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.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),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.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&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,a1,1,11,"circle",2),i.YNc(3,s1,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});let mn=(()=>{class n extends Hl{constructor(e,t,r,l,d,o,s,c){super(e,t,r,l,d,o,s,c),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0,8),i.Y36(Si,8),i.Y36(kS),i.Y36(i.sBO),i.Y36(Na),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[i.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(e,t){1&e&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,o1,1,11,"circle",2),i.YNc(3,l1,1,9,"circle",3),i.qZA()),2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===t.mode),i.uIk("viewBox",t._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0}),n})(),CC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st,T.ez],st]}),n})();const PS=Va({passive:!0});let f1=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return dr.E;const t=Qi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new Ee.xQ,d="cdk-text-field-autofilled",o=s=>{"cdk-text-field-autofill-start"!==s.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===s.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",o,PS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",o,PS)}}),l}stopMonitoring(e){const t=Qi(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 n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),RS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cc]]}),n})();const LS=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),m1=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g1=0;const _1=pp(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let is=(()=>{class n extends _1{constructor(e,t,r,l,d,o,s,c,u,h){super(o,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g1++,this.focused=!1,this.stateChanges=new Ee.xQ,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(j=>dm().has(j));const m=this._elementRef.nativeElement,b=m.nodeName.toLowerCase();this._inputValueAccessor=s||m,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",j=>{const ie=j.target;!ie.value&&0===ie.selectionStart&&0===ie.selectionEnd&&(ie.setSelectionRange(1,1),ie.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=m.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(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Ii.required))&&void 0!==l&&l}set required(e){this._required=Oe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&dm().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)}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,t;const r=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){m1.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(Wr,10),i.Y36(jc,8),i.Y36(Rs,8),i.Y36(yr),i.Y36(LS,10),i.Y36(f1),i.Y36(i.R0b),i.Y36(Bg,8))},n.\u0275dir=i.lG2({type:n,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&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.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),i.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:[i._Bn([{provide:vu,useExisting:n}]),i.qOj,i.TTD]}),n})(),AC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[yr],imports:[[RS,vl,st],RS,vl]}),n})();function b1(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function y1(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function w1(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function C1(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"mat-form-field"),i.TgZ(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().subject=r}),i.qZA(),i.YNc(7,y1,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field"),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().message=r}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,w1,3,3,"mat-error",11),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let A1=(()=>{class n{constructor(e,t,r,l,d,o){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var e,t;(null===(t=null===(e=this.data)||void 0===e?void 0:e.error)||void 0===t?void 0:t.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.get("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 l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Ri),i.Y36(Rn),i.Y36(en),i.Y36(qr),i.Y36(hn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,b1,1,0,"mat-spinner",1),i.YNc(4,C1,17,13,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[or,T.O5,mn,kn,Gn,Xa,is,Wn,xo,Cr,Ml,To,wr,Ft],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),v1=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Zn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(A1,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(fn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[or,kn,wr,Ft],pipes:[Ct],styles:[""]}),n})();const E1=[[["caption"]],[["colgroup"],["col"]]],D1=["caption","colgroup, col"];function Mx(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=Oe(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const pf=new i.OlP("CDK_TABLE");let ff=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),mf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),vC=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class R1{}const L1=Mx(R1);let kl=(()=>{class n extends L1{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ff,5),i.Suo(r,mf,5),i.Suo(r,vC,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class Sx{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let Ex=(()=>{class n extends Sx{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(kl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),Dx=(()=>{class n extends Sx{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(kl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class OS{constructor(){this.tasks=[],this.endTasks=[]}}const Hx=new i.OlP("_COALESCED_STYLE_SCHEDULER");let BS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Ee.xQ}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 OS,this._getScheduleObservable().pipe(Je(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new OS;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,dn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,jt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),kx=(()=>{class n{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 x_?e.headerCell.template:this instanceof M_?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class I1 extends kx{}const O1=Mx(I1);let x_=(()=>{class n extends O1{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class B1 extends kx{}const V1=Mx(B1);let M_=(()=>{class n extends V1{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),TC=(()=>{class n extends kx{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Pl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Px=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),Lx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),xC=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const VS=["top","bottom","left","right"];class j1{constructor(a,e,t,r,l=!0,d=!0,o){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=o,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 l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(m=>m)&&!t.some(m=>m))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],d=l.children.length,o=this._getCellWidths(l,r),s=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const m="rtl"===this.direction,b=m?"right":"left",j=m?"left":"right";for(const ie of a)for(let pe=0;pee[pe]?ie:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:o.slice(h).map((ie,pe)=>t[pe+h]?ie:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,d=[],o=[],s=[];for(let u=0,h=0;u{var u,h;for(let m=0;m{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]);VS.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 VS)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 l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const Ix=new i.OlP("CDK_SPL");let MC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),SC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),EC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),DC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),HC=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,m,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=m,this._ngZone=b,this._onDestroy=new Ee.xQ,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 i.vpe,this.viewChange=new $i({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=o,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(Je(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(),Tu(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,l,d)=>this._getEmbeddedViewArgs(r.item,d),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&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,jt.q)(1),Je(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 l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.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((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let o=0;o{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const o=r&&r.has(d)?r.get(d):[];if(o.length){const s=o.shift();return s.dataIndex=t,s}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),kC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=kC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=kC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=kC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,o)=>d||!!o.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],Tu(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;Tu(this.dataSource)?e=this.dataSource.connect(this):Qa(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ne.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Je(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(o=>this._columnDefsByName.get(o)),l=r.map(o=>o.sticky),d=r.map(o=>o.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Pl.mostRecentCellOutlet&&Pl.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 l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}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 j1(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,Ne.of)()).pipe(Je(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 l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&(null==d?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(xi,8),i.Y36(T.K0),i.Y36(bi),i.Y36(xu),i.Y36(Hx),i.Y36(Na),i.Y36(Ix,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xC,5),i.Suo(r,kl,5),i.Suo(r,TC,5),i.Suo(r,x_,5),i.Suo(r,M_,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(MC,7),i.Gf(SC,7),i.Gf(EC,7),i.Gf(DC,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:pf,useExisting:n},{provide:xu,useClass:Vg},{provide:Hx,useClass:BS},{provide:Ix,useValue:null}])],ngContentSelectors:D1,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(E1),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[SC,MC,DC,EC],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function kC(n,a){return n.concat(Array.from(a))}let N1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[el]]}),n})();const Y1=[[["caption"]],[["colgroup"],["col"]]],U1=["caption","colgroup, col"];let Mo=(()=>{class n extends HC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:xu,useClass:Vg},{provide:HC,useExisting:n},{provide:pf,useExisting:n},{provide:Hx,useClass:BS},{provide:Ix,useValue:null}]),i.qOj],ngContentSelectors:U1,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(Y1),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[SC,MC,DC,EC],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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),Ls=(()=>{class n extends ff{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:ff,useExisting:n}]),i.qOj]}),n})(),Is=(()=>{class n extends mf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:mf,useExisting:n}]),i.qOj]}),n})(),Os=(()=>{class n extends kl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:kl,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),Bs=(()=>{class n extends Ex{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),Vs=(()=>{class n extends Dx{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),Rl=(()=>{class n extends x_{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:x_,useExisting:n}]),i.qOj]}),n})(),So=(()=>{class n extends TC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:TC,useExisting:n}]),i.qOj]}),n})(),Ll=(()=>{class n extends Px{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:Px,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),Eo=(()=>{class n extends Lx{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:Lx,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),Ox=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[N1,st],st]}),n})();class Il extends class ek extends class V0{}{constructor(a=[]){super(),this._renderData=new $i([]),this._filter=new $i(""),this._internalPageChanges=new Ee.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Xf(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,o)=>{let s=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(o,r);const u=typeof s,h=typeof c;u!==h&&("number"===u&&(s+=""),"number"===h&&(c+=""));let m=0;return null!=s&&null!=c?s>c?m=1:s{const r=Object.keys(e).reduce((d,o)=>d+e[o]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new $i(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,Mi.T)(this._sort.sortChange,this._sort.initialized):(0,Ne.of)(null),t=this._paginator?(0,Mi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ne.of)(null),l=(0,Ha.aj)([this._data,this._filter]).pipe((0,dt.U)(([s])=>this._filterData(s))),d=(0,Ha.aj)([l,e]).pipe((0,dt.U)(([s])=>this._orderData(s))),o=(0,Ha.aj)([d,t]).pipe((0,dt.U)(([s])=>this._pageData(s)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=o.subscribe(s=>this._renderData.next(s))}_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}}{}function tk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function ik(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function nk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function rk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const ak=["*"];let js=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:ak,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&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,tk,2,0,"mat-icon",1),i.YNc(2,ik,2,0,"mat-icon",1),i.YNc(3,nk,2,0,"mat-icon",1),i.YNc(4,rk,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.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),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},directives:[T.O5,Gi],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}"]}),n})();function sk(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function ok(n,a){1&n&&(i.TgZ(0,"div",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function lk(n,a){1&n&&i._UZ(0,"th",18)}function ck(n,a){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function dk(n,a){1&n&&i._UZ(0,"tr",20)}function uk(n,a){1&n&&i._UZ(0,"tr",21)}function hk(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("alert_type","warn"),i.xp6(1),i.hij(" ",i.lcZ(2,2,e.data.alert)," ")}}function pk(n,a){if(1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,ok,3,3,"div",9),i.TgZ(5,"table",10),i.ynx(6,11),i.YNc(7,lk,1,0,"th",12),i.YNc(8,ck,2,1,"td",13),i.BQk(),i.YNc(9,dk,1,0,"tr",14),i.YNc(10,uk,1,0,"tr",15),i.qZA(),i.YNc(11,hk,3,4,"perun-web-apps-alert",16),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,e.data.description)," "),i.xp6(2),i.Q6J("ngIf",e.data.showAsk),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",e.data.alert)}}function fk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function mk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let FS=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Il(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,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","",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"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["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&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,sk,1,0,"mat-spinner",1),i.YNc(5,pk,12,8,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.YNc(10,fk,3,4,"button",5),i.YNc(11,mk,3,4,"button",6),i.qZA(),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,t.data.title)),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),i.xp6(2),i.Q6J("ngIf","remove"===t.data.type),i.xp6(1),i.Q6J("ngIf","confirmation"===t.data.type))},directives:[or,T.O5,mn,kn,Mo,Os,Is,Bs,Ls,Vs,Rl,Ll,So,Eo,js,wr,Ft],pipes:[Ct],styles:[""]}),n})(),xk=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"button",2),i.NdJ("click",function(){return t.onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",3),i.NdJ("click",function(){return t.onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,6,t.message)),i.xp6(4),i.hij(" ",i.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},directives:[or,wr,Ft],pipes:[Ct],styles:[""]}),n})();function kk(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function Pk(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let Rk=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.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=Zn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(v1,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function EH(n,a){return(0,xH.mG)(this,void 0,void 0,function*(){yield function DH(n){return new Promise(a=>setTimeout(a,n))}(n),a()})}(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(DS))},n.\u0275cmp=i.Xpm({type:n,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"],[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&&(i.TgZ(0,"div"),i.TgZ(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,kk,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,Pk,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},directives:[T.O5,Gi],pipes:[Ct],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}"]}),n})();function Lk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index;return i.oxw().removeNotification(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const Ik=function(n){return{top:n}};let Ok=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Rn),i.Y36(DS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.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&&(i.TgZ(0,"div",0),i.YNc(1,Lk,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,Ik,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},directives:[T.PC,T.sg,Rk],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:[QH]}}),n})();const Bk=["*",[["mat-toolbar-row"]]],Vk=["*","mat-toolbar-row"],jk=$a(class{constructor(n){this._elementRef=n}});let Fk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),Nk=(()=>{class n extends jk{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,Fk,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:Vk,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(Bk),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),YS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();function Yk(n,a){1&n&&(i.TgZ(0,"div",13),i.TgZ(1,"span",14),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",15),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",14),i._uU(6," \xa0\u{1f5f2} ~ "),i.qZA(),i.qZA())}const Uk=function(n){return{background:n}},PC=function(n){return{color:n}};let zk=(()=>{class n{constructor(e,t,r){this.storeService=e,this.authService=t,this.sanitizer=r,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.principal=this.storeService.getPerunPrincipal(),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(wu),i.Y36(Bn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:22,vars:29,consts:[[1,"header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","row"],["mat-icon-button","",1,"mt-auto","mb-auto",3,"ngStyle","click"],["routerLink","/all-publications",1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white","routerLink","/all-publications",1,"mt-auto","mb-auto","router-icon","ml-2","mr-4"],[1,"mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(i.TgZ(0,"mat-toolbar",0),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return t.sideNav.toggle()}),i.TgZ(3,"mat-icon"),i._uU(4,"menu"),i.qZA(),i.qZA(),i._UZ(5,"a",3),i._UZ(6,"mat-icon",4),i.TgZ(7,"p",5),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA(),i.YNc(10,Yk,7,0,"div",6),i.TgZ(11,"div",7),i.TgZ(12,"button",8),i.TgZ(13,"mat-icon",9),i._uU(14," person "),i.qZA(),i.TgZ(15,"span",10),i._uU(16),i.qZA(),i.qZA(),i.TgZ(17,"mat-menu",null,11),i.TgZ(19,"button",12),i.NdJ("click",function(){return t.onLogOut()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(18);i.Q6J("ngStyle",i.VKq(19,Uk,t.bgColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(21,PC,t.iconColor)),i.xp6(3),i.Q6J("innerHTML",t.logo,i.oJD),i.xp6(2),i.Q6J("ngStyle",i.VKq(23,PC,t.textColor)),i.xp6(1),i.hij(" ",i.lcZ(9,15,"HEADER.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("ngStyle",i.VKq(25,PC,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(27,PC,t.iconColor)),i.xp6(3),i.xDo(" ",t.principal.user.titleBefore," ",t.principal.user.firstName," ",t.principal.user.middleName," ",t.principal.user.lastName," ",t.principal.user.titleAfter," "),i.xp6(4),i.Oqu(i.lcZ(21,17,"HEADER.LOGOUT"))}},directives:[Nk,T.PC,Ft,Gi,J,F,T.O5,gS,hS,Dl],pipes:[Ct],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function US(n){return a=>a.lift(new qk(n))}class qk{constructor(a){this.value=a}call(a,e){return e.subscribe(new Gk(a,this.value))}}class Gk extends Nn.L{constructor(a,e){super(a),this.value=e}_next(a){this.destination.next(this.value)}}const RC=["*"],Wk=["content"];function Zk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function $k(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Jk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Qk=["mat-drawer","mat-drawer-content","*"];function Kk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Xk(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const eP=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],tP=["mat-sidenav","mat-sidenav-content","*"],zS={transformDrawer:ei("transform",[Dt("open, open-instant",He({transform:"none",visibility:"visible"})),Dt("void",He({"box-shadow":"none",visibility:"hidden"})),ft("void => open-instant",ct("0ms")),ft("void <=> open, open-instant => void",ct("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},nP=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function rP(){return!1}}),Bx=new i.OlP("MAT_DRAWER_CONTAINER");let LC=(()=>{class n extends Hh{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>GS)),i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Hh,useExisting:n}]),i.qOj],ngContentSelectors:RC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),qS=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Ee.xQ,this._animationEnd=new Ee.xQ,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,zt.h)(u=>u),(0,dt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,zt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),US(void 0)),this._closedStream=this.openedChange.pipe((0,zt.h)(u=>!u),(0,dt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,zt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),US(void 0)),this._destroyed=new Ee.xQ,this.onPositionChanged=new i.vpe,this._modeChanged=new Ee.xQ,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ua(this._elementRef.nativeElement,"keydown").pipe((0,zt.h)(u=>27===u.keyCode&&!this.disableClose&&!Ki(u)),Je(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(ll((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:m}=u;(0===m.indexOf("open")&&"void"===h||"void"===m&&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=Oe(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}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(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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(l=>{this.openedChange.pipe((0,jt.q)(1)).subscribe(d=>l(d?"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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(rr),i.Y36(bi),i.Y36(i.R0b),i.Y36(Nh),i.Y36(T.K0,8),i.Y36(Bx,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(Wk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.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:RC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Hh],encapsulation:2,data:{animation:[zS.transformDrawer]},changeDetection:0}),n})(),GS=(()=>{class n{constructor(e,t,r,l,d,o=!1,s){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=s,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new Ee.xQ,this._doCheckSubject=new Ee.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Ee.xQ,e&&e.change.pipe(Je(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(Je(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}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 null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:Oe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Wt(this._allDrawers),Je(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Wt(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,ol.b)(10),Je(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,zt.h)(t=>t.fromState!==t.toState),Je(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(Je(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Je(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,jt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Je((0,Mi.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(xi,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(Na),i.Y36(nP),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,LC,5),i.Suo(r,qS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(LC,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:Bx,useExisting:n}])],ngContentSelectors:Qk,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&&(i.F$t(Jk),i.YNc(0,Zk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,$k,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[LC,T.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),Vx=(()=>{class n extends LC{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>ZS)),i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Hh,useExisting:n}]),i.qOj],ngContentSelectors:RC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),WS=(()=>{class n extends qS{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=_i(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=_i(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.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:[i.qOj],ngContentSelectors:RC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Hh],encapsulation:2,data:{animation:[zS.transformDrawer]},changeDetection:0}),n})(),ZS=(()=>{class n extends GS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Vx,5),i.Suo(r,WS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:Bx,useExisting:n}]),i.qOj],ngContentSelectors:tP,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&&(i.F$t(eP),i.YNc(0,Kk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Xk,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[Vx,T.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),$S=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,cc,mr],mr,st]}),n})(),aP=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(na))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();const JS=["*"],oP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],lP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],pP=fa(ma(class{})),fP=ma(class{}),mP=new i.OlP("MatList"),QS=new i.OlP("MatNavList");let gP=(()=>{class n extends pP{constructor(){super(...arguments),this._stateChanges=new Ee.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:QS,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:JS,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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:transparent;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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0}),n})(),KS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),XS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),_P=(()=>{class n extends fP{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Ee.xQ,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Je(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Oe(e)}ngAfterContentInit(){!function gp(n,a,e="mat"){n.changes.pipe(Wt(n)).subscribe(({length:t})=>{_p(a,`${e}-2-line`,!1),_p(a,`${e}-3-line`,!1),_p(a,`${e}-multi-line`,!1),2===t||3===t?_p(a,`${e}-${t}-line`,!0):t>3&&_p(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(QS,8),i.Y36(mP,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,KS,5),i.Suo(r,XS,5),i.Suo(r,$v,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:lP,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&&(i.F$t(oP),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[qt],encapsulation:2,changeDetection:0}),n})(),tE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[hu,Ja,st,Ag,T.ez],hu,st,Ag,jx]}),n})();function vP(n,a){if(1&n&&i._UZ(0,"mat-icon",6),2&n){const e=i.oxw().$implicit;i.Q6J("svgIcon",e.icon)}}function TP(n,a){if(1&n&&(i.TgZ(0,"mat-icon"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Oqu(e.icon)}}const xP=function(n){return{color:n}};function MP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){return i.CHM(e),i.oxw().shouldHideMenu()}),i.YNc(1,vP,1,1,"mat-icon",3),i.YNc(2,TP,2,1,"mat-icon",4),i.TgZ(3,"span",5),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.link),i.Q6J("ngStyle",i.VKq(10,xP,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(1),i.Q6J("ngIf",e.isSVG),i.xp6(1),i.Q6J("ngIf",!e.isSVG),i.xp6(2),i.Oqu(i.lcZ(5,8,e.label))}}let SP=(()=>{class n{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(l=>{l instanceof wt&&(this.currentUrl=l.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(aP),i.Y36(hn),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,MP,6,12,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[gP,T.sg,_P,qt,T.PC,F,T.O5,Gi],pipes:[Ct],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}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();function EP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let DP=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("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: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Ri),i.Y36(Rn),i.Y36(en),i.Y36(hn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,EP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field"),i.TgZ(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(21,"div",6),i.TgZ(22,"div",7),i.TgZ(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[or,kn,Gn,Xa,is,Wn,xo,Cr,Ml,T.O5,To,pw,wr,Ft],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),HP=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),kP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),PP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function RP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function LP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function IP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,RP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,LP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const OP=function(n){return{"min-height":n}};function BP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,IP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,OP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const Wc=function(n){return{color:n}};function VP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,Wc,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function jP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(3).openDialog(r.dialog)}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,Wc,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function FP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,Wc,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function NP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,Wc,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function YP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,VP,2,4,"i",17),i.YNc(2,jP,3,8,"span",18),i.YNc(3,FP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,NP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const UP=function(n){return{height:n}};function zP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,YP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,UP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function qP(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,BP,2,4,"div",9),i.YNc(5,zP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,Wc,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function GP(n,a){if(1&n&&(i.TgZ(0,"span"),i.TgZ(1,"a",6),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,Wc,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const WP=function(n){return{background:n}};let iE=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("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.get("footer","copyright_items")}openDialog(e){const t=Zn();"reportIssue"===e&&(t.width="550px",this.dialog.open(DP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Ri),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,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&&(i.TgZ(0,"footer",0),i.TgZ(1,"div",1),i.YNc(2,qP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,GP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(8,WP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,Wc,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,Wc,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},directives:[T.PC,T.sg,T.O5],pipes:[HP,kP,PP],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}"]}),n})();function ZP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function $P(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11),i._UZ(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function JP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"a",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const QP=function(n){return{color:n}};function KP(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,QP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const XP=function(n,a){return{background:n,color:a}},eR=function(n,a){return{"min-height":n,"background-color":a}};let tR=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Bn),i.Y36(JH),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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&&(i.TgZ(0,"div",0),i.YNc(1,ZP,2,1,"div",1),i.YNc(2,$P,3,1,"div",2),i.YNc(3,JP,2,1,"div",1),i.YNc(4,KP,2,4,"p",3),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",7),i._UZ(10,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.WLB(6,XP,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf","user-profile"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(9,eR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[T.PC,T.O5,Gi,so,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}"]}),n})();const iR=["footer"],nE=function(n){return{background:n}},nR=function(n){return{"min-height":n}};function rR(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-header",1),i.TgZ(2,"mat-sidenav-container"),i.TgZ(3,"mat-sidenav",2,3),i._UZ(5,"perun-web-apps-side-menu",4),i.qZA(),i.TgZ(6,"mat-sidenav-content",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",null,7),i._UZ(11,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&n){const e=i.MAs(4),t=i.oxw();i.xp6(1),i.Q6J("sideNav",e),i.xp6(2),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(7,nE,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(9,nE,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,nR,t.contentHeight))}}function aR(n,a){1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-login-screen-base",8),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Q6J("application","publications")("headerTitle",i.lcZ(2,2,"HEADER.TITLE")))}let sR=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=l,this.router=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("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||e.includes("/all-publications"))&&this.router.navigate(["my-publications"])}isMobile(){return window.innerWidth<=n.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){var e,t,r,l;const d=null!==(l=null===(r=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===r?void 0:r.toString())&&void 0!==l?l:"0";this.contentHeight="calc(100vh - 84px - "+d+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Tx),i.Y36(i.sBO),i.Y36(na),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(iR,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"sideNav"],["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&&(i._UZ(0,"perun-web-apps-notificator"),i.YNc(1,rR,12,13,"div",0),i.YNc(2,aR,3,4,"div",0)),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},directives:[Ok,T.O5,zk,ZS,WS,T.PC,SP,Vx,so,iE,tR],pipes:[Ct],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}"]}),n})();class oR{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 lR=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function cR(n){return[$r(tinycolor(n).lighten(52),"50"),$r(tinycolor(n).lighten(37),"100"),$r(tinycolor(n).lighten(26),"200"),$r(tinycolor(n).lighten(12),"300"),$r(tinycolor(n).lighten(6),"400"),$r(tinycolor(n),"500"),$r(tinycolor(n).darken(6),"600"),$r(tinycolor(n).darken(12),"700"),$r(tinycolor(n).darken(18),"800"),$r(tinycolor(n).darken(24),"900"),$r(tinycolor(n).lighten(50).saturate(30),"A100"),$r(tinycolor(n).lighten(30).saturate(30),"A200"),$r(tinycolor(n).lighten(10).saturate(15),"A400"),$r(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const s=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(s,c)}}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=>{var r;this.storeService.setInstanceConfig(t);const l=document.location.hostname;(null===(r=null==t?void 0:t.brandings)||void 0===r?void 0:r[l])&&this.storeService.setBanding(l),e()},()=>{e()})})}getNoCacheHeaders(){return new w.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.get("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.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(hn),i.LFG(Vi),i.LFG(Zt),i.LFG(bt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $r(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let dR=(()=>{class n{constructor(e,t,r,l,d){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=l,this.guiAuthResolver=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-link-active",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 console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}loadPolicies(){return new Promise((e,t)=>{this.authzSevice.getAllPolicies().subscribe(r=>{this.guiAuthResolver.setPerunPolicies(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Tx),i.LFG(lR),i.LFG(T.Ye),i.LFG(Vi),i.LFG(na))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uR=new i.OlP("perun-api-service");let hR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,yu,Gr,Dc]]}),n})();const pR=["*",[["mat-card-footer"]]],fR=["*","mat-card-footer"];let rE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),aE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),sE=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:fR,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(pR),i.Hsn(0),i.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-animation-noopable.mat-card{transition:none;animation:none}.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}\n"],encapsulation:2,changeDetection:0}),n})(),oE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();const mR=["input"],gR=function(n){return{enterDuration:n}},_R=["*"],bR=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:lE});function lE(){return{color:"accent",clickAction:"check-indeterminate"}}let yR=0;const cE=lE(),wR={provide:lr,useExisting:(0,i.Gpc)(()=>Zc),multi:!0};class CR{}const AR=wl($a(ma(fa(class{constructor(n){this._elementRef=n}}))));let Zc=(()=>{class n extends AR{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._focusMonitor=r,this._ngZone=l,this._animationMode=o,this._options=s,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++yR,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||cE,this.color=this.defaultColor=this._options.color||cE.color,this.tabIndex=parseInt(d)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Oe(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,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._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){const e=new CR;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const r=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===t)r="unchecked-checked";else{if(3!=t)return"";r="unchecked-indeterminate"}break;case 2:r=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(rr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(Si,8),i.Y36(bR,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(i.Gf(mR,5),i.Gf(qt,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null),i.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",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([wR]),i.qOj],ngContentSelectors:_R,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i.TgZ(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA(),i.qZA(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,gR,"NoopAnimations"===t._animationMode?0:150))}},directives:[qt,jh],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),dE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),IC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Ja,st,zd,dE],st,dE]}),n})(),xR=0;const Fx=new i.OlP("CdkAccordion");let MR=(()=>{class n{constructor(){this._stateChanges=new Ee.xQ,this._openCloseAllActions=new Ee.xQ,this.id="cdk-accordion-"+xR++,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 n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:Fx,useExisting:n}]),i.TTD]}),n})(),SR=0,ER=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=he.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+SR++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fx,12),i.Y36(i.sBO),i.Y36(Ep))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:Fx,useValue:void 0}])]}),n})(),DR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const HR=["body"];function kR(n,a){}const PR=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],RR=["mat-expansion-panel-header","*","mat-action-row"];function LR(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const IR=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],OR=["mat-panel-title","mat-panel-description","*"],Nx=new i.OlP("MAT_ACCORDION"),uE="225ms cubic-bezier(0.4,0.0,0.2,1)",hE={indicatorRotate:ei("indicatorRotate",[Dt("collapsed, void",He({transform:"rotate(0deg)"})),Dt("expanded",He({transform:"rotate(180deg)"})),ft("expanded <=> collapsed, void => collapsed",ct(uE))]),bodyExpansion:ei("bodyExpansion",[Dt("collapsed, void",He({height:"0px",visibility:"hidden"})),Dt("expanded",He({height:"*",visibility:"visible"})),ft("expanded <=> collapsed, void => collapsed",ct(uE))])};let BR=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),VR=0;const pE=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let fE=(()=>{class n extends ER{constructor(e,t,r,l,d,o,s){super(e,t,r),this._viewContainerRef=l,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new Ee.xQ,this._headerId="mat-expansion-panel-header-"+VR++,this._bodyAnimationDone=new Ee.xQ,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(ll((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),s&&(this.hideToggle=s.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.opened.pipe(Wt(null),(0,zt.h)(()=>this.expanded&&!this._portal),(0,jt.q)(1)).subscribe(()=>{this._portal=new po(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Nx,12),i.Y36(i.sBO),i.Y36(Ep),i.Y36(i.s_b),i.Y36(T.K0),i.Y36(Si,8),i.Y36(pE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,BR,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(HR,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.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:[i._Bn([{provide:Nx,useValue:void 0}]),i.qOj,i.TTD],ngContentSelectors:RR,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&&(i.F$t(PR),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,kR,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},directives:[Ya],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[hE.bodyExpansion]},changeDetection:0}),n})();class jR{}const FR=wl(jR);let mE=(()=>{class n extends FR{constructor(e,t,r,l,d,o,s){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=o,this._parentChangeSubscription=he.w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,zt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):dr.E;this.tabIndex=parseInt(s||"")||0,this._parentChangeSubscription=(0,Mi.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,zt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,zt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.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:Ki(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(fE,1),i.Y36(i.SBq),i.Y36(rr),i.Y36(i.sBO),i.Y36(pE,8),i.Y36(Si,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.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:[i.qOj],ngContentSelectors:OR,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(IR),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,LR,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},directives:[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[hE.indicatorRotate]},changeDetection:0}),n})(),NR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),YR=(()=>{class n extends MR{constructor(){super(...arguments),this._ownHeaders=new i.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(Wt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new dl(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,mE,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Nx,useExisting:n}]),i.qOj]}),n})(),gE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,DR,il]]}),n})(),bE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[hu,st],hu,st]}),n})();function qR(n,a){1&n&&i.Hsn(0)}const GR=["*"];let yE=(()=>{class n{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n})(),wE=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n})(),WR=0;const CE=new i.OlP("STEPPER_GLOBAL_OPTIONS");let Yx=(()=>{class n{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new i.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 null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=Oe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}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(){var e;return null!==(e=this._stepperOptions.showError)&&void 0!==e?e:null!=this._customError}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>gf)),i.Y36(CE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,wE,5),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.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:[i.TTD],ngContentSelectors:GR,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,qR,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),gf=(()=>{class n{constructor(e,t,r,l){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new Ee.xQ,this.steps=new i.n_E,this._sortedHeaders=new i.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new i.vpe,this._orientation="horizontal",this._groupId=WR++}get linear(){return this._linear}set linear(e){this._linear=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){var t;const r=_i(e);this.steps&&this._steps?(this._isValidIndex(r),null===(t=this.selected)||void 0===t||t._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}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(Wt(this._steps),Je(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Wt(this._stepHeader),Je(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 dl(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Ne.of)()).pipe(Wt(this._layoutDirection()),Je(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],l=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,l):this._getGuidelineLogic(r,l,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=Ki(e),r=e.keyCode,l=this._keyManager;null==l.activeItemIndex||t||32!==r&&13!==r?l.onKeydown(e):(this.selectedIndex=l.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=ja();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class n{constructor(e){this._stepper=e,this.type="submit"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gf))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.next()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),$R=(()=>{class n{constructor(e){this._stepper=e,this.type="button"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gf))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.previous()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),JR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc]]}),n})();function QR(n,a){if(1&n&&i.GkF(0,8),2&n){const e=i.oxw();i.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function KR(n,a){if(1&n&&(i.TgZ(0,"span",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function XR(n,a){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.completedLabel)}}function eL(n,a){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.editableLabel)}}function tL(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function iL(n,a){if(1&n&&(i.ynx(0,9),i.YNc(1,KR,2,1,"span",10),i.YNc(2,XR,2,1,"span",11),i.YNc(3,eL,2,1,"span",11),i.YNc(4,tL,2,1,"mat-icon",12),i.BQk()),2&n){const e=i.oxw();i.Q6J("ngSwitch",e.state),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngIf","done"===e.state),i.xp6(1),i.Q6J("ngIf","edit"===e.state)}}function nL(n,a){if(1&n&&(i.TgZ(0,"div",15),i.GkF(1,16),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function rL(n,a){if(1&n&&(i.TgZ(0,"div",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.label)}}function aL(n,a){if(1&n&&(i.TgZ(0,"div",17),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e._intl.optionalLabel)}}function sL(n,a){if(1&n&&(i.TgZ(0,"div",18),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.errorMessage)}}function oL(n,a){}function lL(n,a){if(1&n&&(i.Hsn(0),i.YNc(1,oL,0,0,"ng-template",0)),2&n){const e=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",e._portal)}}const cL=["*"];function dL(n,a){1&n&&i._UZ(0,"div",9)}const AE=function(n,a){return{step:n,i:a}};function uL(n,a){if(1&n&&(i.ynx(0),i.GkF(1,7),i.YNc(2,dL,1,0,"div",8),i.BQk()),2&n){const e=a.$implicit,t=a.index,r=a.last;i.oxw(2);const l=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",i.WLB(3,AE,e,t)),i.xp6(1),i.Q6J("ngIf",!r)}}function hL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",10),i.NdJ("@horizontalStepTransition.done",function(r){return i.CHM(e),i.oxw(2)._animationDone.next(r)}),i.GkF(1,11),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw(2);i.Q6J("@horizontalStepTransition",r._getAnimationDirection(t))("id",r._getStepContentId(t)),i.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),i.xp6(1),i.Q6J("ngTemplateOutlet",e.content)}}function pL(n,a){if(1&n&&(i.ynx(0),i.TgZ(1,"div",3),i.YNc(2,uL,3,6,"ng-container",4),i.qZA(),i.TgZ(3,"div",5),i.YNc(4,hL,2,5,"div",6),i.qZA(),i.BQk()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngForOf",e.steps),i.xp6(2),i.Q6J("ngForOf",e.steps)}}function fL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.GkF(1,7),i.TgZ(2,"div",14),i.TgZ(3,"div",15),i.NdJ("@verticalStepTransition.done",function(r){return i.CHM(e),i.oxw(2)._animationDone.next(r)}),i.TgZ(4,"div",16),i.GkF(5,11),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=a.last,l=i.oxw(2),d=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",i.WLB(9,AE,e,t)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!r),i.xp6(1),i.Q6J("@verticalStepTransition",l._getAnimationDirection(t))("id",l._getStepContentId(t)),i.uIk("aria-labelledby",l._getStepLabelId(t))("aria-expanded",l.selectedIndex===t),i.xp6(2),i.Q6J("ngTemplateOutlet",e.content)}}function mL(n,a){if(1&n&&(i.ynx(0),i.YNc(1,fL,6,12,"div",12),i.BQk()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.steps)}}function gL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-step-header",17),i.NdJ("click",function(){return i.CHM(e).step.select()})("keydown",function(r){return i.CHM(e),i.oxw()._onKeydown(r)}),i.qZA()}if(2&n){const e=a.step,t=a.i,r=i.oxw();i.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),i.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),i.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 OC=(()=>{class n extends wE{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matStepLabel",""]],features:[i.qOj]}),n})(),BC=(()=>{class n{constructor(){this.changes=new Ee.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bL={provide:BC,deps:[[new i.FiY,new i.tp0,BC]],useFactory:function _L(n){return n||new BC}},yL=$a(class extends yE{constructor(a){super(a)}},"primary");let vE=(()=>{class n extends yL{constructor(e,t,r,l){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>l.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 OC?null:this.label}_templateLabel(){return this.label instanceof OC?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 n.\u0275fac=function(e){return new(e||n)(i.Y36(BC),i.Y36(rr),i.Y36(i.SBq),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,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:[i.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&&(i._UZ(0,"div",0),i.TgZ(1,"div"),i.TgZ(2,"div",1),i.YNc(3,QR,1,2,"ng-container",2),i.YNc(4,iL,5,4,"ng-container",3),i.qZA(),i.qZA(),i.TgZ(5,"div",4),i.YNc(6,nL,2,1,"div",5),i.YNc(7,rL,2,1,"div",5),i.YNc(8,aL,2,1,"div",6),i.YNc(9,sL,2,1,"div",7),i.qZA()),2&e&&(i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),i.xp6(1),i.Gre("mat-step-icon-state-",t.state," mat-step-icon"),i.ekj("mat-step-icon-selected",t.selected),i.xp6(1),i.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(2),i.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),i.xp6(1),i.Q6J("ngIf",t._templateLabel()),i.xp6(1),i.Q6J("ngIf",t._stringLabel()),i.xp6(1),i.Q6J("ngIf",t.optional&&"error"!=t.state),i.xp6(1),i.Q6J("ngIf","error"==t.state))},directives:[Gi,qt,T.RF,T.n9,T.tP,T.ED,T.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.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}\n"],encapsulation:2,changeDetection:0}),n})();const TE={horizontalStepTransition:ei("horizontalStepTransition",[Dt("previous",He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Dt("current",He({transform:"none",visibility:"inherit"})),Dt("next",He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),ft("* => *",ct("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:ei("verticalStepTransition",[Dt("previous",He({height:"0px",visibility:"hidden"})),Dt("next",He({height:"0px",visibility:"hidden"})),Dt("current",He({height:"*",visibility:"inherit"})),ft("* <=> current",ct("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let wL=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n})(),CL=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepContent",""]]}),n})(),xE=(()=>{class n extends Yx{constructor(e,t,r,l){super(e,l),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=he.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,nn.w)(()=>this._stepper.selectionChange.pipe((0,dt.U)(e=>e.selectedStep===this),Wt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new po(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>SE)),i.Y36(yr,4),i.Y36(i.s_b),i.Y36(CE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,OC,5),i.Suo(r,CL,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first),i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[i._Bn([{provide:yr,useExisting:n},{provide:Yx,useExisting:n}]),i.qOj],ngContentSelectors:cL,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,lL,2,1,"ng-template"))},directives:[Ya],encapsulation:2,changeDetection:0}),n})(),ME=(()=>{class n extends gf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),AL=(()=>{class n extends ME{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-horizontal-stepper"]],features:[i.qOj]}),n})(),vL=(()=>{class n extends ME{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-vertical-stepper"]],features:[i.qOj]}),n})(),SE=(()=>{class n extends gf{constructor(e,t,r,l){super(e,t,r,l),this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new Ee.xQ;const d=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===d?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Je(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(ll((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Je(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi,8),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(T.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xE,5),i.Suo(r,wL,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._steps=l),i.iGM(l=i.CRH())&&(t._icons=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(vE,5),2&e){let r;i.iGM(r=i.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(e,t){2&e&&(i.uIk("aria-orientation",t.orientation),i.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))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:gf,useExisting:n},{provide:AL,useExisting:n},{provide:vL,useExisting:n}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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&&(i.ynx(0,0),i.YNc(1,pL,5,2,"ng-container",1),i.YNc(2,mL,2,1,"ng-container",1),i.BQk(),i.YNc(3,gL,1,23,"ng-template",null,2,i.W1O)),2&e&&(i.Q6J("ngSwitch",t.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},directives:[vE,T.RF,T.n9,T.sg,T.tP,T.O5],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-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-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-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}\n'],encapsulation:2,data:{animation:[TE.horizontalStepTransition,TE.verticalStepTransition]},changeDetection:0}),n})(),TL=(()=>{class n extends ZR{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),xL=(()=>{class n extends $R{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),EE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[bL,yr],imports:[[st,T.ez,il,Gr,JR,Gc,Ja],st]}),n})();const ML=["mat-calendar-body",""];function SL(n,a){if(1&n&&(i.TgZ(0,"tr",2),i.TgZ(1,"td",3),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e.numCols),i.xp6(1),i.hij(" ",e.label," ")}}function EL(n,a){if(1&n&&(i.TgZ(0,"td",3),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e._firstRowOffset),i.xp6(1),i.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function DL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",7),i.TgZ(1,"button",8),i.NdJ("click",function(r){const d=i.CHM(e).$implicit;return i.oxw(2)._cellClicked(d,r)}),i.TgZ(2,"div",9),i._uU(3),i.qZA(),i._UZ(4,"div",10),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw().index,l=i.oxw();i.Udp("width",l._cellWidth)("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),i.uIk("data-mat-row",r)("data-mat-col",t),i.xp6(1),i.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",l._isActiveCell(r,t))("mat-calendar-body-range-start",l._isRangeStart(e.compareValue))("mat-calendar-body-range-end",l._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",l._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",l._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",l._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",l._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",l._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",l._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",l._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",l._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",l._isInPreview(e.compareValue)),i.Q6J("ngClass",e.cssClasses)("tabindex",l._isActiveCell(r,t)?0:-1),i.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",l._isSelected(e.compareValue))("aria-current",l.todayValue===e.compareValue?"date":null),i.xp6(1),i.ekj("mat-calendar-body-selected",l._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",l._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",l.todayValue===e.compareValue),i.xp6(1),i.hij(" ",e.displayValue," ")}}function HL(n,a){if(1&n&&(i.TgZ(0,"tr",4),i.YNc(1,EL,2,6,"td",5),i.YNc(2,DL,5,47,"td",6),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===t&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",e)}}function kL(n,a){if(1&n&&(i.TgZ(0,"th",5),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.uIk("aria-label",e.long),i.xp6(1),i.hij(" ",e.narrow," ")}}const PL=["*"];function RL(n,a){}function LL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("_userSelection",function(r){return i.CHM(e),i.oxw()._dateSelected(r)}),i.qZA()}if(2&n){const e=i.oxw();i.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 IL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("monthSelected",function(r){return i.CHM(e),i.oxw()._monthSelectedInYearView(r)})("selectedChange",function(r){return i.CHM(e),i.oxw()._goToDateInView(r,"month")}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function OL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("yearSelected",function(r){return i.CHM(e),i.oxw()._yearSelectedInMultiYearView(r)})("selectedChange",function(r){return i.CHM(e),i.oxw()._goToDateInView(r,"year")}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function BL(n,a){}const VL=["button"];function jL(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const FL=[[["","matDatepickerToggleIcon",""]]],NL=["[matDatepickerToggleIcon]"];class Ux{constructor(a,e,t,r,l={},d=a,o){this.value=a,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=l,this.compareValue=d,this.rawValue=o}}let _f=(()=>{class n{constructor(e,t){this._elementRef=e,this._ngZone=t,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const l=this._getCellFromElement(r.target);l&&this._ngZone.run(()=>this.previewChange.emit({value:l.enabled?l: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)})}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:l}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?l-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/l+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/l+"%")}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,jt.q)(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})}_isRangeStart(e){return zx(e,this.startValue,this.endValue)}_isRangeEnd(e){return qx(e,this.startValue,this.endValue)}_isInRange(e){return Gx(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return zx(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let l=this.rows[t][r-1];if(!l){const d=this.rows[t-1];l=d&&d[d.length-1]}return l&&!this._isRangeEnd(l.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let l=this.rows[t][r+1];if(!l){const d=this.rows[t+1];l=d&&d[0]}return l&&!this._isRangeStart(l.compareValue)}_isComparisonEnd(e){return qx(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Gx(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return zx(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return qx(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Gx(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(DE(e)?t=e:DE(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),l=t.getAttribute("data-mat-col");if(r&&l)return this.rows[parseInt(r)][parseInt(l)]}return null}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,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"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:ML,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"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(i.YNc(0,SL,3,6,"tr",0),i.YNc(1,HL,3,2,"tr",1)),2&e&&(i.Q6J("ngIf",t._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),n})();function DE(n){return"TD"===n.nodeName}function zx(n,a,e){return null!==e&&a!==e&&n=a&&n===e}function Gx(n,a,e,t){return t&&null!==a&&null!==e&&a!==e&&n>=a&&n<=e}class Jr{constructor(a,e){this.start=a,this.end=e}}let $c=(()=>{class n{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new Ee.xQ,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 n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),YL=(()=>{class n extends $c{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 n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ai))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const HE={provide:$c,deps:[[new i.FiY,new i.tp0,$c],Ai],useFactory:function zL(n,a){return n||new YL(a)}},VC=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let kE=(()=>{class n{constructor(e,t,r,l,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rangeStrategy=d,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.activeDateChange=new i.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 Jr?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(Wt(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._dateAdapter.getYear(this.activeDate),l=this._dateAdapter.getMonth(this.activeDate),d=this._dateAdapter.createDate(r,l,t);let o,s;this._selected instanceof Jr?(o=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):o=s=this._getDateInCurrentMonth(this._selected),(o!==t||s!==t)&&this.selectedChange.emit(d),this._userSelection.emit({value:d,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_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&&!Ki(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._focusActiveCell(),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)}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const l=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(l.start),this._previewEnd=this._getCellCompareValue(l.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let l=this._dateAdapter.getDayOfWeekNames("long").map((d,o)=>({long:d,narrow:t[o]}));this._weekdays=l.slice(e).concat(l.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,l=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),l=this._dateAdapter.getDate(e);return new Date(t,r,l).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Jr?(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(br,8),i.Y36(Ai,8),i.Y36(xi,8),i.Y36(VC,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&i.Gf(_f,5),2&e){let r;i.iGM(r=i.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:[i.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","previewChange","keyup","keydown"],["scope","col"]],template:function(e,t){1&e&&(i.TgZ(0,"table",0),i.TgZ(1,"thead",1),i.TgZ(2,"tr"),i.YNc(3,kL,2,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA(),i.qZA(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(l){return t._dateSelected(l)})("previewChange",function(l){return t._previewChanged(l)})("keyup",function(l){return t._handleCalendarBodyKeyup(l)})("keydown",function(l){return t._handleCalendarBodyKeydown(l)}),i.qZA(),i.qZA()),2&e&&(i.xp6(3),i.Q6J("ngForOf",t._weekdays),i.xp6(3),i.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))},directives:[_f,T.sg],encapsulation:2,changeDetection:0}),n})(),PE=(()=>{class n{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.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),RE(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jr?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(Wt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,l=[];r<24;r++)l.push(t+r),4==l.length&&(this._years.push(l.map(d=>this._createCellForYear(d))),l=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value;this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let r=this._dateAdapter.getMonth(this.activeDate),l=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,r,1));this.selectedChange.emit(this._dateAdapter.createDate(t,r,Math.min(this._dateAdapter.getDate(this.activeDate),l)))}_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,-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-S_(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._focusActiveCell(),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 S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),l=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new Ux(e,r,r,this._shouldEnableYear(e),l)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,t,r,l){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.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 Jr?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(Wt(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 l=this._dateAdapter.getNumDaysInMonth(r);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),l)))}_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._focusActiveCell(),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()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),d=this.dateClass?this.dateClass(r,"year"):void 0;return new Ux(e,t.toLocaleUpperCase(),l,this._shouldEnableMonth(e),d)}_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 l=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(l)==e;l=this._dateAdapter.addCalendarDays(l,1))if(this.dateFilter(l))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),l=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>l}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),l=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(){this.changes=new Ee.xQ,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"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$L=0,JL=(()=>{class n{constructor(e,t,r,l,d){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=l,this._buttonDescriptionId="mat-calendar-button-"+$L++,this.calendar.stateChanges.subscribe(()=>d.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)-S_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,l=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),d=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(l,d)}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):RE(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36((0,i.Gpc)(()=>$x)),i.Y36(Ai,8),i.Y36(br,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:PL,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","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&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return t.currentPeriodClicked()}),i.TgZ(3,"span"),i._uU(4),i.qZA(),i.O4$(),i.TgZ(5,"svg",3),i._UZ(6,"polygon",4),i.qZA(),i.qZA(),i.kcU(),i._UZ(7,"div",5),i.Hsn(8),i.TgZ(9,"button",6),i.NdJ("click",function(){return t.previousClicked()}),i.qZA(),i.TgZ(10,"button",7),i.NdJ("click",function(){return t.nextClicked()}),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),i.xp6(1),i.uIk("id",t._buttonDescriptionId),i.xp6(1),i.Oqu(t.periodButtonText),i.xp6(1),i.ekj("mat-calendar-invert","month"!==t.calendar.currentView),i.xp6(4),i.Q6J("disabled",!t.previousEnabled()),i.uIk("aria-label",t.prevButtonLabel),i.xp6(1),i.Q6J("disabled",!t.nextEnabled()),i.uIk("aria-label",t.nextButtonLabel))},directives:[Ft,Om],encapsulation:2,changeDetection:0}),n})(),$x=(()=>{class n{constructor(e,t,r,l){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=l,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this.stateChanges=new Ee.xQ,this._intlChanges=e.changes.subscribe(()=>{l.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 Jr?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 tl(this.headerComponent||JL),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||e.maxDate||e.dateFilter;if(t&&!t.firstChange){const r=this._getCurrentViewComponent();r&&(this._changeDetectorRef.detectChanges(),r._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof Jr||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 n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36(Ai,8),i.Y36(br,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(i.Gf(kE,5),i.Gf(IE,5),i.Gf(PE,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.monthView=r.first),i.iGM(r=i.CRH())&&(t.yearView=r.first),i.iGM(r=i.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:[i._Bn([HE]),i.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&&(i.YNc(0,RL,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,LL,1,8,"mat-month-view",2),i.YNc(3,IL,1,6,"mat-year-view",3),i.YNc(4,OL,1,6,"mat-multi-year-view",4),i.qZA()),2&e&&(i.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),i.xp6(1),i.Q6J("ngSwitch",t.currentView),i.xp6(1),i.Q6J("ngSwitchCase","month"),i.xp6(1),i.Q6J("ngSwitchCase","year"),i.xp6(1),i.Q6J("ngSwitchCase","multi-year"))},directives:[kE,IE,PE,Ya,gv,T.RF,T.n9],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}\n'],encapsulation:2,changeDetection:0}),n})();const OE={transformPanel:ei("transformPanel",[ft("void => enter-dropdown",ct("120ms cubic-bezier(0, 0, 0.2, 1)",ul([He({opacity:0,transform:"scale(1, 0.8)"}),He({opacity:1,transform:"scale(1, 1)"})]))),ft("void => enter-dialog",ct("150ms cubic-bezier(0, 0, 0.2, 1)",ul([He({opacity:0,transform:"scale(0.7)"}),He({transform:"none",opacity:1})]))),ft("* => void",ct("100ms linear",He({opacity:0})))]),fadeInCalendar:ei("fadeInCalendar",[Dt("void",He({opacity:0})),Dt("enter",He({opacity:1})),ft("void => *",ct("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let QL=0;const BE=new i.OlP("mat-datepicker-scroll-strategy"),XL={provide:BE,deps:[_r],useFactory:function KL(n){return()=>n.scrollStrategies.reposition()}},eI=$a(class{constructor(n){this._elementRef=n}});let tI=(()=>{class n extends eI{constructor(e,t,r,l,d,o){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=l,this._rangeSelectionStrategy=d,this._subscriptions=new he.w,this._animationDone=new Ee.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,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,l=t instanceof Jr;if(l&&this._rangeSelectionStrategy){const d=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(d,this)}else r&&(l||!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)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36($c),i.Y36(Ai),i.Y36(VC,8),i.Y36(E_))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&i.Gf($x,5),2&e){let r;i.iGM(r=i.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&i.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(i.d8E("@transformPanel",t._animationState),i.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.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&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-calendar",1),i.NdJ("yearSelected",function(l){return t.datepicker._selectYear(l)})("monthSelected",function(l){return t.datepicker._selectMonth(l)})("viewChanged",function(l){return t.datepicker._viewChanged(l)})("_userSelection",function(l){return t._handleUserSelection(l)}),i.qZA(),i.YNc(2,BL,0,0,"ng-template",2),i.TgZ(3,"button",3),i.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),i._uU(4),i.qZA(),i.qZA()),2&e){let r;i.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),i.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),i.xp6(1),i.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"),i.xp6(1),i.Q6J("cdkPortalOutlet",t._actionsPortal),i.xp6(1),i.ekj("cdk-visually-hidden",!t._closeButtonFocused),i.Q6J("color",t.color||"primary"),i.xp6(1),i.Oqu(t._closeButtonText)}},directives:[$x,Ft,jr,T.mk,Ya],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}}\n"],encapsulation:2,data:{animation:[OE.transformPanel,OE.fadeInCalendar]},changeDetection:0}),n})(),VE=(()=>{class n{constructor(e,t,r,l,d,o,s){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=d,this._dir=o,this._model=s,this._inputStateChanges=he.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this.openedStream=new i.vpe,this.closedStream=new i.vpe,this._opened=!1,this.id="mat-datepicker-"+QL++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Ee.xQ,this._scrollStrategy=l}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 gM(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}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 Tm&&(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}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=ja(),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,jt.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(){var e,t;null===(t=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===t||t._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal,e._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new tl(tI,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new fc({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(l=>{l&&l.preventDefault(),this.close()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,jt.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",l="above"===this.yPosition?"bottom":"top",d="top"===l?"bottom":"top";return e.withPositions([{originX:t,originY:d,overlayX:t,overlayY:l},{originX:t,originY:l,overlayX:t,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:l},{originX:r,originY:l,overlayX:r,overlayY:d}])}_getCloseStream(e){return(0,Mi.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,zt.h)(t=>27===t.keyCode&&!Ki(t)||this.datepickerInput&&Ki(t,"altKey")&&38===t.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_r),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(BE),i.Y36(Ai,8),i.Y36(xi,8),i.Y36($c))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})(),Jx=(()=>{class n extends VE{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([HE,{provide:VE,useExisting:n}]),i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),n})();class jC{constructor(a,e){this.target=a,this.targetElement=e,this.value=this.target.value}}let iI=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new i.vpe,this.dateInput=new i.vpe,this.stateChanges=new Ee.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=he.w.EMPTY,this._localeSubscription=he.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value));return!d||this._matchesFilter(d)?null:{matDatepickerFilter:!0}},this._minValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMinDate();return!o||!d||this._dateAdapter.compareDate(o,d)<=0?null:{matDatepickerMin:{min:o,actual:d}}},this._maxValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMaxDate();return!o||!d||this._dateAdapter.compareDate(o,d)>=0?null:{matDatepickerMax:{max:o,actual:d}}},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 jC(this,this._elementRef.nativeElement)),this.dateChange.emit(new jC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function nI(n,a){const e=Object.keys(n);for(let t of e){const{previousValue:r,currentValue:l}=n[t];if(!a.isDateInstance(r)||!a.isDateInstance(l))return!0;if(!a.sameDate(r,l))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),this._dateAdapter.sameDate(r,this.value)?(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(r),this._cvaOnChange(r),this.dateInput.emit(new jC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new jC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ai,8),i.Y36(br,8))},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),n})();const rI={provide:lr,useExisting:(0,i.Gpc)(()=>D_),multi:!0},aI={provide:on,useExisting:(0,i.Gpc)(()=>D_),multi:!0};let D_=(()=>{class n extends iI{constructor(e,t,r,l){super(e,t,r),this._formField=l,this._closedSubscription=he.w.EMPTY,this._validator=Ii.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ai,8),i.Y36(br,8),i.Y36(Bg,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._onInput(l.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(l){return t._onKeydown(l)}),2&e&&(i.Ikx("disabled",t.disabled),i.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:[i._Bn([rI,aI,{provide:LS,useExisting:n}]),i.qOj]}),n})(),sI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),Qx=(()=>{class n{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=he.w.EMPTY;const l=Number(r);this.tabIndex=l||0===l?l: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,Ne.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Ne.of)(),r=this.datepicker?(0,Mi.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Ne.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Mi.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36(i.sBO),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,sI,5),2&e){let l;i.iGM(l=i.CRH())&&(t._customIcon=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(VL,5),2&e){let r;i.iGM(r=i.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._open(l)}),2&e&&(i.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),i.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:[i.TTD],ngContentSelectors:NL,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&&(i.F$t(FL),i.TgZ(0,"button",0,1),i.YNc(2,jL,2,0,"svg",2),i.Hsn(3),i.qZA()),2&e&&(i.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),i.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),i.xp6(2),i.Q6J("ngIf",!t._customIcon))},directives:[Ft,T.O5],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}\n"],encapsulation:2,changeDetection:0}),n})(),Kx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[E_,XL],imports:[[T.ez,Gr,go,zh,il,st],mr]}),n})();const oI=["mat-sort-header",""];function lI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!1}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6),i._UZ(4,"div",7),i._UZ(5,"div",8),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const cI=["*"],Jc=Gv.ENTERING+" "+qv.STANDARD_CURVE,bf={indicator:ei("indicator",[Dt("active-asc, asc",He({transform:"translateY(0px)"})),Dt("active-desc, desc",He({transform:"translateY(10px)"})),ft("active-asc <=> active-desc",ct(Jc))]),leftPointer:ei("leftPointer",[Dt("active-asc, asc",He({transform:"rotate(-45deg)"})),Dt("active-desc, desc",He({transform:"rotate(45deg)"})),ft("active-asc <=> active-desc",ct(Jc))]),rightPointer:ei("rightPointer",[Dt("active-asc, asc",He({transform:"rotate(45deg)"})),Dt("active-desc, desc",He({transform:"rotate(-45deg)"})),ft("active-asc <=> active-desc",ct(Jc))]),arrowOpacity:ei("arrowOpacity",[Dt("desc-to-active, asc-to-active, active",He({opacity:1})),Dt("desc-to-hint, asc-to-hint, hint",He({opacity:.54})),Dt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",He({opacity:0})),ft("* => asc, * => desc, * => active, * => hint, * => void",ct("0ms")),ft("* <=> *",ct(Jc))]),arrowPosition:ei("arrowPosition",[ft("* => desc-to-hint, * => desc-to-active",ct(Jc,ul([He({transform:"translateY(-25%)"}),He({transform:"translateY(0)"})]))),ft("* => hint-to-desc, * => active-to-desc",ct(Jc,ul([He({transform:"translateY(0)"}),He({transform:"translateY(25%)"})]))),ft("* => asc-to-hint, * => asc-to-active",ct(Jc,ul([He({transform:"translateY(25%)"}),He({transform:"translateY(0)"})]))),ft("* => hint-to-asc, * => active-to-asc",ct(Jc,ul([He({transform:"translateY(0)"}),He({transform:"translateY(-25%)"})]))),Dt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",He({transform:"translateY(0)"})),Dt("hint-to-desc, active-to-desc, desc",He({transform:"translateY(-25%)"})),Dt("hint-to-asc, active-to-asc, asc",He({transform:"translateY(25%)"}))]),allowChildren:ei("allowChildren",[ft("* <=> *",[Dn("@*",ty(),{optional:!0})])])};let FC=(()=>{class n{constructor(){this.changes=new Ee.xQ}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uI={provide:FC,deps:[[new i.FiY,new i.tp0,FC]],useFactory:function dI(n){return n||new FC}},hI=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),pI=bg(fa(class{}));let ya=(()=>{class n extends pI{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Ee.xQ,this.start="asc",this._direction="",this.sortChange=new i.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){var t,r,l;if(!e)return"";const d=null!==(r=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==r?r:!!(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableClear);let o=function fI(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,d),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hI,8))},n.\u0275dir=i.lG2({type:n,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:[i.qOj,i.TTD]}),n})();const mI=fa(class{});let yf=(()=>{class n extends mI{constructor(e,t,r,l,d,o,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=o,this._ariaDescriber=s,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",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('[role="button"]'),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,Mi.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(FC),i.Y36(i.sBO),i.Y36(ya,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(rr),i.Y36(i.SBq),i.Y36(km,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.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:[i.qOj],attrs:oI,ngContentSelectors:cI,decls:4,vars:6,consts:[["role","button",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&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,lI,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},directives:[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-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}\n"],encapsulation:2,data:{animation:[bf.indicator,bf.leftPointer,bf.rightPointer,bf.arrowOpacity,bf.arrowPosition,bf.allowChildren]},changeDetection:0}),n})(),Xx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[uI],imports:[[T.ez,st]]}),n})(),jE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,oE,jx,gE,Gr,bE,IC,Gc,Ox,yu,CC,vl,AC,el,iC,Ou,EE,Kx,jy,$S,tE,gC,YS,Xx,ee,ju,Vu,Ja],oE,jx,gE,Gr,bE,IC,Gc,Ox,yu,CC,vl,AC,el,iC,Ou,EE,Kx,jy,$S,tE,gC,YS,Xx,ee,ju,Vu,Ja]}),n})(),gI=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-cite-dialog"]],decls:10,vars:7,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-stroked-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i._uU(5),i.qZA(),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.SHOW_CITE.TITLE")),i.xp6(3),i.hij(" ",t.publication.main," "),i.xp6(3),i.hij(" ",i.lcZ(9,5,"DIALOGS.SHOW_CITE.OK")," "))},directives:[or,kn,wr,Ft],pipes:[Ct],styles:[""]}),n})(),_I=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),FE=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),NC=(()=>{class n{transform(e){let r="";return null!==e.titleBefore&&(r+=e.titleBefore+" "),null!==e.firstName&&(r+=e.firstName+" "),null!==e.middleName&&(r+=e.middleName+" "),null!==e.lastName&&(r+=e.lastName+" "),null!==e.titleAfter&&(r+=e.titleAfter+" "),r.endsWith(" ")&&(r=r.substring(0,r.length-1)),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})();function bI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",20),i.TgZ(1,"mat-checkbox",21),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function yI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22),i.TgZ(1,"mat-checkbox",23),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function wI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function CI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function AI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function vI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().lockOrUnlockPublication(r)})("mouseenter",function(){return i.CHM(e),i.oxw(2).buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw(2).buttonPressed=!1}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function TI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().lockOrUnlockPublication(r)})("mouseenter",function(){return i.CHM(e),i.oxw(2).buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw(2).buttonPressed=!1}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock_open"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function xI(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,vI,4,3,"button",26),i.YNc(2,TI,4,3,"button",26),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.locked),i.xp6(1),i.Q6J("ngIf",!e.locked)}}function MI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function SI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.title," ")}}function EI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function DI(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"userFullName"),i._UZ(3,"br"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e),"")}}function HI(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,DI,4,3,"span",28),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngForOf",e.authors)}}function kI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function PI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.year," ")}}function RI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function LI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.categoryName," ")}}function II(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function OI(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i._UZ(2,"br"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.ownerName,"")}}function BI(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,OI,3,1,"span",28),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngForOf",e.thanks)}}function VI(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function jI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",25),i.TgZ(1,"button",30),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showCite(l)})("mouseenter",function(){return i.CHM(e),i.oxw().buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw().buttonPressed=!1}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function FI(n,a){1&n&&i._UZ(0,"tr",31)}const NE=function(n,a){return[n,a]};function NI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.disabledRouting&&d.openInTab&&!d.buttonPressed?d.emitPublication(l):null}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:i.WLB(4,NE,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:i.WLB(7,NE,t.routerPath,e.id))}}function YI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",33),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let wf=(()=>{class n{constructor(e,t,r,l,d){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=l,this.translate=d,this.selection=new Li(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Uu,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new i.vpe,this.buttonPressed=!1,d.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(o=>this.changeLockMessage=o),d.get("PUBLICATIONS_LIST.LOCKED").subscribe(o=>this.locked=o),d.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(o=>this.unlocked=o)}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(l=>r+=vS(l)+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(l=>r+=l.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new Il(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=Zn();t.width="500px",t.data=e,this.dialog.open(gI,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)=>cf(e,t,n.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(wC),i.Y36(li),i.Y36(fn),i.Y36(Rn),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(ya,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.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:[i.TTD],decls:33,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","title","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","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"],["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,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,bI,2,3,"th",4),i.YNc(5,yI,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,wI,3,3,"th",7),i.YNc(8,CI,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,AI,3,3,"th",7),i.YNc(11,xI,3,2,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,MI,3,3,"th",7),i.YNc(14,SI,2,1,"td",8),i.BQk(),i.ynx(15,11),i.YNc(16,EI,3,3,"th",7),i.YNc(17,HI,2,1,"td",8),i.BQk(),i.ynx(18,12),i.YNc(19,kI,3,3,"th",7),i.YNc(20,PI,2,1,"td",8),i.BQk(),i.ynx(21,13),i.YNc(22,RI,3,3,"th",7),i.YNc(23,LI,2,1,"td",8),i.BQk(),i.ynx(24,14),i.YNc(25,II,3,3,"th",7),i.YNc(26,BI,2,1,"td",8),i.BQk(),i.ynx(27,15),i.YNc(28,VI,3,3,"th",16),i.YNc(29,jI,4,3,"td",8),i.BQk(),i.YNc(30,FI,1,0,"tr",17),i.YNc(31,NI,1,10,"tr",18),i.qZA(),i.qZA(),i.qZA(),i.YNc(32,YI,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(28),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},directives:[ts,Mo,ya,Os,Is,Bs,Zc,Ls,Vs,yf,T.O5,Ft,zc,Gi,T.sg,Rl,Ll,So,Eo,FE,F,js],pipes:[Ct,NC],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function UI(n,a){1&n&&i._UZ(0,"mat-spinner",7)}const zI=function(){return["id","title","year"]};function qI(n,a){if(1&n&&(i.TgZ(0,"div",8),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"perun-web-apps-publications-list",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),i.xp6(2),i.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",i.DdM(6,zI))}}let eM=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetService=d,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Rn),i.Y36(Ri),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,UI,1,0,"mat-spinner",2),i.YNc(5,qI,4,7,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.remove()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),i.xp6(2),i.Q6J("disabled",t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},directives:[or,T.O5,mn,kn,wf,wr,Ft],pipes:[Ct],styles:[""]}),n})(),Cf=(()=>{class n{constructor(){this.refresh=new i.vpe}onClickbutton(e){this.refresh.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"button",0),i.NdJ("click",function(l){return t.onClickbutton(l)}),i.ALo(1,"translate"),i._UZ(2,"mat-icon",1),i.qZA()),2&e&&(i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),i.Q6J("disabled",t.disabled),i.xp6(2),i.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[Ft,zc,Gi],pipes:[Ct],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}"]}),n})();var Af=x(5439);const qu=Af||x.t(Af,2),YE=new i.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function WI(){return{useUtc:!1}}});function ZI(n,a){const e=Array(n);for(let t=0;t{class n extends Ai{constructor(e,t){super(),this._options=t,this.setLocale(e||qu.locale())}setLocale(e){super.setLocale(e);let t=qu.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:ZI(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 l=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return l.isValid(),l}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,qu.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return qu.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return qu.invalid()}_createMoment(e,t,r){const{strict:l,useUtc:d}=this._options||{};return d?qu.utc(e,t,r,l):qu(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ao,8),i.LFG(YE,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$I=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ai,useClass:H_,deps:[Ao,YE]}]}),n})(),UE=(()=>{class n{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,r.close()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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","example-month-picker",3,"yearSelected"],["sdp",""],["matInput","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=i.EpF();i.TgZ(0,"mat-form-field",0),i.NdJ("click",function(){return i.CHM(r),i.MAs(7).open()}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",1),i._UZ(5,"mat-datepicker-toggle",2),i.TgZ(6,"mat-datepicker",3,4),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(7);return t.chosenYearHandler(t.startYear,d,o)}),i.qZA(),i.qZA(),i.TgZ(8,"mat-form-field",0),i.NdJ("click",function(){return i.CHM(r),i.MAs(15).open()}),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._UZ(12,"input",5),i._UZ(13,"mat-datepicker-toggle",2),i.TgZ(14,"mat-datepicker",3,6),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(15);return t.chosenYearHandler(t.endYear,d,o)}),i.qZA(),i.qZA()}if(2&e){const r=i.MAs(7),l=i.MAs(15);i.xp6(2),i.Oqu(i.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),i.xp6(2),i.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),i.xp6(1),i.Q6J("for",r),i.xp6(5),i.Oqu(i.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),i.xp6(2),i.Q6J("matDatepicker",l)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),i.xp6(1),i.Q6J("for",l)}},directives:[Gn,Xa,is,D_,Wn,Cr,es,Qx,gw,Jx],pipes:[Ct],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function JI(n,a){if(1&n&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}const YC=Af,QI={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let tM=(()=>{class n{constructor(e){this.cabinetService=e,this.filteredPublication=new i.vpe,this.title=new Oi,this.code=new Oi,this.startYear=new Oi(YC()),this.endYear=new Oi(YC())}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,T.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,T.p6)(this.endYear.value,"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear=new Oi(YC()),this.endYear=new Oi(YC()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[i._Bn([{provide:Ai,useClass:H_,deps:[Ao]},{provide:br,useValue:QI}])],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&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-form-field",1),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedMode=l}),i.TgZ(9,"mat-option",4),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"mat-option",5),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",6),i._UZ(16,"input",2),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-form-field",1),i.TgZ(19,"mat-label"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedCategory=l}),i.TgZ(23,"mat-option",7),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.YNc(26,JI,2,2,"mat-option",8),i.qZA(),i.qZA(),i._UZ(27,"perun-web-apps-year-range",9),i.TgZ(28,"button",10),i.NdJ("click",function(){return t.filter()}),i.TgZ(29,"mat-icon"),i._uU(30,"search"),i.qZA(),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"button",11),i.NdJ("click",function(){return t.clearFilter()}),i.TgZ(34,"mat-icon"),i._uU(35,"search_off"),i.qZA(),i._uU(36),i.ALo(37,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.s9C("placeholder",i.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),i.Q6J("formControl",t.title),i.xp6(4),i.Oqu(i.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),i.xp6(2),i.Q6J("value",t.selectedMode),i.xp6(2),i.Oqu(i.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),i.xp6(3),i.Oqu(i.lcZ(14,22,"PUBLICATION_FILTER.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),i.Q6J("formControl",t.code),i.xp6(4),i.Oqu(i.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),i.xp6(2),i.Q6J("value",t.selectedCategory),i.xp6(2),i.Oqu(i.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("startYear",t.startYear)("endYear",t.endYear),i.xp6(4),i.hij(" ",i.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),i.xp6(5),i.hij(" ",i.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},directives:[Gn,is,Wn,Cr,es,Xa,Uc,xc,T.sg,UE,Ft,Gi],pipes:[Ct],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}"]}),n})();function KI(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",10),2&n){const e=i.oxw();i.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function XI(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let eO=(()=>{class n{constructor(e,t,r,l,d){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=l,this.domSanitizer=d,this.selected=new Li(!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=Zn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(fn),i.Y36(Yu),i.Y36(Bn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._UZ(2,"mat-icon",2),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA(),i.TgZ(6,"div",4),i.TgZ(7,"perun-web-apps-refresh-button",5),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"button",6),i.NdJ("click",function(){return t.removePublication()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"perun-web-apps-publication-filter",7),i.NdJ("filteredPublication",function(l){return t.filterPublication(l)}),i.qZA(),i.qZA(),i.YNc(12,KI,1,4,"perun-web-apps-publications-list",8),i.YNc(13,XI,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),i.xp6(4),i.Q6J("disabled",0===t.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[Gi,Cf,Ft,tM,T.O5,wf,mn],pipes:[Ct],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),n})();function tO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function iO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",6),i.TgZ(2,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA(),i.TgZ(3,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().removePublication()}),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){return i.CHM(e),i.oxw().filterPublication(r)}),i.qZA(),i.qZA(),i.YNc(7,tO,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function nO(n,a){1&n&&i._UZ(0,"mat-spinner",12)}let rO=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=l,this.selected=new Li(!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=Zn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(fn),i.Y36(Vi))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"local_library"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,iO,8,5,"div",4),i.YNc(8,nO,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},directives:[Gi,T.O5,Cf,Ft,tM,wf,mn],pipes:[Ct],styles:[""]}),n})(),aO=(()=>{class n{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,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"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"div",3),i.TgZ(8,"div",4),i.TgZ(9,"mat-card",5),i.TgZ(10,"mat-card-title"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"mat-card-content",6),i.TgZ(14,"div"),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"button",7),i.NdJ("click",function(){return t.importPublications()}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(20,"div",4),i.TgZ(21,"mat-card",5),i.TgZ(22,"mat-card-title"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"mat-card-content",6),i.TgZ(26,"div"),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.TgZ(29,"button",7),i.NdJ("click",function(){return t.createPublication()}),i._uU(30),i.ALo(31,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),i.xp6(6),i.hij(" ",i.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),i.xp6(5),i.hij(" ",i.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},directives:[Gi,sE,aE,rE,Ft],pipes:[Ct],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}"]}),n})();const sO=["groupFilterInput"];let oO=(()=>{class n{constructor(){this.autoFocus=!1,this.filter=new i.vpe}ngOnInit(){this.autoFocus&&this.groupFilterInput.nativeElement.focus(),ua(this.groupFilterInput.nativeElement,"keyup").pipe((0,dt.U)(e=>e.target.value),(0,ol.b)(500),ll()).subscribe(e=>{this.filter.emit(e)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&i.Gf(sO,7),2&e){let r;i.iGM(r=i.CRH())&&(t.groupFilterInput=r.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i._UZ(1,"input",1,2),i.ALo(3,"translate"),i.qZA()),2&e&&(i.xp6(1),i.s9C("placeholder",i.lcZ(3,1,t.placeholder)))},directives:[Gn,is],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),n})();function lO(n,a){1&n&&i._UZ(0,"th",20)}function cO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",21),i.TgZ(1,"mat-checkbox",22),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function dO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"AUTHORS_LIST.ID")))}function uO(n,a){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function hO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function pO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"userFullName"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,e))}}function fO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function mO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"organization"))}}function gO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function _O(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"preferredMail"))}}function bO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function yO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.authorships.length.toString())}}function wO(n,a){1&n&&i._UZ(0,"th",26)}function CO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24),i.TgZ(1,"button",27),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().onAddClick(l)}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function AO(n,a){1&n&&i._UZ(0,"th",26)}function vO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24),i.TgZ(1,"button",28),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().onRemoveClick(l)}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function TO(n,a){1&n&&i._UZ(0,"tr",29)}const zE=function(n){return["/authors",n]};function xO(n,a){if(1&n&&i._UZ(0,"tr",30),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.VKq(4,zE,e.id))("routerLink",t.disableRouting?null:i.VKq(6,zE,e.id))}}function MO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function SO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let iM=(()=>{class n{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Uu,this.addAuthor=new i.vpe,this.removeAuthor=new i.vpe}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function SH(n){let a="";return null!==n.firstName&&(a+=n.firstName+" "),null!==n.middleName&&(a+=n.middleName+" "),null!==n.lastName&&(a+=n.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}(e);case"organization":return df(e,"organization");case"email":return df(e,"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 vS(e);case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){var r;switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:null!==(r=e.firstName)&&void 0!==r?r:"";case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Il(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(l=>{l.friendlyName===t&&(r=l.value)}),r}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`}onAddClick(e){this.addAuthor.emit(e)}onRemoveClick(e){this.removeAuthor.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(ya,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[i.TTD],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["matColumnDef","add"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","remove"],["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"],["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-header-cell",""],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,lO,1,0,"th",4),i.YNc(5,cO,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,dO,3,3,"th",7),i.YNc(8,uO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,hO,3,3,"th",7),i.YNc(11,pO,3,3,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,fO,3,3,"th",7),i.YNc(14,mO,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,gO,3,3,"th",7),i.YNc(17,_O,2,1,"td",10),i.BQk(),i.ynx(18,13),i.YNc(19,bO,3,3,"th",7),i.YNc(20,yO,2,1,"td",10),i.BQk(),i.ynx(21,14),i.YNc(22,wO,1,0,"th",15),i.YNc(23,CO,4,3,"td",8),i.BQk(),i.ynx(24,16),i.YNc(25,AO,1,0,"th",15),i.YNc(26,vO,4,3,"td",8),i.BQk(),i.YNc(27,TO,1,0,"tr",17),i.YNc(28,xO,1,8,"tr",18),i.qZA(),i.qZA(),i.qZA(),i.YNc(29,MO,3,3,"perun-web-apps-alert",19),i.YNc(30,SO,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(25),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.authors.length))},directives:[ts,Mo,ya,Os,Is,Bs,Ls,Vs,Zc,yf,Ft,Rl,Ll,So,Eo,FE,F,T.O5,js],pipes:[Ct,NC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function EO(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const DO=function(){return["id","name","organization","email","numberOfPublications"]};function HO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.authors)("displayedColumns",i.DdM(4,DO))("filterValue",e.filterValue)("tableId",e.tableId)}}let kO=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"perun-web-apps-refresh-button",4),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"perun-web-apps-debounce-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(9,EO,1,0,"mat-spinner",6),i.YNc(10,HO,1,5,"perun-web-apps-authors-list",7),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,4,"AUTHORS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","AUTHORS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Gi,Cf,oO,T.O5,mn,iM],pipes:[Ct],styles:[""]}),n})();function PO(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function RO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.TgZ(8,"mat-form-field"),i._UZ(9,"input",6),i.ALo(10,"translate"),i.TgZ(11,"mat-error"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.qZA(),i.TgZ(14,"p",7),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.qZA(),i.TgZ(17,"div",8),i.TgZ(18,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"div",10),i.ALo(22,"translate"),i.TgZ(23,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),i.Q6J("formControl",e.nameCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),i.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let LO=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=l,l.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new Oi(null,[Ii.required,Ii.pattern("^[\\w.-]+( [\\w.-]+)*$"),Ii.maxLength(128)]),this.rankCtrl=new Oi(null,[Ii.required,Ii.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(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Rn),i.Y36(li),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,PO,1,0,"mat-spinner",2),i.YNc(5,RO,26,28,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,Gn,is,Wn,xo,Cr,es,To,wr,Ft,zc],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function IO(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function OO(n,a){1&n&&i._UZ(0,"th",14)}function BO(n,a){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function VO(n,a){1&n&&i._UZ(0,"tr",16)}function jO(n,a){1&n&&i._UZ(0,"tr",17)}function FO(n,a){if(1&n&&(i.TgZ(0,"div",6),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",7),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",8),i.ynx(8,9),i.YNc(9,OO,1,0,"th",10),i.YNc(10,BO,2,1,"td",11),i.BQk(),i.YNc(11,VO,1,0,"tr",12),i.YNc(12,jO,1,0,"tr",13),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),i.xp6(2),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function NO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",18),i.TgZ(1,"button",19),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",20),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let YO=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetManagerService=d,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new Il(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Rn),i.Y36(Ri),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,IO,1,0,"mat-spinner",2),i.YNc(5,FO,13,9,"div",3),i.YNc(6,NO,7,7,"div",4),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,Mo,Os,Is,Bs,Ls,Vs,Rl,Ll,So,Eo,wr,Ft],pipes:[Ct],styles:[""]}),n})();function UO(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function zO(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let k_=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Oi}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,UO,2,4,"input",1),i.YNc(2,zO,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},directives:[Gn,T.O5,is,Wn,_I,Cr,es],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),n})();function qO(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function GO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.TgZ(8,"p",7),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.TgZ(11,"div",8),i.TgZ(12,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"div",10),i.ALo(16,"translate"),i.TgZ(17,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),i.Q6J("matTooltipDisabled",e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let WO=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=l,this.translate=d,this.categoryName="",d.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(o=>this.successMessage=o)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Oi(this.data.rank,[Ii.required,Ii.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(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Rn),i.Y36(li),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,qO,1,0,"mat-spinner",2),i.YNc(5,GO,20,21,"div",3),i.qZA()),2&e&&(i.xp6(2),i.AsE("",i.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,Gn,is,Wn,xo,Cr,es,To,wr,Ft,zc],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function ZO(n,a){1&n&&i._UZ(0,"th",15)}function $O(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",16),i.TgZ(1,"mat-checkbox",17),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function JO(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function QO(n,a){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function KO(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function XO(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function eB(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function tB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().updateCategory(r)}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA(),i.qZA()}}function iB(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.YNc(2,tB,3,0,"button",21),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.hij(" ",e.rank," "),i.xp6(1),i.Q6J("ngIf",t.editAuth)}}function nB(n,a){1&n&&i._UZ(0,"tr",23)}function rB(n,a){1&n&&i._UZ(0,"tr",24)}function aB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let sB=(()=>{class n{constructor(e,t,r,l){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=l,this.categories=[],this.selection=new Li(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Uu,this.refreshTable=new i.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 Il(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=Zn();t.width="400px",t.data=e,this.dialog.open(WO,t).afterClosed().subscribe(l=>{l&&this.refreshTable.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(na),i.Y36(wC),i.Y36(fn),i.Y36(na))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(ya,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[i.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZO,1,0,"th",4),i.YNc(5,$O,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,JO,3,3,"th",7),i.YNc(8,QO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,KO,3,3,"th",7),i.YNc(11,XO,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,eB,3,3,"th",7),i.YNc(14,iB,3,2,"td",10),i.BQk(),i.YNc(15,nB,1,0,"tr",12),i.YNc(16,rB,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,aB,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},directives:[ts,Mo,ya,Os,Is,Bs,Ls,Vs,Zc,yf,T.O5,Ft,Gi,Rl,Ll,So,Eo,js],pipes:[Ct],styles:[""]}),n})();function oB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().addCategory()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function lB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().removeCategory()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",!e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function cB(n,a){1&n&&i._UZ(0,"mat-spinner",10)}const dB=function(){return["select","id","name","rank"]},uB=function(){return["name","rank"]};function hB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-categories-list",11),i.NdJ("refreshTable",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?i.DdM(5,dB):i.DdM(6,uB))("tableId",e.tableId)("selection",e.selected)}}let pB=(()=>{class n{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new Li(!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=Zn();e.width="400px",e.data={},this.dialog.open(LO,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=Zn();e.width="400px",e.data=this.selected.selected,this.dialog.open(YO,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(fn),i.Y36(na))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.YNc(5,oB,3,3,"button",3),i.YNc(6,lB,3,4,"button",4),i.TgZ(7,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(8,cB,1,0,"mat-spinner",6),i.YNc(9,hB,1,7,"perun-web-apps-categories-list",7),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),i.xp6(3),i.Q6J("ngIf",t.addAuth),i.xp6(1),i.Q6J("ngIf",t.removeAuth),i.xp6(1),i.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.categories&&!t.loading))},directives:[Cf,T.O5,Ft,k_,mn,sB],pipes:[Ct],styles:[""]}),n})();function fB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function mB(n,a){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function gB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function _B(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyName)}}function bB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function yB(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function wB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function CB(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu("empty"===e.url?"":e.url)}}function AB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function vB(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu("empty"===e.type?"":e.type)}}function TB(n,a){1&n&&i._UZ(0,"tr",17)}function xB(n,a){1&n&&i._UZ(0,"tr",18)}function MB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let SB=(()=>{class n{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Uu}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 Il(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(ya,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,fB,3,3,"th",4),i.YNc(5,mB,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,gB,3,3,"th",4),i.YNc(8,_B,2,1,"td",7),i.BQk(),i.ynx(9,8),i.YNc(10,bB,3,3,"th",4),i.YNc(11,yB,2,1,"td",7),i.BQk(),i.ynx(12,9),i.YNc(13,wB,3,3,"th",4),i.YNc(14,CB,2,1,"td",7),i.BQk(),i.ynx(15,10),i.YNc(16,AB,3,3,"th",4),i.YNc(17,vB,2,1,"td",7),i.BQk(),i.YNc(18,TB,1,0,"tr",11),i.YNc(19,xB,1,0,"tr",12),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,MB,3,3,"perun-web-apps-alert",13)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},directives:[ts,Mo,ya,Os,Is,Bs,yf,Ls,Vs,Rl,Ll,So,Eo,T.O5,js],pipes:[Ct],styles:[""]}),n})();function EB(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function DB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publication-systems-list",7),2&n){const e=i.oxw();i.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let HB=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(6,EB,1,0,"mat-spinner",4),i.YNc(7,DB,1,3,"perun-web-apps-publication-systems-list",5),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.publicationSystems&&!t.loading))},directives:[Cf,k_,T.O5,mn,SB],pipes:[Ct],styles:[""]}),n})();function kB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function PB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h5"),i._uU(2),i.ALo(3,"userFullName"),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",6),i.TgZ(6,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().removePublication()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){return i.CHM(e),i.oxw().filterPublication(r)}),i.qZA(),i.qZA(),i.YNc(11,kB,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.AsE("",i.lcZ(3,5,e.author),"",i.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),i.xp6(5),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function RB(n,a){1&n&&i._UZ(0,"mat-spinner",12)}let LB=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=l,this.selected=new Li(!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=Zn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,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,null,null,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(Mr),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,PB,12,11,"div",4),i.YNc(8,RB,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"AUTHORS_PAGE.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},directives:[Gi,T.O5,Cf,Ft,tM,wf,mn],pipes:[Ct,NC],styles:[""]}),n})();function IB(n,a){1&n&&i._UZ(0,"mat-spinner",2)}function OB(n,a){if(1&n&&(i.TgZ(0,"h3",15),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.publication.title)}}function BB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return r.editing=!r.editing}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"edit"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function VB(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function jB(n,a){if(1&n&&(i.TgZ(0,"mat-form-field",18),i._UZ(1,"textarea",19),i.YNc(2,VB,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("formControl",e.titleControl),i.xp6(1),i.Q6J("ngIf",e.titleControl.invalid)}}function FB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).save()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"save"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),i.Q6J("disabled",e.titleControl.invalid)}}function NB(n,a){1&n&&i._UZ(0,"th",21)}function YB(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij("",e.key,":")}}function UB(n,a){1&n&&i._UZ(0,"th",21)}function zB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.TgZ(2,"span",24),i._uU(3),i.ALo(4,"translate"),i.qZA(),i._uU(5),i.TgZ(6,"span",24),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._uU(9),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(2);i.xp6(1),i.hij(" ",e.value," / "),i.xp6(2),i.hij("",i.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),i.xp6(2),i.hij(" ",t.publication.externalId," "),i.xp6(2),i.hij("",i.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),i.xp6(2),i.hij(" ",t.publication.pubSystemName," ")}}function qB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function GB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function WB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw(3).$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function ZB(n,a){if(1&n&&(i.TgZ(0,"span"),i.YNc(1,WB,2,1,"span",1),i.qZA()),2&n){const e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function $B(n,a){1&n&&(i.TgZ(0,"span"),i._uU(1," - "),i.qZA())}function JB(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,ZB,2,1,"span",1),i.YNc(2,$B,2,0,"span",1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",null!==e.value&&""!==e.value),i.xp6(1),i.Q6J("ngIf",null===e.value||""===e.value)}}function QB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",26),i.NdJ("click",function(){return i.CHM(e),i.MAs(7).open()}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",27),i._UZ(5,"mat-datepicker-toggle",28),i.TgZ(6,"mat-datepicker",29,30),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(7);return i.oxw(4).chosenYearHandler(r,l)}),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(7),t=i.oxw(4);i.xp6(2),i.Oqu(i.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),i.xp6(1),i.Q6J("for",e)}}function KB(n,a){if(1&n&&(i.TgZ(0,"mat-option",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function XB(n,a){if(1&n&&(i.TgZ(0,"mat-form-field"),i.TgZ(1,"mat-select",31),i.YNc(2,KB,2,2,"mat-option",32),i.qZA(),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.categoryControl),i.xp6(1),i.Q6J("ngForOf",e.categories)}}function eV(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function tV(n,a){if(1&n&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",34),i.YNc(2,eV,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.rankControl),i.xp6(1),i.Q6J("ngIf",e.rankControl.invalid)}}function iV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"input",35),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.isbn=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.isbn)}}function nV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"input",35),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.doi=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.doi)}}function rV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"textarea",36),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.main=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.main)}}function aV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,QB,8,7,"mat-form-field",25),i.YNc(2,XB,3,2,"mat-form-field",1),i.YNc(3,tV,3,2,"mat-form-field",1),i.YNc(4,iV,2,1,"mat-form-field",6),i.YNc(5,nV,2,1,"mat-form-field",6),i.YNc(6,rV,2,1,"mat-form-field",6),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf","Year"===e.key),i.xp6(1),i.Q6J("ngIf","Category"===e.key),i.xp6(1),i.Q6J("ngIf","Rank"===e.key),i.xp6(1),i.Q6J("ngIf","ISBN / ISSN"===e.key),i.xp6(1),i.Q6J("ngIf","DOI"===e.key),i.xp6(1),i.Q6J("ngIf","Full cite"===e.key)}}function sV(n,a){if(1&n&&(i.TgZ(0,"td",23),i.YNc(1,zB,10,9,"span",1),i.YNc(2,qB,3,4,"span",1),i.YNc(3,GB,2,1,"span",1),i.YNc(4,JB,3,2,"div",1),i.YNc(5,aV,7,6,"div",1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("ngIf","Id / Origin"===e.key),i.xp6(1),i.Q6J("ngIf","Create date"===e.key),i.xp6(1),i.Q6J("ngIf","Created by"===e.key),i.xp6(1),i.Q6J("ngIf",!t.editing),i.xp6(1),i.Q6J("ngIf",t.editing)}}function oV(n,a){1&n&&i._UZ(0,"tr",37)}function lV(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"div",3),i.YNc(2,OB,2,1,"h3",4),i.YNc(3,BB,4,3,"button",5),i.YNc(4,jB,3,2,"mat-form-field",6),i.YNc(5,FB,4,4,"button",7),i.qZA(),i.TgZ(6,"table",8),i.ynx(7,9),i.YNc(8,NB,1,0,"th",10),i.YNc(9,YB,2,1,"td",11),i.BQk(),i.ynx(10,12),i.YNc(11,UB,1,0,"th",10),i.YNc(12,sV,6,5,"td",13),i.BQk(),i.YNc(13,oV,1,0,"tr",14),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngIf",!e.editing),i.xp6(1),i.Q6J("ngIf",!e.editing&&!e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(7),i.Q6J("matRowDefColumns",e.displayedColumns)}}const qE=Af,cV={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let dV=(()=>{class n{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.edited=new i.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new Li(!0,[]),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;el.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(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(l=>{this.notificator.showSuccess(l),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Rn),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[i._Bn([{provide:Ai,useClass:H_,deps:[Ao]},{provide:br,useValue:cV}])],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&&(i.TgZ(0,"div"),i.YNc(1,IB,1,0,"mat-spinner",0),i.YNc(2,lV,14,6,"div",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,mn,Ft,zc,Gi,Gn,is,Wn,Cr,es,To,Mo,Os,Is,Bs,Ls,Vs,Xa,D_,Qx,gw,Jx,Uc,T.sg,xc,Ml,So,Eo],pipes:[Ct,T.uU],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}"]}),n})();const uV=function(){return["id","name","organization","email","add"]};function hV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",15),i.NdJ("addAuthor",function(r){return i.CHM(e),i.oxw(3).addAuthor(r)}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("authors",e.authors)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(4,uV))}}function pV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function fV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,hV,1,5,"perun-web-apps-authors-list",13),i.YNc(2,pV,3,3,"perun-web-apps-alert",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.firstSearchDone)}}function mV(n,a){1&n&&i._UZ(0,"mat-spinner",17)}const gV=function(){return["id","name","organization","email","remove"]};function _V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",19),i.NdJ("removeAuthor",function(r){return i.CHM(e),i.oxw(3).removeAuthor(r)}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("reloadTable",e.reloadTable)("authors",e.authorsToAdd)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(5,gV))}}function bV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,_V,1,6,"perun-web-apps-authors-list",18),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone)}}function yV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function wV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,fV,3,2,"div",6),i.YNc(2,mV,1,0,"mat-spinner",7),i.TgZ(3,"h2",11),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,bV,2,1,"div",6),i.YNc(7,yV,3,3,"perun-web-apps-alert",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.searchLoading),i.xp6(1),i.Q6J("ngIf",e.searchLoading),i.xp6(2),i.hij(" ",i.lcZ(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")," "),i.xp6(2),i.Q6J("ngIf",e.firstSearchDone&&0!==e.authorsToAdd.length),i.xp6(1),i.Q6J("ngIf",0===e.authorsToAdd.length)}}function CV(n,a){1&n&&i._UZ(0,"mat-spinner",17)}let AV=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=l,this.translate=d,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors="67",this.selection=new Li(!1,[]),this.reloadTable=!1,d.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(o=>this.successMessage=o),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Oi("",[Ii.required,Ii.pattern(".*[\\S]+.*")])}onSearchByString(){this.searchLoading=!0;const e=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(t=>{t=t.filter(r=>!e.map(l=>l.id).includes(r.id)),this.authors=t,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const e=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe(()=>{this.onAdd()},()=>this.loading=!1)}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}addAuthor(e){this.authors=this.authors.filter(t=>t!==e),this.authorsToAdd.push(e),this.reloadTable=!this.reloadTable}removeAuthor(e){this.authorsToAdd=this.authorsToAdd.filter(t=>t!==e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Rn),i.Y36(li),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,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"],["mat-dialog-title","",1,"top-margin"],["alert_type","warn",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor"],["alert_type","info"],[1,"ml-auto","mr-auto"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor",4,"ngIf"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"mat-form-field",3),i.TgZ(6,"label"),i.TgZ(7,"input",4),i.NdJ("keyup.enter",function(){return t.onSearchByString()}),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-error"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.TgZ(12,"button",5),i.NdJ("click",function(){return t.onSearchByString()}),i.TgZ(13,"mat-icon"),i._uU(14,"search"),i.qZA(),i.qZA(),i.YNc(15,wV,8,7,"div",6),i.qZA(),i.YNc(16,CV,1,0,"mat-spinner",7),i.TgZ(17,"div",8),i.TgZ(18,"button",9),i.NdJ("click",function(){return t.onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"button",10),i.NdJ("click",function(){return t.onAdd()}),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),i.xp6(5),i.s9C("placeholder",i.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),i.Q6J("formControl",t.searchControl),i.xp6(3),i.hij(" ",i.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(3),i.hij(" ",i.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===t.authorsToAdd.length||t.loading),i.xp6(1),i.hij(" ",i.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},directives:[or,kn,Gn,is,Wn,Cr,es,To,Ft,Gi,T.O5,iM,js,mn,wr],pipes:[Ct],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),n})();function vV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddAuthors()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function TV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onRemoveAuthors()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function xV(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const MV=function(){return["id","name","organization","email"]},SV=function(){return["select","id","name","organization","email"]};function EV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,MV):i.DdM(6,SV))}}let GE=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new Li(!0,[]),this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=Zn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(AV,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=Zn();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(FS,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(li),i.Y36(Rn),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection"},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","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","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,vV,3,3,"button",1),i.YNc(2,TV,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,xV,1,0,"mat-spinner",4),i.YNc(5,EV,1,7,"perun-web-apps-authors-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,Ft,k_,mn,iM],pipes:[Ct],styles:[""]}),n})();function DV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",16),i.TgZ(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function HV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function kV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function PV(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function RV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function LV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function IV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function OV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.contact)}}function BV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function VV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.type)}}function jV(n,a){1&n&&i._UZ(0,"tr",23)}function FV(n,a){1&n&&i._UZ(0,"tr",24)}function NV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function YV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let UV=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new Li(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Uu}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()}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.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 Il(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(na),i.Y36(wC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(ya,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","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","contact"],["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","",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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,DV,2,3,"th",4),i.YNc(5,HV,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,kV,3,3,"th",7),i.YNc(8,PV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,RV,3,3,"th",7),i.YNc(11,LV,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,IV,3,3,"th",7),i.YNc(14,OV,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,BV,3,3,"th",7),i.YNc(17,VV,2,1,"td",10),i.BQk(),i.YNc(18,jV,1,0,"tr",13),i.YNc(19,FV,1,0,"tr",14),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,NV,3,3,"perun-web-apps-alert",15),i.YNc(21,YV,3,3,"perun-web-apps-alert",15)),2&e&&(i.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.owners.length),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},directives:[ts,Mo,ya,Os,Is,Bs,Zc,Ls,Vs,yf,Rl,Ll,So,Eo,T.O5,js],pipes:[Ct],styles:[""]}),n})();function zV(n,a){1&n&&i._UZ(0,"mat-spinner",4)}const qV=function(){return["select","id","name","contact"]};function GV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"perun-web-apps-immediate-filter",6),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().filterValue=r}),i.qZA(),i._UZ(3,"perun-web-apps-owners-list",7),i.qZA(),i.TgZ(4,"div",8),i.TgZ(5,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),i.xp6(1),i.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",i.DdM(13,qV))("selection",e.selected),i.xp6(3),i.hij(" ",i.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length||e.loading),i.xp6(1),i.hij(" ",i.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let WV=(()=>{class n{constructor(e,t,r,l,d,o,s){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=l,this.notificator=d,this.translate=o,this.cabinetManagerService=s,this.selected=new Li(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(r.id)):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(l=>l.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36($t),i.Y36(hn),i.Y36(Rn),i.Y36(Ri),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,zV,1,0,"mat-spinner",2),i.YNc(5,GV,11,14,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,k_,UV,wr,Ft],pipes:[Ct],styles:[""]}),n})();function ZV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function $V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function JV(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"THANKS_LIST.ID")))}function QV(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.ownerId)}}function KV(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NAME")," "))}function XV(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.ownerName)}}function ej(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function tj(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.createdBy)}}function ij(n,a){1&n&&i._UZ(0,"tr",22)}function nj(n,a){1&n&&i._UZ(0,"tr",23)}function rj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function aj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}let sj=(()=>{class n{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Uu,this.selection=new Li(!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 Il(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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(ya,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[i.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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","createdBy"],["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"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZV,2,3,"th",4),i.YNc(5,$V,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,JV,3,3,"th",7),i.YNc(8,QV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,KV,3,3,"th",7),i.YNc(11,XV,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,ej,3,3,"th",7),i.YNc(14,tj,2,1,"td",10),i.BQk(),i.YNc(15,ij,1,0,"tr",12),i.YNc(16,nj,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,rj,3,3,"perun-web-apps-alert",14),i.YNc(18,aj,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.thanks.length))},directives:[ts,Mo,ya,Os,Is,Bs,Zc,Ls,Vs,yf,Rl,Ll,So,Eo,T.O5,js],pipes:[Ct],styles:[""]}),n})();function oj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddThanks()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function lj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onRemoveThanks()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function cj(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const dj=function(){return["id","name","createdBy"]},uj=function(){return["select","id","name","createdBy"]};function hj(n,a){if(1&n&&i._UZ(0,"perun-web-apps-thanks-list",9),2&n){const e=i.oxw();i.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,dj):i.DdM(6,uj))("selection",e.selection)}}let WE=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new Li(!0,[]),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=Zn();e.width="800px",e.data=this.publication,this.dialog.open(WV,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=Zn();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(FS,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(li),i.Y36(Rn),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection"},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&&(i.TgZ(0,"div",0),i.YNc(1,oj,3,3,"button",1),i.YNc(2,lj,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,cj,1,0,"mat-spinner",4),i.YNc(5,hj,1,7,"perun-web-apps-thanks-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,Ft,k_,mn,sj],pipes:[Ct],styles:[""]}),n})();function pj(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function fj(n,a){1&n&&(i.TgZ(0,"h1",11),i.TgZ(1,"span"),i.TgZ(2,"mat-icon",12),i._uU(3,"assignment_ind"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function mj(n,a){1&n&&(i.TgZ(0,"h1",11),i._UZ(1,"mat-icon",13),i.TgZ(2,"span",14),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function gj(n,a){1&n&&(i.TgZ(0,"h1",11),i.TgZ(1,"span"),i.TgZ(2,"mat-icon",12),i._uU(3,"local_library"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function _j(n,a){if(1&n&&(i.TgZ(0,"h5",15),i._uU(1),i.ALo(2,"userFullName"),i.ALo(3,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.AsE(" ",i.lcZ(2,2,e.mainAuthor),"",i.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function bj(n,a){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function yj(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock "),i.qZA())}function wj(n,a){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function Cj(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock_open "),i.qZA())}function Aj(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function vj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publication-detail-list",17),i.NdJ("edited",function(){return i.CHM(e),i.oxw(2).refreshPublication()}),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("categories",e.categories)}}function Tj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.YNc(1,fj,6,3,"h1",4),i.YNc(2,mj,5,3,"h1",4),i.YNc(3,gj,6,3,"h1",4),i.YNc(4,_j,4,6,"h5",5),i.TgZ(5,"h5"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"h6"),i._uU(9),i.ALo(10,"translate"),i.TgZ(11,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeLock()}),i.YNc(12,bj,3,3,"span",7),i.YNc(13,yj,2,0,"mat-icon",2),i.YNc(14,wj,3,3,"span",7),i.YNc(15,Cj,2,0,"mat-icon",2),i.qZA(),i.qZA(),i.TgZ(16,"mat-card"),i.TgZ(17,"mat-card-content"),i.YNc(18,Aj,1,0,"mat-spinner",1),i.YNc(19,vj,1,2,"perun-web-apps-publication-detail-list",8),i.qZA(),i.qZA(),i.TgZ(20,"mat-card",9),i.TgZ(21,"mat-card-title"),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"mat-card-content"),i._UZ(25,"perun-web-apps-add-authors",10),i.qZA(),i.qZA(),i.TgZ(26,"mat-card",9),i.TgZ(27,"mat-card-title"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"mat-card-content"),i._UZ(31,"perun-web-apps-add-thanks",10),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf","authors"===e.mode),i.xp6(1),i.Q6J("ngIf","all"===e.mode),i.xp6(1),i.Q6J("ngIf","my"===e.mode),i.xp6(1),i.Q6J("ngIf",void 0!==e.mainAuthor),i.xp6(2),i.Oqu(i.lcZ(7,18,"PUBLICATION_DETAIL.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),i.xp6(3),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(3),i.Q6J("ngIf",e.loading||e.pubLoading),i.xp6(1),i.Q6J("ngIf",!e.pubLoading&&!e.loading),i.xp6(3),i.hij(" ",i.lcZ(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionAuthors),i.xp6(3),i.hij(" ",i.lcZ(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionThanks)}}let P_=(()=>{class n{constructor(e,t,r,l,d,o,s){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=l,this.dialog=d,this.notificator=o,this.translate=s,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new Li(!0,[]),this.selectionThanks=new Li(!0,[]),this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(Yu),i.Y36(Bn),i.Y36(fn),i.Y36(Rn),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId"},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"],["mat-stroked-button","",1,"ml-2",3,"click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection"],[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","edited"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,pj,1,0,"mat-spinner",1),i.YNc(2,Tj,32,26,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.initLoading),i.xp6(1),i.Q6J("ngIf",!t.initLoading))},directives:[T.O5,mn,Gi,Ft,sE,rE,dV,aE,GE,WE],pipes:[Ct,NC],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),n})(),nM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Gc,T.ez]]}),n})();const QE=new i.OlP("mat-chips-default-options");let Bj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[yr,{provide:QE,useValue:{separatorKeyCodes:[13]}}],imports:[[st]]}),n})();function jj(n){const{subscriber:a,counter:e,period:t}=n;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function aM(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,(null==e?void 0:e.has(t))?"important":""):n.removeProperty(t)}return n}function vf(n,a){const e=a?"":"none";aM(n.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 KE(n,a,e){aM(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function UC(n,a){return a&&"none"!=a?n+" "+a:n}function XE(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function sM(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function oM(n){const a=n.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 lM(n,a,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&a>=l&&a<=d}function R_(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function eD(n,a,e,t){const{top:r,right:l,bottom:d,left:o,width:s,height:c}=n,u=s*a,h=c*a;return t>r-h&&to-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:oM(e)})})}handleScroll(a){const e=ha(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const o=r.top-l,s=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&R_(c.clientRect,o,s)}),r.top=l,r.left=d,{top:o,left:s}}}function iD(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const s=this._handles.find(c=>o.target&&(o.target===c||c.contains(o.target)));s&&!this._disabledHandles.has(s)&&!this.disabled&&this._initializeDragSequence(s,o)}else this.disabled||this._initializeDragSequence(this._rootElement,o)},this._pointerMove=o=>{const s=this._getPointerPositionOnPage(o);if(!this._hasStartedDragging){if(Math.abs(s.x-this._pickupPositionOnPage.x)+Math.abs(s.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(o),j=this._dropContainer;if(!b)return void this._endDragSequence(o);(!j||!j.isDragging()&&!j.isReceiving())&&(o.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(o)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),o.preventDefault();const c=this._getConstrainedPointerPosition(s);if(this._hasMoved=!0,this._lastKnownPointerPosition=s,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,s);else{const u=this._activeTransform;u.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,u.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:o,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=o=>{this._endDragSequence(o)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new tD(t,l),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Oe(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>vf(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=>Qi(t)),this._handles.forEach(t=>vf(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=Qi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,oD),e.addEventListener("touchstart",this._pointerDown,sD)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Qi(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===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.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),vf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),vf(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}),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})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){L_(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),KE(t,!1,cM),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=L_(e),l=!r&&0!==e.button,d=this._rootElement,o=ha(e),s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Uh(e):Yh(e);if(o&&o.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||s||c)return;if(this._handles.length){const m=d.style;this._rootElementTapHighlight=m.webkitTapHighlightColor||"",m.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(m=>this._updateOnScroll(m)),this._boundaryElement&&(this._boundaryRect=oM(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(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){KE(this._rootElement,!0,cM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),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 l=a.matchSize?this._rootElement.getBoundingClientRect():null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),r=cD(d,this._document),this._previewRef=d,a.matchSize?dD(r,l):r.style.transform=zC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const l=this._rootElement;r=iD(l),dD(r,l.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return aM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},cM),vf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):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 Fj(n){const a=getComputedStyle(n),e=sM(a,"transition-property"),t=e.find(o=>"transform"===o||"all"===o);if(!t)return 0;const r=e.indexOf(t),l=sM(a,"transition-duration"),d=sM(a,"transition-delay");return XE(l[r])+XE(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{var o;(!d||ha(d)===this._preview&&"transform"===d.propertyName)&&(null===(o=this._preview)||void 0===o||o.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=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=cD(this._placeholderRef,this._document)):t=iD(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),r=a===this._rootElement?null:a,l=r?r.getBoundingClientRect():t,d=L_(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:l.left-t.left+(d.pageX-l.left-o.left),y:l.top-t.top+(d.pageY-l.top-o.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=L_(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const o=this._ownerSVGElement.createSVGPoint();return o.x=r,o.y=l,o.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,o=this._boundaryRect,s=this._previewRect,c=o.top+d,u=o.bottom-(s.height-d);t=lD(t,o.left+l,o.right-(s.width-l)),r=lD(r,c,u)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),o=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),o>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,vf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,oD),a.removeEventListener("touchstart",this._pointerDown,sD)}_applyRootElementTransform(a,e){const t=zC(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=UC(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,l=zC(a,e);this._preview.style.transform=UC(l,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._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===r.width&&0===r.height)return;const l=t.left-r.left,d=r.right-t.right,o=t.top-r.top,s=r.bottom-t.bottom;t.width>r.width?(l>0&&(a+=l),d>0&&(a-=d)):a=0,t.height>r.height?(o>0&&(e+=o),s>0&&(e-=s)):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:L_(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=ha(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&R_(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(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Eh(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 Qi(t)}}function zC(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function lD(n,a,e){return Math.max(a,Math.min(e,n))}function L_(n){return"t"===n.type[0]}function cD(n,a){const e=n.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 dD(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=zC(a.left,a.top)}function I_(n,a){return Math.max(0,Math.min(a,n))}class qj{constructor(a,e,t,r,l){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=l,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ee.xQ,this.entered=new Ee.xQ,this.exited=new Ee.xQ,this.dropped=new Ee.xQ,this.sorted=new Ee.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=he.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ee.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function Vj(n=0,a=Mh.P){return(!Ko(n)||n<0)&&(n=0),(!a||"function"!=typeof a.schedule)&&(a=Mh.P),new Hi.y(e=>(e.add(a.schedule(jj,n,{subscriber:e,counter:0,period:n})),e))}(0,kd).pipe(Je(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,o=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-o):2===this._verticalScrollDirection&&d.scrollBy(0,o),1===this._horizontalScrollDirection?d.scrollBy(-o,0):2===this._horizontalScrollDirection&&d.scrollBy(o,0)})},this.element=Qi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new tD(t,l)}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){let l;this._draggingStarted(),null==r?(l=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===l&&(l=this._getItemIndexFromPointerPosition(a,e,t))):l=r;const d=this._activeDraggables,o=d.indexOf(a),s=a.getPlaceholderElement();let c=d[l];if(c===a&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(s,u),d.splice(l,0,a)}else Qi(this.element).appendChild(s),d.push(a);s.style.transform="",this._cacheItemPositions(),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,l,d,o){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint: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._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=Qi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!eD(this._clientRect,.05,e,t))return;const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,r);if(-1===d&&l.length>0)return;const o="horizontal"===this._orientation,s=l.findIndex(pe=>pe.drag===a),c=l[d],h=c.clientRect,m=s>d?1:-1,b=this._getItemOffsetPx(l[s].clientRect,h,m),j=this._getSiblingOffsetPx(s,l,m),ie=l.slice();(function zj(n,a,e){const t=I_(a,n.length-1),r=I_(e,n.length-1);if(t===r)return;const l=n[t],d=r{if(ie[Ue]===pe)return;const Tt=pe.drag===a,at=Tt?b:j,Ut=Tt?a.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=at,o?(Ut.style.transform=UC(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),R_(pe.clientRect,0,at)):(Ut.style.transform=UC(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),R_(pe.clientRect,at,0))}),this._previousSwap.overlaps=lM(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?r.x:r.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,o)=>{o===this._document||!d.clientRect||t||eD(d.clientRect,.05,a,e)&&([r,l]=function Gj(n,a,e,t){const r=pD(a,t),l=fD(a,e);let d=0,o=0;if(r){const s=n.scrollTop;1===r?s>0&&(d=1):n.scrollHeight-s>n.clientHeight&&(d=2)}if(l){const s=n.scrollLeft;1===l?s>0&&(o=1):n.scrollWidth-s>n.clientWidth&&(o=2)}return[d,o]}(o,d.clientRect,a,e),(r||l)&&(t=o))}),!r&&!l){const{width:d,height:o}=this._viewportRuler.getViewportSize(),s={width:d,height:o,top:0,right:d,bottom:o,left:0};r=pD(s,e),l=fD(s,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Qi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Qi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_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:oM(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=Qi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const r=e.getRootElement();if(r){const l=null===(t=this._itemPositions.find(d=>d.drag===e))||void 0===t?void 0:t.initialTransform;r.style.transform=l||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this._orientation,l=e[a].clientRect,d=e[a+-1*t];let o=l[r?"width":"height"]*t;if(d){const s=r?"left":"top",c=r?"right":"bottom";-1===t?o-=d.clientRect[s]-l[c]:o+=l[s]-d.clientRect[c]}return o}_getItemOffsetPx(a,e,t){const r="horizontal"===this._orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_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 d=t[t.length-1].clientRect;return r?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this._orientation,d=this._itemPositions.findIndex(({drag:o,clientRect:s})=>{if(o===a)return!1;if(r){const c=l?r.x:r.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(s.left)&&e=Math.floor(s.top)&&tr._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!lM(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Qi(this.element);return r===l||l.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._itemPositions.forEach(({clientRect:t})=>{R_(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Eh(Qi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function pD(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function fD(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const qC=Va({passive:!1,capture:!0});let Wj=(()=>{class n{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 Ee.xQ,this.pointerUp=new Ee.xQ,this.scroll=new Ee.xQ,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,qC)})}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,qC)}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:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:qC}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:qC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.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 Hi.y(r=>this._ngZone.runOutsideAngular(()=>{const d=o=>{this._activeDragInstances.length&&r.next(o)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Mi.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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Zj={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let $j=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=Zj){return new Uj(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new qj(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(i.R0b),i.LFG(Na),i.LFG(Wj))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[$j],imports:[mr]}),n})(),Qj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),n2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),u2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[n2,st],st]}),n})(),T2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Ja,st],st]}),n})(),S2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,Ou,Gr,IC,Gc,CC,ju]]}),n})(),E2=(()=>{class n extends mp{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const D2={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 bD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ai,useClass:E2},{provide:br,useValue:D2}],imports:[[T.ez,IC,Ox,iC,Bj,Jj,Dc,Dd,Xx,ee,CC,nM,Gc,gC,Gr,ju,vl,Ou,AC,Ja,HS,Qj,u2,Kx,T2,Mc,Vu,S2,el,yu,AS,jE]]}),n})(),nF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,Gr,Gc,Dd,bD,Dc,vl,Ou,AC,nM]]}),n})(),rF=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wu),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[Ft,Gi],pipes:[Ct],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function aF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let sF=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Oi(null,[Ii.required]),this.passwordCtrl=new Oi(null,[Ii.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vi))},n.\u0275cmp=i.Xpm({type:n,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"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,aF,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4),i.TgZ(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",4),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA(),i.qZA(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[T.O5,js,Gn,Xa,is,Wn,xo,Cr,es,To,Ft,Gi],pipes:[Ct],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}"]}),n})();function oF(n,a){1&n&&i.Hsn(0)}const CD=["*"];function lF(n,a){}const cF=function(n){return{animationDuration:n}},dF=function(n,a){return{value:n,params:a}},uF=["tabListContainer"],hF=["tabList"],pF=["tabListInner"],fF=["nextPaginator"],mF=["previousPaginator"],gF=["tabBodyWrapper"],_F=["tabHeader"];function bF(n,a){}function yF(n,a){if(1&n&&i.YNc(0,bF,0,0,"ng-template",10),2&n){const e=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",e.templateLabel)}}function wF(n,a){if(1&n&&i._uU(0),2&n){const e=i.oxw().$implicit;i.Oqu(e.textLabel)}}function CF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index,o=i.oxw(),s=i.MAs(1);return o._handleClick(l,s,d)})("cdkFocusChange",function(r){const d=i.CHM(e).index;return i.oxw()._tabFocusChanged(r,d)}),i.TgZ(1,"div",7),i.YNc(2,yF,1,1,"ng-template",8),i.YNc(3,wF,1,1,"ng-template",null,9,i.W1O),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.MAs(4),l=i.oxw();i.ekj("mat-tab-label-active",l.selectedIndex===t),i.Q6J("id",l._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||l.disableRipple),i.uIk("tabIndex",l._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",l._tabs.length)("aria-controls",l._getTabContentId(t))("aria-selected",l.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),i.xp6(2),i.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function AF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){return i.CHM(e),i.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(r){return i.CHM(e),i.oxw()._setTabBodyWrapperHeight(r)}),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.ekj("mat-tab-body-active",r.selectedIndex===t),i.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration),i.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const vF=new i.OlP("MatInkBarPositioner",{providedIn:"root",factory:function TF(){return a=>({left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"})}});let AD=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=l}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(vF),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),n})();const vD=new i.OlP("MatTabContent");let xF=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:vD,useExisting:n}])]}),n})();const TD=new i.OlP("MatTabLabel"),xD=new i.OlP("MAT_TAB");let MF=(()=>{class n extends _A{constructor(e,t,r){super(e,t),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(xD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:TD,useExisting:n}]),i.qOj]}),n})();const SF=fa(class{}),MD=new i.OlP("MAT_TAB_GROUP");let SD=(()=>{class n extends SF{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ee.xQ,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 po(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(MD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,TD,5),i.Suo(r,vD,7,i.Rgc)),2&e){let l;i.iGM(l=i.CRH())&&(t.templateLabel=l.first),i.iGM(l=i.CRH())&&(t._explicitContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.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:[i._Bn([{provide:xD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:CD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,oF,1,0,"ng-template"))},encapsulation:2}),n})();const EF={translateTab:ei("translateTab",[Dt("center, void, left-origin-center, right-origin-center",He({transform:"none"})),Dt("left",He({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Dt("right",He({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),ft("* => left, * => right, left => center, right => center",ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ft("void => left-origin-center",[He({transform:"translate3d(-100%, 0, 0)"}),ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ft("void => right-origin-center",[He({transform:"translate3d(100%, 0, 0)"}),ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let DF=(()=>{class n extends Ya{constructor(e,t,r,l){super(e,t,l),this._host=r,this._centeringSub=he.w.EMPTY,this._leavingSub=he.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Wt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>ED)),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),n})(),HF=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=he.w.EMPTY,this._translateTabComplete=new Ee.xQ,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",t&&(this._dirChangeSubscription=t.change.subscribe(l=>{this._computePositionAnimationState(l),r.markForCheck()})),this._translateTabComplete.pipe(ll((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{this._isCenterPosition(l.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(l.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi,8),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),ED=(()=>{class n extends HF{constructor(e,t,r){super(e,t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&i.Gf(Ya,5),2&e){let r;i.iGM(r=i.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[i.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(l){return t._onTranslateTabStarted(l)})("@translateTab.done",function(l){return t._translateTabComplete.next(l)}),i.YNc(2,lF,0,0,"ng-template",2),i.qZA()),2&e&&i.Q6J("@translateTab",i.WLB(3,dF,t._position,i.VKq(1,cF,t.animationDuration)))},directives:[DF],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[EF.translateTab]}}),n})();const DD=new i.OlP("MAT_TABS_CONFIG"),kF=fa(class{});let HD=(()=>{class n extends kF{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(i.uIk("aria-disabled",!!t.disabled),i.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[i.qOj]}),n})();const kD=Va({passive:!0});let LF=(()=>{class n{constructor(e,t,r,l,d,o,s){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=l,this._ngZone=d,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ee.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ee.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,d.runOutsideAngular(()=>{ua(e.nativeElement,"mouseleave").pipe(Je(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=_i(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){ua(this._previousPaginator.nativeElement,"touchstart",kD).pipe(Je(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ua(this._nextPaginator.nativeElement,"touchstart",kD).pipe(Je(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,Ne.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new dl(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),(0,Mi.T)(e,t,this._items.changes).pipe(Je(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(r)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Je(this._destroyed)).subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}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(!Ki(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:l,offsetWidth:d}=t.elementRef.nativeElement;let o,s;"ltr"==this._getLayoutDirection()?(o=l,s=o+d):(s=this._tabListInner.nativeElement.offsetWidth-l,o=s-d);const c=this.scrollDistance,u=this.scrollDistance+r;ou&&(this.scrollDistance+=s-u+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(),Sn(650,100).pipe(Je((0,Mi.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:l}=this._scrollHeader(e);(0===l||l>=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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Na),i.Y36(xi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),IF=(()=>{class n extends LF{constructor(e,t,r,l,d,o,s){super(e,t,r,l,d,o,s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Oe(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Na),i.Y36(xi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),n})(),OF=(()=>{class n extends IF{constructor(e,t,r,l,d,o,s){super(e,t,r,l,d,o,s)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Na),i.Y36(xi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,HD,4),2&e){let l;i.iGM(l=i.CRH())&&(t._items=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(AD,7),i.Gf(uF,7),i.Gf(hF,7),i.Gf(pF,7),i.Gf(fF,5),i.Gf(mF,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inkBar=r.first),i.iGM(r=i.CRH())&&(t._tabListContainer=r.first),i.iGM(r=i.CRH())&&(t._tabList=r.first),i.iGM(r=i.CRH())&&(t._tabListInner=r.first),i.iGM(r=i.CRH())&&(t._nextPaginator=r.first),i.iGM(r=i.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.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:[i.qOj],ngContentSelectors:CD,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(l){return t._handlePaginatorPress("before",l)})("touchend",function(){return t._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(l){return t._handleKeydown(l)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA(),i._UZ(10,"mat-ink-bar"),i.qZA(),i.qZA(),i.TgZ(11,"div",9,10),i.NdJ("mousedown",function(l){return t._handlePaginatorPress("after",l)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),i._UZ(13,"div",2),i.qZA()),2&e&&(i.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),i.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple),i.xp6(5),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(6),i.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),i.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[qt,jh,AD],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n"],encapsulation:2}),n})(),BF=0;class VF{}const jF=$a(ma(class{constructor(n){this._elementRef=n}}),"primary");let FF=(()=>{class n extends jF{constructor(e,t,r,l){var d;super(e),this._changeDetectorRef=t,this._animationMode=l,this._tabs=new i.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=he.w.EMPTY,this._tabLabelSubscription=he.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=BF++,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=null!==(d=null==r?void 0:r.contentTabIndex)&&void 0!==d?d:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=_i(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=_i(e,null)}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,l)=>r.isActive=l===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._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let r=0;r{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.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new VF;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,Mi.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:this.selectedIndex===t?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(DD,8),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),n})(),NF=(()=>{class n extends FF{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(DD,8),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,SD,5),2&e){let l;i.iGM(l=i.CRH())&&(t._allTabs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(gF,5),i.Gf(_F,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._tabBodyWrapper=r.first),i.iGM(r=i.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[i._Bn([{provide:MD,useExisting:n}]),i.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","_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","_onCentered","_onCentering"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(l){return t._focusChanged(l)})("selectFocusedIndex",function(l){return t.selectedIndex=l}),i.YNc(2,CF,5,15,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,AF,1,10,"mat-tab-body",5),i.qZA()),2&e&&(i.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),i.xp6(2),i.Q6J("ngForOf",t._tabs),i.xp6(1),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(2),i.Q6J("ngForOf",t._tabs))},directives:[OF,ED,T.sg,HD,qt,gv,T.mk,T.O5,Ya],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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.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}\n"],encapsulation:2}),n})(),YF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,il,Ja,zd,zh],st]}),n})();function UF(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function zF(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function qF(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function GF(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function WF(n,a){if(1&n&&(i.TgZ(0,"mat-option",36),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function ZF(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function $F(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function JF(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function QF(n,a){1&n&&(i.TgZ(0,"div",28),i._UZ(1,"mat-spinner",5),i.TgZ(2,"h5",37),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function KF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",38),i.TgZ(1,"div",28),i.TgZ(2,"span",39),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"span",40),i.TgZ(7,"mat-icon",41),i._uU(8,"fiber_manual_record"),i.qZA(),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"span",42),i.TgZ(12,"mat-icon",41),i._uU(13,"fiber_manual_record"),i.qZA(),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.AsE(" ",i.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",i.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),i.xp6(6),i.hij(" ",i.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),i.xp6(5),i.hij(" ",i.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function XF(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function eN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}const tN=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function iN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publications-list",48),i.NdJ("publicationSelector",function(r){i.CHM(e),i.oxw(2);const l=i.MAs(1);return i.oxw(2).loadPublicationDetail(r,l)}),i.qZA()}if(2&n){const e=i.oxw(4);i.Q6J("displayedColumns",i.DdM(4,tN))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function nN(n,a){if(1&n&&(i.TgZ(0,"div",46),i.YNc(1,eN,1,0,"mat-spinner",3),i.YNc(2,iN,1,5,"perun-web-apps-publications-list",47),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function rN(n,a){if(1&n&&i._uU(0),2&n){const e=i.oxw(4);i.Oqu(e.selectedPubTitle)}}function aN(n,a){if(1&n&&(i.TgZ(0,"div",49),i._UZ(1,"perun-web-apps-publication-detail",50),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("publicationId",e.selectedPubId)}}function sN(n,a){1&n&&(i.TgZ(0,"mat-tab"),i.YNc(1,rN,1,1,"ng-template",44),i.YNc(2,aN,2,1,"ng-template",45),i.qZA())}function oN(n,a){if(1&n&&(i.TgZ(0,"mat-tab-group",null,43),i.TgZ(2,"mat-tab"),i.YNc(3,XF,2,3,"ng-template",44),i.YNc(4,nN,3,2,"ng-template",45),i.qZA(),i.YNc(5,sN,3,0,"mat-tab",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!==e.selectedPubId)}}function lN(n,a){1&n&&(i.TgZ(0,"div",28),i.TgZ(1,"mat-icon",51),i._uU(2,"check_circle"),i.qZA(),i.TgZ(3,"h5",52),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function cN(n,a){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function dN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",57),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).redirect(["create-publication"])}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function uN(n,a){if(1&n&&(i.TgZ(0,"div",53),i.YNc(1,cN,3,3,"button",54),i.TgZ(2,"button",55),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.YNc(5,dN,3,3,"button",56),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),i.xp6(2),i.Q6J("ngIf",!e.duplicateCheck)}}function hN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function pN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function fN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-add-authors",59),2&n){const e=i.oxw(3);i.Q6J("publication",e.publication)("selection",e.authorsSelection)}}function mN(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-alert",58),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,fN,1,2,"perun-web-apps-add-authors",33),i.qZA()),2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),i.xp6(2),i.Q6J("ngIf",null!==e.publication)}}function gN(n,a){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function _N(n,a){if(1&n&&(i.TgZ(0,"div",25),i.YNc(1,gN,3,3,"button",54),i.TgZ(2,"button",60),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function bN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function yN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-add-thanks",59),2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function wN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function CN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-horizontal-stepper",6),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw().stepChanged(r)}),i.TgZ(1,"mat-step",7),i.YNc(2,zF,2,3,"ng-template",8),i.TgZ(3,"form",9),i.TgZ(4,"h5",10),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",11),i.TgZ(8,"mat-checkbox",12),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"mat-form-field"),i._UZ(12,"input",13),i.ALo(13,"translate"),i.YNc(14,qF,3,3,"mat-error",14),i.qZA(),i.TgZ(15,"mat-form-field",15),i.NdJ("click",function(){return i.CHM(e),i.MAs(22).open()}),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",16),i._UZ(20,"mat-datepicker-toggle",17),i.TgZ(21,"mat-datepicker",18,19),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(22);return i.oxw().chosenYearHandler(r,l)}),i.qZA(),i.YNc(23,GF,3,3,"mat-error",14),i.qZA(),i.TgZ(24,"mat-form-field"),i.TgZ(25,"mat-select",20),i.ALo(26,"translate"),i.YNc(27,WF,2,2,"mat-option",21),i.qZA(),i.YNc(28,ZF,3,3,"mat-error",14),i.qZA(),i.TgZ(29,"mat-form-field"),i._UZ(30,"input",22),i.ALo(31,"translate"),i.qZA(),i.TgZ(32,"mat-form-field"),i._UZ(33,"input",23),i.ALo(34,"translate"),i.qZA(),i.TgZ(35,"mat-form-field"),i.TgZ(36,"textarea",24),i.ALo(37,"translate"),i._uU(38," "),i.qZA(),i.YNc(39,$F,3,3,"mat-error",14),i.qZA(),i.qZA(),i.qZA(),i.TgZ(40,"div",25),i.TgZ(41,"button",26),i._uU(42),i.ALo(43,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(44,"mat-step",27),i.YNc(45,JF,2,3,"ng-template",8),i.TgZ(46,"form",28),i.TgZ(47,"h5",10),i._uU(48),i.ALo(49,"translate"),i.qZA(),i.YNc(50,QF,5,3,"div",29),i.YNc(51,KF,16,12,"perun-web-apps-alert",30),i.YNc(52,oN,6,1,"mat-tab-group",14),i.YNc(53,lN,6,3,"div",29),i.qZA(),i.YNc(54,uN,6,5,"div",31),i.qZA(),i.TgZ(55,"mat-step"),i.YNc(56,hN,2,3,"ng-template",8),i.TgZ(57,"h5",10),i._uU(58),i.ALo(59,"translate"),i.qZA(),i.YNc(60,pN,1,0,"mat-spinner",3),i.YNc(61,mN,5,4,"div",14),i.YNc(62,_N,5,4,"div",32),i.qZA(),i.TgZ(63,"mat-step"),i.YNc(64,bN,2,3,"ng-template",8),i.TgZ(65,"h5",10),i._uU(66),i.ALo(67,"translate"),i.qZA(),i.YNc(68,yN,1,2,"perun-web-apps-add-thanks",33),i.YNc(69,wN,1,0,"mat-spinner",3),i.TgZ(70,"div",25),i.TgZ(71,"button",34),i._uU(72),i.ALo(73,"translate"),i.qZA(),i.TgZ(74,"button",35),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.redirect(["all-publications",r.publication.id])}),i._uU(75),i.ALo(76,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(22),t=i.oxw();i.xp6(1),i.Q6J("editable",!t.duplicateCheck)("stepControl",t.publicationControl),i.xp6(2),i.Q6J("formGroup",t.publicationControl),i.xp6(2),i.hij(" ",i.lcZ(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),i.xp6(2),i.Q6J("ngIf",t.publicationControl.hasError("required","title")),i.xp6(3),i.Oqu(i.lcZ(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e),i.xp6(1),i.Q6J("for",e),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","year")),i.xp6(2),i.s9C("placeholder",i.lcZ(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("ngIf",t.publicationControl.hasError("required","category")),i.xp6(2),i.s9C("placeholder",i.lcZ(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),i.xp6(3),i.s9C("placeholder",i.lcZ(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","cite")),i.xp6(2),i.Q6J("disabled",t.publicationControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),i.xp6(2),i.Q6J("editable",!t.duplicateCheck),i.xp6(4),i.hij(" ",i.lcZ(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),i.xp6(2),i.Q6J("ngIf",null!==t.publication),i.xp6(1),i.Q6J("ngIf",t.innerLoading),i.xp6(3),i.hij(" ",i.lcZ(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),i.xp6(3),i.hij(" ",i.lcZ(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const AN=Af,vN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let TN=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=l,this.notificator=d,this.translate=o,this.storeService=s,this.userService=c,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new Li(!0,[]),this.thanksSelection=new Li(!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:[!1],title:["",Ii.required],year:["",Ii.required],category:["",Ii.required],isbn:[""],doi:[""],cite:["",Ii.required]}),this.maxYear=AN(),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(l=>"preferredMail"===l.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(l=>{this.publication=l,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(){var e,t,r;this.innerLoading=!0;const l=null!==(e=this.publicationControl.get("title").value)&&void 0!==e?e:null,d=null!==(t=this.publicationControl.get("doi").value)&&void 0!==t?t:null,o=null!==(r=this.publicationControl.get("isbn").value)&&void 0!==r?r:null;this.cabinetService.findSimilarPublications(l,d,o).subscribe(s=>{this.similarPublications=s,this.filteredPublications=s,setTimeout(()=>{this.duplicateCheck=0===s.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)}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ax),i.Y36(li),i.Y36(fn),i.Y36(C),i.Y36(Rn),i.Y36(Ri),i.Y36(hn),i.Y36(Mr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-single-publication-page"]],features:[i._Bn([{provide:Ai,useClass:H_,deps:[Ao]},{provide:br,useValue:vN}])],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"],["linear","True",3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],["linear","True",3,"selectionChange"],[3,"editable","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",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,"mt-1"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-auto",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","mt-3",4,"ngIf"],["class","mt-1",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-stroked-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","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"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],[1,"mt-3"],["class","ml-auto","mat-stroked-button","","type","button","matStepperPrevious","",4,"ngIf"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["class","ml-2","mat-stroked-button","","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","type","button",1,"ml-2",3,"click"],["alert_type","info"],[3,"publication","selection"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-2"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,UF,1,0,"mat-spinner",3),i.YNc(8,CN,77,65,"mat-horizontal-stepper",4),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Gi,T.O5,mn,SE,xE,OC,Vw,Ew,Rs,Zc,Cr,u_,Gn,is,Wn,xo,To,Xa,D_,Qx,gw,Jx,Uc,T.sg,xc,Ft,TL,jc,js,NF,SD,MF,xF,wf,P_,xL,GE,WE],pipes:[Ct],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.passed-icon[_ngcontent-%COMP%]{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function xN(n,a){if(1&n&&(i.TgZ(0,"mat-option",14),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e.friendlyName)}}function MN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function SN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",16),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function EN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div"),i.TgZ(2,"mat-form-field",5),i.TgZ(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"mat-select",6),i.NdJ("closed",function(){return i.CHM(e),i.oxw().selectPubSystem()}),i.YNc(7,xN,2,2,"mat-option",7),i.qZA(),i.qZA(),i._UZ(8,"perun-web-apps-year-range",8),i.TgZ(9,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().searchPublications()}),i.TgZ(10,"mat-icon"),i._uU(11,"search"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.importPublications(r.selected.selected)}),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"mat-checkbox",11),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().userAsAuthor=r}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.YNc(20,MN,3,3,"perun-web-apps-alert",12),i.YNc(21,SN,1,6,"perun-web-apps-publications-list",13),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),i.xp6(2),i.Q6J("formControl",e.pubSystem),i.xp6(1),i.Q6J("ngForOf",e.publicationSystems),i.xp6(1),i.Q6J("startYear",e.startYear)("endYear",e.endYear),i.xp6(4),i.hij(" ",i.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),i.xp6(2),i.Q6J("ngModel",e.userAsAuthor),i.xp6(1),i.hij(" ",i.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),i.xp6(2),i.Q6J("ngIf",!e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function DN(n,a){1&n&&i._UZ(0,"mat-spinner",17)}function HN(n,a){1&n&&(i.TgZ(0,"i"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function kN(n,a){1&n&&(i.TgZ(0,"mat-icon",28),i._uU(1,"check_circle"),i.qZA())}function PN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(),l=r.$implicit,d=r.index;return i.oxw(2).completePublication(l.id,d)}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function RN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(2).incompletePublication(r.id)}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function LN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",22),i.TgZ(1,"mat-expansion-panel-header",23),i.NdJ("click",function(){const l=i.CHM(e).index;return i.oxw(2).editPublication(l)}),i.TgZ(2,"mat-panel-title"),i._uU(3),i.YNc(4,HN,3,3,"i",3),i.YNc(5,kN,2,0,"mat-icon",24),i.qZA(),i.qZA(),i._UZ(6,"perun-web-apps-publication-detail",25),i.TgZ(7,"div",26),i.YNc(8,PN,3,3,"button",20),i.YNc(9,RN,3,3,"button",27),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw(2);i.Q6J("expanded",r.indexExpanded===t),i.xp6(3),i.hij(" ",e.title," "),i.xp6(1),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("publicationId",e.id),i.xp6(2),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id))}}function IN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).completeAllPublications()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function ON(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",31),i.ALo(1,"translate"),i.TgZ(2,"button",32),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).onSubmit()}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),i.xp6(3),i.hij(" ",i.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function BN(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-alert",15),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-accordion"),i.YNc(5,LN,10,7,"mat-expansion-panel",18),i.qZA(),i.TgZ(6,"div",19),i.YNc(7,IN,3,3,"button",20),i.qZA(),i.YNc(8,ON,5,8,"div",21),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),i.xp6(3),i.Q6J("ngForOf",e.importedPublications),i.xp6(2),i.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),i.xp6(1),i.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const RD=Af,VN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},jN=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:rF},{path:"service-access",component:sF},{path:"all-publications",component:eO},{path:"my-publications",component:rO},{path:"create-publication",component:aO},{path:"create-publication/import",component:(()=>{class n{constructor(e,t,r,l,d,o){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=l,this.router=d,this.dialog=o,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Oi,this.publications=[],this.selected=new Li(!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 Oi(RD().subtract(1,"year")),this.endYear=new Oi(RD()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem.setValue(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(e=>{this.publications=e,this.loading=!1},()=>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(l=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:l.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(l),this.importPublications(e)},()=>this.loading=!1):(this.importedPublications.push(l),this.importPublications(e))},()=>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=Zn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(xk,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(hn),i.Y36(Rn),i.Y36(Ri),i.Y36(C),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-import-publications-page"]],features:[i._Bn([{provide:Ai,useClass:H_,deps:[Ao]},{provide:br,useValue:VN}])],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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,EN,22,20,"div",3),i.YNc(8,DN,1,0,"mat-spinner",4),i.YNc(9,BN,9,6,"div",3),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),i.xp6(2),i.Q6J("ngIf",!t.importDone),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.importDone))},directives:[Gi,T.O5,Gn,Xa,Uc,Cr,es,T.sg,xc,UE,Ft,Zc,Ml,js,wf,mn,YR,fE,mE,NR,P_,zc],pipes:[Ct],styles:[".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%}"]}),n})()},{path:"create-publication/create",component:TN},{path:"authors",component:kO},{path:"authors/:authorId",component:LB},{path:"authors/:authorId/publication/:publicationId",component:P_},{path:"all-publications/:publicationId",component:P_},{path:"my-publications/:publicationId",component:P_},{path:"categories",component:pB},{path:"publication-systems",component:HB}];let FN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Dd.forRoot(jN,{preloadingStrategy:Ci,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],Dd]}),n})();const NN={provide:w.TP,useExisting:(0,i.Gpc)(()=>ES),multi:!0};function YN(n){return new oR(n,"./assets/i18n/",".json")}function UN(n){const a={basePath:n.get("api_url")};return new Ge(a)}const zN=n=>()=>n.loadConfigs();let qN=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(SS),i.LFG(Ri))},n.\u0275mod=i.oAB({type:n,bootstrap:[sR]}),n.\u0275inj=i.cJS({providers:[SS,{provide:i.ip1,useFactory:zN,multi:!0,deps:[dR]},{provide:Ge,useFactory:UN,deps:[hn]},ES,NN,{provide:uR,useClass:$H},$I],imports:[[Ta,Dc.forRoot({loader:{provide:Ec,useFactory:YN,deps:[w.eN]}}),Iy,jE,hR,Ju,w.JF,FN,nM,HS,nF,YF,AS,Sc.zr.forRoot(),bD]]}),n})();(0,i.G48)(),va().bootstrapModule(qN).catch(n=>console.error(n))},1302:function(z,G,x){var T;!function(i,E){var M={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=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(te,ce,ne,de,me){for(var Ie,Be,Ze,It,kt,Ke,Xi,xt,mt,fe,_e,we,ye;me>=64;){for(Ie=ce[0],Be=ce[1],Ze=ce[2],It=ce[3],kt=ce[4],Ke=ce[5],Xi=ce[6],xt=ce[7],fe=0;fe<16;fe++)te[fe]=(255&ne[_e=de+4*fe])<<24|(255&ne[_e+1])<<16|(255&ne[_e+2])<<8|255&ne[_e+3];for(fe=16;fe<64;fe++)te[fe]=((we=((mt=te[fe-2])>>>17|mt<<15)^(mt>>>19|mt<<13)^mt>>>10)+te[fe-7]|0)+((ye=((mt=te[fe-15])>>>7|mt<<25)^(mt>>>18|mt<<14)^mt>>>3)+te[fe-16]|0);for(fe=0;fe<64;fe++)we=(((kt>>>6|kt<<26)^(kt>>>11|kt<<21)^(kt>>>25|kt<<7))+(kt&Ke^~kt&Xi)|0)+(xt+(E[fe]+te[fe]|0)|0)|0,ye=((Ie>>>2|Ie<<30)^(Ie>>>13|Ie<<19)^(Ie>>>22|Ie<<10))+(Ie&Be^Ie&Ze^Be&Ze)|0,xt=Xi,Xi=Ke,Ke=kt,kt=It+we|0,It=Ze,Ze=Be,Be=Ie,Ie=we+ye|0;ce[0]+=Ie,ce[1]+=Be,ce[2]+=Ze,ce[3]+=It,ce[4]+=kt,ce[5]+=Ke,ce[6]+=Xi,ce[7]+=xt,de+=64,me-=64}return de}var S=function(){function te(){this.digestLength=i.digestLength,this.blockSize=i.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 te.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},te.prototype.clean=function(){for(var ce=0;ce0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(de=M(this.temp,this.state,ce,de,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;return this},te.prototype.finish=function(ce){if(!this.finished){var ne=this.bytesHashed,de=this.bufferLength,me=ne/536870912|0,Ie=ne<<3,Be=ne%64<56?64:128;this.buffer[de]=128;for(var Ze=de+1;Ze>>24&255,this.buffer[Be-7]=me>>>16&255,this.buffer[Be-6]=me>>>8&255,this.buffer[Be-5]=me>>>0&255,this.buffer[Be-4]=Ie>>>24&255,this.buffer[Be-3]=Ie>>>16&255,this.buffer[Be-2]=Ie>>>8&255,this.buffer[Be-1]=Ie>>>0&255,M(this.temp,this.state,this.buffer,0,Be),this.finished=!0}for(Ze=0;Ze<8;Ze++)ce[4*Ze+0]=this.state[Ze]>>>24&255,ce[4*Ze+1]=this.state[Ze]>>>16&255,ce[4*Ze+2]=this.state[Ze]>>>8&255,ce[4*Ze+3]=this.state[Ze]>>>0&255;return this},te.prototype.digest=function(){var ce=new Uint8Array(this.digestLength);return this.finish(ce),ce},te.prototype._saveState=function(ce){for(var ne=0;nethis.blockSize)(new S).update(ce).finish(ne).clean();else for(var de=0;de1&&ce.update(te),ne&&ce.update(ne),ce.update(de),ce.finish(te),de[0]++}i.HMAC=P,i.hash=L,i.default=L,i.hmac=V;var Y=new Uint8Array(i.digestLength);i.hkdf=function $(te,ce,ne,de){void 0===ce&&(ce=Y),void 0===de&&(de=32);for(var me=new Uint8Array([1]),Ie=V(ce,te),Be=new P(Ie),Ze=new Uint8Array(Be.digestLength),It=Ze.length,kt=new Uint8Array(de),Ke=0;Ke>>24&255,Be[1]=Xi>>>16&255,Be[2]=Xi>>>8&255,Be[3]=Xi>>>0&255,me.reset(),me.update(ce),me.update(Be),me.finish(It);for(var xt=0;xt=$.status}function P(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch(X){var $=document.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent($)}}var L="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,V=L.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=L.saveAs||("object"!=typeof window||window!==L?function(){}:"download"in HTMLAnchorElement.prototype&&!V?function(Y,$,X){var te=L.URL||L.webkitURL,ce=document.createElement("a");ce.download=$=$||Y.name||"download",ce.rel="noopener","string"==typeof Y?(ce.href=Y,ce.origin===location.origin?P(ce):S(ce.href)?M(Y,$,X):P(ce,ce.target="_blank")):(ce.href=te.createObjectURL(Y),setTimeout(function(){te.revokeObjectURL(ce.href)},4e4),setTimeout(function(){P(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,$,X){if($=$||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function E(Y,$){return void 0===$?$={autoBom:!1}:"object"!=typeof $&&(console.warn("Deprecated: Expected third argument to be a object"),$={autoBom:!$}),$.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,X),$);else if(S(Y))M(Y,$,X);else{var te=document.createElement("a");te.href=Y,te.target="_blank",setTimeout(function(){P(te)})}}:function(Y,$,X,te){if((te=te||open("","_blank"))&&(te.document.title=te.document.body.innerText="downloading..."),"string"==typeof Y)return M(Y,$,X);var ce="application/octet-stream"===Y.type,ne=/constructor/i.test(L.HTMLElement)||L.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||ce&&ne||V)&&"undefined"!=typeof FileReader){var me=new FileReader;me.onloadend=function(){var Ze=me.result;Ze=de?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),te?te.location.href=Ze:location=Ze,te=null},me.readAsDataURL(Y)}else{var Ie=L.URL||L.webkitURL,Be=Ie.createObjectURL(Y);te?te.location=Be:location.href=Be,te=null,setTimeout(function(){Ie.revokeObjectURL(Be)},4e4)}});L.saveAs=U.saveAs=U,z.exports=U}.apply(G,[]))&&(z.exports=i)},7088:function(z,G,x){!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(E){return/^nm$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"vm":"VM":S?"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(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(z,G,x){!function(T){"use strict";var i=function(L){return 0===L?0:1===L?1:2===L?2:L%100>=3&&L%100<=10?3:L%100>=11?4:5},E={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"]},M=function(L){return function(V,U,Y,$){var X=i(V),te=E[L][i(V)];return 2===X&&(te=te[U?0:1]),te.replace(/%d/i,V)}},S=["\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:S,monthsShort:S,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(L){return"\u0645"===L},meridiem:function(L,V,U){return L<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:M("s"),ss:M("s"),m:M("m"),mm:M("m"),h:M("h"),hh:M("h"),d:M("d"),dd:M("d"),M:M("M"),MM:M("M"),y:M("y"),yy:M("y")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(z,G,x){!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}})}(x(5439))},4519:function(z,G,x){!function(T){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(V){return 0===V?0:1===V?1:2===V?2:V%100>=3&&V%100<=10?3:V%100>=11?4:5},M={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"]},S=function(V){return function(U,Y,$,X){var te=E(U),ce=M[V][E(U)];return 2===te&&(ce=ce[Y?0:1]),ce.replace(/%d/i,U)}},P=["\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:P,monthsShort:P,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(V){return"\u0645"===V},meridiem:function(V,U,Y){return V<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:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(V){return V.replace(/\u060c/g,",")},postformat:function(V){return V.replace(/\d/g,function(U){return i[U]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(z,G,x){!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}})}(x(5439))},7642:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\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(S){return"\u0645"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(z,G,x){!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}})}(x(5439))},7038:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=function(U){return 0===U?0:1===U?1:2===U?2:U%100>=3&&U%100<=10?3:U%100>=11?4:5},S={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"]},P=function(U){return function(Y,$,X,te){var ce=M(Y),ne=S[U][M(Y)];return 2===ce&&(ne=ne[$?0:1]),ne.replace(/%d/i,Y)}},L=["\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: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(U){return"\u0645"===U},meridiem:function(U,Y,$){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:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(U){return U.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(Y){return E[Y]}).replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(Y){return i[Y]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(z,G,x){!function(T){"use strict";var i={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(M){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(M)},meridiem:function(M,S,P){return M<4?"gec\u0259":M<12?"s\u0259h\u0259r":M<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(M){if(0===M)return M+"-\u0131nc\u0131";var S=M%10;return M+(i[S]||i[M%100-S]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(z,G,x){!function(T){"use strict";function E(S,P,L){return"m"===L?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===L?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var L=S.split("_");return P%10==1&&P%100!=11?L[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?L[1]:L[2]}({ss:P?"\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:P?"\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:P?"\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"}[L],+S)}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:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,P,L){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(z,G,x){!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(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(z,G,x){!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}})}(x(5439))},5903:function(z,G,x){!function(T){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\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(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},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(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P?S<4?S:S+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(z,G,x){!function(T){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\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(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(z,G,x){!function(T){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\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(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},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(S,P){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(z,G,x){!function(T){"use strict";function i(ne,de,me){return ne+" "+function S(ne,de){return 2===de?function P(ne){var de={m:"v",b:"v",d:"z"};return void 0===de[ne.charAt(0)]?ne:de[ne.charAt(0)]+ne.substring(1)}(ne):ne}({mm:"munutenn",MM:"miz",dd:"devezh"}[me],ne)}function M(ne){return ne>9?M(ne%10):ne}var L=[/^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],V=/^(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,te=[/^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:te,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:te,monthsRegex:V,monthsShortRegex:V,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:L,longMonthsParse:L,shortMonthsParse:L,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:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ne){switch(M(ne)){case 1:case 3:case 4:case 5:case 9:return ne+" bloaz";default:return ne+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ne){return ne+(1===ne?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ne){return"g.m."===ne},meridiem:function(ne,de,me){return ne<12?"a.m.":"g.m."}})}(x(5439))},4792:function(z,G,x){!function(T){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"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:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(z,G,x){!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(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(z,G,x){!function(T){"use strict";var i={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("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),M=[/^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],S=/^(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 P(U){return U>1&&U<5&&1!=~~(U/10)}function L(U,Y,$,X){var te=U+" ";switch($){case"s":return Y||X?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return Y||X?te+(P(U)?"sekundy":"sekund"):te+"sekundami";case"m":return Y?"minuta":X?"minutu":"minutou";case"mm":return Y||X?te+(P(U)?"minuty":"minut"):te+"minutami";case"h":return Y?"hodina":X?"hodinu":"hodinou";case"hh":return Y||X?te+(P(U)?"hodiny":"hodin"):te+"hodinami";case"d":return Y||X?"den":"dnem";case"dd":return Y||X?te+(P(U)?"dny":"dn\xed"):te+"dny";case"M":return Y||X?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return Y||X?te+(P(U)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):te+"m\u011bs\xedci";case"y":return Y||X?"rok":"rokem";case"yy":return Y||X?te+(P(U)?"roky":"let"):te+"lety"}}T.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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: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}})}(x(5439))},365:function(z,G,x){!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(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\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}})}(x(5439))},2092:function(z,G,x){!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(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(z,G,x){!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}})}(x(5439))},9459:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(z,G,x){!function(T){"use strict";var i=["\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"],E=["\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:i,monthsShort:i,weekdays:E,weekdaysShort:E,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(S){return"\u0789\u078a"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(z,G,x){!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(M,S){return M?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[M.month()]:this._monthsNominativeEl[M.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(M,S,P){return M>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(M){return"\u03bc"===(M+"").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(M,S){var P=this._calendarEl[M],L=S&&S.hours();return function i(M){return"undefined"!=typeof Function&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}(P)&&(P=P.apply(S)),P.replace("{}",L%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}})}(x(5439))},4369:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9998:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9615:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(z,G,x){!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(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,M,S){return E>11?S?"p.t.m.":"P.T.M.":S?"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}})}(x(5439))},8944:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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}})}(x(5439))},9116:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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"})}(x(5439))},3609:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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}})}(x(5439))},6866:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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"})}(x(5439))},6725:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[M+"sekundi",M+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[M+" minuti",M+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[M+" tunni",M+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[M+" kuu",M+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[M+" aasta",M+" aastat"]};return S?V[P][2]?V[P][2]:V[P][1]:L?V[P][0]:V[P][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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(z,G,x){!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}})}(x(5439))},6417:function(z,G,x){!function(T){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\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(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,P,L){return S<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(S){return S.replace(/[\u06f0-\u06f9]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(z,G,x){!function(T){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function M(L,V,U,Y){var $="";switch(U){case"s":return Y?"muutaman sekunnin":"muutama sekunti";case"ss":$=Y?"sekunnin":"sekuntia";break;case"m":return Y?"minuutin":"minuutti";case"mm":$=Y?"minuutin":"minuuttia";break;case"h":return Y?"tunnin":"tunti";case"hh":$=Y?"tunnin":"tuntia";break;case"d":return Y?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":$=Y?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return Y?"kuukauden":"kuukausi";case"MM":$=Y?"kuukauden":"kuukautta";break;case"y":return Y?"vuoden":"vuosi";case"yy":$=Y?"vuoden":"vuotta"}return function S(L,V){return L<10?V?E[L]:i[L]:L}(L,Y)+" "+$}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:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(z,G,x){!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(E){return E},week:{dow:1,doy:4}})}(x(5439))},5867:function(z,G,x){!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}})}(x(5439))},6848:function(z,G,x){!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(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(x(5439))},7773:function(z,G,x){!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(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(z,G,x){!function(T){"use strict";var M=/(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,S=[/^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:M,monthsShortRegex:M,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:S,longMonthsParse:S,shortMonthsParse:S,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(L,V){switch(V){case"D":return L+(1===L?"er":"");default:case"M":case"Q":case"DDD":case"d":return L+(1===L?"er":"e");case"w":case"W":return L+(1===L?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="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(S,P){return S?/-MMM-/.test(P)?E[S.month()]:i[S.month()]:i},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(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(z,G,x){!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(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(z,G,x){!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(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(z,G,x){!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(E){return 0===E.indexOf("un")?"n"+E:"en "+E},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}})}(x(5439))},2457:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={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:[M+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",M+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[M+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",M+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[M+" \u0935\u0930\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[M+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",M+" \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:[M+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",M+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[M+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return L?V[P][0]:V[P][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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(M,S){return"D"===S?M+"\u0935\u0947\u0930":M},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(M,S){return 12===M&&(M=0),"\u0930\u093e\u0924\u0940"===S?M<4?M:M+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?M:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?M>12?M:M+12:"\u0938\u093e\u0902\u091c\u0947"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0930\u093e\u0924\u0940":M<12?"\u0938\u0915\u093e\u0933\u0940\u0902":M<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":M<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["thoddea sekondamni","thodde sekond"],ss:[M+" sekondamni",M+" sekond"],m:["eka mintan","ek minut"],mm:[M+" mintamni",M+" mintam"],h:["eka voran","ek vor"],hh:[M+" voramni",M+" voram"],d:["eka disan","ek dis"],dd:[M+" disamni",M+" dis"],M:["eka mhoinean","ek mhoino"],MM:[M+" mhoineamni",M+" mhoine"],y:["eka vorsan","ek voros"],yy:[M+" vorsamni",M+" vorsam"]};return L?V[P][0]:V[P][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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(M,S){return"D"===S?M+"er":M},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(M,S){return 12===M&&(M=0),"rati"===S?M<4?M:M+12:"sokallim"===S?M:"donparam"===S?M>12?M:M+12:"sanje"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"rati":M<12?"sokallim":M<16?"donparam":M<20?"sanje":"rati"}})}(x(5439))},2641:function(z,G,x){!function(T){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\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(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===P?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?S:"\u0aac\u0aaa\u0acb\u0ab0"===P?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(z,G,x){!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(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \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(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,M,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},M=[/^\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:M,longMonthsParse:M,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(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(V){return E[V]})},postformat:function(L){return L.replace(/\d/g,function(V){return i[V]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(L,V){return 12===L&&(L=0),"\u0930\u093e\u0924"===V?L<4?L:L+12:"\u0938\u0941\u092c\u0939"===V?L:"\u0926\u094b\u092a\u0939\u0930"===V?L>=10?L:L+12:"\u0936\u093e\u092e"===V?L+12:void 0},meridiem:function(L,V,U){return L<4?"\u0930\u093e\u0924":L<10?"\u0938\u0941\u092c\u0939":L<17?"\u0926\u094b\u092a\u0939\u0930":L<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(z,G,x){!function(T){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"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:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(z,G,x){!function(T){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(P,L,V,U){var Y=P;switch(V){case"s":return U||L?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return Y+(U||L)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(U||L?" perc":" perce");case"mm":return Y+(U||L?" perc":" perce");case"h":return"egy"+(U||L?" \xf3ra":" \xf3r\xe1ja");case"hh":return Y+(U||L?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(U||L?" nap":" napja");case"dd":return Y+(U||L?" nap":" napja");case"M":return"egy"+(U||L?" h\xf3nap":" h\xf3napja");case"MM":return Y+(U||L?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(U||L?" \xe9v":" \xe9ve");case"yy":return Y+(U||L?" \xe9v":" \xe9ve")}return""}function M(P){return(P?"":"[m\xfalt] ")+"["+i[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(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,L,V){return P<12?!0===V?"de":"DE":!0===V?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return M.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return M.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3165:function(z,G,x){!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(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<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(E,M){switch(M){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(x(5439))},8780:function(z,G,x){!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(E,M){return 12===E&&(E=0),"pagi"===M?E:"siang"===M?E>=11?E:E+12:"sore"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"siang":E<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}})}(x(5439))},4205:function(z,G,x){!function(T){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,P,L,V){var U=S+" ";switch(L){case"s":return P||V?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?U+(P||V?"sek\xfandur":"sek\xfandum"):U+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?U+(P||V?"m\xedn\xfatur":"m\xedn\xfatum"):P?U+"m\xedn\xfata":U+"m\xedn\xfatu";case"hh":return i(S)?U+(P||V?"klukkustundir":"klukkustundum"):U+"klukkustund";case"d":return P?"dagur":V?"dag":"degi";case"dd":return i(S)?P?U+"dagar":U+(V?"daga":"d\xf6gum"):P?U+"dagur":U+(V?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":V?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?U+"m\xe1nu\xf0ir":U+(V?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?U+"m\xe1nu\xf0ur":U+(V?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||V?"\xe1r":"\xe1ri";case"yy":return i(S)?U+(P||V?"\xe1r":"\xe1rum"):U+(P||V?"\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:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(z,G,x){!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(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},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}})}(x(5439))},4211:function(z,G,x){!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}})}(x(5439))},1003:function(z,G,x){!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(E,M){return"\u5143"===M[1]?1:parseInt(M[1]||E,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(E){return"\u5348\u5f8c"===E},meridiem:function(E,M,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,M){switch(M){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},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"}})}(x(5439))},420:function(z,G,x){!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(E,M){return 12===E&&(E=0),"enjing"===M?E:"siyang"===M?E>=11?E:E+12:"sonten"===M||"ndalu"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"enjing":E<15?"siyang":E<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}})}(x(5439))},851:function(z,G,x){!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(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(M,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},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(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(z,G,x){!function(T){"use strict";var i={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(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(z,G,x){!function(T){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\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(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(z,G,x){!function(T){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\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(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},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(S,P){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(z,G,x){!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(E,M){switch(M){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,M,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=["\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:M,monthsShort:M,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(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,L,V){return P<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(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(z,G,x){!function(T){"use strict";var i={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(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(z,G,x){!function(T){"use strict";function i(L,V,U,Y){var $={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 V?$[U][0]:$[U][1]}function S(L){if(L=parseInt(L,10),isNaN(L))return!1;if(L<0)return!0;if(L<10)return 4<=L&&L<=7;if(L<100){var V=L%10;return S(0===V?L/10:V)}if(L<1e4){for(;L>=10;)L/=10;return S(L)}return S(L/=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 E(L){return S(L.substr(0,L.indexOf(" ")))?"a "+L:"an "+L},past:function M(L){return S(L.substr(0,L.indexOf(" ")))?"viru "+L:"virun "+L},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(z,G,x){!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(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,M,S){return E<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(E){return"\u0e97\u0eb5\u0ec8"+E}})}(x(5439))},2400:function(z,G,x){!function(T){"use strict";var i={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 M(U,Y,$,X){return Y?P($)[0]:X?P($)[1]:P($)[2]}function S(U){return U%10==0||U>10&&U<20}function P(U){return i[U].split("_")}function L(U,Y,$,X){var te=U+" ";return 1===U?te+M(0,Y,$[0],X):Y?te+(S(U)?P($)[1]:P($)[0]):X?te+P($)[1]:te+(S(U)?P($)[1]:P($)[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 E(U,Y,$,X){return Y?"kelios sekund\u0117s":X?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:L,m:M,mm:L,h:M,hh:L,d:M,dd:L,M,MM:L,y:M,yy:L},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(U){return U+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(z,G,x){!function(T){"use strict";var i={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 E(V,U,Y){return Y?U%10==1&&U%100!=11?V[2]:V[3]:U%10==1&&U%100!=11?V[0]:V[1]}function M(V,U,Y){return V+" "+E(i[Y],V,U)}function S(V,U,Y){return E(i[Y],V,U)}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 P(V,U){return U?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:M,m:S,mm:M,h:S,hh:M,d:S,dd:M,M:S,MM:M,y:S,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(z,G,x){!function(T){"use strict";var i={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(M,S){return 1===M?S[0]:M>=2&&M<=4?S[1]:S[2]},translate:function(M,S,P){var L=i.words[P];return 1===P.length?S?L[0]:L[1]:M+" "+i.correctGrammaticalCase(M,L)}};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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(z,G,x){!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}})}(x(5439))},5943:function(z,G,x){!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(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===M&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===M||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===M?E+12:E},meridiem:function(E,M,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){switch(P){case"s":return S?"\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 M+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return M+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return M+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return M+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return M+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return M+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return M}}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(M){return"\u04ae\u0425"===M},meridiem:function(M,S,P){return M<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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(M,S){switch(S){case"d":case"D":case"DDD":return M+" \u04e9\u0434\u04e9\u0440";default:return M}}})}(x(5439))},6184:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function M(P,L,V,U){var Y="";if(L)switch(V){case"s":Y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":Y="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":Y="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":Y="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":Y="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":Y="%d \u0924\u093e\u0938";break;case"d":Y="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":Y="%d \u0926\u093f\u0935\u0938";break;case"M":Y="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":Y="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":Y="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":Y="%d \u0935\u0930\u094d\u0937\u0947"}else switch(V){case"s":Y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":Y="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":Y="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":Y="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":Y="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":Y="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":Y="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":Y="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":Y="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":Y="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":Y="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":Y="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return Y.replace(/%d/i,P)}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:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return E[L]})},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]})},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(P,L){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===L||"\u0938\u0915\u093e\u0933\u0940"===L?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===L||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===L||"\u0930\u093e\u0924\u094d\u0930\u0940"===L?P>=12?P:P+12:void 0},meridiem:function(P,L,V){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(z,G,x){!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(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<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}})}(x(5439))},485:function(z,G,x){!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(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<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}})}(x(5439))},6681:function(z,G,x){!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}})}(x(5439))},2024:function(z,G,x){!function(T){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\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(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(z,G,x){!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}})}(x(5439))},8914:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\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(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===P?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===P?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===P?S+12:void 0},meridiem:function(S,P,L){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<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}})}(x(5439))},2272:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^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],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^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],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(z,G,x){!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}})}(x(5439))},2797:function(z,G,x){!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(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(z,G,x){!function(T){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\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(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===P?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===P?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(z,G,x){!function(T){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),M=[/^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 S(V){return V%10<5&&V%10>1&&~~(V/10)%10!=1}function P(V,U,Y){var $=V+" ";switch(Y){case"ss":return $+(S(V)?"sekundy":"sekund");case"m":return U?"minuta":"minut\u0119";case"mm":return $+(S(V)?"minuty":"minut");case"h":return U?"godzina":"godzin\u0119";case"hh":return $+(S(V)?"godziny":"godzin");case"ww":return $+(S(V)?"tygodnie":"tygodni");case"MM":return $+(S(V)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return $+(S(V)?"lata":"lat")}}T.defineLocale("pl",{months:function(V,U){return V?/D MMMM/.test(U)?E[V.month()]:i[V.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,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:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(z,G,x){!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"})}(x(5439))},4225:function(z,G,x){!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}})}(x(5439))},5128:function(z,G,x){!function(T){"use strict";function i(M,S,P){var V=" ";return(M%100>=20||M>=100&&M%100==0)&&(V=" de "),M+V+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}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:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(z,G,x){!function(T){"use strict";function E(P,L,V){return"m"===V?L?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,L){var V=P.split("_");return L%10==1&&L%100!=11?V[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?V[1]:V[2]}({ss:L?"\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:L?"\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"}[V],+P)}var M=[/^\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:M,longMonthsParse:M,shortMonthsParse:M,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(P){if(P.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(P){if(P.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:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,L,V){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,L){switch(L){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(x(5439))},2525:function(z,G,x){!function(T){"use strict";var i=["\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"],E=["\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:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,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(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(z,G,x){!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}})}(x(5439))},3123:function(z,G,x){!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(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,M,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},9635:function(z,G,x){!function(T){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function M(L){return L>1&&L<5}function S(L,V,U,Y){var $=L+" ";switch(U){case"s":return V||Y?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return V||Y?$+(M(L)?"sekundy":"sek\xfand"):$+"sekundami";case"m":return V?"min\xfata":Y?"min\xfatu":"min\xfatou";case"mm":return V||Y?$+(M(L)?"min\xfaty":"min\xfat"):$+"min\xfatami";case"h":return V?"hodina":Y?"hodinu":"hodinou";case"hh":return V||Y?$+(M(L)?"hodiny":"hod\xedn"):$+"hodinami";case"d":return V||Y?"de\u0148":"d\u0148om";case"dd":return V||Y?$+(M(L)?"dni":"dn\xed"):$+"d\u0148ami";case"M":return V||Y?"mesiac":"mesiacom";case"MM":return V||Y?$+(M(L)?"mesiace":"mesiacov"):$+"mesiacmi";case"y":return V||Y?"rok":"rokom";case"yy":return V||Y?$+(M(L)?"roky":"rokov"):$+"rokmi"}}T.defineLocale("sk",{months:i,monthsShort:E,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:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V=M+" ";switch(P){case"s":return S||L?"nekaj sekund":"nekaj sekundami";case"ss":return V+(1===M?S?"sekundo":"sekundi":2===M?S||L?"sekundi":"sekundah":M<5?S||L?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return V+(1===M?S?"minuta":"minuto":2===M?S||L?"minuti":"minutama":M<5?S||L?"minute":"minutami":S||L?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return V+(1===M?S?"ura":"uro":2===M?S||L?"uri":"urama":M<5?S||L?"ure":"urami":S||L?"ur":"urami");case"d":return S||L?"en dan":"enim dnem";case"dd":return V+(1===M?S||L?"dan":"dnem":2===M?S||L?"dni":"dnevoma":S||L?"dni":"dnevi");case"M":return S||L?"en mesec":"enim mesecem";case"MM":return V+(1===M?S||L?"mesec":"mesecem":2===M?S||L?"meseca":"mesecema":M<5?S||L?"mesece":"meseci":S||L?"mesecev":"meseci");case"y":return S||L?"eno leto":"enim letom";case"yy":return V+(1===M?S||L?"leto":"letom":2===M?S||L?"leti":"letoma":M<5?S||L?"leta":"leti":S||L?"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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(z,G,x){!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(E){return"M"===E.charAt(0)},meridiem:function(E,M,S){return E<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}})}(x(5439))},2872:function(z,G,x){!function(T){"use strict";var i={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(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var V=i.words[P];if(1===P.length)return"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":L||S?V[0]:V[1];const U=i.correctGrammaticalCase(M,V);return"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===U?M+" \u0433\u043e\u0434\u0438\u043d\u0430":M+" "+U}};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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(z,G,x){!function(T){"use strict";var i={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(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var V=i.words[P];if(1===P.length)return"y"===P&&S?"jedna godina":L||S?V[0]:V[1];const U=i.correctGrammaticalCase(M,V);return"yy"===P&&S&&"godinu"===U?M+" godina":M+" "+U}};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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(z,G,x){!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(E,M,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,M){return 12===E&&(E=0),"ekuseni"===M?E:"emini"===M?E>=11?E:E+12:"entsambama"===M||"ebusuku"===M?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?":e":1===M||2===M?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(z,G,x){!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}})}(x(5439))},2732:function(z,G,x){!function(T){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\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(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},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(S,P,L){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,P){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===M?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===M?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===M?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===M?E+12:void 0},meridiem:function(E,M,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(z,G,x){!function(T){"use strict";var i={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(M,S){return 12===M&&(M=0),"\u0448\u0430\u0431"===S?M<4?M:M+12:"\u0441\u0443\u0431\u04b3"===S?M:"\u0440\u04ef\u0437"===S?M>=11?M:M+12:"\u0431\u0435\u0433\u043e\u04b3"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0448\u0430\u0431":M<11?"\u0441\u0443\u0431\u04b3":M<16?"\u0440\u04ef\u0437":M<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},4486:function(z,G,x){!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(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,M,S){return E<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"}})}(x(5439))},1310:function(z,G,x){!function(T){"use strict";var i={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(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'unjy";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(z,G,x){!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(E){return E},week:{dow:1,doy:4}})}(x(5439))},6645:function(z,G,x){!function(T){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(V,U,Y,$){var X=function P(V){var U=Math.floor(V%1e3/100),Y=Math.floor(V%100/10),$=V%10,X="";return U>0&&(X+=i[U]+"vatlh"),Y>0&&(X+=(""!==X?" ":"")+i[Y]+"maH"),$>0&&(X+=(""!==X?" ":"")+i[$]),""===X?"pagh":X}(V);switch(Y){case"ss":return X+" lup";case"mm":return X+" tup";case"hh":return X+" rep";case"dd":return X+" jaj";case"MM":return X+" jar";case"yy":return X+" 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 E(V){var U=V;return-1!==V.indexOf("jaj")?U.slice(0,-3)+"leS":-1!==V.indexOf("jar")?U.slice(0,-3)+"waQ":-1!==V.indexOf("DIS")?U.slice(0,-3)+"nem":U+" pIq"},past:function M(V){var U=V;return-1!==V.indexOf("jaj")?U.slice(0,-3)+"Hu\u2019":-1!==V.indexOf("jar")?U.slice(0,-3)+"wen":-1!==V.indexOf("DIS")?U.slice(0,-3)+"ben":U+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(z,G,x){!function(T){"use strict";var i={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(M,S,P){return M<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(M){return"\xf6s"===M||"\xd6S"===M},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(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'\u0131nc\u0131";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(z,G,x){!function(T){"use strict";function E(M,S,P,L){var V={s:["viensas secunds","'iensas secunds"],ss:[M+" secunds",M+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[M+" m\xeduts",M+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[M+" \xfeoras",M+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[M+" ziuas",M+" ziuas"],M:["'n mes","'iens mes"],MM:[M+" mesen",M+" mesen"],y:["'n ar","'iens ar"],yy:[M+" ars",M+" ars"]};return L||S?V[P][0]:V[P][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(M){return"d'o"===M.toLowerCase()},meridiem:function(M,S,P){return M>11?P?"d'o":"D'O":P?"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:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(z,G,x){!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}})}(x(5439))},1595:function(z,G,x){!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}})}(x(5439))},6050:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===M||"\u0633\u06d5\u06be\u06d5\u0631"===M||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===M?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===M||"\u0643\u06d5\u0686"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<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(E,M){switch(M){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(z,G,x){!function(T){"use strict";function E(L,V,U){return"m"===U?V?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===U?V?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":L+" "+function i(L,V){var U=L.split("_");return V%10==1&&V%100!=11?U[0]:V%10>=2&&V%10<=4&&(V%100<10||V%100>=20)?U[1]:U[2]}({ss:V?"\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:V?"\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:V?"\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"}[U],+L)}function S(L){return function(){return L+"\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 M(L,V){var U={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===L?U.nominative.slice(1,7).concat(U.nominative.slice(0,1)):L?U[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(V)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(V)?"genitive":"nominative"][L.day()]:U.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:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\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:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(L)},meridiem:function(L,V,U){return L<4?"\u043d\u043e\u0447\u0456":L<12?"\u0440\u0430\u043d\u043a\u0443":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(L,V){switch(V){case"M":case"d":case"DDD":case"w":case"W":return L+"-\u0439";case"D":return L+"-\u0433\u043e";default:return L}},week:{dow:1,doy:7}})}(x(5439))},6077:function(z,G,x){!function(T){"use strict";var i=["\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"],E=["\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:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,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(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(z,G,x){!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}})}(x(5439))},2862:function(z,G,x){!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}})}(x(5439))},8093:function(z,G,x){!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(E){return/^ch$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"sa":"SA":S?"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(E){return E},week:{dow:1,doy:4}})}(x(5439))},5590:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(z,G,x){!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}})}(x(5439))},7908:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},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}})}(x(5439))},8867:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<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(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},1133:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<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(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},3291:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<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(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},5439:function(z,G,x){(z=x.nmd(z)).exports=function(){"use strict";var T,de;function i(){return T.apply(null,arguments)}function M(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function S(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function P(C,H){return Object.prototype.hasOwnProperty.call(C,H)}function L(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var H;for(H in C)if(P(C,H))return!1;return!0}function V(C){return void 0===C}function U(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function Y(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function $(C,H){var F,I=[],J=C.length;for(F=0;F>>0;for(F=0;F0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,H-F.length)).toString().substr(1)+F}var tt=/(\[[^\[]*\])|(\\)?([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,ht=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,In={},pi={};function $e(C,H,I,F){var J=F;"string"==typeof F&&(J=function(){return this[F]()}),C&&(pi[C]=J),H&&(pi[H[0]]=function(){return yi(J.apply(this,arguments),H[1],H[2])}),I&&(pi[I]=function(){return this.localeData().ordinal(J.apply(this,arguments),C)})}function ri(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function Cn(C,H){return C.isValid()?(H=Ni(H,C.localeData()),In[H]=In[H]||function Aa(C){var I,F,H=C.match(tt);for(I=0,F=H.length;I=0&&ht.test(C);)C=C.replace(ht,F),ht.lastIndex=0,I-=1;return C}var Bi={};function Zt(C,H){var I=C.toLowerCase();Bi[I]=Bi[I+"s"]=Bi[H]=C}function ln(C){return"string"==typeof C?Bi[C]||Bi[C.toLowerCase()]:void 0}function Te(C){var I,F,H={};for(F in C)P(C,F)&&(I=ln(F))&&(H[I]=C[F]);return H}var le={};function oe(C,H){le[C]=H}function Se(C){return C%4==0&&C%100!=0||C%400==0}function Ve(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function Ae(C){var H=+C,I=0;return 0!==H&&isFinite(H)&&(I=Ve(H)),I}function ze(C,H){return function(I){return null!=I?(Ei(this,C,I),i.updateOffset(this,H),this):St(this,C)}}function St(C,H){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+H]():NaN}function Ei(C,H,I){C.isValid()&&!isNaN(I)&&("FullYear"===H&&Se(C.year())&&1===C.month()&&29===C.date()?(I=Ae(I),C._d["set"+(C._isUTC?"UTC":"")+H](I,C.month(),wi(I,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+H](I))}var w,Di=/\d/,nt=/\d\d/,qe=/\d{3}/,An=/\d{4}/,Vt=/[+-]?\d{6}/,_t=/\d\d?/,$n=/\d\d\d\d?/,On=/\d\d\d\d\d\d?/,vn=/\d{1,3}/,Nl=/\d{1,4}/,xa=/[+-]?\d{1,6}/,Xr=/\d+/,ea=/[+-]?\d+/,Bn=/Z|[+-]\d\d:?\d\d/gi,rs=/Z|[+-]\d\d(?::?\d\d)?/gi,Us=/[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 Re(C,H,I){w[C]=_e(H)?H:function(F,J){return F&&I?I:H}}function oi(C,H){return P(w,C)?w[C](H._strict,H._locale):new RegExp(function Zi(C){return Ge(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,I,F,J,ae){return I||F||J||ae}))}(C))}function Ge(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}w={};var Jn={};function gt(C,H){var I,J,F=H;for("string"==typeof C&&(C=[C]),U(H)&&(F=function(ae,be){be[H]=Ae(ae)}),J=C.length,I=0;I68?1900:2e3)};var _n=ze("FullYear",!0);function Ro(C,H,I,F,J,ae,be){var et;return C<100&&C>=0?(et=new Date(C+400,H,I,F,J,ae,be),isFinite(et.getFullYear())&&et.setFullYear(C)):et=new Date(C,H,I,F,J,ae,be),et}function Da(C){var H,I;return C<100&&C>=0?((I=Array.prototype.slice.call(arguments))[0]=C+400,H=new Date(Date.UTC.apply(null,I)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(C)):H=new Date(Date.UTC.apply(null,arguments)),H}function ia(C,H,I){var F=7+H-I;return-(7+Da(C,0,F).getUTCDay()-H)%7+F-1}function Fn(C,H,I,F,J){var vt,Qt,et=1+7*(H-1)+(7+I-F)%7+ia(C,F,J);return et<=0?Qt=Ea(vt=C-1)+et:et>Ea(C)?(vt=C+1,Qt=et-Ea(C)):(vt=C,Qt=et),{year:vt,dayOfYear:Qt}}function os(C,H,I){var ae,be,F=ia(C.year(),H,I),J=Math.floor((C.dayOfYear()-F-1)/7)+1;return J<1?ae=J+Sr(be=C.year()-1,H,I):J>Sr(C.year(),H,I)?(ae=J-Sr(C.year(),H,I),be=C.year()+1):(be=C.year(),ae=J),{week:ae,year:be}}function Sr(C,H,I){var F=ia(C,H,I),J=ia(C+1,H,I);return(Ea(C)-F+J)/7}$e("w",["ww",2],"wo","week"),$e("W",["WW",2],"Wo","isoWeek"),Zt("week","w"),Zt("isoWeek","W"),oe("week",5),oe("isoWeek",5),Re("w",_t),Re("ww",_t,nt),Re("W",_t),Re("WW",_t,nt),Vi(["w","ww","W","WW"],function(C,H,I,F){H[F.substr(0,1)]=Ae(C)});function At(C,H){return C.slice(H,7).concat(C.slice(0,H))}$e("d",0,"do","day"),$e("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),$e("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),$e("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),$e("e",0,0,"weekday"),$e("E",0,0,"isoWeekday"),Zt("day","d"),Zt("weekday","e"),Zt("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Re("d",_t),Re("e",_t),Re("E",_t),Re("dd",function(C,H){return H.weekdaysMinRegex(C)}),Re("ddd",function(C,H){return H.weekdaysShortRegex(C)}),Re("dddd",function(C,H){return H.weekdaysRegex(C)}),Vi(["dd","ddd","dddd"],function(C,H,I,F){var J=I._locale.weekdaysParse(C,F,I._strict);null!=J?H.d=J:ne(I).invalidWeekday=C}),Vi(["d","e","E"],function(C,H,I,F){H[F]=Ae(C)});var na="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ne=Us,Ee=Us,ed=Us;function td(C,H,I){var F,J,ae,be=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],F=0;F<7;++F)ae=te([2e3,1]).day(F),this._minWeekdaysParse[F]=this.weekdaysMin(ae,"").toLocaleLowerCase(),this._shortWeekdaysParse[F]=this.weekdaysShort(ae,"").toLocaleLowerCase(),this._weekdaysParse[F]=this.weekdays(ae,"").toLocaleLowerCase();return I?"dddd"===H?-1!==(J=Jt.call(this._weekdaysParse,be))?J:null:"ddd"===H?-1!==(J=Jt.call(this._shortWeekdaysParse,be))?J:null:-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:"dddd"===H?-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._shortWeekdaysParse,be))||-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:"ddd"===H?-1!==(J=Jt.call(this._shortWeekdaysParse,be))||-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:-1!==(J=Jt.call(this._minWeekdaysParse,be))||-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._shortWeekdaysParse,be))?J:null}function nn(){function C(Ci,Br){return Br.length-Ci.length}var ae,be,et,vt,Qt,H=[],I=[],F=[],J=[];for(ae=0;ae<7;ae++)be=te([2e3,1]).day(ae),et=Ge(this.weekdaysMin(be,"")),vt=Ge(this.weekdaysShort(be,"")),Qt=Ge(this.weekdays(be,"")),H.push(et),I.push(vt),F.push(Qt),J.push(et),J.push(vt),J.push(Qt);H.sort(C),I.sort(C),F.sort(C),J.sort(C),this._weekdaysRegex=new RegExp("^("+J.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+F.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function jt(){return this.hours()%12||12}function Wt(C,H){$e(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Nn(C,H){return H._meridiemParse}$e("H",["HH",2],0,"hour"),$e("h",["hh",2],0,jt),$e("k",["kk",2],0,function ls(){return this.hours()||24}),$e("hmm",0,0,function(){return""+jt.apply(this)+yi(this.minutes(),2)}),$e("hmmss",0,0,function(){return""+jt.apply(this)+yi(this.minutes(),2)+yi(this.seconds(),2)}),$e("Hmm",0,0,function(){return""+this.hours()+yi(this.minutes(),2)}),$e("Hmmss",0,0,function(){return""+this.hours()+yi(this.minutes(),2)+yi(this.seconds(),2)}),Wt("a",!0),Wt("A",!1),Zt("hour","h"),oe("hour",13),Re("a",Nn),Re("A",Nn),Re("H",_t),Re("h",_t),Re("k",_t),Re("HH",_t,nt),Re("hh",_t,nt),Re("kk",_t,nt),Re("hmm",$n),Re("hmmss",On),Re("Hmm",$n),Re("Hmmss",On),gt(["H","HH"],3),gt(["k","kk"],function(C,H,I){var F=Ae(C);H[3]=24===F?0:F}),gt(["a","A"],function(C,H,I){I._isPm=I._locale.isPM(C),I._meridiem=C}),gt(["h","hh"],function(C,H,I){H[3]=Ae(C),ne(I).bigHour=!0}),gt("hmm",function(C,H,I){var F=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F)),ne(I).bigHour=!0}),gt("hmmss",function(C,H,I){var F=C.length-4,J=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F,2)),H[5]=Ae(C.substr(J)),ne(I).bigHour=!0}),gt("Hmm",function(C,H,I){var F=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F))}),gt("Hmmss",function(C,H,I){var F=C.length-4,J=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F,2)),H[5]=Ae(C.substr(J))});var ql=ze("Hours",!0);var aa,Er={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:cr,monthsShort:ti,week:{dow:0,doy:6},weekdays:na,weekdaysMin:dn,weekdaysShort:zt,meridiemParse:/[ap]\.?m?\.?/i},ci={},ra={};function Gl(C,H){var I,F=Math.min(C.length,H.length);for(I=0;I0;){if(J=B(ae.slice(0,I).join("-")))return J;if(F&&F.length>=I&&Gl(ae,F)>=I-1)break;I--}H++}return aa}(C)}function ve(C){var H,I=C._a;return I&&-2===ne(C).overflow&&(H=I[1]<0||I[1]>11?1:I[2]<1||I[2]>wi(I[0],I[1])?2:I[3]<0||I[3]>24||24===I[3]&&(0!==I[4]||0!==I[5]||0!==I[6])?3:I[4]<0||I[4]>59?4:I[5]<0||I[5]>59?5:I[6]<0||I[6]>999?6:-1,ne(C)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ne(C)._overflowWeeks&&-1===H&&(H=7),ne(C)._overflowWeekday&&-1===H&&(H=8),ne(C).overflow=H),C}var Qe=/^\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)?)?$/,Xt=/^\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)?)?$/,Rt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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]],wt=[["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/]],ki=/^\/?Date\((-?\d+)/i,di=/^(?:(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}))$/,mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function sa(C){var H,I,ae,be,et,vt,F=C._i,J=Qe.exec(F)||Xt.exec(F),Qt=yt.length,Ci=wt.length;if(J){for(ne(C).iso=!0,H=0,I=Qt;H7)&&(vt=!0)):(ae=C._locale._week.dow,be=C._locale._week.doy,Qt=os(ai(),ae,be),I=$s(H.gg,C._a[0],Qt.year),F=$s(H.w,Qt.week),null!=H.d?((J=H.d)<0||J>6)&&(vt=!0):null!=H.e?(J=H.e+ae,(H.e<0||H.e>6)&&(vt=!0)):J=ae),F<1||F>Sr(I,ae,be)?ne(C)._overflowWeeks=!0:null!=vt?ne(C)._overflowWeekday=!0:(et=Fn(I,F,J,ae,be),C._a[0]=et.year,C._dayOfYear=et.dayOfYear)}(C),null!=C._dayOfYear&&(be=$s(C._a[0],J[0]),(C._dayOfYear>Ea(be)||0===C._dayOfYear)&&(ne(C)._overflowDayOfYear=!0),I=Da(be,0,C._dayOfYear),C._a[1]=I.getUTCMonth(),C._a[2]=I.getUTCDate()),H=0;H<3&&null==C._a[H];++H)C._a[H]=F[H]=J[H];for(;H<7;H++)C._a[H]=F[H]=null==C._a[H]?2===H?1:0:C._a[H];24===C._a[3]&&0===C._a[4]&&0===C._a[5]&&0===C._a[6]&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?Da:Ro).apply(null,F),ae=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&void 0!==C._w.d&&C._w.d!==ae&&(ne(C).weekdayMismatch=!0)}}function Wl(C){if(C._f!==i.ISO_8601)if(C._f!==i.RFC_2822){C._a=[],ne(C).empty=!0;var I,F,J,ae,be,Qt,Ci,H=""+C._i,et=H.length,vt=0;for(Ci=(J=Ni(C._f,C._locale).match(tt)||[]).length,I=0;I0&&ne(C).unusedInput.push(be),H=H.slice(H.indexOf(F)+F.length),vt+=F.length),pi[ae]?(F?ne(C).empty=!1:ne(C).unusedTokens.push(ae),li(ae,F,C)):C._strict&&!F&&ne(C).unusedTokens.push(ae);ne(C).charsLeftOver=et-vt,H.length>0&&ne(C).unusedInput.push(H),C._a[3]<=12&&!0===ne(C).bigHour&&C._a[3]>0&&(ne(C).bigHour=void 0),ne(C).parsedDateParts=C._a.slice(0),ne(C).meridiem=C._meridiem,C._a[3]=function gi(C,H,I){var F;return null==I?H:null!=C.meridiemHour?C.meridiemHour(H,I):(null!=C.isPM&&((F=C.isPM(I))&&H<12&&(H+=12),!F&&12===H&&(H=0)),H)}(C._locale,C._a[3],C._meridiem),null!==(Qt=ne(C).era)&&(C._a[0]=C._locale.erasConvertYear(Qt,C._a[0])),Me(C),ve(C)}else Io(C);else sa(C)}function Zl(C){var H=C._i,I=C._f;return C._locale=C._locale||re(C._l),null===H||void 0===I&&""===H?Ie({nullInput:!0}):("string"==typeof H&&(C._i=H=C._locale.preparse(H)),Ke(H)?new kt(ve(H)):(Y(H)?C._d=H:M(I)?function id(C){var H,I,F,J,ae,be,et=!1,vt=C._f.length;if(0===vt)return ne(C).invalidFormat=!0,void(C._d=new Date(NaN));for(J=0;Jthis?this:C:Ie()});function bn(C,H){var I,F;if(1===H.length&&M(H[0])&&(H=H[0]),!H.length)return ai();for(I=H[0],F=1;F=0?new Date(C+400,H,I)-ws:new Date(C,H,I).valueOf()}function fd(C,H,I){return C<100&&C>=0?Date.UTC(C+400,H,I)-ws:Date.UTC(C,H,I)}function so(C,H){return H.erasAbbrRegex(C)}function hh(){var J,ae,C=[],H=[],I=[],F=[],be=this.eras();for(J=0,ae=be.length;J(ae=Sr(C,F,J))&&(H=ae),Nf.call(this,C,H,I,F,J))}function Nf(C,H,I,F,J){var ae=Fn(C,H,I,F,J),be=Da(ae.year,0,ae.dayOfYear);return this.year(be.getUTCFullYear()),this.month(be.getUTCMonth()),this.date(be.getUTCDate()),this}$e("N",0,0,"eraAbbr"),$e("NN",0,0,"eraAbbr"),$e("NNN",0,0,"eraAbbr"),$e("NNNN",0,0,"eraName"),$e("NNNNN",0,0,"eraNarrow"),$e("y",["y",1],"yo","eraYear"),$e("y",["yy",2],0,"eraYear"),$e("y",["yyy",3],0,"eraYear"),$e("y",["yyyy",4],0,"eraYear"),Re("N",so),Re("NN",so),Re("NNN",so),Re("NNNN",function F_(C,H){return H.erasNameRegex(C)}),Re("NNNNN",function Bf(C,H){return H.erasNarrowRegex(C)}),gt(["N","NN","NNN","NNNN","NNNNN"],function(C,H,I,F){var J=I._locale.erasParse(C,F,I._strict);J?ne(I).era=J:ne(I).invalidEra=C}),Re("y",Xr),Re("yy",Xr),Re("yyy",Xr),Re("yyyy",Xr),Re("yo",function Vf(C,H){return H._eraYearOrdinalRegex||Xr}),gt(["y","yy","yyy","yyyy"],0),gt(["yo"],function(C,H,I,F){var J;I._locale._eraYearOrdinalRegex&&(J=C.match(I._locale._eraYearOrdinalRegex)),H[0]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(C,J):parseInt(C,10)}),$e(0,["gg",2],0,function(){return this.weekYear()%100}),$e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yd("gggg","weekYear"),yd("ggggg","weekYear"),yd("GGGG","isoWeekYear"),yd("GGGGG","isoWeekYear"),Zt("weekYear","gg"),Zt("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Re("G",ea),Re("g",ea),Re("GG",_t,nt),Re("gg",_t,nt),Re("GGGG",Nl,An),Re("gggg",Nl,An),Re("GGGGG",xa,Vt),Re("ggggg",xa,Vt),Vi(["gggg","ggggg","GGGG","GGGGG"],function(C,H,I,F){H[F.substr(0,2)]=Ae(C)}),Vi(["gg","GG"],function(C,H,I,F){H[F]=i.parseTwoDigitYear(C)}),$e("Q",0,"Qo","quarter"),Zt("quarter","Q"),oe("quarter",7),Re("Q",Di),gt("Q",function(C,H){H[1]=3*(Ae(C)-1)}),$e("D",["DD",2],"Do","date"),Zt("date","D"),oe("date",9),Re("D",_t),Re("DD",_t,nt),Re("Do",function(C,H){return C?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),gt(["D","DD"],2),gt("Do",function(C,H){H[2]=Ae(C.match(_t)[0])});var fr=ze("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear"),Zt("dayOfYear","DDD"),oe("dayOfYear",4),Re("DDD",vn),Re("DDDD",qe),gt(["DDD","DDDD"],function(C,H,I){I._dayOfYear=Ae(C)}),$e("m",["mm",2],0,"minute"),Zt("minute","m"),oe("minute",14),Re("m",_t),Re("mm",_t,nt),gt(["m","mm"],4);var Go=ze("Minutes",!1);$e("s",["ss",2],0,"second"),Zt("second","s"),oe("second",15),Re("s",_t),Re("ss",_t,nt),gt(["s","ss"],5);var zn,wd,lo=ze("Seconds",!1);for($e("S",0,0,function(){return~~(this.millisecond()/100)}),$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$e(0,["SSS",3],0,"millisecond"),$e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Zt("millisecond","ms"),oe("millisecond",16),Re("S",vn,Di),Re("SS",vn,nt),Re("SSS",vn,qe),zn="SSSS";zn.length<=9;zn+="S")Re(zn,Xr);function nc(C,H){H[6]=Ae(1e3*("0."+C))}for(zn="S";zn.length<=9;zn+="S")gt(zn,nc);wd=ze("Milliseconds",!1),$e("z",0,0,"zoneAbbr"),$e("zz",0,0,"zoneName");var Pe=kt.prototype;function Cs(C){return C}Pe.add=nh,Pe.calendar=function Xs(C,H){1===arguments.length&&(arguments[0]?Yo(arguments[0])?(C=arguments[0],H=void 0):fs(arguments[0])&&(H=arguments[0],C=void 0):(C=void 0,H=void 0));var I=C||ai(),F=kr(I,this).startOf("day"),J=i.calendarFormat(this,F)||"sameElse",ae=H&&(_e(H[J])?H[J].call(this,I):H[J]);return this.format(ae||this.localeData().calendar(J,this,ai(I)))},Pe.clone=function ah(){return new kt(this)},Pe.diff=function dd(C,H,I){var F,J,ae;if(!this.isValid())return NaN;if(!(F=kr(C,this)).isValid())return NaN;switch(J=6e4*(F.utcOffset()-this.utcOffset()),H=ln(H)){case"year":ae=gs(this,F)/12;break;case"month":ae=gs(this,F);break;case"quarter":ae=gs(this,F)/3;break;case"second":ae=(this-F)/1e3;break;case"minute":ae=(this-F)/6e4;break;case"hour":ae=(this-F)/36e5;break;case"day":ae=(this-F-J)/864e5;break;case"week":ae=(this-F-J)/6048e5;break;default:ae=this-F}return I?ae:Ve(ae)},Pe.endOf=function zo(C){var H,I;if(void 0===(C=ln(C))||"millisecond"===C||!this.isValid())return this;switch(I=this._isUTC?fd:pd,C){case"year":H=I(this.year()+1,0,1)-1;break;case"quarter":H=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=I(this.year(),this.month()+1,1)-1;break;case"week":H=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=ys-to(H+(this._isUTC?0:this.utcOffset()*ca),ys)-1;break;case"minute":H=this._d.valueOf(),H+=ca-to(H,ca)-1;break;case"second":H=this._d.valueOf(),H+=1e3-to(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Pe.format=function hd(C){C||(C=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Cn(this,C);return this.localeData().postformat(H)},Pe.from=function La(C,H){return this.isValid()&&(Ke(C)&&C.isValid()||ai(C).isValid())?Xn({to:this,from:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Pe.fromNow=function j_(C){return this.from(ai(),C)},Pe.to=function sh(C,H){return this.isValid()&&(Ke(C)&&C.isValid()||ai(C).isValid())?Xn({from:this,to:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Pe.toNow=function oh(C){return this.to(ai(),C)},Pe.get=function Pt(C){return _e(this[C=ln(C)])?this[C]():this},Pe.invalidAt=function tc(){return ne(this).overflow},Pe.isAfter=function Lf(C,H){var I=Ke(C)?C:ai(C);return!(!this.isValid()||!I.isValid())&&("millisecond"===(H=ln(H)||"millisecond")?this.valueOf()>I.valueOf():I.valueOf()9999?Cn(I,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_e(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Cn(I,"Z")):Cn(I,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Pe.inspect=function Ra(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,F,C="moment",H="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),I="["+C+'("]',F=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+F+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Pe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Pe.toJSON=function ch(){return this.isValid()?this.toISOString():null},Pe.toString=function _s(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Pe.unix=function gd(){return Math.floor(this.valueOf()/1e3)},Pe.valueOf=function If(){return this._d.valueOf()-6e4*(this._offset||0)},Pe.creationData=function Pr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Pe.eraName=function ao(){var C,H,I,F=this.localeData().eras();for(C=0,H=F.length;Cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Pe.isLocal=function hi(){return!!this.isValid()&&!this._isUTC},Pe.isUtcOffset=function th(){return!!this.isValid()&&this._isUTC},Pe.isUtc=Ql,Pe.isUTC=Ql,Pe.zoneAbbr=function Yf(){return this._isUTC?"UTC":""},Pe.zoneName=function N_(){return this._isUTC?"Coordinated Universal Time":""},Pe.dates=xt("dates accessor is deprecated. Use date instead.",fr),Pe.months=xt("months accessor is deprecated. Use month instead",Sa),Pe.years=xt("years accessor is deprecated. Use year instead",_n),Pe.zone=xt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function eh(C,H){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,H),this):-this.utcOffset()}),Pe.isDSTShifted=xt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function oa(){if(!V(this._isDSTShifted))return this._isDSTShifted;var H,C={};return It(C,this),(C=Zl(C))._a?(H=C._isUTC?te(C._a):ai(C._a),this._isDSTShifted=this.isValid()&&function ad(C,H,I){var be,F=Math.min(C.length,H.length),J=Math.abs(C.length-H.length),ae=0;for(be=0;be0):this._isDSTShifted=!1,this._isDSTShifted});var Yt=ke.prototype;function Wo(C,H,I,F){var J=re(),ae=te().set(F,H);return J[I](ae,C)}function Ad(C,H,I){if(U(C)&&(H=C,C=void 0),C=C||"",null!=H)return Wo(C,H,I,"month");var F,J=[];for(F=0;F<12;F++)J[F]=Wo(C,F,I,"month");return J}function co(C,H,I,F){"boolean"==typeof C?(U(H)&&(I=H,H=void 0),H=H||""):(I=H=C,C=!1,U(H)&&(I=H,H=void 0),H=H||"");var be,J=re(),ae=C?J._week.dow:0,et=[];if(null!=I)return Wo(H,(I+ae)%7,F,"day");for(be=0;be<7;be++)et[be]=Wo(H,(be+ae)%7,F,"day");return et}Yt.calendar=function Gt(C,H,I){var F=this._calendar[C]||this._calendar.sameElse;return _e(F)?F.call(H,I):F},Yt.longDateFormat=function Fs(C){var H=this._longDateFormat[C],I=this._longDateFormat[C.toUpperCase()];return H||!I?H:(this._longDateFormat[C]=I.match(tt).map(function(F){return"MMMM"===F||"MM"===F||"DD"===F||"dddd"===F?F.slice(1):F}).join(""),this._longDateFormat[C])},Yt.invalidDate=function Ys(){return this._invalidDate},Yt.ordinal=function Ta(C){return this._ordinal.replace("%d",C)},Yt.preparse=Cs,Yt.postformat=Cs,Yt.relativeTime=function pt(C,H,I,F){var J=this._relativeTime[I];return _e(J)?J(C,H,I,F):J.replace(/%d/i,C)},Yt.pastFuture=function ko(C,H){var I=this._relativeTime[C>0?"future":"past"];return _e(I)?I(H):I.replace(/%s/i,H)},Yt.set=function we(C){var H,I;for(I in C)P(C,I)&&(_e(H=C[I])?this[I]=H:this["_"+I]=H);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Yt.eras=function _d(C,H){var I,F,J,ae=this._eras||re("en")._eras;for(I=0,F=ae.length;I=0)return ae[F]},Yt.erasConvertYear=function ro(C,H){var I=C.since<=C.until?1:-1;return void 0===H?i(C.since).year():i(C.since).year()+(H-C.offset)*I},Yt.erasAbbrRegex=function Of(C){return P(this,"_erasAbbrRegex")||hh.call(this),C?this._erasAbbrRegex:this._erasRegex},Yt.erasNameRegex=function ic(C){return P(this,"_erasNameRegex")||hh.call(this),C?this._erasNameRegex:this._erasRegex},Yt.erasNarrowRegex=function si(C){return P(this,"_erasNarrowRegex")||hh.call(this),C?this._erasNarrowRegex:this._erasRegex},Yt.months=function Po(C,H){return C?M(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||ta).test(H)?"format":"standalone"][C.month()]:M(this._months)?this._months:this._months.standalone},Yt.monthsShort=function Ma(C,H){return C?M(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[ta.test(H)?"format":"standalone"][C.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Yt.monthsParse=function ss(C,H,I){var F,J,ae;if(this._monthsParseExact)return Yl.call(this,C,H,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),F=0;F<12;F++){if(J=te([2e3,F]),I&&!this._longMonthsParse[F]&&(this._longMonthsParse[F]=new RegExp("^"+this.months(J,"").replace(".","")+"$","i"),this._shortMonthsParse[F]=new RegExp("^"+this.monthsShort(J,"").replace(".","")+"$","i")),!I&&!this._monthsParse[F]&&(ae="^"+this.months(J,"")+"|^"+this.monthsShort(J,""),this._monthsParse[F]=new RegExp(ae.replace(".",""),"i")),I&&"MMMM"===H&&this._longMonthsParse[F].test(C))return F;if(I&&"MMM"===H&&this._shortMonthsParse[F].test(C))return F;if(!I&&this._monthsParse[F].test(C))return F}},Yt.monthsRegex=function ii(C){return this._monthsParseExact?(P(this,"_monthsRegex")||Ul.call(this),C?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=bt),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},Yt.monthsShortRegex=function Vn(C){return this._monthsParseExact?(P(this,"_monthsRegex")||Ul.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=Mr),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},Yt.week=function Tf(C){return os(C,this._week.dow,this._week.doy).week},Yt.firstDayOfYear=function Mf(){return this._week.doy},Yt.firstDayOfWeek=function xf(){return this._week.dow},Yt.weekdays=function $i(C,H){var I=M(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===C?At(I,this._week.dow):C?I[C.day()]:I},Yt.weekdaysMin=function Hi(C){return!0===C?At(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},Yt.weekdaysShort=function Ha(C){return!0===C?At(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},Yt.weekdaysParse=function qs(C,H,I){var F,J,ae;if(this._weekdaysParseExact)return td.call(this,C,H,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),F=0;F<7;F++){if(J=te([2e3,1]).day(F),I&&!this._fullWeekdaysParse[F]&&(this._fullWeekdaysParse[F]=new RegExp("^"+this.weekdays(J,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[F]=new RegExp("^"+this.weekdaysShort(J,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[F]=new RegExp("^"+this.weekdaysMin(J,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[F]||(ae="^"+this.weekdays(J,"")+"|^"+this.weekdaysShort(J,"")+"|^"+this.weekdaysMin(J,""),this._weekdaysParse[F]=new RegExp(ae.replace(".",""),"i")),I&&"dddd"===H&&this._fullWeekdaysParse[F].test(C))return F;if(I&&"ddd"===H&&this._shortWeekdaysParse[F].test(C))return F;if(I&&"dd"===H&&this._minWeekdaysParse[F].test(C))return F;if(!I&&this._weekdaysParse[F].test(C))return F}},Yt.weekdaysRegex=function Kn(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nn.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Ne),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},Yt.weekdaysShortRegex=function Gs(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nn.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ee),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Yt.weekdaysMinRegex=function dt(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nn.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ed),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Yt.isPM=function zl(C){return"p"===(C+"").toLowerCase().charAt(0)},Yt.meridiem=function Yn(C,H,I){return C>11?I?"pm":"PM":I?"am":"AM"},W("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(C){var H=C%10;return C+(1===Ae(C%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=xt("moment.lang is deprecated. Use moment.locale instead.",W),i.langData=xt("moment.langData is deprecated. Use moment.localeData instead.",re);var ir=Math.abs;function Lr(C,H,I,F){var J=Xn(H,I);return C._milliseconds+=F*J._milliseconds,C._days+=F*J._days,C._months+=F*J._months,C._bubble()}function mh(C){return C<0?Math.floor(C):Math.ceil(C)}function gh(C){return 4800*C/146097}function sc(C){return 146097*C/4800}function Ir(C){return function(){return this.as(C)}}var _h=Ir("ms"),Ji=Ir("s"),bh=Ir("m"),Wf=Ir("h"),Td=Ir("d"),$o=Ir("w"),yh=Ir("M"),U_=Ir("Q"),wh=Ir("y");function da(C){return function(){return this.isValid()?this._data[C]:NaN}}var ho=da("milliseconds"),Zf=da("seconds"),Ch=da("minutes"),xd=da("hours"),Jo=da("days"),Ah=da("months"),Md=da("years");var Mn=Math.round,Or={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Sd(C,H,I,F,J){return J.relativeTime(H||1,!!I,C,F)}var Ed=Math.abs;function vs(C){return(C>0)-(C<0)||+C}function oc(){if(!this.isValid())return this.localeData().invalidDate();var F,J,ae,be,vt,Qt,Ci,Br,C=Ed(this._milliseconds)/1e3,H=Ed(this._days),I=Ed(this._months),et=this.asSeconds();return et?(F=Ve(C/60),J=Ve(F/60),C%=60,F%=60,ae=Ve(I/12),I%=12,be=C?C.toFixed(3).replace(/\.?0+$/,""):"",vt=et<0?"-":"",Qt=vs(this._months)!==vs(et)?"-":"",Ci=vs(this._days)!==vs(et)?"-":"",Br=vs(this._milliseconds)!==vs(et)?"-":"",vt+"P"+(ae?Qt+ae+"Y":"")+(I?Qt+I+"M":"")+(H?Ci+H+"D":"")+(J||F||C?"T":"")+(J?Br+J+"H":"")+(F?Br+F+"M":"")+(C?Br+be+"S":"")):"P0D"}var Ot=Vo.prototype;return Ot.isValid=function rd(){return this._isValid},Ot.abs=function Y_(){var C=this._data;return this._milliseconds=ir(this._milliseconds),this._days=ir(this._days),this._months=ir(this._months),C.milliseconds=ir(C.milliseconds),C.seconds=ir(C.seconds),C.minutes=ir(C.minutes),C.hours=ir(C.hours),C.months=ir(C.months),C.years=ir(C.years),this},Ot.add=function vd(C,H){return Lr(this,C,H,1)},Ot.subtract=function ac(C,H){return Lr(this,C,H,-1)},Ot.as=function Gf(C){if(!this.isValid())return NaN;var H,I,F=this._milliseconds;if("month"===(C=ln(C))||"quarter"===C||"year"===C)switch(H=this._days+F/864e5,I=this._months+gh(H),C){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(H=this._days+Math.round(sc(this._months)),C){case"week":return H/7+F/6048e5;case"day":return H+F/864e5;case"hour":return 24*H+F/36e5;case"minute":return 1440*H+F/6e4;case"second":return 86400*H+F/1e3;case"millisecond":return Math.floor(864e5*H)+F;default:throw new Error("Unknown unit "+C)}},Ot.asMilliseconds=_h,Ot.asSeconds=Ji,Ot.asMinutes=bh,Ot.asHours=Wf,Ot.asDays=Td,Ot.asWeeks=$o,Ot.asMonths=yh,Ot.asQuarters=U_,Ot.asYears=wh,Ot.valueOf=function Zo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Ae(this._months/12):NaN},Ot._bubble=function qf(){var J,ae,be,et,vt,C=this._milliseconds,H=this._days,I=this._months,F=this._data;return C>=0&&H>=0&&I>=0||C<=0&&H<=0&&I<=0||(C+=864e5*mh(sc(I)+H),H=0,I=0),F.milliseconds=C%1e3,J=Ve(C/1e3),F.seconds=J%60,ae=Ve(J/60),F.minutes=ae%60,be=Ve(ae/60),F.hours=be%24,H+=Ve(be/24),I+=vt=Ve(gh(H)),H-=mh(sc(vt)),et=Ve(I/12),I%=12,F.days=H,F.months=I,F.years=et,this},Ot.clone=function uo(){return Xn(this)},Ot.get=function Ba(C){return C=ln(C),this.isValid()?this[C+"s"]():NaN},Ot.milliseconds=ho,Ot.seconds=Zf,Ot.minutes=Ch,Ot.hours=xd,Ot.days=Jo,Ot.weeks=function $f(){return Ve(this.days()/7)},Ot.months=Ah,Ot.years=Md,Ot.humanize=function z_(C,H){if(!this.isValid())return this.localeData().invalidDate();var J,ae,I=!1,F=Or;return"object"==typeof C&&(H=C,C=!1),"boolean"==typeof C&&(I=C),"object"==typeof H&&(F=Object.assign({},Or,H),null!=H.s&&null==H.ss&&(F.ss=H.s-1)),ae=function Jf(C,H,I,F){var J=Xn(C).abs(),ae=Mn(J.as("s")),be=Mn(J.as("m")),et=Mn(J.as("h")),vt=Mn(J.as("d")),Qt=Mn(J.as("M")),Ci=Mn(J.as("w")),Br=Mn(J.as("y")),Vr=ae<=I.ss&&["s",ae]||ae0,Vr[4]=F,Sd.apply(null,Vr)}(this,!I,F,J=this.localeData()),I&&(ae=J.pastFuture(+this,ae)),J.postformat(ae)},Ot.toISOString=oc,Ot.toString=oc,Ot.toJSON=oc,Ot.locale=Uo,Ot.localeData=Ia,Ot.toIsoString=xt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oc),Ot.lang=eo,$e("X",0,0,"unix"),$e("x",0,0,"valueOf"),Re("x",ea),Re("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",function(C,H,I){I._d=new Date(1e3*parseFloat(C))}),gt("x",function(C,H,I){I._d=new Date(Ae(C))}),i.version="2.29.2",function E(C){T=C}(ai),i.fn=Pe,i.min=function ui(){return bn("isBefore",[].slice.call(arguments,0))},i.max=function hr(){return bn("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=te,i.unix=function qn(C){return ai(1e3*C)},i.months=function Uf(C,H){return Ad(C,H,"months")},i.isDate=Y,i.locale=W,i.invalid=Ie,i.duration=Xn,i.isMoment=Ke,i.weekdays=function rc(C,H,I){return co(C,H,I,"weekdays")},i.parseZone=function Cd(){return ai.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=Qs,i.monthsShort=function zf(C,H){return Ad(C,H,"monthsShort")},i.weekdaysMin=function As(C,H,I){return co(C,H,I,"weekdaysMin")},i.defineLocale=O,i.updateLocale=function Q(C,H){if(null!=H){var I,F,J=Er;null!=ci[C]&&null!=ci[C].parentLocale?ci[C].set(ye(ci[C]._config,H)):(null!=(F=B(C))&&(J=F._config),H=ye(J,H),null==F&&(H.abbr=C),(I=new ke(H)).parentLocale=ci[C],ci[C]=I),W(C)}else null!=ci[C]&&(null!=ci[C].parentLocale?(ci[C]=ci[C].parentLocale,C===W()&&W(C)):null!=ci[C]&&delete ci[C]);return ci[C]},i.locales=function he(){return ge(ci)},i.weekdaysShort=function fh(C,H,I){return co(C,H,I,"weekdaysShort")},i.normalizeUnits=ln,i.relativeTimeRounding=function vh(C){return void 0===C?Mn:"function"==typeof C&&(Mn=C,!0)},i.relativeTimeThreshold=function Qf(C,H){return void 0!==Or[C]&&(void 0===H?Or[C]:(Or[C]=H,"s"===C&&(Or.ss=H-1),!0))},i.calendarFormat=function pr(C,H){var I=C.diff(H,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"},i.prototype=Pe,i.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"},i}()},1869:(z,G,x)=>{"use strict";x.d(G,{d:()=>i});var T=x(3489);class i extends T.L{constructor(M,S,P){super(),this.parent=M,this.outerValue=S,this.outerIndex=P,this.index=0}_next(M){this.parent.notifyNext(this.outerValue,M,this.outerIndex,this.index++,this)}_error(M){this.parent.notifyError(M,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(z,G,x)=>{"use strict";x.d(G,{P:()=>S});var T=x(8896),i=x(1086),E=x(1737);class S{constructor(L,V,U){this.kind=L,this.value=V,this.error=U,this.hasValue="N"===L}observe(L){switch(this.kind){case"N":return L.next&&L.next(this.value);case"E":return L.error&&L.error(this.error);case"C":return L.complete&&L.complete()}}do(L,V,U){switch(this.kind){case"N":return L&&L(this.value);case"E":return V&&V(this.error);case"C":return U&&U()}}accept(L,V,U){return L&&"function"==typeof L.next?this.observe(L):this.do(L,V,U)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,E._)(this.error);case"C":return(0,T.c)()}throw new Error("unexpected notification kind value")}static createNext(L){return void 0!==L?new S("N",L):S.undefinedValueNotification}static createError(L){return new S("E",void 0,L)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},2916:(z,G,x)=>{"use strict";x.d(G,{y:()=>$});var T=x(3489),E=x(7668),M=x(3292),P=x(3821),L=x(5379);var Y=x(2830);let $=(()=>{class te{constructor(ne){this._isScalar=!1,ne&&(this._subscribe=ne)}lift(ne){const de=new te;return de.source=this,de.operator=ne,de}subscribe(ne,de,me){const{operator:Ie}=this,Be=function S(te,ce,ne){if(te){if(te instanceof T.L)return te;if(te[E.b])return te[E.b]()}return te||ce||ne?new T.L(te,ce,ne):new T.L(M.c)}(ne,de,me);if(Be.add(Ie?Ie.call(Be,this.source):this.source||Y.v.useDeprecatedSynchronousErrorHandling&&!Be.syncErrorThrowable?this._subscribe(Be):this._trySubscribe(Be)),Y.v.useDeprecatedSynchronousErrorHandling&&Be.syncErrorThrowable&&(Be.syncErrorThrowable=!1,Be.syncErrorThrown))throw Be.syncErrorValue;return Be}_trySubscribe(ne){try{return this._subscribe(ne)}catch(de){Y.v.useDeprecatedSynchronousErrorHandling&&(ne.syncErrorThrown=!0,ne.syncErrorValue=de),function i(te){for(;te;){const{closed:ce,destination:ne,isStopped:de}=te;if(ce||de)return!1;te=ne&&ne instanceof T.L?ne:null}return!0}(ne)?ne.error(de):console.warn(de)}}forEach(ne,de){return new(de=X(de))((me,Ie)=>{let Be;Be=this.subscribe(Ze=>{try{ne(Ze)}catch(It){Ie(It),Be&&Be.unsubscribe()}},Ie,me)})}_subscribe(ne){const{source:de}=this;return de&&de.subscribe(ne)}[P.L](){return this}pipe(...ne){return 0===ne.length?this:function U(te){return 0===te.length?L.y:1===te.length?te[0]:function(ne){return te.reduce((de,me)=>me(de),ne)}}(ne)(this)}toPromise(ne){return new(ne=X(ne))((de,me)=>{let Ie;this.subscribe(Be=>Ie=Be,Be=>me(Be),()=>de(Ie))})}}return te.create=ce=>new te(ce),te})();function X(te){if(te||(te=Y.v.Promise||Promise),!te)throw new Error("no Promise impl found");return te}},3292:(z,G,x)=>{"use strict";x.d(G,{c:()=>E});var T=x(2830),i=x(2782);const E={closed:!0,next(M){},error(M){if(T.v.useDeprecatedSynchronousErrorHandling)throw M;(0,i.z)(M)},complete(){}}},826:(z,G,x)=>{"use strict";x.d(G,{L:()=>i});var T=x(3489);class i extends T.L{notifyNext(M,S,P,L,V){this.destination.next(S)}notifyError(M,S){this.destination.error(M)}notifyComplete(M){this.destination.complete()}}},8929:(z,G,x)=>{"use strict";x.d(G,{Yc:()=>L,xQ:()=>V});var T=x(2916),i=x(3489),E=x(2654),M=x(5279),S=x(5283),P=x(7668);class L extends i.L{constructor($){super($),this.destination=$}}let V=(()=>{class Y extends T.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[P.b](){return new L(this)}lift(X){const te=new U(this,this);return te.operator=X,te}next(X){if(this.closed)throw new M.N;if(!this.isStopped){const{observers:te}=this,ce=te.length,ne=te.slice();for(let de=0;denew U($,X),Y})();class U extends V{constructor($,X){super(),this.destination=$,this.source=X}next($){const{destination:X}=this;X&&X.next&&X.next($)}error($){const{destination:X}=this;X&&X.error&&this.destination.error($)}complete(){const{destination:$}=this;$&&$.complete&&this.destination.complete()}_subscribe($){const{source:X}=this;return X?this.source.subscribe($):E.w.EMPTY}}},5283:(z,G,x)=>{"use strict";x.d(G,{W:()=>i});var T=x(2654);class i extends T.w{constructor(M,S){super(),this.subject=M,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const M=this.subject,S=M.observers;if(this.subject=null,!S||0===S.length||M.isStopped||M.closed)return;const P=S.indexOf(this.subscriber);-1!==P&&S.splice(P,1)}}},3489:(z,G,x)=>{"use strict";x.d(G,{L:()=>L});var T=x(7043),i=x(3292),E=x(2654),M=x(7668),S=x(2830),P=x(2782);class L extends E.w{constructor(Y,$,X){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!Y){this.destination=i.c;break}if("object"==typeof Y){Y instanceof L?(this.syncErrorThrowable=Y.syncErrorThrowable,this.destination=Y,Y.add(this)):(this.syncErrorThrowable=!0,this.destination=new V(this,Y));break}default:this.syncErrorThrowable=!0,this.destination=new V(this,Y,$,X)}}[M.b](){return this}static create(Y,$,X){const te=new L(Y,$,X);return te.syncErrorThrowable=!1,te}next(Y){this.isStopped||this._next(Y)}error(Y){this.isStopped||(this.isStopped=!0,this._error(Y))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(Y){this.destination.next(Y)}_error(Y){this.destination.error(Y),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:Y}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=Y,this}}class V extends L{constructor(Y,$,X,te){super(),this._parentSubscriber=Y;let ce,ne=this;(0,T.m)($)?ce=$:$&&(ce=$.next,X=$.error,te=$.complete,$!==i.c&&(ne=Object.create($),(0,T.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=ce,this._error=X,this._complete=te}next(Y){if(!this.isStopped&&this._next){const{_parentSubscriber:$}=this;S.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,Y)&&this.unsubscribe():this.__tryOrUnsub(this._next,Y)}}error(Y){if(!this.isStopped){const{_parentSubscriber:$}=this,{useDeprecatedSynchronousErrorHandling:X}=S.v;if(this._error)X&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,Y),this.unsubscribe()):(this.__tryOrUnsub(this._error,Y),this.unsubscribe());else if($.syncErrorThrowable)X?($.syncErrorValue=Y,$.syncErrorThrown=!0):(0,P.z)(Y),this.unsubscribe();else{if(this.unsubscribe(),X)throw Y;(0,P.z)(Y)}}}complete(){if(!this.isStopped){const{_parentSubscriber:Y}=this;if(this._complete){const $=()=>this._complete.call(this._context);S.v.useDeprecatedSynchronousErrorHandling&&Y.syncErrorThrowable?(this.__tryOrSetError(Y,$),this.unsubscribe()):(this.__tryOrUnsub($),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(Y,$){try{Y.call(this._context,$)}catch(X){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw X;(0,P.z)(X)}}__tryOrSetError(Y,$,X){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,X)}catch(te){return S.v.useDeprecatedSynchronousErrorHandling?(Y.syncErrorValue=te,Y.syncErrorThrown=!0,!0):((0,P.z)(te),!0)}return!1}_unsubscribe(){const{_parentSubscriber:Y}=this;this._context=null,this._parentSubscriber=null,Y.unsubscribe()}}},2654:(z,G,x)=>{"use strict";x.d(G,{w:()=>P});var T=x(6688),i=x(7830),E=x(7043);const S=(()=>{function V(U){return Error.call(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((Y,$)=>`${$+1}) ${Y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U,this}return V.prototype=Object.create(Error.prototype),V})();class P{constructor(U){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,U&&(this._unsubscribe=U)}unsubscribe(){let U;if(this.closed)return;let{_parentOrParents:Y,_unsubscribe:$,_subscriptions:X}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,Y instanceof P)Y.remove(this);else if(null!==Y)for(let te=0;teU.concat(Y instanceof S?Y.errors:Y),[])}P.EMPTY=((V=new P).closed=!0,V)},2830:(z,G,x)=>{"use strict";x.d(G,{v:()=>i});let T=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(E){if(E){const M=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+M.stack)}else T&&console.log("RxJS: Back to a better error behavior. Thank you. <3");T=E},get useDeprecatedSynchronousErrorHandling(){return T}}},1762:(z,G,x)=>{"use strict";x.d(G,{c:()=>S,N:()=>P});var T=x(8929),i=x(2916),E=x(2654),M=x(4327);class S extends i.y{constructor($,X){super(),this.source=$,this.subjectFactory=X,this._refCount=0,this._isComplete=!1}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let $=this._connection;return $||(this._isComplete=!1,$=this._connection=new E.w,$.add(this.source.subscribe(new L(this.getSubject(),this))),$.closed&&(this._connection=null,$=E.w.EMPTY)),$}refCount(){return(0,M.x)()(this)}}const P=(()=>{const Y=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Y._subscribe},_isComplete:{value:Y._isComplete,writable:!0},getSubject:{value:Y.getSubject},connect:{value:Y.connect},refCount:{value:Y.refCount}}})();class L extends T.Yc{constructor($,X){super($),this.connectable=X}_error($){this._unsubscribe(),super._error($)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const $=this.connectable;if($){this.connectable=null;const X=$._connection;$._refCount=0,$._subject=null,$._connection=null,X&&X.unsubscribe()}}}},6053:(z,G,x)=>{"use strict";x.d(G,{aj:()=>L});var T=x(2866),i=x(6688),E=x(826),M=x(9054),S=x(3009);const P={};function L(...Y){let $=null,X=null;return(0,T.K)(Y[Y.length-1])&&(X=Y.pop()),"function"==typeof Y[Y.length-1]&&($=Y.pop()),1===Y.length&&(0,i.k)(Y[0])&&(Y=Y[0]),(0,S.n)(Y,X).lift(new V($))}class V{constructor($){this.resultSelector=$}call($,X){return X.subscribe(new U($,this.resultSelector))}}class U extends E.L{constructor($,X){super($),this.resultSelector=X,this.active=0,this.values=[],this.observables=[]}_next($){this.values.push(P),this.observables.push($)}_complete(){const $=this.observables,X=$.length;if(0===X)this.destination.complete();else{this.active=X,this.toRespond=X;for(let te=0;te{"use strict";x.d(G,{E:()=>i,c:()=>E});var T=x(2916);const i=new T.y(S=>S.complete());function E(S){return S?function M(S){return new T.y(P=>S.schedule(()=>P.complete()))}(S):i}},5254:(z,G,x)=>{"use strict";x.d(G,{D:()=>ne});var T=x(2916),i=x(9249),E=x(2654),M=x(3821),L=x(6454),V=x(5430),$=x(8955),X=x(8515);function ne(de,me){return me?function ce(de,me){if(null!=de){if(function Y(de){return de&&"function"==typeof de[M.L]}(de))return function S(de,me){return new T.y(Ie=>{const Be=new E.w;return Be.add(me.schedule(()=>{const Ze=de[M.L]();Be.add(Ze.subscribe({next(It){Be.add(me.schedule(()=>Ie.next(It)))},error(It){Be.add(me.schedule(()=>Ie.error(It)))},complete(){Be.add(me.schedule(()=>Ie.complete()))}}))})),Be})}(de,me);if((0,$.t)(de))return function P(de,me){return new T.y(Ie=>{const Be=new E.w;return Be.add(me.schedule(()=>de.then(Ze=>{Be.add(me.schedule(()=>{Ie.next(Ze),Be.add(me.schedule(()=>Ie.complete()))}))},Ze=>{Be.add(me.schedule(()=>Ie.error(Ze)))}))),Be})}(de,me);if((0,X.z)(de))return(0,L.r)(de,me);if(function te(de){return de&&"function"==typeof de[V.hZ]}(de)||"string"==typeof de)return function U(de,me){if(!de)throw new Error("Iterable cannot be null");return new T.y(Ie=>{const Be=new E.w;let Ze;return Be.add(()=>{Ze&&"function"==typeof Ze.return&&Ze.return()}),Be.add(me.schedule(()=>{Ze=de[V.hZ](),Be.add(me.schedule(function(){if(Ie.closed)return;let It,kt;try{const Ke=Ze.next();It=Ke.value,kt=Ke.done}catch(Ke){return void Ie.error(Ke)}kt?Ie.complete():(Ie.next(It),this.schedule())}))})),Be})}(de,me)}throw new TypeError((null!==de&&typeof de||de)+" is not observable")}(de,me):de instanceof T.y?de:new T.y((0,i.s)(de))}},3009:(z,G,x)=>{"use strict";x.d(G,{n:()=>M});var T=x(2916),i=x(3650),E=x(6454);function M(S,P){return P?(0,E.r)(S,P):new T.y((0,i.V)(S))}},6787:(z,G,x)=>{"use strict";x.d(G,{T:()=>S});var T=x(2916),i=x(2866),E=x(9146),M=x(3009);function S(...P){let L=Number.POSITIVE_INFINITY,V=null,U=P[P.length-1];return(0,i.K)(U)?(V=P.pop(),P.length>1&&"number"==typeof P[P.length-1]&&(L=P.pop())):"number"==typeof U&&(L=P.pop()),null===V&&1===P.length&&P[0]instanceof T.y?P[0]:(0,E.J)(L)((0,M.n)(P,V))}},1086:(z,G,x)=>{"use strict";x.d(G,{of:()=>M});var T=x(2866),i=x(3009),E=x(6454);function M(...S){let P=S[S.length-1];return(0,T.K)(P)?(S.pop(),(0,E.r)(S,P)):(0,i.n)(S)}},1946:(z,G,x)=>{"use strict";x.d(G,{S3:()=>S});var T=x(6688),i=x(3009),E=x(826),M=x(9054);function S(...V){if(1===V.length){if(!(0,T.k)(V[0]))return V[0];V=V[0]}return(0,i.n)(V,void 0).lift(new P)}class P{call(U,Y){return Y.subscribe(new L(U))}}class L extends E.L{constructor(U){super(U),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(U){this.observables.push(U)}_complete(){const U=this.observables,Y=U.length;if(0===Y)this.destination.complete();else{for(let $=0;${"use strict";x.d(G,{_:()=>i});var T=x(2916);function i(M,S){return new T.y(S?P=>S.schedule(E,0,{error:M,subscriber:P}):P=>P.error(M))}function E({error:M,subscriber:S}){S.error(M)}},7221:(z,G,x)=>{"use strict";x.d(G,{K:()=>M});var T=x(826),i=x(1869),E=x(9054);function M(L){return function(U){const Y=new S(L),$=U.lift(Y);return Y.caught=$}}class S{constructor(V){this.selector=V}call(V,U){return U.subscribe(new P(V,this.selector,this.caught))}}class P extends T.L{constructor(V,U,Y){super(V),this.selector=U,this.caught=Y}error(V){if(!this.isStopped){let U;try{U=this.selector(V,this.caught)}catch(X){return void super.error(X)}this._unsubscribeAndRecycle();const Y=new i.d(this,void 0,void 0);this.add(Y);const $=(0,E.D)(this,U,void 0,void 0,Y);$!==Y&&this.add($)}}}},1406:(z,G,x)=>{"use strict";x.d(G,{b:()=>i});var T=x(1709);function i(E,M){return(0,T.zg)(E,M,1)}},13:(z,G,x)=>{"use strict";x.d(G,{b:()=>E});var T=x(3489),i=x(353);function E(L,V=i.P){return U=>U.lift(new M(L,V))}class M{constructor(V,U){this.dueTime=V,this.scheduler=U}call(V,U){return U.subscribe(new S(V,this.dueTime,this.scheduler))}}class S extends T.L{constructor(V,U,Y){super(V),this.dueTime=U,this.scheduler=Y,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(V){this.clearDebounce(),this.lastValue=V,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:V}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(V)}}clearDebounce(){const V=this.debouncedSubscription;null!==V&&(this.remove(V),V.unsubscribe(),this.debouncedSubscription=null)}}function P(L){L.debouncedNext()}},7314:(z,G,x)=>{"use strict";x.d(G,{d:()=>i});var T=x(3489);function i(S=null){return P=>P.lift(new E(S))}class E{constructor(P){this.defaultValue=P}call(P,L){return L.subscribe(new M(P,this.defaultValue))}}class M extends T.L{constructor(P,L){super(P),this.defaultValue=L,this.isEmpty=!0}_next(P){this.isEmpty=!1,this.destination.next(P)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(z,G,x)=>{"use strict";x.d(G,{g:()=>S});var T=x(353),i=x(2697),E=x(3489),M=x(9312);function S(U,Y=T.P){const X=(0,i.J)(U)?+U-Y.now():Math.abs(U);return te=>te.lift(new P(X,Y))}class P{constructor(Y,$){this.delay=Y,this.scheduler=$}call(Y,$){return $.subscribe(new L(Y,this.delay,this.scheduler))}}class L extends E.L{constructor(Y,$,X){super(Y),this.delay=$,this.scheduler=X,this.queue=[],this.active=!1,this.errored=!1}static dispatch(Y){const $=Y.source,X=$.queue,te=Y.scheduler,ce=Y.destination;for(;X.length>0&&X[0].time-te.now()<=0;)X.shift().notification.observe(ce);if(X.length>0){const ne=Math.max(0,X[0].time-te.now());this.schedule(Y,ne)}else this.unsubscribe(),$.active=!1}_schedule(Y){this.active=!0,this.destination.add(Y.schedule(L.dispatch,this.delay,{source:this,destination:this.destination,scheduler:Y}))}scheduleNotification(Y){if(!0===this.errored)return;const $=this.scheduler,X=new V($.now()+this.delay,Y);this.queue.push(X),!1===this.active&&this._schedule($)}_next(Y){this.scheduleNotification(M.P.createNext(Y))}_error(Y){this.errored=!0,this.queue=[],this.destination.error(Y),this.unsubscribe()}_complete(){this.scheduleNotification(M.P.createComplete()),this.unsubscribe()}}class V{constructor(Y,$){this.time=Y,this.notification=$}}},2198:(z,G,x)=>{"use strict";x.d(G,{h:()=>i});var T=x(3489);function i(S,P){return function(V){return V.lift(new E(S,P))}}class E{constructor(P,L){this.predicate=P,this.thisArg=L}call(P,L){return L.subscribe(new M(P,this.predicate,this.thisArg))}}class M extends T.L{constructor(P,L,V){super(P),this.predicate=L,this.thisArg=V,this.count=0}_next(P){let L;try{L=this.predicate.call(this.thisArg,P,this.count++)}catch(V){return void this.destination.error(V)}L&&this.destination.next(P)}}},7224:(z,G,x)=>{"use strict";x.d(G,{P:()=>L});var T=x(4450),i=x(2198),E=x(2986),M=x(7314),S=x(4907),P=x(5379);function L(V,U){const Y=arguments.length>=2;return $=>$.pipe(V?(0,i.h)((X,te)=>V(X,te,$)):P.y,(0,E.q)(1),Y?(0,M.d)(U):(0,S.T)(()=>new T.K))}},4850:(z,G,x)=>{"use strict";x.d(G,{U:()=>i});var T=x(3489);function i(S,P){return function(V){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return V.lift(new E(S,P))}}class E{constructor(P,L){this.project=P,this.thisArg=L}call(P,L){return L.subscribe(new M(P,this.project,this.thisArg))}}class M extends T.L{constructor(P,L,V){super(P),this.project=L,this.count=0,this.thisArg=V||this}_next(P){let L;try{L=this.project.call(this.thisArg,P,this.count++)}catch(V){return void this.destination.error(V)}this.destination.next(L)}}},9146:(z,G,x)=>{"use strict";x.d(G,{J:()=>E});var T=x(1709),i=x(5379);function E(M=Number.POSITIVE_INFINITY){return(0,T.zg)(i.y,M)}},1709:(z,G,x)=>{"use strict";x.d(G,{zg:()=>P});var T=x(9054),i=x(826),E=x(1869),M=x(4850),S=x(5254);function P(U,Y,$=Number.POSITIVE_INFINITY){return"function"==typeof Y?X=>X.pipe(P((te,ce)=>(0,S.D)(U(te,ce)).pipe((0,M.U)((ne,de)=>Y(te,ne,ce,de))),$)):("number"==typeof Y&&($=Y),X=>X.lift(new L(U,$)))}class L{constructor(Y,$=Number.POSITIVE_INFINITY){this.project=Y,this.concurrent=$}call(Y,$){return $.subscribe(new V(Y,this.project,this.concurrent))}}class V extends i.L{constructor(Y,$,X=Number.POSITIVE_INFINITY){super(Y),this.project=$,this.concurrent=X,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(Y){this.active0?this._next($.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(z,G,x)=>{"use strict";x.d(G,{x:()=>i});var T=x(3489);function i(){return function(P){return P.lift(new E(P))}}class E{constructor(P){this.connectable=P}call(P,L){const{connectable:V}=this;V._refCount++;const U=new M(P,V),Y=L.subscribe(U);return U.closed||(U.connection=V.connect()),Y}}class M extends T.L{constructor(P,L){super(P),this.connectable=L}_unsubscribe(){const{connectable:P}=this;if(!P)return void(this.connection=null);this.connectable=null;const L=P._refCount;if(L<=0)return void(this.connection=null);if(P._refCount=L-1,L>1)return void(this.connection=null);const{connection:V}=this,U=P._connection;this.connection=null,U&&(!V||U===V)&&U.unsubscribe()}}},2474:(z,G,x)=>{"use strict";x.d(G,{B:()=>L});var T=x(1762);class E{constructor(U,Y){this.subjectFactory=U,this.selector=Y}call(U,Y){const{selector:$}=this,X=this.subjectFactory(),te=$(X).subscribe(U);return te.add(Y.subscribe(X)),te}}var M=x(4327),S=x(8929);function P(){return new S.xQ}function L(){return V=>(0,M.x)()(function i(V,U){return function($){let X;if(X="function"==typeof V?V:function(){return V},"function"==typeof U)return $.lift(new E(X,U));const te=Object.create($,T.N);return te.source=$,te.subjectFactory=X,te}}(P)(V))}},7545:(z,G,x)=>{"use strict";x.d(G,{w:()=>P});var T=x(826),i=x(1869),E=x(9054),M=x(4850),S=x(5254);function P(U,Y){return"function"==typeof Y?$=>$.pipe(P((X,te)=>(0,S.D)(U(X,te)).pipe((0,M.U)((ce,ne)=>Y(X,ce,te,ne))))):$=>$.lift(new L(U))}class L{constructor(Y){this.project=Y}call(Y,$){return $.subscribe(new V(Y,this.project))}}class V extends T.L{constructor(Y,$){super(Y),this.project=$,this.index=0}_next(Y){let $;const X=this.index++;try{$=this.project(Y,X)}catch(te){return void this.destination.error(te)}this._innerSub($,Y,X)}_innerSub(Y,$,X){const te=this.innerSubscription;te&&te.unsubscribe();const ce=new i.d(this,$,X),ne=this.destination;ne.add(ce),this.innerSubscription=(0,E.D)(this,Y,void 0,void 0,ce),this.innerSubscription!==ce&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:Y}=this;(!Y||Y.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(Y){this.destination.remove(Y),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(Y,$,X,te,ce){this.destination.next($)}}},2986:(z,G,x)=>{"use strict";x.d(G,{q:()=>M});var T=x(3489),i=x(4231),E=x(8896);function M(L){return V=>0===L?(0,E.c)():V.lift(new S(L))}class S{constructor(V){if(this.total=V,this.total<0)throw new i.W}call(V,U){return U.subscribe(new P(V,this.total))}}class P extends T.L{constructor(V,U){super(V),this.total=U,this.count=0}_next(V){const U=this.total,Y=++this.count;Y<=U&&(this.destination.next(V),Y===U&&(this.destination.complete(),this.unsubscribe()))}}},2868:(z,G,x)=>{"use strict";x.d(G,{b:()=>M});var T=x(3489);function i(){}var E=x(7043);function M(L,V,U){return function($){return $.lift(new S(L,V,U))}}class S{constructor(V,U,Y){this.nextOrObserver=V,this.error=U,this.complete=Y}call(V,U){return U.subscribe(new P(V,this.nextOrObserver,this.error,this.complete))}}class P extends T.L{constructor(V,U,Y,$){super(V),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=Y||i,this._tapComplete=$||i,(0,E.m)(U)?(this._context=this,this._tapNext=U):U&&(this._context=U,this._tapNext=U.next||i,this._tapError=U.error||i,this._tapComplete=U.complete||i)}_next(V){try{this._tapNext.call(this._context,V)}catch(U){return void this.destination.error(U)}this.destination.next(V)}_error(V){try{this._tapError.call(this._context,V)}catch(U){return void this.destination.error(U)}this.destination.error(V)}_complete(){try{this._tapComplete.call(this._context)}catch(V){return void this.destination.error(V)}return this.destination.complete()}}},4907:(z,G,x)=>{"use strict";x.d(G,{T:()=>E});var T=x(4450),i=x(3489);function E(L=P){return V=>V.lift(new M(L))}class M{constructor(V){this.errorFactory=V}call(V,U){return U.subscribe(new S(V,this.errorFactory))}}class S extends i.L{constructor(V,U){super(V),this.errorFactory=U,this.hasValue=!1}_next(V){this.hasValue=!0,this.destination.next(V)}_complete(){if(this.hasValue)return this.destination.complete();{let V;try{V=this.errorFactory()}catch(U){V=U}this.destination.error(V)}}}function P(){return new T.K}},6227:(z,G,x)=>{"use strict";x.d(G,{V:()=>$});var T=x(353);const E=(()=>{function X(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return X.prototype=Object.create(Error.prototype),X})();var M=x(2697),S=x(826),P=x(9054);class V{constructor(te,ce,ne,de){this.waitFor=te,this.absoluteTimeout=ce,this.withObservable=ne,this.scheduler=de}call(te,ce){return ce.subscribe(new U(te,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class U extends S.L{constructor(te,ce,ne,de,me){super(te),this.absoluteTimeout=ce,this.waitFor=ne,this.withObservable=de,this.scheduler=me,this.action=null,this.scheduleTimeout()}static dispatchTimeout(te){const{withObservable:ce}=te;te._unsubscribeAndRecycle(),te.add((0,P.D)(te,ce))}scheduleTimeout(){const{action:te}=this;te?this.action=te.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(U.dispatchTimeout,this.waitFor,this))}_next(te){this.absoluteTimeout||this.scheduleTimeout(),super._next(te)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var Y=x(1737);function $(X,te=T.P){return function L(X,te,ce=T.P){return ne=>{let de=(0,M.J)(X),me=de?+X-ce.now():Math.abs(X);return ne.lift(new V(me,de,te,ce))}}(X,(0,Y._)(new E),te)}},6454:(z,G,x)=>{"use strict";x.d(G,{r:()=>E});var T=x(2916),i=x(2654);function E(M,S){return new T.y(P=>{const L=new i.w;let V=0;return L.add(S.schedule(function(){V!==M.length?(P.next(M[V++]),P.closed||L.add(this.schedule())):P.complete()})),L})}},6686:(z,G,x)=>{"use strict";x.d(G,{o:()=>E});var T=x(2654);class i extends T.w{constructor(S,P){super()}schedule(S,P=0){return this}}class E extends i{constructor(S,P){super(S,P),this.scheduler=S,this.work=P,this.pending=!1}schedule(S,P=0){if(this.closed)return this;this.state=S;const L=this.id,V=this.scheduler;return null!=L&&(this.id=this.recycleAsyncId(V,L,P)),this.pending=!0,this.delay=P,this.id=this.id||this.requestAsyncId(V,this.id,P),this}requestAsyncId(S,P,L=0){return setInterval(S.flush.bind(S,this),L)}recycleAsyncId(S,P,L=0){if(null!==L&&this.delay===L&&!1===this.pending)return P;clearInterval(P)}execute(S,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const L=this._execute(S,P);if(L)return L;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,P){let V,L=!1;try{this.work(S)}catch(U){L=!0,V=!!U&&U||new Error(U)}if(L)return this.unsubscribe(),V}_unsubscribe(){const S=this.id,P=this.scheduler,L=P.actions,V=L.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==V&&L.splice(V,1),null!=S&&(this.id=this.recycleAsyncId(P,S,null)),this.delay=null}}},2268:(z,G,x)=>{"use strict";x.d(G,{v:()=>i});let T=(()=>{class E{constructor(S,P=E.now){this.SchedulerAction=S,this.now=P}schedule(S,P=0,L){return new this.SchedulerAction(this,S).schedule(L,P)}}return E.now=()=>Date.now(),E})();class i extends T{constructor(M,S=T.now){super(M,()=>i.delegate&&i.delegate!==this?i.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(M,S=0,P){return i.delegate&&i.delegate!==this?i.delegate.schedule(M,S,P):super.schedule(M,S,P)}flush(M){const{actions:S}=this;if(this.active)return void S.push(M);let P;this.active=!0;do{if(P=M.execute(M.state,M.delay))break}while(M=S.shift());if(this.active=!1,P){for(;M=S.shift();)M.unsubscribe();throw P}}}},353:(z,G,x)=>{"use strict";x.d(G,{P:()=>E});var T=x(6686);const E=new(x(2268).v)(T.o)},5430:(z,G,x)=>{"use strict";x.d(G,{hZ:()=>i});const i=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(z,G,x)=>{"use strict";x.d(G,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(z,G,x)=>{"use strict";x.d(G,{b:()=>T});const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(z,G,x)=>{"use strict";x.d(G,{W:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return E.prototype=Object.create(Error.prototype),E})()},4450:(z,G,x)=>{"use strict";x.d(G,{K:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return E.prototype=Object.create(Error.prototype),E})()},5279:(z,G,x)=>{"use strict";x.d(G,{N:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return E.prototype=Object.create(Error.prototype),E})()},2782:(z,G,x)=>{"use strict";function T(i){setTimeout(()=>{throw i},0)}x.d(G,{z:()=>T})},5379:(z,G,x)=>{"use strict";function T(i){return i}x.d(G,{y:()=>T})},6688:(z,G,x)=>{"use strict";x.d(G,{k:()=>T});const T=Array.isArray||(i=>i&&"number"==typeof i.length)},8515:(z,G,x)=>{"use strict";x.d(G,{z:()=>T});const T=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2697:(z,G,x)=>{"use strict";function T(i){return i instanceof Date&&!isNaN(+i)}x.d(G,{J:()=>T})},7043:(z,G,x)=>{"use strict";function T(i){return"function"==typeof i}x.d(G,{m:()=>T})},7830:(z,G,x)=>{"use strict";function T(i){return null!==i&&"object"==typeof i}x.d(G,{K:()=>T})},8955:(z,G,x)=>{"use strict";function T(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}x.d(G,{t:()=>T})},2866:(z,G,x)=>{"use strict";function T(i){return i&&"function"==typeof i.schedule}x.d(G,{K:()=>T})},9249:(z,G,x)=>{"use strict";x.d(G,{s:()=>$});var T=x(3650),i=x(2782),M=x(5430),P=x(3821),V=x(8515),U=x(8955),Y=x(7830);const $=X=>{if(X&&"function"==typeof X[P.L])return(X=>te=>{const ce=X[P.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(te)})(X);if((0,V.z)(X))return(0,T.V)(X);if((0,U.t)(X))return(X=>te=>(X.then(ce=>{te.closed||(te.next(ce),te.complete())},ce=>te.error(ce)).then(null,i.z),te))(X);if(X&&"function"==typeof X[M.hZ])return(X=>te=>{const ce=X[M.hZ]();for(;;){const ne=ce.next();if(ne.done){te.complete();break}if(te.next(ne.value),te.closed)break}return"function"==typeof ce.return&&te.add(()=>{ce.return&&ce.return()}),te})(X);{const ce=`You provided ${(0,Y.K)(X)?"an invalid object":`'${X}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},3650:(z,G,x)=>{"use strict";x.d(G,{V:()=>T});const T=i=>E=>{for(let M=0,S=i.length;M{"use strict";x.d(G,{D:()=>M});var T=x(1869),i=x(9249),E=x(2916);function M(S,P,L,V,U=new T.d(S,L,V)){if(!U.closed)return P instanceof E.y?P.subscribe(U):(0,i.s)(P)(U)}},6700:(z,G,x)=>{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":3165,"./hy-am.js":3165,"./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":9635,"./sk.js":9635,"./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":4486,"./th.js":4486,"./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 i(M){var S=E(M);return x(S)}function E(M){if(!x.o(T,M)){var S=new Error("Cannot find module '"+M+"'");throw S.code="MODULE_NOT_FOUND",S}return T[M]}i.keys=function(){return Object.keys(T)},i.resolve=E,z.exports=i,i.id=6700},655:(z,G,x)=>{"use strict";function V(fe,_e,we,ye){return new(we||(we=Promise))(function(ge,Mt){function Gt(ht){try{tt(ye.next(ht))}catch(In){Mt(In)}}function yi(ht){try{tt(ye.throw(ht))}catch(In){Mt(In)}}function tt(ht){ht.done?ge(ht.value):function ke(ge){return ge instanceof we?ge:new we(function(Mt){Mt(ge)})}(ht.value).then(Gt,yi)}tt((ye=ye.apply(fe,_e||[])).next())})}x.d(G,{mG:()=>V})},9808:(z,G,x)=>{"use strict";x.d(G,{mr:()=>Be,Ov:()=>$u,ez:()=>jt,K0:()=>L,uU:()=>Ne,Do:()=>It,V_:()=>Y,Ye:()=>kt,S$:()=>me,mk:()=>Ma,sg:()=>tn,O5:()=>Vn,PC:()=>os,RF:()=>_n,n9:()=>jn,ED:()=>Ro,tP:()=>Sr,b0:()=>Ze,lw:()=>V,EM:()=>ra,JF:()=>fi,p6:()=>St,NF:()=>xn,w_:()=>P,bD:()=>ls,q:()=>E,Mx:()=>Po,HT:()=>S});var T=x(5e3);let i=null;function E(){return i}function S(B){i||(i=B)}class P{}const L=new T.OlP("DocumentToken");let V=(()=>{class B{historyGo(O){throw new Error("Not implemented")}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275prov=T.Yz7({token:B,factory:function(){return function U(){return(0,T.LFG)($)}()},providedIn:"platform"}),B})();const Y=new T.OlP("Location Initialized");let $=(()=>{class B extends V{constructor(O){super(),this._doc=O,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(O){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",O,!1),()=>Q.removeEventListener("popstate",O)}onHashChange(O){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",O,!1),()=>Q.removeEventListener("hashchange",O)}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(O){this.location.pathname=O}pushState(O,Q,re){X()?this._history.pushState(O,Q,re):this.location.hash=re}replaceState(O,Q,re){X()?this._history.replaceState(O,Q,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(L))},B.\u0275prov=T.Yz7({token:B,factory:function(){return function te(){return new $((0,T.LFG)(L))}()},providedIn:"platform"}),B})();function X(){return!!window.history.pushState}function ce(B,W){if(0==B.length)return W;if(0==W.length)return B;let O=0;return B.endsWith("/")&&O++,W.startsWith("/")&&O++,2==O?B+W.substring(1):1==O?B+W:B+"/"+W}function ne(B){const W=B.match(/#|\?|$/),O=W&&W.index||B.length;return B.slice(0,O-("/"===B[O-1]?1:0))+B.slice(O)}function de(B){return B&&"?"!==B[0]?"?"+B:B}let me=(()=>{class B{historyGo(O){throw new Error("Not implemented")}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275prov=T.Yz7({token:B,factory:function(){return function Ie(B){const W=(0,T.LFG)(L).location;return new Ze((0,T.LFG)(V),W&&W.origin||"")}()},providedIn:"root"}),B})();const Be=new T.OlP("appBaseHref");let Ze=(()=>{class B extends me{constructor(O,Q){if(super(),this._platformLocation=O,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return ce(this._baseHref,O)}path(O=!1){const Q=this._platformLocation.pathname+de(this._platformLocation.search),re=this._platformLocation.hash;return re&&O?`${Q}${re}`:Q}pushState(O,Q,re,he){const ve=this.prepareExternalUrl(re+de(he));this._platformLocation.pushState(O,Q,ve)}replaceState(O,Q,re,he){const ve=this.prepareExternalUrl(re+de(he));this._platformLocation.replaceState(O,Q,ve)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,O)}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(V),T.LFG(Be,8))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})(),It=(()=>{class B extends me{constructor(O,Q){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(O){const Q=ce(this._baseHref,O);return Q.length>0?"#"+Q:Q}pushState(O,Q,re,he){let ve=this.prepareExternalUrl(re+de(he));0==ve.length&&(ve=this._platformLocation.pathname),this._platformLocation.pushState(O,Q,ve)}replaceState(O,Q,re,he){let ve=this.prepareExternalUrl(re+de(he));0==ve.length&&(ve=this._platformLocation.pathname),this._platformLocation.replaceState(O,Q,ve)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,O)}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(V),T.LFG(Be,8))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})(),kt=(()=>{class B{constructor(O,Q){this._subject=new T.vpe,this._urlChangeListeners=[],this._platformStrategy=O;const re=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=ne(xt(re)),this._platformStrategy.onPopState(he=>{this._subject.emit({url:this.path(!0),pop:!0,state:he.state,type:he.type})})}path(O=!1){return this.normalize(this._platformStrategy.path(O))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(O,Q=""){return this.path()==this.normalize(O+de(Q))}normalize(O){return B.stripTrailingSlash(function Xi(B,W){return B&&W.startsWith(B)?W.substring(B.length):W}(this._baseHref,xt(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._platformStrategy.prepareExternalUrl(O)}go(O,Q="",re=null){this._platformStrategy.pushState(re,"",O,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+de(Q)),re)}replaceState(O,Q="",re=null){this._platformStrategy.replaceState(re,"",O,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+de(Q)),re)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformStrategy).historyGo)||void 0===re||re.call(Q,O)}onUrlChange(O){this._urlChangeListeners.push(O),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(O="",Q){this._urlChangeListeners.forEach(re=>re(O,Q))}subscribe(O,Q,re){return this._subject.subscribe({next:O,error:Q,complete:re})}}return B.normalizeQueryParams=de,B.joinWithSlash=ce,B.stripTrailingSlash=ne,B.\u0275fac=function(O){return new(O||B)(T.LFG(me),T.LFG(V))},B.\u0275prov=T.Yz7({token:B,factory:function(){return function Ke(){return new kt((0,T.LFG)(me),(0,T.LFG)(V))}()},providedIn:"root"}),B})();function xt(B){return B.replace(/\/index.html$/,"")}var _e=(()=>((_e=_e||{})[_e.Zero=0]="Zero",_e[_e.One=1]="One",_e[_e.Two=2]="Two",_e[_e.Few=3]="Few",_e[_e.Many=4]="Many",_e[_e.Other=5]="Other",_e))(),we=(()=>((we=we||{})[we.Format=0]="Format",we[we.Standalone=1]="Standalone",we))(),ye=(()=>((ye=ye||{})[ye.Narrow=0]="Narrow",ye[ye.Abbreviated=1]="Abbreviated",ye[ye.Wide=2]="Wide",ye[ye.Short=3]="Short",ye))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function ri(B,W){return Bi((0,T.cg1)(B)[T.wAp.DateFormat],W)}function Aa(B,W){return Bi((0,T.cg1)(B)[T.wAp.TimeFormat],W)}function Cn(B,W){return Bi((0,T.cg1)(B)[T.wAp.DateTimeFormat],W)}function Ni(B,W){const O=(0,T.cg1)(B),Q=O[T.wAp.NumberSymbols][W];if(void 0===Q){if(W===ge.CurrencyDecimal)return O[T.wAp.NumberSymbols][ge.Decimal];if(W===ge.CurrencyGroup)return O[T.wAp.NumberSymbols][ge.Group]}return Q}const Kr=T.kL8;function Ta(B){if(!B[T.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${B[T.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Bi(B,W){for(let O=W;O>-1;O--)if(void 0!==B[O])return B[O];throw new Error("Locale data API: locale data undefined")}function Zt(B){const[W,O]=B.split(":");return{hours:+W,minutes:+O}}const oe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,De={},Se=/((?:[^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 Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.ShortGMT=1]="ShortGMT",Ve[Ve.Long=2]="Long",Ve[Ve.Extended=3]="Extended",Ve))(),Ae=(()=>((Ae=Ae||{})[Ae.FullYear=0]="FullYear",Ae[Ae.Month=1]="Month",Ae[Ae.Date=2]="Date",Ae[Ae.Hours=3]="Hours",Ae[Ae.Minutes=4]="Minutes",Ae[Ae.Seconds=5]="Seconds",Ae[Ae.FractionalSeconds=6]="FractionalSeconds",Ae[Ae.Day=7]="Day",Ae))(),ze=(()=>((ze=ze||{})[ze.DayPeriods=0]="DayPeriods",ze[ze.Days=1]="Days",ze[ze.Months=2]="Months",ze[ze.Eras=3]="Eras",ze))();function St(B,W,O,Q){let re=function Re(B){if(Zi(B))return B;if("number"==typeof B&&!isNaN(B))return new Date(B);if("string"==typeof B){if(B=B.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(B)){const[re,he=1,ve=1]=B.split("-").map(Qe=>+Qe);return Ei(re,he-1,ve)}const O=parseFloat(B);if(!isNaN(B-O))return new Date(O);let Q;if(Q=B.match(oe))return function oi(B){const W=new Date(0);let O=0,Q=0;const re=B[8]?W.setUTCFullYear:W.setFullYear,he=B[8]?W.setUTCHours:W.setHours;B[9]&&(O=Number(B[9]+B[10]),Q=Number(B[9]+B[11])),re.call(W,Number(B[1]),Number(B[2])-1,Number(B[3]));const ve=Number(B[4]||0)-O,Qe=Number(B[5]||0)-Q,Xt=Number(B[6]||0),Rt=Math.floor(1e3*parseFloat("0."+(B[7]||0)));return he.call(W,ve,Qe,Xt,Rt),W}(Q)}const W=new Date(B);if(!Zi(W))throw new Error(`Unable to convert "${B}" into a date`);return W}(B);W=Pt(O,W)||W;let Qe,ve=[];for(;W;){if(Qe=Se.exec(W),!Qe){ve.push(W);break}{ve=ve.concat(Qe.slice(1));const yt=ve.pop();if(!yt)break;W=yt}}let Xt=re.getTimezoneOffset();Q&&(Xt=as(Q,Xt),re=function w(B,W,O){const Q=O?-1:1,re=B.getTimezoneOffset();return function Us(B,W){return(B=new Date(B.getTime())).setMinutes(B.getMinutes()+W),B}(B,Q*(as(W,re)-re))}(re,Q,!0));let Rt="";return ve.forEach(yt=>{const wt=function rs(B){if(Bn[B])return Bn[B];let W;switch(B){case"G":case"GG":case"GGG":W=Vt(ze.Eras,ye.Abbreviated);break;case"GGGG":W=Vt(ze.Eras,ye.Wide);break;case"GGGGG":W=Vt(ze.Eras,ye.Narrow);break;case"y":W=qe(Ae.FullYear,1,0,!1,!0);break;case"yy":W=qe(Ae.FullYear,2,0,!0,!0);break;case"yyy":W=qe(Ae.FullYear,3,0,!1,!0);break;case"yyyy":W=qe(Ae.FullYear,4,0,!1,!0);break;case"Y":W=ea(1);break;case"YY":W=ea(2,!0);break;case"YYY":W=ea(3);break;case"YYYY":W=ea(4);break;case"M":case"L":W=qe(Ae.Month,1,1);break;case"MM":case"LL":W=qe(Ae.Month,2,1);break;case"MMM":W=Vt(ze.Months,ye.Abbreviated);break;case"MMMM":W=Vt(ze.Months,ye.Wide);break;case"MMMMM":W=Vt(ze.Months,ye.Narrow);break;case"LLL":W=Vt(ze.Months,ye.Abbreviated,we.Standalone);break;case"LLLL":W=Vt(ze.Months,ye.Wide,we.Standalone);break;case"LLLLL":W=Vt(ze.Months,ye.Narrow,we.Standalone);break;case"w":W=Xr(1);break;case"ww":W=Xr(2);break;case"W":W=Xr(1,!0);break;case"d":W=qe(Ae.Date,1);break;case"dd":W=qe(Ae.Date,2);break;case"c":case"cc":W=qe(Ae.Day,1);break;case"ccc":W=Vt(ze.Days,ye.Abbreviated,we.Standalone);break;case"cccc":W=Vt(ze.Days,ye.Wide,we.Standalone);break;case"ccccc":W=Vt(ze.Days,ye.Narrow,we.Standalone);break;case"cccccc":W=Vt(ze.Days,ye.Short,we.Standalone);break;case"E":case"EE":case"EEE":W=Vt(ze.Days,ye.Abbreviated);break;case"EEEE":W=Vt(ze.Days,ye.Wide);break;case"EEEEE":W=Vt(ze.Days,ye.Narrow);break;case"EEEEEE":W=Vt(ze.Days,ye.Short);break;case"a":case"aa":case"aaa":W=Vt(ze.DayPeriods,ye.Abbreviated);break;case"aaaa":W=Vt(ze.DayPeriods,ye.Wide);break;case"aaaaa":W=Vt(ze.DayPeriods,ye.Narrow);break;case"b":case"bb":case"bbb":W=Vt(ze.DayPeriods,ye.Abbreviated,we.Standalone,!0);break;case"bbbb":W=Vt(ze.DayPeriods,ye.Wide,we.Standalone,!0);break;case"bbbbb":W=Vt(ze.DayPeriods,ye.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":W=Vt(ze.DayPeriods,ye.Abbreviated,we.Format,!0);break;case"BBBB":W=Vt(ze.DayPeriods,ye.Wide,we.Format,!0);break;case"BBBBB":W=Vt(ze.DayPeriods,ye.Narrow,we.Format,!0);break;case"h":W=qe(Ae.Hours,1,-12);break;case"hh":W=qe(Ae.Hours,2,-12);break;case"H":W=qe(Ae.Hours,1);break;case"HH":W=qe(Ae.Hours,2);break;case"m":W=qe(Ae.Minutes,1);break;case"mm":W=qe(Ae.Minutes,2);break;case"s":W=qe(Ae.Seconds,1);break;case"ss":W=qe(Ae.Seconds,2);break;case"S":W=qe(Ae.FractionalSeconds,1);break;case"SS":W=qe(Ae.FractionalSeconds,2);break;case"SSS":W=qe(Ae.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":W=$n(Ve.Short);break;case"ZZZZZ":W=$n(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":W=$n(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":W=$n(Ve.Long);break;default:return null}return Bn[B]=W,W}(yt);Rt+=wt?wt(re,O,Xt):"''"===yt?"'":yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Rt}function Ei(B,W,O){const Q=new Date(0);return Q.setFullYear(B,W,O),Q.setHours(0,0,0),Q}function Pt(B,W){const O=function Gt(B){return(0,T.cg1)(B)[T.wAp.LocaleId]}(B);if(De[O]=De[O]||{},De[O][W])return De[O][W];let Q="";switch(W){case"shortDate":Q=ri(B,ke.Short);break;case"mediumDate":Q=ri(B,ke.Medium);break;case"longDate":Q=ri(B,ke.Long);break;case"fullDate":Q=ri(B,ke.Full);break;case"shortTime":Q=Aa(B,ke.Short);break;case"mediumTime":Q=Aa(B,ke.Medium);break;case"longTime":Q=Aa(B,ke.Long);break;case"fullTime":Q=Aa(B,ke.Full);break;case"short":const re=Pt(B,"shortTime"),he=Pt(B,"shortDate");Q=xr(Cn(B,ke.Short),[re,he]);break;case"medium":const ve=Pt(B,"mediumTime"),Qe=Pt(B,"mediumDate");Q=xr(Cn(B,ke.Medium),[ve,Qe]);break;case"long":const Xt=Pt(B,"longTime"),Rt=Pt(B,"longDate");Q=xr(Cn(B,ke.Long),[Xt,Rt]);break;case"full":const yt=Pt(B,"fullTime"),wt=Pt(B,"fullDate");Q=xr(Cn(B,ke.Full),[yt,wt])}return Q&&(De[O][W]=Q),Q}function xr(B,W){return W&&(B=B.replace(/\{([^}]+)}/g,function(O,Q){return null!=W&&Q in W?W[Q]:O})),B}function Di(B,W,O="-",Q,re){let he="";(B<0||re&&B<=0)&&(re?B=1-B:(B=-B,he=O));let ve=String(B);for(;ve.length0||Qe>-O)&&(Qe+=O),B===Ae.Hours)0===Qe&&-12===O&&(Qe=12);else if(B===Ae.FractionalSeconds)return function nt(B,W){return Di(B,3).substr(0,W)}(Qe,W);const Xt=Ni(ve,ge.MinusSign);return Di(Qe,W,Xt,Q,re)}}function Vt(B,W,O=we.Format,Q=!1){return function(re,he){return function _t(B,W,O,Q,re,he){switch(O){case ze.Months:return function ht(B,W,O){const Q=(0,T.cg1)(B),he=Bi([Q[T.wAp.MonthsFormat],Q[T.wAp.MonthsStandalone]],W);return Bi(he,O)}(W,re,Q)[B.getMonth()];case ze.Days:return function tt(B,W,O){const Q=(0,T.cg1)(B),he=Bi([Q[T.wAp.DaysFormat],Q[T.wAp.DaysStandalone]],W);return Bi(he,O)}(W,re,Q)[B.getDay()];case ze.DayPeriods:const ve=B.getHours(),Qe=B.getMinutes();if(he){const Rt=function Xc(B){const W=(0,T.cg1)(B);return Ta(W),(W[T.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Zt(Q):[Zt(Q[0]),Zt(Q[1])])}(W),yt=function pt(B,W,O){const Q=(0,T.cg1)(B);Ta(Q);const he=Bi([Q[T.wAp.ExtraData][0],Q[T.wAp.ExtraData][1]],W)||[];return Bi(he,O)||[]}(W,re,Q),wt=Rt.findIndex(ki=>{if(Array.isArray(ki)){const[di,mi]=ki,sa=ve>=di.hours&&Qe>=di.minutes,ur=ve0?Math.floor(re/60):Math.ceil(re/60);switch(B){case Ve.Short:return(re>=0?"+":"")+Di(ve,2,he)+Di(Math.abs(re%60),2,he);case Ve.ShortGMT:return"GMT"+(re>=0?"+":"")+Di(ve,1,he);case Ve.Long:return"GMT"+(re>=0?"+":"")+Di(ve,2,he)+":"+Di(Math.abs(re%60),2,he);case Ve.Extended:return 0===Q?"Z":(re>=0?"+":"")+Di(ve,2,he)+":"+Di(Math.abs(re%60),2,he);default:throw new Error(`Unknown zone width "${B}"`)}}}function xa(B){return Ei(B.getFullYear(),B.getMonth(),B.getDate()+(4-B.getDay()))}function Xr(B,W=!1){return function(O,Q){let re;if(W){const he=new Date(O.getFullYear(),O.getMonth(),1).getDay()-1,ve=O.getDate();re=1+Math.floor((ve+he)/7)}else{const he=xa(O),ve=function Nl(B){const W=Ei(B,0,1).getDay();return Ei(B,0,1+(W<=4?4:11)-W)}(he.getFullYear()),Qe=he.getTime()-ve.getTime();re=1+Math.round(Qe/6048e5)}return Di(re,B,Ni(Q,ge.MinusSign))}}function ea(B,W=!1){return function(O,Q){return Di(xa(O).getFullYear(),B,Ni(Q,ge.MinusSign),W)}}const Bn={};function as(B,W){B=B.replace(/:/g,"");const O=Date.parse("Jan 01, 1970 00:00:00 "+B)/6e4;return isNaN(O)?W:O}function Zi(B){return B instanceof Date&&!isNaN(B.valueOf())}class ti{}let Mr=(()=>{class B extends ti{constructor(O){super(),this.locale=O}getPluralCategory(O,Q){switch(Kr(Q||this.locale)(O)){case _e.Zero:return"zero";case _e.One:return"one";case _e.Two:return"two";case _e.Few:return"few";case _e.Many:return"many";default:return"other"}}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(T.soG))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})();function Po(B,W){W=encodeURIComponent(W);for(const O of B.split(";")){const Q=O.indexOf("="),[re,he]=-1==Q?[O,""]:[O.slice(0,Q),O.slice(Q+1)];if(re.trim()===W)return decodeURIComponent(he)}return null}let Ma=(()=>{class B{constructor(O,Q,re,he){this._iterableDiffers=O,this._keyValueDiffers=Q,this._ngEl=re,this._renderer=he,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(O){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof O?O.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(O){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof O?O.split(/\s+/):O,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 O=this._iterableDiffer.diff(this._rawClass);O&&this._applyIterableChanges(O)}else if(this._keyValueDiffer){const O=this._keyValueDiffer.diff(this._rawClass);O&&this._applyKeyValueChanges(O)}}_applyKeyValueChanges(O){O.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),O.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),O.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(O){O.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),O.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(O){O&&(Array.isArray(O)||O instanceof Set?O.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(O).forEach(Q=>this._toggleClass(Q,!!O[Q])))}_removeClasses(O){O&&(Array.isArray(O)||O instanceof Set?O.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(O).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(O,Q){(O=O.trim())&&O.split(/\s+/g).forEach(re=>{Q?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),B})();class ss{constructor(W,O,Q,re){this.$implicit=W,this.ngForOf=O,this.index=Q,this.count=re}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 tn=(()=>{class B{constructor(O,Q,re){this._viewContainer=O,this._template=Q,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(O){this._ngForOf=O,this._ngForOfDirty=!0}set ngForTrackBy(O){this._trackByFn=O}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(O){O&&(this._template=O)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const O=this._ngForOf;!this._differ&&O&&(this._differ=this._differs.find(O).create(this.ngForTrackBy))}if(this._differ){const O=this._differ.diff(this._ngForOf);O&&this._applyChanges(O)}}_applyChanges(O){const Q=this._viewContainer;O.forEachOperation((re,he,ve)=>{if(null==re.previousIndex)Q.createEmbeddedView(this._template,new ss(re.item,this._ngForOf,-1,-1),null===ve?void 0:ve);else if(null==ve)Q.remove(null===he?void 0:he);else if(null!==he){const Qe=Q.get(he);Q.move(Qe,ve),Sa(Qe,re)}});for(let re=0,he=Q.length;re{Sa(Q.get(re.currentIndex),re)})}static ngTemplateContextGuard(O,Q){return!0}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),B})();function Sa(B,W){B.context.$implicit=W.item}let Vn=(()=>{class B{constructor(O,Q){this._viewContainer=O,this._context=new ii,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){Ul("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){Ul("ngIfElse",O),this._elseTemplateRef=O,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(O,Q){return!0}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),B})();class ii{constructor(){this.$implicit=null,this.ngIf=null}}function Ul(B,W){if(W&&!W.createEmbeddedView)throw new Error(`${B} must be a TemplateRef, but received '${(0,T.AaK)(W)}'.`)}class Ea{constructor(W,O){this._viewContainerRef=W,this._templateRef=O,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(W){W&&!this._created?this.create():!W&&this._created&&this.destroy()}}let _n=(()=>{class B{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(O){this._ngSwitch=O,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(O){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(O)}_matchCase(O){const Q=O==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(O){if(this._defaultViews&&O!==this._defaultUsed){this._defaultUsed=O;for(let Q=0;Q{class B{constructor(O,Q,re){this.ngSwitch=re,re._addCase(),this._view=new Ea(O,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(_n,9))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),B})(),Ro=(()=>{class B{constructor(O,Q,re){re._addDefault(new Ea(O,Q))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(_n,9))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngSwitchDefault",""]]}),B})(),os=(()=>{class B{constructor(O,Q,re){this._ngEl=O,this._differs=Q,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(O){this._ngStyle=O,!this._differ&&O&&(this._differ=this._differs.find(O).create())}ngDoCheck(){if(this._differ){const O=this._differ.diff(this._ngStyle);O&&this._applyChanges(O)}}_setStyle(O,Q){const[re,he]=O.split(".");null!=(Q=null!=Q&&he?`${Q}${he}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,re,Q):this._renderer.removeStyle(this._ngEl.nativeElement,re)}_applyChanges(O){O.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),O.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),O.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),B})(),Sr=(()=>{class B{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(O){if(O.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&O.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[T.TTD]}),B})();function Qn(B,W){return new T.vHH(2100,"")}class xf{createSubscription(W,O){return W.subscribe({next:O,error:Q=>{throw Q}})}dispose(W){W.unsubscribe()}onDestroy(W){W.unsubscribe()}}class Mf{createSubscription(W,O){return W.then(O,Q=>{throw Q})}dispose(W){}onDestroy(W){}}const Sf=new Mf,Ef=new xf;let $u=(()=>{class B{constructor(O){this._ref=O,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(O){return this._obj?O!==this._obj?(this._dispose(),this.transform(O)):this._latestValue:(O&&this._subscribe(O),this._latestValue)}_subscribe(O){this._obj=O,this._strategy=this._selectStrategy(O),this._subscription=this._strategy.createSubscription(O,Q=>this._updateLatestValue(O,Q))}_selectStrategy(O){if((0,T.QGY)(O))return Sf;if((0,T.F4k)(O))return Ef;throw Qn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(O,Q){O===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.sBO,16))},B.\u0275pipe=T.Yjl({name:"async",type:B,pure:!1}),B})();const dn=new T.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ne=(()=>{class B{constructor(O,Q){this.locale=O,this.defaultTimezone=Q}transform(O,Q="mediumDate",re,he){var ve;if(null==O||""===O||O!=O)return null;try{return St(O,Q,he||this.locale,null!==(ve=null!=re?re:this.defaultTimezone)&&void 0!==ve?ve:void 0)}catch(Qe){throw Qn()}}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.soG,16),T.Y36(dn,24))},B.\u0275pipe=T.Yjl({name:"date",type:B,pure:!0}),B})(),jt=(()=>{class B{}return B.\u0275fac=function(O){return new(O||B)},B.\u0275mod=T.oAB({type:B}),B.\u0275inj=T.cJS({providers:[{provide:ti,useClass:Mr}]}),B})();const ls="browser";function xn(B){return B===ls}let ra=(()=>{class B{}return B.\u0275prov=(0,T.Yz7)({token:B,providedIn:"root",factory:()=>new aa((0,T.LFG)(L),window)}),B})();class aa{constructor(W,O){this.document=W,this.window=O,this.offset=()=>[0,0]}setOffset(W){this.offset=Array.isArray(W)?()=>W:W}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(W){this.supportsScrolling()&&this.window.scrollTo(W[0],W[1])}scrollToAnchor(W){if(!this.supportsScrolling())return;const O=function Ws(B,W){const O=B.getElementById(W)||B.getElementsByName(W)[0];if(O)return O;if("function"==typeof B.createTreeWalker&&B.body&&(B.body.createShadowRoot||B.body.attachShadow)){const Q=B.createTreeWalker(B.body,NodeFilter.SHOW_ELEMENT);let re=Q.currentNode;for(;re;){const he=re.shadowRoot;if(he){const ve=he.getElementById(W)||he.querySelector(`[name="${W}"]`);if(ve)return ve}re=Q.nextNode()}}return null}(this.document,W);O&&(this.scrollToElement(O),O.focus())}setHistoryScrollRestoration(W){if(this.supportScrollRestoration()){const O=this.window.history;O&&O.scrollRestoration&&(O.scrollRestoration=W)}}scrollToElement(W){const O=W.getBoundingClientRect(),Q=O.left+this.window.pageXOffset,re=O.top+this.window.pageYOffset,he=this.offset();this.window.scrollTo(Q-he[0],re-he[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const W=Gl(this.window.history)||Gl(Object.getPrototypeOf(this.window.history));return!(!W||!W.writable&&!W.set)}catch(W){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(W){return!1}}}function Gl(B){return Object.getOwnPropertyDescriptor(B,"scrollRestoration")}class fi{}},520:(z,G,x)=>{"use strict";x.d(G,{TP:()=>Gt,eN:()=>ge,JF:()=>Bi,qT:()=>Be,WM:()=>Y,LE:()=>me,Zn:()=>we});var T=x(9808),i=x(5e3),E=x(1086),M=x(2916),S=x(1406),P=x(2198),L=x(4850);class V{}class U{}class Y{constructor(le){this.normalizedNames=new Map,this.lazyUpdate=null,le?this.lazyInit="string"==typeof le?()=>{this.headers=new Map,le.split("\n").forEach(oe=>{const De=oe.indexOf(":");if(De>0){const Se=oe.slice(0,De),Ve=Se.toLowerCase(),Ae=oe.slice(De+1).trim();this.maybeSetNormalizedName(Se,Ve),this.headers.has(Ve)?this.headers.get(Ve).push(Ae):this.headers.set(Ve,[Ae])}})}:()=>{this.headers=new Map,Object.keys(le).forEach(oe=>{let De=le[oe];const Se=oe.toLowerCase();"string"==typeof De&&(De=[De]),De.length>0&&(this.headers.set(Se,De),this.maybeSetNormalizedName(oe,Se))})}:this.headers=new Map}has(le){return this.init(),this.headers.has(le.toLowerCase())}get(le){this.init();const oe=this.headers.get(le.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(le){return this.init(),this.headers.get(le.toLowerCase())||null}append(le,oe){return this.clone({name:le,value:oe,op:"a"})}set(le,oe){return this.clone({name:le,value:oe,op:"s"})}delete(le,oe){return this.clone({name:le,value:oe,op:"d"})}maybeSetNormalizedName(le,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,le)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(le=>this.applyUpdate(le)),this.lazyUpdate=null))}copyFrom(le){le.init(),Array.from(le.headers.keys()).forEach(oe=>{this.headers.set(oe,le.headers.get(oe)),this.normalizedNames.set(oe,le.normalizedNames.get(oe))})}clone(le){const oe=new Y;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([le]),oe}applyUpdate(le){const oe=le.name.toLowerCase();switch(le.op){case"a":case"s":let De=le.value;if("string"==typeof De&&(De=[De]),0===De.length)return;this.maybeSetNormalizedName(le.name,oe);const Se=("a"===le.op?this.headers.get(oe):void 0)||[];Se.push(...De),this.headers.set(oe,Se);break;case"d":const Ve=le.value;if(Ve){let Ae=this.headers.get(oe);if(!Ae)return;Ae=Ae.filter(ze=>-1===Ve.indexOf(ze)),0===Ae.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,Ae)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(le){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>le(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ${encodeKey(le){return ne(le)}encodeValue(le){return ne(le)}decodeKey(le){return decodeURIComponent(le)}decodeValue(le){return decodeURIComponent(le)}}const te=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(Te){return encodeURIComponent(Te).replace(te,(le,oe)=>{var De;return null!==(De=ce[oe])&&void 0!==De?De:le})}function de(Te){return`${Te}`}class me{constructor(le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=le.encoder||new $,le.fromString){if(le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X(Te,le){const oe=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(Se=>{const Ve=Se.indexOf("="),[Ae,ze]=-1==Ve?[le.decodeKey(Se),""]:[le.decodeKey(Se.slice(0,Ve)),le.decodeValue(Se.slice(Ve+1))],St=oe.get(Ae)||[];St.push(ze),oe.set(Ae,St)}),oe}(le.fromString,this.encoder)}else le.fromObject?(this.map=new Map,Object.keys(le.fromObject).forEach(oe=>{const De=le.fromObject[oe];this.map.set(oe,Array.isArray(De)?De:[De])})):this.map=null}has(le){return this.init(),this.map.has(le)}get(le){this.init();const oe=this.map.get(le);return oe?oe[0]:null}getAll(le){return this.init(),this.map.get(le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(le,oe){return this.clone({param:le,value:oe,op:"a"})}appendAll(le){const oe=[];return Object.keys(le).forEach(De=>{const Se=le[De];Array.isArray(Se)?Se.forEach(Ve=>{oe.push({param:De,value:Ve,op:"a"})}):oe.push({param:De,value:Se,op:"a"})}),this.clone(oe)}set(le,oe){return this.clone({param:le,value:oe,op:"s"})}delete(le,oe){return this.clone({param:le,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(le=>{const oe=this.encoder.encodeKey(le);return this.map.get(le).map(De=>oe+"="+this.encoder.encodeValue(De)).join("&")}).filter(le=>""!==le).join("&")}clone(le){const oe=new me({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(le),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(le=>this.map.set(le,this.cloneFrom.map.get(le))),this.updates.forEach(le=>{switch(le.op){case"a":case"s":const oe=("a"===le.op?this.map.get(le.param):void 0)||[];oe.push(de(le.value)),this.map.set(le.param,oe);break;case"d":if(void 0===le.value){this.map.delete(le.param);break}{let De=this.map.get(le.param)||[];const Se=De.indexOf(de(le.value));-1!==Se&&De.splice(Se,1),De.length>0?this.map.set(le.param,De):this.map.delete(le.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(le,oe){return this.map.set(le,oe),this}get(le){return this.map.has(le)||this.map.set(le,le.defaultValue()),this.map.get(le)}delete(le){return this.map.delete(le),this}has(le){return this.map.has(le)}keys(){return this.map.keys()}}function It(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function kt(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Ke(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class xt{constructor(le,oe,De,Se){let Ve;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=le.toUpperCase(),function Ze(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Se?(this.body=void 0!==De?De:null,Ve=Se):Ve=De,Ve&&(this.reportProgress=!!Ve.reportProgress,this.withCredentials=!!Ve.withCredentials,Ve.responseType&&(this.responseType=Ve.responseType),Ve.headers&&(this.headers=Ve.headers),Ve.context&&(this.context=Ve.context),Ve.params&&(this.params=Ve.params)),this.headers||(this.headers=new Y),this.context||(this.context=new Be),this.params){const Ae=this.params.toString();if(0===Ae.length)this.urlWithParams=oe;else{const ze=oe.indexOf("?");this.urlWithParams=oe+(-1===ze?"?":zeDi.set(nt,le.setHeaders[nt]),Ei)),le.setParams&&(Pt=Object.keys(le.setParams).reduce((Di,nt)=>Di.set(nt,le.setParams[nt]),Pt)),new xt(De,Se,Ae,{params:Pt,headers:Ei,context:xr,reportProgress:St,responseType:Ve,withCredentials:ze})}}var mt=(()=>((mt=mt||{})[mt.Sent=0]="Sent",mt[mt.UploadProgress=1]="UploadProgress",mt[mt.ResponseHeader=2]="ResponseHeader",mt[mt.DownloadProgress=3]="DownloadProgress",mt[mt.Response=4]="Response",mt[mt.User=5]="User",mt))();class fe{constructor(le,oe=200,De="OK"){this.headers=le.headers||new Y,this.status=void 0!==le.status?le.status:oe,this.statusText=le.statusText||De,this.url=le.url||null,this.ok=this.status>=200&&this.status<300}}class _e extends fe{constructor(le={}){super(le),this.type=mt.ResponseHeader}clone(le={}){return new _e({headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class we extends fe{constructor(le={}){super(le),this.type=mt.Response,this.body=void 0!==le.body?le.body:null}clone(le={}){return new we({body:void 0!==le.body?le.body:this.body,headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class ye extends fe{constructor(le){super(le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${le.url||"(unknown url)"}`:`Http failure response for ${le.url||"(unknown url)"}: ${le.status} ${le.statusText}`,this.error=le.error||null}}function ke(Te,le){return{body:le,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let ge=(()=>{class Te{constructor(oe){this.handler=oe}request(oe,De,Se={}){let Ve;if(oe instanceof xt)Ve=oe;else{let St,Ei;St=Se.headers instanceof Y?Se.headers:new Y(Se.headers),Se.params&&(Ei=Se.params instanceof me?Se.params:new me({fromObject:Se.params})),Ve=new xt(oe,De,void 0!==Se.body?Se.body:null,{headers:St,context:Se.context,params:Ei,reportProgress:Se.reportProgress,responseType:Se.responseType||"json",withCredentials:Se.withCredentials})}const Ae=(0,E.of)(Ve).pipe((0,S.b)(St=>this.handler.handle(St)));if(oe instanceof xt||"events"===Se.observe)return Ae;const ze=Ae.pipe((0,P.h)(St=>St instanceof we));switch(Se.observe||"body"){case"body":switch(Ve.responseType){case"arraybuffer":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&!(St.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return St.body}));case"blob":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&!(St.body instanceof Blob))throw new Error("Response is not a Blob.");return St.body}));case"text":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&"string"!=typeof St.body)throw new Error("Response is not a string.");return St.body}));default:return ze.pipe((0,L.U)(St=>St.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Se.observe}}`)}}delete(oe,De={}){return this.request("DELETE",oe,De)}get(oe,De={}){return this.request("GET",oe,De)}head(oe,De={}){return this.request("HEAD",oe,De)}jsonp(oe,De){return this.request("JSONP",oe,{params:(new me).append(De,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,De={}){return this.request("OPTIONS",oe,De)}patch(oe,De,Se={}){return this.request("PATCH",oe,ke(Se,De))}post(oe,De,Se={}){return this.request("POST",oe,ke(Se,De))}put(oe,De,Se={}){return this.request("PUT",oe,ke(Se,De))}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(V))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class Mt{constructor(le,oe){this.next=le,this.interceptor=oe}handle(le){return this.interceptor.intercept(le,this.next)}}const Gt=new i.OlP("HTTP_INTERCEPTORS");let yi=(()=>{class Te{intercept(oe,De){return De.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Cn=/^\)\]\}',?\n/;let Qr=(()=>{class Te{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(De=>{const Se=this.xhrFactory.build();if(Se.open(oe.method,oe.urlWithParams),oe.withCredentials&&(Se.withCredentials=!0),oe.headers.forEach((nt,qe)=>Se.setRequestHeader(nt,qe.join(","))),oe.headers.has("Accept")||Se.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const nt=oe.detectContentTypeHeader();null!==nt&&Se.setRequestHeader("Content-Type",nt)}if(oe.responseType){const nt=oe.responseType.toLowerCase();Se.responseType="json"!==nt?nt:"text"}const Ve=oe.serializeBody();let Ae=null;const ze=()=>{if(null!==Ae)return Ae;const nt=Se.statusText||"OK",qe=new Y(Se.getAllResponseHeaders()),An=function Ni(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(Se)||oe.url;return Ae=new _e({headers:qe,status:Se.status,statusText:nt,url:An}),Ae},St=()=>{let{headers:nt,status:qe,statusText:An,url:Vt}=ze(),_t=null;204!==qe&&(_t=void 0===Se.response?Se.responseText:Se.response),0===qe&&(qe=_t?200:0);let $n=qe>=200&&qe<300;if("json"===oe.responseType&&"string"==typeof _t){const On=_t;_t=_t.replace(Cn,"");try{_t=""!==_t?JSON.parse(_t):null}catch(vn){_t=On,$n&&($n=!1,_t={error:vn,text:_t})}}$n?(De.next(new we({body:_t,headers:nt,status:qe,statusText:An,url:Vt||void 0})),De.complete()):De.error(new ye({error:_t,headers:nt,status:qe,statusText:An,url:Vt||void 0}))},Ei=nt=>{const{url:qe}=ze(),An=new ye({error:nt,status:Se.status||0,statusText:Se.statusText||"Unknown Error",url:qe||void 0});De.error(An)};let Pt=!1;const xr=nt=>{Pt||(De.next(ze()),Pt=!0);let qe={type:mt.DownloadProgress,loaded:nt.loaded};nt.lengthComputable&&(qe.total=nt.total),"text"===oe.responseType&&!!Se.responseText&&(qe.partialText=Se.responseText),De.next(qe)},Di=nt=>{let qe={type:mt.UploadProgress,loaded:nt.loaded};nt.lengthComputable&&(qe.total=nt.total),De.next(qe)};return Se.addEventListener("load",St),Se.addEventListener("error",Ei),Se.addEventListener("timeout",Ei),Se.addEventListener("abort",Ei),oe.reportProgress&&(Se.addEventListener("progress",xr),null!==Ve&&Se.upload&&Se.upload.addEventListener("progress",Di)),Se.send(Ve),De.next({type:mt.Sent}),()=>{Se.removeEventListener("error",Ei),Se.removeEventListener("abort",Ei),Se.removeEventListener("load",St),Se.removeEventListener("timeout",Ei),oe.reportProgress&&(Se.removeEventListener("progress",xr),null!==Ve&&Se.upload&&Se.upload.removeEventListener("progress",Di)),Se.readyState!==Se.DONE&&Se.abort()}})}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(T.JF))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Fs=new i.OlP("XSRF_COOKIE_NAME"),Ns=new i.OlP("XSRF_HEADER_NAME");class Ys{}let va=(()=>{class Te{constructor(oe,De,Se){this.doc=oe,this.platform=De,this.cookieName=Se,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(T.K0),i.LFG(i.Lbi),i.LFG(Fs))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Kr=(()=>{class Te{constructor(oe,De){this.tokenService=oe,this.headerName=De}intercept(oe,De){const Se=oe.url.toLowerCase();if("GET"===oe.method||"HEAD"===oe.method||Se.startsWith("http://")||Se.startsWith("https://"))return De.handle(oe);const Ve=this.tokenService.getToken();return null!==Ve&&!oe.headers.has(this.headerName)&&(oe=oe.clone({headers:oe.headers.set(this.headerName,Ve)})),De.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(Ys),i.LFG(Ns))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Ta=(()=>{class Te{constructor(oe,De){this.backend=oe,this.injector=De,this.chain=null}handle(oe){if(null===this.chain){const De=this.injector.get(Gt,[]);this.chain=De.reduceRight((Se,Ve)=>new Mt(Se,Ve),this.backend)}return this.chain.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(U),i.LFG(i.zs3))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ko=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:Kr,useClass:yi}]}}static withOptions(oe={}){return{ngModule:Te,providers:[oe.cookieName?{provide:Fs,useValue:oe.cookieName}:[],oe.headerName?{provide:Ns,useValue:oe.headerName}:[]]}}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[Kr,{provide:Gt,useExisting:Kr,multi:!0},{provide:Ys,useClass:va},{provide:Fs,useValue:"XSRF-TOKEN"},{provide:Ns,useValue:"X-XSRF-TOKEN"}]}),Te})(),Bi=(()=>{class Te{}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[ge,{provide:V,useClass:Ta},Qr,{provide:U,useExisting:Qr}],imports:[[ko.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Te})()},5e3:(z,G,x)=>{"use strict";x.d(G,{deG:()=>so,tb:()=>l_,AFp:()=>Ml,ip1:()=>o_,CZH:()=>xl,hGG:()=>Cx,z2F:()=>Iu,sBO:()=>ax,Sil:()=>Rs,_Vd:()=>Cu,EJc:()=>d_,SBq:()=>Au,qLn:()=>ja,vpe:()=>ga,tBr:()=>uo,XFs:()=>pt,OlP:()=>si,zs3:()=>jr,ZZ4:()=>af,aQg:()=>sf,soG:()=>Kp,YKP:()=>bw,h0i:()=>Al,PXZ:()=>ex,R0b:()=>Ar,FiY:()=>Ba,Lbi:()=>GT,g9A:()=>jw,n_E:()=>Su,Qsj:()=>vT,FYo:()=>cw,JOm:()=>Ms,q3G:()=>Fi,tp0:()=>ho,Rgc:()=>Rc,dDg:()=>Ww,GfV:()=>uw,s_b:()=>Du,ifc:()=>Ve,eFA:()=>Jw,G48:()=>tC,Gpc:()=>$,f3M:()=>Wf,_c5:()=>dC,VLi:()=>KT,c2e:()=>c_,zSh:()=>qd,wAp:()=>ot,vHH:()=>ne,EiD:()=>Q_,mCW:()=>Th,qzn:()=>lc,JVY:()=>ZC,pB0:()=>QC,eBb:()=>JC,L6k:()=>$C,LAX:()=>G_,cg1:()=>gp,kL8:()=>hu,yhl:()=>Dd,dqk:()=>Pt,sIi:()=>bc,CqO:()=>_y,QGY:()=>au,F4k:()=>su,RDi:()=>Gl,AaK:()=>V,z3N:()=>Ts,qOj:()=>ct,TTD:()=>Kn,_Bn:()=>sw,xp6:()=>TA,uIk:()=>Jd,Tol:()=>Dy,Gre:()=>Nv,ekj:()=>dp,Suo:()=>Hw,Xpm:()=>xa,lG2:()=>Re,Yz7:()=>ri,cJS:()=>Cn,oAB:()=>as,Yjl:()=>oi,Y36:()=>Co,_UZ:()=>my,GkF:()=>gy,BQk:()=>nu,ynx:()=>eg,qZA:()=>Xm,TgZ:()=>Ac,EpF:()=>ru,n5z:()=>tc,Ikx:()=>mp,LFG:()=>Ji,$8M:()=>_d,$Z:()=>fy,NdJ:()=>ip,CRH:()=>IT,kcU:()=>Fo,O4$:()=>th,oxw:()=>by,ALo:()=>ks,lcZ:()=>Ii,xi3:()=>Fg,Dn7:()=>Ng,Hsn:()=>rp,F$t:()=>ng,Q6J:()=>Ds,s9C:()=>ap,DdM:()=>Li,VKq:()=>DT,WLB:()=>Ep,iGM:()=>Dw,MAs:()=>Xd,Jf7:()=>hA,CHM:()=>Wl,oJD:()=>am,LSH:()=>sm,Udp:()=>cp,WFA:()=>tg,d8E:()=>yg,YNc:()=>Kd,W1O:()=>kw,_uU:()=>ky,Oqu:()=>fg,hij:()=>hp,AsE:()=>mg,xDo:()=>Si,Gf:()=>Vp});var T=x(8929),i=x(2654),E=x(2916),M=x(6787),S=x(2474);function P(p){for(let f in p)if(p[f]===P)return f;throw Error("Could not find renamed property on target object.")}function L(p,f){for(const g in f)f.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=f[g])}function V(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(V).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const f=p.toString();if(null==f)return""+f;const g=f.indexOf("\n");return-1===g?f:f.substring(0,g)}function U(p,f){return null==p||""===p?null===f?"":f:null==f||""===f?p:p+" "+f}const Y=P({__forward_ref__:P});function $(p){return p.__forward_ref__=$,p.toString=function(){return V(this())},p}function X(p){return te(p)?p():p}function te(p){return"function"==typeof p&&p.hasOwnProperty(Y)&&p.__forward_ref__===$}class ne extends Error{constructor(f,g){super(function de(p,f){return`NG0${Math.abs(p)}${f?": "+f:""}`}(f,g)),this.code=f}}function me(p){return"string"==typeof p?p:null==p?"":String(p)}function Ie(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():me(p)}function kt(p,f){const g=f?` in ${f}`:"";throw new ne(-201,`No provider for ${Ie(p)} found${g}`)}function tt(p,f){null==p&&function ht(p,f,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${f} <=Actual]`))}(f,p,null,"!=")}function ri(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Cn(p){return{providers:p.providers||[],imports:p.imports||[]}}function Ni(p){return Qr(p,va)||Qr(p,Ta)}function Qr(p,f){return p.hasOwnProperty(f)?p[f]:null}function Ys(p){return p&&(p.hasOwnProperty(Kr)||p.hasOwnProperty(Xc))?p[Kr]:null}const va=P({\u0275prov:P}),Kr=P({\u0275inj:P}),Ta=P({ngInjectableDef:P}),Xc=P({ngInjectorDef:P});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 ko;function Zt(p){const f=ko;return ko=p,f}function ln(p,f,g){const _=Ni(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&pt.Optional?null:void 0!==f?f:void kt(V(p),"Injector")}function le(p){return{toString:p}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Ve=(()=>{return(p=Ve||(Ve={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",Ve;var p})();const Ae="undefined"!=typeof globalThis&&globalThis,ze="undefined"!=typeof window&&window,St="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Pt=Ae||"undefined"!=typeof global&&global||ze||St,nt={},qe=[],An=P({\u0275cmp:P}),Vt=P({\u0275dir:P}),_t=P({\u0275pipe:P}),$n=P({\u0275mod:P}),On=P({\u0275fac:P}),vn=P({__NG_ELEMENT_ID__:P});let Nl=0;function xa(p){return le(()=>{const g={},_={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:p.selectors||qe,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||Ve.Emulated,id:"c",styles:p.styles||qe,_:null,setInput:null,schemas:p.schemas||null,tView:null},y=p.directives,v=p.features,D=p.pipes;return _.id+=Nl++,_.inputs=w(p.inputs,g),_.outputs=w(p.outputs),v&&v.forEach(k=>k(_)),_.directiveDefs=y?()=>("function"==typeof y?y():y).map(ea):null,_.pipeDefs=D?()=>("function"==typeof D?D():D).map(Bn):null,_})}function ea(p){return Zi(p)||function Ge(p){return p[Vt]||null}(p)}function Bn(p){return function Jn(p){return p[_t]||null}(p)}const rs={};function as(p){return le(()=>{const f={type:p.type,bootstrap:p.bootstrap||qe,declarations:p.declarations||qe,imports:p.imports||qe,exports:p.exports||qe,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null};return null!=p.id&&(rs[p.id]=p.type),f})}function w(p,f){if(null==p)return nt;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,f&&(f[y]=v)}return g}const Re=xa;function oi(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,onDestroy:p.type.prototype.ngOnDestroy||null}}function Zi(p){return p[An]||null}function gt(p,f){const g=p[$n]||null;if(!g&&!0===f)throw new Error(`Type ${V(p)} does not have '\u0275mod' property.`);return g}function _n(p){return Array.isArray(p)&&"object"==typeof p[1]}function jn(p){return Array.isArray(p)&&!0===p[1]}function Ro(p){return 0!=(8&p.flags)}function Da(p){return 2==(2&p.flags)}function ia(p){return 1==(1&p.flags)}function Fn(p){return null!==p.template}function os(p){return 0!=(512&p[2])}function Tn(p,f){return p.hasOwnProperty(On)?p[On]:null}class dr{constructor(f,g,_){this.previousValue=f,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Kn(){return Gs}function Gs(p){return p.type.prototype.ngOnChanges&&(p.setInput=nn),dt}function dt(){const p=ls(this),f=null==p?void 0:p.current;if(f){const g=p.previous;if(g===nt)p.previous=f;else for(let _ in f)g[_]=f[_];p.current=null,this.ngOnChanges(f)}}function nn(p,f,g,_){const y=ls(p)||function Wt(p,f){return p[jt]=f}(p,{previous:nt,current:null}),v=y.current||(y.current={}),D=y.previous,k=this.declaredInputs[g],R=D[k];v[k]=new dr(R&&R.currentValue,f,D===nt),p[_]=f}Kn.ngInherit=!0;const jt="__ngSimpleChanges__";function ls(p){return p[jt]||null}let aa;function Gl(p){aa=p}function Ws(){return void 0!==aa?aa:"undefined"!=typeof document?document:void 0}function fi(p){return!!p.listen}const B={createRenderer:(p,f)=>Ws()};function O(p){for(;Array.isArray(p);)p=p[0];return p}function he(p,f){return O(f[p])}function ve(p,f){return O(f[p.index])}function Xt(p,f){return p.data[f]}function Rt(p,f){return p[f]}function yt(p,f){const g=f[p];return _n(g)?g:g[0]}function wt(p){return 4==(4&p[2])}function ki(p){return 128==(128&p[2])}function mi(p,f){return null==f?null:p[f]}function sa(p){p[18]=0}function ur(p,f){p[5]+=f;let g=p,_=p[3];for(;null!==_&&(1===f&&1===g[5]||-1===f&&0===g[5]);)_[5]+=f,g=_,_=_[3]}const rt={lFrame:ka(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ku(){return rt.bindingsEnabled}function Me(){return rt.lFrame.lView}function Ye(){return rt.lFrame.tView}function Wl(p){return rt.lFrame.contextLView=p,p[8]}function gi(){let p=id();for(;null!==p&&64===p.type;)p=p.parent;return p}function id(){return rt.lFrame.currentTNode}function Dr(p,f){const g=rt.lFrame;g.currentTNode=p,g.isParent=f}function Zl(){return rt.lFrame.isParent}function nd(){rt.lFrame.isParent=!1}function Oo(){return rt.isInCheckNoChangesMode}function Bo(p){rt.isInCheckNoChangesMode=p}function bn(){const p=rt.lFrame;let f=p.bindingRootIndex;return-1===f&&(f=p.bindingRootIndex=p.tView.bindingStartIndex),f}function ui(){return rt.lFrame.bindingIndex}function Js(){return rt.lFrame.bindingIndex++}function Un(p){const f=rt.lFrame,g=f.bindingIndex;return f.bindingIndex=f.bindingIndex+p,g}function kf(p,f){const g=rt.lFrame;g.bindingIndex=g.bindingRootIndex=p,Qs(f)}function Qs(p){rt.lFrame.currentDirectiveIndex=p}function Ks(p){const f=rt.lFrame.currentDirectiveIndex;return-1===f?null:p[f]}function ad(){return rt.lFrame.currentQueryIndex}function us(p){rt.lFrame.currentQueryIndex=p}function hs(p){const f=p[1];return 2===f.type?f.declTNode:1===f.type?p[6]:null}function Lt(p,f,g){if(g&pt.SkipSelf){let y=f,v=p;for(;!(y=y.parent,null!==y||g&pt.Host||(y=hs(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;f=y,p=v}const _=rt.lFrame=$l();return _.currentTNode=f,_.lView=p,!0}function kr(p){const f=$l(),g=p[1];rt.lFrame=f,f.currentTNode=g.firstChild,f.lView=p,f.tView=g,f.contextLView=p,f.bindingIndex=g.bindingStartIndex,f.inI18n=!1}function $l(){const p=rt.lFrame,f=null===p?null:p.child;return null===f?ka(p):f}function ka(p){const f={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:p,child:null,inI18n:!1};return null!==p&&(p.child=f),f}function eh(){const p=rt.lFrame;return rt.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const sd=eh;function jo(){const p=eh();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Ui(){return rt.lFrame.selectedIndex}function oa(p){rt.lFrame.selectedIndex=p}function hi(){const p=rt.lFrame;return Xt(p.tView,p.selectedIndex)}function th(){rt.lFrame.currentNamespace="svg"}function Fo(){!function ih(){rt.lFrame.currentNamespace=null}()}function No(p,f){for(let g=f.directiveStart,_=f.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:k,ngAfterViewInit:R,ngAfterViewChecked:N,ngOnDestroy:q}=v;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),N&&((p.viewHooks||(p.viewHooks=[])).push(g,N),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,N)),null!=q&&(p.destroyHooks||(p.destroyHooks=[])).push(g,q)}}function Kl(p,f,g){nh(p,f,3,g)}function Pa(p,f,g,_){(3&p[2])===g&&nh(p,f,g,_)}function Xl(p,f){let g=p[2];(3&g)===f&&(g&=2047,g+=1,p[2]=g)}function nh(p,f,g,_){const v=null!=_?_:-1,D=f.length-1;let k=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else f[R]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===f){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class Yo{constructor(f,g,_){this.factory=f,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function yn(p,f,g){const _=fi(p);let y=0;for(;yf){D=v-1;break}}}for(;v>16}(p),_=f;for(;g>0;)_=_[15],g--;return _}let hd=!0;function La(p){const f=hd;return hd=p,f}let Uo=0;function Ia(p,f){const g=ca(p,f);if(-1!==g)return g;const _=f[1];_.firstCreatePass&&(p.injectorIndex=f.length,bs(_.data,p),bs(f,null),bs(_.blueprint,null));const y=ys(p,f),v=p.injectorIndex;if(gs(y)){const D=_s(y),k=Ra(y,f),R=k[1].data;for(let N=0;N<8;N++)f[v+N]=k[D+N]|R[D+N]}return f[v+8]=y,v}function bs(p,f){p.push(0,0,0,0,0,0,0,0,f)}function ca(p,f){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===f[p.injectorIndex+8]?-1:p.injectorIndex}function ys(p,f){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=f;for(;null!==y;){const v=y[1],D=v.type;if(_=2===D?v.declTNode:1===D?y[6]:null,null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function ws(p,f,g){!function eo(p,f,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(vn)&&(_=g[vn]),null==_&&(_=g[vn]=Uo++);const y=255&_;f.data[p+(y>>5)]|=1<=0?255&f:If:f}(g);if("function"==typeof v){if(!Lt(f,p,_))return _&pt.Host?pd(y,g,_):fd(f,g,_,y);try{const D=v(_);if(null!=D||_&pt.Optional)return D;kt(g)}finally{sd()}}else if("number"==typeof v){let D=null,k=ca(p,f),R=-1,N=_&pt.Host?f[16][6]:null;for((-1===k||_&pt.SkipSelf)&&(R=-1===k?ys(p,f):f[k+8],-1!==R&&dh(_,!1)?(D=f[1],k=_s(R),f=Ra(R,f)):k=-1);-1!==k;){const q=f[1];if(ch(v,k,q.data)){const ee=gd(k,f,g,D,_,N);if(ee!==zo)return ee}R=f[k+8],-1!==R&&dh(_,f[1].data[k+8]===N)&&ch(v,k,f)?(D=q,k=_s(R),f=Ra(R,f)):k=-1}}}return fd(f,g,_,y)}const zo={};function If(){return new no(gi(),Me())}function gd(p,f,g,_,y,v){const D=f[1],k=D.data[p+8],q=ec(k,D,g,null==_?Da(k)&&hd:_!=D&&0!=(3&k.type),y&pt.Host&&v===k);return null!==q?io(f,D,q,k):zo}function ec(p,f,g,_,y){const v=p.providerIndexes,D=f.data,k=1048575&v,R=p.directiveStart,q=v>>20,se=y?k+q:p.directiveEnd;for(let ue=_?k:k+q;ue=R&&Ce.type===g)return ue}if(y){const ue=D[R];if(ue&&Fn(ue)&&ue.type===g)return R}return null}function io(p,f,g,_){let y=p[g];const v=f.data;if(function rh(p){return p instanceof Yo}(y)){const D=y;D.resolving&&function Be(p,f){const g=f?`. Dependency path: ${f.join(" > ")} > ${p}`:"";throw new ne(-200,`Circular dependency in DI detected for ${p}${g}`)}(Ie(v[g]));const k=La(D.canSeeViewProviders);D.resolving=!0;const R=D.injectImpl?Zt(D.injectImpl):null;Lt(p,_,pt.Default);try{y=p[g]=D.factory(void 0,v,p,_),f.firstCreatePass&&g>=_.directiveStart&&function ps(p,f,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=f.type.prototype;if(_){const D=Gs(f);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],f)}finally{null!==R&&Zt(R),La(k),D.resolving=!1,sd()}}return y}function ch(p,f,g){return!!(g[f+(p>>5)]&1<{const f=p.prototype.constructor,g=f[On]||Pr(f),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[On]||Pr(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function Pr(p){return te(p)?()=>{const f=Pr(X(p));return f&&f()}:Tn(p)}function _d(p){return function to(p,f){if("class"===f)return p.classes;if("style"===f)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(ld(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===f)return g[y+1];y+=2}}}return null}(gi(),p)}const ro="__parameters__";function Rr(p,f,g){return le(()=>{const _=function bd(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(f);function y(...v){if(this instanceof y)return _.apply(this,v),this;const D=new y(...v);return k.annotation=D,k;function k(R,N,q){const ee=R.hasOwnProperty(ro)?R[ro]:Object.defineProperty(R,ro,{value:[]})[ro];for(;ee.length<=q;)ee.push(null);return(ee[q]=ee[q]||[]).push(D),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class si{constructor(f,g){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=ri({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const so=new si("AnalyzeForEntryComponents");function tr(p,f){void 0===f&&(f=p);for(let g=0;gArray.isArray(g)?fr(g,f):f(g))}function qo(p,f,g){f>=p.length?p.push(g):p.splice(f,0,g)}function Go(p,f){return f>=p.length-1?p.pop():p.splice(f,1)[0]}function lo(p,f){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function nc(p,f,g,_){let y=p.length;if(y==f)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>f;)p[y]=p[y-2],y--;p[f]=g,p[f+1]=_}}(p,_,f,g)),_}function Cd(p,f){const g=Cs(p,f);if(g>=0)return p[1|g]}function Cs(p,f){return function Wo(p,f,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),D=p[v<f?y=v:_=v+1}return~(y<({token:p})),-1),Ba=$o(Rr("Optional"),8),ho=$o(Rr("SkipSelf"),4);let Ot,ae;function H(p){var f;return(null===(f=function C(){if(void 0===Ot&&(Ot=null,Pt.trustedTypes))try{Ot=Pt.trustedTypes.createPolicy("angular",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return Ot}())||void 0===f?void 0:f.createHTML(p))||p}function et(p){var f;return(null===(f=function be(){if(void 0===ae&&(ae=null,Pt.trustedTypes))try{ae=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return ae}())||void 0===f?void 0:f.createHTML(p))||p}class Ci{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Br extends Ci{getTypeName(){return"HTML"}}class Vr extends Ci{getTypeName(){return"Style"}}class mM extends Ci{getTypeName(){return"Script"}}class Qo extends Ci{getTypeName(){return"URL"}}class q_ extends Ci{getTypeName(){return"ResourceURL"}}function Ts(p){return p instanceof Ci?p.changingThisBreaksApplicationSecurity:p}function lc(p,f){const g=Dd(p);if(null!=g&&g!==f){if("ResourceURL"===g&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===f}function Dd(p){return p instanceof Ci&&p.getTypeName()||null}function ZC(p){return new Br(p)}function $C(p){return new Vr(p)}function JC(p){return new mM(p)}function G_(p){return new Qo(p)}function QC(p){return new q_(p)}class KC{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const g=(new window.DOMParser).parseFromString(H(f),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(f):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class Kf{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(f){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=H(f),g;const _=this.inertDocument.createElement("body");return _.innerHTML=H(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(f){const g=f.attributes;for(let y=g.length-1;0Th(f.trim())).join(", ")),this.buf.push(" ",D,'="',J_(R),'"')}var p;return this.buf.push(">"),!0}endElement(f){const g=f.nodeName.toLowerCase();tm.hasOwnProperty(g)&&!Xf.hasOwnProperty(g)&&(this.buf.push(""))}chars(f){this.buf.push(J_(f))}checkClobberedElement(f,g){if(g&&(f.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return g}}const aA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nm=/([^\#-~ |!])/g;function J_(p){return p.replace(/&/g,"&").replace(aA,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(nm,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let kd;function Q_(p,f){let g=null;try{kd=kd||function W_(p){const f=new Kf(p);return function XC(){try{return!!(new window.DOMParser).parseFromString(H(""),"text/html")}catch(p){return!1}}()?new KC(f):f}(p);let _=f?String(f):"";g=kd.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=kd.getInertBodyElement(_)}while(_!==v);return H((new im).sanitizeChildren(rm(g)||g))}finally{if(g){const _=rm(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function rm(p){return"content"in p&&function xh(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var Fi=(()=>((Fi=Fi||{})[Fi.NONE=0]="NONE",Fi[Fi.HTML=1]="HTML",Fi[Fi.STYLE=2]="STYLE",Fi[Fi.SCRIPT=3]="SCRIPT",Fi[Fi.URL=4]="URL",Fi[Fi.RESOURCE_URL=5]="RESOURCE_URL",Fi))();function am(p){const f=Ko();return f?et(f.sanitize(Fi.HTML,p)||""):lc(p,"HTML")?et(Ts(p)):Q_(Ws(),me(p))}function sm(p){const f=Ko();return f?f.sanitize(Fi.URL,p)||"":lc(p,"URL")?Ts(p):Th(me(p))}function Ko(){const p=Me();return p&&p[12]}const Je="__ngContext__";function En(p,f){p[Je]=f}function Rd(p){const f=function Pd(p){return p[Je]||null}(p);return f?Array.isArray(f)?f:f.lView:null}function Od(p){return p.ngOriginalError}function Eh(p,...f){p.error(...f)}class ja{constructor(){this._console=console}handleError(f){const g=this._findOriginalError(f),_=function oA(p){return p&&p.ngErrorLogger||Eh}(f);_(this._console,"ERROR",f),g&&_(this._console,"ORIGINAL ERROR",g)}_findOriginalError(f){let g=f&&Od(f);for(;g&&Od(g);)g=Od(g);return g||null}}const uA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function hA(p){return p.ownerDocument.defaultView}function Fa(p){return p instanceof Function?p():p}var Ms=(()=>((Ms=Ms||{})[Ms.Important=1]="Important",Ms[Ms.DashCase=2]="DashCase",Ms))();function ob(p,f){return undefined(p,f)}function mr(p){const f=p[3];return jn(f)?f[3]:f}function lb(p){return mA(p[13])}function cb(p){return mA(p[4])}function mA(p){for(;null!==p&&!jn(p);)p=p[4];return p}function Vd(p,f,g,_,y){if(null!=_){let v,D=!1;jn(_)?v=_:_n(_)&&(D=!0,_=_[0]);const k=O(_);0===p&&null!==g?null==y?kh(f,g,k):uc(f,g,k,y||null,!0):1===p&&null!==g?uc(f,g,k,y||null,!0):2===p?function Fd(p,f,g){const _=rn(p,f);_&&function DM(p,f,g,_){fi(p)?p.removeChild(f,g,_):f.removeChild(g)}(p,_,f,g)}(f,k,D):3===p&&f.destroyNode(k),null!=v&&function HM(p,f,g,_,y){const v=g[7];v!==O(g)&&Vd(f,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=Go(p,10+f);!function pm(p,f){gr(p,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);const D=v[19];null!==D&&D.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function il(p,f){if(!(256&f[2])){const g=f[11];fi(g)&&g.destroyNode&&gr(p,f,g,3,null,null),function SM(p){let f=p[13];if(!f)return ub(p[1],p);for(;f;){let g=null;if(_n(f))g=f[13];else{const _=f[10];_&&(g=_)}if(!g){for(;f&&!f[4]&&f!==p;)_n(f)&&ub(f[1],f),f=f[3];null===f&&(f=p),_n(f)&&ub(f[1],f),g=f&&f[4]}f=g}}(f)}}function ub(p,f){if(!(256&f[2])){f[2]&=-129,f[2]|=256,function bA(p,f){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=N]():_[y=-N].unsubscribe(),v+=2}else{const D=_[y=g[v+1]];g[v].call(D)}if(null!==_){for(let v=y+1;v<_.length;v++)_[v]();f[7]=null}}(p,f),1===f[1].type&&fi(f[11])&&f[11].destroy();const g=f[17];if(null!==g&&jn(f[3])){g!==f[3]&&Ya(g,f);const _=f[19];null!==_&&_.detachView(p)}}}function hb(p,f,g){return function pb(p,f,g){let _=f;for(;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===Ve.None||y===Ve.Emulated)return null}return ve(_,g)}(p,f.parent,g)}function uc(p,f,g,_,y){fi(p)?p.insertBefore(f,g,_,y):f.insertBefore(g,_,y)}function kh(p,f,g){fi(p)?p.appendChild(f,g):f.appendChild(g)}function fm(p,f,g,_,y){null!==_?uc(p,f,g,_,y):kh(p,f,g)}function rn(p,f){return fi(p)?p.parentNode(f):f.parentNode}function fb(p,f,g){return wA(p,f,g)}let wA=function mb(p,f,g){return 40&p.type?ve(p,g):null};function an(p,f,g,_){const y=hb(p,_,f),v=f[11],k=fb(_.parent||f[6],_,f);if(null!=y)if(Array.isArray(g))for(let R=0;Rv?"":y[ee+1].toLowerCase();const ue=8&_?se:null;if(ue&&-1!==_b(ue,N,0)||2&_&&N!==se){if(za(_))return!1;D=!0}}}}else{if(!D&&!za(_)&&!za(R))return!1;if(D&&za(R))continue;D=!1,_=R|1&_}}return za(_)||D}function za(p){return 0==(1&p)}function IM(p,f,g,_){if(null===f)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!za(D)&&(f+=Rh(v,y),y=""),_=D,v=v||!za(_);g++}return""!==y&&(f+=Rh(v,y)),f}const Et={};function TA(p){xA(Ye(),Me(),Ui()+p,Oo())}function xA(p,f,g,_){if(!_)if(3==(3&f[2])){const v=p.preOrderCheckHooks;null!==v&&Kl(f,v,g)}else{const v=p.preOrderHooks;null!==v&&Pa(f,v,0,g)}oa(g)}function gm(p,f){return p<<17|f<<2}function qa(p){return p>>17&32767}function yb(p){return 2|p}function mo(p){return(131068&p)>>2}function wb(p,f){return-131069&p|f<<2}function Cb(p){return 1|p}function BA(p,f){const g=p.contentQueries;if(null!==g)for(let _=0;_20&&xA(p,f,20,Oo()),g(_,y)}finally{oa(v)}}function jA(p,f,g){if(Ro(f)){const y=f.directiveEnd;for(let v=f.directiveStart;v0;){const g=p[--f];if("number"==typeof g&&g<0)return g}return 0})(k)!=R&&k.push(R),k.push(_,y,D)}}function vm(p,f){null!==p.hostBindings&&p.hostBindings(1,f)}function Tm(p,f){f.flags|=2,(p.components||(p.components=[])).push(f.index)}function Bb(p,f,g){if(g){if(f.exportAs)for(let _=0;_0&&Bh(g)}}function Bh(p){for(let _=lb(p);null!==_;_=cb(_))for(let y=10;y<_.length;y++){const v=_[y];if(1024&v[2]){const D=v[1];Ud(D,v,D.template,v[8])}else v[5]>0&&Bh(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&Bh(y)}}function JA(p,f){const g=yt(f,p),_=g[1];(function QA(p,f){for(let g=f.length;gPromise.resolve(null))();function Em(p){return p[7]||(p[7]=[])}function jh(p){return p.cleanup||(p.cleanup=[])}function zd(p,f,g){return(null===p||Fn(p))&&(g=function Q(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[f.index])),g[11]}function Dm(p,f){const g=p[9],_=g?g.get(ja,null):null;_&&_.handleError(f)}function zb(p,f,g,_,y){for(let v=0;vthis.processProvider(k,f,g)),fr([f],k=>this.processInjectorType(k,[],v)),this.records.set(Fh,gc(void 0,this));const D=this.records.get(qd);this.scope=null!=D?D.value:null,this.source=y||("object"==typeof f?null:V(f))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(f=>f.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(f,g=Lr,_=pt.Default){this.assertNotDestroyed();const y=Ir(this),v=Zt(void 0);try{if(!(_&pt.SkipSelf)){let k=this.records.get(f);if(void 0===k){const R=function Lm(p){return"function"==typeof p||"object"==typeof p&&p instanceof si}(f)&&Ni(f);k=R&&this.injectableDefInScope(R)?gc(Rm(f),mc):null,this.records.set(f,k)}if(null!=k)return this.hydrate(f,k)}return(_&pt.Self?dl():this.parent).get(f,g=_&pt.Optional&&g===Lr?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[ac]=D[ac]||[]).unshift(V(f)),y)throw D;return function U_(p,f,g,_){const y=p[ac];throw f[sc]&&y.unshift(f[sc]),p.message=function wh(p,f,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.substr(2):p;let y=V(f);if(Array.isArray(f))y=f.map(V).join(" -> ");else if("object"==typeof f){let v=[];for(let D in f)if(f.hasOwnProperty(D)){let k=f[D];v.push(D+":"+("string"==typeof k?JSON.stringify(k):V(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(qf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[ac]=null,p}(D,f,"R3InjectorError",this.source)}throw D}finally{Zt(v),Ir(y)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(f=>this.get(f))}toString(){const f=[];return this.records.forEach((_,y)=>f.push(V(y))),`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(f,g,_){if(!(f=X(f)))return!1;let y=Ys(f);const v=null==y&&f.ngModule||void 0,D=void 0===v?f:v,k=-1!==_.indexOf(D);if(void 0!==v&&(y=Ys(v)),null==y)return!1;if(null!=y.imports&&!k){let q;_.push(D);try{fr(y.imports,ee=>{this.processInjectorType(ee,g,_)&&(void 0===q&&(q=[]),q.push(ee))})}finally{}if(void 0!==q)for(let ee=0;eethis.processProvider(Ce,se,ue||qe))}}this.injectorDefTypes.add(D);const R=Tn(D)||(()=>new D);this.records.set(D,gc(R,mc));const N=y.providers;if(null!=N&&!k){const q=f;fr(N,ee=>this.processProvider(ee,q,N))}return void 0!==v&&void 0!==f.providers}processProvider(f,g,_){let y=_c(f=X(f))?f:X(f&&f.provide);const v=function iv(p,f,g){return Zb(p)?gc(void 0,p.useValue):gc(Wb(p),mc)}(f);if(_c(f)||!0!==f.multi)this.records.get(y);else{let D=this.records.get(y);D||(D=gc(void 0,mc,!0),D.factory=()=>Td(D.multi),this.records.set(y,D)),y=f,D.multi.push(f)}this.records.set(y,v)}hydrate(f,g){return g.value===mc&&(g.value=Gb,g.value=g.factory()),"object"==typeof g.value&&g.value&&function av(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(f){if(!f.providedIn)return!1;const g=X(f.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function Rm(p){const f=Ni(p),g=null!==f?f.factory:Tn(p);if(null!==g)return g;if(p instanceof si)throw new ne(204,!1);if(p instanceof Function)return function tv(p){const f=p.length;if(f>0)throw lo(f,"?"),new ne(204,!1);const g=function Fs(p){const f=p&&(p[va]||p[Ta]);if(f){const g=function Ns(p){if(p.hasOwnProperty("name"))return p.name;const f=(""+p).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),f}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ne(204,!1)}function Wb(p,f,g){let _;if(_c(p)){const y=X(p);return Tn(y)||Rm(y)}if(Zb(p))_=()=>X(p.useValue);else if(function Jb(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Td(p.deps||[]));else if(function $b(p){return!(!p||!p.useExisting)}(p))_=()=>Ji(X(p.useExisting));else{const y=X(p&&(p.useClass||p.provide));if(!function rv(p){return!!p.deps}(p))return Tn(y)||Rm(y);_=()=>new y(...Td(p.deps))}return _}function gc(p,f,g=!1){return{factory:p,value:f,multi:g?[]:void 0}}function Zb(p){return null!==p&&"object"==typeof p&&Gf in p}function _c(p){return"function"==typeof p}let jr=(()=>{class p{static create(g,_){var y;if(Array.isArray(g))return XA({name:""},_,g,"");{const v=null!==(y=g.name)&&void 0!==y?y:"";return XA({name:v},g.parent,g.providers,v)}}}return p.THROW_IF_NOT_FOUND=Lr,p.NULL=new km,p.\u0275prov=ri({token:p,providedIn:"any",factory:()=>Ji(Fh)}),p.__NG_ELEMENT_ID__=-1,p})();function bv(p,f){No(Rd(p)[1],gi())}function ct(p){let f=function ei(p){return Object.getPrototypeOf(p.prototype).constructor}(p.type),g=!0;const _=[p];for(;f;){let y;if(Fn(p))y=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new ne(903,"");y=f.\u0275dir}if(y){if(g){_.push(y);const D=p;D.inputs=qh(p.inputs),D.declaredInputs=qh(p.declaredInputs),D.outputs=qh(p.outputs);const k=y.hostBindings;k&&ul(p,k);const R=y.viewQuery,N=y.contentQueries;if(R&&He(p,R),N&&Dt(p,N),L(p.inputs,y.inputs),L(p.declaredInputs,y.declaredInputs),L(p.outputs,y.outputs),Fn(y)&&y.data.animation){const q=p.data;q.animation=(q.animation||[]).concat(y.data.animation)}}const v=y.features;if(v)for(let D=0;D=0;_--){const y=p[_];y.hostVars=f+=y.hostVars,y.hostAttrs=ms(y.hostAttrs,g=ms(g,y.hostAttrs))}}(_)}function qh(p){return p===nt?{}:p===qe?[]:p}function He(p,f){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{f(_,y),g(_,y)}:f}function Dt(p,f){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{f(_,y,v),g(_,y,v)}:f}function ul(p,f){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{f(_,y),g(_,y)}:f}let jm=null;function Dn(){if(!jm){const p=Pt.Symbol;if(p&&p.iterator)jm=p.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(O(Nt[_.index])):_.index;if(fi(g)){let Nt=null;if(!k&&R&&(Nt=function w0(p,f,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vR?k[R]:null}"string"==typeof D&&(v+=2)}return null}(p,f,y,_.index)),null!==Nt)(Nt.__ngLastListenerFn__||Nt).__ngNextListenerFn__=v,Nt.__ngLastListenerFn__=v,ue=!1;else{v=ig(_,f,ee,v,!1);const ni=g.listen(We,y,v);se.push(v,ni),q&&q.push(y,it,xe,xe+1)}}else v=ig(_,f,ee,v,!0),We.addEventListener(y,v,D),se.push(v),q&&q.push(y,it,xe,D)}else v=ig(_,f,ee,v,!1);const Ce=_.outputs;let Le;if(ue&&null!==Ce&&(Le=Ce[y])){const Fe=Le.length;if(Fe)for(let We=0;We0;)f=f[15],p--;return f}(p,rt.lFrame.contextLView))[8]}(p)}function Dv(p,f){let g=null;const _=function OM(p){const f=p.attrs;if(null!=f){const g=f.indexOf(5);if(0==(1&g))return f[g+1]}return null}(p);for(let y=0;y=0}const sn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lg(p){return p.substring(sn.key,sn.keyEnd)}function sp(p,f){const g=sn.textEnd;return g===f?-1:(f=sn.keyEnd=function cg(p,f,g){for(;f32;)f++;return f}(p,sn.key=f,g),vc(p,f,g))}function vc(p,f,g){for(;f=0;g=sp(f,g))qn(p,lg(f),!0)}function zr(p,f,g,_){const y=Me(),v=Ye(),D=Un(2);v.firstUpdatePass&&lu(v,p,D,_),f!==Et&&Pi(y,D,f)&&hg(v,v.data[Ui()],y,y[11],p,y[D+1]=function Fv(p,f){return null==p||("string"==typeof f?p+=f:"object"==typeof p&&(p=V(Ts(p)))),p}(f,g),_,D)}function pa(p,f,g,_){const y=Ye(),v=Un(2);y.firstUpdatePass&&lu(y,null,v,_);const D=Me();if(g!==Et&&Pi(D,v,g)){const k=y.data[Ui()];if(pg(k,_)&&!dg(y,v)){let R=_?k.classesWithoutHost:k.stylesWithoutHost;null!==R&&(g=U(R,g||"")),iu(y,k,D,g,_)}else!function jv(p,f,g,_,y,v,D,k){y===Et&&(y=qe);let R=0,N=0,q=0=p.expandoStartIndex}function lu(p,f,g,_){const y=p.data;if(null===y[g+1]){const v=y[Ui()],D=dg(p,g);pg(v,_)&&null===f&&!D&&(f=!1),f=function Iv(p,f,g,_){const y=Ks(p);let v=_?f.residualClasses:f.residualStyles;if(null===y)0===(_?f.classBindings:f.styleBindings)&&(g=cu(g=up(null,p,f,g,_),f.attrs,_),v=null);else{const D=f.directiveStylingLast;if(-1===D||p[D]!==y)if(g=up(y,p,f,g,_),null===v){let R=function Ov(p,f,g){const _=g?f.classBindings:f.styleBindings;if(0!==mo(_))return p[qa(_)]}(p,f,_);void 0!==R&&Array.isArray(R)&&(R=up(null,p,f,R[1],_),R=cu(R,f.attrs,_),function ug(p,f,g,_){p[qa(g?f.classBindings:f.styleBindings)]=_}(p,f,_,R))}else v=function Bv(p,f,g){let _;const y=f.directiveEnd;for(let v=1+f.directiveStylingLast;v0)&&(N=!0)}else q=g;if(y)if(0!==R){const se=qa(p[k+1]);p[_+1]=gm(se,k),0!==se&&(p[se+1]=wb(p[se+1],_)),p[k+1]=function UM(p,f){return 131071&p|f<<17}(p[k+1],_)}else p[_+1]=gm(k,0),0!==k&&(p[k+1]=wb(p[k+1],_)),k=_;else p[_+1]=gm(R,0),0===k?k=_:p[R+1]=wb(p[R+1],_),R=_;N&&(p[_+1]=yb(p[_+1])),xy(p,q,_,!0),xy(p,q,_,!1),function Hv(p,f,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof f&&Cs(v,f)>=0&&(g[_+1]=Cb(g[_+1]))}(f,q,p,_,v),D=gm(k,R),v?f.classBindings=D:f.styleBindings=D}(y,v,f,g,D,_)}}function up(p,f,g,_,y){let v=null;const D=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const R=p[y],N=Array.isArray(R),q=N?R[1]:R,ee=null===q;let se=g[y+1];se===Et&&(se=ee?qe:void 0);let ue=ee?Cd(se,_):q===_?se:void 0;if(N&&!uu(ue)&&(ue=Cd(R,_)),uu(ue)&&(k=ue,D))return k;const Ce=p[y+1];y=D?qa(Ce):mo(Ce)}if(null!==f){let R=v?f.residualClasses:f.residualStyles;null!=R&&(k=Cd(R,_))}return k}function uu(p){return void 0!==p}function pg(p,f){return 0!=(p.flags&(f?16:32))}function ky(p,f=""){const g=Me(),_=Ye(),y=p+20,v=_.firstCreatePass?Nd(_,y,1,f,null):_.data[y],D=g[y]=function jd(p,f){return fi(p)?p.createText(f):p.createTextNode(f)}(g[11],f);an(_,g,D,v),Dr(v,!1)}function fg(p){return hp("",p,""),fg}function hp(p,f,g){const _=Me(),y=pl(_,p,f,g);return y!==Et&&Es(_,Ui(),y),hp}function mg(p,f,g,_,y){const v=Me(),D=function yo(p,f,g,_,y,v){const k=bo(p,ui(),g,y);return Un(2),k?f+me(g)+_+me(y)+v:Et}(v,p,f,g,_,y);return D!==Et&&Es(v,Ui(),D),mg}function Si(p,f,g,_,y,v,D,k,R,N,q){const ee=Me(),se=wc(ee,p,f,g,_,y,v,D,k,R,N,q);return se!==Et&&Es(ee,Ui(),se),Si}function Nv(p,f,g){pa(qn,Za,pl(Me(),p,f,g),!0)}function mp(p,f,g){const _=Me();return Pi(_,Js(),f)&&nr(Ye(),hi(),_,p,f,_[11],g,!0),mp}function yg(p,f,g){const _=Me();if(Pi(_,Js(),f)){const v=Ye(),D=hi();nr(v,D,_,p,f,zd(Ks(v.data),D,_),g,!0)}return yg}const Cl=void 0;var S0=["en",[["a","p"],["AM","PM"],Cl],[["AM","PM"],Cl,Cl],[["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"]],Cl,[["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"]],Cl,[["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}",Cl,"{1} 'at' {0}",Cl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jy(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let yr={};function gp(p){const f=function wg(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=Fy(f);if(g)return g;const _=f.split("-")[0];if(g=Fy(_),g)return g;if("en"===_)return S0;throw new Error(`Missing locale data for the locale "${p}".`)}function hu(p){return gp(p)[ot.PluralCase]}function Fy(p){return p in yr||(yr[p]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[p]),yr[p]}var ot=(()=>((ot=ot||{})[ot.LocaleId=0]="LocaleId",ot[ot.DayPeriodsFormat=1]="DayPeriodsFormat",ot[ot.DayPeriodsStandalone=2]="DayPeriodsStandalone",ot[ot.DaysFormat=3]="DaysFormat",ot[ot.DaysStandalone=4]="DaysStandalone",ot[ot.MonthsFormat=5]="MonthsFormat",ot[ot.MonthsStandalone=6]="MonthsStandalone",ot[ot.Eras=7]="Eras",ot[ot.FirstDayOfWeek=8]="FirstDayOfWeek",ot[ot.WeekendRange=9]="WeekendRange",ot[ot.DateFormat=10]="DateFormat",ot[ot.TimeFormat=11]="TimeFormat",ot[ot.DateTimeFormat=12]="DateTimeFormat",ot[ot.NumberSymbols=13]="NumberSymbols",ot[ot.NumberFormats=14]="NumberFormats",ot[ot.CurrencyCode=15]="CurrencyCode",ot[ot.CurrencySymbol=16]="CurrencySymbol",ot[ot.CurrencyName=17]="CurrencyName",ot[ot.Currencies=18]="Currencies",ot[ot.Directionality=19]="Directionality",ot[ot.PluralCase=20]="PluralCase",ot[ot.ExtraData=21]="ExtraData",ot))();const pu="en-US";let Cg=pu;function rw(p,f,g,_,y){if(p=X(p),Array.isArray(p))for(let v=0;v>20;if(_c(p)||!p.multi){const ue=new Yo(R,y,Co),Ce=Lg(k,f,y?q:q+se,ee);-1===Ce?(ws(Ia(N,D),v,k),Rg(v,p,f.length),f.push(k),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(ue),D.push(ue)):(g[Ce]=ue,D[Ce]=ue)}else{const ue=Lg(k,f,q+se,ee),Ce=Lg(k,f,q,q+se),Le=ue>=0&&g[ue],Fe=Ce>=0&&g[Ce];if(y&&!Fe||!y&&!Le){ws(Ia(N,D),v,k);const We=function _T(p,f,g,_,y){const v=new Yo(p,g,Co);return v.multi=[],v.index=f,v.componentProviders=0,aw(v,y,_&&!g),v}(y?I0:Ft,g.length,y,_,R);!y&&Fe&&(g[Ce].providerFactory=We),Rg(v,p,f.length,0),f.push(k),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(We),D.push(We)}else Rg(v,p,ue>-1?ue:Ce,aw(g[y?Ce:ue],R,!y&&_));!y&&_&&Fe&&g[Ce].componentProviders++}}}function Rg(p,f,g,_){const y=_c(f),v=function nv(p){return!!p.useClass}(f);if(y||v){const R=(v?X(f.useClass):f).prototype.ngOnDestroy;if(R){const N=p.destroyHooks||(p.destroyHooks=[]);if(!y&&f.multi){const q=N.indexOf(g);-1===q?N.push(g,[_,R]):N[q+1].push(_,R)}else N.push(g,R)}}}function aw(p,f,g){return g&&p.componentProviders++,p.multi.push(f)-1}function Lg(p,f,g,_){for(let y=g;y<_;y++)if(f[y]===p)return y;return-1}function Ft(p,f,g,_){return Gr(this.multi,[])}function I0(p,f,g,_){const y=this.multi;let v;if(this.providerFactory){const D=this.providerFactory.componentProviders,k=io(g,g[1],this.providerFactory.index,_);v=k.slice(0,D),Gr(y,v);for(let R=D;R{g.providersResolver=(_,y)=>function gT(p,f,g){const _=Ye();if(_.firstCreatePass){const y=Fn(p);rw(g,_.data,_.blueprint,y,!0),rw(f,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,f)}}class ow{}class wT{resolveComponentFactory(f){throw function yT(p){const f=Error(`No component factory found for ${V(p)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=p,f}(f)}}let Cu=(()=>{class p{}return p.NULL=new wT,p})();function CT(){return Hc(gi(),Me())}function Hc(p,f){return new Au(ve(p,f))}let Au=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=CT,p})();function AT(p){return p instanceof Au?p.nativeElement:p}class cw{}let vT=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function dw(){const p=Me(),g=yt(gi().index,p);return function TT(p){return p[11]}(_n(g)?g:p)}(),p})(),To=(()=>{class p{}return p.\u0275prov=ri({token:p,providedIn:"root",factory:()=>null}),p})();class uw{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const vu=new uw("13.2.2"),hw={};function Ig(p,f,g,_,y=!1){for(;null!==g;){const v=f[g.index];if(null!==v&&_.push(O(v)),jn(v))for(let k=10;k-1&&(db(f,_),Go(g,_))}this._attachedToViewContainer=!1}il(this._lView[1],this._lView)}onDestroy(f){Ki(this._lView[1],this._lView,null,f)}markForCheck(){Fb(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Vh(this._lView[1],this._lView,this.context)}checkNoChanges(){!function KA(p,f,g){Bo(!0);try{Vh(p,f,g)}finally{Bo(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function gA(p,f){gr(p,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=f}}class xT extends Mp{constructor(f){super(f),this._view=f}detectChanges(){Yb(this._view)}checkNoChanges(){!function ll(p){Bo(!0);try{Yb(p)}finally{Bo(!1)}}(this._view)}get context(){return null}}class Og extends Cu{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const g=Zi(f);return new fw(g,this.ngModule)}}function pw(p){const f=[];for(let g in p)p.hasOwnProperty(g)&&f.push({propName:p[g],templateName:g});return f}const MT=new si("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>uA});class fw extends ow{constructor(f,g){super(),this.componentDef=f,this.ngModule=g,this.componentType=f.type,this.selector=function NM(p){return p.map(FM).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return pw(this.componentDef.inputs)}get outputs(){return pw(this.componentDef.outputs)}create(f,g,_,y){const v=(y=y||this.ngModule)?function ST(p,f){return{get:(g,_,y)=>{const v=p.get(g,hw,y);return v!==hw||_===hw?v:f.get(g,_,y)}}}(f,y.injector):f,D=v.get(cw,B),k=v.get(To,null),R=D.createRenderer(null,this.componentDef),N=this.componentDef.selectors[0][0]||"div",q=_?function Rb(p,f,g){if(fi(p))return p.selectRootElement(f,g===Ve.ShadowDom);let _="string"==typeof f?p.querySelector(f):f;return _.textContent="",_}(R,_,this.componentDef.encapsulation):hm(D.createRenderer(null,this.componentDef),N,function Xa(p){const f=p.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(N)),ee=this.componentDef.onPush?576:528,se=function Vm(p,f){return{components:[],scheduler:p||uA,clean:Ub,playerHandler:f||null,flags:0}}(),ue=ym(0,null,null,1,0,null,null,null,null,null),Ce=Lh(null,ue,se,ee,null,null,D,R,k,v);let Le,Fe;kr(Ce);try{const We=function Bm(p,f,g,_,y,v){const D=g[1];g[20]=p;const R=Nd(D,20,2,"#host",null),N=R.mergedAttrs=f.hostAttrs;null!==N&&(cl(R,N,!0),null!==p&&(yn(y,p,N),null!==R.classes&&mm(y,p,R.classes),null!==R.styles&&CA(y,p,R.styles)));const q=_.createRenderer(p,f),ee=Lh(g,FA(f),null,f.onPush?64:16,g[20],R,_,q,v||null,null);return D.firstCreatePass&&(ws(Ia(R,g),D,f.type),Tm(D,R),xm(R,g.length,1)),go(g,ee),g[20]=ee}(q,this.componentDef,Ce,D,R);if(q)if(_)yn(R,q,["ng-version",vu.full]);else{const{attrs:xe,classes:it}=function YM(p){const f=[],g=[];let _=1,y=2;for(;_0&&mm(R,q,it.join(" "))}if(Fe=Xt(ue,20),void 0!==g){const xe=Fe.projection=[];for(let it=0;itR(D,f)),f.contentQueries){const R=gi();f.contentQueries(1,D,R.directiveStart)}const k=gi();return!v.firstCreatePass||null===f.hostBindings&&null===f.hostAttrs||(oa(k.index),UA(g[1],k,0,k.directiveStart,k.directiveEnd,f),vm(f,D)),D}(We,this.componentDef,Ce,se,[bv]),Ih(ue,Ce,null)}finally{jo()}return new _w(this.componentType,Le,Hc(Fe,Ce),Ce,Fe)}}class _w extends class bT{}{constructor(f,g,_,y,v){super(),this.location=_,this._rootLView=y,this._tNode=v,this.instance=g,this.hostView=this.changeDetectorRef=new xT(y),this.componentType=f}get injector(){return new no(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}class Al{}class bw{}const kc=new Map;class Vg extends Al{constructor(f,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Og(this);const _=gt(f);this._bootstrapComponents=Fa(_.bootstrap),this._r3Injector=Nh(f,g,[{provide:Al,useValue:this},{provide:Cu,useValue:this.componentFactoryResolver}],V(f)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(f)}get(f,g=jr.THROW_IF_NOT_FOUND,_=pt.Default){return f===jr||f===Al||f===Fh?this:this._r3Injector.get(f,g,_)}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Sp extends bw{constructor(f){super(),this.moduleType=f,null!==gt(f)&&function vl(p){const f=new Set;!function g(_){const y=gt(_,!0),v=y.id;null!==v&&(function Gn(p,f,g){if(f&&f!==g)throw new Error(`Duplicate module registered for ${p} - ${V(f)} vs ${V(f.name)}`)}(v,kc.get(v),_),kc.set(v,_));const D=Fa(y.imports);for(const k of D)f.has(k)||(f.add(k),g(k))}(p)}(f)}create(f){return new Vg(this.moduleType,f)}}function Li(p,f,g){const _=bn()+p,y=Me();return y[_]===Et?Wa(y,_,g?f.call(g):f()):function hl(p,f){return p[f]}(y,_)}function DT(p,f,g,_){return Cw(Me(),bn(),p,f,g,_)}function Ep(p,f,g,_,y){return Wn(Me(),bn(),p,f,g,_,y)}function Mu(p,f){const g=p[f];return g===Et?void 0:g}function Cw(p,f,g,_,y,v){const D=f+g;return Pi(p,D,y)?Wa(p,D+1,v?_.call(v,y):_(y)):Mu(p,D+1)}function Wn(p,f,g,_,y,v,D){const k=f+g;return bo(p,k,y,v)?Wa(p,k+2,D?_.call(D,y,v):_(y,v)):Mu(p,k+2)}function Hs(p,f,g,_,y,v,D,k){const R=f+g;return function yc(p,f,g,_,y){const v=bo(p,f,g,_);return Pi(p,f+2,y)||v}(p,R,y,v,D)?Wa(p,R+3,k?_.call(k,y,v,D):_(y,v,D)):Mu(p,R+3)}function ks(p,f){const g=Ye();let _;const y=p+20;g.firstCreatePass?(_=function PT(p,f){if(f)for(let g=f.length-1;g>=0;g--){const _=f[g];if(p===_.name)return _}}(f,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=Tn(_.type)),D=Zt(Co);try{const k=La(!1),R=v();return La(k),function Wh(p,f,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),f[g]=_}(g,Me(),y,R),R}finally{Zt(D)}}function Ii(p,f,g){const _=p+20,y=Me(),v=Rt(y,_);return Pc(y,_)?Cw(y,bn(),f,v.transform,g,v):v.transform(g)}function Fg(p,f,g,_){const y=p+20,v=Me(),D=Rt(v,y);return Pc(v,y)?Wn(v,bn(),f,D.transform,g,_,D):D.transform(g,_)}function Ng(p,f,g,_,y){const v=p+20,D=Me(),k=Rt(D,v);return Pc(D,v)?Hs(D,bn(),f,k.transform,g,_,y,k):k.transform(g,_,y)}function Pc(p,f){return p[1].data[f].pure}function Dp(p){return f=>{setTimeout(p,void 0,f)}}const ga=class Tw extends T.xQ{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,g,_){var y,v,D;let k=f,R=g||(()=>null),N=_;if(f&&"object"==typeof f){const ee=f;k=null===(y=ee.next)||void 0===y?void 0:y.bind(ee),R=null===(v=ee.error)||void 0===v?void 0:v.bind(ee),N=null===(D=ee.complete)||void 0===D?void 0:D.bind(ee)}this.__isAsync&&(R=Dp(R),k&&(k=Dp(k)),N&&(N=Dp(N)));const q=super.subscribe({next:k,error:R,complete:N});return f instanceof i.w&&f.add(q),q}};function Hp(){return this._results[Dn()]()}class Su{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Dn(),_=Su.prototype;_[g]||(_[g]=Hp)}get changes(){return this._changes||(this._changes=new ga)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,g){return this._results.reduce(f,g)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,g){const _=this;_.dirty=!1;const y=tr(f);(this._changesDetected=!function Nf(p,f,g){if(p.length!==f.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=RT,p})();const xw=Rc,Mw=class extends xw{constructor(f,g,_){super(),this._declarationLView=f,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(f){const g=this._declarationTContainer.tViews,_=Lh(this._declarationLView,g,f,16,null,g.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(_[19]=v.createEmbeddedView(g)),Ih(g,_,f),new Mp(_)}};function RT(){return Eu(gi(),Me())}function Eu(p,f){return 4&p.type?new Mw(f,p,Hc(p,f)):null}let Du=(()=>{class p{}return p.__NG_ELEMENT_ID__=Yg,p})();function Yg(){return zg(gi(),Me())}const Sw=Du,kp=class extends Sw{constructor(f,g,_){super(),this._lContainer=f,this._hostTNode=g,this._hostLView=_}get element(){return Hc(this._hostTNode,this._hostLView)}get injector(){return new no(this._hostTNode,this._hostLView)}get parentInjector(){const f=ys(this._hostTNode,this._hostLView);if(gs(f)){const g=Ra(f,this._hostLView),_=_s(f);return new no(g[1].data[_+8],g)}return new no(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const g=Ug(this._lContainer);return null!==g&&g[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,g,_){const y=f.createEmbeddedView(g||{});return this.insert(y,_),y}createComponent(f,g,_,y,v){const D=f&&!function Oa(p){return"function"==typeof p}(f);let k;if(D)k=g;else{const ee=g||{};k=ee.index,_=ee.injector,y=ee.projectableNodes,v=ee.ngModuleRef}const R=D?f:new fw(Zi(f)),N=_||this.parentInjector;if(!v&&null==R.ngModule&&N){const ee=N.get(Al,null);ee&&(v=ee)}const q=R.create(N,y,void 0,v);return this.insert(q.hostView,k),q}insert(f,g){const _=f._lView,y=_[1];if(function di(p){return jn(p[3])}(_)){const q=this.indexOf(f);if(-1!==q)this.detach(q);else{const ee=_[3],se=new kp(ee,ee[6],ee[3]);se.detach(se.indexOf(f))}}const v=this._adjustIndex(g),D=this._lContainer;!function _A(p,f,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=f),_0)_.push(D[k/2]);else{const N=v[k+1],q=f[-R];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=Jp,this.reject=Jp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:R})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Ji(o_,8))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const Ml=new si("AppId"),qT={provide:Ml,useFactory:function Vw(){return`${Qp()}${Qp()}${Qp()}`},deps:[]};function Qp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const jw=new si("Platform Initializer"),GT=new si("Platform ID"),l_=new si("appBootstrapListener");let c_=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const Kp=new si("LocaleId"),d_=new si("DefaultCurrencyCode");class WT{constructor(f,g){this.ngModuleFactory=f,this.componentFactories=g}}let Rs=(()=>{class p{compileModuleSync(g){return new Sp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=Fa(gt(g).declarations).reduce((D,k)=>{const R=Zi(k);return R&&D.push(new fw(R)),D},[]);return new WT(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const $T=(()=>Promise.resolve(0))();function Ru(p){"undefined"==typeof Zone?$T.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Ar{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ga(!1),this.onMicrotaskEmpty=new ga(!1),this.onStable=new ga(!1),this.onError=new ga(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const y=this;y._nesting=0,y._outer=y._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function Yw(){let p=Pt.requestAnimationFrame,f=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&p&&f){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function JT(p){const f=()=>{!function Uw(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(Pt,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Lu(p),p.isCheckStableRunning=!0,h_(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Lu(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,D,k)=>{try{return zw(p),g.invokeTask(y,v,D,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&f(),qw(p)}},onInvoke:(g,_,y,v,D,k,R)=>{try{return zw(p),g.invoke(y,v,D,k,R)}finally{p.shouldCoalesceRunChangeDetection&&f(),qw(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Lu(p),h_(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ar.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ar.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(f,g,_){return this._inner.run(f,g,_)}runTask(f,g,_,y){const v=this._inner,D=v.scheduleEventTask("NgZoneEvent: "+y,f,u_,Jp,Jp);try{return v.runTask(D,g,_)}finally{v.cancelTask(D)}}runGuarded(f,g,_){return this._inner.runGuarded(f,g,_)}runOutsideAngular(f){return this._outer.run(f)}}const u_={};function h_(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Lu(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function zw(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function qw(p){p._nesting--,h_(p)}class Gw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ga,this.onMicrotaskEmpty=new ga,this.onStable=new ga,this.onError=new ga}run(f,g,_){return f.apply(g,_)}runGuarded(f,g,_){return f.apply(g,_)}runOutsideAngular(f){return f()}runTask(f,g,_,y){return f.apply(g,_)}}let Ww=(()=>{class p{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ar.assertNotInAngularZone(),Ru(()=>{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())Ru(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!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(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Ji(Ar))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})(),QT=(()=>{class p{constructor(){this._applications=new Map,Xp.addToWindow(this)}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return Xp.findTestabilityInTree(this,g,_)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();class p_{addToWindow(f){}findTestabilityInTree(f,g,_){return null}}function KT(p){Xp=p}let _a,Xp=new p_;const f_=new si("AllowMultipleToken");class ex{constructor(f,g){this.name=f,this.token=g}}function Jw(p,f,g=[]){const _=`Platform: ${f}`,y=new si(_);return(v=[])=>{let D=ef();if(!D||D.injector.get(f_,!1))if(p)p(g.concat(v).concat({provide:y,useValue:!0}));else{const k=g.concat(v).concat({provide:y,useValue:!0},{provide:qd,useValue:"platform"});!function $w(p){if(_a&&!_a.destroyed&&!_a.injector.get(f_,!1))throw new ne(400,"");_a=p.get(Qw);const f=p.get(jw,null);f&&f.forEach(g=>g())}(jr.create({providers:k,name:_}))}return function tx(p){const f=ef();if(!f)throw new ne(401,"");return f}()}}function ef(){return _a&&!_a.destroyed?_a:null}let Qw=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const k=function Kw(p,f){let g;return g="noop"===p?new Gw:("zone.js"===p?void 0:p)||new Ar({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==f?void 0:f.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==f?void 0:f.ngZoneRunCoalescing)}),g}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),R=[{provide:Ar,useValue:k}];return k.run(()=>{const N=jr.create({providers:R,parent:this.injector,name:g.moduleType.name}),q=g.create(N),ee=q.injector.get(ja,null);if(!ee)throw new ne(402,"");return k.runOutsideAngular(()=>{const se=k.onError.subscribe({next:ue=>{ee.handleError(ue)}});q.onDestroy(()=>{tf(this._modules,q),se.unsubscribe()})}),function ix(p,f,g){try{const _=g();return au(_)?_.catch(y=>{throw f.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw f.runOutsideAngular(()=>p.handleError(_)),_}}(ee,k,()=>{const se=q.injector.get(xl);return se.runInitializers(),se.donePromise.then(()=>(function Ag(p){tt(p,"Expected localeId to be defined"),"string"==typeof p&&(Cg=p.toLowerCase().replace(/_/g,"-"))}(q.injector.get(Kp,pu)||pu),this._moduleDoBootstrap(q),q))})})}bootstrapModule(g,_=[]){const y=m_({},_);return function Zw(p,f,g){const _=new Sp(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(Iu);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ne(403,"");g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Ji(jr))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();function m_(p,f){return Array.isArray(f)?f.reduce(m_,p):Object.assign(Object.assign({},p),f)}let Iu=(()=>{class p{constructor(g,_,y,v,D){this._zone=g,this._injector=_,this._exceptionHandler=y,this._componentFactoryResolver=v,this._initStatus=D,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const k=new E.y(N=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{N.next(this._stable),N.complete()})}),R=new E.y(N=>{let q;this._zone.runOutsideAngular(()=>{q=this._zone.onStable.subscribe(()=>{Ar.assertNotInAngularZone(),Ru(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,N.next(!0))})})});const ee=this._zone.onUnstable.subscribe(()=>{Ar.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{N.next(!1)}))});return()=>{q.unsubscribe(),ee.unsubscribe()}});this.isStable=(0,M.T)(k,R.pipe((0,S.B)()))}bootstrap(g,_){if(!this._initStatus.done)throw new ne(405,"");let y;y=g instanceof ow?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(y.componentType);const v=function XT(p){return p.isBoundToModule}(y)?void 0:this._injector.get(Al),k=y.create(jr.NULL,[],_||y.selector,v),R=k.location.nativeElement,N=k.injector.get(Ww,null),q=N&&k.injector.get(QT);return N&&q&&q.registerApplication(R,N),k.onDestroy(()=>{this.detachView(k.hostView),tf(this.components,k),q&&q.unregisterApplication(R)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;tf(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(l_,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return p.\u0275fac=function(g){return new(g||p)(Ji(Ar),Ji(jr),Ji(ja),Ji(Cu),Ji(xl))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();function tf(p,f){const g=p.indexOf(f);g>-1&&p.splice(g,1)}let nx=!0;function tC(){nx=!1}let ax=(()=>{class p{}return p.__NG_ELEMENT_ID__=G0,p})();function G0(p){return function sx(p,f,g){if(Da(p)&&!g){const _=yt(p.index,f);return new Mp(_,_)}return 47&p.type?new Mp(f[16],f):null}(gi(),Me(),16==(16&p))}class aC{constructor(){}supports(f){return bc(f)}create(f){return new px(f)}}const hx=(p,f)=>f;class px{constructor(f){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=f||hx}forEachItem(f){let g;for(g=this._itHead;null!==g;g=g._next)f(g)}forEachOperation(f){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,k,D,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,g,_,y){let v;return null===f?v=this._itTail:(v=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(f.item,g)||this._addIdentityChange(f,g),this._reinsertAfter(f,v,y)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(f.item,g)||this._addIdentityChange(f,g),this._moveAfter(f,v,y)):f=this._addAfter(new fx(g,_),v,y),f}_verifyReinsertion(f,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?f=this._reinsertAfter(v,f._prev,y):f.currentIndex!=y&&(f.currentIndex=y,this._addToMoves(f,y)),f}_truncate(f){for(;null!==f;){const g=f._next;this._addToRemovals(this._unlink(f)),f=g}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(f,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const y=f._prevRemoved,v=f._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(f,g,_),this._addToMoves(f,_),f}_moveAfter(f,g,_){return this._unlink(f),this._insertAfter(f,g,_),this._addToMoves(f,_),f}_addAfter(f,g,_){return this._insertAfter(f,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,g,_){const y=null===g?this._itHead:g._next;return f._next=y,f._prev=g,null===y?this._itTail=f:y._prev=f,null===g?this._itHead=f:g._next=f,null===this._linkedRecords&&(this._linkedRecords=new sC),this._linkedRecords.put(f),f.currentIndex=_,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const g=f._prev,_=f._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,f}_addToMoves(f,g){return f.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new sC),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,g){return f.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class fx{constructor(f,g){this.item=f,this.trackById=g,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 eS{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,f))return _;return null}remove(f){const g=f._prevDup,_=f._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class sC{constructor(){this.map=new Map}put(f){const g=f.trackById;let _=this.map.get(g);_||(_=new eS,this.map.set(g,_)),_.add(f)}get(f,g){const y=this.map.get(f);return y?y.get(f,g):null}remove(f){const g=f.trackById;return this.map.get(g).remove(f)&&this.map.delete(g),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Uc(p,f,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,g){if(f){const _=f._prev;return g._next=f,g._prev=_,f._prev=g,_&&(_._next=g),f===this._mapHead&&(this._mapHead=g),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(f,g){if(this._records.has(f)){const y=this._records.get(f);this._maybeAddToChanges(y,g);const v=y._prev,D=y._next;return v&&(v._next=D),D&&(D._prev=v),y._next=null,y._prev=null,y}const _=new oC(f);return this._records.set(f,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,g){Object.is(g,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=g,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,g){f instanceof Map?f.forEach(g):Object.keys(f).forEach(_=>g(f[_],_))}}class oC{constructor(f){this.key=f,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 El(){return new af([new aC])}let af=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||El()),deps:[[p,new ho,new Ba]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ne(901,"")}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:El}),p})();function lC(){return new sf([new Vu])}let sf=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||lC()),deps:[[p,new ho,new Ba]]}}find(g){const _=this.factories.find(v=>v.supports(g));if(_)return _;throw new ne(901,"")}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:lC}),p})();const cC=[new Vu],gx=new af([new aC]),_x=new sf(cC),dC=Jw(null,"core",[{provide:GT,useValue:"unknown"},{provide:Qw,deps:[jr]},{provide:QT,deps:[]},{provide:c_,deps:[]}]),yx=[{provide:Iu,useClass:Iu,deps:[Ar,jr,ja,Cu,xl]},{provide:MT,deps:[Ar],useFactory:function wx(p){let f=[];return p.onStable.subscribe(()=>{for(;f.length;)f.pop()()}),function(g){f.push(g)}}},{provide:xl,useClass:xl,deps:[[new Ba,o_]]},{provide:Rs,useClass:Rs,deps:[]},qT,{provide:af,useFactory:function uC(){return gx},deps:[]},{provide:sf,useFactory:function bx(){return _x},deps:[]},{provide:Kp,useFactory:function nS(p){return p||function hC(){return"undefined"!=typeof $localize&&$localize.locale||pu}()},deps:[[new uo(Kp),new Ba,new ho]]},{provide:d_,useValue:"USD"}];let Cx=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Ji(Iu))},p.\u0275mod=as({type:p}),p.\u0275inj=Cn({providers:yx}),p})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),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 G;return function(T){return(G||(G=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(T||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(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class ReceivedTokens{}class OAuthEvent{constructor(G){this.type=G}}class OAuthSuccessEvent extends OAuthEvent{constructor(G,x=null){super(G),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(G,x=null){super(G),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(G,x,T=null){super(G),this.reason=x,this.params=T}}function b64DecodeUnicode(z){const G=z.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(G).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(z){return btoa(z).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=x=>{location.href=x},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){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let x=this.inferHashAlgorithm(G.idTokenHeader),T=yield this.calcHash(G.accessToken,x),E=base64UrlEncode(T.substr(0,T.length/2)),M=G.idTokenClaims.at_hash.replace(/=/g,"");return E!==M&&(console.error("exptected at_hash: "+E),console.error("actual at_hash: "+M)),E===M})}inferHashAlgorithm(G){let x=G.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class z{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const i=T.indexOf("?");return T=T.substr(i>-1?i+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let i,E,M,S,P,L,V;if(null===x)return T;i=x.split("&");for(let U=0;U>6,E[S++]=128|63&P):P<55296||P>=57344?(E[S++]=224|P>>12,E[S++]=128|P>>6&63,E[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&z.charCodeAt(++T)),E[S++]=240|P>>18,E[S++]=128|P>>12&63,E[S++]=128|P>>6&63,E[S++]=128|63&P);z=E}else{if("object"!==i)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(G,!0).update(z).array());var L=[],V=[];for(T=0;T<64;++T){var U=z[T]||0;L[T]=92^U,V[T]=54^U}Sha256.call(this,G,x),this.update(V),this.oKeyPad=L,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(z){if(!this.finalized){var G,x=typeof z;if("string"!==x){if("object"!==x)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);G=!0}for(var T,E,i=0,M=z.length,S=this.blocks;i>2]|=z[i]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(S[E>>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=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}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,G=this.lastByteIndex;z[16]=this.block,z[G>>2]|=EXTRA[3&G],this.block=z[16],G>=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 L,$,ce,ne,de,me,z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=this.blocks;for(L=16;L<64;++L)P[L]=P[L-16]+((($=P[L-15])>>>7|$<<25)^($>>>18|$<<14)^$>>>3)+P[L-7]+((($=P[L-2])>>>17|$<<15)^($>>>19|$<<13)^$>>>10)<<0;for(me=G&x,L=0;L<64;L+=4)this.first?(this.is224?(ce=300032,S=($=P[0]-1413257819)-150054599<<0,T=$+24177077<<0):(ce=704751109,S=($=P[0]-210244248)-1521486534<<0,T=$+143694565<<0),this.first=!1):(S=T+($=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&M)+K[L]+P[L])<<0,T=$+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((ce=z&G)^z&x^me))<<0),M=x+($=M+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[L+1]+P[L+1])<<0,x=$+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ne=T&z)^T&G^ce))<<0,E=G+($=E+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&S^~M&i)+K[L+2]+P[L+2])<<0,G=$+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&z^ne))<<0,i=z+($=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&M^~E&S)+K[L+3]+P[L+3])<<0,z=$+(((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+((me=G&x)^G&T^de))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+G<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+M<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=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[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[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[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[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+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];return this.is224||(P+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=[z>>24&255,z>>16&255,z>>8&255,255&z,G>>24&255,G>>16&255,G>>8&255,255&G,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M];return this.is224||P.push(S>>24&255,S>>16&255,S>>8&255,255&S),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var z=new ArrayBuffer(this.is224?28:32),G=new DataView(z);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),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 G,x=z,T=new Uint8Array(x.length);for(G=0;G{class z{calcHash(x,T){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})}toHashString2(x){let T="";for(let i of x)T+=String.fromCharCode(i);return T}toHashString(x){const T=new Uint8Array(x);let i="";for(let E of T)i+=String.fromCharCode(E);return i}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})(),OAuthService=(()=>{class z extends AuthConfig{constructor(x,T,i,E,M,S,P,L,V,U){var Y;super(),this.ngZone=x,this.http=T,this.config=M,this.urlHelper=S,this.logger=P,this.crypto=L,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,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(),E&&(this.tokenValidationHandler=E),M&&this.configure(M);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=null===(Y=null==window?void 0:window.navigator)||void 0===Y?void 0:Y.userAgent;((null==$?void 0:$.includes("MSIE "))||(null==$?void 0:$.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const x="test";try{return void 0!==window.localStorage&&(localStorage.setItem(x,x),localStorage.removeItem(x),!0)}catch(T){return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),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)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?E=!0:"logout"===M.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==T||"any"===T||M.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{E&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],i=this.validateUrlForHttps(x),E=this.validateUrlAgainstIssuer(x);return i||T.push("https for all urls required. Also for urls received by discovery."),E||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))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(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),i=this.calcTimeout(T,x);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)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),i=this.calcTimeout(T,x);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)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}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(x,T){const i=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:M});this.eventsSubject.next(P),T(P)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),i(M)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("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((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),T(i)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.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: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,i).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((x,T)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||M.sub!==S.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");M=Object.assign({},S,M),this._storage.setItem("id_token_claims_obj",JSON.stringify(M)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:M})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),T(E)})})}fetchTokenUsingPasswordFlow(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},i)}fetchTokenUsingGrant(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(M,this.customQueryParams[M]);for(const M of Object.keys(T))E=E.set(M,T[M]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(L=>{this.storeIdToken(L),M(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),M(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),S(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let i=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")),E=(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}`);E=E.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(M,this.customQueryParams[M]);this.http.post(this.tokenEndpoint,i,{headers:E}).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)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>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")),x(M)},M=>{this.logger.error("Error refreshing token",M),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",M)),T(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(U=>{M.setAttribute("src",U),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.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__.S3)([P,L,V]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(U=>{if(U instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===U.type||(U=new OAuthErrorEvent("silent_refresh_error",U)),this.eventsSubject.next(U),U;return"token_received"===U.type&&(U=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(U)),U})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((i,E)=>{let P,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=T):S=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const L=X=>{this.tryLogin({customHashFragment:X,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),i(!0)},te=>{U(),E(te)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(U(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(P),window.removeEventListener("storage",$),window.removeEventListener("message",Y),null!==S&&S.close(),S=null},Y=X=>{const te=this.processMessageEventMessage(X);te&&null!==te?(window.removeEventListener("storage",$),L(te)):console.log("false event firing")},$=X=>{"auth_hash"===X.key&&(window.removeEventListener("message",Y),L(X.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",$)}))}calculatePopupFeatures(x){const T=x.height||470,i=x.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${E}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(T)?"#"+i.substr(T.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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=x=>{const T=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(T)){switch(x.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",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",i,"event",x)},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(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{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)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.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 x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);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 x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",i="",E=!1,M={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const S=this;let P;P=i||this.redirectUri;const L=yield this.createAndSaveNonce();if(x=x?L+this.config.nonceStateSeparator+encodeURIComponent(x):L,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const V=S.loginUrl.indexOf("?")>-1?"&":"?";let U=S.scope;this.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let Y=S.loginUrl+V+"response_type="+encodeURIComponent(S.responseType)+"&client_id="+encodeURIComponent(S.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(P)+"&scope="+encodeURIComponent(U);if(this.responseType.includes("code")&&!this.disablePKCE){const[$,X]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",X):this._storage.setItem("PKCE_verifier",X),Y+="&code_challenge="+$,Y+="&code_challenge_method=S256"}T&&(Y+="&login_hint="+encodeURIComponent(T)),S.resource&&(Y+="&resource="+encodeURIComponent(S.resource)),S.oidc&&(Y+="&nonce="+encodeURIComponent(L)),E&&(Y+="&prompt=none");for(const $ of Object.keys(M))Y+="&"+encodeURIComponent($)+"="+encodeURIComponent(M[$]);if(this.customQueryParams)for(const $ of Object.getOwnPropertyNames(this.customQueryParams))Y+="&"+$+"="+encodeURIComponent(this.customQueryParams[$]);return Y})}initImplicitFlowInternal(x="",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 i={},E=null;"string"==typeof T?E=T:"object"==typeof T&&(i=T),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const i={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,T,i,E,M){if(this._storage.setItem("access_token",x),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,L=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+L)}T&&this._storage.setItem("refresh_token",T),M&&M.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const T=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(T),E=i.code,M=i.state,S=i.session_state;if(!x.preventClearHashAfterLogin){const V=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,V)}let[P,L]=this.parseState(M);if(this.state=L,i.error){this.debug("error trying to login"),this.handleLoginError(x,i);const V=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(V),Promise.reject(V)}if(!x.disableNonceCheck){if(!P)return this.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!this.validateNonce(P)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.storeSessionState(S),E&&(yield this.getTokenFromCode(E,x),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((E,M)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,T.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),M(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),M(S)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const i=T.state;let[E,M]=this.parseState(i);if(this.state=M,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const U=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(U),Promise.reject(U)}const S=T.access_token,P=T.id_token,L=T.session_state,V=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!L&&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&&!x.disableNonceCheck&&!this.validateNonce(E)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,V),this.oidc?this.processIdToken(P,S,x.disableNonceCheck).then(U=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:U.idTokenClaims,idToken:U.idToken,state:i}).then(Y=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(L),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(U=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",U)),this.logger.error("Error validating tokens"),this.logger.error(U),Promise.reject(U))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,i="";if(x){const E=x.indexOf(this.config.nonceStateSeparator);E>-1&&(T=x.substr(0,E),i=x.substr(E+this.config.nonceStateSeparator.length))}return[T,i]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,i=!1){const E=x.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),P=JSON.parse(S),V=b64DecodeUnicode(this.padBase64(E[1])),U=JSON.parse(V);let Y;if(Y=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+U.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(U.aud!==this.clientId){const de="Wrong audience: "+U.aud;return this.logger.warn(de),Promise.reject(de)}if(!U.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!U.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const de="Wrong issuer: "+U.iss;return this.logger.warn(de),Promise.reject(de)}if(!i&&U.nonce!==Y){const de="Wrong nonce: "+U.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const $=this.dateTimeService.now(),X=1e3*U.iat,te=1e3*U.exp,ce=this.getClockSkewInMsec();if(X-ce>=$||te+ce<=$){const de="Token has expired";return console.error(de),console.error({now:$,issuedAtMSec:X,expiresAtMSec:te}),Promise.reject(de)}const ne={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:U,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(de=>({idToken:x,idTokenClaims:U,idTokenClaimsJson:V,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:te})):this.checkAtHash(ne).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const me="Wrong at_hash";return this.logger.warn(me),Promise.reject(me)}return this.checkSignature(ne).then(me=>{const Be={idToken:x,idTokenClaims:U,idTokenClaimsJson:V,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:te};return this.disableAtHashCheck?Be:this.checkAtHash(ne).then(Ze=>{if(this.requestAccessToken&&!Ze){const It="Wrong at_hash";return this.logger.warn(It),Promise.reject(It)}return Be})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}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 x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const E=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(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!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(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),T&&(S=S.set("state",T)));for(let L in x)S=S.set(L,x[L]);M=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(M)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const M="undefined"==typeof self?null:self.crypto||self.msCrypto;if(M){let S=new Uint8Array(i);M.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>T.charCodeAt(P%T.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",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 i={},E=null;"string"==typeof T?E=T:"object"==typeof T&&(i=T),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(x,"sha-256")),x]})}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&T.set(i,JSON.stringify(x[i]))}),T}revokeTokenAndLogout(x={},T=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),M=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),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)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(L,this.customQueryParams[L]);return new Promise((L,V)=>{let U,Y;if(E){let $=S.set("token",E).set("token_type_hint","access_token");U=this.http.post(i,$,{headers:P})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let $=S.set("token",M).set("token_type_hint","refresh_token");Y=this.http.post(i,$,{headers:P})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([U,Y]).subscribe($=>{this.logOut(x),L($),this.logger.info("Token successfully revoked")},$=>{this.logger.error("Error revoking token",$),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",$)),V($)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return z.\u0275fac=function(x){return new(x||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(G){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)}}let DefaultOAuthInterceptor=(()=>{class z{constructor(x,T,i){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?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__.zg)(M=>{if(M){const P=x.headers.set("Authorization","Bearer "+M);x=x.clone({headers:P})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):T.handle(x)}}return z.\u0275fac=function(x){return new(x||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(G){return Promise.resolve(null)}validateAtHash(G){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(x=null,T=NullValidationHandler){return{ngModule:z,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:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return z.\u0275fac=function(x){return new(x||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")},4147:z=>{"use strict";z.exports={i8:"8.0.0"}}},z=>{z(z.s=9636)}]); \ No newline at end of file diff --git a/dist/apps/publications/main.b83a3d796effee02.js b/dist/apps/publications/main.b83a3d796effee02.js new file mode 100644 index 000000000..6e6359a64 --- /dev/null +++ b/dist/apps/publications/main.b83a3d796effee02.js @@ -0,0 +1 @@ +(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{9636:(z,G,x)=>{"use strict";var T=x(9808),i=x(5e3);class E extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends E{static makeCurrent(){(0,T.HT)(new M)}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 P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function V(n){L=L||document.createElement("a"),L.setAttribute("href",n);const a=L.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let L,S=null;const U=new i.OlP("TRANSITION_ID"),$=[{provide:i.ip1,useFactory:function Y(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,T.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const o=function(s){d=d||s,l--,0==l&&t(d)};r.forEach(function(s){s.whenStable(o)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const r=a.getTestability(e);return null!=r?r:t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let te=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ce=new i.OlP("EventManagerPlugins");let ne=(()=>{class n{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 l=0;l{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ie=(()=>{class n extends me{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.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(Be),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Be))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Be(n){(0,T.q)().remove(n)}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/"},It=/%COMP%/g;function _e(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ke=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ge(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new yi(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new tt(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=_e(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ne),i.LFG(Ie),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ge{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Ze[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){a.appendChild(e)}insertBefore(a,e,t){a&&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 l=Ze[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Ze[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&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.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,we(t)):this.eventManager.addEventListener(a,e,we(t))}}class yi extends ge{constructor(a,e,t,r){super(a),this.component=t;const l=_e(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function mt(n){return"_ngcontent-%COMP%".replace(It,n)}(r+"-"+t.id),this.hostAttr=function fe(n){return"_nghost-%COMP%".replace(It,n)}(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 ge{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 l=_e(r.id,r.styles,[]);for(let d=0;d{class n extends de{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const On=["alt","control","meta","shift"],$e={"\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"},ri={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"},va={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Cn=(()=>{class n extends de{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(On.forEach(s=>{const c=t.indexOf(s);c>-1&&(t.splice(c,1),d+=s+".")}),d+=l,0!=t.length||0===l.length)return null;const o={};return o.domEventName=r,o.fullKey=d,o}static getEventFullKey(e){let t="",r=function Ni(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&ri.hasOwnProperty(a)&&(a=ri[a]))}return $e[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),On.forEach(l=>{l!=r&&va[l](e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Ta=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:T.bD},{provide:i.g9A,useValue:function Qr(){M.makeCurrent(),X.init()},multi:!0},{provide:T.K0,useFactory:function Ys(){return(0,i.RDi)(document),document},deps:[]}]),Kr=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function Ns(){return new i.qLn},deps:[]},{provide:ce,useClass:ht,multi:!0,deps:[T.K0,i.R0b,i.Lbi]},{provide:ce,useClass:Cn,multi:!0,deps:[T.K0]},{provide:ke,useClass:ke,deps:[ne,Ie,i.AFp]},{provide:i.FYo,useExisting:ke},{provide:me,useExisting:Ie},{provide:Ie,useClass:Ie,deps:[T.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:ne,useClass:ne,deps:[ce,i.R0b]},{provide:T.JF,useClass:te,deps:[]}];let xa=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:U,useExisting:i.AFp},$]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:Kr,imports:[T.ez,i.hGG]}),n})(),Zt=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Bi(){return new Zt((0,i.LFG)(T.K0))}(),t},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let Vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(as),t},providedIn:"root"}),n})(),as=(()=>{class n extends Vn{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(t),(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.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,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function rs(n){return new as(n.get(T.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var w=x(520);class Re{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const oi=new i.OlP("basePath");class Ge{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 Vi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,o,s="body",c=!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==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Ue=>{h=this.addToHttpParams(h,Ue,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=o&&(h=this.addToHttpParams(h,o,"onlyDirectAdmins"));let b,m=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(m=m.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(m=m.set("Authorization","Bearer "+b));let j=u&&u.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(m=m.set("Accept",j));let ie=u&&u.context;void 0===ie&&(ie=new w.qT);let pe="json";return j&&(pe=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ie,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),li=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryCat(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryNR(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAuthorship(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"publicationId")),null!=t&&(o=this.addToHttpParams(o,t,"userId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findAllAuthors(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}findAuthorsByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findExternalPublications(e,t,r,l,d="body",o=!1,s){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==l)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"yearSince")),null!=r&&(c=this.addToHttpParams(c,r,"yearTill")),null!=l&&(c=this.addToHttpParams(c,l,"pubSysNamespace"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}findNewAuthors(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationsByFilter(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"yearSince")),null!=r&&(s=this.addToHttpParams(s,r,"yearTill")),null!=e&&(s=this.addToHttpParams(s,e,"userId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findPublicationsByGUIFilter(e,t,r,l,d,o,s,c,u,h="body",m=!1,b){let j=new w.LE({encoder:this.encoder});null!=e&&(j=this.addToHttpParams(j,e,"title")),null!=t&&(j=this.addToHttpParams(j,t,"isbn")),null!=r&&(j=this.addToHttpParams(j,r,"doi")),null!=l&&(j=this.addToHttpParams(j,l,"id")),null!=d&&(j=this.addToHttpParams(j,d,"year")),null!=o&&(j=this.addToHttpParams(j,o,"category")),null!=s&&(j=this.addToHttpParams(j,s,"yearSince")),null!=c&&(j=this.addToHttpParams(j,c,"yearTill")),null!=u&&(j=this.addToHttpParams(j,u,"userId"));let pe,ie=this.defaultHeaders;pe=this.configuration.lookupCredential("BasicAuth"),pe&&(ie=ie.set("Authorization","Basic "+pe)),pe=this.configuration.lookupCredential("BearerAuth"),pe&&(ie=ie.set("Authorization","Bearer "+pe));let Ue=b&&b.httpHeaderAccept;void 0===Ue&&(Ue=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ue&&(ie=ie.set("Accept",Ue));let Tt=b&&b.context;void 0===Tt&&(Tt=new w.qT);let at="json";return Ue&&(at=Ue.startsWith("text")?"text":this.configuration.isJsonMime(Ue)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{context:Tt,params:j,responseType:at,withCredentials:this.configuration.withCredentials,headers:ie,observe:h,reportProgress:m})}findSimilarPublications(e,t,r,l="body",d=!1,o){let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"title")),null!=t&&(s=this.addToHttpParams(s,t,"doi")),null!=r&&(s=this.addToHttpParams(s,r,"isbn"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCategories(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPublicationSystems(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getRank(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichThanksByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}lockPublications(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$t=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"owner")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllOwners(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getOwnerById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getOwnerByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"owner"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),en=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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,l,d="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==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="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==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mr=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"password")),null!=r&&(s=this.addToHttpParams(s,r,"lang"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}changePasswordForLogin(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let u=new w.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"login")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let j=c&&c.context;void 0===j&&(j=new w.qT);let ie="json";return b&&(ie=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:j,params:u,responseType:ie,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}changePasswordForUser(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let u=new w.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let j=c&&c.context;void 0===j&&(j=new w.qT);let ie="json";return b&&(ie=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:j,params:u,responseType:ie,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}checkPasswordStrength(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"password")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createAlternativePassword(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"description")),null!=r&&(c=this.addToHttpParams(c,r,"loginNamespace")),null!=l&&(c=this.addToHttpParams(c,l,"password"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrsNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="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 c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ie=>{c=this.addToHttpParams(c,ie,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!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 w.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,o,s="body",c=!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 h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=o&&(h=this.addToHttpParams(h,o,"idpFilter"));let b,m=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(m=m.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(m=m.set("Authorization","Bearer "+b));let j=u&&u.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(m=m.set("Accept",j));let ie=u&&u.context;void 0===ie&&(ie=new w.qT);let pe="json";return j&&(pe=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ie,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:c})}reservePasswordForLogin(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reservePasswordForUser(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reserveRandomPassword(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){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 w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,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 Re}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ju=(()=>{class n{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:n,providers:[{provide:Ge,useFactory:e}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12),i.LFG(w.eN,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[]]}),n})();var At=(()=>{return(n=At||(At={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",At;var n})();let na=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const o of r)l=l.concat(o.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER,At.FACILITYADMIN,At.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(At.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(At.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(At.PERUNADMIN,At.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(At.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(At.PERUNADMIN,At.VOOBSERVER,At.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{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.roleName)}),e.sort(),"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 l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],o=[],s=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),o=o.concat(b.privilegedRolesToManage);for(const j of Object.keys(b.entitiesToManage))s="User"===j?[j].concat(s):s.concat(j);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(o,c);r.set(l,{readAuth:u,manageAuth:h,modes:s})}}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""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const o=r[d];if(null===o)this.principalRoles.has(d)||(l=!1);else if(t[o]){for(const s of t[o])if(!this.principalHasRole(d,o,s)){l=!1;break}}else l=!1;if(!l)break}if(l)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 l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){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 d=r.shift();if(t.has(d))continue;const o=this.getPerunPolicy(d);if(!o)return[];t.set(d,o),r=r.concat(o.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{let e;try{e=n()}catch(r){return void a.error(r)}return(e?(0,dn.D)(e):(0,ur.c)()).subscribe(a)})}var Ws=x(1762),dt=x(4850),nn=x(7545),jt=x(2986),ls=x(2866);function Wt(...n){const a=n[n.length-1];return(0,ls.K)(a)?(n.pop(),e=>Tn(n,e,a)):e=>Tn(n,e)}var Yn=x(3489);function zl(n,a){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new xn(n,a,e))}}class xn{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new ql(a,this.accumulator,this.seed,this.hasSeed))}}class ql extends Yn.L{constructor(a,e,t,r){super(a),this.accumulator=e,this._seed=t,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}var Un=x(7221),Er=x(1406),ci=x(4231);function ra(n){return function(e){return 0===n?(0,ur.c)():e.lift(new aa(n))}}class aa{constructor(a){if(this.total=a,this.total<0)throw new ci.W}call(a,e){return e.subscribe(new Gl(a,this.total))}}class Gl extends Yn.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,r=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,r=this.ring;for(let l=0;la.lift(new Qe(n))}class Qe{constructor(a){this.callback=a}call(a,e){return e.subscribe(new Xt(a,this.callback))}}class Xt extends Yn.L{constructor(a,e){super(a),this.add(new he.w(e))}}class Rt{constructor(a,e){this.id=a,this.url=e}}class yt extends Rt{constructor(a,e,t="imperative",r=null){super(a,e),this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wt extends Rt{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pi extends Rt{constructor(a,e,t){super(a,e),this.reason=t}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class di extends Rt{constructor(a,e,t){super(a,e),this.error=t}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mi extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sa extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hr extends Rt{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rt extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cs extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lo{constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $s{constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Io{constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ku{constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Js{constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hf{constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Me{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ye="primary";class Wl{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 gi(n){return new Wl(n)}const id="ngNavigationCancelingError";function ds(n){const a=Error("NavigationCancelingError: "+n);return a[id]=!0,a}function Zl(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function Oo(n){return Array.prototype.concat.apply([],n)}function Bo(n){return n.length>0?n[n.length-1]:null}function ui(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function pr(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,dn.D)(Promise.resolve(n)):(0,Ne.of)(n)}const zn={exact:function Vo(n,a,e){if(!Pa(n.segments,a.segments)||!us(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Vo(n.children[t],a.children[t],e))return!1;return!0},subset:Xs},Xu={exact:function kf(n,a){return Hr(n,a)},subset:function Ks(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>ai(n[e],a[e]))},ignored:()=>!0};function rd(n,a,e){return zn[e.paths](n.root,a.root,e.matrixParams)&&Xu[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function Xs(n,a,e){return ad(n,a,a.segments,e)}function ad(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Pa(r,e)||a.hasChildren()||!us(r,e,t))}if(n.segments.length===e.length){if(!Pa(n.segments,e)||!us(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!Xs(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(Pa(n.segments,r)&&us(n.segments,r,t)&&n.children[Ye])&&ad(n.children[Ye],a,l,t)}}function us(n,a,e){return a.every((t,r)=>Xu[e](n[r].parameters,t.parameters))}class hs{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return Pf.serialize(this)}}class Lt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ui(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jl(this)}}class kr{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=gi(this.parameters)),this._parameterMap}toString(){return Xn(this)}}function Pa(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}class sd{}class jo{parse(a){const e=new Yo(a);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ui(a.root,!0)}`,t=function No(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${hi(e)}=${hi(r)}`).join("&"):`${hi(e)}=${hi(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function th(n){return encodeURI(n)}(a.fragment)}`:""}`}}const Pf=new jo;function Jl(n){return n.segments.map(a=>Xn(a)).join("/")}function Ui(n,a){if(!n.hasChildren())return Jl(n);if(a){const e=n.children[Ye]?Ui(n.children[Ye],!1):"",t=[];return ui(n.children,(r,l)=>{l!==Ye&&t.push(`${l}:${Ui(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function eh(n,a){let e=[];return ui(n.children,(t,r)=>{r===Ye&&(e=e.concat(a(t,r)))}),ui(n.children,(t,r)=>{r!==Ye&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===Ye?[Ui(n.children[Ye],!1)]:[`${r}:${Ui(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ye]?`${Jl(n)}/${e[0]}`:`${Jl(n)}/(${e.join("//")})`}}function oa(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hi(n){return oa(n).replace(/%3B/gi,";")}function Ql(n){return oa(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fo(n){return decodeURIComponent(n)}function ih(n){return Fo(n.replace(/\+/g,"%20"))}function Xn(n){return`${Ql(n.path)}${function ps(n){return Object.keys(n).map(a=>`;${Ql(a)}=${Ql(n[a])}`).join("")}(n.parameters)}`}const Kl=/^[^\/()?;=#]+/;function Ra(n){const a=n.match(Kl);return a?a[0]:""}const Xl=/^[^=?&#]+/,Rf=/^[^&#]+/;class Yo{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Lt([],{}):new Lt([],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[Ye]=new Lt(a,e)),t}parseSegment(){const a=Ra(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new kr(Fo(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Ra(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Ra(this.remaining);r&&(t=r,this.capture(t))}a[Fo(e)]=Fo(t)}parseQueryParam(a){const e=function nh(n){const a=n.match(Xl);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function la(n){const a=n.match(Rf);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=ih(e),l=ih(t);if(a.hasOwnProperty(r)){let d=a[r];Array.isArray(d)||(d=[d],a[r]=d),d.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Ra(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let l;t.indexOf(":")>-1?(l=t.substr(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=Ye);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[Ye]:new Lt([],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 Error(`Expected "${a}".`)}}class rh{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=od(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=od(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=fs(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return fs(a,this._root).map(e=>e.value)}}function od(n,a){if(n===a.value)return a;for(const e of a.children){const t=od(n,e);if(t)return t}return null}function fs(n,a){if(n===a.value)return[a];for(const e of a.children){const t=fs(n,e);if(t.length)return t.unshift(a),t}return[]}class fr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function eo(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class ah extends rh{constructor(a,e){super(a),this.snapshot=e,gs(this,a)}toString(){return this.snapshot.toString()}}function Lf(n,a){const e=function V_(n,a){const d=new ms([],{},{},"",{},Ye,a,null,n.root,-1,{});return new dd("",new fr(d,[]))}(n,a),t=new $i([new kr("",{})]),r=new $i({}),l=new $i({}),d=new $i({}),o=new $i(""),s=new yn(t,r,d,o,l,Ye,a,e.root);return s.snapshot=e.root,new ah(new fr(s,[]),e)}class yn{constructor(a,e,t,r,l,d,o,s){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this._futureSnapshot=s}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,dt.U)(a=>gi(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,dt.U)(a=>gi(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ld(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function cd(n){return n.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class ms{constructor(a,e,t,r,l,d,o,s,c,u,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,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=gi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dd extends rh{constructor(a,e){super(e),this.url=a,gs(this,e)}toString(){return _s(this._root)}}function gs(n,a){a.value._routerState=n,a.children.forEach(e=>gs(n,e))}function _s(n){const a=n.children.length>0?` { ${n.children.map(_s).join(", ")} } `:"";return`${n.value}${a}`}function ud(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Hr(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),Hr(a.params,e.params)||n.params.next(e.params),function nd(n,a){if(n.length!==a.length)return!1;for(let e=0;eHr(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||La(n.parent,a.parent))}function Ia(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function j_(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Ia(n,t,r);return Ia(n,t)})}(n,a,e);return new fr(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(o=>Ia(n,o)),d}}const t=function sh(n){return new yn(new $i(n.url),new $i(n.params),new $i(n.queryParams),new $i(n.fragment),new $i(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>Ia(n,l));return new fr(t,r)}}function Uo(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function to(n){return"object"==typeof n&&null!=n&&n.outlets}function Oa(n,a,e,t,r){let l={};return t&&ui(t,(d,o)=>{l[o]=Array.isArray(d)?d.map(s=>`${s}`):`${d}`}),new hs(e.root===n?a:bs(e.root,n,a),l,r)}function bs(n,a,e){const t={};return ui(n.children,(r,l)=>{t[l]=r===a?e:bs(r,a,e)}),new Lt(n.segments,t)}class ca{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Uo(t[0]))throw new Error("Root segment cannot have matrix parameters");const r=t.find(to);if(r&&r!==Bo(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ws{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function md(n,a,e){if(n||(n=new Lt([],{})),0===n.segments.length&&n.hasChildren())return zo(n,a,e);const t=function If(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],o=e[t];if(to(o))break;const s=`${o}`,c=t0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!lh(s,c,d))return l;t+=2}else{if(!lh(s,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=md(n.children[d],a,l))}),ui(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Lt(n.segments,r)}}function gd(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=gd(new Lt([],{}),0,e))}),a}function no(n){const a={};return ui(n,(e,t)=>a[t]=`${e}`),a}function lh(n,a,e){return n==e.path&&Hr(a,e.parameters)}class dh{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),ud(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=eo(e);a.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),ui(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else l&&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,l=eo(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:o})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=eo(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],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=eo(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new Hf(l.value.snapshot))}),a.children.length&&this.forwardEvent(new Ku(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(ud(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(o.contexts),d.attachRef=o.componentRef,d.route=o.route.value,d.outlet&&d.outlet.attach(o.componentRef,o.route.value),ud(o.route.value),this.activateChildRoutes(a,null,d.children)}else{const o=function ro(n){for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=o?o.module.componentFactoryResolver:null;d.attachRef=null,d.route=r,d.resolver=s,d.outlet&&d.outlet.activateWith(r,s),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class tc{constructor(a,e){this.routes=a,this.module=e}}function Pr(n){return"function"==typeof n}function er(n){return n instanceof hs}const Rr=Symbol("INITIAL_VALUE");function ic(){return(0,nn.w)(n=>(0,ka.aj)(n.map(a=>a.pipe((0,jt.q)(1),Wt(Rr)))).pipe(zl((a,e)=>{let t=!1;return e.reduce((r,l,d)=>r!==Rr?r:(l===Rr&&(t=!0),t||!1!==l&&d!==e.length-1&&!er(l)?r:l),a)},Rr),(0,zt.h)(a=>a!==Rr),(0,dt.U)(a=>er(a)?a:!0===a),(0,jt.q)(1)))}class Of{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new si,this.attachRef=null}}class si{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new Of,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let oo=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=l||Ye,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){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.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const 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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;const d=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),o=this.parentContexts.getOrCreateContext(this.name).children,s=new F_(e,o,this.location.injector);this.activated=this.location.createComponent(d,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(si),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class F_{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===yn?this.route:a===si?this.childContexts:this.parent.get(a,e)}}let Bf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[oo],encapsulation:2}),n})();function Vf(n,a=""){for(let e=0;eun(t)===a);return e.push(...n.filter(t=>un(t)!==a)),e}const ji={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function lo(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},ji):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const l=(a.matcher||Zl)(e,n,a);if(!l)return Object.assign({},ji);const d={};ui(l.posParams,(s,c)=>{d[c]=s.path});const o=l.consumed.length>0?Object.assign(Object.assign({},d),l.consumed[l.consumed.length-1].parameters):d;return{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:o,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function Ba(n,a,e,t,r="corrected"){if(e.length>0&&function tr(n,a,e){return e.some(t=>qo(n,a,t)&&un(t)!==Ye)}(n,e,t)){const d=new Lt(a,function Nf(n,a,e,t){const r={};r[Ye]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&un(l)!==Ye){const d=new Lt([],{});d._sourceSegment=n,d._segmentIndexShift=a.length,r[un(l)]=d}return r}(n,a,t,new Lt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function mr(n,a,e){return e.some(t=>qo(n,a,t))}(n,e,t)){const d=new Lt(n.segments,function Ff(n,a,e,t,r,l){const d={};for(const o of t)if(qo(n,e,o)&&!r[un(o)]){const s=new Lt([],{});s._sourceSegment=n,s._segmentIndexShift="legacy"===l?n.segments.length:a.length,d[un(o)]=s}return Object.assign(Object.assign({},r),d)}(n,a,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const l=new Lt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function qo(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Go(n,a,e,t){return!!(un(n)===t||t!==Ye&&qo(a,e,n))&&("**"===n.path||lo(a,n,e).matched)}function co(n,a,e){return 0===a.length&&!n.children[e]}class qn{constructor(a){this.segmentGroup=a||null}}class wd{constructor(a){this.urlTree=a}}function nc(n){return new ki.y(a=>a.error(new qn(n)))}function Yf(n){return new ki.y(a=>a.error(new wd(n)))}function N_(n){return new ki.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class Cd{constructor(a,e,t,r,l){this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0,this.ngModule=a.get(i.h0i)}apply(){const a=Ba(this.urlTree.root,[],[],this.config).segmentGroup,e=new Lt(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ye).pipe((0,dt.U)(l=>this.createUrlTree(Yt(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Un.K)(l=>{if(l instanceof wd)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof qn?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,Ye).pipe((0,dt.U)(r=>this.createUrlTree(Yt(r),a.queryParams,a.fragment))).pipe((0,Un.K)(r=>{throw r instanceof qn?this.noMatchError(r):r}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const r=a.segments.length>0?new Lt([],{[Ye]:a}):a;return new hs(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,dt.U)(l=>new Lt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,dn.D)(r).pipe((0,Er.b)(l=>{const d=t.children[l],o=jf(e,l);return this.expandSegmentGroup(a,o,d,l).pipe((0,dt.U)(s=>({segment:s,outlet:l})))}),zl((l,d)=>(l[d.outlet]=d.segment,l),{}),function B(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,zt.h)((r,l)=>n(r,l,t)):fi.y,ra(1),e?(0,Df.d)(a):(0,Zs.T)(()=>new td.K))}())}expandSegment(a,e,t,r,l,d){return(0,dn.D)(t).pipe((0,Er.b)(o=>this.expandSegmentAgainstRoute(a,e,t,o,r,l,d).pipe((0,Un.K)(c=>{if(c instanceof qn)return(0,Ne.of)(null);throw c}))),(0,W.P)(o=>!!o),(0,Un.K)((o,s)=>{if(o instanceof td.K||"EmptyError"===o.name){if(co(e,r,l))return(0,Ne.of)(new Lt([],{}));throw new qn(e)}throw o}))}expandSegmentAgainstRoute(a,e,t,r,l,d,o){return Go(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,d):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d):nc(e):nc(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Yf(l):this.lineralizeSegments(t,l).pipe((0,O.zg)(d=>{const o=new Lt(d,{});return this.expandSegment(a,o,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){const{matched:o,consumedSegments:s,lastChild:c,positionalParamSegments:u}=lo(e,r,l);if(!o)return nc(e);const h=this.applyRedirectCommands(s,r.redirectTo,u);return r.redirectTo.startsWith("/")?Yf(h):this.lineralizeSegments(r,h).pipe((0,O.zg)(m=>this.expandSegment(a,e,t,m.concat(l.slice(c)),d,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,Ne.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,dt.U)(m=>(t._loadedConfig=m,new Lt(r,{})))):(0,Ne.of)(new Lt(r,{}));const{matched:d,consumedSegments:o,lastChild:s}=lo(e,t,r);if(!d)return nc(e);const c=r.slice(s);return this.getChildConfig(a,t,r).pipe((0,O.zg)(h=>{const m=h.module,b=h.routes,{segmentGroup:j,slicedSegments:ie}=Ba(e,o,c,b),pe=new Lt(j.segments,j.children);if(0===ie.length&&pe.hasChildren())return this.expandChildren(m,b,pe).pipe((0,dt.U)(Ut=>new Lt(o,Ut)));if(0===b.length&&0===ie.length)return(0,Ne.of)(new Lt(o,{}));const Ue=un(t)===l;return this.expandSegment(m,pe,b,ie,Ue?Ye:l,!0).pipe((0,dt.U)(at=>new Lt(o.concat(at.segments),at.children)))}))}getChildConfig(a,e,t){return e.children?(0,Ne.of)(new tc(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,Ne.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,O.zg)(r=>r?this.configLoader.load(a.injector,e).pipe((0,dt.U)(l=>(e._loadedConfig=l,l))):function Pe(n){return new ki.y(a=>a.error(ds(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):(0,Ne.of)(new tc([],a))}runCanLoadGuards(a,e,t){const r=e.canLoad;if(!r||0===r.length)return(0,Ne.of)(!0);const l=r.map(d=>{const o=a.get(d);let s;if(function ao(n){return n&&Pr(n.canLoad)}(o))s=o.canLoad(e,t);else{if(!Pr(o))throw new Error("Invalid CanLoad guard");s=o(e,t)}return pr(s)});return(0,Ne.of)(l).pipe(ic(),(0,Q.b)(d=>{if(!er(d))return;const o=ds(`Redirecting to "${this.urlSerializer.serialize(d)}"`);throw o.url=d,o}),(0,dt.U)(d=>!0===d))}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ne.of)(t);if(r.numberOfChildren>1||!r.children[Ye])return N_(a.redirectTo);r=r.children[Ye]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new hs(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ui(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const o=r.substring(1);t[l]=e[o]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let d={};return ui(e.children,(o,s)=>{d[s]=this.createSegmentGroup(a,o,t,r)}),new Lt(l,d)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);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}}function Yt(n){const a={};for(const t of Object.keys(n.children)){const l=Yt(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Cs(n){if(1===n.numberOfChildren&&n.children[Ye]){const a=n.children[Ye];return new Lt(n.segments.concat(a.segments),a.children)}return n}(new Lt(n.segments,a))}class Ad{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class uo{constructor(a,e){this.component=a,this.route=e}}function Uf(n,a,e){const t=n._root;return As(t,a?a._root:null,e,[t.value])}function rc(n,a,e){const t=function fh(n){if(!n)return null;for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(n)}function As(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=eo(a);return n.children.forEach(d=>{(function ir(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=a?a.value:null,o=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const s=function Y_(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!Pa(n.url,a.url);case"pathParamsOrQueryParamsChange":return!Pa(n.url,a.url)||!Hr(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!La(n,a)||!Hr(n.queryParams,a.queryParams);default:return!La(n,a)}}(d,l,l.routeConfig.runGuardsAndResolvers);s?r.canActivateChecks.push(new Ad(t)):(l.data=d.data,l._resolvedData=d._resolvedData),As(n,a,l.component?o?o.children:null:e,t,r),s&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new uo(o.outlet.component,d))}else d&&Lr(a,o,r),r.canActivateChecks.push(new Ad(t)),As(n,null,l.component?o?o.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),ui(l,(d,o)=>Lr(d,e.getContext(o),r)),r}function Lr(n,a,e){const t=eo(n),r=n.value;ui(t,(l,d)=>{Lr(l,r.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new uo(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}class Ir{}function _h(n){return new ki.y(a=>a.error(n))}class bh{constructor(a,e,t,r,l,d){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=r,this.paramsInheritanceStrategy=l,this.relativeLinkResolution=d}recognize(){const a=Ba(this.urlTree.root,[],[],this.config.filter(d=>void 0===d.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,Ye);if(null===e)return null;const t=new ms([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ye,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new fr(t,e),l=new dd(this.url,r);return this.inheritParamsAndData(l._root),l}inheritParamsAndData(a){const e=a.value,t=ld(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){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const l of Object.keys(e.children)){const d=e.children[l],o=jf(a,l),s=this.processSegmentGroup(o,d,l);if(null===s)return null;t.push(...s)}const r=yh(t);return function Wf(n){n.sort((a,e)=>a.value.outlet===Ye?-1:e.value.outlet===Ye?1:a.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(a,e,t,r){for(const l of a){const d=this.processSegmentAgainstRoute(l,e,t,r);if(null!==d)return d}return co(e,t,r)?[]:null}processSegmentAgainstRoute(a,e,t,r){if(a.redirectTo||!Go(a,e,t,r))return null;let l,d=[],o=[];if("**"===a.path){const b=t.length>0?Bo(t).parameters:{};l=new ms(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Va(a),un(a),a.component,a,wh(e),ho(e)+t.length,da(a))}else{const b=lo(e,a,t);if(!b.matched)return null;d=b.consumedSegments,o=t.slice(b.lastChild),l=new ms(d,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Va(a),un(a),a.component,a,wh(e),ho(e)+d.length,da(a))}const s=function Td(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(a),{segmentGroup:c,slicedSegments:u}=Ba(e,d,o,s.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const b=this.processChildren(s,c);return null===b?null:[new fr(l,b)]}if(0===s.length&&0===u.length)return[new fr(l,[])];const h=un(a)===r,m=this.processSegment(s,c,u,h?Ye:r);return null===m?null:[new fr(l,m)]}}function $o(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function yh(n){const a=[],e=new Set;for(const t of n){if(!$o(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=yh(t.children);a.push(new fr(t.value,r))}return a.filter(t=>!e.has(t))}function wh(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function ho(n){let a=n,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function Va(n){return n.data||{}}function da(n){return n.resolve||{}}function Jo(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Md(n){return(0,nn.w)(a=>{const e=n(a);return e?(0,dn.D)(e).pipe((0,dt.U)(()=>a)):(0,Ne.of)(a)})}class Or extends class Mn{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Sd=new i.OlP("ROUTES");class Jf{constructor(a,e,t,r){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=r}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe((0,dt.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e);const d=l.create(a);return new tc(Oo(d.injector.get(Sd,void 0,i.XFs.Self|i.XFs.Optional)).map(ph),d)}),(0,Un.K)(l=>{throw e._loader$=void 0,l}));return e._loader$=new Ws.c(r,()=>new Ee.xQ).pipe((0,re.x)()),e._loader$}loadModuleFactory(a){return pr(a()).pipe((0,O.zg)(e=>e instanceof i.YKP?(0,Ne.of)(e):(0,dn.D)(this.compiler.compileModuleAsync(e))))}}class Qf{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function z_(n){throw n}function Ed(n,a,e){return a.parse("/")}function vs(n,a){return(0,Ne.of)(null)}const oc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ot={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let C=(()=>{class n{constructor(e,t,r,l,d,o,s){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ee.xQ,this.errorHandler=z_,this.malformedUriErrorHandler=Ed,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vs,afterPreactivation:vs},this.urlHandlingStrategy=new Qf,this.routeReuseStrategy=new Or,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=function Qs(){return new hs(new Lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Jf(d,o,m=>this.triggerEvent(new Lo(m)),m=>this.triggerEvent(new $s(m))),this.routerState=Lf(this.currentUrlTree,this.rootComponentType),this.transitions=new $i({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,zt.h)(r=>0!==r.id),(0,dt.U)(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,nn.w)(r=>{let l=!1,d=!1;return(0,Ne.of)(r).pipe((0,Q.b)(o=>{this.currentNavigation={id:o.id,initialUrl:o.currentRawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,nn.w)(o=>{const s=this.browserUrlTree.toString(),c=!this.navigated||o.extractedUrl.toString()!==s||s!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return I(o.source)&&(this.browserUrlTree=o.extractedUrl),(0,Ne.of)(o).pipe((0,nn.w)(h=>{const m=this.transitions.getValue();return t.next(new yt(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),m!==this.transitions.getValue()?ur.E:Promise.resolve(h)}),function Wo(n,a,e,t){return(0,nn.w)(r=>function Gn(n,a,e,t,r){return new Cd(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,dt.U)(l=>Object.assign(Object.assign({},r),{urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Q.b)(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function po(n,a,e,t,r){return(0,O.zg)(l=>function Ji(n,a,e,t,r="emptyOnly",l="legacy"){try{const d=new bh(n,a,e,t,r,l).recognize();return null===d?_h(new Ir):(0,Ne.of)(d)}catch(d){return _h(d)}}(n,a,l.urlAfterRedirects,e(l.urlAfterRedirects),t,r).pipe((0,dt.U)(d=>Object.assign(Object.assign({},l),{targetSnapshot:d}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Q.b)(h=>{if("eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const m=new mi(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(m)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:m,extractedUrl:b,source:j,restoredState:ie,extras:pe}=o,Ue=new yt(m,this.serializeUrl(b),j,ie);t.next(Ue);const Tt=Lf(b,this.rootComponentType).snapshot;return(0,Ne.of)(Object.assign(Object.assign({},o),{targetSnapshot:Tt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},pe),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=o.rawUrl,o.resolve(null),ur.E}),Md(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:m,replaceUrl:b}}=o;return this.hooks.beforePreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!m,replaceUrl:!!b})}),(0,Q.b)(o=>{const s=new sa(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}),(0,dt.U)(o=>Object.assign(Object.assign({},o),{guards:Uf(o.targetSnapshot,o.currentSnapshot,this.rootContexts)})),function vd(n,a){return(0,O.zg)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,Ne.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function ac(n,a,e,t){return(0,dn.D)(n).pipe((0,O.zg)(r=>function Zo(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Ne.of)(!0);const d=l.map(o=>{const s=rc(o,a,r);let c;if(function bd(n){return n&&Pr(n.canDeactivate)}(s))c=pr(s.canDeactivate(n,a,e,t));else{if(!Pr(s))throw new Error("Invalid CanDeactivate guard");c=pr(s(n,a,e,t))}return c.pipe((0,W.P)())});return(0,Ne.of)(d).pipe(ic())}(r.component,r.route,e,a,t)),(0,W.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,O.zg)(o=>o&&function _d(n){return"boolean"==typeof n}(o)?function mh(n,a,e,t){return(0,dn.D)(a).pipe((0,Er.b)(r=>Tn(function gh(n,a){return null!==n&&a&&a(new Io(n)),(0,Ne.of)(!0)}(r.route.parent,t),function qf(n,a){return null!==n&&a&&a(new Js(n)),(0,Ne.of)(!0)}(r.route,t),function Gf(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(d=>function zf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(d)).filter(d=>null!==d).map(d=>Kn(()=>{const o=d.guards.map(s=>{const c=rc(s,d.node,e);let u;if(function uh(n){return n&&Pr(n.canActivateChild)}(c))u=pr(c.canActivateChild(t,n));else{if(!Pr(c))throw new Error("Invalid CanActivateChild guard");u=pr(c(t,n))}return u.pipe((0,W.P)())});return(0,Ne.of)(o).pipe(ic())}));return(0,Ne.of)(l).pipe(ic())}(n,r.path,e),function sc(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ne.of)(!0);const r=t.map(l=>Kn(()=>{const d=rc(l,a,e);let o;if(function so(n){return n&&Pr(n.canActivate)}(d))o=pr(d.canActivate(a,n));else{if(!Pr(d))throw new Error("Invalid CanActivate guard");o=pr(d(a,n))}return o.pipe((0,W.P)())}));return(0,Ne.of)(r).pipe(ic())}(n,r.route,e))),(0,W.P)(r=>!0!==r,!0))}(t,l,n,a):(0,Ne.of)(o)),(0,dt.U)(o=>Object.assign(Object.assign({},e),{guardsResult:o})))})}(this.ngModule.injector,o=>this.triggerEvent(o)),(0,Q.b)(o=>{if(er(o.guardsResult)){const c=ds(`Redirecting to "${this.serializeUrl(o.guardsResult)}"`);throw c.url=o.guardsResult,c}const s=new hr(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.triggerEvent(s)}),(0,zt.h)(o=>!!o.guardsResult||(this.restoreHistory(o),this.cancelNavigationTransition(o,""),!1)),Md(o=>{if(o.guards.canActivateChecks.length)return(0,Ne.of)(o).pipe((0,Q.b)(s=>{const c=new rt(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),(0,nn.w)(s=>{let c=!1;return(0,Ne.of)(s).pipe(function Zf(n,a){return(0,O.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ne.of)(e);let l=0;return(0,dn.D)(r).pipe((0,Er.b)(d=>function Ch(n,a,e,t){return function xd(n,a,e,t){const r=Jo(n);if(0===r.length)return(0,Ne.of)({});const l={};return(0,dn.D)(r).pipe((0,O.zg)(d=>function Ah(n,a,e,t){const r=rc(n,a,t);return pr(r.resolve?r.resolve(a,e):r(a,e))}(n[d],a,e,t).pipe((0,Q.b)(o=>{l[d]=o}))),ra(1),(0,O.zg)(()=>Jo(l).length===r.length?(0,Ne.of)(l):ur.E))}(n._resolve,n,a,t).pipe((0,dt.U)(l=>(n._resolvedData=l,n.data=Object.assign(Object.assign({},n.data),ld(n,e).resolve),null)))}(d.route,t,n,a)),(0,Q.b)(()=>l++),ra(1),(0,O.zg)(d=>l===r.length?(0,Ne.of)(e):ur.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Q.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(s),this.cancelNavigationTransition(s,"At least one route resolver didn't emit any value."))}}))}),(0,Q.b)(s=>{const c=new cs(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}))}),Md(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:m,replaceUrl:b}}=o;return this.hooks.afterPreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!m,replaceUrl:!!b})}),(0,dt.U)(o=>{const s=function hd(n,a,e){const t=Ia(n,a._root,e?e._root:void 0);return new ah(t,a)}(this.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return Object.assign(Object.assign({},o),{targetRouterState:s})}),(0,Q.b)(o=>{this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects)}),((n,a,e)=>(0,dt.U)(t=>(new dh(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,o=>this.triggerEvent(o)),(0,Q.b)({next(){l=!0},complete(){l=!0}}),ve(()=>{var o;l||d||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(o=this.currentNavigation)||void 0===o?void 0:o.id)===r.id&&(this.currentNavigation=null)}),(0,Un.K)(o=>{if(d=!0,function Dr(n){return n&&n[id]}(o)){const s=er(o.url);s||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Pi(r.id,this.serializeUrl(r.extractedUrl),o.message);t.next(c),s?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(o.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||I(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const s=new di(r.id,this.serializeUrl(r.extractedUrl),o);t.next(s);try{r.resolve(this.errorHandler(o))}catch(c){r.reject(c)}}return ur.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},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 l={replaceUrl:!0},d=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(d){const s=Object.assign({},d);delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(l.state=s)}const o=this.parseUrl(e.url);this.scheduleNavigation(o,t,d,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Vf(e),this.config=e.map(ph),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:l,fragment:d,queryParamsHandling:o,preserveFragment:s}=t,c=r||this.routerState.root,u=s?this.currentUrlTree.fragment:d;let h=null;switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),l);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),function oh(n,a,e,t,r){if(0===e.length)return Oa(a.root,a.root,a,t,r);const l=function ys(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ca(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const o={};return ui(l.outlets,(s,c)=>{o[c]="string"==typeof s?s.split("/"):s}),[...r,{outlets:o}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((o,s)=>{0==s&&"."===o||(0==s&&""===o?e=!0:".."===o?a++:""!=o&&r.push(o))}),r):[...r,l]},[]);return new ca(e,a,t)}(e);if(l.toRoot())return Oa(a.root,new Lt([],{}),a,t,r);const d=function io(n,a,e){if(n.isAbsolute)return new ws(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const l=e.snapshot._urlSegment;return new ws(l,l===a.root,0)}const t=Uo(n.commands[0])?0:1;return function pd(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new Error("Invalid number of '../'");r=t.segments.length}return new ws(t,!1,r-l)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,n.numberOfDoubleDots)}(l,a,n),o=d.processChildren?zo(d.segmentGroup,d.index,l.commands):md(d.segmentGroup,d.index,l.commands);return Oa(d.segmentGroup,o,a,t,r)}(c,this.currentUrlTree,e,h,null!=u?u:null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=er(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function H(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new wt(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){var o,s,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,h=I(t)&&u&&!I(u.source),m=u.rawUrl.toString()===e.toString(),b=u.id===(null===(o=this.currentNavigation)||void 0===o?void 0:o.id);if(h&&m&&b)return Promise.resolve(!0);let ie,pe,Ue;d?(ie=d.resolve,pe=d.reject,Ue=d.promise):Ue=new Promise((Ut,Ca)=>{ie=Ut,pe=Ca});const Tt=++this.navigationId;let at;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),at=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):at=0,this.setTransition({id:Tt,targetPageId:at,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:ie,reject:pe,promise:Ue,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ue.catch(Ut=>Promise.reject(Ut))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){var r,l;if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===d?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===d&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}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){const r=new Pi(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function I(n){return"imperative"!==n}let F=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new Ee.xQ,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:ae(this.skipLocationChange),replaceUrl:ae(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:ae(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C),i.Y36(yn),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.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:[i.TTD]}),n})(),J=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Ee.xQ,this.subscription=e.events.subscribe(l=>{l instanceof wt&&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,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const o={skipLocationChange:ae(this.skipLocationChange),replaceUrl:ae(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!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:ae(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C),i.Y36(yn),i.Y36(T.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();function ae(n){return""===n||!!n}class vt{}class Ci{preload(a,e){return(0,Ne.of)(null)}}let Br=(()=>{class n{constructor(e,t,r,l){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=new Jf(r,t,s=>e.triggerEvent(new Lo(s)),s=>e.triggerEvent(new $s(s)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,zt.h)(e=>e instanceof wt),(0,Er.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const d=l._loadedConfig;r.push(this.processRoutes(d.module,d.routes))}else l.loadChildren&&!l.canLoad?r.push(this.preloadConfig(e,l)):l.children&&r.push(this.processRoutes(e,l.children));return(0,dn.D)(r).pipe((0,Gs.J)(),(0,dt.U)(l=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,Ne.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,O.zg)(l=>(t._loadedConfig=l,this.processRoutes(l.module,l.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(vt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Vr=(()=>{class n{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 yt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof wt&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Me&&(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 Me(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Qo=new i.OlP("ROUTER_CONFIGURATION"),q_=new i.OlP("ROUTER_FORROOT_GUARD"),Ts=[T.Ye,{provide:sd,useClass:jo},{provide:C,useFactory:function QC(n,a,e,t,r,l,d={},o,s){const c=new C(null,n,a,e,t,r,Oo(l));return o&&(c.urlHandlingStrategy=o),s&&(c.routeReuseStrategy=s),function W_(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(d,c),d.enableTracing&&c.events.subscribe(u=>{var h,m;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(m=console.groupEnd)||void 0===m||m.call(console)}),c},deps:[sd,si,T.Ye,i.zs3,i.Sil,Sd,Qo,[class vh{},new i.FiY],[class $f{},new i.FiY]]},si,{provide:yn,useFactory:function KC(n){return n.routerState.root},deps:[C]},Br,Ci,class Qt{preload(a,e){return e().pipe((0,Un.K)(()=>(0,Ne.of)(null)))}},{provide:Qo,useValue:{enableTracing:!1}}];function lc(){return new i.PXZ("Router",C)}let Dd=(()=>{class n{constructor(e,t){}static forRoot(e,t){return{ngModule:n,providers:[Ts,G_(e),{provide:q_,useFactory:JC,deps:[[C,new i.FiY,new i.tp0]]},{provide:Qo,useValue:t||{}},{provide:T.S$,useFactory:$C,deps:[T.lw,[new i.tBr(T.mr),new i.FiY],Qo]},{provide:Vr,useFactory:ZC,deps:[C,T.EM,Qo]},{provide:vt,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Ci},{provide:i.PXZ,multi:!0,useFactory:lc},[Kf,{provide:i.ip1,multi:!0,useFactory:XC,deps:[Kf]},{provide:tA,useFactory:eA,deps:[Kf]},{provide:i.tb,multi:!0,useExisting:tA}]]}}static forChild(e){return{ngModule:n,providers:[G_(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(q_,8),i.LFG(C,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function ZC(n,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new Vr(n,a,e)}function $C(n,a,e={}){return e.useHash?new T.Do(n,a):new T.b0(n,a)}function JC(n){return"guarded"}function G_(n){return[{provide:i.deG,multi:!0,useValue:n},{provide:Sd,multi:!0,useValue:n}]}let Kf=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ee.xQ}appInitializer(){return this.injector.get(T.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const r=new Promise(o=>t=o),l=this.injector.get(C),d=this.injector.get(Qo);return"disabled"===d.initialNavigation?(l.setUpLocationChangeListener(),t(!0)):"enabled"===d.initialNavigation||"enabledBlocking"===d.initialNavigation?(l.hooks.afterPreactivation=()=>this.initNavigation?(0,Ne.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),l.initialNavigation()):t(!0),r})}bootstrapListener(e){const t=this.injector.get(Qo),r=this.injector.get(Br),l=this.injector.get(Vr),d=this.injector.get(C),o=this.injector.get(i.z2F);e===o.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&d.initialNavigation(),r.setUpPreloading(),l.init(),d.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function XC(n){return n.appInitializer.bind(n)}function eA(n){return n.bootstrapListener.bind(n)}const tA=new i.OlP("Router Initializer");let hn=(()=>{class n{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.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l(0,em.k)(r)?t(...r):t(r))):new ki.y(r=>{nA(n,a,function l(d){r.next(arguments.length>1?Array.prototype.slice.call(arguments):d)},r,e)})}function nA(n,a,e,t,r){let l;if(function rA(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const d=n;n.addEventListener(a,e,r),l=()=>d.removeEventListener(a,e,r)}else if(function $_(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const d=n;n.on(a,e),l=()=>d.off(a,e)}else if(function _M(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const d=n;n.addListener(a,e),l=()=>d.removeListener(a,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let d=0,o=n.length;d0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Q_=1;const rm=Promise.resolve(),xh={};function Fi(n){return n in xh&&(delete xh[n],!0)}const am={setImmediate(n){const a=Q_++;return xh[a]=!0,rm.then(()=>Fi(a)&&n()),a},clearImmediate(n){Fi(n)}},om=new class K_ extends nm.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,r=-1,l=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++r0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=am.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(am.clearImmediate(e),a.scheduled=void 0)}});var Mh=x(353),X_=x(826),eb=x(9054);class yM{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new wM(a,this.durationSelector))}}class wM extends X_.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(a)}catch(r){return this.destination.error(r)}const t=(0,eb.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Ko(n){return!(0,em.k)(n)&&n-parseFloat(n)+1>=0}function Sn(n=0,a,e){let t=-1;return Ko(a)?t=Number(a)<1?1:Number(a):(0,ls.K)(a)&&(e=a),(0,ls.K)(e)||(e=Mh.P),new ki.y(r=>{const l=Ko(n)?n:+n-e.now();return e.schedule(lm,l,{index:0,period:t,subscriber:r})})}function lm(n){const{index:a,period:e,subscriber:t}=n;if(t.next(a),!t.closed){if(-1===e)return t.complete();n.index=a+1,this.schedule(n,e)}}function cm(n,a=Mh.P){return function sA(n){return function(e){return e.lift(new yM(n))}}(()=>Sn(n,a))}function Je(n){return a=>a.lift(new En(n))}class En{constructor(a){this.notifier=a}call(a,e){const t=new Pd(a),r=(0,eb.D)(t,this.notifier);return r&&!t.seenValue?(t.add(r),e.subscribe(t)):t}}class Pd extends X_.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,r,l){this.seenValue=!0,this.complete()}notifyComplete(){}}let Rd;try{Rd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Rd=!1}let Xo,bi=(()=>{class n{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&&!Rd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const tb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function dm(){if(Xo)return Xo;if("object"!=typeof document||!document)return Xo=new Set(tb),Xo;let n=document.createElement("input");return Xo=new Set(tb.filter(a=>(n.setAttribute("type",a),n.type===a))),Xo}let Ld,Sh,xs,Od;function ja(n){return function ib(){if(null==Ld&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ld=!0}))}finally{Ld=Ld||!1}return Ld}()?n:!!n.capture}function nb(){if(null==xs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return xs=!1,xs;if("scrollBehavior"in document.documentElement.style)xs=!0;else{const n=Element.prototype.scrollTo;xs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return xs}function Id(){if("object"!=typeof document||!document)return 0;if(null==Sh){const n=document.createElement("div"),a=n.style;n.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",n.appendChild(e),document.body.appendChild(n),Sh=0,0===n.scrollLeft&&(n.scrollLeft=1,Sh=0===n.scrollLeft?1:2),n.remove()}return Sh}function Eh(n){if(function oA(){if(null==Od){const n="undefined"!=typeof document?document.head:null;Od=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Od}()){const a=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Fa(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function ha(n){return n.composedPath?n.composedPath()[0]:n.target}function um(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const lA=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function cA(){return(0,i.f3M)(T.K0)}}),dA=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let xi=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function rb(n){const a=(null==n?void 0:n.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?dA.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(lA,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Dh=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Ee.xQ,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 ki.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(cm(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ne.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,zt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=Qi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ua(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(bi),i.LFG(T.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hh=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new Ee.xQ,this._elementScrolled=new ki.y(d=>this.ngZone.runOutsideAngular(()=>ua(this.elementRef.nativeElement,"scroll").pipe(Je(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,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!=Id()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Id()?e.left=e.right:1==Id()&&(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;nb()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==Id()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==Id()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.R0b),i.Y36(xi,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Ya=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new Ee.xQ,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.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,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(cm(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 n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b),i.LFG(T.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),el=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc,cc,gr],dc,gr]}),n})();class jd{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 tl extends jd{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class fo extends jd{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}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 hm extends jd{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class pm{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof tl?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof fo?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof hm?(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 gA extends pm{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const o=d.element,s=this._document.createComment("dom-portal");o.parentNode.insertBefore(s,o),this.outletElement.appendChild(o),this._attachedPortal=d,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(o,s)})},this._document=l}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),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{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);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 _A=(()=>{class n extends fo{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.qOj]}),n})(),Ua=(()=>{class n extends pm{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,o=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(o,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(d,o)})},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,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,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);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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),il=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Mi=x(6787);class hb{constructor(a,e){this.predicate=a,this.inclusive=e}call(a,e){return e.subscribe(new pb(a,this.predicate,this.inclusive))}}class pb extends Yn.L{constructor(a,e,t){super(a),this.predicate=e,this.inclusive=t,this.index=0}_next(a){const e=this.destination;let t;try{t=this.predicate(a,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(a,t)}nextOrComplete(a,e){const t=this.destination;Boolean(e)?t.next(a):(this.inclusive&&t.next(a),t.complete())}}function Ki(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const Lb=nb();class Ib{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=zi(-this._previousScrollPosition.left),a.style.top=zi(-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,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Lb&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Lb&&(t.scrollBehavior=l,r.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 YA{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 nr{enable(){}disable(){}attach(){}}function wm(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function Ob(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class s0{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();wm(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 o0=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new nr,this.close=d=>new YA(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Ib(this._viewportRuler,this._document),this.reposition=d=>new s0(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Dh),i.LFG(Ya),i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class fc{constructor(a){if(this.scrollStrategy=new nr,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 Cm{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class zA{constructor(a,e,t,r,l,d,o,s,c){this._portalOutlet=a,this._host=e,this._pane=t,this._config=r,this._ngZone=l,this._keyboardDispatcher=d,this._document=o,this._location=s,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Ee.xQ,this._attachments=new Ee.xQ,this._detachments=new Ee.xQ,this._locationChanges=he.w.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new Ee.xQ,this._outsidePointerEvents=new Ee.xQ,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){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,jt.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),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=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},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=zi(this._config.width),a.height=zi(this._config.height),a.minWidth=zi(this._config.minWidth),a.minHeight=zi(this._config.minHeight),a.maxWidth=zi(this._config.maxWidth),a.maxHeight=zi(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._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const r=Hd(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(Je((0,Mi.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.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let Am=(()=>{class n{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||um()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;l{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let o of this._preferredPositions){let s=this._getOriginPoint(a,r,o),c=this._getOverlayPoint(s,e,o),u=this._getOverlayFit(c,e,t,o);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!d||d.overlayFit.visibleAreas&&(s=u,o=c)}return this._isPushed=!1,void this._applyPosition(o.position,o.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&&sl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vm),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,l;if("center"==t.originX)r=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,o=this._isRtl()?a.left:a.right;r="start"==t.originX?d:o}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=xm(e);let{x:d,y:o}=a,s=this._getOffset(r,"x"),c=this._getOffset(r,"y");s&&(d+=s),c&&(o+=c);let m=0-o,b=o+l.height-t.height,j=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ie=this._subtractOverflows(l.height,m,b),pe=j*ie;return{visibleArea:pe,isCompletelyWithinViewport:l.width*l.height===pe,fitsInViewportVertically:ie===l.height,fitsInViewportHorizontally:j==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=Bb(this._overlayRef.getConfig().minHeight),o=Bb(this._overlayRef.getConfig().minWidth),c=a.fitsInViewportHorizontally||null!=o&&o<=l;return(a.fitsInViewportVertically||null!=d&&d<=r)&&c}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=xm(e),l=this._viewportRect,d=Math.max(a.x+r.width-l.width,0),o=Math.max(a.y+r.height-l.height,0),s=Math.max(l.top-t.top-a.y,0),c=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:a.xj&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-j/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)m=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),j=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>j&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-j/2)}return{top:d,left:h,bottom:o,right:m,width:u,height:l}}_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 l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=zi(t.height),r.top=zi(t.top),r.bottom=zi(t.bottom),r.width=zi(t.width),r.left=zi(t.left),r.right=zi(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",l&&(r.maxHeight=zi(l)),d&&(r.maxWidth=zi(d))}this._lastBoundingBoxSize=t,sl(this._boundingBox.style,r)}_resetBoundingBoxStyles(){sl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){sl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();sl(t,this._getExactOverlayY(e,a,u)),sl(t,this._getExactOverlayX(e,a,u))}else t.position="static";let o="",s=this._getOffset(e,"x"),c=this._getOffset(e,"y");s&&(o+=`translateX(${s}px) `),c&&(o+=`translateY(${c}px)`),t.transform=o.trim(),d.maxHeight&&(r?t.maxHeight=zi(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=zi(d.maxWidth):l&&(t.maxWidth="")),sl(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=zi(l.y),r}_getExactOverlayX(a,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=zi(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ob(a,t),isOriginOutsideView:wm(a,t),isOverlayClipped:Ob(e,t),isOverlayOutsideView:wm(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?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Hd(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 i.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 sl(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function Bb(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(qA);return e&&"px"!==e?null:parseFloat(a)}return n||null}function xm(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Mm="cdk-global-overlay-wrapper";class GA{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}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(Mm),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-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._justifyContent="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:l,maxWidth:d,maxHeight:o}=t,s=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||o&&"100%"!==o&&"100vh"!==o);a.position=this._cssPosition,a.marginLeft=s?"0":this._leftOffset,a.marginTop=c?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"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(Mm),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Wa=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new GA}flexibleConnectedTo(e){return new Tm(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ya),i.LFG(T.K0),i.LFG(bi),i.LFG(Am))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),WA=(()=>{class n extends Oh{constructor(e){super(e),this._keydownListener=t=>{const r=this._attachedOverlays;for(let l=r.length-1;l>-1;l--)if(r[l]._keydownEvents.observers.length>0){r[l]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZA=(()=>{class n extends Oh{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=ha(r)},this._clickListener=r=>{const l=ha(r),d="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const c=o[s];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(l)||c.overlayElement.contains(d))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),d0=0,br=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=o,this._ngZone=s,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=m}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new fc(e);return d.direction=d.direction||this._directionality.value,new zA(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+d0++,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(i.z2F)),new gA(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(o0),i.LFG(Am),i.LFG(i._Vd),i.LFG(Wa),i.LFG(WA),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(T.K0),i.LFG(xi),i.LFG(T.Ye),i.LFG(ZA))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const $A=[{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"}],Vb=new i.OlP("cdk-connected-overlay-scroll-strategy");let jb=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Bh=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=he.w.EMPTY,this._attachSubscription=he.w.EMPTY,this._detachSubscription=he.w.EMPTY,this._positionSubscription=he.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new fo(t,r),this._scrollStrategyFactory=l,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=$A);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&&!Ki(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 fc({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 jb?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(function bA(n,a=!1){return e=>e.lift(new hb(n,a))}(()=>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 n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Vb),i.Y36(xi,8))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})();const QA={provide:Vb,deps:[br],useFactory:function JA(n){return()=>n.scrollStrategies.reposition()}};let _o=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[br,QA],imports:[[dc,il,el],el]}),n})();var ol=x(13);function Vh(n){return a=>a.lift(new Yb(n))}class Yb{constructor(a){this.total=a}call(a,e){return e.subscribe(new KA(a,this.total))}}class KA extends Yn.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}function ll(n,a){return e=>e.lift(new Sm(n,a))}class Sm{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new u0(a,this.compare,this.keySelector))}}class u0 extends Yn.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:r}=this;e=r?r(a):a}catch(r){return this.destination.error(r)}let t=!1;if(this.hasKey)try{const{compare:r}=this;t=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let Ub=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Em=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Qi(e);return new ki.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Ee.xQ,r=this._mutationObserverFactory.create(l=>t.next(l));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 n.\u0275fac=function(e){return new(e||n)(i.LFG(Ub))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.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=_i(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,ol.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Em),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),zd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Ub]}),n})();function cl(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const qb="cdk-describedby-message",Hm="cdk-describedby-host";let Fh=0,km=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Fh++,this._document=e}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=qd(t,r);"string"!=typeof t?(mc(t),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const d=qd(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const o=this._messageRegistry.get(d);o&&0===o.referenceCount&&this._deleteMessageElement(d)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Hm}="${this._id}"]`);for(let r=0;r0!=r.indexOf(qb));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function zb(n,a,e){const t=cl(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Hm,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function Es(n,a,e){const r=cl(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Hm)}_isElementDescribedByMessage(e,t){const r=cl(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function qd(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function mc(n){n.id||(n.id=`${qb}-${Fh++}`)}class Gb{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ee.xQ,this._typeaheadSubscription=he.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ee.xQ,this.change=new Ee.xQ,a instanceof i.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,Q.b)(e=>this._pressedLetters.push(e)),(0,ol.b)(a),(0,zt.h)(()=>this._pressedLetters.length>0),(0,dt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-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||Ki(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),r=e[t];this._activeItem=null==r?null:r,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 i.n_E?this._items.toArray():this._items}}class Pm extends Gb{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class dl extends Gb{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 Nh=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Rm(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ev(n){try{return n.frameElement}catch(a){return null}}(function rv(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Jb(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Jb(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _c(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function nv(n){return!function iv(n){return function gc(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function tv(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function Wb(n){return function Zb(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||$b(n))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $b(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Jb(n){if(!$b(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class av{constructor(a,e,t,r,l=!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,l||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 null==t||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,jt.q)(1)).subscribe(a)}}let Lm=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new av(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Nh),i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jr=(()=>{class n{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=Fa(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),n})();function Yh(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Uh(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const dv=new i.OlP("cdk-input-modality-detector-options"),uv={ignoreKeys:[18,17,224,91,16]},Gd=ja({passive:!0,capture:!0});let Kb=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new $i(null),this._lastTouchMs=0,this._onKeydown=d=>{var o,s;(null===(s=null===(o=this._options)||void 0===o?void 0:o.ignoreKeys)||void 0===s?void 0:s.some(c=>c===d.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=ha(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Yh(d)?"keyboard":"mouse"),this._mostRecentTarget=ha(d))},this._onTouchstart=d=>{Uh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ha(d))},this._options=Object.assign(Object.assign({},uv),l),this.modalityDetected=this._modality.pipe(Vh(1)),this.modalityChanged=this.modalityDetected.pipe(ll()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Gd),r.addEventListener("mousedown",this._onMousedown,Gd),r.addEventListener("touchstart",this._onTouchstart,Gd)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Gd),document.removeEventListener("mousedown",this._onMousedown,Gd),document.removeEventListener("touchstart",this._onTouchstart,Gd))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b),i.LFG(T.K0),i.LFG(dv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hv=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function pv(){return null}}),p0=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let fv=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>new Promise(o=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,o(),"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l){this._elementRef=e,this._liveAnnouncer=t,this._contentObserver=r,this._ngZone=l,this._politeness="polite"}get politeness(){return this._politeness}set politeness(e){this._politeness="off"===e||"assertive"===e?e:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(fv),i.Y36(Em),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),n})();const mv=new i.OlP("cdk-focus-monitor-default-options"),Wd=ja({passive:!0,capture:!0});let rr=(()=>{class n{constructor(e,t,r,l,d){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 Ee.xQ,this._rootNodeFocusAndBlurListener=o=>{const s=ha(o),c="focus"===o.type?this._onFocus:this._onBlur;for(let u=s;u;u=u.parentElement)c.call(this,o,u)},this._document=l,this._detectionMode=(null==d?void 0:d.detectionMode)||0}monitor(e,t=!1){const r=Qi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ne.of)(null);const l=Eh(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const o={checkChildren:t,subject:new Ee.xQ,rootNode:l};return this._elementInfo.set(r,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const t=Qi(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 l=Qi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([o,s])=>this._originChanged(o,t,s)):(this._setOrigin(t),"function"==typeof l.focus&&l.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:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0: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),l=ha(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),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.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.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,Wd),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wd)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Je(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!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,Wd),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wd),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.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(bi),i.LFG(Kb),i.LFG(T.K0,8),i.LFG(mv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gv=(()=>{class n{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new i.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(rr))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const Fr="cdk-high-contrast-black-on-white",_v="cdk-high-contrast-white-on-black",Xb="cdk-high-contrast-active";let Bm=(()=>{class n{constructor(e,t){this._platform=e,this._document=t}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,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Xb),e.remove(Fr),e.remove(_v),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Xb),e.add(Fr)):2===t&&(e.add(Xb),e.add(_v))}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Bm))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cc,zd]]}),n})();class Vm{}const bo="*";function ei(n,a){return{type:7,name:n,definitions:a,options:{}}}function ct(n,a=null){return{type:4,styles:a,timings:n}}function ey(n,a=null){return{type:3,steps:n,options:a}}function qh(n,a=null){return{type:2,steps:n,options:a}}function He(n){return{type:6,styles:n,offset:null}}function Dt(n,a,e){return{type:0,name:n,styles:a,options:e}}function ul(n){return{type:5,steps:n}}function ft(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function ty(n=null){return{type:9,options:n}}function Dn(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function bc(n){Promise.resolve(null).then(n)}class Zd{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(a)}onDone(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(){bc(()=>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}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 iy{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 l=this.players.length;0==l?bc(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,o)=>Math.max(d,o.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}}function Za(){return"undefined"!=typeof window&&void 0!==window.document}function hl(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ri(n){switch(n.length){case 0:return new Zd;case 1:return n[0];default:return new iy(n)}}function yo(n,a,e,t,r={},l={}){const d=[],o=[];let s=-1,c=null;if(t.forEach(u=>{const h=u.offset,m=h==s,b=m&&c||{};Object.keys(u).forEach(j=>{let ie=j,pe=u[j];if("offset"!==j)switch(ie=a.normalizePropertyName(ie,d),pe){case"!":pe=r[j];break;case bo:pe=l[j];break;default:pe=a.normalizeStyleValue(j,ie,pe,d)}b[ie]=pe}),m||o.push(b),c=b,s=h}),d.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${d.join(u)}`)}return o}function yc(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&ar(e,"start",n)));break;case"done":n.onDone(()=>t(e&&ar(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&ar(e,"destroy",n)))}}function ar(n,a,e){const t=e.totalTime,l=Jd(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,null==t?n.totalTime:t,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function Jd(n,a,e,t,r="",l=0,d){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function pn(n,a,e){let t;return n instanceof Map?(t=n.get(a),t||n.set(a,t=e)):(t=n[a],t||(t=n[a]=e)),t}function pl(n){const a=n.indexOf(":");return[n.substring(1,a),n.substr(a+1)]}let wo=(n,a)=>!1,fl=(n,a,e)=>[];(hl()||"undefined"!=typeof Element)&&(wo=Za()?(n,a)=>{for(;a&&a!==document.documentElement;){if(a===n)return!0;a=a.parentNode||a.host}return!1}:(n,a)=>n.contains(a),fl=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Nr=null,ml=!1;function gl(n){Nr||(Nr=function ny(){return"undefined"!=typeof document?document.body:null}()||{},ml=!!Nr.style&&"WebkitAppearance"in Nr.style);let a=!0;return Nr.style&&!function wc(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Nr.style,!a&&ml&&(a="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Nr.style)),a}const Fm=wo,Nm=fl;let Ym=(()=>{class n{validateStyleProperty(e){return gl(e)}matchesElement(e,t){return!1}containsElement(e,t){return Fm(e,t)}query(e,t,r){return Nm(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,o=[],s){return new Zd(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Gh=(()=>{class n{}return n.NOOP=new Ym,n})();const zm="ng-enter",Kd="ng-leave",Wh="ng-trigger",Xd=".ng-trigger",qm="ng-animating",Gm=".ng-animating";function _l(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Zh(parseFloat(a[1]),a[2])}function Zh(n,a){return"s"===a?1e3*n:n}function $h(n,a,e){return n.hasOwnProperty("duration")?n:function sy(n,a,e){let r,l=0,d="";if("string"==typeof n){const o=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return a.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=Zh(parseFloat(o[1]),o[2]);const s=o[3];null!=s&&(l=Zh(parseFloat(s),o[4]));const c=o[5];c&&(d=c)}else r=n;if(!e){let o=!1,s=a.length;r<0&&(a.push("Duration values below 0 are not allowed for this animation step."),o=!0),l<0&&(a.push("Delay values below 0 are not allowed for this animation step."),o=!0),o&&a.splice(s,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:l,easing:d}}(n,a,e)}function Cc(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function bl(n,a,e={}){if(a)for(let t in n)e[t]=n[t];else Cc(n,e);return e}function ly(n,a,e){return e?a+":"+e+";":""}function Jh(n){let a="";for(let e=0;e{const r=Co(t);e&&!e.hasOwnProperty(t)&&(e[t]=n.style[r]),n.style[r]=a[t]}),hl()&&Jh(n))}function yl(n,a){n.style&&(Object.keys(a).forEach(e=>{const t=Co(e);n.style[t]=""}),hl()&&Jh(n))}function Qh(n){return Array.isArray(n)?1==n.length?n[0]:qh(n):n}const cy=new RegExp("{{\\s*(.+?)\\s*}}","g");function dy(n){let a=[];if("string"==typeof n){let e;for(;e=cy.exec(n);)a.push(e[1]);cy.lastIndex=0}return a}function eu(n,a,e){const t=n.toString(),r=t.replace(cy,(l,d)=>{let o=a[d];return a.hasOwnProperty(d)||(e.push(`Please provide a value for the animation param ${d}`),o=""),o.toString()});return r==t?n:r}function Wm(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const wv=/-+([a-z0-9])/g;function Co(n){return n.replace(wv,(...a)=>a[1].toUpperCase())}function Cv(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function sr(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function tu(n,a){return window.getComputedStyle(n)[a]}function hy(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function vv(n,a,e){if(":"==n[0]){const s=function Tv(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof s)return void a.push(s);n=s}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${n}" is not supported`),a;const r=t[1],l=t[2],d=t[3];a.push(py(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&a.push(py(d,r))}(t,e,a)):e.push(n),e}const Xh=new Set(["true","1"]),ep=new Set(["false","0"]);function py(n,a){const e=Xh.has(n)||ep.has(n),t=Xh.has(a)||ep.has(a);return(r,l)=>{let d="*"==n||n==r,o="*"==a||a==l;return!d&&e&&"boolean"==typeof r&&(d=r?Xh.has(n):ep.has(n)),!o&&t&&"boolean"==typeof l&&(o=l?Xh.has(a):ep.has(a)),d&&o}}const xv=new RegExp("s*:selfs*,?","g");function tp(n,a,e){return new Jm(n).build(a,e)}class Jm{constructor(a){this._driver=a}build(a,e){const t=new Mv(e);return this._resetContextStyleTimingState(t),sr(this,Qh(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(o=>{if(this._resetContextStyleTimingState(e),0==o.type){const s=o,c=s.name;c.toString().split(/\s*,\s*/).forEach(u=>{s.name=u,l.push(this.visitState(s,e))}),s.name=c}else if(1==o.type){const s=this.visitTransition(o,e);t+=s.queryCount,r+=s.depCount,d.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:l,transitions:d,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 l=new Set,d=r||{};if(t.styles.forEach(o=>{if(Ao(o)){const s=o;Object.keys(s).forEach(c=>{dy(s[c]).forEach(u=>{d.hasOwnProperty(u)||l.add(u)})})}}),l.size){const o=Wm(l.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${o.join(", ")}`)}}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=sr(this,Qh(a.animation),e);return{type:1,matchers:hy(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Ds(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>sr(this,t,e)),options:Ds(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(d=>{e.currentTime=t;const o=sr(this,d,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:l,options:Ds(a.options)}}visitAnimate(a,e){const t=function fy(n,a){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return iu($h(n,a).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=iu(0,0,"");return l.dynamic=!0,l.strValue=t,l}return e=e||$h(t,a),iu(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:He({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=a.styles,o=!1;if(!d){o=!0;const c={};t.easing&&(c.easing=t.easing),d=He(c)}e.currentTime+=t.duration+t.delay;const s=this.visitStyle(d,e);s.isEmptyStep=o,r=s}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=[];Array.isArray(a.styles)?a.styles.forEach(d=>{"string"==typeof d?d==bo?t.push(d):e.errors.push(`The provided style string value ${d} is not allowed.`):t.push(d)}):t.push(a.styles);let r=!1,l=null;return t.forEach(d=>{if(Ao(d)){const o=d,s=o.easing;if(s&&(l=s,delete o.easing),!r)for(let c in o)if(o[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:t,easing:l,offset:a.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&Object.keys(d).forEach(o=>{if(!this._driver.validateStyleProperty(o))return void e.errors.push(`The provided animation property "${o}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],c=s[o];let u=!0;c&&(l!=r&&l>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${o}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${l}ms" and "${r}ms"`),u=!1),l=c.startTime),u&&(s[o]={startTime:l,endTime:r}),e.options&&function g0(n,a,e){const t=a.params||{},r=dy(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(`Unable to resolve the local animation param ${l} in the given list of values`)})}(d[o],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let l=0;const d=[];let o=!1,s=!1,c=0;const u=a.steps.map(Ue=>{const Tt=this._makeStyleAst(Ue,e);let at=null!=Tt.offset?Tt.offset:function b0(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(Ao(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(Ao(n)&&n.hasOwnProperty("offset")){const e=n;a=parseFloat(e.offset),delete e.offset}return a}(Tt.styles),Ut=0;return null!=at&&(l++,Ut=Tt.offset=at),s=s||Ut<0||Ut>1,o=o||Ut0&&l{const at=m>0?Tt==b?1:m*Tt:d[Tt],Ut=at*pe;e.currentTime=j+ie.delay+Ut,ie.duration=Ut,this._validateStyleAst(Ue,e),Ue.offset=at,t.styles.push(Ue)}),t}visitReference(a,e){return{type:8,animation:sr(this,Qh(a.animation),e),options:Ds(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Ds(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Ds(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,d]=function _0(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(xv,"")),n=n.replace(/@\*/g,Xd).replace(/@\w+/g,e=>Xd+"-"+e.substr(1)).replace(/:animating/g,Gm),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,pn(e.collectedStyles,e.currentQuerySelector,{});const o=sr(this,Qh(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:o,originalSelector:a.selector,options:Ds(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:$h(a.timings,e.errors,!0);return{type:12,animation:sr(this,Qh(a.animation),e),timings:t,options:null}}}class Mv{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Ao(n){return!Array.isArray(n)&&"object"==typeof n}function Ds(n){return n?(n=Cc(n)).params&&(n.params=function Qm(n){return n?Cc(n):null}(n.params)):n={},n}function iu(n,a,e){return{duration:n,delay:a,easing:e}}function Km(n,a,e,t,r,l,d=null,o=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:o}}class Ac{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 y0=new RegExp(":enter","g"),eg=new RegExp(":leave","g");function nu(n,a,e,t,r,l={},d={},o,s,c=[]){return(new gy).buildKeyframes(n,a,e,t,r,l,d,o,s,c)}class gy{buildKeyframes(a,e,t,r,l,d,o,s,c,u=[]){c=c||new Ac;const h=new au(a,e,c,r,l,u,[]);h.options=s,h.currentTimeline.setStyles([d],null,h.errors,s),sr(this,t,h);const m=h.timelines.filter(b=>b.containsAnimation());if(Object.keys(o).length){let b;for(let j=m.length-1;j>=0;j--){const ie=m[j];if(ie.element===e){b=ie;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([o],null,h.errors,s)}return m.length?m.map(b=>b.buildKeyframes()):[Km(e,[],[],[],0,0,"",!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),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=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 l=e.currentTimeline.currentTime;const d=null!=t.duration?_l(t.duration):null,o=null!=t.delay?_l(t.delay):null;return 0!==d&&a.forEach(s=>{const c=e.appendInstructionToTimeline(s,d,o);l=Math.max(l,c.duration+c.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),sr(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ru);const d=_l(l.delay);r.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>sr(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?_l(a.options.delay):0;a.steps.forEach(d=>{const o=e.createSubContext(a.options);l&&o.delayNextStep(l),sr(this,d,o),r=Math.max(r,o.currentTimeline.currentTime),t.push(o.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return $h(e.params?eu(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 l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.getCurrentStyleProperties().length&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,o=e.createSubContext().currentTimeline;o.easing=t.easing,a.styles.forEach(s=>{o.forwardTime((s.offset||0)*l),o.setStyles(s.styles,s.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?_l(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ru);let d=t;const o=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let s=null;o.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,c);l&&h.delayNextStep(l),c===e.element&&(s=h.currentTimeline),sr(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),s&&(e.currentTimeline.mergeTimelineCollectedStyles(s),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,d=Math.abs(l.duration),o=d*(e.currentQueryTotal-1);let s=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":s=o-s;break;case"full":s=t.currentStaggerTime}const u=e.currentTimeline;s&&u.delayNextStep(s);const h=u.currentTime;sr(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const ru={};class au{constructor(a,e,t,r,l,d,o,s){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ru,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new su(this._driver,e,0),o.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=_l(t.duration)),null!=t.delay&&(r.delay=_l(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(o=>{(!e||!d.hasOwnProperty(o))&&(d[o]=eu(l[o],d,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,l=new au(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=ru,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},l=new _y(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,d){let o=[];if(r&&o.push(this.element),a.length>0){a=(a=a.replace(y0,"."+this._enterClassName)).replace(eg,"."+this._leaveClassName);let c=this._driver.query(this.element,a,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),o.push(...c)}return!l&&0==o.length&&d.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class su{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new su(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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||bo,this._currentKeyframe[e]=bo}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&(this._previousKeyframe.easing=e);const l=r&&r.params||{},d=function tg(n,a){const e={};let t;return n.forEach(r=>{"*"===r?(t=t||Object.keys(a),t.forEach(l=>{e[l]=bo})):bl(r,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(d).forEach(o=>{const s=eu(d[o],l,t);this._pendingStyles[o]=s,this._localTimelineStyles.hasOwnProperty(o)||(this._backFill[o]=this._globalTimelineStyles.hasOwnProperty(o)?this._globalTimelineStyles[o]:bo),this._updateStyle(o,s)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[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){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],r=a._styleSummary[e];(!t||r.time>t.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((o,s)=>{const c=bl(o,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?a.add(u):h==bo&&e.add(u)}),t||(c.offset=s/this.duration),r.push(c)});const l=a.size?Wm(a.values()):[],d=e.size?Wm(e.values()):[];if(t){const o=r[0],s=Cc(o);o.offset=0,s.offset=1,r=[o,s]}return Km(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class _y extends su{constructor(a,e,t,r,l,d,o=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=o,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:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,o=e/d,s=bl(a[0],!1);s.offset=0,l.push(s);const c=bl(a[0],!1);c.offset=ip(o),l.push(c);const u=a.length-1;for(let h=1;h<=u;h++){let m=bl(a[h],!1);m.offset=ip((e+m.offset*t)/d),l.push(m)}t=d,e=0,r="",a=l}return Km(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function ip(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class np{}class ig extends np{normalizePropertyName(a,e){return Co(a)}normalizeStyleValue(a,e,t,r){let l="";const d=t.toString().trim();if(by[e]&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const o=t.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push(`Please provide a CSS unit value for ${a}:${t}`)}return d+l}}const by=(()=>function Dv(n){const a={};return n.forEach(e=>a[e]=!0),a}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function ng(n,a,e,t,r,l,d,o,s,c,u,h,m){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:o,queriedElements:s,preStyleProps:c,postStyleProps:u,totalTime:h,errors:m}}const rp={};class ap{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function rg(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){const r=this._stateStyles["*"],l=this._stateStyles[a],d=r?r.buildStyles(e,t):{};return l?l.buildStyles(e,t):d}build(a,e,t,r,l,d,o,s,c,u){const h=[],m=this.ast.options&&this.ast.options.params||rp,j=this.buildStyles(t,o&&o.params||rp,h),ie=s&&s.params||rp,pe=this.buildStyles(r,ie,h),Ue=new Set,Tt=new Map,at=new Map,Ut="void"===r,Ca={params:Object.assign(Object.assign({},m),ie)},ns=u?[]:nu(a,e,this.ast.animation,l,d,j,pe,Ca,c,h);let vr=0;if(ns.forEach(jl=>{vr=Math.max(jl.duration+jl.delay,vr)}),h.length)return ng(e,this._triggerName,t,r,Ut,j,pe,[],[],Tt,at,vr,h);ns.forEach(jl=>{const Fl=jl.element,LD=pn(Tt,Fl,{});jl.preStyleProps.forEach(Gu=>LD[Gu]=!0);const B_=pn(at,Fl,{});jl.postStyleProps.forEach(Gu=>B_[Gu]=!0),Fl!==e&&Ue.add(Fl)});const Vl=Wm(Ue.values());return ng(e,this._triggerName,t,r,Ut,j,pe,ns,Vl,Tt,at,vr)}}class yy{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},r=Cc(this.defaultParams);return Object.keys(a).forEach(l=>{const d=a[l];null!=d&&(r[l]=d)}),this.styles.styles.forEach(l=>{if("string"!=typeof l){const d=l;Object.keys(d).forEach(o=>{let s=d[o];s.length>1&&(s=eu(s,r,e));const c=this.normalizer.normalizePropertyName(o,e);s=this.normalizer.normalizeStyleValue(o,c,s,e),t[c]=s})}}),t}}class Cy{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new yy(r.style,r.options&&r.options.params||{},t)}),ag(this.states,"true","1"),ag(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new ap(a,r,this.states))}),this.fallbackTransition=function Ay(n,a,e){return new ap(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,o)=>!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(d=>d.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function ag(n,a,e){n.hasOwnProperty(a)?n.hasOwnProperty(e)||(n[e]=n[a]):n.hasOwnProperty(e)&&(n[a]=n[e])}const vy=new Ac;class Ty{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],r=tp(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=r}_buildPlayer(a,e,t){const r=a.element,l=yo(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations[a];let d;const o=new Map;if(l?(d=nu(this._driver,e,l,zm,Kd,{},{},t,vy,r),d.forEach(u=>{const h=pn(o,u.element,{});u.postStyleProps.forEach(m=>h[m]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),d=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);o.forEach((u,h)=>{Object.keys(u).forEach(m=>{u[m]=this._driver.computeStyle(h,m,bo)})});const c=Ri(d.map(u=>{const h=o.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[a]=c,c.onDestroy(()=>this.destroy(a)),this.players.push(c),c}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,r){const l=Jd(e,"","","");return yc(this._getPlayer(a),t,l,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 l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const sg="ng-animate-queued",og="ng-animate-disabled",sn=[],lg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ur="__ng_removed";class sp{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function Sy(n){return null!=n?n:null}(t?a.value:a),t){const l=Cc(a);delete l.value,this.options=l}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 ou="void",op=new sp(ou);class My{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,qi(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function Ey(n){return"start"==n||"done"==n}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const l=pn(this._elementListeners,a,[]),d={name:e,phase:t,callback:r};l.push(d);const o=pn(this._engine.statesByElement,a,{});return o.hasOwnProperty(e)||(qi(a,Wh),qi(a,Wh+"-"+e),o[e]=op),()=>{this._engine.afterFlush(()=>{const s=l.indexOf(d);s>=0&&l.splice(s,1),this._triggers[e]||delete o[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),d=new cg(this.id,e,a);let o=this._engine.statesByElement.get(a);o||(qi(a,Wh),qi(a,Wh+"-"+e),this._engine.statesByElement.set(a,o={}));let s=o[e];const c=new sp(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&s&&c.absorbOptions(s.options),o[e]=c,s||(s=op),c.value!==ou&&s.value===c.value){if(!function pa(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{yl(a,pe),Yr(a,Ue)})}return}const m=pn(this._engine.playersByElement,a,[]);m.forEach(ie=>{ie.namespaceId==this.id&&ie.triggerName==e&&ie.queued&&ie.destroy()});let b=l.matchTransition(s.value,c.value,a,c.params),j=!1;if(!b){if(!r)return;b=l.fallbackTransition,j=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:s,toState:c,player:d,isFallbackTransition:j}),j||(qi(a,sg),d.onStart(()=>{Tc(a,sg)})),d.onDone(()=>{let ie=this.players.indexOf(d);ie>=0&&this.players.splice(ie,1);const pe=this._engine.playersByElement.get(a);if(pe){let Ue=pe.indexOf(d);Ue>=0&&pe.splice(Ue,1)}}),this.players.push(d),m.push(d),d}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[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,Xd,!0);t.forEach(r=>{if(r[Ur])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),d=new Map;if(l){const o=[];if(Object.keys(l).forEach(s=>{if(d.set(s,l[s].value),this._triggers[s]){const c=this.trigger(a,s,ou,r);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Ri(o).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(l=>{const d=l.name;if(r.has(d))return;r.add(d);const s=this._triggers[d].fallbackTransition,c=t[d]||op,u=new sp(ou),h=new cg(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:s,fromState:c,toState:u,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 l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[Ur];(!l||l===lg)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){qi(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(o=>{if(o.name==t.triggerName){const s=Jd(l,t.triggerName,t.fromState.value,t.toState.value);s._data=a,yc(t.player,o.phase,s,o.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d: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 vc{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,l)=>{}}_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 My(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.length-1;if(t>=0){let r=!1;for(let l=t;l>=0;l--)if(this.driver.containsElement(this._namespaceList[l].hostElement,e)){this._namespaceList.splice(l+1,0,a),r=!0;break}r||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.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){const r=Object.keys(t);for(let l=0;l=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.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),qi(a,og)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),Tc(a,og))}removeNode(a,e,t,r){if(lp(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[Ur]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return lp(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,Xd,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,Gm,!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 Ri(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[Ur];if(t&&t.setForRemoval){if(a[Ur]=lg,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?void 0:e.contains(og))&&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?Ri(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new Ac,r=[],l=new Map,d=[],o=new Map,s=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Xe=>{u.add(Xe);const lt=this.driver.query(Xe,".ng-animate-queued",!0);for(let ut=0;ut{const ut=zm+ie++;j.set(lt,ut),Xe.forEach(Kt=>qi(Kt,ut))});const pe=[],Ue=new Set,Tt=new Set;for(let Xe=0;XeUe.add(Kt)):Tt.add(lt))}const at=new Map,Ut=dp(m,Array.from(Ue));Ut.forEach((Xe,lt)=>{const ut=Kd+ie++;at.set(lt,ut),Xe.forEach(Kt=>qi(Kt,ut))}),a.push(()=>{b.forEach((Xe,lt)=>{const ut=j.get(lt);Xe.forEach(Kt=>Tc(Kt,ut))}),Ut.forEach((Xe,lt)=>{const ut=at.get(lt);Xe.forEach(Kt=>Tc(Kt,ut))}),pe.forEach(Xe=>{this.processLeaveNode(Xe)})});const Ca=[],ns=[];for(let Xe=this._namespaceList.length-1;Xe>=0;Xe--)this._namespaceList[Xe].drainQueuedTransitions(e).forEach(ut=>{const Kt=ut.player,In=ut.element;if(Ca.push(Kt),this.collectedEnterElements.length){const Tr=In[Ur];if(Tr&&Tr.setForMove){if(Tr.previousTriggersValues&&Tr.previousTriggersValues.has(ut.triggerName)){const Wu=Tr.previousTriggersValues.get(ut.triggerName),Kc=this.statesByElement.get(ut.element);Kc&&Kc[ut.triggerName]&&(Kc[ut.triggerName].value=Wu)}return void Kt.destroy()}}const Ho=!h||!this.driver.containsElement(h,In),Aa=at.get(In),Qc=j.get(In),Wi=this._buildInstruction(ut,t,Qc,Aa,Ho);if(Wi.errors&&Wi.errors.length)return void ns.push(Wi);if(Ho)return Kt.onStart(()=>yl(In,Wi.fromStyles)),Kt.onDestroy(()=>Yr(In,Wi.toStyles)),void r.push(Kt);if(ut.isFallbackTransition)return Kt.onStart(()=>yl(In,Wi.fromStyles)),Kt.onDestroy(()=>Yr(In,Wi.toStyles)),void r.push(Kt);const BD=[];Wi.timelines.forEach(Tr=>{Tr.stretchStartingKeyframe=!0,this.disabledNodes.has(Tr.element)||BD.push(Tr)}),Wi.timelines=BD,t.append(In,Wi.timelines),d.push({instruction:Wi,player:Kt,element:In}),Wi.queriedElements.forEach(Tr=>pn(o,Tr,[]).push(Kt)),Wi.preStyleProps.forEach((Tr,Wu)=>{const Kc=Object.keys(Tr);if(Kc.length){let Zu=s.get(Wu);Zu||s.set(Wu,Zu=new Set),Kc.forEach(fM=>Zu.add(fM))}}),Wi.postStyleProps.forEach((Tr,Wu)=>{const Kc=Object.keys(Tr);let Zu=c.get(Wu);Zu||c.set(Wu,Zu=new Set),Kc.forEach(fM=>Zu.add(fM))})});if(ns.length){const Xe=[];ns.forEach(lt=>{Xe.push(`@${lt.triggerName} has failed due to:\n`),lt.errors.forEach(ut=>Xe.push(`- ${ut}\n`))}),Ca.forEach(lt=>lt.destroy()),this.reportError(Xe)}const vr=new Map,Vl=new Map;d.forEach(Xe=>{const lt=Xe.element;t.has(lt)&&(Vl.set(lt,lt),this._beforeAnimationBuild(Xe.player.namespaceId,Xe.instruction,vr))}),r.forEach(Xe=>{const lt=Xe.element;this._getPreviousPlayers(lt,!1,Xe.namespaceId,Xe.triggerName,null).forEach(Kt=>{pn(vr,lt,[]).push(Kt),Kt.destroy()})});const jl=pe.filter(Xe=>dg(Xe,s,c)),Fl=new Map;cp(Fl,this.driver,Tt,c,bo).forEach(Xe=>{dg(Xe,s,c)&&jl.push(Xe)});const B_=new Map;b.forEach((Xe,lt)=>{cp(B_,this.driver,new Set(Xe),s,"!")}),jl.forEach(Xe=>{const lt=Fl.get(Xe),ut=B_.get(Xe);Fl.set(Xe,Object.assign(Object.assign({},lt),ut))});const Gu=[],ID=[],OD={};d.forEach(Xe=>{const{element:lt,player:ut,instruction:Kt}=Xe;if(t.has(lt)){if(u.has(lt))return ut.onDestroy(()=>Yr(lt,Kt.toStyles)),ut.disabled=!0,ut.overrideTotalTime(Kt.totalTime),void r.push(ut);let In=OD;if(Vl.size>1){let Aa=lt;const Qc=[];for(;Aa=Aa.parentNode;){const Wi=Vl.get(Aa);if(Wi){In=Wi;break}Qc.push(Aa)}Qc.forEach(Wi=>Vl.set(Wi,In))}const Ho=this._buildAnimation(ut.namespaceId,Kt,vr,l,B_,Fl);if(ut.setRealPlayer(Ho),In===OD)Gu.push(ut);else{const Aa=this.playersByElement.get(In);Aa&&Aa.length&&(ut.parentPlayer=Ri(Aa)),r.push(ut)}}else yl(lt,Kt.fromStyles),ut.onDestroy(()=>Yr(lt,Kt.toStyles)),ID.push(ut),u.has(lt)&&r.push(ut)}),ID.forEach(Xe=>{const lt=l.get(Xe.element);if(lt&<.length){const ut=Ri(lt);Xe.setRealPlayer(ut)}}),r.forEach(Xe=>{Xe.parentPlayer?Xe.syncPlayerEvents(Xe.parentPlayer):Xe.destroy()});for(let Xe=0;Xe!Ho.destroyed);In.length?Dy(this,lt,In):this.processLeaveNode(lt)}return pe.length=0,Gu.forEach(Xe=>{this.players.push(Xe),Xe.onDone(()=>{Xe.destroy();const lt=this.players.indexOf(Xe);this.players.splice(lt,1)}),Xe.play()}),Gu}elementContainsData(a,e){let t=!1;const r=e[Ur];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,l){let d=[];if(e){const o=this.playersByQueriedElement.get(a);o&&(d=o)}else{const o=this.playersByElement.get(a);if(o){const s=!l||l==ou;o.forEach(c=>{c.queued||!s&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(o=>!(t&&t!=o.namespaceId||r&&r!=o.triggerName))),d}_beforeAnimationBuild(a,e,t){const l=e.element,d=e.isRemovalTransition?void 0:a,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const c=s.element,u=c!==l,h=pn(t,c,[]);this._getPreviousPlayers(c,u,d,o,e.toState).forEach(b=>{const j=b.getRealPlayer();j.beforeDestroy&&j.beforeDestroy(),b.destroy(),h.push(b)})}yl(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,d){const o=e.triggerName,s=e.element,c=[],u=new Set,h=new Set,m=e.timelines.map(j=>{const ie=j.element;u.add(ie);const pe=ie[Ur];if(pe&&pe.removedBeforeQueried)return new Zd(j.duration,j.delay);const Ue=ie!==s,Tt=function $a(n){const a=[];return zr(n,a),a}((t.get(ie)||sn).map(vr=>vr.getRealPlayer())).filter(vr=>!!vr.element&&vr.element===ie),at=l.get(ie),Ut=d.get(ie),Ca=yo(0,this._normalizer,0,j.keyframes,at,Ut),ns=this._buildPlayer(j,Ca,Tt);if(j.subTimeline&&r&&h.add(ie),Ue){const vr=new cg(a,o,ie);vr.setRealPlayer(ns),c.push(vr)}return ns});c.forEach(j=>{pn(this.playersByQueriedElement,j.element,[]).push(j),j.onDone(()=>function Rv(n,a,e){let t;if(n instanceof Map){if(t=n.get(a),t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}}else if(t=n[a],t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&delete n[a]}return t}(this.playersByQueriedElement,j.element,j))}),u.forEach(j=>qi(j,qm));const b=Ri(m);return b.onDestroy(()=>{u.forEach(j=>Tc(j,qm)),Yr(s,e.toStyles)}),h.forEach(j=>{pn(r,j,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Zd(a.duration,a.delay)}}class cg{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Zd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>yc(a,e,void 0,t))}),this._queuedCallbacks={},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){pn(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 lp(n){return n&&1===n.nodeType}function Lv(n,a){const e=n.style.display;return n.style.display=null!=a?a:"none",e}function cp(n,a,e,t,r){const l=[];e.forEach(s=>l.push(Lv(s)));const d=[];t.forEach((s,c)=>{const u={};s.forEach(h=>{const m=u[h]=a.computeStyle(c,h,r);(!m||0==m.length)&&(c[Ur]=Pv,d.push(c))}),n.set(c,u)});let o=0;return e.forEach(s=>Lv(s,l[o++])),d}function dp(n,a){const e=new Map;if(n.forEach(o=>e.set(o,[])),0==a.length)return e;const r=new Set(a),l=new Map;function d(o){if(!o)return 1;let s=l.get(o);if(s)return s;const c=o.parentNode;return s=e.has(c)?c:r.has(c)?1:d(c),l.set(o,s),s}return a.forEach(o=>{const s=d(o);1!==s&&e.get(s).push(o)}),e}function qi(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function Tc(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function Dy(n,a,e){Ri(e).onDone(()=>n.processLeaveNode(a))}function zr(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class lu{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new vc(a,e,t),this._timelineEngine=new Ty(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const d=a+"-"+r;let o=this._triggerCache[d];if(!o){const s=[],c=tp(this._driver,l,s);if(s.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${s.join("\n - ")}`);o=function wy(n,a,e){return new Cy(n,a,e)}(r,c,this._normalizer),this._triggerCache[d]=o}this._transitionEngine.registerTrigger(e,r,o)}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[l,d]=pl(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[d,o]=pl(t);return this._timelineEngine.listen(d,e,o,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ov=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l={}),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Yr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Yr(this._element,this._initialStyles),this._endStyles&&(Yr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(yl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yl(this._element,this._endStyles),this._endStyles=null),Yr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ug(n){let a=null;const e=Object.keys(n);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:tu(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class cu{validateStyleProperty(a){return gl(a)}matchesElement(a,e){return!1}containsElement(a,e){return Fm(a,e)}query(a,e,t){return Nm(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,d=[]){const s={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(s.easing=l);const c={},u=d.filter(m=>m instanceof up);(function uy(n,a){return 0===n||0===a})(t,r)&&u.forEach(m=>{let b=m.currentSnapshot;Object.keys(b).forEach(j=>c[j]=b[j])}),e=function Av(n,a,e){const t=Object.keys(e);if(t.length&&a.length){let l=a[0],d=[];if(t.forEach(o=>{l.hasOwnProperty(o)||d.push(o),l[o]=e[o]}),d.length)for(var r=1;rbl(m,!1)),c);const h=function Iv(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=ug(a[0]),a.length>1&&(t=ug(a[a.length-1]))):a&&(e=ug(a)),e||t?new Ov(n,e,t):null}(a,e);return new up(a,e,s,h)}}let Vv=(()=>{class n extends Vm{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?qh(e):e;return hg(this._renderer,null,t,"register",[r]),new Hy(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Hy extends class bv{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new jv(this._id,a,e||{},this._renderer)}}class jv{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 hg(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!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function hg(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const uu="@.disabled";let Fv=(()=>{class n{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=(l,d)=>{const o=null==d?void 0:d.parentNode(l);o&&d.removeChild(o,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new pg("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(d,o,e,u.name,u)};return t.data.animation.forEach(s),new ky(this,o,l,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(l=>{const[d,o]=l;d(o)}),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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(lu),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class pg{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==uu?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 ky extends pg{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==uu?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function fg(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.substr(1),d="";return"@"!=l.charAt(0)&&([l,d]=function hp(n){const a=n.indexOf(".");return[n.substring(0,a),n.substr(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,o=>{this.factory.scheduleListenerCallback(o._data||-1,t,o)})}return this.delegate.listen(a,e,t)}}let mg=(()=>{class n extends lu{constructor(e,t,r){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(Gh),i.LFG(np))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Si=new i.OlP("AnimationModuleType"),gg=[{provide:Vm,useClass:Vv},{provide:np,useFactory:function Py(){return new ig}},{provide:lu,useClass:mg},{provide:i.FYo,useFactory:function Ry(n,a,e){return new Fv(n,a,e)},deps:[ke,lu,i.R0b]}],_g=[{provide:Gh,useFactory:()=>new cu},{provide:Si,useValue:"BrowserAnimations"},...gg],Ly=[{provide:Gh,useClass:Ym},{provide:Si,useValue:"NoopAnimations"},...gg];let Iy=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Ly:_g}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:_g,imports:[xa]}),n})();function Yv(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Uv(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const zv=["*"];let qv=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),Gv=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const Zv=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function Wv(){return!0}});let st=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!um()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Bm),i.LFG(Zv,8),i.LFG(T.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc],dc]}),n})();function fa(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Oe(a)}}}function Ja(n,a){return class extends n{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 ma(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Oe(a)}}}function wl(n,a=0){return class extends n{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?_i(e):this.defaultTabIndex}}}function pp(n){return class extends n{constructor(...a){super(...a),this.stateChanges=new Ee.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function bg(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ki.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 vo=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function By(){return(0,i.f3M)(i.soG)}});class Ai{constructor(){this._localeChanges=new Ee.xQ,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 yr=new i.OlP("mat-date-formats"),Vy=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fp(n,a){const e=Array(n);for(let t=0;t{class n extends Ai{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 fp(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fp(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 fp(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 l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e){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,Object.assign(Object.assign({},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(Vy.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 l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_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 n.\u0275fac=function(e){return new(e||n)(i.LFG(vo,8),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yg={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 Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ai,useClass:mp}],imports:[[cc]]}),n})(),jy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:yr,useValue:yg}],imports:[[Cl]]}),n})(),wr=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$v=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function _p(n,a,e){n.nativeElement.classList.toggle(a,e)}let hu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();class Fy{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Jv={enterDuration:225,exitDuration:150},wg=ja({passive:!0}),Ny=["mousedown","touchstart"],Yy=["mouseup","mouseleave","touchend","touchcancel"];class pu{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Qi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l=Object.assign(Object.assign({},Jv),t.animation);t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function bp(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-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),o=a-r.left,s=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-d+"px",u.style.top=s-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function Qv(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new Fy(this,u,t);return h.state=0,this._activeRipples.add(h),t.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const m=h===this._mostRecentTransientRipple;h.state=1,!t.persistent&&(!m||!this._isPointerDown)&&h.fadeOut()},c),h}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,r=Object.assign(Object.assign({},Jv),a.config.animation);t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Qi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Ny))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Yy),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Yh(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,wg)})})}_removeTriggerEvents(){this._triggerElement&&(Ny.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}),this._pointerUpEventsRegistered&&Yy.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}))}}const fu=new i.OlP("mat-ripple-global-options");let qt=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new pu(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:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(bi),i.Y36(fu,8),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.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"]}),n})(),Qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st,cc],st]}),n})(),Cg=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),Ag=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st]]}),n})();const Uy=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),vg=new i.OlP("MatOptgroup");let tT=0;class iT{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let mu=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+tT++,this.onSelectionChange=new i.vpe,this._stateChanges=new Ee.xQ}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)&&!Ki(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 iT(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),xc=(()=>{class n extends mu{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Uy,8),i.Y36(vg,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:zv,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&&(i.F$t(),i.YNc(0,Yv,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Uv,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Cg,T.O5,qt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function zy(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let d=0;d{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa,T.ez,st,Ag]]}),n})();function qy(n,a){}class gu{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const Gy={dialogContainer:ei("dialogContainer",[Dt("void, exit",He({opacity:0,transform:"scale(0.7)"})),Dt("enter",He({transform:"none"})),ft("* => enter",ct("150ms cubic-bezier(0, 0, 0.2, 1)",He({transform:"none",opacity:1}))),ft("* => void, * => exit",ct("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",He({opacity:0})))])};let _u=(()=>{class n extends pm{constructor(e,t,r,l,d,o,s,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=r,this._config=d,this._interactivityChecker=o,this._ngZone=s,this._focusMonitor=c,this._animationStateChanged=new i.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=d.ariaLabelledBy||null,this._document=l}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=Fa(),r=this._elementRef.nativeElement;(!t||t===this._document.body||t===r||r.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Fa())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Fa();return e===t||e.contains(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(i.sBO),i.Y36(T.K0,8),i.Y36(gu),i.Y36(Nh),i.Y36(i.R0b),i.Y36(rr))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(Ua,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},features:[i.qOj]}),n})(),bu=(()=>{class n extends _u{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),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()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._id),i.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._state))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,qy,0,0,"ng-template",0)},directives:[Ua],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Gy.dialogContainer]}}),n})(),rT=0;class Hn{constructor(a,e,t="mat-dialog-"+rT++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Ee.xQ,this._afterClosed=new Ee.xQ,this._beforeClosed=new Ee.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,zt.h)(r=>"opened"===r.state),(0,jt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,zt.h)(r=>"closed"===r.state),(0,jt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,zt.h)(r=>27===r.keyCode&&!this.disableClose&&!Ki(r))).subscribe(r=>{r.preventDefault(),Wy(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Wy(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,zt.h)(e=>"closing"===e.state),(0,jt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();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._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Wy(n,a,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=a),n.close(e)}const qr=new i.OlP("MatDialogData"),Zy=new i.OlP("mat-dialog-default-options"),Tg=new i.OlP("mat-dialog-scroll-strategy"),aT={provide:Tg,deps:[br],useFactory:function $y(n){return()=>n.scrollStrategies.block()}};let sT=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.xQ,this._afterOpenedAtThisLevel=new Ee.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=Kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wt(void 0))),this._scrollStrategy=o}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){if(t=function k0(n,a){return Object.assign(Object.assign({},a),n)}(t,this._defaultOptions||new gu),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(t),l=this._attachDialogContainer(r,t);if("NoopAnimations"!==this._animationMode){const o=l._animationStateChanged.subscribe(s=>{"opening"===s.state&&(this._dialogAnimatingOpen=!0),"opened"===s.state&&(this._dialogAnimatingOpen=!1,o.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new he.w),this._animationStateSubscriptions.add(o)}const d=this._attachDialogContent(e,l,r,t);return this._lastDialogRef=d,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(d),d.afterClosed().subscribe(()=>this._removeOpenDialog(d)),this.afterOpened.next(d),l._initializeWithAttachedContent(),d}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(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new fc({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const l=i.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:gu,useValue:t}]}),d=new tl(this._dialogContainerType,t.viewContainerRef,l,t.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,t,r,l){const d=new this._dialogRefConstructor(r,t,l.id);if(e instanceof i.Rgc)t.attachTemplatePortal(new fo(e,null,{$implicit:l.data,dialogRef:d}));else{const o=this._createInjector(l,d,t),s=t.attachComponentPortal(new tl(e,l.viewContainerRef,o));d.componentInstance=s.instance}return d.updateSize(l.width,l.height).updatePosition(l.position),d}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!l||!l.get(xi,null,i.XFs.Optional))&&d.push({provide:xi,useValue:{value:e.direction,change:(0,Ne.of)()}}),i.zs3.create({parent:l||this._injector,providers:d})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,l)=>{r?l.setAttribute("aria-hidden",r):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),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--){let l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n}),n})(),fn=(()=>{class n extends sT{constructor(e,t,r,l,d,o,s,c){super(e,t,l,o,s,d,Hn,bu,qr,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(br),i.LFG(i.zs3),i.LFG(T.Ye,8),i.LFG(Zy,8),i.LFG(Tg),i.LFG(n,12),i.LFG(Am),i.LFG(Si,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),P0=0,or=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+P0++}ngOnInit(){this._dialogRef||(this._dialogRef=function oT(n,a){let e=n.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn,8),i.Y36(i.SBq),i.Y36(fn))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),kn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Cr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),yu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fn,aT],imports:[[_o,il,st],st]}),n})();var Sc=x(6114);let wu=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(C),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(o=>{o.idpFilter&&(this.filterShortname=String(o.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),r=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(r.prompt="consent"),sessionStorage.getItem("mfa_route")&&(r.acr_values="https://refeds.org/profile/mfa",r.prompt="login",r.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:r}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,zt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(o=>{const s=o.split("=");d[s[0]]=s[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,zt.h)(e=>e instanceof wt)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}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}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(e=>(localStorage.setItem("refresh_token",e.refresh_token),!0),()=>!1)}verifyAuthentication(e,t){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(r=>!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(hn),i.LFG(fn),i.LFG(yn),i.LFG(Sc.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ka(n){return!!n&&(n instanceof ki.y||"function"==typeof n.lift&&"function"==typeof n.subscribe)}var lT=x(7830);function xg(...n){if(1===n.length){const a=n[0];if((0,em.k)(a))return yp(a,null);if((0,lT.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return yp(e.map(t=>a[t]),e)}}if("function"==typeof n[n.length-1]){const a=n.pop();return yp(n=1===n.length&&(0,em.k)(n[0])?n[0]:n,null).pipe((0,dt.U)(e=>a(...e)))}return yp(n,null)}function yp(n,a){return new ki.y(e=>{const t=n.length;if(0===t)return void e.complete();const r=new Array(t);let l=0,d=0;for(let o=0;o{c||(c=!0,d++),r[o]=u},error:u=>e.error(u),complete:()=>{l++,(l===t||!c)&&(d===t&&e.next(a?a.reduce((u,h,m)=>(u[h]=r[m],u),{}):r),e.complete())}}))}})}const dT=new class cT extends nm.v{}(class Jy extends im.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var To=x(9312);class wp extends Yn.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(wp.dispatch,this.delay,new Ky(a,this.destination)))}_next(a){this.scheduleMessage(To.P.createNext(a))}_error(a){this.scheduleMessage(To.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(To.P.createComplete()),this.unsubscribe()}}class Ky{constructor(a,e){this.notification=a,this.destination=e}}var uT=x(5283);class Xy extends Ee.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new hT(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,l=t.length;let d;if(this.closed)throw new ed.N;if(this.isStopped||this.hasError?d=he.w.EMPTY:(this.observers.push(a),d=new uT.W(this,a)),r&&a.add(a=new wp(a,r)),e)for(let o=0;oe&&(d=Math.max(d,l-e)),d>0&&r.splice(0,d),r}}class hT{constructor(a,e){this.time=a,this.value=e}}function Cp(n,a,e){let t;return t=n&&"object"==typeof n?n:{bufferSize:n,windowTime:a,refCount:!1,scheduler:e},r=>r.lift(function pT({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let r,d,l=0,o=!1,s=!1;return function(u){l++,(!r||o)&&(o=!1,r=new Xy(n,a,t),d=u.subscribe({next(m){r.next(m)},error(m){o=!0,r.error(m)},complete(){s=!0,d=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{l--,h.unsubscribe(),d&&!s&&e&&0===l&&(d.unsubscribe(),d=void 0,r=void 0)})}}(t))}class Ec{}let Mg=(()=>{class n extends Ec{getTranslation(e){return(0,Ne.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Sg{}let ew=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Ap(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,d,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in d=Object.create(null),n){if(!Ap(n[l],a[l]))return!1;d[l]=!0}for(l in a)if(!(l in d)&&void 0!==a[l])return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{Eg(a[t])?t in n?e[t]=Dg(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class vp{}let tw=(()=>{class n extends vp{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(),!Xa(e)||!Xa(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,l)=>{let d=this.getValue(t,l);return Xa(d)?d:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Tp{}let iw=(()=>{class n extends Tp{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class nw{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const Hg=new i.OlP("USE_STORE"),kg=new i.OlP("USE_DEFAULT_LANG"),Pg=new i.OlP("DEFAULT_LANGUAGE"),xp=new i.OlP("USE_EXTEND");let Li=(()=>{class n{constructor(e,t,r,l,d,o=!0,s=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=o,this.isolate=s,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}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);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,jt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ne.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,jt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ne.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||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(Cp(1),(0,jt.q)(1));return this.loadingTranslations=t.pipe((0,dt.U)(r=>this.compiler.compileTranslations(r,e)),Cp(1),(0,jt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},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]?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,r){let l;if(t instanceof Array){let d={},o=!1;for(let s of t)d[s]=this.getParsedResult(e,s,r),Ka(d[s])&&(o=!0);return o?xg(t.map(c=>Ka(d[c])?d[c]:(0,Ne.of)(d[c]))).pipe((0,dt.U)(c=>{let u={};return c.forEach((h,m)=>{u[t[m]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),void 0===l&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),void 0===l){let d={key:t,translateService:this};void 0!==r&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return void 0!==l?l:t}get(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Er.b)(r=>Ka(r=this.getParsedResult(r,e,t))?r:(0,Ne.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Ka(r)?r:(0,Ne.of)(r)}}getStreamOnTranslationChange(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');return Tn(Kn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,nn.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,Ne.of)(l)})))}stream(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');return Tn(Kn(()=>this.get(e,t)),this.onLangChange.pipe((0,nn.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Ka(l)?l:(0,Ne.of)(l)})))}instant(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Ka(r)){if(e instanceof Array){let l={};return e.forEach((d,o)=>{l[e[o]]=e[o]}),l}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("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)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 n.\u0275fac=function(e){return new(e||n)(i.LFG(nw),i.LFG(Ec),i.LFG(Tp),i.LFG(vp),i.LFG(Sg),i.LFG(kg),i.LFG(Hg),i.LFG(xp),i.LFG(Pg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ct=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);Ka(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Ap(e,this.lastKey)&&Ap(t,this.lastParams))return this.value;let r;if(Xa(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch(d){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(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Dc=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:Ec,useClass:Mg},e.compiler||{provide:Tp,useClass:iw},e.parser||{provide:vp,useClass:tw},e.missingTranslationHandler||{provide:Sg,useClass:ew},nw,{provide:Hg,useValue:e.isolate},{provide:kg,useValue:e.useDefaultLang},{provide:xp,useValue:e.extend},{provide:Pg,useValue:e.defaultLanguage},Li]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:Ec,useClass:Mg},e.compiler||{provide:Tp,useClass:iw},e.parser||{provide:vp,useClass:tw},e.missingTranslationHandler||{provide:Sg,useClass:ew},{provide:Hg,useValue:e.isolate},{provide:kg,useValue:e.useDefaultLang},{provide:xp,useValue:e.extend},{provide:Pg,useValue:e.defaultLanguage},Li]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),fT=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn))},n.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[kn],pipes:[Ct],styles:[""]}),n})();const mT=["mat-button",""],gT=["*"],aw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lg=Ja(fa(ma(class{constructor(n){this._elementRef=n}})));let Ft=(()=>{class n extends Lg{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 l of aw)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(rr),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,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&&i.Gf(qt,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:mT,ngContentSelectors:gT,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&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[qt],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),Gr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa,st],st]}),n})();const _T=["connectionContainer"],sw=["inputContainer"],bT=["label"];function ow(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15),i._UZ(3,"div",16),i._UZ(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i.qZA(),i.BQk())}function yT(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function lw(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function O0(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function wT(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Cu(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.YNc(2,lw,4,1,"ng-container",12),i.YNc(3,O0,1,0,"ng-content",12),i.YNc(4,wT,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.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),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function CT(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function Hc(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Au(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function AT(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function B0(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,AT,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const cw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],vT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let TT=0;const dw=new i.OlP("MatError");let Hs=(()=>{class n{constructor(e,t){this.id="mat-error-"+TT++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:dw,useExisting:n}])]}),n})();const uw={transitionMessages:ei("transitionMessages",[Dt("enter",He({opacity:1,transform:"translateY(0%)"})),ft("void => enter",[He({opacity:0,transform:"translateY(-5px)"}),ct("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),xT=0;const Og=new i.OlP("MatHint");let pw=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+xT++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:Og,useExisting:n}])]}),n})(),es=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),MT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const ST=new i.OlP("MatPrefix"),mw=new i.OlP("MatSuffix");let gw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:mw,useExisting:n}])]}),n})(),_w=0;const bw=Ja(class{constructor(n){this._elementRef=n}},"primary"),kc=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bg=new i.OlP("MatFormField");let Wn=(()=>{class n extends bw{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ee.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+_w++,this._labelId="mat-form-field-label-"+_w++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==s,this.appearance=l&&l.appearance?l.appearance:"legacy",this._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&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(Wt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Je(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Je(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Mi.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Wt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Wt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Je(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,ua(this._label.nativeElement,"transitionend").pipe((0,jt.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(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.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",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*j+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,zd],st]}),n})();function Tu(n){return n&&"function"==typeof n.connect}class Vg{applyChanges(a,e,t,r,l){a.forEachOperation((d,o,s)=>{let c,u;if(null==d.previousIndex){const h=t(d,o,s);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==s?(e.remove(o),u=3):(c=e.get(o),e.move(c,s),u=2);l&&l({context:null==c?void 0:c.context,operation:u,record:d})})}detach(){}}class Ii{constructor(a=!1,e,t=!0){this._multiple=a,this._emitChanges=t,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ee.xQ,e&&e.length&&(a?e.forEach(r=>this._markSelected(r)):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(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...a){this._verifyValueAssignment(a),a.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(a){this.isSelected(a)?this.deselect(a):this.select(a)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(a){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._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){}}let Ep=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xu=new i.OlP("_ViewRepeater");let yw=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),Tl=(()=>{class n extends yw{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const lr=new i.OlP("NgValueAccessor"),kT={provide:lr,useExisting:(0,i.Gpc)(()=>Pn),multi:!0},Cw=new i.OlP("CompositionEventMode");let Pn=(()=>{class n extends yw{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Mu(){const n=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(Cw,8))},n.\u0275dir=i.lG2({type:n,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&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([kT]),i.qOj]}),n})();function ks(n){return null==n||0===n.length}function jg(n){return null!=n&&"number"==typeof n.length}const on=new i.OlP("NgValidators"),Ps=new i.OlP("NgAsyncValidators"),PT=/^(?=.{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 Oi{static min(a){return function Fg(n){return a=>{if(ks(a.value)||ks(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(ks(a.value)||ks(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return Aw(a)}static requiredTrue(a){return function vw(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function Pc(n){return ks(n.value)||PT.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function Tw(n){return a=>ks(a.value)||!jg(a.value)?null:a.value.lengthjg(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function ga(n){if(!n)return Hp;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(ks(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 Du(a)}static composeAsync(a){return Sw(a)}}function Aw(n){return ks(n.value)?{required:!0}:null}function Hp(n){return null}function Su(n){return null!=n}function Rc(n){const a=(0,i.QGY)(n)?(0,dn.D)(n):n;return(0,i.CqO)(a),a}function xw(n){let a={};return n.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function Mw(n,a){return a.map(e=>e(n))}function Eu(n){return n.map(a=>function RT(n){return!n.validate}(a)?a:e=>a.validate(e))}function Du(n){if(!n)return null;const a=n.filter(Su);return 0==a.length?null:function(e){return xw(Mw(e,a))}}function Yg(n){return null!=n?Du(Eu(n)):null}function Sw(n){if(!n)return null;const a=n.filter(Su);return 0==a.length?null:function(e){return xg(Mw(e,a).map(Rc)).pipe((0,dt.U)(xw))}}function kp(n){return null!=n?Sw(Eu(n)):null}function Ug(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function Pp(n){return n._rawValidators}function zg(n){return n._rawAsyncValidators}function qg(n){return n?Array.isArray(n)?n:[n]:[]}function Rp(n,a){return Array.isArray(n)?n.includes(a):n===a}function LT(n,a){const e=qg(a);return qg(n).forEach(r=>{Rp(e,r)||e.push(r)}),e}function Lp(n,a){return qg(a).filter(e=>!Rp(n,e))}class Ip{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=Yg(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=kp(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 Wr extends Ip{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wn extends Ip{get formDirective(){return null}get path(){return null}}class Op{constructor(a){this._cd=a}is(a){var e,t,r;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===r?void 0:r[a])}}let cr=(()=>{class n extends Op{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Wr,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.qOj]}),n})(),Ew=(()=>{class n extends Op{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[i.qOj]}),n})();function Gg(n,a){return[...a.path,n]}function Rs(n,a){Fp(n,a),a.valueAccessor.writeValue(n.value),function YT(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Zg(n,a)})}(n,a),function Pw(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function Wg(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Zg(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function NT(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function jp(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Np(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Oc(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Fp(n,a){const e=Pp(n);null!==a.validator?n.setValidators(Ug(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=zg(n);null!==a.asyncValidator?n.setAsyncValidators(Ug(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();Oc(a._rawValidators,r),Oc(a._rawAsyncValidators,r)}function Np(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=Pp(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=zg(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return Oc(a._rawValidators,t),Oc(a._rawAsyncValidators,t),e}function Zg(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Hu(n,a){Fp(n,a)}function Jg(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function ku(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Yp(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===Pn?e=l:function Lw(n){return Object.getPrototypeOf(n.constructor)===Tl}(l)?t=l:r=l}),r||t||e||null}function Qg(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}const Up="VALID",zp="INVALID",Bc="PENDING",Vc="DISABLED";function Kg(n){return(Gp(n)?n.validators:n)||null}function Xg(n){return Array.isArray(n)?Yg(n):n||null}function qp(n,a){return(Gp(a)?a.asyncValidators:n)||null}function Bw(n){return Array.isArray(n)?kp(n):n||null}function Gp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Wp=n=>n instanceof Ei,Zp=n=>n instanceof a_,e_=n=>n instanceof s_;function t_(n){return Wp(n)?n.value:n.getRawValue()}function i_(n,a){const e=Zp(n),t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[a])throw new i.vHH(1001,"")}function n_(n,a){Zp(n),n._forEachChild((t,r)=>{if(void 0===a[r])throw new i.vHH(1002,"")})}class r_{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=Xg(this._rawValidators),this._composedAsyncValidatorFn=Bw(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===Up}get invalid(){return this.status===zp}get pending(){return this.status==Bc}get disabled(){return this.status===Vc}get enabled(){return this.status!==Vc}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=Xg(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Bw(a)}addValidators(a){this.setValidators(LT(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(LT(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Lp(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Lp(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=Bc,!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=Vc,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Up,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},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}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Up||this.status===Bc)&&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()?Vc:Up}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Bc,this._hasOwnPendingAsyncValidator=!0;const e=Rc(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){return function Ow(n,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=n;return a.forEach(r=>{t=Zp(t)?t.controls.hasOwnProperty(r)?t.controls[r]:null:e_(t)&&t.at(r)||null}),t}(this,a,".")}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 i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Vc:this.errors?zp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bc)?Bc:this._anyControlsHaveStatus(zp)?zp:Up}_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)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Gp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ei extends r_{constructor(a=null,e,t){super(Kg(e),qp(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}),Gp(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(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){Qg(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Qg(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){this._isBoxedValue(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}}class a_ extends r_{constructor(a,e,t){super(Kg(e),qp(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={}){n_(this,a),Object.keys(a).forEach(t=>{i_(this,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=>{this.controls[t]&&this.controls[t].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]=t_(e),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 of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),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}}class s_ extends r_{constructor(a,e,t){super(Kg(e),qp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[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={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){n_(this,a),a.forEach((t,r)=>{i_(this,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=>t_(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_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)}}const U0={provide:wn,useExisting:(0,i.Gpc)(()=>jc)},$p=(()=>Promise.resolve(null))();let jc=(()=>{class n extends wn{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new a_({},Yg(e),kp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){$p.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Rs(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){$p.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){$p.then(()=>{const t=this._findContainer(e.path),r=new a_({});Hu(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){$p.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){$p.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,ku(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(on,10),i.Y36(Ps,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([U0]),i.qOj]}),n})();const o_={provide:Wr,useExisting:(0,i.Gpc)(()=>Ml)},xl=(()=>Promise.resolve(null))();let Ml=(()=>{class n extends Wr{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new Ei,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Yp(0,l)}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),Jg(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(){Rs(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){xl.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=""===t||t&&"false"!==t;xl.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?Gg(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,9),i.Y36(on,10),i.Y36(Ps,10),i.Y36(lr,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([o_]),i.qOj,i.TTD]}),n})(),Vw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),l_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Fw=new i.OlP("NgModelWithFormControlWarning"),q0={provide:Wr,useExisting:(0,i.Gpc)(()=>_a)};let _a=(()=>{class n extends Wr{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Yp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&jp(t,this,!1),Rs(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Jg(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&jp(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 n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(on,10),i.Y36(Ps,10),i.Y36(lr,10),i.Y36(Fw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([q0]),i.qOj,i.TTD]}),n})();const WT={provide:wn,useExisting:(0,i.Gpc)(()=>Ls)};let Ls=(()=>{class n extends wn{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 i.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&&(Np(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 Rs(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){jp(e.control||null,e,!1),Qg(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,ku(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&&(jp(t||null,e),Wp(r)&&(Rs(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Hu(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function $g(n,a){return Np(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Fp(this.form,this),this._oldForm&&Np(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(on,10),i.Y36(Ps,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([WT]),i.qOj,i.TTD]}),n})();const Ar={provide:Wr,useExisting:(0,i.Gpc)(()=>u_)};let u_=(()=>{class n extends Wr{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Yp(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Jg(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 Gg(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,13),i.Y36(on,10),i.Y36(Ps,10),i.Y36(lr,10),i.Y36(Fw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([Ar]),i.qOj,i.TTD]}),n})(),Fc=(()=>{class n{constructor(){this._validator=Hp}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):Hp,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const Jw={provide:on,useExisting:(0,i.Gpc)(()=>xo),multi:!0};let xo=(()=>{class n extends Fc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function ba(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>Aw}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([Jw]),i.qOj]}),n})(),tC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[l_]]}),n})(),iC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tC]}),n})(),Ou=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Fw,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tC]}),n})(),ax=(()=>{class n{group(e,t=null){const r=this._reduceControls(e);let o,l=null,d=null;return null!=t&&(function nC(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(t)?(l=null!=t.validators?t.validators:null,d=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,d=null!=t.asyncValidator?t.asyncValidator:null)),new a_(r,{asyncValidators:d,updateOn:o,validators:l})}control(e,t,r){return new Ei(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new s_(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return Wp(e)||Zp(e)||e_(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Ou}),n})();const sx=["trigger"],W0=["panel"];function Z0(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function $0(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function J0(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function Q0(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,$0,2,1,"span",10),i.YNc(2,J0,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function ox(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.TgZ(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){return i.CHM(e),i.oxw()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)}),i.Hsn(3,1),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const nf=[[["mat-select-trigger"]],"*"],lx=["mat-select-trigger","*"],rC={transformPanelWrap:ei("transformPanelWrap",[ft("* => void",Dn("@transformPanel",[ty()],{optional:!0}))]),transformPanel:ei("transformPanel",[Dt("void",He({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Dt("showing",He({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Dt("showing-multiple",He({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ft("void => *",ct("120ms cubic-bezier(0, 0, 0.2, 1)")),ft("* => void",ct("100ms 25ms linear",He({opacity:0})))])};let rf=0;const ux=new i.OlP("mat-select-scroll-strategy"),X0=new i.OlP("MAT_SELECT_CONFIG"),aC={provide:ux,deps:[br],useFactory:function K0(n){return()=>n.scrollStrategies.reposition()}};class hx{constructor(a,e){this.source=a,this.value=e}}const px=ma(wl(fa(pp(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r}})))),fx=new i.OlP("MatSelectTrigger");let sC=(()=>{class n extends px{constructor(e,t,r,l,d,o,s,c,u,h,m,b,j,ie){var pe,Ue,Tt;super(d,l,s,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=o,this._parentFormField=u,this._liveAnnouncer=j,this._defaultOptions=ie,this._panelOpen=!1,this._compareWith=(at,Ut)=>at===Ut,this._uid="mat-select-"+rf++,this._triggerAriaLabelledBy=null,this._destroy=new Ee.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+rf++,this._panelDoneAnimatingStream=new Ee.xQ,this._overlayPanelClass=(null===(pe=this._defaultOptions)||void 0===pe?void 0:pe.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Tt=null===(Ue=this._defaultOptions)||void 0===Ue?void 0:Ue.disableOptionCentering)&&void 0!==Tt&&Tt,this.ariaLabel="",this.optionSelectionChanges=Kn(()=>{const at=this.options;return at?at.changes.pipe(Wt(at),(0,nn.w)(()=>(0,Mi.T)(...at.map(Ut=>Ut.onSelectionChange)))):this._ngZone.onStable.pipe((0,jt.q)(1),(0,nn.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,zt.h)(at=>at),(0,dt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,zt.h)(at=>!at),(0,dt.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ie?void 0:ie.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ie.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(m)||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,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Oi.required))&&void 0!==l&&l}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){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=_i(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Ii(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ll(),Je(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Je(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Wt(null),Je(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,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,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!Ki(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const o=this.selected;d.onKeydown(e);const s=this.selected;s&&o!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||Ki(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const o=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(o?s.select():s.deselect())})}else{const o=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&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,jt.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._selectValue(t)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(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(l){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new Pm(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Je(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Je(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,Mi.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Je(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Mi.T)(...this.options.map(t=>t._stateChanges)).pipe(Je(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){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ya),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(wr),i.Y36(i.SBq),i.Y36(xi,8),i.Y36(jc,8),i.Y36(Ls,8),i.Y36(Bg,8),i.Y36(Wr,10),i.$8M("tabindex"),i.Y36(ux),i.Y36(fv),i.Y36(X0,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(sx,5),i.Gf(W0,5),i.Gf(Bh,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),Uc=(()=>{class n extends sC{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 l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Je(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,jt.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=zy(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function nT(n,a,e,t){return ne+t?Math.max(0,n-t+a):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 hx(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const o=0-(e.left+d-(r?l:0)),s=e.right+d-t.width+(r?0:l);o>0?d+=o+8:s>0&&(d-=s+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,o=Math.floor(256/l);let s;return this.disableOptionCentering?0:(s=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-o))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*s-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):o>l?this._adjustPanelDown(o,l,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 l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,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),d=t*e-r;let o;o=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),o+=zy(o,this.options,this.optionGroups);const s=r/2;this._scrollTop=this._calculateOverlayScroll(o,s,d),this._offsetY=this._calculateOverlayOffsetY(o,s,d),this._checkOverlayWithinViewport(d)}_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 n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,fx,5),i.Suo(r,xc,5),i.Suo(r,vg,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.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-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),i.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:[i._Bn([{provide:vu,useExisting:n},{provide:Uy,useExisting:n}]),i.qOj],ngContentSelectors:lx,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&&(i.F$t(nf),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,Z0,2,1,"span",3),i.YNc(5,Q0,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA(),i.qZA(),i.YNc(8,ox,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.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)}},directives:[jb,T.RF,T.n9,T.ED,Bh,T.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[rC.transformPanelWrap,rC.transformPanel]},changeDetection:0}),n})(),Vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[aC],imports:[[T.ez,_o,Mc,st],gr,vl,Mc,st]}),n})();const oC=new Set;let El,af=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lC}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function iS(n){if(!oC.has(n))try{El||(El=document.createElement("style"),El.setAttribute("type","text/css"),document.head.appendChild(El)),El.sheet&&(El.sheet.insertRule(`@media ${n} {body{ }}`,0),oC.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lC(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let sf=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Ee.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return cC(Hd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=cC(Hd(e)).map(d=>this._registerQuery(d).observable);let l=(0,ka.aj)(r);return l=Tn(l.pipe((0,jt.q)(1)),l.pipe(Vh(1),(0,ol.b)(0))),l.pipe((0,dt.U)(d=>{const o={matches:!1,breakpoints:{}};return d.forEach(({matches:s,query:c})=>{o.matches=o.matches||s,o.breakpoints[c]=s}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new ki.y(d=>{const o=s=>this._zone.run(()=>d.next(s));return t.addListener(o),()=>{t.removeListener(o)}}).pipe(Wt(t),(0,dt.U)(({matches:d})=>({query:e,matches:d})),Je(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(af),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cC(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const gx={tooltipState:ei("state",[Dt("initial, void, hidden",He({opacity:0,transform:"scale(0)"})),Dt("visible",He({transform:"scale(1)"})),ft("* => visible",ct("200ms cubic-bezier(0, 0, 0.2, 1)",ul([He({opacity:0,transform:"scale(0)",offset:0}),He({opacity:.5,transform:"scale(0.99)",offset:.5}),He({opacity:1,transform:"scale(1)",offset:1})]))),ft("* => hidden",ct("100ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:0})))])},dC="tooltip-panel",uC=ja({passive:!0}),hC=new i.OlP("mat-tooltip-scroll-strategy"),wx={provide:hC,deps:[br],useFactory:function yx(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Cx=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function rS(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let aS=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,m,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=h,this._defaultOptions=m,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 Ee.xQ,this._scrollStrategy=u,this._document=b,m&&(m.position&&(this.position=m.position),m.touchGestures&&(this.touchGestures=m.touchGestures)),h.change.pipe(Je(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=Oe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=_i(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=_i(e)}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(Je(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,uC)}),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 tl(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.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(Je(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}-${dC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Je(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Je(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Ki(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),l.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),l.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:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_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:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,jt.q)(1),Je(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:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const o=this._overlayRef;if(o){const s=`${this._cssClassPrefix}-${dC}-`;o.removePanelClass(s+this._currentPosition),o.addPanelClass(s+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",()=>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,uC)})}_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 n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),zc=(()=>{class n extends aS{constructor(e,t,r,l,d,o,s,c,u,h,m,b){super(e,t,r,l,d,o,s,c,u,h,m,b),this._tooltipComponent=oS}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(bi),i.Y36(km),i.Y36(rr),i.Y36(hC),i.Y36(xi,8),i.Y36(Cx,8),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),sS=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Ee.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n}),n})(),oS=(()=>{class n extends sS{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(sf))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&i.Udp("zoom","visible"===t._visibility?1:null)},features:[i.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(l){return t._animationDone(l)}),i.ALo(1,"async"),i._uU(2),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(1,5,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),i.xp6(2),i.Oqu(t.message)}},directives:[T.mk],pipes:[T.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[gx.tooltipState]},changeDetection:0}),n})(),ju=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wx],imports:[[zh,T.ez,_o,st],st,gr]}),n})();function lS(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function cS(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16),i.TgZ(1,"mat-select",17),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw(2)._changePageSize(r.value)}),i.YNc(2,lS,2,2,"mat-option",18),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function dS(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function uS(n,a){if(1&n&&(i.TgZ(0,"div",12),i.TgZ(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,cS,3,6,"mat-form-field",14),i.YNc(4,dS,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function p(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(e),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function f(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let g=(()=>{class n{constructor(){this.changes=new Ee.xQ,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 l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const y={provide:g,deps:[[new i.FiY,new i.tp0,g]],useFactory:function _(n){return n||new g}},k=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),R=fa(bg(class{}));let N=(()=>{class n extends R{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.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:o,showFirstLastButtons:s}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=o&&(this._hidePageSize=o),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(_i(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=_i(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(_i(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>_i(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 n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),n})(),q=(()=>{class n extends N{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(g),i.Y36(i.sBO),i.Y36(k,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.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","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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,uS,5,3,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,p,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA(),i.qZA(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA(),i.qZA(),i.YNc(13,f,3,5,"button",11),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},directives:[Wn,Uc,xc,Ft,T.O5,T.sg,zc],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[y],imports:[[T.ez,Gr,Vu,ju,st]]}),n})();var se=x(943);const ue=["mat-menu-item",""];function Ce(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const Le=["*"];function Fe(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)})("click",function(){return i.CHM(e),i.oxw().closed.emit("click")})("@transformMenu.start",function(r){return i.CHM(e),i.oxw()._onAnimationStart(r)})("@transformMenu.done",function(r){return i.CHM(e),i.oxw()._onAnimationDone(r)}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const We={transformMenu:ei("transformMenu",[Dt("void",He({opacity:0,transform:"scale(0.8)"})),ft("void => enter",ct("120ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:1,transform:"scale(1)"}))),ft("* => void",ct("100ms 25ms linear",He({opacity:0})))]),fadeInItems:ei("fadeInItems",[Dt("showing",He({opacity:1})),ft("void => *",[He({opacity:0}),ct("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Nt=new i.OlP("MatMenuContent"),Fu=new i.OlP("MAT_MENU_PANEL"),y_=ma(fa(class{}));let Dl=(()=>{class n extends y_{constructor(e,t,r,l,d){var o;super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new Ee.xQ,this._focused=new Ee.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(o=null==l?void 0:l.addItem)||void 0===o||o.call(l,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 l=0;l{class n{constructor(e,t,r){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=he.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Ee.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+C_++}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 dl(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Wt(this._directDescendantItems),(0,nn.w)(e=>(0,Mi.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Wt(this._directDescendantItems),(0,nn.w)(t=>(0,Mi.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Ki(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.lazyContent?this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===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}_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(Wt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(lf))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Nt,5),i.Suo(r,Dl,5),i.Suo(r,Dl,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.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"}}),n})(),hS=(()=>{class n extends A_{constructor(e,t,r){super(e,t,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(lf))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Fu,useExisting:n}]),i.qOj],ngContentSelectors:Le,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&&(i.F$t(),i.YNc(0,Fe,3,6,"ng-template"))},directives:[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}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),n})();const pS=new i.OlP("mat-menu-scroll-strategy"),hH={provide:pS,deps:[br],useFactory:function uH(n){return()=>n.scrollStrategies.reposition()}},mS=ja({passive:!0});let pH=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=o,this._dir=s,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=he.w.EMPTY,this._hoverSubscription=he.w.EMPTY,this._menuCloseSubscription=he.w.EMPTY,this._handleTouchStart=u=>{Uh(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=d instanceof A_?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,mS),o&&(o._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._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,mS),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),r=t.positionStrategy;this._setPosition(r),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof A_&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Je(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.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(){var e;null===(e=this._overlayRef)||void 0===e||e.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 A_?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,zt.h)(r=>"void"===r.toState),(0,jt.q)(1),Je(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new fc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,d]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[l,d],[c,u]=[t,r],h=0;this.triggersSubmenu()?(u=t="before"===this.menu.xPosition?"start":"end",r=c="end"===t?"start":"end",h="bottom"===l?8:-8):this.menu.overlapTrigger||(o="top"===l?"bottom":"top",s="top"===d?"bottom":"top"),e.withPositions([{originX:t,originY:o,overlayX:c,overlayY:l,offsetY:h},{originX:r,originY:o,overlayX:u,overlayY:l,offsetY:h},{originX:t,originY:s,overlayX:c,overlayY:d,offsetY:-h},{originX:r,originY:s,overlayX:u,overlayY:d,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ne.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,zt.h)(d=>d!==this._menuItemInstance),(0,zt.h)(()=>this._menuOpen)):(0,Ne.of)();return(0,Mi.T)(e,r,l,t)}_handleMousedown(e){Yh(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,zt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,se.g)(0,om)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof A_&&this.menu._isAnimating?this.menu._animationDone.pipe((0,jt.q)(1),(0,se.g)(0,om),Je(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new fo(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(pS),i.Y36(Fu,8),i.Y36(Dl,10),i.Y36(xi,8),i.Y36(rr))},n.\u0275dir=i.lG2({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("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"}}),n})(),gS=(()=>{class n extends pH{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),gC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hH],imports:[[T.ez,st,Qa,_o],gr,st]}),n})();var _C=x(1737),fH=x(2474);const mH=["*"];let bC;function v_(n){var a;return(null===(a=function gH(){if(void 0===bC&&(bC=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(bC=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return bC}())||void 0===a?void 0:a.createHTML(n))||n}function _S(n){return Error(`Unable to find icon with the name "${n}"`)}function bS(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function yS(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Nu{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Yu=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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",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,l){return this._addSvgIconConfig(e,t,new Nu(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw yS(r);const o=v_(d);return this._addSvgIconConfig(e,t,new Nu("",o,l))}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 Nu(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw yS(t);const d=v_(l);return this._addSvgIconSetConfig(e,new Nu("",d,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(i.q3G.RESOURCE_URL,e);if(!t)throw bS(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ne.of)(yC(r)):this._loadSvgIconFromConfig(new Nu(e,null)).pipe((0,Q.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,dt.U)(l=>yC(l)))}getNamedSvgIcon(e,t=""){const r=wS(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,_C._)(_S(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ne.of)(yC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,dt.U)(t=>yC(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ne.of)(r):xg(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Un.K)(o=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${o.message}`;return this._errorHandler.handleError(new Error(c)),(0,Ne.of)(null)})))).pipe((0,dt.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw _S(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),o=this._extractSvgIconFromSet(d,e,l.options);if(o)return o}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Q.b)(t=>e.svgText=t),(0,dt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ne.of)(null):this._fetchIcon(e).pipe((0,Q.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const o=this._svgElementFromString(v_(""));return o.appendChild(d),this._setSvgAttributes(o,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(v_("")),r=e.attributes;for(let l=0;lv_(u)),ve(()=>this._inProgressUrlFetches.delete(o)),(0,fH.B)());return this._inProgressUrlFetches.set(o,c),c}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(wS(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:""}}}),CS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],vH=CS.map(n=>`[${n}]`).join(", "),TH=/^url\(['"]?#(.*?)['"]?\)$/;let Gi=(()=>{class n extends wH{constructor(e,t,r,l,d){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._currentIconFetch=he.w.EMPTY,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=e.querySelectorAll("style");for(let l=0;l{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(vH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const o=t[l],s=o.getAttribute(d),c=s?s.match(TH):null;if(c){let u=r.get(o);u||(u=[],r.set(o,u)),u.push({name:d,value:c[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,jt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Yu),i.$8M("aria-hidden"),i.Y36(CH),i.Y36(i.qLn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.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),i.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:[i.qOj],ngContentSelectors:mH,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),n})(),Gc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})(),AS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[ee,gC,Gc,Gr,Dc,T.ez]]}),n})();var xH=x(655),MH=x(9441);const Uu=[5,10,25,100];function vS(n){let a="";return null!==n.titleBefore&&(a+=n.titleBefore+" "),null!==n.firstName&&(a+=n.firstName+" "),null!==n.middleName&&(a+=n.middleName+" "),null!==n.lastName&&(a+=n.lastName+" "),null!==n.titleAfter&&(a+=n.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function Zn(){const n=new gu;return n.disableClose=!0,n.autoFocus=!1,n}const OH=new Intl.Collator("cs",{numeric:!0});function cf(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,d)=>{const o=e(l,t),s=e(d,t);return OH.compare(o,s)*("asc"===r?1:-1)}):n}function T_(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function df(n,a){let e="";return n.attributes&&n.attributes.forEach(t=>{t.friendlyName===a&&(e=t.value)}),e}function uf(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};a.forEach(o=>{var s;d[o]=(null!==(s=e(l,o))&&void 0!==s?s:"").split('"').join("''").trim()}),t.push(d)}),t}function hf(n,a="csv",e="export"){if("csv"===a){const t=(s,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(s=>r.map(c=>JSON.stringify(s[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),o=new Blob([d],{type:"text/csv"});(0,MH.saveAs)(o,`${e}.${a}`)}}const xS="GUI_CONFIG.PREF_PAGE_SIZE.";let VH=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jH=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(xS+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(xS+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(VH))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UH=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"button",1),i.TgZ(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA(),i.qZA(),i.TgZ(4,"mat-menu",null,2),i.TgZ(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-menu",null,4),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[Ft,gS,Gi,hS,Dl],pipes:[Ct],styles:[""]}),n})();function zH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}function qH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}const GH=["*"];let ts=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Uu,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}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)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jH))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(q,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:GH,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,zH,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1),i.TgZ(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,qH,1,0,"perun-web-apps-table-options",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},directives:[q,T.O5,UH],styles:[""]}),n})(),Tx=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Zn();this.dialog.open(fT,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(wu),i.LFG(hn),i.LFG(na),i.LFG(Vi),i.LFG(fn),i.LFG(C))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SS=(()=>{class n{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/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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yu),i.LFG(Vn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),WH=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn))},n.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[or,kn,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),ZH=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ln=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.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,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){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:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Li))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ES=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=o}intercept(e,t){const r=this.store.get("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.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const o=Zn();o.width="450px",this.dialogRefSessionExpiration=this.dialog.open(WH,o),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ve(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}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()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Q.b)(o=>{o instanceof w.Zn&&d&&this.initAuthService.loadPrincipal()},o=>{const s=this.formatErrors(o,e);return void 0===s?(0,_C._)(o):l?void this.notificator.showRPCError(s):(0,_C._)(s)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(wu),i.LFG(ZH),i.LFG(Ln),i.LFG(hn),i.LFG(fn),i.LFG(Tx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),DS=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$H=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new w.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,Un.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,Un.K)(o=>this.formatErrors(o,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:o}).pipe((0,Un.K)(s=>this.formatErrors(s,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Un.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,_C._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Ln),i.LFG(wu),i.LFG(hn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,o,s,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?o.data.length:o.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),o.sortData(o.filteredData,s).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(o=>o.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const o of l){const s=o.split("=");"lang"===s[0]&&(d=s[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(hn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();ei("openClose",[Dt("open",He({overflow:"hidden"})),Dt("closed",He({height:"0px",overflow:"hidden"})),ft("open <=> closed",[ct(".3s ease-in")])]);const QH=ei("flyInOut",[ft(":enter",[He({transform:"translateX(100%)"}),ct(".25s")]),ft(":leave",[ct(".5s",He({transform:"translateX(100%)"}))])]);ei("rollInOut",[ft(":enter",[He({height:"0px"}),ct(".25s")]),ft(":leave",[ct(".25s",He({height:"0px"}))])]),ei("routeAnimations",[ft("* => *",[He({position:"relative"}),Dn(":enter",[He({width:"100%",opacity:0})],{optional:!0}),Dn(":leave",[He({position:"absolute",width:"100%",opacity:1}),ct("0.15s",He({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Dn(":enter",[He({position:"absolute",width:"100%",opacity:0}),ct("0.15s",He({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),ei("tagsOpenClose",[Dt("open",He({})),Dt("closed",He({width:"0px",height:"0px"})),ft("open <=> closed",[ct(".3s ease-in")])]),ei("switchAnimations",[ft("true => false",[Dn(":enter, :leave",He({})),ey([Dn(":enter",[He({transform:"translateX(-100%)"}),ct("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),Dn(":leave",[He({transform:"translateX(0%)",position:"absolute"}),ct("1s ease-in-out",He({transform:"translateX(100%)"}))],{optional:!0})])]),ft("false => true",[Dn(":enter, :leave",He({})),ey([Dn(":enter",[He({transform:"translateX(100%)"}),ct("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),Dn(":leave",[He({transform:"translateX(0%)",position:"absolute"}),ct("1s ease-in-out",He({transform:"translateX(-100%)"}))],{optional:!0})])])]),ei("slideInOutLeft",[ft(":enter",[He({transform:"translateX(-100%)",position:"relative"}),ct("0.5s ease-in",He({transform:"translateX(0%)"}))]),ft(":leave",[ct("0.5s ease-in",He({transform:"translateX(-100%)"}))])]),ei("slideInOutRight",[ft(":enter",[He({transform:"translateX(100%)",position:"fixed"}),ct("0.5s ease-in",He({transform:"translateX(0%)"}))]),ft(":leave",[He({transform:"translateX(-100%)",position:"relative"}),ct("0.5s ease-in",He({transform:"translateX(100%)"}))])]);let HS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez]]}),n})();function a1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.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)),i.uIk("r",e._getCircleRadius())}}function s1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function o1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.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)),i.uIk("r",e._getCircleRadius())}}function l1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const u1=Ja(class{constructor(n){this._elementRef=n}},"primary"),kS=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function h1(){return{diameter:100}}});class Hl extends u1{constructor(a,e,t,r,l,d,o,s){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=he.w.EMPTY,this.mode="determinate";const c=Hl._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,l&&(l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&o&&d&&s&&(this._resizeSubscription=o.change(150).subscribe(()=>{"indeterminate"===this.mode&&s.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=_i(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=_i(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,_i(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Eh(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=Hl._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),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(".","_")}}Hl._diameters=new WeakMap,Hl.\u0275fac=function(a){return new(a||Hl)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0,8),i.Y36(Si,8),i.Y36(kS),i.Y36(i.sBO),i.Y36(Ya),i.Y36(i.R0b))},Hl.\u0275cmp=i.Xpm({type:Hl,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.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),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.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&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,a1,1,11,"circle",2),i.YNc(3,s1,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});let mn=(()=>{class n extends Hl{constructor(e,t,r,l,d,o,s,c){super(e,t,r,l,d,o,s,c),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0,8),i.Y36(Si,8),i.Y36(kS),i.Y36(i.sBO),i.Y36(Ya),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[i.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(e,t){1&e&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,o1,1,11,"circle",2),i.YNc(3,l1,1,9,"circle",3),i.qZA()),2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===t.mode),i.uIk("viewBox",t._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0}),n})(),CC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st,T.ez],st]}),n})();const PS=ja({passive:!0});let f1=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ur.E;const t=Qi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new Ee.xQ,d="cdk-text-field-autofilled",o=s=>{"cdk-text-field-autofill-start"!==s.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===s.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",o,PS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",o,PS)}}),l}stopMonitoring(e){const t=Qi(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 n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),RS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cc]]}),n})();const LS=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),m1=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g1=0;const _1=pp(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let is=(()=>{class n extends _1{constructor(e,t,r,l,d,o,s,c,u,h){super(o,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g1++,this.focused=!1,this.stateChanges=new Ee.xQ,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(j=>dm().has(j));const m=this._elementRef.nativeElement,b=m.nodeName.toLowerCase();this._inputValueAccessor=s||m,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",j=>{const ie=j.target;!ie.value&&0===ie.selectionStart&&0===ie.selectionEnd&&(ie.setSelectionRange(1,1),ie.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=m.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(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Oi.required))&&void 0!==l&&l}set required(e){this._required=Oe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&dm().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)}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,t;const r=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){m1.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(Wr,10),i.Y36(jc,8),i.Y36(Ls,8),i.Y36(wr),i.Y36(LS,10),i.Y36(f1),i.Y36(i.R0b),i.Y36(Bg,8))},n.\u0275dir=i.lG2({type:n,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&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.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),i.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:[i._Bn([{provide:vu,useExisting:n}]),i.qOj,i.TTD]}),n})(),AC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wr],imports:[[RS,vl,st],RS,vl]}),n})();function b1(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function y1(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function w1(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function C1(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"mat-form-field"),i.TgZ(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().subject=r}),i.qZA(),i.YNc(7,y1,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field"),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().message=r}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,w1,3,3,"mat-error",11),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let A1=(()=>{class n{constructor(e,t,r,l,d,o){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var e,t;(null===(t=null===(e=this.data)||void 0===e?void 0:e.error)||void 0===t?void 0:t.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.get("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 l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Li),i.Y36(Ln),i.Y36(en),i.Y36(qr),i.Y36(hn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,b1,1,0,"mat-spinner",1),i.YNc(4,C1,17,13,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[or,T.O5,mn,kn,Wn,es,is,Pn,xo,cr,Ml,Hs,Cr,Ft],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),v1=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Zn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(A1,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(fn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[or,kn,Cr,Ft],pipes:[Ct],styles:[""]}),n})();const E1=[[["caption"]],[["colgroup"],["col"]]],D1=["caption","colgroup, col"];function Mx(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=Oe(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const pf=new i.OlP("CDK_TABLE");let ff=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),mf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),vC=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class R1{}const L1=Mx(R1);let kl=(()=>{class n extends L1{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ff,5),i.Suo(r,mf,5),i.Suo(r,vC,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class Sx{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let Ex=(()=>{class n extends Sx{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(kl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),Dx=(()=>{class n extends Sx{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(kl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class OS{constructor(){this.tasks=[],this.endTasks=[]}}const Hx=new i.OlP("_COALESCED_STYLE_SCHEDULER");let BS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Ee.xQ}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 OS,this._getScheduleObservable().pipe(Je(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new OS;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,dn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,jt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),kx=(()=>{class n{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 x_?e.headerCell.template:this instanceof M_?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class I1 extends kx{}const O1=Mx(I1);let x_=(()=>{class n extends O1{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class B1 extends kx{}const V1=Mx(B1);let M_=(()=>{class n extends V1{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),TC=(()=>{class n extends kx{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Pl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Px=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),Lx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),xC=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const VS=["top","bottom","left","right"];class j1{constructor(a,e,t,r,l=!0,d=!0,o){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=o,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 l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(m=>m)&&!t.some(m=>m))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],d=l.children.length,o=this._getCellWidths(l,r),s=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const m="rtl"===this.direction,b=m?"right":"left",j=m?"left":"right";for(const ie of a)for(let pe=0;pee[pe]?ie:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:o.slice(h).map((ie,pe)=>t[pe+h]?ie:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,d=[],o=[],s=[];for(let u=0,h=0;u{var u,h;for(let m=0;m{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]);VS.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 VS)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 l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const Ix=new i.OlP("CDK_SPL");let MC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),SC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),EC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),DC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),HC=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,m,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=m,this._ngZone=b,this._onDestroy=new Ee.xQ,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 i.vpe,this.viewChange=new $i({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=o,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(Je(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(),Tu(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,l,d)=>this._getEmbeddedViewArgs(r.item,d),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&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,jt.q)(1),Je(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 l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.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((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let o=0;o{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const o=r&&r.has(d)?r.get(d):[];if(o.length){const s=o.shift();return s.dataIndex=t,s}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),kC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=kC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=kC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=kC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,o)=>d||!!o.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],Tu(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;Tu(this.dataSource)?e=this.dataSource.connect(this):Ka(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ne.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Je(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(o=>this._columnDefsByName.get(o)),l=r.map(o=>o.sticky),d=r.map(o=>o.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Pl.mostRecentCellOutlet&&Pl.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 l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}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 j1(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,Ne.of)()).pipe(Je(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 l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&(null==d?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(xi,8),i.Y36(T.K0),i.Y36(bi),i.Y36(xu),i.Y36(Hx),i.Y36(Ya),i.Y36(Ix,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xC,5),i.Suo(r,kl,5),i.Suo(r,TC,5),i.Suo(r,x_,5),i.Suo(r,M_,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(MC,7),i.Gf(SC,7),i.Gf(EC,7),i.Gf(DC,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:pf,useExisting:n},{provide:xu,useClass:Vg},{provide:Hx,useClass:BS},{provide:Ix,useValue:null}])],ngContentSelectors:D1,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(E1),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[SC,MC,DC,EC],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function kC(n,a){return n.concat(Array.from(a))}let N1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[el]]}),n})();const Y1=[[["caption"]],[["colgroup"],["col"]]],U1=["caption","colgroup, col"];let Mo=(()=>{class n extends HC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:xu,useClass:Vg},{provide:HC,useExisting:n},{provide:pf,useExisting:n},{provide:Hx,useClass:BS},{provide:Ix,useValue:null}]),i.qOj],ngContentSelectors:U1,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(Y1),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[SC,MC,DC,EC],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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),Is=(()=>{class n extends ff{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:ff,useExisting:n}]),i.qOj]}),n})(),Os=(()=>{class n extends mf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:mf,useExisting:n}]),i.qOj]}),n})(),Bs=(()=>{class n extends kl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:kl,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),Vs=(()=>{class n extends Ex{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),js=(()=>{class n extends Dx{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),Rl=(()=>{class n extends x_{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:x_,useExisting:n}]),i.qOj]}),n})(),So=(()=>{class n extends TC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:TC,useExisting:n}]),i.qOj]}),n})(),Ll=(()=>{class n extends Px{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:Px,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),Eo=(()=>{class n extends Lx{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:Lx,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),Ox=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[N1,st],st]}),n})();class Il extends class ek extends class V0{}{constructor(a=[]){super(),this._renderData=new $i([]),this._filter=new $i(""),this._internalPageChanges=new Ee.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Xf(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,o)=>{let s=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(o,r);const u=typeof s,h=typeof c;u!==h&&("number"===u&&(s+=""),"number"===h&&(c+=""));let m=0;return null!=s&&null!=c?s>c?m=1:s{const r=Object.keys(e).reduce((d,o)=>d+e[o]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new $i(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,Mi.T)(this._sort.sortChange,this._sort.initialized):(0,Ne.of)(null),t=this._paginator?(0,Mi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ne.of)(null),l=(0,ka.aj)([this._data,this._filter]).pipe((0,dt.U)(([s])=>this._filterData(s))),d=(0,ka.aj)([l,e]).pipe((0,dt.U)(([s])=>this._orderData(s))),o=(0,ka.aj)([d,t]).pipe((0,dt.U)(([s])=>this._pageData(s)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=o.subscribe(s=>this._renderData.next(s))}_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}}{}function tk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function ik(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function nk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function rk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const ak=["*"];let Fs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:ak,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&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,tk,2,0,"mat-icon",1),i.YNc(2,ik,2,0,"mat-icon",1),i.YNc(3,nk,2,0,"mat-icon",1),i.YNc(4,rk,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.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),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},directives:[T.O5,Gi],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}"]}),n})();function sk(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function ok(n,a){1&n&&(i.TgZ(0,"div",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function lk(n,a){1&n&&i._UZ(0,"th",18)}function ck(n,a){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function dk(n,a){1&n&&i._UZ(0,"tr",20)}function uk(n,a){1&n&&i._UZ(0,"tr",21)}function hk(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("alert_type","warn"),i.xp6(1),i.hij(" ",i.lcZ(2,2,e.data.alert)," ")}}function pk(n,a){if(1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,ok,3,3,"div",9),i.TgZ(5,"table",10),i.ynx(6,11),i.YNc(7,lk,1,0,"th",12),i.YNc(8,ck,2,1,"td",13),i.BQk(),i.YNc(9,dk,1,0,"tr",14),i.YNc(10,uk,1,0,"tr",15),i.qZA(),i.YNc(11,hk,3,4,"perun-web-apps-alert",16),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,e.data.description)," "),i.xp6(2),i.Q6J("ngIf",e.data.showAsk),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",e.data.alert)}}function fk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function mk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let FS=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Il(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,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","",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"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["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&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,sk,1,0,"mat-spinner",1),i.YNc(5,pk,12,8,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.YNc(10,fk,3,4,"button",5),i.YNc(11,mk,3,4,"button",6),i.qZA(),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,t.data.title)),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),i.xp6(2),i.Q6J("ngIf","remove"===t.data.type),i.xp6(1),i.Q6J("ngIf","confirmation"===t.data.type))},directives:[or,T.O5,mn,kn,Mo,Bs,Os,Vs,Is,js,Rl,Ll,So,Eo,Fs,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),xk=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"button",2),i.NdJ("click",function(){return t.onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",3),i.NdJ("click",function(){return t.onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,6,t.message)),i.xp6(4),i.hij(" ",i.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},directives:[or,Cr,Ft],pipes:[Ct],styles:[""]}),n})();function kk(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function Pk(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let Rk=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.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=Zn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(v1,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function EH(n,a){return(0,xH.mG)(this,void 0,void 0,function*(){yield function DH(n){return new Promise(a=>setTimeout(a,n))}(n),a()})}(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(DS))},n.\u0275cmp=i.Xpm({type:n,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"],[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&&(i.TgZ(0,"div"),i.TgZ(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,kk,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,Pk,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},directives:[T.O5,Gi],pipes:[Ct],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}"]}),n})();function Lk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index;return i.oxw().removeNotification(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const Ik=function(n){return{top:n}};let Ok=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln),i.Y36(DS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.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&&(i.TgZ(0,"div",0),i.YNc(1,Lk,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,Ik,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},directives:[T.PC,T.sg,Rk],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:[QH]}}),n})();const Bk=["*",[["mat-toolbar-row"]]],Vk=["*","mat-toolbar-row"],jk=Ja(class{constructor(n){this._elementRef=n}});let Fk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),Nk=(()=>{class n extends jk{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,Fk,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:Vk,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(Bk),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),YS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();function Yk(n,a){1&n&&(i.TgZ(0,"div",13),i.TgZ(1,"span",14),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",15),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",14),i._uU(6," \xa0\u{1f5f2} ~ "),i.qZA(),i.qZA())}const Uk=function(n){return{background:n}},PC=function(n){return{color:n}};let zk=(()=>{class n{constructor(e,t,r){this.storeService=e,this.authService=t,this.sanitizer=r,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.principal=this.storeService.getPerunPrincipal(),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(wu),i.Y36(Vn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:22,vars:29,consts:[[1,"header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","row"],["mat-icon-button","",1,"mt-auto","mb-auto",3,"ngStyle","click"],["routerLink","/all-publications",1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white","routerLink","/all-publications",1,"mt-auto","mb-auto","router-icon","ml-2","mr-4"],[1,"mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(i.TgZ(0,"mat-toolbar",0),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return t.sideNav.toggle()}),i.TgZ(3,"mat-icon"),i._uU(4,"menu"),i.qZA(),i.qZA(),i._UZ(5,"a",3),i._UZ(6,"mat-icon",4),i.TgZ(7,"p",5),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA(),i.YNc(10,Yk,7,0,"div",6),i.TgZ(11,"div",7),i.TgZ(12,"button",8),i.TgZ(13,"mat-icon",9),i._uU(14," person "),i.qZA(),i.TgZ(15,"span",10),i._uU(16),i.qZA(),i.qZA(),i.TgZ(17,"mat-menu",null,11),i.TgZ(19,"button",12),i.NdJ("click",function(){return t.onLogOut()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(18);i.Q6J("ngStyle",i.VKq(19,Uk,t.bgColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(21,PC,t.iconColor)),i.xp6(3),i.Q6J("innerHTML",t.logo,i.oJD),i.xp6(2),i.Q6J("ngStyle",i.VKq(23,PC,t.textColor)),i.xp6(1),i.hij(" ",i.lcZ(9,15,"HEADER.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("ngStyle",i.VKq(25,PC,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(27,PC,t.iconColor)),i.xp6(3),i.xDo(" ",t.principal.user.titleBefore," ",t.principal.user.firstName," ",t.principal.user.middleName," ",t.principal.user.lastName," ",t.principal.user.titleAfter," "),i.xp6(4),i.Oqu(i.lcZ(21,17,"HEADER.LOGOUT"))}},directives:[Nk,T.PC,Ft,Gi,J,F,T.O5,gS,hS,Dl],pipes:[Ct],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function US(n){return a=>a.lift(new qk(n))}class qk{constructor(a){this.value=a}call(a,e){return e.subscribe(new Gk(a,this.value))}}class Gk extends Yn.L{constructor(a,e){super(a),this.value=e}_next(a){this.destination.next(this.value)}}const RC=["*"],Wk=["content"];function Zk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function $k(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Jk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Qk=["mat-drawer","mat-drawer-content","*"];function Kk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Xk(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const eP=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],tP=["mat-sidenav","mat-sidenav-content","*"],zS={transformDrawer:ei("transform",[Dt("open, open-instant",He({transform:"none",visibility:"visible"})),Dt("void",He({"box-shadow":"none",visibility:"hidden"})),ft("void => open-instant",ct("0ms")),ft("void <=> open, open-instant => void",ct("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},nP=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function rP(){return!1}}),Bx=new i.OlP("MAT_DRAWER_CONTAINER");let LC=(()=>{class n extends Hh{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>GS)),i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Hh,useExisting:n}]),i.qOj],ngContentSelectors:RC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),qS=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Ee.xQ,this._animationEnd=new Ee.xQ,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,zt.h)(u=>u),(0,dt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,zt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),US(void 0)),this._closedStream=this.openedChange.pipe((0,zt.h)(u=>!u),(0,dt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,zt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),US(void 0)),this._destroyed=new Ee.xQ,this.onPositionChanged=new i.vpe,this._modeChanged=new Ee.xQ,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ua(this._elementRef.nativeElement,"keydown").pipe((0,zt.h)(u=>27===u.keyCode&&!this.disableClose&&!Ki(u)),Je(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(ll((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:m}=u;(0===m.indexOf("open")&&"void"===h||"void"===m&&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=Oe(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}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(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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(l=>{this.openedChange.pipe((0,jt.q)(1)).subscribe(d=>l(d?"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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(rr),i.Y36(bi),i.Y36(i.R0b),i.Y36(Nh),i.Y36(T.K0,8),i.Y36(Bx,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(Wk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.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:RC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Hh],encapsulation:2,data:{animation:[zS.transformDrawer]},changeDetection:0}),n})(),GS=(()=>{class n{constructor(e,t,r,l,d,o=!1,s){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=s,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new Ee.xQ,this._doCheckSubject=new Ee.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Ee.xQ,e&&e.change.pipe(Je(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(Je(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}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 null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:Oe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Wt(this._allDrawers),Je(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Wt(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,ol.b)(10),Je(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,zt.h)(t=>t.fromState!==t.toState),Je(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(Je(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Je(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,jt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Je((0,Mi.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(xi,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(Ya),i.Y36(nP),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,LC,5),i.Suo(r,qS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(LC,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:Bx,useExisting:n}])],ngContentSelectors:Qk,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&&(i.F$t(Jk),i.YNc(0,Zk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,$k,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[LC,T.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),Vx=(()=>{class n extends LC{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>ZS)),i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Hh,useExisting:n}]),i.qOj],ngContentSelectors:RC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),WS=(()=>{class n extends qS{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=_i(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=_i(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.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:[i.qOj],ngContentSelectors:RC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Hh],encapsulation:2,data:{animation:[zS.transformDrawer]},changeDetection:0}),n})(),ZS=(()=>{class n extends GS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Vx,5),i.Suo(r,WS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:Bx,useExisting:n}]),i.qOj],ngContentSelectors:tP,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&&(i.F$t(eP),i.YNc(0,Kk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Xk,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[Vx,T.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),$S=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,cc,gr],gr,st]}),n})(),aP=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(na))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();const JS=["*"],oP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],lP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],pP=fa(ma(class{})),fP=ma(class{}),mP=new i.OlP("MatList"),QS=new i.OlP("MatNavList");let gP=(()=>{class n extends pP{constructor(){super(...arguments),this._stateChanges=new Ee.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:QS,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:JS,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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:transparent;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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0}),n})(),KS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),XS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),_P=(()=>{class n extends fP{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Ee.xQ,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Je(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Oe(e)}ngAfterContentInit(){!function gp(n,a,e="mat"){n.changes.pipe(Wt(n)).subscribe(({length:t})=>{_p(a,`${e}-2-line`,!1),_p(a,`${e}-3-line`,!1),_p(a,`${e}-multi-line`,!1),2===t||3===t?_p(a,`${e}-${t}-line`,!0):t>3&&_p(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(QS,8),i.Y36(mP,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,KS,5),i.Suo(r,XS,5),i.Suo(r,$v,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:lP,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&&(i.F$t(oP),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[qt],encapsulation:2,changeDetection:0}),n})(),tE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[hu,Qa,st,Ag,T.ez],hu,st,Ag,jx]}),n})();function vP(n,a){if(1&n&&i._UZ(0,"mat-icon",6),2&n){const e=i.oxw().$implicit;i.Q6J("svgIcon",e.icon)}}function TP(n,a){if(1&n&&(i.TgZ(0,"mat-icon"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Oqu(e.icon)}}const xP=function(n){return{color:n}};function MP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){return i.CHM(e),i.oxw().shouldHideMenu()}),i.YNc(1,vP,1,1,"mat-icon",3),i.YNc(2,TP,2,1,"mat-icon",4),i.TgZ(3,"span",5),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.link),i.Q6J("ngStyle",i.VKq(10,xP,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(1),i.Q6J("ngIf",e.isSVG),i.xp6(1),i.Q6J("ngIf",!e.isSVG),i.xp6(2),i.Oqu(i.lcZ(5,8,e.label))}}let SP=(()=>{class n{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(l=>{l instanceof wt&&(this.currentUrl=l.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(aP),i.Y36(hn),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,MP,6,12,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[gP,T.sg,_P,qt,T.PC,F,T.O5,Gi],pipes:[Ct],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}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();function EP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let DP=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("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: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Li),i.Y36(Ln),i.Y36(en),i.Y36(hn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,EP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field"),i.TgZ(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(21,"div",6),i.TgZ(22,"div",7),i.TgZ(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[or,kn,Wn,es,is,Pn,xo,cr,Ml,T.O5,Hs,pw,Cr,Ft],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),HP=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),kP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),PP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function RP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function LP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function IP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,RP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,LP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const OP=function(n){return{"min-height":n}};function BP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,IP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,OP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const Wc=function(n){return{color:n}};function VP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,Wc,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function jP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(3).openDialog(r.dialog)}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,Wc,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function FP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,Wc,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function NP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,Wc,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function YP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,VP,2,4,"i",17),i.YNc(2,jP,3,8,"span",18),i.YNc(3,FP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,NP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const UP=function(n){return{height:n}};function zP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,YP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,UP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function qP(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,BP,2,4,"div",9),i.YNc(5,zP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,Wc,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function GP(n,a){if(1&n&&(i.TgZ(0,"span"),i.TgZ(1,"a",6),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,Wc,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const WP=function(n){return{background:n}};let iE=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("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.get("footer","copyright_items")}openDialog(e){const t=Zn();"reportIssue"===e&&(t.width="550px",this.dialog.open(DP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Li),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,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&&(i.TgZ(0,"footer",0),i.TgZ(1,"div",1),i.YNc(2,qP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,GP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(8,WP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,Wc,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,Wc,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},directives:[T.PC,T.sg,T.O5],pipes:[HP,kP,PP],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}"]}),n})();function ZP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function $P(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11),i._UZ(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function JP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"a",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const QP=function(n){return{color:n}};function KP(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,QP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const XP=function(n,a){return{background:n,color:a}},eR=function(n,a){return{"min-height":n,"background-color":a}};let tR=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Vn),i.Y36(JH),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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&&(i.TgZ(0,"div",0),i.YNc(1,ZP,2,1,"div",1),i.YNc(2,$P,3,1,"div",2),i.YNc(3,JP,2,1,"div",1),i.YNc(4,KP,2,4,"p",3),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",7),i._UZ(10,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.WLB(6,XP,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf","user-profile"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(9,eR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[T.PC,T.O5,Gi,oo,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}"]}),n})();const iR=["footer"],nE=function(n){return{background:n}},nR=function(n){return{"min-height":n}};function rR(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-header",1),i.TgZ(2,"mat-sidenav-container"),i.TgZ(3,"mat-sidenav",2,3),i._UZ(5,"perun-web-apps-side-menu",4),i.qZA(),i.TgZ(6,"mat-sidenav-content",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",null,7),i._UZ(11,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&n){const e=i.MAs(4),t=i.oxw();i.xp6(1),i.Q6J("sideNav",e),i.xp6(2),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(7,nE,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(9,nE,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,nR,t.contentHeight))}}function aR(n,a){1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-login-screen-base",8),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Q6J("application","publications")("headerTitle",i.lcZ(2,2,"HEADER.TITLE")))}let sR=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=l,this.router=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("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||e.includes("/all-publications"))&&this.router.navigate(["my-publications"])}isMobile(){return window.innerWidth<=n.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){var e,t,r,l;const d=null!==(l=null===(r=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===r?void 0:r.toString())&&void 0!==l?l:"0";this.contentHeight="calc(100vh - 84px - "+d+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Tx),i.Y36(i.sBO),i.Y36(na),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(iR,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"sideNav"],["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&&(i._UZ(0,"perun-web-apps-notificator"),i.YNc(1,rR,12,13,"div",0),i.YNc(2,aR,3,4,"div",0)),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},directives:[Ok,T.O5,zk,ZS,WS,T.PC,SP,Vx,oo,iE,tR],pipes:[Ct],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}"]}),n})();class oR{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 lR=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function cR(n){return[$r(tinycolor(n).lighten(52),"50"),$r(tinycolor(n).lighten(37),"100"),$r(tinycolor(n).lighten(26),"200"),$r(tinycolor(n).lighten(12),"300"),$r(tinycolor(n).lighten(6),"400"),$r(tinycolor(n),"500"),$r(tinycolor(n).darken(6),"600"),$r(tinycolor(n).darken(12),"700"),$r(tinycolor(n).darken(18),"800"),$r(tinycolor(n).darken(24),"900"),$r(tinycolor(n).lighten(50).saturate(30),"A100"),$r(tinycolor(n).lighten(30).saturate(30),"A200"),$r(tinycolor(n).lighten(10).saturate(15),"A400"),$r(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const s=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(s,c)}}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=>{var r;this.storeService.setInstanceConfig(t);const l=document.location.hostname;(null===(r=null==t?void 0:t.brandings)||void 0===r?void 0:r[l])&&this.storeService.setBanding(l),e()},()=>{e()})})}getNoCacheHeaders(){return new w.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.get("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.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(hn),i.LFG(Vi),i.LFG(Zt),i.LFG(bt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $r(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let dR=(()=>{class n{constructor(e,t,r,l,d){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=l,this.guiAuthResolver=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-link-active",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 console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}loadPolicies(){return new Promise((e,t)=>{this.authzSevice.getAllPolicies().subscribe(r=>{this.guiAuthResolver.setPerunPolicies(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Tx),i.LFG(lR),i.LFG(T.Ye),i.LFG(Vi),i.LFG(na))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uR=new i.OlP("perun-api-service");let hR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,yu,Gr,Dc]]}),n})();const pR=["*",[["mat-card-footer"]]],fR=["*","mat-card-footer"];let rE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),aE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),sE=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:fR,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(pR),i.Hsn(0),i.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-animation-noopable.mat-card{transition:none;animation:none}.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}\n"],encapsulation:2,changeDetection:0}),n})(),oE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();const mR=["input"],gR=function(n){return{enterDuration:n}},_R=["*"],bR=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:lE});function lE(){return{color:"accent",clickAction:"check-indeterminate"}}let yR=0;const cE=lE(),wR={provide:lr,useExisting:(0,i.Gpc)(()=>Zc),multi:!0};class CR{}const AR=wl(Ja(ma(fa(class{constructor(n){this._elementRef=n}}))));let Zc=(()=>{class n extends AR{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._focusMonitor=r,this._ngZone=l,this._animationMode=o,this._options=s,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++yR,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||cE,this.color=this.defaultColor=this._options.color||cE.color,this.tabIndex=parseInt(d)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Oe(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,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._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){const e=new CR;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const r=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===t)r="unchecked-checked";else{if(3!=t)return"";r="unchecked-indeterminate"}break;case 2:r=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(rr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(Si,8),i.Y36(bR,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(i.Gf(mR,5),i.Gf(qt,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null),i.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",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([wR]),i.qOj],ngContentSelectors:_R,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i.TgZ(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA(),i.qZA(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,gR,"NoopAnimations"===t._animationMode?0:150))}},directives:[qt,jh],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),dE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),IC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa,st,zd,dE],st,dE]}),n})(),xR=0;const Fx=new i.OlP("CdkAccordion");let MR=(()=>{class n{constructor(){this._stateChanges=new Ee.xQ,this._openCloseAllActions=new Ee.xQ,this.id="cdk-accordion-"+xR++,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 n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:Fx,useExisting:n}]),i.TTD]}),n})(),SR=0,ER=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=he.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+SR++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fx,12),i.Y36(i.sBO),i.Y36(Ep))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:Fx,useValue:void 0}])]}),n})(),DR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const HR=["body"];function kR(n,a){}const PR=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],RR=["mat-expansion-panel-header","*","mat-action-row"];function LR(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const IR=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],OR=["mat-panel-title","mat-panel-description","*"],Nx=new i.OlP("MAT_ACCORDION"),uE="225ms cubic-bezier(0.4,0.0,0.2,1)",hE={indicatorRotate:ei("indicatorRotate",[Dt("collapsed, void",He({transform:"rotate(0deg)"})),Dt("expanded",He({transform:"rotate(180deg)"})),ft("expanded <=> collapsed, void => collapsed",ct(uE))]),bodyExpansion:ei("bodyExpansion",[Dt("collapsed, void",He({height:"0px",visibility:"hidden"})),Dt("expanded",He({height:"*",visibility:"visible"})),ft("expanded <=> collapsed, void => collapsed",ct(uE))])};let BR=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),VR=0;const pE=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let fE=(()=>{class n extends ER{constructor(e,t,r,l,d,o,s){super(e,t,r),this._viewContainerRef=l,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new Ee.xQ,this._headerId="mat-expansion-panel-header-"+VR++,this._bodyAnimationDone=new Ee.xQ,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(ll((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),s&&(this.hideToggle=s.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.opened.pipe(Wt(null),(0,zt.h)(()=>this.expanded&&!this._portal),(0,jt.q)(1)).subscribe(()=>{this._portal=new fo(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Nx,12),i.Y36(i.sBO),i.Y36(Ep),i.Y36(i.s_b),i.Y36(T.K0),i.Y36(Si,8),i.Y36(pE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,BR,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(HR,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.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:[i._Bn([{provide:Nx,useValue:void 0}]),i.qOj,i.TTD],ngContentSelectors:RR,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&&(i.F$t(PR),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,kR,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},directives:[Ua],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[hE.bodyExpansion]},changeDetection:0}),n})();class jR{}const FR=wl(jR);let mE=(()=>{class n extends FR{constructor(e,t,r,l,d,o,s){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=o,this._parentChangeSubscription=he.w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,zt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):ur.E;this.tabIndex=parseInt(s||"")||0,this._parentChangeSubscription=(0,Mi.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,zt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,zt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.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:Ki(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(fE,1),i.Y36(i.SBq),i.Y36(rr),i.Y36(i.sBO),i.Y36(pE,8),i.Y36(Si,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.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:[i.qOj],ngContentSelectors:OR,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(IR),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,LR,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},directives:[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[hE.indicatorRotate]},changeDetection:0}),n})(),NR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),YR=(()=>{class n extends MR{constructor(){super(...arguments),this._ownHeaders=new i.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(Wt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new dl(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,mE,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Nx,useExisting:n}]),i.qOj]}),n})(),gE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,DR,il]]}),n})(),bE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[hu,st],hu,st]}),n})();function qR(n,a){1&n&&i.Hsn(0)}const GR=["*"];let yE=(()=>{class n{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n})(),wE=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n})(),WR=0;const CE=new i.OlP("STEPPER_GLOBAL_OPTIONS");let Yx=(()=>{class n{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new i.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 null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=Oe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}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(){var e;return null!==(e=this._stepperOptions.showError)&&void 0!==e?e:null!=this._customError}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>gf)),i.Y36(CE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,wE,5),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.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:[i.TTD],ngContentSelectors:GR,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,qR,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),gf=(()=>{class n{constructor(e,t,r,l){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new Ee.xQ,this.steps=new i.n_E,this._sortedHeaders=new i.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new i.vpe,this._orientation="horizontal",this._groupId=WR++}get linear(){return this._linear}set linear(e){this._linear=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){var t;const r=_i(e);this.steps&&this._steps?(this._isValidIndex(r),null===(t=this.selected)||void 0===t||t._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}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(Wt(this._steps),Je(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Wt(this._stepHeader),Je(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 dl(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Ne.of)()).pipe(Wt(this._layoutDirection()),Je(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],l=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,l):this._getGuidelineLogic(r,l,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=Ki(e),r=e.keyCode,l=this._keyManager;null==l.activeItemIndex||t||32!==r&&13!==r?l.onKeydown(e):(this.selectedIndex=l.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=Fa();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class n{constructor(e){this._stepper=e,this.type="submit"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gf))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.next()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),$R=(()=>{class n{constructor(e){this._stepper=e,this.type="button"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gf))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.previous()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),JR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc]]}),n})();function QR(n,a){if(1&n&&i.GkF(0,8),2&n){const e=i.oxw();i.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function KR(n,a){if(1&n&&(i.TgZ(0,"span",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function XR(n,a){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.completedLabel)}}function eL(n,a){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.editableLabel)}}function tL(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function iL(n,a){if(1&n&&(i.ynx(0,9),i.YNc(1,KR,2,1,"span",10),i.YNc(2,XR,2,1,"span",11),i.YNc(3,eL,2,1,"span",11),i.YNc(4,tL,2,1,"mat-icon",12),i.BQk()),2&n){const e=i.oxw();i.Q6J("ngSwitch",e.state),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngIf","done"===e.state),i.xp6(1),i.Q6J("ngIf","edit"===e.state)}}function nL(n,a){if(1&n&&(i.TgZ(0,"div",15),i.GkF(1,16),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function rL(n,a){if(1&n&&(i.TgZ(0,"div",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.label)}}function aL(n,a){if(1&n&&(i.TgZ(0,"div",17),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e._intl.optionalLabel)}}function sL(n,a){if(1&n&&(i.TgZ(0,"div",18),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.errorMessage)}}function oL(n,a){}function lL(n,a){if(1&n&&(i.Hsn(0),i.YNc(1,oL,0,0,"ng-template",0)),2&n){const e=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",e._portal)}}const cL=["*"];function dL(n,a){1&n&&i._UZ(0,"div",9)}const AE=function(n,a){return{step:n,i:a}};function uL(n,a){if(1&n&&(i.ynx(0),i.GkF(1,7),i.YNc(2,dL,1,0,"div",8),i.BQk()),2&n){const e=a.$implicit,t=a.index,r=a.last;i.oxw(2);const l=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",i.WLB(3,AE,e,t)),i.xp6(1),i.Q6J("ngIf",!r)}}function hL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",10),i.NdJ("@horizontalStepTransition.done",function(r){return i.CHM(e),i.oxw(2)._animationDone.next(r)}),i.GkF(1,11),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw(2);i.Q6J("@horizontalStepTransition",r._getAnimationDirection(t))("id",r._getStepContentId(t)),i.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),i.xp6(1),i.Q6J("ngTemplateOutlet",e.content)}}function pL(n,a){if(1&n&&(i.ynx(0),i.TgZ(1,"div",3),i.YNc(2,uL,3,6,"ng-container",4),i.qZA(),i.TgZ(3,"div",5),i.YNc(4,hL,2,5,"div",6),i.qZA(),i.BQk()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngForOf",e.steps),i.xp6(2),i.Q6J("ngForOf",e.steps)}}function fL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.GkF(1,7),i.TgZ(2,"div",14),i.TgZ(3,"div",15),i.NdJ("@verticalStepTransition.done",function(r){return i.CHM(e),i.oxw(2)._animationDone.next(r)}),i.TgZ(4,"div",16),i.GkF(5,11),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=a.last,l=i.oxw(2),d=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",i.WLB(9,AE,e,t)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!r),i.xp6(1),i.Q6J("@verticalStepTransition",l._getAnimationDirection(t))("id",l._getStepContentId(t)),i.uIk("aria-labelledby",l._getStepLabelId(t))("aria-expanded",l.selectedIndex===t),i.xp6(2),i.Q6J("ngTemplateOutlet",e.content)}}function mL(n,a){if(1&n&&(i.ynx(0),i.YNc(1,fL,6,12,"div",12),i.BQk()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.steps)}}function gL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-step-header",17),i.NdJ("click",function(){return i.CHM(e).step.select()})("keydown",function(r){return i.CHM(e),i.oxw()._onKeydown(r)}),i.qZA()}if(2&n){const e=a.step,t=a.i,r=i.oxw();i.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),i.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),i.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 OC=(()=>{class n extends wE{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matStepLabel",""]],features:[i.qOj]}),n})(),BC=(()=>{class n{constructor(){this.changes=new Ee.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bL={provide:BC,deps:[[new i.FiY,new i.tp0,BC]],useFactory:function _L(n){return n||new BC}},yL=Ja(class extends yE{constructor(a){super(a)}},"primary");let vE=(()=>{class n extends yL{constructor(e,t,r,l){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>l.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 OC?null:this.label}_templateLabel(){return this.label instanceof OC?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 n.\u0275fac=function(e){return new(e||n)(i.Y36(BC),i.Y36(rr),i.Y36(i.SBq),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,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:[i.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&&(i._UZ(0,"div",0),i.TgZ(1,"div"),i.TgZ(2,"div",1),i.YNc(3,QR,1,2,"ng-container",2),i.YNc(4,iL,5,4,"ng-container",3),i.qZA(),i.qZA(),i.TgZ(5,"div",4),i.YNc(6,nL,2,1,"div",5),i.YNc(7,rL,2,1,"div",5),i.YNc(8,aL,2,1,"div",6),i.YNc(9,sL,2,1,"div",7),i.qZA()),2&e&&(i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),i.xp6(1),i.Gre("mat-step-icon-state-",t.state," mat-step-icon"),i.ekj("mat-step-icon-selected",t.selected),i.xp6(1),i.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(2),i.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),i.xp6(1),i.Q6J("ngIf",t._templateLabel()),i.xp6(1),i.Q6J("ngIf",t._stringLabel()),i.xp6(1),i.Q6J("ngIf",t.optional&&"error"!=t.state),i.xp6(1),i.Q6J("ngIf","error"==t.state))},directives:[Gi,qt,T.RF,T.n9,T.tP,T.ED,T.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.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}\n"],encapsulation:2,changeDetection:0}),n})();const TE={horizontalStepTransition:ei("horizontalStepTransition",[Dt("previous",He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Dt("current",He({transform:"none",visibility:"inherit"})),Dt("next",He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),ft("* => *",ct("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:ei("verticalStepTransition",[Dt("previous",He({height:"0px",visibility:"hidden"})),Dt("next",He({height:"0px",visibility:"hidden"})),Dt("current",He({height:"*",visibility:"inherit"})),ft("* <=> current",ct("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let wL=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n})(),CL=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepContent",""]]}),n})(),xE=(()=>{class n extends Yx{constructor(e,t,r,l){super(e,l),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=he.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,nn.w)(()=>this._stepper.selectionChange.pipe((0,dt.U)(e=>e.selectedStep===this),Wt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new fo(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>SE)),i.Y36(wr,4),i.Y36(i.s_b),i.Y36(CE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,OC,5),i.Suo(r,CL,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first),i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[i._Bn([{provide:wr,useExisting:n},{provide:Yx,useExisting:n}]),i.qOj],ngContentSelectors:cL,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,lL,2,1,"ng-template"))},directives:[Ua],encapsulation:2,changeDetection:0}),n})(),ME=(()=>{class n extends gf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),AL=(()=>{class n extends ME{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-horizontal-stepper"]],features:[i.qOj]}),n})(),vL=(()=>{class n extends ME{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-vertical-stepper"]],features:[i.qOj]}),n})(),SE=(()=>{class n extends gf{constructor(e,t,r,l){super(e,t,r,l),this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new Ee.xQ;const d=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===d?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Je(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(ll((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Je(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi,8),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(T.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xE,5),i.Suo(r,wL,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._steps=l),i.iGM(l=i.CRH())&&(t._icons=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(vE,5),2&e){let r;i.iGM(r=i.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(e,t){2&e&&(i.uIk("aria-orientation",t.orientation),i.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))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:gf,useExisting:n},{provide:AL,useExisting:n},{provide:vL,useExisting:n}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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&&(i.ynx(0,0),i.YNc(1,pL,5,2,"ng-container",1),i.YNc(2,mL,2,1,"ng-container",1),i.BQk(),i.YNc(3,gL,1,23,"ng-template",null,2,i.W1O)),2&e&&(i.Q6J("ngSwitch",t.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},directives:[vE,T.RF,T.n9,T.sg,T.tP,T.O5],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-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-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-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}\n'],encapsulation:2,data:{animation:[TE.horizontalStepTransition,TE.verticalStepTransition]},changeDetection:0}),n})(),TL=(()=>{class n extends ZR{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),xL=(()=>{class n extends $R{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),EE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[bL,wr],imports:[[st,T.ez,il,Gr,JR,Gc,Qa],st]}),n})();const ML=["mat-calendar-body",""];function SL(n,a){if(1&n&&(i.TgZ(0,"tr",2),i.TgZ(1,"td",3),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e.numCols),i.xp6(1),i.hij(" ",e.label," ")}}function EL(n,a){if(1&n&&(i.TgZ(0,"td",3),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e._firstRowOffset),i.xp6(1),i.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function DL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",7),i.TgZ(1,"button",8),i.NdJ("click",function(r){const d=i.CHM(e).$implicit;return i.oxw(2)._cellClicked(d,r)}),i.TgZ(2,"div",9),i._uU(3),i.qZA(),i._UZ(4,"div",10),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw().index,l=i.oxw();i.Udp("width",l._cellWidth)("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),i.uIk("data-mat-row",r)("data-mat-col",t),i.xp6(1),i.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",l._isActiveCell(r,t))("mat-calendar-body-range-start",l._isRangeStart(e.compareValue))("mat-calendar-body-range-end",l._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",l._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",l._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",l._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",l._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",l._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",l._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",l._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",l._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",l._isInPreview(e.compareValue)),i.Q6J("ngClass",e.cssClasses)("tabindex",l._isActiveCell(r,t)?0:-1),i.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",l._isSelected(e.compareValue))("aria-current",l.todayValue===e.compareValue?"date":null),i.xp6(1),i.ekj("mat-calendar-body-selected",l._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",l._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",l.todayValue===e.compareValue),i.xp6(1),i.hij(" ",e.displayValue," ")}}function HL(n,a){if(1&n&&(i.TgZ(0,"tr",4),i.YNc(1,EL,2,6,"td",5),i.YNc(2,DL,5,47,"td",6),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===t&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",e)}}function kL(n,a){if(1&n&&(i.TgZ(0,"th",5),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.uIk("aria-label",e.long),i.xp6(1),i.hij(" ",e.narrow," ")}}const PL=["*"];function RL(n,a){}function LL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("_userSelection",function(r){return i.CHM(e),i.oxw()._dateSelected(r)}),i.qZA()}if(2&n){const e=i.oxw();i.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 IL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("monthSelected",function(r){return i.CHM(e),i.oxw()._monthSelectedInYearView(r)})("selectedChange",function(r){return i.CHM(e),i.oxw()._goToDateInView(r,"month")}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function OL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("yearSelected",function(r){return i.CHM(e),i.oxw()._yearSelectedInMultiYearView(r)})("selectedChange",function(r){return i.CHM(e),i.oxw()._goToDateInView(r,"year")}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function BL(n,a){}const VL=["button"];function jL(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const FL=[[["","matDatepickerToggleIcon",""]]],NL=["[matDatepickerToggleIcon]"];class Ux{constructor(a,e,t,r,l={},d=a,o){this.value=a,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=l,this.compareValue=d,this.rawValue=o}}let _f=(()=>{class n{constructor(e,t){this._elementRef=e,this._ngZone=t,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const l=this._getCellFromElement(r.target);l&&this._ngZone.run(()=>this.previewChange.emit({value:l.enabled?l: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)})}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:l}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?l-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/l+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/l+"%")}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,jt.q)(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})}_isRangeStart(e){return zx(e,this.startValue,this.endValue)}_isRangeEnd(e){return qx(e,this.startValue,this.endValue)}_isInRange(e){return Gx(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return zx(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let l=this.rows[t][r-1];if(!l){const d=this.rows[t-1];l=d&&d[d.length-1]}return l&&!this._isRangeEnd(l.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let l=this.rows[t][r+1];if(!l){const d=this.rows[t+1];l=d&&d[0]}return l&&!this._isRangeStart(l.compareValue)}_isComparisonEnd(e){return qx(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Gx(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return zx(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return qx(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Gx(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(DE(e)?t=e:DE(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),l=t.getAttribute("data-mat-col");if(r&&l)return this.rows[parseInt(r)][parseInt(l)]}return null}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,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"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:ML,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"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(i.YNc(0,SL,3,6,"tr",0),i.YNc(1,HL,3,2,"tr",1)),2&e&&(i.Q6J("ngIf",t._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),n})();function DE(n){return"TD"===n.nodeName}function zx(n,a,e){return null!==e&&a!==e&&n=a&&n===e}function Gx(n,a,e,t){return t&&null!==a&&null!==e&&a!==e&&n>=a&&n<=e}class Jr{constructor(a,e){this.start=a,this.end=e}}let $c=(()=>{class n{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new Ee.xQ,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 n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),YL=(()=>{class n extends $c{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 n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ai))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const HE={provide:$c,deps:[[new i.FiY,new i.tp0,$c],Ai],useFactory:function zL(n,a){return n||new YL(a)}},VC=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let kE=(()=>{class n{constructor(e,t,r,l,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rangeStrategy=d,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.activeDateChange=new i.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 Jr?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(Wt(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._dateAdapter.getYear(this.activeDate),l=this._dateAdapter.getMonth(this.activeDate),d=this._dateAdapter.createDate(r,l,t);let o,s;this._selected instanceof Jr?(o=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):o=s=this._getDateInCurrentMonth(this._selected),(o!==t||s!==t)&&this.selectedChange.emit(d),this._userSelection.emit({value:d,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_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&&!Ki(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._focusActiveCell(),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)}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const l=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(l.start),this._previewEnd=this._getCellCompareValue(l.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let l=this._dateAdapter.getDayOfWeekNames("long").map((d,o)=>({long:d,narrow:t[o]}));this._weekdays=l.slice(e).concat(l.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,l=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),l=this._dateAdapter.getDate(e);return new Date(t,r,l).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Jr?(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(yr,8),i.Y36(Ai,8),i.Y36(xi,8),i.Y36(VC,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&i.Gf(_f,5),2&e){let r;i.iGM(r=i.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:[i.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","previewChange","keyup","keydown"],["scope","col"]],template:function(e,t){1&e&&(i.TgZ(0,"table",0),i.TgZ(1,"thead",1),i.TgZ(2,"tr"),i.YNc(3,kL,2,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA(),i.qZA(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(l){return t._dateSelected(l)})("previewChange",function(l){return t._previewChanged(l)})("keyup",function(l){return t._handleCalendarBodyKeyup(l)})("keydown",function(l){return t._handleCalendarBodyKeydown(l)}),i.qZA(),i.qZA()),2&e&&(i.xp6(3),i.Q6J("ngForOf",t._weekdays),i.xp6(3),i.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))},directives:[_f,T.sg],encapsulation:2,changeDetection:0}),n})(),PE=(()=>{class n{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.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),RE(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jr?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(Wt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,l=[];r<24;r++)l.push(t+r),4==l.length&&(this._years.push(l.map(d=>this._createCellForYear(d))),l=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value;this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let r=this._dateAdapter.getMonth(this.activeDate),l=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,r,1));this.selectedChange.emit(this._dateAdapter.createDate(t,r,Math.min(this._dateAdapter.getDate(this.activeDate),l)))}_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,-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-S_(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._focusActiveCell(),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 S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),l=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new Ux(e,r,r,this._shouldEnableYear(e),l)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,t,r,l){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.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 Jr?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(Wt(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 l=this._dateAdapter.getNumDaysInMonth(r);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),l)))}_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._focusActiveCell(),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()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),d=this.dateClass?this.dateClass(r,"year"):void 0;return new Ux(e,t.toLocaleUpperCase(),l,this._shouldEnableMonth(e),d)}_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 l=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(l)==e;l=this._dateAdapter.addCalendarDays(l,1))if(this.dateFilter(l))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),l=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>l}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),l=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(){this.changes=new Ee.xQ,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"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$L=0,JL=(()=>{class n{constructor(e,t,r,l,d){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=l,this._buttonDescriptionId="mat-calendar-button-"+$L++,this.calendar.stateChanges.subscribe(()=>d.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)-S_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,l=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),d=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(l,d)}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):RE(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36((0,i.Gpc)(()=>$x)),i.Y36(Ai,8),i.Y36(yr,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:PL,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","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&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return t.currentPeriodClicked()}),i.TgZ(3,"span"),i._uU(4),i.qZA(),i.O4$(),i.TgZ(5,"svg",3),i._UZ(6,"polygon",4),i.qZA(),i.qZA(),i.kcU(),i._UZ(7,"div",5),i.Hsn(8),i.TgZ(9,"button",6),i.NdJ("click",function(){return t.previousClicked()}),i.qZA(),i.TgZ(10,"button",7),i.NdJ("click",function(){return t.nextClicked()}),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),i.xp6(1),i.uIk("id",t._buttonDescriptionId),i.xp6(1),i.Oqu(t.periodButtonText),i.xp6(1),i.ekj("mat-calendar-invert","month"!==t.calendar.currentView),i.xp6(4),i.Q6J("disabled",!t.previousEnabled()),i.uIk("aria-label",t.prevButtonLabel),i.xp6(1),i.Q6J("disabled",!t.nextEnabled()),i.uIk("aria-label",t.nextButtonLabel))},directives:[Ft,Om],encapsulation:2,changeDetection:0}),n})(),$x=(()=>{class n{constructor(e,t,r,l){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=l,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this.stateChanges=new Ee.xQ,this._intlChanges=e.changes.subscribe(()=>{l.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 Jr?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 tl(this.headerComponent||JL),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||e.maxDate||e.dateFilter;if(t&&!t.firstChange){const r=this._getCurrentViewComponent();r&&(this._changeDetectorRef.detectChanges(),r._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof Jr||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 n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36(Ai,8),i.Y36(yr,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(i.Gf(kE,5),i.Gf(IE,5),i.Gf(PE,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.monthView=r.first),i.iGM(r=i.CRH())&&(t.yearView=r.first),i.iGM(r=i.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:[i._Bn([HE]),i.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&&(i.YNc(0,RL,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,LL,1,8,"mat-month-view",2),i.YNc(3,IL,1,6,"mat-year-view",3),i.YNc(4,OL,1,6,"mat-multi-year-view",4),i.qZA()),2&e&&(i.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),i.xp6(1),i.Q6J("ngSwitch",t.currentView),i.xp6(1),i.Q6J("ngSwitchCase","month"),i.xp6(1),i.Q6J("ngSwitchCase","year"),i.xp6(1),i.Q6J("ngSwitchCase","multi-year"))},directives:[kE,IE,PE,Ua,gv,T.RF,T.n9],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}\n'],encapsulation:2,changeDetection:0}),n})();const OE={transformPanel:ei("transformPanel",[ft("void => enter-dropdown",ct("120ms cubic-bezier(0, 0, 0.2, 1)",ul([He({opacity:0,transform:"scale(1, 0.8)"}),He({opacity:1,transform:"scale(1, 1)"})]))),ft("void => enter-dialog",ct("150ms cubic-bezier(0, 0, 0.2, 1)",ul([He({opacity:0,transform:"scale(0.7)"}),He({transform:"none",opacity:1})]))),ft("* => void",ct("100ms linear",He({opacity:0})))]),fadeInCalendar:ei("fadeInCalendar",[Dt("void",He({opacity:0})),Dt("enter",He({opacity:1})),ft("void => *",ct("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let QL=0;const BE=new i.OlP("mat-datepicker-scroll-strategy"),XL={provide:BE,deps:[br],useFactory:function KL(n){return()=>n.scrollStrategies.reposition()}},eI=Ja(class{constructor(n){this._elementRef=n}});let tI=(()=>{class n extends eI{constructor(e,t,r,l,d,o){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=l,this._rangeSelectionStrategy=d,this._subscriptions=new he.w,this._animationDone=new Ee.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,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,l=t instanceof Jr;if(l&&this._rangeSelectionStrategy){const d=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(d,this)}else r&&(l||!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)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36($c),i.Y36(Ai),i.Y36(VC,8),i.Y36(E_))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&i.Gf($x,5),2&e){let r;i.iGM(r=i.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&i.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(i.d8E("@transformPanel",t._animationState),i.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.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&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-calendar",1),i.NdJ("yearSelected",function(l){return t.datepicker._selectYear(l)})("monthSelected",function(l){return t.datepicker._selectMonth(l)})("viewChanged",function(l){return t.datepicker._viewChanged(l)})("_userSelection",function(l){return t._handleUserSelection(l)}),i.qZA(),i.YNc(2,BL,0,0,"ng-template",2),i.TgZ(3,"button",3),i.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),i._uU(4),i.qZA(),i.qZA()),2&e){let r;i.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),i.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),i.xp6(1),i.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"),i.xp6(1),i.Q6J("cdkPortalOutlet",t._actionsPortal),i.xp6(1),i.ekj("cdk-visually-hidden",!t._closeButtonFocused),i.Q6J("color",t.color||"primary"),i.xp6(1),i.Oqu(t._closeButtonText)}},directives:[$x,Ft,jr,T.mk,Ua],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}}\n"],encapsulation:2,data:{animation:[OE.transformPanel,OE.fadeInCalendar]},changeDetection:0}),n})(),VE=(()=>{class n{constructor(e,t,r,l,d,o,s){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=d,this._dir=o,this._model=s,this._inputStateChanges=he.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this.openedStream=new i.vpe,this.closedStream=new i.vpe,this._opened=!1,this.id="mat-datepicker-"+QL++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Ee.xQ,this._scrollStrategy=l}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 gM(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}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 Tm&&(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}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Fa(),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,jt.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(){var e,t;null===(t=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===t||t._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal,e._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new tl(tI,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new fc({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(l=>{l&&l.preventDefault(),this.close()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,jt.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",l="above"===this.yPosition?"bottom":"top",d="top"===l?"bottom":"top";return e.withPositions([{originX:t,originY:d,overlayX:t,overlayY:l},{originX:t,originY:l,overlayX:t,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:l},{originX:r,originY:l,overlayX:r,overlayY:d}])}_getCloseStream(e){return(0,Mi.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,zt.h)(t=>27===t.keyCode&&!Ki(t)||this.datepickerInput&&Ki(t,"altKey")&&38===t.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(BE),i.Y36(Ai,8),i.Y36(xi,8),i.Y36($c))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})(),Jx=(()=>{class n extends VE{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([HE,{provide:VE,useExisting:n}]),i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),n})();class jC{constructor(a,e){this.target=a,this.targetElement=e,this.value=this.target.value}}let iI=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new i.vpe,this.dateInput=new i.vpe,this.stateChanges=new Ee.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=he.w.EMPTY,this._localeSubscription=he.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value));return!d||this._matchesFilter(d)?null:{matDatepickerFilter:!0}},this._minValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMinDate();return!o||!d||this._dateAdapter.compareDate(o,d)<=0?null:{matDatepickerMin:{min:o,actual:d}}},this._maxValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMaxDate();return!o||!d||this._dateAdapter.compareDate(o,d)>=0?null:{matDatepickerMax:{max:o,actual:d}}},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 jC(this,this._elementRef.nativeElement)),this.dateChange.emit(new jC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function nI(n,a){const e=Object.keys(n);for(let t of e){const{previousValue:r,currentValue:l}=n[t];if(!a.isDateInstance(r)||!a.isDateInstance(l))return!0;if(!a.sameDate(r,l))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),this._dateAdapter.sameDate(r,this.value)?(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(r),this._cvaOnChange(r),this.dateInput.emit(new jC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new jC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ai,8),i.Y36(yr,8))},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),n})();const rI={provide:lr,useExisting:(0,i.Gpc)(()=>D_),multi:!0},aI={provide:on,useExisting:(0,i.Gpc)(()=>D_),multi:!0};let D_=(()=>{class n extends iI{constructor(e,t,r,l){super(e,t,r),this._formField=l,this._closedSubscription=he.w.EMPTY,this._validator=Oi.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ai,8),i.Y36(yr,8),i.Y36(Bg,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._onInput(l.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(l){return t._onKeydown(l)}),2&e&&(i.Ikx("disabled",t.disabled),i.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:[i._Bn([rI,aI,{provide:LS,useExisting:n}]),i.qOj]}),n})(),sI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),Qx=(()=>{class n{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=he.w.EMPTY;const l=Number(r);this.tabIndex=l||0===l?l: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,Ne.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Ne.of)(),r=this.datepicker?(0,Mi.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Ne.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Mi.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36(i.sBO),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,sI,5),2&e){let l;i.iGM(l=i.CRH())&&(t._customIcon=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(VL,5),2&e){let r;i.iGM(r=i.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._open(l)}),2&e&&(i.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),i.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:[i.TTD],ngContentSelectors:NL,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&&(i.F$t(FL),i.TgZ(0,"button",0,1),i.YNc(2,jL,2,0,"svg",2),i.Hsn(3),i.qZA()),2&e&&(i.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),i.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),i.xp6(2),i.Q6J("ngIf",!t._customIcon))},directives:[Ft,T.O5],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}\n"],encapsulation:2,changeDetection:0}),n})(),Kx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[E_,XL],imports:[[T.ez,Gr,_o,zh,il,st],gr]}),n})();const oI=["mat-sort-header",""];function lI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!1}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6),i._UZ(4,"div",7),i._UZ(5,"div",8),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const cI=["*"],Jc=Gv.ENTERING+" "+qv.STANDARD_CURVE,bf={indicator:ei("indicator",[Dt("active-asc, asc",He({transform:"translateY(0px)"})),Dt("active-desc, desc",He({transform:"translateY(10px)"})),ft("active-asc <=> active-desc",ct(Jc))]),leftPointer:ei("leftPointer",[Dt("active-asc, asc",He({transform:"rotate(-45deg)"})),Dt("active-desc, desc",He({transform:"rotate(45deg)"})),ft("active-asc <=> active-desc",ct(Jc))]),rightPointer:ei("rightPointer",[Dt("active-asc, asc",He({transform:"rotate(45deg)"})),Dt("active-desc, desc",He({transform:"rotate(-45deg)"})),ft("active-asc <=> active-desc",ct(Jc))]),arrowOpacity:ei("arrowOpacity",[Dt("desc-to-active, asc-to-active, active",He({opacity:1})),Dt("desc-to-hint, asc-to-hint, hint",He({opacity:.54})),Dt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",He({opacity:0})),ft("* => asc, * => desc, * => active, * => hint, * => void",ct("0ms")),ft("* <=> *",ct(Jc))]),arrowPosition:ei("arrowPosition",[ft("* => desc-to-hint, * => desc-to-active",ct(Jc,ul([He({transform:"translateY(-25%)"}),He({transform:"translateY(0)"})]))),ft("* => hint-to-desc, * => active-to-desc",ct(Jc,ul([He({transform:"translateY(0)"}),He({transform:"translateY(25%)"})]))),ft("* => asc-to-hint, * => asc-to-active",ct(Jc,ul([He({transform:"translateY(25%)"}),He({transform:"translateY(0)"})]))),ft("* => hint-to-asc, * => active-to-asc",ct(Jc,ul([He({transform:"translateY(0)"}),He({transform:"translateY(-25%)"})]))),Dt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",He({transform:"translateY(0)"})),Dt("hint-to-desc, active-to-desc, desc",He({transform:"translateY(-25%)"})),Dt("hint-to-asc, active-to-asc, asc",He({transform:"translateY(25%)"}))]),allowChildren:ei("allowChildren",[ft("* <=> *",[Dn("@*",ty(),{optional:!0})])])};let FC=(()=>{class n{constructor(){this.changes=new Ee.xQ}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uI={provide:FC,deps:[[new i.FiY,new i.tp0,FC]],useFactory:function dI(n){return n||new FC}},hI=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),pI=bg(fa(class{}));let wa=(()=>{class n extends pI{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Ee.xQ,this.start="asc",this._direction="",this.sortChange=new i.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){var t,r,l;if(!e)return"";const d=null!==(r=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==r?r:!!(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableClear);let o=function fI(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,d),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hI,8))},n.\u0275dir=i.lG2({type:n,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:[i.qOj,i.TTD]}),n})();const mI=fa(class{});let yf=(()=>{class n extends mI{constructor(e,t,r,l,d,o,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=o,this._ariaDescriber=s,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",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('[role="button"]'),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,Mi.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(FC),i.Y36(i.sBO),i.Y36(wa,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(rr),i.Y36(i.SBq),i.Y36(km,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.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:[i.qOj],attrs:oI,ngContentSelectors:cI,decls:4,vars:6,consts:[["role","button",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&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,lI,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},directives:[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-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}\n"],encapsulation:2,data:{animation:[bf.indicator,bf.leftPointer,bf.rightPointer,bf.arrowOpacity,bf.arrowPosition,bf.allowChildren]},changeDetection:0}),n})(),Xx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[uI],imports:[[T.ez,st]]}),n})(),jE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,oE,jx,gE,Gr,bE,IC,Gc,Ox,yu,CC,vl,AC,el,iC,Ou,EE,Kx,jy,$S,tE,gC,YS,Xx,ee,ju,Vu,Qa],oE,jx,gE,Gr,bE,IC,Gc,Ox,yu,CC,vl,AC,el,iC,Ou,EE,Kx,jy,$S,tE,gC,YS,Xx,ee,ju,Vu,Qa]}),n})(),gI=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-cite-dialog"]],decls:10,vars:7,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-stroked-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i._uU(5),i.qZA(),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.SHOW_CITE.TITLE")),i.xp6(3),i.hij(" ",t.publication.main," "),i.xp6(3),i.hij(" ",i.lcZ(9,5,"DIALOGS.SHOW_CITE.OK")," "))},directives:[or,kn,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),_I=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),FE=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),NC=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})();function bI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",20),i.TgZ(1,"mat-checkbox",21),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function yI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22),i.TgZ(1,"mat-checkbox",23),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function wI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function CI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function AI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function vI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().lockOrUnlockPublication(r)})("mouseenter",function(){return i.CHM(e),i.oxw(2).buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw(2).buttonPressed=!1}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function TI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().lockOrUnlockPublication(r)})("mouseenter",function(){return i.CHM(e),i.oxw(2).buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw(2).buttonPressed=!1}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock_open"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function xI(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,vI,4,3,"button",26),i.YNc(2,TI,4,3,"button",26),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.locked),i.xp6(1),i.Q6J("ngIf",!e.locked)}}function MI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function SI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.title," ")}}function EI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function DI(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"userFullName"),i._UZ(3,"br"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e),"")}}function HI(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,DI,4,3,"span",28),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngForOf",e.authors)}}function kI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function PI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.year," ")}}function RI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function LI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.categoryName," ")}}function II(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function OI(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i._UZ(2,"br"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.ownerName,"")}}function BI(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,OI,3,1,"span",28),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngForOf",e.thanks)}}function VI(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function jI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",25),i.TgZ(1,"button",30),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showCite(l)})("mouseenter",function(){return i.CHM(e),i.oxw().buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw().buttonPressed=!1}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function FI(n,a){1&n&&i._UZ(0,"tr",31)}const NE=function(n,a){return[n,a]};function NI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.disabledRouting&&d.openInTab&&!d.buttonPressed?d.emitPublication(l):null}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:i.WLB(4,NE,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:i.WLB(7,NE,t.routerPath,e.id))}}function YI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",33),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let wf=(()=>{class n{constructor(e,t,r,l,d){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=l,this.translate=d,this.selection=new Ii(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Uu,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new i.vpe,this.buttonPressed=!1,d.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(o=>this.changeLockMessage=o),d.get("PUBLICATIONS_LIST.LOCKED").subscribe(o=>this.locked=o),d.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(o=>this.unlocked=o)}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(l=>r+=vS(l)+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(l=>r+=l.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new Il(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=Zn();t.width="500px",t.data=e,this.dialog.open(gI,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)=>cf(e,t,n.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(wC),i.Y36(li),i.Y36(fn),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.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:[i.TTD],decls:33,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","title","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","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"],["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,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,bI,2,3,"th",4),i.YNc(5,yI,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,wI,3,3,"th",7),i.YNc(8,CI,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,AI,3,3,"th",7),i.YNc(11,xI,3,2,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,MI,3,3,"th",7),i.YNc(14,SI,2,1,"td",8),i.BQk(),i.ynx(15,11),i.YNc(16,EI,3,3,"th",7),i.YNc(17,HI,2,1,"td",8),i.BQk(),i.ynx(18,12),i.YNc(19,kI,3,3,"th",7),i.YNc(20,PI,2,1,"td",8),i.BQk(),i.ynx(21,13),i.YNc(22,RI,3,3,"th",7),i.YNc(23,LI,2,1,"td",8),i.BQk(),i.ynx(24,14),i.YNc(25,II,3,3,"th",7),i.YNc(26,BI,2,1,"td",8),i.BQk(),i.ynx(27,15),i.YNc(28,VI,3,3,"th",16),i.YNc(29,jI,4,3,"td",8),i.BQk(),i.YNc(30,FI,1,0,"tr",17),i.YNc(31,NI,1,10,"tr",18),i.qZA(),i.qZA(),i.qZA(),i.YNc(32,YI,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(28),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},directives:[ts,Mo,wa,Bs,Os,Vs,Zc,Is,js,yf,T.O5,Ft,zc,Gi,T.sg,Rl,Ll,So,Eo,FE,F,Fs],pipes:[Ct,NC],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function UI(n,a){1&n&&i._UZ(0,"mat-spinner",7)}const zI=function(){return["id","title","year"]};function qI(n,a){if(1&n&&(i.TgZ(0,"div",8),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"perun-web-apps-publications-list",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),i.xp6(2),i.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",i.DdM(6,zI))}}let eM=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetService=d,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Ln),i.Y36(Li),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,UI,1,0,"mat-spinner",2),i.YNc(5,qI,4,7,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.remove()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),i.xp6(2),i.Q6J("disabled",t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},directives:[or,T.O5,mn,kn,wf,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),Cf=(()=>{class n{constructor(){this.refresh=new i.vpe}onClickbutton(e){this.refresh.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"button",0),i.NdJ("click",function(l){return t.onClickbutton(l)}),i.ALo(1,"translate"),i._UZ(2,"mat-icon",1),i.qZA()),2&e&&(i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),i.Q6J("disabled",t.disabled),i.xp6(2),i.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[Ft,zc,Gi],pipes:[Ct],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}"]}),n})();var Af=x(5439);const qu=Af||x.t(Af,2),YE=new i.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function WI(){return{useUtc:!1}}});function ZI(n,a){const e=Array(n);for(let t=0;t{class n extends Ai{constructor(e,t){super(),this._options=t,this.setLocale(e||qu.locale())}setLocale(e){super.setLocale(e);let t=qu.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:ZI(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 l=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return l.isValid(),l}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,qu.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return qu.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return qu.invalid()}_createMoment(e,t,r){const{strict:l,useUtc:d}=this._options||{};return d?qu.utc(e,t,r,l):qu(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(vo,8),i.LFG(YE,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$I=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ai,useClass:H_,deps:[vo,YE]}]}),n})(),UE=(()=>{class n{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,r.close()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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","example-month-picker",3,"yearSelected"],["sdp",""],["matInput","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=i.EpF();i.TgZ(0,"mat-form-field",0),i.NdJ("click",function(){return i.CHM(r),i.MAs(7).open()}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",1),i._UZ(5,"mat-datepicker-toggle",2),i.TgZ(6,"mat-datepicker",3,4),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(7);return t.chosenYearHandler(t.startYear,d,o)}),i.qZA(),i.qZA(),i.TgZ(8,"mat-form-field",0),i.NdJ("click",function(){return i.CHM(r),i.MAs(15).open()}),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._UZ(12,"input",5),i._UZ(13,"mat-datepicker-toggle",2),i.TgZ(14,"mat-datepicker",3,6),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(15);return t.chosenYearHandler(t.endYear,d,o)}),i.qZA(),i.qZA()}if(2&e){const r=i.MAs(7),l=i.MAs(15);i.xp6(2),i.Oqu(i.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),i.xp6(2),i.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),i.xp6(1),i.Q6J("for",r),i.xp6(5),i.Oqu(i.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),i.xp6(2),i.Q6J("matDatepicker",l)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),i.xp6(1),i.Q6J("for",l)}},directives:[Wn,es,is,D_,Pn,cr,_a,Qx,gw,Jx],pipes:[Ct],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function JI(n,a){if(1&n&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}const YC=Af,QI={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let tM=(()=>{class n{constructor(e){this.cabinetService=e,this.filteredPublication=new i.vpe,this.title=new Ei,this.code=new Ei,this.startYear=new Ei(YC()),this.endYear=new Ei(YC())}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,T.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,T.p6)(this.endYear.value,"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear=new Ei(YC()),this.endYear=new Ei(YC()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[i._Bn([{provide:Ai,useClass:H_,deps:[vo]},{provide:yr,useValue:QI}])],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&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-form-field",1),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedMode=l}),i.TgZ(9,"mat-option",4),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"mat-option",5),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",6),i._UZ(16,"input",2),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-form-field",1),i.TgZ(19,"mat-label"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedCategory=l}),i.TgZ(23,"mat-option",7),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.YNc(26,JI,2,2,"mat-option",8),i.qZA(),i.qZA(),i._UZ(27,"perun-web-apps-year-range",9),i.TgZ(28,"button",10),i.NdJ("click",function(){return t.filter()}),i.TgZ(29,"mat-icon"),i._uU(30,"search"),i.qZA(),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"button",11),i.NdJ("click",function(){return t.clearFilter()}),i.TgZ(34,"mat-icon"),i._uU(35,"search_off"),i.qZA(),i._uU(36),i.ALo(37,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.s9C("placeholder",i.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),i.Q6J("formControl",t.title),i.xp6(4),i.Oqu(i.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),i.xp6(2),i.Q6J("value",t.selectedMode),i.xp6(2),i.Oqu(i.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),i.xp6(3),i.Oqu(i.lcZ(14,22,"PUBLICATION_FILTER.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),i.Q6J("formControl",t.code),i.xp6(4),i.Oqu(i.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),i.xp6(2),i.Q6J("value",t.selectedCategory),i.xp6(2),i.Oqu(i.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("startYear",t.startYear)("endYear",t.endYear),i.xp6(4),i.hij(" ",i.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),i.xp6(5),i.hij(" ",i.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},directives:[Wn,is,Pn,cr,_a,es,Uc,xc,T.sg,UE,Ft,Gi],pipes:[Ct],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}"]}),n})();function KI(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",10),2&n){const e=i.oxw();i.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function XI(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let eO=(()=>{class n{constructor(e,t,r,l,d){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=l,this.domSanitizer=d,this.selected=new Ii(!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=Zn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(fn),i.Y36(Yu),i.Y36(Vn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._UZ(2,"mat-icon",2),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA(),i.TgZ(6,"div",4),i.TgZ(7,"perun-web-apps-refresh-button",5),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"button",6),i.NdJ("click",function(){return t.removePublication()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"perun-web-apps-publication-filter",7),i.NdJ("filteredPublication",function(l){return t.filterPublication(l)}),i.qZA(),i.qZA(),i.YNc(12,KI,1,4,"perun-web-apps-publications-list",8),i.YNc(13,XI,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),i.xp6(4),i.Q6J("disabled",0===t.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[Gi,Cf,Ft,tM,T.O5,wf,mn],pipes:[Ct],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),n})();function tO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function iO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",6),i.TgZ(2,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA(),i.TgZ(3,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().removePublication()}),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){return i.CHM(e),i.oxw().filterPublication(r)}),i.qZA(),i.qZA(),i.YNc(7,tO,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function nO(n,a){1&n&&i._UZ(0,"mat-spinner",12)}let rO=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=l,this.selected=new Ii(!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=Zn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(fn),i.Y36(Vi))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"local_library"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,iO,8,5,"div",4),i.YNc(8,nO,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},directives:[Gi,T.O5,Cf,Ft,tM,wf,mn],pipes:[Ct],styles:[""]}),n})(),aO=(()=>{class n{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,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"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"div",3),i.TgZ(8,"div",4),i.TgZ(9,"mat-card",5),i.TgZ(10,"mat-card-title"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"mat-card-content",6),i.TgZ(14,"div"),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"button",7),i.NdJ("click",function(){return t.importPublications()}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(20,"div",4),i.TgZ(21,"mat-card",5),i.TgZ(22,"mat-card-title"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"mat-card-content",6),i.TgZ(26,"div"),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.TgZ(29,"button",7),i.NdJ("click",function(){return t.createPublication()}),i._uU(30),i.ALo(31,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),i.xp6(6),i.hij(" ",i.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),i.xp6(5),i.hij(" ",i.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},directives:[Gi,sE,aE,rE,Ft],pipes:[Ct],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}"]}),n})();const sO=["input"];let oO=(()=>{class n{constructor(){this.autoFocus=!1,this.control=new Ei,this.filter=new i.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),ua(this.input.nativeElement,"keyup").pipe((0,dt.U)(e=>e.target.value),(0,ol.b)(500),ll()).subscribe(e=>{this.control.invalid||this.filter.emit(e)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&i.Gf(sO,7),2&e){let r;i.iGM(r=i.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","",3,"placeholder","formControl"],["input",""]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i._UZ(1,"input",1,2),i.ALo(3,"translate"),i.TgZ(4,"mat-error"),i._uU(5),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.s9C("placeholder",i.lcZ(3,3,t.placeholder)),i.Q6J("formControl",t.control),i.xp6(4),i.hij(" ",t.error," "))},directives:[Wn,is,Pn,cr,_a,Hs],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),n})();function lO(n,a){1&n&&i._UZ(0,"th",20)}function cO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",21),i.TgZ(1,"mat-checkbox",22),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function dO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"AUTHORS_LIST.ID")))}function uO(n,a){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function hO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function pO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"userFullName"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,e))}}function fO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function mO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"organization"))}}function gO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function _O(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"preferredMail"))}}function bO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function yO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.authorships.length.toString())}}function wO(n,a){1&n&&i._UZ(0,"th",26)}function CO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24),i.TgZ(1,"button",27),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().onAddClick(l)}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function AO(n,a){1&n&&i._UZ(0,"th",26)}function vO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24),i.TgZ(1,"button",28),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().onRemoveClick(l)}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function TO(n,a){1&n&&i._UZ(0,"tr",29)}const zE=function(n){return["/authors",n]};function xO(n,a){if(1&n&&i._UZ(0,"tr",30),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.VKq(4,zE,e.id))("routerLink",t.disableRouting?null:i.VKq(6,zE,e.id))}}function MO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function SO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let iM=(()=>{class n{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Uu,this.addAuthor=new i.vpe,this.removeAuthor=new i.vpe}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function SH(n){let a="";return null!==n.firstName&&(a+=n.firstName+" "),null!==n.middleName&&(a+=n.middleName+" "),null!==n.lastName&&(a+=n.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}(e);case"organization":return df(e,"organization");case"email":return df(e,"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 vS(e);case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){var r;switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:null!==(r=e.firstName)&&void 0!==r?r:"";case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Il(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(l=>{l.friendlyName===t&&(r=l.value)}),r}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`}onAddClick(e){this.addAuthor.emit(e)}onRemoveClick(e){this.removeAuthor.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[i.TTD],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["matColumnDef","add"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","remove"],["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"],["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-header-cell",""],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,lO,1,0,"th",4),i.YNc(5,cO,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,dO,3,3,"th",7),i.YNc(8,uO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,hO,3,3,"th",7),i.YNc(11,pO,3,3,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,fO,3,3,"th",7),i.YNc(14,mO,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,gO,3,3,"th",7),i.YNc(17,_O,2,1,"td",10),i.BQk(),i.ynx(18,13),i.YNc(19,bO,3,3,"th",7),i.YNc(20,yO,2,1,"td",10),i.BQk(),i.ynx(21,14),i.YNc(22,wO,1,0,"th",15),i.YNc(23,CO,4,3,"td",8),i.BQk(),i.ynx(24,16),i.YNc(25,AO,1,0,"th",15),i.YNc(26,vO,4,3,"td",8),i.BQk(),i.YNc(27,TO,1,0,"tr",17),i.YNc(28,xO,1,8,"tr",18),i.qZA(),i.qZA(),i.qZA(),i.YNc(29,MO,3,3,"perun-web-apps-alert",19),i.YNc(30,SO,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(25),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.authors.length))},directives:[ts,Mo,wa,Bs,Os,Vs,Is,js,Zc,yf,Ft,Rl,Ll,So,Eo,FE,F,T.O5,Fs],pipes:[Ct,NC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function EO(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const DO=function(){return["id","name","organization","email","numberOfPublications"]};function HO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.authors)("displayedColumns",i.DdM(4,DO))("filterValue",e.filterValue)("tableId",e.tableId)}}let kO=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"perun-web-apps-refresh-button",4),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"perun-web-apps-debounce-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(9,EO,1,0,"mat-spinner",6),i.YNc(10,HO,1,5,"perun-web-apps-authors-list",7),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,4,"AUTHORS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","AUTHORS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Gi,Cf,oO,T.O5,mn,iM],pipes:[Ct],styles:[""]}),n})();function PO(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function RO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.TgZ(8,"mat-form-field"),i._UZ(9,"input",6),i.ALo(10,"translate"),i.TgZ(11,"mat-error"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.qZA(),i.TgZ(14,"p",7),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.qZA(),i.TgZ(17,"div",8),i.TgZ(18,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"div",10),i.ALo(22,"translate"),i.TgZ(23,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),i.Q6J("formControl",e.nameCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),i.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let LO=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=l,l.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new Ei(null,[Oi.required,Oi.pattern("^[\\w.-]+( [\\w.-]+)*$"),Oi.maxLength(128)]),this.rankCtrl=new Ei(null,[Oi.required,Oi.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(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Ln),i.Y36(li),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,PO,1,0,"mat-spinner",2),i.YNc(5,RO,26,28,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,Wn,is,Pn,xo,cr,_a,Hs,Cr,Ft,zc],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function IO(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function OO(n,a){1&n&&i._UZ(0,"th",14)}function BO(n,a){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function VO(n,a){1&n&&i._UZ(0,"tr",16)}function jO(n,a){1&n&&i._UZ(0,"tr",17)}function FO(n,a){if(1&n&&(i.TgZ(0,"div",6),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",7),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",8),i.ynx(8,9),i.YNc(9,OO,1,0,"th",10),i.YNc(10,BO,2,1,"td",11),i.BQk(),i.YNc(11,VO,1,0,"tr",12),i.YNc(12,jO,1,0,"tr",13),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),i.xp6(2),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function NO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",18),i.TgZ(1,"button",19),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",20),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let YO=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetManagerService=d,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new Il(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Ln),i.Y36(Li),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,IO,1,0,"mat-spinner",2),i.YNc(5,FO,13,9,"div",3),i.YNc(6,NO,7,7,"div",4),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,Mo,Bs,Os,Vs,Is,js,Rl,Ll,So,Eo,Cr,Ft],pipes:[Ct],styles:[""]}),n})();function UO(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function zO(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let k_=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Ei}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,UO,2,4,"input",1),i.YNc(2,zO,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},directives:[Wn,T.O5,is,Pn,_I,cr,_a],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),n})();function qO(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function GO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.TgZ(8,"p",7),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.TgZ(11,"div",8),i.TgZ(12,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"div",10),i.ALo(16,"translate"),i.TgZ(17,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),i.Q6J("matTooltipDisabled",e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let WO=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=l,this.translate=d,this.categoryName="",d.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(o=>this.successMessage=o)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Ei(this.data.rank,[Oi.required,Oi.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(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Ln),i.Y36(li),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,qO,1,0,"mat-spinner",2),i.YNc(5,GO,20,21,"div",3),i.qZA()),2&e&&(i.xp6(2),i.AsE("",i.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,Wn,is,Pn,xo,cr,_a,Hs,Cr,Ft,zc],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function ZO(n,a){1&n&&i._UZ(0,"th",15)}function $O(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",16),i.TgZ(1,"mat-checkbox",17),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function JO(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function QO(n,a){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function KO(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function XO(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function eB(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function tB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().updateCategory(r)}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA(),i.qZA()}}function iB(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.YNc(2,tB,3,0,"button",21),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.hij(" ",e.rank," "),i.xp6(1),i.Q6J("ngIf",t.editAuth)}}function nB(n,a){1&n&&i._UZ(0,"tr",23)}function rB(n,a){1&n&&i._UZ(0,"tr",24)}function aB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let sB=(()=>{class n{constructor(e,t,r,l){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=l,this.categories=[],this.selection=new Ii(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Uu,this.refreshTable=new i.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 Il(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=Zn();t.width="400px",t.data=e,this.dialog.open(WO,t).afterClosed().subscribe(l=>{l&&this.refreshTable.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(na),i.Y36(wC),i.Y36(fn),i.Y36(na))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[i.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZO,1,0,"th",4),i.YNc(5,$O,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,JO,3,3,"th",7),i.YNc(8,QO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,KO,3,3,"th",7),i.YNc(11,XO,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,eB,3,3,"th",7),i.YNc(14,iB,3,2,"td",10),i.BQk(),i.YNc(15,nB,1,0,"tr",12),i.YNc(16,rB,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,aB,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},directives:[ts,Mo,wa,Bs,Os,Vs,Is,js,Zc,yf,T.O5,Ft,Gi,Rl,Ll,So,Eo,Fs],pipes:[Ct],styles:[""]}),n})();function oB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().addCategory()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function lB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().removeCategory()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",!e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function cB(n,a){1&n&&i._UZ(0,"mat-spinner",10)}const dB=function(){return["select","id","name","rank"]},uB=function(){return["name","rank"]};function hB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-categories-list",11),i.NdJ("refreshTable",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?i.DdM(5,dB):i.DdM(6,uB))("tableId",e.tableId)("selection",e.selected)}}let pB=(()=>{class n{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new Ii(!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=Zn();e.width="400px",e.data={},this.dialog.open(LO,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=Zn();e.width="400px",e.data=this.selected.selected,this.dialog.open(YO,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(fn),i.Y36(na))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.YNc(5,oB,3,3,"button",3),i.YNc(6,lB,3,4,"button",4),i.TgZ(7,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(8,cB,1,0,"mat-spinner",6),i.YNc(9,hB,1,7,"perun-web-apps-categories-list",7),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),i.xp6(3),i.Q6J("ngIf",t.addAuth),i.xp6(1),i.Q6J("ngIf",t.removeAuth),i.xp6(1),i.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.categories&&!t.loading))},directives:[Cf,T.O5,Ft,k_,mn,sB],pipes:[Ct],styles:[""]}),n})();function fB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function mB(n,a){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function gB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function _B(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyName)}}function bB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function yB(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function wB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function CB(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu("empty"===e.url?"":e.url)}}function AB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function vB(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu("empty"===e.type?"":e.type)}}function TB(n,a){1&n&&i._UZ(0,"tr",17)}function xB(n,a){1&n&&i._UZ(0,"tr",18)}function MB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let SB=(()=>{class n{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Uu}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 Il(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,fB,3,3,"th",4),i.YNc(5,mB,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,gB,3,3,"th",4),i.YNc(8,_B,2,1,"td",7),i.BQk(),i.ynx(9,8),i.YNc(10,bB,3,3,"th",4),i.YNc(11,yB,2,1,"td",7),i.BQk(),i.ynx(12,9),i.YNc(13,wB,3,3,"th",4),i.YNc(14,CB,2,1,"td",7),i.BQk(),i.ynx(15,10),i.YNc(16,AB,3,3,"th",4),i.YNc(17,vB,2,1,"td",7),i.BQk(),i.YNc(18,TB,1,0,"tr",11),i.YNc(19,xB,1,0,"tr",12),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,MB,3,3,"perun-web-apps-alert",13)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},directives:[ts,Mo,wa,Bs,Os,Vs,yf,Is,js,Rl,Ll,So,Eo,T.O5,Fs],pipes:[Ct],styles:[""]}),n})();function EB(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function DB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publication-systems-list",7),2&n){const e=i.oxw();i.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let HB=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(6,EB,1,0,"mat-spinner",4),i.YNc(7,DB,1,3,"perun-web-apps-publication-systems-list",5),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.publicationSystems&&!t.loading))},directives:[Cf,k_,T.O5,mn,SB],pipes:[Ct],styles:[""]}),n})();function kB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function PB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h5"),i._uU(2),i.ALo(3,"userFullName"),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",6),i.TgZ(6,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().removePublication()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){return i.CHM(e),i.oxw().filterPublication(r)}),i.qZA(),i.qZA(),i.YNc(11,kB,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.AsE("",i.lcZ(3,5,e.author),"",i.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),i.xp6(5),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function RB(n,a){1&n&&i._UZ(0,"mat-spinner",12)}let LB=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=l,this.selected=new Ii(!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=Zn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,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,null,null,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(Mr),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,PB,12,11,"div",4),i.YNc(8,RB,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"AUTHORS_PAGE.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},directives:[Gi,T.O5,Cf,Ft,tM,wf,mn],pipes:[Ct,NC],styles:[""]}),n})();function IB(n,a){1&n&&i._UZ(0,"mat-spinner",2)}function OB(n,a){if(1&n&&(i.TgZ(0,"h3",15),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.publication.title)}}function BB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return r.editing=!r.editing}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"edit"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function VB(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function jB(n,a){if(1&n&&(i.TgZ(0,"mat-form-field",18),i._UZ(1,"textarea",19),i.YNc(2,VB,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("formControl",e.titleControl),i.xp6(1),i.Q6J("ngIf",e.titleControl.invalid)}}function FB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).save()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"save"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),i.Q6J("disabled",e.titleControl.invalid)}}function NB(n,a){1&n&&i._UZ(0,"th",21)}function YB(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij("",e.key,":")}}function UB(n,a){1&n&&i._UZ(0,"th",21)}function zB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.TgZ(2,"span",24),i._uU(3),i.ALo(4,"translate"),i.qZA(),i._uU(5),i.TgZ(6,"span",24),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._uU(9),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(2);i.xp6(1),i.hij(" ",e.value," / "),i.xp6(2),i.hij("",i.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),i.xp6(2),i.hij(" ",t.publication.externalId," "),i.xp6(2),i.hij("",i.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),i.xp6(2),i.hij(" ",t.publication.pubSystemName," ")}}function qB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function GB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function WB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw(3).$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function ZB(n,a){if(1&n&&(i.TgZ(0,"span"),i.YNc(1,WB,2,1,"span",1),i.qZA()),2&n){const e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function $B(n,a){1&n&&(i.TgZ(0,"span"),i._uU(1," - "),i.qZA())}function JB(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,ZB,2,1,"span",1),i.YNc(2,$B,2,0,"span",1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",null!==e.value&&""!==e.value),i.xp6(1),i.Q6J("ngIf",null===e.value||""===e.value)}}function QB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",26),i.NdJ("click",function(){return i.CHM(e),i.MAs(7).open()}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",27),i._UZ(5,"mat-datepicker-toggle",28),i.TgZ(6,"mat-datepicker",29,30),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(7);return i.oxw(4).chosenYearHandler(r,l)}),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(7),t=i.oxw(4);i.xp6(2),i.Oqu(i.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),i.xp6(1),i.Q6J("for",e)}}function KB(n,a){if(1&n&&(i.TgZ(0,"mat-option",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function XB(n,a){if(1&n&&(i.TgZ(0,"mat-form-field"),i.TgZ(1,"mat-select",31),i.YNc(2,KB,2,2,"mat-option",32),i.qZA(),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.categoryControl),i.xp6(1),i.Q6J("ngForOf",e.categories)}}function eV(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function tV(n,a){if(1&n&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",34),i.YNc(2,eV,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.rankControl),i.xp6(1),i.Q6J("ngIf",e.rankControl.invalid)}}function iV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"input",35),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.isbn=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.isbn)}}function nV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"input",35),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.doi=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.doi)}}function rV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"textarea",36),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.main=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.main)}}function aV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,QB,8,7,"mat-form-field",25),i.YNc(2,XB,3,2,"mat-form-field",1),i.YNc(3,tV,3,2,"mat-form-field",1),i.YNc(4,iV,2,1,"mat-form-field",6),i.YNc(5,nV,2,1,"mat-form-field",6),i.YNc(6,rV,2,1,"mat-form-field",6),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf","Year"===e.key),i.xp6(1),i.Q6J("ngIf","Category"===e.key),i.xp6(1),i.Q6J("ngIf","Rank"===e.key),i.xp6(1),i.Q6J("ngIf","ISBN / ISSN"===e.key),i.xp6(1),i.Q6J("ngIf","DOI"===e.key),i.xp6(1),i.Q6J("ngIf","Full cite"===e.key)}}function sV(n,a){if(1&n&&(i.TgZ(0,"td",23),i.YNc(1,zB,10,9,"span",1),i.YNc(2,qB,3,4,"span",1),i.YNc(3,GB,2,1,"span",1),i.YNc(4,JB,3,2,"div",1),i.YNc(5,aV,7,6,"div",1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("ngIf","Id / Origin"===e.key),i.xp6(1),i.Q6J("ngIf","Create date"===e.key),i.xp6(1),i.Q6J("ngIf","Created by"===e.key),i.xp6(1),i.Q6J("ngIf",!t.editing),i.xp6(1),i.Q6J("ngIf",t.editing)}}function oV(n,a){1&n&&i._UZ(0,"tr",37)}function lV(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"div",3),i.YNc(2,OB,2,1,"h3",4),i.YNc(3,BB,4,3,"button",5),i.YNc(4,jB,3,2,"mat-form-field",6),i.YNc(5,FB,4,4,"button",7),i.qZA(),i.TgZ(6,"table",8),i.ynx(7,9),i.YNc(8,NB,1,0,"th",10),i.YNc(9,YB,2,1,"td",11),i.BQk(),i.ynx(10,12),i.YNc(11,UB,1,0,"th",10),i.YNc(12,sV,6,5,"td",13),i.BQk(),i.YNc(13,oV,1,0,"tr",14),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngIf",!e.editing),i.xp6(1),i.Q6J("ngIf",!e.editing&&!e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(7),i.Q6J("matRowDefColumns",e.displayedColumns)}}const qE=Af,cV={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let dV=(()=>{class n{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.edited=new i.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new Ii(!0,[]),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;el.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(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(l=>{this.notificator.showSuccess(l),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[i._Bn([{provide:Ai,useClass:H_,deps:[vo]},{provide:yr,useValue:cV}])],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&&(i.TgZ(0,"div"),i.YNc(1,IB,1,0,"mat-spinner",0),i.YNc(2,lV,14,6,"div",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,mn,Ft,zc,Gi,Wn,is,Pn,cr,_a,Hs,Mo,Bs,Os,Vs,Is,js,es,D_,Qx,gw,Jx,Uc,T.sg,xc,Ml,So,Eo],pipes:[Ct,T.uU],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}"]}),n})();const uV=function(){return["id","name","organization","email","add"]};function hV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",15),i.NdJ("addAuthor",function(r){return i.CHM(e),i.oxw(3).addAuthor(r)}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("authors",e.authors)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(4,uV))}}function pV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function fV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,hV,1,5,"perun-web-apps-authors-list",13),i.YNc(2,pV,3,3,"perun-web-apps-alert",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.firstSearchDone)}}function mV(n,a){1&n&&i._UZ(0,"mat-spinner",17)}const gV=function(){return["id","name","organization","email","remove"]};function _V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",19),i.NdJ("removeAuthor",function(r){return i.CHM(e),i.oxw(3).removeAuthor(r)}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("reloadTable",e.reloadTable)("authors",e.authorsToAdd)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(5,gV))}}function bV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,_V,1,6,"perun-web-apps-authors-list",18),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone)}}function yV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function wV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,fV,3,2,"div",6),i.YNc(2,mV,1,0,"mat-spinner",7),i.TgZ(3,"h2",11),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,bV,2,1,"div",6),i.YNc(7,yV,3,3,"perun-web-apps-alert",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.searchLoading),i.xp6(1),i.Q6J("ngIf",e.searchLoading),i.xp6(2),i.hij(" ",i.lcZ(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")," "),i.xp6(2),i.Q6J("ngIf",e.firstSearchDone&&0!==e.authorsToAdd.length),i.xp6(1),i.Q6J("ngIf",0===e.authorsToAdd.length)}}function CV(n,a){1&n&&i._UZ(0,"mat-spinner",17)}let AV=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=l,this.translate=d,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors="67",this.selection=new Ii(!1,[]),this.reloadTable=!1,d.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(o=>this.successMessage=o),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Ei("",[Oi.required,Oi.pattern(".*[\\S]+.*")])}onSearchByString(){this.searchLoading=!0;const e=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(t=>{t=t.filter(r=>!e.map(l=>l.id).includes(r.id)),this.authors=t,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const e=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe(()=>{this.onAdd()},()=>this.loading=!1)}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}addAuthor(e){this.authors=this.authors.filter(t=>t!==e),this.authorsToAdd.push(e),this.reloadTable=!this.reloadTable}removeAuthor(e){this.authorsToAdd=this.authorsToAdd.filter(t=>t!==e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Ln),i.Y36(li),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,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"],["mat-dialog-title","",1,"top-margin"],["alert_type","warn",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor"],["alert_type","info"],[1,"ml-auto","mr-auto"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor",4,"ngIf"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"mat-form-field",3),i.TgZ(6,"label"),i.TgZ(7,"input",4),i.NdJ("keyup.enter",function(){return t.onSearchByString()}),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-error"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.TgZ(12,"button",5),i.NdJ("click",function(){return t.onSearchByString()}),i.TgZ(13,"mat-icon"),i._uU(14,"search"),i.qZA(),i.qZA(),i.YNc(15,wV,8,7,"div",6),i.qZA(),i.YNc(16,CV,1,0,"mat-spinner",7),i.TgZ(17,"div",8),i.TgZ(18,"button",9),i.NdJ("click",function(){return t.onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"button",10),i.NdJ("click",function(){return t.onAdd()}),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),i.xp6(5),i.s9C("placeholder",i.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),i.Q6J("formControl",t.searchControl),i.xp6(3),i.hij(" ",i.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(3),i.hij(" ",i.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===t.authorsToAdd.length||t.loading),i.xp6(1),i.hij(" ",i.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},directives:[or,kn,Wn,is,Pn,cr,_a,Hs,Ft,Gi,T.O5,iM,Fs,mn,Cr],pipes:[Ct],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),n})();function vV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddAuthors()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function TV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onRemoveAuthors()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function xV(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const MV=function(){return["id","name","organization","email"]},SV=function(){return["select","id","name","organization","email"]};function EV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,MV):i.DdM(6,SV))}}let GE=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new Ii(!0,[]),this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=Zn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(AV,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=Zn();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(FS,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(li),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection"},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","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","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,vV,3,3,"button",1),i.YNc(2,TV,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,xV,1,0,"mat-spinner",4),i.YNc(5,EV,1,7,"perun-web-apps-authors-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,Ft,k_,mn,iM],pipes:[Ct],styles:[""]}),n})();function DV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",16),i.TgZ(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function HV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function kV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function PV(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function RV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function LV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function IV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function OV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.contact)}}function BV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function VV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.type)}}function jV(n,a){1&n&&i._UZ(0,"tr",23)}function FV(n,a){1&n&&i._UZ(0,"tr",24)}function NV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function YV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let UV=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new Ii(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Uu}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()}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.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 Il(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(na),i.Y36(wC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","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","contact"],["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","",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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,DV,2,3,"th",4),i.YNc(5,HV,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,kV,3,3,"th",7),i.YNc(8,PV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,RV,3,3,"th",7),i.YNc(11,LV,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,IV,3,3,"th",7),i.YNc(14,OV,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,BV,3,3,"th",7),i.YNc(17,VV,2,1,"td",10),i.BQk(),i.YNc(18,jV,1,0,"tr",13),i.YNc(19,FV,1,0,"tr",14),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,NV,3,3,"perun-web-apps-alert",15),i.YNc(21,YV,3,3,"perun-web-apps-alert",15)),2&e&&(i.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.owners.length),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},directives:[ts,Mo,wa,Bs,Os,Vs,Zc,Is,js,yf,Rl,Ll,So,Eo,T.O5,Fs],pipes:[Ct],styles:[""]}),n})();function zV(n,a){1&n&&i._UZ(0,"mat-spinner",4)}const qV=function(){return["select","id","name","contact"]};function GV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"perun-web-apps-immediate-filter",6),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().filterValue=r}),i.qZA(),i._UZ(3,"perun-web-apps-owners-list",7),i.qZA(),i.TgZ(4,"div",8),i.TgZ(5,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),i.xp6(1),i.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",i.DdM(13,qV))("selection",e.selected),i.xp6(3),i.hij(" ",i.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length||e.loading),i.xp6(1),i.hij(" ",i.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let WV=(()=>{class n{constructor(e,t,r,l,d,o,s){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=l,this.notificator=d,this.translate=o,this.cabinetManagerService=s,this.selected=new Ii(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(r.id)):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(l=>l.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36($t),i.Y36(hn),i.Y36(Ln),i.Y36(Li),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,zV,1,0,"mat-spinner",2),i.YNc(5,GV,11,14,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,k_,UV,Cr,Ft],pipes:[Ct],styles:[""]}),n})();function ZV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function $V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function JV(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"THANKS_LIST.ID")))}function QV(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.ownerId)}}function KV(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NAME")," "))}function XV(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.ownerName)}}function ej(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function tj(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.createdBy)}}function ij(n,a){1&n&&i._UZ(0,"tr",22)}function nj(n,a){1&n&&i._UZ(0,"tr",23)}function rj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function aj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}let sj=(()=>{class n{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Uu,this.selection=new Ii(!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 Il(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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[i.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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","createdBy"],["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"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZV,2,3,"th",4),i.YNc(5,$V,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,JV,3,3,"th",7),i.YNc(8,QV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,KV,3,3,"th",7),i.YNc(11,XV,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,ej,3,3,"th",7),i.YNc(14,tj,2,1,"td",10),i.BQk(),i.YNc(15,ij,1,0,"tr",12),i.YNc(16,nj,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,rj,3,3,"perun-web-apps-alert",14),i.YNc(18,aj,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.thanks.length))},directives:[ts,Mo,wa,Bs,Os,Vs,Zc,Is,js,yf,Rl,Ll,So,Eo,T.O5,Fs],pipes:[Ct],styles:[""]}),n})();function oj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddThanks()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function lj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onRemoveThanks()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function cj(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const dj=function(){return["id","name","createdBy"]},uj=function(){return["select","id","name","createdBy"]};function hj(n,a){if(1&n&&i._UZ(0,"perun-web-apps-thanks-list",9),2&n){const e=i.oxw();i.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,dj):i.DdM(6,uj))("selection",e.selection)}}let WE=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new Ii(!0,[]),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=Zn();e.width="800px",e.data=this.publication,this.dialog.open(WV,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=Zn();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(FS,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(li),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection"},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&&(i.TgZ(0,"div",0),i.YNc(1,oj,3,3,"button",1),i.YNc(2,lj,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,cj,1,0,"mat-spinner",4),i.YNc(5,hj,1,7,"perun-web-apps-thanks-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,Ft,k_,mn,sj],pipes:[Ct],styles:[""]}),n})();function pj(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function fj(n,a){1&n&&(i.TgZ(0,"h1",11),i.TgZ(1,"span"),i.TgZ(2,"mat-icon",12),i._uU(3,"assignment_ind"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function mj(n,a){1&n&&(i.TgZ(0,"h1",11),i._UZ(1,"mat-icon",13),i.TgZ(2,"span",14),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function gj(n,a){1&n&&(i.TgZ(0,"h1",11),i.TgZ(1,"span"),i.TgZ(2,"mat-icon",12),i._uU(3,"local_library"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function _j(n,a){if(1&n&&(i.TgZ(0,"h5",15),i._uU(1),i.ALo(2,"userFullName"),i.ALo(3,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.AsE(" ",i.lcZ(2,2,e.mainAuthor),"",i.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function bj(n,a){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function yj(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock "),i.qZA())}function wj(n,a){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function Cj(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock_open "),i.qZA())}function Aj(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function vj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publication-detail-list",17),i.NdJ("edited",function(){return i.CHM(e),i.oxw(2).refreshPublication()}),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("categories",e.categories)}}function Tj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.YNc(1,fj,6,3,"h1",4),i.YNc(2,mj,5,3,"h1",4),i.YNc(3,gj,6,3,"h1",4),i.YNc(4,_j,4,6,"h5",5),i.TgZ(5,"h5"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"h6"),i._uU(9),i.ALo(10,"translate"),i.TgZ(11,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeLock()}),i.YNc(12,bj,3,3,"span",7),i.YNc(13,yj,2,0,"mat-icon",2),i.YNc(14,wj,3,3,"span",7),i.YNc(15,Cj,2,0,"mat-icon",2),i.qZA(),i.qZA(),i.TgZ(16,"mat-card"),i.TgZ(17,"mat-card-content"),i.YNc(18,Aj,1,0,"mat-spinner",1),i.YNc(19,vj,1,2,"perun-web-apps-publication-detail-list",8),i.qZA(),i.qZA(),i.TgZ(20,"mat-card",9),i.TgZ(21,"mat-card-title"),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"mat-card-content"),i._UZ(25,"perun-web-apps-add-authors",10),i.qZA(),i.qZA(),i.TgZ(26,"mat-card",9),i.TgZ(27,"mat-card-title"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"mat-card-content"),i._UZ(31,"perun-web-apps-add-thanks",10),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf","authors"===e.mode),i.xp6(1),i.Q6J("ngIf","all"===e.mode),i.xp6(1),i.Q6J("ngIf","my"===e.mode),i.xp6(1),i.Q6J("ngIf",void 0!==e.mainAuthor),i.xp6(2),i.Oqu(i.lcZ(7,18,"PUBLICATION_DETAIL.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),i.xp6(3),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(3),i.Q6J("ngIf",e.loading||e.pubLoading),i.xp6(1),i.Q6J("ngIf",!e.pubLoading&&!e.loading),i.xp6(3),i.hij(" ",i.lcZ(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionAuthors),i.xp6(3),i.hij(" ",i.lcZ(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionThanks)}}let P_=(()=>{class n{constructor(e,t,r,l,d,o,s){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=l,this.dialog=d,this.notificator=o,this.translate=s,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new Ii(!0,[]),this.selectionThanks=new Ii(!0,[]),this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(Yu),i.Y36(Vn),i.Y36(fn),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId"},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"],["mat-stroked-button","",1,"ml-2",3,"click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection"],[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","edited"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,pj,1,0,"mat-spinner",1),i.YNc(2,Tj,32,26,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.initLoading),i.xp6(1),i.Q6J("ngIf",!t.initLoading))},directives:[T.O5,mn,Gi,Ft,sE,rE,dV,aE,GE,WE],pipes:[Ct,NC],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),n})(),nM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Gc,T.ez]]}),n})();const QE=new i.OlP("mat-chips-default-options");let Bj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wr,{provide:QE,useValue:{separatorKeyCodes:[13]}}],imports:[[st]]}),n})();function jj(n){const{subscriber:a,counter:e,period:t}=n;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function aM(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,(null==e?void 0:e.has(t))?"important":""):n.removeProperty(t)}return n}function vf(n,a){const e=a?"":"none";aM(n.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 KE(n,a,e){aM(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function UC(n,a){return a&&"none"!=a?n+" "+a:n}function XE(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function sM(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function oM(n){const a=n.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 lM(n,a,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&a>=l&&a<=d}function R_(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function eD(n,a,e,t){const{top:r,right:l,bottom:d,left:o,width:s,height:c}=n,u=s*a,h=c*a;return t>r-h&&to-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:oM(e)})})}handleScroll(a){const e=ha(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const o=r.top-l,s=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&R_(c.clientRect,o,s)}),r.top=l,r.left=d,{top:o,left:s}}}function iD(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const s=this._handles.find(c=>o.target&&(o.target===c||c.contains(o.target)));s&&!this._disabledHandles.has(s)&&!this.disabled&&this._initializeDragSequence(s,o)}else this.disabled||this._initializeDragSequence(this._rootElement,o)},this._pointerMove=o=>{const s=this._getPointerPositionOnPage(o);if(!this._hasStartedDragging){if(Math.abs(s.x-this._pickupPositionOnPage.x)+Math.abs(s.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(o),j=this._dropContainer;if(!b)return void this._endDragSequence(o);(!j||!j.isDragging()&&!j.isReceiving())&&(o.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(o)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),o.preventDefault();const c=this._getConstrainedPointerPosition(s);if(this._hasMoved=!0,this._lastKnownPointerPosition=s,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,s);else{const u=this._activeTransform;u.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,u.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:o,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=o=>{this._endDragSequence(o)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new tD(t,l),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Oe(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>vf(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=>Qi(t)),this._handles.forEach(t=>vf(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=Qi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,oD),e.addEventListener("touchstart",this._pointerDown,sD)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Qi(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===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.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),vf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),vf(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}),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})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){L_(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),KE(t,!1,cM),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=L_(e),l=!r&&0!==e.button,d=this._rootElement,o=ha(e),s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Uh(e):Yh(e);if(o&&o.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||s||c)return;if(this._handles.length){const m=d.style;this._rootElementTapHighlight=m.webkitTapHighlightColor||"",m.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(m=>this._updateOnScroll(m)),this._boundaryElement&&(this._boundaryRect=oM(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(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){KE(this._rootElement,!0,cM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),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 l=a.matchSize?this._rootElement.getBoundingClientRect():null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),r=cD(d,this._document),this._previewRef=d,a.matchSize?dD(r,l):r.style.transform=zC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const l=this._rootElement;r=iD(l),dD(r,l.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return aM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},cM),vf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):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 Fj(n){const a=getComputedStyle(n),e=sM(a,"transition-property"),t=e.find(o=>"transform"===o||"all"===o);if(!t)return 0;const r=e.indexOf(t),l=sM(a,"transition-duration"),d=sM(a,"transition-delay");return XE(l[r])+XE(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{var o;(!d||ha(d)===this._preview&&"transform"===d.propertyName)&&(null===(o=this._preview)||void 0===o||o.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=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=cD(this._placeholderRef,this._document)):t=iD(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),r=a===this._rootElement?null:a,l=r?r.getBoundingClientRect():t,d=L_(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:l.left-t.left+(d.pageX-l.left-o.left),y:l.top-t.top+(d.pageY-l.top-o.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=L_(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const o=this._ownerSVGElement.createSVGPoint();return o.x=r,o.y=l,o.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,o=this._boundaryRect,s=this._previewRect,c=o.top+d,u=o.bottom-(s.height-d);t=lD(t,o.left+l,o.right-(s.width-l)),r=lD(r,c,u)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),o=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),o>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,vf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,oD),a.removeEventListener("touchstart",this._pointerDown,sD)}_applyRootElementTransform(a,e){const t=zC(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=UC(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,l=zC(a,e);this._preview.style.transform=UC(l,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._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===r.width&&0===r.height)return;const l=t.left-r.left,d=r.right-t.right,o=t.top-r.top,s=r.bottom-t.bottom;t.width>r.width?(l>0&&(a+=l),d>0&&(a-=d)):a=0,t.height>r.height?(o>0&&(e+=o),s>0&&(e-=s)):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:L_(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=ha(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&R_(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(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Eh(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 Qi(t)}}function zC(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function lD(n,a,e){return Math.max(a,Math.min(e,n))}function L_(n){return"t"===n.type[0]}function cD(n,a){const e=n.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 dD(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=zC(a.left,a.top)}function I_(n,a){return Math.max(0,Math.min(a,n))}class qj{constructor(a,e,t,r,l){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=l,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ee.xQ,this.entered=new Ee.xQ,this.exited=new Ee.xQ,this.dropped=new Ee.xQ,this.sorted=new Ee.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=he.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ee.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function Vj(n=0,a=Mh.P){return(!Ko(n)||n<0)&&(n=0),(!a||"function"!=typeof a.schedule)&&(a=Mh.P),new ki.y(e=>(e.add(a.schedule(jj,n,{subscriber:e,counter:0,period:n})),e))}(0,kd).pipe(Je(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,o=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-o):2===this._verticalScrollDirection&&d.scrollBy(0,o),1===this._horizontalScrollDirection?d.scrollBy(-o,0):2===this._horizontalScrollDirection&&d.scrollBy(o,0)})},this.element=Qi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new tD(t,l)}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){let l;this._draggingStarted(),null==r?(l=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===l&&(l=this._getItemIndexFromPointerPosition(a,e,t))):l=r;const d=this._activeDraggables,o=d.indexOf(a),s=a.getPlaceholderElement();let c=d[l];if(c===a&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(s,u),d.splice(l,0,a)}else Qi(this.element).appendChild(s),d.push(a);s.style.transform="",this._cacheItemPositions(),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,l,d,o){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint: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._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=Qi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!eD(this._clientRect,.05,e,t))return;const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,r);if(-1===d&&l.length>0)return;const o="horizontal"===this._orientation,s=l.findIndex(pe=>pe.drag===a),c=l[d],h=c.clientRect,m=s>d?1:-1,b=this._getItemOffsetPx(l[s].clientRect,h,m),j=this._getSiblingOffsetPx(s,l,m),ie=l.slice();(function zj(n,a,e){const t=I_(a,n.length-1),r=I_(e,n.length-1);if(t===r)return;const l=n[t],d=r{if(ie[Ue]===pe)return;const Tt=pe.drag===a,at=Tt?b:j,Ut=Tt?a.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=at,o?(Ut.style.transform=UC(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),R_(pe.clientRect,0,at)):(Ut.style.transform=UC(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),R_(pe.clientRect,at,0))}),this._previousSwap.overlaps=lM(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?r.x:r.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,o)=>{o===this._document||!d.clientRect||t||eD(d.clientRect,.05,a,e)&&([r,l]=function Gj(n,a,e,t){const r=pD(a,t),l=fD(a,e);let d=0,o=0;if(r){const s=n.scrollTop;1===r?s>0&&(d=1):n.scrollHeight-s>n.clientHeight&&(d=2)}if(l){const s=n.scrollLeft;1===l?s>0&&(o=1):n.scrollWidth-s>n.clientWidth&&(o=2)}return[d,o]}(o,d.clientRect,a,e),(r||l)&&(t=o))}),!r&&!l){const{width:d,height:o}=this._viewportRuler.getViewportSize(),s={width:d,height:o,top:0,right:d,bottom:o,left:0};r=pD(s,e),l=fD(s,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Qi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Qi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_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:oM(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=Qi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const r=e.getRootElement();if(r){const l=null===(t=this._itemPositions.find(d=>d.drag===e))||void 0===t?void 0:t.initialTransform;r.style.transform=l||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this._orientation,l=e[a].clientRect,d=e[a+-1*t];let o=l[r?"width":"height"]*t;if(d){const s=r?"left":"top",c=r?"right":"bottom";-1===t?o-=d.clientRect[s]-l[c]:o+=l[s]-d.clientRect[c]}return o}_getItemOffsetPx(a,e,t){const r="horizontal"===this._orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_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 d=t[t.length-1].clientRect;return r?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this._orientation,d=this._itemPositions.findIndex(({drag:o,clientRect:s})=>{if(o===a)return!1;if(r){const c=l?r.x:r.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(s.left)&&e=Math.floor(s.top)&&tr._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!lM(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Qi(this.element);return r===l||l.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._itemPositions.forEach(({clientRect:t})=>{R_(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Eh(Qi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function pD(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function fD(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const qC=ja({passive:!1,capture:!0});let Wj=(()=>{class n{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 Ee.xQ,this.pointerUp=new Ee.xQ,this.scroll=new Ee.xQ,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,qC)})}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,qC)}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:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:qC}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:qC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.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 ki.y(r=>this._ngZone.runOutsideAngular(()=>{const d=o=>{this._activeDragInstances.length&&r.next(o)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Mi.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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Zj={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let $j=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=Zj){return new Uj(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new qj(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(i.R0b),i.LFG(Ya),i.LFG(Wj))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[$j],imports:[gr]}),n})(),Qj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),n2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),u2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[n2,st],st]}),n})(),T2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa,st],st]}),n})(),S2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,Ou,Gr,IC,Gc,CC,ju]]}),n})(),E2=(()=>{class n extends mp{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const D2={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 bD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ai,useClass:E2},{provide:yr,useValue:D2}],imports:[[T.ez,IC,Ox,iC,Bj,Jj,Dc,Dd,Xx,ee,CC,nM,Gc,gC,Gr,ju,vl,Ou,AC,Qa,HS,Qj,u2,Kx,T2,Mc,Vu,S2,el,yu,AS,jE]]}),n})(),nF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,Gr,Gc,Dd,bD,Dc,vl,Ou,AC,nM]]}),n})(),rF=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wu),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[Ft,Gi],pipes:[Ct],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function aF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let sF=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Ei(null,[Oi.required]),this.passwordCtrl=new Ei(null,[Oi.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vi))},n.\u0275cmp=i.Xpm({type:n,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"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,aF,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4),i.TgZ(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",4),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA(),i.qZA(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[T.O5,Fs,Wn,es,is,Pn,xo,cr,_a,Hs,Ft,Gi],pipes:[Ct],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}"]}),n})();function oF(n,a){1&n&&i.Hsn(0)}const CD=["*"];function lF(n,a){}const cF=function(n){return{animationDuration:n}},dF=function(n,a){return{value:n,params:a}},uF=["tabListContainer"],hF=["tabList"],pF=["tabListInner"],fF=["nextPaginator"],mF=["previousPaginator"],gF=["tabBodyWrapper"],_F=["tabHeader"];function bF(n,a){}function yF(n,a){if(1&n&&i.YNc(0,bF,0,0,"ng-template",10),2&n){const e=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",e.templateLabel)}}function wF(n,a){if(1&n&&i._uU(0),2&n){const e=i.oxw().$implicit;i.Oqu(e.textLabel)}}function CF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index,o=i.oxw(),s=i.MAs(1);return o._handleClick(l,s,d)})("cdkFocusChange",function(r){const d=i.CHM(e).index;return i.oxw()._tabFocusChanged(r,d)}),i.TgZ(1,"div",7),i.YNc(2,yF,1,1,"ng-template",8),i.YNc(3,wF,1,1,"ng-template",null,9,i.W1O),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.MAs(4),l=i.oxw();i.ekj("mat-tab-label-active",l.selectedIndex===t),i.Q6J("id",l._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||l.disableRipple),i.uIk("tabIndex",l._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",l._tabs.length)("aria-controls",l._getTabContentId(t))("aria-selected",l.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),i.xp6(2),i.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function AF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){return i.CHM(e),i.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(r){return i.CHM(e),i.oxw()._setTabBodyWrapperHeight(r)}),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.ekj("mat-tab-body-active",r.selectedIndex===t),i.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration),i.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const vF=new i.OlP("MatInkBarPositioner",{providedIn:"root",factory:function TF(){return a=>({left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"})}});let AD=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=l}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(vF),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),n})();const vD=new i.OlP("MatTabContent");let xF=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:vD,useExisting:n}])]}),n})();const TD=new i.OlP("MatTabLabel"),xD=new i.OlP("MAT_TAB");let MF=(()=>{class n extends _A{constructor(e,t,r){super(e,t),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(xD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:TD,useExisting:n}]),i.qOj]}),n})();const SF=fa(class{}),MD=new i.OlP("MAT_TAB_GROUP");let SD=(()=>{class n extends SF{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ee.xQ,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 fo(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(MD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,TD,5),i.Suo(r,vD,7,i.Rgc)),2&e){let l;i.iGM(l=i.CRH())&&(t.templateLabel=l.first),i.iGM(l=i.CRH())&&(t._explicitContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.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:[i._Bn([{provide:xD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:CD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,oF,1,0,"ng-template"))},encapsulation:2}),n})();const EF={translateTab:ei("translateTab",[Dt("center, void, left-origin-center, right-origin-center",He({transform:"none"})),Dt("left",He({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Dt("right",He({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),ft("* => left, * => right, left => center, right => center",ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ft("void => left-origin-center",[He({transform:"translate3d(-100%, 0, 0)"}),ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ft("void => right-origin-center",[He({transform:"translate3d(100%, 0, 0)"}),ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let DF=(()=>{class n extends Ua{constructor(e,t,r,l){super(e,t,l),this._host=r,this._centeringSub=he.w.EMPTY,this._leavingSub=he.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Wt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>ED)),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),n})(),HF=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=he.w.EMPTY,this._translateTabComplete=new Ee.xQ,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",t&&(this._dirChangeSubscription=t.change.subscribe(l=>{this._computePositionAnimationState(l),r.markForCheck()})),this._translateTabComplete.pipe(ll((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{this._isCenterPosition(l.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(l.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi,8),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),ED=(()=>{class n extends HF{constructor(e,t,r){super(e,t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&i.Gf(Ua,5),2&e){let r;i.iGM(r=i.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[i.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(l){return t._onTranslateTabStarted(l)})("@translateTab.done",function(l){return t._translateTabComplete.next(l)}),i.YNc(2,lF,0,0,"ng-template",2),i.qZA()),2&e&&i.Q6J("@translateTab",i.WLB(3,dF,t._position,i.VKq(1,cF,t.animationDuration)))},directives:[DF],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[EF.translateTab]}}),n})();const DD=new i.OlP("MAT_TABS_CONFIG"),kF=fa(class{});let HD=(()=>{class n extends kF{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(i.uIk("aria-disabled",!!t.disabled),i.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[i.qOj]}),n})();const kD=ja({passive:!0});let LF=(()=>{class n{constructor(e,t,r,l,d,o,s){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=l,this._ngZone=d,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ee.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ee.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,d.runOutsideAngular(()=>{ua(e.nativeElement,"mouseleave").pipe(Je(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=_i(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){ua(this._previousPaginator.nativeElement,"touchstart",kD).pipe(Je(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ua(this._nextPaginator.nativeElement,"touchstart",kD).pipe(Je(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,Ne.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new dl(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),(0,Mi.T)(e,t,this._items.changes).pipe(Je(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(r)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Je(this._destroyed)).subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}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(!Ki(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:l,offsetWidth:d}=t.elementRef.nativeElement;let o,s;"ltr"==this._getLayoutDirection()?(o=l,s=o+d):(s=this._tabListInner.nativeElement.offsetWidth-l,o=s-d);const c=this.scrollDistance,u=this.scrollDistance+r;ou&&(this.scrollDistance+=s-u+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(),Sn(650,100).pipe(Je((0,Mi.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:l}=this._scrollHeader(e);(0===l||l>=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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Ya),i.Y36(xi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),IF=(()=>{class n extends LF{constructor(e,t,r,l,d,o,s){super(e,t,r,l,d,o,s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Oe(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Ya),i.Y36(xi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),n})(),OF=(()=>{class n extends IF{constructor(e,t,r,l,d,o,s){super(e,t,r,l,d,o,s)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Ya),i.Y36(xi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,HD,4),2&e){let l;i.iGM(l=i.CRH())&&(t._items=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(AD,7),i.Gf(uF,7),i.Gf(hF,7),i.Gf(pF,7),i.Gf(fF,5),i.Gf(mF,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inkBar=r.first),i.iGM(r=i.CRH())&&(t._tabListContainer=r.first),i.iGM(r=i.CRH())&&(t._tabList=r.first),i.iGM(r=i.CRH())&&(t._tabListInner=r.first),i.iGM(r=i.CRH())&&(t._nextPaginator=r.first),i.iGM(r=i.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.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:[i.qOj],ngContentSelectors:CD,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(l){return t._handlePaginatorPress("before",l)})("touchend",function(){return t._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(l){return t._handleKeydown(l)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA(),i._UZ(10,"mat-ink-bar"),i.qZA(),i.qZA(),i.TgZ(11,"div",9,10),i.NdJ("mousedown",function(l){return t._handlePaginatorPress("after",l)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),i._UZ(13,"div",2),i.qZA()),2&e&&(i.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),i.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple),i.xp6(5),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(6),i.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),i.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[qt,jh,AD],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n"],encapsulation:2}),n})(),BF=0;class VF{}const jF=Ja(ma(class{constructor(n){this._elementRef=n}}),"primary");let FF=(()=>{class n extends jF{constructor(e,t,r,l){var d;super(e),this._changeDetectorRef=t,this._animationMode=l,this._tabs=new i.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=he.w.EMPTY,this._tabLabelSubscription=he.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=BF++,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=null!==(d=null==r?void 0:r.contentTabIndex)&&void 0!==d?d:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=_i(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=_i(e,null)}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,l)=>r.isActive=l===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._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let r=0;r{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.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new VF;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,Mi.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:this.selectedIndex===t?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(DD,8),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),n})(),NF=(()=>{class n extends FF{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(DD,8),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,SD,5),2&e){let l;i.iGM(l=i.CRH())&&(t._allTabs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(gF,5),i.Gf(_F,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._tabBodyWrapper=r.first),i.iGM(r=i.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[i._Bn([{provide:MD,useExisting:n}]),i.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","_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","_onCentered","_onCentering"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(l){return t._focusChanged(l)})("selectFocusedIndex",function(l){return t.selectedIndex=l}),i.YNc(2,CF,5,15,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,AF,1,10,"mat-tab-body",5),i.qZA()),2&e&&(i.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),i.xp6(2),i.Q6J("ngForOf",t._tabs),i.xp6(1),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(2),i.Q6J("ngForOf",t._tabs))},directives:[OF,ED,T.sg,HD,qt,gv,T.mk,T.O5,Ua],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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.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}\n"],encapsulation:2}),n})(),YF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,il,Qa,zd,zh],st]}),n})();function UF(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function zF(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function qF(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function GF(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function WF(n,a){if(1&n&&(i.TgZ(0,"mat-option",36),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function ZF(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function $F(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function JF(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function QF(n,a){1&n&&(i.TgZ(0,"div",28),i._UZ(1,"mat-spinner",5),i.TgZ(2,"h5",37),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function KF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",38),i.TgZ(1,"div",28),i.TgZ(2,"span",39),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"span",40),i.TgZ(7,"mat-icon",41),i._uU(8,"fiber_manual_record"),i.qZA(),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"span",42),i.TgZ(12,"mat-icon",41),i._uU(13,"fiber_manual_record"),i.qZA(),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.AsE(" ",i.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",i.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),i.xp6(6),i.hij(" ",i.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),i.xp6(5),i.hij(" ",i.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function XF(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function eN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}const tN=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function iN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publications-list",48),i.NdJ("publicationSelector",function(r){i.CHM(e),i.oxw(2);const l=i.MAs(1);return i.oxw(2).loadPublicationDetail(r,l)}),i.qZA()}if(2&n){const e=i.oxw(4);i.Q6J("displayedColumns",i.DdM(4,tN))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function nN(n,a){if(1&n&&(i.TgZ(0,"div",46),i.YNc(1,eN,1,0,"mat-spinner",3),i.YNc(2,iN,1,5,"perun-web-apps-publications-list",47),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function rN(n,a){if(1&n&&i._uU(0),2&n){const e=i.oxw(4);i.Oqu(e.selectedPubTitle)}}function aN(n,a){if(1&n&&(i.TgZ(0,"div",49),i._UZ(1,"perun-web-apps-publication-detail",50),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("publicationId",e.selectedPubId)}}function sN(n,a){1&n&&(i.TgZ(0,"mat-tab"),i.YNc(1,rN,1,1,"ng-template",44),i.YNc(2,aN,2,1,"ng-template",45),i.qZA())}function oN(n,a){if(1&n&&(i.TgZ(0,"mat-tab-group",null,43),i.TgZ(2,"mat-tab"),i.YNc(3,XF,2,3,"ng-template",44),i.YNc(4,nN,3,2,"ng-template",45),i.qZA(),i.YNc(5,sN,3,0,"mat-tab",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!==e.selectedPubId)}}function lN(n,a){1&n&&(i.TgZ(0,"div",28),i.TgZ(1,"mat-icon",51),i._uU(2,"check_circle"),i.qZA(),i.TgZ(3,"h5",52),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function cN(n,a){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function dN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",57),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).redirect(["create-publication"])}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function uN(n,a){if(1&n&&(i.TgZ(0,"div",53),i.YNc(1,cN,3,3,"button",54),i.TgZ(2,"button",55),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.YNc(5,dN,3,3,"button",56),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),i.xp6(2),i.Q6J("ngIf",!e.duplicateCheck)}}function hN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function pN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function fN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-add-authors",59),2&n){const e=i.oxw(3);i.Q6J("publication",e.publication)("selection",e.authorsSelection)}}function mN(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-alert",58),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,fN,1,2,"perun-web-apps-add-authors",33),i.qZA()),2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),i.xp6(2),i.Q6J("ngIf",null!==e.publication)}}function gN(n,a){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function _N(n,a){if(1&n&&(i.TgZ(0,"div",25),i.YNc(1,gN,3,3,"button",54),i.TgZ(2,"button",60),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function bN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function yN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-add-thanks",59),2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function wN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function CN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-horizontal-stepper",6),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw().stepChanged(r)}),i.TgZ(1,"mat-step",7),i.YNc(2,zF,2,3,"ng-template",8),i.TgZ(3,"form",9),i.TgZ(4,"h5",10),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",11),i.TgZ(8,"mat-checkbox",12),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"mat-form-field"),i._UZ(12,"input",13),i.ALo(13,"translate"),i.YNc(14,qF,3,3,"mat-error",14),i.qZA(),i.TgZ(15,"mat-form-field",15),i.NdJ("click",function(){return i.CHM(e),i.MAs(22).open()}),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",16),i._UZ(20,"mat-datepicker-toggle",17),i.TgZ(21,"mat-datepicker",18,19),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(22);return i.oxw().chosenYearHandler(r,l)}),i.qZA(),i.YNc(23,GF,3,3,"mat-error",14),i.qZA(),i.TgZ(24,"mat-form-field"),i.TgZ(25,"mat-select",20),i.ALo(26,"translate"),i.YNc(27,WF,2,2,"mat-option",21),i.qZA(),i.YNc(28,ZF,3,3,"mat-error",14),i.qZA(),i.TgZ(29,"mat-form-field"),i._UZ(30,"input",22),i.ALo(31,"translate"),i.qZA(),i.TgZ(32,"mat-form-field"),i._UZ(33,"input",23),i.ALo(34,"translate"),i.qZA(),i.TgZ(35,"mat-form-field"),i.TgZ(36,"textarea",24),i.ALo(37,"translate"),i._uU(38," "),i.qZA(),i.YNc(39,$F,3,3,"mat-error",14),i.qZA(),i.qZA(),i.qZA(),i.TgZ(40,"div",25),i.TgZ(41,"button",26),i._uU(42),i.ALo(43,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(44,"mat-step",27),i.YNc(45,JF,2,3,"ng-template",8),i.TgZ(46,"form",28),i.TgZ(47,"h5",10),i._uU(48),i.ALo(49,"translate"),i.qZA(),i.YNc(50,QF,5,3,"div",29),i.YNc(51,KF,16,12,"perun-web-apps-alert",30),i.YNc(52,oN,6,1,"mat-tab-group",14),i.YNc(53,lN,6,3,"div",29),i.qZA(),i.YNc(54,uN,6,5,"div",31),i.qZA(),i.TgZ(55,"mat-step"),i.YNc(56,hN,2,3,"ng-template",8),i.TgZ(57,"h5",10),i._uU(58),i.ALo(59,"translate"),i.qZA(),i.YNc(60,pN,1,0,"mat-spinner",3),i.YNc(61,mN,5,4,"div",14),i.YNc(62,_N,5,4,"div",32),i.qZA(),i.TgZ(63,"mat-step"),i.YNc(64,bN,2,3,"ng-template",8),i.TgZ(65,"h5",10),i._uU(66),i.ALo(67,"translate"),i.qZA(),i.YNc(68,yN,1,2,"perun-web-apps-add-thanks",33),i.YNc(69,wN,1,0,"mat-spinner",3),i.TgZ(70,"div",25),i.TgZ(71,"button",34),i._uU(72),i.ALo(73,"translate"),i.qZA(),i.TgZ(74,"button",35),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.redirect(["all-publications",r.publication.id])}),i._uU(75),i.ALo(76,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(22),t=i.oxw();i.xp6(1),i.Q6J("editable",!t.duplicateCheck)("stepControl",t.publicationControl),i.xp6(2),i.Q6J("formGroup",t.publicationControl),i.xp6(2),i.hij(" ",i.lcZ(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),i.xp6(2),i.Q6J("ngIf",t.publicationControl.hasError("required","title")),i.xp6(3),i.Oqu(i.lcZ(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e),i.xp6(1),i.Q6J("for",e),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","year")),i.xp6(2),i.s9C("placeholder",i.lcZ(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("ngIf",t.publicationControl.hasError("required","category")),i.xp6(2),i.s9C("placeholder",i.lcZ(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),i.xp6(3),i.s9C("placeholder",i.lcZ(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","cite")),i.xp6(2),i.Q6J("disabled",t.publicationControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),i.xp6(2),i.Q6J("editable",!t.duplicateCheck),i.xp6(4),i.hij(" ",i.lcZ(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),i.xp6(2),i.Q6J("ngIf",null!==t.publication),i.xp6(1),i.Q6J("ngIf",t.innerLoading),i.xp6(3),i.hij(" ",i.lcZ(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),i.xp6(3),i.hij(" ",i.lcZ(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const AN=Af,vN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let TN=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=l,this.notificator=d,this.translate=o,this.storeService=s,this.userService=c,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new Ii(!0,[]),this.thanksSelection=new Ii(!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:[!1],title:["",Oi.required],year:["",Oi.required],category:["",Oi.required],isbn:[""],doi:[""],cite:["",Oi.required]}),this.maxYear=AN(),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(l=>"preferredMail"===l.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(l=>{this.publication=l,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(){var e,t,r;this.innerLoading=!0;const l=null!==(e=this.publicationControl.get("title").value)&&void 0!==e?e:null,d=null!==(t=this.publicationControl.get("doi").value)&&void 0!==t?t:null,o=null!==(r=this.publicationControl.get("isbn").value)&&void 0!==r?r:null;this.cabinetService.findSimilarPublications(l,d,o).subscribe(s=>{this.similarPublications=s,this.filteredPublications=s,setTimeout(()=>{this.duplicateCheck=0===s.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)}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ax),i.Y36(li),i.Y36(fn),i.Y36(C),i.Y36(Ln),i.Y36(Li),i.Y36(hn),i.Y36(Mr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-single-publication-page"]],features:[i._Bn([{provide:Ai,useClass:H_,deps:[vo]},{provide:yr,useValue:vN}])],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"],["linear","True",3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],["linear","True",3,"selectionChange"],[3,"editable","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",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,"mt-1"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-auto",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","mt-3",4,"ngIf"],["class","mt-1",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-stroked-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","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"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],[1,"mt-3"],["class","ml-auto","mat-stroked-button","","type","button","matStepperPrevious","",4,"ngIf"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["class","ml-2","mat-stroked-button","","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","type","button",1,"ml-2",3,"click"],["alert_type","info"],[3,"publication","selection"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-2"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,UF,1,0,"mat-spinner",3),i.YNc(8,CN,77,65,"mat-horizontal-stepper",4),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Gi,T.O5,mn,SE,xE,OC,Vw,Ew,Ls,Zc,cr,u_,Wn,is,Pn,xo,Hs,es,D_,Qx,gw,Jx,Uc,T.sg,xc,Ft,TL,jc,Fs,NF,SD,MF,xF,wf,P_,xL,GE,WE],pipes:[Ct],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.passed-icon[_ngcontent-%COMP%]{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function xN(n,a){if(1&n&&(i.TgZ(0,"mat-option",14),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e.friendlyName)}}function MN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function SN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",16),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function EN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div"),i.TgZ(2,"mat-form-field",5),i.TgZ(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"mat-select",6),i.NdJ("closed",function(){return i.CHM(e),i.oxw().selectPubSystem()}),i.YNc(7,xN,2,2,"mat-option",7),i.qZA(),i.qZA(),i._UZ(8,"perun-web-apps-year-range",8),i.TgZ(9,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().searchPublications()}),i.TgZ(10,"mat-icon"),i._uU(11,"search"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.importPublications(r.selected.selected)}),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"mat-checkbox",11),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().userAsAuthor=r}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.YNc(20,MN,3,3,"perun-web-apps-alert",12),i.YNc(21,SN,1,6,"perun-web-apps-publications-list",13),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),i.xp6(2),i.Q6J("formControl",e.pubSystem),i.xp6(1),i.Q6J("ngForOf",e.publicationSystems),i.xp6(1),i.Q6J("startYear",e.startYear)("endYear",e.endYear),i.xp6(4),i.hij(" ",i.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),i.xp6(2),i.Q6J("ngModel",e.userAsAuthor),i.xp6(1),i.hij(" ",i.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),i.xp6(2),i.Q6J("ngIf",!e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function DN(n,a){1&n&&i._UZ(0,"mat-spinner",17)}function HN(n,a){1&n&&(i.TgZ(0,"i"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function kN(n,a){1&n&&(i.TgZ(0,"mat-icon",28),i._uU(1,"check_circle"),i.qZA())}function PN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(),l=r.$implicit,d=r.index;return i.oxw(2).completePublication(l.id,d)}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function RN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(2).incompletePublication(r.id)}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function LN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",22),i.TgZ(1,"mat-expansion-panel-header",23),i.NdJ("click",function(){const l=i.CHM(e).index;return i.oxw(2).editPublication(l)}),i.TgZ(2,"mat-panel-title"),i._uU(3),i.YNc(4,HN,3,3,"i",3),i.YNc(5,kN,2,0,"mat-icon",24),i.qZA(),i.qZA(),i._UZ(6,"perun-web-apps-publication-detail",25),i.TgZ(7,"div",26),i.YNc(8,PN,3,3,"button",20),i.YNc(9,RN,3,3,"button",27),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw(2);i.Q6J("expanded",r.indexExpanded===t),i.xp6(3),i.hij(" ",e.title," "),i.xp6(1),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("publicationId",e.id),i.xp6(2),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id))}}function IN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).completeAllPublications()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function ON(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",31),i.ALo(1,"translate"),i.TgZ(2,"button",32),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).onSubmit()}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),i.xp6(3),i.hij(" ",i.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function BN(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-alert",15),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-accordion"),i.YNc(5,LN,10,7,"mat-expansion-panel",18),i.qZA(),i.TgZ(6,"div",19),i.YNc(7,IN,3,3,"button",20),i.qZA(),i.YNc(8,ON,5,8,"div",21),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),i.xp6(3),i.Q6J("ngForOf",e.importedPublications),i.xp6(2),i.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),i.xp6(1),i.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const RD=Af,VN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},jN=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:rF},{path:"service-access",component:sF},{path:"all-publications",component:eO},{path:"my-publications",component:rO},{path:"create-publication",component:aO},{path:"create-publication/import",component:(()=>{class n{constructor(e,t,r,l,d,o){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=l,this.router=d,this.dialog=o,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Ei,this.publications=[],this.selected=new Ii(!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 Ei(RD().subtract(1,"year")),this.endYear=new Ei(RD()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem.setValue(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(e=>{this.publications=e,this.loading=!1},()=>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(l=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:l.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(l),this.importPublications(e)},()=>this.loading=!1):(this.importedPublications.push(l),this.importPublications(e))},()=>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=Zn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(xk,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(hn),i.Y36(Ln),i.Y36(Li),i.Y36(C),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-import-publications-page"]],features:[i._Bn([{provide:Ai,useClass:H_,deps:[vo]},{provide:yr,useValue:VN}])],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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,EN,22,20,"div",3),i.YNc(8,DN,1,0,"mat-spinner",4),i.YNc(9,BN,9,6,"div",3),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),i.xp6(2),i.Q6J("ngIf",!t.importDone),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.importDone))},directives:[Gi,T.O5,Wn,es,Uc,cr,_a,T.sg,xc,UE,Ft,Zc,Ml,Fs,wf,mn,YR,fE,mE,NR,P_,zc],pipes:[Ct],styles:[".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%}"]}),n})()},{path:"create-publication/create",component:TN},{path:"authors",component:kO},{path:"authors/:authorId",component:LB},{path:"authors/:authorId/publication/:publicationId",component:P_},{path:"all-publications/:publicationId",component:P_},{path:"my-publications/:publicationId",component:P_},{path:"categories",component:pB},{path:"publication-systems",component:HB}];let FN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Dd.forRoot(jN,{preloadingStrategy:Ci,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],Dd]}),n})();const NN={provide:w.TP,useExisting:(0,i.Gpc)(()=>ES),multi:!0};function YN(n){return new oR(n,"./assets/i18n/",".json")}function UN(n){const a={basePath:n.get("api_url")};return new Ge(a)}const zN=n=>()=>n.loadConfigs();let qN=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(SS),i.LFG(Li))},n.\u0275mod=i.oAB({type:n,bootstrap:[sR]}),n.\u0275inj=i.cJS({providers:[SS,{provide:i.ip1,useFactory:zN,multi:!0,deps:[dR]},{provide:Ge,useFactory:UN,deps:[hn]},ES,NN,{provide:uR,useClass:$H},$I],imports:[[xa,Dc.forRoot({loader:{provide:Ec,useFactory:YN,deps:[w.eN]}}),Iy,jE,hR,Ju,w.JF,FN,nM,HS,nF,YF,AS,Sc.zr.forRoot(),bD]]}),n})();(0,i.G48)(),Ta().bootstrapModule(qN).catch(n=>console.error(n))},1302:function(z,G,x){var T;!function(i,E){var M={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=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(te,ce,ne,de,me){for(var Ie,Be,Ze,It,kt,Ke,Xi,xt,mt,fe,_e,we,ye;me>=64;){for(Ie=ce[0],Be=ce[1],Ze=ce[2],It=ce[3],kt=ce[4],Ke=ce[5],Xi=ce[6],xt=ce[7],fe=0;fe<16;fe++)te[fe]=(255&ne[_e=de+4*fe])<<24|(255&ne[_e+1])<<16|(255&ne[_e+2])<<8|255&ne[_e+3];for(fe=16;fe<64;fe++)te[fe]=((we=((mt=te[fe-2])>>>17|mt<<15)^(mt>>>19|mt<<13)^mt>>>10)+te[fe-7]|0)+((ye=((mt=te[fe-15])>>>7|mt<<25)^(mt>>>18|mt<<14)^mt>>>3)+te[fe-16]|0);for(fe=0;fe<64;fe++)we=(((kt>>>6|kt<<26)^(kt>>>11|kt<<21)^(kt>>>25|kt<<7))+(kt&Ke^~kt&Xi)|0)+(xt+(E[fe]+te[fe]|0)|0)|0,ye=((Ie>>>2|Ie<<30)^(Ie>>>13|Ie<<19)^(Ie>>>22|Ie<<10))+(Ie&Be^Ie&Ze^Be&Ze)|0,xt=Xi,Xi=Ke,Ke=kt,kt=It+we|0,It=Ze,Ze=Be,Be=Ie,Ie=we+ye|0;ce[0]+=Ie,ce[1]+=Be,ce[2]+=Ze,ce[3]+=It,ce[4]+=kt,ce[5]+=Ke,ce[6]+=Xi,ce[7]+=xt,de+=64,me-=64}return de}var S=function(){function te(){this.digestLength=i.digestLength,this.blockSize=i.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 te.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},te.prototype.clean=function(){for(var ce=0;ce0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(de=M(this.temp,this.state,ce,de,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;return this},te.prototype.finish=function(ce){if(!this.finished){var ne=this.bytesHashed,de=this.bufferLength,me=ne/536870912|0,Ie=ne<<3,Be=ne%64<56?64:128;this.buffer[de]=128;for(var Ze=de+1;Ze>>24&255,this.buffer[Be-7]=me>>>16&255,this.buffer[Be-6]=me>>>8&255,this.buffer[Be-5]=me>>>0&255,this.buffer[Be-4]=Ie>>>24&255,this.buffer[Be-3]=Ie>>>16&255,this.buffer[Be-2]=Ie>>>8&255,this.buffer[Be-1]=Ie>>>0&255,M(this.temp,this.state,this.buffer,0,Be),this.finished=!0}for(Ze=0;Ze<8;Ze++)ce[4*Ze+0]=this.state[Ze]>>>24&255,ce[4*Ze+1]=this.state[Ze]>>>16&255,ce[4*Ze+2]=this.state[Ze]>>>8&255,ce[4*Ze+3]=this.state[Ze]>>>0&255;return this},te.prototype.digest=function(){var ce=new Uint8Array(this.digestLength);return this.finish(ce),ce},te.prototype._saveState=function(ce){for(var ne=0;nethis.blockSize)(new S).update(ce).finish(ne).clean();else for(var de=0;de1&&ce.update(te),ne&&ce.update(ne),ce.update(de),ce.finish(te),de[0]++}i.HMAC=P,i.hash=L,i.default=L,i.hmac=V;var Y=new Uint8Array(i.digestLength);i.hkdf=function $(te,ce,ne,de){void 0===ce&&(ce=Y),void 0===de&&(de=32);for(var me=new Uint8Array([1]),Ie=V(ce,te),Be=new P(Ie),Ze=new Uint8Array(Be.digestLength),It=Ze.length,kt=new Uint8Array(de),Ke=0;Ke>>24&255,Be[1]=Xi>>>16&255,Be[2]=Xi>>>8&255,Be[3]=Xi>>>0&255,me.reset(),me.update(ce),me.update(Be),me.finish(It);for(var xt=0;xt=$.status}function P(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch(X){var $=document.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent($)}}var L="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,V=L.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=L.saveAs||("object"!=typeof window||window!==L?function(){}:"download"in HTMLAnchorElement.prototype&&!V?function(Y,$,X){var te=L.URL||L.webkitURL,ce=document.createElement("a");ce.download=$=$||Y.name||"download",ce.rel="noopener","string"==typeof Y?(ce.href=Y,ce.origin===location.origin?P(ce):S(ce.href)?M(Y,$,X):P(ce,ce.target="_blank")):(ce.href=te.createObjectURL(Y),setTimeout(function(){te.revokeObjectURL(ce.href)},4e4),setTimeout(function(){P(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,$,X){if($=$||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function E(Y,$){return void 0===$?$={autoBom:!1}:"object"!=typeof $&&(console.warn("Deprecated: Expected third argument to be a object"),$={autoBom:!$}),$.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,X),$);else if(S(Y))M(Y,$,X);else{var te=document.createElement("a");te.href=Y,te.target="_blank",setTimeout(function(){P(te)})}}:function(Y,$,X,te){if((te=te||open("","_blank"))&&(te.document.title=te.document.body.innerText="downloading..."),"string"==typeof Y)return M(Y,$,X);var ce="application/octet-stream"===Y.type,ne=/constructor/i.test(L.HTMLElement)||L.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||ce&&ne||V)&&"undefined"!=typeof FileReader){var me=new FileReader;me.onloadend=function(){var Ze=me.result;Ze=de?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),te?te.location.href=Ze:location=Ze,te=null},me.readAsDataURL(Y)}else{var Ie=L.URL||L.webkitURL,Be=Ie.createObjectURL(Y);te?te.location=Be:location.href=Be,te=null,setTimeout(function(){Ie.revokeObjectURL(Be)},4e4)}});L.saveAs=U.saveAs=U,z.exports=U}.apply(G,[]))&&(z.exports=i)},7088:function(z,G,x){!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(E){return/^nm$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"vm":"VM":S?"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(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(z,G,x){!function(T){"use strict";var i=function(L){return 0===L?0:1===L?1:2===L?2:L%100>=3&&L%100<=10?3:L%100>=11?4:5},E={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"]},M=function(L){return function(V,U,Y,$){var X=i(V),te=E[L][i(V)];return 2===X&&(te=te[U?0:1]),te.replace(/%d/i,V)}},S=["\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:S,monthsShort:S,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(L){return"\u0645"===L},meridiem:function(L,V,U){return L<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:M("s"),ss:M("s"),m:M("m"),mm:M("m"),h:M("h"),hh:M("h"),d:M("d"),dd:M("d"),M:M("M"),MM:M("M"),y:M("y"),yy:M("y")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(z,G,x){!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}})}(x(5439))},4519:function(z,G,x){!function(T){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(V){return 0===V?0:1===V?1:2===V?2:V%100>=3&&V%100<=10?3:V%100>=11?4:5},M={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"]},S=function(V){return function(U,Y,$,X){var te=E(U),ce=M[V][E(U)];return 2===te&&(ce=ce[Y?0:1]),ce.replace(/%d/i,U)}},P=["\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:P,monthsShort:P,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(V){return"\u0645"===V},meridiem:function(V,U,Y){return V<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:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(V){return V.replace(/\u060c/g,",")},postformat:function(V){return V.replace(/\d/g,function(U){return i[U]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(z,G,x){!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}})}(x(5439))},7642:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\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(S){return"\u0645"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(z,G,x){!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}})}(x(5439))},7038:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=function(U){return 0===U?0:1===U?1:2===U?2:U%100>=3&&U%100<=10?3:U%100>=11?4:5},S={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"]},P=function(U){return function(Y,$,X,te){var ce=M(Y),ne=S[U][M(Y)];return 2===ce&&(ne=ne[$?0:1]),ne.replace(/%d/i,Y)}},L=["\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: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(U){return"\u0645"===U},meridiem:function(U,Y,$){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:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(U){return U.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(Y){return E[Y]}).replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(Y){return i[Y]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(z,G,x){!function(T){"use strict";var i={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(M){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(M)},meridiem:function(M,S,P){return M<4?"gec\u0259":M<12?"s\u0259h\u0259r":M<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(M){if(0===M)return M+"-\u0131nc\u0131";var S=M%10;return M+(i[S]||i[M%100-S]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(z,G,x){!function(T){"use strict";function E(S,P,L){return"m"===L?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===L?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var L=S.split("_");return P%10==1&&P%100!=11?L[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?L[1]:L[2]}({ss:P?"\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:P?"\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:P?"\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"}[L],+S)}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:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,P,L){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(z,G,x){!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(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(z,G,x){!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}})}(x(5439))},5903:function(z,G,x){!function(T){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\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(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},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(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P?S<4?S:S+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(z,G,x){!function(T){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\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(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(z,G,x){!function(T){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\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(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},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(S,P){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(z,G,x){!function(T){"use strict";function i(ne,de,me){return ne+" "+function S(ne,de){return 2===de?function P(ne){var de={m:"v",b:"v",d:"z"};return void 0===de[ne.charAt(0)]?ne:de[ne.charAt(0)]+ne.substring(1)}(ne):ne}({mm:"munutenn",MM:"miz",dd:"devezh"}[me],ne)}function M(ne){return ne>9?M(ne%10):ne}var L=[/^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],V=/^(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,te=[/^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:te,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:te,monthsRegex:V,monthsShortRegex:V,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:L,longMonthsParse:L,shortMonthsParse:L,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:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ne){switch(M(ne)){case 1:case 3:case 4:case 5:case 9:return ne+" bloaz";default:return ne+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ne){return ne+(1===ne?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ne){return"g.m."===ne},meridiem:function(ne,de,me){return ne<12?"a.m.":"g.m."}})}(x(5439))},4792:function(z,G,x){!function(T){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"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:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(z,G,x){!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(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(z,G,x){!function(T){"use strict";var i={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("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),M=[/^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],S=/^(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 P(U){return U>1&&U<5&&1!=~~(U/10)}function L(U,Y,$,X){var te=U+" ";switch($){case"s":return Y||X?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return Y||X?te+(P(U)?"sekundy":"sekund"):te+"sekundami";case"m":return Y?"minuta":X?"minutu":"minutou";case"mm":return Y||X?te+(P(U)?"minuty":"minut"):te+"minutami";case"h":return Y?"hodina":X?"hodinu":"hodinou";case"hh":return Y||X?te+(P(U)?"hodiny":"hodin"):te+"hodinami";case"d":return Y||X?"den":"dnem";case"dd":return Y||X?te+(P(U)?"dny":"dn\xed"):te+"dny";case"M":return Y||X?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return Y||X?te+(P(U)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):te+"m\u011bs\xedci";case"y":return Y||X?"rok":"rokem";case"yy":return Y||X?te+(P(U)?"roky":"let"):te+"lety"}}T.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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: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}})}(x(5439))},365:function(z,G,x){!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(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\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}})}(x(5439))},2092:function(z,G,x){!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(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(z,G,x){!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}})}(x(5439))},9459:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(z,G,x){!function(T){"use strict";var i=["\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"],E=["\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:i,monthsShort:i,weekdays:E,weekdaysShort:E,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(S){return"\u0789\u078a"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(z,G,x){!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(M,S){return M?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[M.month()]:this._monthsNominativeEl[M.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(M,S,P){return M>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(M){return"\u03bc"===(M+"").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(M,S){var P=this._calendarEl[M],L=S&&S.hours();return function i(M){return"undefined"!=typeof Function&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}(P)&&(P=P.apply(S)),P.replace("{}",L%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}})}(x(5439))},4369:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9998:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9615:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(z,G,x){!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(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,M,S){return E>11?S?"p.t.m.":"P.T.M.":S?"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}})}(x(5439))},8944:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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}})}(x(5439))},9116:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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"})}(x(5439))},3609:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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}})}(x(5439))},6866:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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"})}(x(5439))},6725:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[M+"sekundi",M+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[M+" minuti",M+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[M+" tunni",M+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[M+" kuu",M+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[M+" aasta",M+" aastat"]};return S?V[P][2]?V[P][2]:V[P][1]:L?V[P][0]:V[P][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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(z,G,x){!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}})}(x(5439))},6417:function(z,G,x){!function(T){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\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(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,P,L){return S<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(S){return S.replace(/[\u06f0-\u06f9]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(z,G,x){!function(T){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function M(L,V,U,Y){var $="";switch(U){case"s":return Y?"muutaman sekunnin":"muutama sekunti";case"ss":$=Y?"sekunnin":"sekuntia";break;case"m":return Y?"minuutin":"minuutti";case"mm":$=Y?"minuutin":"minuuttia";break;case"h":return Y?"tunnin":"tunti";case"hh":$=Y?"tunnin":"tuntia";break;case"d":return Y?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":$=Y?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return Y?"kuukauden":"kuukausi";case"MM":$=Y?"kuukauden":"kuukautta";break;case"y":return Y?"vuoden":"vuosi";case"yy":$=Y?"vuoden":"vuotta"}return function S(L,V){return L<10?V?E[L]:i[L]:L}(L,Y)+" "+$}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:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(z,G,x){!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(E){return E},week:{dow:1,doy:4}})}(x(5439))},5867:function(z,G,x){!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}})}(x(5439))},6848:function(z,G,x){!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(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(x(5439))},7773:function(z,G,x){!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(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(z,G,x){!function(T){"use strict";var M=/(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,S=[/^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:M,monthsShortRegex:M,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:S,longMonthsParse:S,shortMonthsParse:S,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(L,V){switch(V){case"D":return L+(1===L?"er":"");default:case"M":case"Q":case"DDD":case"d":return L+(1===L?"er":"e");case"w":case"W":return L+(1===L?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="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(S,P){return S?/-MMM-/.test(P)?E[S.month()]:i[S.month()]:i},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(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(z,G,x){!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(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(z,G,x){!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(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(z,G,x){!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(E){return 0===E.indexOf("un")?"n"+E:"en "+E},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}})}(x(5439))},2457:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={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:[M+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",M+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[M+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",M+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[M+" \u0935\u0930\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[M+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",M+" \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:[M+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",M+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[M+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return L?V[P][0]:V[P][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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(M,S){return"D"===S?M+"\u0935\u0947\u0930":M},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(M,S){return 12===M&&(M=0),"\u0930\u093e\u0924\u0940"===S?M<4?M:M+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?M:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?M>12?M:M+12:"\u0938\u093e\u0902\u091c\u0947"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0930\u093e\u0924\u0940":M<12?"\u0938\u0915\u093e\u0933\u0940\u0902":M<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":M<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["thoddea sekondamni","thodde sekond"],ss:[M+" sekondamni",M+" sekond"],m:["eka mintan","ek minut"],mm:[M+" mintamni",M+" mintam"],h:["eka voran","ek vor"],hh:[M+" voramni",M+" voram"],d:["eka disan","ek dis"],dd:[M+" disamni",M+" dis"],M:["eka mhoinean","ek mhoino"],MM:[M+" mhoineamni",M+" mhoine"],y:["eka vorsan","ek voros"],yy:[M+" vorsamni",M+" vorsam"]};return L?V[P][0]:V[P][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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(M,S){return"D"===S?M+"er":M},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(M,S){return 12===M&&(M=0),"rati"===S?M<4?M:M+12:"sokallim"===S?M:"donparam"===S?M>12?M:M+12:"sanje"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"rati":M<12?"sokallim":M<16?"donparam":M<20?"sanje":"rati"}})}(x(5439))},2641:function(z,G,x){!function(T){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\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(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===P?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?S:"\u0aac\u0aaa\u0acb\u0ab0"===P?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(z,G,x){!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(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \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(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,M,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},M=[/^\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:M,longMonthsParse:M,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(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(V){return E[V]})},postformat:function(L){return L.replace(/\d/g,function(V){return i[V]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(L,V){return 12===L&&(L=0),"\u0930\u093e\u0924"===V?L<4?L:L+12:"\u0938\u0941\u092c\u0939"===V?L:"\u0926\u094b\u092a\u0939\u0930"===V?L>=10?L:L+12:"\u0936\u093e\u092e"===V?L+12:void 0},meridiem:function(L,V,U){return L<4?"\u0930\u093e\u0924":L<10?"\u0938\u0941\u092c\u0939":L<17?"\u0926\u094b\u092a\u0939\u0930":L<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(z,G,x){!function(T){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"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:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(z,G,x){!function(T){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(P,L,V,U){var Y=P;switch(V){case"s":return U||L?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return Y+(U||L)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(U||L?" perc":" perce");case"mm":return Y+(U||L?" perc":" perce");case"h":return"egy"+(U||L?" \xf3ra":" \xf3r\xe1ja");case"hh":return Y+(U||L?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(U||L?" nap":" napja");case"dd":return Y+(U||L?" nap":" napja");case"M":return"egy"+(U||L?" h\xf3nap":" h\xf3napja");case"MM":return Y+(U||L?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(U||L?" \xe9v":" \xe9ve");case"yy":return Y+(U||L?" \xe9v":" \xe9ve")}return""}function M(P){return(P?"":"[m\xfalt] ")+"["+i[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(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,L,V){return P<12?!0===V?"de":"DE":!0===V?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return M.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return M.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3165:function(z,G,x){!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(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<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(E,M){switch(M){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(x(5439))},8780:function(z,G,x){!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(E,M){return 12===E&&(E=0),"pagi"===M?E:"siang"===M?E>=11?E:E+12:"sore"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"siang":E<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}})}(x(5439))},4205:function(z,G,x){!function(T){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,P,L,V){var U=S+" ";switch(L){case"s":return P||V?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?U+(P||V?"sek\xfandur":"sek\xfandum"):U+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?U+(P||V?"m\xedn\xfatur":"m\xedn\xfatum"):P?U+"m\xedn\xfata":U+"m\xedn\xfatu";case"hh":return i(S)?U+(P||V?"klukkustundir":"klukkustundum"):U+"klukkustund";case"d":return P?"dagur":V?"dag":"degi";case"dd":return i(S)?P?U+"dagar":U+(V?"daga":"d\xf6gum"):P?U+"dagur":U+(V?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":V?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?U+"m\xe1nu\xf0ir":U+(V?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?U+"m\xe1nu\xf0ur":U+(V?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||V?"\xe1r":"\xe1ri";case"yy":return i(S)?U+(P||V?"\xe1r":"\xe1rum"):U+(P||V?"\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:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(z,G,x){!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(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},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}})}(x(5439))},4211:function(z,G,x){!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}})}(x(5439))},1003:function(z,G,x){!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(E,M){return"\u5143"===M[1]?1:parseInt(M[1]||E,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(E){return"\u5348\u5f8c"===E},meridiem:function(E,M,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,M){switch(M){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},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"}})}(x(5439))},420:function(z,G,x){!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(E,M){return 12===E&&(E=0),"enjing"===M?E:"siyang"===M?E>=11?E:E+12:"sonten"===M||"ndalu"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"enjing":E<15?"siyang":E<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}})}(x(5439))},851:function(z,G,x){!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(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(M,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},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(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(z,G,x){!function(T){"use strict";var i={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(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(z,G,x){!function(T){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\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(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(z,G,x){!function(T){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\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(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},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(S,P){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(z,G,x){!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(E,M){switch(M){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,M,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=["\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:M,monthsShort:M,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(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,L,V){return P<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(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(z,G,x){!function(T){"use strict";var i={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(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(z,G,x){!function(T){"use strict";function i(L,V,U,Y){var $={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 V?$[U][0]:$[U][1]}function S(L){if(L=parseInt(L,10),isNaN(L))return!1;if(L<0)return!0;if(L<10)return 4<=L&&L<=7;if(L<100){var V=L%10;return S(0===V?L/10:V)}if(L<1e4){for(;L>=10;)L/=10;return S(L)}return S(L/=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 E(L){return S(L.substr(0,L.indexOf(" ")))?"a "+L:"an "+L},past:function M(L){return S(L.substr(0,L.indexOf(" ")))?"viru "+L:"virun "+L},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(z,G,x){!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(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,M,S){return E<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(E){return"\u0e97\u0eb5\u0ec8"+E}})}(x(5439))},2400:function(z,G,x){!function(T){"use strict";var i={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 M(U,Y,$,X){return Y?P($)[0]:X?P($)[1]:P($)[2]}function S(U){return U%10==0||U>10&&U<20}function P(U){return i[U].split("_")}function L(U,Y,$,X){var te=U+" ";return 1===U?te+M(0,Y,$[0],X):Y?te+(S(U)?P($)[1]:P($)[0]):X?te+P($)[1]:te+(S(U)?P($)[1]:P($)[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 E(U,Y,$,X){return Y?"kelios sekund\u0117s":X?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:L,m:M,mm:L,h:M,hh:L,d:M,dd:L,M,MM:L,y:M,yy:L},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(U){return U+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(z,G,x){!function(T){"use strict";var i={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 E(V,U,Y){return Y?U%10==1&&U%100!=11?V[2]:V[3]:U%10==1&&U%100!=11?V[0]:V[1]}function M(V,U,Y){return V+" "+E(i[Y],V,U)}function S(V,U,Y){return E(i[Y],V,U)}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 P(V,U){return U?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:M,m:S,mm:M,h:S,hh:M,d:S,dd:M,M:S,MM:M,y:S,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(z,G,x){!function(T){"use strict";var i={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(M,S){return 1===M?S[0]:M>=2&&M<=4?S[1]:S[2]},translate:function(M,S,P){var L=i.words[P];return 1===P.length?S?L[0]:L[1]:M+" "+i.correctGrammaticalCase(M,L)}};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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(z,G,x){!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}})}(x(5439))},5943:function(z,G,x){!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(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===M&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===M||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===M?E+12:E},meridiem:function(E,M,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){switch(P){case"s":return S?"\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 M+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return M+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return M+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return M+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return M+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return M+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return M}}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(M){return"\u04ae\u0425"===M},meridiem:function(M,S,P){return M<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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(M,S){switch(S){case"d":case"D":case"DDD":return M+" \u04e9\u0434\u04e9\u0440";default:return M}}})}(x(5439))},6184:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function M(P,L,V,U){var Y="";if(L)switch(V){case"s":Y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":Y="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":Y="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":Y="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":Y="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":Y="%d \u0924\u093e\u0938";break;case"d":Y="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":Y="%d \u0926\u093f\u0935\u0938";break;case"M":Y="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":Y="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":Y="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":Y="%d \u0935\u0930\u094d\u0937\u0947"}else switch(V){case"s":Y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":Y="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":Y="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":Y="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":Y="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":Y="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":Y="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":Y="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":Y="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":Y="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":Y="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":Y="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return Y.replace(/%d/i,P)}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:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return E[L]})},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]})},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(P,L){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===L||"\u0938\u0915\u093e\u0933\u0940"===L?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===L||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===L||"\u0930\u093e\u0924\u094d\u0930\u0940"===L?P>=12?P:P+12:void 0},meridiem:function(P,L,V){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(z,G,x){!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(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<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}})}(x(5439))},485:function(z,G,x){!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(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<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}})}(x(5439))},6681:function(z,G,x){!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}})}(x(5439))},2024:function(z,G,x){!function(T){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\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(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(z,G,x){!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}})}(x(5439))},8914:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\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(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===P?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===P?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===P?S+12:void 0},meridiem:function(S,P,L){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<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}})}(x(5439))},2272:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^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],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^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],S=/^(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(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,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:M,longMonthsParse:M,shortMonthsParse:M,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(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(z,G,x){!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}})}(x(5439))},2797:function(z,G,x){!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(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(z,G,x){!function(T){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\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(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===P?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===P?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(z,G,x){!function(T){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),M=[/^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 S(V){return V%10<5&&V%10>1&&~~(V/10)%10!=1}function P(V,U,Y){var $=V+" ";switch(Y){case"ss":return $+(S(V)?"sekundy":"sekund");case"m":return U?"minuta":"minut\u0119";case"mm":return $+(S(V)?"minuty":"minut");case"h":return U?"godzina":"godzin\u0119";case"hh":return $+(S(V)?"godziny":"godzin");case"ww":return $+(S(V)?"tygodnie":"tygodni");case"MM":return $+(S(V)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return $+(S(V)?"lata":"lat")}}T.defineLocale("pl",{months:function(V,U){return V?/D MMMM/.test(U)?E[V.month()]:i[V.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,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:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(z,G,x){!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"})}(x(5439))},4225:function(z,G,x){!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}})}(x(5439))},5128:function(z,G,x){!function(T){"use strict";function i(M,S,P){var V=" ";return(M%100>=20||M>=100&&M%100==0)&&(V=" de "),M+V+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}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:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(z,G,x){!function(T){"use strict";function E(P,L,V){return"m"===V?L?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,L){var V=P.split("_");return L%10==1&&L%100!=11?V[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?V[1]:V[2]}({ss:L?"\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:L?"\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"}[V],+P)}var M=[/^\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:M,longMonthsParse:M,shortMonthsParse:M,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(P){if(P.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(P){if(P.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:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,L,V){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,L){switch(L){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(x(5439))},2525:function(z,G,x){!function(T){"use strict";var i=["\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"],E=["\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:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,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(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(z,G,x){!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}})}(x(5439))},3123:function(z,G,x){!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(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,M,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},9635:function(z,G,x){!function(T){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function M(L){return L>1&&L<5}function S(L,V,U,Y){var $=L+" ";switch(U){case"s":return V||Y?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return V||Y?$+(M(L)?"sekundy":"sek\xfand"):$+"sekundami";case"m":return V?"min\xfata":Y?"min\xfatu":"min\xfatou";case"mm":return V||Y?$+(M(L)?"min\xfaty":"min\xfat"):$+"min\xfatami";case"h":return V?"hodina":Y?"hodinu":"hodinou";case"hh":return V||Y?$+(M(L)?"hodiny":"hod\xedn"):$+"hodinami";case"d":return V||Y?"de\u0148":"d\u0148om";case"dd":return V||Y?$+(M(L)?"dni":"dn\xed"):$+"d\u0148ami";case"M":return V||Y?"mesiac":"mesiacom";case"MM":return V||Y?$+(M(L)?"mesiace":"mesiacov"):$+"mesiacmi";case"y":return V||Y?"rok":"rokom";case"yy":return V||Y?$+(M(L)?"roky":"rokov"):$+"rokmi"}}T.defineLocale("sk",{months:i,monthsShort:E,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:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V=M+" ";switch(P){case"s":return S||L?"nekaj sekund":"nekaj sekundami";case"ss":return V+(1===M?S?"sekundo":"sekundi":2===M?S||L?"sekundi":"sekundah":M<5?S||L?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return V+(1===M?S?"minuta":"minuto":2===M?S||L?"minuti":"minutama":M<5?S||L?"minute":"minutami":S||L?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return V+(1===M?S?"ura":"uro":2===M?S||L?"uri":"urama":M<5?S||L?"ure":"urami":S||L?"ur":"urami");case"d":return S||L?"en dan":"enim dnem";case"dd":return V+(1===M?S||L?"dan":"dnem":2===M?S||L?"dni":"dnevoma":S||L?"dni":"dnevi");case"M":return S||L?"en mesec":"enim mesecem";case"MM":return V+(1===M?S||L?"mesec":"mesecem":2===M?S||L?"meseca":"mesecema":M<5?S||L?"mesece":"meseci":S||L?"mesecev":"meseci");case"y":return S||L?"eno leto":"enim letom";case"yy":return V+(1===M?S||L?"leto":"letom":2===M?S||L?"leti":"letoma":M<5?S||L?"leta":"leti":S||L?"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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(z,G,x){!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(E){return"M"===E.charAt(0)},meridiem:function(E,M,S){return E<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}})}(x(5439))},2872:function(z,G,x){!function(T){"use strict";var i={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(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var V=i.words[P];if(1===P.length)return"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":L||S?V[0]:V[1];const U=i.correctGrammaticalCase(M,V);return"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===U?M+" \u0433\u043e\u0434\u0438\u043d\u0430":M+" "+U}};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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(z,G,x){!function(T){"use strict";var i={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(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var V=i.words[P];if(1===P.length)return"y"===P&&S?"jedna godina":L||S?V[0]:V[1];const U=i.correctGrammaticalCase(M,V);return"yy"===P&&S&&"godinu"===U?M+" godina":M+" "+U}};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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(z,G,x){!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(E,M,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,M){return 12===E&&(E=0),"ekuseni"===M?E:"emini"===M?E>=11?E:E+12:"entsambama"===M||"ebusuku"===M?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?":e":1===M||2===M?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(z,G,x){!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}})}(x(5439))},2732:function(z,G,x){!function(T){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\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(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},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(S,P,L){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,P){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===M?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===M?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===M?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===M?E+12:void 0},meridiem:function(E,M,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(z,G,x){!function(T){"use strict";var i={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(M,S){return 12===M&&(M=0),"\u0448\u0430\u0431"===S?M<4?M:M+12:"\u0441\u0443\u0431\u04b3"===S?M:"\u0440\u04ef\u0437"===S?M>=11?M:M+12:"\u0431\u0435\u0433\u043e\u04b3"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0448\u0430\u0431":M<11?"\u0441\u0443\u0431\u04b3":M<16?"\u0440\u04ef\u0437":M<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},4486:function(z,G,x){!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(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,M,S){return E<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"}})}(x(5439))},1310:function(z,G,x){!function(T){"use strict";var i={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(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'unjy";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(z,G,x){!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(E){return E},week:{dow:1,doy:4}})}(x(5439))},6645:function(z,G,x){!function(T){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(V,U,Y,$){var X=function P(V){var U=Math.floor(V%1e3/100),Y=Math.floor(V%100/10),$=V%10,X="";return U>0&&(X+=i[U]+"vatlh"),Y>0&&(X+=(""!==X?" ":"")+i[Y]+"maH"),$>0&&(X+=(""!==X?" ":"")+i[$]),""===X?"pagh":X}(V);switch(Y){case"ss":return X+" lup";case"mm":return X+" tup";case"hh":return X+" rep";case"dd":return X+" jaj";case"MM":return X+" jar";case"yy":return X+" 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 E(V){var U=V;return-1!==V.indexOf("jaj")?U.slice(0,-3)+"leS":-1!==V.indexOf("jar")?U.slice(0,-3)+"waQ":-1!==V.indexOf("DIS")?U.slice(0,-3)+"nem":U+" pIq"},past:function M(V){var U=V;return-1!==V.indexOf("jaj")?U.slice(0,-3)+"Hu\u2019":-1!==V.indexOf("jar")?U.slice(0,-3)+"wen":-1!==V.indexOf("DIS")?U.slice(0,-3)+"ben":U+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(z,G,x){!function(T){"use strict";var i={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(M,S,P){return M<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(M){return"\xf6s"===M||"\xd6S"===M},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(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'\u0131nc\u0131";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(z,G,x){!function(T){"use strict";function E(M,S,P,L){var V={s:["viensas secunds","'iensas secunds"],ss:[M+" secunds",M+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[M+" m\xeduts",M+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[M+" \xfeoras",M+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[M+" ziuas",M+" ziuas"],M:["'n mes","'iens mes"],MM:[M+" mesen",M+" mesen"],y:["'n ar","'iens ar"],yy:[M+" ars",M+" ars"]};return L||S?V[P][0]:V[P][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(M){return"d'o"===M.toLowerCase()},meridiem:function(M,S,P){return M>11?P?"d'o":"D'O":P?"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:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(z,G,x){!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}})}(x(5439))},1595:function(z,G,x){!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}})}(x(5439))},6050:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===M||"\u0633\u06d5\u06be\u06d5\u0631"===M||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===M?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===M||"\u0643\u06d5\u0686"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<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(E,M){switch(M){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(z,G,x){!function(T){"use strict";function E(L,V,U){return"m"===U?V?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===U?V?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":L+" "+function i(L,V){var U=L.split("_");return V%10==1&&V%100!=11?U[0]:V%10>=2&&V%10<=4&&(V%100<10||V%100>=20)?U[1]:U[2]}({ss:V?"\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:V?"\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:V?"\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"}[U],+L)}function S(L){return function(){return L+"\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 M(L,V){var U={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===L?U.nominative.slice(1,7).concat(U.nominative.slice(0,1)):L?U[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(V)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(V)?"genitive":"nominative"][L.day()]:U.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:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\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:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(L)},meridiem:function(L,V,U){return L<4?"\u043d\u043e\u0447\u0456":L<12?"\u0440\u0430\u043d\u043a\u0443":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(L,V){switch(V){case"M":case"d":case"DDD":case"w":case"W":return L+"-\u0439";case"D":return L+"-\u0433\u043e";default:return L}},week:{dow:1,doy:7}})}(x(5439))},6077:function(z,G,x){!function(T){"use strict";var i=["\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"],E=["\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:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,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(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(z,G,x){!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}})}(x(5439))},2862:function(z,G,x){!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}})}(x(5439))},8093:function(z,G,x){!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(E){return/^ch$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"sa":"SA":S?"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(E){return E},week:{dow:1,doy:4}})}(x(5439))},5590:function(z,G,x){!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(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(z,G,x){!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}})}(x(5439))},7908:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},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}})}(x(5439))},8867:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<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(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},1133:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<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(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},3291:function(z,G,x){!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(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<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(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},5439:function(z,G,x){(z=x.nmd(z)).exports=function(){"use strict";var T,de;function i(){return T.apply(null,arguments)}function M(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function S(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function P(C,H){return Object.prototype.hasOwnProperty.call(C,H)}function L(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var H;for(H in C)if(P(C,H))return!1;return!0}function V(C){return void 0===C}function U(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function Y(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function $(C,H){var F,I=[],J=C.length;for(F=0;F>>0;for(F=0;F0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,H-F.length)).toString().substr(1)+F}var tt=/(\[[^\[]*\])|(\\)?([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,ht=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,On={},pi={};function $e(C,H,I,F){var J=F;"string"==typeof F&&(J=function(){return this[F]()}),C&&(pi[C]=J),H&&(pi[H[0]]=function(){return yi(J.apply(this,arguments),H[1],H[2])}),I&&(pi[I]=function(){return this.localeData().ordinal(J.apply(this,arguments),C)})}function ri(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function Cn(C,H){return C.isValid()?(H=Ni(H,C.localeData()),On[H]=On[H]||function va(C){var I,F,H=C.match(tt);for(I=0,F=H.length;I=0&&ht.test(C);)C=C.replace(ht,F),ht.lastIndex=0,I-=1;return C}var Bi={};function Zt(C,H){var I=C.toLowerCase();Bi[I]=Bi[I+"s"]=Bi[H]=C}function ln(C){return"string"==typeof C?Bi[C]||Bi[C.toLowerCase()]:void 0}function Te(C){var I,F,H={};for(F in C)P(C,F)&&(I=ln(F))&&(H[I]=C[F]);return H}var le={};function oe(C,H){le[C]=H}function Se(C){return C%4==0&&C%100!=0||C%400==0}function Ve(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function Ae(C){var H=+C,I=0;return 0!==H&&isFinite(H)&&(I=Ve(H)),I}function ze(C,H){return function(I){return null!=I?(Di(this,C,I),i.updateOffset(this,H),this):St(this,C)}}function St(C,H){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+H]():NaN}function Di(C,H,I){C.isValid()&&!isNaN(I)&&("FullYear"===H&&Se(C.year())&&1===C.month()&&29===C.date()?(I=Ae(I),C._d["set"+(C._isUTC?"UTC":"")+H](I,C.month(),wi(I,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+H](I))}var w,Hi=/\d/,nt=/\d\d/,qe=/\d{3}/,An=/\d{4}/,Vt=/[+-]?\d{6}/,_t=/\d\d?/,$n=/\d\d\d\d?/,Bn=/\d\d\d\d\d\d?/,vn=/\d{1,3}/,Nl=/\d{1,4}/,Ma=/[+-]?\d{1,6}/,Xr=/\d+/,ea=/[+-]?\d+/,Vn=/Z|[+-]\d\d:?\d\d/gi,rs=/Z|[+-]\d\d(?::?\d\d)?/gi,zs=/[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 Re(C,H,I){w[C]=_e(H)?H:function(F,J){return F&&I?I:H}}function oi(C,H){return P(w,C)?w[C](H._strict,H._locale):new RegExp(function Zi(C){return Ge(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,I,F,J,ae){return I||F||J||ae}))}(C))}function Ge(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}w={};var Jn={};function gt(C,H){var I,J,F=H;for("string"==typeof C&&(C=[C]),U(H)&&(F=function(ae,be){be[H]=Ae(ae)}),J=C.length,I=0;I68?1900:2e3)};var _n=ze("FullYear",!0);function Ro(C,H,I,F,J,ae,be){var et;return C<100&&C>=0?(et=new Date(C+400,H,I,F,J,ae,be),isFinite(et.getFullYear())&&et.setFullYear(C)):et=new Date(C,H,I,F,J,ae,be),et}function Ha(C){var H,I;return C<100&&C>=0?((I=Array.prototype.slice.call(arguments))[0]=C+400,H=new Date(Date.UTC.apply(null,I)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(C)):H=new Date(Date.UTC.apply(null,arguments)),H}function ia(C,H,I){var F=7+H-I;return-(7+Ha(C,0,F).getUTCDay()-H)%7+F-1}function Nn(C,H,I,F,J){var vt,Qt,et=1+7*(H-1)+(7+I-F)%7+ia(C,F,J);return et<=0?Qt=Da(vt=C-1)+et:et>Da(C)?(vt=C+1,Qt=et-Da(C)):(vt=C,Qt=et),{year:vt,dayOfYear:Qt}}function os(C,H,I){var ae,be,F=ia(C.year(),H,I),J=Math.floor((C.dayOfYear()-F-1)/7)+1;return J<1?ae=J+Sr(be=C.year()-1,H,I):J>Sr(C.year(),H,I)?(ae=J-Sr(C.year(),H,I),be=C.year()+1):(be=C.year(),ae=J),{week:ae,year:be}}function Sr(C,H,I){var F=ia(C,H,I),J=ia(C+1,H,I);return(Da(C)-F+J)/7}$e("w",["ww",2],"wo","week"),$e("W",["WW",2],"Wo","isoWeek"),Zt("week","w"),Zt("isoWeek","W"),oe("week",5),oe("isoWeek",5),Re("w",_t),Re("ww",_t,nt),Re("W",_t),Re("WW",_t,nt),Vi(["w","ww","W","WW"],function(C,H,I,F){H[F.substr(0,1)]=Ae(C)});function At(C,H){return C.slice(H,7).concat(C.slice(0,H))}$e("d",0,"do","day"),$e("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),$e("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),$e("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),$e("e",0,0,"weekday"),$e("E",0,0,"isoWeekday"),Zt("day","d"),Zt("weekday","e"),Zt("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Re("d",_t),Re("e",_t),Re("E",_t),Re("dd",function(C,H){return H.weekdaysMinRegex(C)}),Re("ddd",function(C,H){return H.weekdaysShortRegex(C)}),Re("dddd",function(C,H){return H.weekdaysRegex(C)}),Vi(["dd","ddd","dddd"],function(C,H,I,F){var J=I._locale.weekdaysParse(C,F,I._strict);null!=J?H.d=J:ne(I).invalidWeekday=C}),Vi(["d","e","E"],function(C,H,I,F){H[F]=Ae(C)});var na="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ne=zs,Ee=zs,ed=zs;function td(C,H,I){var F,J,ae,be=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],F=0;F<7;++F)ae=te([2e3,1]).day(F),this._minWeekdaysParse[F]=this.weekdaysMin(ae,"").toLocaleLowerCase(),this._shortWeekdaysParse[F]=this.weekdaysShort(ae,"").toLocaleLowerCase(),this._weekdaysParse[F]=this.weekdays(ae,"").toLocaleLowerCase();return I?"dddd"===H?-1!==(J=Jt.call(this._weekdaysParse,be))?J:null:"ddd"===H?-1!==(J=Jt.call(this._shortWeekdaysParse,be))?J:null:-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:"dddd"===H?-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._shortWeekdaysParse,be))||-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:"ddd"===H?-1!==(J=Jt.call(this._shortWeekdaysParse,be))||-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:-1!==(J=Jt.call(this._minWeekdaysParse,be))||-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._shortWeekdaysParse,be))?J:null}function nn(){function C(Ci,Br){return Br.length-Ci.length}var ae,be,et,vt,Qt,H=[],I=[],F=[],J=[];for(ae=0;ae<7;ae++)be=te([2e3,1]).day(ae),et=Ge(this.weekdaysMin(be,"")),vt=Ge(this.weekdaysShort(be,"")),Qt=Ge(this.weekdays(be,"")),H.push(et),I.push(vt),F.push(Qt),J.push(et),J.push(vt),J.push(Qt);H.sort(C),I.sort(C),F.sort(C),J.sort(C),this._weekdaysRegex=new RegExp("^("+J.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+F.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function jt(){return this.hours()%12||12}function Wt(C,H){$e(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Yn(C,H){return H._meridiemParse}$e("H",["HH",2],0,"hour"),$e("h",["hh",2],0,jt),$e("k",["kk",2],0,function ls(){return this.hours()||24}),$e("hmm",0,0,function(){return""+jt.apply(this)+yi(this.minutes(),2)}),$e("hmmss",0,0,function(){return""+jt.apply(this)+yi(this.minutes(),2)+yi(this.seconds(),2)}),$e("Hmm",0,0,function(){return""+this.hours()+yi(this.minutes(),2)}),$e("Hmmss",0,0,function(){return""+this.hours()+yi(this.minutes(),2)+yi(this.seconds(),2)}),Wt("a",!0),Wt("A",!1),Zt("hour","h"),oe("hour",13),Re("a",Yn),Re("A",Yn),Re("H",_t),Re("h",_t),Re("k",_t),Re("HH",_t,nt),Re("hh",_t,nt),Re("kk",_t,nt),Re("hmm",$n),Re("hmmss",Bn),Re("Hmm",$n),Re("Hmmss",Bn),gt(["H","HH"],3),gt(["k","kk"],function(C,H,I){var F=Ae(C);H[3]=24===F?0:F}),gt(["a","A"],function(C,H,I){I._isPm=I._locale.isPM(C),I._meridiem=C}),gt(["h","hh"],function(C,H,I){H[3]=Ae(C),ne(I).bigHour=!0}),gt("hmm",function(C,H,I){var F=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F)),ne(I).bigHour=!0}),gt("hmmss",function(C,H,I){var F=C.length-4,J=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F,2)),H[5]=Ae(C.substr(J)),ne(I).bigHour=!0}),gt("Hmm",function(C,H,I){var F=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F))}),gt("Hmmss",function(C,H,I){var F=C.length-4,J=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F,2)),H[5]=Ae(C.substr(J))});var ql=ze("Hours",!0);var aa,Er={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:dr,monthsShort:ti,week:{dow:0,doy:6},weekdays:na,weekdaysMin:dn,weekdaysShort:zt,meridiemParse:/[ap]\.?m?\.?/i},ci={},ra={};function Gl(C,H){var I,F=Math.min(C.length,H.length);for(I=0;I0;){if(J=B(ae.slice(0,I).join("-")))return J;if(F&&F.length>=I&&Gl(ae,F)>=I-1)break;I--}H++}return aa}(C)}function ve(C){var H,I=C._a;return I&&-2===ne(C).overflow&&(H=I[1]<0||I[1]>11?1:I[2]<1||I[2]>wi(I[0],I[1])?2:I[3]<0||I[3]>24||24===I[3]&&(0!==I[4]||0!==I[5]||0!==I[6])?3:I[4]<0||I[4]>59?4:I[5]<0||I[5]>59?5:I[6]<0||I[6]>999?6:-1,ne(C)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ne(C)._overflowWeeks&&-1===H&&(H=7),ne(C)._overflowWeekday&&-1===H&&(H=8),ne(C).overflow=H),C}var Qe=/^\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)?)?$/,Xt=/^\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)?)?$/,Rt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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]],wt=[["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/]],Pi=/^\/?Date\((-?\d+)/i,di=/^(?:(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}))$/,mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function sa(C){var H,I,ae,be,et,vt,F=C._i,J=Qe.exec(F)||Xt.exec(F),Qt=yt.length,Ci=wt.length;if(J){for(ne(C).iso=!0,H=0,I=Qt;H7)&&(vt=!0)):(ae=C._locale._week.dow,be=C._locale._week.doy,Qt=os(ai(),ae,be),I=Js(H.gg,C._a[0],Qt.year),F=Js(H.w,Qt.week),null!=H.d?((J=H.d)<0||J>6)&&(vt=!0):null!=H.e?(J=H.e+ae,(H.e<0||H.e>6)&&(vt=!0)):J=ae),F<1||F>Sr(I,ae,be)?ne(C)._overflowWeeks=!0:null!=vt?ne(C)._overflowWeekday=!0:(et=Nn(I,F,J,ae,be),C._a[0]=et.year,C._dayOfYear=et.dayOfYear)}(C),null!=C._dayOfYear&&(be=Js(C._a[0],J[0]),(C._dayOfYear>Da(be)||0===C._dayOfYear)&&(ne(C)._overflowDayOfYear=!0),I=Ha(be,0,C._dayOfYear),C._a[1]=I.getUTCMonth(),C._a[2]=I.getUTCDate()),H=0;H<3&&null==C._a[H];++H)C._a[H]=F[H]=J[H];for(;H<7;H++)C._a[H]=F[H]=null==C._a[H]?2===H?1:0:C._a[H];24===C._a[3]&&0===C._a[4]&&0===C._a[5]&&0===C._a[6]&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?Ha:Ro).apply(null,F),ae=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&void 0!==C._w.d&&C._w.d!==ae&&(ne(C).weekdayMismatch=!0)}}function Wl(C){if(C._f!==i.ISO_8601)if(C._f!==i.RFC_2822){C._a=[],ne(C).empty=!0;var I,F,J,ae,be,Qt,Ci,H=""+C._i,et=H.length,vt=0;for(Ci=(J=Ni(C._f,C._locale).match(tt)||[]).length,I=0;I0&&ne(C).unusedInput.push(be),H=H.slice(H.indexOf(F)+F.length),vt+=F.length),pi[ae]?(F?ne(C).empty=!1:ne(C).unusedTokens.push(ae),li(ae,F,C)):C._strict&&!F&&ne(C).unusedTokens.push(ae);ne(C).charsLeftOver=et-vt,H.length>0&&ne(C).unusedInput.push(H),C._a[3]<=12&&!0===ne(C).bigHour&&C._a[3]>0&&(ne(C).bigHour=void 0),ne(C).parsedDateParts=C._a.slice(0),ne(C).meridiem=C._meridiem,C._a[3]=function gi(C,H,I){var F;return null==I?H:null!=C.meridiemHour?C.meridiemHour(H,I):(null!=C.isPM&&((F=C.isPM(I))&&H<12&&(H+=12),!F&&12===H&&(H=0)),H)}(C._locale,C._a[3],C._meridiem),null!==(Qt=ne(C).era)&&(C._a[0]=C._locale.erasConvertYear(Qt,C._a[0])),Me(C),ve(C)}else Io(C);else sa(C)}function Zl(C){var H=C._i,I=C._f;return C._locale=C._locale||re(C._l),null===H||void 0===I&&""===H?Ie({nullInput:!0}):("string"==typeof H&&(C._i=H=C._locale.preparse(H)),Ke(H)?new kt(ve(H)):(Y(H)?C._d=H:M(I)?function id(C){var H,I,F,J,ae,be,et=!1,vt=C._f.length;if(0===vt)return ne(C).invalidFormat=!0,void(C._d=new Date(NaN));for(J=0;Jthis?this:C:Ie()});function bn(C,H){var I,F;if(1===H.length&&M(H[0])&&(H=H[0]),!H.length)return ai();for(I=H[0],F=1;F=0?new Date(C+400,H,I)-ws:new Date(C,H,I).valueOf()}function fd(C,H,I){return C<100&&C>=0?Date.UTC(C+400,H,I)-ws:Date.UTC(C,H,I)}function oo(C,H){return H.erasAbbrRegex(C)}function hh(){var J,ae,C=[],H=[],I=[],F=[],be=this.eras();for(J=0,ae=be.length;J(ae=Sr(C,F,J))&&(H=ae),Nf.call(this,C,H,I,F,J))}function Nf(C,H,I,F,J){var ae=Nn(C,H,I,F,J),be=Ha(ae.year,0,ae.dayOfYear);return this.year(be.getUTCFullYear()),this.month(be.getUTCMonth()),this.date(be.getUTCDate()),this}$e("N",0,0,"eraAbbr"),$e("NN",0,0,"eraAbbr"),$e("NNN",0,0,"eraAbbr"),$e("NNNN",0,0,"eraName"),$e("NNNNN",0,0,"eraNarrow"),$e("y",["y",1],"yo","eraYear"),$e("y",["yy",2],0,"eraYear"),$e("y",["yyy",3],0,"eraYear"),$e("y",["yyyy",4],0,"eraYear"),Re("N",oo),Re("NN",oo),Re("NNN",oo),Re("NNNN",function F_(C,H){return H.erasNameRegex(C)}),Re("NNNNN",function Bf(C,H){return H.erasNarrowRegex(C)}),gt(["N","NN","NNN","NNNN","NNNNN"],function(C,H,I,F){var J=I._locale.erasParse(C,F,I._strict);J?ne(I).era=J:ne(I).invalidEra=C}),Re("y",Xr),Re("yy",Xr),Re("yyy",Xr),Re("yyyy",Xr),Re("yo",function Vf(C,H){return H._eraYearOrdinalRegex||Xr}),gt(["y","yy","yyy","yyyy"],0),gt(["yo"],function(C,H,I,F){var J;I._locale._eraYearOrdinalRegex&&(J=C.match(I._locale._eraYearOrdinalRegex)),H[0]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(C,J):parseInt(C,10)}),$e(0,["gg",2],0,function(){return this.weekYear()%100}),$e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yd("gggg","weekYear"),yd("ggggg","weekYear"),yd("GGGG","isoWeekYear"),yd("GGGGG","isoWeekYear"),Zt("weekYear","gg"),Zt("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Re("G",ea),Re("g",ea),Re("GG",_t,nt),Re("gg",_t,nt),Re("GGGG",Nl,An),Re("gggg",Nl,An),Re("GGGGG",Ma,Vt),Re("ggggg",Ma,Vt),Vi(["gggg","ggggg","GGGG","GGGGG"],function(C,H,I,F){H[F.substr(0,2)]=Ae(C)}),Vi(["gg","GG"],function(C,H,I,F){H[F]=i.parseTwoDigitYear(C)}),$e("Q",0,"Qo","quarter"),Zt("quarter","Q"),oe("quarter",7),Re("Q",Hi),gt("Q",function(C,H){H[1]=3*(Ae(C)-1)}),$e("D",["DD",2],"Do","date"),Zt("date","D"),oe("date",9),Re("D",_t),Re("DD",_t,nt),Re("Do",function(C,H){return C?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),gt(["D","DD"],2),gt("Do",function(C,H){H[2]=Ae(C.match(_t)[0])});var mr=ze("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear"),Zt("dayOfYear","DDD"),oe("dayOfYear",4),Re("DDD",vn),Re("DDDD",qe),gt(["DDD","DDDD"],function(C,H,I){I._dayOfYear=Ae(C)}),$e("m",["mm",2],0,"minute"),Zt("minute","m"),oe("minute",14),Re("m",_t),Re("mm",_t,nt),gt(["m","mm"],4);var Go=ze("Minutes",!1);$e("s",["ss",2],0,"second"),Zt("second","s"),oe("second",15),Re("s",_t),Re("ss",_t,nt),gt(["s","ss"],5);var qn,wd,co=ze("Seconds",!1);for($e("S",0,0,function(){return~~(this.millisecond()/100)}),$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$e(0,["SSS",3],0,"millisecond"),$e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Zt("millisecond","ms"),oe("millisecond",16),Re("S",vn,Hi),Re("SS",vn,nt),Re("SSS",vn,qe),qn="SSSS";qn.length<=9;qn+="S")Re(qn,Xr);function nc(C,H){H[6]=Ae(1e3*("0."+C))}for(qn="S";qn.length<=9;qn+="S")gt(qn,nc);wd=ze("Milliseconds",!1),$e("z",0,0,"zoneAbbr"),$e("zz",0,0,"zoneName");var Pe=kt.prototype;function Cs(C){return C}Pe.add=nh,Pe.calendar=function eo(C,H){1===arguments.length&&(arguments[0]?Yo(arguments[0])?(C=arguments[0],H=void 0):fs(arguments[0])&&(H=arguments[0],C=void 0):(C=void 0,H=void 0));var I=C||ai(),F=kr(I,this).startOf("day"),J=i.calendarFormat(this,F)||"sameElse",ae=H&&(_e(H[J])?H[J].call(this,I):H[J]);return this.format(ae||this.localeData().calendar(J,this,ai(I)))},Pe.clone=function ah(){return new kt(this)},Pe.diff=function dd(C,H,I){var F,J,ae;if(!this.isValid())return NaN;if(!(F=kr(C,this)).isValid())return NaN;switch(J=6e4*(F.utcOffset()-this.utcOffset()),H=ln(H)){case"year":ae=gs(this,F)/12;break;case"month":ae=gs(this,F);break;case"quarter":ae=gs(this,F)/3;break;case"second":ae=(this-F)/1e3;break;case"minute":ae=(this-F)/6e4;break;case"hour":ae=(this-F)/36e5;break;case"day":ae=(this-F-J)/864e5;break;case"week":ae=(this-F-J)/6048e5;break;default:ae=this-F}return I?ae:Ve(ae)},Pe.endOf=function zo(C){var H,I;if(void 0===(C=ln(C))||"millisecond"===C||!this.isValid())return this;switch(I=this._isUTC?fd:pd,C){case"year":H=I(this.year()+1,0,1)-1;break;case"quarter":H=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=I(this.year(),this.month()+1,1)-1;break;case"week":H=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=ys-io(H+(this._isUTC?0:this.utcOffset()*ca),ys)-1;break;case"minute":H=this._d.valueOf(),H+=ca-io(H,ca)-1;break;case"second":H=this._d.valueOf(),H+=1e3-io(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Pe.format=function hd(C){C||(C=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Cn(this,C);return this.localeData().postformat(H)},Pe.from=function Ia(C,H){return this.isValid()&&(Ke(C)&&C.isValid()||ai(C).isValid())?Xn({to:this,from:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Pe.fromNow=function j_(C){return this.from(ai(),C)},Pe.to=function sh(C,H){return this.isValid()&&(Ke(C)&&C.isValid()||ai(C).isValid())?Xn({from:this,to:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Pe.toNow=function oh(C){return this.to(ai(),C)},Pe.get=function Pt(C){return _e(this[C=ln(C)])?this[C]():this},Pe.invalidAt=function tc(){return ne(this).overflow},Pe.isAfter=function Lf(C,H){var I=Ke(C)?C:ai(C);return!(!this.isValid()||!I.isValid())&&("millisecond"===(H=ln(H)||"millisecond")?this.valueOf()>I.valueOf():I.valueOf()9999?Cn(I,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_e(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Cn(I,"Z")):Cn(I,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Pe.inspect=function La(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,F,C="moment",H="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),I="["+C+'("]',F=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+F+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Pe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Pe.toJSON=function ch(){return this.isValid()?this.toISOString():null},Pe.toString=function _s(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Pe.unix=function gd(){return Math.floor(this.valueOf()/1e3)},Pe.valueOf=function If(){return this._d.valueOf()-6e4*(this._offset||0)},Pe.creationData=function Pr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Pe.eraName=function so(){var C,H,I,F=this.localeData().eras();for(C=0,H=F.length;Cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Pe.isLocal=function hi(){return!!this.isValid()&&!this._isUTC},Pe.isUtcOffset=function th(){return!!this.isValid()&&this._isUTC},Pe.isUtc=Ql,Pe.isUTC=Ql,Pe.zoneAbbr=function Yf(){return this._isUTC?"UTC":""},Pe.zoneName=function N_(){return this._isUTC?"Coordinated Universal Time":""},Pe.dates=xt("dates accessor is deprecated. Use date instead.",mr),Pe.months=xt("months accessor is deprecated. Use month instead",Ea),Pe.years=xt("years accessor is deprecated. Use year instead",_n),Pe.zone=xt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function eh(C,H){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,H),this):-this.utcOffset()}),Pe.isDSTShifted=xt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function oa(){if(!V(this._isDSTShifted))return this._isDSTShifted;var H,C={};return It(C,this),(C=Zl(C))._a?(H=C._isUTC?te(C._a):ai(C._a),this._isDSTShifted=this.isValid()&&function ad(C,H,I){var be,F=Math.min(C.length,H.length),J=Math.abs(C.length-H.length),ae=0;for(be=0;be0):this._isDSTShifted=!1,this._isDSTShifted});var Yt=ke.prototype;function Wo(C,H,I,F){var J=re(),ae=te().set(F,H);return J[I](ae,C)}function Ad(C,H,I){if(U(C)&&(H=C,C=void 0),C=C||"",null!=H)return Wo(C,H,I,"month");var F,J=[];for(F=0;F<12;F++)J[F]=Wo(C,F,I,"month");return J}function uo(C,H,I,F){"boolean"==typeof C?(U(H)&&(I=H,H=void 0),H=H||""):(I=H=C,C=!1,U(H)&&(I=H,H=void 0),H=H||"");var be,J=re(),ae=C?J._week.dow:0,et=[];if(null!=I)return Wo(H,(I+ae)%7,F,"day");for(be=0;be<7;be++)et[be]=Wo(H,(be+ae)%7,F,"day");return et}Yt.calendar=function Gt(C,H,I){var F=this._calendar[C]||this._calendar.sameElse;return _e(F)?F.call(H,I):F},Yt.longDateFormat=function Ns(C){var H=this._longDateFormat[C],I=this._longDateFormat[C.toUpperCase()];return H||!I?H:(this._longDateFormat[C]=I.match(tt).map(function(F){return"MMMM"===F||"MM"===F||"DD"===F||"dddd"===F?F.slice(1):F}).join(""),this._longDateFormat[C])},Yt.invalidDate=function Us(){return this._invalidDate},Yt.ordinal=function xa(C){return this._ordinal.replace("%d",C)},Yt.preparse=Cs,Yt.postformat=Cs,Yt.relativeTime=function pt(C,H,I,F){var J=this._relativeTime[I];return _e(J)?J(C,H,I,F):J.replace(/%d/i,C)},Yt.pastFuture=function ko(C,H){var I=this._relativeTime[C>0?"future":"past"];return _e(I)?I(H):I.replace(/%s/i,H)},Yt.set=function we(C){var H,I;for(I in C)P(C,I)&&(_e(H=C[I])?this[I]=H:this["_"+I]=H);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Yt.eras=function _d(C,H){var I,F,J,ae=this._eras||re("en")._eras;for(I=0,F=ae.length;I=0)return ae[F]},Yt.erasConvertYear=function ao(C,H){var I=C.since<=C.until?1:-1;return void 0===H?i(C.since).year():i(C.since).year()+(H-C.offset)*I},Yt.erasAbbrRegex=function Of(C){return P(this,"_erasAbbrRegex")||hh.call(this),C?this._erasAbbrRegex:this._erasRegex},Yt.erasNameRegex=function ic(C){return P(this,"_erasNameRegex")||hh.call(this),C?this._erasNameRegex:this._erasRegex},Yt.erasNarrowRegex=function si(C){return P(this,"_erasNarrowRegex")||hh.call(this),C?this._erasNarrowRegex:this._erasRegex},Yt.months=function Po(C,H){return C?M(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||ta).test(H)?"format":"standalone"][C.month()]:M(this._months)?this._months:this._months.standalone},Yt.monthsShort=function Sa(C,H){return C?M(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[ta.test(H)?"format":"standalone"][C.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Yt.monthsParse=function ss(C,H,I){var F,J,ae;if(this._monthsParseExact)return Yl.call(this,C,H,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),F=0;F<12;F++){if(J=te([2e3,F]),I&&!this._longMonthsParse[F]&&(this._longMonthsParse[F]=new RegExp("^"+this.months(J,"").replace(".","")+"$","i"),this._shortMonthsParse[F]=new RegExp("^"+this.monthsShort(J,"").replace(".","")+"$","i")),!I&&!this._monthsParse[F]&&(ae="^"+this.months(J,"")+"|^"+this.monthsShort(J,""),this._monthsParse[F]=new RegExp(ae.replace(".",""),"i")),I&&"MMMM"===H&&this._longMonthsParse[F].test(C))return F;if(I&&"MMM"===H&&this._shortMonthsParse[F].test(C))return F;if(!I&&this._monthsParse[F].test(C))return F}},Yt.monthsRegex=function ii(C){return this._monthsParseExact?(P(this,"_monthsRegex")||Ul.call(this),C?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=bt),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},Yt.monthsShortRegex=function jn(C){return this._monthsParseExact?(P(this,"_monthsRegex")||Ul.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=Mr),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},Yt.week=function Tf(C){return os(C,this._week.dow,this._week.doy).week},Yt.firstDayOfYear=function Mf(){return this._week.doy},Yt.firstDayOfWeek=function xf(){return this._week.dow},Yt.weekdays=function $i(C,H){var I=M(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===C?At(I,this._week.dow):C?I[C.day()]:I},Yt.weekdaysMin=function ki(C){return!0===C?At(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},Yt.weekdaysShort=function ka(C){return!0===C?At(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},Yt.weekdaysParse=function Gs(C,H,I){var F,J,ae;if(this._weekdaysParseExact)return td.call(this,C,H,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),F=0;F<7;F++){if(J=te([2e3,1]).day(F),I&&!this._fullWeekdaysParse[F]&&(this._fullWeekdaysParse[F]=new RegExp("^"+this.weekdays(J,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[F]=new RegExp("^"+this.weekdaysShort(J,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[F]=new RegExp("^"+this.weekdaysMin(J,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[F]||(ae="^"+this.weekdays(J,"")+"|^"+this.weekdaysShort(J,"")+"|^"+this.weekdaysMin(J,""),this._weekdaysParse[F]=new RegExp(ae.replace(".",""),"i")),I&&"dddd"===H&&this._fullWeekdaysParse[F].test(C))return F;if(I&&"ddd"===H&&this._shortWeekdaysParse[F].test(C))return F;if(I&&"dd"===H&&this._minWeekdaysParse[F].test(C))return F;if(!I&&this._weekdaysParse[F].test(C))return F}},Yt.weekdaysRegex=function Kn(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nn.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Ne),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},Yt.weekdaysShortRegex=function Ws(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nn.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ee),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Yt.weekdaysMinRegex=function dt(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nn.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ed),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Yt.isPM=function zl(C){return"p"===(C+"").toLowerCase().charAt(0)},Yt.meridiem=function Un(C,H,I){return C>11?I?"pm":"PM":I?"am":"AM"},W("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(C){var H=C%10;return C+(1===Ae(C%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=xt("moment.lang is deprecated. Use moment.locale instead.",W),i.langData=xt("moment.langData is deprecated. Use moment.localeData instead.",re);var ir=Math.abs;function Lr(C,H,I,F){var J=Xn(H,I);return C._milliseconds+=F*J._milliseconds,C._days+=F*J._days,C._months+=F*J._months,C._bubble()}function mh(C){return C<0?Math.floor(C):Math.ceil(C)}function gh(C){return 4800*C/146097}function sc(C){return 146097*C/4800}function Ir(C){return function(){return this.as(C)}}var _h=Ir("ms"),Ji=Ir("s"),bh=Ir("m"),Wf=Ir("h"),Td=Ir("d"),$o=Ir("w"),yh=Ir("M"),U_=Ir("Q"),wh=Ir("y");function da(C){return function(){return this.isValid()?this._data[C]:NaN}}var po=da("milliseconds"),Zf=da("seconds"),Ch=da("minutes"),xd=da("hours"),Jo=da("days"),Ah=da("months"),Md=da("years");var Mn=Math.round,Or={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Sd(C,H,I,F,J){return J.relativeTime(H||1,!!I,C,F)}var Ed=Math.abs;function vs(C){return(C>0)-(C<0)||+C}function oc(){if(!this.isValid())return this.localeData().invalidDate();var F,J,ae,be,vt,Qt,Ci,Br,C=Ed(this._milliseconds)/1e3,H=Ed(this._days),I=Ed(this._months),et=this.asSeconds();return et?(F=Ve(C/60),J=Ve(F/60),C%=60,F%=60,ae=Ve(I/12),I%=12,be=C?C.toFixed(3).replace(/\.?0+$/,""):"",vt=et<0?"-":"",Qt=vs(this._months)!==vs(et)?"-":"",Ci=vs(this._days)!==vs(et)?"-":"",Br=vs(this._milliseconds)!==vs(et)?"-":"",vt+"P"+(ae?Qt+ae+"Y":"")+(I?Qt+I+"M":"")+(H?Ci+H+"D":"")+(J||F||C?"T":"")+(J?Br+J+"H":"")+(F?Br+F+"M":"")+(C?Br+be+"S":"")):"P0D"}var Ot=Vo.prototype;return Ot.isValid=function rd(){return this._isValid},Ot.abs=function Y_(){var C=this._data;return this._milliseconds=ir(this._milliseconds),this._days=ir(this._days),this._months=ir(this._months),C.milliseconds=ir(C.milliseconds),C.seconds=ir(C.seconds),C.minutes=ir(C.minutes),C.hours=ir(C.hours),C.months=ir(C.months),C.years=ir(C.years),this},Ot.add=function vd(C,H){return Lr(this,C,H,1)},Ot.subtract=function ac(C,H){return Lr(this,C,H,-1)},Ot.as=function Gf(C){if(!this.isValid())return NaN;var H,I,F=this._milliseconds;if("month"===(C=ln(C))||"quarter"===C||"year"===C)switch(H=this._days+F/864e5,I=this._months+gh(H),C){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(H=this._days+Math.round(sc(this._months)),C){case"week":return H/7+F/6048e5;case"day":return H+F/864e5;case"hour":return 24*H+F/36e5;case"minute":return 1440*H+F/6e4;case"second":return 86400*H+F/1e3;case"millisecond":return Math.floor(864e5*H)+F;default:throw new Error("Unknown unit "+C)}},Ot.asMilliseconds=_h,Ot.asSeconds=Ji,Ot.asMinutes=bh,Ot.asHours=Wf,Ot.asDays=Td,Ot.asWeeks=$o,Ot.asMonths=yh,Ot.asQuarters=U_,Ot.asYears=wh,Ot.valueOf=function Zo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Ae(this._months/12):NaN},Ot._bubble=function qf(){var J,ae,be,et,vt,C=this._milliseconds,H=this._days,I=this._months,F=this._data;return C>=0&&H>=0&&I>=0||C<=0&&H<=0&&I<=0||(C+=864e5*mh(sc(I)+H),H=0,I=0),F.milliseconds=C%1e3,J=Ve(C/1e3),F.seconds=J%60,ae=Ve(J/60),F.minutes=ae%60,be=Ve(ae/60),F.hours=be%24,H+=Ve(be/24),I+=vt=Ve(gh(H)),H-=mh(sc(vt)),et=Ve(I/12),I%=12,F.days=H,F.months=I,F.years=et,this},Ot.clone=function ho(){return Xn(this)},Ot.get=function Va(C){return C=ln(C),this.isValid()?this[C+"s"]():NaN},Ot.milliseconds=po,Ot.seconds=Zf,Ot.minutes=Ch,Ot.hours=xd,Ot.days=Jo,Ot.weeks=function $f(){return Ve(this.days()/7)},Ot.months=Ah,Ot.years=Md,Ot.humanize=function z_(C,H){if(!this.isValid())return this.localeData().invalidDate();var J,ae,I=!1,F=Or;return"object"==typeof C&&(H=C,C=!1),"boolean"==typeof C&&(I=C),"object"==typeof H&&(F=Object.assign({},Or,H),null!=H.s&&null==H.ss&&(F.ss=H.s-1)),ae=function Jf(C,H,I,F){var J=Xn(C).abs(),ae=Mn(J.as("s")),be=Mn(J.as("m")),et=Mn(J.as("h")),vt=Mn(J.as("d")),Qt=Mn(J.as("M")),Ci=Mn(J.as("w")),Br=Mn(J.as("y")),Vr=ae<=I.ss&&["s",ae]||ae0,Vr[4]=F,Sd.apply(null,Vr)}(this,!I,F,J=this.localeData()),I&&(ae=J.pastFuture(+this,ae)),J.postformat(ae)},Ot.toISOString=oc,Ot.toString=oc,Ot.toJSON=oc,Ot.locale=Uo,Ot.localeData=Oa,Ot.toIsoString=xt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oc),Ot.lang=to,$e("X",0,0,"unix"),$e("x",0,0,"valueOf"),Re("x",ea),Re("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",function(C,H,I){I._d=new Date(1e3*parseFloat(C))}),gt("x",function(C,H,I){I._d=new Date(Ae(C))}),i.version="2.29.2",function E(C){T=C}(ai),i.fn=Pe,i.min=function ui(){return bn("isBefore",[].slice.call(arguments,0))},i.max=function pr(){return bn("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=te,i.unix=function Gn(C){return ai(1e3*C)},i.months=function Uf(C,H){return Ad(C,H,"months")},i.isDate=Y,i.locale=W,i.invalid=Ie,i.duration=Xn,i.isMoment=Ke,i.weekdays=function rc(C,H,I){return uo(C,H,I,"weekdays")},i.parseZone=function Cd(){return ai.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=Ks,i.monthsShort=function zf(C,H){return Ad(C,H,"monthsShort")},i.weekdaysMin=function As(C,H,I){return uo(C,H,I,"weekdaysMin")},i.defineLocale=O,i.updateLocale=function Q(C,H){if(null!=H){var I,F,J=Er;null!=ci[C]&&null!=ci[C].parentLocale?ci[C].set(ye(ci[C]._config,H)):(null!=(F=B(C))&&(J=F._config),H=ye(J,H),null==F&&(H.abbr=C),(I=new ke(H)).parentLocale=ci[C],ci[C]=I),W(C)}else null!=ci[C]&&(null!=ci[C].parentLocale?(ci[C]=ci[C].parentLocale,C===W()&&W(C)):null!=ci[C]&&delete ci[C]);return ci[C]},i.locales=function he(){return ge(ci)},i.weekdaysShort=function fh(C,H,I){return uo(C,H,I,"weekdaysShort")},i.normalizeUnits=ln,i.relativeTimeRounding=function vh(C){return void 0===C?Mn:"function"==typeof C&&(Mn=C,!0)},i.relativeTimeThreshold=function Qf(C,H){return void 0!==Or[C]&&(void 0===H?Or[C]:(Or[C]=H,"s"===C&&(Or.ss=H-1),!0))},i.calendarFormat=function fr(C,H){var I=C.diff(H,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"},i.prototype=Pe,i.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"},i}()},1869:(z,G,x)=>{"use strict";x.d(G,{d:()=>i});var T=x(3489);class i extends T.L{constructor(M,S,P){super(),this.parent=M,this.outerValue=S,this.outerIndex=P,this.index=0}_next(M){this.parent.notifyNext(this.outerValue,M,this.outerIndex,this.index++,this)}_error(M){this.parent.notifyError(M,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(z,G,x)=>{"use strict";x.d(G,{P:()=>S});var T=x(8896),i=x(1086),E=x(1737);class S{constructor(L,V,U){this.kind=L,this.value=V,this.error=U,this.hasValue="N"===L}observe(L){switch(this.kind){case"N":return L.next&&L.next(this.value);case"E":return L.error&&L.error(this.error);case"C":return L.complete&&L.complete()}}do(L,V,U){switch(this.kind){case"N":return L&&L(this.value);case"E":return V&&V(this.error);case"C":return U&&U()}}accept(L,V,U){return L&&"function"==typeof L.next?this.observe(L):this.do(L,V,U)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,E._)(this.error);case"C":return(0,T.c)()}throw new Error("unexpected notification kind value")}static createNext(L){return void 0!==L?new S("N",L):S.undefinedValueNotification}static createError(L){return new S("E",void 0,L)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},2916:(z,G,x)=>{"use strict";x.d(G,{y:()=>$});var T=x(3489),E=x(7668),M=x(3292),P=x(3821),L=x(5379);var Y=x(2830);let $=(()=>{class te{constructor(ne){this._isScalar=!1,ne&&(this._subscribe=ne)}lift(ne){const de=new te;return de.source=this,de.operator=ne,de}subscribe(ne,de,me){const{operator:Ie}=this,Be=function S(te,ce,ne){if(te){if(te instanceof T.L)return te;if(te[E.b])return te[E.b]()}return te||ce||ne?new T.L(te,ce,ne):new T.L(M.c)}(ne,de,me);if(Be.add(Ie?Ie.call(Be,this.source):this.source||Y.v.useDeprecatedSynchronousErrorHandling&&!Be.syncErrorThrowable?this._subscribe(Be):this._trySubscribe(Be)),Y.v.useDeprecatedSynchronousErrorHandling&&Be.syncErrorThrowable&&(Be.syncErrorThrowable=!1,Be.syncErrorThrown))throw Be.syncErrorValue;return Be}_trySubscribe(ne){try{return this._subscribe(ne)}catch(de){Y.v.useDeprecatedSynchronousErrorHandling&&(ne.syncErrorThrown=!0,ne.syncErrorValue=de),function i(te){for(;te;){const{closed:ce,destination:ne,isStopped:de}=te;if(ce||de)return!1;te=ne&&ne instanceof T.L?ne:null}return!0}(ne)?ne.error(de):console.warn(de)}}forEach(ne,de){return new(de=X(de))((me,Ie)=>{let Be;Be=this.subscribe(Ze=>{try{ne(Ze)}catch(It){Ie(It),Be&&Be.unsubscribe()}},Ie,me)})}_subscribe(ne){const{source:de}=this;return de&&de.subscribe(ne)}[P.L](){return this}pipe(...ne){return 0===ne.length?this:function U(te){return 0===te.length?L.y:1===te.length?te[0]:function(ne){return te.reduce((de,me)=>me(de),ne)}}(ne)(this)}toPromise(ne){return new(ne=X(ne))((de,me)=>{let Ie;this.subscribe(Be=>Ie=Be,Be=>me(Be),()=>de(Ie))})}}return te.create=ce=>new te(ce),te})();function X(te){if(te||(te=Y.v.Promise||Promise),!te)throw new Error("no Promise impl found");return te}},3292:(z,G,x)=>{"use strict";x.d(G,{c:()=>E});var T=x(2830),i=x(2782);const E={closed:!0,next(M){},error(M){if(T.v.useDeprecatedSynchronousErrorHandling)throw M;(0,i.z)(M)},complete(){}}},826:(z,G,x)=>{"use strict";x.d(G,{L:()=>i});var T=x(3489);class i extends T.L{notifyNext(M,S,P,L,V){this.destination.next(S)}notifyError(M,S){this.destination.error(M)}notifyComplete(M){this.destination.complete()}}},8929:(z,G,x)=>{"use strict";x.d(G,{Yc:()=>L,xQ:()=>V});var T=x(2916),i=x(3489),E=x(2654),M=x(5279),S=x(5283),P=x(7668);class L extends i.L{constructor($){super($),this.destination=$}}let V=(()=>{class Y extends T.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[P.b](){return new L(this)}lift(X){const te=new U(this,this);return te.operator=X,te}next(X){if(this.closed)throw new M.N;if(!this.isStopped){const{observers:te}=this,ce=te.length,ne=te.slice();for(let de=0;denew U($,X),Y})();class U extends V{constructor($,X){super(),this.destination=$,this.source=X}next($){const{destination:X}=this;X&&X.next&&X.next($)}error($){const{destination:X}=this;X&&X.error&&this.destination.error($)}complete(){const{destination:$}=this;$&&$.complete&&this.destination.complete()}_subscribe($){const{source:X}=this;return X?this.source.subscribe($):E.w.EMPTY}}},5283:(z,G,x)=>{"use strict";x.d(G,{W:()=>i});var T=x(2654);class i extends T.w{constructor(M,S){super(),this.subject=M,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const M=this.subject,S=M.observers;if(this.subject=null,!S||0===S.length||M.isStopped||M.closed)return;const P=S.indexOf(this.subscriber);-1!==P&&S.splice(P,1)}}},3489:(z,G,x)=>{"use strict";x.d(G,{L:()=>L});var T=x(7043),i=x(3292),E=x(2654),M=x(7668),S=x(2830),P=x(2782);class L extends E.w{constructor(Y,$,X){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!Y){this.destination=i.c;break}if("object"==typeof Y){Y instanceof L?(this.syncErrorThrowable=Y.syncErrorThrowable,this.destination=Y,Y.add(this)):(this.syncErrorThrowable=!0,this.destination=new V(this,Y));break}default:this.syncErrorThrowable=!0,this.destination=new V(this,Y,$,X)}}[M.b](){return this}static create(Y,$,X){const te=new L(Y,$,X);return te.syncErrorThrowable=!1,te}next(Y){this.isStopped||this._next(Y)}error(Y){this.isStopped||(this.isStopped=!0,this._error(Y))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(Y){this.destination.next(Y)}_error(Y){this.destination.error(Y),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:Y}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=Y,this}}class V extends L{constructor(Y,$,X,te){super(),this._parentSubscriber=Y;let ce,ne=this;(0,T.m)($)?ce=$:$&&(ce=$.next,X=$.error,te=$.complete,$!==i.c&&(ne=Object.create($),(0,T.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=ce,this._error=X,this._complete=te}next(Y){if(!this.isStopped&&this._next){const{_parentSubscriber:$}=this;S.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,Y)&&this.unsubscribe():this.__tryOrUnsub(this._next,Y)}}error(Y){if(!this.isStopped){const{_parentSubscriber:$}=this,{useDeprecatedSynchronousErrorHandling:X}=S.v;if(this._error)X&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,Y),this.unsubscribe()):(this.__tryOrUnsub(this._error,Y),this.unsubscribe());else if($.syncErrorThrowable)X?($.syncErrorValue=Y,$.syncErrorThrown=!0):(0,P.z)(Y),this.unsubscribe();else{if(this.unsubscribe(),X)throw Y;(0,P.z)(Y)}}}complete(){if(!this.isStopped){const{_parentSubscriber:Y}=this;if(this._complete){const $=()=>this._complete.call(this._context);S.v.useDeprecatedSynchronousErrorHandling&&Y.syncErrorThrowable?(this.__tryOrSetError(Y,$),this.unsubscribe()):(this.__tryOrUnsub($),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(Y,$){try{Y.call(this._context,$)}catch(X){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw X;(0,P.z)(X)}}__tryOrSetError(Y,$,X){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,X)}catch(te){return S.v.useDeprecatedSynchronousErrorHandling?(Y.syncErrorValue=te,Y.syncErrorThrown=!0,!0):((0,P.z)(te),!0)}return!1}_unsubscribe(){const{_parentSubscriber:Y}=this;this._context=null,this._parentSubscriber=null,Y.unsubscribe()}}},2654:(z,G,x)=>{"use strict";x.d(G,{w:()=>P});var T=x(6688),i=x(7830),E=x(7043);const S=(()=>{function V(U){return Error.call(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((Y,$)=>`${$+1}) ${Y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U,this}return V.prototype=Object.create(Error.prototype),V})();class P{constructor(U){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,U&&(this._unsubscribe=U)}unsubscribe(){let U;if(this.closed)return;let{_parentOrParents:Y,_unsubscribe:$,_subscriptions:X}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,Y instanceof P)Y.remove(this);else if(null!==Y)for(let te=0;teU.concat(Y instanceof S?Y.errors:Y),[])}P.EMPTY=((V=new P).closed=!0,V)},2830:(z,G,x)=>{"use strict";x.d(G,{v:()=>i});let T=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(E){if(E){const M=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+M.stack)}else T&&console.log("RxJS: Back to a better error behavior. Thank you. <3");T=E},get useDeprecatedSynchronousErrorHandling(){return T}}},1762:(z,G,x)=>{"use strict";x.d(G,{c:()=>S,N:()=>P});var T=x(8929),i=x(2916),E=x(2654),M=x(4327);class S extends i.y{constructor($,X){super(),this.source=$,this.subjectFactory=X,this._refCount=0,this._isComplete=!1}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let $=this._connection;return $||(this._isComplete=!1,$=this._connection=new E.w,$.add(this.source.subscribe(new L(this.getSubject(),this))),$.closed&&(this._connection=null,$=E.w.EMPTY)),$}refCount(){return(0,M.x)()(this)}}const P=(()=>{const Y=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Y._subscribe},_isComplete:{value:Y._isComplete,writable:!0},getSubject:{value:Y.getSubject},connect:{value:Y.connect},refCount:{value:Y.refCount}}})();class L extends T.Yc{constructor($,X){super($),this.connectable=X}_error($){this._unsubscribe(),super._error($)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const $=this.connectable;if($){this.connectable=null;const X=$._connection;$._refCount=0,$._subject=null,$._connection=null,X&&X.unsubscribe()}}}},6053:(z,G,x)=>{"use strict";x.d(G,{aj:()=>L});var T=x(2866),i=x(6688),E=x(826),M=x(9054),S=x(3009);const P={};function L(...Y){let $=null,X=null;return(0,T.K)(Y[Y.length-1])&&(X=Y.pop()),"function"==typeof Y[Y.length-1]&&($=Y.pop()),1===Y.length&&(0,i.k)(Y[0])&&(Y=Y[0]),(0,S.n)(Y,X).lift(new V($))}class V{constructor($){this.resultSelector=$}call($,X){return X.subscribe(new U($,this.resultSelector))}}class U extends E.L{constructor($,X){super($),this.resultSelector=X,this.active=0,this.values=[],this.observables=[]}_next($){this.values.push(P),this.observables.push($)}_complete(){const $=this.observables,X=$.length;if(0===X)this.destination.complete();else{this.active=X,this.toRespond=X;for(let te=0;te{"use strict";x.d(G,{E:()=>i,c:()=>E});var T=x(2916);const i=new T.y(S=>S.complete());function E(S){return S?function M(S){return new T.y(P=>S.schedule(()=>P.complete()))}(S):i}},5254:(z,G,x)=>{"use strict";x.d(G,{D:()=>ne});var T=x(2916),i=x(9249),E=x(2654),M=x(3821),L=x(6454),V=x(5430),$=x(8955),X=x(8515);function ne(de,me){return me?function ce(de,me){if(null!=de){if(function Y(de){return de&&"function"==typeof de[M.L]}(de))return function S(de,me){return new T.y(Ie=>{const Be=new E.w;return Be.add(me.schedule(()=>{const Ze=de[M.L]();Be.add(Ze.subscribe({next(It){Be.add(me.schedule(()=>Ie.next(It)))},error(It){Be.add(me.schedule(()=>Ie.error(It)))},complete(){Be.add(me.schedule(()=>Ie.complete()))}}))})),Be})}(de,me);if((0,$.t)(de))return function P(de,me){return new T.y(Ie=>{const Be=new E.w;return Be.add(me.schedule(()=>de.then(Ze=>{Be.add(me.schedule(()=>{Ie.next(Ze),Be.add(me.schedule(()=>Ie.complete()))}))},Ze=>{Be.add(me.schedule(()=>Ie.error(Ze)))}))),Be})}(de,me);if((0,X.z)(de))return(0,L.r)(de,me);if(function te(de){return de&&"function"==typeof de[V.hZ]}(de)||"string"==typeof de)return function U(de,me){if(!de)throw new Error("Iterable cannot be null");return new T.y(Ie=>{const Be=new E.w;let Ze;return Be.add(()=>{Ze&&"function"==typeof Ze.return&&Ze.return()}),Be.add(me.schedule(()=>{Ze=de[V.hZ](),Be.add(me.schedule(function(){if(Ie.closed)return;let It,kt;try{const Ke=Ze.next();It=Ke.value,kt=Ke.done}catch(Ke){return void Ie.error(Ke)}kt?Ie.complete():(Ie.next(It),this.schedule())}))})),Be})}(de,me)}throw new TypeError((null!==de&&typeof de||de)+" is not observable")}(de,me):de instanceof T.y?de:new T.y((0,i.s)(de))}},3009:(z,G,x)=>{"use strict";x.d(G,{n:()=>M});var T=x(2916),i=x(3650),E=x(6454);function M(S,P){return P?(0,E.r)(S,P):new T.y((0,i.V)(S))}},6787:(z,G,x)=>{"use strict";x.d(G,{T:()=>S});var T=x(2916),i=x(2866),E=x(9146),M=x(3009);function S(...P){let L=Number.POSITIVE_INFINITY,V=null,U=P[P.length-1];return(0,i.K)(U)?(V=P.pop(),P.length>1&&"number"==typeof P[P.length-1]&&(L=P.pop())):"number"==typeof U&&(L=P.pop()),null===V&&1===P.length&&P[0]instanceof T.y?P[0]:(0,E.J)(L)((0,M.n)(P,V))}},1086:(z,G,x)=>{"use strict";x.d(G,{of:()=>M});var T=x(2866),i=x(3009),E=x(6454);function M(...S){let P=S[S.length-1];return(0,T.K)(P)?(S.pop(),(0,E.r)(S,P)):(0,i.n)(S)}},1946:(z,G,x)=>{"use strict";x.d(G,{S3:()=>S});var T=x(6688),i=x(3009),E=x(826),M=x(9054);function S(...V){if(1===V.length){if(!(0,T.k)(V[0]))return V[0];V=V[0]}return(0,i.n)(V,void 0).lift(new P)}class P{call(U,Y){return Y.subscribe(new L(U))}}class L extends E.L{constructor(U){super(U),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(U){this.observables.push(U)}_complete(){const U=this.observables,Y=U.length;if(0===Y)this.destination.complete();else{for(let $=0;${"use strict";x.d(G,{_:()=>i});var T=x(2916);function i(M,S){return new T.y(S?P=>S.schedule(E,0,{error:M,subscriber:P}):P=>P.error(M))}function E({error:M,subscriber:S}){S.error(M)}},7221:(z,G,x)=>{"use strict";x.d(G,{K:()=>M});var T=x(826),i=x(1869),E=x(9054);function M(L){return function(U){const Y=new S(L),$=U.lift(Y);return Y.caught=$}}class S{constructor(V){this.selector=V}call(V,U){return U.subscribe(new P(V,this.selector,this.caught))}}class P extends T.L{constructor(V,U,Y){super(V),this.selector=U,this.caught=Y}error(V){if(!this.isStopped){let U;try{U=this.selector(V,this.caught)}catch(X){return void super.error(X)}this._unsubscribeAndRecycle();const Y=new i.d(this,void 0,void 0);this.add(Y);const $=(0,E.D)(this,U,void 0,void 0,Y);$!==Y&&this.add($)}}}},1406:(z,G,x)=>{"use strict";x.d(G,{b:()=>i});var T=x(1709);function i(E,M){return(0,T.zg)(E,M,1)}},13:(z,G,x)=>{"use strict";x.d(G,{b:()=>E});var T=x(3489),i=x(353);function E(L,V=i.P){return U=>U.lift(new M(L,V))}class M{constructor(V,U){this.dueTime=V,this.scheduler=U}call(V,U){return U.subscribe(new S(V,this.dueTime,this.scheduler))}}class S extends T.L{constructor(V,U,Y){super(V),this.dueTime=U,this.scheduler=Y,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(V){this.clearDebounce(),this.lastValue=V,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:V}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(V)}}clearDebounce(){const V=this.debouncedSubscription;null!==V&&(this.remove(V),V.unsubscribe(),this.debouncedSubscription=null)}}function P(L){L.debouncedNext()}},7314:(z,G,x)=>{"use strict";x.d(G,{d:()=>i});var T=x(3489);function i(S=null){return P=>P.lift(new E(S))}class E{constructor(P){this.defaultValue=P}call(P,L){return L.subscribe(new M(P,this.defaultValue))}}class M extends T.L{constructor(P,L){super(P),this.defaultValue=L,this.isEmpty=!0}_next(P){this.isEmpty=!1,this.destination.next(P)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(z,G,x)=>{"use strict";x.d(G,{g:()=>S});var T=x(353),i=x(2697),E=x(3489),M=x(9312);function S(U,Y=T.P){const X=(0,i.J)(U)?+U-Y.now():Math.abs(U);return te=>te.lift(new P(X,Y))}class P{constructor(Y,$){this.delay=Y,this.scheduler=$}call(Y,$){return $.subscribe(new L(Y,this.delay,this.scheduler))}}class L extends E.L{constructor(Y,$,X){super(Y),this.delay=$,this.scheduler=X,this.queue=[],this.active=!1,this.errored=!1}static dispatch(Y){const $=Y.source,X=$.queue,te=Y.scheduler,ce=Y.destination;for(;X.length>0&&X[0].time-te.now()<=0;)X.shift().notification.observe(ce);if(X.length>0){const ne=Math.max(0,X[0].time-te.now());this.schedule(Y,ne)}else this.unsubscribe(),$.active=!1}_schedule(Y){this.active=!0,this.destination.add(Y.schedule(L.dispatch,this.delay,{source:this,destination:this.destination,scheduler:Y}))}scheduleNotification(Y){if(!0===this.errored)return;const $=this.scheduler,X=new V($.now()+this.delay,Y);this.queue.push(X),!1===this.active&&this._schedule($)}_next(Y){this.scheduleNotification(M.P.createNext(Y))}_error(Y){this.errored=!0,this.queue=[],this.destination.error(Y),this.unsubscribe()}_complete(){this.scheduleNotification(M.P.createComplete()),this.unsubscribe()}}class V{constructor(Y,$){this.time=Y,this.notification=$}}},2198:(z,G,x)=>{"use strict";x.d(G,{h:()=>i});var T=x(3489);function i(S,P){return function(V){return V.lift(new E(S,P))}}class E{constructor(P,L){this.predicate=P,this.thisArg=L}call(P,L){return L.subscribe(new M(P,this.predicate,this.thisArg))}}class M extends T.L{constructor(P,L,V){super(P),this.predicate=L,this.thisArg=V,this.count=0}_next(P){let L;try{L=this.predicate.call(this.thisArg,P,this.count++)}catch(V){return void this.destination.error(V)}L&&this.destination.next(P)}}},7224:(z,G,x)=>{"use strict";x.d(G,{P:()=>L});var T=x(4450),i=x(2198),E=x(2986),M=x(7314),S=x(4907),P=x(5379);function L(V,U){const Y=arguments.length>=2;return $=>$.pipe(V?(0,i.h)((X,te)=>V(X,te,$)):P.y,(0,E.q)(1),Y?(0,M.d)(U):(0,S.T)(()=>new T.K))}},4850:(z,G,x)=>{"use strict";x.d(G,{U:()=>i});var T=x(3489);function i(S,P){return function(V){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return V.lift(new E(S,P))}}class E{constructor(P,L){this.project=P,this.thisArg=L}call(P,L){return L.subscribe(new M(P,this.project,this.thisArg))}}class M extends T.L{constructor(P,L,V){super(P),this.project=L,this.count=0,this.thisArg=V||this}_next(P){let L;try{L=this.project.call(this.thisArg,P,this.count++)}catch(V){return void this.destination.error(V)}this.destination.next(L)}}},9146:(z,G,x)=>{"use strict";x.d(G,{J:()=>E});var T=x(1709),i=x(5379);function E(M=Number.POSITIVE_INFINITY){return(0,T.zg)(i.y,M)}},1709:(z,G,x)=>{"use strict";x.d(G,{zg:()=>P});var T=x(9054),i=x(826),E=x(1869),M=x(4850),S=x(5254);function P(U,Y,$=Number.POSITIVE_INFINITY){return"function"==typeof Y?X=>X.pipe(P((te,ce)=>(0,S.D)(U(te,ce)).pipe((0,M.U)((ne,de)=>Y(te,ne,ce,de))),$)):("number"==typeof Y&&($=Y),X=>X.lift(new L(U,$)))}class L{constructor(Y,$=Number.POSITIVE_INFINITY){this.project=Y,this.concurrent=$}call(Y,$){return $.subscribe(new V(Y,this.project,this.concurrent))}}class V extends i.L{constructor(Y,$,X=Number.POSITIVE_INFINITY){super(Y),this.project=$,this.concurrent=X,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(Y){this.active0?this._next($.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(z,G,x)=>{"use strict";x.d(G,{x:()=>i});var T=x(3489);function i(){return function(P){return P.lift(new E(P))}}class E{constructor(P){this.connectable=P}call(P,L){const{connectable:V}=this;V._refCount++;const U=new M(P,V),Y=L.subscribe(U);return U.closed||(U.connection=V.connect()),Y}}class M extends T.L{constructor(P,L){super(P),this.connectable=L}_unsubscribe(){const{connectable:P}=this;if(!P)return void(this.connection=null);this.connectable=null;const L=P._refCount;if(L<=0)return void(this.connection=null);if(P._refCount=L-1,L>1)return void(this.connection=null);const{connection:V}=this,U=P._connection;this.connection=null,U&&(!V||U===V)&&U.unsubscribe()}}},2474:(z,G,x)=>{"use strict";x.d(G,{B:()=>L});var T=x(1762);class E{constructor(U,Y){this.subjectFactory=U,this.selector=Y}call(U,Y){const{selector:$}=this,X=this.subjectFactory(),te=$(X).subscribe(U);return te.add(Y.subscribe(X)),te}}var M=x(4327),S=x(8929);function P(){return new S.xQ}function L(){return V=>(0,M.x)()(function i(V,U){return function($){let X;if(X="function"==typeof V?V:function(){return V},"function"==typeof U)return $.lift(new E(X,U));const te=Object.create($,T.N);return te.source=$,te.subjectFactory=X,te}}(P)(V))}},7545:(z,G,x)=>{"use strict";x.d(G,{w:()=>P});var T=x(826),i=x(1869),E=x(9054),M=x(4850),S=x(5254);function P(U,Y){return"function"==typeof Y?$=>$.pipe(P((X,te)=>(0,S.D)(U(X,te)).pipe((0,M.U)((ce,ne)=>Y(X,ce,te,ne))))):$=>$.lift(new L(U))}class L{constructor(Y){this.project=Y}call(Y,$){return $.subscribe(new V(Y,this.project))}}class V extends T.L{constructor(Y,$){super(Y),this.project=$,this.index=0}_next(Y){let $;const X=this.index++;try{$=this.project(Y,X)}catch(te){return void this.destination.error(te)}this._innerSub($,Y,X)}_innerSub(Y,$,X){const te=this.innerSubscription;te&&te.unsubscribe();const ce=new i.d(this,$,X),ne=this.destination;ne.add(ce),this.innerSubscription=(0,E.D)(this,Y,void 0,void 0,ce),this.innerSubscription!==ce&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:Y}=this;(!Y||Y.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(Y){this.destination.remove(Y),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(Y,$,X,te,ce){this.destination.next($)}}},2986:(z,G,x)=>{"use strict";x.d(G,{q:()=>M});var T=x(3489),i=x(4231),E=x(8896);function M(L){return V=>0===L?(0,E.c)():V.lift(new S(L))}class S{constructor(V){if(this.total=V,this.total<0)throw new i.W}call(V,U){return U.subscribe(new P(V,this.total))}}class P extends T.L{constructor(V,U){super(V),this.total=U,this.count=0}_next(V){const U=this.total,Y=++this.count;Y<=U&&(this.destination.next(V),Y===U&&(this.destination.complete(),this.unsubscribe()))}}},2868:(z,G,x)=>{"use strict";x.d(G,{b:()=>M});var T=x(3489);function i(){}var E=x(7043);function M(L,V,U){return function($){return $.lift(new S(L,V,U))}}class S{constructor(V,U,Y){this.nextOrObserver=V,this.error=U,this.complete=Y}call(V,U){return U.subscribe(new P(V,this.nextOrObserver,this.error,this.complete))}}class P extends T.L{constructor(V,U,Y,$){super(V),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=Y||i,this._tapComplete=$||i,(0,E.m)(U)?(this._context=this,this._tapNext=U):U&&(this._context=U,this._tapNext=U.next||i,this._tapError=U.error||i,this._tapComplete=U.complete||i)}_next(V){try{this._tapNext.call(this._context,V)}catch(U){return void this.destination.error(U)}this.destination.next(V)}_error(V){try{this._tapError.call(this._context,V)}catch(U){return void this.destination.error(U)}this.destination.error(V)}_complete(){try{this._tapComplete.call(this._context)}catch(V){return void this.destination.error(V)}return this.destination.complete()}}},4907:(z,G,x)=>{"use strict";x.d(G,{T:()=>E});var T=x(4450),i=x(3489);function E(L=P){return V=>V.lift(new M(L))}class M{constructor(V){this.errorFactory=V}call(V,U){return U.subscribe(new S(V,this.errorFactory))}}class S extends i.L{constructor(V,U){super(V),this.errorFactory=U,this.hasValue=!1}_next(V){this.hasValue=!0,this.destination.next(V)}_complete(){if(this.hasValue)return this.destination.complete();{let V;try{V=this.errorFactory()}catch(U){V=U}this.destination.error(V)}}}function P(){return new T.K}},6227:(z,G,x)=>{"use strict";x.d(G,{V:()=>$});var T=x(353);const E=(()=>{function X(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return X.prototype=Object.create(Error.prototype),X})();var M=x(2697),S=x(826),P=x(9054);class V{constructor(te,ce,ne,de){this.waitFor=te,this.absoluteTimeout=ce,this.withObservable=ne,this.scheduler=de}call(te,ce){return ce.subscribe(new U(te,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class U extends S.L{constructor(te,ce,ne,de,me){super(te),this.absoluteTimeout=ce,this.waitFor=ne,this.withObservable=de,this.scheduler=me,this.action=null,this.scheduleTimeout()}static dispatchTimeout(te){const{withObservable:ce}=te;te._unsubscribeAndRecycle(),te.add((0,P.D)(te,ce))}scheduleTimeout(){const{action:te}=this;te?this.action=te.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(U.dispatchTimeout,this.waitFor,this))}_next(te){this.absoluteTimeout||this.scheduleTimeout(),super._next(te)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var Y=x(1737);function $(X,te=T.P){return function L(X,te,ce=T.P){return ne=>{let de=(0,M.J)(X),me=de?+X-ce.now():Math.abs(X);return ne.lift(new V(me,de,te,ce))}}(X,(0,Y._)(new E),te)}},6454:(z,G,x)=>{"use strict";x.d(G,{r:()=>E});var T=x(2916),i=x(2654);function E(M,S){return new T.y(P=>{const L=new i.w;let V=0;return L.add(S.schedule(function(){V!==M.length?(P.next(M[V++]),P.closed||L.add(this.schedule())):P.complete()})),L})}},6686:(z,G,x)=>{"use strict";x.d(G,{o:()=>E});var T=x(2654);class i extends T.w{constructor(S,P){super()}schedule(S,P=0){return this}}class E extends i{constructor(S,P){super(S,P),this.scheduler=S,this.work=P,this.pending=!1}schedule(S,P=0){if(this.closed)return this;this.state=S;const L=this.id,V=this.scheduler;return null!=L&&(this.id=this.recycleAsyncId(V,L,P)),this.pending=!0,this.delay=P,this.id=this.id||this.requestAsyncId(V,this.id,P),this}requestAsyncId(S,P,L=0){return setInterval(S.flush.bind(S,this),L)}recycleAsyncId(S,P,L=0){if(null!==L&&this.delay===L&&!1===this.pending)return P;clearInterval(P)}execute(S,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const L=this._execute(S,P);if(L)return L;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,P){let V,L=!1;try{this.work(S)}catch(U){L=!0,V=!!U&&U||new Error(U)}if(L)return this.unsubscribe(),V}_unsubscribe(){const S=this.id,P=this.scheduler,L=P.actions,V=L.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==V&&L.splice(V,1),null!=S&&(this.id=this.recycleAsyncId(P,S,null)),this.delay=null}}},2268:(z,G,x)=>{"use strict";x.d(G,{v:()=>i});let T=(()=>{class E{constructor(S,P=E.now){this.SchedulerAction=S,this.now=P}schedule(S,P=0,L){return new this.SchedulerAction(this,S).schedule(L,P)}}return E.now=()=>Date.now(),E})();class i extends T{constructor(M,S=T.now){super(M,()=>i.delegate&&i.delegate!==this?i.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(M,S=0,P){return i.delegate&&i.delegate!==this?i.delegate.schedule(M,S,P):super.schedule(M,S,P)}flush(M){const{actions:S}=this;if(this.active)return void S.push(M);let P;this.active=!0;do{if(P=M.execute(M.state,M.delay))break}while(M=S.shift());if(this.active=!1,P){for(;M=S.shift();)M.unsubscribe();throw P}}}},353:(z,G,x)=>{"use strict";x.d(G,{P:()=>E});var T=x(6686);const E=new(x(2268).v)(T.o)},5430:(z,G,x)=>{"use strict";x.d(G,{hZ:()=>i});const i=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(z,G,x)=>{"use strict";x.d(G,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(z,G,x)=>{"use strict";x.d(G,{b:()=>T});const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(z,G,x)=>{"use strict";x.d(G,{W:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return E.prototype=Object.create(Error.prototype),E})()},4450:(z,G,x)=>{"use strict";x.d(G,{K:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return E.prototype=Object.create(Error.prototype),E})()},5279:(z,G,x)=>{"use strict";x.d(G,{N:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return E.prototype=Object.create(Error.prototype),E})()},2782:(z,G,x)=>{"use strict";function T(i){setTimeout(()=>{throw i},0)}x.d(G,{z:()=>T})},5379:(z,G,x)=>{"use strict";function T(i){return i}x.d(G,{y:()=>T})},6688:(z,G,x)=>{"use strict";x.d(G,{k:()=>T});const T=Array.isArray||(i=>i&&"number"==typeof i.length)},8515:(z,G,x)=>{"use strict";x.d(G,{z:()=>T});const T=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2697:(z,G,x)=>{"use strict";function T(i){return i instanceof Date&&!isNaN(+i)}x.d(G,{J:()=>T})},7043:(z,G,x)=>{"use strict";function T(i){return"function"==typeof i}x.d(G,{m:()=>T})},7830:(z,G,x)=>{"use strict";function T(i){return null!==i&&"object"==typeof i}x.d(G,{K:()=>T})},8955:(z,G,x)=>{"use strict";function T(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}x.d(G,{t:()=>T})},2866:(z,G,x)=>{"use strict";function T(i){return i&&"function"==typeof i.schedule}x.d(G,{K:()=>T})},9249:(z,G,x)=>{"use strict";x.d(G,{s:()=>$});var T=x(3650),i=x(2782),M=x(5430),P=x(3821),V=x(8515),U=x(8955),Y=x(7830);const $=X=>{if(X&&"function"==typeof X[P.L])return(X=>te=>{const ce=X[P.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(te)})(X);if((0,V.z)(X))return(0,T.V)(X);if((0,U.t)(X))return(X=>te=>(X.then(ce=>{te.closed||(te.next(ce),te.complete())},ce=>te.error(ce)).then(null,i.z),te))(X);if(X&&"function"==typeof X[M.hZ])return(X=>te=>{const ce=X[M.hZ]();for(;;){const ne=ce.next();if(ne.done){te.complete();break}if(te.next(ne.value),te.closed)break}return"function"==typeof ce.return&&te.add(()=>{ce.return&&ce.return()}),te})(X);{const ce=`You provided ${(0,Y.K)(X)?"an invalid object":`'${X}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},3650:(z,G,x)=>{"use strict";x.d(G,{V:()=>T});const T=i=>E=>{for(let M=0,S=i.length;M{"use strict";x.d(G,{D:()=>M});var T=x(1869),i=x(9249),E=x(2916);function M(S,P,L,V,U=new T.d(S,L,V)){if(!U.closed)return P instanceof E.y?P.subscribe(U):(0,i.s)(P)(U)}},6700:(z,G,x)=>{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":3165,"./hy-am.js":3165,"./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":9635,"./sk.js":9635,"./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":4486,"./th.js":4486,"./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 i(M){var S=E(M);return x(S)}function E(M){if(!x.o(T,M)){var S=new Error("Cannot find module '"+M+"'");throw S.code="MODULE_NOT_FOUND",S}return T[M]}i.keys=function(){return Object.keys(T)},i.resolve=E,z.exports=i,i.id=6700},655:(z,G,x)=>{"use strict";function V(fe,_e,we,ye){return new(we||(we=Promise))(function(ge,Mt){function Gt(ht){try{tt(ye.next(ht))}catch(On){Mt(On)}}function yi(ht){try{tt(ye.throw(ht))}catch(On){Mt(On)}}function tt(ht){ht.done?ge(ht.value):function ke(ge){return ge instanceof we?ge:new we(function(Mt){Mt(ge)})}(ht.value).then(Gt,yi)}tt((ye=ye.apply(fe,_e||[])).next())})}x.d(G,{mG:()=>V})},9808:(z,G,x)=>{"use strict";x.d(G,{mr:()=>Be,Ov:()=>$u,ez:()=>jt,K0:()=>L,uU:()=>Ne,Do:()=>It,V_:()=>Y,Ye:()=>kt,S$:()=>me,mk:()=>Sa,sg:()=>tn,O5:()=>jn,PC:()=>os,RF:()=>_n,n9:()=>Fn,ED:()=>Ro,tP:()=>Sr,b0:()=>Ze,lw:()=>V,EM:()=>ra,JF:()=>fi,p6:()=>St,NF:()=>xn,w_:()=>P,bD:()=>ls,q:()=>E,Mx:()=>Po,HT:()=>S});var T=x(5e3);let i=null;function E(){return i}function S(B){i||(i=B)}class P{}const L=new T.OlP("DocumentToken");let V=(()=>{class B{historyGo(O){throw new Error("Not implemented")}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275prov=T.Yz7({token:B,factory:function(){return function U(){return(0,T.LFG)($)}()},providedIn:"platform"}),B})();const Y=new T.OlP("Location Initialized");let $=(()=>{class B extends V{constructor(O){super(),this._doc=O,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(O){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",O,!1),()=>Q.removeEventListener("popstate",O)}onHashChange(O){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",O,!1),()=>Q.removeEventListener("hashchange",O)}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(O){this.location.pathname=O}pushState(O,Q,re){X()?this._history.pushState(O,Q,re):this.location.hash=re}replaceState(O,Q,re){X()?this._history.replaceState(O,Q,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(L))},B.\u0275prov=T.Yz7({token:B,factory:function(){return function te(){return new $((0,T.LFG)(L))}()},providedIn:"platform"}),B})();function X(){return!!window.history.pushState}function ce(B,W){if(0==B.length)return W;if(0==W.length)return B;let O=0;return B.endsWith("/")&&O++,W.startsWith("/")&&O++,2==O?B+W.substring(1):1==O?B+W:B+"/"+W}function ne(B){const W=B.match(/#|\?|$/),O=W&&W.index||B.length;return B.slice(0,O-("/"===B[O-1]?1:0))+B.slice(O)}function de(B){return B&&"?"!==B[0]?"?"+B:B}let me=(()=>{class B{historyGo(O){throw new Error("Not implemented")}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275prov=T.Yz7({token:B,factory:function(){return function Ie(B){const W=(0,T.LFG)(L).location;return new Ze((0,T.LFG)(V),W&&W.origin||"")}()},providedIn:"root"}),B})();const Be=new T.OlP("appBaseHref");let Ze=(()=>{class B extends me{constructor(O,Q){if(super(),this._platformLocation=O,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return ce(this._baseHref,O)}path(O=!1){const Q=this._platformLocation.pathname+de(this._platformLocation.search),re=this._platformLocation.hash;return re&&O?`${Q}${re}`:Q}pushState(O,Q,re,he){const ve=this.prepareExternalUrl(re+de(he));this._platformLocation.pushState(O,Q,ve)}replaceState(O,Q,re,he){const ve=this.prepareExternalUrl(re+de(he));this._platformLocation.replaceState(O,Q,ve)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,O)}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(V),T.LFG(Be,8))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})(),It=(()=>{class B extends me{constructor(O,Q){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(O){const Q=ce(this._baseHref,O);return Q.length>0?"#"+Q:Q}pushState(O,Q,re,he){let ve=this.prepareExternalUrl(re+de(he));0==ve.length&&(ve=this._platformLocation.pathname),this._platformLocation.pushState(O,Q,ve)}replaceState(O,Q,re,he){let ve=this.prepareExternalUrl(re+de(he));0==ve.length&&(ve=this._platformLocation.pathname),this._platformLocation.replaceState(O,Q,ve)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,O)}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(V),T.LFG(Be,8))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})(),kt=(()=>{class B{constructor(O,Q){this._subject=new T.vpe,this._urlChangeListeners=[],this._platformStrategy=O;const re=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=ne(xt(re)),this._platformStrategy.onPopState(he=>{this._subject.emit({url:this.path(!0),pop:!0,state:he.state,type:he.type})})}path(O=!1){return this.normalize(this._platformStrategy.path(O))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(O,Q=""){return this.path()==this.normalize(O+de(Q))}normalize(O){return B.stripTrailingSlash(function Xi(B,W){return B&&W.startsWith(B)?W.substring(B.length):W}(this._baseHref,xt(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._platformStrategy.prepareExternalUrl(O)}go(O,Q="",re=null){this._platformStrategy.pushState(re,"",O,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+de(Q)),re)}replaceState(O,Q="",re=null){this._platformStrategy.replaceState(re,"",O,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+de(Q)),re)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformStrategy).historyGo)||void 0===re||re.call(Q,O)}onUrlChange(O){this._urlChangeListeners.push(O),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(O="",Q){this._urlChangeListeners.forEach(re=>re(O,Q))}subscribe(O,Q,re){return this._subject.subscribe({next:O,error:Q,complete:re})}}return B.normalizeQueryParams=de,B.joinWithSlash=ce,B.stripTrailingSlash=ne,B.\u0275fac=function(O){return new(O||B)(T.LFG(me),T.LFG(V))},B.\u0275prov=T.Yz7({token:B,factory:function(){return function Ke(){return new kt((0,T.LFG)(me),(0,T.LFG)(V))}()},providedIn:"root"}),B})();function xt(B){return B.replace(/\/index.html$/,"")}var _e=(()=>((_e=_e||{})[_e.Zero=0]="Zero",_e[_e.One=1]="One",_e[_e.Two=2]="Two",_e[_e.Few=3]="Few",_e[_e.Many=4]="Many",_e[_e.Other=5]="Other",_e))(),we=(()=>((we=we||{})[we.Format=0]="Format",we[we.Standalone=1]="Standalone",we))(),ye=(()=>((ye=ye||{})[ye.Narrow=0]="Narrow",ye[ye.Abbreviated=1]="Abbreviated",ye[ye.Wide=2]="Wide",ye[ye.Short=3]="Short",ye))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function ri(B,W){return Bi((0,T.cg1)(B)[T.wAp.DateFormat],W)}function va(B,W){return Bi((0,T.cg1)(B)[T.wAp.TimeFormat],W)}function Cn(B,W){return Bi((0,T.cg1)(B)[T.wAp.DateTimeFormat],W)}function Ni(B,W){const O=(0,T.cg1)(B),Q=O[T.wAp.NumberSymbols][W];if(void 0===Q){if(W===ge.CurrencyDecimal)return O[T.wAp.NumberSymbols][ge.Decimal];if(W===ge.CurrencyGroup)return O[T.wAp.NumberSymbols][ge.Group]}return Q}const Kr=T.kL8;function xa(B){if(!B[T.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${B[T.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Bi(B,W){for(let O=W;O>-1;O--)if(void 0!==B[O])return B[O];throw new Error("Locale data API: locale data undefined")}function Zt(B){const[W,O]=B.split(":");return{hours:+W,minutes:+O}}const oe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,De={},Se=/((?:[^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 Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.ShortGMT=1]="ShortGMT",Ve[Ve.Long=2]="Long",Ve[Ve.Extended=3]="Extended",Ve))(),Ae=(()=>((Ae=Ae||{})[Ae.FullYear=0]="FullYear",Ae[Ae.Month=1]="Month",Ae[Ae.Date=2]="Date",Ae[Ae.Hours=3]="Hours",Ae[Ae.Minutes=4]="Minutes",Ae[Ae.Seconds=5]="Seconds",Ae[Ae.FractionalSeconds=6]="FractionalSeconds",Ae[Ae.Day=7]="Day",Ae))(),ze=(()=>((ze=ze||{})[ze.DayPeriods=0]="DayPeriods",ze[ze.Days=1]="Days",ze[ze.Months=2]="Months",ze[ze.Eras=3]="Eras",ze))();function St(B,W,O,Q){let re=function Re(B){if(Zi(B))return B;if("number"==typeof B&&!isNaN(B))return new Date(B);if("string"==typeof B){if(B=B.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(B)){const[re,he=1,ve=1]=B.split("-").map(Qe=>+Qe);return Di(re,he-1,ve)}const O=parseFloat(B);if(!isNaN(B-O))return new Date(O);let Q;if(Q=B.match(oe))return function oi(B){const W=new Date(0);let O=0,Q=0;const re=B[8]?W.setUTCFullYear:W.setFullYear,he=B[8]?W.setUTCHours:W.setHours;B[9]&&(O=Number(B[9]+B[10]),Q=Number(B[9]+B[11])),re.call(W,Number(B[1]),Number(B[2])-1,Number(B[3]));const ve=Number(B[4]||0)-O,Qe=Number(B[5]||0)-Q,Xt=Number(B[6]||0),Rt=Math.floor(1e3*parseFloat("0."+(B[7]||0)));return he.call(W,ve,Qe,Xt,Rt),W}(Q)}const W=new Date(B);if(!Zi(W))throw new Error(`Unable to convert "${B}" into a date`);return W}(B);W=Pt(O,W)||W;let Qe,ve=[];for(;W;){if(Qe=Se.exec(W),!Qe){ve.push(W);break}{ve=ve.concat(Qe.slice(1));const yt=ve.pop();if(!yt)break;W=yt}}let Xt=re.getTimezoneOffset();Q&&(Xt=as(Q,Xt),re=function w(B,W,O){const Q=O?-1:1,re=B.getTimezoneOffset();return function zs(B,W){return(B=new Date(B.getTime())).setMinutes(B.getMinutes()+W),B}(B,Q*(as(W,re)-re))}(re,Q,!0));let Rt="";return ve.forEach(yt=>{const wt=function rs(B){if(Vn[B])return Vn[B];let W;switch(B){case"G":case"GG":case"GGG":W=Vt(ze.Eras,ye.Abbreviated);break;case"GGGG":W=Vt(ze.Eras,ye.Wide);break;case"GGGGG":W=Vt(ze.Eras,ye.Narrow);break;case"y":W=qe(Ae.FullYear,1,0,!1,!0);break;case"yy":W=qe(Ae.FullYear,2,0,!0,!0);break;case"yyy":W=qe(Ae.FullYear,3,0,!1,!0);break;case"yyyy":W=qe(Ae.FullYear,4,0,!1,!0);break;case"Y":W=ea(1);break;case"YY":W=ea(2,!0);break;case"YYY":W=ea(3);break;case"YYYY":W=ea(4);break;case"M":case"L":W=qe(Ae.Month,1,1);break;case"MM":case"LL":W=qe(Ae.Month,2,1);break;case"MMM":W=Vt(ze.Months,ye.Abbreviated);break;case"MMMM":W=Vt(ze.Months,ye.Wide);break;case"MMMMM":W=Vt(ze.Months,ye.Narrow);break;case"LLL":W=Vt(ze.Months,ye.Abbreviated,we.Standalone);break;case"LLLL":W=Vt(ze.Months,ye.Wide,we.Standalone);break;case"LLLLL":W=Vt(ze.Months,ye.Narrow,we.Standalone);break;case"w":W=Xr(1);break;case"ww":W=Xr(2);break;case"W":W=Xr(1,!0);break;case"d":W=qe(Ae.Date,1);break;case"dd":W=qe(Ae.Date,2);break;case"c":case"cc":W=qe(Ae.Day,1);break;case"ccc":W=Vt(ze.Days,ye.Abbreviated,we.Standalone);break;case"cccc":W=Vt(ze.Days,ye.Wide,we.Standalone);break;case"ccccc":W=Vt(ze.Days,ye.Narrow,we.Standalone);break;case"cccccc":W=Vt(ze.Days,ye.Short,we.Standalone);break;case"E":case"EE":case"EEE":W=Vt(ze.Days,ye.Abbreviated);break;case"EEEE":W=Vt(ze.Days,ye.Wide);break;case"EEEEE":W=Vt(ze.Days,ye.Narrow);break;case"EEEEEE":W=Vt(ze.Days,ye.Short);break;case"a":case"aa":case"aaa":W=Vt(ze.DayPeriods,ye.Abbreviated);break;case"aaaa":W=Vt(ze.DayPeriods,ye.Wide);break;case"aaaaa":W=Vt(ze.DayPeriods,ye.Narrow);break;case"b":case"bb":case"bbb":W=Vt(ze.DayPeriods,ye.Abbreviated,we.Standalone,!0);break;case"bbbb":W=Vt(ze.DayPeriods,ye.Wide,we.Standalone,!0);break;case"bbbbb":W=Vt(ze.DayPeriods,ye.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":W=Vt(ze.DayPeriods,ye.Abbreviated,we.Format,!0);break;case"BBBB":W=Vt(ze.DayPeriods,ye.Wide,we.Format,!0);break;case"BBBBB":W=Vt(ze.DayPeriods,ye.Narrow,we.Format,!0);break;case"h":W=qe(Ae.Hours,1,-12);break;case"hh":W=qe(Ae.Hours,2,-12);break;case"H":W=qe(Ae.Hours,1);break;case"HH":W=qe(Ae.Hours,2);break;case"m":W=qe(Ae.Minutes,1);break;case"mm":W=qe(Ae.Minutes,2);break;case"s":W=qe(Ae.Seconds,1);break;case"ss":W=qe(Ae.Seconds,2);break;case"S":W=qe(Ae.FractionalSeconds,1);break;case"SS":W=qe(Ae.FractionalSeconds,2);break;case"SSS":W=qe(Ae.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":W=$n(Ve.Short);break;case"ZZZZZ":W=$n(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":W=$n(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":W=$n(Ve.Long);break;default:return null}return Vn[B]=W,W}(yt);Rt+=wt?wt(re,O,Xt):"''"===yt?"'":yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Rt}function Di(B,W,O){const Q=new Date(0);return Q.setFullYear(B,W,O),Q.setHours(0,0,0),Q}function Pt(B,W){const O=function Gt(B){return(0,T.cg1)(B)[T.wAp.LocaleId]}(B);if(De[O]=De[O]||{},De[O][W])return De[O][W];let Q="";switch(W){case"shortDate":Q=ri(B,ke.Short);break;case"mediumDate":Q=ri(B,ke.Medium);break;case"longDate":Q=ri(B,ke.Long);break;case"fullDate":Q=ri(B,ke.Full);break;case"shortTime":Q=va(B,ke.Short);break;case"mediumTime":Q=va(B,ke.Medium);break;case"longTime":Q=va(B,ke.Long);break;case"fullTime":Q=va(B,ke.Full);break;case"short":const re=Pt(B,"shortTime"),he=Pt(B,"shortDate");Q=xr(Cn(B,ke.Short),[re,he]);break;case"medium":const ve=Pt(B,"mediumTime"),Qe=Pt(B,"mediumDate");Q=xr(Cn(B,ke.Medium),[ve,Qe]);break;case"long":const Xt=Pt(B,"longTime"),Rt=Pt(B,"longDate");Q=xr(Cn(B,ke.Long),[Xt,Rt]);break;case"full":const yt=Pt(B,"fullTime"),wt=Pt(B,"fullDate");Q=xr(Cn(B,ke.Full),[yt,wt])}return Q&&(De[O][W]=Q),Q}function xr(B,W){return W&&(B=B.replace(/\{([^}]+)}/g,function(O,Q){return null!=W&&Q in W?W[Q]:O})),B}function Hi(B,W,O="-",Q,re){let he="";(B<0||re&&B<=0)&&(re?B=1-B:(B=-B,he=O));let ve=String(B);for(;ve.length0||Qe>-O)&&(Qe+=O),B===Ae.Hours)0===Qe&&-12===O&&(Qe=12);else if(B===Ae.FractionalSeconds)return function nt(B,W){return Hi(B,3).substr(0,W)}(Qe,W);const Xt=Ni(ve,ge.MinusSign);return Hi(Qe,W,Xt,Q,re)}}function Vt(B,W,O=we.Format,Q=!1){return function(re,he){return function _t(B,W,O,Q,re,he){switch(O){case ze.Months:return function ht(B,W,O){const Q=(0,T.cg1)(B),he=Bi([Q[T.wAp.MonthsFormat],Q[T.wAp.MonthsStandalone]],W);return Bi(he,O)}(W,re,Q)[B.getMonth()];case ze.Days:return function tt(B,W,O){const Q=(0,T.cg1)(B),he=Bi([Q[T.wAp.DaysFormat],Q[T.wAp.DaysStandalone]],W);return Bi(he,O)}(W,re,Q)[B.getDay()];case ze.DayPeriods:const ve=B.getHours(),Qe=B.getMinutes();if(he){const Rt=function Xc(B){const W=(0,T.cg1)(B);return xa(W),(W[T.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Zt(Q):[Zt(Q[0]),Zt(Q[1])])}(W),yt=function pt(B,W,O){const Q=(0,T.cg1)(B);xa(Q);const he=Bi([Q[T.wAp.ExtraData][0],Q[T.wAp.ExtraData][1]],W)||[];return Bi(he,O)||[]}(W,re,Q),wt=Rt.findIndex(Pi=>{if(Array.isArray(Pi)){const[di,mi]=Pi,sa=ve>=di.hours&&Qe>=di.minutes,hr=ve0?Math.floor(re/60):Math.ceil(re/60);switch(B){case Ve.Short:return(re>=0?"+":"")+Hi(ve,2,he)+Hi(Math.abs(re%60),2,he);case Ve.ShortGMT:return"GMT"+(re>=0?"+":"")+Hi(ve,1,he);case Ve.Long:return"GMT"+(re>=0?"+":"")+Hi(ve,2,he)+":"+Hi(Math.abs(re%60),2,he);case Ve.Extended:return 0===Q?"Z":(re>=0?"+":"")+Hi(ve,2,he)+":"+Hi(Math.abs(re%60),2,he);default:throw new Error(`Unknown zone width "${B}"`)}}}function Ma(B){return Di(B.getFullYear(),B.getMonth(),B.getDate()+(4-B.getDay()))}function Xr(B,W=!1){return function(O,Q){let re;if(W){const he=new Date(O.getFullYear(),O.getMonth(),1).getDay()-1,ve=O.getDate();re=1+Math.floor((ve+he)/7)}else{const he=Ma(O),ve=function Nl(B){const W=Di(B,0,1).getDay();return Di(B,0,1+(W<=4?4:11)-W)}(he.getFullYear()),Qe=he.getTime()-ve.getTime();re=1+Math.round(Qe/6048e5)}return Hi(re,B,Ni(Q,ge.MinusSign))}}function ea(B,W=!1){return function(O,Q){return Hi(Ma(O).getFullYear(),B,Ni(Q,ge.MinusSign),W)}}const Vn={};function as(B,W){B=B.replace(/:/g,"");const O=Date.parse("Jan 01, 1970 00:00:00 "+B)/6e4;return isNaN(O)?W:O}function Zi(B){return B instanceof Date&&!isNaN(B.valueOf())}class ti{}let Mr=(()=>{class B extends ti{constructor(O){super(),this.locale=O}getPluralCategory(O,Q){switch(Kr(Q||this.locale)(O)){case _e.Zero:return"zero";case _e.One:return"one";case _e.Two:return"two";case _e.Few:return"few";case _e.Many:return"many";default:return"other"}}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(T.soG))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})();function Po(B,W){W=encodeURIComponent(W);for(const O of B.split(";")){const Q=O.indexOf("="),[re,he]=-1==Q?[O,""]:[O.slice(0,Q),O.slice(Q+1)];if(re.trim()===W)return decodeURIComponent(he)}return null}let Sa=(()=>{class B{constructor(O,Q,re,he){this._iterableDiffers=O,this._keyValueDiffers=Q,this._ngEl=re,this._renderer=he,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(O){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof O?O.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(O){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof O?O.split(/\s+/):O,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 O=this._iterableDiffer.diff(this._rawClass);O&&this._applyIterableChanges(O)}else if(this._keyValueDiffer){const O=this._keyValueDiffer.diff(this._rawClass);O&&this._applyKeyValueChanges(O)}}_applyKeyValueChanges(O){O.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),O.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),O.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(O){O.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),O.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(O){O&&(Array.isArray(O)||O instanceof Set?O.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(O).forEach(Q=>this._toggleClass(Q,!!O[Q])))}_removeClasses(O){O&&(Array.isArray(O)||O instanceof Set?O.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(O).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(O,Q){(O=O.trim())&&O.split(/\s+/g).forEach(re=>{Q?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),B})();class ss{constructor(W,O,Q,re){this.$implicit=W,this.ngForOf=O,this.index=Q,this.count=re}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 tn=(()=>{class B{constructor(O,Q,re){this._viewContainer=O,this._template=Q,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(O){this._ngForOf=O,this._ngForOfDirty=!0}set ngForTrackBy(O){this._trackByFn=O}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(O){O&&(this._template=O)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const O=this._ngForOf;!this._differ&&O&&(this._differ=this._differs.find(O).create(this.ngForTrackBy))}if(this._differ){const O=this._differ.diff(this._ngForOf);O&&this._applyChanges(O)}}_applyChanges(O){const Q=this._viewContainer;O.forEachOperation((re,he,ve)=>{if(null==re.previousIndex)Q.createEmbeddedView(this._template,new ss(re.item,this._ngForOf,-1,-1),null===ve?void 0:ve);else if(null==ve)Q.remove(null===he?void 0:he);else if(null!==he){const Qe=Q.get(he);Q.move(Qe,ve),Ea(Qe,re)}});for(let re=0,he=Q.length;re{Ea(Q.get(re.currentIndex),re)})}static ngTemplateContextGuard(O,Q){return!0}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),B})();function Ea(B,W){B.context.$implicit=W.item}let jn=(()=>{class B{constructor(O,Q){this._viewContainer=O,this._context=new ii,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){Ul("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){Ul("ngIfElse",O),this._elseTemplateRef=O,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(O,Q){return!0}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),B})();class ii{constructor(){this.$implicit=null,this.ngIf=null}}function Ul(B,W){if(W&&!W.createEmbeddedView)throw new Error(`${B} must be a TemplateRef, but received '${(0,T.AaK)(W)}'.`)}class Da{constructor(W,O){this._viewContainerRef=W,this._templateRef=O,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(W){W&&!this._created?this.create():!W&&this._created&&this.destroy()}}let _n=(()=>{class B{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(O){this._ngSwitch=O,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(O){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(O)}_matchCase(O){const Q=O==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(O){if(this._defaultViews&&O!==this._defaultUsed){this._defaultUsed=O;for(let Q=0;Q{class B{constructor(O,Q,re){this.ngSwitch=re,re._addCase(),this._view=new Da(O,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(_n,9))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),B})(),Ro=(()=>{class B{constructor(O,Q,re){re._addDefault(new Da(O,Q))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(_n,9))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngSwitchDefault",""]]}),B})(),os=(()=>{class B{constructor(O,Q,re){this._ngEl=O,this._differs=Q,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(O){this._ngStyle=O,!this._differ&&O&&(this._differ=this._differs.find(O).create())}ngDoCheck(){if(this._differ){const O=this._differ.diff(this._ngStyle);O&&this._applyChanges(O)}}_setStyle(O,Q){const[re,he]=O.split(".");null!=(Q=null!=Q&&he?`${Q}${he}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,re,Q):this._renderer.removeStyle(this._ngEl.nativeElement,re)}_applyChanges(O){O.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),O.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),O.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),B})(),Sr=(()=>{class B{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(O){if(O.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&O.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[T.TTD]}),B})();function Qn(B,W){return new T.vHH(2100,"")}class xf{createSubscription(W,O){return W.subscribe({next:O,error:Q=>{throw Q}})}dispose(W){W.unsubscribe()}onDestroy(W){W.unsubscribe()}}class Mf{createSubscription(W,O){return W.then(O,Q=>{throw Q})}dispose(W){}onDestroy(W){}}const Sf=new Mf,Ef=new xf;let $u=(()=>{class B{constructor(O){this._ref=O,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(O){return this._obj?O!==this._obj?(this._dispose(),this.transform(O)):this._latestValue:(O&&this._subscribe(O),this._latestValue)}_subscribe(O){this._obj=O,this._strategy=this._selectStrategy(O),this._subscription=this._strategy.createSubscription(O,Q=>this._updateLatestValue(O,Q))}_selectStrategy(O){if((0,T.QGY)(O))return Sf;if((0,T.F4k)(O))return Ef;throw Qn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(O,Q){O===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.sBO,16))},B.\u0275pipe=T.Yjl({name:"async",type:B,pure:!1}),B})();const dn=new T.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ne=(()=>{class B{constructor(O,Q){this.locale=O,this.defaultTimezone=Q}transform(O,Q="mediumDate",re,he){var ve;if(null==O||""===O||O!=O)return null;try{return St(O,Q,he||this.locale,null!==(ve=null!=re?re:this.defaultTimezone)&&void 0!==ve?ve:void 0)}catch(Qe){throw Qn()}}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.soG,16),T.Y36(dn,24))},B.\u0275pipe=T.Yjl({name:"date",type:B,pure:!0}),B})(),jt=(()=>{class B{}return B.\u0275fac=function(O){return new(O||B)},B.\u0275mod=T.oAB({type:B}),B.\u0275inj=T.cJS({providers:[{provide:ti,useClass:Mr}]}),B})();const ls="browser";function xn(B){return B===ls}let ra=(()=>{class B{}return B.\u0275prov=(0,T.Yz7)({token:B,providedIn:"root",factory:()=>new aa((0,T.LFG)(L),window)}),B})();class aa{constructor(W,O){this.document=W,this.window=O,this.offset=()=>[0,0]}setOffset(W){this.offset=Array.isArray(W)?()=>W:W}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(W){this.supportsScrolling()&&this.window.scrollTo(W[0],W[1])}scrollToAnchor(W){if(!this.supportsScrolling())return;const O=function Zs(B,W){const O=B.getElementById(W)||B.getElementsByName(W)[0];if(O)return O;if("function"==typeof B.createTreeWalker&&B.body&&(B.body.createShadowRoot||B.body.attachShadow)){const Q=B.createTreeWalker(B.body,NodeFilter.SHOW_ELEMENT);let re=Q.currentNode;for(;re;){const he=re.shadowRoot;if(he){const ve=he.getElementById(W)||he.querySelector(`[name="${W}"]`);if(ve)return ve}re=Q.nextNode()}}return null}(this.document,W);O&&(this.scrollToElement(O),O.focus())}setHistoryScrollRestoration(W){if(this.supportScrollRestoration()){const O=this.window.history;O&&O.scrollRestoration&&(O.scrollRestoration=W)}}scrollToElement(W){const O=W.getBoundingClientRect(),Q=O.left+this.window.pageXOffset,re=O.top+this.window.pageYOffset,he=this.offset();this.window.scrollTo(Q-he[0],re-he[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const W=Gl(this.window.history)||Gl(Object.getPrototypeOf(this.window.history));return!(!W||!W.writable&&!W.set)}catch(W){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(W){return!1}}}function Gl(B){return Object.getOwnPropertyDescriptor(B,"scrollRestoration")}class fi{}},520:(z,G,x)=>{"use strict";x.d(G,{TP:()=>Gt,eN:()=>ge,JF:()=>Bi,qT:()=>Be,WM:()=>Y,LE:()=>me,Zn:()=>we});var T=x(9808),i=x(5e3),E=x(1086),M=x(2916),S=x(1406),P=x(2198),L=x(4850);class V{}class U{}class Y{constructor(le){this.normalizedNames=new Map,this.lazyUpdate=null,le?this.lazyInit="string"==typeof le?()=>{this.headers=new Map,le.split("\n").forEach(oe=>{const De=oe.indexOf(":");if(De>0){const Se=oe.slice(0,De),Ve=Se.toLowerCase(),Ae=oe.slice(De+1).trim();this.maybeSetNormalizedName(Se,Ve),this.headers.has(Ve)?this.headers.get(Ve).push(Ae):this.headers.set(Ve,[Ae])}})}:()=>{this.headers=new Map,Object.keys(le).forEach(oe=>{let De=le[oe];const Se=oe.toLowerCase();"string"==typeof De&&(De=[De]),De.length>0&&(this.headers.set(Se,De),this.maybeSetNormalizedName(oe,Se))})}:this.headers=new Map}has(le){return this.init(),this.headers.has(le.toLowerCase())}get(le){this.init();const oe=this.headers.get(le.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(le){return this.init(),this.headers.get(le.toLowerCase())||null}append(le,oe){return this.clone({name:le,value:oe,op:"a"})}set(le,oe){return this.clone({name:le,value:oe,op:"s"})}delete(le,oe){return this.clone({name:le,value:oe,op:"d"})}maybeSetNormalizedName(le,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,le)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(le=>this.applyUpdate(le)),this.lazyUpdate=null))}copyFrom(le){le.init(),Array.from(le.headers.keys()).forEach(oe=>{this.headers.set(oe,le.headers.get(oe)),this.normalizedNames.set(oe,le.normalizedNames.get(oe))})}clone(le){const oe=new Y;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([le]),oe}applyUpdate(le){const oe=le.name.toLowerCase();switch(le.op){case"a":case"s":let De=le.value;if("string"==typeof De&&(De=[De]),0===De.length)return;this.maybeSetNormalizedName(le.name,oe);const Se=("a"===le.op?this.headers.get(oe):void 0)||[];Se.push(...De),this.headers.set(oe,Se);break;case"d":const Ve=le.value;if(Ve){let Ae=this.headers.get(oe);if(!Ae)return;Ae=Ae.filter(ze=>-1===Ve.indexOf(ze)),0===Ae.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,Ae)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(le){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>le(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ${encodeKey(le){return ne(le)}encodeValue(le){return ne(le)}decodeKey(le){return decodeURIComponent(le)}decodeValue(le){return decodeURIComponent(le)}}const te=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(Te){return encodeURIComponent(Te).replace(te,(le,oe)=>{var De;return null!==(De=ce[oe])&&void 0!==De?De:le})}function de(Te){return`${Te}`}class me{constructor(le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=le.encoder||new $,le.fromString){if(le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X(Te,le){const oe=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(Se=>{const Ve=Se.indexOf("="),[Ae,ze]=-1==Ve?[le.decodeKey(Se),""]:[le.decodeKey(Se.slice(0,Ve)),le.decodeValue(Se.slice(Ve+1))],St=oe.get(Ae)||[];St.push(ze),oe.set(Ae,St)}),oe}(le.fromString,this.encoder)}else le.fromObject?(this.map=new Map,Object.keys(le.fromObject).forEach(oe=>{const De=le.fromObject[oe];this.map.set(oe,Array.isArray(De)?De:[De])})):this.map=null}has(le){return this.init(),this.map.has(le)}get(le){this.init();const oe=this.map.get(le);return oe?oe[0]:null}getAll(le){return this.init(),this.map.get(le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(le,oe){return this.clone({param:le,value:oe,op:"a"})}appendAll(le){const oe=[];return Object.keys(le).forEach(De=>{const Se=le[De];Array.isArray(Se)?Se.forEach(Ve=>{oe.push({param:De,value:Ve,op:"a"})}):oe.push({param:De,value:Se,op:"a"})}),this.clone(oe)}set(le,oe){return this.clone({param:le,value:oe,op:"s"})}delete(le,oe){return this.clone({param:le,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(le=>{const oe=this.encoder.encodeKey(le);return this.map.get(le).map(De=>oe+"="+this.encoder.encodeValue(De)).join("&")}).filter(le=>""!==le).join("&")}clone(le){const oe=new me({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(le),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(le=>this.map.set(le,this.cloneFrom.map.get(le))),this.updates.forEach(le=>{switch(le.op){case"a":case"s":const oe=("a"===le.op?this.map.get(le.param):void 0)||[];oe.push(de(le.value)),this.map.set(le.param,oe);break;case"d":if(void 0===le.value){this.map.delete(le.param);break}{let De=this.map.get(le.param)||[];const Se=De.indexOf(de(le.value));-1!==Se&&De.splice(Se,1),De.length>0?this.map.set(le.param,De):this.map.delete(le.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(le,oe){return this.map.set(le,oe),this}get(le){return this.map.has(le)||this.map.set(le,le.defaultValue()),this.map.get(le)}delete(le){return this.map.delete(le),this}has(le){return this.map.has(le)}keys(){return this.map.keys()}}function It(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function kt(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Ke(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class xt{constructor(le,oe,De,Se){let Ve;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=le.toUpperCase(),function Ze(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Se?(this.body=void 0!==De?De:null,Ve=Se):Ve=De,Ve&&(this.reportProgress=!!Ve.reportProgress,this.withCredentials=!!Ve.withCredentials,Ve.responseType&&(this.responseType=Ve.responseType),Ve.headers&&(this.headers=Ve.headers),Ve.context&&(this.context=Ve.context),Ve.params&&(this.params=Ve.params)),this.headers||(this.headers=new Y),this.context||(this.context=new Be),this.params){const Ae=this.params.toString();if(0===Ae.length)this.urlWithParams=oe;else{const ze=oe.indexOf("?");this.urlWithParams=oe+(-1===ze?"?":zeHi.set(nt,le.setHeaders[nt]),Di)),le.setParams&&(Pt=Object.keys(le.setParams).reduce((Hi,nt)=>Hi.set(nt,le.setParams[nt]),Pt)),new xt(De,Se,Ae,{params:Pt,headers:Di,context:xr,reportProgress:St,responseType:Ve,withCredentials:ze})}}var mt=(()=>((mt=mt||{})[mt.Sent=0]="Sent",mt[mt.UploadProgress=1]="UploadProgress",mt[mt.ResponseHeader=2]="ResponseHeader",mt[mt.DownloadProgress=3]="DownloadProgress",mt[mt.Response=4]="Response",mt[mt.User=5]="User",mt))();class fe{constructor(le,oe=200,De="OK"){this.headers=le.headers||new Y,this.status=void 0!==le.status?le.status:oe,this.statusText=le.statusText||De,this.url=le.url||null,this.ok=this.status>=200&&this.status<300}}class _e extends fe{constructor(le={}){super(le),this.type=mt.ResponseHeader}clone(le={}){return new _e({headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class we extends fe{constructor(le={}){super(le),this.type=mt.Response,this.body=void 0!==le.body?le.body:null}clone(le={}){return new we({body:void 0!==le.body?le.body:this.body,headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class ye extends fe{constructor(le){super(le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${le.url||"(unknown url)"}`:`Http failure response for ${le.url||"(unknown url)"}: ${le.status} ${le.statusText}`,this.error=le.error||null}}function ke(Te,le){return{body:le,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let ge=(()=>{class Te{constructor(oe){this.handler=oe}request(oe,De,Se={}){let Ve;if(oe instanceof xt)Ve=oe;else{let St,Di;St=Se.headers instanceof Y?Se.headers:new Y(Se.headers),Se.params&&(Di=Se.params instanceof me?Se.params:new me({fromObject:Se.params})),Ve=new xt(oe,De,void 0!==Se.body?Se.body:null,{headers:St,context:Se.context,params:Di,reportProgress:Se.reportProgress,responseType:Se.responseType||"json",withCredentials:Se.withCredentials})}const Ae=(0,E.of)(Ve).pipe((0,S.b)(St=>this.handler.handle(St)));if(oe instanceof xt||"events"===Se.observe)return Ae;const ze=Ae.pipe((0,P.h)(St=>St instanceof we));switch(Se.observe||"body"){case"body":switch(Ve.responseType){case"arraybuffer":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&!(St.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return St.body}));case"blob":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&!(St.body instanceof Blob))throw new Error("Response is not a Blob.");return St.body}));case"text":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&"string"!=typeof St.body)throw new Error("Response is not a string.");return St.body}));default:return ze.pipe((0,L.U)(St=>St.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Se.observe}}`)}}delete(oe,De={}){return this.request("DELETE",oe,De)}get(oe,De={}){return this.request("GET",oe,De)}head(oe,De={}){return this.request("HEAD",oe,De)}jsonp(oe,De){return this.request("JSONP",oe,{params:(new me).append(De,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,De={}){return this.request("OPTIONS",oe,De)}patch(oe,De,Se={}){return this.request("PATCH",oe,ke(Se,De))}post(oe,De,Se={}){return this.request("POST",oe,ke(Se,De))}put(oe,De,Se={}){return this.request("PUT",oe,ke(Se,De))}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(V))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class Mt{constructor(le,oe){this.next=le,this.interceptor=oe}handle(le){return this.interceptor.intercept(le,this.next)}}const Gt=new i.OlP("HTTP_INTERCEPTORS");let yi=(()=>{class Te{intercept(oe,De){return De.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Cn=/^\)\]\}',?\n/;let Qr=(()=>{class Te{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(De=>{const Se=this.xhrFactory.build();if(Se.open(oe.method,oe.urlWithParams),oe.withCredentials&&(Se.withCredentials=!0),oe.headers.forEach((nt,qe)=>Se.setRequestHeader(nt,qe.join(","))),oe.headers.has("Accept")||Se.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const nt=oe.detectContentTypeHeader();null!==nt&&Se.setRequestHeader("Content-Type",nt)}if(oe.responseType){const nt=oe.responseType.toLowerCase();Se.responseType="json"!==nt?nt:"text"}const Ve=oe.serializeBody();let Ae=null;const ze=()=>{if(null!==Ae)return Ae;const nt=Se.statusText||"OK",qe=new Y(Se.getAllResponseHeaders()),An=function Ni(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(Se)||oe.url;return Ae=new _e({headers:qe,status:Se.status,statusText:nt,url:An}),Ae},St=()=>{let{headers:nt,status:qe,statusText:An,url:Vt}=ze(),_t=null;204!==qe&&(_t=void 0===Se.response?Se.responseText:Se.response),0===qe&&(qe=_t?200:0);let $n=qe>=200&&qe<300;if("json"===oe.responseType&&"string"==typeof _t){const Bn=_t;_t=_t.replace(Cn,"");try{_t=""!==_t?JSON.parse(_t):null}catch(vn){_t=Bn,$n&&($n=!1,_t={error:vn,text:_t})}}$n?(De.next(new we({body:_t,headers:nt,status:qe,statusText:An,url:Vt||void 0})),De.complete()):De.error(new ye({error:_t,headers:nt,status:qe,statusText:An,url:Vt||void 0}))},Di=nt=>{const{url:qe}=ze(),An=new ye({error:nt,status:Se.status||0,statusText:Se.statusText||"Unknown Error",url:qe||void 0});De.error(An)};let Pt=!1;const xr=nt=>{Pt||(De.next(ze()),Pt=!0);let qe={type:mt.DownloadProgress,loaded:nt.loaded};nt.lengthComputable&&(qe.total=nt.total),"text"===oe.responseType&&!!Se.responseText&&(qe.partialText=Se.responseText),De.next(qe)},Hi=nt=>{let qe={type:mt.UploadProgress,loaded:nt.loaded};nt.lengthComputable&&(qe.total=nt.total),De.next(qe)};return Se.addEventListener("load",St),Se.addEventListener("error",Di),Se.addEventListener("timeout",Di),Se.addEventListener("abort",Di),oe.reportProgress&&(Se.addEventListener("progress",xr),null!==Ve&&Se.upload&&Se.upload.addEventListener("progress",Hi)),Se.send(Ve),De.next({type:mt.Sent}),()=>{Se.removeEventListener("error",Di),Se.removeEventListener("abort",Di),Se.removeEventListener("load",St),Se.removeEventListener("timeout",Di),oe.reportProgress&&(Se.removeEventListener("progress",xr),null!==Ve&&Se.upload&&Se.upload.removeEventListener("progress",Hi)),Se.readyState!==Se.DONE&&Se.abort()}})}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(T.JF))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Ns=new i.OlP("XSRF_COOKIE_NAME"),Ys=new i.OlP("XSRF_HEADER_NAME");class Us{}let Ta=(()=>{class Te{constructor(oe,De,Se){this.doc=oe,this.platform=De,this.cookieName=Se,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(T.K0),i.LFG(i.Lbi),i.LFG(Ns))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Kr=(()=>{class Te{constructor(oe,De){this.tokenService=oe,this.headerName=De}intercept(oe,De){const Se=oe.url.toLowerCase();if("GET"===oe.method||"HEAD"===oe.method||Se.startsWith("http://")||Se.startsWith("https://"))return De.handle(oe);const Ve=this.tokenService.getToken();return null!==Ve&&!oe.headers.has(this.headerName)&&(oe=oe.clone({headers:oe.headers.set(this.headerName,Ve)})),De.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(Us),i.LFG(Ys))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),xa=(()=>{class Te{constructor(oe,De){this.backend=oe,this.injector=De,this.chain=null}handle(oe){if(null===this.chain){const De=this.injector.get(Gt,[]);this.chain=De.reduceRight((Se,Ve)=>new Mt(Se,Ve),this.backend)}return this.chain.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(U),i.LFG(i.zs3))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ko=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:Kr,useClass:yi}]}}static withOptions(oe={}){return{ngModule:Te,providers:[oe.cookieName?{provide:Ns,useValue:oe.cookieName}:[],oe.headerName?{provide:Ys,useValue:oe.headerName}:[]]}}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[Kr,{provide:Gt,useExisting:Kr,multi:!0},{provide:Us,useClass:Ta},{provide:Ns,useValue:"XSRF-TOKEN"},{provide:Ys,useValue:"X-XSRF-TOKEN"}]}),Te})(),Bi=(()=>{class Te{}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[ge,{provide:V,useClass:xa},Qr,{provide:U,useExisting:Qr}],imports:[[ko.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Te})()},5e3:(z,G,x)=>{"use strict";x.d(G,{deG:()=>oo,tb:()=>l_,AFp:()=>Ml,ip1:()=>o_,CZH:()=>xl,hGG:()=>Cx,z2F:()=>Iu,sBO:()=>ax,Sil:()=>Ls,_Vd:()=>Cu,EJc:()=>d_,SBq:()=>Au,qLn:()=>Fa,vpe:()=>ga,tBr:()=>ho,XFs:()=>pt,OlP:()=>si,zs3:()=>jr,ZZ4:()=>af,aQg:()=>sf,soG:()=>Kp,YKP:()=>bw,h0i:()=>Al,PXZ:()=>ex,R0b:()=>Ar,FiY:()=>Va,Lbi:()=>GT,g9A:()=>jw,n_E:()=>Su,Qsj:()=>vT,FYo:()=>cw,JOm:()=>Ms,q3G:()=>Fi,tp0:()=>po,Rgc:()=>Rc,dDg:()=>Ww,GfV:()=>uw,s_b:()=>Du,ifc:()=>Ve,eFA:()=>Jw,G48:()=>tC,Gpc:()=>$,f3M:()=>Wf,_c5:()=>dC,VLi:()=>KT,c2e:()=>c_,zSh:()=>qd,wAp:()=>ot,vHH:()=>ne,EiD:()=>Q_,mCW:()=>Th,qzn:()=>lc,JVY:()=>ZC,pB0:()=>QC,eBb:()=>JC,L6k:()=>$C,LAX:()=>G_,cg1:()=>gp,kL8:()=>hu,yhl:()=>Dd,dqk:()=>Pt,sIi:()=>bc,CqO:()=>_y,QGY:()=>au,F4k:()=>su,RDi:()=>Gl,AaK:()=>V,z3N:()=>Ts,qOj:()=>ct,TTD:()=>Kn,_Bn:()=>sw,xp6:()=>TA,uIk:()=>Jd,Tol:()=>Dy,Gre:()=>Nv,ekj:()=>dp,Suo:()=>Hw,Xpm:()=>Ma,lG2:()=>Re,Yz7:()=>ri,cJS:()=>Cn,oAB:()=>as,Yjl:()=>oi,Y36:()=>Ao,_UZ:()=>my,GkF:()=>gy,BQk:()=>nu,ynx:()=>eg,qZA:()=>Xm,TgZ:()=>Ac,EpF:()=>ru,n5z:()=>tc,Ikx:()=>mp,LFG:()=>Ji,$8M:()=>_d,$Z:()=>fy,NdJ:()=>ip,CRH:()=>IT,kcU:()=>Fo,O4$:()=>th,oxw:()=>by,ALo:()=>Ps,lcZ:()=>Oi,xi3:()=>Fg,Dn7:()=>Ng,Hsn:()=>rp,F$t:()=>ng,Q6J:()=>Ds,s9C:()=>ap,DdM:()=>Ii,VKq:()=>DT,WLB:()=>Ep,iGM:()=>Dw,MAs:()=>Xd,Jf7:()=>hA,CHM:()=>Wl,oJD:()=>am,LSH:()=>sm,Udp:()=>cp,WFA:()=>tg,d8E:()=>yg,YNc:()=>Kd,W1O:()=>kw,_uU:()=>ky,Oqu:()=>fg,hij:()=>hp,AsE:()=>mg,xDo:()=>Si,Gf:()=>Vp});var T=x(8929),i=x(2654),E=x(2916),M=x(6787),S=x(2474);function P(p){for(let f in p)if(p[f]===P)return f;throw Error("Could not find renamed property on target object.")}function L(p,f){for(const g in f)f.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=f[g])}function V(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(V).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const f=p.toString();if(null==f)return""+f;const g=f.indexOf("\n");return-1===g?f:f.substring(0,g)}function U(p,f){return null==p||""===p?null===f?"":f:null==f||""===f?p:p+" "+f}const Y=P({__forward_ref__:P});function $(p){return p.__forward_ref__=$,p.toString=function(){return V(this())},p}function X(p){return te(p)?p():p}function te(p){return"function"==typeof p&&p.hasOwnProperty(Y)&&p.__forward_ref__===$}class ne extends Error{constructor(f,g){super(function de(p,f){return`NG0${Math.abs(p)}${f?": "+f:""}`}(f,g)),this.code=f}}function me(p){return"string"==typeof p?p:null==p?"":String(p)}function Ie(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():me(p)}function kt(p,f){const g=f?` in ${f}`:"";throw new ne(-201,`No provider for ${Ie(p)} found${g}`)}function tt(p,f){null==p&&function ht(p,f,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${f} <=Actual]`))}(f,p,null,"!=")}function ri(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Cn(p){return{providers:p.providers||[],imports:p.imports||[]}}function Ni(p){return Qr(p,Ta)||Qr(p,xa)}function Qr(p,f){return p.hasOwnProperty(f)?p[f]:null}function Us(p){return p&&(p.hasOwnProperty(Kr)||p.hasOwnProperty(Xc))?p[Kr]:null}const Ta=P({\u0275prov:P}),Kr=P({\u0275inj:P}),xa=P({ngInjectableDef:P}),Xc=P({ngInjectorDef:P});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 ko;function Zt(p){const f=ko;return ko=p,f}function ln(p,f,g){const _=Ni(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&pt.Optional?null:void 0!==f?f:void kt(V(p),"Injector")}function le(p){return{toString:p}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Ve=(()=>{return(p=Ve||(Ve={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",Ve;var p})();const Ae="undefined"!=typeof globalThis&&globalThis,ze="undefined"!=typeof window&&window,St="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Pt=Ae||"undefined"!=typeof global&&global||ze||St,nt={},qe=[],An=P({\u0275cmp:P}),Vt=P({\u0275dir:P}),_t=P({\u0275pipe:P}),$n=P({\u0275mod:P}),Bn=P({\u0275fac:P}),vn=P({__NG_ELEMENT_ID__:P});let Nl=0;function Ma(p){return le(()=>{const g={},_={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:p.selectors||qe,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||Ve.Emulated,id:"c",styles:p.styles||qe,_:null,setInput:null,schemas:p.schemas||null,tView:null},y=p.directives,v=p.features,D=p.pipes;return _.id+=Nl++,_.inputs=w(p.inputs,g),_.outputs=w(p.outputs),v&&v.forEach(k=>k(_)),_.directiveDefs=y?()=>("function"==typeof y?y():y).map(ea):null,_.pipeDefs=D?()=>("function"==typeof D?D():D).map(Vn):null,_})}function ea(p){return Zi(p)||function Ge(p){return p[Vt]||null}(p)}function Vn(p){return function Jn(p){return p[_t]||null}(p)}const rs={};function as(p){return le(()=>{const f={type:p.type,bootstrap:p.bootstrap||qe,declarations:p.declarations||qe,imports:p.imports||qe,exports:p.exports||qe,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null};return null!=p.id&&(rs[p.id]=p.type),f})}function w(p,f){if(null==p)return nt;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,f&&(f[y]=v)}return g}const Re=Ma;function oi(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,onDestroy:p.type.prototype.ngOnDestroy||null}}function Zi(p){return p[An]||null}function gt(p,f){const g=p[$n]||null;if(!g&&!0===f)throw new Error(`Type ${V(p)} does not have '\u0275mod' property.`);return g}function _n(p){return Array.isArray(p)&&"object"==typeof p[1]}function Fn(p){return Array.isArray(p)&&!0===p[1]}function Ro(p){return 0!=(8&p.flags)}function Ha(p){return 2==(2&p.flags)}function ia(p){return 1==(1&p.flags)}function Nn(p){return null!==p.template}function os(p){return 0!=(512&p[2])}function Tn(p,f){return p.hasOwnProperty(Bn)?p[Bn]:null}class ur{constructor(f,g,_){this.previousValue=f,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Kn(){return Ws}function Ws(p){return p.type.prototype.ngOnChanges&&(p.setInput=nn),dt}function dt(){const p=ls(this),f=null==p?void 0:p.current;if(f){const g=p.previous;if(g===nt)p.previous=f;else for(let _ in f)g[_]=f[_];p.current=null,this.ngOnChanges(f)}}function nn(p,f,g,_){const y=ls(p)||function Wt(p,f){return p[jt]=f}(p,{previous:nt,current:null}),v=y.current||(y.current={}),D=y.previous,k=this.declaredInputs[g],R=D[k];v[k]=new ur(R&&R.currentValue,f,D===nt),p[_]=f}Kn.ngInherit=!0;const jt="__ngSimpleChanges__";function ls(p){return p[jt]||null}let aa;function Gl(p){aa=p}function Zs(){return void 0!==aa?aa:"undefined"!=typeof document?document:void 0}function fi(p){return!!p.listen}const B={createRenderer:(p,f)=>Zs()};function O(p){for(;Array.isArray(p);)p=p[0];return p}function he(p,f){return O(f[p])}function ve(p,f){return O(f[p.index])}function Xt(p,f){return p.data[f]}function Rt(p,f){return p[f]}function yt(p,f){const g=f[p];return _n(g)?g:g[0]}function wt(p){return 4==(4&p[2])}function Pi(p){return 128==(128&p[2])}function mi(p,f){return null==f?null:p[f]}function sa(p){p[18]=0}function hr(p,f){p[5]+=f;let g=p,_=p[3];for(;null!==_&&(1===f&&1===g[5]||-1===f&&0===g[5]);)_[5]+=f,g=_,_=_[3]}const rt={lFrame:Pa(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ku(){return rt.bindingsEnabled}function Me(){return rt.lFrame.lView}function Ye(){return rt.lFrame.tView}function Wl(p){return rt.lFrame.contextLView=p,p[8]}function gi(){let p=id();for(;null!==p&&64===p.type;)p=p.parent;return p}function id(){return rt.lFrame.currentTNode}function Dr(p,f){const g=rt.lFrame;g.currentTNode=p,g.isParent=f}function Zl(){return rt.lFrame.isParent}function nd(){rt.lFrame.isParent=!1}function Oo(){return rt.isInCheckNoChangesMode}function Bo(p){rt.isInCheckNoChangesMode=p}function bn(){const p=rt.lFrame;let f=p.bindingRootIndex;return-1===f&&(f=p.bindingRootIndex=p.tView.bindingStartIndex),f}function ui(){return rt.lFrame.bindingIndex}function Qs(){return rt.lFrame.bindingIndex++}function zn(p){const f=rt.lFrame,g=f.bindingIndex;return f.bindingIndex=f.bindingIndex+p,g}function kf(p,f){const g=rt.lFrame;g.bindingIndex=g.bindingRootIndex=p,Ks(f)}function Ks(p){rt.lFrame.currentDirectiveIndex=p}function Xs(p){const f=rt.lFrame.currentDirectiveIndex;return-1===f?null:p[f]}function ad(){return rt.lFrame.currentQueryIndex}function us(p){rt.lFrame.currentQueryIndex=p}function hs(p){const f=p[1];return 2===f.type?f.declTNode:1===f.type?p[6]:null}function Lt(p,f,g){if(g&pt.SkipSelf){let y=f,v=p;for(;!(y=y.parent,null!==y||g&pt.Host||(y=hs(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;f=y,p=v}const _=rt.lFrame=$l();return _.currentTNode=f,_.lView=p,!0}function kr(p){const f=$l(),g=p[1];rt.lFrame=f,f.currentTNode=g.firstChild,f.lView=p,f.tView=g,f.contextLView=p,f.bindingIndex=g.bindingStartIndex,f.inI18n=!1}function $l(){const p=rt.lFrame,f=null===p?null:p.child;return null===f?Pa(p):f}function Pa(p){const f={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:p,child:null,inI18n:!1};return null!==p&&(p.child=f),f}function eh(){const p=rt.lFrame;return rt.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const sd=eh;function jo(){const p=eh();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Ui(){return rt.lFrame.selectedIndex}function oa(p){rt.lFrame.selectedIndex=p}function hi(){const p=rt.lFrame;return Xt(p.tView,p.selectedIndex)}function th(){rt.lFrame.currentNamespace="svg"}function Fo(){!function ih(){rt.lFrame.currentNamespace=null}()}function No(p,f){for(let g=f.directiveStart,_=f.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:k,ngAfterViewInit:R,ngAfterViewChecked:N,ngOnDestroy:q}=v;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),N&&((p.viewHooks||(p.viewHooks=[])).push(g,N),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,N)),null!=q&&(p.destroyHooks||(p.destroyHooks=[])).push(g,q)}}function Kl(p,f,g){nh(p,f,3,g)}function Ra(p,f,g,_){(3&p[2])===g&&nh(p,f,g,_)}function Xl(p,f){let g=p[2];(3&g)===f&&(g&=2047,g+=1,p[2]=g)}function nh(p,f,g,_){const v=null!=_?_:-1,D=f.length-1;let k=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else f[R]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===f){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class Yo{constructor(f,g,_){this.factory=f,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function yn(p,f,g){const _=fi(p);let y=0;for(;yf){D=v-1;break}}}for(;v>16}(p),_=f;for(;g>0;)_=_[15],g--;return _}let hd=!0;function Ia(p){const f=hd;return hd=p,f}let Uo=0;function Oa(p,f){const g=ca(p,f);if(-1!==g)return g;const _=f[1];_.firstCreatePass&&(p.injectorIndex=f.length,bs(_.data,p),bs(f,null),bs(_.blueprint,null));const y=ys(p,f),v=p.injectorIndex;if(gs(y)){const D=_s(y),k=La(y,f),R=k[1].data;for(let N=0;N<8;N++)f[v+N]=k[D+N]|R[D+N]}return f[v+8]=y,v}function bs(p,f){p.push(0,0,0,0,0,0,0,0,f)}function ca(p,f){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===f[p.injectorIndex+8]?-1:p.injectorIndex}function ys(p,f){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=f;for(;null!==y;){const v=y[1],D=v.type;if(_=2===D?v.declTNode:1===D?y[6]:null,null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function ws(p,f,g){!function to(p,f,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(vn)&&(_=g[vn]),null==_&&(_=g[vn]=Uo++);const y=255&_;f.data[p+(y>>5)]|=1<=0?255&f:If:f}(g);if("function"==typeof v){if(!Lt(f,p,_))return _&pt.Host?pd(y,g,_):fd(f,g,_,y);try{const D=v(_);if(null!=D||_&pt.Optional)return D;kt(g)}finally{sd()}}else if("number"==typeof v){let D=null,k=ca(p,f),R=-1,N=_&pt.Host?f[16][6]:null;for((-1===k||_&pt.SkipSelf)&&(R=-1===k?ys(p,f):f[k+8],-1!==R&&dh(_,!1)?(D=f[1],k=_s(R),f=La(R,f)):k=-1);-1!==k;){const q=f[1];if(ch(v,k,q.data)){const ee=gd(k,f,g,D,_,N);if(ee!==zo)return ee}R=f[k+8],-1!==R&&dh(_,f[1].data[k+8]===N)&&ch(v,k,f)?(D=q,k=_s(R),f=La(R,f)):k=-1}}}return fd(f,g,_,y)}const zo={};function If(){return new ro(gi(),Me())}function gd(p,f,g,_,y,v){const D=f[1],k=D.data[p+8],q=ec(k,D,g,null==_?Ha(k)&&hd:_!=D&&0!=(3&k.type),y&pt.Host&&v===k);return null!==q?no(f,D,q,k):zo}function ec(p,f,g,_,y){const v=p.providerIndexes,D=f.data,k=1048575&v,R=p.directiveStart,q=v>>20,se=y?k+q:p.directiveEnd;for(let ue=_?k:k+q;ue=R&&Ce.type===g)return ue}if(y){const ue=D[R];if(ue&&Nn(ue)&&ue.type===g)return R}return null}function no(p,f,g,_){let y=p[g];const v=f.data;if(function rh(p){return p instanceof Yo}(y)){const D=y;D.resolving&&function Be(p,f){const g=f?`. Dependency path: ${f.join(" > ")} > ${p}`:"";throw new ne(-200,`Circular dependency in DI detected for ${p}${g}`)}(Ie(v[g]));const k=Ia(D.canSeeViewProviders);D.resolving=!0;const R=D.injectImpl?Zt(D.injectImpl):null;Lt(p,_,pt.Default);try{y=p[g]=D.factory(void 0,v,p,_),f.firstCreatePass&&g>=_.directiveStart&&function ps(p,f,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=f.type.prototype;if(_){const D=Ws(f);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],f)}finally{null!==R&&Zt(R),Ia(k),D.resolving=!1,sd()}}return y}function ch(p,f,g){return!!(g[f+(p>>5)]&1<{const f=p.prototype.constructor,g=f[Bn]||Pr(f),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[Bn]||Pr(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function Pr(p){return te(p)?()=>{const f=Pr(X(p));return f&&f()}:Tn(p)}function _d(p){return function io(p,f){if("class"===f)return p.classes;if("style"===f)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(ld(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===f)return g[y+1];y+=2}}}return null}(gi(),p)}const ao="__parameters__";function Rr(p,f,g){return le(()=>{const _=function bd(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(f);function y(...v){if(this instanceof y)return _.apply(this,v),this;const D=new y(...v);return k.annotation=D,k;function k(R,N,q){const ee=R.hasOwnProperty(ao)?R[ao]:Object.defineProperty(R,ao,{value:[]})[ao];for(;ee.length<=q;)ee.push(null);return(ee[q]=ee[q]||[]).push(D),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class si{constructor(f,g){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=ri({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const oo=new si("AnalyzeForEntryComponents");function tr(p,f){void 0===f&&(f=p);for(let g=0;gArray.isArray(g)?mr(g,f):f(g))}function qo(p,f,g){f>=p.length?p.push(g):p.splice(f,0,g)}function Go(p,f){return f>=p.length-1?p.pop():p.splice(f,1)[0]}function co(p,f){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function nc(p,f,g,_){let y=p.length;if(y==f)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>f;)p[y]=p[y-2],y--;p[f]=g,p[f+1]=_}}(p,_,f,g)),_}function Cd(p,f){const g=Cs(p,f);if(g>=0)return p[1|g]}function Cs(p,f){return function Wo(p,f,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),D=p[v<f?y=v:_=v+1}return~(y<({token:p})),-1),Va=$o(Rr("Optional"),8),po=$o(Rr("SkipSelf"),4);let Ot,ae;function H(p){var f;return(null===(f=function C(){if(void 0===Ot&&(Ot=null,Pt.trustedTypes))try{Ot=Pt.trustedTypes.createPolicy("angular",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return Ot}())||void 0===f?void 0:f.createHTML(p))||p}function et(p){var f;return(null===(f=function be(){if(void 0===ae&&(ae=null,Pt.trustedTypes))try{ae=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return ae}())||void 0===f?void 0:f.createHTML(p))||p}class Ci{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Br extends Ci{getTypeName(){return"HTML"}}class Vr extends Ci{getTypeName(){return"Style"}}class mM extends Ci{getTypeName(){return"Script"}}class Qo extends Ci{getTypeName(){return"URL"}}class q_ extends Ci{getTypeName(){return"ResourceURL"}}function Ts(p){return p instanceof Ci?p.changingThisBreaksApplicationSecurity:p}function lc(p,f){const g=Dd(p);if(null!=g&&g!==f){if("ResourceURL"===g&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===f}function Dd(p){return p instanceof Ci&&p.getTypeName()||null}function ZC(p){return new Br(p)}function $C(p){return new Vr(p)}function JC(p){return new mM(p)}function G_(p){return new Qo(p)}function QC(p){return new q_(p)}class KC{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const g=(new window.DOMParser).parseFromString(H(f),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(f):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class Kf{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(f){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=H(f),g;const _=this.inertDocument.createElement("body");return _.innerHTML=H(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(f){const g=f.attributes;for(let y=g.length-1;0Th(f.trim())).join(", ")),this.buf.push(" ",D,'="',J_(R),'"')}var p;return this.buf.push(">"),!0}endElement(f){const g=f.nodeName.toLowerCase();tm.hasOwnProperty(g)&&!Xf.hasOwnProperty(g)&&(this.buf.push(""))}chars(f){this.buf.push(J_(f))}checkClobberedElement(f,g){if(g&&(f.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return g}}const aA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nm=/([^\#-~ |!])/g;function J_(p){return p.replace(/&/g,"&").replace(aA,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(nm,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let kd;function Q_(p,f){let g=null;try{kd=kd||function W_(p){const f=new Kf(p);return function XC(){try{return!!(new window.DOMParser).parseFromString(H(""),"text/html")}catch(p){return!1}}()?new KC(f):f}(p);let _=f?String(f):"";g=kd.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=kd.getInertBodyElement(_)}while(_!==v);return H((new im).sanitizeChildren(rm(g)||g))}finally{if(g){const _=rm(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function rm(p){return"content"in p&&function xh(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var Fi=(()=>((Fi=Fi||{})[Fi.NONE=0]="NONE",Fi[Fi.HTML=1]="HTML",Fi[Fi.STYLE=2]="STYLE",Fi[Fi.SCRIPT=3]="SCRIPT",Fi[Fi.URL=4]="URL",Fi[Fi.RESOURCE_URL=5]="RESOURCE_URL",Fi))();function am(p){const f=Ko();return f?et(f.sanitize(Fi.HTML,p)||""):lc(p,"HTML")?et(Ts(p)):Q_(Zs(),me(p))}function sm(p){const f=Ko();return f?f.sanitize(Fi.URL,p)||"":lc(p,"URL")?Ts(p):Th(me(p))}function Ko(){const p=Me();return p&&p[12]}const Je="__ngContext__";function En(p,f){p[Je]=f}function Rd(p){const f=function Pd(p){return p[Je]||null}(p);return f?Array.isArray(f)?f:f.lView:null}function Od(p){return p.ngOriginalError}function Eh(p,...f){p.error(...f)}class Fa{constructor(){this._console=console}handleError(f){const g=this._findOriginalError(f),_=function oA(p){return p&&p.ngErrorLogger||Eh}(f);_(this._console,"ERROR",f),g&&_(this._console,"ORIGINAL ERROR",g)}_findOriginalError(f){let g=f&&Od(f);for(;g&&Od(g);)g=Od(g);return g||null}}const uA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function hA(p){return p.ownerDocument.defaultView}function Na(p){return p instanceof Function?p():p}var Ms=(()=>((Ms=Ms||{})[Ms.Important=1]="Important",Ms[Ms.DashCase=2]="DashCase",Ms))();function ob(p,f){return undefined(p,f)}function gr(p){const f=p[3];return Fn(f)?f[3]:f}function lb(p){return mA(p[13])}function cb(p){return mA(p[4])}function mA(p){for(;null!==p&&!Fn(p);)p=p[4];return p}function Vd(p,f,g,_,y){if(null!=_){let v,D=!1;Fn(_)?v=_:_n(_)&&(D=!0,_=_[0]);const k=O(_);0===p&&null!==g?null==y?kh(f,g,k):uc(f,g,k,y||null,!0):1===p&&null!==g?uc(f,g,k,y||null,!0):2===p?function Fd(p,f,g){const _=rn(p,f);_&&function DM(p,f,g,_){fi(p)?p.removeChild(f,g,_):f.removeChild(g)}(p,_,f,g)}(f,k,D):3===p&&f.destroyNode(k),null!=v&&function HM(p,f,g,_,y){const v=g[7];v!==O(g)&&Vd(f,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=Go(p,10+f);!function pm(p,f){_r(p,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);const D=v[19];null!==D&&D.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function il(p,f){if(!(256&f[2])){const g=f[11];fi(g)&&g.destroyNode&&_r(p,f,g,3,null,null),function SM(p){let f=p[13];if(!f)return ub(p[1],p);for(;f;){let g=null;if(_n(f))g=f[13];else{const _=f[10];_&&(g=_)}if(!g){for(;f&&!f[4]&&f!==p;)_n(f)&&ub(f[1],f),f=f[3];null===f&&(f=p),_n(f)&&ub(f[1],f),g=f&&f[4]}f=g}}(f)}}function ub(p,f){if(!(256&f[2])){f[2]&=-129,f[2]|=256,function bA(p,f){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=N]():_[y=-N].unsubscribe(),v+=2}else{const D=_[y=g[v+1]];g[v].call(D)}if(null!==_){for(let v=y+1;v<_.length;v++)_[v]();f[7]=null}}(p,f),1===f[1].type&&fi(f[11])&&f[11].destroy();const g=f[17];if(null!==g&&Fn(f[3])){g!==f[3]&&Ua(g,f);const _=f[19];null!==_&&_.detachView(p)}}}function hb(p,f,g){return function pb(p,f,g){let _=f;for(;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===Ve.None||y===Ve.Emulated)return null}return ve(_,g)}(p,f.parent,g)}function uc(p,f,g,_,y){fi(p)?p.insertBefore(f,g,_,y):f.insertBefore(g,_,y)}function kh(p,f,g){fi(p)?p.appendChild(f,g):f.appendChild(g)}function fm(p,f,g,_,y){null!==_?uc(p,f,g,_,y):kh(p,f,g)}function rn(p,f){return fi(p)?p.parentNode(f):f.parentNode}function fb(p,f,g){return wA(p,f,g)}let wA=function mb(p,f,g){return 40&p.type?ve(p,g):null};function an(p,f,g,_){const y=hb(p,_,f),v=f[11],k=fb(_.parent||f[6],_,f);if(null!=y)if(Array.isArray(g))for(let R=0;Rv?"":y[ee+1].toLowerCase();const ue=8&_?se:null;if(ue&&-1!==_b(ue,N,0)||2&_&&N!==se){if(qa(_))return!1;D=!0}}}}else{if(!D&&!qa(_)&&!qa(R))return!1;if(D&&qa(R))continue;D=!1,_=R|1&_}}return qa(_)||D}function qa(p){return 0==(1&p)}function IM(p,f,g,_){if(null===f)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!qa(D)&&(f+=Rh(v,y),y=""),_=D,v=v||!qa(_);g++}return""!==y&&(f+=Rh(v,y)),f}const Et={};function TA(p){xA(Ye(),Me(),Ui()+p,Oo())}function xA(p,f,g,_){if(!_)if(3==(3&f[2])){const v=p.preOrderCheckHooks;null!==v&&Kl(f,v,g)}else{const v=p.preOrderHooks;null!==v&&Ra(f,v,0,g)}oa(g)}function gm(p,f){return p<<17|f<<2}function Ga(p){return p>>17&32767}function yb(p){return 2|p}function go(p){return(131068&p)>>2}function wb(p,f){return-131069&p|f<<2}function Cb(p){return 1|p}function BA(p,f){const g=p.contentQueries;if(null!==g)for(let _=0;_20&&xA(p,f,20,Oo()),g(_,y)}finally{oa(v)}}function jA(p,f,g){if(Ro(f)){const y=f.directiveEnd;for(let v=f.directiveStart;v0;){const g=p[--f];if("number"==typeof g&&g<0)return g}return 0})(k)!=R&&k.push(R),k.push(_,y,D)}}function vm(p,f){null!==p.hostBindings&&p.hostBindings(1,f)}function Tm(p,f){f.flags|=2,(p.components||(p.components=[])).push(f.index)}function Bb(p,f,g){if(g){if(f.exportAs)for(let _=0;_0&&Bh(g)}}function Bh(p){for(let _=lb(p);null!==_;_=cb(_))for(let y=10;y<_.length;y++){const v=_[y];if(1024&v[2]){const D=v[1];Ud(D,v,D.template,v[8])}else v[5]>0&&Bh(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&Bh(y)}}function JA(p,f){const g=yt(f,p),_=g[1];(function QA(p,f){for(let g=f.length;gPromise.resolve(null))();function Em(p){return p[7]||(p[7]=[])}function jh(p){return p.cleanup||(p.cleanup=[])}function zd(p,f,g){return(null===p||Nn(p))&&(g=function Q(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[f.index])),g[11]}function Dm(p,f){const g=p[9],_=g?g.get(Fa,null):null;_&&_.handleError(f)}function zb(p,f,g,_,y){for(let v=0;vthis.processProvider(k,f,g)),mr([f],k=>this.processInjectorType(k,[],v)),this.records.set(Fh,gc(void 0,this));const D=this.records.get(qd);this.scope=null!=D?D.value:null,this.source=y||("object"==typeof f?null:V(f))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(f=>f.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(f,g=Lr,_=pt.Default){this.assertNotDestroyed();const y=Ir(this),v=Zt(void 0);try{if(!(_&pt.SkipSelf)){let k=this.records.get(f);if(void 0===k){const R=function Lm(p){return"function"==typeof p||"object"==typeof p&&p instanceof si}(f)&&Ni(f);k=R&&this.injectableDefInScope(R)?gc(Rm(f),mc):null,this.records.set(f,k)}if(null!=k)return this.hydrate(f,k)}return(_&pt.Self?dl():this.parent).get(f,g=_&pt.Optional&&g===Lr?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[ac]=D[ac]||[]).unshift(V(f)),y)throw D;return function U_(p,f,g,_){const y=p[ac];throw f[sc]&&y.unshift(f[sc]),p.message=function wh(p,f,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.substr(2):p;let y=V(f);if(Array.isArray(f))y=f.map(V).join(" -> ");else if("object"==typeof f){let v=[];for(let D in f)if(f.hasOwnProperty(D)){let k=f[D];v.push(D+":"+("string"==typeof k?JSON.stringify(k):V(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(qf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[ac]=null,p}(D,f,"R3InjectorError",this.source)}throw D}finally{Zt(v),Ir(y)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(f=>this.get(f))}toString(){const f=[];return this.records.forEach((_,y)=>f.push(V(y))),`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(f,g,_){if(!(f=X(f)))return!1;let y=Us(f);const v=null==y&&f.ngModule||void 0,D=void 0===v?f:v,k=-1!==_.indexOf(D);if(void 0!==v&&(y=Us(v)),null==y)return!1;if(null!=y.imports&&!k){let q;_.push(D);try{mr(y.imports,ee=>{this.processInjectorType(ee,g,_)&&(void 0===q&&(q=[]),q.push(ee))})}finally{}if(void 0!==q)for(let ee=0;eethis.processProvider(Ce,se,ue||qe))}}this.injectorDefTypes.add(D);const R=Tn(D)||(()=>new D);this.records.set(D,gc(R,mc));const N=y.providers;if(null!=N&&!k){const q=f;mr(N,ee=>this.processProvider(ee,q,N))}return void 0!==v&&void 0!==f.providers}processProvider(f,g,_){let y=_c(f=X(f))?f:X(f&&f.provide);const v=function iv(p,f,g){return Zb(p)?gc(void 0,p.useValue):gc(Wb(p),mc)}(f);if(_c(f)||!0!==f.multi)this.records.get(y);else{let D=this.records.get(y);D||(D=gc(void 0,mc,!0),D.factory=()=>Td(D.multi),this.records.set(y,D)),y=f,D.multi.push(f)}this.records.set(y,v)}hydrate(f,g){return g.value===mc&&(g.value=Gb,g.value=g.factory()),"object"==typeof g.value&&g.value&&function av(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(f){if(!f.providedIn)return!1;const g=X(f.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function Rm(p){const f=Ni(p),g=null!==f?f.factory:Tn(p);if(null!==g)return g;if(p instanceof si)throw new ne(204,!1);if(p instanceof Function)return function tv(p){const f=p.length;if(f>0)throw co(f,"?"),new ne(204,!1);const g=function Ns(p){const f=p&&(p[Ta]||p[xa]);if(f){const g=function Ys(p){if(p.hasOwnProperty("name"))return p.name;const f=(""+p).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),f}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ne(204,!1)}function Wb(p,f,g){let _;if(_c(p)){const y=X(p);return Tn(y)||Rm(y)}if(Zb(p))_=()=>X(p.useValue);else if(function Jb(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Td(p.deps||[]));else if(function $b(p){return!(!p||!p.useExisting)}(p))_=()=>Ji(X(p.useExisting));else{const y=X(p&&(p.useClass||p.provide));if(!function rv(p){return!!p.deps}(p))return Tn(y)||Rm(y);_=()=>new y(...Td(p.deps))}return _}function gc(p,f,g=!1){return{factory:p,value:f,multi:g?[]:void 0}}function Zb(p){return null!==p&&"object"==typeof p&&Gf in p}function _c(p){return"function"==typeof p}let jr=(()=>{class p{static create(g,_){var y;if(Array.isArray(g))return XA({name:""},_,g,"");{const v=null!==(y=g.name)&&void 0!==y?y:"";return XA({name:v},g.parent,g.providers,v)}}}return p.THROW_IF_NOT_FOUND=Lr,p.NULL=new km,p.\u0275prov=ri({token:p,providedIn:"any",factory:()=>Ji(Fh)}),p.__NG_ELEMENT_ID__=-1,p})();function bv(p,f){No(Rd(p)[1],gi())}function ct(p){let f=function ei(p){return Object.getPrototypeOf(p.prototype).constructor}(p.type),g=!0;const _=[p];for(;f;){let y;if(Nn(p))y=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new ne(903,"");y=f.\u0275dir}if(y){if(g){_.push(y);const D=p;D.inputs=qh(p.inputs),D.declaredInputs=qh(p.declaredInputs),D.outputs=qh(p.outputs);const k=y.hostBindings;k&&ul(p,k);const R=y.viewQuery,N=y.contentQueries;if(R&&He(p,R),N&&Dt(p,N),L(p.inputs,y.inputs),L(p.declaredInputs,y.declaredInputs),L(p.outputs,y.outputs),Nn(y)&&y.data.animation){const q=p.data;q.animation=(q.animation||[]).concat(y.data.animation)}}const v=y.features;if(v)for(let D=0;D=0;_--){const y=p[_];y.hostVars=f+=y.hostVars,y.hostAttrs=ms(y.hostAttrs,g=ms(g,y.hostAttrs))}}(_)}function qh(p){return p===nt?{}:p===qe?[]:p}function He(p,f){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{f(_,y),g(_,y)}:f}function Dt(p,f){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{f(_,y,v),g(_,y,v)}:f}function ul(p,f){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{f(_,y),g(_,y)}:f}let jm=null;function Dn(){if(!jm){const p=Pt.Symbol;if(p&&p.iterator)jm=p.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(O(Nt[_.index])):_.index;if(fi(g)){let Nt=null;if(!k&&R&&(Nt=function w0(p,f,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vR?k[R]:null}"string"==typeof D&&(v+=2)}return null}(p,f,y,_.index)),null!==Nt)(Nt.__ngLastListenerFn__||Nt).__ngNextListenerFn__=v,Nt.__ngLastListenerFn__=v,ue=!1;else{v=ig(_,f,ee,v,!1);const ni=g.listen(We,y,v);se.push(v,ni),q&&q.push(y,it,xe,xe+1)}}else v=ig(_,f,ee,v,!0),We.addEventListener(y,v,D),se.push(v),q&&q.push(y,it,xe,D)}else v=ig(_,f,ee,v,!1);const Ce=_.outputs;let Le;if(ue&&null!==Ce&&(Le=Ce[y])){const Fe=Le.length;if(Fe)for(let We=0;We0;)f=f[15],p--;return f}(p,rt.lFrame.contextLView))[8]}(p)}function Dv(p,f){let g=null;const _=function OM(p){const f=p.attrs;if(null!=f){const g=f.indexOf(5);if(0==(1&g))return f[g+1]}return null}(p);for(let y=0;y=0}const sn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lg(p){return p.substring(sn.key,sn.keyEnd)}function sp(p,f){const g=sn.textEnd;return g===f?-1:(f=sn.keyEnd=function cg(p,f,g){for(;f32;)f++;return f}(p,sn.key=f,g),vc(p,f,g))}function vc(p,f,g){for(;f=0;g=sp(f,g))Gn(p,lg(f),!0)}function zr(p,f,g,_){const y=Me(),v=Ye(),D=zn(2);v.firstUpdatePass&&lu(v,p,D,_),f!==Et&&Ri(y,D,f)&&hg(v,v.data[Ui()],y,y[11],p,y[D+1]=function Fv(p,f){return null==p||("string"==typeof f?p+=f:"object"==typeof p&&(p=V(Ts(p)))),p}(f,g),_,D)}function pa(p,f,g,_){const y=Ye(),v=zn(2);y.firstUpdatePass&&lu(y,null,v,_);const D=Me();if(g!==Et&&Ri(D,v,g)){const k=y.data[Ui()];if(pg(k,_)&&!dg(y,v)){let R=_?k.classesWithoutHost:k.stylesWithoutHost;null!==R&&(g=U(R,g||"")),iu(y,k,D,g,_)}else!function jv(p,f,g,_,y,v,D,k){y===Et&&(y=qe);let R=0,N=0,q=0=p.expandoStartIndex}function lu(p,f,g,_){const y=p.data;if(null===y[g+1]){const v=y[Ui()],D=dg(p,g);pg(v,_)&&null===f&&!D&&(f=!1),f=function Iv(p,f,g,_){const y=Xs(p);let v=_?f.residualClasses:f.residualStyles;if(null===y)0===(_?f.classBindings:f.styleBindings)&&(g=cu(g=up(null,p,f,g,_),f.attrs,_),v=null);else{const D=f.directiveStylingLast;if(-1===D||p[D]!==y)if(g=up(y,p,f,g,_),null===v){let R=function Ov(p,f,g){const _=g?f.classBindings:f.styleBindings;if(0!==go(_))return p[Ga(_)]}(p,f,_);void 0!==R&&Array.isArray(R)&&(R=up(null,p,f,R[1],_),R=cu(R,f.attrs,_),function ug(p,f,g,_){p[Ga(g?f.classBindings:f.styleBindings)]=_}(p,f,_,R))}else v=function Bv(p,f,g){let _;const y=f.directiveEnd;for(let v=1+f.directiveStylingLast;v0)&&(N=!0)}else q=g;if(y)if(0!==R){const se=Ga(p[k+1]);p[_+1]=gm(se,k),0!==se&&(p[se+1]=wb(p[se+1],_)),p[k+1]=function UM(p,f){return 131071&p|f<<17}(p[k+1],_)}else p[_+1]=gm(k,0),0!==k&&(p[k+1]=wb(p[k+1],_)),k=_;else p[_+1]=gm(R,0),0===k?k=_:p[R+1]=wb(p[R+1],_),R=_;N&&(p[_+1]=yb(p[_+1])),xy(p,q,_,!0),xy(p,q,_,!1),function Hv(p,f,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof f&&Cs(v,f)>=0&&(g[_+1]=Cb(g[_+1]))}(f,q,p,_,v),D=gm(k,R),v?f.classBindings=D:f.styleBindings=D}(y,v,f,g,D,_)}}function up(p,f,g,_,y){let v=null;const D=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const R=p[y],N=Array.isArray(R),q=N?R[1]:R,ee=null===q;let se=g[y+1];se===Et&&(se=ee?qe:void 0);let ue=ee?Cd(se,_):q===_?se:void 0;if(N&&!uu(ue)&&(ue=Cd(R,_)),uu(ue)&&(k=ue,D))return k;const Ce=p[y+1];y=D?Ga(Ce):go(Ce)}if(null!==f){let R=v?f.residualClasses:f.residualStyles;null!=R&&(k=Cd(R,_))}return k}function uu(p){return void 0!==p}function pg(p,f){return 0!=(p.flags&(f?16:32))}function ky(p,f=""){const g=Me(),_=Ye(),y=p+20,v=_.firstCreatePass?Nd(_,y,1,f,null):_.data[y],D=g[y]=function jd(p,f){return fi(p)?p.createText(f):p.createTextNode(f)}(g[11],f);an(_,g,D,v),Dr(v,!1)}function fg(p){return hp("",p,""),fg}function hp(p,f,g){const _=Me(),y=pl(_,p,f,g);return y!==Et&&Es(_,Ui(),y),hp}function mg(p,f,g,_,y){const v=Me(),D=function wo(p,f,g,_,y,v){const k=yo(p,ui(),g,y);return zn(2),k?f+me(g)+_+me(y)+v:Et}(v,p,f,g,_,y);return D!==Et&&Es(v,Ui(),D),mg}function Si(p,f,g,_,y,v,D,k,R,N,q){const ee=Me(),se=wc(ee,p,f,g,_,y,v,D,k,R,N,q);return se!==Et&&Es(ee,Ui(),se),Si}function Nv(p,f,g){pa(Gn,$a,pl(Me(),p,f,g),!0)}function mp(p,f,g){const _=Me();return Ri(_,Qs(),f)&&nr(Ye(),hi(),_,p,f,_[11],g,!0),mp}function yg(p,f,g){const _=Me();if(Ri(_,Qs(),f)){const v=Ye(),D=hi();nr(v,D,_,p,f,zd(Xs(v.data),D,_),g,!0)}return yg}const Cl=void 0;var S0=["en",[["a","p"],["AM","PM"],Cl],[["AM","PM"],Cl,Cl],[["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"]],Cl,[["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"]],Cl,[["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}",Cl,"{1} 'at' {0}",Cl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jy(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let wr={};function gp(p){const f=function wg(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=Fy(f);if(g)return g;const _=f.split("-")[0];if(g=Fy(_),g)return g;if("en"===_)return S0;throw new Error(`Missing locale data for the locale "${p}".`)}function hu(p){return gp(p)[ot.PluralCase]}function Fy(p){return p in wr||(wr[p]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[p]),wr[p]}var ot=(()=>((ot=ot||{})[ot.LocaleId=0]="LocaleId",ot[ot.DayPeriodsFormat=1]="DayPeriodsFormat",ot[ot.DayPeriodsStandalone=2]="DayPeriodsStandalone",ot[ot.DaysFormat=3]="DaysFormat",ot[ot.DaysStandalone=4]="DaysStandalone",ot[ot.MonthsFormat=5]="MonthsFormat",ot[ot.MonthsStandalone=6]="MonthsStandalone",ot[ot.Eras=7]="Eras",ot[ot.FirstDayOfWeek=8]="FirstDayOfWeek",ot[ot.WeekendRange=9]="WeekendRange",ot[ot.DateFormat=10]="DateFormat",ot[ot.TimeFormat=11]="TimeFormat",ot[ot.DateTimeFormat=12]="DateTimeFormat",ot[ot.NumberSymbols=13]="NumberSymbols",ot[ot.NumberFormats=14]="NumberFormats",ot[ot.CurrencyCode=15]="CurrencyCode",ot[ot.CurrencySymbol=16]="CurrencySymbol",ot[ot.CurrencyName=17]="CurrencyName",ot[ot.Currencies=18]="Currencies",ot[ot.Directionality=19]="Directionality",ot[ot.PluralCase=20]="PluralCase",ot[ot.ExtraData=21]="ExtraData",ot))();const pu="en-US";let Cg=pu;function rw(p,f,g,_,y){if(p=X(p),Array.isArray(p))for(let v=0;v>20;if(_c(p)||!p.multi){const ue=new Yo(R,y,Ao),Ce=Lg(k,f,y?q:q+se,ee);-1===Ce?(ws(Oa(N,D),v,k),Rg(v,p,f.length),f.push(k),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(ue),D.push(ue)):(g[Ce]=ue,D[Ce]=ue)}else{const ue=Lg(k,f,q+se,ee),Ce=Lg(k,f,q,q+se),Le=ue>=0&&g[ue],Fe=Ce>=0&&g[Ce];if(y&&!Fe||!y&&!Le){ws(Oa(N,D),v,k);const We=function _T(p,f,g,_,y){const v=new Yo(p,g,Ao);return v.multi=[],v.index=f,v.componentProviders=0,aw(v,y,_&&!g),v}(y?I0:Ft,g.length,y,_,R);!y&&Fe&&(g[Ce].providerFactory=We),Rg(v,p,f.length,0),f.push(k),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(We),D.push(We)}else Rg(v,p,ue>-1?ue:Ce,aw(g[y?Ce:ue],R,!y&&_));!y&&_&&Fe&&g[Ce].componentProviders++}}}function Rg(p,f,g,_){const y=_c(f),v=function nv(p){return!!p.useClass}(f);if(y||v){const R=(v?X(f.useClass):f).prototype.ngOnDestroy;if(R){const N=p.destroyHooks||(p.destroyHooks=[]);if(!y&&f.multi){const q=N.indexOf(g);-1===q?N.push(g,[_,R]):N[q+1].push(_,R)}else N.push(g,R)}}}function aw(p,f,g){return g&&p.componentProviders++,p.multi.push(f)-1}function Lg(p,f,g,_){for(let y=g;y<_;y++)if(f[y]===p)return y;return-1}function Ft(p,f,g,_){return Gr(this.multi,[])}function I0(p,f,g,_){const y=this.multi;let v;if(this.providerFactory){const D=this.providerFactory.componentProviders,k=no(g,g[1],this.providerFactory.index,_);v=k.slice(0,D),Gr(y,v);for(let R=D;R{g.providersResolver=(_,y)=>function gT(p,f,g){const _=Ye();if(_.firstCreatePass){const y=Nn(p);rw(g,_.data,_.blueprint,y,!0),rw(f,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,f)}}class ow{}class wT{resolveComponentFactory(f){throw function yT(p){const f=Error(`No component factory found for ${V(p)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=p,f}(f)}}let Cu=(()=>{class p{}return p.NULL=new wT,p})();function CT(){return Hc(gi(),Me())}function Hc(p,f){return new Au(ve(p,f))}let Au=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=CT,p})();function AT(p){return p instanceof Au?p.nativeElement:p}class cw{}let vT=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function dw(){const p=Me(),g=yt(gi().index,p);return function TT(p){return p[11]}(_n(g)?g:p)}(),p})(),Hs=(()=>{class p{}return p.\u0275prov=ri({token:p,providedIn:"root",factory:()=>null}),p})();class uw{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const vu=new uw("13.2.2"),hw={};function Ig(p,f,g,_,y=!1){for(;null!==g;){const v=f[g.index];if(null!==v&&_.push(O(v)),Fn(v))for(let k=10;k-1&&(db(f,_),Go(g,_))}this._attachedToViewContainer=!1}il(this._lView[1],this._lView)}onDestroy(f){Ki(this._lView[1],this._lView,null,f)}markForCheck(){Fb(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Vh(this._lView[1],this._lView,this.context)}checkNoChanges(){!function KA(p,f,g){Bo(!0);try{Vh(p,f,g)}finally{Bo(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function gA(p,f){_r(p,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=f}}class xT extends Mp{constructor(f){super(f),this._view=f}detectChanges(){Yb(this._view)}checkNoChanges(){!function ll(p){Bo(!0);try{Yb(p)}finally{Bo(!1)}}(this._view)}get context(){return null}}class Og extends Cu{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const g=Zi(f);return new fw(g,this.ngModule)}}function pw(p){const f=[];for(let g in p)p.hasOwnProperty(g)&&f.push({propName:p[g],templateName:g});return f}const MT=new si("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>uA});class fw extends ow{constructor(f,g){super(),this.componentDef=f,this.ngModule=g,this.componentType=f.type,this.selector=function NM(p){return p.map(FM).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return pw(this.componentDef.inputs)}get outputs(){return pw(this.componentDef.outputs)}create(f,g,_,y){const v=(y=y||this.ngModule)?function ST(p,f){return{get:(g,_,y)=>{const v=p.get(g,hw,y);return v!==hw||_===hw?v:f.get(g,_,y)}}}(f,y.injector):f,D=v.get(cw,B),k=v.get(Hs,null),R=D.createRenderer(null,this.componentDef),N=this.componentDef.selectors[0][0]||"div",q=_?function Rb(p,f,g){if(fi(p))return p.selectRootElement(f,g===Ve.ShadowDom);let _="string"==typeof f?p.querySelector(f):f;return _.textContent="",_}(R,_,this.componentDef.encapsulation):hm(D.createRenderer(null,this.componentDef),N,function es(p){const f=p.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(N)),ee=this.componentDef.onPush?576:528,se=function Vm(p,f){return{components:[],scheduler:p||uA,clean:Ub,playerHandler:f||null,flags:0}}(),ue=ym(0,null,null,1,0,null,null,null,null,null),Ce=Lh(null,ue,se,ee,null,null,D,R,k,v);let Le,Fe;kr(Ce);try{const We=function Bm(p,f,g,_,y,v){const D=g[1];g[20]=p;const R=Nd(D,20,2,"#host",null),N=R.mergedAttrs=f.hostAttrs;null!==N&&(cl(R,N,!0),null!==p&&(yn(y,p,N),null!==R.classes&&mm(y,p,R.classes),null!==R.styles&&CA(y,p,R.styles)));const q=_.createRenderer(p,f),ee=Lh(g,FA(f),null,f.onPush?64:16,g[20],R,_,q,v||null,null);return D.firstCreatePass&&(ws(Oa(R,g),D,f.type),Tm(D,R),xm(R,g.length,1)),_o(g,ee),g[20]=ee}(q,this.componentDef,Ce,D,R);if(q)if(_)yn(R,q,["ng-version",vu.full]);else{const{attrs:xe,classes:it}=function YM(p){const f=[],g=[];let _=1,y=2;for(;_0&&mm(R,q,it.join(" "))}if(Fe=Xt(ue,20),void 0!==g){const xe=Fe.projection=[];for(let it=0;itR(D,f)),f.contentQueries){const R=gi();f.contentQueries(1,D,R.directiveStart)}const k=gi();return!v.firstCreatePass||null===f.hostBindings&&null===f.hostAttrs||(oa(k.index),UA(g[1],k,0,k.directiveStart,k.directiveEnd,f),vm(f,D)),D}(We,this.componentDef,Ce,se,[bv]),Ih(ue,Ce,null)}finally{jo()}return new _w(this.componentType,Le,Hc(Fe,Ce),Ce,Fe)}}class _w extends class bT{}{constructor(f,g,_,y,v){super(),this.location=_,this._rootLView=y,this._tNode=v,this.instance=g,this.hostView=this.changeDetectorRef=new xT(y),this.componentType=f}get injector(){return new ro(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}class Al{}class bw{}const kc=new Map;class Vg extends Al{constructor(f,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Og(this);const _=gt(f);this._bootstrapComponents=Na(_.bootstrap),this._r3Injector=Nh(f,g,[{provide:Al,useValue:this},{provide:Cu,useValue:this.componentFactoryResolver}],V(f)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(f)}get(f,g=jr.THROW_IF_NOT_FOUND,_=pt.Default){return f===jr||f===Al||f===Fh?this:this._r3Injector.get(f,g,_)}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Sp extends bw{constructor(f){super(),this.moduleType=f,null!==gt(f)&&function vl(p){const f=new Set;!function g(_){const y=gt(_,!0),v=y.id;null!==v&&(function Wn(p,f,g){if(f&&f!==g)throw new Error(`Duplicate module registered for ${p} - ${V(f)} vs ${V(f.name)}`)}(v,kc.get(v),_),kc.set(v,_));const D=Na(y.imports);for(const k of D)f.has(k)||(f.add(k),g(k))}(p)}(f)}create(f){return new Vg(this.moduleType,f)}}function Ii(p,f,g){const _=bn()+p,y=Me();return y[_]===Et?Za(y,_,g?f.call(g):f()):function hl(p,f){return p[f]}(y,_)}function DT(p,f,g,_){return Cw(Me(),bn(),p,f,g,_)}function Ep(p,f,g,_,y){return Pn(Me(),bn(),p,f,g,_,y)}function Mu(p,f){const g=p[f];return g===Et?void 0:g}function Cw(p,f,g,_,y,v){const D=f+g;return Ri(p,D,y)?Za(p,D+1,v?_.call(v,y):_(y)):Mu(p,D+1)}function Pn(p,f,g,_,y,v,D){const k=f+g;return yo(p,k,y,v)?Za(p,k+2,D?_.call(D,y,v):_(y,v)):Mu(p,k+2)}function ks(p,f,g,_,y,v,D,k){const R=f+g;return function yc(p,f,g,_,y){const v=yo(p,f,g,_);return Ri(p,f+2,y)||v}(p,R,y,v,D)?Za(p,R+3,k?_.call(k,y,v,D):_(y,v,D)):Mu(p,R+3)}function Ps(p,f){const g=Ye();let _;const y=p+20;g.firstCreatePass?(_=function PT(p,f){if(f)for(let g=f.length-1;g>=0;g--){const _=f[g];if(p===_.name)return _}}(f,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=Tn(_.type)),D=Zt(Ao);try{const k=Ia(!1),R=v();return Ia(k),function Wh(p,f,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),f[g]=_}(g,Me(),y,R),R}finally{Zt(D)}}function Oi(p,f,g){const _=p+20,y=Me(),v=Rt(y,_);return Pc(y,_)?Cw(y,bn(),f,v.transform,g,v):v.transform(g)}function Fg(p,f,g,_){const y=p+20,v=Me(),D=Rt(v,y);return Pc(v,y)?Pn(v,bn(),f,D.transform,g,_,D):D.transform(g,_)}function Ng(p,f,g,_,y){const v=p+20,D=Me(),k=Rt(D,v);return Pc(D,v)?ks(D,bn(),f,k.transform,g,_,y,k):k.transform(g,_,y)}function Pc(p,f){return p[1].data[f].pure}function Dp(p){return f=>{setTimeout(p,void 0,f)}}const ga=class Tw extends T.xQ{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,g,_){var y,v,D;let k=f,R=g||(()=>null),N=_;if(f&&"object"==typeof f){const ee=f;k=null===(y=ee.next)||void 0===y?void 0:y.bind(ee),R=null===(v=ee.error)||void 0===v?void 0:v.bind(ee),N=null===(D=ee.complete)||void 0===D?void 0:D.bind(ee)}this.__isAsync&&(R=Dp(R),k&&(k=Dp(k)),N&&(N=Dp(N)));const q=super.subscribe({next:k,error:R,complete:N});return f instanceof i.w&&f.add(q),q}};function Hp(){return this._results[Dn()]()}class Su{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Dn(),_=Su.prototype;_[g]||(_[g]=Hp)}get changes(){return this._changes||(this._changes=new ga)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,g){return this._results.reduce(f,g)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,g){const _=this;_.dirty=!1;const y=tr(f);(this._changesDetected=!function Nf(p,f,g){if(p.length!==f.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=RT,p})();const xw=Rc,Mw=class extends xw{constructor(f,g,_){super(),this._declarationLView=f,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(f){const g=this._declarationTContainer.tViews,_=Lh(this._declarationLView,g,f,16,null,g.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(_[19]=v.createEmbeddedView(g)),Ih(g,_,f),new Mp(_)}};function RT(){return Eu(gi(),Me())}function Eu(p,f){return 4&p.type?new Mw(f,p,Hc(p,f)):null}let Du=(()=>{class p{}return p.__NG_ELEMENT_ID__=Yg,p})();function Yg(){return zg(gi(),Me())}const Sw=Du,kp=class extends Sw{constructor(f,g,_){super(),this._lContainer=f,this._hostTNode=g,this._hostLView=_}get element(){return Hc(this._hostTNode,this._hostLView)}get injector(){return new ro(this._hostTNode,this._hostLView)}get parentInjector(){const f=ys(this._hostTNode,this._hostLView);if(gs(f)){const g=La(f,this._hostLView),_=_s(f);return new ro(g[1].data[_+8],g)}return new ro(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const g=Ug(this._lContainer);return null!==g&&g[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,g,_){const y=f.createEmbeddedView(g||{});return this.insert(y,_),y}createComponent(f,g,_,y,v){const D=f&&!function Ba(p){return"function"==typeof p}(f);let k;if(D)k=g;else{const ee=g||{};k=ee.index,_=ee.injector,y=ee.projectableNodes,v=ee.ngModuleRef}const R=D?f:new fw(Zi(f)),N=_||this.parentInjector;if(!v&&null==R.ngModule&&N){const ee=N.get(Al,null);ee&&(v=ee)}const q=R.create(N,y,void 0,v);return this.insert(q.hostView,k),q}insert(f,g){const _=f._lView,y=_[1];if(function di(p){return Fn(p[3])}(_)){const q=this.indexOf(f);if(-1!==q)this.detach(q);else{const ee=_[3],se=new kp(ee,ee[6],ee[3]);se.detach(se.indexOf(f))}}const v=this._adjustIndex(g),D=this._lContainer;!function _A(p,f,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=f),_0)_.push(D[k/2]);else{const N=v[k+1],q=f[-R];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=Jp,this.reject=Jp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:R})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Ji(o_,8))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const Ml=new si("AppId"),qT={provide:Ml,useFactory:function Vw(){return`${Qp()}${Qp()}${Qp()}`},deps:[]};function Qp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const jw=new si("Platform Initializer"),GT=new si("Platform ID"),l_=new si("appBootstrapListener");let c_=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const Kp=new si("LocaleId"),d_=new si("DefaultCurrencyCode");class WT{constructor(f,g){this.ngModuleFactory=f,this.componentFactories=g}}let Ls=(()=>{class p{compileModuleSync(g){return new Sp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=Na(gt(g).declarations).reduce((D,k)=>{const R=Zi(k);return R&&D.push(new fw(R)),D},[]);return new WT(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const $T=(()=>Promise.resolve(0))();function Ru(p){"undefined"==typeof Zone?$T.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Ar{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ga(!1),this.onMicrotaskEmpty=new ga(!1),this.onStable=new ga(!1),this.onError=new ga(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const y=this;y._nesting=0,y._outer=y._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function Yw(){let p=Pt.requestAnimationFrame,f=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&p&&f){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function JT(p){const f=()=>{!function Uw(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(Pt,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Lu(p),p.isCheckStableRunning=!0,h_(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Lu(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,D,k)=>{try{return zw(p),g.invokeTask(y,v,D,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&f(),qw(p)}},onInvoke:(g,_,y,v,D,k,R)=>{try{return zw(p),g.invoke(y,v,D,k,R)}finally{p.shouldCoalesceRunChangeDetection&&f(),qw(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Lu(p),h_(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ar.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ar.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(f,g,_){return this._inner.run(f,g,_)}runTask(f,g,_,y){const v=this._inner,D=v.scheduleEventTask("NgZoneEvent: "+y,f,u_,Jp,Jp);try{return v.runTask(D,g,_)}finally{v.cancelTask(D)}}runGuarded(f,g,_){return this._inner.runGuarded(f,g,_)}runOutsideAngular(f){return this._outer.run(f)}}const u_={};function h_(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Lu(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function zw(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function qw(p){p._nesting--,h_(p)}class Gw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ga,this.onMicrotaskEmpty=new ga,this.onStable=new ga,this.onError=new ga}run(f,g,_){return f.apply(g,_)}runGuarded(f,g,_){return f.apply(g,_)}runOutsideAngular(f){return f()}runTask(f,g,_,y){return f.apply(g,_)}}let Ww=(()=>{class p{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ar.assertNotInAngularZone(),Ru(()=>{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())Ru(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!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(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Ji(Ar))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})(),QT=(()=>{class p{constructor(){this._applications=new Map,Xp.addToWindow(this)}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return Xp.findTestabilityInTree(this,g,_)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();class p_{addToWindow(f){}findTestabilityInTree(f,g,_){return null}}function KT(p){Xp=p}let ba,Xp=new p_;const f_=new si("AllowMultipleToken");class ex{constructor(f,g){this.name=f,this.token=g}}function Jw(p,f,g=[]){const _=`Platform: ${f}`,y=new si(_);return(v=[])=>{let D=ef();if(!D||D.injector.get(f_,!1))if(p)p(g.concat(v).concat({provide:y,useValue:!0}));else{const k=g.concat(v).concat({provide:y,useValue:!0},{provide:qd,useValue:"platform"});!function $w(p){if(ba&&!ba.destroyed&&!ba.injector.get(f_,!1))throw new ne(400,"");ba=p.get(Qw);const f=p.get(jw,null);f&&f.forEach(g=>g())}(jr.create({providers:k,name:_}))}return function tx(p){const f=ef();if(!f)throw new ne(401,"");return f}()}}function ef(){return ba&&!ba.destroyed?ba:null}let Qw=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const k=function Kw(p,f){let g;return g="noop"===p?new Gw:("zone.js"===p?void 0:p)||new Ar({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==f?void 0:f.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==f?void 0:f.ngZoneRunCoalescing)}),g}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),R=[{provide:Ar,useValue:k}];return k.run(()=>{const N=jr.create({providers:R,parent:this.injector,name:g.moduleType.name}),q=g.create(N),ee=q.injector.get(Fa,null);if(!ee)throw new ne(402,"");return k.runOutsideAngular(()=>{const se=k.onError.subscribe({next:ue=>{ee.handleError(ue)}});q.onDestroy(()=>{tf(this._modules,q),se.unsubscribe()})}),function ix(p,f,g){try{const _=g();return au(_)?_.catch(y=>{throw f.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw f.runOutsideAngular(()=>p.handleError(_)),_}}(ee,k,()=>{const se=q.injector.get(xl);return se.runInitializers(),se.donePromise.then(()=>(function Ag(p){tt(p,"Expected localeId to be defined"),"string"==typeof p&&(Cg=p.toLowerCase().replace(/_/g,"-"))}(q.injector.get(Kp,pu)||pu),this._moduleDoBootstrap(q),q))})})}bootstrapModule(g,_=[]){const y=m_({},_);return function Zw(p,f,g){const _=new Sp(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(Iu);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ne(403,"");g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Ji(jr))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();function m_(p,f){return Array.isArray(f)?f.reduce(m_,p):Object.assign(Object.assign({},p),f)}let Iu=(()=>{class p{constructor(g,_,y,v,D){this._zone=g,this._injector=_,this._exceptionHandler=y,this._componentFactoryResolver=v,this._initStatus=D,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const k=new E.y(N=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{N.next(this._stable),N.complete()})}),R=new E.y(N=>{let q;this._zone.runOutsideAngular(()=>{q=this._zone.onStable.subscribe(()=>{Ar.assertNotInAngularZone(),Ru(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,N.next(!0))})})});const ee=this._zone.onUnstable.subscribe(()=>{Ar.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{N.next(!1)}))});return()=>{q.unsubscribe(),ee.unsubscribe()}});this.isStable=(0,M.T)(k,R.pipe((0,S.B)()))}bootstrap(g,_){if(!this._initStatus.done)throw new ne(405,"");let y;y=g instanceof ow?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(y.componentType);const v=function XT(p){return p.isBoundToModule}(y)?void 0:this._injector.get(Al),k=y.create(jr.NULL,[],_||y.selector,v),R=k.location.nativeElement,N=k.injector.get(Ww,null),q=N&&k.injector.get(QT);return N&&q&&q.registerApplication(R,N),k.onDestroy(()=>{this.detachView(k.hostView),tf(this.components,k),q&&q.unregisterApplication(R)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;tf(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(l_,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return p.\u0275fac=function(g){return new(g||p)(Ji(Ar),Ji(jr),Ji(Fa),Ji(Cu),Ji(xl))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();function tf(p,f){const g=p.indexOf(f);g>-1&&p.splice(g,1)}let nx=!0;function tC(){nx=!1}let ax=(()=>{class p{}return p.__NG_ELEMENT_ID__=G0,p})();function G0(p){return function sx(p,f,g){if(Ha(p)&&!g){const _=yt(p.index,f);return new Mp(_,_)}return 47&p.type?new Mp(f[16],f):null}(gi(),Me(),16==(16&p))}class aC{constructor(){}supports(f){return bc(f)}create(f){return new px(f)}}const hx=(p,f)=>f;class px{constructor(f){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=f||hx}forEachItem(f){let g;for(g=this._itHead;null!==g;g=g._next)f(g)}forEachOperation(f){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,k,D,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,g,_,y){let v;return null===f?v=this._itTail:(v=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(f.item,g)||this._addIdentityChange(f,g),this._reinsertAfter(f,v,y)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(f.item,g)||this._addIdentityChange(f,g),this._moveAfter(f,v,y)):f=this._addAfter(new fx(g,_),v,y),f}_verifyReinsertion(f,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?f=this._reinsertAfter(v,f._prev,y):f.currentIndex!=y&&(f.currentIndex=y,this._addToMoves(f,y)),f}_truncate(f){for(;null!==f;){const g=f._next;this._addToRemovals(this._unlink(f)),f=g}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(f,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const y=f._prevRemoved,v=f._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(f,g,_),this._addToMoves(f,_),f}_moveAfter(f,g,_){return this._unlink(f),this._insertAfter(f,g,_),this._addToMoves(f,_),f}_addAfter(f,g,_){return this._insertAfter(f,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,g,_){const y=null===g?this._itHead:g._next;return f._next=y,f._prev=g,null===y?this._itTail=f:y._prev=f,null===g?this._itHead=f:g._next=f,null===this._linkedRecords&&(this._linkedRecords=new sC),this._linkedRecords.put(f),f.currentIndex=_,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const g=f._prev,_=f._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,f}_addToMoves(f,g){return f.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new sC),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,g){return f.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class fx{constructor(f,g){this.item=f,this.trackById=g,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 eS{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,f))return _;return null}remove(f){const g=f._prevDup,_=f._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class sC{constructor(){this.map=new Map}put(f){const g=f.trackById;let _=this.map.get(g);_||(_=new eS,this.map.set(g,_)),_.add(f)}get(f,g){const y=this.map.get(f);return y?y.get(f,g):null}remove(f){const g=f.trackById;return this.map.get(g).remove(f)&&this.map.delete(g),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Uc(p,f,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,g){if(f){const _=f._prev;return g._next=f,g._prev=_,f._prev=g,_&&(_._next=g),f===this._mapHead&&(this._mapHead=g),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(f,g){if(this._records.has(f)){const y=this._records.get(f);this._maybeAddToChanges(y,g);const v=y._prev,D=y._next;return v&&(v._next=D),D&&(D._prev=v),y._next=null,y._prev=null,y}const _=new oC(f);return this._records.set(f,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,g){Object.is(g,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=g,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,g){f instanceof Map?f.forEach(g):Object.keys(f).forEach(_=>g(f[_],_))}}class oC{constructor(f){this.key=f,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 El(){return new af([new aC])}let af=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||El()),deps:[[p,new po,new Va]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ne(901,"")}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:El}),p})();function lC(){return new sf([new Vu])}let sf=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||lC()),deps:[[p,new po,new Va]]}}find(g){const _=this.factories.find(v=>v.supports(g));if(_)return _;throw new ne(901,"")}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:lC}),p})();const cC=[new Vu],gx=new af([new aC]),_x=new sf(cC),dC=Jw(null,"core",[{provide:GT,useValue:"unknown"},{provide:Qw,deps:[jr]},{provide:QT,deps:[]},{provide:c_,deps:[]}]),yx=[{provide:Iu,useClass:Iu,deps:[Ar,jr,Fa,Cu,xl]},{provide:MT,deps:[Ar],useFactory:function wx(p){let f=[];return p.onStable.subscribe(()=>{for(;f.length;)f.pop()()}),function(g){f.push(g)}}},{provide:xl,useClass:xl,deps:[[new Va,o_]]},{provide:Ls,useClass:Ls,deps:[]},qT,{provide:af,useFactory:function uC(){return gx},deps:[]},{provide:sf,useFactory:function bx(){return _x},deps:[]},{provide:Kp,useFactory:function nS(p){return p||function hC(){return"undefined"!=typeof $localize&&$localize.locale||pu}()},deps:[[new ho(Kp),new Va,new po]]},{provide:d_,useValue:"USD"}];let Cx=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Ji(Iu))},p.\u0275mod=as({type:p}),p.\u0275inj=Cn({providers:yx}),p})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),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 G;return function(T){return(G||(G=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(T||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(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class ReceivedTokens{}class OAuthEvent{constructor(G){this.type=G}}class OAuthSuccessEvent extends OAuthEvent{constructor(G,x=null){super(G),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(G,x=null){super(G),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(G,x,T=null){super(G),this.reason=x,this.params=T}}function b64DecodeUnicode(z){const G=z.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(G).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(z){return btoa(z).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=x=>{location.href=x},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){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let x=this.inferHashAlgorithm(G.idTokenHeader),T=yield this.calcHash(G.accessToken,x),E=base64UrlEncode(T.substr(0,T.length/2)),M=G.idTokenClaims.at_hash.replace(/=/g,"");return E!==M&&(console.error("exptected at_hash: "+E),console.error("actual at_hash: "+M)),E===M})}inferHashAlgorithm(G){let x=G.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class z{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const i=T.indexOf("?");return T=T.substr(i>-1?i+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let i,E,M,S,P,L,V;if(null===x)return T;i=x.split("&");for(let U=0;U>6,E[S++]=128|63&P):P<55296||P>=57344?(E[S++]=224|P>>12,E[S++]=128|P>>6&63,E[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&z.charCodeAt(++T)),E[S++]=240|P>>18,E[S++]=128|P>>12&63,E[S++]=128|P>>6&63,E[S++]=128|63&P);z=E}else{if("object"!==i)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(G,!0).update(z).array());var L=[],V=[];for(T=0;T<64;++T){var U=z[T]||0;L[T]=92^U,V[T]=54^U}Sha256.call(this,G,x),this.update(V),this.oKeyPad=L,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(z){if(!this.finalized){var G,x=typeof z;if("string"!==x){if("object"!==x)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);G=!0}for(var T,E,i=0,M=z.length,S=this.blocks;i>2]|=z[i]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(S[E>>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=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}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,G=this.lastByteIndex;z[16]=this.block,z[G>>2]|=EXTRA[3&G],this.block=z[16],G>=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 L,$,ce,ne,de,me,z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=this.blocks;for(L=16;L<64;++L)P[L]=P[L-16]+((($=P[L-15])>>>7|$<<25)^($>>>18|$<<14)^$>>>3)+P[L-7]+((($=P[L-2])>>>17|$<<15)^($>>>19|$<<13)^$>>>10)<<0;for(me=G&x,L=0;L<64;L+=4)this.first?(this.is224?(ce=300032,S=($=P[0]-1413257819)-150054599<<0,T=$+24177077<<0):(ce=704751109,S=($=P[0]-210244248)-1521486534<<0,T=$+143694565<<0),this.first=!1):(S=T+($=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&M)+K[L]+P[L])<<0,T=$+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((ce=z&G)^z&x^me))<<0),M=x+($=M+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[L+1]+P[L+1])<<0,x=$+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ne=T&z)^T&G^ce))<<0,E=G+($=E+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&S^~M&i)+K[L+2]+P[L+2])<<0,G=$+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&z^ne))<<0,i=z+($=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&M^~E&S)+K[L+3]+P[L+3])<<0,z=$+(((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+((me=G&x)^G&T^de))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+G<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+M<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=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[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[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[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[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+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];return this.is224||(P+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=[z>>24&255,z>>16&255,z>>8&255,255&z,G>>24&255,G>>16&255,G>>8&255,255&G,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M];return this.is224||P.push(S>>24&255,S>>16&255,S>>8&255,255&S),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var z=new ArrayBuffer(this.is224?28:32),G=new DataView(z);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),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 G,x=z,T=new Uint8Array(x.length);for(G=0;G{class z{calcHash(x,T){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})}toHashString2(x){let T="";for(let i of x)T+=String.fromCharCode(i);return T}toHashString(x){const T=new Uint8Array(x);let i="";for(let E of T)i+=String.fromCharCode(E);return i}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})(),OAuthService=(()=>{class z extends AuthConfig{constructor(x,T,i,E,M,S,P,L,V,U){var Y;super(),this.ngZone=x,this.http=T,this.config=M,this.urlHelper=S,this.logger=P,this.crypto=L,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,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(),E&&(this.tokenValidationHandler=E),M&&this.configure(M);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=null===(Y=null==window?void 0:window.navigator)||void 0===Y?void 0:Y.userAgent;((null==$?void 0:$.includes("MSIE "))||(null==$?void 0:$.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const x="test";try{return void 0!==window.localStorage&&(localStorage.setItem(x,x),localStorage.removeItem(x),!0)}catch(T){return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),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)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?E=!0:"logout"===M.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==T||"any"===T||M.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{E&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],i=this.validateUrlForHttps(x),E=this.validateUrlAgainstIssuer(x);return i||T.push("https for all urls required. Also for urls received by discovery."),E||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))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(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),i=this.calcTimeout(T,x);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)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),i=this.calcTimeout(T,x);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)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}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(x,T){const i=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:M});this.eventsSubject.next(P),T(P)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),i(M)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("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((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),T(i)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.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: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,i).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((x,T)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||M.sub!==S.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");M=Object.assign({},S,M),this._storage.setItem("id_token_claims_obj",JSON.stringify(M)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:M})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),T(E)})})}fetchTokenUsingPasswordFlow(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},i)}fetchTokenUsingGrant(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(M,this.customQueryParams[M]);for(const M of Object.keys(T))E=E.set(M,T[M]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(L=>{this.storeIdToken(L),M(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),M(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),S(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let i=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")),E=(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}`);E=E.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(M,this.customQueryParams[M]);this.http.post(this.tokenEndpoint,i,{headers:E}).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)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>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")),x(M)},M=>{this.logger.error("Error refreshing token",M),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",M)),T(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(U=>{M.setAttribute("src",U),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.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__.S3)([P,L,V]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(U=>{if(U instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===U.type||(U=new OAuthErrorEvent("silent_refresh_error",U)),this.eventsSubject.next(U),U;return"token_received"===U.type&&(U=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(U)),U})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((i,E)=>{let P,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=T):S=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const L=X=>{this.tryLogin({customHashFragment:X,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),i(!0)},te=>{U(),E(te)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(U(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(P),window.removeEventListener("storage",$),window.removeEventListener("message",Y),null!==S&&S.close(),S=null},Y=X=>{const te=this.processMessageEventMessage(X);te&&null!==te?(window.removeEventListener("storage",$),L(te)):console.log("false event firing")},$=X=>{"auth_hash"===X.key&&(window.removeEventListener("message",Y),L(X.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",$)}))}calculatePopupFeatures(x){const T=x.height||470,i=x.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${E}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(T)?"#"+i.substr(T.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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=x=>{const T=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(T)){switch(x.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",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",i,"event",x)},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(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{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)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.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 x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);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 x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",i="",E=!1,M={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const S=this;let P;P=i||this.redirectUri;const L=yield this.createAndSaveNonce();if(x=x?L+this.config.nonceStateSeparator+encodeURIComponent(x):L,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const V=S.loginUrl.indexOf("?")>-1?"&":"?";let U=S.scope;this.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let Y=S.loginUrl+V+"response_type="+encodeURIComponent(S.responseType)+"&client_id="+encodeURIComponent(S.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(P)+"&scope="+encodeURIComponent(U);if(this.responseType.includes("code")&&!this.disablePKCE){const[$,X]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",X):this._storage.setItem("PKCE_verifier",X),Y+="&code_challenge="+$,Y+="&code_challenge_method=S256"}T&&(Y+="&login_hint="+encodeURIComponent(T)),S.resource&&(Y+="&resource="+encodeURIComponent(S.resource)),S.oidc&&(Y+="&nonce="+encodeURIComponent(L)),E&&(Y+="&prompt=none");for(const $ of Object.keys(M))Y+="&"+encodeURIComponent($)+"="+encodeURIComponent(M[$]);if(this.customQueryParams)for(const $ of Object.getOwnPropertyNames(this.customQueryParams))Y+="&"+$+"="+encodeURIComponent(this.customQueryParams[$]);return Y})}initImplicitFlowInternal(x="",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 i={},E=null;"string"==typeof T?E=T:"object"==typeof T&&(i=T),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const i={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,T,i,E,M){if(this._storage.setItem("access_token",x),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,L=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+L)}T&&this._storage.setItem("refresh_token",T),M&&M.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const T=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(T),E=i.code,M=i.state,S=i.session_state;if(!x.preventClearHashAfterLogin){const V=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,V)}let[P,L]=this.parseState(M);if(this.state=L,i.error){this.debug("error trying to login"),this.handleLoginError(x,i);const V=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(V),Promise.reject(V)}if(!x.disableNonceCheck){if(!P)return this.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!this.validateNonce(P)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.storeSessionState(S),E&&(yield this.getTokenFromCode(E,x),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((E,M)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,T.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),M(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),M(S)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const i=T.state;let[E,M]=this.parseState(i);if(this.state=M,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const U=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(U),Promise.reject(U)}const S=T.access_token,P=T.id_token,L=T.session_state,V=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!L&&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&&!x.disableNonceCheck&&!this.validateNonce(E)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,V),this.oidc?this.processIdToken(P,S,x.disableNonceCheck).then(U=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:U.idTokenClaims,idToken:U.idToken,state:i}).then(Y=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(L),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(U=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",U)),this.logger.error("Error validating tokens"),this.logger.error(U),Promise.reject(U))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,i="";if(x){const E=x.indexOf(this.config.nonceStateSeparator);E>-1&&(T=x.substr(0,E),i=x.substr(E+this.config.nonceStateSeparator.length))}return[T,i]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,i=!1){const E=x.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),P=JSON.parse(S),V=b64DecodeUnicode(this.padBase64(E[1])),U=JSON.parse(V);let Y;if(Y=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+U.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(U.aud!==this.clientId){const de="Wrong audience: "+U.aud;return this.logger.warn(de),Promise.reject(de)}if(!U.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!U.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const de="Wrong issuer: "+U.iss;return this.logger.warn(de),Promise.reject(de)}if(!i&&U.nonce!==Y){const de="Wrong nonce: "+U.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const $=this.dateTimeService.now(),X=1e3*U.iat,te=1e3*U.exp,ce=this.getClockSkewInMsec();if(X-ce>=$||te+ce<=$){const de="Token has expired";return console.error(de),console.error({now:$,issuedAtMSec:X,expiresAtMSec:te}),Promise.reject(de)}const ne={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:U,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(de=>({idToken:x,idTokenClaims:U,idTokenClaimsJson:V,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:te})):this.checkAtHash(ne).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const me="Wrong at_hash";return this.logger.warn(me),Promise.reject(me)}return this.checkSignature(ne).then(me=>{const Be={idToken:x,idTokenClaims:U,idTokenClaimsJson:V,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:te};return this.disableAtHashCheck?Be:this.checkAtHash(ne).then(Ze=>{if(this.requestAccessToken&&!Ze){const It="Wrong at_hash";return this.logger.warn(It),Promise.reject(It)}return Be})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}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 x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const E=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(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!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(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),T&&(S=S.set("state",T)));for(let L in x)S=S.set(L,x[L]);M=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(M)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const M="undefined"==typeof self?null:self.crypto||self.msCrypto;if(M){let S=new Uint8Array(i);M.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>T.charCodeAt(P%T.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",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 i={},E=null;"string"==typeof T?E=T:"object"==typeof T&&(i=T),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(x,"sha-256")),x]})}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&T.set(i,JSON.stringify(x[i]))}),T}revokeTokenAndLogout(x={},T=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),M=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),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)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(L,this.customQueryParams[L]);return new Promise((L,V)=>{let U,Y;if(E){let $=S.set("token",E).set("token_type_hint","access_token");U=this.http.post(i,$,{headers:P})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let $=S.set("token",M).set("token_type_hint","refresh_token");Y=this.http.post(i,$,{headers:P})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([U,Y]).subscribe($=>{this.logOut(x),L($),this.logger.info("Token successfully revoked")},$=>{this.logger.error("Error revoking token",$),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",$)),V($)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return z.\u0275fac=function(x){return new(x||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(G){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)}}let DefaultOAuthInterceptor=(()=>{class z{constructor(x,T,i){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?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__.zg)(M=>{if(M){const P=x.headers.set("Authorization","Bearer "+M);x=x.clone({headers:P})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):T.handle(x)}}return z.\u0275fac=function(x){return new(x||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(G){return Promise.resolve(null)}validateAtHash(G){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(x=null,T=NullValidationHandler){return{ngModule:z,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:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return z.\u0275fac=function(x){return new(x||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")},4147:z=>{"use strict";z.exports={i8:"8.1.0"}}},z=>{z(z.s=9636)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/index.html b/dist/apps/user-profile/index.html index c0b00337c..d246ee2c4 100644 --- a/dist/apps/user-profile/index.html +++ b/dist/apps/user-profile/index.html @@ -5,7 +5,7 @@ User Profile - + @@ -13,5 +13,5 @@
- + diff --git a/dist/apps/user-profile/main.6d842dfcc73b411f.js b/dist/apps/user-profile/main.6d842dfcc73b411f.js new file mode 100644 index 000000000..8268056b8 --- /dev/null +++ b/dist/apps/user-profile/main.6d842dfcc73b411f.js @@ -0,0 +1 @@ +(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{6396:(Y,U,x)=>{"use strict";var w=x(9808),i=x(5e3);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends E{static makeCurrent(){(0,w.HT)(new T)}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 L(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function N(n){R=R||document.createElement("a"),R.setAttribute("href",n);const a=R.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,w.Mx)(document.cookie,a)}}let R,S=null;const j=new i.OlP("TRANSITION_ID"),$=[{provide:i.ip1,useFactory:function q(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,w.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const s=function(o){d=d||o,l--,0==l&&t(d)};r.forEach(function(o){o.whenStable(s)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const r=a.getTestability(e);return null!=r?r:t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let ie=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ce=new i.OlP("EventManagerPlugins");let ne=(()=>{class n{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 l=0;l{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ne=(()=>{class n extends me{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.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(ze),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(ze))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function ze(n){(0,w.q)().remove(n)}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/"},vt=/%COMP%/g;function Ae(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ke=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ge(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new Ci(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new st(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=Ae(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ne),i.LFG(Ne),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ge{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){a.appendChild(e)}insertBefore(a,e,t){a&&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 l=Je[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Je[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&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.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))}}class Ci extends ge{constructor(a,e,t,r){super(a),this.component=t;const l=Ae(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function yt(n){return"_ngcontent-%COMP%".replace(vt,n)}(r+"-"+t.id),this.hostAttr=function fe(n){return"_nghost-%COMP%".replace(vt,n)}(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 st extends ge{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 l=Ae(r.id,r.styles,[]);for(let d=0;d{class n extends de{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const kn=["alt","control","meta","shift"],Ke={"\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"},di={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"},hr={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let sn=(()=>{class n extends de{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(kn.forEach(o=>{const c=t.indexOf(o);c>-1&&(t.splice(c,1),d+=o+".")}),d+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=d,s}static getEventFullKey(e){let t="",r=function pi(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&di.hasOwnProperty(a)&&(a=di[a]))}return Ke[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),kn.forEach(l=>{l!=r&&hr[l](e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Fr=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function Ut(){T.makeCurrent(),X.init()},multi:!0},{provide:w.K0,useFactory:function la(){return(0,i.RDi)(document),document},deps:[]}]),Pn=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function on(){return new i.qLn},deps:[]},{provide:ce,useClass:bt,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:ce,useClass:sn,multi:!0,deps:[w.K0]},{provide:ke,useClass:ke,deps:[ne,Ne,i.AFp]},{provide:i.FYo,useExisting:ke},{provide:me,useExisting:Ne},{provide:Ne,useClass:Ne,deps:[w.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:ne,useClass:ne,deps:[ce,i.R0b]},{provide:w.JF,useClass:ie,deps:[]}];let ue=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:j,useExisting:i.AFp},$]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:Pn,imports:[w.ez,i.hGG]}),n})(),it=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Ue(){return new it((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let fr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(gs),t},providedIn:"root"}),n})(),gs=(()=>{class n extends fr{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(t),(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.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,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function ms(n){return new gs(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var M=x(520);class Be{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const vi=new i.OlP("basePath");class Xe{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 ni=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}convertAttributeToUnique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attribute"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAttributeDefinitions(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attributes[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,d,s,o,c,u,h,f,b="body",V=!1,ee){let he=new M.LE({encoder:this.encoder});null!=e&&(he=this.addToHttpParams(he,e,"attributeName")),null!=t&&(he=this.addToHttpParams(he,t,"attributeId")),null!=r&&(he=this.addToHttpParams(he,r,"facility")),null!=l&&(he=this.addToHttpParams(he,l,"user")),null!=d&&(he=this.addToHttpParams(he,d,"vo")),null!=s&&(he=this.addToHttpParams(he,s,"resource")),null!=o&&(he=this.addToHttpParams(he,o,"member")),null!=c&&(he=this.addToHttpParams(he,c,"group")),null!=u&&(he=this.addToHttpParams(he,u,"host")),null!=h&&(he=this.addToHttpParams(he,h,"userExtSource")),null!=f&&(he=this.addToHttpParams(he,f,"key"));let gt,Oe=this.defaultHeaders;gt=this.configuration.lookupCredential("BasicAuth"),gt&&(Oe=Oe.set("Authorization","Basic "+gt)),gt=this.configuration.lookupCredential("BearerAuth"),gt&&(Oe=Oe.set("Authorization","Bearer "+gt));let dt=ee&&ee.httpHeaderAccept;void 0===dt&&(dt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==dt&&(Oe=Oe.set("Accept",dt));let Kt=ee&&ee.context;void 0===Kt&&(Kt=new M.qT);let Pa="json";return dt&&(Pa=dt.startsWith("text")?"text":this.configuration.isJsonMime(dt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Kt,params:he,responseType:Pa,withCredentials:this.configuration.withCredentials,headers:Oe,observe:b,reportProgress:V})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionsByNamespace(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"namespace"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"format")),null!=t&&(s=this.addToHttpParams(s,t,"attrName"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"format"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,d,s,o,c,u="body",h=!1,f){let b=new M.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=r&&(b=this.addToHttpParams(b,r,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=d&&(b=this.addToHttpParams(b,d,"resource")),null!=s&&(b=this.addToHttpParams(b,s,"facility")),null!=o&&(b=this.addToHttpParams(b,o,"host")),null!=c&&(b=this.addToHttpParams(b,c,"userExtSource"));let ee,V=this.defaultHeaders;ee=this.configuration.lookupCredential("BasicAuth"),ee&&(V=V.set("Authorization","Basic "+ee)),ee=this.configuration.lookupCredential("BearerAuth"),ee&&(V=V.set("Authorization","Bearer "+ee));let he=f&&f.httpHeaderAccept;void 0===he&&(he=this.configuration.selectHeaderAccept(["application/json"])),void 0!==he&&(V=V.set("Accept",he));let Oe=f&&f.context;void 0===Oe&&(Oe=new M.qT);let gt="json";return he&&(gt=he.startsWith("text")?"text":this.configuration.isJsonMime(he)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Oe,params:b,responseType:gt,withCredentials:this.configuration.withCredentials,headers:V,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"key"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attrName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attrName")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"keys[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessKeys(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributeByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"user")),null!=l&&(c=this.addToHttpParams(c,l,"member"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getFacilityUserAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeById(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupResourceAttributeById(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributeByName(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeById(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"host"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLogins(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberAttributeById(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributeByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getMemberGroupAttributeById(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributeByName(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAttributesByNames(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getMemberResourceAttributeById(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributeByName(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"facility"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesHostService(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"host"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,d,s="body",o=!1,c){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==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new M.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!=l&&(u=this.addToHttpParams(u,l,"member")),null!=d&&(u=this.addToHttpParams(u,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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupService(e,t,r,l,d="body",s=!1,o){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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getRequiredAttributesMemberResource(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberResourceService(e,t,r,l,d="body",s=!1,o){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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getRequiredAttributesResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesResourceServices(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesVoService(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeById(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithGroupAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getResourceGroupAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getUserAttributeById(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributeByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeById(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserFacilityAttributeById(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributeByName(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeById(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,l,d,s,o="body",c=!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==l)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==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new M.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,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),s&&s.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}removeAttributesForFacilityResourceUserMember(e,t,r,l,d,s="body",o=!1,c){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==l)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 u=new M.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!=l&&(u=this.addToHttpParams(u,l,"member")),d&&d.forEach(he=>{u=this.addToHttpParams(u,he,"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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}removeEntitylessAttribute(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttribute(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttribute(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupResourceAttribute(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributes(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}removeHostAttribute(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeHostAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttribute(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttribute(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributes(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}removeMemberResourceAttribute(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberResourceAttributes(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeResourceAttribute(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUesAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttribute(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSourceAttribute(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserFacilityAttribute(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeUserFacilityAttributes(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeVoAttribute(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAttributes(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setEntitylessAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceGroupUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAndUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupWithGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"role")),null!=t&&(o=this.addToHttpParams(o,t,"complementaryObjectId")),null!=r&&(o=this.addToHttpParams(o,r,"complementaryObjectName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,s,o="body",c=!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==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=s&&(h=this.addToHttpParams(h,s,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ei=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consent")),null!=t&&(s=this.addToHttpParams(s,t,"status"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}evaluateConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}evaluateConsentsForService(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllConsentHubs(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllConsents(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getConsentById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentForUserAndConsentHub(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getConsentHubByFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"name"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHubWithStatus(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consentHub")),null!=t&&(s=this.addToHttpParams(s,t,"status"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForUserAndConsentHub(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUserWithStatus(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"status"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Di=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addMembers(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupToHierarchicalVo(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}canExtendMembershipInGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupUnion(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupWithParentGroupNameDescription(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"parentGroup")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}createGroupWithVoNameDescription(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deleteGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}disallowGroupToHierarchicalVo(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}extendMembershipInGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}forceAllSubGroupsSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupStructureSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAllowedGroupsToHierarchicalVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroupsFromAllVos(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroupsWithAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupByName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMemberById(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"member"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByGroupStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByVoStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRichMembersByIds(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"members[]")}),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupUnions(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"reverseDirection"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getIndirectMembershipPaths(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberRichGroupsWithAttributesByNames(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichGroupByIdWithAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"groupId")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSubgroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isAllowedGroupToHierarchicalVo(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isGroupMember(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"destinationGroup")),null!=e&&(s=this.addToHttpParams(s,e,"movingGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupUnion(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMember(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMembers(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setGroupsMemberStatus(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createMemberForCandidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createMemberForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createMemberFromExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSpecificMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMembersFromCSV(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"members[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}extendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findCompleteRichMembersByAttributes(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});e&&e.forEach(V=>{o=this.addToHttpParams(o,V,"attrsNames[]")}),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"allowedStatuses[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findCompleteRichMembersForGroup(e,t,r,l,d,s,o="body",c=!1,u){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==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"attrsNames[]")}),d&&d.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"allowedStatuses[]")}),s&&s.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"allowedGroupStatuses[]")}),null!=r&&(h=this.addToHttpParams(h,r,"searchString")),null!=l&&(h=this.addToHttpParams(h,l,"lookingInParentGroup"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}findCompleteRichMembersForVo(e,t,r,l,d="body",s=!1,o){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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"allowedStatuses[]")}),null!=r&&(c=this.addToHttpParams(c,r,"searchString"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}findMembersInVo(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findSponsoredCompleteRichMembersForVo(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),null!=r&&(c=this.addToHttpParams(c,r,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"onlySponsored"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getAllMembers(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllNamespacesRules(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getCompleteRichMembersForGroup(e,t,r,l,d,s="body",o=!1,c){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 u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"allowedStatuses[]")}),l&&l.forEach(he=>{u=this.addToHttpParams(u,he,"allowedGroupStatuses[]")}),null!=t&&(u=this.addToHttpParams(u,t,"lookingInParentGroup")),d&&d.forEach(he=>{u=this.addToHttpParams(u,he,"attrsNames[]")});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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getCompleteRichMembersForGroupResource(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"allowedStatuses[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getCompleteRichMembersForVo(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"allowedStatuses[]")}),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attrsNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberByExtSourceNameAndExtLogin(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extLogin")),null!=r&&(o=this.addToHttpParams(o,r,"extSourceName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberByUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembers(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getMembersWithStatusCount(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMemberWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMembersByIds(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"ids[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMembersNoUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByVo(e,t,r,l,d="body",s=!1,o){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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}moveMembership(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"sourceUser")),null!=r&&(o=this.addToHttpParams(o,r,"targetUser"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeSponsor(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendAccountActivationLinkEmail(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"namespace")),null!=r&&(c=this.addToHttpParams(c,r,"emailAttributeURN")),null!=l&&(c=this.addToHttpParams(c,l,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sendPasswordResetLinkEmail(e,t,r,l,d,s="body",o=!1,c){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==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"member")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"emailAttributeURN")),null!=l&&(u=this.addToHttpParams(u,l,"language")),null!=d&&(u=this.addToHttpParams(u,d,"baseUrl"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}setSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setSponsorshipForMember(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"sponsoredMember")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}setStatus(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"status"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sponsorMember(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateSponsorshipValidity(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}validateMemberAsync(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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,l,d="body",s=!1,o){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==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"queue")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ri=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}addApplicationMailForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}addGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}approveApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidateIdentityUsingToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}copyFormFromGroupToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromGroupToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createApplicationFormInGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createApplicationFormInVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplicationMailForGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"id"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteApplicationMailForVo(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"id"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationDataById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationsForGroup(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"state[]")}),null!=r&&(c=this.addToHttpParams(c,r,"dateFrom")),null!=l&&(c=this.addToHttpParams(c,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getApplicationsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getApplicationsForVo(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"state[]")}),null!=r&&(c=this.addToHttpParams(c,r,"dateFrom")),null!=l&&(c=this.addToHttpParams(c,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getApplicationsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getConsolidatorToken(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForGroupWithType(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"type"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForVoWithType(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"type"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}rejectApplication(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),null!=t&&(s=this.addToHttpParams(s,t,"reason"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendInvitation(e,t,r,l,d="body",s=!1,o){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 c=new M.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"voId")),null!=l&&(c=this.addToHttpParams(c,l,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sendInvitationForGroup(e,t,r,l,d,s="body",o=!1,c){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 u=new M.LE({encoder:this.encoder});null!=r&&(u=this.addToHttpParams(u,r,"voId")),null!=l&&(u=this.addToHttpParams(u,l,"groupId")),null!=d&&(u=this.addToHttpParams(u,d,"name")),null!=e&&(u=this.addToHttpParams(u,e,"email")),null!=t&&(u=this.addToHttpParams(u,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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}sendInvitationGroupToExistingUser(e,t,r,l="body",d=!1,s){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId")),null!=r&&(o=this.addToHttpParams(o,r,"groupId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sendInvitationToExistingUser(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userId")),null!=t&&(s=this.addToHttpParams(s,t,"voId"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendMessage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setSendingEnabled(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}submitApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateApplicationMail(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}verifyApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}addAdminToGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addAdminToUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupsToResources(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});e&&e.forEach(V=>{o=this.addToHttpParams(o,V,"groups[]")}),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"resources[]")}),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}assignGroupToResource(e,t,r,l,d,s="body",o=!1,c){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 u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupToResources(e,t,r,l,d,s="body",o=!1,c){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 u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),t&&t.forEach(he=>{u=this.addToHttpParams(u,he,"resources[]")}),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupsToResource(e,t,r,l,d,s="body",o=!1,c){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 u=new M.LE({encoder:this.encoder});e&&e.forEach(he=>{u=this.addToHttpParams(u,he,"groups[]")}),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignResourceTagToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}assignService(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServices(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServicesPackage(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createResource(e,t,r,l,d="body",s=!1,o){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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"facility")),null!=r&&(c=this.addToHttpParams(c,r,"name")),null!=l&&(c=this.addToHttpParams(c,l,"description"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}createResourceTagWithResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createResourceTagWithTagName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"tagName")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deactivateGroupResourceAssignment(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteAllResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getAdminGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAdmins(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"onlyDirectAdmins"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllResourcesByResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getAllResourcesTagsForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedUsersOfResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedGroups(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"member"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedMembersWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMemberService(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"service"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedServicesToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEnrichedResourceById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForFacility(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAssignments(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAssignments(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBan(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceByName(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"name"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesCountForAll(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesCountForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesFromVoWhereUserIsAdmin(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourcesWhereGroupIsAdmin(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResourcesWhereUserIsAdmin(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"user"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRichAdmins(e,t,r,l,d="body",s=!1,o){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==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"specificAttributes")}),null!=r&&(c=this.addToHttpParams(c,r,"allUserAttributes")),null!=l&&(c=this.addToHttpParams(c,l,"onlyDirectAdmins"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getRichResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeAllResourceTagsFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeBanByMemberAndResource(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAdminResource(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResource(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResources(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupsFromResource(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeResourceSelfServiceGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceSelfServiceUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceTagFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}removeService(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServices(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServicesPackage(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAdminResource(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unallowGroupsFromResources(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"password")),null!=r&&(o=this.addToHttpParams(o,r,"lang"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}changePasswordForLogin(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"login")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}changePasswordForUser(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"password")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createAlternativePassword(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"description")),null!=r&&(c=this.addToHttpParams(c,r,"loginNamespace")),null!=l&&(c=this.addToHttpParams(c,l,"password"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"loginNamespace")),null!=r&&(o=this.addToHttpParams(o,r,"passwordId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"includedSpecificUsers"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrsNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",s=!1,o){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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"userExtSource")),null!=r&&(o=this.addToHttpParams(o,r,"force"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,s,o="body",c=!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 h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=s&&(h=this.addToHttpParams(h,s,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}reservePasswordForLogin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace")),null!=r&&(o=this.addToHttpParams(o,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reservePasswordForUser(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace")),null!=r&&(o=this.addToHttpParams(o,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reserveRandomPassword(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Dt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_s=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithName(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"name")),null!=t&&(s=this.addToHttpParams(s,t,"shortName"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findCandidates(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),null!=r&&(o=this.addToHttpParams(o,r,"maxNumOfResults"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findCandidatesForGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllVos(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getCompleteCandidatesForGroup(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCompleteCandidatesForVo(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getEnrichedVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMyEnrichedVos(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMyVos(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getParentVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichAdminsForVo(e,t,r,l,d,s="body",o=!1,c){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==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"vo")),null!=t&&(u=this.addToHttpParams(u,t,"role")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=d&&(u=this.addToHttpParams(u,d,"onlyDirectAdmins"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getVoAdminGroups(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAdminUsers(e,t,r,l="body",d=!1,s){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 o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role")),null!=r&&(o=this.addToHttpParams(o,r,"onlyDirectAdmins"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getVoBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBansForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoByShortName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"shortName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoMembersCountsByStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosCount(e="body",t=!1,r){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 s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}removeMemberVo(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminGroup(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminUser(e,t,r="body",l=!1,d){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 s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));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 u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}setVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Bt=(()=>{return(n=Bt||(Bt={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",Bt;var n})();let ys=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const s of r)l=l.concat(s.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER,Bt.FACILITYADMIN,Bt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Bt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(Bt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Bt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(Bt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(Bt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Bt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.VOOBSERVER,Bt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{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.roleName)}),e.sort(),"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 l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],s=[],o=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const V of Object.keys(b.entitiesToManage))o="User"===V?[V].concat(o):o.concat(V);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(s,c);r.set(l,{readAuth:u,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""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const s=r[d];if(null===s)this.principalRoles.has(d)||(l=!1);else if(t[s]){for(const o of t[s])if(!this.principalHasRole(d,s,o)){l=!1;break}}else l=!1;if(!l)break}if(l)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 l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){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 d=r.shift();if(t.has(d))continue;const s=this.getPerunPolicy(d);if(!s)return[];t.set(d,s),r=r.concat(s.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{let e;try{e=n()}catch(r){return void a.error(r)}return(e?(0,dn.D)(e):(0,Mn.c)()).subscribe(a)})}var ws=x(1762),ut=x(4850),Ui=x(7545),Zt=x(2986),za=x(2866);function _i(...n){const a=n[n.length-1];return(0,za.K)(a)?(n.pop(),e=>Ms(n,e,a)):e=>Ms(n,e)}var Sr=x(3489);function Cs(n,a){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Md(n,a,e))}}class Md{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new Fn(a,this.accumulator,this.seed,this.hasSeed))}}class Fn extends Sr.L{constructor(a,e,t,r){super(a),this.accumulator=e,this._seed=t,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}var wn=x(7221),vs=x(1406),Jo=x(4231);function bi(n){return function(e){return 0===n?(0,Mn.c)():e.lift(new Ts(n))}}class Ts{constructor(a){if(this.total=a,this.total<0)throw new Jo.W}call(a,e){return e.subscribe(new ga(a,this.total))}}class ga extends Sr.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,r=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,r=this.ring;for(let l=0;la.lift(new Se(n))}class Se{constructor(a){this.callback=a}call(a,e){return e.subscribe(new nt(a,this.callback))}}class nt extends Sr.L{constructor(a,e){super(a),this.add(new re.w(e))}}class Yt{constructor(a,e){this.id=a,this.url=e}}class Xt extends Yt{constructor(a,e,t="imperative",r=null){super(a,e),this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class At extends Yt{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ft extends Yt{constructor(a,e,t){super(a,e),this.reason=t}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Gi extends Yt{constructor(a,e,t){super(a,e),this.error=t}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ti extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ki extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _a extends Yt{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Er extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mt extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fa{constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qo{constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xo{constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ko{constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yu{constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ao{constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wu{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const be="primary";class $t{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 ba(n){return new $t(n)}const Zi="ngNavigationCancelingError";function dc(n){const a=Error("NavigationCancelingError: "+n);return a[Zi]=!0,a}function qr(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function Mi(n){return Array.prototype.concat.apply([],n)}function tl(n){return n.length>0?n[n.length-1]:null}function ei(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function un(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,dn.D)(Promise.resolve(n)):(0,$e.of)(n)}const so={exact:function Ju(n,a,e){if(!Wr(n.segments,a.segments)||!il(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Ju(n.children[t],a.children[t],e))return!1;return!0},subset:xs},jn={exact:function $u(n,a){return gr(n,a)},subset:function hc(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>Uu(n[e],a[e]))},ignored:()=>!0};function Zu(n,a,e){return so[e.paths](n.root,a.root,e.matrixParams)&&jn[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function xs(n,a,e){return oo(n,a,a.segments,e)}function oo(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Wr(r,e)||a.hasChildren()||!il(r,e,t))}if(n.segments.length===e.length){if(!Wr(n.segments,e)||!il(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!xs(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(Wr(n.segments,r)&&il(n.segments,r,t)&&n.children[be])&&oo(n.children[be],a,l,t)}}function il(n,a,e){return a.every((t,r)=>jn[e](n[r].parameters,t.parameters))}class Yr{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ba(this.queryParams)),this._queryParamMap}toString(){return pc.serialize(this)}}class Wt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ei(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fc(this)}}class ja{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ba(this.parameters)),this._parameterMap}toString(){return Xu(this)}}function Wr(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}class Cd{}class vd{parse(a){const e=new Aa(a);return new Yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${nl(a.root,!0)}`,t=function Ss(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${Dr(e)}=${Dr(r)}`).join("&"):`${Dr(e)}=${Dr(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Oi(n){return encodeURI(n)}(a.fragment)}`:""}`}}const pc=new vd;function fc(n){return n.segments.map(a=>Xu(a)).join("/")}function nl(n,a){if(!n.hasChildren())return fc(n);if(a){const e=n.children[be]?nl(n.children[be],!1):"",t=[];return ei(n.children,(r,l)=>{l!==be&&t.push(`${l}:${nl(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Qu(n,a){let e=[];return ei(n.children,(t,r)=>{r===be&&(e=e.concat(a(t,r)))}),ei(n.children,(t,r)=>{r!==be&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===be?[nl(n.children[be],!1)]:[`${r}:${nl(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[be]?`${fc(n)}/${e[0]}`:`${fc(n)}/(${e.join("//")})`}}function xn(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dr(n){return xn(n).replace(/%3B/gi,";")}function mc(n){return xn(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rl(n){return decodeURIComponent(n)}function Td(n){return rl(n.replace(/\+/g,"%20"))}function Xu(n){return`${mc(n.path)}${function Hr(n){return Object.keys(n).map(a=>`;${mc(a)}=${mc(n[a])}`).join("")}(n.parameters)}`}const al=/^[^\/()?;=#]+/;function Es(n){const a=n.match(al);return a?a[0]:""}const sl=/^[^=?&#]+/,Ku=/^[^&#]+/;class Aa{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],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[be]=new Wt(a,e)),t}parseSegment(){const a=Es(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new ja(rl(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Es(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Es(this.remaining);r&&(t=r,this.capture(t))}a[rl(e)]=rl(t)}parseQueryParam(a){const e=function gc(n){const a=n.match(sl);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function wf(n){const a=n.match(Ku);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=Td(e),l=Td(t);if(a.hasOwnProperty(r)){let d=a[r];Array.isArray(d)||(d=[d],a[r]=d),d.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Es(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let l;t.indexOf(":")>-1?(l=t.substr(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=be);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[be]:new Wt([],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 Error(`Expected "${a}".`)}}class co{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=xd(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=xd(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Sd(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return Sd(a,this._root).map(e=>e.value)}}function xd(n,a){if(n===a.value)return a;for(const e of a.children){const t=xd(n,e);if(t)return t}return null}function Sd(n,a){if(n===a.value)return[a];for(const e of a.children){const t=Sd(n,e);if(t.length)return t.unshift(a),t}return[]}class ir{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function qa(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class eh extends co{constructor(a,e){super(a),this.snapshot=e,_c(this,a)}toString(){return this.snapshot.toString()}}function th(n,a){const e=function P1(n,a){const d=new uo([],{},{},"",{},be,a,null,n.root,-1,{});return new ll("",new ir(d,[]))}(n,a),t=new Ki([new ja("",{})]),r=new Ki({}),l=new Ki({}),d=new Ki({}),s=new Ki(""),o=new nr(t,r,d,s,l,be,a,e.root);return o.snapshot=e.root,new eh(new ir(o,[]),e)}class nr{constructor(a,e,t,r,l,d,s,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,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,ut.U)(a=>ba(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ut.U)(a=>ba(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ol(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function ih(n){return n.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class uo{constructor(a,e,t,r,l,d,s,o,c,u,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this.routeConfig=o,this._urlSegment=c,this._lastPathIndex=u,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=ba(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ba(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ll extends co{constructor(a,e){super(e),this.url=a,_c(this,e)}toString(){return ho(this._root)}}function _c(n,a){a.value._routerState=n,a.children.forEach(e=>_c(n,e))}function ho(n){const a=n.children.length>0?` { ${n.children.map(ho).join(", ")} } `:"";return`${n.value}${a}`}function Ya(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,gr(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),gr(a.params,e.params)||n.params.next(e.params),function uc(n,a){if(n.length!==a.length)return!1;for(let e=0;egr(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Ed(n.parent,a.parent))}function Ds(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function bc(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Ds(n,t,r);return Ds(n,t)})}(n,a,e);return new ir(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(s=>Ds(n,s)),d}}const t=function R1(n){return new nr(new Ki(n.url),new Ki(n.params),new Ki(n.queryParams),new Ki(n.fragment),new Ki(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>Ds(n,l));return new ir(t,r)}}function cl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function fo(n){return"object"==typeof n&&null!=n&&n.outlets}function Ac(n,a,e,t,r){let l={};return t&&ei(t,(d,s)=>{l[s]=Array.isArray(d)?d.map(o=>`${o}`):`${d}`}),new Yr(e.root===n?a:Hs(e.root,n,a),l,r)}function Hs(n,a,e){const t={};return ei(n.children,(r,l)=>{t[l]=r===a?e:Hs(r,a,e)}),new Wt(n.segments,t)}class Ls{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&cl(t[0]))throw new Error("Root segment cannot have matrix parameters");const r=t.find(fo);if(r&&r!==tl(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ya{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function yc(n,a,e){if(n||(n=new Wt([],{})),0===n.segments.length&&n.hasChildren())return ul(n,a,e);const t=function rh(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],s=e[t];if(fo(s))break;const o=`${s}`,c=t0&&void 0===o)break;if(o&&c&&"object"==typeof c&&void 0===c.outlets){if(!go(o,c,d))return l;t+=2}else{if(!go(o,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=yc(n.children[d],a,l))}),ei(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Wt(n.segments,r)}}function Hd(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=Hd(new Wt([],{}),0,e))}),a}function hl(n){const a={};return ei(n,(e,t)=>a[t]=`${e}`),a}function go(n,a,e){return n==e.path&&gr(a,e.parameters)}class ah{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),Ya(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=qa(e);a.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),ei(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else l&&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,l=qa(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:s})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=qa(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],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=qa(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new ao(l.value.snapshot))}),a.children.length&&this.forwardEvent(new Ko(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(Ya(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(s.contexts),d.attachRef=s.componentRef,d.route=s.route.value,d.outlet&&d.outlet.attach(s.componentRef,s.route.value),Ya(s.route.value),this.activateChildRoutes(a,null,d.children)}else{const s=function sh(n){for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),o=s?s.module.componentFactoryResolver:null;d.attachRef=null,d.route=r,d.resolver=o,d.outlet&&d.outlet.activateWith(r,o),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class Ua{constructor(a,e){this.routes=a,this.module=e}}function Ma(n){return"function"==typeof n}function wa(n){return n instanceof Yr}const ks=Symbol("INITIAL_VALUE");function Ur(){return(0,Ui.w)(n=>(0,io.aj)(n.map(a=>a.pipe((0,Zt.q)(1),_i(ks)))).pipe(Cs((a,e)=>{let t=!1;return e.reduce((r,l,d)=>r!==ks?r:(l===ks&&(t=!0),t||!1!==l&&d!==e.length-1&&!wa(l)?r:l),a)},ks),(0,jt.h)(a=>a!==ks),(0,ut.U)(a=>wa(a)?a:!0===a),(0,Zt.q)(1)))}class O1{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new pl,this.attachRef=null}}class pl{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new O1,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let hi=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=l||be,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){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.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const 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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;const d=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,o=new kd(e,s,this.location.injector);this.activated=this.location.createComponent(d,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pl),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class kd{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===nr?this.route:a===pl?this.childContexts:this.parent.get(a,e)}}let Tf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],encapsulation:2}),n})();function xf(n,a=""){for(let e=0;eLr(t)===a);return e.push(...n.filter(t=>Lr(t)!==a)),e}const Sf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ii(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},Sf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const l=(a.matcher||qr)(e,n,a);if(!l)return Object.assign({},Sf);const d={};ei(l.posParams,(o,c)=>{d[c]=o.path});const s=l.consumed.length>0?Object.assign(Object.assign({},d),l.consumed[l.consumed.length-1].parameters):d;return{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:s,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function Mo(n,a,e,t,r="corrected"){if(e.length>0&&function Df(n,a,e){return e.some(t=>qn(n,a,t)&&Lr(t)!==be)}(n,e,t)){const d=new Wt(a,function Ef(n,a,e,t){const r={};r[be]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&Lr(l)!==be){const d=new Wt([],{});d._sourceSegment=n,d._segmentIndexShift=a.length,r[Lr(l)]=d}return r}(n,a,t,new Wt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function _r(n,a,e){return e.some(t=>qn(n,a,t))}(n,e,t)){const d=new Wt(n.segments,function ml(n,a,e,t,r,l){const d={};for(const s of t)if(qn(n,e,s)&&!r[Lr(s)]){const o=new Wt([],{});o._sourceSegment=n,o._segmentIndexShift="legacy"===l?n.segments.length:a.length,d[Lr(s)]=o}return Object.assign(Object.assign({},r),d)}(n,a,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const l=new Wt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function qn(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Pd(n,a,e,t){return!!(Lr(n)===t||t!==be&&qn(a,e,n))&&("**"===n.path||Ii(a,n,e).matched)}function gl(n,a,e){return 0===a.length&&!n.children[e]}class Ca{constructor(a){this.segmentGroup=a||null}}class Gr{constructor(a){this.urlTree=a}}function _l(n){return new Ri.y(a=>a.error(new Ca(n)))}function ch(n){return new Ri.y(a=>a.error(new Gr(n)))}function B1(n){return new Ri.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class rr{constructor(a,e,t,r,l){this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0,this.ngModule=a.get(i.h0i)}apply(){const a=Mo(this.urlTree.root,[],[],this.config).segmentGroup,e=new Wt(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,be).pipe((0,ut.U)(l=>this.createUrlTree(va(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,wn.K)(l=>{if(l instanceof Gr)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Ca?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,be).pipe((0,ut.U)(r=>this.createUrlTree(va(r),a.queryParams,a.fragment))).pipe((0,wn.K)(r=>{throw r instanceof Ca?this.noMatchError(r):r}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const r=a.segments.length>0?new Wt([],{[be]:a}):a;return new Yr(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,ut.U)(l=>new Wt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,dn.D)(r).pipe((0,vs.b)(l=>{const d=t.children[l],s=yo(e,l);return this.expandSegmentGroup(a,s,d,l).pipe((0,ut.U)(o=>({segment:o,outlet:l})))}),Cs((l,d)=>(l[d.outlet]=d.segment,l),{}),function Li(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,jt.h)((r,l)=>n(r,l,t)):Mf.y,bi(1),e?(0,ro.d)(a):(0,cc.T)(()=>new no.K))}())}expandSegment(a,e,t,r,l,d){return(0,dn.D)(t).pipe((0,vs.b)(s=>this.expandSegmentAgainstRoute(a,e,t,s,r,l,d).pipe((0,wn.K)(c=>{if(c instanceof Ca)return(0,$e.of)(null);throw c}))),(0,B.P)(s=>!!s),(0,wn.K)((s,o)=>{if(s instanceof no.K||"EmptyError"===s.name){if(gl(e,r,l))return(0,$e.of)(new Wt([],{}));throw new Ca(e)}throw s}))}expandSegmentAgainstRoute(a,e,t,r,l,d,s){return Pd(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,d):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d):_l(e):_l(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?ch(l):this.lineralizeSegments(t,l).pipe((0,G.zg)(d=>{const s=new Wt(d,{});return this.expandSegment(a,s,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){const{matched:s,consumedSegments:o,lastChild:c,positionalParamSegments:u}=Ii(e,r,l);if(!s)return _l(e);const h=this.applyRedirectCommands(o,r.redirectTo,u);return r.redirectTo.startsWith("/")?ch(h):this.lineralizeSegments(r,h).pipe((0,G.zg)(f=>this.expandSegment(a,e,t,f.concat(l.slice(c)),d,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,$e.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,ut.U)(f=>(t._loadedConfig=f,new Wt(r,{})))):(0,$e.of)(new Wt(r,{}));const{matched:d,consumedSegments:s,lastChild:o}=Ii(e,t,r);if(!d)return _l(e);const c=r.slice(o);return this.getChildConfig(a,t,r).pipe((0,G.zg)(h=>{const f=h.module,b=h.routes,{segmentGroup:V,slicedSegments:ee}=Mo(e,s,c,b),he=new Wt(V.segments,V.children);if(0===ee.length&&he.hasChildren())return this.expandChildren(f,b,he).pipe((0,ut.U)(Kt=>new Wt(s,Kt)));if(0===b.length&&0===ee.length)return(0,$e.of)(new Wt(s,{}));const Oe=Lr(t)===l;return this.expandSegment(f,he,b,ee,Oe?be:l,!0).pipe((0,ut.U)(dt=>new Wt(s.concat(dt.segments),dt.children)))}))}getChildConfig(a,e,t){return e.children?(0,$e.of)(new Ua(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,$e.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,G.zg)(r=>r?this.configLoader.load(a.injector,e).pipe((0,ut.U)(l=>(e._loadedConfig=l,l))):function N1(n){return new Ri.y(a=>a.error(dc(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):(0,$e.of)(new Ua([],a))}runCanLoadGuards(a,e,t){const r=e.canLoad;if(!r||0===r.length)return(0,$e.of)(!0);const l=r.map(d=>{const s=a.get(d);let o;if(function _o(n){return n&&Ma(n.canLoad)}(s))o=s.canLoad(e,t);else{if(!Ma(s))throw new Error("Invalid CanLoad guard");o=s(e,t)}return un(o)});return(0,$e.of)(l).pipe(Ur(),(0,I.b)(d=>{if(!wa(d))return;const s=dc(`Redirecting to "${this.urlSerializer.serialize(d)}"`);throw s.url=d,s}),(0,ut.U)(d=>!0===d))}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,$e.of)(t);if(r.numberOfChildren>1||!r.children[be])return B1(a.redirectTo);r=r.children[be]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new Yr(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ei(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let d={};return ei(e.children,(s,o)=>{d[o]=this.createSegmentGroup(a,s,t,r)}),new Wt(l,d)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);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}}function va(n){const a={};for(const t of Object.keys(n.children)){const l=va(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Rd(n){if(1===n.numberOfChildren&&n.children[be]){const a=n.children[be];return new Wt(n.segments.concat(a.segments),a.children)}return n}(new Wt(n.segments,a))}class wo{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class bl{constructor(a,e){this.component=a,this.route=e}}function Od(n,a,e){const t=n._root;return Co(t,a?a._root:null,e,[t.value])}function Mc(n,a,e){const t=function Lf(n){if(!n)return null;for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(n)}function Co(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=qa(a);return n.children.forEach(d=>{(function Id(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=a?a.value:null,s=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const o=function br(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!Wr(n.url,a.url);case"pathParamsOrQueryParamsChange":return!Wr(n.url,a.url)||!gr(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ed(n,a)||!gr(n.queryParams,a.queryParams);default:return!Ed(n,a)}}(d,l,l.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new wo(t)):(l.data=d.data,l._resolvedData=d._resolvedData),Co(n,a,l.component?s?s.children:null:e,t,r),o&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new bl(s.outlet.component,d))}else d&&wc(a,s,r),r.canActivateChecks.push(new wo(t)),Co(n,null,l.component?s?s.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),ei(l,(d,s)=>wc(d,e.getContext(s),r)),r}function wc(n,a,e){const t=qa(n),r=n.value;ei(t,(l,d)=>{wc(l,r.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new bl(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}class Al{}function kr(n){return new Ri.y(a=>a.error(n))}class hn{constructor(a,e,t,r,l,d){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=r,this.paramsInheritanceStrategy=l,this.relativeLinkResolution=d}recognize(){const a=Mo(this.urlTree.root,[],[],this.config.filter(d=>void 0===d.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,be);if(null===e)return null;const t=new uo([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},be,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ir(t,e),l=new ll(this.url,r);return this.inheritParamsAndData(l._root),l}inheritParamsAndData(a){const e=a.value,t=ol(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){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const l of Object.keys(e.children)){const d=e.children[l],s=yo(a,l),o=this.processSegmentGroup(s,d,l);if(null===o)return null;t.push(...o)}const r=To(t);return function hh(n){n.sort((a,e)=>a.value.outlet===be?-1:e.value.outlet===be?1:a.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(a,e,t,r){for(const l of a){const d=this.processSegmentAgainstRoute(l,e,t,r);if(null!==d)return d}return gl(e,t,r)?[]:null}processSegmentAgainstRoute(a,e,t,r){if(a.redirectTo||!Pd(a,e,t,r))return null;let l,d=[],s=[];if("**"===a.path){const b=t.length>0?tl(t).parameters:{};l=new uo(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xo(a),Lr(a),a.component,a,ph(e),fh(e)+t.length,Ga(a))}else{const b=Ii(e,a,t);if(!b.matched)return null;d=b.consumedSegments,s=t.slice(b.lastChild),l=new uo(d,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xo(a),Lr(a),a.component,a,ph(e),fh(e)+d.length,Ga(a))}const o=function Of(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(a),{segmentGroup:c,slicedSegments:u}=Mo(e,d,s,o.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const b=this.processChildren(o,c);return null===b?null:[new ir(l,b)]}if(0===o.length&&0===u.length)return[new ir(l,[])];const h=Lr(a)===r,f=this.processSegment(o,c,u,h?be:r);return null===f?null:[new ir(l,f)]}}function Nd(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function To(n){const a=[],e=new Set;for(const t of n){if(!Nd(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=To(t.children);a.push(new ir(t.value,r))}return a.filter(t=>!e.has(t))}function ph(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function fh(n){let a=n,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function xo(n){return n.data||{}}function Ga(n){return n.resolve||{}}function Tc(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Sc(n){return(0,Ui.w)(a=>{const e=n(a);return e?(0,dn.D)(e).pipe((0,ut.U)(()=>a)):(0,$e.of)(a)})}class Yn extends class Nf{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Ar=new i.OlP("ROUTES");class gh{constructor(a,e,t,r){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=r}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe((0,ut.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e);const d=l.create(a);return new Ua(Mi(d.injector.get(Ar,void 0,i.XFs.Self|i.XFs.Optional)).map(fl),d)}),(0,wn.K)(l=>{throw e._loader$=void 0,l}));return e._loader$=new ws.c(r,()=>new He.xQ).pipe((0,Q.x)()),e._loader$}loadModuleFactory(a){return un(a()).pipe((0,G.zg)(e=>e instanceof i.YKP?(0,$e.of)(e):(0,dn.D)(this.compiler.compileModuleAsync(e))))}}class _h{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Vf(n){throw n}function F1(n,a,e){return a.parse("/")}function Ec(n,a){return(0,$e.of)(null)}const Eo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Dc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let rt=(()=>{class n{constructor(e,t,r,l,d,s,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.xQ,this.errorHandler=Vf,this.malformedUriErrorHandler=F1,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ec,afterPreactivation:Ec},this.urlHandlingStrategy=new _h,this.routeReuseStrategy=new Yn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function Gu(){return new Yr(new Wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gh(d,s,f=>this.triggerEvent(new Fa(f)),f=>this.triggerEvent(new Qo(f))),this.routerState=th(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(){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,jt.h)(r=>0!==r.id),(0,ut.U)(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,Ui.w)(r=>{let l=!1,d=!1;return(0,$e.of)(r).pipe((0,I.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.currentRawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Ui.w)(s=>{const o=this.browserUrlTree.toString(),c=!this.navigated||s.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return H(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,$e.of)(s).pipe((0,Ui.w)(h=>{const f=this.transitions.getValue();return t.next(new Xt(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?Mn.E:Promise.resolve(h)}),function ti(n,a,e,t){return(0,Ui.w)(r=>function Ie(n,a,e,t,r){return new rr(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,ut.U)(l=>Object.assign(Object.assign({},r),{urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,I.b)(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function Za(n,a,e,t,r){return(0,G.zg)(l=>function Rf(n,a,e,t,r="emptyOnly",l="legacy"){try{const d=new hn(n,a,e,t,r,l).recognize();return null===d?kr(new Al):(0,$e.of)(d)}catch(d){return kr(d)}}(n,a,l.urlAfterRedirects,e(l.urlAfterRedirects),t,r).pipe((0,ut.U)(d=>Object.assign(Object.assign({},l),{targetSnapshot:d}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,I.b)(h=>{if("eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new Ti(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:V,restoredState:ee,extras:he}=s,Oe=new Xt(f,this.serializeUrl(b),V,ee);t.next(Oe);const gt=th(b,this.rootComponentType).snapshot;return(0,$e.of)(Object.assign(Object.assign({},s),{targetSnapshot:gt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},he),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),Mn.E}),Sc(s=>{const{targetSnapshot:o,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=s;return this.hooks.beforePreactivation(o,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,I.b)(s=>{const o=new ki(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(o)}),(0,ut.U)(s=>Object.assign(Object.assign({},s),{guards:Od(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function vo(n,a){return(0,G.zg)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,$e.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Bd(n,a,e,t){return(0,dn.D)(n).pipe((0,G.zg)(r=>function Pf(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,$e.of)(!0);const d=l.map(s=>{const o=Mc(s,a,r);let c;if(function oh(n){return n&&Ma(n.canDeactivate)}(o))c=un(o.canDeactivate(n,a,e,t));else{if(!Ma(o))throw new Error("Invalid CanDeactivate guard");c=un(o(n,a,e,t))}return c.pipe((0,B.P)())});return(0,$e.of)(d).pipe(Ur())}(r.component,r.route,e,a,t)),(0,B.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,G.zg)(s=>s&&function Ld(n){return"boolean"==typeof n}(s)?function Cc(n,a,e,t){return(0,dn.D)(a).pipe((0,vs.b)(r=>Ms(function kf(n,a){return null!==n&&a&&a(new Xo(n)),(0,$e.of)(!0)}(r.route.parent,t),function dh(n,a){return null!==n&&a&&a(new Yu(n)),(0,$e.of)(!0)}(r.route,t),function vc(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(d=>function Hf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(d)).filter(d=>null!==d).map(d=>ma(()=>{const s=d.guards.map(o=>{const c=Mc(o,d.node,e);let u;if(function Ao(n){return n&&Ma(n.canActivateChild)}(c))u=un(c.canActivateChild(t,n));else{if(!Ma(c))throw new Error("Invalid CanActivateChild guard");u=un(c(t,n))}return u.pipe((0,B.P)())});return(0,$e.of)(s).pipe(Ur())}));return(0,$e.of)(l).pipe(Ur())}(n,r.path,e),function uh(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,$e.of)(!0);const r=t.map(l=>ma(()=>{const d=Mc(l,a,e);let s;if(function bo(n){return n&&Ma(n.canActivate)}(d))s=un(d.canActivate(a,n));else{if(!Ma(d))throw new Error("Invalid CanActivate guard");s=un(d(a,n))}return s.pipe((0,B.P)())}));return(0,$e.of)(r).pipe(Ur())}(n,r.route,e))),(0,B.P)(r=>!0!==r,!0))}(t,l,n,a):(0,$e.of)(s)),(0,ut.U)(s=>Object.assign(Object.assign({},e),{guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,I.b)(s=>{if(wa(s.guardsResult)){const c=dc(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw c.url=s.guardsResult,c}const o=new _a(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(o)}),(0,jt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,""),!1)),Sc(s=>{if(s.guards.canActivateChecks.length)return(0,$e.of)(s).pipe((0,I.b)(o=>{const c=new Er(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(c)}),(0,Ui.w)(o=>{let c=!1;return(0,$e.of)(o).pipe(function So(n,a){return(0,G.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,$e.of)(e);let l=0;return(0,dn.D)(r).pipe((0,vs.b)(d=>function If(n,a,e,t){return function mh(n,a,e,t){const r=Tc(n);if(0===r.length)return(0,$e.of)({});const l={};return(0,dn.D)(r).pipe((0,G.zg)(d=>function xc(n,a,e,t){const r=Mc(n,a,t);return un(r.resolve?r.resolve(a,e):r(a,e))}(n[d],a,e,t).pipe((0,I.b)(s=>{l[d]=s}))),bi(1),(0,G.zg)(()=>Tc(l).length===r.length?(0,$e.of)(l):Mn.E))}(n._resolve,n,a,t).pipe((0,ut.U)(l=>(n._resolvedData=l,n.data=Object.assign(Object.assign({},n.data),ol(n,e).resolve),null)))}(d.route,t,n,a)),(0,I.b)(()=>l++),bi(1),(0,G.zg)(d=>l===r.length?(0,$e.of)(e):Mn.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,I.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(o),this.cancelNavigationTransition(o,"At least one route resolver didn't emit any value."))}}))}),(0,I.b)(o=>{const c=new mt(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(c)}))}),Sc(s=>{const{targetSnapshot:o,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=s;return this.hooks.afterPreactivation(o,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,ut.U)(s=>{const o=function po(n,a,e){const t=Ds(n,a._root,e?e._root:void 0);return new eh(t,a)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:o})}),(0,I.b)(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((n,a,e)=>(0,ut.U)(t=>(new ah(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,I.b)({next(){l=!0},complete(){l=!0}}),ye(()=>{var s;l||d||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),(0,wn.K)(s=>{if(d=!0,function el(n){return n&&n[Zi]}(s)){const o=wa(s.url);o||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Ft(r.id,this.serializeUrl(r.extractedUrl),s.message);t.next(c),o?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||H(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const o=new Gi(r.id,this.serializeUrl(r.extractedUrl),s);t.next(o);try{r.resolve(this.errorHandler(s))}catch(c){r.reject(c)}}return Mn.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},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 l={replaceUrl:!0},d=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(d){const o=Object.assign({},d);delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(l.state=o)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,t,d,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){xf(e),this.config=e.map(fl),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:l,fragment:d,queryParamsHandling:s,preserveFragment:o}=t,c=r||this.routerState.root,u=o?this.currentUrlTree.fragment:d;let h=null;switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),l);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),function nh(n,a,e,t,r){if(0===e.length)return Ac(a.root,a.root,a,t,r);const l=function Wa(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Ls(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return ei(l.outlets,(o,c)=>{s[c]="string"==typeof o?o.split("/"):o}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((s,o)=>{0==o&&"."===s||(0==o&&""===s?e=!0:".."===s?a++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new Ls(e,a,t)}(e);if(l.toRoot())return Ac(a.root,new Wt([],{}),a,t,r);const d=function dl(n,a,e){if(n.isAbsolute)return new ya(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const l=e.snapshot._urlSegment;return new ya(l,l===a.root,0)}const t=cl(n.commands[0])?0:1;return function mo(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new Error("Invalid number of '../'");r=t.segments.length}return new ya(t,!1,r-l)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,n.numberOfDoubleDots)}(l,a,n),s=d.processChildren?ul(d.segmentGroup,d.index,l.commands):yc(d.segmentGroup,d.index,l.commands);return Ac(d.segmentGroup,s,a,t,r)}(c,this.currentUrlTree,e,h,null!=u?u:null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=wa(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function C(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new At(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){var s,o,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,h=H(t)&&u&&!H(u.source),f=u.rawUrl.toString()===e.toString(),b=u.id===(null===(s=this.currentNavigation)||void 0===s?void 0:s.id);if(h&&f&&b)return Promise.resolve(!0);let ee,he,Oe;d?(ee=d.resolve,he=d.reject,Oe=d.promise):Oe=new Promise((Kt,Pa)=>{ee=Kt,he=Pa});const gt=++this.navigationId;let dt;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),dt=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):dt=0,this.setTransition({id:gt,targetPageId:dt,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:ee,reject:he,promise:Oe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Oe.catch(Kt=>Promise.reject(Kt))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){var r,l;if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===d?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===d&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}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){const r=new Ft(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function H(n){return"imperative"!==n}let O=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new He.xQ,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:J(this.skipLocationChange),replaceUrl:J(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:J(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.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:[i.TTD]}),n})(),z=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new He.xQ,this.subscription=e.events.subscribe(l=>{l instanceof At&&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,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:J(this.skipLocationChange),replaceUrl:J(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!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:J(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.Y36(w.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();function J(n){return""===n||!!n}class ot{}class kt{preload(a,e){return e().pipe((0,wn.K)(()=>(0,$e.of)(null)))}}class ai{preload(a,e){return(0,$e.of)(null)}}let Bi=(()=>{class n{constructor(e,t,r,l){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=new gh(r,t,o=>e.triggerEvent(new Fa(o)),o=>e.triggerEvent(new Qo(o)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,jt.h)(e=>e instanceof At),(0,vs.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const d=l._loadedConfig;r.push(this.processRoutes(d.module,d.routes))}else l.loadChildren&&!l.canLoad?r.push(this.preloadConfig(e,l)):l.children&&r.push(this.processRoutes(e,l.children));return(0,dn.D)(r).pipe((0,$o.J)(),(0,ut.U)(l=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,$e.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,G.zg)(l=>(t._loadedConfig=l,this.processRoutes(l.module,l.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rt),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(ot))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Pr=(()=>{class n{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 Xt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof At&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Wu&&(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 Wu(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yl=new i.OlP("ROUTER_CONFIGURATION"),j1=new i.OlP("ROUTER_FORROOT_GUARD"),WA=[w.Ye,{provide:Cd,useClass:vd},{provide:rt,useFactory:function ZA(n,a,e,t,r,l,d={},s,o){const c=new rt(null,n,a,e,t,r,Mi(l));return s&&(c.urlHandlingStrategy=s),o&&(c.routeReuseStrategy=o),function $A(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(d,c),d.enableTracing&&c.events.subscribe(u=>{var h,f;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(f=console.groupEnd)||void 0===f||f.call(console)}),c},deps:[Cd,pl,w.Ye,i.zs3,i.Sil,Ar,yl,[class z1{},new i.FiY],[class Bf{},new i.FiY]]},pl,{provide:nr,useFactory:function W1(n){return n.routerState.root},deps:[rt]},Bi,ai,kt,{provide:yl,useValue:{enableTracing:!1}}];function Rs(){return new i.PXZ("Router",rt)}let Os=(()=>{class n{constructor(e,t){}static forRoot(e,t){return{ngModule:n,providers:[WA,Y1(e),{provide:j1,useFactory:GA,deps:[[rt,new i.FiY,new i.tp0]]},{provide:yl,useValue:t||{}},{provide:w.S$,useFactory:UA,deps:[w.lw,[new i.tBr(w.mr),new i.FiY],yl]},{provide:Pr,useFactory:q1,deps:[rt,w.EM,yl]},{provide:ot,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:ai},{provide:i.PXZ,multi:!0,useFactory:Rs},[zf,{provide:i.ip1,multi:!0,useFactory:JA,deps:[zf]},{provide:U1,useFactory:QA,deps:[zf]},{provide:i.tb,multi:!0,useExisting:U1}]]}}static forChild(e){return{ngModule:n,providers:[Y1(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(j1,8),i.LFG(rt,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function q1(n,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new Pr(n,a,e)}function UA(n,a,e={}){return e.useHash?new w.Do(n,a):new w.b0(n,a)}function GA(n){return"guarded"}function Y1(n){return[{provide:i.deG,multi:!0,useValue:n},{provide:Ar,multi:!0,useValue:n}]}let zf=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He.xQ}appInitializer(){return this.injector.get(w.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const r=new Promise(s=>t=s),l=this.injector.get(rt),d=this.injector.get(yl);return"disabled"===d.initialNavigation?(l.setUpLocationChangeListener(),t(!0)):"enabled"===d.initialNavigation||"enabledBlocking"===d.initialNavigation?(l.hooks.afterPreactivation=()=>this.initNavigation?(0,$e.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),l.initialNavigation()):t(!0),r})}bootstrapListener(e){const t=this.injector.get(yl),r=this.injector.get(Bi),l=this.injector.get(Pr),d=this.injector.get(rt),s=this.injector.get(i.z2F);e===s.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&d.initialNavigation(),r.setUpPreloading(),l.init(),d.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function JA(n){return n.appInitializer.bind(n)}function QA(n){return n.bootstrapListener.bind(n)}const U1=new i.OlP("Router Initializer");let zt=(()=>{class n{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.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l(0,Ff.k)(r)?t(...r):t(r))):new Ri.y(r=>{bh(n,a,function l(d){r.next(arguments.length>1?Array.prototype.slice.call(arguments):d)},r,e)})}function bh(n,a,e,t,r){let l;if(function Z1(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const d=n;n.addEventListener(a,e,r),l=()=>d.removeEventListener(a,e,r)}else if(function jv(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const d=n;n.on(a,e),l=()=>d.off(a,e)}else if(function Fv(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const d=n;n.addListener(a,e),l=()=>d.removeListener(a,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let d=0,s=n.length;d0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Ah=1;const $1=Promise.resolve(),kc={};function J1(n){return n in kc&&(delete kc[n],!0)}const $i={setImmediate(n){const a=Ah++;return kc[a]=!0,$1.then(()=>J1(a)&&n()),a},clearImmediate(n){J1(n)}},yh=new class Wf extends qf.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,r=-1,l=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++r0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=$i.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&($i.clearImmediate(e),a.scheduled=void 0)}});var Mh=x(353),Q1=x(826),X1=x(9054);class ny{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new qv(a,this.durationSelector))}}class qv extends Q1.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(a)}catch(r){return this.destination.error(r)}const t=(0,X1.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function K1(n){return!(0,Ff.k)(n)&&n-parseFloat(n)+1>=0}function Pc(n=0,a,e){let t=-1;return K1(a)?t=Number(a)<1?1:Number(a):(0,za.K)(a)&&(e=a),(0,za.K)(e)||(e=Mh.P),new Ri.y(r=>{const l=K1(n)?n:+n-e.now();return e.schedule(ar,l,{index:0,period:t,subscriber:r})})}function ar(n){const{index:a,period:e,subscriber:t}=n;if(t.next(a),!t.closed){if(-1===e)return t.complete();n.index=a+1,this.schedule(n,e)}}function Vd(n,a=Mh.P){return function iy(n){return function(e){return e.lift(new ny(n))}}(()=>Pc(n,a))}function tt(n){return a=>a.lift(new eg(n))}class eg{constructor(a){this.notifier=a}call(a,e){const t=new Wn(a),r=(0,X1.D)(t,this.notifier);return r&&!t.seenValue?(t.add(r),e.subscribe(t)):t}}class Wn extends Q1.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,r,l){this.seenValue=!0,this.complete()}notifyComplete(){}}let Ml;try{Ml="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Ml=!1}let Oc,xi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,w.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&&!Ml)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Uf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function tg(){if(Oc)return Oc;if("object"!=typeof document||!document)return Oc=new Set(Uf),Oc;let n=document.createElement("input");return Oc=new Set(Uf.filter(a=>(n.setAttribute("type",a),n.type===a))),Oc}let Ic,wh,wl,Gf;function $a(n){return function ry(){if(null==Ic&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ic=!0}))}finally{Ic=Ic||!1}return Ic}()?n:!!n.capture}function Ch(){if(null==wl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wl=!1,wl;if("scrollBehavior"in document.documentElement.style)wl=!0;else{const n=Element.prototype.scrollTo;wl=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return wl}function zd(){if("object"!=typeof document||!document)return 0;if(null==wh){const n=document.createElement("div"),a=n.style;n.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",n.appendChild(e),document.body.appendChild(n),wh=0,0===n.scrollLeft&&(n.scrollLeft=1,wh=0===n.scrollLeft?1:2),n.remove()}return wh}function vh(n){if(function Zf(){if(null==Gf){const n="undefined"!=typeof document?document.head:null;Gf=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Gf}()){const a=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function $f(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function Un(n){return n.composedPath?n.composedPath()[0]:n.target}function Jf(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const ay=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function sy(){return(0,i.f3M)(w.K0)}}),oy=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Cn=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function ly(n){const a=(null==n?void 0:n.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?oy.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ay,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),sr=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new He.xQ,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 Ri.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Vd(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,$e.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,jt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=zi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ta(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(xi),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Th=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new He.xQ,this._elementScrolled=new Ri.y(d=>this.ngZone.runOutsideAngular(()=>Ta(this.elementRef.nativeElement,"scroll").pipe(tt(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,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!=zd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==zd()?e.left=e.right:1==zd()&&(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;Ch()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==zd()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==zd()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b),i.Y36(Cn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Ja=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new He.xQ,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.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,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Vd(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 n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Cl,Rc,xa],Cl,xa]}),n})();class Do{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 Nc extends Do{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class vl extends Do{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}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 fy extends Do{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class Fd{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Nc?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof vl?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof fy?(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 my extends Fd{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const s=d.element,o=this._document.createComment("dom-portal");s.parentNode.insertBefore(o,s),this.outletElement.appendChild(s),this._attachedPortal=d,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(s,o)})},this._document=l}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),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{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);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 Qf=(()=>{class n extends Fd{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(s,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(d,s)})},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,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,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);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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Tl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Si=x(6787);class Ay{constructor(a,e){this.predicate=a,this.inclusive=e}call(a,e){return e.subscribe(new sg(a,this.predicate,this.inclusive))}}class sg extends Sr.L{constructor(a,e,t){super(a),this.predicate=e,this.inclusive=t,this.index=0}_next(a){const e=this.destination;let t;try{t=this.predicate(a,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(a,t)}nextOrComplete(a,e){const t=this.destination;Boolean(e)?t.next(a):(this.inclusive&&t.next(a),t.complete())}}function vn(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const c0=Ch();class $y{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=en(-this._previousScrollPosition.left),a.style.top=en(-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,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),c0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),c0&&(t.scrollBehavior=l,r.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 Qy{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 Cg{enable(){}disable(){}attach(){}}function or(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function vg(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class Xy{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();or(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 DT=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new Cg,this.close=d=>new Qy(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new $y(this._viewportRuler,this._document),this.reposition=d=>new Xy(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(sr),i.LFG(Ja),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Hh{constructor(a){if(this.scrollStrategy=new Cg,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 eM{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class iM{constructor(a,e,t,r,l,d,s,o,c){this._portalOutlet=a,this._host=e,this._pane=t,this._config=r,this._ngZone=l,this._keyboardDispatcher=d,this._document=s,this._location=o,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new He.xQ,this._attachments=new He.xQ,this._detachments=new He.xQ,this._locationChanges=re.w.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new He.xQ,this._outsidePointerEvents=new He.xQ,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){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Zt.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),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=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},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=en(this._config.width),a.height=en(this._config.height),a.minWidth=en(this._config.minWidth),a.minHeight=en(this._config.minHeight),a.maxWidth=en(this._config.maxWidth),a.maxHeight=en(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._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const r=Lc(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(tt((0,Si.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.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let d0=(()=>{class n{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||Jf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;l{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let s of this._preferredPositions){let o=this._getOriginPoint(a,r,s),c=this._getOverlayPoint(o,e,s),u=this._getOverlayFit(c,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!d||d.overlayFit.visibleAreao&&(o=u,s=c)}return this._isPushed=!1,void this._applyPosition(s.position,s.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&&ko(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xg),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,l;if("center"==t.originX)r=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,s=this._isRtl()?a.left:a.right;r="start"==t.originX?d:s}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=Dg(e);let{x:d,y:s}=a,o=this._getOffset(r,"x"),c=this._getOffset(r,"y");o&&(d+=o),c&&(s+=c);let f=0-s,b=s+l.height-t.height,V=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ee=this._subtractOverflows(l.height,f,b),he=V*ee;return{visibleArea:he,isCompletelyWithinViewport:l.width*l.height===he,fitsInViewportVertically:ee===l.height,fitsInViewportHorizontally:V==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=Eg(this._overlayRef.getConfig().minHeight),s=Eg(this._overlayRef.getConfig().minWidth),c=a.fitsInViewportHorizontally||null!=s&&s<=l;return(a.fitsInViewportVertically||null!=d&&d<=r)&&c}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=Dg(e),l=this._viewportRect,d=Math.max(a.x+r.width-l.width,0),s=Math.max(a.y+r.height-l.height,0),o=Math.max(l.top-t.top-a.y,0),c=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:a.xV&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),V=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>V&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-V/2)}return{top:d,left:h,bottom:s,right:f,width:u,height:l}}_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 l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=en(t.height),r.top=en(t.top),r.bottom=en(t.bottom),r.width=en(t.width),r.left=en(t.left),r.right=en(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",l&&(r.maxHeight=en(l)),d&&(r.maxWidth=en(d))}this._lastBoundingBoxSize=t,ko(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ko(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ko(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();ko(t,this._getExactOverlayY(e,a,u)),ko(t,this._getExactOverlayX(e,a,u))}else t.position="static";let s="",o=this._getOffset(e,"x"),c=this._getOffset(e,"y");o&&(s+=`translateX(${o}px) `),c&&(s+=`translateY(${c}px)`),t.transform=s.trim(),d.maxHeight&&(r?t.maxHeight=en(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=en(d.maxWidth):l&&(t.maxWidth="")),ko(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=en(l.y),r}_getExactOverlayX(a,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=en(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vg(a,t),isOriginOutsideView:or(a,t),isOverlayClipped:vg(e,t),isOverlayOutsideView:or(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?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Lc(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 i.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 ko(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function Eg(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(Sg);return e&&"px"!==e?null:parseFloat(a)}return n||null}function Dg(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const u0="cdk-global-overlay-wrapper";class Hg{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}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(u0),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-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._justifyContent="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:l,maxWidth:d,maxHeight:s}=t,o=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s);a.position=this._cssPosition,a.marginLeft=o?"0":this._leftOffset,a.marginTop=c?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,o?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"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(u0),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let rM=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Hg}flexibleConnectedTo(e){return new nM(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ja),i.LFG(w.K0),i.LFG(xi),i.LFG(d0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sa=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),h0=(()=>{class n extends Sa{constructor(e){super(e),this._keydownListener=t=>{const r=this._attachedOverlays;for(let l=r.length-1;l>-1;l--)if(r[l]._keydownEvents.observers.length>0){r[l]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aM=(()=>{class n extends Sa{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Un(r)},this._clickListener=r=>{const l=Un(r),d="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const s=this._attachedOverlays.slice();for(let o=s.length-1;o>-1;o--){const c=s[o];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(l)||c.overlayElement.contains(d))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sM=0,Zr=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=s,this._ngZone=o,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new Hh(e);return d.direction=d.direction||this._directionality.value,new iM(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+sM++,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(i.z2F)),new my(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(DT),i.LFG(d0),i.LFG(i._Vd),i.LFG(rM),i.LFG(h0),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(Cn),i.LFG(w.Ye),i.LFG(aM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Lg=[{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"}],kg=new i.OlP("cdk-connected-overlay-scroll-strategy");let Pg=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Rg=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=re.w.EMPTY,this._attachSubscription=re.w.EMPTY,this._detachSubscription=re.w.EMPTY,this._positionSubscription=re.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new vl(t,r),this._scrollStrategyFactory=l,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=je(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=je(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=je(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=je(e)}get push(){return this._push}set push(e){this._push=je(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=Lg);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&&!vn(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 Hh({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 Pg?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(function by(n,a=!1){return e=>e.lift(new Ay(n,a))}(()=>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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(kg),i.Y36(Cn,8))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})();const oM={provide:kg,deps:[Zr],useFactory:function p0(n){return()=>n.scrollStrategies.reposition()}};let zc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Zr,oM],imports:[[Cl,Tl,Qa],Qa]}),n})();var kh=x(13);function Ph(n){return a=>a.lift(new m0(n))}class m0{constructor(a){this.total=a}call(a,e){return e.subscribe(new Og(a,this.total))}}class Og extends Sr.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}function Rh(n,a){return e=>e.lift(new lM(n,a))}class lM{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new g0(a,this.compare,this.keySelector))}}class g0 extends Sr.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:r}=this;e=r?r(a):a}catch(r){return this.destination.error(r)}let t=!1;if(this.hasKey)try{const{compare:r}=this;t=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let cM=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dM=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=zi(e);return new Ri.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.xQ,r=this._mutationObserverFactory.create(l=>t.next(l));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 n.\u0275fac=function(e){return new(e||n)(i.LFG(cM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=oi(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,kh.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dM),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),Wd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[cM]}),n})();function $r(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const Ng="cdk-describedby-message",Ih="cdk-describedby-host";let uM=0,Bh=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+uM++,this._document=e}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Nh(t,r);"string"!=typeof t?(Vh(t),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const d=Nh(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const s=this._messageRegistry.get(d);s&&0===s.referenceCount&&this._deleteMessageElement(d)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Ih}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Ng));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function Ig(n,a,e){const t=$r(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Ih,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function Bg(n,a,e){const r=$r(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Ih)}_isElementDescribedByMessage(e,t){const r=$r(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Nh(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function Vh(n){n.id||(n.id=`${Ng}-${uM++}`)}class Fc{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.xQ,this._typeaheadSubscription=re.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.xQ,this.change=new He.xQ,a instanceof i.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,I.b)(e=>this._pressedLetters.push(e)),(0,kh.b)(a),(0,jt.h)(()=>this._pressedLetters.length>0),(0,ut.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-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||vn(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),r=e[t];this._activeItem=null==r?null:r,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 i.n_E?this._items.toArray():this._items}}class Vg extends Fc{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class jc extends Fc{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 zh=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function pM(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function zg(n){try{return n.frameElement}catch(a){return null}}(function _M(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===jg(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=jg(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function gM(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Yc(n){return!function fM(n){return function Fg(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function A0(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function mM(n){return function qc(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||y0(n))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function y0(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function jg(n){if(!y0(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class bM{constructor(a,e,t,r,l=!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,l||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 null==t||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,Zt.q)(1)).subscribe(a)}}let qg=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new bM(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zh),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ud(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Fh(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const wM=new i.OlP("cdk-input-modality-detector-options"),CM={ignoreKeys:[18,17,224,91,16]},Dl=$a({passive:!0,capture:!0});let LT=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Ki(null),this._lastTouchMs=0,this._onKeydown=d=>{var s,o;(null===(o=null===(s=this._options)||void 0===s?void 0:s.ignoreKeys)||void 0===o?void 0:o.some(c=>c===d.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Un(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ud(d)?"keyboard":"mouse"),this._mostRecentTarget=Un(d))},this._onTouchstart=d=>{Fh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Un(d))},this._options=Object.assign(Object.assign({},CM),l),this.modalityDetected=this._modality.pipe(Ph(1)),this.modalityChanged=this.modalityDetected.pipe(Rh()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Dl),r.addEventListener("mousedown",this._onMousedown,Dl),r.addEventListener("touchstart",this._onTouchstart,Dl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Dl),document.removeEventListener("mousedown",this._onMousedown,Dl),document.removeEventListener("touchstart",this._onTouchstart,Dl))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(wM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ug=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function vM(){return null}}),TM=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let kT=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>new Promise(s=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,s(),"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,d){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 He.xQ,this._rootNodeFocusAndBlurListener=s=>{const o=Un(s),c="focus"===s.type?this._onFocus:this._onBlur;for(let u=o;u;u=u.parentElement)c.call(this,s,u)},this._document=l,this._detectionMode=(null==d?void 0:d.detectionMode)||0}monitor(e,t=!1){const r=zi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,$e.of)(null);const l=vh(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const s={checkChildren:t,subject:new He.xQ,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=zi(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 l=zi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([s,o])=>this._originChanged(s,t,o)):(this._setOrigin(t),"function"==typeof l.focus&&l.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:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0: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),l=Un(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),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.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.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,jh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,jh)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(tt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!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,jh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jh),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.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(xi),i.LFG(LT),i.LFG(w.K0,8),i.LFG(M0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const SM="cdk-high-contrast-black-on-white",Jr="cdk-high-contrast-white-on-black",Gg="cdk-high-contrast-active";let EM=(()=>{class n{constructor(e,t){this._platform=e,this._document=t}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,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Gg),e.remove(SM),e.remove(Jr),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Gg),e.add(SM)):2===t&&(e.add(Gg),e.add(Jr))}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),w0=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(EM))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Rc,Wd]]}),n})();class C0{}const Fs="*";function wi(n,a){return{type:7,name:n,definitions:a,options:{}}}function Ct(n,a=null){return{type:4,styles:a,timings:n}}function qh(n,a=null){return{type:3,steps:n,options:a}}function $g(n,a=null){return{type:2,steps:n,options:a}}function Re(n){return{type:6,styles:n,offset:null}}function Nt(n,a,e){return{type:0,name:n,styles:a,options:e}}function Hl(n){return{type:5,steps:n}}function Ht(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function Jg(n=null){return{type:9,options:n}}function yr(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function Qg(n){Promise.resolve(null).then(n)}class js{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(a)}onDone(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(){Qg(()=>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}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 Xg{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 l=this.players.length;0==l?Qg(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,s)=>Math.max(d,s.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}}function T0(){return"undefined"!=typeof window&&void 0!==window.document}function Qr(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xr(n){switch(n.length){case 0:return new js;case 1:return n[0];default:return new Xg(n)}}function In(n,a,e,t,r={},l={}){const d=[],s=[];let o=-1,c=null;if(t.forEach(u=>{const h=u.offset,f=h==o,b=f&&c||{};Object.keys(u).forEach(V=>{let ee=V,he=u[V];if("offset"!==V)switch(ee=a.normalizePropertyName(ee,d),he){case"!":he=r[V];break;case Fs:he=l[V];break;default:he=a.normalizeStyleValue(V,ee,he,d)}b[ee]=he}),f||s.push(b),c=b,o=h}),d.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${d.join(u)}`)}return s}function qs(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&Wc(e,"start",n)));break;case"done":n.onDone(()=>t(e&&Wc(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&Wc(e,"destroy",n)))}}function Wc(n,a,e){const t=e.totalTime,l=Mr(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,null==t?n.totalTime:t,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function Mr(n,a,e,t,r="",l=0,d){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function lr(n,a,e){let t;return n instanceof Map?(t=n.get(a),t||n.set(a,t=e)):(t=n[a],t||(t=n[a]=e)),t}function Ll(n){const a=n.indexOf(":");return[n.substring(1,a),n.substr(a+1)]}let Po=(n,a)=>!1,kl=(n,a,e)=>[];(Qr()||"undefined"!=typeof Element)&&(Po=T0()?(n,a)=>{for(;a&&a!==document.documentElement;){if(a===n)return!0;a=a.parentNode||a.host}return!1}:(n,a)=>n.contains(a),kl=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Kr=null,Pl=!1;function Rl(n){Kr||(Kr=function Gc(){return"undefined"!=typeof document?document.body:null}()||{},Pl=!!Kr.style&&"WebkitAppearance"in Kr.style);let a=!0;return Kr.style&&!function Uc(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Kr.style,!a&&Pl&&(a="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Kr.style)),a}const Yh=Po,x0=kl;let S0=(()=>{class n{validateStyleProperty(e){return Rl(e)}matchesElement(e,t){return!1}containsElement(e,t){return Yh(e,t)}query(e,t,r){return x0(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,s=[],o){return new js(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Wh=(()=>{class n{}return n.NOOP=new S0,n})();const Uh="ng-enter",Gh="ng-leave",$d="ng-trigger",Zh=".ng-trigger",D0="ng-animating",$h=".ng-animating";function Ol(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:H0(parseFloat(a[1]),a[2])}function H0(n,a){return"s"===a?1e3*n:n}function Jd(n,a,e){return n.hasOwnProperty("duration")?n:function HM(n,a,e){let r,l=0,d="";if("string"==typeof n){const s=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return a.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=H0(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(l=H0(parseFloat(o),s[4]));const c=s[5];c&&(d=c)}else r=n;if(!e){let s=!1,o=a.length;r<0&&(a.push("Duration values below 0 are not allowed for this animation step."),s=!0),l<0&&(a.push("Delay values below 0 are not allowed for this animation step."),s=!0),s&&a.splice(o,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:l,easing:d}}(n,a,e)}function Il(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function Ro(n,a,e={}){if(a)for(let t in n)e[t]=n[t];else Il(n,e);return e}function LM(n,a,e){return e?a+":"+e+";":""}function i_(n){let a="";for(let e=0;e{const r=L0(t);e&&!e.hasOwnProperty(t)&&(e[t]=n.style[r]),n.style[r]=a[t]}),Qr()&&i_(n))}function Ys(n,a){n.style&&(Object.keys(a).forEach(e=>{const t=L0(e);n.style[t]=""}),Qr()&&i_(n))}function Qd(n){return Array.isArray(n)?1==n.length?n[0]:$g(n):n}const n_=new RegExp("{{\\s*(.+?)\\s*}}","g");function kM(n){let a=[];if("string"==typeof n){let e;for(;e=n_.exec(n);)a.push(e[1]);n_.lastIndex=0}return a}function Jh(n,a,e){const t=n.toString(),r=t.replace(n_,(l,d)=>{let s=a[d];return a.hasOwnProperty(d)||(e.push(`Please provide a value for the animation param ${d}`),s=""),s.toString()});return r==t?n:r}function Xd(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const IT=/-+([a-z0-9])/g;function L0(n){return n.replace(IT,(...a)=>a[1].toUpperCase())}function Zc(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Or(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function k0(n,a){return window.getComputedStyle(n)[a]}function RM(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function a_(n,a,e){if(":"==n[0]){const o=function OM(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof o)return void a.push(o);n=o}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${n}" is not supported`),a;const r=t[1],l=t[2],d=t[3];a.push(s_(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&a.push(s_(d,r))}(t,e,a)):e.push(n),e}const Qh=new Set(["true","1"]),Xh=new Set(["false","0"]);function s_(n,a){const e=Qh.has(n)||Xh.has(n),t=Qh.has(a)||Xh.has(a);return(r,l)=>{let d="*"==n||n==r,s="*"==a||a==l;return!d&&e&&"boolean"==typeof r&&(d=r?Qh.has(n):Xh.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?Qh.has(a):Xh.has(a)),d&&s}}const l_=new RegExp("s*:selfs*,?","g");function P0(n,a,e){return new c_(n).build(a,e)}class c_{constructor(a){this._driver=a}build(a,e){const t=new I0(e);return this._resetContextStyleTimingState(t),Or(this,Qd(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const o=s,c=o.name;c.toString().split(/\s*,\s*/).forEach(u=>{o.name=u,l.push(this.visitState(o,e))}),o.name=c}else if(1==s.type){const o=this.visitTransition(s,e);t+=o.queryCount,r+=o.depCount,d.push(o)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:l,transitions:d,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 l=new Set,d=r||{};if(t.styles.forEach(s=>{if(B0(s)){const o=s;Object.keys(o).forEach(c=>{kM(o[c]).forEach(u=>{d.hasOwnProperty(u)||l.add(u)})})}}),l.size){const s=Xd(l.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${s.join(", ")}`)}}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Or(this,Qd(a.animation),e);return{type:1,matchers:RM(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Oo(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Or(this,t,e)),options:Oo(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(d=>{e.currentTime=t;const s=Or(this,d,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Oo(a.options)}}visitAnimate(a,e){const t=function Kd(n,a){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return eu(Jd(n,a).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=eu(0,0,"");return l.dynamic=!0,l.strValue=t,l}return e=e||Jd(t,a),eu(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:Re({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=a.styles,s=!1;if(!d){s=!0;const c={};t.easing&&(c.easing=t.easing),d=Re(c)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(d,e);o.isEmptyStep=s,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=[];Array.isArray(a.styles)?a.styles.forEach(d=>{"string"==typeof d?d==Fs?t.push(d):e.errors.push(`The provided style string value ${d} is not allowed.`):t.push(d)}):t.push(a.styles);let r=!1,l=null;return t.forEach(d=>{if(B0(d)){const s=d,o=s.easing;if(o&&(l=o,delete s.easing),!r)for(let c in s)if(s[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:t,easing:l,offset:a.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&Object.keys(d).forEach(s=>{if(!this._driver.validateStyleProperty(s))return void e.errors.push(`The provided animation property "${s}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],c=o[s];let u=!0;c&&(l!=r&&l>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${s}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${l}ms" and "${r}ms"`),u=!1),l=c.startTime),u&&(o[s]={startTime:l,endTime:r}),e.options&&function OT(n,a,e){const t=a.params||{},r=kM(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(`Unable to resolve the local animation param ${l} in the given list of values`)})}(d[s],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let l=0;const d=[];let s=!1,o=!1,c=0;const u=a.steps.map(Oe=>{const gt=this._makeStyleAst(Oe,e);let dt=null!=gt.offset?gt.offset:function IM(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(B0(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(B0(n)&&n.hasOwnProperty("offset")){const e=n;a=parseFloat(e.offset),delete e.offset}return a}(gt.styles),Kt=0;return null!=dt&&(l++,Kt=gt.offset=dt),o=o||Kt<0||Kt>1,s=s||Kt0&&l{const dt=f>0?gt==b?1:f*gt:d[gt],Kt=dt*he;e.currentTime=V+ee.delay+Kt,ee.duration=Kt,this._validateStyleAst(Oe,e),Oe.offset=dt,t.styles.push(Oe)}),t}visitReference(a,e){return{type:8,animation:Or(this,Qd(a.animation),e),options:Oo(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Oo(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Oo(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,d]=function O0(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(l_,"")),n=n.replace(/@\*/g,Zh).replace(/@\w+/g,e=>Zh+"-"+e.substr(1)).replace(/:animating/g,$h),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,lr(e.collectedStyles,e.currentQuerySelector,{});const s=Or(this,Qd(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:s,originalSelector:a.selector,options:Oo(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:Jd(a.timings,e.errors,!0);return{type:12,animation:Or(this,Qd(a.animation),e),timings:t,options:null}}}class I0{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function B0(n){return!Array.isArray(n)&&"object"==typeof n}function Oo(n){return n?(n=Il(n)).params&&(n.params=function BT(n){return n?Il(n):null}(n.params)):n={},n}function eu(n,a,e){return{duration:n,delay:a,easing:e}}function tu(n,a,e,t,r,l,d=null,s=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:s}}class Kh{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 d_=new RegExp(":enter","g"),BM=new RegExp(":leave","g");function iu(n,a,e,t,r,l={},d={},s,o,c=[]){return(new z0).buildKeyframes(n,a,e,t,r,l,d,s,o,c)}class z0{buildKeyframes(a,e,t,r,l,d,s,o,c,u=[]){c=c||new Kh;const h=new ep(a,e,c,r,l,u,[]);h.options=o,h.currentTimeline.setStyles([d],null,h.errors,o),Or(this,t,h);const f=h.timelines.filter(b=>b.containsAnimation());if(Object.keys(s).length){let b;for(let V=f.length-1;V>=0;V--){const ee=f[V];if(ee.element===e){b=ee;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([s],null,h.errors,o)}return f.length?f.map(b=>b.buildKeyframes()):[tu(e,[],[],[],0,0,"",!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),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=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 l=e.currentTimeline.currentTime;const d=null!=t.duration?Ol(t.duration):null,s=null!=t.delay?Ol(t.delay):null;return 0!==d&&a.forEach(o=>{const c=e.appendInstructionToTimeline(o,d,s);l=Math.max(l,c.duration+c.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),Or(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=nu);const d=Ol(l.delay);r.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Or(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?Ol(a.options.delay):0;a.steps.forEach(d=>{const s=e.createSubContext(a.options);l&&s.delayNextStep(l),Or(this,d,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return Jd(e.params?Jh(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 l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.getCurrentStyleProperties().length&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,a.styles.forEach(o=>{s.forwardTime((o.offset||0)*l),s.setStyles(o.styles,o.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?Ol(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=nu);let d=t;const s=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let o=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,c);l&&h.delayNextStep(l),c===e.element&&(o=h.currentTimeline),Or(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,d=Math.abs(l.duration),s=d*(e.currentQueryTotal-1);let o=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":o=s-o;break;case"full":o=t.currentStaggerTime}const u=e.currentTimeline;o&&u.delayNextStep(o);const h=u.currentTime;Or(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const nu={};class ep{constructor(a,e,t,r,l,d,s,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new $c(this._driver,e,0),s.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=Ol(t.duration)),null!=t.delay&&(r.delay=Ol(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!d.hasOwnProperty(s))&&(d[s]=Jh(l[s],d,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,l=new ep(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=nu,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},l=new u_(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,d){let s=[];if(r&&s.push(this.element),a.length>0){a=(a=a.replace(d_,"."+this._enterClassName)).replace(BM,"."+this._leaveClassName);let c=this._driver.query(this.element,a,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),s.push(...c)}return!l&&0==s.length&&d.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class $c{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new $c(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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Fs,this._currentKeyframe[e]=Fs}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&(this._previousKeyframe.easing=e);const l=r&&r.params||{},d=function j0(n,a){const e={};let t;return n.forEach(r=>{"*"===r?(t=t||Object.keys(a),t.forEach(l=>{e[l]=Fs})):Ro(r,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(d).forEach(s=>{const o=Jh(d[s],l,t);this._pendingStyles[s]=o,this._localTimelineStyles.hasOwnProperty(s)||(this._backFill[s]=this._globalTimelineStyles.hasOwnProperty(s)?this._globalTimelineStyles[s]:Fs),this._updateStyle(s,o)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[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){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],r=a._styleSummary[e];(!t||r.time>t.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const c=Ro(s,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?a.add(u):h==Fs&&e.add(u)}),t||(c.offset=o/this.duration),r.push(c)});const l=a.size?Xd(a.values()):[],d=e.size?Xd(e.values()):[];if(t){const s=r[0],o=Il(s);s.offset=0,o.offset=1,r=[s,o]}return tu(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class u_ extends $c{constructor(a,e,t,r,l,d,s=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,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:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,s=e/d,o=Ro(a[0],!1);o.offset=0,l.push(o);const c=Ro(a[0],!1);c.offset=F0(s),l.push(c);const u=a.length-1;for(let h=1;h<=u;h++){let f=Ro(a[h],!1);f.offset=F0((e+f.offset*t)/d),l.push(f)}t=d,e=0,r="",a=l}return tu(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function F0(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class q0{}class p_ extends q0{normalizePropertyName(a,e){return L0(a)}normalizeStyleValue(a,e,t,r){let l="";const d=t.toString().trim();if(Y0[e]&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(`Please provide a CSS unit value for ${a}:${t}`)}return d+l}}const Y0=(()=>function f_(n){const a={};return n.forEach(e=>a[e]=!0),a}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function m_(n,a,e,t,r,l,d,s,o,c,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:s,queriedElements:o,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const tp={};class W0{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function U0(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){const r=this._stateStyles["*"],l=this._stateStyles[a],d=r?r.buildStyles(e,t):{};return l?l.buildStyles(e,t):d}build(a,e,t,r,l,d,s,o,c,u){const h=[],f=this.ast.options&&this.ast.options.params||tp,V=this.buildStyles(t,s&&s.params||tp,h),ee=o&&o.params||tp,he=this.buildStyles(r,ee,h),Oe=new Set,gt=new Map,dt=new Map,Kt="void"===r,Pa={params:Object.assign(Object.assign({},f),ee)},fs=u?[]:iu(a,e,this.ast.animation,l,d,V,he,Pa,c,h);let Vr=0;if(fs.forEach(rc=>{Vr=Math.max(rc.duration+rc.delay,Vr)}),h.length)return m_(e,this._triggerName,t,r,Kt,V,he,[],[],gt,dt,Vr,h);fs.forEach(rc=>{const ac=rc.element,mD=lr(gt,ac,{});rc.preStyleProps.forEach(zu=>mD[zu]=!0);const k1=lr(dt,ac,{});rc.postStyleProps.forEach(zu=>k1[zu]=!0),ac!==e&&Oe.add(ac)});const nc=Xd(Oe.values());return m_(e,this._triggerName,t,r,Kt,V,he,fs,nc,gt,dt,Vr)}}class ip{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},r=Il(this.defaultParams);return Object.keys(a).forEach(l=>{const d=a[l];null!=d&&(r[l]=d)}),this.styles.styles.forEach(l=>{if("string"!=typeof l){const d=l;Object.keys(d).forEach(s=>{let o=d[s];o.length>1&&(o=Jh(o,r,e));const c=this.normalizer.normalizePropertyName(s,e);o=this.normalizer.normalizeStyleValue(s,c,o,e),t[c]=o})}}),t}}class g_{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new ip(r.style,r.options&&r.options.params||{},t)}),Z0(this.states,"true","1"),Z0(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new W0(a,r,this.states))}),this.fallbackTransition=function __(n,a,e){return new W0(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,s)=>!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(d=>d.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function Z0(n,a,e){n.hasOwnProperty(a)?n.hasOwnProperty(e)||(n[e]=n[a]):n.hasOwnProperty(e)&&(n[a]=n[e])}const b_=new Kh;class A_{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],r=P0(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=r}_buildPlayer(a,e,t){const r=a.element,l=In(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations[a];let d;const s=new Map;if(l?(d=iu(this._driver,e,l,Uh,Gh,{},{},t,b_,r),d.forEach(u=>{const h=lr(s,u.element,{});u.postStyleProps.forEach(f=>h[f]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),d=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);s.forEach((u,h)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(h,f,Fs)})});const c=Xr(d.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[a]=c,c.onDestroy(()=>this.destroy(a)),this.players.push(c),c}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,r){const l=Mr(e,"","","");return qs(this._getPlayer(a),t,l,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 l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const $0="ng-animate-queued",M_="ng-animate-disabled",FM=[],pn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},C_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ta="__ng_removed";class J0{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function qM(n){return null!=n?n:null}(t?a.value:a),t){const l=Il(a);delete l.value,this.options=l}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 Jc="void",Q0=new J0(Jc);class v_{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,wr(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function YM(n){return"start"==n||"done"==n}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const l=lr(this._elementListeners,a,[]),d={name:e,phase:t,callback:r};l.push(d);const s=lr(this._engine.statesByElement,a,{});return s.hasOwnProperty(e)||(wr(a,$d),wr(a,$d+"-"+e),s[e]=Q0),()=>{this._engine.afterFlush(()=>{const o=l.indexOf(d);o>=0&&l.splice(o,1),this._triggers[e]||delete s[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),d=new Io(this.id,e,a);let s=this._engine.statesByElement.get(a);s||(wr(a,$d),wr(a,$d+"-"+e),this._engine.statesByElement.set(a,s={}));let o=s[e];const c=new J0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&c.absorbOptions(o.options),s[e]=c,o||(o=Q0),c.value!==Jc&&o.value===c.value){if(!function Ha(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Ys(a,he),ea(a,Oe)})}return}const f=lr(this._engine.playersByElement,a,[]);f.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let b=l.matchTransition(o.value,c.value,a,c.params),V=!1;if(!b){if(!r)return;b=l.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:o,toState:c,player:d,isFallbackTransition:V}),V||(wr(a,$0),d.onStart(()=>{cr(a,$0)})),d.onDone(()=>{let ee=this.players.indexOf(d);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(a);if(he){let Oe=he.indexOf(d);Oe>=0&&he.splice(Oe,1)}}),this.players.push(d),f.push(d),d}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[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,Zh,!0);t.forEach(r=>{if(r[ta])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),d=new Map;if(l){const s=[];if(Object.keys(l).forEach(o=>{if(d.set(o,l[o].value),this._triggers[o]){const c=this.trigger(a,o,Jc,r);c&&s.push(c)}}),s.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Xr(s).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(l=>{const d=l.name;if(r.has(d))return;r.add(d);const o=this._triggers[d].fallbackTransition,c=t[d]||Q0,u=new J0(Jc),h=new Io(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:o,fromState:c,toState:u,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 l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[ta];(!l||l===pn)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){wr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(s=>{if(s.name==t.triggerName){const o=Mr(l,t.triggerName,t.fromState.value,t.toState.value);o._data=a,qs(t.player,s.phase,o,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d: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 T_{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,l)=>{}}_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 v_(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.length-1;if(t>=0){let r=!1;for(let l=t;l>=0;l--)if(this.driver.containsElement(this._namespaceList[l].hostElement,e)){this._namespaceList.splice(l+1,0,a),r=!0;break}r||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.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){const r=Object.keys(t);for(let l=0;l=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.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),wr(a,M_)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),cr(a,M_))}removeNode(a,e,t,r){if(ru(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[ta]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return ru(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,Zh,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,$h,!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 Xr(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[ta];if(t&&t.setForRemoval){if(a[ta]=pn,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?void 0:e.contains(M_))&&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?Xr(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new Kh,r=[],l=new Map,d=[],s=new Map,o=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(at=>{u.add(at);const _t=this.driver.query(at,".ng-animate-queued",!0);for(let wt=0;wt<_t.length;wt++)u.add(_t[wt])});const h=this.bodyNode,f=Array.from(this.statesByElement.keys()),b=np(f,this.collectedEnterElements),V=new Map;let ee=0;b.forEach((at,_t)=>{const wt=Uh+ee++;V.set(_t,wt),at.forEach(ci=>wr(ci,wt))});const he=[],Oe=new Set,gt=new Set;for(let at=0;atOe.add(ci)):gt.add(_t))}const dt=new Map,Kt=np(f,Array.from(Oe));Kt.forEach((at,_t)=>{const wt=Gh+ee++;dt.set(_t,wt),at.forEach(ci=>wr(ci,wt))}),a.push(()=>{b.forEach((at,_t)=>{const wt=V.get(_t);at.forEach(ci=>cr(ci,wt))}),Kt.forEach((at,_t)=>{const wt=dt.get(_t);at.forEach(ci=>cr(ci,wt))}),he.forEach(at=>{this.processLeaveNode(at)})});const Pa=[],fs=[];for(let at=this._namespaceList.length-1;at>=0;at--)this._namespaceList[at].drainQueuedTransitions(e).forEach(wt=>{const ci=wt.player,Qn=wt.element;if(Pa.push(ci),this.collectedEnterElements.length){const zr=Qn[ta];if(zr&&zr.setForMove){if(zr.previousTriggersValues&&zr.previousTriggersValues.has(wt.triggerName)){const Fu=zr.previousTriggersValues.get(wt.triggerName),bd=this.statesByElement.get(wt.element);bd&&bd[wt.triggerName]&&(bd[wt.triggerName].value=Fu)}return void ci.destroy()}}const Uo=!h||!this.driver.containsElement(h,Qn),Ra=dt.get(Qn),_d=V.get(Qn),an=this._buildInstruction(wt,t,_d,Ra,Uo);if(an.errors&&an.errors.length)return void fs.push(an);if(Uo)return ci.onStart(()=>Ys(Qn,an.fromStyles)),ci.onDestroy(()=>ea(Qn,an.toStyles)),void r.push(ci);if(wt.isFallbackTransition)return ci.onStart(()=>Ys(Qn,an.fromStyles)),ci.onDestroy(()=>ea(Qn,an.toStyles)),void r.push(ci);const bD=[];an.timelines.forEach(zr=>{zr.stretchStartingKeyframe=!0,this.disabledNodes.has(zr.element)||bD.push(zr)}),an.timelines=bD,t.append(Qn,an.timelines),d.push({instruction:an,player:ci,element:Qn}),an.queriedElements.forEach(zr=>lr(s,zr,[]).push(ci)),an.preStyleProps.forEach((zr,Fu)=>{const bd=Object.keys(zr);if(bd.length){let ju=o.get(Fu);ju||o.set(Fu,ju=new Set),bd.forEach(Iv=>ju.add(Iv))}}),an.postStyleProps.forEach((zr,Fu)=>{const bd=Object.keys(zr);let ju=c.get(Fu);ju||c.set(Fu,ju=new Set),bd.forEach(Iv=>ju.add(Iv))})});if(fs.length){const at=[];fs.forEach(_t=>{at.push(`@${_t.triggerName} has failed due to:\n`),_t.errors.forEach(wt=>at.push(`- ${wt}\n`))}),Pa.forEach(_t=>_t.destroy()),this.reportError(at)}const Vr=new Map,nc=new Map;d.forEach(at=>{const _t=at.element;t.has(_t)&&(nc.set(_t,_t),this._beforeAnimationBuild(at.player.namespaceId,at.instruction,Vr))}),r.forEach(at=>{const _t=at.element;this._getPreviousPlayers(_t,!1,at.namespaceId,at.triggerName,null).forEach(ci=>{lr(Vr,_t,[]).push(ci),ci.destroy()})});const rc=he.filter(at=>ia(at,o,c)),ac=new Map;WM(ac,this.driver,gt,c,Fs).forEach(at=>{ia(at,o,c)&&rc.push(at)});const k1=new Map;b.forEach((at,_t)=>{WM(k1,this.driver,new Set(at),o,"!")}),rc.forEach(at=>{const _t=ac.get(at),wt=k1.get(at);ac.set(at,Object.assign(Object.assign({},_t),wt))});const zu=[],gD=[],_D={};d.forEach(at=>{const{element:_t,player:wt,instruction:ci}=at;if(t.has(_t)){if(u.has(_t))return wt.onDestroy(()=>ea(_t,ci.toStyles)),wt.disabled=!0,wt.overrideTotalTime(ci.totalTime),void r.push(wt);let Qn=_D;if(nc.size>1){let Ra=_t;const _d=[];for(;Ra=Ra.parentNode;){const an=nc.get(Ra);if(an){Qn=an;break}_d.push(Ra)}_d.forEach(an=>nc.set(an,Qn))}const Uo=this._buildAnimation(wt.namespaceId,ci,Vr,l,k1,ac);if(wt.setRealPlayer(Uo),Qn===_D)zu.push(wt);else{const Ra=this.playersByElement.get(Qn);Ra&&Ra.length&&(wt.parentPlayer=Xr(Ra)),r.push(wt)}}else Ys(_t,ci.fromStyles),wt.onDestroy(()=>ea(_t,ci.toStyles)),gD.push(wt),u.has(_t)&&r.push(wt)}),gD.forEach(at=>{const _t=l.get(at.element);if(_t&&_t.length){const wt=Xr(_t);at.setRealPlayer(wt)}}),r.forEach(at=>{at.parentPlayer?at.syncPlayerEvents(at.parentPlayer):at.destroy()});for(let at=0;at!Uo.destroyed);Qn.length?UM(this,_t,Qn):this.processLeaveNode(_t)}return he.length=0,zu.forEach(at=>{this.players.push(at),at.onDone(()=>{at.destroy();const _t=this.players.indexOf(at);this.players.splice(_t,1)}),at.play()}),zu}elementContainsData(a,e){let t=!1;const r=e[ta];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,l){let d=[];if(e){const s=this.playersByQueriedElement.get(a);s&&(d=s)}else{const s=this.playersByElement.get(a);if(s){const o=!l||l==Jc;s.forEach(c=>{c.queued||!o&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),d}_beforeAnimationBuild(a,e,t){const l=e.element,d=e.isRemovalTransition?void 0:a,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const c=o.element,u=c!==l,h=lr(t,c,[]);this._getPreviousPlayers(c,u,d,s,e.toState).forEach(b=>{const V=b.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),b.destroy(),h.push(b)})}Ys(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,d){const s=e.triggerName,o=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(V=>{const ee=V.element;u.add(ee);const he=ee[ta];if(he&&he.removedBeforeQueried)return new js(V.duration,V.delay);const Oe=ee!==o,gt=function x_(n){const a=[];return Da(n,a),a}((t.get(ee)||FM).map(Vr=>Vr.getRealPlayer())).filter(Vr=>!!Vr.element&&Vr.element===ee),dt=l.get(ee),Kt=d.get(ee),Pa=In(0,this._normalizer,0,V.keyframes,dt,Kt),fs=this._buildPlayer(V,Pa,gt);if(V.subTimeline&&r&&h.add(ee),Oe){const Vr=new Io(a,s,ee);Vr.setRealPlayer(fs),c.push(Vr)}return fs});c.forEach(V=>{lr(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function jM(n,a,e){let t;if(n instanceof Map){if(t=n.get(a),t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}}else if(t=n[a],t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&delete n[a]}return t}(this.playersByQueriedElement,V.element,V))}),u.forEach(V=>wr(V,D0));const b=Xr(f);return b.onDestroy(()=>{u.forEach(V=>cr(V,D0)),ea(o,e.toStyles)}),h.forEach(V=>{lr(r,V,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new js(a.duration,a.delay)}}class Io{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new js,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>qs(a,e,void 0,t))}),this._queuedCallbacks={},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){lr(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 ru(n){return n&&1===n.nodeType}function X0(n,a){const e=n.style.display;return n.style.display=null!=a?a:"none",e}function WM(n,a,e,t,r){const l=[];e.forEach(o=>l.push(X0(o)));const d=[];t.forEach((o,c)=>{const u={};o.forEach(h=>{const f=u[h]=a.computeStyle(c,h,r);(!f||0==f.length)&&(c[ta]=C_,d.push(c))}),n.set(c,u)});let s=0;return e.forEach(o=>X0(o,l[s++])),d}function np(n,a){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==a.length)return e;const r=new Set(a),l=new Map;function d(s){if(!s)return 1;let o=l.get(s);if(o)return o;const c=s.parentNode;return o=e.has(c)?c:r.has(c)?1:d(c),l.set(s,o),o}return a.forEach(s=>{const o=d(s);1!==o&&e.get(o).push(s)}),e}function wr(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function cr(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function UM(n,a,e){Xr(e).onDone(()=>n.processLeaveNode(a))}function Da(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class au{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new T_(a,e,t),this._timelineEngine=new A_(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const d=a+"-"+r;let s=this._triggerCache[d];if(!s){const o=[],c=P0(this._driver,l,o);if(o.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${o.join("\n - ")}`);s=function G0(n,a,e){return new g_(n,a,e)}(r,c,this._normalizer),this._triggerCache[d]=s}this._transitionEngine.registerTrigger(e,r,s)}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[l,d]=Ll(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[d,s]=Ll(t);return this._timelineEngine.listen(d,e,s,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let GM=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l={}),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&ea(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ea(this._element,this._initialStyles),this._endStyles&&(ea(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ys(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ys(this._element,this._endStyles),this._endStyles=null),ea(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function K0(n){let a=null;const e=Object.keys(n);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:k0(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class em{validateStyleProperty(a){return Rl(a)}matchesElement(a,e){return!1}containsElement(a,e){return Yh(a,e)}query(a,e,t){return x0(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,d=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(o.easing=l);const c={},u=d.filter(f=>f instanceof E_);(function PM(n,a){return 0===n||0===a})(t,r)&&u.forEach(f=>{let b=f.currentSnapshot;Object.keys(b).forEach(V=>c[V]=b[V])}),e=function r_(n,a,e){const t=Object.keys(e);if(t.length&&a.length){let l=a[0],d=[];if(t.forEach(s=>{l.hasOwnProperty(s)||d.push(s),l[s]=e[s]}),d.length)for(var r=1;rRo(f,!1)),c);const h=function S_(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=K0(a[0]),a.length>1&&(t=K0(a[a.length-1]))):a&&(e=K0(a)),e||t?new GM(n,e,t):null}(a,e);return new E_(a,e,o,h)}}let su=(()=>{class n extends C0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?$g(e):e;return H_(this._renderer,null,t,"register",[r]),new $M(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class $M extends class Zg{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new D_(this._id,a,e||{},this._renderer)}}class D_{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 H_(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!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function H_(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const tm="@.disabled";let rp=(()=>{class n{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=(l,d)=>{const s=null==d?void 0:d.parentNode(l);s&&d.removeChild(s,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new L_("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(d,s,e,u.name,u)};return t.data.animation.forEach(o),new k_(this,s,l,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(l=>{const[d,s]=l;d(s)}),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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(au),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class L_{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==tm?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 k_ extends L_{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==tm?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function P_(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.substr(1),d="";return"@"!=l.charAt(0)&&([l,d]=function im(n){const a=n.indexOf(".");return[n.substring(0,a),n.substr(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(a,e,t)}}let ap=(()=>{class n extends au{constructor(e,t,r){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Wh),i.LFG(q0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Bn=new i.OlP("AnimationModuleType"),sp=[{provide:C0,useClass:su},{provide:q0,useFactory:function nm(){return new p_}},{provide:au,useClass:ap},{provide:i.FYo,useFactory:function R_(n,a,e){return new rp(n,a,e)},deps:[ke,au,i.R0b]}],rm=[{provide:Wh,useFactory:()=>new em},{provide:Bn,useValue:"BrowserAnimations"},...sp],O_=[{provide:Wh,useClass:S0},{provide:Bn,useValue:"NoopAnimations"},...sp];let I_=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?O_:rm}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:rm,imports:[ue]}),n})();function XM(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function KM(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const ew=["*"];let tw=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),iw=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const rw=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function nw(){return!0}});let ht=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(EM),i.LFG(rw,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Cl],Cl]}),n})();function ts(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=je(a)}}}function Bo(n,a){return class extends n{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 na(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=je(a)}}}function Nl(n,a=0){return class extends n{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?oi(e):this.defaultTabIndex}}}function op(n){return class extends n{constructor(...a){super(...a),this.stateChanges=new He.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function am(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ri.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 N_=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function V_(){return(0,i.f3M)(i.soG)}});class ra{constructor(){this._localeChanges=new He.xQ,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 lu=new i.OlP("mat-date-formats"),z_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function lp(n,a){const e=Array(n);for(let t=0;t{class n extends ra{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 lp(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return lp(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 lp(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 l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e){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,Object.assign(Object.assign({},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(z_.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 l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_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 n.\u0275fac=function(e){return new(e||n)(i.LFG(N_,8),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const om={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 lm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ra,useClass:sm}],imports:[[Rc]]}),n})(),No=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:lu,useValue:om}],imports:[[lm]]}),n})(),Qc=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function zl(n,a,e){n.nativeElement.classList.toggle(a,e)}let cm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})();class F_{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const dm={enterDuration:225,exitDuration:150},pt=$a({passive:!0}),j_=["mousedown","touchstart"],q_=["mouseup","mouseleave","touchend","touchcancel"];class Y_{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=zi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l=Object.assign(Object.assign({},dm),t.animation);t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function sw(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-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),s=a-r.left,o=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-d+"px",u.style.top=o-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function cp(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new F_(this,u,t);return h.state=0,this._activeRipples.add(h),t.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const f=h===this._mostRecentTransientRipple;h.state=1,!t.persistent&&(!f||!this._isPointerDown)&&h.fadeOut()},c),h}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,r=Object.assign(Object.assign({},dm),a.config.animation);t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=zi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(j_))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(q_),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Ud(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,pt)})})}_removeTriggerEvents(){this._triggerElement&&(j_.forEach(a=>{this._triggerElement.removeEventListener(a,this,pt)}),this._pointerUpEventsRegistered&&q_.forEach(a=>{this._triggerElement.removeEventListener(a,this,pt)}))}}const cu=new i.OlP("mat-ripple-global-options");let Gn=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new Y_(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:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(xi),i.Y36(cu,8),i.Y36(Bn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.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"]}),n})(),ii=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht,Rc],ht]}),n})(),ow=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),dp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht]]}),n})();const um=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),up=new i.OlP("MatOptgroup");let uw=0;class W_{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let hw=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+uw++,this.onSelectionChange=new i.vpe,this._stateChanges=new He.xQ}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=je(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)&&!vn(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 W_(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),La=(()=>{class n extends hw{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(um,8),i.Y36(up,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:ew,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&&(i.F$t(),i.YNc(0,XM,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,KM,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[ow,w.O5,Gn],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function hm(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let d=0;de+t?Math.max(0,n-t+a):e}let du=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,w.ez,ht,dp]]}),n})();function hp(n,a){}class uu{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const G_={dialogContainer:wi("dialogContainer",[Nt("void, exit",Re({opacity:0,transform:"scale(0.7)"})),Nt("enter",Re({transform:"none"})),Ht("* => enter",Ct("150ms cubic-bezier(0, 0, 0.2, 1)",Re({transform:"none",opacity:1}))),Ht("* => void, * => exit",Ct("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Re({opacity:0})))])};let fw=(()=>{class n extends Fd{constructor(e,t,r,l,d,s,o,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=r,this._config=d,this._interactivityChecker=s,this._ngZone=o,this._focusMonitor=c,this._animationStateChanged=new i.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=d.ariaLabelledBy||null,this._document=l}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=$f(),r=this._elementRef.nativeElement;(!t||t===this._document.body||t===r||r.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=$f())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=$f();return e===t||e.contains(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qg),i.Y36(i.sBO),i.Y36(w.K0,8),i.Y36(uu),i.Y36(zh),i.Y36(i.R0b),i.Y36(Rr))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(Qf,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},features:[i.qOj]}),n})(),hu=(()=>{class n extends fw{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),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()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._id),i.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._state))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,hp,0,0,"ng-template",0)},directives:[Qf],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[G_.dialogContainer]}}),n})(),pu=0;class Fi{constructor(a,e,t="mat-dialog-"+pu++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new He.xQ,this._afterClosed=new He.xQ,this._beforeClosed=new He.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,jt.h)(r=>"opened"===r.state),(0,Zt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,jt.h)(r=>"closed"===r.state),(0,Zt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,jt.h)(r=>27===r.keyCode&&!this.disableClose&&!vn(r))).subscribe(r=>{r.preventDefault(),Z_(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Z_(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,jt.h)(e=>"closing"===e.state),(0,Zt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();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._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Z_(n,a,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=a),n.close(e)}const Sn=new i.OlP("MatDialogData"),$_=new i.OlP("mat-dialog-default-options"),pm=new i.OlP("mat-dialog-scroll-strategy"),J_={provide:pm,deps:[Zr],useFactory:function gw(n){return()=>n.scrollStrategies.block()}};let _w=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._dialogRefConstructor=o,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.xQ,this._afterOpenedAtThisLevel=new He.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=ma(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_i(void 0))),this._scrollStrategy=s}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){if(t=function UT(n,a){return Object.assign(Object.assign({},a),n)}(t,this._defaultOptions||new uu),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(t),l=this._attachDialogContainer(r,t);if("NoopAnimations"!==this._animationMode){const s=l._animationStateChanged.subscribe(o=>{"opening"===o.state&&(this._dialogAnimatingOpen=!0),"opened"===o.state&&(this._dialogAnimatingOpen=!1,s.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new re.w),this._animationStateSubscriptions.add(s)}const d=this._attachDialogContent(e,l,r,t);return this._lastDialogRef=d,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(d),d.afterClosed().subscribe(()=>this._removeOpenDialog(d)),this.afterOpened.next(d),l._initializeWithAttachedContent(),d}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(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new Hh({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const l=i.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:uu,useValue:t}]}),d=new Nc(this._dialogContainerType,t.viewContainerRef,l,t.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,t,r,l){const d=new this._dialogRefConstructor(r,t,l.id);if(e instanceof i.Rgc)t.attachTemplatePortal(new vl(e,null,{$implicit:l.data,dialogRef:d}));else{const s=this._createInjector(l,d,t),o=t.attachComponentPortal(new Nc(e,l.viewContainerRef,s));d.componentInstance=o.instance}return d.updateSize(l.width,l.height).updatePosition(l.position),d}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!l||!l.get(Cn,null,i.XFs.Optional))&&d.push({provide:Cn,useValue:{value:e.direction,change:(0,$e.of)()}}),i.zs3.create({parent:l||this._injector,providers:d})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,l)=>{r?l.setAttribute("aria-hidden",r):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),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--){let l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n}),n})(),Ji=(()=>{class n extends _w{constructor(e,t,r,l,d,s,o,c){super(e,t,l,s,o,d,Fi,hu,Sn,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zr),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG($_,8),i.LFG(pm),i.LFG(n,12),i.LFG(d0),i.LFG(Bn,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),GT=0,En=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+GT++}ngOnInit(){this._dialogRef||(this._dialogRef=function bw(n,a){let e=n.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi,8),i.Y36(i.SBq),i.Y36(Ji))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),ji=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),pp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Ji,J_],imports:[[zc,Tl,ht],ht]}),n})();var fp=x(6114);let ka=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(rt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),r=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(r.prompt="consent"),sessionStorage.getItem("mfa_route")&&(r.acr_values="https://refeds.org/profile/mfa",r.prompt="login",r.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:r}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,jt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(s=>{const o=s.split("=");d[o[0]]=o[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,jt.h)(e=>e instanceof At)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}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}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(e=>(localStorage.setItem("refresh_token",e.refresh_token),!0),()=>!1)}verifyAuthentication(e,t){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(r=>!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(zt),i.LFG(Ji),i.LFG(nr),i.LFG(fp.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function is(n){return!!n&&(n instanceof Ri.y||"function"==typeof n.lift&&"function"==typeof n.subscribe)}var Aw=x(7830);function fm(...n){if(1===n.length){const a=n[0];if((0,Ff.k)(a))return mp(a,null);if((0,Aw.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return mp(e.map(t=>a[t]),e)}}if("function"==typeof n[n.length-1]){const a=n.pop();return mp(n=1===n.length&&(0,Ff.k)(n[0])?n[0]:n,null).pipe((0,ut.U)(e=>a(...e)))}return mp(n,null)}function mp(n,a){return new Ri.y(e=>{const t=n.length;if(0===t)return void e.complete();const r=new Array(t);let l=0,d=0;for(let s=0;s{c||(c=!0,d++),r[s]=u},error:u=>e.error(u),complete:()=>{l++,(l===t||!c)&&(d===t&&e.next(a?a.reduce((u,h,f)=>(u[h]=r[f],u),{}):r),e.complete())}}))}})}const Mw=new class Q_ extends qf.v{}(class yw extends jf.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var mm=x(9312);class mu extends Sr.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(mu.dispatch,this.delay,new Cw(a,this.destination)))}_next(a){this.scheduleMessage(mm.P.createNext(a))}_error(a){this.scheduleMessage(mm.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(mm.P.createComplete()),this.unsubscribe()}}class Cw{constructor(a,e){this.notification=a,this.destination=e}}var X_=x(5283);class vw extends He.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new K_(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,l=t.length;let d;if(this.closed)throw new Ad.N;if(this.isStopped||this.hasError?d=re.w.EMPTY:(this.observers.push(a),d=new X_.W(this,a)),r&&a.add(a=new mu(a,r)),e)for(let s=0;se&&(d=Math.max(d,l-e)),d>0&&r.splice(0,d),r}}class K_{constructor(a,e){this.time=a,this.value=e}}function eb(n,a,e){let t;return t=n&&"object"==typeof n?n:{bufferSize:n,windowTime:a,refCount:!1,scheduler:e},r=>r.lift(function gm({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let r,d,l=0,s=!1,o=!1;return function(u){l++,(!r||s)&&(s=!1,r=new vw(n,a,t),d=u.subscribe({next(f){r.next(f)},error(f){s=!0,r.error(f)},complete(){o=!0,d=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{l--,h.unsubscribe(),d&&!o&&e&&0===l&&(d.unsubscribe(),d=void 0,r=void 0)})}}(t))}class gu{}let _m=(()=>{class n extends gu{getTranslation(e){return(0,$e.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class gp{}let tb=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function _p(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,d,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in d=Object.create(null),n){if(!_p(n[l],a[l]))return!1;d[l]=!0}for(l in a)if(!(l in d)&&void 0!==a[l])return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{_u(a[t])?t in n?e[t]=ib(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class bu{}let nb=(()=>{class n extends bu{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(),!Vo(e)||!Vo(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,l)=>{let d=this.getValue(t,l);return Vo(d)?d:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class bp{}let rb=(()=>{class n extends bp{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ab{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const bm=new i.OlP("USE_STORE"),Am=new i.OlP("USE_DEFAULT_LANG"),ym=new i.OlP("DEFAULT_LANGUAGE"),Mm=new i.OlP("USE_EXTEND");let li=(()=>{class n{constructor(e,t,r,l,d,s=!0,o=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=s,this.isolate=o,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}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);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Zt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,$e.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,Zt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,$e.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||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(eb(1),(0,Zt.q)(1));return this.loadingTranslations=t.pipe((0,ut.U)(r=>this.compiler.compileTranslations(r,e)),eb(1),(0,Zt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},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]?ib(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 l;if(t instanceof Array){let d={},s=!1;for(let o of t)d[o]=this.getParsedResult(e,o,r),is(d[o])&&(s=!0);return s?fm(t.map(c=>is(d[c])?d[c]:(0,$e.of)(d[c]))).pipe((0,ut.U)(c=>{let u={};return c.forEach((h,f)=>{u[t[f]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),void 0===l&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),void 0===l){let d={key:t,translateService:this};void 0!==r&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return void 0!==l?l:t}get(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,vs.b)(r=>is(r=this.getParsedResult(r,e,t))?r:(0,$e.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return is(r)?r:(0,$e.of)(r)}}getStreamOnTranslationChange(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');return Ms(ma(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Ui.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,$e.of)(l)})))}stream(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');return Ms(ma(()=>this.get(e,t)),this.onLangChange.pipe((0,Ui.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return is(l)?l:(0,$e.of)(l)})))}instant(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(is(r)){if(e instanceof Array){let l={};return e.forEach((d,s)=>{l[e[s]]=e[s]}),l}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("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)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 n.\u0275fac=function(e){return new(e||n)(i.LFG(ab),i.LFG(gu),i.LFG(bp),i.LFG(bu),i.LFG(gp),i.LFG(Am),i.LFG(bm),i.LFG(Mm),i.LFG(ym))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),lt=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);is(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(_p(e,this.lastKey)&&_p(t,this.lastParams))return this.value;let r;if(Vo(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch(d){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(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ap=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:gu,useClass:_m},e.compiler||{provide:bp,useClass:rb},e.parser||{provide:bu,useClass:nb},e.missingTranslationHandler||{provide:gp,useClass:tb},ab,{provide:bm,useValue:e.isolate},{provide:Am,useValue:e.useDefaultLang},{provide:Mm,useValue:e.extend},{provide:ym,useValue:e.defaultLanguage},li]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:gu,useClass:_m},e.compiler||{provide:bp,useClass:rb},e.parser||{provide:bu,useClass:nb},e.missingTranslationHandler||{provide:gp,useClass:tb},{provide:bm,useValue:e.isolate},{provide:Am,useValue:e.useDefaultLang},{provide:Mm,useValue:e.extend},{provide:ym,useValue:e.defaultLanguage},li]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),sb=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi))},n.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[fn],pipes:[lt],styles:[""]}),n})();const xw=["mat-button",""],Sw=["*"],Cm=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ob=Bo(ts(na(class{constructor(n){this._elementRef=n}})));let Pt=(()=>{class n extends ob{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 l of Cm)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Rr),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,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&&i.Gf(Gn,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:xw,ngContentSelectors:Sw,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&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Gn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),ns=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,ht],ht]}),n})();const vm=["connectionContainer"],Ew=["inputContainer"],lb=["label"];function Dw(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15),i._UZ(3,"div",16),i._UZ(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i.qZA(),i.BQk())}function cb(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Hw(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function db(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function JT(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Lw(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.YNc(2,Hw,4,1,"ng-container",12),i.YNc(3,db,1,0,"ng-content",12),i.YNc(4,JT,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.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),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Au(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function kw(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Xc(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function yu(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function Pw(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,yu,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const QT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ub=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Rw=0;const hb=new i.OlP("MatError");let Fl=(()=>{class n{constructor(e,t){this.id="mat-error-"+Rw++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:hb,useExisting:n}])]}),n})();const Ow={transitionMessages:wi("transitionMessages",[Nt("enter",Re({opacity:1,transform:"translateY(0%)"})),Ht("void => enter",[Re({opacity:0,transform:"translateY(-5px)"}),Ct("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Kc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),Mu=0;const fb=new i.OlP("MatHint");let mb=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+Mu++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:fb,useExisting:n}])]}),n})(),rs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Iw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const Bw=new i.OlP("MatPrefix"),yp=new i.OlP("MatSuffix");let gb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:yp,useExisting:n}])]}),n})(),Nw=0;const ed=Bo(class{constructor(n){this._elementRef=n}},"primary"),bb=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),as=new i.OlP("MatFormField");let mn=(()=>{class n extends ed{constructor(e,t,r,l,d,s,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Nw++,this._labelId="mat-form-field-label-"+Nw++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=l&&l.appearance?l.appearance:"legacy",this._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=je(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(_i(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(tt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Si.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(_i(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(_i(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(tt(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,Ta(this._label.nativeElement,"transitionend").pipe((0,Zt.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(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.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",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*V+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ht,Wd],ht]}),n})();function xm(n){return n&&"function"==typeof n.connect}class jw{applyChanges(a,e,t,r,l){a.forEachOperation((d,s,o)=>{let c,u;if(null==d.previousIndex){const h=t(d,s,o);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==o?(e.remove(s),u=3):(c=e.get(s),e.move(c,o),u=2);l&&l({context:null==c?void 0:c.context,operation:u,record:d})})}detach(){}}class tn{constructor(a=!1,e,t=!0){this._multiple=a,this._emitChanges=t,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new He.xQ,e&&e.length&&(a?e.forEach(r=>this._markSelected(r)):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(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...a){this._verifyValueAssignment(a),a.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(a){this.isSelected(a)?this.deselect(a):this.select(a)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(a){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._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){}}let Mp=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const td=new i.OlP("_ViewRepeater");let Ab=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),jl=(()=>{class n extends Ab{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Zn=new i.OlP("NgValueAccessor"),Ww={provide:Zn,useExisting:(0,i.Gpc)(()=>nn),multi:!0},wu=new i.OlP("CompositionEventMode");let nn=(()=>{class n extends Ab{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Uw(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(wu,8))},n.\u0275dir=i.lG2({type:n,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&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([Ww]),i.qOj]}),n})();function Us(n){return null==n||0===n.length}function Em(n){return null!=n&&"number"==typeof n.length}const gn=new i.OlP("NgValidators"),Gs=new i.OlP("NgAsyncValidators"),Mb=/^(?=.{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 Dn{static min(a){return function Dm(n){return a=>{if(Us(a.value)||Us(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Us(a.value)||Us(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return Lm(a)}static requiredTrue(a){return function wb(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function Cb(n){return Us(n.value)||Mb.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function id(n){return a=>Us(a.value)||!Em(a.value)?null:a.value.lengthEm(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function wp(n){if(!n)return Ir;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(Us(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 vu(a)}static composeAsync(a){return Eb(a)}}function Lm(n){return Us(n.value)?{required:!0}:null}function Ir(n){return null}function Tb(n){return null!=n}function Cu(n){const a=(0,i.QGY)(n)?(0,dn.D)(n):n;return(0,i.CqO)(a),a}function nd(n){let a={};return n.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function xb(n,a){return a.map(e=>e(n))}function Sb(n){return n.map(a=>function Gw(n){return!n.validate}(a)?a:e=>a.validate(e))}function vu(n){if(!n)return null;const a=n.filter(Tb);return 0==a.length?null:function(e){return nd(xb(e,a))}}function rd(n){return null!=n?vu(Sb(n)):null}function Eb(n){if(!n)return null;const a=n.filter(Tb);return 0==a.length?null:function(e){return fm(xb(e,a).map(Cu)).pipe((0,ut.U)(nd))}}function km(n){return null!=n?Eb(Sb(n)):null}function Pm(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function Rm(n){return n._rawValidators}function Cp(n){return n._rawAsyncValidators}function vp(n){return n?Array.isArray(n)?n:[n]:[]}function Tp(n,a){return Array.isArray(n)?n.includes(a):n===a}function Db(n,a){const e=vp(a);return vp(n).forEach(r=>{Tp(e,r)||e.push(r)}),e}function Zw(n,a){return vp(a).filter(e=>!Tp(n,e))}class xp{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=rd(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=km(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 Br extends xp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $n extends xp{get formDirective(){return null}get path(){return null}}class Sp{constructor(a){this._cd=a}is(a){var e,t,r;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===r?void 0:r[a])}}let _n=(()=>{class n extends Sp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Br,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.qOj]}),n})(),Ep=(()=>{class n extends Sp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($n,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[i.qOj]}),n})();function Hp(n,a){return[...a.path,n]}function Lp(n,a){Nm(n,a),a.valueAccessor.writeValue(n.value),function eC(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Pp(n,a)})}(n,a),function Rb(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function tC(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Pp(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function Bm(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function zo(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),xu(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function kp(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Nm(n,a){const e=Rm(n);null!==a.validator?n.setValidators(Pm(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=Cp(n);null!==a.asyncValidator?n.setAsyncValidators(Pm(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();kp(a._rawValidators,r),kp(a._rawAsyncValidators,r)}function xu(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=Rm(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=Cp(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return kp(a._rawValidators,t),kp(a._rawAsyncValidators,t),e}function Pp(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Vm(n,a){Nm(n,a)}function Op(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function zm(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function sd(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===nn?e=l:function iC(n){return Object.getPrototypeOf(n.constructor)===jl}(l)?t=l:r=l}),r||t||e||null}function Ip(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}const ql="VALID",Fm="INVALID",od="PENDING",Eu="DISABLED";function Bp(n){return(Vp(n)?n.validators:n)||null}function Bb(n){return Array.isArray(n)?rd(n):n||null}function Np(n,a){return(Vp(a)?a.asyncValidators:n)||null}function jm(n){return Array.isArray(n)?km(n):n||null}function Vp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const qm=n=>n instanceof Cr,Du=n=>n instanceof Fp,Nb=n=>n instanceof nC;function Ym(n){return qm(n)?n.value:n.getRawValue()}function Wm(n,a){const e=Du(n),t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[a])throw new i.vHH(1001,"")}function Um(n,a){Du(n),n._forEachChild((t,r)=>{if(void 0===a[r])throw new i.vHH(1002,"")})}class zp{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=Bb(this._rawValidators),this._composedAsyncValidatorFn=jm(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===ql}get invalid(){return this.status===Fm}get pending(){return this.status==od}get disabled(){return this.status===Eu}get enabled(){return this.status!==Eu}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=Bb(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=jm(a)}addValidators(a){this.setValidators(Db(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(Db(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Zw(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Zw(a,this._rawAsyncValidators))}hasValidator(a){return Tp(this._rawValidators,a)}hasAsyncValidator(a){return Tp(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=od,!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=Eu,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=ql,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},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}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ql||this.status===od)&&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()?Eu:ql}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=od,this._hasOwnPendingAsyncValidator=!0;const e=Cu(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){return function Ib(n,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=n;return a.forEach(r=>{t=Du(t)?t.controls.hasOwnProperty(r)?t.controls[r]:null:Nb(t)&&t.at(r)||null}),t}(this,a,".")}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 i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Eu:this.errors?Fm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(od)?od:this._anyControlsHaveStatus(Fm)?Fm:ql}_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)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Vp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Cr extends zp{constructor(a=null,e,t){super(Bp(e),Np(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}),Vp(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(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){Ip(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Ip(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){this._isBoxedValue(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}}class Fp extends zp{constructor(a,e,t){super(Bp(e),Np(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={}){Um(this,a),Object.keys(a).forEach(t=>{Wm(this,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=>{this.controls[t]&&this.controls[t].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]=Ym(e),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 of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),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}}class nC extends zp{constructor(a,e,t){super(Bp(e),Np(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[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={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){Um(this,a),a.forEach((t,r)=>{Wm(this,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=>Ym(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_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)}}const Vb={provide:$n,useExisting:(0,i.Gpc)(()=>ld)},jp=(()=>Promise.resolve(null))();let ld=(()=>{class n extends $n{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new Fp({},rd(e),km(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){jp.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Lp(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){jp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){jp.then(()=>{const t=this._findContainer(e.path),r=new Fp({});Vm(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){jp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){jp.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,zm(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Vb]),i.qOj]}),n})();const sx={provide:Br,useExisting:(0,i.Gpc)(()=>ur)},qp=(()=>Promise.resolve(null))();let ur=(()=>{class n extends Br{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new Cr,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=sd(0,l)}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),Op(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(){Lp(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){qp.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=""===t||t&&"false"!==t;qp.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?Hp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($n,9),i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([sx]),i.qOj,i.TTD]}),n})(),Yp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const aC={provide:Zn,useExisting:(0,i.Gpc)(()=>Wp),multi:!0};let Wp=(()=>{class n extends jl{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t.onChange(l.target.value)})("blur",function(){return t.onTouched()})},features:[i._Bn([aC]),i.qOj]}),n})(),Zm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Up=new i.OlP("NgModelWithFormControlWarning"),ox={provide:Br,useExisting:(0,i.Gpc)(()=>ss)};let ss=(()=>{class n extends Br{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=sd(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&zo(t,this,!1),Lp(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Op(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&zo(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 n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([ox]),i.qOj,i.TTD]}),n})();const lx={provide:$n,useExisting:(0,i.Gpc)(()=>Fo)};let Fo=(()=>{class n extends $n{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 i.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&&(xu(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 Lp(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){zo(e.control||null,e,!1),Ip(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,zm(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&&(zo(t||null,e),qm(r)&&(Lp(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Vm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Rp(n,a){return xu(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Nm(this.form,this),this._oldForm&&xu(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([lx]),i.qOj,i.TTD]}),n})();const lC={provide:Br,useExisting:(0,i.Gpc)(()=>Jn)};let Jn=(()=>{class n extends Br{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=sd(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Op(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 Hp(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36($n,13),i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([lC]),i.qOj,i.TTD]}),n})(),Yl=(()=>{class n{constructor(){this._validator=Ir}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):Ir,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const fC={provide:gn,useExisting:(0,i.Gpc)(()=>Nr),multi:!0};let Nr=(()=>{class n extends Yl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function t1(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>Lm}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([fC]),i.qOj]}),n})(),bC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Zm]]}),n})(),Jp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bC]}),n})(),dd=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Up,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bC]}),n})(),Qb=(()=>{class n{group(e,t=null){const r=this._reduceControls(e);let s,l=null,d=null;return null!=t&&(function hx(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(t)?(l=null!=t.validators?t.validators:null,d=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,d=null!=t.asyncValidator?t.asyncValidator:null)),new Fp(r,{asyncValidators:d,updateOn:s,validators:l})}control(e,t,r){return new Cr(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new nC(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return qm(e)||Du(e)||Nb(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:dd}),n})();const AC=["trigger"],yC=["panel"];function fx(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function mx(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function gx(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function _x(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,mx,2,1,"span",10),i.YNc(2,gx,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function bx(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.TgZ(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){return i.CHM(e),i.oxw()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)}),i.Hsn(3,1),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const MC=[[["mat-select-trigger"]],"*"],Qp=["mat-select-trigger","*"],Xb={transformPanelWrap:wi("transformPanelWrap",[Ht("* => void",yr("@transformPanel",[Jg()],{optional:!0}))]),transformPanel:wi("transformPanel",[Nt("void",Re({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Nt("showing",Re({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Nt("showing-multiple",Re({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ht("void => *",Ct("120ms cubic-bezier(0, 0, 0.2, 1)")),Ht("* => void",Ct("100ms 25ms linear",Re({opacity:0})))])};let o1=0;const vC=new i.OlP("mat-select-scroll-strategy"),Mx=new i.OlP("MAT_SELECT_CONFIG"),wx={provide:vC,deps:[Zr],useFactory:function yx(n){return()=>n.scrollStrategies.reposition()}};class Kb{constructor(a,e){this.source=a,this.value=e}}const TC=na(Nl(ts(op(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r}})))),xC=new i.OlP("MatSelectTrigger");let SC=(()=>{class n extends TC{constructor(e,t,r,l,d,s,o,c,u,h,f,b,V,ee){var he,Oe,gt;super(d,l,o,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=V,this._defaultOptions=ee,this._panelOpen=!1,this._compareWith=(dt,Kt)=>dt===Kt,this._uid="mat-select-"+o1++,this._triggerAriaLabelledBy=null,this._destroy=new He.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+o1++,this._panelDoneAnimatingStream=new He.xQ,this._overlayPanelClass=(null===(he=this._defaultOptions)||void 0===he?void 0:he.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(gt=null===(Oe=this._defaultOptions)||void 0===Oe?void 0:Oe.disableOptionCentering)&&void 0!==gt&>,this.ariaLabel="",this.optionSelectionChanges=ma(()=>{const dt=this.options;return dt?dt.changes.pipe(_i(dt),(0,Ui.w)(()=>(0,Si.T)(...dt.map(Kt=>Kt.onSelectionChange)))):this._ngZone.onStable.pipe((0,Zt.q)(1),(0,Ui.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,jt.h)(dt=>dt),(0,ut.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,jt.h)(dt=>!dt),(0,ut.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ee?void 0:ee.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ee.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||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,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Dn.required))&&void 0!==l&&l}set required(e){this._required=je(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=je(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=oi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new tn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Rh(),tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(tt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(_i(null),tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,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,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!vn(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;d.onKeydown(e);const o=this.selected;o&&s!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||vn(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(s?o.select():o.deselect())})}else{const s=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&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,Zt.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._selectValue(t)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(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(l){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new Vg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(tt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(tt(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,Si.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(tt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Si.T)(...this.options.map(t=>t._stateChanges)).pipe(tt(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){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ja),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(Qc),i.Y36(i.SBq),i.Y36(Cn,8),i.Y36(ld,8),i.Y36(Fo,8),i.Y36(as,8),i.Y36(Br,10),i.$8M("tabindex"),i.Y36(vC),i.Y36(kT),i.Y36(Mx,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(AC,5),i.Gf(yC,5),i.Gf(Rg,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),ku=(()=>{class n extends SC{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 l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(tt(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,Zt.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=hm(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:U_((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 Kb(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const s=0-(e.left+d-(r?l:0)),o=e.right+d-t.width+(r?0:l);s>0?d+=s+8:o>0&&(d-=o+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,s=Math.floor(256/l);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-s))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*o-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):s>l?this._adjustPanelDown(s,l,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 l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,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),d=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=hm(s,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(s,o,d),this._offsetY=this._calculateOverlayOffsetY(s,o,d),this._checkOverlayWithinViewport(d)}_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 n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xC,5),i.Suo(r,La,5),i.Suo(r,up,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.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-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),i.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:[i._Bn([{provide:Kc,useExisting:n},{provide:um,useExisting:n}]),i.qOj],ngContentSelectors:Qp,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&&(i.F$t(MC),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,fx,2,1,"span",3),i.YNc(5,_x,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA(),i.qZA(),i.YNc(8,bx,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.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)}},directives:[Pg,w.RF,w.n9,w.ED,Rg,w.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[Xb.transformPanelWrap,Xb.transformPanel]},changeDetection:0}),n})(),hd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wx],imports:[[w.ez,zc,du,ht],xa,Ws,du,ht]}),n})();const eA=new Set;let pd,tA=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vx}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Kp(n){if(!eA.has(n))try{pd||(pd=document.createElement("style"),pd.setAttribute("type","text/css"),document.head.appendChild(pd)),pd.sheet&&(pd.sheet.insertRule(`@media ${n} {body{ }}`,0),eA.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function vx(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let iA=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Pu(Lc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=Pu(Lc(e)).map(d=>this._registerQuery(d).observable);let l=(0,io.aj)(r);return l=Ms(l.pipe((0,Zt.q)(1)),l.pipe(Ph(1),(0,kh.b)(0))),l.pipe((0,ut.U)(d=>{const s={matches:!1,breakpoints:{}};return d.forEach(({matches:o,query:c})=>{s.matches=s.matches||o,s.breakpoints[c]=o}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Ri.y(d=>{const s=o=>this._zone.run(()=>d.next(o));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(_i(t),(0,ut.U)(({matches:d})=>({query:e,matches:d})),tt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(tA),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Pu(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const HC={tooltipState:wi("state",[Nt("initial, void, hidden",Re({opacity:0,transform:"scale(0)"})),Nt("visible",Re({transform:"scale(1)"})),Ht("* => visible",Ct("200ms cubic-bezier(0, 0, 0.2, 1)",Hl([Re({opacity:0,transform:"scale(0)",offset:0}),Re({opacity:.5,transform:"scale(0.99)",offset:.5}),Re({opacity:1,transform:"scale(1)",offset:1})]))),Ht("* => hidden",Ct("100ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:0})))])},kC="tooltip-panel",nA=$a({passive:!0}),rA=new i.OlP("mat-tooltip-scroll-strategy"),OC={provide:rA,deps:[Zr],useFactory:function RC(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},IC=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function BC(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Sx=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=s,this._ariaDescriber=o,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,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.xQ,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(tt(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=je(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=oi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=oi(e)}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(tt(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,nA)}),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 Nc(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.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(tt(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}-${kC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(tt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(tt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!vn(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),l.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),l.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:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_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:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Zt.q)(1),tt(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:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const s=this._overlayRef;if(s){const o=`${this._cssClassPrefix}-${kC}-`;s.removePanelClass(o+this._currentPosition),s.addPanelClass(o+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",()=>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,nA)})}_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 n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),vr=(()=>{class n extends Sx{constructor(e,t,r,l,d,s,o,c,u,h,f,b){super(e,t,r,l,d,s,o,c,u,h,f,b),this._tooltipComponent=Dx}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(xi),i.Y36(Bh),i.Y36(Rr),i.Y36(rA),i.Y36(Cn,8),i.Y36(IC,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),Ex=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new He.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n}),n})(),Dx=(()=>{class n extends Ex{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(iA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&i.Udp("zoom","visible"===t._visibility?1:null)},features:[i.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(l){return t._animationDone(l)}),i.ALo(1,"async"),i._uU(2),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(1,5,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),i.xp6(2),i.Oqu(t.message)}},directives:[w.mk],pipes:[w.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[HC.tooltipState]},changeDetection:0}),n})(),Ru=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[OC],imports:[[w0,w.ez,zc,ht],ht,xa]}),n})();function NC(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function Hx(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16),i.TgZ(1,"mat-select",17),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw(2)._changePageSize(r.value)}),i.YNc(2,NC,2,2,"mat-option",18),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function Lx(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function kx(n,a){if(1&n&&(i.TgZ(0,"div",12),i.TgZ(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,Hx,3,6,"mat-form-field",14),i.YNc(4,Lx,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function Px(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(e),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function p(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let m=(()=>{class n{constructor(){this.changes=new He.xQ,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 l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _={provide:m,deps:[[new i.FiY,new i.tp0,m]],useFactory:function g(n){return n||new m}},D=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),k=ts(am(class{}));let P=(()=>{class n extends k{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.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:s,showFirstLastButtons:o}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=s&&(this._hidePageSize=s),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(oi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=oi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(oi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>oi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=je(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=je(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 n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),n})(),F=(()=>{class n extends P{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(m),i.Y36(i.sBO),i.Y36(D,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.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","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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,kx,5,3,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,Px,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA(),i.qZA(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA(),i.qZA(),i.YNc(13,p,3,5,"button",11),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},directives:[mn,ku,La,Pt,w.O5,w.sg,vr],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),W=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[_],imports:[[w.ez,ns,hd,Ru,ht]]}),n})();var te=x(943);const se=["mat-menu-item",""];function pe(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const ve=["*"];function Ve(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)})("click",function(){return i.CHM(e),i.oxw().closed.emit("click")})("@transformMenu.start",function(r){return i.CHM(e),i.oxw()._onAnimationStart(r)})("@transformMenu.done",function(r){return i.CHM(e),i.oxw()._onAnimationDone(r)}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ye={transformMenu:wi("transformMenu",[Nt("void",Re({opacity:0,transform:"scale(0.8)"})),Ht("void => enter",Ct("120ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:1,transform:"scale(1)"}))),Ht("* => void",Ct("100ms 25ms linear",Re({opacity:0})))]),fadeInItems:wi("fadeInItems",[Nt("showing",Re({opacity:1})),Ht("void => *",[Re({opacity:0}),Ct("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ct=new i.OlP("MatMenuContent"),Ou=new i.OlP("MAT_MENU_PANEL"),c1=na(ts(class{}));let Gl=(()=>{class n extends c1{constructor(e,t,r,l,d){var s;super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.xQ,this._focused=new He.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(s=null==l?void 0:l.addItem)||void 0===s||s.call(l,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 l=0;l{class n{constructor(e,t,r){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=re.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+u1++}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=je(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(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 jc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(_i(this._directDescendantItems),(0,Ui.w)(e=>(0,Si.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(_i(this._directDescendantItems),(0,Ui.w)(t=>(0,Si.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:vn(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.lazyContent?this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===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}_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(_i(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ef))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ct,5),i.Suo(r,Gl,5),i.Suo(r,Gl,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.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"}}),n})(),Rx=(()=>{class n extends Zl{constructor(e,t,r){super(e,t,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ef))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Ou,useExisting:n}]),i.qOj],ngContentSelectors:ve,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&&(i.F$t(),i.YNc(0,Ve,3,6,"ng-template"))},directives:[w.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Ye.transformMenu,Ye.fadeInItems]},changeDetection:0}),n})();const Ox=new i.OlP("mat-menu-scroll-strategy"),YD={provide:Ox,deps:[Zr],useFactory:function qD(n){return()=>n.scrollStrategies.reposition()}},Bx=$a({passive:!0});let WD=(()=>{class n{constructor(e,t,r,l,d,s,o,c){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=o,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=re.w.EMPTY,this._hoverSubscription=re.w.EMPTY,this._menuCloseSubscription=re.w.EMPTY,this._handleTouchStart=u=>{Fh(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=d instanceof Zl?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Bx),s&&(s._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._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Bx),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),r=t.positionStrategy;this._setPosition(r),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Zl&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(tt(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.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(){var e;null===(e=this._overlayRef)||void 0===e||e.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 Zl?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,jt.h)(r=>"void"===r.toState),(0,Zt.q)(1),tt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Hh({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,d]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[l,d],[c,u]=[t,r],h=0;this.triggersSubmenu()?(u=t="before"===this.menu.xPosition?"start":"end",r=c="end"===t?"start":"end",h="bottom"===l?8:-8):this.menu.overlapTrigger||(s="top"===l?"bottom":"top",o="top"===d?"bottom":"top"),e.withPositions([{originX:t,originY:s,overlayX:c,overlayY:l,offsetY:h},{originX:r,originY:s,overlayX:u,overlayY:l,offsetY:h},{originX:t,originY:o,overlayX:c,overlayY:d,offsetY:-h},{originX:r,originY:o,overlayX:u,overlayY:d,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,$e.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,jt.h)(d=>d!==this._menuItemInstance),(0,jt.h)(()=>this._menuOpen)):(0,$e.of)();return(0,Si.T)(e,r,l,t)}_handleMousedown(e){Ud(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,jt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,te.g)(0,yh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Zl&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Zt.q)(1),(0,te.g)(0,yh),tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new vl(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(Ox),i.Y36(Ou,8),i.Y36(Gl,10),i.Y36(Cn,8),i.Y36(Rr))},n.\u0275dir=i.lG2({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("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"}}),n})(),Nx=(()=>{class n extends WD{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),h1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[YD],imports:[[w.ez,ht,ii,zc],xa,ht]}),n})();var oA=x(1737),UD=x(2474);const GD=["*"];let lA;function p1(n){var a;return(null===(a=function ZD(){if(void 0===lA&&(lA=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(lA=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return lA}())||void 0===a?void 0:a.createHTML(n))||n}function Vx(n){return Error(`Unable to find icon with the name "${n}"`)}function zx(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Fx(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Iu{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let f1=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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",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,l){return this._addSvgIconConfig(e,t,new Iu(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw Fx(r);const s=p1(d);return this._addSvgIconConfig(e,t,new Iu("",s,l))}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 Iu(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Fx(t);const d=p1(l);return this._addSvgIconSetConfig(e,new Iu("",d,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(i.q3G.RESOURCE_URL,e);if(!t)throw zx(e);const r=this._cachedIconsByUrl.get(t);return r?(0,$e.of)(cA(r)):this._loadSvgIconFromConfig(new Iu(e,null)).pipe((0,I.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ut.U)(l=>cA(l)))}getNamedSvgIcon(e,t=""){const r=jx(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,oA._)(Vx(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,$e.of)(cA(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ut.U)(t=>cA(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,$e.of)(r):fm(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,wn.K)(s=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),(0,$e.of)(null)})))).pipe((0,ut.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Vx(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(d,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,I.b)(t=>e.svgText=t),(0,ut.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,$e.of)(null):this._fetchIcon(e).pipe((0,I.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const s=this._svgElementFromString(p1(""));return s.appendChild(d),this._setSvgAttributes(s,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(p1("")),r=e.attributes;for(let l=0;lp1(u)),ye(()=>this._inProgressUrlFetches.delete(s)),(0,UD.B)());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(jx(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:""}}}),qx=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],t2=qx.map(n=>`[${n}]`).join(", "),n2=/^url\(['"]?#(.*?)['"]?\)$/;let bn=(()=>{class n extends XD{constructor(e,t,r,l,d){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._currentIconFetch=re.w.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=je(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=e.querySelectorAll("style");for(let l=0;l{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(t2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],o=s.getAttribute(d),c=o?o.match(n2):null;if(c){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:d,value:c[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,Zt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(f1),i.$8M("aria-hidden"),i.Y36(KD),i.Y36(i.qLn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.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),i.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:[i.qOj],ngContentSelectors:GD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),n})(),$l=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})(),Yx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[W,h1,$l,ns,Ap,w.ez]]}),n})();var r2=x(655),a2=x(9441);const tf=[5,10,25,100];function Pi(){const n=new uu;return n.disableClose=!0,n.autoFocus=!1,n}function Bu(n){return"virt"===n.namespace.split(":")[4]}const m2=new Intl.Collator("cs",{numeric:!0});function m1(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,d)=>{const s=e(l,t),o=e(d,t);return m2.compare(s,o)*("asc"===r?1:-1)}):n}function g1(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function nf(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};a.forEach(s=>{var o;d[s]=(null!==(o=e(l,s))&&void 0!==o?o:"").split('"').join("''").trim()}),t.push(d)}),t}function rf(n,a="csv",e="export"){if("csv"===a){const t=(o,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(o=>r.map(c=>JSON.stringify(o[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),s=new Blob([d],{type:"text/csv"});(0,a2.saveAs)(s,`${e}.${a}`)}}const Ux="GUI_CONFIG.PREF_PAGE_SIZE.";let _2=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b2=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Ux+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(Ux+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_2))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),A2=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"button",1),i.TgZ(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA(),i.qZA(),i.TgZ(4,"mat-menu",null,2),i.TgZ(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-menu",null,4),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[Pt,Nx,bn,Rx,Gl],pipes:[lt],styles:[""]}),n})();function y2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}function M2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}const w2=["*"];let os=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=tf,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}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)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(b2))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(F,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:w2,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,y2,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1),i.TgZ(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,M2,1,0,"perun-web-apps-table-options",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},directives:[F,w.O5,A2],styles:[""]}),n})();class C2{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 VC=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Pi();this.dialog.open(sb,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ka),i.LFG(zt),i.LFG(ys),i.LFG(Wi),i.LFG(Ji),i.LFG(rt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gx=(()=>{class n{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/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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(f1),i.LFG(fr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),v2=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi))},n.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[En,fn,ji,Pt],pipes:[lt],styles:[""]}),n})(),dA=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tr=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.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,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){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:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(li))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zx=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=s}intercept(e,t){const r=this.store.get("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.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const s=Pi();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(v2,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ye(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}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()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,I.b)(s=>{s instanceof M.Zn&&d&&this.initAuthService.loadPrincipal()},s=>{const o=this.formatErrors(s,e);return void 0===o?(0,oA._)(s):l?void this.notificator.showRPCError(o):(0,oA._)(o)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ka),i.LFG(dA),i.LFG(Tr),i.LFG(zt),i.LFG(Ji),i.LFG(VC))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$x=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),T2=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new M.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,wn.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,wn.K)(s=>this.formatErrors(s,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:s}).pipe((0,wn.K)(o=>this.formatErrors(o,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,wn.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,oA._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Tr),i.LFG(ka),i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,s,o,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?s.data.length:s.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),s.sortData(s.filteredData,o).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(s=>s.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const s of l){const o=s.split("=");"lang"===o[0]&&(d=o[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nr),i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jC=(()=>{class n{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const r of e)if(r.newApps.admin===t||r.newApps.profile===t||r.newApps.pwdReset===t)return r;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),d=l[0]+"//"+l[2],s=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let o;if(s.newApps[e])o=s.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=s.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();wi("openClose",[Nt("open",Re({overflow:"hidden"})),Nt("closed",Re({height:"0px",overflow:"hidden"})),Ht("open <=> closed",[Ct(".3s ease-in")])]);const x2=wi("flyInOut",[Ht(":enter",[Re({transform:"translateX(100%)"}),Ct(".25s")]),Ht(":leave",[Ct(".5s",Re({transform:"translateX(100%)"}))])]);wi("rollInOut",[Ht(":enter",[Re({height:"0px"}),Ct(".25s")]),Ht(":leave",[Ct(".25s",Re({height:"0px"}))])]),wi("routeAnimations",[Ht("* => *",[Re({position:"relative"}),yr(":enter",[Re({width:"100%",opacity:0})],{optional:!0}),yr(":leave",[Re({position:"absolute",width:"100%",opacity:1}),Ct("0.15s",Re({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),yr(":enter",[Re({position:"absolute",width:"100%",opacity:0}),Ct("0.15s",Re({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),wi("tagsOpenClose",[Nt("open",Re({})),Nt("closed",Re({width:"0px",height:"0px"})),Ht("open <=> closed",[Ct(".3s ease-in")])]),wi("switchAnimations",[Ht("true => false",[yr(":enter, :leave",Re({})),qh([yr(":enter",[Re({transform:"translateX(-100%)"}),Ct("1s ease-in-out",Re({transform:"translateX(0%)"}))],{optional:!0}),yr(":leave",[Re({transform:"translateX(0%)",position:"absolute"}),Ct("1s ease-in-out",Re({transform:"translateX(100%)"}))],{optional:!0})])]),Ht("false => true",[yr(":enter, :leave",Re({})),qh([yr(":enter",[Re({transform:"translateX(100%)"}),Ct("1s ease-in-out",Re({transform:"translateX(0%)"}))],{optional:!0}),yr(":leave",[Re({transform:"translateX(0%)",position:"absolute"}),Ct("1s ease-in-out",Re({transform:"translateX(-100%)"}))],{optional:!0})])])]),wi("slideInOutLeft",[Ht(":enter",[Re({transform:"translateX(-100%)",position:"relative"}),Ct("0.5s ease-in",Re({transform:"translateX(0%)"}))]),Ht(":leave",[Ct("0.5s ease-in",Re({transform:"translateX(-100%)"}))])]),wi("slideInOutRight",[Ht(":enter",[Re({transform:"translateX(100%)",position:"fixed"}),Ct("0.5s ease-in",Re({transform:"translateX(0%)"}))]),Ht(":leave",[Re({transform:"translateX(-100%)",position:"relative"}),Ct("0.5s ease-in",Re({transform:"translateX(100%)"}))])]);let Jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez]]}),n})(),uA=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})(),si=(()=>{class n{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.get("custom_labels");if(r)for(const l of r)if(l.label===e)return l[t];return e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li,16),i.Y36(zt,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();class S2{isErrorState(a){return!(!(null==a?void 0:a.invalid)||!(null==a?void 0:a.dirty))}}const E2=(n,a,e,t=500)=>r=>Pc(t).pipe((0,Ui.w)(()=>(e.dontHandleErrorForNext(),n&&"No namespace"!==n?a.checkPasswordStrength(r.value,n):(0,$e.of)(null))),(0,ut.U)(()=>null),(0,wn.K)(l=>{const d=l.error,s={backendError:d.message.substring(d.message.indexOf(":")+1)};return(0,$e.of)(s)})),Qx=$a({passive:!0});let D2=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Mn.E;const t=zi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new He.xQ,d="cdk-text-field-autofilled",s=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,Qx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,Qx)}}),l}stopMonitoring(e){const t=zi(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 n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hA=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new He.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=oi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=oi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=je(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(()=>{Ta(this._getWindow(),"resize").pipe(Vd(16),tt(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,l=r&&this._hasFocus,d=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const s=e.scrollHeight-4;return e.classList.remove(d),l&&(e.style.marginBottom=t),s}_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 l=this._measureScrollHeight(),d=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(i.R0b),i.Y36(w.K0,8))},n.\u0275dir=i.lG2({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&i.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),n})(),Xx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Rc]]}),n})();const Kx=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),H2=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let L2=0;const k2=op(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let Hn=(()=>{class n extends k2{constructor(e,t,r,l,d,s,o,c,u,h){super(s,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+L2++,this.focused=!1,this.stateChanges=new He.xQ,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(V=>tg().has(V));const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=o||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",V=>{const ee=V.target;!ee.value&&0===ee.selectionStart&&0===ee.selectionEnd&&(ee.setSelectionRange(1,1),ee.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.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=je(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,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Dn.required))&&void 0!==l&&l}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&tg().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=je(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)}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,t;const r=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){H2.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(Br,10),i.Y36(ld,8),i.Y36(Fo,8),i.Y36(Qc),i.Y36(Kx,10),i.Y36(D2),i.Y36(i.R0b),i.Y36(as,8))},n.\u0275dir=i.lG2({type:n,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&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.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),i.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:[i._Bn([{provide:Kc,useExisting:n}]),i.qOj,i.TTD]}),n})(),_1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Qc],imports:[[Xx,Ws,ht],Xx,Ws]}),n})();function P2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.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)),i.uIk("r",e._getCircleRadius())}}function R2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function O2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.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)),i.uIk("r",e._getCircleRadius())}}function I2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const V2=Bo(class{constructor(n){this._elementRef=n}},"primary"),eS=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function z2(){return{diameter:100}}});class Jl extends V2{constructor(a,e,t,r,l,d,s,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=re.w.EMPTY,this.mode="determinate";const c=Jl._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,l&&(l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&d&&o&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=oi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=oi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,oi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=vh(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=Jl._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),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(".","_")}}Jl._diameters=new WeakMap,Jl.\u0275fac=function(a){return new(a||Jl)(i.Y36(i.SBq),i.Y36(xi),i.Y36(w.K0,8),i.Y36(Bn,8),i.Y36(eS),i.Y36(i.sBO),i.Y36(Ja),i.Y36(i.R0b))},Jl.\u0275cmp=i.Xpm({type:Jl,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.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),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.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&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,P2,1,11,"circle",2),i.YNc(3,R2,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[w.RF,w.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});let Ln=(()=>{class n extends Jl{constructor(e,t,r,l,d,s,o,c){super(e,t,r,l,d,s,o,c),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(w.K0,8),i.Y36(Bn,8),i.Y36(eS),i.Y36(i.sBO),i.Y36(Ja),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[i.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(e,t){1&e&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,O2,1,11,"circle",2),i.YNc(3,I2,1,9,"circle",3),i.qZA()),2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===t.mode),i.uIk("viewBox",t._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[w.RF,w.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0}),n})(),b1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht,w.ez],ht]}),n})();function j2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function q2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function Y2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function W2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const U2=["*"];let Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:U2,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&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,j2,2,0,"mat-icon",1),i.YNc(2,q2,2,0,"mat-icon",1),i.YNc(3,Y2,2,0,"mat-icon",1),i.YNc(4,W2,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.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),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},directives:[w.O5,bn],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}"]}),n})();function G2(n,a){1&n&&i._UZ(0,"mat-spinner",12),2&n&&i.Q6J("diameter",18)}function Z2(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1," error "),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function $2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function J2(n,a){if(1&n&&(i.TgZ(0,"mat-error",14),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip()),i.xp6(1),i.Oqu(e.getErrorTooltip())}}function Q2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function X2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let K2=(()=>{class n{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new S2,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const r=e.userAttributes.find(l=>"preferredLanguage"===l.friendlyName);this.language=null!==(t=null==r?void 0:r.value)&&void 0!==t?t:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),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.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Hi),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[i.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["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"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.YNc(4,G2,1,1,"mat-spinner",3),i.TgZ(5,"mat-icon",4),i.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),i._uU(6),i.qZA(),i.YNc(7,Z2,2,2,"mat-icon",5),i.YNc(8,$2,3,3,"mat-error",6),i.YNc(9,J2,2,2,"mat-error",7),i.qZA(),i.TgZ(10,"mat-form-field",8),i.TgZ(11,"mat-label"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i._UZ(14,"input",9),i.TgZ(15,"mat-icon",4),i.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),i._uU(16),i.qZA(),i.YNc(17,Q2,3,3,"mat-error",6),i.YNc(18,X2,3,3,"mat-error",6),i.qZA(),i.TgZ(19,"perun-web-apps-alert",10),i._UZ(20,"div",11),i.qZA(),i.qZA()),2&e&&(i.Q6J("formGroup",t.formGroup),i.xp6(1),i.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),i.xp6(1),i.s9C("placeholder",i.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),i.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),i.xp6(2),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),i.xp6(2),i.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),i.xp6(3),i.Oqu(i.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),i.xp6(2),i.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),i.xp6(2),i.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),i.xp6(2),i.Q6J("innerHTML",t.passwordRequirement,i.oJD))},directives:[Ep,Fo,mn,vr,Hn,nn,_n,Jn,Nr,w.O5,Ln,gb,bn,Fl,rs,Nn],pipes:[lt],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)}"]}),n})();function sH(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function oH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function lH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function cH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"mat-form-field"),i.TgZ(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().subject=r}),i.qZA(),i.YNc(7,oH,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field"),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().message=r}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,lH,3,3,"mat-error",11),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let dH=(()=>{class n{constructor(e,t,r,l,d,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var e,t;(null===(t=null===(e=this.data)||void 0===e?void 0:e.error)||void 0===t?void 0:t.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.get("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 l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(li),i.Y36(Tr),i.Y36(cn),i.Y36(Sn),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,sH,1,0,"mat-spinner",1),i.YNc(4,cH,17,13,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[En,w.O5,Ln,fn,mn,rs,Hn,nn,Nr,_n,ur,Fl,ji,Pt],pipes:[lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),uH=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Pi();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(dH,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Ji),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[En,fn,ji,Pt],pipes:[lt],styles:[""]}),n})();const hH=[[["caption"]],[["colgroup"],["col"]]],pH=["caption","colgroup, col"];function YC(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=je(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const af=new i.OlP("CDK_TABLE");let sf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),lf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),pA=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class _H{}const bH=YC(_H);let Ql=(()=>{class n extends bH{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=je(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,sf,5),i.Suo(r,lf,5),i.Suo(r,pA,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class WC{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let UC=(()=>{class n extends WC{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),GC=(()=>{class n extends WC{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class iS{constructor(){this.tasks=[],this.endTasks=[]}}const ZC=new i.OlP("_COALESCED_STYLE_SCHEDULER");let nS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.xQ}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 iS,this._getScheduleObservable().pipe(tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new iS;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,dn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Zt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$C=(()=>{class n{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 A1?e.headerCell.template:this instanceof y1?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class AH extends $C{}const yH=YC(AH);let A1=(()=>{class n extends yH{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class MH extends $C{}const wH=YC(MH);let y1=(()=>{class n extends wH{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),fA=(()=>{class n extends $C{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Xl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),JC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),XC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),mA=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const rS=["top","bottom","left","right"];class CH{constructor(a,e,t,r,l=!0,d=!0,s){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=s,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 l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],d=l.children.length,s=this._getCellWidths(l,r),o=this._getStickyStartColumnPositions(s,e),c=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",V=f?"left":"right";for(const ee of a)for(let he=0;hee[he]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((ee,he)=>t[he+h]?ee:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,d=[],s=[],o=[];for(let u=0,h=0;u{var u,h;for(let f=0;f{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]);rS.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 rS)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 l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const KC=new i.OlP("CDK_SPL");let gA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),_A=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),bA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),AA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),yA=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=o,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new He.xQ,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 i.vpe,this.viewChange=new Ki({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,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=je(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=je(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(tt(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(),xm(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,l,d)=>this._getEmbeddedViewArgs(r.item,d),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&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Zt.q)(1),tt(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 l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.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((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(d)?r.get(d):[];if(s.length){const o=s.shift();return o.dataIndex=t,o}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),MA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=MA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=MA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=MA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,s)=>d||!!s.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],xm(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;xm(this.dataSource)?e=this.dataSource.connect(this):is(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,$e.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(tt(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(s=>this._columnDefsByName.get(s)),l=r.map(s=>s.sticky),d=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Xl.mostRecentCellOutlet&&Xl.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 l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}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 CH(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,$e.of)()).pipe(tt(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 l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&(null==d?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Cn,8),i.Y36(w.K0),i.Y36(xi),i.Y36(td),i.Y36(ZC),i.Y36(Ja),i.Y36(KC,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,mA,5),i.Suo(r,Ql,5),i.Suo(r,fA,5),i.Suo(r,A1,5),i.Suo(r,y1,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(gA,7),i.Gf(_A,7),i.Gf(bA,7),i.Gf(AA,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:af,useExisting:n},{provide:td,useClass:jw},{provide:ZC,useClass:nS},{provide:KC,useValue:null}])],ngContentSelectors:pH,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(hH),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[_A,gA,AA,bA],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function MA(n,a){return n.concat(Array.from(a))}let TH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa]]}),n})();const xH=[[["caption"]],[["colgroup"],["col"]]],SH=["caption","colgroup, col"];let Zs=(()=>{class n extends yA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:td,useClass:jw},{provide:yA,useExisting:n},{provide:af,useExisting:n},{provide:ZC,useClass:nS},{provide:KC,useValue:null}]),i.qOj],ngContentSelectors:SH,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(xH),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[_A,gA,AA,bA],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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),ls=(()=>{class n extends sf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:sf,useExisting:n}]),i.qOj]}),n})(),cs=(()=>{class n extends lf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:lf,useExisting:n}]),i.qOj]}),n})(),ds=(()=>{class n extends Ql{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Ql,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),us=(()=>{class n extends UC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),hs=(()=>{class n extends GC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),$s=(()=>{class n extends A1{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:A1,useExisting:n}]),i.qOj]}),n})(),Js=(()=>{class n extends fA{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:fA,useExisting:n}]),i.qOj]}),n})(),Qs=(()=>{class n extends JC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:JC,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),Xs=(()=>{class n extends XC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:XC,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),wA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[TH,ht],ht]}),n})();class qo extends class NH extends class zw{}{constructor(a=[]){super(),this._renderData=new Ki([]),this._filter=new Ki(""),this._internalPageChanges=new He.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Hc(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,s)=>{let o=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(s,r);const u=typeof o,h=typeof c;u!==h&&("number"===u&&(o+=""),"number"===h&&(c+=""));let f=0;return null!=o&&null!=c?o>c?f=1:o{const r=Object.keys(e).reduce((d,s)=>d+e[s]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new Ki(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,Si.T)(this._sort.sortChange,this._sort.initialized):(0,$e.of)(null),t=this._paginator?(0,Si.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,$e.of)(null),l=(0,io.aj)([this._data,this._filter]).pipe((0,ut.U)(([o])=>this._filterData(o))),d=(0,io.aj)([l,e]).pipe((0,ut.U)(([o])=>this._orderData(o))),s=(0,io.aj)([d,t]).pipe((0,ut.U)(([o])=>this._pageData(o)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=s.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}}{}function VH(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function zH(n,a){1&n&&i._UZ(0,"th",15)}function FH(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function jH(n,a){1&n&&i._UZ(0,"tr",17)}function qH(n,a){1&n&&i._UZ(0,"tr",18)}function YH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",4),i.TgZ(2,"p"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"div",5),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"table",6),i.ynx(11,7),i.YNc(12,zH,1,0,"th",8),i.YNc(13,FH,2,1,"td",9),i.BQk(),i.YNc(14,jH,1,0,"tr",10),i.YNc(15,qH,1,0,"tr",11),i.qZA(),i.qZA(),i.TgZ(16,"div",12),i.TgZ(17,"button",13),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.TgZ(21,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(22),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,7,i.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(8,11,i.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(3),i.hij(" ",i.lcZ(19,15,i.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(23,19,i.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let WH=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=l,this.notificator=d,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new qo(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(Hi),i.Y36(li),i.Y36(Tr))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div"),i.YNc(5,VH,1,0,"mat-spinner",1),i.YNc(6,YH,25,23,"div",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),i.xp6(3),i.Tol(t.theme),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,Zs,ds,cs,us,ls,hs,$s,Qs,Js,Xs,ji,Pt],pipes:[lt,si],styles:[""]}),n})();class UH{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,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(t){}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let GH=(()=>{class n{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new UH(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ZH=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let ev=(()=>{class n{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new i.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 l=()=>{const d=r.copy();d||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(d)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(l,1))};l()}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 n.\u0275fac=function(e){return new(e||n)(i.Y36(GH),i.Y36(i.R0b),i.Y36(ZH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),n})(),sS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),CA=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.TgZ(3,"textarea",2),i._uU(4),i.qZA(),i.qZA(),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(3),i.Oqu(t.value),i.xp6(3),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),i.xp6(2),i.Q6J("cdkCopyToClipboard",t.value),i.xp6(1),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[En,fn,hA,Hn,ji,Pt,ev],pipes:[lt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),n})(),$H=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"textarea",2),i.NdJ("ngModelChange",function(l){return t.attributeValue=l}),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),i.xp6(4),i.Q6J("ngModel",t.attributeValue),i.xp6(3),i.hij(" ",i.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[En,fn,mn,hA,Hn,nn,_n,ur,ji,Pt],pipes:[lt],styles:[""]}),n})(),JH=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"div"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",2),i._uU(8),i.qZA(),i.qZA(),i.TgZ(9,"div",3),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),i.xp6(4),i.hij(" ",i.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),i.xp6(3),i.hij(" ",t.data.name," "),i.xp6(3),i.hij(" ",i.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[En,fn,ji,Pt],pipes:[lt],styles:[""]}),n})();function QH(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.pendingEmailsMessage)}}function XH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let KH=(()=>{class n{constructor(e,t,r,l,d,s){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=l,this.usersManagerService=d,this.authService=s,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 Cr(null,[Dn.required,Dn.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,l,d)=>l===d.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(li),i.Y36(Tr),i.Y36(Hi),i.Y36(ka))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,QH,2,1,"perun-web-apps-alert",2),i.TgZ(6,"mat-form-field",3),i.TgZ(7,"label",3),i._UZ(8,"input",4),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.YNc(11,XH,4,5,"mat-error",5),i.qZA(),i.qZA(),i.TgZ(12,"div",6),i.TgZ(13,"button",7),i.NdJ("click",function(){return t.onCancel()}),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"button",8),i.NdJ("click",function(){return t.onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.pendingMails.length),i.xp6(3),i.s9C("placeholder",i.lcZ(9,12,i.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.emailControl),i.xp6(3),i.Q6J("ngIf",t.emailControl.invalid),i.xp6(3),i.hij(" ",i.lcZ(15,16,i.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!t.emailControl.valid),i.xp6(1),i.hij(" ",i.lcZ(19,20,i.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[En,fn,w.O5,Nn,mn,Hn,nn,Nr,_n,ss,Fl,ji,Pt],pipes:[lt,si],styles:[""]}),n})(),lL=(()=>{class n{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([]),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),i.xp6(4),i.Oqu(i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),i.xp6(4),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[En,fn,Nn,ji,Pt],pipes:[lt],styles:[""]}),n})();function cL(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function dL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"form",5),i.TgZ(1,"div",6),i.TgZ(2,"mat-form-field"),i.TgZ(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i._UZ(6,"input",7),i.TgZ(7,"mat-icon",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.showOldPassword=!r.showOldPassword}),i._uU(8),i.qZA(),i.YNc(9,cL,3,3,"mat-error",9),i.qZA(),i._UZ(10,"perun-web-apps-password-form",10),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("formGroup",e.formGroup),i.xp6(4),i.Oqu(i.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),i.xp6(2),i.Q6J("type",e.showOldPassword?"text":"password"),i.xp6(2),i.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",e.oldPwd.hasError("required")),i.xp6(1),i.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function uL(n,a){1&n&&i._UZ(0,"mat-spinner",11)}function hL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.TgZ(1,"div",13),i.TgZ(2,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().close()}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"button",15),i.NdJ("click",function(){return i.CHM(e),i.oxw().changePassword()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),i.xp6(1),i.hij(" ",i.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let pL=(()=>{class n{constructor(e,t,r,l,d,s,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=l,this.apiRequestConfiguration=d,this.notificator=s,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",Dn.required],passwordCtrl:["",Dn.required,[E2(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:C2.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(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(Qb),i.Y36(Hi),i.Y36(dA),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.YNc(4,dL,11,9,"form",2),i.YNc(5,uL,1,0,"mat-spinner",3),i.qZA(),i.YNc(6,hL,8,7,"div",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,fn,w.O5,Yp,Ep,Fo,mn,rs,nn,Hn,_n,Jn,Nr,bn,gb,Fl,K2,Ln,ji,Pt],pipes:[lt],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}"]}),n})();const fL=["input"],mL=function(n){return{enterDuration:n}},gL=["*"],_L=new i.OlP("mat-radio-default-options",{providedIn:"root",factory:function bL(){return{color:"accent"}}});let lS=0;const AL={provide:Zn,useExisting:(0,i.Gpc)(()=>uS),multi:!0};class cS{constructor(a,e){this.source=a,this.value=e}}const dS=new i.OlP("MatRadioGroup");let yL=(()=>{class n{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+lS++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.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=je(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=je(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 cS(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})(),uS=(()=>{class n extends yL{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,hS,5),2&e){let l;i.iGM(l=i.CRH())&&(t._radios=l)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i._Bn([AL,{provide:dS,useExisting:n}]),i.qOj]}),n})();class ML{constructor(a){this._elementRef=a}}const wL=na(Nl(ML));let CL=(()=>{class n extends wL{constructor(e,t,r,l,d,s,o,c){super(t),this._changeDetector=r,this._focusMonitor=l,this._radioDispatcher=d,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++lS,this.id=this._uniqueId,this.change=new i.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,c&&(this.tabIndex=oi(c,0)),this._removeUniqueSelectionListener=d.listen((u,h)=>{u!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=je(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(je(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=je(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)}ngAfterViewInit(){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 cS(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())}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(fL,5),2&e){let r;i.iGM(r=i.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:[i.qOj]}),n})(),hS=(()=>{class n extends CL{constructor(e,t,r,l,d,s,o,c){super(e,t,r,l,d,s,o,c)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dS,8),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Rr),i.Y36(Mp),i.Y36(Bn,8),i.Y36(_L,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(i.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.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:[i.qOj],ngContentSelectors:gL,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i._UZ(3,"span",3),i._UZ(4,"span",4),i.TgZ(5,"input",5,6),i.NdJ("change",function(l){return t._onInputInteraction(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA(),i.qZA(),i.TgZ(9,"span",9),i.TgZ(10,"span",10),i._uU(11,"\xa0"),i.qZA(),i.Hsn(12),i.qZA(),i.qZA()),2&e){const r=i.MAs(1);i.uIk("for",t.inputId),i.xp6(5),i.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),i.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,mL,t._noopAnimations?0:150)),i.xp6(2),i.ekj("mat-radio-label-before","before"==t.labelPosition)}},directives:[Gn],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-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;-moz-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),n})(),pS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,ht],ht]}),n})();function vL(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function TL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function xL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function SL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-radio-group",12),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(2).asyncValidation=r}),i.TgZ(1,"span",13),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-radio-button",14),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"mat-radio-button",14),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("ngModel",e.asyncValidation),i.xp6(2),i.hij(" ",i.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),i.xp6(2),i.Q6J("value",!1),i.xp6(1),i.hij(" ",i.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),i.xp6(2),i.Q6J("value",!0),i.xp6(1),i.hij(" ",i.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function EL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function DL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function HL(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"p",6),i._uU(2),i.TgZ(3,"span",7),i._uU(4),i.qZA(),i._uU(5),i.TgZ(6,"span",7),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"p"),i.TgZ(9,"strong",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA(),i.TgZ(13,"p"),i.TgZ(14,"strong",8),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17),i.qZA(),i.YNc(18,TL,3,3,"span",9),i.YNc(19,xL,3,3,"span",9),i.YNc(20,SL,10,12,"mat-radio-group",10),i.YNc(21,EL,3,3,"span",9),i.YNc(22,DL,3,3,"span",9),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e.group.name," "),i.xp6(2),i.hij("#",e.group.id,""),i.xp6(1),i.hij(" - ",e.resource.name," "),i.xp6(2),i.hij("#",e.resource.id,""),i.xp6(3),i.hij(" ",i.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),i.xp6(2),i.hij(" ",e.status," "),i.xp6(3),i.hij(" ",i.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),i.xp6(2),i.hij(" ",e.getReversedStatus()," "),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf","ACTIVE"===e.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function LL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",15),i.TgZ(1,"button",16),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",17),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let kL=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=l,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(fi),i.Y36(Di))},n.\u0275cmp=i.Xpm({type:n,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"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,vL,1,0,"mat-spinner",1),i.YNc(5,HL,23,17,"div",2),i.YNc(6,LL,7,7,"div",3),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.hij(" ",i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,uS,_n,ur,hS,ji,Pt],pipes:[lt],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),n})();function PL(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function RL(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let OL=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.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=Pi();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(uH,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function s2(n,a){return(0,r2.mG)(this,void 0,void 0,function*(){yield function o2(n){return new Promise(a=>setTimeout(a,n))}(n),a()})}(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36($x))},n.\u0275cmp=i.Xpm({type:n,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"],[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&&(i.TgZ(0,"div"),i.TgZ(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,PL,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,RL,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},directives:[w.O5,bn],pipes:[lt],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}"]}),n})();function IL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index;return i.oxw().removeNotification(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const BL=function(n){return{top:n}};let NL=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Tr),i.Y36($x))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.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&&(i.TgZ(0,"div",0),i.YNc(1,IL,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,BL,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},directives:[w.PC,w.sg,OL],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:[x2]}}),n})();const VL=["*",[["mat-toolbar-row"]]],zL=["*","mat-toolbar-row"],FL=Bo(class{constructor(n){this._elementRef=n}});let jL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),qL=(()=>{class n extends FL{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,jL,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:zL,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(VL),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),tv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})();function fS(n){for(let a in n){let e=n[a]||"";switch(a){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;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":n["-webkit-"+a]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+a]=isNaN(+e)?"0":e}}return n}const iv="inline",vA=["row","column","row-reverse","column-reverse"];function mS(n){let[a,e,t]=function gS(n){var a;n=null!==(a=null==n?void 0:n.toLowerCase())&&void 0!==a?a:"";let[e,t,r]=n.split(" ");return vA.find(l=>l===e)||(e=vA[0]),t===iv&&(t=r!==iv?r:"",r=iv),[e,YL(t),!!r]}(n);return function WL(n,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":a||null}}(a,e,t)}function YL(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}const GL={provide:i.tb,useFactory:function UL(n,a){return()=>{if((0,w.NF)(a)){const e=Array.from(n.querySelectorAll(`[class*=${_S}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${_S}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[w.K0,i.Lbi],multi:!0},_S="flex-layout-";let nv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[GL]}),n})();class Nu{constructor(a=!1,e="all",t="",r="",l=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=l,this.property=""}clone(){return new Nu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let ZL=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const l=this.stylesheet.get(e);l?l.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 l="";if(r){const d=r.get(t);("number"==typeof d||"string"==typeof d)&&(l=d+"")}return l}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Ks=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>rv}),cf=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),av=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function bS(n,a){return n=n?n.clone():new Nu,a&&(n.mqAlias=a.alias,n.mediaQuery=a.mediaQuery,n.suffix=a.suffix,n.priority=a.priority),n}class An{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let qi=(()=>{class n{constructor(e,t,r,l){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=l}applyStyleToElement(e,t,r=null){let l={};"string"==typeof t&&(l[t]=r,t=l),l=this.layoutConfig.disableVendorPrefixes?t:fS(t),this._applyMultiValueStyleToElement(l,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:fS(e);t.forEach(l=>{this._applyMultiValueStyleToElement(r,l)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,w.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,w.NF)(this._platformId)?e.style.getPropertyValue(t):function $L(n,a){var e;return null!==(e=AS(n)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let l="";return e&&((l=this.lookupInlineStyle(e,t))||((0,w.NF)(this._platformId)?r||(l=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(l=this._serverStylesheet.getStyleForElement(e,t)))),l?l.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const l=e[r],d=Array.isArray(l)?l:[l];d.sort();for(let s of d)s=s?s+"":"",(0,w.NF)(this._platformId)||!this._serverModuleLoaded?(0,w.NF)(this._platformId)?t.style.setProperty(r,s):JL(t,r,s):this._serverStylesheet.addStyleToElement(t,r,s)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ZL),i.LFG(cf),i.LFG(i.Lbi),i.LFG(Ks))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function JL(n,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=AS(n);t[a]=null!=e?e:"",function QL(n,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);n.setAttribute("style",e)}(n,t)}function AS(n){const a={},e=n.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const d=l.indexOf(":");if(-1===d)throw new Error(`Invalid CSS style: ${l}`);a[l.substr(0,d).trim()]=l.substr(d+1).trim()}}}return a}function w1(n,a){return(a&&a.priority||0)-(n&&n.priority||0)}function XL(n,a){return(n.priority||0)-(a.priority||0)}let sv=(()=>{class n{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new Ki(new Nu(!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;const r=this.registry.get(e);return null!==(t=null==r?void 0:r.matches)&&void 0!==t?t:this.registerQuery(e).some(l=>l.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,jt.h)(d=>!t||e.indexOf(d.mediaQuery)>-1)),l=new Ri.y(d=>{const s=this.registerQuery(e);if(s.length){const o=s.pop();s.forEach(c=>{d.next(c)}),this.source.next(o)}d.complete()});return(0,Si.T)(l,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function KL(n,a){const e=n.filter(t=>!yS[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(l=>yS[l]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(l=>{const d=o=>{this._zone.run(()=>this.source.next(new Nu(o.matches,l)))};let s=this.registry.get(l);s||(s=this.buildMQL(l),s.addListener(d),this.pendingRemoveListenerFns.push(()=>s.removeListener(d)),this.registry.set(l,s)),s.matches&&r.push(new Nu(!0,l))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function ek(n,a){return a&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,w.NF)(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const yS={},tk=[{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}],MS="(orientation: portrait) and (max-width: 599.98px)",wS="(orientation: landscape) and (max-width: 959.98px)",CS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",vS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",TS="(orientation: portrait) and (min-width: 840px)",xS="(orientation: landscape) and (min-width: 1280px)",ec={HANDSET:`${MS}, ${wS}`,TABLET:`${CS} , ${vS}`,WEB:`${TS}, ${xS} `,HANDSET_PORTRAIT:`${MS}`,TABLET_PORTRAIT:`${CS} `,WEB_PORTRAIT:`${TS}`,HANDSET_LANDSCAPE:`${wS}`,TABLET_LANDSCAPE:`${vS}`,WEB_LANDSCAPE:`${xS}`},ik=[{alias:"handset",priority:2e3,mediaQuery:ec.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ec.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ec.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ec.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ec.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ec.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ec.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ec.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ec.WEB_PORTRAIT,overlapping:!0}],nk=/(\.|-|_)/g;function rk(n){let a=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return a.toUpperCase()+e}const lk=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,i.f3M)(av),a=(0,i.f3M)(Ks),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function ok(n,a=[]){const e={};return n.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Kl(n,...a){if(null==n)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)&&(n[t]=e[t]);return n}(e[t.alias],t):e[t.alias]=t}),function sk(n){return n.forEach(a=>{a.suffix||(a.suffix=function ak(n){return n.replace(nk,"|").split("|").map(rk).join("")}(a.alias),a.overlapping=!!a.overlapping)}),n}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:tk).concat(a.addOrientationBps?ik:[]),e)}});let ov=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(XL)}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=null==e?void 0:e.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let l=this.findByMap.get(e);return l||(l=null!==(r=this.items.find(t))&&void 0!==r?r:null,this.findByMap.set(e,l)),null!=l?l:null}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(lk))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const df="print",ck={alias:df,mediaQuery:df,priority:1e3};let dk=(()=>{class n{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 uk,this.deactivations=[]}withPrintQuery(e){return[...e,df]}isPrintEvent(e){return e.mediaQuery.startsWith(df)}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(w1)}updateEvent(e){var t;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(t=null==r?void 0:r.mediaQuery)&&void 0!==t?t:""),bS(e,r)}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 Nu(!0,df))),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 l=this.formerActivations&&this.formerActivations.includes(r),d=!this.formerActivations&&e.activatedBreakpoints.includes(r);(l||d)&&(this.deactivations.push(r),this.deactivations.sort(w1))}}}}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 n.\u0275fac=function(e){return new(e||n)(i.LFG(ov),i.LFG(Ks),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class uk{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(ck),a.sort(w1),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function hk(n){var a;return null!==(a=null==n?void 0:n.mediaQuery.startsWith(df))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let Qi=(()=>{class n{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 He.xQ,this.observeActivations()}get activatedAlias(){var e,t;return null!==(t=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==t?t:""}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=bS(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(w1),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(w1),this.updateStyles())}}init(e,t,r,l,d=[]){SS(this.updateMap,e,t,r),SS(this.clearMap,e,t,l),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,d)}getValue(e,t,r){const l=this.elementMap.get(e);if(l){const d=void 0!==r?l.get(r):this.getActivatedValues(l,t);if(d)return d.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);if(l)return void 0!==l.get(t)||!1}return!1}setValue(e,t,r,l){var d;let s=this.elementMap.get(e);if(s){const c=(null!==(d=s.get(l))&&void 0!==d?d:new Map).set(t,r);s.set(l,c),this.elementMap.set(e,s)}else s=(new Map).set(l,(new Map).set(t,r)),this.elementMap.set(e,s);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,jt.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let l=this.getActivatedValues(e);l&&l.forEach((d,s)=>{this.updateElement(t,s,d),r.delete(s)}),r.forEach(d=>{if(l=this.getActivatedValues(e,d),l){const s=l.get(d);this.updateElement(t,d,s)}else this.clearElement(t,d)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const l=r.get(t);l&&(l(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const l=this.updateMap.get(e);if(l){const d=l.get(t);d&&(d(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(l=>l.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((l,d)=>r.delete(d)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);l&&(t?this.updateElement(e,t,l.get(t)):l.forEach((d,s)=>this.updateElement(e,s,d)))}}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 l=this.watcherMap.get(e);if(l||(l=new Map,this.watcherMap.set(e,l)),!l.get(t)){const s=(0,Si.T)(...r).subscribe(()=>{const o=this.getValue(e,t);this.updateElement(e,t,o)});l.set(t,s)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let l=0;lt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,I.b)(this.hook.interceptEvents(this)),(0,jt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(sv),i.LFG(ov),i.LFG(dk))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function SS(n,a,e,t){var r;if(void 0!==t){const l=null!==(r=n.get(a))&&void 0!==r?r:new Map;l.set(e,t),n.set(a,l)}}let rn=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=l,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new He.xQ,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,l=r.shouldCache;let d=this.styleCache.get(e);(!d||!l)&&(d=r.buildStyles(e,t),l&&this.styleCache.set(e,d)),this.mru=Object.assign({},d),this.applyStyleToElement(d),r.sideEffect(e,d,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,l]=this.styler.getFlowDirection(e);if(!l&&t){const d=mS(r);this.styler.applyStyleToElements(d,[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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(An),i.Y36(qi),i.Y36(Qi))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class Sk{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 LS(n){let a=typeof n;return"object"===a?n.constructor===Array?"array":n.constructor===Set?"set":"object":a}function PS(n){const[a,...e]=n.split(":");return new Sk(a,e.join(":"))}function RS(n,a){return a.key&&(n[a.key]=a.value),n}let Hk=(()=>{class n extends rn{constructor(e,t,r,l,d,s,o,c,u){var h;super(e,null,t,r),this.sanitizer=l,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new w.PC(e,d,s)),this.init();const f=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=c&&(0,w.PM)(u)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},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 l;return null!==(l=this.sanitizer.sanitize(i.q3G.STYLE,r))&&void 0!==l?l:""};if(e)switch(LS(e)){case"string":return OS(function Ek(n,a=";"){return String(n).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return OS(e,t);default:return function kS(n,a){let e=[];return"set"===LS(n)?n.forEach(t=>e.push(t)):Object.keys(n).forEach(t=>{e.push(`${t}:${n[t]}`)}),function Dk(n,a){return n.map(PS).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(RS,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qi),i.Y36(Qi),i.Y36(fr),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(w.PC,10),i.Y36(cf),i.Y36(i.Lbi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Lk=["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 xA=(()=>{class n extends Hk{constructor(){super(...arguments),this.inputs=Lk}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,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:[i.qOj]}),n})();function OS(n,a){return n.map(PS).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(RS,{})}let IS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[nv]]}),n})();const cv=function(n){return{color:n}};function kk(n,a){if(1&n&&(i.TgZ(0,"button",8),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3," apps "),i.qZA(),i.qZA()),2&n){const e=i.oxw(),t=i.MAs(2);i.Q6J("matMenuTriggerFor",t)("matTooltip",i.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),i.xp6(2),i.Q6J("ngStyle",i.VKq(5,cv,e.iconColor))}}function Pk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){return i.CHM(e),i.oxw().onLogOut()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let Rk=(()=>{class n{constructor(e,t,r,l){this.authService=e,this.authzResolverService=t,this.notificator=r,this.translateService=l}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ka),i.Y36(Wi),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(e,t){if(1&e&&(i.YNc(0,kk,4,7,"button",0),i.TgZ(1,"mat-menu",null,1),i.TgZ(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"button",3),i.TgZ(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.TgZ(9,"span",5),i._uU(10),i.qZA(),i.qZA(),i.TgZ(11,"mat-menu",null,6),i.YNc(13,Pk,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(12);i.Q6J("ngIf",t.url),i.xp6(5),i.Oqu(t.label),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,cv,t.iconColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(13,cv,t.textColor)),i.xp6(1),i.xDo(" ",t.user.titleBefore," ",t.user.firstName," ",t.user.middleName," ",t.user.lastName," ",t.user.titleAfter," "),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},directives:[w.O5,Pt,Nx,vr,bn,w.PC,Rx,Gl],pipes:[lt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})();const BS=function(n){return{color:n}};function Ok(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onToggleSidenav()}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,BS,e.iconColor))}}function Ik(n,a){1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"span",9),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",10),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",9),i._uU(6," \u{1f5f2} ~ "),i.qZA(),i.qZA())}const Bk=function(n){return{background:n}},Nk=function(){return[]},Vk=function(){return["/"]};let zk=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.translate=r,this.otherApplicationService=l,this.sidenavToggle=new i.vpe,this.hideToggle=!1,this.disableLogo=!1,this.label=this.storeService.get("header_label_en"),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.adminLabel=this.storeService.get("admin_gui_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.translate.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}isLinkToGuiActive(){this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(fr),i.Y36(li),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:8,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"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"url","label","user","logoutEnabled","iconColor","textColor"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-toolbar",0),i.TgZ(1,"div",1),i.YNc(2,Ok,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA(),i.qZA(),i.YNc(6,Ik,7,0,"div",5),i._UZ(7,"perun-web-apps-header-menu",6),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(13,Bk,t.bgColor)),i.xp6(2),i.Q6J("ngIf",!t.hideToggle),i.xp6(1),i.Q6J("innerHTML",t.logo,i.oJD)("routerLink",t.disableLogo?i.DdM(15,Nk):i.DdM(16,Vk)),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,BS,t.textColor)),i.xp6(1),i.Oqu(t.label),i.xp6(1),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},directives:[qL,w.PC,xA,w.O5,Pt,bn,z,Rk],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;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 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function NS(n){return a=>a.lift(new Fk(n))}class Fk{constructor(a){this.value=a}call(a,e){return e.subscribe(new jk(a,this.value))}}class jk extends Sr.L{constructor(a,e){super(a),this.value=e}_next(a){this.destination.next(this.value)}}const SA=["*"],qk=["content"];function Yk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Wk(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Uk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Gk=["mat-drawer","mat-drawer-content","*"];function Zk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function $k(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const Jk=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Qk=["mat-sidenav","mat-sidenav-content","*"],VS={transformDrawer:wi("transform",[Nt("open, open-instant",Re({transform:"none",visibility:"visible"})),Nt("void",Re({"box-shadow":"none",visibility:"hidden"})),Ht("void => open-instant",Ct("0ms")),Ht("void <=> open, open-instant => void",Ct("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Kk=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function eP(){return!1}}),dv=new i.OlP("MAT_DRAWER_CONTAINER");let EA=(()=>{class n extends Th{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>FS)),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Th,useExisting:n}]),i.qOj],ngContentSelectors:SA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),zS=(()=>{class n{constructor(e,t,r,l,d,s,o,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=s,this._doc=o,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new He.xQ,this._animationEnd=new He.xQ,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,jt.h)(u=>u),(0,ut.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,jt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),NS(void 0)),this._closedStream=this.openedChange.pipe((0,jt.h)(u=>!u),(0,ut.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,jt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),NS(void 0)),this._destroyed=new He.xQ,this.onPositionChanged=new i.vpe,this._modeChanged=new He.xQ,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Ta(this._elementRef.nativeElement,"keydown").pipe((0,jt.h)(u=>27===u.keyCode&&!this.disableClose&&!vn(u)),tt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Rh((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&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=je(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=je(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(je(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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(l=>{this.openedChange.pipe((0,Zt.q)(1)).subscribe(d=>l(d?"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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qg),i.Y36(Rr),i.Y36(xi),i.Y36(i.R0b),i.Y36(zh),i.Y36(w.K0,8),i.Y36(dv,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(qk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.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:SA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Th],encapsulation:2,data:{animation:[VS.transformDrawer]},changeDetection:0}),n})(),FS=(()=>{class n{constructor(e,t,r,l,d,s=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=o,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new He.xQ,this._doCheckSubject=new He.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new He.xQ,e&&e.change.pipe(tt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(tt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=je(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:je(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(_i(this._allDrawers),tt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(_i(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,kh.b)(10),tt(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,jt.h)(t=>t.fromState!==t.toState),tt(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(tt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(tt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Zt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(tt((0,Si.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Cn,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(Ja),i.Y36(Kk),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,EA,5),i.Suo(r,zS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(EA,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:dv,useExisting:n}])],ngContentSelectors:Gk,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&&(i.F$t(Uk),i.YNc(0,Yk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Wk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[EA,w.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),uv=(()=>{class n extends EA{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>qS)),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Th,useExisting:n}]),i.qOj],ngContentSelectors:SA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),jS=(()=>{class n extends zS{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=je(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=oi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=oi(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.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:[i.qOj],ngContentSelectors:SA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Th],encapsulation:2,data:{animation:[VS.transformDrawer]},changeDetection:0}),n})(),qS=(()=>{class n extends FS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,uv,5),i.Suo(r,jS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:dv,useExisting:n}]),i.qOj],ngContentSelectors:Qk,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&&(i.F$t(Jk),i.YNc(0,Zk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,$k,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[uv,w.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),hv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ht,Rc,xa],xa,ht]}),n})(),tP=(()=>{class n{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.get("displayed_tabs"),t=[];return e.forEach(l=>{switch(l){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.get("external_services").forEach(l=>{const d={icon:"insert_link",link:l.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supported_languages").forEach(o=>{var c;d[`label_${o}`]=null!==(c=String(l[`label_${o}`]))&&void 0!==c?c:l.label_en}),t.push(d)}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})();const fv=["*"],iP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],nP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],WS=ts(na(class{})),lP=na(class{}),US=new i.OlP("MatList"),GS=new i.OlP("MatNavList");let cP=(()=>{class n extends WS{constructor(){super(...arguments),this._stateChanges=new He.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:GS,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:fv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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:transparent;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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0}),n})(),mv=(()=>{class n extends WS{constructor(e){super(),this._elementRef=e,this._stateChanges=new He.xQ,"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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:US,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:fv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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:transparent;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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0}),n})(),ZS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),$S=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),DA=(()=>{class n extends lP{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new He.xQ,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(tt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=je(e)}ngAfterContentInit(){!function aw(n,a,e="mat"){n.changes.pipe(_i(n)).subscribe(({length:t})=>{zl(a,`${e}-2-line`,!1),zl(a,`${e}-3-line`,!1),zl(a,`${e}-multi-line`,!1),2===t||3===t?zl(a,`${e}-${t}-line`,!0):t>3&&zl(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(GS,8),i.Y36(US,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ZS,5),i.Suo(r,$S,5),i.Suo(r,Vl,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:nP,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&&(i.F$t(iP),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[Gn],encapsulation:2,changeDetection:0}),n})(),gv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cm,ii,ht,dp,w.ez],cm,ht,dp,pv]}),n})(),QS=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})();const mP=function(n){return{color:n}};function gP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return l.external?d.goToURL(l.link):d.shouldHideMenu()}),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"localisedText"),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.external?null:e.link),i.Q6J("ngStyle",i.VKq(16,mP,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(e.external?i.Dn7(5,7,e,t.lang,"label"):i.lcZ(6,11,i.xi3(7,13,e.label,t.lang)))}}let _P=(()=>{class n{constructor(e,t,r,l){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=l,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(d=>{d instanceof At&&(this.currentUrl=d.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.get("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 n.\u0275fac=function(e){return new(e||n)(i.Y36(tP),i.Y36(zt),i.Y36(rt),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,gP,8,18,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[cP,w.sg,DA,Gn,w.PC,xA,O,bn],pipes:[QS,lt,si],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}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();function bP(n,a){if(1&n&&(i.TgZ(0,"span",1),i.TgZ(1,"a",2),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("routerLink",e.routerLink),i.xp6(1),i.Oqu(e.label)}}let AP=(()=>{class n{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,jt.h)(e=>e instanceof At)).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(l=>{const d=l.snapshot.url.map(o=>o.path).join("/");""!==d&&(t+=`/${d}`);const s=this.translate.instant(l.snapshot.data[n.ROUTE_DATA_BREADCRUMB]);return s&&(!this.menuItems[this.menuItems.length-1]||s!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:s,routerLink:t}),this.createBreadcrumbs(l,t)})}}return n.ROUTE_DATA_BREADCRUMB="breadcrumb",n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],["queryParamsHandling","merge",1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&i.YNc(0,bP,3,2,"span",0),2&e&&i.Q6J("ngForOf",t.menuItems)},directives:[w.sg,z],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}']}),n})();function yP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let MP=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("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: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(li),i.Y36(Tr),i.Y36(cn),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,yP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field"),i.TgZ(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(21,"div",6),i.TgZ(22,"div",7),i.TgZ(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[En,fn,mn,rs,Hn,nn,Nr,_n,ur,w.O5,Fl,mb,ji,Pt],pipes:[lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),wP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),CP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function vP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function TP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function xP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,vP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,TP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const SP=function(n){return{"min-height":n}};function EP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,xP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,SP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const md=function(n){return{color:n}};function DP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,md,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function HP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(3).openDialog(r.dialog)}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,md,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function LP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,md,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function kP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,md,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function PP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,DP,2,4,"i",17),i.YNc(2,HP,3,8,"span",18),i.YNc(3,LP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,kP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const RP=function(n){return{height:n}};function OP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,PP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,RP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function IP(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,EP,2,4,"div",9),i.YNc(5,OP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,md,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function BP(n,a){if(1&n&&(i.TgZ(0,"span"),i.TgZ(1,"a",6),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,md,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const NP=function(n){return{background:n}};let XS=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("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.get("footer","copyright_items")}openDialog(e){const t=Pi();"reportIssue"===e&&(t.width="550px",this.dialog.open(MP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(li),i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,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&&(i.TgZ(0,"footer",0),i.TgZ(1,"div",1),i.YNc(2,IP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,BP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(8,NP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,md,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,md,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},directives:[w.PC,w.sg,w.O5],pipes:[QS,wP,CP],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:-webkit-fit-content;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:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),n})();function VP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function zP(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11),i._UZ(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function FP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"a",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const jP=function(n){return{color:n}};function qP(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,jP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const YP=function(n,a){return{background:n,color:a}},WP=function(n,a){return{"min-height":n,"background-color":a}};let UP=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(fr),i.Y36(FC),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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&&(i.TgZ(0,"div",0),i.YNc(1,VP,2,1,"div",1),i.YNc(2,zP,3,1,"div",2),i.YNc(3,FP,2,1,"div",1),i.YNc(4,qP,2,4,"p",3),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",7),i._UZ(10,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.WLB(6,YP,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf","user-profile"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(9,WP,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[w.PC,w.O5,bn,hi,XS],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}"]}),n})();const GP=["footer"],KS=function(n){return{background:n}},ZP=function(n){return{"min-height":n}};function $P(n,a){if(1&n){const e=i.EpF();i._UZ(0,"perun-web-apps-notificator"),i.TgZ(1,"div",2),i.TgZ(2,"perun-web-apps-header",3),i.NdJ("sidenavToggle",function(){return i.CHM(e),i.MAs(5).toggle()}),i.qZA(),i.TgZ(3,"mat-sidenav-container"),i.TgZ(4,"mat-sidenav",4,5),i._UZ(6,"perun-web-apps-side-menu",6),i.qZA(),i.TgZ(7,"mat-sidenav-content",7),i.TgZ(8,"div",8),i._UZ(9,"perun-web-apps-breadcrumbs"),i._UZ(10,"router-outlet"),i.qZA(),i.TgZ(11,"div",null,9),i._UZ(13,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(5),t=i.oxw();i.xp6(4),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(6,KS,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,KS,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,ZP,t.contentHeight))}}function JP(n,a){if(1&n&&i._UZ(0,"perun-web-apps-login-screen-base",10),2&n){const e=i.oxw();i.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let QP=(()=>{class n{constructor(e,t,r,l,d,s,o,c){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=l,this.changeDetector=d,this.preferredLangService=s,this.titleService=o,this.document=c,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.get("header_label_en"),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{const t=this.store.get("document_title",e.lang);this.titleService.setTitle(t),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown?this.headerLabel=this.store.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`):this.isServiceAccess||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const r=e.find(s=>"preferredLanguage"===s.friendlyName),l=null!==(t=null==r?void 0:r.value)&&void 0!==t?t:null,d=this.preferredLangService.getPreferredLanguage(l);this.translateService.use(d)})}isMobile(){return window.innerWidth<=n.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){var e,t,r,l;const d=null!==(l=null===(r=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===r?void 0:r.toString())&&void 0!==l?l:"0";this.contentHeight="calc(100vh - 84px - "+d+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(li),i.Y36(VC),i.Y36(i.sBO),i.Y36(FC),i.Y36(it),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(GP,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"sidenavToggle"],["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&&(i.YNc(0,$P,14,12,"ng-template",0),i.YNc(1,JP,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(i.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},directives:[w.O5,NL,zk,qS,jS,w.PC,xA,_P,uv,AP,hi,XS,UP],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}"]}),n})();var XP=x(1158);function KP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().index;return i.oxw().removeValue(r)}),i.TgZ(1,"mat-icon"),i._uU(2," indeterminate_check_box "),i.qZA(),i.qZA()}}function eR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",9),i.TgZ(1,"mat-form-field",10),i._UZ(2,"label",11),i.TgZ(3,"input",12),i.NdJ("click",function(){const l=i.CHM(e).index,d=i.oxw();return d.readonly&&d.attribute.displayName&&d.showValue(d.keys[l],d.attribute.displayName)})("ngModelChange",function(r){const d=i.CHM(e).index;return i.oxw().keys[d]=r}),i.qZA(),i.qZA(),i.TgZ(4,"mat-form-field",10),i._UZ(5,"label",11),i.TgZ(6,"input",13),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.readonly&&void 0!==d.attribute.displayName&&d.showValue(l,d.attribute.displayName)})("ngModelChange",function(r){const d=i.CHM(e).index;return i.oxw().values[d]=r}),i.qZA(),i.qZA(),i.YNc(7,KP,3,0,"button",14),i.qZA()}if(2&n){const e=a.index,t=i.oxw();i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-key-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.hYB("id","",t.attribute.id,"-key-",e,""),i.MGl("name","key-",e,""),i.Q6J("ngModel",t.keys[e])("readonly",t.readonly),i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-value-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.MGl("name","value-",e,""),i.hYB("id","",t.attribute.id,"-value-",e,""),i.Q6J("readonly",t.readonly)("ngModel",t.values[e]),i.xp6(1),i.Q6J("ngIf",!t.readonly)}}function tR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function iR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function nR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){return i.CHM(e),i.oxw().onShowChange()}),i.YNc(1,tR,2,0,"mat-icon",17),i.YNc(2,iR,2,0,"mat-icon",17),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function rR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){return i.CHM(e),i.oxw().addValue()}),i.TgZ(1,"mat-icon"),i._uU(2," add_box "),i.qZA(),i.qZA()}}let aR=(()=>{class n{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=Bu(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),i.xp6(1),i.Q6J("ngIf",!t.readonly))},directives:[Yp,Ep,ld,w.sg,mn,Hn,nn,Nr,_n,ur,w.O5,Pt,bn,vr],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}"]}),n})();const sR=["input"],oR=function(n){return{enterDuration:n}},lR=["*"],cR=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:eE});function eE(){return{color:"accent",clickAction:"check-indeterminate"}}let dR=0;const tE=eE(),uR={provide:Zn,useExisting:(0,i.Gpc)(()=>tc),multi:!0};class hR{}const pR=Nl(Bo(na(ts(class{constructor(n){this._elementRef=n}}))));let tc=(()=>{class n extends pR{constructor(e,t,r,l,d,s,o){super(e),this._changeDetectorRef=t,this._focusMonitor=r,this._ngZone=l,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++dR,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||tE,this.color=this.defaultColor=this._options.color||tE.color,this.tabIndex=parseInt(d)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=je(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=je(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._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){const e=new hR;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const r=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===t)r="unchecked-checked";else{if(3!=t)return"";r="unchecked-indeterminate"}break;case 2:r=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Rr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(Bn,8),i.Y36(cR,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(i.Gf(sR,5),i.Gf(Gn,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null),i.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",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([uR]),i.qOj],ngContentSelectors:lR,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i.TgZ(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA(),i.qZA(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,oR,"NoopAnimations"===t._animationMode?0:150))}},directives:[Gn,Oh],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),iE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),C1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,ht,Wd,iE],ht,iE]}),n})(),_v=(()=>{class n{transform(e){return e.replace(/\s/g,"-").toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"multiWordDataCy",type:n,pure:!0}),n})();function gR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",2),i.NdJ("change",function(){return i.CHM(e),i.oxw()._sendEventToParent()})("ngModelChange",function(r){return i.CHM(e),i.oxw().attribute.value=r}),i.ALo(1,"multiWordDataCy"),i.qZA()}if(2&n){const e=i.oxw();i.Q2q("data-cy","",i.lcZ(1,2,e.attribute.displayName),"-value"),i.Q6J("ngModel",e.attribute.value)}}function _R(n,a){if(1&n&&(i.TgZ(0,"mat-label"),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.attribute.value)}}let bR=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div"),i.YNc(1,gR,2,4,"mat-checkbox",0),i.YNc(2,_R,2,1,"mat-label",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.readonly),i.xp6(1),i.Q6J("ngIf",t.readonly))},directives:[w.O5,tc,_n,ur,rs],pipes:[_v],styles:[""]}),n})();function yR(n){const{subscriber:a,counter:e,period:t}=n;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function bv(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,(null==e?void 0:e.has(t))?"important":""):n.removeProperty(t)}return n}function uf(n,a){const e=a?"":"none";bv(n.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 nE(n,a,e){bv(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function HA(n,a){return a&&"none"!=a?n+" "+a:n}function rE(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function Av(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function yv(n){const a=n.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 Mv(n,a,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&a>=l&&a<=d}function v1(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function aE(n,a,e,t){const{top:r,right:l,bottom:d,left:s,width:o,height:c}=n,u=o*a,h=c*a;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:yv(e)})})}handleScroll(a){const e=Un(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const s=r.top-l,o=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&v1(c.clientRect,s,o)}),r.top=l,r.left=d,{top:s,left:o}}}function oE(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._handles.find(c=>s.target&&(s.target===c||c.contains(s.target)));o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const o=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),V=this._dropContainer;if(!b)return void this._endDragSequence(s);(!V||!V.isDragging()&&!V.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),s.preventDefault();const c=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,o);else{const u=this._activeTransform;u.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,u.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:s,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new sE(t,l),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=je(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>uf(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=>zi(t)),this._handles.forEach(t=>uf(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=zi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,hE),e.addEventListener("touchstart",this._pointerDown,uE)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?zi(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===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.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),uf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),uf(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}),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})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){T1(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),nE(t,!1,wv),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=T1(e),l=!r&&0!==e.button,d=this._rootElement,s=Un(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Fh(e):Ud(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||o||c)return;if(this._handles.length){const f=d.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=yv(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(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){nE(this._rootElement,!0,wv),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),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 l=a.matchSize?this._rootElement.getBoundingClientRect():null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),r=fE(d,this._document),this._previewRef=d,a.matchSize?mE(r,l):r.style.transform=LA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const l=this._rootElement;r=oE(l),mE(r,l.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return bv(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},wv),uf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):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 MR(n){const a=getComputedStyle(n),e=Av(a,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=Av(a,"transition-duration"),d=Av(a,"transition-delay");return rE(l[r])+rE(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{var s;(!d||Un(d)===this._preview&&"transform"===d.propertyName)&&(null===(s=this._preview)||void 0===s||s.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=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=fE(this._placeholderRef,this._document)):t=oE(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),r=a===this._rootElement?null:a,l=r?r.getBoundingClientRect():t,d=T1(e)?e.targetTouches[0]:e,s=this._getViewportScrollPosition();return{x:l.left-t.left+(d.pageX-l.left-s.left),y:l.top-t.top+(d.pageY-l.top-s.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=T1(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,c=s.top+d,u=s.bottom-(o.height-d);t=pE(t,s.left+l,s.right-(o.width-l)),r=pE(r,c,u)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),s=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,uf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,hE),a.removeEventListener("touchstart",this._pointerDown,uE)}_applyRootElementTransform(a,e){const t=LA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=HA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,l=LA(a,e);this._preview.style.transform=HA(l,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._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===r.width&&0===r.height)return;const l=t.left-r.left,d=r.right-t.right,s=t.top-r.top,o=r.bottom-t.bottom;t.width>r.width?(l>0&&(a+=l),d>0&&(a-=d)):a=0,t.height>r.height?(s>0&&(e+=s),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:T1(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)&&v1(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(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=vh(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 zi(t)}}function LA(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function pE(n,a,e){return Math.max(a,Math.min(e,n))}function T1(n){return"t"===n.type[0]}function fE(n,a){const e=n.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 mE(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=LA(a.left,a.top)}function gE(n,a,e){const t=x1(a,n.length-1),r=x1(e,n.length-1);if(t===r)return;const l=n[t],d=r!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.xQ,this.entered=new He.xQ,this.exited=new He.xQ,this.dropped=new He.xQ,this.sorted=new He.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=re.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function AR(n=0,a=Mh.P){return(!K1(n)||n<0)&&(n=0),(!a||"function"!=typeof a.schedule)&&(a=Mh.P),new Ri.y(e=>(e.add(a.schedule(yR,n,{subscriber:e,counter:0,period:n})),e))}(0,Yf).pipe(tt(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-s):2===this._verticalScrollDirection&&d.scrollBy(0,s),1===this._horizontalScrollDirection?d.scrollBy(-s,0):2===this._horizontalScrollDirection&&d.scrollBy(s,0)})},this.element=zi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new sE(t,l)}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){let l;this._draggingStarted(),null==r?(l=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===l&&(l=this._getItemIndexFromPointerPosition(a,e,t))):l=r;const d=this._activeDraggables,s=d.indexOf(a),o=a.getPlaceholderElement();let c=d[l];if(c===a&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(s,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(o,u),d.splice(l,0,a)}else zi(this.element).appendChild(o),d.push(a);o.style.transform="",this._cacheItemPositions(),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,l,d,s){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:s})}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._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=zi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!aE(this._clientRect,.05,e,t))return;const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,r);if(-1===d&&l.length>0)return;const s="horizontal"===this._orientation,o=l.findIndex(he=>he.drag===a),c=l[d],h=c.clientRect,f=o>d?1:-1,b=this._getItemOffsetPx(l[o].clientRect,h,f),V=this._getSiblingOffsetPx(o,l,f),ee=l.slice();gE(l,o,d),this.sorted.next({previousIndex:o,currentIndex:d,container:this,item:a}),l.forEach((he,Oe)=>{if(ee[Oe]===he)return;const gt=he.drag===a,dt=gt?b:V,Kt=gt?a.getPlaceholderElement():he.drag.getRootElement();he.offset+=dt,s?(Kt.style.transform=HA(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),v1(he.clientRect,0,dt)):(Kt.style.transform=HA(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),v1(he.clientRect,dt,0))}),this._previousSwap.overlaps=Mv(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,s)=>{s===this._document||!d.clientRect||t||aE(d.clientRect,.05,a,e)&&([r,l]=function xR(n,a,e,t){const r=AE(a,t),l=yE(a,e);let d=0,s=0;if(r){const o=n.scrollTop;1===r?o>0&&(d=1):n.scrollHeight-o>n.clientHeight&&(d=2)}if(l){const o=n.scrollLeft;1===l?o>0&&(s=1):n.scrollWidth-o>n.clientWidth&&(s=2)}return[d,s]}(s,d.clientRect,a,e),(r||l)&&(t=s))}),!r&&!l){const{width:d,height:s}=this._viewportRuler.getViewportSize(),o={width:d,height:s,top:0,right:d,bottom:s,left:0};r=AE(o,e),l=yE(o,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=zi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=zi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_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:yv(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=zi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const r=e.getRootElement();if(r){const l=null===(t=this._itemPositions.find(d=>d.drag===e))||void 0===t?void 0:t.initialTransform;r.style.transform=l||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this._orientation,l=e[a].clientRect,d=e[a+-1*t];let s=l[r?"width":"height"]*t;if(d){const o=r?"left":"top",c=r?"right":"bottom";-1===t?s-=d.clientRect[o]-l[c]:s+=l[o]-d.clientRect[c]}return s}_getItemOffsetPx(a,e,t){const r="horizontal"===this._orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_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 d=t[t.length-1].clientRect;return r?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this._orientation,d=this._itemPositions.findIndex(({drag:s,clientRect:o})=>{if(s===a)return!1;if(r){const c=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&tr._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Mv(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=zi(this.element);return r===l||l.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._itemPositions.forEach(({clientRect:t})=>{v1(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=vh(zi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function AE(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function yE(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const kA=$a({passive:!1,capture:!0});let SR=(()=>{class n{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 He.xQ,this.pointerUp=new He.xQ,this.scroll=new He.xQ,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,kA)})}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,kA)}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:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:kA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:kA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.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 Ri.y(r=>this._ngZone.runOutsideAngular(()=>{const d=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Si.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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ER={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Cv=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=ER){return new vR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new TR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b),i.LFG(Ja),i.LFG(SR))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ME=new i.OlP("CDK_DRAG_PARENT"),wE=new i.OlP("CdkDropListGroup"),CE=new i.OlP("CDK_DRAG_CONFIG");let DR=0;const vE=new i.OlP("CdkDropList");let HR=(()=>{class n{constructor(e,t,r,l,d,s,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=l,this._dir=d,this._group=s,this._destroyed=new He.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+DR++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.sorted=new i.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(c,u)=>this.enterPredicate(c.data,u.data),this._dropListRef.sortPredicate=(c,u,h)=>this.sortPredicate(c,u.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=je(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=n._dropLists.indexOf(this);e>-1&&n._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(_i(this._dir.value),tt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=Lc(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(d=>d.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(l=>l.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=je(this.sortingDisabled),e.autoScrollDisabled=je(this.autoScrollDisabled),e.autoScrollStep=oi(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}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:l,listAutoScrollDisabled:d,listOrientation:s}=e;this.disabled=null!=r&&r,this.sortingDisabled=null!=l&&l,this.autoScrollDisabled=null!=d&&d,this.orientation=s||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Cv),i.Y36(i.sBO),i.Y36(sr),i.Y36(Cn,8),i.Y36(wE,12),i.Y36(CE,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id),i.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:[i._Bn([{provide:wE,useValue:void 0},{provide:vE,useExisting:n}])]}),n})();const TE=new i.OlP("CdkDragHandle"),LR=new i.OlP("CdkDragPlaceholder"),kR=new i.OlP("CdkDragPreview");let RR=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this.element=e,this.dropContainer=t,this._ngZone=l,this._viewContainerRef=d,this._dir=o,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new He.xQ,this.started=new i.vpe,this.released=new i.vpe,this.ended=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.dropped=new i.vpe,this.moved=new Ri.y(b=>{const V=this._dragRef.moved.pipe((0,ut.U)(ee=>({source:this,pointerPosition:ee.pointerPosition,event:ee.event,delta:ee.delta,distance:ee.distance}))).subscribe(b);return()=>{V.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),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=je(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()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Zt.q)(1),tt(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=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var e;const t=this.element.nativeElement;let r=t;this.rootElementSelector&&(r=void 0!==t.closest?t.closest(this.rootElementSelector):null===(e=t.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||t)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):zi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,l=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,d=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:oi(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(l).withPreviewTemplate(d).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,Zt.q)(1)).subscribe(()=>{var t;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(r.classList.contains("cdk-drag")){e.withParent((null===(t=n._dragInstances.find(l=>l.element.nativeElement===r))||void 0===t?void 0:t._dragRef)||null);break}r=r.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),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})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:l,previewClass:d,boundaryElement:s,draggingDisabled:o,rootElementSelector:c,previewContainer:u}=e;this.disabled=null!=o&&o,this.dragStartDelay=r||0,t&&(this.lockAxis=t),l&&(this.constrainPosition=l),d&&(this.previewClass=d),s&&(this.boundaryElement=s),c&&(this.rootElementSelector=c),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(_i(this._handles),(0,I.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,Ui.w)(e=>(0,Si.T)(...e.map(t=>t._stateChanges.pipe(_i(t))))),tt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vE,12),i.Y36(w.K0),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(CE,8),i.Y36(Cn,8),i.Y36(Cv),i.Y36(i.sBO),i.Y36(TE,10),i.Y36(ME,12))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,kR,5),i.Suo(r,LR,5),i.Suo(r,TE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._previewTemplate=l.first),i.iGM(l=i.CRH())&&(t._placeholderTemplate=l.first),i.iGM(l=i.CRH())&&(t._handles=l)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&i.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:[i._Bn([{provide:ME,useExisting:n}]),i.TTD]}),n})(),OR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Cv],imports:[xa]}),n})();const IR=["*"],xE=new i.OlP("MatChipRemove"),SE=new i.OlP("MatChipAvatar"),EE=new i.OlP("MatChipTrailingIcon");class BR{constructor(a){this._elementRef=a}}const NR=Nl(Bo(na(BR),"primary"),-1);let PA=(()=>{class n extends NR{constructor(e,t,r,l,d,s,o,c){super(e),this._ngZone=t,this._changeDetectorRef=d,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new He.xQ,this._onBlur=new He.xQ,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=s.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Y_(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=l||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=je(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=je(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=je(e)}get removable(){return this._removable}set removable(e){this._removable=je(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,Zt.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(xi),i.Y36(cu,8),i.Y36(i.sBO),i.Y36(w.K0),i.Y36(Bn,8),i.$8M("tabindex"))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,SE,5),i.Suo(r,EE,5),i.Suo(r,xE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.avatar=l.first),i.iGM(l=i.CRH())&&(t.trailingIcon=l.first),i.iGM(l=i.CRH())&&(t.removeIcon=l.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(i.uIk("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),i.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),n})();const DE=new i.OlP("mat-chips-default-options");let jR=0,HE=(()=>{class n{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new i.vpe,this.placeholder="",this.id="mat-chip-list-input-"+jR++,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=je(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=je(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&&!vn(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}),null==e||e.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!vn(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(DE))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._keydown(l)})("keyup",function(l){return t._keyup(l)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(i.Ikx("id",t.id),i.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:[i.TTD]}),n})();const qR=op(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let YR=0;class WR{constructor(a,e){this.source=a,this.value=e}}let LE=(()=>{class n extends qR{constructor(e,t,r,l,d,s,o){super(s,l,d,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new He.xQ,this._uid="mat-chip-list-"+YR++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,u)=>c===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.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.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=je(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,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Dn.required))&&void 0!==l&&l}set required(e){this._required=je(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=je(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=je(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,Si.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,Si.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,Si.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,Si.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new jc(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(tt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(tt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(_i(null),tt(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 tn(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){this._ariaDescribedby=e.join(" ")}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(l=>null!=l.value&&this._compareWith(l.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 WR(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Cn,8),i.Y36(ld,8),i.Y36(Fo,8),i.Y36(Qc),i.Y36(Br,10))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,PA,5),2&e){let l;i.iGM(l=i.CRH())&&(t.chips=l)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.Ikx("id",t._uid),i.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("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),i.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{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:[i._Bn([{provide:Kc,useExisting:n}]),i.qOj],ngContentSelectors:IR,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),n})(),UR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Qc,{provide:DE,useValue:{separatorKeyCodes:[13]}}],imports:[[ht]]}),n})();function GR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",9),i.NdJ("mousedown",function(){return i.CHM(e),i.oxw(2).dragDisabled=!1}),i._uU(1,"drag_indicator"),i.qZA()}}function ZR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().edit(r)}),i._uU(1,"edit"),i.qZA()}}function $R(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().remove(r)}),i._uU(1,"cancel"),i.qZA()}}function JR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-chip",4),i.NdJ("removed",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.remove(l),d._sendEventToParent()}),i.YNc(1,GR,2,0,"mat-icon",5),i.TgZ(2,"div",6),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.readonly&&void 0!==d.attribute.displayName&&d.showValue(l,d.attribute.displayName)}),i._uU(3),i.qZA(),i.YNc(4,ZR,2,0,"mat-icon",7),i.YNc(5,$R,2,0,"mat-icon",8),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.xp6(1),i.hij(" ",e," "),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable)}}function QR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function XR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function KR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.TgZ(1,"span",13),i.TgZ(2,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().onShowChange()}),i.YNc(3,QR,2,0,"mat-icon",15),i.YNc(4,XR,2,0,"mat-icon",15),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),i.xp6(2),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function eO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",12),i.TgZ(1,"input",16),i.NdJ("matChipInputTokenEnd",function(r){return i.CHM(e),i.oxw().add(r)})("change",function(){return i.CHM(e),i.oxw()._sendEventToParent()}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(),t=i.MAs(2);i.xp6(1),i.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let tO=(()=>{class n{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new i.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=!Bu(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=Bu(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=Pi();t.width="400px",t.data={name:e},this.dialog.open(JH,t).afterClosed().subscribe(l=>{if(l){const d=this.attribute.value.indexOf(e);this.attribute.value.splice(d,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,gE(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=Pi();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open($H,r).afterClosed().subscribe(d=>{d&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=Pi();r.width="350px",r.data={value:e,title:t},this.dialog.open(CA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div"),i.TgZ(1,"mat-chip-list",0,1),i.NdJ("cdkDropListDropped",function(l){return t.drop(l),t._sendEventToParent()}),i.YNc(3,JR,6,9,"mat-chip",2),i.YNc(4,KR,5,4,"div",3),i.YNc(5,eO,2,3,"mat-form-field",3),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Q6J("cdkDropListDisabled",t.dragDisabled),i.xp6(2),i.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),i.xp6(1),i.Q6J("ngIf",t.values.length>t.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},directives:[LE,HR,w.sg,PA,RR,w.O5,bn,vr,Pt,mn,Hn,HE],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}"]}),n})(),iO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=Pi();r.width="350px",r.data={value:e,title:t},this.dialog.open(CA,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-form-field",0),i.TgZ(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.ALo(2,"multiWordDataCy"),i.qZA(),i.qZA()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.value),i.Q2q("data-cy","",i.lcZ(2,6,t.attribute.displayName),"-value"),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[mn,Hn,nn,_n,ur],pipes:[_v],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),nO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=Pi();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(CA,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-form-field",0),i.TgZ(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.qZA(),i.qZA()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[mn,Hn,Wp,nn,_n,ur],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();const rO=["map"];function aO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-boolean",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function sO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-list",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function oO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function lO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-string",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function cO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-integer",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let vv=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent2=new i.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&i.Gf(rO,5),2&e){let r;i.iGM(r=i.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&&(i.TgZ(0,"div"),i.YNc(1,aO,1,2,"perun-web-apps-attribute-value-boolean",0),i.YNc(2,sO,1,2,"perun-web-apps-attribute-value-list",0),i.TgZ(3,"div",1),i.NdJ("click",function(){return t._sendEventToParent2()}),i.YNc(4,oO,2,2,"perun-web-apps-attribute-value-map",2),i.qZA(),i.YNc(5,lO,1,2,"perun-web-apps-attribute-value-string",0),i.YNc(6,cO,1,2,"perun-web-apps-attribute-value-integer",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),i.xp6(2),i.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},directives:[w.O5,bR,tO,aR,iO,nO],styles:[""]}),n})();function dO(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function uO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeLanguage(l)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"uppercase"),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",i.lcZ(2,2,i.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function hO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13),i.TgZ(1,"mat-select",14),i.NdJ("valueChange",function(r){return i.CHM(e),i.oxw(3).currentLang=r}),i.YNc(2,uO,4,6,"mat-option",15),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentLang),i.xp6(1),i.Q6J("ngForOf",e.languages)}}function pO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"a",17),i._uU(2),i.qZA(),i.TgZ(3,"button",18),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).changeEmail()}),i.TgZ(4,"mat-icon"),i._uU(5," edit "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.MGl("href","mailto:",e.email,"",i.LSH),i.xp6(1),i.Oqu(e.email)}}function fO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeTimeZone(l)}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function mO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13),i.TgZ(1,"mat-select",19),i.NdJ("valueChange",function(r){return i.CHM(e),i.oxw(3).currentTimezone=r}),i.YNc(2,fO,2,2,"mat-option",15),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentTimezone),i.xp6(1),i.Q6J("ngForOf",e.timeZones)}}function gO(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1,"-"),i.qZA())}function _O(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value",22),2&n){const e=i.oxw(2).$implicit;i.Q6J("attribute",e.attribute)("readonly",!0)}}function bO(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,gO,2,0,"p",20),i.YNc(2,_O,1,2,"perun-web-apps-attribute-value",21),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",!e.attribute.value),i.xp6(1),i.Q6J("ngIf",e.attribute.value)}}function AO(n,a){if(1&n&&(i.TgZ(0,"tr"),i.TgZ(1,"td",7),i.TgZ(2,"div",8),i._uU(3),i.qZA(),i.qZA(),i.TgZ(4,"td",9),i.YNc(5,hO,3,2,"mat-form-field",10),i.YNc(6,pO,6,2,"div",11),i.YNc(7,mO,3,2,"mat-form-field",10),i.YNc(8,bO,3,2,"div",12),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(2),i.Q6J("matTooltip",e["tooltip_"+t.currentLang]),i.xp6(1),i.hij(" ",e["displayName_"+t.currentLang]," "),i.xp6(1),i.Q6J("ngSwitch",e.attribute.friendlyName),i.xp6(1),i.Q6J("ngSwitchCase","preferredLanguage"),i.xp6(1),i.Q6J("ngSwitchCase","preferredMail"),i.xp6(1),i.Q6J("ngSwitchCase","timezone")}}function yO(n,a){if(1&n&&(i.TgZ(0,"table",4),i.TgZ(1,"tbody"),i.TgZ(2,"tr"),i.TgZ(3,"td",5),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"td"),i._uU(8),i.qZA(),i.qZA(),i.YNc(9,AO,9,6,"tr",6),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,"PROFILE_PAGE.NAME"))),i.xp6(4),i.Oqu(e.fullName),i.xp6(1),i.Q6J("ngForOf",e.additionalAttributes)}}let MO=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=l,this.usersManagerService=d,this.route=s,this.router=o,this.notificator=c,this.storeService=u,this.apiRequestConfiguration=h,this.preferredLangService=f,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=XP.tz.names().filter(b=>!b.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(b=>this.successMessage=b)}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(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const l=Pi();l.width="600px",this.dialog.open(lL,l).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{var r,l,d,s,o;this.fullName=(new uA).transform(t);const c=t.userAttributes.find(ee=>"preferredMail"===ee.friendlyName);this.email=null!==(r=null==c?void 0:c.value)&&void 0!==r?r:"-",this.languageAttribute=t.userAttributes.find(ee=>"preferredLanguage"===ee.friendlyName);const u=null!==(d=null===(l=this.languageAttribute)||void 0===l?void 0:l.value)&&void 0!==d?d:null,h=this.preferredLangService.getPreferredLanguage(u);this.translateService.use(h),this.currentLang=h,this.timezoneAttribute=t.userAttributes.find(ee=>"timezone"===ee.friendlyName),this.currentTimezone=null!==(o=null===(s=this.timezoneAttribute)||void 0===s?void 0:s.value)&&void 0!==o?o:"-";const f=this.storeService.get("profile_page_attributes");let b=0;const V=this.storeService.get("supported_languages");f.forEach(ee=>{const he=t.userAttributes.find(Oe=>Oe.friendlyName===ee.friendly_name);he?(b++,this.addAttribute(he,ee,V)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${ee.is_virtual?"virt":"def"}:${ee.friendly_name}`).subscribe(Oe=>{this.addAttribute(Oe,ee,V),b++,this.loading=b!==f.length}),this.loading=b!==f.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=Pi();e.width="350px",e.data={userId:this.userId},this.dialog.open(KH,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{var t;this.email=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"-"})}addAttribute(e,t,r){var l,d;const s={attribute:e};for(const o of r)s[`displayName_${o}`]=(null===(l=null==t?void 0:t[`display_name_${o}`])||void 0===l?void 0:l.length)?t[`display_name_${o}`]:e.displayName,s[`tooltip_${o}`]=null!==(d=t[`tooltip_${o}`])&&void 0!==d?d:"";this.additionalAttributes.push(s)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Ji),i.Y36(Wi),i.Y36(ni),i.Y36(Hi),i.Y36(nr),i.Y36(rt),i.Y36(Tr),i.Y36(zt),i.Y36(dA),i.Y36(FC))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.YNc(1,dO,1,0,"mat-spinner",1),i.YNc(2,yO,10,7,"table",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,Ln,w.sg,vr,w.RF,w.n9,mn,ku,La,Pt,bn,w.ED,vv],pipes:[lt,si,w.gd],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}"]}),n})();const wO=["mat-sort-header",""];function CO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!1}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6),i._UZ(4,"div",7),i._UZ(5,"div",8),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const vO=["*"],gd=iw.ENTERING+" "+tw.STANDARD_CURVE,hf={indicator:wi("indicator",[Nt("active-asc, asc",Re({transform:"translateY(0px)"})),Nt("active-desc, desc",Re({transform:"translateY(10px)"})),Ht("active-asc <=> active-desc",Ct(gd))]),leftPointer:wi("leftPointer",[Nt("active-asc, asc",Re({transform:"rotate(-45deg)"})),Nt("active-desc, desc",Re({transform:"rotate(45deg)"})),Ht("active-asc <=> active-desc",Ct(gd))]),rightPointer:wi("rightPointer",[Nt("active-asc, asc",Re({transform:"rotate(45deg)"})),Nt("active-desc, desc",Re({transform:"rotate(-45deg)"})),Ht("active-asc <=> active-desc",Ct(gd))]),arrowOpacity:wi("arrowOpacity",[Nt("desc-to-active, asc-to-active, active",Re({opacity:1})),Nt("desc-to-hint, asc-to-hint, hint",Re({opacity:.54})),Nt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Re({opacity:0})),Ht("* => asc, * => desc, * => active, * => hint, * => void",Ct("0ms")),Ht("* <=> *",Ct(gd))]),arrowPosition:wi("arrowPosition",[Ht("* => desc-to-hint, * => desc-to-active",Ct(gd,Hl([Re({transform:"translateY(-25%)"}),Re({transform:"translateY(0)"})]))),Ht("* => hint-to-desc, * => active-to-desc",Ct(gd,Hl([Re({transform:"translateY(0)"}),Re({transform:"translateY(25%)"})]))),Ht("* => asc-to-hint, * => asc-to-active",Ct(gd,Hl([Re({transform:"translateY(25%)"}),Re({transform:"translateY(0)"})]))),Ht("* => hint-to-asc, * => active-to-asc",Ct(gd,Hl([Re({transform:"translateY(0)"}),Re({transform:"translateY(-25%)"})]))),Nt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Re({transform:"translateY(0)"})),Nt("hint-to-desc, active-to-desc, desc",Re({transform:"translateY(-25%)"})),Nt("hint-to-asc, active-to-asc, asc",Re({transform:"translateY(25%)"}))]),allowChildren:wi("allowChildren",[Ht("* <=> *",[yr("@*",Jg(),{optional:!0})])])};let RA=(()=>{class n{constructor(){this.changes=new He.xQ}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xO={provide:RA,deps:[[new i.FiY,new i.tp0,RA]],useFactory:function TO(n){return n||new RA}},SO=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),EO=am(ts(class{}));let ps=(()=>{class n extends EO{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new He.xQ,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(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,l;if(!e)return"";const d=null!==(r=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==r?r:!!(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableClear);let s=function DO(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,d),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(SO,8))},n.\u0275dir=i.lG2({type:n,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:[i.qOj,i.TTD]}),n})();const HO=ts(class{});let S1=(()=>{class n extends HO{constructor(e,t,r,l,d,s,o){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(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('[role="button"]'),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,Si.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(RA),i.Y36(i.sBO),i.Y36(ps,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(Rr),i.Y36(i.SBq),i.Y36(Bh,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.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:[i.qOj],attrs:wO,ngContentSelectors:vO,decls:4,vars:6,consts:[["role","button",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&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,CO,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},directives:[w.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-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}\n"],encapsulation:2,data:{animation:[hf.indicator,hf.leftPointer,hf.rightPointer,hf.arrowOpacity,hf.arrowPosition,hf.allowChildren]},changeDetection:0}),n})(),OA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[xO],imports:[[w.ez,ht]]}),n})(),LO=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),kE=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),kO=(()=>{class n{transform(e){var t;const r=e.find(l=>"mail"===l.friendlyName);return null!==(t=null==r?void 0:r.value)&&void 0!==t?t:"N/A"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getMailFromAttributes",type:n,pure:!0}),n})();function PO(n,a){1&n&&i._UZ(0,"th",18)}function RO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"span",20),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.TgZ(4,"mat-checkbox",21),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),i.xp6(3),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function OO(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function IO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.id," ")}}function BO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function NO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.ALo(2,"getMailFromAttributes"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.attributes)," ")}}function VO(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function zO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function FO(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function jO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.login," ")}}function qO(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function YO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function WO(n,a){1&n&&i._UZ(0,"tr",26)}const PE=function(n,a){return["/admin","users",n,"identities",a]};function UO(n,a){if(1&n&&i._UZ(0,"tr",27),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.WLB(6,PE,t.userId,e.userExtSource.id))("routerLink",t.disableRouting?null:i.WLB(9,PE,t.userId,e.userExtSource.id))}}function GO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ZO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let $O=(()=>{class n{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new tn,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=tf}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(l=>"mail"===l.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 qo(this.userExtSources),this.setDataSource()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e.userExtSource)?"deselect":"select"} row ${e.userExtSource.id+1}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nr),i.Y36(ys))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[i.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,PO,1,0,"th",4),i.YNc(5,RO,5,10,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,OO,4,5,"th",7),i.YNc(8,IO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,BO,4,5,"th",10),i.YNc(11,NO,3,3,"td",8),i.BQk(),i.ynx(12,11),i.YNc(13,VO,4,5,"th",7),i.YNc(14,zO,2,1,"td",8),i.BQk(),i.ynx(15,12),i.YNc(16,FO,4,5,"th",7),i.YNc(17,jO,2,1,"td",8),i.BQk(),i.ynx(18,13),i.YNc(19,qO,4,5,"th",7),i.YNc(20,YO,3,4,"td",14),i.BQk(),i.YNc(21,WO,1,0,"tr",15),i.YNc(22,UO,1,12,"tr",16),i.qZA(),i.qZA(),i.qZA(),i.YNc(23,GO,3,3,"perun-web-apps-alert",17),i.YNc(24,ZO,4,5,"perun-web-apps-alert",17)),2&e&&(i.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(19),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),i.xp6(1),i.Q6J("ngIf",0===t.userExtSources.length))},directives:[os,Zs,ps,ds,cs,us,ls,hs,vr,tc,S1,$s,Qs,Js,Xs,kE,O,w.O5,Nn],pipes:[lt,si,kO,w.uU],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}"]}),n})();function JO(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function QO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).addIdentity()}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return r.removeIdentity(r.certSelection)}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",11),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,10,i.lcZ(4,12,"IDENTITIES.CERT"))),i.xp6(4),i.hij(" ",i.lcZ(7,14,i.lcZ(8,16,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.certSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,18,i.lcZ(12,20,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function XO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){return i.CHM(e),i.oxw().addIdentity()}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.removeIdentity(r.idpSelection)}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",7),i.YNc(14,QO,14,22,"div",2),i.TgZ(15,"h1",8),i._uU(16),i.ALo(17,"translate"),i.ALo(18,"customTranslate"),i.TgZ(19,"mat-icon",9),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i._uU(22," info_outline "),i.qZA(),i.qZA(),i._UZ(23,"perun-web-apps-user-ext-sources-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,17,i.lcZ(4,19,"IDENTITIES.IDP"))),i.xp6(4),i.hij(" ",i.lcZ(7,21,i.lcZ(8,23,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.idpSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,25,i.lcZ(12,27,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),i.xp6(1),i.Q6J("ngIf",e.displayCertificates),i.xp6(2),i.hij(" ",i.lcZ(17,29,i.lcZ(18,31,"IDENTITIES.OTHER"))," "),i.xp6(3),i.Q6J("matTooltip",i.lcZ(20,33,i.lcZ(21,35,"IDENTITIES.OTHER_TOOLTIP"))),i.xp6(4),i.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let KO=(()=>{class n{constructor(e,t,r,l,d){this.usersManagerService=e,this.storage=t,this.registrarManagerService=r,this.dialog=l,this.attributesManagerService=d,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new tn(!0,[]),this.certSelection=new tn(!0,[]),this.otherSelection=new tn(!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","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("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.getUserExtSourceAttributeByName(r.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(l=>{(null==l?void 0:l.value)?(r.userExtSource.extSource.name=l.value,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(d=>{t--,(null==d?void 0:d.value)&&(r.userExtSource.extSource.name=d.value),this.loading=0!==t,this.addToList(r)})})})})}addIdentity(){this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.get("consolidator_base_url");window.location.href=`${r}${(null==t?void 0:t.endsWith("X509"))?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}removeIdentity(e){const t=Pi();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(WH,t).afterClosed().subscribe(l=>{l&&(e.clear(),this.refreshTables())})}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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(zt),i.Y36(ri),i.Y36(Ji),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",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&&(i.TgZ(0,"div",0),i.YNc(1,JO,1,0,"mat-spinner",1),i.YNc(2,XO,24,37,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,Ln,Pt,$O,bn,vr],pipes:[lt,si],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n})();const eI=["panel"];function tI(n,a){if(1&n&&(i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA()),2&n){const e=a.id,t=i.oxw();i.Q6J("id",t.id)("ngClass",t._classList),i.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const iI=["*"];let nI=0;class rI{constructor(a,e){this.source=a,this.option=e}}const aI=na(class{}),RE=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function sI(){return{autoActiveFirstOption:!1}}});let oI=(()=>{class n extends aI{constructor(e,t,r,l){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=re.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.vpe,this.opened=new i.vpe,this.closed=new i.vpe,this.optionActivated=new i.vpe,this._classList={},this.id="mat-autocomplete-"+nI++,this.inertGroups=(null==l?void 0:l.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}set classList(e){this._classList=e&&e.length?function Vv(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Vg(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 rI(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(RE),i.Y36(xi))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(i.Rgc,7),i.Gf(eI,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.template=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),lI=(()=>{class n extends oI{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,up,5),i.Suo(r,La,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.optionGroups=l),i.iGM(l=i.CRH())&&(t.options=l)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i._Bn([{provide:um,useExisting:n}]),i.qOj],ngContentSelectors:iI,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,tI,3,4,"ng-template"))},directives:[w.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}\n"],encapsulation:2,changeDetection:0}),n})();const OE=new i.OlP("mat-autocomplete-scroll-strategy"),dI={provide:OE,deps:[Zr],useFactory:function cI(n){return()=>n.scrollStrategies.reposition()}},uI={provide:Zn,useExisting:(0,i.Gpc)(()=>IE),multi:!0};let hI=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=l,this._changeDetectorRef=d,this._dir=o,this._formField=c,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=re.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new He.xQ,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=ma(()=>{const b=this.autocomplete?this.autocomplete.options:null;return b?b.changes.pipe(_i(b),(0,Ui.w)(()=>(0,Si.T)(...b.map(V=>V.onSelectionChange)))):this._zone.onStable.pipe((0,Zt.q)(1),(0,Ui.w)(()=>this.optionSelections))}),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&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();void 0!==e&&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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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,Si.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,jt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,jt.h)(()=>this._overlayAttached)):(0,$e.of)()).pipe((0,ut.U)(e=>e instanceof W_?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Si.T)(Ta(this._document,"click"),Ta(this._document,"auxclick"),Ta(this._document,"touchend")).pipe((0,jt.h)(e=>{const t=Un(e),r=this._formField?this._formField._elementRef.nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&(!r||!r.contains(t))&&(!l||!l.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode;if(27===t&&!vn(e)&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!vn(e))this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,l=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):l&&this._canOpen()&&this.openPanel(),(l||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,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}_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,Zt.q)(1)),t=this.autocomplete.options.changes.pipe((0,I.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,te.g)(0));return(0,Si.T)(e,t).pipe((0,Ui.w)(()=>{const r=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,Zt.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,r=null!=t?t:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(e){const t=e&&e.source;t&&(this._clearPreviousSelectedOption(t),this._setTriggerValue(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(){var e;let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new vl(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(l=>{(27===l.keyCode&&!vn(l)||38===l.keyCode&&vn(l,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),l.stopPropagation(),l.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})})),t&&!t.hasAttached()&&(t.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 Hh({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,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let d;d="above"===this.position?l:"below"===this.position?t:[...t,...l],e.withPositions(d)}_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=hm(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const l=t.options.toArray()[e];if(l){const d=l._getHostElement(),s=U_(d.offsetTop,d.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(s)}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Zr),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(OE),i.Y36(Cn,8),i.Y36(as,9),i.Y36(w.K0,8),i.Y36(Ja),i.Y36(RE,8))},n.\u0275dir=i.lG2({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[i.TTD]}),n})(),IE=(()=>{class n extends hI{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&i.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(l){return t._handleInput(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.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)},exportAs:["matAutocompleteTrigger"],features:[i._Bn([uI]),i.qOj]}),n})(),pI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[dI],imports:[[zc,du,ht,w.ez],xa,du,ht]}),n})(),fI=(()=>{class n{transform(e){var t;return null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"never"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"validateExpiration",type:n,pure:!0}),n})();function mI(n,a){1&n&&i._UZ(0,"th",17)}function gI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.ALo(2,"validateExpiration"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled","never"===i.lcZ(2,3,e.expirationAttribute))}}function _I(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function bI(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.name)}}function AI(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function yI(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.description)}}function MI(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function wI(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.ALo(2,"validateExpiration"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.expirationAttribute)," ")}}function CI(n,a){1&n&&i._UZ(0,"th",20)}function vI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22),i.TgZ(1,"button",24),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().extend(l)}),i.ALo(2,"validateExpiration"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(1),i.Q6J("disabled","never"===i.lcZ(2,2,e.expirationAttribute)),i.xp6(2),i.hij(" ",i.lcZ(4,4,i.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function TI(n,a){1&n&&i._UZ(0,"tr",25)}function xI(n,a){1&n&&i._UZ(0,"tr",26)}function SI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",27),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let BE=(()=>{class n{constructor(){this.members=[],this.searchString="",this.selection=new tn(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new i.vpe,this.pageSizeOptions=tf}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){var r,l;switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return null!==(l=null===(r=null==e?void 0:e.expirationAttribute)||void 0===r?void 0:r.value)&&void 0!==l?l:"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new qo(this.members),this.setDataSource()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.entity.id+1}`}extend(e){this.extendMembership.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,mI,1,0,"th",4),i.YNc(5,gI,3,5,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,_I,4,5,"th",7),i.YNc(8,bI,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,AI,4,5,"th",7),i.YNc(11,yI,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,MI,4,5,"th",12),i.YNc(14,wI,3,3,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,CI,1,0,"th",7),i.YNc(17,vI,6,8,"td",10),i.BQk(),i.YNc(18,TI,1,0,"tr",14),i.YNc(19,xI,1,0,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,SI,4,5,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",!t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length))},directives:[os,Zs,ps,ds,cs,us,ls,hs,tc,S1,Pt,$s,Qs,Js,Xs,w.O5,Nn],pipes:[fI,lt,si],styles:[""]}),n})();function EI(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function DI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",7),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",8),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.TgZ(7,"mat-autocomplete",9,10),i.NdJ("optionSelected",function(r){return i.CHM(e),i.oxw().filterByVo(r)}),i.TgZ(9,"mat-option",11),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i.YNc(13,EI,2,2,"mat-option",12),i.ALo(14,"async"),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(8),t=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,7,"GROUPS.SELECT_VO")),i.xp6(2),i.s9C("placeholder",i.lcZ(5,9,i.lcZ(6,11,"GROUPS.SELECT_VO"))),i.Q6J("formControl",t.myControl)("matAutocomplete",e),i.xp6(3),i.Q6J("displayWith",t.displayFn),i.xp6(3),i.Oqu(i.lcZ(11,13,i.lcZ(12,15,"GROUPS.ALL"))),i.xp6(3),i.Q6J("ngForOf",i.lcZ(14,17,t.filteredVos))}}function HI(n,a){1&n&&i._UZ(0,"mat-spinner",14)}function LI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const kI=function(){return["name","description","expirationAttribute","extend"]};function PI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-membership-list",17),i.NdJ("extendMembership",function(r){return i.CHM(e),i.oxw().extendMembership(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,4,i.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),i.xp6(3),i.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",i.DdM(8,kI))}}const RI=function(){return["name","description"]};function OI(n,a){if(1&n&&(i.TgZ(0,"div",18),i.TgZ(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i._UZ(5,"perun-web-apps-membership-list",19),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),i.xp6(3),i.Q6J("members",e.adminMemberships)("displayedColumns",i.DdM(7,RI))}}let II=(()=>{class n{constructor(e,t,r,l,d,s){this.usersService=e,this.memberService=t,this.groupService=r,this.store=l,this.vosManagerService=d,this.attributesManagerService=s,this.loading=!1,this.vos=[],this.myControl=new Cr,this.selection=new tn(!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(_i(""),(0,ut.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(l=>{t--,this.groupService.getMemberGroups(l).subscribe(d=>{e+=d.length,this.loading=0===e&&0!==t,d.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(l,s.id).subscribe(o=>{e--,this.userMemberships.push({entity:s,expirationAttribute:o.find(c=>"groupMembershipExpiration"===c.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(l=>{l.forEach(d=>{this.adminMemberships.push({entity:d,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(l=>{let d=l.length;this.loading=0!==d,l.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(r.id,s.id).subscribe(o=>{d--,this.userMemberships.push({entity:s,expirationAttribute:o.find(c=>"groupMembershipExpiration"===c.friendlyName)}),this.loading=0!==d})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(l=>{this.adminMemberships.push({entity:l,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.get("registrar_base_url"),r=e.entity,l=this.vos.find(d=>d.id===r.voId).shortName;window.location.href=`${t}?vo=${l}&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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(Mt),i.Y36(Di),i.Y36(zt),i.Y36(_s),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,DI,15,19,"mat-form-field",2),i.YNc(6,HI,1,0,"mat-spinner",3),i.YNc(7,LI,4,5,"perun-web-apps-alert",4),i.YNc(8,PI,6,9,"div",5),i.YNc(9,OI,6,8,"div",6),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"GROUPS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},directives:[w.O5,mn,rs,Hn,nn,IE,_n,ss,lI,La,w.sg,Ln,Nn,BE],pipes:[lt,si,w.Ov],styles:[""]}),n})();function BI(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function NI(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let pf=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Cr}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,BI,2,4,"input",1),i.YNc(2,NI,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},directives:[mn,w.O5,Hn,nn,LO,_n,ss],pipes:[lt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),n})(),VI=0;const Tv=new i.OlP("CdkAccordion");let zI=(()=>{class n{constructor(){this._stateChanges=new He.xQ,this._openCloseAllActions=new He.xQ,this.id="cdk-accordion-"+VI++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=je(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 n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:Tv,useExisting:n}]),i.TTD]}),n})(),FI=0,jI=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=re.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+FI++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=je(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=je(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Tv,12),i.Y36(i.sBO),i.Y36(Mp))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:Tv,useValue:void 0}])]}),n})(),qI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const YI=["body"];function WI(n,a){}const UI=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],GI=["mat-expansion-panel-header","*","mat-action-row"];function ZI(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const $I=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],JI=["mat-panel-title","mat-panel-description","*"],xv=new i.OlP("MAT_ACCORDION"),NE="225ms cubic-bezier(0.4,0.0,0.2,1)",VE={indicatorRotate:wi("indicatorRotate",[Nt("collapsed, void",Re({transform:"rotate(0deg)"})),Nt("expanded",Re({transform:"rotate(180deg)"})),Ht("expanded <=> collapsed, void => collapsed",Ct(NE))]),bodyExpansion:wi("bodyExpansion",[Nt("collapsed, void",Re({height:"0px",visibility:"hidden"})),Nt("expanded",Re({height:"*",visibility:"visible"})),Ht("expanded <=> collapsed, void => collapsed",Ct(NE))])};let E1=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),QI=0;const zE=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let D1=(()=>{class n extends jI{constructor(e,t,r,l,d,s,o){super(e,t,r),this._viewContainerRef=l,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new He.xQ,this._headerId="mat-expansion-panel-header-"+QI++,this._bodyAnimationDone=new He.xQ,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(Rh((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=je(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.opened.pipe(_i(null),(0,jt.h)(()=>this.expanded&&!this._portal),(0,Zt.q)(1)).subscribe(()=>{this._portal=new vl(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(xv,12),i.Y36(i.sBO),i.Y36(Mp),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(Bn,8),i.Y36(zE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,E1,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(YI,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.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:[i._Bn([{provide:xv,useValue:void 0}]),i.qOj,i.TTD],ngContentSelectors:GI,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&&(i.F$t(UI),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,WI,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},directives:[Qf],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[VE.bodyExpansion]},changeDetection:0}),n})();class XI{}const KI=Nl(XI);let H1=(()=>{class n extends KI{constructor(e,t,r,l,d,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=re.w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,jt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):Mn.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Si.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,jt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,jt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.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:vn(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(D1,1),i.Y36(i.SBq),i.Y36(Rr),i.Y36(i.sBO),i.Y36(zE,8),i.Y36(Bn,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.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:[i.qOj],ngContentSelectors:JI,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t($I),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,ZI,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},directives:[w.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[VE.indicatorRotate]},changeDetection:0}),n})(),IA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),BA=(()=>{class n extends zI{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=je(e)}ngAfterContentInit(){this._headers.changes.pipe(_i(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new jc(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,H1,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:xv,useExisting:n}]),i.qOj]}),n})(),Sv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ht,qI,Tl]]}),n})();function eB(n,a){1&n&&(i.TgZ(0,"mat-icon",1),i.ALo(1,"translate"),i._uU(2," visibility\n"),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let tB=(()=>{class n{constructor(){this.recentIds=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&i.YNc(0,eB,3,3,"mat-icon",0),2&e&&i.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},directives:[w.O5,bn,vr],pipes:[lt],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),n})();function iB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3,"check_circle_outline"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function nB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",5),i._uU(3,"block"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function rB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",6),i._uU(3,"report"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.hYB("matTooltip","",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function aB(n,a){1&n&&(i.TgZ(0,"span",7),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",8),i._uU(3,"autorenew"),i.qZA(),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let sB=(()=>{class n{constructor(e){this.dialog=e,this.status="",this.statusChange=new i.vpe}changeStatus(){const e=Pi();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(kL,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",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&&(i.TgZ(0,"div",0),i.YNc(1,iB,4,3,"span",1),i.YNc(2,nB,4,3,"span",1),i.YNc(3,rB,4,4,"span",1),i.YNc(4,aB,4,3,"span",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","ACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","FAILED"===t.status),i.xp6(1),i.Q6J("ngIf","PROCESSING"===t.status))},directives:[w.O5,vr,bn],pipes:[lt],styles:[""]}),n})(),oB=(()=>{class n{transform(e){if(null==e)return null;let r="";return e.forEach(function(l){r=r.concat(l.tagName)}),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"resourceTagsToString",type:n,pure:!0}),n})(),lB=(()=>{class n{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getResourceRoute",type:n,pure:!0}),n})();function cB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",24),i.TgZ(1,"mat-checkbox",25),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function dB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",26),i.TgZ(1,"span",27),i.ALo(2,"translate"),i.TgZ(3,"mat-checkbox",28),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),i.xp6(2),i.Q2q("data-cy","",e.name,"-checkbox"),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function uB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function hB(n,a){if(1&n&&(i.TgZ(0,"td",30),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function pB(n,a){1&n&&i._UZ(0,"th",31)}function fB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._UZ(1,"perun-web-apps-recently-viewed-icon",33),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("recentIds",t.recentIds)("id",e.id)}}function mB(n,a){1&n&&i._UZ(0,"th",31)}function gB(n,a){1&n&&(i.TgZ(0,"mat-icon",35),i.ALo(1,"translate"),i._uU(2,"account_tree"),i.qZA()),2&n&&i.Q6J("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function _B(n,a){if(1&n&&(i.TgZ(0,"td",32),i.YNc(1,gB,3,3,"mat-icon",34),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.sourceGroupId)}}function bB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function AB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function yB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function MB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.vo.name)}}function wB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function CB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.voId)}}function vB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function TB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",32),i.TgZ(1,"perun-web-apps-group-resource-status",36),i.NdJ("mouseenter",function(){return i.CHM(e),i.oxw().disabledRouting=!0})("mouseleave",function(){i.CHM(e);const r=i.oxw();return r.disabledRouting=r.disableRouting})("statusChange",function(){return i.CHM(e),i.oxw().refreshTable.emit()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function xB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function SB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facility.name)}}function EB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function DB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facilityId)}}function HB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function LB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.ALo(2,"resourceTagsToString"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.resourceTags)," ")}}function kB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function PB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function RB(n,a){1&n&&i._UZ(0,"tr",37)}const OB=function(n){return[n]};function IB(n,a){if(1&n&&(i._UZ(0,"tr",38),i.ALo(1,"getResourceRoute"),i.ALo(2,"getResourceRoute")),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",i.VKq(12,OB,t.disabledRouting?null:i.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:i.xi3(2,9,e,t.routingVo))}}function BB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function NB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let VB=(()=>{class n{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new tn(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=tf,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new i.vpe,this.allSelected=new i.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,l)=>n.getDataForColumn(r,l,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 d="";return e.resourceTags.forEach(function(s){d=d.concat(s.tagName)}),d}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()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new qo,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>m1(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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()}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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 n.\u0275fac=function(e){return new(e||n)(i.Y36(ys),i.Y36(zC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.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:[i.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["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"],["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"],["mat-header-cell","",1,"align-checkbox"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,cB,2,3,"th",4),i.YNc(5,dB,4,9,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,uB,3,3,"th",7),i.YNc(8,hB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,pB,1,0,"th",10),i.YNc(11,fB,2,2,"td",11),i.BQk(),i.ynx(12,12),i.YNc(13,mB,1,0,"th",10),i.YNc(14,_B,2,1,"td",11),i.BQk(),i.ynx(15,13),i.YNc(16,bB,3,3,"th",7),i.YNc(17,AB,2,1,"td",11),i.BQk(),i.ynx(18,14),i.YNc(19,yB,3,3,"th",7),i.YNc(20,MB,2,1,"td",11),i.BQk(),i.ynx(21,15),i.YNc(22,wB,3,3,"th",7),i.YNc(23,CB,2,1,"td",11),i.BQk(),i.ynx(24,16),i.YNc(25,vB,3,3,"th",7),i.YNc(26,TB,2,5,"td",11),i.BQk(),i.ynx(27,17),i.YNc(28,xB,3,3,"th",7),i.YNc(29,SB,2,1,"td",11),i.BQk(),i.ynx(30,18),i.YNc(31,EB,3,3,"th",7),i.YNc(32,DB,2,1,"td",11),i.BQk(),i.ynx(33,19),i.YNc(34,HB,3,3,"th",7),i.YNc(35,LB,3,3,"td",11),i.BQk(),i.ynx(36,20),i.YNc(37,kB,3,3,"th",7),i.YNc(38,PB,2,1,"td",11),i.BQk(),i.YNc(39,RB,1,0,"tr",21),i.YNc(40,IB,3,14,"tr",22),i.qZA(),i.qZA(),i.qZA(),i.YNc(41,BB,3,3,"perun-web-apps-alert",23),i.YNc(42,NB,3,3,"perun-web-apps-alert",23)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(37),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),i.xp6(1),i.Q6J("ngIf",0===t.resources.length))},directives:[os,Zs,ps,ds,cs,us,tc,ls,hs,vr,S1,tB,w.O5,bn,sB,$s,Qs,Js,Xs,kE,O,Nn],pipes:[lt,oB,lB],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}"]}),n})();function zB(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const FB=function(){return["name","description"]};function jB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-resources-list",9),2&n){const e=i.oxw(3);i.Q6J("resources",e.resources)("displayedColumns",i.DdM(3,FB))("disableRouting",!0)}}function qB(n,a){if(1&n&&(i.YNc(0,zB,1,0,"mat-spinner",6),i.YNc(1,jB,1,4,"perun-web-apps-resources-list",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function YB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",4),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw().getMemberData(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,qB,2,2,"ng-template",5),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let WB=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=l,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(Mt),i.Y36(fi),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"mat-accordion"),i.YNc(9,YB,5,1,"mat-expansion-panel",3),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"SERVICES.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,7,i.lcZ(7,9,"SERVICES.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[pf,BA,w.sg,D1,H1,IA,E1,w.O5,Ln,VB],pipes:[lt,si],styles:[""]}),n})();function UB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilter(r)}),i.qZA()}2&n&&i.Q6J("placeholder","ORGANIZATIONS.FILTER")}function GB(n,a){1&n&&i._UZ(0,"mat-spinner",6)}const ZB=function(){return["name","expirationAttribute","extend"]};function $B(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-membership-list",11),i.NdJ("extendMembership",function(r){return i.CHM(e),i.oxw(2).extendMembership(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",i.DdM(4,ZB))}}function JB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function QB(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,$B,2,5,"div",9),i.YNc(6,JB,4,5,"perun-web-apps-alert",10),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),i.xp6(3),i.Q6J("ngIf",0!==e.userMemberships.length),i.xp6(1),i.Q6J("ngIf",0===e.userMemberships.length)}}function XB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const KB=function(){return["name"]};function e3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-membership-list",14),2&n){const e=i.oxw(2);i.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",i.DdM(3,KB))}}function t3(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,XB,4,5,"perun-web-apps-alert",10),i.YNc(6,e3,1,4,"perun-web-apps-membership-list",13),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),i.xp6(3),i.Q6J("ngIf",!e.adminMemberships.length),i.xp6(1),i.Q6J("ngIf",e.adminMemberships.length)}}let n3=(()=>{class n{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new tn(!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.get("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(l=>{const d=r.find(s=>s.voId===l.id);d?this.membersService.getRichMemberWithAttributes(d.id).subscribe(s=>{const o=s.memberAttributes.find(c=>"membershipExpiration"===c.friendlyName);t.push({entity:l,expirationAttribute:o}),this.isEverythingLoaded()}):(t.push({entity:l,expirationAttribute:null}),this.isEverythingLoaded())})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(zt),i.Y36(Mt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,UB,1,1,"perun-web-apps-immediate-filter",2),i.YNc(6,GB,1,0,"mat-spinner",3),i.YNc(7,QB,7,7,"div",4),i.YNc(8,t3,7,7,"div",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"ORGANIZATIONS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,pf,Ln,BE,Nn],pipes:[lt,si],styles:[""]}),n})(),r3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i._UZ(1,"router-outlet"),i.qZA())},directives:[hi],styles:[""]}),n})(),a3=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"label"),i._UZ(10,"input",2),i.qZA(),i.qZA(),i.TgZ(11,"div",3),i.TgZ(12,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",5),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),i.xp6(5),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),i.xp6(4),i.Q6J("value",t.password),i.xp6(3),i.hij(" ",i.lcZ(14,14,i.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),i.xp6(3),i.Q6J("cdkCopyToClipboard",t.password),i.xp6(1),i.hij(" ",i.lcZ(18,18,i.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[En,fn,ji,Pt,ev],pipes:[lt,si],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),n})();function s3(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function o3(n,a){1&n&&i._UZ(0,"th",16)}function l3(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function c3(n,a){1&n&&i._UZ(0,"tr",18)}function d3(n,a){1&n&&i._UZ(0,"tr",19)}function u3(n,a){if(1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",9),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"table",10),i.ynx(10,11),i.YNc(11,o3,1,0,"th",12),i.YNc(12,l3,2,1,"td",13),i.BQk(),i.YNc(13,c3,1,0,"tr",14),i.YNc(14,d3,1,0,"tr",15),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,i.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(7,9,i.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}let h3=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new qo(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(Hi))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,s3,1,0,"mat-spinner",2),i.qZA(),i.YNc(6,u3,15,13,"div",3),i.TgZ(7,"div",4),i.TgZ(8,"button",5),i.NdJ("click",function(){return t.onCancel()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"button",6),i.NdJ("click",function(){return t.onSubmit()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(10,9,i.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(14,13,i.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[En,w.O5,Ln,fn,Zs,ds,cs,us,ls,hs,$s,Qs,Js,Xs,ji,Pt],pipes:[lt,si],styles:[""]}),n})();function p3(n,a){1&n&&i._UZ(0,"th",12)}function f3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",13),i.TgZ(1,"mat-checkbox",14),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function m3(n,a){if(1&n&&(i.TgZ(0,"th",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.headerColumnText)}}function g3(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function _3(n,a){1&n&&i._UZ(0,"tr",17)}function b3(n,a){1&n&&i._UZ(0,"tr",18)}function A3(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.alertText,"\n")}}let FE=(()=>{class n{constructor(){this.values=[],this.selection=new tn(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new qo(this.values),this.setDataSource()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&i.Gf(os,7),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[i.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,p3,1,0,"th",4),i.YNc(5,f3,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,m3,2,1,"th",7),i.YNc(8,g3,2,1,"td",8),i.BQk(),i.YNc(9,_3,1,0,"tr",9),i.YNc(10,b3,1,0,"tr",10),i.qZA(),i.qZA(),i.qZA(),i.YNc(11,A3,2,1,"perun-web-apps-alert",11)),2&e&&(i.Q6J("hidden",!t.values.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(7),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.values.length))},directives:[os,Zs,ds,cs,us,ls,hs,tc,$s,Qs,Js,Xs,w.O5,Nn],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),n})();function y3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-string-list",10),2&n){const e=i.oxw();i.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function M3(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let w3=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.usersManagerService=d,this.altPasswordCtrl=new Cr(null,[Dn.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new tn(!1,[]),l.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(s=>this.removeDialogDescription=s),l.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(s=>this.removeDialogTitle=s),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(s=>this.alertText=s),l.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(s=>this.headerColumnText=s)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",e).subscribe(()=>{const t=Pi();t.width="600px",t.data={password:e},this.dialog.open(a3,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",l=0;const d=t.length;for(;l<16;++l)r+=t.charAt(Math.random()*d);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=Pi();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(h3,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li),i.Y36(Hi))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"mat-form-field",2),i.TgZ(6,"label",2),i._UZ(7,"input",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.createPassword()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"perun-web-apps-alert",5),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"h1",6),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",7),i.NdJ("click",function(){return t.removeAltPasswords()}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.YNc(26,y3,1,4,"perun-web-apps-string-list",8),i.YNc(27,M3,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,11,i.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),i.xp6(5),i.s9C("placeholder",i.lcZ(8,15,i.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.altPasswordCtrl),i.xp6(3),i.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,19,i.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),i.xp6(4),i.Oqu(i.lcZ(16,23,i.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),i.xp6(4),i.Oqu(i.lcZ(20,27,i.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),i.xp6(3),i.Q6J("disabled",t.selection.isEmpty()),i.xp6(1),i.hij(" ",i.lcZ(24,31,i.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[mn,Hn,nn,_n,ss,Pt,Nn,w.O5,FE,Ln],pipes:[lt,si],styles:[""]}),n})();function C3(n,a){if(1&n&&(i.TgZ(0,"mat-list-item",1),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"p",2),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n){const e=a.$implicit;i.Q6J("routerLink",e.url),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,e.label)))}}let v3=(()=>{class n{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.get("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 n.\u0275fac=function(e){return new(e||n)(i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-list"),i.YNc(1,C3,7,7,"mat-list-item",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[mv,w.sg,DA,Gn,O,bn],pipes:[lt,si],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),n})(),T3=(()=>{class n extends An{buildStyles(e,{display:t}){const r=mS(e);return Object.assign(Object.assign({},r),{display:"none"===t?t:r.display})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const x3=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let S3=(()=>{class n extends rn{constructor(e,t,r,l,d){super(e,r,t,l),this._config=d,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var t;const l=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(t=qE.get(l))&&void 0!==t?t:new Map,qE.set(l,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:l}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qi),i.Y36(T3),i.Y36(Qi),i.Y36(Ks))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),jE=(()=>{class n extends S3{constructor(){super(...arguments),this.inputs=x3}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.qOj]}),n})();const qE=new Map;let sN=(()=>{class n extends An{buildStyles(e){const t={};switch(e=e||"stretch"){case"start":t["align-self"]="flex-start";break;case"end":t["align-self"]="flex-end";break;default:t["align-self"]=e}return t}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oN=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let lN=(()=>{class n extends rn{constructor(e,t,r,l){super(e,r,t,l),this.DIRECTIVE_KEY="flex-align",this.styleCache=cN,this.init()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qi),i.Y36(sN),i.Y36(Qi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const cN=new Map;let UE=(()=>{class n extends lN{constructor(){super(...arguments),this.inputs=oN}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[i.qOj]}),n})(),GE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[nv,Cl]]}),n})();function xN(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.Q6J("value",t.selectedUnit),i.xp6(1),i.hij(" ",e," ")}}let SN=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=l,this.translate=d,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",d.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Cr(null,[Dn.required]),this.newValueControl=new Cr(null,[Dn.required,Dn.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new uA).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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(cn),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"div"),i.TgZ(6,"p",2),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"p"),i._uU(11),i.qZA(),i.qZA(),i.TgZ(12,"div"),i.TgZ(13,"p",2),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"p"),i._uU(18),i.qZA(),i.qZA(),i.TgZ(19,"div",3),i.TgZ(20,"mat-form-field"),i.TgZ(21,"label",4),i._UZ(22,"input",5),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(25,"mat-select",6),i.NdJ("valueChange",function(l){return t.selectedUnit=l}),i.YNc(26,xN,2,2,"mat-option",7),i.qZA(),i.qZA(),i.TgZ(27,"div"),i.TgZ(28,"mat-form-field",8),i.TgZ(29,"label",4),i._UZ(30,"textarea",9),i.ALo(31,"translate"),i.ALo(32,"customTranslate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(33,"div",10),i.TgZ(34,"button",11),i.NdJ("click",function(){return t.onCancel()}),i._uU(35),i.ALo(36,"translate"),i.ALo(37,"customTranslate"),i.qZA(),i.TgZ(38,"button",12),i.NdJ("click",function(){return t.onSubmit()}),i._uU(39),i.ALo(40,"translate"),i.ALo(41,"customTranslate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,14,i.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),i.xp6(6),i.hij(" ",i.lcZ(8,18,i.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),i.xp6(4),i.Oqu(t.resource),i.xp6(3),i.hij(" ",i.lcZ(15,22,i.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),i.xp6(4),i.Oqu(t.currentQuota),i.xp6(4),i.s9C("placeholder",i.lcZ(23,26,i.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),i.Q6J("formControl",t.newValueControl),i.xp6(3),i.Q6J("value",t.selectedUnit),i.xp6(1),i.Q6J("ngForOf",t.units),i.xp6(4),i.s9C("placeholder",i.lcZ(31,30,i.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),i.Q6J("formControl",t.reasonControl),i.xp6(5),i.hij(" ",i.lcZ(36,34,i.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.reasonControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(40,38,i.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[En,jE,UE,mn,Hn,Wp,nn,Nr,_n,ss,ku,w.sg,La,ji,Pt],pipes:[lt,si],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}"]}),n})();function EN(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function DN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function HN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"p"),i.TgZ(2,"strong"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i._uU(6),i.qZA(),i.TgZ(7,"p",10),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3).$implicit;return i.oxw().requestChangeQuota(l,r)}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(5);i.xp6(3),i.Oqu(i.lcZ(4,4,i.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),i.xp6(3),i.hij(" ",e.quotasMarkup," "),i.xp6(2),i.Oqu(i.lcZ(9,8,i.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),i.xp6(4),i.hij(" ",i.lcZ(13,12,i.lcZ(14,14,"DATA_QUOTAS.CHANGE"))," ")}}function LN(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function kN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw(4).getResAttributes(l.id)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,HN,15,16,"div",7),i.YNc(5,LN,4,5,"p",7),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.xp6(3),i.hij(" ",e.name," "),i.xp6(1),i.Q6J("ngIf",t.defaultQuota),i.xp6(1),i.Q6J("ngIf",!t.defaultQuota)}}function PN(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,kN,6,3,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function RN(n,a){if(1&n&&(i.YNc(0,EN,1,0,"mat-spinner",5),i.YNc(1,DN,4,5,"perun-web-apps-alert",6),i.YNc(2,PN,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function ON(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw().getMembersResources(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,RN,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let IN=(()=>{class n{constructor(e,t,r,l,d,s){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=d,this.dialog=s,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,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 l=r.length;l||(this.loading=!1),r.forEach(d=>{this.attributesManagerService.getResourceAttributes(d.id).subscribe(s=>{l--,s.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(d),this.loading=0!==l})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(l=>"dataQuotas"===l.friendlyName);if(null==r?void 0:r.value){const l=Object.entries(r.value).map(d=>String(d[1]));this.currentQuota=l[0]}else this.currentQuota="";if(r=t.find(l=>"defaultDataQuotas"===l.friendlyName),null==r?void 0:r.value){const l=Object.entries(r.value).map(d=>String(d[1]));this.defaultQuota=l[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=Pi();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(SN,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(Hi),i.Y36(Mt),i.Y36(fi),i.Y36(ni),i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-data-quotas"]],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"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,ON,5,1,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DATA_QUOTAS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"DATA_QUOTAS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[pf,BA,w.sg,D1,H1,IA,E1,w.O5,Ln,Nn,Pt],pipes:[lt,si],styles:[""]}),n})();function BN(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function NN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function VN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){return i.CHM(e),i.oxw(4).deselectResource()})("afterExpand",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeSelectedResource(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.TgZ(4,"div",10),i.TgZ(5,"mat-checkbox",11),i.NdJ("change",function(){return i.CHM(e),i.oxw(4).setOptOut()}),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.Q6J("expanded",e.name===t.selectedResource),i.xp6(3),i.hij(" ",e.name," "),i.xp6(2),i.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),i.xp6(2),i.Oqu(i.lcZ(8,4,i.lcZ(9,6,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL")))}}function zN(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,VN,10,8,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function FN(n,a){if(1&n&&(i.YNc(0,BN,1,0,"mat-spinner",5),i.YNc(1,NN,4,5,"perun-web-apps-alert",6),i.YNc(2,zN,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function jN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){return i.CHM(e),i.oxw().deselectVo()})("afterExpand",function(){const l=i.CHM(e).$implicit;return i.oxw().changeSelectedVo(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,FN,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("expanded",e.shortName===t.selectedVo),i.xp6(3),i.hij(" ",e.name," ")}}let qN=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=d,this.route=s,this.router=o,this.notificator=c,this.translate=u,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t,this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),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.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.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(d=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,d.id).subscribe(s=>{this.attributesManagerService.getResourceAttributeByName(d.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{l--;const c=s.find(u=>"optOutMailingList"===u.friendlyName);c&&"true"!==(null==o?void 0:o.value)&&(this.optOuts.push({resource:d.id,member:t.id,attribute:c}),this.resources.push(d),this.selectedResource===d.name&&(this.getOptOutAttribute(d),this.changeSelectedResource(d))),this.loading=0!==l})})})})})}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("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("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.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(Hi),i.Y36(Mt),i.Y36(fi),i.Y36(ni),i.Y36(nr),i.Y36(rt),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-mailing-lists"]],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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,jN,5,2,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[pf,BA,w.sg,D1,H1,IA,E1,w.O5,Ln,Nn,tc],pipes:[lt,si],styles:[""]}),n})();function YN(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function WN(n,a){1&n&&i._UZ(0,"th",17)}function UN(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function GN(n,a){1&n&&i._UZ(0,"tr",19)}function ZN(n,a){1&n&&i._UZ(0,"tr",20)}function $N(n,a){if(1&n&&(i.TgZ(0,"table",11),i.ynx(1,12),i.YNc(2,WN,1,0,"th",13),i.YNc(3,UN,2,1,"td",14),i.BQk(),i.YNc(4,GN,1,0,"tr",15),i.YNc(5,ZN,1,0,"tr",16),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function JN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",1),i.TgZ(1,"div",5),i.TgZ(2,"p"),i._uU(3),i.qZA(),i.TgZ(4,"div",6),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,$N,6,3,"table",7),i.qZA(),i.TgZ(9,"div",8),i.TgZ(10,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",e.description," "),i.xp6(2),i.hij(" ",i.lcZ(6,5,i.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),i.xp6(3),i.Q6J("ngIf",e.dataSource.data.length),i.xp6(3),i.hij(" ",i.lcZ(12,9,i.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(16,13,i.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let VA=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new qo(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){var e,t;if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let r=null!==(t=null===(e=this.data.attribute)||void 0===e?void 0:e.value)&&void 0!==t?t:[];void 0!==this.data.valueIndex?r.splice(this.data.valueIndex,1):r=r.filter(l=>!this.data.values.find(d=>d===l)),this.data.attribute.value=r}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.YNc(3,YN,1,0,"mat-spinner",2),i.qZA(),i.YNc(4,JN,18,17,"div",3)),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,Zs,ds,cs,us,ls,hs,$s,Qs,Js,Xs,ji,Pt],pipes:[lt,si],styles:[""]}),n})();function QN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",5),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function XN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",11),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).changeValue()}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e)}}function KN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item"),i.TgZ(1,"mat-form-field",7),i.TgZ(2,"mat-select",8),i.NdJ("valueChange",function(r){const d=i.CHM(e).index;return i.oxw(2).shells[d]=r}),i.YNc(3,XN,2,2,"mat-option",9),i.qZA(),i.qZA(),i.TgZ(4,"button",10),i.NdJ("click",function(){const l=i.CHM(e).index;return i.oxw(2).removeShell(l)}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.index,t=i.oxw(2);i.xp6(2),i.Q6J("value",t.shells[e]),i.xp6(1),i.Q6J("ngForOf",t.defaultShells),i.xp6(2),i.hij(" ",i.lcZ(6,3,i.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function eV(n,a){if(1&n&&(i.TgZ(0,"mat-list"),i.YNc(1,KN,8,7,"mat-list-item",6),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.shells)}}let tV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],l.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d)}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=Pi();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(VA,t).afterClosed().subscribe(l=>{l&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{var t,r;this.prefShellsAttribute=e,this.shells=null!==(r=null===(t=this.prefShellsAttribute)||void 0===t?void 0:t.value)&&void 0!==r?r:[],this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-alert",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",2),i.NdJ("click",function(){return t.addShell()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.YNc(12,QN,4,5,"perun-web-apps-alert",3),i.YNc(13,eV,2,1,"mat-list",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,9,i.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),i.xp6(4),i.hij(" ",i.lcZ(10,13,i.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.loading&&0===t.shells.length),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Nn,Pt,w.O5,mv,w.sg,DA,mn,ku,La],pipes:[lt,si],styles:[""]}),n})();function iV(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function nV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field",6),i.TgZ(3,"label",6),i._UZ(4,"input",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(5,"div",8),i.TgZ(6,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Q6J("formControl",e.inputControl),i.xp6(3),i.hij(" ",i.lcZ(8,4,i.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,8,i.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let rV=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new Cr(null,Dn.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=>{var t;const r=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:[];r.push(this.inputControl.value),e.value=r,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,iV,1,0,"mat-spinner",2),i.YNc(6,nV,14,12,"div",3),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,mn,Hn,nn,Nr,_n,ss,ji,Pt],pipes:[lt,si],styles:[""]}),n})();function aV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.TgZ(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"button",3),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().addGroupName(l)}),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"button",4),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index;return i.oxw().removeGroupName(l,d)}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i._UZ(10,"perun-web-apps-string-list",5),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(2),i.Oqu(e),i.xp6(2),i.hij(" ",i.lcZ(5,8,i.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),i.xp6(3),i.Q6J("disabled",0===r.selectionList[t].selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),i.xp6(2),i.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let sV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(d=>this.alertText=d),l.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(d=>this.headerColumnText=d)}ngOnInit(){this.namespaces=this.store.get("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 tn(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{var r;const l=null!==(r=null==t?void 0:t.value)&&void 0!==r?r:[];this.groupNames.set(e,l),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=Pi();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(rV,r).afterClosed().subscribe(d=>{d&&this.getAttribute(e)})}removeGroupName(e,t){const r=Pi();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(VA,r).afterClosed().subscribe(d=>{d&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,aV,11,14,"div",1)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,2,i.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),i.xp6(3),i.Q6J("ngForOf",t.namespaces))},directives:[w.sg,Pt,FE],pipes:[lt,si],styles:[""]}),n})();function oV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function lV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function cV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let dV=(()=>{class n{constructor(e,t,r,l,d){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=l,this.translate=d,d.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),d.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(s=>this.showPwdTooltip=s),d.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(s=>this.hidePwdTooltip=s)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Cr("",[Dn.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(this.userId,e,"samba-du",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 n.\u0275fac=function(e){return new(e||n)(i.Y36(ni),i.Y36(zt),i.Y36(Hi),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,oV,4,5,"perun-web-apps-alert",1),i.YNc(5,lV,4,5,"perun-web-apps-alert",1),i.TgZ(6,"mat-form-field",2),i.TgZ(7,"label",2),i._UZ(8,"input",3),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(11,"button",4),i.NdJ("click",function(){return t.showPassword=!t.showPassword}),i.TgZ(12,"mat-icon"),i._uU(13),i.qZA(),i.qZA(),i.TgZ(14,"button",5),i.NdJ("click",function(){return t.setSambaPassword()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.YNc(18,cV,4,5,"perun-web-apps-alert",6)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,11,i.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),i.xp6(3),i.Q6J("ngIf",!t.sambaExists),i.xp6(1),i.Q6J("ngIf",t.sambaExists),i.xp6(3),i.s9C("placeholder",i.lcZ(9,15,i.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),i.xp6(3),i.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),i.xp6(2),i.Oqu(t.showPassword?"visibility_off":"visibility"),i.xp6(1),i.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(16,19,i.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),i.xp6(3),i.Q6J("ngIf",t.sambaControl.invalid))},directives:[w.O5,Nn,mn,Hn,nn,_n,ss,Pt,vr,bn],pipes:[lt,si],styles:[""]}),n})();function uV(n,a){1&n&&(i.TgZ(0,"mat-error",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Yo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Cr(null,[Dn.required,Dn.pattern(Yo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){var a,e;const t=null!==(e=null===(a=this.data.attribute)||void 0===a?void 0:a.value)&&void 0!==e?e:[],r=this.sshControl.value;t.includes(r)||t.push(r),this.data.attribute.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{t.pop()})}}Yo.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"],Yo.sshKeyPattern="^("+Yo.allowedSshKeys.join("|")+").+$",Yo.\u0275fac=function(a){return new(a||Yo)(i.Y36(Fi),i.Y36(Sn),i.Y36(ni))},Yo.\u0275cmp=i.Xpm({type:Yo,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"mat-form-field",2),i.TgZ(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,uV,4,5,"mat-error",4),i.qZA(),i.qZA(),i.TgZ(11,"div",5),i.TgZ(12,"button",6),i.NdJ("click",function(){return e.onCancel()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",7),i.NdJ("click",function(){return e.onSubmit()}),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA(),i.qZA()),2&a&&(i.xp6(1),i.Oqu(i.lcZ(2,7,i.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),i.xp6(6),i.s9C("placeholder",i.lcZ(8,11,i.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),i.Q6J("formControl",e.sshControl),i.xp6(3),i.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),i.xp6(3),i.hij(" ",i.lcZ(14,15,i.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",e.sshControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(18,19,i.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},directives:[En,fn,mn,Hn,hA,nn,Nr,_n,ss,w.O5,Fl,ji,Pt],pipes:[lt,si],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 hV=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"textarea",1),i._uU(2),i.qZA(),i.qZA(),i.TgZ(3,"mat-dialog-actions"),i.TgZ(4,"button",2),i.NdJ("click",function(){return t.onClose()}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(t.sshKey),i.xp6(3),i.hij(" ",i.lcZ(6,2,i.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},directives:[Hn,hA,ji,Pt],pipes:[lt,si],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),n})();function pV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4),i.TgZ(1,"p",5),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showWholeKey(l)}),i._uU(2),i.qZA(),i.TgZ(3,"button",6),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.TgZ(6,"mat-icon"),i._uU(7," file_copy "),i.qZA(),i.qZA(),i.TgZ(8,"button",7),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().removeKey(l,!1)}),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"mat-icon"),i._uU(12," delete "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.s9C("matTooltip",i.lcZ(4,4,i.lcZ(5,6,"SSH_KEYS.COPY_TOOLTIP"))),i.Q6J("cdkCopyToClipboard",e),i.xp6(5),i.s9C("matTooltip",i.lcZ(9,8,i.lcZ(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function fV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4),i.TgZ(1,"label",8),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showWholeKey(l)}),i._uU(2),i.qZA(),i.TgZ(3,"button",9),i.TgZ(4,"mat-icon"),i._uU(5," file_copy "),i.qZA(),i.qZA(),i.TgZ(6,"button",10),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().removeKey(l,!0)}),i.TgZ(7,"mat-icon"),i._uU(8," delete "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.Q6J("cdkCopyToClipboard",e)}}let mV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,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 tn(!1,[]),this.selectionAdmin=new tn(!1,[]),l.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(d=>this.alertText=d),l.get("SSH_KEYS.HEADER_COLUMN").subscribe(d=>this.headerColumnText=d)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("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("SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=Pi();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Yo,t).afterClosed().subscribe(l=>{l&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=Pi();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(VA,r).afterClosed().subscribe(d=>{d&&(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=Pi();t.width="600px",t.data={value:e},this.dialog.open(hV,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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","matRipple","","style","width: auto",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item",2,"width","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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"p"),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",1),i.NdJ("click",function(){return t.addKey(!1)}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"mat-list"),i.YNc(13,pV,13,12,"mat-list-item",2),i.qZA(),i.TgZ(14,"h1",3),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"p"),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",1),i.NdJ("click",function(){return t.addKey(!0)}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.TgZ(26,"mat-list"),i.YNc(27,fV,9,2,"mat-list-item",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(6,12,i.lcZ(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(10,16,i.lcZ(11,18,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.userKeys),i.xp6(2),i.Oqu(i.lcZ(16,20,i.lcZ(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(20,24,i.lcZ(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(24,28,i.lcZ(25,30,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.adminKeys))},directives:[Pt,mv,w.sg,DA,Gn,ev,vr,bn],pipes:[lt,si],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}"]}),n})(),gV=(()=>{class n{transform(e){return"virt"===e.namespace.split(":")[4]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"isVirtualAttribute",type:n,pure:!0}),n})();function _V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function bV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"mat-checkbox",20),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null}),i.ALo(2,"multiWordDataCy"),i.ALo(3,"isVirtualAttribute"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q2q("data-cy","",i.lcZ(2,4,e.displayName),"-checkbox"),i.Q6J("checked",t.selection.isSelected(e))("disabled",i.lcZ(3,6,e)||!e.writable)("aria-label",t.checkboxLabel(e))}}function AV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function yV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function MV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function wV(n,a){if(1&n&&(i.TgZ(0,"td",23),i.TgZ(1,"div",24),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",t.getAttributeFullName(e)),i.xp6(1),i.hij(" ",e.displayName," ")}}function CV(n,a){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function vV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",23),i.TgZ(1,"perun-web-apps-attribute-value",26),i.NdJ("sendEventToParent2",function(){const l=i.CHM(e).$implicit;return i.oxw().onValueChange(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function TV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function xV(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function SV(n,a){1&n&&i._UZ(0,"tr",27)}function EV(n,a){if(1&n&&(i._UZ(0,"tr",28),i.ALo(1,"translate")),2&n){const e=a.$implicit,t=i.oxw();i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),i.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function DV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function HV(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,e.emptyListText),"\n")}}let LV=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new tn(!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=tf}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!Bu(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""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new qo(function d2(n){return n.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns.concat("urn"),n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){n.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ys),i.Y36(zC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7),i.Gf(vv,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first),i.iGM(r=i.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["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"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,_V,2,3,"th",4),i.YNc(5,bV,4,8,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,AV,3,3,"th",7),i.YNc(8,yV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,MV,3,3,"th",7),i.YNc(11,wV,3,2,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,CV,3,3,"th",12),i.YNc(14,vV,2,2,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,TV,3,3,"th",7),i.YNc(17,xV,2,1,"td",10),i.BQk(),i.YNc(18,SV,1,0,"tr",14),i.YNc(19,EV,2,5,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,DV,3,3,"perun-web-apps-alert",16),i.YNc(21,HV,3,3,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},directives:[os,Zs,ps,ds,cs,us,tc,ls,hs,S1,vr,vv,$s,Qs,Js,Xs,w.O5,Nn],pipes:[_v,gV,lt],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})();function kV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function PV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function RV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(3);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function OV(n,a){if(1&n&&(i.YNc(0,PV,1,0,"mat-spinner",3),i.YNc(1,RV,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function IV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function BV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(4);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function NV(n,a){if(1&n&&(i.YNc(0,IV,1,0,"mat-spinner",3),i.YNc(1,BV,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(3);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function VV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",6),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw(2).getMemberData(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.qZA(),i.YNc(6,NV,2,2,"ng-template",7),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.AsE(" ",i.lcZ(4,2,i.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function zV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-accordion"),i.TgZ(1,"mat-expansion-panel",6),i.NdJ("opened",function(){return i.CHM(e),i.oxw().getUserData()}),i.TgZ(2,"mat-expansion-panel-header"),i.TgZ(3,"mat-panel-title"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA(),i.YNc(7,OV,2,2,"ng-template",7),i.qZA(),i.YNc(8,VV,7,6,"mat-expansion-panel",8),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.hij(" ",i.lcZ(5,2,i.lcZ(6,4,"PRIVACY.USER_INFO"))," "),i.xp6(4),i.Q6J("ngForOf",e.filteredVos)}}let FV=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=l,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 uA).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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(Mt),i.Y36(ni),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,kV,1,0,"mat-spinner",3),i.YNc(9,zV,9,6,"mat-accordion",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,i.lcZ(3,6,"PRIVACY.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,8,i.lcZ(7,10,"SERVICES.FILTER"))),i.xp6(3),i.Q6J("ngIf",t.outerLoading),i.xp6(1),i.Q6J("ngIf",!t.outerLoading))},directives:[pf,w.O5,Ln,BA,D1,H1,IA,E1,LV,w.sg],pipes:[lt,si],styles:[""]}),n})(),jV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],styles:[""]}),n})(),Ev=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[$l,w.ez]]}),n})(),GV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),tz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[GV,ht],ht]}),n})(),uz=(()=>{class n{constructor(){this.changes=new He.xQ,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"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fz={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[Zr],useFactory:function pz(n){return()=>n.scrollStrategies.reposition()}};let Pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[uz,fz],imports:[[w.ez,ns,zc,w0,Tl,ht],xa]}),n})(),Mz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,dd,ns,C1,$l,b1,Ru]]}),n})(),Rv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cm,ht],cm,ht]}),n})(),vz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Cl]]}),n})(),Ov=(()=>{class n{constructor(){this.changes=new He.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Oz={provide:Ov,deps:[[new i.FiY,new i.tp0,Ov]],useFactory:function Rz(n){return n||new Ov}};let eD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Oz,Qc],imports:[[ht,w.ez,Tl,ns,vz,$l,ii],ht]}),n})(),Iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Rv,pv,Sv,ns,XE,C1,$l,wA,pp,b1,Ws,_1,Qa,Jp,dd,eD,Pv,No,hv,gv,h1,tv,OA,W,Ru,hd,ii],Rv,pv,Sv,ns,XE,C1,$l,wA,pp,b1,Ws,_1,Qa,Jp,dd,eD,Pv,No,hv,gv,h1,tv,OA,W,Ru,hd,ii]}),n})(),Bz=(()=>{class n extends sm{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Nz={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 tD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ra,useClass:Bz},{provide:lu,useValue:Nz}],imports:[[w.ez,C1,wA,Jp,UR,OR,Ap,Os,OA,W,b1,Ev,$l,h1,ns,Ru,Ws,dd,_1,ii,Jx,sS,tz,Pv,pS,du,hd,Mz,Qa,pp,Yx,Iz]]}),n})();function Vz(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function zz(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Fz(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyNameParameter)}}function jz(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function qz(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.value)}}function Yz(n,a){1&n&&i._UZ(0,"th",16)}function Wz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"button",20),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().resetPassword(l.friendlyNameParameter)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function Uz(n,a){1&n&&i._UZ(0,"th",16)}function Gz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"button",21),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().changePassword(l)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function Zz(n,a){1&n&&i._UZ(0,"tr",22)}function $z(n,a){1&n&&i._UZ(0,"tr",23)}let Jz=(()=>{class n{constructor(e,t,r,l,d,s){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=l,this.router=d,this.otherApplicationService=s,this.logins=[],this.displayedColumns=["namespace","value","reset","change"],this.nameSpaces=[]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(e=>{const t=this.nameSpaces.map(d=>{const s=d.split(":");return s[s.length-1]});this.logins=e.filter(d=>t.includes(d.friendlyNameParameter)),this.dataSource=new qo(e);const l=this.route.snapshot.queryParamMap.get("namespace");if(l){const d=this.logins.find(s=>s.friendlyNameParameter===l);d&&this.changePassword(d)}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",e),"_blank")}changePassword(e){this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=Pi();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(pL,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ni),i.Y36(zt),i.Y36(Ji),i.Y36(nr),i.Y36(rt),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-reset"]],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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,Vz,4,5,"perun-web-apps-alert",1),i.TgZ(5,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"div",4),i.TgZ(8,"table",5),i.ynx(9,6),i.YNc(10,zz,4,5,"th",7),i.YNc(11,Fz,2,1,"td",8),i.BQk(),i.ynx(12,9),i.YNc(13,jz,4,5,"th",7),i.YNc(14,qz,2,1,"td",10),i.BQk(),i.ynx(15,11),i.YNc(16,Yz,1,0,"th",7),i.YNc(17,Wz,5,6,"td",12),i.BQk(),i.ynx(18,13),i.YNc(19,Uz,1,0,"th",7),i.YNc(20,Gz,5,6,"td",12),i.BQk(),i.YNc(21,Zz,1,0,"tr",14),i.YNc(22,$z,1,0,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.logins.length),i.xp6(4),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns))},directives:[w.O5,Nn,Zs,ps,ds,cs,us,ls,hs,Pt,$s,Qs,Js,Xs],pipes:[lt,si],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),n})();function pF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function fF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function mF(n,a){if(1&n&&(i.TgZ(0,"div",13),i._UZ(1,"img",14),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("src",e.newImage,i.LSH)}}function gF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let bF=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=l,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){var t,r,l;const d=null!==(r=null===(t=e.dataTransfer)||void 0===t?void 0:t.files[0])&&void 0!==r?r:null===(l=e.target)||void 0===l?void 0:l.files[0],o=new FileReader;d.type.match(/image-*/)?(o.onload=this._handleReaderLoaded.bind(this),this.imageType=d.type,o.readAsDataURL(d)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const l=()=>{d(t.result).then(s=>{r>50&&s.length>6144?(r-=10,l()):(this.newImage=s,this.imgTooLong=this.newImage.length>=6144)}).catch(s=>console.error(s))},d=s=>new Promise((o,c)=>{const u=new Image;u.src=s,u.onload=()=>{const h=document.createElement("canvas");let f=u.width,b=u.height;f>b?f>r&&(b*=r/f,f=r):b>r&&(f*=r/b,b=r),h.width=f,h.height=b;const V=h.getContext("2d");V.drawImage(u,0,0,f,b);const ee=V.canvas.toDataURL();o(ee)},u.onerror=h=>c(h)});l()}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 c(f,b,V,ee){ee.beginPath(),ee.rect(20*f,20*b,20,20),ee.fillStyle="rgb("+V.join(",")+")",ee.fill()}this.newImage=function h(){const f=function o(){const f=document.createElement("canvas");f.width=100,f.height=100;const b=f.getContext("2d");return b.beginPath(),b.rect(0,0,100,100),b.fillStyle="#FFFFFF",b.fill(),f}(),b=f.getContext("2d"),V=function u(){const f=[];for(let b=0;b<3;b++){const V=Math.floor(256*Math.random()),ee=Math.max(120,V),he=Math.min(200,ee);f.push(he)}return f}();for(let ee=0;ee({disableToggleValue:!1})});let TF=0;const xF={provide:Zn,useExisting:(0,i.Gpc)(()=>rD),multi:!0};class SF{constructor(a,e){this.source=a,this.checked=e}}const EF=Nl(Bo(na(ts(class{constructor(n){this._elementRef=n}}))));let rD=(()=>{class n extends EF{constructor(e,t,r,l,d,s){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=d,this._onChange=o=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++TF,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(l)||0,this.color=this.defaultColor=d.color||"accent",this._noopAnimations="NoopAnimations"===s}get required(){return this._required}set required(e){this._required=je(e)}get checked(){return this._checked}set checked(e){this._checked=je(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_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()}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new SF(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Rr),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(vF),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&(i.Gf(AF,5),i.Gf(yF,5),i.Gf(MF,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._thumbEl=r.first),i.iGM(r=i.CRH())&&(t._thumbBarEl=r.first),i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.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",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"},exportAs:["matSlideToggle"],features:[i._Bn([xF]),i.qOj],ngContentSelectors:CF,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2,3),i.TgZ(4,"input",4,5),i.NdJ("change",function(l){return t._onChangeEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(6,"span",6,7),i._UZ(8,"span",8),i.TgZ(9,"span",9),i._UZ(10,"span",10),i.qZA(),i.qZA(),i.qZA(),i.TgZ(11,"span",11,12),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(13,"span",13),i._uU(14,"\xa0"),i.qZA(),i.Hsn(15),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(12);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(2),i.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),i.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(5),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,wF,t._noopAnimations?0:150))}},directives:[Gn,Oh],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.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;-moz-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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),n})(),aD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),LF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[aD,ii,ht,Wd],aD,ht]}),n})();const kF=["toggle"];function PF(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"img",12),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("src",e.imageSrc,i.LSH)}}function RF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"h1",2),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.YNc(9,PF,2,1,"div",9),i.TgZ(10,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddImg()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onDeleteImg()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,6,i.lcZ(4,8,"AUTHENTICATION.TITLE"))),i.xp6(4),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO"))),i.xp6(3),i.Q6J("ngIf",e.imageSrc&&e.imageSrc.length),i.xp6(2),i.hij(" ",i.lcZ(12,14,i.lcZ(13,16,"AUTHENTICATION.NEW_IMG"))," "),i.xp6(3),i.Q6J("disabled",!e.imgAtt||!e.imgAtt.value),i.xp6(1),i.hij(" ",i.lcZ(16,18,i.lcZ(17,20,"AUTHENTICATION.DELETE_IMG"))," ")}}function OF(n,a){1&n&&i._UZ(0,"mat-spinner",13)}let IF=(()=>{class n{constructor(e,t,r,l,d,s,o){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=l,this.oauthService=d,this.authService=s,this.notificatorService=o,this.imageSrc="",this.mfaUrl="",this.mfaAvailable=!1,this.mfaApiUrl="",this.loadingMfa=!1,this.loadingImg=!1,this.saveImgSuccess="",this.removeImgSuccess="",l.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(c=>this.removeDialogDescription=c),l.get("AUTHENTICATION.SAVE_IMG_SUCCESS").subscribe(c=>this.saveImgSuccess=c),l.get("AUTHENTICATION.REMOVE_IMG_SUCCESS").subscribe(c=>this.removeImgSuccess=c)}ngAfterViewInit(){this.toggle.change.subscribe(e=>{this.reAuthenticate(e.checked)})}ngOnInit(){this.loadingMfa=!0,this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(e=>this.removeDialogDescription=e),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang)}),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang),this.mfaApiUrl=this.store.get("mfa","api_url"),fetch(this.mfaApiUrl+"mfaAvailable",{method:"GET",headers:{Authorization:"Bearer "+this.oauthService.getIdToken()}}).then(e=>e.text()).then(e=>{this.mfaAvailable="true"===e,this.mfaAvailable?this.loadMfa():this.loadingMfa=!1}).catch(e=>{console.error(e),this.loadingMfa=!1}),this.displayImageBlock=this.store.get("mfa","enable_security_image"),this.displayImageBlock&&this.loadImage()}onAddImg(){const e=Pi();e.width="500px",e.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(bF,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.saveImgSuccess),this.loadImage())})}reAuthenticate(e){sessionStorage.setItem("enforce_mfa",e.toString()),sessionStorage.setItem("mfa_route","/profile/settings/auth"),localStorage.removeItem("refresh_token"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}enableMfa(e){const t=this.oauthService.getIdToken(),l=`${this.mfaApiUrl}mfaEnforced`,d=`value=${String(e)}`;return fetch(l,{method:"PUT",body:d,headers:{Authorization:`Bearer ${t}`}})}onDeleteImg(){const e=Pi();e.width="600px",e.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(VA,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.removeImgSuccess),this.loadImage())})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}loadImage(){this.loadingImg=!0;const e=this.store.get("mfa","security_image_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe(t=>{t?(this.imgAtt=t,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(r=>{this.imgAtt=r}),this.loadingImg=!1},t=>{console.error(t),this.loadingImg=!1})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");this.enableMfa("true"===t).then(r=>{r.ok&&"true"===t&&this.toggle.toggle(),this.loadingMfa=!1}).catch(r=>{console.error(r),this.loadingMfa=!1})}else{const t=this.store.get("mfa","enforce_mfa_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(r=>{r.value&&this.toggle.toggle(),this.loadingMfa=!1},r=>{console.error(r),this.loadingMfa=!1})}sessionStorage.getItem("mfa_route")&&(sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36(ni),i.Y36(zt),i.Y36(li),i.Y36(fp.Ct),i.Y36(ka),i.Y36(Tr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&i.Gf(kF,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:19,vars:23,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["matTooltipPosition","right",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"disabled"],["toggle",""],["mat-flat-button","","color","accent",1,"mt-3",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"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,RF,18,22,"div",1),i.TgZ(2,"h1",2),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"span",3),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.TgZ(9,"mat-slide-toggle",4,5),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.qZA(),i._UZ(14,"br"),i.TgZ(15,"button",6),i.NdJ("click",function(){return t.redirectToMfa()}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.qZA(),i.YNc(18,OF,1,0,"mat-spinner",7)),2&e&&(i.Q6J("hidden",t.loadingMfa||t.loadingImg),i.xp6(1),i.Q6J("ngIf",t.displayImageBlock),i.xp6(2),i.Oqu(i.lcZ(4,9,i.lcZ(5,11,"AUTHENTICATION.MFA"))),i.xp6(3),i.Q6J("matTooltip",i.lcZ(7,13,i.lcZ(8,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),i.xp6(3),i.Q6J("disabled",!t.mfaAvailable),i.xp6(2),i.Oqu(i.lcZ(12,17,i.lcZ(13,19,"AUTHENTICATION.MFA_TOGGLE"))),i.xp6(5),i.hij(" ",i.lcZ(17,21,"AUTHENTICATION.MFA_INFO")," "),i.xp6(2),i.Q6J("ngIf",t.loadingMfa||t.loadingImg))},directives:[w.O5,Pt,vr,rD,Ln],pipes:[lt,si],styles:[""]}),n})(),BF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ns,$l,Os,tD,Ap,Ws,dd,_1,Ev]]}),n})(),NF=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ka),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[Pt,bn],pipes:[lt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function VF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let zF=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Cr(null,[Dn.required]),this.passwordCtrl=new Cr(null,[Dn.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Wi))},n.\u0275cmp=i.Xpm({type:n,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"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,VF,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4),i.TgZ(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",4),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA(),i.qZA(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[w.O5,Nn,mn,rs,Hn,nn,Nr,_n,ss,Fl,Pt,bn],pipes:[lt],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}"]}),n})(),FF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],styles:[""]}),n})();function jF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function qF(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function YF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",5),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",6),i._uU(6),i.qZA(),i.TgZ(7,"div"),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"ul"),i.YNc(12,qF,2,1,"li",7),i.qZA(),i.qZA(),i.TgZ(13,"div",0),i.TgZ(14,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().rejectConsent()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().grantConsent()}),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),i.xp6(4),i.Oqu(e.consent.consentHub.name),i.xp6(2),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),i.xp6(4),i.Q6J("ngForOf",e.consent.attributes),i.xp6(3),i.hij(" ",i.lcZ(16,14,i.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),i.xp6(4),i.hij(" ",i.lcZ(20,18,i.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let WF=(()=>{class n{constructor(e,t,r,l,d,s){this.notificator=e,this.translate=t,this.consentService=r,this.route=l,this.apiRequest=d,this.router=s,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(r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},r=>{this.loading=!1;const l=r.error;"ConsentNotExistsException"!==l.name&&this.notificator.showRPCError(l),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(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Tr),i.Y36(li),i.Y36(Ei),i.Y36(nr),i.Y36(dA),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,jF,1,0,"mat-spinner",2),i.YNc(3,YF,22,22,"div",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,Ln,w.sg,Pt],pipes:[lt,si],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),n})();function UF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",1),i._uU(2,"priority_high"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function GF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",1),i._uU(2,"close"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function ZF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",2),i._uU(2,"check"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let $F=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&(i.YNc(0,UF,7,5,"span",0),i.YNc(1,GF,7,5,"span",0),i.YNc(2,ZF,7,5,"span",0)),2&e&&(i.Q6J("ngIf","UNSIGNED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","REVOKED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","GRANTED"===t.consentStatus))},directives:[w.O5,bn],pipes:[lt,si],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();function JF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function QF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.isSelected(e))}}function XF(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function KF(n,a){if(1&n&&(i.TgZ(0,"td",20),i._UZ(1,"perun-web-apps-consent-status",21),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("consentStatus",e.status)}}function ej(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function tj(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.consentHub.name," ")}}function ij(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function nj(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function rj(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function aj(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function sj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().rejectConsent.emit(r.id)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}if(2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,i.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 oj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().grantConsent.emit(r.id)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function lj(n,a){if(1&n&&(i.TgZ(0,"td",20),i.TgZ(1,"div",22),i.TgZ(2,"div",23),i.YNc(3,ij,4,5,"div",24),i.YNc(4,nj,4,5,"div",24),i.YNc(5,rj,4,5,"div",24),i.TgZ(6,"ul"),i.YNc(7,aj,2,1,"li",25),i.qZA(),i.TgZ(8,"div",26),i.YNc(9,sj,4,5,"button",27),i.YNc(10,oj,4,5,"button",28),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.uIk("colspan",t.displayedColumns.length),i.xp6(1),i.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),i.xp6(2),i.Q6J("ngIf","GRANTED"===e.status),i.xp6(1),i.Q6J("ngIf","REVOKED"===e.status),i.xp6(1),i.Q6J("ngIf","UNSIGNED"===e.status),i.xp6(2),i.Q6J("ngForOf",e.attributes),i.xp6(2),i.Q6J("ngIf","REVOKED"!==e.status),i.xp6(1),i.Q6J("ngIf","GRANTED"!==e.status)}}function cj(n,a){1&n&&i._UZ(0,"tr",31)}function dj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.expandedConsent=d.expandedConsent===l?null:l}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("example-expanded-row",t.expandedConsent===e)}}function uj(n,a){1&n&&i._UZ(0,"tr",33)}function hj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function pj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const fj=function(){return["expandedDetail"]};let mj=(()=>{class n{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new tn(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new i.vpe,this.rejectConsent=new i.vpe,this.pageSizeOptions=tf}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 qo(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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 n.\u0275fac=function(e){return new(e||n)(i.Y36(zC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[i.TTD],decls:19,vars:11,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["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"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,JF,2,2,"th",4),i.YNc(5,QF,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,XF,4,5,"th",7),i.YNc(8,KF,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,ej,4,5,"th",7),i.YNc(11,tj,2,1,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,lj,11,8,"td",8),i.BQk(),i.YNc(14,cj,1,0,"tr",11),i.YNc(15,dj,1,2,"tr",12),i.YNc(16,uj,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,hj,4,5,"perun-web-apps-alert",14),i.YNc(18,pj,4,5,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(12),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",i.DdM(10,fj)),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},directives:[os,Zs,ps,ds,cs,us,tc,ls,hs,S1,$F,w.O5,w.sg,Pt,$s,Qs,Js,Xs,Nn],pipes:[lt,si],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:[wi("detailExpand",[Nt("collapsed",Re({height:"0px",minHeight:"0"})),Nt("expanded",Re({height:"*"})),Ht("expanded <=> collapsed",Ct("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const sD=function(){return["status","name"]};function gj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilterUnsigned(r)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",6),i.NdJ("grantConsent",function(r){return i.CHM(e),i.oxw().grantConsent(r)})("rejectConsent",function(r){return i.CHM(e),i.oxw().rejectConsent(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",i.DdM(14,sD))}}function _j(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",7),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilterSigned(r)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",8),i.NdJ("grantConsent",function(r){return i.CHM(e),i.oxw().grantConsent(r)})("rejectConsent",function(r){return i.CHM(e),i.oxw().rejectConsent(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",i.DdM(14,sD))}}function bj(n,a){1&n&&i._UZ(0,"mat-spinner",9)}function yj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"button",3),i.NdJ("click",function(){const l=i.CHM(e).ngIf;return i.oxw().openPwdReset(!l.exists)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.ngIf;i.xp6(2),i.hij(" ",i.lcZ(3,1,i.lcZ(4,3,e.exists?"LOCAL_ACCOUNT.CHANGE_PWD":"LOCAL_ACCOUNT.ACTIVATE"))," ")}}const Mj=function(n){return{exists:n}},wj=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:NF},{path:"service-access",component:zF},{path:"profile",component:jV,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:MO,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:KO,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:II,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:WB,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:n3,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:FV,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:FF,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.notificator=t,this.translate=r,this.storeService=l,this.consentService=d,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(()=>{var t;const r=null!==(t=this.unsignedConsents.find(d=>d.id===e))&&void 0!==t?t:this.signedConsents.find(d=>d.id===e);this.moveConsent(r);const l=this.translate.instant("GRANTED"===r.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");r.status="REVOKED",this.notificator.showSuccess(l+r.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(()=>{var t;const r=null!==(t=this.unsignedConsents.find(l=>l.id===e))&&void 0!==t?t:this.signedConsents.find(l=>l.id===e);this.moveConsent(r),r.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+r.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(Tr),i.Y36(li),i.Y36(zt),i.Y36(Ei))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,gj,9,15,"div",2),i.YNc(6,_j,9,15,"div",2),i.YNc(7,bj,1,0,"mat-spinner",3),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,i.lcZ(3,6,"CONSENTS.TITLE")),"\n"),i.xp6(4),i.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[w.O5,pf,mj,Ln],pipes:[lt,si],styles:[""]}),n})(),data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:WF,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:r3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:v3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:w3,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:IF,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:IN,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class n{constructor(e,t,r){this.userService=e,this.store=t,this.appUrlService=r,this.namespace=this.store.get("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.store.getPerunPrincipal().userId,this.namespace)}openPwdReset(e){let t=this.appUrlService.getUrlForOtherApplication("pwdReset",this.namespace);t+="&"+(e?"activation":"reset")+"=true",window.open(t,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(zt),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,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"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,yj,5,5,"div",2),i.ALo(9,"async")),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,7,i.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),i.xp6(3),i.Q6J("ngIf",i.VKq(13,Mj,i.lcZ(9,11,t.loginExists$))))},directives:[w.O5,Pt],pipes:[lt,si,w.Ov],styles:[""]}),n})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:qN,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:tV,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:sV,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:dV,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:mV,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:Jz,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Cj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Os.forRoot(wj,{preloadingStrategy:kt,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]]}),n})();class vj{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 Tj=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function xj(n){return[oa(tinycolor(n).lighten(52),"50"),oa(tinycolor(n).lighten(37),"100"),oa(tinycolor(n).lighten(26),"200"),oa(tinycolor(n).lighten(12),"300"),oa(tinycolor(n).lighten(6),"400"),oa(tinycolor(n),"500"),oa(tinycolor(n).darken(6),"600"),oa(tinycolor(n).darken(12),"700"),oa(tinycolor(n).darken(18),"800"),oa(tinycolor(n).darken(24),"900"),oa(tinycolor(n).lighten(50).saturate(30),"A100"),oa(tinycolor(n).lighten(30).saturate(30),"A200"),oa(tinycolor(n).lighten(10).saturate(15),"A400"),oa(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const o=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(o,c)}}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=>{var r;this.storeService.setInstanceConfig(t);const l=document.location.hostname;(null===(r=null==t?void 0:t.brandings)||void 0===r?void 0:r[l])&&this.storeService.setBanding(l),e()},()=>{e()})})}getNoCacheHeaders(){return new M.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.get("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.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt),i.LFG(Wi),i.LFG(it),i.LFG(Dt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oa(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let Sj=(()=>{class n{constructor(e,t,r){this.initAuthService=e,this.appConfigService=t,this.location=r,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-link-active",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 console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(VC),i.LFG(Tj),i.LFG(w.Ye))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[nv]]}),n})(),J4=(()=>{class n{constructor(e,t){(0,w.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Ks,useValue:Object.assign(Object.assign({},rv),e)},{provide:av,useValue:t,multi:!0},{provide:cf,useValue:!0}]:[{provide:Ks,useValue:Object.assign(Object.assign({},rv),e)},{provide:av,useValue:t,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(cf),i.LFG(i.Lbi))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[GE,IS,fD],GE,IS,fD]}),n})();const Q4=new i.OlP("perun-api-service"),X4={provide:M.TP,useExisting:(0,i.Gpc)(()=>Zx),multi:!0};function K4(n){return new vj(n,"./assets/i18n/",".json")}function eq(n){const a={basePath:n.get("api_url")};return new Xe(a)}const tq=n=>()=>n.initialize();let iq=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Gx),i.LFG(li))},n.\u0275mod=i.oAB({type:n,bootstrap:[QP]}),n.\u0275inj=i.cJS({providers:[Gx,{provide:i.ip1,useFactory:tq,multi:!0,deps:[Sj]},{provide:Xe,useFactory:eq,deps:[zt]},uA,Zx,X4,{provide:Q4,useClass:T2},it],imports:[[ue,I_,M.JF,Ap.forRoot({loader:{provide:gu,useFactory:K4,deps:[M.eN]}}),Cj,$l,hv,gv,Os,ns,J4,tv,tD,Ev,Sv,Ws,hd,pp,wA,_1,dd,C1,W,b1,OA,Rv,sS,Jx,pI,ii,Ru,LF,pS,Jp,BF,Yx,h1,fp.zr.forRoot()]]}),n})();(0,i.G48)(),Fr().bootstrapModule(iq).catch(n=>console.error(n))},1302:function(Y,U,x){var w;!function(i,E){var T={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=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 T(ie,ce,ne,de,me){for(var Ne,ze,Je,vt,Rt,Qe,Yi,St,yt,fe,Ae,Ce,Me;me>=64;){for(Ne=ce[0],ze=ce[1],Je=ce[2],vt=ce[3],Rt=ce[4],Qe=ce[5],Yi=ce[6],St=ce[7],fe=0;fe<16;fe++)ie[fe]=(255&ne[Ae=de+4*fe])<<24|(255&ne[Ae+1])<<16|(255&ne[Ae+2])<<8|255&ne[Ae+3];for(fe=16;fe<64;fe++)ie[fe]=((Ce=((yt=ie[fe-2])>>>17|yt<<15)^(yt>>>19|yt<<13)^yt>>>10)+ie[fe-7]|0)+((Me=((yt=ie[fe-15])>>>7|yt<<25)^(yt>>>18|yt<<14)^yt>>>3)+ie[fe-16]|0);for(fe=0;fe<64;fe++)Ce=(((Rt>>>6|Rt<<26)^(Rt>>>11|Rt<<21)^(Rt>>>25|Rt<<7))+(Rt&Qe^~Rt&Yi)|0)+(St+(E[fe]+ie[fe]|0)|0)|0,Me=((Ne>>>2|Ne<<30)^(Ne>>>13|Ne<<19)^(Ne>>>22|Ne<<10))+(Ne&ze^Ne&Je^ze&Je)|0,St=Yi,Yi=Qe,Qe=Rt,Rt=vt+Ce|0,vt=Je,Je=ze,ze=Ne,Ne=Ce+Me|0;ce[0]+=Ne,ce[1]+=ze,ce[2]+=Je,ce[3]+=vt,ce[4]+=Rt,ce[5]+=Qe,ce[6]+=Yi,ce[7]+=St,de+=64,me-=64}return de}var S=function(){function ie(){this.digestLength=i.digestLength,this.blockSize=i.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 ie.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},ie.prototype.clean=function(){for(var ce=0;ce0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;64===this.bufferLength&&(T(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(de=T(this.temp,this.state,ce,de,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;return this},ie.prototype.finish=function(ce){if(!this.finished){var ne=this.bytesHashed,de=this.bufferLength,me=ne/536870912|0,Ne=ne<<3,ze=ne%64<56?64:128;this.buffer[de]=128;for(var Je=de+1;Je>>24&255,this.buffer[ze-7]=me>>>16&255,this.buffer[ze-6]=me>>>8&255,this.buffer[ze-5]=me>>>0&255,this.buffer[ze-4]=Ne>>>24&255,this.buffer[ze-3]=Ne>>>16&255,this.buffer[ze-2]=Ne>>>8&255,this.buffer[ze-1]=Ne>>>0&255,T(this.temp,this.state,this.buffer,0,ze),this.finished=!0}for(Je=0;Je<8;Je++)ce[4*Je+0]=this.state[Je]>>>24&255,ce[4*Je+1]=this.state[Je]>>>16&255,ce[4*Je+2]=this.state[Je]>>>8&255,ce[4*Je+3]=this.state[Je]>>>0&255;return this},ie.prototype.digest=function(){var ce=new Uint8Array(this.digestLength);return this.finish(ce),ce},ie.prototype._saveState=function(ce){for(var ne=0;nethis.blockSize)(new S).update(ce).finish(ne).clean();else for(var de=0;de1&&ce.update(ie),ne&&ce.update(ne),ce.update(de),ce.finish(ie),de[0]++}i.HMAC=L,i.hash=R,i.default=R,i.hmac=N;var q=new Uint8Array(i.digestLength);i.hkdf=function $(ie,ce,ne,de){void 0===ce&&(ce=q),void 0===de&&(de=32);for(var me=new Uint8Array([1]),Ne=N(ce,ie),ze=new L(Ne),Je=new Uint8Array(ze.digestLength),vt=Je.length,Rt=new Uint8Array(de),Qe=0;Qe>>24&255,ze[1]=Yi>>>16&255,ze[2]=Yi>>>8&255,ze[3]=Yi>>>0&255,me.reset(),me.update(ce),me.update(ze),me.finish(vt);for(var St=0;St=$.status}function L(q){try{q.dispatchEvent(new MouseEvent("click"))}catch(X){var $=document.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),q.dispatchEvent($)}}var R="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,N=R.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),j=R.saveAs||("object"!=typeof window||window!==R?function(){}:"download"in HTMLAnchorElement.prototype&&!N?function(q,$,X){var ie=R.URL||R.webkitURL,ce=document.createElement("a");ce.download=$=$||q.name||"download",ce.rel="noopener","string"==typeof q?(ce.href=q,ce.origin===location.origin?L(ce):S(ce.href)?T(q,$,X):L(ce,ce.target="_blank")):(ce.href=ie.createObjectURL(q),setTimeout(function(){ie.revokeObjectURL(ce.href)},4e4),setTimeout(function(){L(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(q,$,X){if($=$||q.name||"download","string"!=typeof q)navigator.msSaveOrOpenBlob(function E(q,$){return void 0===$?$={autoBom:!1}:"object"!=typeof $&&(console.warn("Deprecated: Expected third argument to be a object"),$={autoBom:!$}),$.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(q.type)?new Blob(["\ufeff",q],{type:q.type}):q}(q,X),$);else if(S(q))T(q,$,X);else{var ie=document.createElement("a");ie.href=q,ie.target="_blank",setTimeout(function(){L(ie)})}}:function(q,$,X,ie){if((ie=ie||open("","_blank"))&&(ie.document.title=ie.document.body.innerText="downloading..."),"string"==typeof q)return T(q,$,X);var ce="application/octet-stream"===q.type,ne=/constructor/i.test(R.HTMLElement)||R.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||ce&&ne||N)&&"undefined"!=typeof FileReader){var me=new FileReader;me.onloadend=function(){var Je=me.result;Je=de?Je:Je.replace(/^data:[^;]*;/,"data:attachment/file;"),ie?ie.location.href=Je:location=Je,ie=null},me.readAsDataURL(q)}else{var Ne=R.URL||R.webkitURL,ze=Ne.createObjectURL(q);ie?ie.location=ze:location.href=ze,ie=null,setTimeout(function(){Ne.revokeObjectURL(ze)},4e4)}});R.saveAs=j.saveAs=j,Y.exports=j}.apply(U,[]))&&(Y.exports=i)},1158:(Y,U,x)=>{(Y.exports=x(7867)).tz.load(x(1128))},7867:function(Y,U,x){var w,i,E;!function(T,S){"use strict";Y.exports?Y.exports=S(x(5439)):(i=[x(5439)],void 0!==(E="function"==typeof(w=S)?w.apply(U,i):w)&&(Y.exports=E))}(0,function(T){"use strict";void 0===T.version&&T.default&&(T=T.default);var $,L={},R={},N={},j={},q={};(!T||"string"!=typeof T.version)&&pi("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var X=T.version.split("."),ie=+X[0],ce=+X[1];function ne(ue){return ue>96?ue-87:ue>64?ue-29:ue-48}function de(ue){var Le=0,_e=ue.split("."),We=_e[0],Ue=_e[1]||"",it=1,Te=0,ae=1;for(45===ue.charCodeAt(0)&&(Le=1,ae=-1);Le= 2.6.0. You are using Moment.js "+T.version+". See momentjs.com"),vt.prototype={_set:function(ue){this.name=ue.name,this.abbrs=ue.abbrs,this.untils=ue.untils,this.offsets=ue.offsets,this.population=ue.population},_index:function(ue){var We,Le=+ue,_e=this.untils;for(We=0;We<_e.length;We++)if(Le<_e[We])return We},countries:function(){var ue=this.name;return Object.keys(N).filter(function(Le){return-1!==N[Le].zones.indexOf(ue)})},parse:function(ue){var it,Qt,Te,ae,Le=+ue,_e=this.offsets,We=this.untils,Ue=We.length-1;for(ae=0;aeTe&&Ut.moveInvalidForward&&(it=Te),Le3){var Le=j[ge(ue)];if(Le)return Le;pi("Moment Timezone found "+ue+" from the Intl api, but did not have that data loaded.")}}catch(oe){}var Qt,Te,ae,_e=function yt(){var We,Ue,it,ue=(new Date).getFullYear()-2,Le=new Qe(new Date(ue,0,1)),_e=[Le];for(it=1;it<48;it++)(Ue=new Qe(new Date(ue,it,1))).offset!==Le.offset&&(We=St(Le,Ue),_e.push(We),_e.push(new Qe(new Date(We.at+6e4)))),Le=Ue;for(it=0;it<4;it++)_e.push(new Qe(new Date(ue+it,0,1))),_e.push(new Qe(new Date(ue+it,6,1)));return _e}(),We=_e.length,Ue=function Ce(ue){var Ue,it,Qt,Le=ue.length,_e={},We=[];for(Ue=0;Ue0?it[0].zone.name:void 0}()),$},Ut.names=function Ci(){var ue,Le=[];for(ue in j)j.hasOwnProperty(ue)&&(L[ue]||L[R[ue]])&&j[ue]&&Le.push(j[ue]);return Le.sort()},Ut.Zone=vt,Ut.unpack=Je,Ut.unpackBase60=de,Ut.needsOffset=sn,Ut.moveInvalidForward=!0,Ut.moveAmbiguousForward=!1,Ut.countries=function st(){return Object.keys(N)},Ut.zonesForCountry=function Ke(ue,Le){if(!(ue=function yi(ue){return ue=ue.toUpperCase(),N[ue]||null}(ue)))return null;var _e=ue.zones.sort();return Le?_e.map(function(We){return{name:We,offset:Lt(We).utcOffset(new Date)}}):_e};var on=T.fn;function la(ue){return function(){return this._z?this._z.abbr(this):ue.call(this)}}function ca(ue){return function(){return this._z=null,ue.apply(this,arguments)}}T.tz=Ut,T.defaultZone=null,T.updateOffset=function(ue,Le){var We,_e=T.defaultZone;if(void 0===ue._z&&(_e&&sn(ue)&&!ue._isUTC&&(ue._d=T.utc(ue._a)._d,ue.utc().add(_e.parse(ue),"minutes")),ue._z=_e),ue._z)if(We=ue._z.utcOffset(ue),Math.abs(We)<16&&(We/=60),void 0!==ue.utcOffset){var Ue=ue._z;ue.utcOffset(-We,Le),ue._z=Ue}else ue.zone(We,Le)},on.tz=function(ue,Le){if(ue){if("string"!=typeof ue)throw new Error("Time zone name must be a string, got "+ue+" ["+typeof ue+"]");return this._z=Lt(ue),this._z?T.updateOffset(this,Le):pi("Moment Timezone has no data for "+ue+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},on.zoneName=la(on.zoneName),on.zoneAbbr=la(on.zoneAbbr),on.utc=ca(on.utc),on.local=ca(on.local),on.utcOffset=function Fr(ue){return function(){return arguments.length>0&&(this._z=null),ue.apply(this,arguments)}}(on.utcOffset),T.tz.setDefault=function(ue){return(ie<2||2===ie&&ce<9)&&pi("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+T.version+"."),T.defaultZone=ue?Lt(ue):null,T};var Pn=T.momentProperties;return"[object Array]"===Object.prototype.toString.call(Pn)?(Pn.push("_z"),Pn.push("_a")):Pn&&(Pn._z=null),T})},7088:function(Y,U,x){!function(w){"use strict";w.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(E){return/^nm$/i.test(E)},meridiem:function(E,T,S){return E<12?S?"vm":"VM":S?"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(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(Y,U,x){!function(w){"use strict";var i=function(R){return 0===R?0:1===R?1:2===R?2:R%100>=3&&R%100<=10?3:R%100>=11?4:5},E={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"]},T=function(R){return function(N,j,q,$){var X=i(N),ie=E[R][i(N)];return 2===X&&(ie=ie[j?0:1]),ie.replace(/%d/i,N)}},S=["\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"];w.defineLocale("ar-dz",{months:S,monthsShort:S,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(R){return"\u0645"===R},meridiem:function(R,N,j){return R<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:T("s"),ss:T("s"),m:T("m"),mm:T("m"),h:T("h"),hh:T("h"),d:T("d"),dd:T("d"),M:T("M"),MM:T("M"),y:T("y"),yy:T("y")},postformat:function(R){return R.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},4519:function(Y,U,x){!function(w){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(N){return 0===N?0:1===N?1:2===N?2:N%100>=3&&N%100<=10?3:N%100>=11?4:5},T={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"]},S=function(N){return function(j,q,$,X){var ie=E(j),ce=T[N][E(j)];return 2===ie&&(ce=ce[q?0:1]),ce.replace(/%d/i,j)}},L=["\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"];w.defineLocale("ar-ly",{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(N){return"\u0645"===N},meridiem:function(N,j,q){return N<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:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(N){return N.replace(/\u060c/g,",")},postformat:function(N){return N.replace(/\d/g,function(j){return i[j]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},7642:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};w.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(S){return"\u0645"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},7038:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},T=function(j){return 0===j?0:1===j?1:2===j?2:j%100>=3&&j%100<=10?3:j%100>=11?4:5},S={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(j){return function(q,$,X,ie){var ce=T(q),ne=S[j][T(q)];return 2===ce&&(ne=ne[$?0:1]),ne.replace(/%d/i,q)}},R=["\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"];w.defineLocale("ar",{months:R,monthsShort:R,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(j){return"\u0645"===j},meridiem:function(j,q,$){return j<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(j){return j.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(q){return E[q]}).replace(/\u060c/g,",")},postformat:function(j){return j.replace(/\d/g,function(q){return i[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(T)},meridiem:function(T,S,L){return T<4?"gec\u0259":T<12?"s\u0259h\u0259r":T<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(T){if(0===T)return T+"-\u0131nc\u0131";var S=T%10;return T+(i[S]||i[T%100-S]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(Y,U,x){!function(w){"use strict";function E(S,L,R){return"m"===R?L?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===R?L?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,L){var R=S.split("_");return L%10==1&&L%100!=11?R[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?R[1]:R[2]}({ss:L?"\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:L?"\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:L?"\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"}[R],+S)}w.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:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,L,R){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,L){switch(L){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===T?E+"-\u0432\u0438":2===T?E+"-\u0440\u0438":7===T||8===T?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},5903:function(Y,U,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.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(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},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(S,L){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===L?S<4?S:S+12:"\u09ad\u09cb\u09b0"===L||"\u09b8\u0995\u09be\u09b2"===L?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===L?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===L||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(Y,U,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.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(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===L&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===L&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===L?S+12:S},meridiem:function(S,L,R){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(Y,U,x){!function(w){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};w.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(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},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(S,L){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===L&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===L&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===L?S+12:S},meridiem:function(S,L,R){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(Y,U,x){!function(w){"use strict";function i(ne,de,me){return ne+" "+function S(ne,de){return 2===de?function L(ne){var de={m:"v",b:"v",d:"z"};return void 0===de[ne.charAt(0)]?ne:de[ne.charAt(0)]+ne.substring(1)}(ne):ne}({mm:"munutenn",MM:"miz",dd:"devezh"}[me],ne)}function T(ne){return ne>9?T(ne%10):ne}var R=[/^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],N=/^(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,ie=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];w.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:ie,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:ie,monthsRegex:N,monthsShortRegex:N,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:R,longMonthsParse:R,shortMonthsParse:R,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:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ne){switch(T(ne)){case 1:case 3:case 4:case 5:case 9:return ne+" bloaz";default:return ne+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ne){return ne+(1===ne?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ne){return"g.m."===ne},meridiem:function(ne,de,me){return ne<12?"a.m.":"g.m."}})}(x(5439))},4792:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var R=T+" ";switch(L){case"ss":return R+(1===T?"sekunda":2===T||3===T||4===T?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===T?"minuta":2===T||3===T||4===T?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===T?"sat":2===T||3===T||4===T?"sata":"sati");case"dd":return R+(1===T?"dan":"dana");case"MM":return R+(1===T?"mjesec":2===T||3===T||4===T?"mjeseca":"mjeseci");case"yy":return R+(1===T?"godina":2===T||3===T||4===T?"godine":"godina")}}w.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:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(Y,U,x){!function(w){"use strict";w.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(E,T){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===T||"W"===T)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(Y,U,x){!function(w){"use strict";var i={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("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),T=[/^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],S=/^(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 L(j){return j>1&&j<5&&1!=~~(j/10)}function R(j,q,$,X){var ie=j+" ";switch($){case"s":return q||X?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return q||X?ie+(L(j)?"sekundy":"sekund"):ie+"sekundami";case"m":return q?"minuta":X?"minutu":"minutou";case"mm":return q||X?ie+(L(j)?"minuty":"minut"):ie+"minutami";case"h":return q?"hodina":X?"hodinu":"hodinou";case"hh":return q||X?ie+(L(j)?"hodiny":"hodin"):ie+"hodinami";case"d":return q||X?"den":"dnem";case"dd":return q||X?ie+(L(j)?"dny":"dn\xed"):ie+"dny";case"M":return q||X?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return q||X?ie+(L(j)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ie+"m\u011bs\xedci";case"y":return q||X?"rok":"rokem";case"yy":return q||X?ie+(L(j)?"roky":"let"):ie+"lety"}}w.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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:R,ss:R,m:R,mm:R,h:R,hh:R,d:R,dd:R,M:R,MM:R,y:R,yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},365:function(Y,U,x){!function(w){"use strict";w.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(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\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}})}(x(5439))},2092:function(Y,U,x){!function(w){"use strict";w.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(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},9459:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(Y,U,x){!function(w){"use strict";var i=["\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"],E=["\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"];w.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,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(S){return"\u0789\u078a"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(Y,U,x){!function(w){"use strict";w.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(T,S){return T?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[T.month()]:this._monthsNominativeEl[T.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(T,S,L){return T>11?L?"\u03bc\u03bc":"\u039c\u039c":L?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(T){return"\u03bc"===(T+"").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(T,S){var L=this._calendarEl[T],R=S&&S.hours();return function i(T){return"undefined"!=typeof Function&&T instanceof Function||"[object Function]"===Object.prototype.toString.call(T)}(L)&&(L=L.apply(S)),L.replace("{}",R%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}})}(x(5439))},4369:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}})}(x(5439))},9998:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}})}(x(5439))},9615:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(Y,U,x){!function(w){"use strict";w.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(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,T,S){return E>11?S?"p.t.m.":"P.T.M.":S?"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}})}(x(5439))},8944:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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;w.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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}})}(x(5439))},9116:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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;w.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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"})}(x(5439))},3609:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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;w.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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}})}(x(5439))},6866:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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;w.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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"})}(x(5439))},6725:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[T+"sekundi",T+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[T+" minuti",T+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[T+" tunni",T+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[T+" kuu",T+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[T+" aasta",T+" aastat"]};return S?N[L][2]?N[L][2]:N[L][1]:R?N[L][0]:N[L][1]}w.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},6417:function(Y,U,x){!function(w){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};w.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(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,L,R){return S<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(S){return S.replace(/[\u06f0-\u06f9]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(Y,U,x){!function(w){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function T(R,N,j,q){var $="";switch(j){case"s":return q?"muutaman sekunnin":"muutama sekunti";case"ss":$=q?"sekunnin":"sekuntia";break;case"m":return q?"minuutin":"minuutti";case"mm":$=q?"minuutin":"minuuttia";break;case"h":return q?"tunnin":"tunti";case"hh":$=q?"tunnin":"tuntia";break;case"d":return q?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":$=q?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return q?"kuukauden":"kuukausi";case"MM":$=q?"kuukauden":"kuukautta";break;case"y":return q?"vuoden":"vuosi";case"yy":$=q?"vuoden":"vuotta"}return function S(R,N){return R<10?N?E[R]:i[R]:R}(R,q)+" "+$}w.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:T,ss:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(Y,U,x){!function(w){"use strict";w.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(E){return E},week:{dow:1,doy:4}})}(x(5439))},5867:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},6848:function(Y,U,x){!function(w){"use strict";w.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(E,T){switch(T){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(x(5439))},7773:function(Y,U,x){!function(w){"use strict";w.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(E,T){switch(T){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(Y,U,x){!function(w){"use strict";var T=/(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,S=[/^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];w.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:T,monthsShortRegex:T,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:S,longMonthsParse:S,shortMonthsParse:S,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(R,N){switch(N){case"D":return R+(1===R?"er":"");default:case"M":case"Q":case"DDD":case"d":return R+(1===R?"er":"e");case"w":case"W":return R+(1===R?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");w.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,L){return S?/-MMM-/.test(L)?E[S.month()]:i[S.month()]:i},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(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(Y,U,x){!function(w){"use strict";w.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(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(Y,U,x){!function(w){"use strict";w.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(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(Y,U,x){!function(w){"use strict";w.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(E){return 0===E.indexOf("un")?"n"+E:"en "+E},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}})}(x(5439))},2457:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={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:[T+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",T+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[T+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",T+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[T+" \u0935\u0930\u093e\u0902\u0928\u0940",T+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[T+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",T+" \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:[T+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",T+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[T+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",T+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return R?N[L][0]:N[L][1]}w.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(T,S){return"D"===S?T+"\u0935\u0947\u0930":T},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(T,S){return 12===T&&(T=0),"\u0930\u093e\u0924\u0940"===S?T<4?T:T+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?T:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?T>12?T:T+12:"\u0938\u093e\u0902\u091c\u0947"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"\u0930\u093e\u0924\u0940":T<12?"\u0938\u0915\u093e\u0933\u0940\u0902":T<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":T<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["thoddea sekondamni","thodde sekond"],ss:[T+" sekondamni",T+" sekond"],m:["eka mintan","ek minut"],mm:[T+" mintamni",T+" mintam"],h:["eka voran","ek vor"],hh:[T+" voramni",T+" voram"],d:["eka disan","ek dis"],dd:[T+" disamni",T+" dis"],M:["eka mhoinean","ek mhoino"],MM:[T+" mhoineamni",T+" mhoine"],y:["eka vorsan","ek voros"],yy:[T+" vorsamni",T+" vorsam"]};return R?N[L][0]:N[L][1]}w.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(T,S){return"D"===S?T+"er":T},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(T,S){return 12===T&&(T=0),"rati"===S?T<4?T:T+12:"sokallim"===S?T:"donparam"===S?T>12?T:T+12:"sanje"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"rati":T<12?"sokallim":T<16?"donparam":T<20?"sanje":"rati"}})}(x(5439))},2641:function(Y,U,x){!function(w){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};w.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(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===L?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===L?S:"\u0aac\u0aaa\u0acb\u0ab0"===L?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(Y,U,x){!function(w){"use strict";w.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(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \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(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,T,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},T=[/^\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];w.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:T,longMonthsParse:T,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(R){return R.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(N){return E[N]})},postformat:function(R){return R.replace(/\d/g,function(N){return i[N]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(R,N){return 12===R&&(R=0),"\u0930\u093e\u0924"===N?R<4?R:R+12:"\u0938\u0941\u092c\u0939"===N?R:"\u0926\u094b\u092a\u0939\u0930"===N?R>=10?R:R+12:"\u0936\u093e\u092e"===N?R+12:void 0},meridiem:function(R,N,j){return R<4?"\u0930\u093e\u0924":R<10?"\u0938\u0941\u092c\u0939":R<17?"\u0926\u094b\u092a\u0939\u0930":R<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var R=T+" ";switch(L){case"ss":return R+(1===T?"sekunda":2===T||3===T||4===T?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===T?"minuta":2===T||3===T||4===T?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===T?"sat":2===T||3===T||4===T?"sata":"sati");case"dd":return R+(1===T?"dan":"dana");case"MM":return R+(1===T?"mjesec":2===T||3===T||4===T?"mjeseca":"mjeseci");case"yy":return R+(1===T?"godina":2===T||3===T||4===T?"godine":"godina")}}w.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:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(Y,U,x){!function(w){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(L,R,N,j){var q=L;switch(N){case"s":return j||R?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return q+(j||R)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(j||R?" perc":" perce");case"mm":return q+(j||R?" perc":" perce");case"h":return"egy"+(j||R?" \xf3ra":" \xf3r\xe1ja");case"hh":return q+(j||R?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(j||R?" nap":" napja");case"dd":return q+(j||R?" nap":" napja");case"M":return"egy"+(j||R?" h\xf3nap":" h\xf3napja");case"MM":return q+(j||R?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(j||R?" \xe9v":" \xe9ve");case"yy":return q+(j||R?" \xe9v":" \xe9ve")}return""}function T(L){return(L?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}w.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(L){return"u"===L.charAt(1).toLowerCase()},meridiem:function(L,R,N){return L<12?!0===N?"de":"DE":!0===N?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return T.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return T.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3165:function(Y,U,x){!function(w){"use strict";w.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(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<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(E,T){switch(T){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(x(5439))},8780:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"pagi"===T?E:"siang"===T?E>=11?E:E+12:"sore"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"siang":E<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}})}(x(5439))},4205:function(Y,U,x){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,L,R,N){var j=S+" ";switch(R){case"s":return L||N?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?j+(L||N?"sek\xfandur":"sek\xfandum"):j+"sek\xfanda";case"m":return L?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?j+(L||N?"m\xedn\xfatur":"m\xedn\xfatum"):L?j+"m\xedn\xfata":j+"m\xedn\xfatu";case"hh":return i(S)?j+(L||N?"klukkustundir":"klukkustundum"):j+"klukkustund";case"d":return L?"dagur":N?"dag":"degi";case"dd":return i(S)?L?j+"dagar":j+(N?"daga":"d\xf6gum"):L?j+"dagur":j+(N?"dag":"degi");case"M":return L?"m\xe1nu\xf0ur":N?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?L?j+"m\xe1nu\xf0ir":j+(N?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):L?j+"m\xe1nu\xf0ur":j+(N?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return L||N?"\xe1r":"\xe1ri";case"yy":return i(S)?j+(L||N?"\xe1r":"\xe1rum"):j+(L||N?"\xe1r":"\xe1ri")}}w.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:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(Y,U,x){!function(w){"use strict";w.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(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},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}})}(x(5439))},4211:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},1003:function(Y,U,x){!function(w){"use strict";w.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(E,T){return"\u5143"===T[1]?1:parseInt(T[1]||E,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(E){return"\u5348\u5f8c"===E},meridiem:function(E,T,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,T){switch(T){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},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"}})}(x(5439))},420:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"enjing"===T?E:"siyang"===T?E>=11?E:E+12:"sonten"===T||"ndalu"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"enjing":E<15?"siyang":E<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}})}(x(5439))},851:function(Y,U,x){!function(w){"use strict";w.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(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(T,S,L){return"\u10d8"===L?S+"\u10e8\u10d8":S+L+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},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(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(Y,U,x){!function(w){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};w.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(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(Y,U,x){!function(w){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};w.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(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},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(S,L){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===L?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===L?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===L?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(Y,U,x){!function(w){"use strict";w.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(E,T){switch(T){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,T,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},T=["\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"];w.defineLocale("ku",{months:T,monthsShort:T,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(L){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(L)},meridiem:function(L,R,N){return L<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(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(R){return E[R]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(R){return i[R]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(Y,U,x){!function(w){"use strict";function i(R,N,j,q){var $={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 N?$[j][0]:$[j][1]}function S(R){if(R=parseInt(R,10),isNaN(R))return!1;if(R<0)return!0;if(R<10)return 4<=R&&R<=7;if(R<100){var N=R%10;return S(0===N?R/10:N)}if(R<1e4){for(;R>=10;)R/=10;return S(R)}return S(R/=1e3)}w.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 E(R){return S(R.substr(0,R.indexOf(" ")))?"a "+R:"an "+R},past:function T(R){return S(R.substr(0,R.indexOf(" ")))?"viru "+R:"virun "+R},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(Y,U,x){!function(w){"use strict";w.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(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,T,S){return E<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(E){return"\u0e97\u0eb5\u0ec8"+E}})}(x(5439))},2400:function(Y,U,x){!function(w){"use strict";var i={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 T(j,q,$,X){return q?L($)[0]:X?L($)[1]:L($)[2]}function S(j){return j%10==0||j>10&&j<20}function L(j){return i[j].split("_")}function R(j,q,$,X){var ie=j+" ";return 1===j?ie+T(0,q,$[0],X):q?ie+(S(j)?L($)[1]:L($)[0]):X?ie+L($)[1]:ie+(S(j)?L($)[1]:L($)[2])}w.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 E(j,q,$,X){return q?"kelios sekund\u0117s":X?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:R,m:T,mm:R,h:T,hh:R,d:T,dd:R,M:T,MM:R,y:T,yy:R},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(j){return j+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(Y,U,x){!function(w){"use strict";var i={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 E(N,j,q){return q?j%10==1&&j%100!=11?N[2]:N[3]:j%10==1&&j%100!=11?N[0]:N[1]}function T(N,j,q){return N+" "+E(i[q],N,j)}function S(N,j,q){return E(i[q],N,j)}w.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 L(N,j){return j?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:T,m:S,mm:T,h:S,hh:T,d:S,dd:T,M:S,MM:T,y:S,yy:T},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(Y,U,x){!function(w){"use strict";var i={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(T,S){return 1===T?S[0]:T>=2&&T<=4?S[1]:S[2]},translate:function(T,S,L){var R=i.words[L];return 1===L.length?S?R[0]:R[1]:T+" "+i.correctGrammaticalCase(T,R)}};w.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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},5943:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===T?E+"-\u0432\u0438":2===T?E+"-\u0440\u0438":7===T||8===T?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===T&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===T||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===T?E+12:E},meridiem:function(E,T,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){switch(L){case"s":return S?"\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 T+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return T+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return T+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return T+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return T+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return T+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return T}}w.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(T){return"\u04ae\u0425"===T},meridiem:function(T,S,L){return T<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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(T,S){switch(S){case"d":case"D":case"DDD":return T+" \u04e9\u0434\u04e9\u0440";default:return T}}})}(x(5439))},6184:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function T(L,R,N,j){var q="";if(R)switch(N){case"s":q="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":q="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":q="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":q="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":q="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":q="%d \u0924\u093e\u0938";break;case"d":q="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":q="%d \u0926\u093f\u0935\u0938";break;case"M":q="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":q="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":q="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":q="%d \u0935\u0930\u094d\u0937\u0947"}else switch(N){case"s":q="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":q="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":q="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":q="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":q="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":q="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":q="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":q="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":q="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":q="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":q="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":q="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return q.replace(/%d/i,L)}w.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:T,ss:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(R){return E[R]})},postformat:function(L){return L.replace(/\d/g,function(R){return i[R]})},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(L,R){return 12===L&&(L=0),"\u092a\u0939\u093e\u091f\u0947"===R||"\u0938\u0915\u093e\u0933\u0940"===R?L:"\u0926\u0941\u092a\u093e\u0930\u0940"===R||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===R||"\u0930\u093e\u0924\u094d\u0930\u0940"===R?L>=12?L:L+12:void 0},meridiem:function(L,R,N){return L>=0&&L<6?"\u092a\u0939\u093e\u091f\u0947":L<12?"\u0938\u0915\u093e\u0933\u0940":L<17?"\u0926\u0941\u092a\u093e\u0930\u0940":L<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"pagi"===T?E:"tengahari"===T?E>=11?E:E+12:"petang"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"tengahari":E<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}})}(x(5439))},485:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"pagi"===T?E:"tengahari"===T?E>=11?E:E+12:"petang"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"tengahari":E<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}})}(x(5439))},6681:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},2024:function(Y,U,x){!function(w){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};w.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(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},8914:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};w.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(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===L?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===L?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===L?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===L?S+12:void 0},meridiem:function(S,L,R){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<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}})}(x(5439))},2272:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),T=[/^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],S=/^(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;w.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),T=[/^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],S=/^(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;w.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},2797:function(Y,U,x){!function(w){"use strict";w.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(E,T){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===T||"W"===T)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(Y,U,x){!function(w){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};w.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(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===L?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===L?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===L?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(Y,U,x){!function(w){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),T=[/^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 S(N){return N%10<5&&N%10>1&&~~(N/10)%10!=1}function L(N,j,q){var $=N+" ";switch(q){case"ss":return $+(S(N)?"sekundy":"sekund");case"m":return j?"minuta":"minut\u0119";case"mm":return $+(S(N)?"minuty":"minut");case"h":return j?"godzina":"godzin\u0119";case"hh":return $+(S(N)?"godziny":"godzin");case"ww":return $+(S(N)?"tygodnie":"tygodni");case"MM":return $+(S(N)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return $+(S(N)?"lata":"lat")}}w.defineLocale("pl",{months:function(N,j){return N?/D MMMM/.test(j)?E[N.month()]:i[N.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:T,longMonthsParse:T,shortMonthsParse:T,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:L,m:L,mm:L,h:L,hh:L,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:L,M:"miesi\u0105c",MM:L,y:"rok",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(Y,U,x){!function(w){"use strict";w.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"})}(x(5439))},4225:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},5128:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var N=" ";return(T%100>=20||T>=100&&T%100==0)&&(N=" de "),T+N+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[L]}w.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:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(Y,U,x){!function(w){"use strict";function E(L,R,N){return"m"===N?R?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":L+" "+function i(L,R){var N=L.split("_");return R%10==1&&R%100!=11?N[0]:R%10>=2&&R%10<=4&&(R%100<10||R%100>=20)?N[1]:N[2]}({ss:R?"\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:R?"\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"}[N],+L)}var T=[/^\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];w.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:T,longMonthsParse:T,shortMonthsParse:T,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(L){if(L.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(L){if(L.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:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(L)},meridiem:function(L,R,N){return L<4?"\u043d\u043e\u0447\u0438":L<12?"\u0443\u0442\u0440\u0430":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(L,R){switch(R){case"M":case"d":case"DDD":return L+"-\u0439";case"D":return L+"-\u0433\u043e";case"w":case"W":return L+"-\u044f";default:return L}},week:{dow:1,doy:4}})}(x(5439))},2525:function(Y,U,x){!function(w){"use strict";var i=["\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"],E=["\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"];w.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,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(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},3123:function(Y,U,x){!function(w){"use strict";w.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(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,T,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},9635:function(Y,U,x){!function(w){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function T(R){return R>1&&R<5}function S(R,N,j,q){var $=R+" ";switch(j){case"s":return N||q?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return N||q?$+(T(R)?"sekundy":"sek\xfand"):$+"sekundami";case"m":return N?"min\xfata":q?"min\xfatu":"min\xfatou";case"mm":return N||q?$+(T(R)?"min\xfaty":"min\xfat"):$+"min\xfatami";case"h":return N?"hodina":q?"hodinu":"hodinou";case"hh":return N||q?$+(T(R)?"hodiny":"hod\xedn"):$+"hodinami";case"d":return N||q?"de\u0148":"d\u0148om";case"dd":return N||q?$+(T(R)?"dni":"dn\xed"):$+"d\u0148ami";case"M":return N||q?"mesiac":"mesiacom";case"MM":return N||q?$+(T(R)?"mesiace":"mesiacov"):$+"mesiacmi";case"y":return N||q?"rok":"rokom";case"yy":return N||q?$+(T(R)?"roky":"rokov"):$+"rokmi"}}w.defineLocale("sk",{months:i,monthsShort:E,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:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N=T+" ";switch(L){case"s":return S||R?"nekaj sekund":"nekaj sekundami";case"ss":return N+(1===T?S?"sekundo":"sekundi":2===T?S||R?"sekundi":"sekundah":T<5?S||R?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return N+(1===T?S?"minuta":"minuto":2===T?S||R?"minuti":"minutama":T<5?S||R?"minute":"minutami":S||R?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return N+(1===T?S?"ura":"uro":2===T?S||R?"uri":"urama":T<5?S||R?"ure":"urami":S||R?"ur":"urami");case"d":return S||R?"en dan":"enim dnem";case"dd":return N+(1===T?S||R?"dan":"dnem":2===T?S||R?"dni":"dnevoma":S||R?"dni":"dnevi");case"M":return S||R?"en mesec":"enim mesecem";case"MM":return N+(1===T?S||R?"mesec":"mesecem":2===T?S||R?"meseca":"mesecema":T<5?S||R?"mesece":"meseci":S||R?"mesecev":"meseci");case"y":return S||R?"eno leto":"enim letom";case"yy":return N+(1===T?S||R?"leto":"letom":2===T?S||R?"leti":"letoma":T<5?S||R?"leta":"leti":S||R?"let":"leti")}}w.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(Y,U,x){!function(w){"use strict";w.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(E){return"M"===E.charAt(0)},meridiem:function(E,T,S){return E<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}})}(x(5439))},2872:function(Y,U,x){!function(w){"use strict";var i={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(T,S){return T%10>=1&&T%10<=4&&(T%100<10||T%100>=20)?T%10==1?S[0]:S[1]:S[2]},translate:function(T,S,L,R){var N=i.words[L];if(1===L.length)return"y"===L&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":R||S?N[0]:N[1];const j=i.correctGrammaticalCase(T,N);return"yy"===L&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===j?T+" \u0433\u043e\u0434\u0438\u043d\u0430":T+" "+j}};w.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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(Y,U,x){!function(w){"use strict";var i={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(T,S){return T%10>=1&&T%10<=4&&(T%100<10||T%100>=20)?T%10==1?S[0]:S[1]:S[2]},translate:function(T,S,L,R){var N=i.words[L];if(1===L.length)return"y"===L&&S?"jedna godina":R||S?N[0]:N[1];const j=i.correctGrammaticalCase(T,N);return"yy"===L&&S&&"godinu"===j?T+" godina":T+" "+j}};w.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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(Y,U,x){!function(w){"use strict";w.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(E,T,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,T){return 12===E&&(E=0),"ekuseni"===T?E:"emini"===T?E>=11?E:E+12:"entsambama"===T||"ebusuku"===T?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?":e":1===T||2===T?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},2732:function(Y,U,x){!function(w){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};w.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(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},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(S,L,R){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,L){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===L?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===L||"\u0b95\u0bbe\u0bb2\u0bc8"===L||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===L&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===T?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===T?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===T?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===T?E+12:void 0},meridiem:function(E,T,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T,S){return 12===T&&(T=0),"\u0448\u0430\u0431"===S?T<4?T:T+12:"\u0441\u0443\u0431\u04b3"===S?T:"\u0440\u04ef\u0437"===S?T>=11?T:T+12:"\u0431\u0435\u0433\u043e\u04b3"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"\u0448\u0430\u0431":T<11?"\u0441\u0443\u0431\u04b3":T<16?"\u0440\u04ef\u0437":T<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},4486:function(Y,U,x){!function(w){"use strict";w.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(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,T,S){return E<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"}})}(x(5439))},1310:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T,S){switch(S){case"d":case"D":case"Do":case"DD":return T;default:if(0===T)return T+"'unjy";var L=T%10;return T+(i[L]||i[T%100-L]||i[T>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(Y,U,x){!function(w){"use strict";w.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(E){return E},week:{dow:1,doy:4}})}(x(5439))},6645:function(Y,U,x){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(N,j,q,$){var X=function L(N){var j=Math.floor(N%1e3/100),q=Math.floor(N%100/10),$=N%10,X="";return j>0&&(X+=i[j]+"vatlh"),q>0&&(X+=(""!==X?" ":"")+i[q]+"maH"),$>0&&(X+=(""!==X?" ":"")+i[$]),""===X?"pagh":X}(N);switch(q){case"ss":return X+" lup";case"mm":return X+" tup";case"hh":return X+" rep";case"dd":return X+" jaj";case"MM":return X+" jar";case"yy":return X+" DIS"}}w.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 E(N){var j=N;return-1!==N.indexOf("jaj")?j.slice(0,-3)+"leS":-1!==N.indexOf("jar")?j.slice(0,-3)+"waQ":-1!==N.indexOf("DIS")?j.slice(0,-3)+"nem":j+" pIq"},past:function T(N){var j=N;return-1!==N.indexOf("jaj")?j.slice(0,-3)+"Hu\u2019":-1!==N.indexOf("jar")?j.slice(0,-3)+"wen":-1!==N.indexOf("DIS")?j.slice(0,-3)+"ben":j+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T,S,L){return T<12?L?"\xf6\xf6":"\xd6\xd6":L?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(T){return"\xf6s"===T||"\xd6S"===T},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(T,S){switch(S){case"d":case"D":case"Do":case"DD":return T;default:if(0===T)return T+"'\u0131nc\u0131";var L=T%10;return T+(i[L]||i[T%100-L]||i[T>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(Y,U,x){!function(w){"use strict";function E(T,S,L,R){var N={s:["viensas secunds","'iensas secunds"],ss:[T+" secunds",T+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[T+" m\xeduts",T+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[T+" \xfeoras",T+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[T+" ziuas",T+" ziuas"],M:["'n mes","'iens mes"],MM:[T+" mesen",T+" mesen"],y:["'n ar","'iens ar"],yy:[T+" ars",T+" ars"]};return R||S?N[L][0]:N[L][1]}w.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(T){return"d'o"===T.toLowerCase()},meridiem:function(T,S,L){return T>11?L?"d'o":"D'O":L?"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:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},1595:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},6050:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===T||"\u0633\u06d5\u06be\u06d5\u0631"===T||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===T?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===T||"\u0643\u06d5\u0686"===T?E+12:E>=11?E:E+12},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":L<900?"\u0633\u06d5\u06be\u06d5\u0631":L<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":L<1230?"\u0686\u06c8\u0634":L<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(E,T){switch(T){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(Y,U,x){!function(w){"use strict";function E(R,N,j){return"m"===j?N?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===j?N?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":R+" "+function i(R,N){var j=R.split("_");return N%10==1&&N%100!=11?j[0]:N%10>=2&&N%10<=4&&(N%100<10||N%100>=20)?j[1]:j[2]}({ss:N?"\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:N?"\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:N?"\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"}[j],+R)}function S(R){return function(){return R+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}w.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 T(R,N){var j={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===R?j.nominative.slice(1,7).concat(j.nominative.slice(0,1)):R?j[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(N)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(N)?"genitive":"nominative"][R.day()]:j.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:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\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:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(R){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(R)},meridiem:function(R,N,j){return R<4?"\u043d\u043e\u0447\u0456":R<12?"\u0440\u0430\u043d\u043a\u0443":R<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(R,N){switch(N){case"M":case"d":case"DDD":case"w":case"W":return R+"-\u0439";case"D":return R+"-\u0433\u043e";default:return R}},week:{dow:1,doy:7}})}(x(5439))},6077:function(Y,U,x){!function(w){"use strict";var i=["\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"],E=["\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"];w.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,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(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},2862:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},8093:function(Y,U,x){!function(w){"use strict";w.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(E){return/^ch$/i.test(E)},meridiem:function(E,T,S){return E<12?S?"sa":"SA":S?"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(E){return E},week:{dow:1,doy:4}})}(x(5439))},5590:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},7908:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:E>=11?E:E+12},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},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}})}(x(5439))},8867:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1200?"\u4e0a\u5348":1200===L?"\u4e2d\u5348":L<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(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},1133:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<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(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},3291:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<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(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},5439:function(Y,U,x){(Y=x.nmd(Y)).exports=function(){"use strict";var w,de;function i(){return w.apply(null,arguments)}function T(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function S(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function L(C,H){return Object.prototype.hasOwnProperty.call(C,H)}function R(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var H;for(H in C)if(L(C,H))return!1;return!0}function N(C){return void 0===C}function j(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function q(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function $(C,H){var z,O=[],J=C.length;for(z=0;z>>0;for(z=0;z0)for(O=0;O=0?O?"+":"":"-")+Math.pow(10,Math.max(0,H-z.length)).toString().substr(1)+z}var st=/(\[[^\[]*\])|(\\)?([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,bt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,kn={},yi={};function Ke(C,H,O,z){var J=z;"string"==typeof z&&(J=function(){return this[z]()}),C&&(yi[C]=J),H&&(yi[H[0]]=function(){return Ci(J.apply(this,arguments),H[1],H[2])}),O&&(yi[O]=function(){return this.localeData().ordinal(J.apply(this,arguments),C)})}function di(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function sn(C,H){return C.isValid()?(H=pi(H,C.localeData()),kn[H]=kn[H]||function hr(C){var O,z,H=C.match(st);for(O=0,z=H.length;O=0&&bt.test(C);)C=C.replace(bt,z),bt.lastIndex=0,O-=1;return C}var Ue={};function it(C,H){var O=C.toLowerCase();Ue[O]=Ue[O+"s"]=Ue[H]=C}function Qt(C){return"string"==typeof C?Ue[C]||Ue[C.toLowerCase()]:void 0}function Te(C){var O,z,H={};for(z in C)L(C,z)&&(O=Qt(z))&&(H[O]=C[z]);return H}var ae={};function oe(C,H){ae[C]=H}function De(C){return C%4==0&&C%100!=0||C%400==0}function Fe(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function xe(C){var H=+C,O=0;return 0!==H&&isFinite(H)&&(O=Fe(H)),O}function Ge(C,H){return function(O){return null!=O?(Ni(this,C,O),i.updateOffset(this,H),this):It(this,C)}}function It(C,H){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+H]():NaN}function Ni(C,H,O){C.isValid()&&!isNaN(O)&&("FullYear"===H&&De(C.year())&&1===C.month()&&29===C.date()?(O=xe(O),C._d["set"+(C._isUTC?"UTC":"")+H](O,C.month(),fi(O,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+H](O))}var M,Vi=/\d/,ft=/\d\d/,Ze=/\d{3}/,Vn=/\d{4}/,Gt=/[+-]?\d{6}/,Et=/\d\d?/,pr=/\d\d\d\d?/,Xn=/\d\d\d\d\d\d?/,zn=/\d{1,3}/,sc=/\d{1,4}/,Oa=/[+-]?\d{1,6}/,da=/\d+/,ua=/[+-]?\d+/,fr=/Z|[+-]\d\d:?\d\d/gi,ms=/Z|[+-]\d\d(?::?\d\d)?/gi,eo=/[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 Be(C,H,O){M[C]=Ae(H)?H:function(z,J){return z&&O?O:H}}function vi(C,H){return L(M,C)?M[C](H._strict,H._locale):new RegExp(function ln(C){return Xe(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,O,z,J,le){return O||z||J||le}))}(C))}function Xe(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}M={};var ni={};function xt(C,H){var O,J,z=H;for("string"==typeof C&&(C=[C]),j(H)&&(z=function(le,we){we[H]=xe(le)}),J=C.length,O=0;O68?1900:2e3)};var On=Ge("FullYear",!0);function Zo(C,H,O,z,J,le,we){var ot;return C<100&&C>=0?(ot=new Date(C+400,H,O,z,J,le,we),isFinite(ot.getFullYear())&&ot.setFullYear(C)):ot=new Date(C,H,O,z,J,le,we),ot}function Va(C){var H,O;return C<100&&C>=0?((O=Array.prototype.slice.call(arguments))[0]=C+400,H=new Date(Date.UTC.apply(null,O)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(C)):H=new Date(Date.UTC.apply(null,arguments)),H}function pa(C,H,O){var z=7+H-O;return-(7+Va(C,0,z).getUTCDay()-H)%7+z-1}function tr(C,H,O,z,J){var kt,ai,ot=1+7*(H-1)+(7+O-z)%7+pa(C,z,J);return ot<=0?ai=Na(kt=C-1)+ot:ot>Na(C)?(kt=C+1,ai=ot-Na(C)):(kt=C,ai=ot),{year:kt,dayOfYear:ai}}function As(C,H,O){var le,we,z=pa(C.year(),H,O),J=Math.floor((C.dayOfYear()-z-1)/7)+1;return J<1?le=J+fa(we=C.year()-1,H,O):J>fa(C.year(),H,O)?(le=J-fa(C.year(),H,O),we=C.year()+1):(we=C.year(),le=J),{week:le,year:we}}function fa(C,H,O){var z=pa(C,H,O),J=pa(C+1,H,O);return(Na(C)-z+J)/7}Ke("w",["ww",2],"wo","week"),Ke("W",["WW",2],"Wo","isoWeek"),it("week","w"),it("isoWeek","W"),oe("week",5),oe("isoWeek",5),Be("w",Et),Be("ww",Et,ft),Be("W",Et),Be("WW",Et,ft),Wi(["w","ww","W","WW"],function(C,H,O,z){H[z.substr(0,1)]=xe(C)});function ys(C,H){return C.slice(H,7).concat(C.slice(0,H))}Ke("d",0,"do","day"),Ke("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),Ke("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),Ke("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),Ke("e",0,0,"weekday"),Ke("E",0,0,"isoWeekday"),it("day","d"),it("weekday","e"),it("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Be("d",Et),Be("e",Et),Be("E",Et),Be("dd",function(C,H){return H.weekdaysMinRegex(C)}),Be("ddd",function(C,H){return H.weekdaysShortRegex(C)}),Be("dddd",function(C,H){return H.weekdaysRegex(C)}),Wi(["dd","ddd","dddd"],function(C,H,O,z){var J=O._locale.weekdaysParse(C,z,O._strict);null!=J?H.d=J:ne(O).invalidWeekday=C}),Wi(["d","e","E"],function(C,H,O,z){H[z]=xe(C)});var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),dn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=eo,Ad=eo,Ki=eo;function $o(C,H,O){var z,J,le,we=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)le=ie([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(le,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(le,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(le,"").toLocaleLowerCase();return O?"dddd"===H?-1!==(J=ri.call(this._weekdaysParse,we))?J:null:"ddd"===H?-1!==(J=ri.call(this._shortWeekdaysParse,we))?J:null:-1!==(J=ri.call(this._minWeekdaysParse,we))?J:null:"dddd"===H?-1!==(J=ri.call(this._weekdaysParse,we))||-1!==(J=ri.call(this._shortWeekdaysParse,we))||-1!==(J=ri.call(this._minWeekdaysParse,we))?J:null:"ddd"===H?-1!==(J=ri.call(this._shortWeekdaysParse,we))||-1!==(J=ri.call(this._weekdaysParse,we))||-1!==(J=ri.call(this._minWeekdaysParse,we))?J:null:-1!==(J=ri.call(this._minWeekdaysParse,we))||-1!==(J=ri.call(this._weekdaysParse,we))||-1!==(J=ri.call(this._shortWeekdaysParse,we))?J:null}function Zt(){function C(Bi,Pr){return Pr.length-Bi.length}var le,we,ot,kt,ai,H=[],O=[],z=[],J=[];for(le=0;le<7;le++)we=ie([2e3,1]).day(le),ot=Xe(this.weekdaysMin(we,"")),kt=Xe(this.weekdaysShort(we,"")),ai=Xe(this.weekdays(we,"")),H.push(ot),O.push(kt),z.push(ai),J.push(ot),J.push(kt),J.push(ai);H.sort(C),O.sort(C),z.sort(C),J.sort(C),this._weekdaysRegex=new RegExp("^("+J.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function za(){return this.hours()%12||12}function Sr(C,H){Ke(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Cs(C,H){return H._meridiemParse}Ke("H",["HH",2],0,"hour"),Ke("h",["hh",2],0,za),Ke("k",["kk",2],0,function _i(){return this.hours()||24}),Ke("hmm",0,0,function(){return""+za.apply(this)+Ci(this.minutes(),2)}),Ke("hmmss",0,0,function(){return""+za.apply(this)+Ci(this.minutes(),2)+Ci(this.seconds(),2)}),Ke("Hmm",0,0,function(){return""+this.hours()+Ci(this.minutes(),2)}),Ke("Hmmss",0,0,function(){return""+this.hours()+Ci(this.minutes(),2)+Ci(this.seconds(),2)}),Sr("a",!0),Sr("A",!1),it("hour","h"),oe("hour",13),Be("a",Cs),Be("A",Cs),Be("H",Et),Be("h",Et),Be("k",Et),Be("HH",Et,ft),Be("hh",Et,ft),Be("kk",Et,ft),Be("hmm",pr),Be("hmmss",Xn),Be("Hmm",pr),Be("Hmmss",Xn),xt(["H","HH"],3),xt(["k","kk"],function(C,H,O){var z=xe(C);H[3]=24===z?0:z}),xt(["a","A"],function(C,H,O){O._isPm=O._locale.isPM(C),O._meridiem=C}),xt(["h","hh"],function(C,H,O){H[3]=xe(C),ne(O).bigHour=!0}),xt("hmm",function(C,H,O){var z=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z)),ne(O).bigHour=!0}),xt("hmmss",function(C,H,O){var z=C.length-4,J=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z,2)),H[5]=xe(C.substr(J)),ne(O).bigHour=!0}),xt("Hmm",function(C,H,O){var z=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z))}),xt("Hmmss",function(C,H,O){var z=C.length-4,J=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z,2)),H[5]=xe(C.substr(J))});var wn=Ge("Hours",!0);var ga,Jo={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:xr,monthsShort:mi,week:{dow:0,doy:6},weekdays:jt,weekdaysMin:$e,weekdaysShort:dn,meridiemParse:/[ap]\.?m?\.?/i},bi={},Ts={};function cc(C,H){var O,z=Math.min(C.length,H.length);for(O=0;O0;){if(J=B(le.slice(0,O).join("-")))return J;if(z&&z.length>=O&&cc(le,z)>=O-1)break;O--}H++}return ga}(C)}function Se(C){var H,O=C._a;return O&&-2===ne(C).overflow&&(H=O[1]<0||O[1]>11?1:O[2]<1||O[2]>fi(O[0],O[1])?2:O[3]<0||O[3]>24||24===O[3]&&(0!==O[4]||0!==O[5]||0!==O[6])?3:O[4]<0||O[4]>59?4:O[5]<0||O[5]>59?5:O[6]<0||O[6]>999?6:-1,ne(C)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ne(C)._overflowWeeks&&-1===H&&(H=7),ne(C)._overflowWeekday&&-1===H&&(H=8),ne(C).overflow=H),C}var nt=/^\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)?)?$/,Yt=/^\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)?)?$/,Xt=/Z|[+-]\d\d(?::?\d\d)?/,At=[["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]],Ft=[["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/]],Gi=/^\/?Date\((-?\d+)/i,Ti=/^(?:(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}))$/,ki={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _a(C){var H,O,le,we,ot,kt,z=C._i,J=nt.exec(z)||Yt.exec(z),ai=At.length,Bi=Ft.length;if(J){for(ne(C).iso=!0,H=0,O=ai;H7)&&(kt=!0)):(le=C._locale._week.dow,we=C._locale._week.doy,ai=As(Mi(),le,we),O=ao(H.gg,C._a[0],ai.year),z=ao(H.w,ai.week),null!=H.d?((J=H.d)<0||J>6)&&(kt=!0):null!=H.e?(J=H.e+le,(H.e<0||H.e>6)&&(kt=!0)):J=le),z<1||z>fa(O,le,we)?ne(C)._overflowWeeks=!0:null!=kt?ne(C)._overflowWeekday=!0:(ot=tr(O,z,J,le,we),C._a[0]=ot.year,C._dayOfYear=ot.dayOfYear)}(C),null!=C._dayOfYear&&(we=ao(C._a[0],J[0]),(C._dayOfYear>Na(we)||0===C._dayOfYear)&&(ne(C)._overflowDayOfYear=!0),O=Va(we,0,C._dayOfYear),C._a[1]=O.getUTCMonth(),C._a[2]=O.getUTCDate()),H=0;H<3&&null==C._a[H];++H)C._a[H]=z[H]=J[H];for(;H<7;H++)C._a[H]=z[H]=null==C._a[H]?2===H?1:0:C._a[H];24===C._a[3]&&0===C._a[4]&&0===C._a[5]&&0===C._a[6]&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?Va:Zo).apply(null,z),le=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&void 0!==C._w.d&&C._w.d!==le&&(ne(C).weekdayMismatch=!0)}}function ba(C){if(C._f!==i.ISO_8601)if(C._f!==i.RFC_2822){C._a=[],ne(C).empty=!0;var O,z,J,le,we,ai,Bi,H=""+C._i,ot=H.length,kt=0;for(Bi=(J=pi(C._f,C._locale).match(st)||[]).length,O=0;O0&&ne(C).unusedInput.push(we),H=H.slice(H.indexOf(z)+z.length),kt+=z.length),yi[le]?(z?ne(C).empty=!1:ne(C).unusedTokens.push(le),Go(le,z,C)):C._strict&&!z&&ne(C).unusedTokens.push(le);ne(C).charsLeftOver=ot-kt,H.length>0&&ne(C).unusedInput.push(H),C._a[3]<=12&&!0===ne(C).bigHour&&C._a[3]>0&&(ne(C).bigHour=void 0),ne(C).parsedDateParts=C._a.slice(0),ne(C).meridiem=C._meridiem,C._a[3]=function Zi(C,H,O){var z;return null==O?H:null!=C.meridiemHour?C.meridiemHour(H,O):(null!=C.isPM&&((z=C.isPM(O))&&H<12&&(H+=12),!z&&12===H&&(H=0)),H)}(C._locale,C._a[3],C._meridiem),null!==(ai=ne(C).era)&&(C._a[0]=C._locale.erasConvertYear(ai,C._a[0])),be(C),Se(C)}else Ko(C);else _a(C)}function uc(C){var H=C._i,O=C._f;return C._locale=C._locale||re(C._l),null===H||void 0===O&&""===H?Ne({nullInput:!0}):("string"==typeof H&&(C._i=H=C._locale.preparse(H)),Qe(H)?new Rt(Se(H)):(q(H)?C._d=H:T(O)?function dc(C){var H,O,z,J,le,we,ot=!1,kt=C._f.length;if(0===kt)return ne(C).invalidFormat=!0,void(C._d=new Date(NaN));for(J=0;Jthis?this:C:Ne()});function ei(C,H){var O,z;if(1===H.length&&T(H[0])&&(H=H[0]),!H.length)return Mi();for(O=H[0],z=1;z=0?new Date(C+400,H,O)-dl:new Date(C,H,O).valueOf()}function yc(C,H,O){return C<100&&C>=0?Date.UTC(C+400,H,O)-dl:Date.UTC(C,H,O)}function kd(C,H){return H.erasAbbrRegex(C)}function lh(){var J,le,C=[],H=[],O=[],z=[],we=this.eras();for(J=0,le=we.length;J(le=fa(C,z,J))&&(H=le),Df.call(this,C,H,O,z,J))}function Df(C,H,O,z,J){var le=tr(C,H,O,z,J),we=Va(le.year,0,le.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ke("N",0,0,"eraAbbr"),Ke("NN",0,0,"eraAbbr"),Ke("NNN",0,0,"eraAbbr"),Ke("NNNN",0,0,"eraName"),Ke("NNNNN",0,0,"eraNarrow"),Ke("y",["y",1],"yo","eraYear"),Ke("y",["yy",2],0,"eraYear"),Ke("y",["yyy",3],0,"eraYear"),Ke("y",["yyyy",4],0,"eraYear"),Be("N",kd),Be("NN",kd),Be("NNN",kd),Be("NNNN",function Tf(C,H){return H.erasNameRegex(C)}),Be("NNNNN",function xf(C,H){return H.erasNarrowRegex(C)}),xt(["N","NN","NNN","NNNN","NNNNN"],function(C,H,O,z){var J=O._locale.erasParse(C,z,O._strict);J?ne(O).era=J:ne(O).invalidEra=C}),Be("y",da),Be("yy",da),Be("yyy",da),Be("yyyy",da),Be("yo",function I1(C,H){return H._eraYearOrdinalRegex||da}),xt(["y","yy","yyy","yyyy"],0),xt(["yo"],function(C,H,O,z){var J;O._locale._eraYearOrdinalRegex&&(J=C.match(O._locale._eraYearOrdinalRegex)),H[0]=O._locale.eraYearOrdinalParse?O._locale.eraYearOrdinalParse(C,J):parseInt(C,10)}),Ke(0,["gg",2],0,function(){return this.weekYear()%100}),Ke(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fl("gggg","weekYear"),fl("ggggg","weekYear"),fl("GGGG","isoWeekYear"),fl("GGGGG","isoWeekYear"),it("weekYear","gg"),it("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Be("G",ua),Be("g",ua),Be("GG",Et,ft),Be("gg",Et,ft),Be("GGGG",sc,Vn),Be("gggg",sc,Vn),Be("GGGGG",Oa,Gt),Be("ggggg",Oa,Gt),Wi(["gggg","ggggg","GGGG","GGGGG"],function(C,H,O,z){H[z.substr(0,2)]=xe(C)}),Wi(["gg","GG"],function(C,H,O,z){H[z]=i.parseTwoDigitYear(C)}),Ke("Q",0,"Qo","quarter"),it("quarter","Q"),oe("quarter",7),Be("Q",Vi),xt("Q",function(C,H){H[1]=3*(xe(C)-1)}),Ke("D",["DD",2],"Do","date"),it("date","D"),oe("date",9),Be("D",Et),Be("DD",Et,ft),Be("Do",function(C,H){return C?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),xt(["D","DD"],2),xt("Do",function(C,H){H[2]=xe(C.match(Et)[0])});var qn=Ge("Date",!0);Ke("DDD",["DDDD",3],"DDDo","dayOfYear"),it("dayOfYear","DDD"),oe("dayOfYear",4),Be("DDD",zn),Be("DDDD",Ze),xt(["DDD","DDDD"],function(C,H,O){O._dayOfYear=xe(C)}),Ke("m",["mm",2],0,"minute"),it("minute","m"),oe("minute",14),Be("m",Et),Be("mm",Et,ft),xt(["m","mm"],4);var gl=Ge("Minutes",!1);Ke("s",["ss",2],0,"second"),it("second","s"),oe("second",15),Be("s",Et),Be("ss",Et,ft),xt(["s","ss"],5);var Gr,_l,Ca=Ge("Seconds",!1);for(Ke("S",0,0,function(){return~~(this.millisecond()/100)}),Ke(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ke(0,["SSS",3],0,"millisecond"),Ke(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ke(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ke(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ke(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ke(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ke(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),it("millisecond","ms"),oe("millisecond",16),Be("S",zn,Vi),Be("SS",zn,ft),Be("SSS",zn,Ze),Gr="SSSS";Gr.length<=9;Gr+="S")Be(Gr,da);function ch(C,H){H[6]=xe(1e3*("0."+C))}for(Gr="S";Gr.length<=9;Gr+="S")xt(Gr,ch);_l=Ge("Milliseconds",!1),Ke("z",0,0,"zoneAbbr"),Ke("zz",0,0,"zoneName");var Ie=Rt.prototype;function va(C){return C}Ie.add=Ku,Ie.calendar=function eh(C,H){1===arguments.length&&(arguments[0]?co(arguments[0])?(C=arguments[0],H=void 0):ir(arguments[0])&&(H=arguments[0],C=void 0):(C=void 0,H=void 0));var O=C||Mi(),z=lo(O,this).startOf("day"),J=i.calendarFormat(this,z)||"sameElse",le=H&&(Ae(H[J])?H[J].call(this,O):H[J]);return this.format(le||this.localeData().calendar(J,this,Mi(O)))},Ie.clone=function th(){return new Rt(this)},Ie.diff=function _c(C,H,O){var z,J,le;if(!this.isValid())return NaN;if(!(z=lo(C,this)).isValid())return NaN;switch(J=6e4*(z.utcOffset()-this.utcOffset()),H=Qt(H)){case"year":le=ho(this,z)/12;break;case"month":le=ho(this,z);break;case"quarter":le=ho(this,z)/3;break;case"second":le=(this-z)/1e3;break;case"minute":le=(this-z)/6e4;break;case"hour":le=(this-z)/36e5;break;case"day":le=(this-z-J)/864e5;break;case"week":le=(this-z-J)/6048e5;break;default:le=this-z}return O?le:Fe(le)},Ie.endOf=function rh(C){var H,O;if(void 0===(C=Qt(C))||"millisecond"===C||!this.isValid())return this;switch(O=this._isUTC?yc:Dd,C){case"year":H=O(this.year()+1,0,1)-1;break;case"quarter":H=O(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=O(this.year(),this.month()+1,1)-1;break;case"week":H=O(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=O(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=O(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=ya-mo(H+(this._isUTC?0:this.utcOffset()*Wa),ya)-1;break;case"minute":H=this._d.valueOf(),H+=Wa-mo(H,Wa)-1;break;case"second":H=this._d.valueOf(),H+=1e3-mo(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Ie.format=function Ds(C){C||(C=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=sn(this,C);return this.localeData().postformat(H)},Ie.from=function bc(C,H){return this.isValid()&&(Qe(C)&&C.isValid()||Mi(C).isValid())?Hr({to:this,from:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ie.fromNow=function R1(C){return this.from(Mi(),C)},Ie.to=function nh(C,H){return this.isValid()&&(Qe(C)&&C.isValid()||Mi(C).isValid())?Hr({from:this,to:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ie.toNow=function cl(C){return this.to(Mi(),C)},Ie.get=function Vt(C){return Ae(this[C=Qt(C)])?this[C]():this},Ie.invalidAt=function Ma(){return ne(this).overflow},Ie.isAfter=function P1(C,H){var O=Qe(C)?C:Mi(C);return!(!this.isValid()||!O.isValid())&&("millisecond"===(H=Qt(H)||"millisecond")?this.valueOf()>O.valueOf():O.valueOf()9999?sn(O,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ae(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",sn(O,"Z")):sn(O,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ie.inspect=function po(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O,z,C="moment",H="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),O="["+C+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(O+z+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ie.toJSON=function ah(){return this.isValid()?this.toISOString():null},Ie.toString=function Ya(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ie.unix=function Cf(){return Math.floor(this.valueOf()/1e3)},Ie.valueOf=function Hd(){return this._d.valueOf()-6e4*(this._offset||0)},Ie.creationData=function Ld(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ie.eraName=function Ao(){var C,H,O,z=this.localeData().eras();for(C=0,H=z.length;Cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ie.isLocal=function Oi(){return!!this.isValid()&&!this._isUTC},Ie.isUtcOffset=function mc(){return!!this.isValid()&&this._isUTC},Ie.isUtc=rl,Ie.isUTC=rl,Ie.zoneAbbr=function B1(){return this._isUTC?"UTC":""},Ie.zoneName=function N1(){return this._isUTC?"Coordinated Universal Time":""},Ie.dates=St("dates accessor is deprecated. Use date instead.",qn),Ie.months=St("months accessor is deprecated. Use month instead",Ba),Ie.years=St("years accessor is deprecated. Use year instead",On),Ie.zone=St("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Cd(C,H){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,H),this):-this.utcOffset()}),Ie.isDSTShifted=St("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Dr(){if(!N(this._isDSTShifted))return this._isDSTShifted;var H,C={};return vt(C,this),(C=uc(C))._a?(H=C._isUTC?ie(C._a):Mi(C._a),this._isDSTShifted=this.isValid()&&function il(C,H,O){var we,z=Math.min(C.length,H.length),J=Math.abs(C.length-H.length),le=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var ti=ke.prototype;function wo(C,H,O,z){var J=re(),le=ie().set(z,H);return J[O](le,C)}function bl(C,H,O){if(j(C)&&(H=C,C=void 0),C=C||"",null!=H)return wo(C,H,O,"month");var z,J=[];for(z=0;z<12;z++)J[z]=wo(C,z,O,"month");return J}function Od(C,H,O,z){"boolean"==typeof C?(j(H)&&(O=H,H=void 0),H=H||""):(O=H=C,C=!1,j(H)&&(O=H,H=void 0),H=H||"");var we,J=re(),le=C?J._week.dow:0,ot=[];if(null!=O)return wo(H,(O+le)%7,z,"day");for(we=0;we<7;we++)ot[we]=wo(H,(we+le)%7,z,"day");return ot}ti.calendar=function Lt(C,H,O){var z=this._calendar[C]||this._calendar.sameElse;return Ae(z)?z.call(H,O):z},ti.longDateFormat=function on(C){var H=this._longDateFormat[C],O=this._longDateFormat[C.toUpperCase()];return H||!O?H:(this._longDateFormat[C]=O.match(st).map(function(z){return"MMMM"===z||"MM"===z||"DD"===z||"dddd"===z?z.slice(1):z}).join(""),this._longDateFormat[C])},ti.invalidDate=function ca(){return this._invalidDate},ti.ordinal=function ue(C){return this._ordinal.replace("%d",C)},ti.preparse=va,ti.postformat=va,ti.relativeTime=function _e(C,H,O,z){var J=this._relativeTime[O];return Ae(J)?J(C,H,O,z):J.replace(/%d/i,C)},ti.pastFuture=function We(C,H){var O=this._relativeTime[C>0?"future":"past"];return Ae(O)?O(H):O.replace(/%s/i,H)},ti.set=function Ce(C){var H,O;for(O in C)L(C,O)&&(Ae(H=C[O])?this[O]=H:this["_"+O]=H);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ti.eras=function wa(C,H){var O,z,J,le=this._eras||re("en")._eras;for(O=0,z=le.length;O=0)return le[z]},ti.erasConvertYear=function bo(C,H){var O=C.since<=C.until?1:-1;return void 0===H?i(C.since).year():i(C.since).year()+(H-C.offset)*O},ti.erasAbbrRegex=function pl(C){return L(this,"_erasAbbrRegex")||lh.call(this),C?this._erasAbbrRegex:this._erasRegex},ti.erasNameRegex=function O1(C){return L(this,"_erasNameRegex")||lh.call(this),C?this._erasNameRegex:this._erasRegex},ti.erasNarrowRegex=function hi(C){return L(this,"_erasNarrowRegex")||lh.call(this),C?this._erasNarrowRegex:this._erasRegex},ti.months=function _s(C,H){return C?T(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||ha).test(H)?"format":"standalone"][C.month()]:T(this._months)?this._months:this._months.standalone},ti.monthsShort=function Ia(C,H){return C?T(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[ha.test(H)?"format":"standalone"][C.month()]:T(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ti.monthsParse=function bs(C,H,O){var z,J,le;if(this._monthsParseExact)return oc.call(this,C,H,O);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if(J=ie([2e3,z]),O&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months(J,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort(J,"").replace(".","")+"$","i")),!O&&!this._monthsParse[z]&&(le="^"+this.months(J,"")+"|^"+this.monthsShort(J,""),this._monthsParse[z]=new RegExp(le.replace(".",""),"i")),O&&"MMMM"===H&&this._longMonthsParse[z].test(C))return z;if(O&&"MMM"===H&&this._shortMonthsParse[z].test(C))return z;if(!O&&this._monthsParse[z].test(C))return z}},ti.monthsRegex=function gi(C){return this._monthsParseExact?(L(this,"_monthsRegex")||lc.call(this),C?this._monthsStrictRegex:this._monthsRegex):(L(this,"_monthsRegex")||(this._monthsRegex=Dt),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},ti.monthsShortRegex=function Kn(C){return this._monthsParseExact?(L(this,"_monthsRegex")||lc.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(L(this,"_monthsShortRegex")||(this._monthsShortRegex=Hi),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},ti.week=function gf(C){return As(C,this._week.dow,this._week.doy).week},ti.firstDayOfYear=function bf(){return this._week.doy},ti.firstDayOfWeek=function _f(){return this._week.dow},ti.weekdays=function io(C,H){var O=T(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===C?ys(O,this._week.dow):C?O[C.day()]:O},ti.weekdaysMin=function no(C){return!0===C?ys(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},ti.weekdaysShort=function Ri(C){return!0===C?ys(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},ti.weekdaysParse=function yd(C,H,O){var z,J,le;if(this._weekdaysParseExact)return $o.call(this,C,H,O);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if(J=ie([2e3,1]).day(z),O&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays(J,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort(J,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin(J,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(le="^"+this.weekdays(J,"")+"|^"+this.weekdaysShort(J,"")+"|^"+this.weekdaysMin(J,""),this._weekdaysParse[z]=new RegExp(le.replace(".",""),"i")),O&&"dddd"===H&&this._fullWeekdaysParse[z].test(C))return z;if(O&&"ddd"===H&&this._shortWeekdaysParse[z].test(C))return z;if(O&&"dd"===H&&this._minWeekdaysParse[z].test(C))return z;if(!O&&this._weekdaysParse[z].test(C))return z}},ti.weekdaysRegex=function ws(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(L(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},ti.weekdaysShortRegex=function ut(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(L(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ad),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ti.weekdaysMinRegex=function Ui(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(L(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ki),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ti.isPM=function Md(C){return"p"===(C+"").toLowerCase().charAt(0)},ti.meridiem=function vs(C,H,O){return C>11?O?"pm":"PM":O?"am":"AM"},G("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(C){var H=C%10;return C+(1===xe(C%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=St("moment.lang is deprecated. Use moment.locale instead.",G),i.langData=St("moment.langData is deprecated. Use moment.localeData instead.",re);var br=Math.abs;function vo(C,H,O,z){var J=Hr(H,O);return C._milliseconds+=z*J._milliseconds,C._days+=z*J._days,C._months+=z*J._months,C._bubble()}function dh(C){return C<0?Math.floor(C):Math.ceil(C)}function uh(C){return 4800*C/146097}function vc(C){return 146097*C/4800}function kr(C){return function(){return this.as(C)}}var Rf=kr("ms"),hn=kr("s"),hh=kr("m"),Of=kr("h"),Nd=kr("d"),To=kr("w"),V1=kr("M"),ph=kr("Q"),fh=kr("y");function Za(C){return function(){return this.isValid()?this._data[C]:NaN}}var So=Za("milliseconds"),If=Za("seconds"),mh=Za("minutes"),Tc=Za("hours"),xc=Za("days"),Sc=Za("months"),Bf=Za("years");var Yn=Math.round,Ar={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gh(C,H,O,z,J){return J.relativeTime(H||1,!!O,C,z)}var Ec=Math.abs;function Eo(C){return(C>0)-(C<0)||+C}function Dc(){if(!this.isValid())return this.localeData().invalidDate();var z,J,le,we,kt,ai,Bi,Pr,C=Ec(this._milliseconds)/1e3,H=Ec(this._days),O=Ec(this._months),ot=this.asSeconds();return ot?(z=Fe(C/60),J=Fe(z/60),C%=60,z%=60,le=Fe(O/12),O%=12,we=C?C.toFixed(3).replace(/\.?0+$/,""):"",kt=ot<0?"-":"",ai=Eo(this._months)!==Eo(ot)?"-":"",Bi=Eo(this._days)!==Eo(ot)?"-":"",Pr=Eo(this._milliseconds)!==Eo(ot)?"-":"",kt+"P"+(le?ai+le+"Y":"")+(O?ai+O+"M":"")+(H?Bi+H+"D":"")+(J||z||C?"T":"")+(J?Pr+J+"H":"")+(z?Pr+z+"M":"")+(C?Pr+we+"S":"")):"P0D"}var rt=hc.prototype;return rt.isValid=function $u(){return this._isValid},rt.abs=function wc(){var C=this._data;return this._milliseconds=br(this._milliseconds),this._days=br(this._days),this._months=br(this._months),C.milliseconds=br(C.milliseconds),C.seconds=br(C.seconds),C.minutes=br(C.minutes),C.hours=br(C.hours),C.months=br(C.months),C.years=br(C.years),this},rt.add=function Bd(C,H){return vo(this,C,H,1)},rt.subtract=function Cc(C,H){return vo(this,C,H,-1)},rt.as=function Pf(C){if(!this.isValid())return NaN;var H,O,z=this._milliseconds;if("month"===(C=Qt(C))||"quarter"===C||"year"===C)switch(H=this._days+z/864e5,O=this._months+uh(H),C){case"month":return O;case"quarter":return O/3;case"year":return O/12}else switch(H=this._days+Math.round(vc(this._months)),C){case"week":return H/7+z/6048e5;case"day":return H+z/864e5;case"hour":return 24*H+z/36e5;case"minute":return 1440*H+z/6e4;case"second":return 86400*H+z/1e3;case"millisecond":return Math.floor(864e5*H)+z;default:throw new Error("Unknown unit "+C)}},rt.asMilliseconds=Rf,rt.asSeconds=hn,rt.asMinutes=hh,rt.asHours=Of,rt.asDays=Nd,rt.asWeeks=To,rt.asMonths=V1,rt.asQuarters=ph,rt.asYears=fh,rt.valueOf=function Al(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*xe(this._months/12):NaN},rt._bubble=function kf(){var J,le,we,ot,kt,C=this._milliseconds,H=this._days,O=this._months,z=this._data;return C>=0&&H>=0&&O>=0||C<=0&&H<=0&&O<=0||(C+=864e5*dh(vc(O)+H),H=0,O=0),z.milliseconds=C%1e3,J=Fe(C/1e3),z.seconds=J%60,le=Fe(J/60),z.minutes=le%60,we=Fe(le/60),z.hours=we%24,H+=Fe(we/24),O+=kt=Fe(uh(H)),H-=dh(vc(kt)),ot=Fe(O/12),O%=12,z.days=H,z.months=O,z.years=ot,this},rt.clone=function xo(){return Hr(this)},rt.get=function Ga(C){return C=Qt(C),this.isValid()?this[C+"s"]():NaN},rt.milliseconds=So,rt.seconds=If,rt.minutes=mh,rt.hours=Tc,rt.days=xc,rt.weeks=function Nf(){return Fe(this.days()/7)},rt.months=Sc,rt.years=Bf,rt.humanize=function F1(C,H){if(!this.isValid())return this.localeData().invalidDate();var J,le,O=!1,z=Ar;return"object"==typeof C&&(H=C,C=!1),"boolean"==typeof C&&(O=C),"object"==typeof H&&(z=Object.assign({},Ar,H),null!=H.s&&null==H.ss&&(z.ss=H.s-1)),le=function z1(C,H,O,z){var J=Hr(C).abs(),le=Yn(J.as("s")),we=Yn(J.as("m")),ot=Yn(J.as("h")),kt=Yn(J.as("d")),ai=Yn(J.as("M")),Bi=Yn(J.as("w")),Pr=Yn(J.as("y")),Ps=le<=O.ss&&["s",le]||le0,Ps[4]=z,gh.apply(null,Ps)}(this,!O,z,J=this.localeData()),O&&(le=J.pastFuture(+this,le)),J.postformat(le)},rt.toISOString=Dc,rt.toString=Dc,rt.toJSON=Dc,rt.locale=fo,rt.localeData=Hs,rt.toIsoString=St("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dc),rt.lang=Ac,Ke("X",0,0,"unix"),Ke("x",0,0,"valueOf"),Be("x",ua),Be("X",/[+-]?\d+(\.\d{1,3})?/),xt("X",function(C,H,O){O._d=new Date(1e3*parseFloat(C))}),xt("x",function(C,H,O){O._d=new Date(xe(C))}),i.version="2.29.2",function E(C){w=C}(Mi),i.fn=Ie,i.min=function un(){return ei("isBefore",[].slice.call(arguments,0))},i.max=function Gu(){return ei("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=ie,i.unix=function rr(C){return Mi(1e3*C)},i.months=function Hf(C,H){return bl(C,H,"months")},i.isDate=q,i.locale=G,i.invalid=Ne,i.duration=Hr,i.isMoment=Qe,i.weekdays=function Lf(C,H,O){return Od(C,H,O,"weekdays")},i.parseZone=function Rd(){return Mi.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=xs,i.monthsShort=function Mc(C,H){return bl(C,H,"monthsShort")},i.weekdaysMin=function Id(C,H,O){return Od(C,H,O,"weekdaysMin")},i.defineLocale=I,i.updateLocale=function Q(C,H){if(null!=H){var O,z,J=Jo;null!=bi[C]&&null!=bi[C].parentLocale?bi[C].set(Me(bi[C]._config,H)):(null!=(z=B(C))&&(J=z._config),H=Me(J,H),null==z&&(H.abbr=C),(O=new ke(H)).parentLocale=bi[C],bi[C]=O),G(C)}else null!=bi[C]&&(null!=bi[C].parentLocale?(bi[C]=bi[C].parentLocale,C===G()&&G(C)):null!=bi[C]&&delete bi[C]);return bi[C]},i.locales=function ye(){return ge(bi)},i.weekdaysShort=function Co(C,H,O){return Od(C,H,O,"weekdaysShort")},i.normalizeUnits=Qt,i.relativeTimeRounding=function _h(C){return void 0===C?Yn:"function"==typeof C&&(Yn=C,!0)},i.relativeTimeThreshold=function Vf(C,H){return void 0!==Ar[C]&&(void 0===H?Ar[C]:(Ar[C]=H,"s"===C&&(Ar.ss=H-1),!0))},i.calendarFormat=function qa(C,H){var O=C.diff(H,"days",!0);return O<-6?"sameElse":O<-1?"lastWeek":O<0?"lastDay":O<1?"sameDay":O<2?"nextDay":O<7?"nextWeek":"sameElse"},i.prototype=Ie,i.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"},i}()},1869:(Y,U,x)=>{"use strict";x.d(U,{d:()=>i});var w=x(3489);class i extends w.L{constructor(T,S,L){super(),this.parent=T,this.outerValue=S,this.outerIndex=L,this.index=0}_next(T){this.parent.notifyNext(this.outerValue,T,this.outerIndex,this.index++,this)}_error(T){this.parent.notifyError(T,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(Y,U,x)=>{"use strict";x.d(U,{P:()=>S});var w=x(8896),i=x(1086),E=x(1737);class S{constructor(R,N,j){this.kind=R,this.value=N,this.error=j,this.hasValue="N"===R}observe(R){switch(this.kind){case"N":return R.next&&R.next(this.value);case"E":return R.error&&R.error(this.error);case"C":return R.complete&&R.complete()}}do(R,N,j){switch(this.kind){case"N":return R&&R(this.value);case"E":return N&&N(this.error);case"C":return j&&j()}}accept(R,N,j){return R&&"function"==typeof R.next?this.observe(R):this.do(R,N,j)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,E._)(this.error);case"C":return(0,w.c)()}throw new Error("unexpected notification kind value")}static createNext(R){return void 0!==R?new S("N",R):S.undefinedValueNotification}static createError(R){return new S("E",void 0,R)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},2916:(Y,U,x)=>{"use strict";x.d(U,{y:()=>$});var w=x(3489),E=x(7668),T=x(3292),L=x(3821),R=x(5379);var q=x(2830);let $=(()=>{class ie{constructor(ne){this._isScalar=!1,ne&&(this._subscribe=ne)}lift(ne){const de=new ie;return de.source=this,de.operator=ne,de}subscribe(ne,de,me){const{operator:Ne}=this,ze=function S(ie,ce,ne){if(ie){if(ie instanceof w.L)return ie;if(ie[E.b])return ie[E.b]()}return ie||ce||ne?new w.L(ie,ce,ne):new w.L(T.c)}(ne,de,me);if(ze.add(Ne?Ne.call(ze,this.source):this.source||q.v.useDeprecatedSynchronousErrorHandling&&!ze.syncErrorThrowable?this._subscribe(ze):this._trySubscribe(ze)),q.v.useDeprecatedSynchronousErrorHandling&&ze.syncErrorThrowable&&(ze.syncErrorThrowable=!1,ze.syncErrorThrown))throw ze.syncErrorValue;return ze}_trySubscribe(ne){try{return this._subscribe(ne)}catch(de){q.v.useDeprecatedSynchronousErrorHandling&&(ne.syncErrorThrown=!0,ne.syncErrorValue=de),function i(ie){for(;ie;){const{closed:ce,destination:ne,isStopped:de}=ie;if(ce||de)return!1;ie=ne&&ne instanceof w.L?ne:null}return!0}(ne)?ne.error(de):console.warn(de)}}forEach(ne,de){return new(de=X(de))((me,Ne)=>{let ze;ze=this.subscribe(Je=>{try{ne(Je)}catch(vt){Ne(vt),ze&&ze.unsubscribe()}},Ne,me)})}_subscribe(ne){const{source:de}=this;return de&&de.subscribe(ne)}[L.L](){return this}pipe(...ne){return 0===ne.length?this:function j(ie){return 0===ie.length?R.y:1===ie.length?ie[0]:function(ne){return ie.reduce((de,me)=>me(de),ne)}}(ne)(this)}toPromise(ne){return new(ne=X(ne))((de,me)=>{let Ne;this.subscribe(ze=>Ne=ze,ze=>me(ze),()=>de(Ne))})}}return ie.create=ce=>new ie(ce),ie})();function X(ie){if(ie||(ie=q.v.Promise||Promise),!ie)throw new Error("no Promise impl found");return ie}},3292:(Y,U,x)=>{"use strict";x.d(U,{c:()=>E});var w=x(2830),i=x(2782);const E={closed:!0,next(T){},error(T){if(w.v.useDeprecatedSynchronousErrorHandling)throw T;(0,i.z)(T)},complete(){}}},826:(Y,U,x)=>{"use strict";x.d(U,{L:()=>i});var w=x(3489);class i extends w.L{notifyNext(T,S,L,R,N){this.destination.next(S)}notifyError(T,S){this.destination.error(T)}notifyComplete(T){this.destination.complete()}}},8929:(Y,U,x)=>{"use strict";x.d(U,{Yc:()=>R,xQ:()=>N});var w=x(2916),i=x(3489),E=x(2654),T=x(5279),S=x(5283),L=x(7668);class R extends i.L{constructor($){super($),this.destination=$}}let N=(()=>{class q extends w.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[L.b](){return new R(this)}lift(X){const ie=new j(this,this);return ie.operator=X,ie}next(X){if(this.closed)throw new T.N;if(!this.isStopped){const{observers:ie}=this,ce=ie.length,ne=ie.slice();for(let de=0;denew j($,X),q})();class j extends N{constructor($,X){super(),this.destination=$,this.source=X}next($){const{destination:X}=this;X&&X.next&&X.next($)}error($){const{destination:X}=this;X&&X.error&&this.destination.error($)}complete(){const{destination:$}=this;$&&$.complete&&this.destination.complete()}_subscribe($){const{source:X}=this;return X?this.source.subscribe($):E.w.EMPTY}}},5283:(Y,U,x)=>{"use strict";x.d(U,{W:()=>i});var w=x(2654);class i extends w.w{constructor(T,S){super(),this.subject=T,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const T=this.subject,S=T.observers;if(this.subject=null,!S||0===S.length||T.isStopped||T.closed)return;const L=S.indexOf(this.subscriber);-1!==L&&S.splice(L,1)}}},3489:(Y,U,x)=>{"use strict";x.d(U,{L:()=>R});var w=x(7043),i=x(3292),E=x(2654),T=x(7668),S=x(2830),L=x(2782);class R extends E.w{constructor(q,$,X){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!q){this.destination=i.c;break}if("object"==typeof q){q instanceof R?(this.syncErrorThrowable=q.syncErrorThrowable,this.destination=q,q.add(this)):(this.syncErrorThrowable=!0,this.destination=new N(this,q));break}default:this.syncErrorThrowable=!0,this.destination=new N(this,q,$,X)}}[T.b](){return this}static create(q,$,X){const ie=new R(q,$,X);return ie.syncErrorThrowable=!1,ie}next(q){this.isStopped||this._next(q)}error(q){this.isStopped||(this.isStopped=!0,this._error(q))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(q){this.destination.next(q)}_error(q){this.destination.error(q),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:q}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=q,this}}class N extends R{constructor(q,$,X,ie){super(),this._parentSubscriber=q;let ce,ne=this;(0,w.m)($)?ce=$:$&&(ce=$.next,X=$.error,ie=$.complete,$!==i.c&&(ne=Object.create($),(0,w.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=ce,this._error=X,this._complete=ie}next(q){if(!this.isStopped&&this._next){const{_parentSubscriber:$}=this;S.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,q)&&this.unsubscribe():this.__tryOrUnsub(this._next,q)}}error(q){if(!this.isStopped){const{_parentSubscriber:$}=this,{useDeprecatedSynchronousErrorHandling:X}=S.v;if(this._error)X&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,q),this.unsubscribe()):(this.__tryOrUnsub(this._error,q),this.unsubscribe());else if($.syncErrorThrowable)X?($.syncErrorValue=q,$.syncErrorThrown=!0):(0,L.z)(q),this.unsubscribe();else{if(this.unsubscribe(),X)throw q;(0,L.z)(q)}}}complete(){if(!this.isStopped){const{_parentSubscriber:q}=this;if(this._complete){const $=()=>this._complete.call(this._context);S.v.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable?(this.__tryOrSetError(q,$),this.unsubscribe()):(this.__tryOrUnsub($),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(q,$){try{q.call(this._context,$)}catch(X){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw X;(0,L.z)(X)}}__tryOrSetError(q,$,X){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,X)}catch(ie){return S.v.useDeprecatedSynchronousErrorHandling?(q.syncErrorValue=ie,q.syncErrorThrown=!0,!0):((0,L.z)(ie),!0)}return!1}_unsubscribe(){const{_parentSubscriber:q}=this;this._context=null,this._parentSubscriber=null,q.unsubscribe()}}},2654:(Y,U,x)=>{"use strict";x.d(U,{w:()=>L});var w=x(6688),i=x(7830),E=x(7043);const S=(()=>{function N(j){return Error.call(this),this.message=j?`${j.length} errors occurred during unsubscription:\n${j.map((q,$)=>`${$+1}) ${q.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=j,this}return N.prototype=Object.create(Error.prototype),N})();class L{constructor(j){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,j&&(this._unsubscribe=j)}unsubscribe(){let j;if(this.closed)return;let{_parentOrParents:q,_unsubscribe:$,_subscriptions:X}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,q instanceof L)q.remove(this);else if(null!==q)for(let ie=0;iej.concat(q instanceof S?q.errors:q),[])}L.EMPTY=((N=new L).closed=!0,N)},2830:(Y,U,x)=>{"use strict";x.d(U,{v:()=>i});let w=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(E){if(E){const T=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+T.stack)}else w&&console.log("RxJS: Back to a better error behavior. Thank you. <3");w=E},get useDeprecatedSynchronousErrorHandling(){return w}}},1762:(Y,U,x)=>{"use strict";x.d(U,{c:()=>S,N:()=>L});var w=x(8929),i=x(2916),E=x(2654),T=x(4327);class S extends i.y{constructor($,X){super(),this.source=$,this.subjectFactory=X,this._refCount=0,this._isComplete=!1}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let $=this._connection;return $||(this._isComplete=!1,$=this._connection=new E.w,$.add(this.source.subscribe(new R(this.getSubject(),this))),$.closed&&(this._connection=null,$=E.w.EMPTY)),$}refCount(){return(0,T.x)()(this)}}const L=(()=>{const q=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:q._subscribe},_isComplete:{value:q._isComplete,writable:!0},getSubject:{value:q.getSubject},connect:{value:q.connect},refCount:{value:q.refCount}}})();class R extends w.Yc{constructor($,X){super($),this.connectable=X}_error($){this._unsubscribe(),super._error($)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const $=this.connectable;if($){this.connectable=null;const X=$._connection;$._refCount=0,$._subject=null,$._connection=null,X&&X.unsubscribe()}}}},6053:(Y,U,x)=>{"use strict";x.d(U,{aj:()=>R});var w=x(2866),i=x(6688),E=x(826),T=x(9054),S=x(3009);const L={};function R(...q){let $=null,X=null;return(0,w.K)(q[q.length-1])&&(X=q.pop()),"function"==typeof q[q.length-1]&&($=q.pop()),1===q.length&&(0,i.k)(q[0])&&(q=q[0]),(0,S.n)(q,X).lift(new N($))}class N{constructor($){this.resultSelector=$}call($,X){return X.subscribe(new j($,this.resultSelector))}}class j extends E.L{constructor($,X){super($),this.resultSelector=X,this.active=0,this.values=[],this.observables=[]}_next($){this.values.push(L),this.observables.push($)}_complete(){const $=this.observables,X=$.length;if(0===X)this.destination.complete();else{this.active=X,this.toRespond=X;for(let ie=0;ie{"use strict";x.d(U,{E:()=>i,c:()=>E});var w=x(2916);const i=new w.y(S=>S.complete());function E(S){return S?function T(S){return new w.y(L=>S.schedule(()=>L.complete()))}(S):i}},5254:(Y,U,x)=>{"use strict";x.d(U,{D:()=>ne});var w=x(2916),i=x(9249),E=x(2654),T=x(3821),R=x(6454),N=x(5430),$=x(8955),X=x(8515);function ne(de,me){return me?function ce(de,me){if(null!=de){if(function q(de){return de&&"function"==typeof de[T.L]}(de))return function S(de,me){return new w.y(Ne=>{const ze=new E.w;return ze.add(me.schedule(()=>{const Je=de[T.L]();ze.add(Je.subscribe({next(vt){ze.add(me.schedule(()=>Ne.next(vt)))},error(vt){ze.add(me.schedule(()=>Ne.error(vt)))},complete(){ze.add(me.schedule(()=>Ne.complete()))}}))})),ze})}(de,me);if((0,$.t)(de))return function L(de,me){return new w.y(Ne=>{const ze=new E.w;return ze.add(me.schedule(()=>de.then(Je=>{ze.add(me.schedule(()=>{Ne.next(Je),ze.add(me.schedule(()=>Ne.complete()))}))},Je=>{ze.add(me.schedule(()=>Ne.error(Je)))}))),ze})}(de,me);if((0,X.z)(de))return(0,R.r)(de,me);if(function ie(de){return de&&"function"==typeof de[N.hZ]}(de)||"string"==typeof de)return function j(de,me){if(!de)throw new Error("Iterable cannot be null");return new w.y(Ne=>{const ze=new E.w;let Je;return ze.add(()=>{Je&&"function"==typeof Je.return&&Je.return()}),ze.add(me.schedule(()=>{Je=de[N.hZ](),ze.add(me.schedule(function(){if(Ne.closed)return;let vt,Rt;try{const Qe=Je.next();vt=Qe.value,Rt=Qe.done}catch(Qe){return void Ne.error(Qe)}Rt?Ne.complete():(Ne.next(vt),this.schedule())}))})),ze})}(de,me)}throw new TypeError((null!==de&&typeof de||de)+" is not observable")}(de,me):de instanceof w.y?de:new w.y((0,i.s)(de))}},3009:(Y,U,x)=>{"use strict";x.d(U,{n:()=>T});var w=x(2916),i=x(3650),E=x(6454);function T(S,L){return L?(0,E.r)(S,L):new w.y((0,i.V)(S))}},6787:(Y,U,x)=>{"use strict";x.d(U,{T:()=>S});var w=x(2916),i=x(2866),E=x(9146),T=x(3009);function S(...L){let R=Number.POSITIVE_INFINITY,N=null,j=L[L.length-1];return(0,i.K)(j)?(N=L.pop(),L.length>1&&"number"==typeof L[L.length-1]&&(R=L.pop())):"number"==typeof j&&(R=L.pop()),null===N&&1===L.length&&L[0]instanceof w.y?L[0]:(0,E.J)(R)((0,T.n)(L,N))}},1086:(Y,U,x)=>{"use strict";x.d(U,{of:()=>T});var w=x(2866),i=x(3009),E=x(6454);function T(...S){let L=S[S.length-1];return(0,w.K)(L)?(S.pop(),(0,E.r)(S,L)):(0,i.n)(S)}},1946:(Y,U,x)=>{"use strict";x.d(U,{S3:()=>S});var w=x(6688),i=x(3009),E=x(826),T=x(9054);function S(...N){if(1===N.length){if(!(0,w.k)(N[0]))return N[0];N=N[0]}return(0,i.n)(N,void 0).lift(new L)}class L{call(j,q){return q.subscribe(new R(j))}}class R extends E.L{constructor(j){super(j),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(j){this.observables.push(j)}_complete(){const j=this.observables,q=j.length;if(0===q)this.destination.complete();else{for(let $=0;${"use strict";x.d(U,{_:()=>i});var w=x(2916);function i(T,S){return new w.y(S?L=>S.schedule(E,0,{error:T,subscriber:L}):L=>L.error(T))}function E({error:T,subscriber:S}){S.error(T)}},7221:(Y,U,x)=>{"use strict";x.d(U,{K:()=>T});var w=x(826),i=x(1869),E=x(9054);function T(R){return function(j){const q=new S(R),$=j.lift(q);return q.caught=$}}class S{constructor(N){this.selector=N}call(N,j){return j.subscribe(new L(N,this.selector,this.caught))}}class L extends w.L{constructor(N,j,q){super(N),this.selector=j,this.caught=q}error(N){if(!this.isStopped){let j;try{j=this.selector(N,this.caught)}catch(X){return void super.error(X)}this._unsubscribeAndRecycle();const q=new i.d(this,void 0,void 0);this.add(q);const $=(0,E.D)(this,j,void 0,void 0,q);$!==q&&this.add($)}}}},1406:(Y,U,x)=>{"use strict";x.d(U,{b:()=>i});var w=x(1709);function i(E,T){return(0,w.zg)(E,T,1)}},13:(Y,U,x)=>{"use strict";x.d(U,{b:()=>E});var w=x(3489),i=x(353);function E(R,N=i.P){return j=>j.lift(new T(R,N))}class T{constructor(N,j){this.dueTime=N,this.scheduler=j}call(N,j){return j.subscribe(new S(N,this.dueTime,this.scheduler))}}class S extends w.L{constructor(N,j,q){super(N),this.dueTime=j,this.scheduler=q,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(N){this.clearDebounce(),this.lastValue=N,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:N}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(N)}}clearDebounce(){const N=this.debouncedSubscription;null!==N&&(this.remove(N),N.unsubscribe(),this.debouncedSubscription=null)}}function L(R){R.debouncedNext()}},7314:(Y,U,x)=>{"use strict";x.d(U,{d:()=>i});var w=x(3489);function i(S=null){return L=>L.lift(new E(S))}class E{constructor(L){this.defaultValue=L}call(L,R){return R.subscribe(new T(L,this.defaultValue))}}class T extends w.L{constructor(L,R){super(L),this.defaultValue=R,this.isEmpty=!0}_next(L){this.isEmpty=!1,this.destination.next(L)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(Y,U,x)=>{"use strict";x.d(U,{g:()=>S});var w=x(353),i=x(2697),E=x(3489),T=x(9312);function S(j,q=w.P){const X=(0,i.J)(j)?+j-q.now():Math.abs(j);return ie=>ie.lift(new L(X,q))}class L{constructor(q,$){this.delay=q,this.scheduler=$}call(q,$){return $.subscribe(new R(q,this.delay,this.scheduler))}}class R extends E.L{constructor(q,$,X){super(q),this.delay=$,this.scheduler=X,this.queue=[],this.active=!1,this.errored=!1}static dispatch(q){const $=q.source,X=$.queue,ie=q.scheduler,ce=q.destination;for(;X.length>0&&X[0].time-ie.now()<=0;)X.shift().notification.observe(ce);if(X.length>0){const ne=Math.max(0,X[0].time-ie.now());this.schedule(q,ne)}else this.unsubscribe(),$.active=!1}_schedule(q){this.active=!0,this.destination.add(q.schedule(R.dispatch,this.delay,{source:this,destination:this.destination,scheduler:q}))}scheduleNotification(q){if(!0===this.errored)return;const $=this.scheduler,X=new N($.now()+this.delay,q);this.queue.push(X),!1===this.active&&this._schedule($)}_next(q){this.scheduleNotification(T.P.createNext(q))}_error(q){this.errored=!0,this.queue=[],this.destination.error(q),this.unsubscribe()}_complete(){this.scheduleNotification(T.P.createComplete()),this.unsubscribe()}}class N{constructor(q,$){this.time=q,this.notification=$}}},2198:(Y,U,x)=>{"use strict";x.d(U,{h:()=>i});var w=x(3489);function i(S,L){return function(N){return N.lift(new E(S,L))}}class E{constructor(L,R){this.predicate=L,this.thisArg=R}call(L,R){return R.subscribe(new T(L,this.predicate,this.thisArg))}}class T extends w.L{constructor(L,R,N){super(L),this.predicate=R,this.thisArg=N,this.count=0}_next(L){let R;try{R=this.predicate.call(this.thisArg,L,this.count++)}catch(N){return void this.destination.error(N)}R&&this.destination.next(L)}}},7224:(Y,U,x)=>{"use strict";x.d(U,{P:()=>R});var w=x(4450),i=x(2198),E=x(2986),T=x(7314),S=x(4907),L=x(5379);function R(N,j){const q=arguments.length>=2;return $=>$.pipe(N?(0,i.h)((X,ie)=>N(X,ie,$)):L.y,(0,E.q)(1),q?(0,T.d)(j):(0,S.T)(()=>new w.K))}},4850:(Y,U,x)=>{"use strict";x.d(U,{U:()=>i});var w=x(3489);function i(S,L){return function(N){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return N.lift(new E(S,L))}}class E{constructor(L,R){this.project=L,this.thisArg=R}call(L,R){return R.subscribe(new T(L,this.project,this.thisArg))}}class T extends w.L{constructor(L,R,N){super(L),this.project=R,this.count=0,this.thisArg=N||this}_next(L){let R;try{R=this.project.call(this.thisArg,L,this.count++)}catch(N){return void this.destination.error(N)}this.destination.next(R)}}},9146:(Y,U,x)=>{"use strict";x.d(U,{J:()=>E});var w=x(1709),i=x(5379);function E(T=Number.POSITIVE_INFINITY){return(0,w.zg)(i.y,T)}},1709:(Y,U,x)=>{"use strict";x.d(U,{zg:()=>L});var w=x(9054),i=x(826),E=x(1869),T=x(4850),S=x(5254);function L(j,q,$=Number.POSITIVE_INFINITY){return"function"==typeof q?X=>X.pipe(L((ie,ce)=>(0,S.D)(j(ie,ce)).pipe((0,T.U)((ne,de)=>q(ie,ne,ce,de))),$)):("number"==typeof q&&($=q),X=>X.lift(new R(j,$)))}class R{constructor(q,$=Number.POSITIVE_INFINITY){this.project=q,this.concurrent=$}call(q,$){return $.subscribe(new N(q,this.project,this.concurrent))}}class N extends i.L{constructor(q,$,X=Number.POSITIVE_INFINITY){super(q),this.project=$,this.concurrent=X,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(q){this.active0?this._next($.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Y,U,x)=>{"use strict";x.d(U,{x:()=>i});var w=x(3489);function i(){return function(L){return L.lift(new E(L))}}class E{constructor(L){this.connectable=L}call(L,R){const{connectable:N}=this;N._refCount++;const j=new T(L,N),q=R.subscribe(j);return j.closed||(j.connection=N.connect()),q}}class T extends w.L{constructor(L,R){super(L),this.connectable=R}_unsubscribe(){const{connectable:L}=this;if(!L)return void(this.connection=null);this.connectable=null;const R=L._refCount;if(R<=0)return void(this.connection=null);if(L._refCount=R-1,R>1)return void(this.connection=null);const{connection:N}=this,j=L._connection;this.connection=null,j&&(!N||j===N)&&j.unsubscribe()}}},2474:(Y,U,x)=>{"use strict";x.d(U,{B:()=>R});var w=x(1762);class E{constructor(j,q){this.subjectFactory=j,this.selector=q}call(j,q){const{selector:$}=this,X=this.subjectFactory(),ie=$(X).subscribe(j);return ie.add(q.subscribe(X)),ie}}var T=x(4327),S=x(8929);function L(){return new S.xQ}function R(){return N=>(0,T.x)()(function i(N,j){return function($){let X;if(X="function"==typeof N?N:function(){return N},"function"==typeof j)return $.lift(new E(X,j));const ie=Object.create($,w.N);return ie.source=$,ie.subjectFactory=X,ie}}(L)(N))}},7545:(Y,U,x)=>{"use strict";x.d(U,{w:()=>L});var w=x(826),i=x(1869),E=x(9054),T=x(4850),S=x(5254);function L(j,q){return"function"==typeof q?$=>$.pipe(L((X,ie)=>(0,S.D)(j(X,ie)).pipe((0,T.U)((ce,ne)=>q(X,ce,ie,ne))))):$=>$.lift(new R(j))}class R{constructor(q){this.project=q}call(q,$){return $.subscribe(new N(q,this.project))}}class N extends w.L{constructor(q,$){super(q),this.project=$,this.index=0}_next(q){let $;const X=this.index++;try{$=this.project(q,X)}catch(ie){return void this.destination.error(ie)}this._innerSub($,q,X)}_innerSub(q,$,X){const ie=this.innerSubscription;ie&&ie.unsubscribe();const ce=new i.d(this,$,X),ne=this.destination;ne.add(ce),this.innerSubscription=(0,E.D)(this,q,void 0,void 0,ce),this.innerSubscription!==ce&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:q}=this;(!q||q.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(q){this.destination.remove(q),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(q,$,X,ie,ce){this.destination.next($)}}},2986:(Y,U,x)=>{"use strict";x.d(U,{q:()=>T});var w=x(3489),i=x(4231),E=x(8896);function T(R){return N=>0===R?(0,E.c)():N.lift(new S(R))}class S{constructor(N){if(this.total=N,this.total<0)throw new i.W}call(N,j){return j.subscribe(new L(N,this.total))}}class L extends w.L{constructor(N,j){super(N),this.total=j,this.count=0}_next(N){const j=this.total,q=++this.count;q<=j&&(this.destination.next(N),q===j&&(this.destination.complete(),this.unsubscribe()))}}},2868:(Y,U,x)=>{"use strict";x.d(U,{b:()=>T});var w=x(3489);function i(){}var E=x(7043);function T(R,N,j){return function($){return $.lift(new S(R,N,j))}}class S{constructor(N,j,q){this.nextOrObserver=N,this.error=j,this.complete=q}call(N,j){return j.subscribe(new L(N,this.nextOrObserver,this.error,this.complete))}}class L extends w.L{constructor(N,j,q,$){super(N),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=q||i,this._tapComplete=$||i,(0,E.m)(j)?(this._context=this,this._tapNext=j):j&&(this._context=j,this._tapNext=j.next||i,this._tapError=j.error||i,this._tapComplete=j.complete||i)}_next(N){try{this._tapNext.call(this._context,N)}catch(j){return void this.destination.error(j)}this.destination.next(N)}_error(N){try{this._tapError.call(this._context,N)}catch(j){return void this.destination.error(j)}this.destination.error(N)}_complete(){try{this._tapComplete.call(this._context)}catch(N){return void this.destination.error(N)}return this.destination.complete()}}},4907:(Y,U,x)=>{"use strict";x.d(U,{T:()=>E});var w=x(4450),i=x(3489);function E(R=L){return N=>N.lift(new T(R))}class T{constructor(N){this.errorFactory=N}call(N,j){return j.subscribe(new S(N,this.errorFactory))}}class S extends i.L{constructor(N,j){super(N),this.errorFactory=j,this.hasValue=!1}_next(N){this.hasValue=!0,this.destination.next(N)}_complete(){if(this.hasValue)return this.destination.complete();{let N;try{N=this.errorFactory()}catch(j){N=j}this.destination.error(N)}}}function L(){return new w.K}},6227:(Y,U,x)=>{"use strict";x.d(U,{V:()=>$});var w=x(353);const E=(()=>{function X(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return X.prototype=Object.create(Error.prototype),X})();var T=x(2697),S=x(826),L=x(9054);class N{constructor(ie,ce,ne,de){this.waitFor=ie,this.absoluteTimeout=ce,this.withObservable=ne,this.scheduler=de}call(ie,ce){return ce.subscribe(new j(ie,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class j extends S.L{constructor(ie,ce,ne,de,me){super(ie),this.absoluteTimeout=ce,this.waitFor=ne,this.withObservable=de,this.scheduler=me,this.action=null,this.scheduleTimeout()}static dispatchTimeout(ie){const{withObservable:ce}=ie;ie._unsubscribeAndRecycle(),ie.add((0,L.D)(ie,ce))}scheduleTimeout(){const{action:ie}=this;ie?this.action=ie.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(j.dispatchTimeout,this.waitFor,this))}_next(ie){this.absoluteTimeout||this.scheduleTimeout(),super._next(ie)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var q=x(1737);function $(X,ie=w.P){return function R(X,ie,ce=w.P){return ne=>{let de=(0,T.J)(X),me=de?+X-ce.now():Math.abs(X);return ne.lift(new N(me,de,ie,ce))}}(X,(0,q._)(new E),ie)}},6454:(Y,U,x)=>{"use strict";x.d(U,{r:()=>E});var w=x(2916),i=x(2654);function E(T,S){return new w.y(L=>{const R=new i.w;let N=0;return R.add(S.schedule(function(){N!==T.length?(L.next(T[N++]),L.closed||R.add(this.schedule())):L.complete()})),R})}},6686:(Y,U,x)=>{"use strict";x.d(U,{o:()=>E});var w=x(2654);class i extends w.w{constructor(S,L){super()}schedule(S,L=0){return this}}class E extends i{constructor(S,L){super(S,L),this.scheduler=S,this.work=L,this.pending=!1}schedule(S,L=0){if(this.closed)return this;this.state=S;const R=this.id,N=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(N,R,L)),this.pending=!0,this.delay=L,this.id=this.id||this.requestAsyncId(N,this.id,L),this}requestAsyncId(S,L,R=0){return setInterval(S.flush.bind(S,this),R)}recycleAsyncId(S,L,R=0){if(null!==R&&this.delay===R&&!1===this.pending)return L;clearInterval(L)}execute(S,L){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(S,L);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,L){let N,R=!1;try{this.work(S)}catch(j){R=!0,N=!!j&&j||new Error(j)}if(R)return this.unsubscribe(),N}_unsubscribe(){const S=this.id,L=this.scheduler,R=L.actions,N=R.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==N&&R.splice(N,1),null!=S&&(this.id=this.recycleAsyncId(L,S,null)),this.delay=null}}},2268:(Y,U,x)=>{"use strict";x.d(U,{v:()=>i});let w=(()=>{class E{constructor(S,L=E.now){this.SchedulerAction=S,this.now=L}schedule(S,L=0,R){return new this.SchedulerAction(this,S).schedule(R,L)}}return E.now=()=>Date.now(),E})();class i extends w{constructor(T,S=w.now){super(T,()=>i.delegate&&i.delegate!==this?i.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(T,S=0,L){return i.delegate&&i.delegate!==this?i.delegate.schedule(T,S,L):super.schedule(T,S,L)}flush(T){const{actions:S}=this;if(this.active)return void S.push(T);let L;this.active=!0;do{if(L=T.execute(T.state,T.delay))break}while(T=S.shift());if(this.active=!1,L){for(;T=S.shift();)T.unsubscribe();throw L}}}},353:(Y,U,x)=>{"use strict";x.d(U,{P:()=>E});var w=x(6686);const E=new(x(2268).v)(w.o)},5430:(Y,U,x)=>{"use strict";x.d(U,{hZ:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Y,U,x)=>{"use strict";x.d(U,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Y,U,x)=>{"use strict";x.d(U,{b:()=>w});const w="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Y,U,x)=>{"use strict";x.d(U,{W:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return E.prototype=Object.create(Error.prototype),E})()},4450:(Y,U,x)=>{"use strict";x.d(U,{K:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return E.prototype=Object.create(Error.prototype),E})()},5279:(Y,U,x)=>{"use strict";x.d(U,{N:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return E.prototype=Object.create(Error.prototype),E})()},2782:(Y,U,x)=>{"use strict";function w(i){setTimeout(()=>{throw i},0)}x.d(U,{z:()=>w})},5379:(Y,U,x)=>{"use strict";function w(i){return i}x.d(U,{y:()=>w})},6688:(Y,U,x)=>{"use strict";x.d(U,{k:()=>w});const w=Array.isArray||(i=>i&&"number"==typeof i.length)},8515:(Y,U,x)=>{"use strict";x.d(U,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2697:(Y,U,x)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(+i)}x.d(U,{J:()=>w})},7043:(Y,U,x)=>{"use strict";function w(i){return"function"==typeof i}x.d(U,{m:()=>w})},7830:(Y,U,x)=>{"use strict";function w(i){return null!==i&&"object"==typeof i}x.d(U,{K:()=>w})},8955:(Y,U,x)=>{"use strict";function w(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}x.d(U,{t:()=>w})},2866:(Y,U,x)=>{"use strict";function w(i){return i&&"function"==typeof i.schedule}x.d(U,{K:()=>w})},9249:(Y,U,x)=>{"use strict";x.d(U,{s:()=>$});var w=x(3650),i=x(2782),T=x(5430),L=x(3821),N=x(8515),j=x(8955),q=x(7830);const $=X=>{if(X&&"function"==typeof X[L.L])return(X=>ie=>{const ce=X[L.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(ie)})(X);if((0,N.z)(X))return(0,w.V)(X);if((0,j.t)(X))return(X=>ie=>(X.then(ce=>{ie.closed||(ie.next(ce),ie.complete())},ce=>ie.error(ce)).then(null,i.z),ie))(X);if(X&&"function"==typeof X[T.hZ])return(X=>ie=>{const ce=X[T.hZ]();for(;;){const ne=ce.next();if(ne.done){ie.complete();break}if(ie.next(ne.value),ie.closed)break}return"function"==typeof ce.return&&ie.add(()=>{ce.return&&ce.return()}),ie})(X);{const ce=`You provided ${(0,q.K)(X)?"an invalid object":`'${X}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},3650:(Y,U,x)=>{"use strict";x.d(U,{V:()=>w});const w=i=>E=>{for(let T=0,S=i.length;T{"use strict";x.d(U,{D:()=>T});var w=x(1869),i=x(9249),E=x(2916);function T(S,L,R,N,j=new w.d(S,R,N)){if(!j.closed)return L instanceof E.y?L.subscribe(j):(0,i.s)(L)(j)}},6700:(Y,U,x)=>{var w={"./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":3165,"./hy-am.js":3165,"./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":9635,"./sk.js":9635,"./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":4486,"./th.js":4486,"./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 i(T){var S=E(T);return x(S)}function E(T){if(!x.o(w,T)){var S=new Error("Cannot find module '"+T+"'");throw S.code="MODULE_NOT_FOUND",S}return w[T]}i.keys=function(){return Object.keys(w)},i.resolve=E,Y.exports=i,i.id=6700},655:(Y,U,x)=>{"use strict";function N(fe,Ae,Ce,Me){return new(Ce||(Ce=Promise))(function(ge,Tt){function Lt(bt){try{st(Me.next(bt))}catch(kn){Tt(kn)}}function Ci(bt){try{st(Me.throw(bt))}catch(kn){Tt(kn)}}function st(bt){bt.done?ge(bt.value):function ke(ge){return ge instanceof Ce?ge:new Ce(function(Tt){Tt(ge)})}(bt.value).then(Lt,Ci)}st((Me=Me.apply(fe,Ae||[])).next())})}x.d(U,{mG:()=>N})},9808:(Y,U,x)=>{"use strict";x.d(U,{mr:()=>ze,Ov:()=>qu,ez:()=>za,K0:()=>R,uU:()=>He,Do:()=>vt,V_:()=>q,Ye:()=>Rt,S$:()=>me,mk:()=>Ia,sg:()=>yn,O5:()=>Kn,PC:()=>As,RF:()=>On,n9:()=>er,ED:()=>Zo,b0:()=>Je,lw:()=>N,gd:()=>dn,EM:()=>Ts,JF:()=>Li,NF:()=>Fn,PM:()=>wn,w_:()=>L,bD:()=>_i,q:()=>E,Mx:()=>_s,HT:()=>S});var w=x(5e3);let i=null;function E(){return i}function S(B){i||(i=B)}class L{}const R=new w.OlP("DocumentToken");let N=(()=>{class B{historyGo(I){throw new Error("Not implemented")}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275prov=w.Yz7({token:B,factory:function(){return function j(){return(0,w.LFG)($)}()},providedIn:"platform"}),B})();const q=new w.OlP("Location Initialized");let $=(()=>{class B extends N{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(I){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",I,!1),()=>Q.removeEventListener("popstate",I)}onHashChange(I){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",I,!1),()=>Q.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,Q,re){X()?this._history.pushState(I,Q,re):this.location.hash=re}replaceState(I,Q,re){X()?this._history.replaceState(I,Q,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(R))},B.\u0275prov=w.Yz7({token:B,factory:function(){return function ie(){return new $((0,w.LFG)(R))}()},providedIn:"platform"}),B})();function X(){return!!window.history.pushState}function ce(B,G){if(0==B.length)return G;if(0==G.length)return B;let I=0;return B.endsWith("/")&&I++,G.startsWith("/")&&I++,2==I?B+G.substring(1):1==I?B+G:B+"/"+G}function ne(B){const G=B.match(/#|\?|$/),I=G&&G.index||B.length;return B.slice(0,I-("/"===B[I-1]?1:0))+B.slice(I)}function de(B){return B&&"?"!==B[0]?"?"+B:B}let me=(()=>{class B{historyGo(I){throw new Error("Not implemented")}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275prov=w.Yz7({token:B,factory:function(){return function Ne(B){const G=(0,w.LFG)(R).location;return new Je((0,w.LFG)(N),G&&G.origin||"")}()},providedIn:"root"}),B})();const ze=new w.OlP("appBaseHref");let Je=(()=>{class B extends me{constructor(I,Q){if(super(),this._platformLocation=I,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}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 ce(this._baseHref,I)}path(I=!1){const Q=this._platformLocation.pathname+de(this._platformLocation.search),re=this._platformLocation.hash;return re&&I?`${Q}${re}`:Q}pushState(I,Q,re,ye){const Se=this.prepareExternalUrl(re+de(ye));this._platformLocation.pushState(I,Q,Se)}replaceState(I,Q,re,ye){const Se=this.prepareExternalUrl(re+de(ye));this._platformLocation.replaceState(I,Q,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,I)}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(N),w.LFG(ze,8))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})(),vt=(()=>{class B extends me{constructor(I,Q){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}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 Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(I){const Q=ce(this._baseHref,I);return Q.length>0?"#"+Q:Q}pushState(I,Q,re,ye){let Se=this.prepareExternalUrl(re+de(ye));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.pushState(I,Q,Se)}replaceState(I,Q,re,ye){let Se=this.prepareExternalUrl(re+de(ye));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.replaceState(I,Q,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,I)}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(N),w.LFG(ze,8))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})(),Rt=(()=>{class B{constructor(I,Q){this._subject=new w.vpe,this._urlChangeListeners=[],this._platformStrategy=I;const re=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=ne(St(re)),this._platformStrategy.onPopState(ye=>{this._subject.emit({url:this.path(!0),pop:!0,state:ye.state,type:ye.type})})}path(I=!1){return this.normalize(this._platformStrategy.path(I))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(I,Q=""){return this.path()==this.normalize(I+de(Q))}normalize(I){return B.stripTrailingSlash(function Yi(B,G){return B&&G.startsWith(B)?G.substring(B.length):G}(this._baseHref,St(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._platformStrategy.prepareExternalUrl(I)}go(I,Q="",re=null){this._platformStrategy.pushState(re,"",I,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+de(Q)),re)}replaceState(I,Q="",re=null){this._platformStrategy.replaceState(re,"",I,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+de(Q)),re)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(I=0){var Q,re;null===(re=(Q=this._platformStrategy).historyGo)||void 0===re||re.call(Q,I)}onUrlChange(I){this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(I="",Q){this._urlChangeListeners.forEach(re=>re(I,Q))}subscribe(I,Q,re){return this._subject.subscribe({next:I,error:Q,complete:re})}}return B.normalizeQueryParams=de,B.joinWithSlash=ce,B.stripTrailingSlash=ne,B.\u0275fac=function(I){return new(I||B)(w.LFG(me),w.LFG(N))},B.\u0275prov=w.Yz7({token:B,factory:function(){return function Qe(){return new Rt((0,w.LFG)(me),(0,w.LFG)(N))}()},providedIn:"root"}),B})();function St(B){return B.replace(/\/index.html$/,"")}var Ae=(()=>((Ae=Ae||{})[Ae.Zero=0]="Zero",Ae[Ae.One=1]="One",Ae[Ae.Two=2]="Two",Ae[Ae.Few=3]="Few",Ae[Ae.Many=4]="Many",Ae[Ae.Other=5]="Other",Ae))(),Ce=(()=>((Ce=Ce||{})[Ce.Format=0]="Format",Ce[Ce.Standalone=1]="Standalone",Ce))(),Me=(()=>((Me=Me||{})[Me.Narrow=0]="Narrow",Me[Me.Abbreviated=1]="Abbreviated",Me[Me.Wide=2]="Wide",Me[Me.Short=3]="Short",Me))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function di(B,G){return Ue((0,w.cg1)(B)[w.wAp.DateFormat],G)}function hr(B,G){return Ue((0,w.cg1)(B)[w.wAp.TimeFormat],G)}function sn(B,G){return Ue((0,w.cg1)(B)[w.wAp.DateTimeFormat],G)}function pi(B,G){const I=(0,w.cg1)(B),Q=I[w.wAp.NumberSymbols][G];if(void 0===Q){if(G===ge.CurrencyDecimal)return I[w.wAp.NumberSymbols][ge.Decimal];if(G===ge.CurrencyGroup)return I[w.wAp.NumberSymbols][ge.Group]}return Q}const Pn=w.kL8;function ue(B){if(!B[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${B[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ue(B,G){for(let I=G;I>-1;I--)if(void 0!==B[I])return B[I];throw new Error("Locale data API: locale data undefined")}function it(B){const[G,I]=B.split(":");return{hours:+G,minutes:+I}}const oe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pe={},De=/((?:[^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 Fe=(()=>((Fe=Fe||{})[Fe.Short=0]="Short",Fe[Fe.ShortGMT=1]="ShortGMT",Fe[Fe.Long=2]="Long",Fe[Fe.Extended=3]="Extended",Fe))(),xe=(()=>((xe=xe||{})[xe.FullYear=0]="FullYear",xe[xe.Month=1]="Month",xe[xe.Date=2]="Date",xe[xe.Hours=3]="Hours",xe[xe.Minutes=4]="Minutes",xe[xe.Seconds=5]="Seconds",xe[xe.FractionalSeconds=6]="FractionalSeconds",xe[xe.Day=7]="Day",xe))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function It(B,G,I,Q){let re=function Be(B){if(ln(B))return B;if("number"==typeof B&&!isNaN(B))return new Date(B);if("string"==typeof B){if(B=B.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(B)){const[re,ye=1,Se=1]=B.split("-").map(nt=>+nt);return Ni(re,ye-1,Se)}const I=parseFloat(B);if(!isNaN(B-I))return new Date(I);let Q;if(Q=B.match(oe))return function vi(B){const G=new Date(0);let I=0,Q=0;const re=B[8]?G.setUTCFullYear:G.setFullYear,ye=B[8]?G.setUTCHours:G.setHours;B[9]&&(I=Number(B[9]+B[10]),Q=Number(B[9]+B[11])),re.call(G,Number(B[1]),Number(B[2])-1,Number(B[3]));const Se=Number(B[4]||0)-I,nt=Number(B[5]||0)-Q,Yt=Number(B[6]||0),Xt=Math.floor(1e3*parseFloat("0."+(B[7]||0)));return ye.call(G,Se,nt,Yt,Xt),G}(Q)}const G=new Date(B);if(!ln(G))throw new Error(`Unable to convert "${B}" into a date`);return G}(B);G=Vt(I,G)||G;let nt,Se=[];for(;G;){if(nt=De.exec(G),!nt){Se.push(G);break}{Se=Se.concat(nt.slice(1));const At=Se.pop();if(!At)break;G=At}}let Yt=re.getTimezoneOffset();Q&&(Yt=gs(Q,Yt),re=function M(B,G,I){const Q=I?-1:1,re=B.getTimezoneOffset();return function eo(B,G){return(B=new Date(B.getTime())).setMinutes(B.getMinutes()+G),B}(B,Q*(gs(G,re)-re))}(re,Q,!0));let Xt="";return Se.forEach(At=>{const Ft=function ms(B){if(fr[B])return fr[B];let G;switch(B){case"G":case"GG":case"GGG":G=Gt(Ge.Eras,Me.Abbreviated);break;case"GGGG":G=Gt(Ge.Eras,Me.Wide);break;case"GGGGG":G=Gt(Ge.Eras,Me.Narrow);break;case"y":G=Ze(xe.FullYear,1,0,!1,!0);break;case"yy":G=Ze(xe.FullYear,2,0,!0,!0);break;case"yyy":G=Ze(xe.FullYear,3,0,!1,!0);break;case"yyyy":G=Ze(xe.FullYear,4,0,!1,!0);break;case"Y":G=ua(1);break;case"YY":G=ua(2,!0);break;case"YYY":G=ua(3);break;case"YYYY":G=ua(4);break;case"M":case"L":G=Ze(xe.Month,1,1);break;case"MM":case"LL":G=Ze(xe.Month,2,1);break;case"MMM":G=Gt(Ge.Months,Me.Abbreviated);break;case"MMMM":G=Gt(Ge.Months,Me.Wide);break;case"MMMMM":G=Gt(Ge.Months,Me.Narrow);break;case"LLL":G=Gt(Ge.Months,Me.Abbreviated,Ce.Standalone);break;case"LLLL":G=Gt(Ge.Months,Me.Wide,Ce.Standalone);break;case"LLLLL":G=Gt(Ge.Months,Me.Narrow,Ce.Standalone);break;case"w":G=da(1);break;case"ww":G=da(2);break;case"W":G=da(1,!0);break;case"d":G=Ze(xe.Date,1);break;case"dd":G=Ze(xe.Date,2);break;case"c":case"cc":G=Ze(xe.Day,1);break;case"ccc":G=Gt(Ge.Days,Me.Abbreviated,Ce.Standalone);break;case"cccc":G=Gt(Ge.Days,Me.Wide,Ce.Standalone);break;case"ccccc":G=Gt(Ge.Days,Me.Narrow,Ce.Standalone);break;case"cccccc":G=Gt(Ge.Days,Me.Short,Ce.Standalone);break;case"E":case"EE":case"EEE":G=Gt(Ge.Days,Me.Abbreviated);break;case"EEEE":G=Gt(Ge.Days,Me.Wide);break;case"EEEEE":G=Gt(Ge.Days,Me.Narrow);break;case"EEEEEE":G=Gt(Ge.Days,Me.Short);break;case"a":case"aa":case"aaa":G=Gt(Ge.DayPeriods,Me.Abbreviated);break;case"aaaa":G=Gt(Ge.DayPeriods,Me.Wide);break;case"aaaaa":G=Gt(Ge.DayPeriods,Me.Narrow);break;case"b":case"bb":case"bbb":G=Gt(Ge.DayPeriods,Me.Abbreviated,Ce.Standalone,!0);break;case"bbbb":G=Gt(Ge.DayPeriods,Me.Wide,Ce.Standalone,!0);break;case"bbbbb":G=Gt(Ge.DayPeriods,Me.Narrow,Ce.Standalone,!0);break;case"B":case"BB":case"BBB":G=Gt(Ge.DayPeriods,Me.Abbreviated,Ce.Format,!0);break;case"BBBB":G=Gt(Ge.DayPeriods,Me.Wide,Ce.Format,!0);break;case"BBBBB":G=Gt(Ge.DayPeriods,Me.Narrow,Ce.Format,!0);break;case"h":G=Ze(xe.Hours,1,-12);break;case"hh":G=Ze(xe.Hours,2,-12);break;case"H":G=Ze(xe.Hours,1);break;case"HH":G=Ze(xe.Hours,2);break;case"m":G=Ze(xe.Minutes,1);break;case"mm":G=Ze(xe.Minutes,2);break;case"s":G=Ze(xe.Seconds,1);break;case"ss":G=Ze(xe.Seconds,2);break;case"S":G=Ze(xe.FractionalSeconds,1);break;case"SS":G=Ze(xe.FractionalSeconds,2);break;case"SSS":G=Ze(xe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":G=pr(Fe.Short);break;case"ZZZZZ":G=pr(Fe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":G=pr(Fe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":G=pr(Fe.Long);break;default:return null}return fr[B]=G,G}(At);Xt+=Ft?Ft(re,I,Yt):"''"===At?"'":At.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Xt}function Ni(B,G,I){const Q=new Date(0);return Q.setFullYear(B,G,I),Q.setHours(0,0,0),Q}function Vt(B,G){const I=function Lt(B){return(0,w.cg1)(B)[w.wAp.LocaleId]}(B);if(Pe[I]=Pe[I]||{},Pe[I][G])return Pe[I][G];let Q="";switch(G){case"shortDate":Q=di(B,ke.Short);break;case"mediumDate":Q=di(B,ke.Medium);break;case"longDate":Q=di(B,ke.Long);break;case"fullDate":Q=di(B,ke.Full);break;case"shortTime":Q=hr(B,ke.Short);break;case"mediumTime":Q=hr(B,ke.Medium);break;case"longTime":Q=hr(B,ke.Long);break;case"fullTime":Q=hr(B,ke.Full);break;case"short":const re=Vt(B,"shortTime"),ye=Vt(B,"shortDate");Q=jr(sn(B,ke.Short),[re,ye]);break;case"medium":const Se=Vt(B,"mediumTime"),nt=Vt(B,"mediumDate");Q=jr(sn(B,ke.Medium),[Se,nt]);break;case"long":const Yt=Vt(B,"longTime"),Xt=Vt(B,"longDate");Q=jr(sn(B,ke.Long),[Yt,Xt]);break;case"full":const At=Vt(B,"fullTime"),Ft=Vt(B,"fullDate");Q=jr(sn(B,ke.Full),[At,Ft])}return Q&&(Pe[I][G]=Q),Q}function jr(B,G){return G&&(B=B.replace(/\{([^}]+)}/g,function(I,Q){return null!=G&&Q in G?G[Q]:I})),B}function Vi(B,G,I="-",Q,re){let ye="";(B<0||re&&B<=0)&&(re?B=1-B:(B=-B,ye=I));let Se=String(B);for(;Se.length0||nt>-I)&&(nt+=I),B===xe.Hours)0===nt&&-12===I&&(nt=12);else if(B===xe.FractionalSeconds)return function ft(B,G){return Vi(B,3).substr(0,G)}(nt,G);const Yt=pi(Se,ge.MinusSign);return Vi(nt,G,Yt,Q,re)}}function Gt(B,G,I=Ce.Format,Q=!1){return function(re,ye){return function Et(B,G,I,Q,re,ye){switch(I){case Ge.Months:return function bt(B,G,I){const Q=(0,w.cg1)(B),ye=Ue([Q[w.wAp.MonthsFormat],Q[w.wAp.MonthsStandalone]],G);return Ue(ye,I)}(G,re,Q)[B.getMonth()];case Ge.Days:return function st(B,G,I){const Q=(0,w.cg1)(B),ye=Ue([Q[w.wAp.DaysFormat],Q[w.wAp.DaysStandalone]],G);return Ue(ye,I)}(G,re,Q)[B.getDay()];case Ge.DayPeriods:const Se=B.getHours(),nt=B.getMinutes();if(ye){const Xt=function Le(B){const G=(0,w.cg1)(B);return ue(G),(G[w.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?it(Q):[it(Q[0]),it(Q[1])])}(G),At=function _e(B,G,I){const Q=(0,w.cg1)(B);ue(Q);const ye=Ue([Q[w.wAp.ExtraData][0],Q[w.wAp.ExtraData][1]],G)||[];return Ue(ye,I)||[]}(G,re,Q),Ft=Xt.findIndex(Gi=>{if(Array.isArray(Gi)){const[Ti,ki]=Gi,_a=Se>=Ti.hours&&nt>=Ti.minutes,Er=Se0?Math.floor(re/60):Math.ceil(re/60);switch(B){case Fe.Short:return(re>=0?"+":"")+Vi(Se,2,ye)+Vi(Math.abs(re%60),2,ye);case Fe.ShortGMT:return"GMT"+(re>=0?"+":"")+Vi(Se,1,ye);case Fe.Long:return"GMT"+(re>=0?"+":"")+Vi(Se,2,ye)+":"+Vi(Math.abs(re%60),2,ye);case Fe.Extended:return 0===Q?"Z":(re>=0?"+":"")+Vi(Se,2,ye)+":"+Vi(Math.abs(re%60),2,ye);default:throw new Error(`Unknown zone width "${B}"`)}}}function Oa(B){return Ni(B.getFullYear(),B.getMonth(),B.getDate()+(4-B.getDay()))}function da(B,G=!1){return function(I,Q){let re;if(G){const ye=new Date(I.getFullYear(),I.getMonth(),1).getDay()-1,Se=I.getDate();re=1+Math.floor((Se+ye)/7)}else{const ye=Oa(I),Se=function sc(B){const G=Ni(B,0,1).getDay();return Ni(B,0,1+(G<=4?4:11)-G)}(ye.getFullYear()),nt=ye.getTime()-Se.getTime();re=1+Math.round(nt/6048e5)}return Vi(re,B,pi(Q,ge.MinusSign))}}function ua(B,G=!1){return function(I,Q){return Vi(Oa(I).getFullYear(),B,pi(Q,ge.MinusSign),G)}}const fr={};function gs(B,G){B=B.replace(/:/g,"");const I=Date.parse("Jan 01, 1970 00:00:00 "+B)/6e4;return isNaN(I)?G:I}function ln(B){return B instanceof Date&&!isNaN(B.valueOf())}class mi{}let Hi=(()=>{class B extends mi{constructor(I){super(),this.locale=I}getPluralCategory(I,Q){switch(Pn(Q||this.locale)(I)){case Ae.Zero:return"zero";case Ae.One:return"one";case Ae.Two:return"two";case Ae.Few:return"few";case Ae.Many:return"many";default:return"other"}}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(w.soG))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})();function _s(B,G){G=encodeURIComponent(G);for(const I of B.split(";")){const Q=I.indexOf("="),[re,ye]=-1==Q?[I,""]:[I.slice(0,Q),I.slice(Q+1)];if(re.trim()===G)return decodeURIComponent(ye)}return null}let Ia=(()=>{class B{constructor(I,Q,re,ye){this._iterableDiffers=I,this._keyValueDiffers=Q,this._ngEl=re,this._renderer=ye,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,w.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(Q=>this._toggleClass(Q.key,Q.currentValue)),I.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),I.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),I.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(I).forEach(Q=>this._toggleClass(Q,!!I[Q])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(I).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(I,Q){(I=I.trim())&&I.split(/\s+/g).forEach(re=>{Q?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),B})();class bs{constructor(G,I,Q,re){this.$implicit=G,this.ngForOf=I,this.index=Q,this.count=re}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 yn=(()=>{class B{constructor(I,Q,re){this._viewContainer=I,this._template=Q,this._differs=re,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 Q=this._viewContainer;I.forEachOperation((re,ye,Se)=>{if(null==re.previousIndex)Q.createEmbeddedView(this._template,new bs(re.item,this._ngForOf,-1,-1),null===Se?void 0:Se);else if(null==Se)Q.remove(null===ye?void 0:ye);else if(null!==ye){const nt=Q.get(ye);Q.move(nt,Se),Ba(nt,re)}});for(let re=0,ye=Q.length;re{Ba(Q.get(re.currentIndex),re)})}static ngTemplateContextGuard(I,Q){return!0}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),B})();function Ba(B,G){B.context.$implicit=G.item}let Kn=(()=>{class B{constructor(I,Q){this._viewContainer=I,this._context=new gi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){lc("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){lc("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,Q){return!0}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),B})();class gi{constructor(){this.$implicit=null,this.ngIf=null}}function lc(B,G){if(G&&!G.createEmbeddedView)throw new Error(`${B} must be a TemplateRef, but received '${(0,w.AaK)(G)}'.`)}class Na{constructor(G,I){this._viewContainerRef=G,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(G){G&&!this._created?this.create():!G&&this._created&&this.destroy()}}let On=(()=>{class B{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 Q=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let Q=0;Q{class B{constructor(I,Q,re){this.ngSwitch=re,re._addCase(),this._view=new Na(I,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(On,9))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),B})(),Zo=(()=>{class B{constructor(I,Q,re){re._addDefault(new Na(I,Q))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(On,9))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngSwitchDefault",""]]}),B})(),As=(()=>{class B{constructor(I,Q,re){this._ngEl=I,this._differs=Q,this._renderer=re,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,Q){const[re,ye]=I.split(".");null!=(Q=null!=Q&&ye?`${Q}${ye}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,re,Q):this._renderer.removeStyle(this._ngEl.nativeElement,re)}_applyChanges(I){I.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),I.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),I.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),B})();function mr(B,G){return new w.vHH(2100,"")}class _f{createSubscription(G,I){return G.subscribe({next:I,error:Q=>{throw Q}})}dispose(G){G.unsubscribe()}onDestroy(G){G.unsubscribe()}}class bf{createSubscription(G,I){return G.then(I,Q=>{throw Q})}dispose(G){}onDestroy(G){}}const Af=new bf,yf=new _f;let qu=(()=>{class B{constructor(I){this._ref=I,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}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,Q=>this._updateLatestValue(I,Q))}_selectStrategy(I){if((0,w.QGY)(I))return Af;if((0,w.F4k)(I))return yf;throw mr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,Q){I===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.sBO,16))},B.\u0275pipe=w.Yjl({name:"async",type:B,pure:!1}),B})(),dn=(()=>{class B{transform(I){if(null==I)return null;if("string"!=typeof I)throw mr();return I.toUpperCase()}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275pipe=w.Yjl({name:"uppercase",type:B,pure:!0}),B})();const $e=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let He=(()=>{class B{constructor(I,Q){this.locale=I,this.defaultTimezone=Q}transform(I,Q="mediumDate",re,ye){var Se;if(null==I||""===I||I!=I)return null;try{return It(I,Q,ye||this.locale,null!==(Se=null!=re?re:this.defaultTimezone)&&void 0!==Se?Se:void 0)}catch(nt){throw mr()}}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.soG,16),w.Y36($e,24))},B.\u0275pipe=w.Yjl({name:"date",type:B,pure:!0}),B})(),za=(()=>{class B{}return B.\u0275fac=function(I){return new(I||B)},B.\u0275mod=w.oAB({type:B}),B.\u0275inj=w.cJS({providers:[{provide:mi,useClass:Hi}]}),B})();const _i="browser";function Fn(B){return B===_i}function wn(B){return"server"===B}let Ts=(()=>{class B{}return B.\u0275prov=(0,w.Yz7)({token:B,providedIn:"root",factory:()=>new ga((0,w.LFG)(R),window)}),B})();class ga{constructor(G,I){this.document=G,this.window=I,this.offset=()=>[0,0]}setOffset(G){this.offset=Array.isArray(G)?()=>G:G}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(G){this.supportsScrolling()&&this.window.scrollTo(G[0],G[1])}scrollToAnchor(G){if(!this.supportsScrolling())return;const I=function ro(B,G){const I=B.getElementById(G)||B.getElementsByName(G)[0];if(I)return I;if("function"==typeof B.createTreeWalker&&B.body&&(B.body.createShadowRoot||B.body.attachShadow)){const Q=B.createTreeWalker(B.body,NodeFilter.SHOW_ELEMENT);let re=Q.currentNode;for(;re;){const ye=re.shadowRoot;if(ye){const Se=ye.getElementById(G)||ye.querySelector(`[name="${G}"]`);if(Se)return Se}re=Q.nextNode()}}return null}(this.document,G);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(G){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=G)}}scrollToElement(G){const I=G.getBoundingClientRect(),Q=I.left+this.window.pageXOffset,re=I.top+this.window.pageYOffset,ye=this.offset();this.window.scrollTo(Q-ye[0],re-ye[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const G=cc(this.window.history)||cc(Object.getPrototypeOf(this.window.history));return!(!G||!G.writable&&!G.set)}catch(G){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(G){return!1}}}function cc(B){return Object.getOwnPropertyDescriptor(B,"scrollRestoration")}class Li{}},520:(Y,U,x)=>{"use strict";x.d(U,{TP:()=>Lt,eN:()=>ge,JF:()=>Ue,qT:()=>ze,WM:()=>q,LE:()=>me,Zn:()=>Ce});var w=x(9808),i=x(5e3),E=x(1086),T=x(2916),S=x(1406),L=x(2198),R=x(4850);class N{}class j{}class q{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(oe=>{const Pe=oe.indexOf(":");if(Pe>0){const De=oe.slice(0,Pe),Fe=De.toLowerCase(),xe=oe.slice(Pe+1).trim();this.maybeSetNormalizedName(De,Fe),this.headers.has(Fe)?this.headers.get(Fe).push(xe):this.headers.set(Fe,[xe])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(oe=>{let Pe=ae[oe];const De=oe.toLowerCase();"string"==typeof Pe&&(Pe=[Pe]),Pe.length>0&&(this.headers.set(De,Pe),this.maybeSetNormalizedName(oe,De))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const oe=this.headers.get(ae.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,oe){return this.clone({name:ae,value:oe,op:"a"})}set(ae,oe){return this.clone({name:ae,value:oe,op:"s"})}delete(ae,oe){return this.clone({name:ae,value:oe,op:"d"})}maybeSetNormalizedName(ae,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,ae)}init(){this.lazyInit&&(this.lazyInit instanceof q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ae=>this.applyUpdate(ae)),this.lazyUpdate=null))}copyFrom(ae){ae.init(),Array.from(ae.headers.keys()).forEach(oe=>{this.headers.set(oe,ae.headers.get(oe)),this.normalizedNames.set(oe,ae.normalizedNames.get(oe))})}clone(ae){const oe=new q;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof q?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),oe}applyUpdate(ae){const oe=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let Pe=ae.value;if("string"==typeof Pe&&(Pe=[Pe]),0===Pe.length)return;this.maybeSetNormalizedName(ae.name,oe);const De=("a"===ae.op?this.headers.get(oe):void 0)||[];De.push(...Pe),this.headers.set(oe,De);break;case"d":const Fe=ae.value;if(Fe){let xe=this.headers.get(oe);if(!xe)return;xe=xe.filter(Ge=>-1===Fe.indexOf(Ge)),0===xe.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,xe)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>ae(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ${encodeKey(ae){return ne(ae)}encodeValue(ae){return ne(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const ie=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(Te){return encodeURIComponent(Te).replace(ie,(ae,oe)=>{var Pe;return null!==(Pe=ce[oe])&&void 0!==Pe?Pe:ae})}function de(Te){return`${Te}`}class me{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new $,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X(Te,ae){const oe=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(De=>{const Fe=De.indexOf("="),[xe,Ge]=-1==Fe?[ae.decodeKey(De),""]:[ae.decodeKey(De.slice(0,Fe)),ae.decodeValue(De.slice(Fe+1))],It=oe.get(xe)||[];It.push(Ge),oe.set(xe,It)}),oe}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(oe=>{const Pe=ae.fromObject[oe];this.map.set(oe,Array.isArray(Pe)?Pe:[Pe])})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const oe=this.map.get(ae);return oe?oe[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,oe){return this.clone({param:ae,value:oe,op:"a"})}appendAll(ae){const oe=[];return Object.keys(ae).forEach(Pe=>{const De=ae[Pe];Array.isArray(De)?De.forEach(Fe=>{oe.push({param:Pe,value:Fe,op:"a"})}):oe.push({param:Pe,value:De,op:"a"})}),this.clone(oe)}set(ae,oe){return this.clone({param:ae,value:oe,op:"s"})}delete(ae,oe){return this.clone({param:ae,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const oe=this.encoder.encodeKey(ae);return this.map.get(ae).map(Pe=>oe+"="+this.encoder.encodeValue(Pe)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const oe=new me({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(ae),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ae=>this.map.set(ae,this.cloneFrom.map.get(ae))),this.updates.forEach(ae=>{switch(ae.op){case"a":case"s":const oe=("a"===ae.op?this.map.get(ae.param):void 0)||[];oe.push(de(ae.value)),this.map.set(ae.param,oe);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let Pe=this.map.get(ae.param)||[];const De=Pe.indexOf(de(ae.value));-1!==De&&Pe.splice(De,1),Pe.length>0?this.map.set(ae.param,Pe):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class ze{constructor(){this.map=new Map}set(ae,oe){return this.map.set(ae,oe),this}get(ae){return this.map.has(ae)||this.map.set(ae,ae.defaultValue()),this.map.get(ae)}delete(ae){return this.map.delete(ae),this}has(ae){return this.map.has(ae)}keys(){return this.map.keys()}}function vt(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function Rt(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Qe(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class St{constructor(ae,oe,Pe,De){let Fe;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function Je(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==Pe?Pe:null,Fe=De):Fe=Pe,Fe&&(this.reportProgress=!!Fe.reportProgress,this.withCredentials=!!Fe.withCredentials,Fe.responseType&&(this.responseType=Fe.responseType),Fe.headers&&(this.headers=Fe.headers),Fe.context&&(this.context=Fe.context),Fe.params&&(this.params=Fe.params)),this.headers||(this.headers=new q),this.context||(this.context=new ze),this.params){const xe=this.params.toString();if(0===xe.length)this.urlWithParams=oe;else{const Ge=oe.indexOf("?");this.urlWithParams=oe+(-1===Ge?"?":GeVi.set(ft,ae.setHeaders[ft]),Ni)),ae.setParams&&(Vt=Object.keys(ae.setParams).reduce((Vi,ft)=>Vi.set(ft,ae.setParams[ft]),Vt)),new St(Pe,De,xe,{params:Vt,headers:Ni,context:jr,reportProgress:It,responseType:Fe,withCredentials:Ge})}}var yt=(()=>((yt=yt||{})[yt.Sent=0]="Sent",yt[yt.UploadProgress=1]="UploadProgress",yt[yt.ResponseHeader=2]="ResponseHeader",yt[yt.DownloadProgress=3]="DownloadProgress",yt[yt.Response=4]="Response",yt[yt.User=5]="User",yt))();class fe{constructor(ae,oe=200,Pe="OK"){this.headers=ae.headers||new q,this.status=void 0!==ae.status?ae.status:oe,this.statusText=ae.statusText||Pe,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class Ae extends fe{constructor(ae={}){super(ae),this.type=yt.ResponseHeader}clone(ae={}){return new Ae({headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Ce extends fe{constructor(ae={}){super(ae),this.type=yt.Response,this.body=void 0!==ae.body?ae.body:null}clone(ae={}){return new Ce({body:void 0!==ae.body?ae.body:this.body,headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Me extends fe{constructor(ae){super(ae,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ae.url||"(unknown url)"}`:`Http failure response for ${ae.url||"(unknown url)"}: ${ae.status} ${ae.statusText}`,this.error=ae.error||null}}function ke(Te,ae){return{body:ae,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let ge=(()=>{class Te{constructor(oe){this.handler=oe}request(oe,Pe,De={}){let Fe;if(oe instanceof St)Fe=oe;else{let It,Ni;It=De.headers instanceof q?De.headers:new q(De.headers),De.params&&(Ni=De.params instanceof me?De.params:new me({fromObject:De.params})),Fe=new St(oe,Pe,void 0!==De.body?De.body:null,{headers:It,context:De.context,params:Ni,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const xe=(0,E.of)(Fe).pipe((0,S.b)(It=>this.handler.handle(It)));if(oe instanceof St||"events"===De.observe)return xe;const Ge=xe.pipe((0,L.h)(It=>It instanceof Ce));switch(De.observe||"body"){case"body":switch(Fe.responseType){case"arraybuffer":return Ge.pipe((0,R.U)(It=>{if(null!==It.body&&!(It.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return It.body}));case"blob":return Ge.pipe((0,R.U)(It=>{if(null!==It.body&&!(It.body instanceof Blob))throw new Error("Response is not a Blob.");return It.body}));case"text":return Ge.pipe((0,R.U)(It=>{if(null!==It.body&&"string"!=typeof It.body)throw new Error("Response is not a string.");return It.body}));default:return Ge.pipe((0,R.U)(It=>It.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete(oe,Pe={}){return this.request("DELETE",oe,Pe)}get(oe,Pe={}){return this.request("GET",oe,Pe)}head(oe,Pe={}){return this.request("HEAD",oe,Pe)}jsonp(oe,Pe){return this.request("JSONP",oe,{params:(new me).append(Pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,Pe={}){return this.request("OPTIONS",oe,Pe)}patch(oe,Pe,De={}){return this.request("PATCH",oe,ke(De,Pe))}post(oe,Pe,De={}){return this.request("POST",oe,ke(De,Pe))}put(oe,Pe,De={}){return this.request("PUT",oe,ke(De,Pe))}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(N))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class Tt{constructor(ae,oe){this.next=ae,this.interceptor=oe}handle(ae){return this.interceptor.intercept(ae,this.next)}}const Lt=new i.OlP("HTTP_INTERCEPTORS");let Ci=(()=>{class Te{intercept(oe,Pe){return Pe.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const sn=/^\)\]\}',?\n/;let Ut=(()=>{class Te{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Pe=>{const De=this.xhrFactory.build();if(De.open(oe.method,oe.urlWithParams),oe.withCredentials&&(De.withCredentials=!0),oe.headers.forEach((ft,Ze)=>De.setRequestHeader(ft,Ze.join(","))),oe.headers.has("Accept")||De.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const ft=oe.detectContentTypeHeader();null!==ft&&De.setRequestHeader("Content-Type",ft)}if(oe.responseType){const ft=oe.responseType.toLowerCase();De.responseType="json"!==ft?ft:"text"}const Fe=oe.serializeBody();let xe=null;const Ge=()=>{if(null!==xe)return xe;const ft=De.statusText||"OK",Ze=new q(De.getAllResponseHeaders()),Vn=function pi(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(De)||oe.url;return xe=new Ae({headers:Ze,status:De.status,statusText:ft,url:Vn}),xe},It=()=>{let{headers:ft,status:Ze,statusText:Vn,url:Gt}=Ge(),Et=null;204!==Ze&&(Et=void 0===De.response?De.responseText:De.response),0===Ze&&(Ze=Et?200:0);let pr=Ze>=200&&Ze<300;if("json"===oe.responseType&&"string"==typeof Et){const Xn=Et;Et=Et.replace(sn,"");try{Et=""!==Et?JSON.parse(Et):null}catch(zn){Et=Xn,pr&&(pr=!1,Et={error:zn,text:Et})}}pr?(Pe.next(new Ce({body:Et,headers:ft,status:Ze,statusText:Vn,url:Gt||void 0})),Pe.complete()):Pe.error(new Me({error:Et,headers:ft,status:Ze,statusText:Vn,url:Gt||void 0}))},Ni=ft=>{const{url:Ze}=Ge(),Vn=new Me({error:ft,status:De.status||0,statusText:De.statusText||"Unknown Error",url:Ze||void 0});Pe.error(Vn)};let Vt=!1;const jr=ft=>{Vt||(Pe.next(Ge()),Vt=!0);let Ze={type:yt.DownloadProgress,loaded:ft.loaded};ft.lengthComputable&&(Ze.total=ft.total),"text"===oe.responseType&&!!De.responseText&&(Ze.partialText=De.responseText),Pe.next(Ze)},Vi=ft=>{let Ze={type:yt.UploadProgress,loaded:ft.loaded};ft.lengthComputable&&(Ze.total=ft.total),Pe.next(Ze)};return De.addEventListener("load",It),De.addEventListener("error",Ni),De.addEventListener("timeout",Ni),De.addEventListener("abort",Ni),oe.reportProgress&&(De.addEventListener("progress",jr),null!==Fe&&De.upload&&De.upload.addEventListener("progress",Vi)),De.send(Fe),Pe.next({type:yt.Sent}),()=>{De.removeEventListener("error",Ni),De.removeEventListener("abort",Ni),De.removeEventListener("load",It),De.removeEventListener("timeout",Ni),oe.reportProgress&&(De.removeEventListener("progress",jr),null!==Fe&&De.upload&&De.upload.removeEventListener("progress",Vi)),De.readyState!==De.DONE&&De.abort()}})}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(w.JF))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const on=new i.OlP("XSRF_COOKIE_NAME"),la=new i.OlP("XSRF_HEADER_NAME");class ca{}let Fr=(()=>{class Te{constructor(oe,Pe,De){this.doc=oe,this.platform=Pe,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(on))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Pn=(()=>{class Te{constructor(oe,Pe){this.tokenService=oe,this.headerName=Pe}intercept(oe,Pe){const De=oe.url.toLowerCase();if("GET"===oe.method||"HEAD"===oe.method||De.startsWith("http://")||De.startsWith("https://"))return Pe.handle(oe);const Fe=this.tokenService.getToken();return null!==Fe&&!oe.headers.has(this.headerName)&&(oe=oe.clone({headers:oe.headers.set(this.headerName,Fe)})),Pe.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(ca),i.LFG(la))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ue=(()=>{class Te{constructor(oe,Pe){this.backend=oe,this.injector=Pe,this.chain=null}handle(oe){if(null===this.chain){const Pe=this.injector.get(Lt,[]);this.chain=Pe.reduceRight((De,Fe)=>new Tt(De,Fe),this.backend)}return this.chain.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(j),i.LFG(i.zs3))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),We=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:Pn,useClass:Ci}]}}static withOptions(oe={}){return{ngModule:Te,providers:[oe.cookieName?{provide:on,useValue:oe.cookieName}:[],oe.headerName?{provide:la,useValue:oe.headerName}:[]]}}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[Pn,{provide:Lt,useExisting:Pn,multi:!0},{provide:ca,useClass:Fr},{provide:on,useValue:"XSRF-TOKEN"},{provide:la,useValue:"X-XSRF-TOKEN"}]}),Te})(),Ue=(()=>{class Te{}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[ge,{provide:N,useClass:ue},Ut,{provide:j,useExisting:Ut}],imports:[[We.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Te})()},5e3:(Y,U,x)=>{"use strict";x.d(U,{deG:()=>kd,tb:()=>zb,AFp:()=>Yp,ip1:()=>qp,CZH:()=>ur,hGG:()=>BC,z2F:()=>cd,sBO:()=>px,Sil:()=>$m,_Vd:()=>Au,EJc:()=>Up,SBq:()=>yu,qLn:()=>Un,vpe:()=>Ir,tBr:()=>xo,XFs:()=>_e,OlP:()=>hi,zs3:()=>Ea,ZZ4:()=>Kp,aQg:()=>Pu,soG:()=>Lu,YKP:()=>bb,h0i:()=>ed,PXZ:()=>Ub,R0b:()=>Jn,FiY:()=>Ga,Lbi:()=>Zm,g9A:()=>sC,n_E:()=>Cu,Qsj:()=>Rw,FYo:()=>ub,JOm:()=>Is,q3G:()=>$i,tp0:()=>So,Rgc:()=>nd,dDg:()=>hC,GfV:()=>Kc,s_b:()=>rd,ifc:()=>Fe,eFA:()=>Gb,G48:()=>Jp,Gpc:()=>$,f3M:()=>Of,_c5:()=>nA,VLi:()=>qb,c2e:()=>Fb,zSh:()=>Vh,wAp:()=>pt,vHH:()=>ne,EiD:()=>$1,mCW:()=>zt,qzn:()=>Os,JVY:()=>UA,pB0:()=>$A,eBb:()=>Y1,L6k:()=>GA,LAX:()=>ZA,cg1:()=>zl,kL8:()=>F_,yhl:()=>q1,dqk:()=>Vt,sIi:()=>js,CqO:()=>F0,QGY:()=>$c,F4k:()=>u_,RDi:()=>cc,AaK:()=>N,z3N:()=>Rs,qOj:()=>qh,TTD:()=>ws,_Bn:()=>lb,xp6:()=>ky,uIk:()=>lr,Q2q:()=>Yh,Tol:()=>x_,Gre:()=>QM,ekj:()=>wr,Suo:()=>$w,Xpm:()=>Oa,lG2:()=>Be,Yz7:()=>di,cJS:()=>sn,oAB:()=>gs,Yjl:()=>vi,Y36:()=>Kd,_UZ:()=>d_,GkF:()=>nu,BQk:()=>z0,ynx:()=>iu,qZA:()=>V0,TgZ:()=>N0,EpF:()=>ep,n5z:()=>Ma,Ikx:()=>om,LFG:()=>hn,$8M:()=>wa,$Z:()=>Oo,NdJ:()=>j0,CRH:()=>Jw,kcU:()=>Td,O4$:()=>mc,oxw:()=>f_,ALo:()=>Mb,lcZ:()=>Dm,xi3:()=>Hm,Dn7:()=>Lm,Hsn:()=>W0,F$t:()=>tp,Q6J:()=>eu,s9C:()=>U0,MGl:()=>ip,hYB:()=>G0,DdM:()=>qw,VKq:()=>Mp,WLB:()=>td,iGM:()=>Dp,MAs:()=>D0,Jf7:()=>dy,CHM:()=>ba,oJD:()=>ey,LSH:()=>Wf,Udp:()=>np,WFA:()=>h_,d8E:()=>lm,YNc:()=>$d,_uU:()=>P_,Oqu:()=>im,hij:()=>ap,AsE:()=>nm,xDo:()=>sp,Gf:()=>Lb});var w=x(8929),i=x(2654),E=x(2916),T=x(6787),S=x(2474);function L(p){for(let m in p)if(p[m]===L)return m;throw Error("Could not find renamed property on target object.")}function R(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function N(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(N).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function j(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const q=L({__forward_ref__:L});function $(p){return p.__forward_ref__=$,p.toString=function(){return N(this())},p}function X(p){return ie(p)?p():p}function ie(p){return"function"==typeof p&&p.hasOwnProperty(q)&&p.__forward_ref__===$}class ne extends Error{constructor(m,g){super(function de(p,m){return`NG0${Math.abs(p)}${m?": "+m:""}`}(m,g)),this.code=m}}function me(p){return"string"==typeof p?p:null==p?"":String(p)}function Ne(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():me(p)}function Rt(p,m){const g=m?` in ${m}`:"";throw new ne(-201,`No provider for ${Ne(p)} found${g}`)}function st(p,m){null==p&&function bt(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function di(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function sn(p){return{providers:p.providers||[],imports:p.imports||[]}}function pi(p){return Ut(p,Fr)||Ut(p,ue)}function Ut(p,m){return p.hasOwnProperty(m)?p[m]:null}function ca(p){return p&&(p.hasOwnProperty(Pn)||p.hasOwnProperty(Le))?p[Pn]:null}const Fr=L({\u0275prov:L}),Pn=L({\u0275inj:L}),ue=L({ngInjectableDef:L}),Le=L({ngInjectorDef:L});var _e=(()=>((_e=_e||{})[_e.Default=0]="Default",_e[_e.Host=1]="Host",_e[_e.Self=2]="Self",_e[_e.SkipSelf=4]="SkipSelf",_e[_e.Optional=8]="Optional",_e))();let We;function it(p){const m=We;return We=p,m}function Qt(p,m,g){const _=pi(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&_e.Optional?null:void 0!==m?m:void Rt(N(p),"Injector")}function ae(p){return{toString:p}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Fe=(()=>{return(p=Fe||(Fe={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",Fe;var p})();const xe="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,It="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Vt=xe||"undefined"!=typeof global&&global||Ge||It,ft={},Ze=[],Vn=L({\u0275cmp:L}),Gt=L({\u0275dir:L}),Et=L({\u0275pipe:L}),pr=L({\u0275mod:L}),Xn=L({\u0275fac:L}),zn=L({__NG_ELEMENT_ID__:L});let sc=0;function Oa(p){return ae(()=>{const g={},_={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:p.selectors||Ze,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||Fe.Emulated,id:"c",styles:p.styles||Ze,_:null,setInput:null,schemas:p.schemas||null,tView:null},y=p.directives,v=p.features,D=p.pipes;return _.id+=sc++,_.inputs=M(p.inputs,g),_.outputs=M(p.outputs),v&&v.forEach(k=>k(_)),_.directiveDefs=y?()=>("function"==typeof y?y():y).map(ua):null,_.pipeDefs=D?()=>("function"==typeof D?D():D).map(fr):null,_})}function ua(p){return ln(p)||function Xe(p){return p[Gt]||null}(p)}function fr(p){return function ni(p){return p[Et]||null}(p)}const ms={};function gs(p){return ae(()=>{const m={type:p.type,bootstrap:p.bootstrap||Ze,declarations:p.declarations||Ze,imports:p.imports||Ze,exports:p.exports||Ze,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null};return null!=p.id&&(ms[p.id]=p.type),m})}function M(p,m){if(null==p)return ft;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,m&&(m[y]=v)}return g}const Be=Oa;function vi(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,onDestroy:p.type.prototype.ngOnDestroy||null}}function ln(p){return p[Vn]||null}function xt(p,m){const g=p[pr]||null;if(!g&&!0===m)throw new Error(`Type ${N(p)} does not have '\u0275mod' property.`);return g}function On(p){return Array.isArray(p)&&"object"==typeof p[1]}function er(p){return Array.isArray(p)&&!0===p[1]}function Zo(p){return 0!=(8&p.flags)}function Va(p){return 2==(2&p.flags)}function pa(p){return 1==(1&p.flags)}function tr(p){return null!==p.template}function As(p){return 0!=(512&p[2])}function Mn(p,m){return p.hasOwnProperty(Xn)?p[Xn]:null}class ma{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function ws(){return ut}function ut(p){return p.type.prototype.ngOnChanges&&(p.setInput=Zt),Ui}function Ui(){const p=_i(this),m=null==p?void 0:p.current;if(m){const g=p.previous;if(g===ft)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Zt(p,m,g,_){const y=_i(p)||function Sr(p,m){return p[za]=m}(p,{previous:ft,current:null}),v=y.current||(y.current={}),D=y.previous,k=this.declaredInputs[g],P=D[k];v[k]=new ma(P&&P.currentValue,m,D===ft),p[_]=m}ws.ngInherit=!0;const za="__ngSimpleChanges__";function _i(p){return p[za]||null}let ga;function cc(p){ga=p}function ro(){return void 0!==ga?ga:"undefined"!=typeof document?document:void 0}function Li(p){return!!p.listen}const B={createRenderer:(p,m)=>ro()};function I(p){for(;Array.isArray(p);)p=p[0];return p}function ye(p,m){return I(m[p])}function Se(p,m){return I(m[p.index])}function Yt(p,m){return p.data[m]}function Xt(p,m){return p[m]}function At(p,m){const g=m[p];return On(g)?g:g[0]}function Ft(p){return 4==(4&p[2])}function Gi(p){return 128==(128&p[2])}function ki(p,m){return null==m?null:p[m]}function _a(p){p[18]=0}function Er(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const mt={lFrame:Qu(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Yu(){return mt.bindingsEnabled}function be(){return mt.lFrame.lView}function $t(){return mt.lFrame.tView}function ba(p){return mt.lFrame.contextLView=p,p[8]}function Zi(){let p=dc();for(;null!==p&&64===p.type;)p=p.parent;return p}function dc(){return mt.lFrame.currentTNode}function qr(p,m){const g=mt.lFrame;g.currentTNode=p,g.isParent=m}function uc(){return mt.lFrame.isParent}function gr(){mt.lFrame.isParent=!1}function tl(){return mt.isInCheckNoChangesMode}function wd(p){mt.isInCheckNoChangesMode=p}function ei(){const p=mt.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function un(){return mt.lFrame.bindingIndex}function so(){return mt.lFrame.bindingIndex++}function jn(p){const m=mt.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function Ju(p,m){const g=mt.lFrame;g.bindingIndex=g.bindingRootIndex=p,xs(m)}function xs(p){mt.lFrame.currentDirectiveIndex=p}function oo(p){const m=mt.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function il(){return mt.lFrame.currentQueryIndex}function Yr(p){mt.lFrame.currentQueryIndex=p}function Wt(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function ja(p,m,g){if(g&_e.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&_e.Host||(y=Wt(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=mt.lFrame=Wr();return _.currentTNode=m,_.lView=p,!0}function lo(p){const m=Wr(),g=p[1];mt.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function Wr(){const p=mt.lFrame,m=null===p?null:p.child;return null===m?Qu(p):m}function Qu(p){const m={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:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function Cd(){const p=mt.lFrame;return mt.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const vd=Cd;function pc(){const p=Cd();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function xn(){return mt.lFrame.selectedIndex}function Dr(p){mt.lFrame.selectedIndex=p}function Oi(){const p=mt.lFrame;return Yt(p.tView,p.selectedIndex)}function mc(){mt.lFrame.currentNamespace="svg"}function Td(){!function Xu(){mt.lFrame.currentNamespace=null}()}function al(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:k,ngAfterViewInit:P,ngAfterViewChecked:F,ngOnDestroy:W}=v;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),P&&(p.viewHooks||(p.viewHooks=[])).push(-g,P),F&&((p.viewHooks||(p.viewHooks=[])).push(g,F),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,F)),null!=W&&(p.destroyHooks||(p.destroyHooks=[])).push(g,W)}}function Es(p,m,g){Ku(p,m,3,g)}function sl(p,m,g,_){(3&p[2])===g&&Ku(p,m,g,_)}function gc(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function Ku(p,m,g,_){const v=null!=_?_:-1,D=m.length-1;let k=0;for(let P=void 0!==_?65535&p[18]:0;P=_)break}else m[P]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===m){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class co{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function ol(p,m,g){const _=Li(p);let y=0;for(;ym){D=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let Ds=!0;function bc(p){const m=Ds;return Ds=p,m}let fo=0;function Hs(p,m){const g=Wa(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Ls(_.data,p),Ls(m,null),Ls(_.blueprint,null));const y=ya(p,m),v=p.injectorIndex;if(ho(y)){const D=Ya(y),k=po(y,m),P=k[1].data;for(let F=0;F<8;F++)m[v+F]=k[D+F]|P[D+F]}return m[v+8]=y,v}function Ls(p,m){p.push(0,0,0,0,0,0,0,0,m)}function Wa(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function ya(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){const v=y[1],D=v.type;if(_=2===D?v.declTNode:1===D?y[6]:null,null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function dl(p,m,g){!function Ac(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(zn)&&(_=g[zn]),null==_&&(_=g[zn]=fo++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:Hd:m}(g);if("function"==typeof v){if(!ja(m,p,_))return _&_e.Host?Dd(y,g,_):yc(m,g,_,y);try{const D=v(_);if(null!=D||_&_e.Optional)return D;Rt(g)}finally{vd()}}else if("number"==typeof v){let D=null,k=Wa(p,m),P=-1,F=_&_e.Host?m[16][6]:null;for((-1===k||_&_e.SkipSelf)&&(P=-1===k?ya(p,m):m[k+8],-1!==P&&sh(_,!1)?(D=m[1],k=Ya(P),m=po(P,m)):k=-1);-1!==k;){const W=m[1];if(ah(v,k,W.data)){const te=Cf(k,m,g,D,_,F);if(te!==rh)return te}P=m[k+8],-1!==P&&sh(_,m[1].data[k+8]===F)&&ah(v,k,m)?(D=W,k=Ya(P),m=po(P,m)):k=-1}}}return yc(m,g,_,y)}const rh={};function Hd(){return new Ua(Zi(),be())}function Cf(p,m,g,_,y,v){const D=m[1],k=D.data[p+8],W=hl(k,D,g,null==_?Va(k)&&Ds:_!=D&&0!=(3&k.type),y&_e.Host&&v===k);return null!==W?go(m,D,W,k):rh}function hl(p,m,g,_,y){const v=p.providerIndexes,D=m.data,k=1048575&v,P=p.directiveStart,W=v>>20,se=y?k+W:p.directiveEnd;for(let pe=_?k:k+W;pe=P&&ve.type===g)return pe}if(y){const pe=D[P];if(pe&&tr(pe)&&pe.type===g)return P}return null}function go(p,m,g,_){let y=p[g];const v=m.data;if(function xd(p){return p instanceof co}(y)){const D=y;D.resolving&&function ze(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ne(-200,`Circular dependency in DI detected for ${p}${g}`)}(Ne(v[g]));const k=bc(D.canSeeViewProviders);D.resolving=!0;const P=D.injectImpl?it(D.injectImpl):null;ja(p,_,_e.Default);try{y=p[g]=D.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function Ss(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const D=ut(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],m)}finally{null!==P&&it(P),bc(k),D.resolving=!1,vd()}}return y}function ah(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[Xn]||Ld(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[Xn]||Ld(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function Ld(p){return ie(p)?()=>{const m=Ld(X(p));return m&&m()}:Mn(p)}function wa(p){return function mo(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(ih(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===m)return g[y+1];y+=2}}}return null}(Zi(),p)}const bo="__parameters__";function Ur(p,m,g){return ae(()=>{const _=function ks(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...v){if(this instanceof y)return _.apply(this,v),this;const D=new y(...v);return k.annotation=D,k;function k(P,F,W){const te=P.hasOwnProperty(bo)?P[bo]:Object.defineProperty(P,bo,{value:[]})[bo];for(;te.length<=W;)te.push(null);return(te[W]=te[W]||[]).push(D),P}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class hi{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=di({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const kd=new hi("AnalyzeForEntryComponents");function _r(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?qn(g,m):m(g))}function Pd(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function gl(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Ca(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function ch(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Rd(p,m){const g=va(p,m);if(g>=0)return p[1|g]}function va(p,m){return function wo(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),D=p[v<m?y=v:_=v+1}return~(y<({token:p})),-1),Ga=To(Ur("Optional"),8),So=To(Ur("SkipSelf"),4);let rt,le;function H(p){var m;return(null===(m=function C(){if(void 0===rt&&(rt=null,Vt.trustedTypes))try{rt=Vt.trustedTypes.createPolicy("angular",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return rt}())||void 0===m?void 0:m.createHTML(p))||p}function ot(p){var m;return(null===(m=function we(){if(void 0===le&&(le=null,Vt.trustedTypes))try{le=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return le}())||void 0===m?void 0:m.createHTML(p))||p}class Bi{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Pr extends Bi{getTypeName(){return"HTML"}}class Ps extends Bi{getTypeName(){return"Style"}}class yl extends Bi{getTypeName(){return"Script"}}class j1 extends Bi{getTypeName(){return"URL"}}class WA extends Bi{getTypeName(){return"ResourceURL"}}function Rs(p){return p instanceof Bi?p.changingThisBreaksApplicationSecurity:p}function Os(p,m){const g=q1(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function q1(p){return p instanceof Bi&&p.getTypeName()||null}function UA(p){return new Pr(p)}function GA(p){return new Ps(p)}function Y1(p){return new yl(p)}function ZA(p){return new j1(p)}function $A(p){return new WA(p)}class zf{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(H(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class JA{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=H(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=H(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0zt(m.trim())).join(", ")),this.buf.push(" ",D,'="',Yf(P),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();G1.hasOwnProperty(g)&&!Lc.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(Yf(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const qf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,KA=/([^\#-~ |!])/g;function Yf(p){return p.replace(/&/g,"&").replace(qf,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(KA,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let Ah;function $1(p,m){let g=null;try{Ah=Ah||function W1(p){const m=new JA(p);return function QA(){try{return!!(new window.DOMParser).parseFromString(H(""),"text/html")}catch(p){return!1}}()?new zf(m):m}(p);let _=m?String(m):"";g=Ah.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=Ah.getInertBodyElement(_)}while(_!==v);return H((new XA).sanitizeChildren(kc(g)||g))}finally{if(g){const _=kc(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function kc(p){return"content"in p&&function J1(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var $i=(()=>(($i=$i||{})[$i.NONE=0]="NONE",$i[$i.HTML=1]="HTML",$i[$i.STYLE=2]="STYLE",$i[$i.SCRIPT=3]="SCRIPT",$i[$i.URL=4]="URL",$i[$i.RESOURCE_URL=5]="RESOURCE_URL",$i))();function ey(p){const m=Pc();return m?ot(m.sanitize($i.HTML,p)||""):Os(p,"HTML")?ot(Rs(p)):$1(ro(),me(p))}function Wf(p){const m=Pc();return m?m.sanitize($i.URL,p)||"":Os(p,"URL")?Rs(p):zt(me(p))}function Pc(){const p=be();return p&&p[12]}const eg="__ngContext__";function Wn(p,m){p[eg]=m}function xi(p){const m=function Ml(p){return p[eg]||null}(p);return m?Array.isArray(m)?m:m.lView:null}function Zf(p){return p.ngOriginalError}function $f(p,...m){p.error(...m)}class Un{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m),_=function vh(p){return p&&p.ngErrorLogger||$f}(m);_(this._console,"ERROR",m),g&&_(this._console,"ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Zf(m);for(;g&&Zf(g);)g=Zf(g);return g||null}}const cy=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Vt))();function dy(p){return p.ownerDocument.defaultView}function sr(p){return p instanceof Function?p():p}var Is=(()=>((Is=Is||{})[Is.Important=1]="Important",Is[Is.DashCase=2]="DashCase",Is))();function ng(p,m){return undefined(p,m)}function Qa(p){const m=p[3];return er(m)?m[3]:m}function rg(p){return py(p[13])}function ag(p){return py(p[4])}function py(p){for(;null!==p&&!er(p);)p=p[4];return p}function Do(p,m,g,_,y){if(null!=_){let v,D=!1;er(_)?v=_:On(_)&&(D=!0,_=_[0]);const k=I(_);0===p&&null!==g?null==y?xh(m,g,k):Bs(m,g,k,y||null,!0):1===p&&null!==g?Bs(m,g,k,y||null,!0):2===p?function jd(p,m,g){const _=Sh(p,m);_&&function Xa(p,m,g,_){Li(p)?p.removeChild(m,g,_):m.removeChild(g)}(p,_,m,g)}(m,k,D):3===p&&m.destroyNode(k),null!=v&&function tT(p,m,g,_,y){const v=g[7];v!==I(g)&&Do(m,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=gl(p,10+m);!function Qv(p,m){Ho(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=v[19];null!==D&&D.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function _y(p,m){if(!(256&m[2])){const g=m[11];Li(g)&&g.destroyNode&&Ho(p,m,g,3,null,null),function Kv(p){let m=p[13];if(!m)return Si(p[1],p);for(;m;){let g=null;if(On(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)On(m)&&Si(m[1],m),m=m[3];null===m&&(m=p),On(m)&&Si(m[1],m),g=m&&m[4]}m=g}}(m)}}function Si(p,m){if(!(256&m[2])){m[2]&=-129,m[2]|=256,function Ay(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=F]():_[y=-F].unsubscribe(),v+=2}else{const D=_[y=g[v+1]];g[v].call(D)}if(null!==_){for(let v=y+1;v<_.length;v++)_[v]();m[7]=null}}(p,m),1===m[1].type&&Li(m[11])&&m[11].destroy();const g=m[17];if(null!==g&&er(m[3])){g!==m[3]&&gy(g,m);const _=m[19];null!==_&&_.detachView(p)}}}function sg(p,m,g){return function yy(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===Fe.None||y===Fe.Emulated)return null}return Se(_,g)}(p,m.parent,g)}function Bs(p,m,g,_,y){Li(p)?p.insertBefore(m,g,_,y):m.insertBefore(g,_,y)}function xh(p,m,g){Li(p)?p.appendChild(m,g):m.appendChild(g)}function My(p,m,g,_,y){null!==_?Bs(p,m,g,_,y):xh(p,m,g)}function Sh(p,m){return Li(p)?p.parentNode(m):m.parentNode}function og(p,m,g){return vy(p,m,g)}let vy=function Cy(p,m,g){return 40&p.type?Se(p,g):null};function Xf(p,m,g,_){const y=sg(p,_,m),v=m[11],k=og(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let P=0;Pv?"":y[te+1].toLowerCase();const pe=8&_?se:null;if(pe&&-1!==xy(pe,F,0)||2&_&&F!==se){if(Ka(_))return!1;D=!0}}}}else{if(!D&&!Ka(_)&&!Ka(P))return!1;if(D&&Ka(P))continue;D=!1,_=P|1&_}}return Ka(_)||D}function Ka(p){return 0==(1&p)}function Dy(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!Ka(D)&&(m+=Ly(v,y),y=""),_=D,v=v||!Ka(_);g++}return""!==y&&(m+=Ly(v,y)),m}const Ot={};function ky(p){Py($t(),be(),xn()+p,tl())}function Py(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&Es(m,v,g)}else{const v=p.preOrderHooks;null!==v&&sl(m,v,0,g)}Dr(g)}function r0(p,m){return p<<17|m<<2}function es(p){return p>>17&32767}function dg(p){return 2|p}function Lo(p){return(131068&p)>>2}function ug(p,m){return-131069&p|m<<2}function hg(p){return 1|p}function Yy(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_20&&Py(p,m,20,tl()),g(_,y)}finally{Dr(v)}}function Uy(p,m,g){if(Zo(m)){const y=m.directiveEnd;for(let v=m.directiveStart;v0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(k)!=P&&k.push(P),k.push(_,y,D)}}function Sg(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function ko(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function Dg(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&p0(g)}}function p0(p){for(let _=rg(p);null!==_;_=ag(_))for(let y=10;y<_.length;y++){const v=_[y];if(1024&v[2]){const D=v[1];Vc(D,v,D.template,v[8])}else v[5]>0&&p0(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&p0(y)}}function oM(p,m){const g=At(m,p),_=g[1];(function zc(p,m){for(let g=m.length;gPromise.resolve(null))();function Oh(p){return p[7]||(p[7]=[])}function Wd(p){return p.cleanup||(p.cleanup=[])}function _0(p,m,g){return(null===p||tr(p))&&(g=function Q(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function Ig(p,m){const g=p[9],_=g?g.get(Un,null):null;_&&_.handleError(m)}function Bg(p,m,g,_,y){for(let v=0;vthis.processProvider(k,m,g)),qn([m],k=>this.processInjectorType(k,[],v)),this.records.set(Bh,qc(void 0,this));const D=this.records.get(Vh);this.scope=null!=D?D.value:null,this.source=y||("object"==typeof m?null:N(m))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(m=>m.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(m,g=vo,_=_e.Default){this.assertNotDestroyed();const y=kr(this),v=it(void 0);try{if(!(_&_e.SkipSelf)){let k=this.records.get(m);if(void 0===k){const P=function HT(p){return"function"==typeof p||"object"==typeof p&&p instanceof hi}(m)&&pi(m);k=P&&this.injectableDefInScope(P)?qc(A0(m),Fc):null,this.records.set(m,k)}if(null!=k)return this.hydrate(m,k)}return(_&_e.Self?hM():this.parent).get(m,g=_&_e.Optional&&g===vo?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[Cc]=D[Cc]||[]).unshift(N(m)),y)throw D;return function ph(p,m,g,_){const y=p[Cc];throw m[vc]&&y.unshift(m[vc]),p.message=function fh(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.substr(2):p;let y=N(m);if(Array.isArray(m))y=m.map(N).join(" -> ");else if("object"==typeof m){let v=[];for(let D in m)if(m.hasOwnProperty(D)){let k=m[D];v.push(D+":"+("string"==typeof k?JSON.stringify(k):N(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(kf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[Cc]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{it(v),kr(y)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(m=>this.get(m))}toString(){const m=[];return this.records.forEach((_,y)=>m.push(N(y))),`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(m,g,_){if(!(m=X(m)))return!1;let y=ca(m);const v=null==y&&m.ngModule||void 0,D=void 0===v?m:v,k=-1!==_.indexOf(D);if(void 0!==v&&(y=ca(v)),null==y)return!1;if(null!=y.imports&&!k){let W;_.push(D);try{qn(y.imports,te=>{this.processInjectorType(te,g,_)&&(void 0===W&&(W=[]),W.push(te))})}finally{}if(void 0!==W)for(let te=0;tethis.processProvider(ve,se,pe||Ze))}}this.injectorDefTypes.add(D);const P=Mn(D)||(()=>new D);this.records.set(D,qc(P,Fc));const F=y.providers;if(null!=F&&!k){const W=m;qn(F,te=>this.processProvider(te,W,F))}return void 0!==v&&void 0!==m.providers}processProvider(m,g,_){let y=Yc(m=X(m))?m:X(m&&m.provide);const v=function mM(p,m,g){return y0(p)?qc(void 0,p.useValue):qc(Fg(p),Fc)}(m);if(Yc(m)||!0!==m.multi)this.records.get(y);else{let D=this.records.get(y);D||(D=qc(void 0,Fc,!0),D.factory=()=>Nd(D.multi),this.records.set(y,D)),y=m,D.multi.push(m)}this.records.set(y,v)}hydrate(m,g){return g.value===Fc&&(g.value=Vg,g.value=g.factory()),"object"==typeof g.value&&g.value&&function qg(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=X(m.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function A0(p){const m=pi(p),g=null!==m?m.factory:Mn(p);if(null!==g)return g;if(p instanceof hi)throw new ne(204,!1);if(p instanceof Function)return function fM(p){const m=p.length;if(m>0)throw Ca(m,"?"),new ne(204,!1);const g=function on(p){const m=p&&(p[Fr]||p[ue]);if(m){const g=function la(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ne(204,!1)}function Fg(p,m,g){let _;if(Yc(p)){const y=X(p);return Mn(y)||A0(y)}if(y0(p))_=()=>X(p.useValue);else if(function gM(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Nd(p.deps||[]));else if(function jg(p){return!(!p||!p.useExisting)}(p))_=()=>hn(X(p.useExisting));else{const y=X(p&&(p.useClass||p.provide));if(!function bM(p){return!!p.deps}(p))return Mn(y)||A0(y);_=()=>new y(...Nd(p.deps))}return _}function qc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function y0(p){return null!==p&&"object"==typeof p&&Pf in p}function Yc(p){return"function"==typeof p}let Ea=(()=>{class p{static create(g,_){var y;if(Array.isArray(g))return zh({name:""},_,g,"");{const v=null!==(y=g.name)&&void 0!==y?y:"";return zh({name:v},g.parent,g.providers,v)}}}return p.THROW_IF_NOT_FOUND=vo,p.NULL=new Nh,p.\u0275prov=di({token:p,providedIn:"any",factory:()=>hn(Bh)}),p.__NG_ELEMENT_ID__=-1,p})();function Fs(p,m){al(xi(p)[1],Zi())}function qh(p){let m=function Ct(p){return Object.getPrototypeOf(p.prototype).constructor}(p.type),g=!0;const _=[p];for(;m;){let y;if(tr(p))y=m.\u0275cmp||m.\u0275dir;else{if(m.\u0275cmp)throw new ne(903,"");y=m.\u0275dir}if(y){if(g){_.push(y);const D=p;D.inputs=Re(p.inputs),D.declaredInputs=Re(p.declaredInputs),D.outputs=Re(p.outputs);const k=y.hostBindings;k&&Ht(p,k);const P=y.viewQuery,F=y.contentQueries;if(P&&Nt(p,P),F&&Hl(p,F),R(p.inputs,y.inputs),R(p.declaredInputs,y.declaredInputs),R(p.outputs,y.outputs),tr(y)&&y.data.animation){const W=p.data;W.animation=(W.animation||[]).concat(y.data.animation)}}const v=y.features;if(v)for(let D=0;D=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=ll(y.hostAttrs,g=ll(g,y.hostAttrs))}}(_)}function Re(p){return p===ft?{}:p===Ze?[]:p}function Nt(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function Hl(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function Ht(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let yr=null;function Gd(){if(!yr){const p=Vt.Symbol;if(p&&p.iterator)yr=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(I(Jt[_.index])):_.index;if(Li(g)){let Jt=null;if(!k&&P&&(Jt=function q0(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vP?k[P]:null}"string"==typeof D&&(v+=2)}return null}(p,m,y,_.index)),null!==Jt)(Jt.__ngLastListenerFn__||Jt).__ngNextListenerFn__=v,Jt.__ngLastListenerFn__=v,pe=!1;else{v=Y0(_,m,te,v,!1);const Ai=g.listen(et,y,v);se.push(v,Ai),W&&W.push(y,ct,Ee,Ee+1)}}else v=Y0(_,m,te,v,!0),et.addEventListener(y,v,D),se.push(v),W&&W.push(y,ct,Ee,D)}else v=Y0(_,m,te,v,!1);const ve=_.outputs;let Ve;if(pe&&null!==ve&&(Ve=ve[y])){const Ye=Ve.length;if(Ye)for(let et=0;et0;)m=m[15],p--;return m}(p,mt.lFrame.contextLView))[8]}(p)}function m_(p,m){let g=null;const _=function sT(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const pn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function C_(p){return p.substring(pn.key,pn.keyEnd)}function Jc(p,m){const g=pn.textEnd;return g===m?-1:(m=pn.keyEnd=function jM(p,m,g){for(;m32;)m++;return m}(p,pn.key=m,g),Io(p,m,g))}function Io(p,m,g){for(;m=0;g=Jc(m,g))rr(p,C_(m),!0)}function Ha(p,m,g,_){const y=be(),v=$t(),D=jn(2);v.firstUpdatePass&&S_(v,p,D,_),m!==Ot&&In(y,D,m)&&ou(v,v.data[xn()],y,y[11],p,y[D+1]=function L_(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=N(Rs(p)))),p}(m,g),_,D)}function ia(p,m,g,_){const y=$t(),v=jn(2);y.firstUpdatePass&&S_(y,null,v,_);const D=be();if(g!==Ot&&In(D,v,g)){const k=y.data[xn()];if(k_(k,_)&&!au(y,v)){let P=_?k.classesWithoutHost:k.stylesWithoutHost;null!==P&&(g=j(P,g||"")),tu(y,k,D,g,_)}else!function H_(p,m,g,_,y,v,D,k){y===Ot&&(y=Ze);let P=0,F=0,W=0=p.expandoStartIndex}function S_(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[xn()],D=au(p,g);k_(v,_)&&null===m&&!D&&(m=!1),m=function GM(p,m,g,_){const y=oo(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=su(g=em(null,p,m,g,_),m.attrs,_),v=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=em(y,p,m,g,_),null===v){let P=function K0(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==Lo(_))return p[es(_)]}(p,m,_);void 0!==P&&Array.isArray(P)&&(P=em(null,p,m,P[1],_),P=su(P,m.attrs,_),function ZM(p,m,g,_){p[es(g?m.classBindings:m.styleBindings)]=_}(p,m,_,P))}else v=function E_(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(F=!0)}else W=g;if(y)if(0!==P){const se=es(p[k+1]);p[_+1]=r0(se,k),0!==se&&(p[se+1]=ug(p[se+1],_)),p[k+1]=function hT(p,m){return 131071&p|m<<17}(p[k+1],_)}else p[_+1]=r0(k,0),0!==k&&(p[k+1]=ug(p[k+1],_)),k=_;else p[_+1]=r0(P,0),0===k?k=_:p[P+1]=ug(p[P+1],_),P=_;F&&(p[_+1]=dg(p[_+1])),w_(p,W,_,!0),w_(p,W,_,!1),function zM(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&va(v,m)>=0&&(g[_+1]=hg(g[_+1]))}(m,W,p,_,v),D=r0(k,P),v?m.classBindings=D:m.styleBindings=D}(y,v,m,g,D,_)}}function em(p,m,g,_,y){let v=null;const D=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const P=p[y],F=Array.isArray(P),W=F?P[1]:P,te=null===W;let se=g[y+1];se===Ot&&(se=te?Ze:void 0);let pe=te?Rd(se,_):W===_?se:void 0;if(F&&!rp(pe)&&(pe=Rd(P,_)),rp(pe)&&(k=pe,D))return k;const ve=p[y+1];y=D?es(ve):Lo(ve)}if(null!==m){let P=v?m.residualClasses:m.residualStyles;null!=P&&(k=Rd(P,_))}return k}function rp(p){return void 0!==p}function k_(p,m){return 0!=(p.flags&(m?16:32))}function P_(p,m=""){const g=be(),_=$t(),y=p+20,v=_.firstCreatePass?qd(_,y,1,m,null):_.data[y],D=g[y]=function Nc(p,m){return Li(p)?p.createText(m):p.createTextNode(m)}(g[11],m);Xf(_,g,D,v),qr(v,!1)}function im(p){return ap("",p,""),im}function ap(p,m,g){const _=be(),y=Po(_,p,m,g);return y!==Ot&&$r(_,xn(),y),ap}function nm(p,m,g,_,y){const v=be(),D=kl(v,p,m,g,_,y);return D!==Ot&&$r(v,xn(),D),nm}function sp(p,m,g,_,y,v,D,k,P,F,W){const te=be(),se=Kr(te,p,m,g,_,y,v,D,k,P,F,W);return se!==Ot&&$r(te,xn(),se),sp}function QM(p,m,g){ia(rr,Da,Po(be(),p,m,g),!0)}function om(p,m,g){const _=be();return In(_,so(),m)&&or($t(),Oi(),_,p,m,_[11],g,!0),om}function lm(p,m,g){const _=be();if(In(_,so(),m)){const v=$t(),D=Oi();or(v,D,_,p,m,_0(oo(v.data),D,_),g,!0)}return lm}const No=void 0;var Qc=["en",[["a","p"],["AM","PM"],No],[["AM","PM"],No,No],[["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"]],No,[["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"]],No,[["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}",No,"{1} 'at' {0}",No],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function qT(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let Vl={};function zl(p){const m=function j_(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=dm(m);if(g)return g;const _=m.split("-")[0];if(g=dm(_),g)return g;if("en"===_)return Qc;throw new Error(`Missing locale data for the locale "${p}".`)}function F_(p){return zl(p)[pt.PluralCase]}function dm(p){return p in Vl||(Vl[p]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[p]),Vl[p]}var pt=(()=>((pt=pt||{})[pt.LocaleId=0]="LocaleId",pt[pt.DayPeriodsFormat=1]="DayPeriodsFormat",pt[pt.DayPeriodsStandalone=2]="DayPeriodsStandalone",pt[pt.DaysFormat=3]="DaysFormat",pt[pt.DaysStandalone=4]="DaysStandalone",pt[pt.MonthsFormat=5]="MonthsFormat",pt[pt.MonthsStandalone=6]="MonthsStandalone",pt[pt.Eras=7]="Eras",pt[pt.FirstDayOfWeek=8]="FirstDayOfWeek",pt[pt.WeekendRange=9]="WeekendRange",pt[pt.DateFormat=10]="DateFormat",pt[pt.TimeFormat=11]="TimeFormat",pt[pt.DateTimeFormat=12]="DateTimeFormat",pt[pt.NumberSymbols=13]="NumberSymbols",pt[pt.NumberFormats=14]="NumberFormats",pt[pt.CurrencyCode=15]="CurrencyCode",pt[pt.CurrencySymbol=16]="CurrencySymbol",pt[pt.CurrencyName=17]="CurrencyName",pt[pt.Currencies=18]="Currencies",pt[pt.Directionality=19]="Directionality",pt[pt.PluralCase=20]="PluralCase",pt[pt.ExtraData=21]="ExtraData",pt))();const cp="en-US";let dp=cp;function wm(p,m,g,_,y){if(p=X(p),Array.isArray(p))for(let v=0;v>20;if(Yc(p)||!p.multi){const pe=new co(P,y,Kd),ve=Pt(k,m,y?W:W+se,te);-1===ve?(dl(Hs(F,D),v,k),Cm(v,p,m.length),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(pe),D.push(pe)):(g[ve]=pe,D[ve]=pe)}else{const pe=Pt(k,m,W+se,te),ve=Pt(k,m,W,W+se),Ve=pe>=0&&g[pe],Ye=ve>=0&&g[ve];if(y&&!Ye||!y&&!Ve){dl(Hs(F,D),v,k);const et=function Ew(p,m,g,_,y){const v=new co(p,g,Kd);return v.multi=[],v.index=m,v.componentProviders=0,ob(v,y,_&&!g),v}(y?ns:$T,g.length,y,_,P);!y&&Ye&&(g[ve].providerFactory=et),Cm(v,p,m.length,0),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(et),D.push(et)}else Cm(v,p,pe>-1?pe:ve,ob(g[y?ve:pe],P,!y&&_));!y&&_&&Ye&&g[ve].componentProviders++}}}function Cm(p,m,g,_){const y=Yc(m),v=function _M(p){return!!p.useClass}(m);if(y||v){const P=(v?X(m.useClass):m).prototype.ngOnDestroy;if(P){const F=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const W=F.indexOf(g);-1===W?F.push(g,[_,P]):F[W+1].push(_,P)}else F.push(g,P)}}}function ob(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function Pt(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function $T(p,m,g,_){return vm(this.multi,[])}function ns(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const D=this.providerFactory.componentProviders,k=go(g,g[1],this.providerFactory.index,_);v=k.slice(0,D),vm(y,v);for(let P=D;P{g.providersResolver=(_,y)=>function ZT(p,m,g){const _=$t();if(_.firstCreatePass){const y=tr(p);wm(g,_.data,_.blueprint,y,!0),wm(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class cb{}class Lw{resolveComponentFactory(m){throw function Hw(p){const m=Error(`No component factory found for ${N(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let Au=(()=>{class p{}return p.NULL=new Lw,p})();function kw(){return Xc(Zi(),be())}function Xc(p,m){return new yu(Se(p,m))}let yu=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=kw,p})();function Pw(p){return p instanceof yu?p.nativeElement:p}class ub{}let Rw=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function Fl(){const p=be(),g=At(Zi().index,p);return function hb(p){return p[11]}(On(g)?g:p)}(),p})(),Ow=(()=>{class p{}return p.\u0275prov=di({token:p,providedIn:"root",factory:()=>null}),p})();class Kc{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const XT=new Kc("13.2.2"),pb={};function Tm(p,m,g,_,y=!1){for(;null!==g;){const v=m[g.index];if(null!==v&&_.push(I(v)),er(v))for(let k=10;k-1&&(Tl(m,_),gl(g,_))}this._attachedToViewContainer=!1}_y(this._lView[1],this._lView)}onDestroy(m){c0(this._lView[1],this._lView,null,m)}markForCheck(){Lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){m0(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Rh(p,m,g){wd(!0);try{m0(p,m,g)}finally{wd(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Xv(p,m){Ho(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=m}}class fb extends Mu{constructor(m){super(m),this._view=m}detectChanges(){Og(this._view)}checkNoChanges(){!function lM(p){wd(!0);try{Og(p)}finally{wd(!1)}}(this._view)}get context(){return null}}class mb extends Au{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=ln(m);return new yp(g,this.ngModule)}}function rs(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}const Bw=new hi("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>cy});class yp extends cb{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function dT(p){return p.map(cT).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return rs(this.componentDef.inputs)}get outputs(){return rs(this.componentDef.outputs)}create(m,g,_,y){const v=(y=y||this.ngModule)?function KT(p,m){return{get:(g,_,y)=>{const v=p.get(g,pb,y);return v!==pb||_===pb?v:m.get(g,_,y)}}}(m,y.injector):m,D=v.get(ub,B),k=v.get(Ow,null),P=D.createRenderer(null,this.componentDef),F=this.componentDef.selectors[0][0]||"div",W=_?function vn(p,m,g){if(Li(p))return p.selectRootElement(m,g===Fe.ShadowDom);let _="string"==typeof m?p.querySelector(m):m;return _.textContent="",_}(P,_,this.componentDef.encapsulation):Fd(D.createRenderer(null,this.componentDef),F,function Iw(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(F)),te=this.componentDef.onPush?576:528,se=function Zg(p,m){return{components:[],scheduler:p||cy,clean:dM,playerHandler:m||null,flags:0}}(),pe=l0(0,null,null,1,0,null,null,null,null,null),ve=Eh(null,pe,se,te,null,null,D,P,k,v);let Ve,Ye;lo(ve);try{const et=function w0(p,m,g,_,y,v){const D=g[1];g[20]=p;const P=qd(D,20,2,"#host",null),F=P.mergedAttrs=m.hostAttrs;null!==F&&(b0(P,F,!0),null!==p&&(ol(y,p,F),null!==P.classes&&t0(y,p,P.classes),null!==P.styles&&cg(y,p,P.styles)));const W=_.createRenderer(p,m),te=Eh(g,Gy(m),null,m.onPush?64:16,g[20],P,_,W,v||null,null);return D.firstCreatePass&&(dl(Hs(P,g),D,m.type),ko(D,P),u0(P,g.length,1)),f0(g,te),g[20]=te}(W,this.componentDef,ve,D,P);if(W)if(_)ol(P,W,["ng-version",XT.full]);else{const{attrs:Ee,classes:ct}=function uT(p){const m=[],g=[];let _=1,y=2;for(;_0&&t0(P,W,ct.join(" "))}if(Ye=Yt(pe,20),void 0!==g){const Ee=Ye.projection=[];for(let ct=0;ctP(D,m)),m.contentQueries){const P=Zi();m.contentQueries(1,D,P.directiveStart)}const k=Zi();return!v.firstCreatePass||null===m.hostBindings&&null===m.hostAttrs||(Dr(k.index),tM(g[1],k,0,k.directiveStart,k.directiveEnd,m),Sg(m,D)),D}(et,this.componentDef,ve,se,[Fs]),Dh(pe,ve,null)}finally{pc()}return new Vw(this.componentType,Ve,Xc(Ye,ve),ve,Ye)}}class Vw extends class Dw{}{constructor(m,g,_,y,v){super(),this.location=_,this._rootLView=y,this._tNode=v,this.instance=g,this.hostView=this.changeDetectorRef=new fb(y),this.componentType=m}get injector(){return new Ua(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(m){this.hostView.onDestroy(m)}}class ed{}class bb{}const as=new Map;class Sm extends ed{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new mb(this);const _=xt(m);this._bootstrapComponents=sr(_.bootstrap),this._r3Injector=zg(m,g,[{provide:ed,useValue:this},{provide:Au,useValue:this.componentFactoryResolver}],N(m)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(m)}get(m,g=Ea.THROW_IF_NOT_FOUND,_=_e.Default){return m===Ea||m===ed||m===Bh?this:this._r3Injector.get(m,g,_)}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class tn extends bb{constructor(m){super(),this.moduleType=m,null!==xt(m)&&function zw(p){const m=new Set;!function g(_){const y=xt(_,!0),v=y.id;null!==v&&(function Ws(p,m,g){if(m&&m!==g)throw new Error(`Duplicate module registered for ${p} - ${N(m)} vs ${N(m.name)}`)}(v,as.get(v),_),as.set(v,_));const D=sr(y.imports);for(const k of D)m.has(k)||(m.add(k),g(k))}(p)}(m)}create(m){return new Sm(this.moduleType,m)}}function qw(p,m,g){const _=ei()+p,y=be();return y[_]===Ot?Qr(y,_,g?m.call(g):m()):function Xr(p,m){return p[m]}(y,_)}function Mp(p,m,g,_){return nn(be(),ei(),p,m,g,_)}function td(p,m,g,_,y){return Us(be(),ei(),p,m,g,_,y)}function wu(p,m){const g=p[m];return g===Ot?void 0:g}function nn(p,m,g,_,y,v){const D=m+g;return In(p,D,y)?Qr(p,D+1,v?_.call(v,y):_(y)):wu(p,D+1)}function Us(p,m,g,_,y,v,D){const k=m+g;return qs(p,k,y,v)?Qr(p,k+2,D?_.call(D,y,v):_(y,v)):wu(p,k+2)}function Em(p,m,g,_,y,v,D,k){const P=m+g;return function Wc(p,m,g,_,y){const v=qs(p,m,g,_);return In(p,m+2,y)||v}(p,P,y,v,D)?Qr(p,P+3,k?_.call(k,y,v,D):_(y,v,D)):wu(p,P+3)}function Mb(p,m){const g=$t();let _;const y=p+20;g.firstCreatePass?(_=function Dn(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=Mn(_.type)),D=it(Kd);try{const k=bc(!1),P=v();return bc(k),function Zh(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,be(),y,P),P}finally{it(D)}}function Dm(p,m,g){const _=p+20,y=be(),v=Xt(y,_);return id(y,_)?nn(y,ei(),m,v.transform,g,v):v.transform(g)}function Hm(p,m,g,_){const y=p+20,v=be(),D=Xt(v,y);return id(v,y)?Us(v,ei(),m,D.transform,g,_,D):D.transform(g,_)}function Lm(p,m,g,_,y){const v=p+20,D=be(),k=Xt(D,v);return id(D,v)?Em(D,ei(),m,k.transform,g,_,y,k):k.transform(g,_,y)}function id(p,m){return p[1].data[m].pure}function wp(p){return m=>{setTimeout(p,void 0,m)}}const Ir=class vb extends w.xQ{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){var y,v,D;let k=m,P=g||(()=>null),F=_;if(m&&"object"==typeof m){const te=m;k=null===(y=te.next)||void 0===y?void 0:y.bind(te),P=null===(v=te.error)||void 0===v?void 0:v.bind(te),F=null===(D=te.complete)||void 0===D?void 0:D.bind(te)}this.__isAsync&&(P=wp(P),k&&(k=wp(k)),F&&(F=wp(F)));const W=super.subscribe({next:k,error:P,complete:F});return m instanceof i.w&&m.add(W),W}};function Tb(){return this._results[Gd()]()}class Cu{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Gd(),_=Cu.prototype;_[g]||(_[g]=Tb)}get changes(){return this._changes||(this._changes=new Ir)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=_r(m);(this._changesDetected=!function Df(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=Sb,p})();const xb=nd,Gw=class extends xb{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m){const g=this._declarationTContainer.tViews,_=Eh(this._declarationLView,g,m,16,null,g.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(_[19]=v.createEmbeddedView(g)),Dh(g,_,m),new Mu(_)}};function Sb(){return vu(Zi(),be())}function vu(p,m){return 4&p.type?new Gw(m,p,Xc(p,m)):null}let rd=(()=>{class p{}return p.__NG_ELEMENT_ID__=Eb,p})();function Eb(){return vp(Zi(),be())}const km=rd,Pm=class extends km{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return Xc(this._hostTNode,this._hostLView)}get injector(){return new Ua(this._hostTNode,this._hostLView)}get parentInjector(){const m=ya(this._hostTNode,this._hostLView);if(ho(m)){const g=po(m,this._hostLView),_=Ya(m);return new Ua(g[1].data[_+8],g)}return new Ua(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=Rm(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){const y=m.createEmbeddedView(g||{});return this.insert(y,_),y}createComponent(m,g,_,y,v){const D=m&&!function ml(p){return"function"==typeof p}(m);let k;if(D)k=g;else{const te=g||{};k=te.index,_=te.injector,y=te.projectableNodes,v=te.ngModuleRef}const P=D?m:new yp(ln(m)),F=_||this.parentInjector;if(!v&&null==P.ngModule&&F){const te=F.get(ed,null);te&&(v=te)}const W=P.create(F,y,void 0,v);return this.insert(W.hostView,k),W}insert(m,g){const _=m._lView,y=_[1];if(function Ti(p){return er(p[3])}(_)){const W=this.indexOf(m);if(-1!==W)this.detach(W);else{const te=_[3],se=new Pm(te,te[6],te[3]);se.detach(se.indexOf(m))}}const v=this._adjustIndex(g),D=this._lContainer;!function eT(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[k/2]);else{const F=v[k+1],W=m[-P];for(let te=10;te{class p{constructor(g){this.appInits=g,this.resolve=Hu,this.reject=Hu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:P})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(hn(qp,8))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Yp=new hi("AppId"),Wp={provide:Yp,useFactory:function aC(){return`${Gm()}${Gm()}${Gm()}`},deps:[]};function Gm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const sC=new hi("Platform Initializer"),Zm=new hi("Platform ID"),zb=new hi("appBootstrapListener");let Fb=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Lu=new hi("LocaleId"),Up=new hi("DefaultCurrencyCode");class Fo{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let $m=(()=>{class p{compileModuleSync(g){return new tn(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=sr(xt(g).declarations).reduce((D,k)=>{const P=ln(k);return P&&D.push(new yp(P)),D},[]);return new Fo(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Qm=(()=>Promise.resolve(0))();function Gp(p){"undefined"==typeof Zone?Qm.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Jn{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ir(!1),this.onMicrotaskEmpty=new Ir(!1),this.onStable=new Ir(!1),this.onError=new Ir(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const y=this;y._nesting=0,y._outer=y._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function lC(){let p=Vt.requestAnimationFrame,m=Vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function Xm(p){const m=()=>{!function dC(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(Vt,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Km(p),p.isCheckStableRunning=!0,Zp(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Km(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,D,k)=>{try{return jb(p),g.invokeTask(y,v,D,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),e1(p)}},onInvoke:(g,_,y,v,D,k,P)=>{try{return jb(p),g.invoke(y,v,D,k,P)}finally{p.shouldCoalesceRunChangeDetection&&m(),e1(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Km(p),Zp(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Jn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Jn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,D=v.scheduleEventTask("NgZoneEvent: "+y,m,cC,Hu,Hu);try{return v.runTask(D,g,_)}finally{v.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const cC={};function Zp(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Km(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function jb(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function e1(p){p._nesting--,Zp(p)}class uC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ir,this.onMicrotaskEmpty=new Ir,this.onStable=new Ir,this.onError=new Ir}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}let hC=(()=>{class p{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Jn.assertNotInAngularZone(),Gp(()=>{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())Gp(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!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(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(hn(Jn))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})(),$p=(()=>{class p{constructor(){this._applications=new Map,t1.addToWindow(this)}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return t1.findTestabilityInTree(this,g,_)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();class pC{addToWindow(m){}findTestabilityInTree(m,g,_){return null}}function qb(p){t1=p}let aa,t1=new pC;const Wb=new hi("AllowMultipleToken");class Ub{constructor(m,g){this.name=m,this.token=g}}function Gb(p,m,g=[]){const _=`Platform: ${m}`,y=new hi(_);return(v=[])=>{let D=Zb();if(!D||D.injector.get(Wb,!1))if(p)p(g.concat(v).concat({provide:y,useValue:!0}));else{const k=g.concat(v).concat({provide:y,useValue:!0},{provide:Vh,useValue:"platform"});!function fC(p){if(aa&&!aa.destroyed&&!aa.injector.get(Wb,!1))throw new ne(400,"");aa=p.get(r1);const m=p.get(sC,null);m&&m.forEach(g=>g())}(Ea.create({providers:k,name:_}))}return function Nr(p){const m=Zb();if(!m)throw new ne(401,"");return m}()}}function Zb(){return aa&&!aa.destroyed?aa:null}let r1=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const k=function mC(p,m){let g;return g="noop"===p?new uC:("zone.js"===p?void 0:p)||new Jn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==m?void 0:m.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==m?void 0:m.ngZoneRunCoalescing)}),g}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),P=[{provide:Jn,useValue:k}];return k.run(()=>{const F=Ea.create({providers:P,parent:this.injector,name:g.moduleType.name}),W=g.create(F),te=W.injector.get(Un,null);if(!te)throw new ne(402,"");return k.runOutsideAngular(()=>{const se=k.onError.subscribe({next:pe=>{te.handleError(pe)}});W.onDestroy(()=>{a1(this._modules,W),se.unsubscribe()})}),function $b(p,m,g){try{const _=g();return $c(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(te,k,()=>{const se=W.injector.get(ur);return se.runInitializers(),se.donePromise.then(()=>(function um(p){st(p,"Expected localeId to be defined"),"string"==typeof p&&(dp=p.toLowerCase().replace(/_/g,"-"))}(W.injector.get(Lu,cp)||cp),this._moduleDoBootstrap(W),W))})})}bootstrapModule(g,_=[]){const y=Jb({},_);return function Yl(p,m,g){const _=new tn(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(cd);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ne(403,"");g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(hn(Ea))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();function Jb(p,m){return Array.isArray(m)?m.reduce(Jb,p):Object.assign(Object.assign({},p),m)}let cd=(()=>{class p{constructor(g,_,y,v,D){this._zone=g,this._injector=_,this._exceptionHandler=y,this._componentFactoryResolver=v,this._initStatus=D,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const k=new E.y(F=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{F.next(this._stable),F.complete()})}),P=new E.y(F=>{let W;this._zone.runOutsideAngular(()=>{W=this._zone.onStable.subscribe(()=>{Jn.assertNotInAngularZone(),Gp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,F.next(!0))})})});const te=this._zone.onUnstable.subscribe(()=>{Jn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{F.next(!1)}))});return()=>{W.unsubscribe(),te.unsubscribe()}});this.isStable=(0,T.T)(k,P.pipe((0,S.B)()))}bootstrap(g,_){if(!this._initStatus.done)throw new ne(405,"");let y;y=g instanceof cb?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(y.componentType);const v=function Yb(p){return p.isBoundToModule}(y)?void 0:this._injector.get(ed),k=y.create(Ea.NULL,[],_||y.selector,v),P=k.location.nativeElement,F=k.injector.get(hC,null),W=F&&k.injector.get($p);return F&&W&&W.registerApplication(P,F),k.onDestroy(()=>{this.detachView(k.hostView),a1(this.components,k),W&&W.unregisterApplication(P)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;a1(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(zb,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return p.\u0275fac=function(g){return new(g||p)(hn(Jn),hn(Ea),hn(Un),hn(Au),hn(ur))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();function a1(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let gC=!0;function Jp(){gC=!1}let px=(()=>{class p{}return p.__NG_ELEMENT_ID__=AC,p})();function AC(p){return function yC(p,m,g){if(Va(p)&&!g){const _=At(p.index,m);return new Mu(_,_)}return 47&p.type?new Mu(m[16],m):null}(Zi(),be(),16==(16&p))}class Kb{constructor(){}supports(m){return js(m)}create(m){return new xC(m)}}const TC=(p,m)=>m;class xC{constructor(m){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=m||TC}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,k,D,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let v;return null===m?v=this._itTail:(v=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,v,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,v,y)):m=this._addAfter(new Cx(g,_),v,y),m}_verifyReinsertion(m,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?m=this._reinsertAfter(v,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}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(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,v=m._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new ku),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ku),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class Cx{constructor(m,g){this.item=m,this.trackById=g,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 SC{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class ku{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new SC,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hd(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const v=y._prev,D=y._next;return v&&(v._next=D),D&&(D._prev=v),y._next=null,y._prev=null,y}const _=new pd(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class pd{constructor(m){this.key=m,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 tA(){return new Kp([new Kb])}let Kp=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||tA()),deps:[[p,new So,new Ga]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ne(901,"")}}return p.\u0275prov=di({token:p,providedIn:"root",factory:tA}),p})();function iA(){return new Pu([new EC])}let Pu=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||iA()),deps:[[p,new So,new Ga]]}}find(g){const _=this.factories.find(v=>v.supports(g));if(_)return _;throw new ne(901,"")}}return p.\u0275prov=di({token:p,providedIn:"root",factory:iA}),p})();const DC=[new EC],LC=new Kp([new Kb]),Tx=new Pu(DC),nA=Gb(null,"core",[{provide:Zm,useValue:"unknown"},{provide:r1,deps:[Ea]},{provide:$p,deps:[]},{provide:Fb,deps:[]}]),OC=[{provide:cd,useClass:cd,deps:[Jn,Ea,Un,Au,ur]},{provide:Bw,deps:[Jn],useFactory:function IC(p){let m=[];return p.onStable.subscribe(()=>{for(;m.length;)m.pop()()}),function(g){m.push(g)}}},{provide:ur,useClass:ur,deps:[[new Ga,qp]]},{provide:$m,useClass:$m,deps:[]},Wp,{provide:Kp,useFactory:function PC(){return LC},deps:[]},{provide:Pu,useFactory:function xx(){return Tx},deps:[]},{provide:Lu,useFactory:function rA(p){return p||function RC(){return"undefined"!=typeof $localize&&$localize.locale||cp}()},deps:[[new xo(Lu),new Ga,new So]]},{provide:Up,useValue:"USD"}];let BC=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(hn(cd))},p.\u0275mod=gs({type:p}),p.\u0275inj=sn({providers:OC}),p})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),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 U;return function(w){return(U||(U=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(w||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(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,w){this.data.set(x,w)}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(U){this.type=U}}class OAuthSuccessEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(U,x,w=null){super(U),this.reason=x,this.params=w}}function b64DecodeUnicode(Y){const U=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(U).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(U){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=x=>{location.href=x},U&&Object.assign(this,U)}}class WebHttpUrlEncodingCodec{encodeKey(U){return encodeURIComponent(U)}encodeValue(U){return encodeURIComponent(U)}decodeKey(U){return decodeURIComponent(U)}decodeValue(U){return decodeURIComponent(U)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(U){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let x=this.inferHashAlgorithm(U.idTokenHeader),w=yield this.calcHash(U.accessToken,x),E=base64UrlEncode(w.substr(0,w.length/2)),T=U.idTokenClaims.at_hash.replace(/=/g,"");return E!==T&&(console.error("exptected at_hash: "+E),console.error("actual at_hash: "+T)),E===T})}inferHashAlgorithm(U){let x=U.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(x){let w=x||window.location.hash;if(w=decodeURIComponent(w),0!==w.indexOf("#"))return{};const i=w.indexOf("?");return w=w.substr(i>-1?i+1:1),this.parseQueryString(w)}parseQueryString(x){const w={};let i,E,T,S,L,R,N;if(null===x)return w;i=x.split("&");for(let j=0;j>6,E[S++]=128|63&L):L<55296||L>=57344?(E[S++]=224|L>>12,E[S++]=128|L>>6&63,E[S++]=128|63&L):(L=65536+((1023&L)<<10|1023&Y.charCodeAt(++w)),E[S++]=240|L>>18,E[S++]=128|L>>12&63,E[S++]=128|L>>6&63,E[S++]=128|63&L);Y=E}else{if("object"!==i)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(U,!0).update(Y).array());var R=[],N=[];for(w=0;w<64;++w){var j=Y[w]||0;R[w]=92^j,N[w]=54^j}Sha256.call(this,U,x),this.update(N),this.oKeyPad=R,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(Y){if(!this.finalized){var U,x=typeof Y;if("string"!==x){if("object"!==x)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);U=!0}for(var w,E,i=0,T=Y.length,S=this.blocks;i>2]|=Y[i]<>2]|=w<>2]|=(192|w>>6)<>2]|=(128|63&w)<=57344?(S[E>>2]|=(224|w>>12)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<>2]|=(240|w>>18)<>2]|=(128|w>>12&63)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}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,U=this.lastByteIndex;Y[16]=this.block,Y[U>>2]|=EXTRA[3&U],this.block=Y[16],U>=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 R,$,ce,ne,de,me,Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=this.blocks;for(R=16;R<64;++R)L[R]=L[R-16]+((($=L[R-15])>>>7|$<<25)^($>>>18|$<<14)^$>>>3)+L[R-7]+((($=L[R-2])>>>17|$<<15)^($>>>19|$<<13)^$>>>10)<<0;for(me=U&x,R=0;R<64;R+=4)this.first?(this.is224?(ce=300032,S=($=L[0]-1413257819)-150054599<<0,w=$+24177077<<0):(ce=704751109,S=($=L[0]-210244248)-1521486534<<0,w=$+143694565<<0),this.first=!1):(S=w+($=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&T)+K[R]+L[R])<<0,w=$+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((ce=Y&U)^Y&x^me))<<0),T=x+($=T+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[R+1]+L[R+1])<<0,x=$+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ne=w&Y)^w&U^ce))<<0,E=U+($=E+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&S^~T&i)+K[R+2]+L[R+2])<<0,U=$+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&w)^x&Y^ne))<<0,i=Y+($=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&T^~E&S)+K[R+3]+L[R+3])<<0,Y=$+(((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+((me=U&x)^U&w^de))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+U<<0,this.h2=this.h2+x<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+T<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=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[U>>28&15]+HEX_CHARS[U>>24&15]+HEX_CHARS[U>>20&15]+HEX_CHARS[U>>16&15]+HEX_CHARS[U>>12&15]+HEX_CHARS[U>>8&15]+HEX_CHARS[U>>4&15]+HEX_CHARS[15&U]+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[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[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+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];return this.is224||(L+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),L},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,U>>24&255,U>>16&255,U>>8&255,255&U,x>>24&255,x>>16&255,x>>8&255,255&x,w>>24&255,w>>16&255,w>>8&255,255&w,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,T>>24&255,T>>16&255,T>>8&255,255&T];return this.is224||L.push(S>>24&255,S>>16&255,S>>8&255,255&S),L},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),U=new DataView(Y);return U.setUint32(0,this.h0),U.setUint32(4,this.h1),U.setUint32(8,this.h2),U.setUint32(12,this.h3),U.setUint32(16,this.h4),U.setUint32(20,this.h5),U.setUint32(24,this.h6),this.is224||U.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 U,x=Y,w=new Uint8Array(x.length);for(U=0;U{class Y{calcHash(x,w){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})}toHashString2(x){let w="";for(let i of x)w+=String.fromCharCode(i);return w}toHashString(x){const w=new Uint8Array(x);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(x,w,i,E,T,S,L,R,N,j){var q;super(),this.ngZone=x,this.http=w,this.config=T,this.urlHelper=S,this.logger=L,this.crypto=R,this.dateTimeService=j,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=N,T||(T={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),T&&this.configure(T);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=null===(q=null==window?void 0:window.navigator)||void 0===q?void 0:q.userAgent;((null==$?void 0:$.includes("MSIE "))||(null==$?void 0:$.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const x="test";try{return void 0!==window.localStorage&&(localStorage.setItem(x,x),localStorage.removeItem(x),!0)}catch(w){return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),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)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(T=>{"token_received"===T.type?E=!0:"logout"===T.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_expires"===T.type&&(null==w||"any"===w||T.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(T=>{E&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const w=[],i=this.validateUrlForHttps(x),E=this.validateUrlAgainstIssuer(x);return i||w.push("https for all urls required. Also for urls received by discovery."),E||w.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),w}validateUrlForHttps(x){if(!x)return!0;const w=x.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,w){if(!x)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${w}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,x);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)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,x);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)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}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(x,w){const i=this.dateTimeService.now();return Math.max(0,(w-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((w,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(T=>{const L=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:T});this.eventsSubject.next(L),w(L)}).catch(T=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",T)),i(T)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("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((x,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):x(null)})}validateDiscoveryDocument(x){let w;return this.skipIssuerCheck||x.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!x.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: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,w,i).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((x,w)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let T=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||T.sub!==S.sub))return void w("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");T=Object.assign({},S,T),this._storage.setItem("id_token_claims_obj",JSON.stringify(T)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:T})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),w(E)})})}fetchTokenUsingPasswordFlow(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:w},i)}fetchTokenUsingGrant(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(T,this.customQueryParams[T]);for(const T of Object.keys(w))E=E.set(T,w[T]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((T,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(L=>{this.debug("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).then(R=>{this.storeIdToken(R),T(L)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),T(L)},L=>{this.logger.error("Error performing ${grantType} flow",L),this.eventsSubject.next(new OAuthErrorEvent("token_error",L)),S(L)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,w)=>{let i=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")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(T,this.customQueryParams[T]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(T=>T.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(T.id_token,T.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>T)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(T))).subscribe(T=>{this.debug("refresh tokenResponse",T),this.storeAccessTokenResponse(T.access_token,T.refresh_token,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,T.scope,this.extractRecognizedCustomParameters(T)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(T)},T=>{this.logger.error("Error refreshing token",T),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",T)),w(T)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const w=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const T=this.document.createElement("iframe");T.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,x).then(j=>{T.setAttribute("src",j),this.silentRefreshShowIFrame||(T.style.display="none"),this.document.body.appendChild(T)});const L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>j instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),R=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_received"===j.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),N=(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__.S3)([L,R,N]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(j=>{if(j instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===j.type||(j=new OAuthErrorEvent("silent_refresh_error",j)),this.eventsSubject.next(j),j;return"token_received"===j.type&&(j=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(j)),j})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let L,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const R=X=>{this.tryLogin({customHashFragment:X,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{j(),i(!0)},ie=>{j(),E(ie)})};S?L=window.setInterval(()=>{(!S||S.closed)&&(j(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const j=()=>{window.clearInterval(L),window.removeEventListener("storage",$),window.removeEventListener("message",q),null!==S&&S.close(),S=null},q=X=>{const ie=this.processMessageEventMessage(X);ie&&null!==ie?(window.removeEventListener("storage",$),R(ie)):console.log("false event firing")},$=X=>{"auth_hash"===X.key&&(window.removeEventListener("message",q),R(X.newValue))};window.addEventListener("message",q),window.addEventListener("storage",$)}))}calculatePopupFeatures(x){const w=x.height||470,i=x.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${w},top=${window.screenTop+(window.outerHeight-w)/2},left=${E}`}processMessageEventMessage(x){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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=x=>{const w=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(x.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",x)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",x)},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(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{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)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.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 x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const w=this.document.createElement("iframe");w.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),w.setAttribute("src",this.sessionCheckIFrameUrl),w.style.display="none",this.document.body.appendChild(w),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 x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(x="",w="",i="",E=!1,T={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const S=this;let L;L=i||this.redirectUri;const R=yield this.createAndSaveNonce();if(x=x?R+this.config.nonceStateSeparator+encodeURIComponent(x):R,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const N=S.loginUrl.indexOf("?")>-1?"&":"?";let j=S.scope;this.oidc&&!j.match(/(^|\s)openid($|\s)/)&&(j="openid "+j);let q=S.loginUrl+N+"response_type="+encodeURIComponent(S.responseType)+"&client_id="+encodeURIComponent(S.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(j);if(this.responseType.includes("code")&&!this.disablePKCE){const[$,X]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",X):this._storage.setItem("PKCE_verifier",X),q+="&code_challenge="+$,q+="&code_challenge_method=S256"}w&&(q+="&login_hint="+encodeURIComponent(w)),S.resource&&(q+="&resource="+encodeURIComponent(S.resource)),S.oidc&&(q+="&nonce="+encodeURIComponent(R)),E&&(q+="&prompt=none");for(const $ of Object.keys(T))q+="&"+encodeURIComponent($)+"="+encodeURIComponent(T[$]);if(this.customQueryParams)for(const $ of Object.getOwnPropertyNames(this.customQueryParams))q+="&"+$+"="+encodeURIComponent(this.customQueryParams[$]);return q})}initImplicitFlowInternal(x="",w=""){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 i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(T=>{console.error("Error in initImplicitFlow",T),this.inImplicitFlow=!1})}initImplicitFlow(x="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const w=this;if(x.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,w,i,E,T){if(this._storage.setItem("access_token",x),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,R=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+R)}w&&this._storage.setItem("refresh_token",w),T&&T.forEach((S,L)=>{this._storage.setItem(L,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(w=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const w=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(w),E=i.code,T=i.state,S=i.session_state;if(!x.preventClearHashAfterLogin){const N=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,N)}let[L,R]=this.parseState(T);if(this.state=R,i.error){this.debug("error trying to login"),this.handleLoginError(x,i);const N=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(N),Promise.reject(N)}if(!x.disableNonceCheck){if(!L)return this.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!this.validateNonce(L)){const j=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(j),Promise.reject(j)}return this.storeSessionState(S),E&&(yield this.getTokenFromCode(E,x),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,w)}fetchAndProcessToken(x,w){w=w||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((E,T)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,w.disableNonceCheck).then(L=>{this.storeIdToken(L),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(L=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",L)),console.error("Error validating tokens"),console.error(L),T(L)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),T(S)})})}tryLoginImplicitFlow(x=null){let w;w=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,T]=this.parseState(i);if(this.state=T,w.error){this.debug("error trying to login"),this.handleLoginError(x,w);const j=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(j),Promise.reject(j)}const S=w.access_token,L=w.id_token,R=w.session_state,N=w.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!L)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!R&&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&&!x.disableNonceCheck&&!this.validateNonce(E)){const q=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(q),Promise.reject(q)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,N),this.oidc?this.processIdToken(L,S,x.disableNonceCheck).then(j=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:j.idTokenClaims,idToken:j.idToken,state:i}).then(q=>j):j).then(j=>(this.storeIdToken(j),this.storeSessionState(R),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(j=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),this.logger.error("Error validating tokens"),this.logger.error(j),Promise.reject(j))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let w=x,i="";if(x){const E=x.indexOf(this.config.nonceStateSeparator);E>-1&&(w=x.substr(0,E),i=x.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(x){let w;return w=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===x||(console.error("Validating access_token failed, wrong state/nonce.",w,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,w){x.onLoginError&&x.onLoginError(w),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,w,i=!1){const E=x.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),L=JSON.parse(S),N=b64DecodeUnicode(this.padBase64(E[1])),j=JSON.parse(N);let q;if(q=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(j.aud)){if(j.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+j.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(j.aud!==this.clientId){const de="Wrong audience: "+j.aud;return this.logger.warn(de),Promise.reject(de)}if(!j.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==j.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${j.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!j.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&j.iss!==this.issuer){const de="Wrong issuer: "+j.iss;return this.logger.warn(de),Promise.reject(de)}if(!i&&j.nonce!==q){const de="Wrong nonce: "+j.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!j.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const $=this.dateTimeService.now(),X=1e3*j.iat,ie=1e3*j.exp,ce=this.getClockSkewInMsec();if(X-ce>=$||ie+ce<=$){const de="Token has expired";return console.error(de),console.error({now:$,issuedAtMSec:X,expiresAtMSec:ie}),Promise.reject(de)}const ne={accessToken:w,idToken:x,jwks:this.jwks,idTokenClaims:j,idTokenHeader:L,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(de=>({idToken:x,idTokenClaims:j,idTokenClaimsJson:N,idTokenHeader:L,idTokenHeaderJson:S,idTokenExpiresAt:ie})):this.checkAtHash(ne).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const me="Wrong at_hash";return this.logger.warn(me),Promise.reject(me)}return this.checkSignature(ne).then(me=>{const ze={idToken:x,idTokenClaims:j,idTokenClaimsJson:N,idTokenHeader:L,idTokenHeaderJson:S,idTokenExpiresAt:ie};return this.disableAtHashCheck?ze:this.checkAtHash(ne).then(Je=>{if(this.requestAccessToken&&!Je){const vt="Wrong at_hash";return this.logger.warn(vt),Promise.reject(vt)}return ze})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}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 x=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},w=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const E=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(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let T;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)T=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const L=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";L&&(S=S.set("post_logout_redirect_uri",L),w&&(S=S.set("state",w)));for(let R in x)S=S.set(R,x[R]);T=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(T)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(w){return x.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",w):x._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const T="undefined"==typeof self?null:self.crypto||self.msCrypto;if(T){let S=new Uint8Array(i);T.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(L=>w.charCodeAt(L%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,w))}initCodeFlowInternal(x="",w={}){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 i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(T=>{console.error("Error in initAuthorizationCodeFlow"),console.error(T)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(x,"sha-256")),x]})}extractRecognizedCustomParameters(x){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&w.set(i,JSON.stringify(x[i]))}),w}revokeTokenAndLogout(x={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),T=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const R=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+R)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const R of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(R,this.customQueryParams[R]);return new Promise((R,N)=>{let j,q;if(E){let $=S.set("token",E).set("token_type_hint","access_token");j=this.http.post(i,$,{headers:L})}else j=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(T){let $=S.set("token",T).set("token_type_hint","refresh_token");q=this.http.post(i,$,{headers:L})}else q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(j=j.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($))),q=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([j,q]).subscribe($=>{this.logOut(x),R($),this.logger.info("Token successfully revoked")},$=>{this.logger.error("Error revoking token",$),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",$)),N($)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(x){return new(x||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(U){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(x,w,i){this.oAuthService=x,this.errorHandler=w,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>x.toLowerCase().startsWith(w.toLowerCase()))}intercept(x,w){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?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)(T=>!!T)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(T=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(T=>{if(T){const L=x.headers.set("Authorization","Bearer "+T);x=x.clone({headers:L})}return w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>this.errorHandler.handleError(T))):w.handle(x)}}return Y.\u0275fac=function(x){return new(x||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(U){return Promise.resolve(null)}validateAtHash(U){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(x=null,w=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:w},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(x){return new(x||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")},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:"8.1.0"}}},Y=>{Y(Y.s=6396)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/main.ddc5cef54ab17f76.js b/dist/apps/user-profile/main.ddc5cef54ab17f76.js deleted file mode 100644 index 775c445be..000000000 --- a/dist/apps/user-profile/main.ddc5cef54ab17f76.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{6396:(Y,U,x)=>{"use strict";var w=x(9808),i=x(5e3);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends E{static makeCurrent(){(0,w.HT)(new T)}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 L(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function N(n){R=R||document.createElement("a"),R.setAttribute("href",n);const a=R.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,w.Mx)(document.cookie,a)}}let R,S=null;const j=new i.OlP("TRANSITION_ID"),$=[{provide:i.ip1,useFactory:function q(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,w.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const o=function(s){d=d||s,l--,0==l&&t(d)};r.forEach(function(s){s.whenStable(o)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const r=a.getTestability(e);return null!=r?r:t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let ie=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ce=new i.OlP("EventManagerPlugins");let ne=(()=>{class n{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 l=0;l{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ne=(()=>{class n extends me{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.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(ze),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(ze))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function ze(n){(0,w.q)().remove(n)}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/"},vt=/%COMP%/g;function Ae(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ke=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ge(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new Ci(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new st(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=Ae(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ne),i.LFG(Ne),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ge{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){a.appendChild(e)}insertBefore(a,e,t){a&&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 l=Je[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Je[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&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.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))}}class Ci extends ge{constructor(a,e,t,r){super(a),this.component=t;const l=Ae(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function yt(n){return"_ngcontent-%COMP%".replace(vt,n)}(r+"-"+t.id),this.hostAttr=function fe(n){return"_nghost-%COMP%".replace(vt,n)}(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 st extends ge{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 l=Ae(r.id,r.styles,[]);for(let d=0;d{class n extends de{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const kn=["alt","control","meta","shift"],Ke={"\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"},di={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"},hr={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let sn=(()=>{class n extends de{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(kn.forEach(s=>{const c=t.indexOf(s);c>-1&&(t.splice(c,1),d+=s+".")}),d+=l,0!=t.length||0===l.length)return null;const o={};return o.domEventName=r,o.fullKey=d,o}static getEventFullKey(e){let t="",r=function pi(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&di.hasOwnProperty(a)&&(a=di[a]))}return Ke[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),kn.forEach(l=>{l!=r&&hr[l](e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Fr=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function Ut(){T.makeCurrent(),X.init()},multi:!0},{provide:w.K0,useFactory:function la(){return(0,i.RDi)(document),document},deps:[]}]),Pn=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function on(){return new i.qLn},deps:[]},{provide:ce,useClass:bt,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:ce,useClass:sn,multi:!0,deps:[w.K0]},{provide:ke,useClass:ke,deps:[ne,Ne,i.AFp]},{provide:i.FYo,useExisting:ke},{provide:me,useExisting:Ne},{provide:Ne,useClass:Ne,deps:[w.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:ne,useClass:ne,deps:[ce,i.R0b]},{provide:w.JF,useClass:ie,deps:[]}];let ue=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:j,useExisting:i.AFp},$]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:Pn,imports:[w.ez,i.hGG]}),n})(),it=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Ue(){return new it((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let fr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(gs),t},providedIn:"root"}),n})(),gs=(()=>{class n extends fr{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(t),(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.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,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function ms(n){return new gs(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var M=x(520);class Be{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const vi=new i.OlP("basePath");class Xe{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 ni=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}convertAttributeToUnique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}createAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteAttributeDefinitions(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,d,o,s,c,u,h,f,b="body",V=!1,ee){let he=new M.LE({encoder:this.encoder});null!=e&&(he=this.addToHttpParams(he,e,"attributeName")),null!=t&&(he=this.addToHttpParams(he,t,"attributeId")),null!=r&&(he=this.addToHttpParams(he,r,"facility")),null!=l&&(he=this.addToHttpParams(he,l,"user")),null!=d&&(he=this.addToHttpParams(he,d,"vo")),null!=o&&(he=this.addToHttpParams(he,o,"resource")),null!=s&&(he=this.addToHttpParams(he,s,"member")),null!=c&&(he=this.addToHttpParams(he,c,"group")),null!=u&&(he=this.addToHttpParams(he,u,"host")),null!=h&&(he=this.addToHttpParams(he,h,"userExtSource")),null!=f&&(he=this.addToHttpParams(he,f,"key"));let gt,Oe=this.defaultHeaders;gt=this.configuration.lookupCredential("BasicAuth"),gt&&(Oe=Oe.set("Authorization","Basic "+gt)),gt=this.configuration.lookupCredential("BearerAuth"),gt&&(Oe=Oe.set("Authorization","Bearer "+gt));let dt=ee&&ee.httpHeaderAccept;void 0===dt&&(dt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==dt&&(Oe=Oe.set("Accept",dt));let Kt=ee&&ee.context;void 0===Kt&&(Kt=new M.qT);let Pa="json";return dt&&(Pa=dt.startsWith("text")?"text":this.configuration.isJsonMime(dt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Kt,params:he,responseType:Pa,withCredentials:this.configuration.withCredentials,headers:Oe,observe:b,reportProgress:V})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributeDefinitionByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributeDefinitionsByNamespace(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"format")),null!=t&&(o=this.addToHttpParams(o,t,"attrName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,d,o,s,c,u="body",h=!1,f){let b=new M.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=r&&(b=this.addToHttpParams(b,r,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=d&&(b=this.addToHttpParams(b,d,"resource")),null!=o&&(b=this.addToHttpParams(b,o,"facility")),null!=s&&(b=this.addToHttpParams(b,s,"host")),null!=c&&(b=this.addToHttpParams(b,c,"userExtSource"));let ee,V=this.defaultHeaders;ee=this.configuration.lookupCredential("BasicAuth"),ee&&(V=V.set("Authorization","Basic "+ee)),ee=this.configuration.lookupCredential("BearerAuth"),ee&&(V=V.set("Authorization","Bearer "+ee));let he=f&&f.httpHeaderAccept;void 0===he&&(he=this.configuration.selectHeaderAccept(["application/json"])),void 0!==he&&(V=V.set("Accept",he));let Oe=f&&f.context;void 0===Oe&&(Oe=new M.qT);let gt="json";return he&&(gt=he.startsWith("text")?"text":this.configuration.isJsonMime(he)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Oe,params:b,responseType:gt,withCredentials:this.configuration.withCredentials,headers:V,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getEntitylessAttributesByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attrName")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"keys[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getEntitylessKeys(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getFacilityAttributeByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,r,l,d="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==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"user")),null!=l&&(c=this.addToHttpParams(c,l,"member"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getFacilityUserAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupAttributeById(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupAttributeByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupResourceAttributeById(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributeByName(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getHostAttributeById(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getHostAttributeByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getLogins(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(V=>{s=this.addToHttpParams(s,V,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberAttributeById(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getMemberAttributeByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,r,l,d="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==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getMemberGroupAttributeById(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributeByName(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getMemberGroupAttributesByNames(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),r&&r.forEach(V=>{s=this.addToHttpParams(s,V,"attrNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,d="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==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getMemberResourceAttributeById(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributeByName(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRequiredAttributesFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesHostService(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"host"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRequiredAttributesMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,d,o="body",s=!1,c){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==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new M.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!=l&&(u=this.addToHttpParams(u,l,"member")),null!=d&&(u=this.addToHttpParams(u,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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}getRequiredAttributesMemberGroupService(e,t,r,l,d="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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getRequiredAttributesMemberResource(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberResourceService(e,t,r,l,d="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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getRequiredAttributesResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRequiredAttributesResourceServices(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRequiredAttributesUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRequiredAttributesVoService(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getResourceAttributeById(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getResourceAttributeByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,d="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==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getResourceGroupAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,r,l,d="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==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getUserAttributeById(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserAttributeByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceAttributeById(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceAttributeByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserFacilityAttributeById(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributeByName(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getVoAttributeById(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getVoAttributeByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,l,d,o,s="body",c=!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==l)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==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new M.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,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),o&&o.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:s,reportProgress:c})}removeAttributesForFacilityResourceUserMember(e,t,r,l,d,o="body",s=!1,c){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==l)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 u=new M.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!=l&&(u=this.addToHttpParams(u,l,"member")),d&&d.forEach(he=>{u=this.addToHttpParams(u,he,"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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}removeEntitylessAttribute(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeFacilityAttribute(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeFacilityAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeGroupAttribute(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeGroupAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeGroupResourceAttribute(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributes(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),r&&r.forEach(V=>{s=this.addToHttpParams(s,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,d="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==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}removeHostAttribute(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeHostAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeMemberAttribute(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeMemberAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(V=>{s=this.addToHttpParams(s,V,"attributes[]")}),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttribute(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributes(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),r&&r.forEach(V=>{s=this.addToHttpParams(s,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,d="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==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}removeMemberResourceAttribute(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberResourceAttributes(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),r&&r.forEach(V=>{s=this.addToHttpParams(s,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeResourceAttribute(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeResourceAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUesAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserAttribute(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserExtSourceAttribute(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserFacilityAttribute(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeUserFacilityAttributes(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),r&&r.forEach(V=>{s=this.addToHttpParams(s,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeVoAttribute(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeVoAttributes(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}setAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setEntitylessAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceGroupUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAndUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupWithGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,o,s="body",c=!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==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=o&&(h=this.addToHttpParams(h,o,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:s,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new M.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new M.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new M.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new M.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new M.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new M.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ei=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"consent")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}evaluateConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}evaluateConsentsForService(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllConsentHubs(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllConsents(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getConsentById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getConsentForUserAndConsentHub(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getConsentHubByFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getConsentHubById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getConsentHubByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getConsentsForConsentHubWithStatus(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"consentHub")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getConsentsForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getConsentsForUserAndConsentHub(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getConsentsForUserWithStatus(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}updateConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Di=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 M.LE({encoder:this.encoder});e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"member"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addMembers(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"members[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}allowGroupToHierarchicalVo(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}canExtendMembershipInGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createGroupUnion(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resultGroup")),null!=t&&(o=this.addToHttpParams(o,t,"operandGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createGroupWithParentGroupNameDescription(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}createGroupWithVoNameDescription(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deleteGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}disallowGroupToHierarchicalVo(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}extendMembershipInGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}forceAllSubGroupsSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}forceGroupStructureSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}forceGroupSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllAllowedGroupsToHierarchicalVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllGroupsFromAllVos(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllRichGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllRichGroupsWithAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupByName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupMemberById(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"member"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupMembersCountsByGroupStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupMembersCountsByVoStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupRichMembersByIds(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(V=>{s=this.addToHttpParams(s,V,"members[]")}),r&&r.forEach(V=>{s=this.addToHttpParams(s,V,"attrNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupUnions(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"reverseDirection"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getIndirectMembershipPaths(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMemberRichGroupsWithAttributesByNames(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRichGroupByIdWithAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"groupId")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSubgroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}isAllowedGroupToHierarchicalVo(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}isGroupMember(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let o=new M.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"destinationGroup")),null!=e&&(o=this.addToHttpParams(o,e,"movingGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeGroupUnion(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resultGroup")),null!=t&&(o=this.addToHttpParams(o,t,"operandGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeMember(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"member"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeMembers(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"members[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}setGroupsMemberStatus(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}createMemberForCandidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createMemberForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createMemberFromExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSpecificMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMembersFromCSV(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}extendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findCompleteRichMembersByAttributes(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});e&&e.forEach(V=>{s=this.addToHttpParams(s,V,"attrsNames[]")}),null!=t&&(s=this.addToHttpParams(s,t,"searchString")),r&&r.forEach(V=>{s=this.addToHttpParams(s,V,"allowedStatuses[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findCompleteRichMembersForGroup(e,t,r,l,d,o,s="body",c=!1,u){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==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"attrsNames[]")}),d&&d.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"allowedStatuses[]")}),o&&o.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"allowedGroupStatuses[]")}),null!=r&&(h=this.addToHttpParams(h,r,"searchString")),null!=l&&(h=this.addToHttpParams(h,l,"lookingInParentGroup"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:s,reportProgress:c})}findCompleteRichMembersForVo(e,t,r,l,d="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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"allowedStatuses[]")}),null!=r&&(c=this.addToHttpParams(c,r,"searchString"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}findMembersInVo(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"searchString"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findSponsoredCompleteRichMembersForVo(e,t,r,l,d="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==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),null!=r&&(c=this.addToHttpParams(c,r,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"onlySponsored"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getAllMembers(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllNamespacesRules(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getCompleteRichMembersForGroup(e,t,r,l,d,o="body",s=!1,c){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 u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"allowedStatuses[]")}),l&&l.forEach(he=>{u=this.addToHttpParams(u,he,"allowedGroupStatuses[]")}),null!=t&&(u=this.addToHttpParams(u,t,"lookingInParentGroup")),d&&d.forEach(he=>{u=this.addToHttpParams(u,he,"attrsNames[]")});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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}getCompleteRichMembersForGroupResource(e,t,r,l,d="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==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"allowedStatuses[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getCompleteRichMembersForVo(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(V=>{s=this.addToHttpParams(s,V,"allowedStatuses[]")}),r&&r.forEach(V=>{s=this.addToHttpParams(s,V,"attrsNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberByExtSourceNameAndExtLogin(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMemberByUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getMembers(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getMembersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMembersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMembersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getMembersWithStatusCount(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRichMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichMemberWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichMembersByIds(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"ids[]")}),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getRichMembersNoUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSponsorsByMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSponsorsByVo(e,t,r,l,d="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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}moveMembership(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeSponsor(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}sendAccountActivationLinkEmail(e,t,r,l,d="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==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"namespace")),null!=r&&(c=this.addToHttpParams(c,r,"emailAttributeURN")),null!=l&&(c=this.addToHttpParams(c,l,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}sendPasswordResetLinkEmail(e,t,r,l,d,o="body",s=!1,c){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==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"member")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"emailAttributeURN")),null!=l&&(u=this.addToHttpParams(u,l,"language")),null!=d&&(u=this.addToHttpParams(u,d,"baseUrl"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}setSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setSponsorshipForMember(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}setStatus(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}sponsorMember(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateSponsorshipValidity(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}validateMemberAsync(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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,l,d="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==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="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==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ri=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}addApplicationMailForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}addGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}approveApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidateIdentityUsingToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}copyFormFromGroupToGroup(e,t,r="body",l=!1,d){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}copyFormFromGroupToVo(e,t,r="body",l=!1,d){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}copyFormFromVoToGroup(e,t,r="body",l=!1,d){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}copyFormFromVoToVo(e,t,r="body",l=!1,d){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}copyMailsFromGroupToGroup(e,t,r="body",l=!1,d){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}copyMailsFromGroupToVo(e,t,r="body",l=!1,d){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}copyMailsFromVoToGroup(e,t,r="body",l=!1,d){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}copyMailsFromVoToVo(e,t,r="body",l=!1,d){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createApplicationFormInGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}createApplicationFormInVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteApplicationMailForGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"id"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteApplicationMailForVo(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"id"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getApplicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getApplicationDataById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getApplicationMailsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getApplicationMailsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getApplicationsForGroup(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"state[]")}),null!=r&&(c=this.addToHttpParams(c,r,"dateFrom")),null!=l&&(c=this.addToHttpParams(c,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getApplicationsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getApplicationsForVo(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"state[]")}),null!=r&&(c=this.addToHttpParams(c,r,"dateFrom")),null!=l&&(c=this.addToHttpParams(c,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getApplicationsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getConsolidatorToken(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getFormItemsForGroupWithType(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"type"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getFormItemsForVoWithType(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"type"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVoApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}rejectApplication(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"reason"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}sendInvitation(e,t,r,l,d="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 c=new M.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"voId")),null!=l&&(c=this.addToHttpParams(c,l,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}sendInvitationForGroup(e,t,r,l,d,o="body",s=!1,c){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 u=new M.LE({encoder:this.encoder});null!=r&&(u=this.addToHttpParams(u,r,"voId")),null!=l&&(u=this.addToHttpParams(u,l,"groupId")),null!=d&&(u=this.addToHttpParams(u,d,"name")),null!=e&&(u=this.addToHttpParams(u,e,"email")),null!=t&&(u=this.addToHttpParams(u,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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}sendInvitationGroupToExistingUser(e,t,r,l="body",d=!1,o){let s=new M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sendInvitationToExistingUser(e,t,r="body",l=!1,d){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}sendMessage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setSendingEnabled(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}submitApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateApplicationMail(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}verifyApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}addAdminToGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addAdminToUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addResourceSelfServiceGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addResourceSelfServiceUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}allowGroupsToResources(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});e&&e.forEach(V=>{s=this.addToHttpParams(s,V,"groups[]")}),t&&t.forEach(V=>{s=this.addToHttpParams(s,V,"resources[]")}),null!=r&&(s=this.addToHttpParams(s,r,"async"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}assignGroupToResource(e,t,r,l,d,o="body",s=!1,c){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 u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}assignGroupToResources(e,t,r,l,d,o="body",s=!1,c){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 u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),t&&t.forEach(he=>{u=this.addToHttpParams(u,he,"resources[]")}),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}assignGroupsToResource(e,t,r,l,d,o="body",s=!1,c){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 u=new M.LE({encoder:this.encoder});e&&e.forEach(he=>{u=this.addToHttpParams(u,he,"groups[]")}),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}assignResourceTagToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}assignService(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}assignServices(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"services[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}assignServicesPackage(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"servicesPackage"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}copyResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createResource(e,t,r,l,d="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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"facility")),null!=r&&(c=this.addToHttpParams(c,r,"name")),null!=l&&(c=this.addToHttpParams(c,l,"description"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}createResourceTagWithResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createResourceTagWithTagName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"tagName")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deactivateGroupResourceAssignment(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteAllResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getAdminGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAdmins(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"onlyDirectAdmins"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllResourcesByResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getAllResourcesTagsForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllResourcesWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllowedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllowedResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllowedUsersOfResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedGroups(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"member"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAssignedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedMembersWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedResourcesWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichResourcesWithMemberService(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAssignedServicesToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getBansForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getBansForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getEnrichedResourceById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getEnrichedResourcesForFacility(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getEnrichedResourcesForVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupAssignments(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getResourceAssignments(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getResourceBan(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getResourceByName(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getResourcesCountForAll(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesCountForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getResourcesFromVoWhereUserIsAdmin(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getResourcesWhereGroupIsAdmin(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResourcesWhereUserIsAdmin(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRichAdmins(e,t,r,l,d="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==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"specificAttributes")}),null!=r&&(c=this.addToHttpParams(c,r,"allUserAttributes")),null!=l&&(c=this.addToHttpParams(c,l,"onlyDirectAdmins"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getRichResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}removeAllResourceTagsFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}removeBanByMemberAndResource(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeGroupAdminResource(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeGroupFromResource(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeGroupFromResources(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"resources[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeGroupsFromResource(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}removeResourceSelfServiceGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeResourceSelfServiceUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeResourceTagFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}removeService(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeServices(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"services[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeServicesPackage(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"servicesPackage"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserAdminResource(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}setResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unallowGroupsFromResources(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"groups[]")}),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"resources[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}updateResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"password")),null!=r&&(s=this.addToHttpParams(s,r,"lang"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}changePasswordForLogin(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"login")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}changePasswordForUser(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}checkPasswordStrength(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"password")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createAlternativePassword(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"description")),null!=r&&(c=this.addToHttpParams(c,r,"loginNamespace")),null!=l&&(c=this.addToHttpParams(c,l,"password"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrsNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="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 c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,o,s="body",c=!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 h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=o&&(h=this.addToHttpParams(h,o,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:s,reportProgress:c})}reservePasswordForLogin(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reservePasswordForUser(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reserveRandomPassword(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Dt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_s=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,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 Be}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(l=>e=this.addToHttpParamsRecursive(e,l,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(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));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="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addSponsorRoleToGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addSponsorRoleToUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addVoAdminGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addVoAdminUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createVoWithName(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"name")),null!=t&&(o=this.addToHttpParams(o,t,"shortName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createVoWithVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findCandidates(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findCandidatesForGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"searchString"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllVos(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getCompleteCandidatesForGroup(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(V=>{s=this.addToHttpParams(s,V,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"searchString"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCompleteCandidatesForVo(e,t,r,l="body",d=!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 M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(V=>{s=this.addToHttpParams(s,V,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"searchString"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getEnrichedVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMemberVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMyEnrichedVos(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMyVos(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getParentVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichAdminsForVo(e,t,r,l,d,o="body",s=!1,c){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==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"vo")),null!=t&&(u=this.addToHttpParams(u,t,"role")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=d&&(u=this.addToHttpParams(u,d,"onlyDirectAdmins"));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 b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}getVoAdminGroups(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getVoAdminUsers(e,t,r,l="body",d=!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 M.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 u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getVoBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVoBansForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVoByShortName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVoMembersCountsByStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosCount(e="body",t=!1,r){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 o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new M.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}removeMemberVo(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeSponsorRoleFromGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeSponsorRoleFromUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeVoAdminGroup(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeVoAdminUser(e,t,r="body",l=!1,d){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 M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}removeVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,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 c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}setVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Bt=(()=>{return(n=Bt||(Bt={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",Bt;var n})();let ys=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const o of r)l=l.concat(o.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER,Bt.FACILITYADMIN,Bt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Bt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(Bt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Bt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(Bt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(Bt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Bt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.VOOBSERVER,Bt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{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.roleName)}),e.sort(),"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 l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],o=[],s=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),o=o.concat(b.privilegedRolesToManage);for(const V of Object.keys(b.entitiesToManage))s="User"===V?[V].concat(s):s.concat(V);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(o,c);r.set(l,{readAuth:u,manageAuth:h,modes:s})}}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""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const o=r[d];if(null===o)this.principalRoles.has(d)||(l=!1);else if(t[o]){for(const s of t[o])if(!this.principalHasRole(d,o,s)){l=!1;break}}else l=!1;if(!l)break}if(l)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 l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){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 d=r.shift();if(t.has(d))continue;const o=this.getPerunPolicy(d);if(!o)return[];t.set(d,o),r=r.concat(o.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{let e;try{e=n()}catch(r){return void a.error(r)}return(e?(0,dn.D)(e):(0,Mn.c)()).subscribe(a)})}var ws=x(1762),ut=x(4850),Ui=x(7545),Zt=x(2986),za=x(2866);function _i(...n){const a=n[n.length-1];return(0,za.K)(a)?(n.pop(),e=>Ms(n,e,a)):e=>Ms(n,e)}var Sr=x(3489);function Cs(n,a){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Md(n,a,e))}}class Md{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new Fn(a,this.accumulator,this.seed,this.hasSeed))}}class Fn extends Sr.L{constructor(a,e,t,r){super(a),this.accumulator=e,this._seed=t,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}var wn=x(7221),vs=x(1406),Jo=x(4231);function bi(n){return function(e){return 0===n?(0,Mn.c)():e.lift(new Ts(n))}}class Ts{constructor(a){if(this.total=a,this.total<0)throw new Jo.W}call(a,e){return e.subscribe(new ga(a,this.total))}}class ga extends Sr.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,r=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,r=this.ring;for(let l=0;la.lift(new Se(n))}class Se{constructor(a){this.callback=a}call(a,e){return e.subscribe(new nt(a,this.callback))}}class nt extends Sr.L{constructor(a,e){super(a),this.add(new re.w(e))}}class Yt{constructor(a,e){this.id=a,this.url=e}}class Xt extends Yt{constructor(a,e,t="imperative",r=null){super(a,e),this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class At extends Yt{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ft extends Yt{constructor(a,e,t){super(a,e),this.reason=t}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Gi extends Yt{constructor(a,e,t){super(a,e),this.error=t}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ti extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ki extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _a extends Yt{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Er extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mt extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fa{constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qo{constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xo{constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ko{constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yu{constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ao{constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wu{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const be="primary";class $t{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 ba(n){return new $t(n)}const Zi="ngNavigationCancelingError";function dc(n){const a=Error("NavigationCancelingError: "+n);return a[Zi]=!0,a}function qr(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function Mi(n){return Array.prototype.concat.apply([],n)}function tl(n){return n.length>0?n[n.length-1]:null}function ei(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function un(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,dn.D)(Promise.resolve(n)):(0,$e.of)(n)}const so={exact:function Ju(n,a,e){if(!Wr(n.segments,a.segments)||!il(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Ju(n.children[t],a.children[t],e))return!1;return!0},subset:xs},jn={exact:function $u(n,a){return gr(n,a)},subset:function hc(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>Uu(n[e],a[e]))},ignored:()=>!0};function Zu(n,a,e){return so[e.paths](n.root,a.root,e.matrixParams)&&jn[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function xs(n,a,e){return oo(n,a,a.segments,e)}function oo(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Wr(r,e)||a.hasChildren()||!il(r,e,t))}if(n.segments.length===e.length){if(!Wr(n.segments,e)||!il(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!xs(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(Wr(n.segments,r)&&il(n.segments,r,t)&&n.children[be])&&oo(n.children[be],a,l,t)}}function il(n,a,e){return a.every((t,r)=>jn[e](n[r].parameters,t.parameters))}class Yr{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ba(this.queryParams)),this._queryParamMap}toString(){return pc.serialize(this)}}class Wt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ei(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fc(this)}}class ja{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ba(this.parameters)),this._parameterMap}toString(){return Xu(this)}}function Wr(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}class Cd{}class vd{parse(a){const e=new Aa(a);return new Yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${nl(a.root,!0)}`,t=function Ss(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${Dr(e)}=${Dr(r)}`).join("&"):`${Dr(e)}=${Dr(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Oi(n){return encodeURI(n)}(a.fragment)}`:""}`}}const pc=new vd;function fc(n){return n.segments.map(a=>Xu(a)).join("/")}function nl(n,a){if(!n.hasChildren())return fc(n);if(a){const e=n.children[be]?nl(n.children[be],!1):"",t=[];return ei(n.children,(r,l)=>{l!==be&&t.push(`${l}:${nl(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Qu(n,a){let e=[];return ei(n.children,(t,r)=>{r===be&&(e=e.concat(a(t,r)))}),ei(n.children,(t,r)=>{r!==be&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===be?[nl(n.children[be],!1)]:[`${r}:${nl(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[be]?`${fc(n)}/${e[0]}`:`${fc(n)}/(${e.join("//")})`}}function xn(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dr(n){return xn(n).replace(/%3B/gi,";")}function mc(n){return xn(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rl(n){return decodeURIComponent(n)}function Td(n){return rl(n.replace(/\+/g,"%20"))}function Xu(n){return`${mc(n.path)}${function Hr(n){return Object.keys(n).map(a=>`;${mc(a)}=${mc(n[a])}`).join("")}(n.parameters)}`}const al=/^[^\/()?;=#]+/;function Es(n){const a=n.match(al);return a?a[0]:""}const sl=/^[^=?&#]+/,Ku=/^[^&#]+/;class Aa{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],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[be]=new Wt(a,e)),t}parseSegment(){const a=Es(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new ja(rl(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Es(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Es(this.remaining);r&&(t=r,this.capture(t))}a[rl(e)]=rl(t)}parseQueryParam(a){const e=function gc(n){const a=n.match(sl);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function wf(n){const a=n.match(Ku);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=Td(e),l=Td(t);if(a.hasOwnProperty(r)){let d=a[r];Array.isArray(d)||(d=[d],a[r]=d),d.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Es(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let l;t.indexOf(":")>-1?(l=t.substr(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=be);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[be]:new Wt([],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 Error(`Expected "${a}".`)}}class co{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=xd(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=xd(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Sd(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return Sd(a,this._root).map(e=>e.value)}}function xd(n,a){if(n===a.value)return a;for(const e of a.children){const t=xd(n,e);if(t)return t}return null}function Sd(n,a){if(n===a.value)return[a];for(const e of a.children){const t=Sd(n,e);if(t.length)return t.unshift(a),t}return[]}class ir{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function qa(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class eh extends co{constructor(a,e){super(a),this.snapshot=e,_c(this,a)}toString(){return this.snapshot.toString()}}function th(n,a){const e=function P1(n,a){const d=new uo([],{},{},"",{},be,a,null,n.root,-1,{});return new ll("",new ir(d,[]))}(n,a),t=new Ki([new ja("",{})]),r=new Ki({}),l=new Ki({}),d=new Ki({}),o=new Ki(""),s=new nr(t,r,d,o,l,be,a,e.root);return s.snapshot=e.root,new eh(new ir(s,[]),e)}class nr{constructor(a,e,t,r,l,d,o,s){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this._futureSnapshot=s}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,ut.U)(a=>ba(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ut.U)(a=>ba(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ol(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function ih(n){return n.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class uo{constructor(a,e,t,r,l,d,o,s,c,u,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,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=ba(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ba(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ll extends co{constructor(a,e){super(e),this.url=a,_c(this,e)}toString(){return ho(this._root)}}function _c(n,a){a.value._routerState=n,a.children.forEach(e=>_c(n,e))}function ho(n){const a=n.children.length>0?` { ${n.children.map(ho).join(", ")} } `:"";return`${n.value}${a}`}function Ya(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,gr(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),gr(a.params,e.params)||n.params.next(e.params),function uc(n,a){if(n.length!==a.length)return!1;for(let e=0;egr(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Ed(n.parent,a.parent))}function Ds(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function bc(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Ds(n,t,r);return Ds(n,t)})}(n,a,e);return new ir(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(o=>Ds(n,o)),d}}const t=function R1(n){return new nr(new Ki(n.url),new Ki(n.params),new Ki(n.queryParams),new Ki(n.fragment),new Ki(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>Ds(n,l));return new ir(t,r)}}function cl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function fo(n){return"object"==typeof n&&null!=n&&n.outlets}function Ac(n,a,e,t,r){let l={};return t&&ei(t,(d,o)=>{l[o]=Array.isArray(d)?d.map(s=>`${s}`):`${d}`}),new Yr(e.root===n?a:Hs(e.root,n,a),l,r)}function Hs(n,a,e){const t={};return ei(n.children,(r,l)=>{t[l]=r===a?e:Hs(r,a,e)}),new Wt(n.segments,t)}class Ls{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&cl(t[0]))throw new Error("Root segment cannot have matrix parameters");const r=t.find(fo);if(r&&r!==tl(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ya{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function yc(n,a,e){if(n||(n=new Wt([],{})),0===n.segments.length&&n.hasChildren())return ul(n,a,e);const t=function rh(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],o=e[t];if(fo(o))break;const s=`${o}`,c=t0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!go(s,c,d))return l;t+=2}else{if(!go(s,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=yc(n.children[d],a,l))}),ei(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Wt(n.segments,r)}}function Hd(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=Hd(new Wt([],{}),0,e))}),a}function hl(n){const a={};return ei(n,(e,t)=>a[t]=`${e}`),a}function go(n,a,e){return n==e.path&&gr(a,e.parameters)}class ah{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),Ya(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=qa(e);a.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),ei(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else l&&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,l=qa(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:o})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=qa(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],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=qa(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new ao(l.value.snapshot))}),a.children.length&&this.forwardEvent(new Ko(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(Ya(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(o.contexts),d.attachRef=o.componentRef,d.route=o.route.value,d.outlet&&d.outlet.attach(o.componentRef,o.route.value),Ya(o.route.value),this.activateChildRoutes(a,null,d.children)}else{const o=function sh(n){for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=o?o.module.componentFactoryResolver:null;d.attachRef=null,d.route=r,d.resolver=s,d.outlet&&d.outlet.activateWith(r,s),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class Ua{constructor(a,e){this.routes=a,this.module=e}}function Ma(n){return"function"==typeof n}function wa(n){return n instanceof Yr}const ks=Symbol("INITIAL_VALUE");function Ur(){return(0,Ui.w)(n=>(0,io.aj)(n.map(a=>a.pipe((0,Zt.q)(1),_i(ks)))).pipe(Cs((a,e)=>{let t=!1;return e.reduce((r,l,d)=>r!==ks?r:(l===ks&&(t=!0),t||!1!==l&&d!==e.length-1&&!wa(l)?r:l),a)},ks),(0,jt.h)(a=>a!==ks),(0,ut.U)(a=>wa(a)?a:!0===a),(0,Zt.q)(1)))}class O1{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new pl,this.attachRef=null}}class pl{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new O1,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let hi=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=l||be,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){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.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const 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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;const d=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),o=this.parentContexts.getOrCreateContext(this.name).children,s=new kd(e,o,this.location.injector);this.activated=this.location.createComponent(d,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pl),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class kd{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===nr?this.route:a===pl?this.childContexts:this.parent.get(a,e)}}let Tf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],encapsulation:2}),n})();function xf(n,a=""){for(let e=0;eLr(t)===a);return e.push(...n.filter(t=>Lr(t)!==a)),e}const Sf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ii(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},Sf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const l=(a.matcher||qr)(e,n,a);if(!l)return Object.assign({},Sf);const d={};ei(l.posParams,(s,c)=>{d[c]=s.path});const o=l.consumed.length>0?Object.assign(Object.assign({},d),l.consumed[l.consumed.length-1].parameters):d;return{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:o,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function Mo(n,a,e,t,r="corrected"){if(e.length>0&&function Df(n,a,e){return e.some(t=>qn(n,a,t)&&Lr(t)!==be)}(n,e,t)){const d=new Wt(a,function Ef(n,a,e,t){const r={};r[be]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&Lr(l)!==be){const d=new Wt([],{});d._sourceSegment=n,d._segmentIndexShift=a.length,r[Lr(l)]=d}return r}(n,a,t,new Wt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function _r(n,a,e){return e.some(t=>qn(n,a,t))}(n,e,t)){const d=new Wt(n.segments,function ml(n,a,e,t,r,l){const d={};for(const o of t)if(qn(n,e,o)&&!r[Lr(o)]){const s=new Wt([],{});s._sourceSegment=n,s._segmentIndexShift="legacy"===l?n.segments.length:a.length,d[Lr(o)]=s}return Object.assign(Object.assign({},r),d)}(n,a,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const l=new Wt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function qn(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Pd(n,a,e,t){return!!(Lr(n)===t||t!==be&&qn(a,e,n))&&("**"===n.path||Ii(a,n,e).matched)}function gl(n,a,e){return 0===a.length&&!n.children[e]}class Ca{constructor(a){this.segmentGroup=a||null}}class Gr{constructor(a){this.urlTree=a}}function _l(n){return new Ri.y(a=>a.error(new Ca(n)))}function ch(n){return new Ri.y(a=>a.error(new Gr(n)))}function B1(n){return new Ri.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class rr{constructor(a,e,t,r,l){this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0,this.ngModule=a.get(i.h0i)}apply(){const a=Mo(this.urlTree.root,[],[],this.config).segmentGroup,e=new Wt(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,be).pipe((0,ut.U)(l=>this.createUrlTree(va(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,wn.K)(l=>{if(l instanceof Gr)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Ca?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,be).pipe((0,ut.U)(r=>this.createUrlTree(va(r),a.queryParams,a.fragment))).pipe((0,wn.K)(r=>{throw r instanceof Ca?this.noMatchError(r):r}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const r=a.segments.length>0?new Wt([],{[be]:a}):a;return new Yr(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,ut.U)(l=>new Wt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,dn.D)(r).pipe((0,vs.b)(l=>{const d=t.children[l],o=yo(e,l);return this.expandSegmentGroup(a,o,d,l).pipe((0,ut.U)(s=>({segment:s,outlet:l})))}),Cs((l,d)=>(l[d.outlet]=d.segment,l),{}),function Li(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,jt.h)((r,l)=>n(r,l,t)):Mf.y,bi(1),e?(0,ro.d)(a):(0,cc.T)(()=>new no.K))}())}expandSegment(a,e,t,r,l,d){return(0,dn.D)(t).pipe((0,vs.b)(o=>this.expandSegmentAgainstRoute(a,e,t,o,r,l,d).pipe((0,wn.K)(c=>{if(c instanceof Ca)return(0,$e.of)(null);throw c}))),(0,B.P)(o=>!!o),(0,wn.K)((o,s)=>{if(o instanceof no.K||"EmptyError"===o.name){if(gl(e,r,l))return(0,$e.of)(new Wt([],{}));throw new Ca(e)}throw o}))}expandSegmentAgainstRoute(a,e,t,r,l,d,o){return Pd(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,d):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d):_l(e):_l(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?ch(l):this.lineralizeSegments(t,l).pipe((0,G.zg)(d=>{const o=new Wt(d,{});return this.expandSegment(a,o,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){const{matched:o,consumedSegments:s,lastChild:c,positionalParamSegments:u}=Ii(e,r,l);if(!o)return _l(e);const h=this.applyRedirectCommands(s,r.redirectTo,u);return r.redirectTo.startsWith("/")?ch(h):this.lineralizeSegments(r,h).pipe((0,G.zg)(f=>this.expandSegment(a,e,t,f.concat(l.slice(c)),d,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,$e.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,ut.U)(f=>(t._loadedConfig=f,new Wt(r,{})))):(0,$e.of)(new Wt(r,{}));const{matched:d,consumedSegments:o,lastChild:s}=Ii(e,t,r);if(!d)return _l(e);const c=r.slice(s);return this.getChildConfig(a,t,r).pipe((0,G.zg)(h=>{const f=h.module,b=h.routes,{segmentGroup:V,slicedSegments:ee}=Mo(e,o,c,b),he=new Wt(V.segments,V.children);if(0===ee.length&&he.hasChildren())return this.expandChildren(f,b,he).pipe((0,ut.U)(Kt=>new Wt(o,Kt)));if(0===b.length&&0===ee.length)return(0,$e.of)(new Wt(o,{}));const Oe=Lr(t)===l;return this.expandSegment(f,he,b,ee,Oe?be:l,!0).pipe((0,ut.U)(dt=>new Wt(o.concat(dt.segments),dt.children)))}))}getChildConfig(a,e,t){return e.children?(0,$e.of)(new Ua(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,$e.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,G.zg)(r=>r?this.configLoader.load(a.injector,e).pipe((0,ut.U)(l=>(e._loadedConfig=l,l))):function N1(n){return new Ri.y(a=>a.error(dc(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):(0,$e.of)(new Ua([],a))}runCanLoadGuards(a,e,t){const r=e.canLoad;if(!r||0===r.length)return(0,$e.of)(!0);const l=r.map(d=>{const o=a.get(d);let s;if(function _o(n){return n&&Ma(n.canLoad)}(o))s=o.canLoad(e,t);else{if(!Ma(o))throw new Error("Invalid CanLoad guard");s=o(e,t)}return un(s)});return(0,$e.of)(l).pipe(Ur(),(0,I.b)(d=>{if(!wa(d))return;const o=dc(`Redirecting to "${this.urlSerializer.serialize(d)}"`);throw o.url=d,o}),(0,ut.U)(d=>!0===d))}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,$e.of)(t);if(r.numberOfChildren>1||!r.children[be])return B1(a.redirectTo);r=r.children[be]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new Yr(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ei(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const o=r.substring(1);t[l]=e[o]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let d={};return ei(e.children,(o,s)=>{d[s]=this.createSegmentGroup(a,o,t,r)}),new Wt(l,d)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);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}}function va(n){const a={};for(const t of Object.keys(n.children)){const l=va(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Rd(n){if(1===n.numberOfChildren&&n.children[be]){const a=n.children[be];return new Wt(n.segments.concat(a.segments),a.children)}return n}(new Wt(n.segments,a))}class wo{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class bl{constructor(a,e){this.component=a,this.route=e}}function Od(n,a,e){const t=n._root;return Co(t,a?a._root:null,e,[t.value])}function Mc(n,a,e){const t=function Lf(n){if(!n)return null;for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(n)}function Co(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=qa(a);return n.children.forEach(d=>{(function Id(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=a?a.value:null,o=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const s=function br(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!Wr(n.url,a.url);case"pathParamsOrQueryParamsChange":return!Wr(n.url,a.url)||!gr(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ed(n,a)||!gr(n.queryParams,a.queryParams);default:return!Ed(n,a)}}(d,l,l.routeConfig.runGuardsAndResolvers);s?r.canActivateChecks.push(new wo(t)):(l.data=d.data,l._resolvedData=d._resolvedData),Co(n,a,l.component?o?o.children:null:e,t,r),s&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new bl(o.outlet.component,d))}else d&&wc(a,o,r),r.canActivateChecks.push(new wo(t)),Co(n,null,l.component?o?o.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),ei(l,(d,o)=>wc(d,e.getContext(o),r)),r}function wc(n,a,e){const t=qa(n),r=n.value;ei(t,(l,d)=>{wc(l,r.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new bl(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}class Al{}function kr(n){return new Ri.y(a=>a.error(n))}class hn{constructor(a,e,t,r,l,d){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=r,this.paramsInheritanceStrategy=l,this.relativeLinkResolution=d}recognize(){const a=Mo(this.urlTree.root,[],[],this.config.filter(d=>void 0===d.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,be);if(null===e)return null;const t=new uo([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},be,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ir(t,e),l=new ll(this.url,r);return this.inheritParamsAndData(l._root),l}inheritParamsAndData(a){const e=a.value,t=ol(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){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const l of Object.keys(e.children)){const d=e.children[l],o=yo(a,l),s=this.processSegmentGroup(o,d,l);if(null===s)return null;t.push(...s)}const r=To(t);return function hh(n){n.sort((a,e)=>a.value.outlet===be?-1:e.value.outlet===be?1:a.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(a,e,t,r){for(const l of a){const d=this.processSegmentAgainstRoute(l,e,t,r);if(null!==d)return d}return gl(e,t,r)?[]:null}processSegmentAgainstRoute(a,e,t,r){if(a.redirectTo||!Pd(a,e,t,r))return null;let l,d=[],o=[];if("**"===a.path){const b=t.length>0?tl(t).parameters:{};l=new uo(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xo(a),Lr(a),a.component,a,ph(e),fh(e)+t.length,Ga(a))}else{const b=Ii(e,a,t);if(!b.matched)return null;d=b.consumedSegments,o=t.slice(b.lastChild),l=new uo(d,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xo(a),Lr(a),a.component,a,ph(e),fh(e)+d.length,Ga(a))}const s=function Of(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(a),{segmentGroup:c,slicedSegments:u}=Mo(e,d,o,s.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const b=this.processChildren(s,c);return null===b?null:[new ir(l,b)]}if(0===s.length&&0===u.length)return[new ir(l,[])];const h=Lr(a)===r,f=this.processSegment(s,c,u,h?be:r);return null===f?null:[new ir(l,f)]}}function Nd(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function To(n){const a=[],e=new Set;for(const t of n){if(!Nd(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=To(t.children);a.push(new ir(t.value,r))}return a.filter(t=>!e.has(t))}function ph(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function fh(n){let a=n,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function xo(n){return n.data||{}}function Ga(n){return n.resolve||{}}function Tc(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Sc(n){return(0,Ui.w)(a=>{const e=n(a);return e?(0,dn.D)(e).pipe((0,ut.U)(()=>a)):(0,$e.of)(a)})}class Yn extends class Nf{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Ar=new i.OlP("ROUTES");class gh{constructor(a,e,t,r){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=r}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe((0,ut.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e);const d=l.create(a);return new Ua(Mi(d.injector.get(Ar,void 0,i.XFs.Self|i.XFs.Optional)).map(fl),d)}),(0,wn.K)(l=>{throw e._loader$=void 0,l}));return e._loader$=new ws.c(r,()=>new He.xQ).pipe((0,Q.x)()),e._loader$}loadModuleFactory(a){return un(a()).pipe((0,G.zg)(e=>e instanceof i.YKP?(0,$e.of)(e):(0,dn.D)(this.compiler.compileModuleAsync(e))))}}class _h{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Vf(n){throw n}function F1(n,a,e){return a.parse("/")}function Ec(n,a){return(0,$e.of)(null)}const Eo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Dc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let rt=(()=>{class n{constructor(e,t,r,l,d,o,s){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.xQ,this.errorHandler=Vf,this.malformedUriErrorHandler=F1,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ec,afterPreactivation:Ec},this.urlHandlingStrategy=new _h,this.routeReuseStrategy=new Yn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=function Gu(){return new Yr(new Wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gh(d,o,f=>this.triggerEvent(new Fa(f)),f=>this.triggerEvent(new Qo(f))),this.routerState=th(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(){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,jt.h)(r=>0!==r.id),(0,ut.U)(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,Ui.w)(r=>{let l=!1,d=!1;return(0,$e.of)(r).pipe((0,I.b)(o=>{this.currentNavigation={id:o.id,initialUrl:o.currentRawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Ui.w)(o=>{const s=this.browserUrlTree.toString(),c=!this.navigated||o.extractedUrl.toString()!==s||s!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return H(o.source)&&(this.browserUrlTree=o.extractedUrl),(0,$e.of)(o).pipe((0,Ui.w)(h=>{const f=this.transitions.getValue();return t.next(new Xt(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?Mn.E:Promise.resolve(h)}),function ti(n,a,e,t){return(0,Ui.w)(r=>function Ie(n,a,e,t,r){return new rr(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,ut.U)(l=>Object.assign(Object.assign({},r),{urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,I.b)(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function Za(n,a,e,t,r){return(0,G.zg)(l=>function Rf(n,a,e,t,r="emptyOnly",l="legacy"){try{const d=new hn(n,a,e,t,r,l).recognize();return null===d?kr(new Al):(0,$e.of)(d)}catch(d){return kr(d)}}(n,a,l.urlAfterRedirects,e(l.urlAfterRedirects),t,r).pipe((0,ut.U)(d=>Object.assign(Object.assign({},l),{targetSnapshot:d}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,I.b)(h=>{if("eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new Ti(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:V,restoredState:ee,extras:he}=o,Oe=new Xt(f,this.serializeUrl(b),V,ee);t.next(Oe);const gt=th(b,this.rootComponentType).snapshot;return(0,$e.of)(Object.assign(Object.assign({},o),{targetSnapshot:gt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},he),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=o.rawUrl,o.resolve(null),Mn.E}),Sc(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=o;return this.hooks.beforePreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,I.b)(o=>{const s=new ki(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}),(0,ut.U)(o=>Object.assign(Object.assign({},o),{guards:Od(o.targetSnapshot,o.currentSnapshot,this.rootContexts)})),function vo(n,a){return(0,G.zg)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,$e.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Bd(n,a,e,t){return(0,dn.D)(n).pipe((0,G.zg)(r=>function Pf(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,$e.of)(!0);const d=l.map(o=>{const s=Mc(o,a,r);let c;if(function oh(n){return n&&Ma(n.canDeactivate)}(s))c=un(s.canDeactivate(n,a,e,t));else{if(!Ma(s))throw new Error("Invalid CanDeactivate guard");c=un(s(n,a,e,t))}return c.pipe((0,B.P)())});return(0,$e.of)(d).pipe(Ur())}(r.component,r.route,e,a,t)),(0,B.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,G.zg)(o=>o&&function Ld(n){return"boolean"==typeof n}(o)?function Cc(n,a,e,t){return(0,dn.D)(a).pipe((0,vs.b)(r=>Ms(function kf(n,a){return null!==n&&a&&a(new Xo(n)),(0,$e.of)(!0)}(r.route.parent,t),function dh(n,a){return null!==n&&a&&a(new Yu(n)),(0,$e.of)(!0)}(r.route,t),function vc(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(d=>function Hf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(d)).filter(d=>null!==d).map(d=>ma(()=>{const o=d.guards.map(s=>{const c=Mc(s,d.node,e);let u;if(function Ao(n){return n&&Ma(n.canActivateChild)}(c))u=un(c.canActivateChild(t,n));else{if(!Ma(c))throw new Error("Invalid CanActivateChild guard");u=un(c(t,n))}return u.pipe((0,B.P)())});return(0,$e.of)(o).pipe(Ur())}));return(0,$e.of)(l).pipe(Ur())}(n,r.path,e),function uh(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,$e.of)(!0);const r=t.map(l=>ma(()=>{const d=Mc(l,a,e);let o;if(function bo(n){return n&&Ma(n.canActivate)}(d))o=un(d.canActivate(a,n));else{if(!Ma(d))throw new Error("Invalid CanActivate guard");o=un(d(a,n))}return o.pipe((0,B.P)())}));return(0,$e.of)(r).pipe(Ur())}(n,r.route,e))),(0,B.P)(r=>!0!==r,!0))}(t,l,n,a):(0,$e.of)(o)),(0,ut.U)(o=>Object.assign(Object.assign({},e),{guardsResult:o})))})}(this.ngModule.injector,o=>this.triggerEvent(o)),(0,I.b)(o=>{if(wa(o.guardsResult)){const c=dc(`Redirecting to "${this.serializeUrl(o.guardsResult)}"`);throw c.url=o.guardsResult,c}const s=new _a(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.triggerEvent(s)}),(0,jt.h)(o=>!!o.guardsResult||(this.restoreHistory(o),this.cancelNavigationTransition(o,""),!1)),Sc(o=>{if(o.guards.canActivateChecks.length)return(0,$e.of)(o).pipe((0,I.b)(s=>{const c=new Er(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),(0,Ui.w)(s=>{let c=!1;return(0,$e.of)(s).pipe(function So(n,a){return(0,G.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,$e.of)(e);let l=0;return(0,dn.D)(r).pipe((0,vs.b)(d=>function If(n,a,e,t){return function mh(n,a,e,t){const r=Tc(n);if(0===r.length)return(0,$e.of)({});const l={};return(0,dn.D)(r).pipe((0,G.zg)(d=>function xc(n,a,e,t){const r=Mc(n,a,t);return un(r.resolve?r.resolve(a,e):r(a,e))}(n[d],a,e,t).pipe((0,I.b)(o=>{l[d]=o}))),bi(1),(0,G.zg)(()=>Tc(l).length===r.length?(0,$e.of)(l):Mn.E))}(n._resolve,n,a,t).pipe((0,ut.U)(l=>(n._resolvedData=l,n.data=Object.assign(Object.assign({},n.data),ol(n,e).resolve),null)))}(d.route,t,n,a)),(0,I.b)(()=>l++),bi(1),(0,G.zg)(d=>l===r.length?(0,$e.of)(e):Mn.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,I.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(s),this.cancelNavigationTransition(s,"At least one route resolver didn't emit any value."))}}))}),(0,I.b)(s=>{const c=new mt(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}))}),Sc(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=o;return this.hooks.afterPreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,ut.U)(o=>{const s=function po(n,a,e){const t=Ds(n,a._root,e?e._root:void 0);return new eh(t,a)}(this.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return Object.assign(Object.assign({},o),{targetRouterState:s})}),(0,I.b)(o=>{this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects)}),((n,a,e)=>(0,ut.U)(t=>(new ah(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,o=>this.triggerEvent(o)),(0,I.b)({next(){l=!0},complete(){l=!0}}),ye(()=>{var o;l||d||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(o=this.currentNavigation)||void 0===o?void 0:o.id)===r.id&&(this.currentNavigation=null)}),(0,wn.K)(o=>{if(d=!0,function el(n){return n&&n[Zi]}(o)){const s=wa(o.url);s||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Ft(r.id,this.serializeUrl(r.extractedUrl),o.message);t.next(c),s?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(o.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||H(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const s=new Gi(r.id,this.serializeUrl(r.extractedUrl),o);t.next(s);try{r.resolve(this.errorHandler(o))}catch(c){r.reject(c)}}return Mn.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},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 l={replaceUrl:!0},d=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(d){const s=Object.assign({},d);delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(l.state=s)}const o=this.parseUrl(e.url);this.scheduleNavigation(o,t,d,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){xf(e),this.config=e.map(fl),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:l,fragment:d,queryParamsHandling:o,preserveFragment:s}=t,c=r||this.routerState.root,u=s?this.currentUrlTree.fragment:d;let h=null;switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),l);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),function nh(n,a,e,t,r){if(0===e.length)return Ac(a.root,a.root,a,t,r);const l=function Wa(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Ls(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const o={};return ei(l.outlets,(s,c)=>{o[c]="string"==typeof s?s.split("/"):s}),[...r,{outlets:o}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((o,s)=>{0==s&&"."===o||(0==s&&""===o?e=!0:".."===o?a++:""!=o&&r.push(o))}),r):[...r,l]},[]);return new Ls(e,a,t)}(e);if(l.toRoot())return Ac(a.root,new Wt([],{}),a,t,r);const d=function dl(n,a,e){if(n.isAbsolute)return new ya(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const l=e.snapshot._urlSegment;return new ya(l,l===a.root,0)}const t=cl(n.commands[0])?0:1;return function mo(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new Error("Invalid number of '../'");r=t.segments.length}return new ya(t,!1,r-l)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,n.numberOfDoubleDots)}(l,a,n),o=d.processChildren?ul(d.segmentGroup,d.index,l.commands):yc(d.segmentGroup,d.index,l.commands);return Ac(d.segmentGroup,o,a,t,r)}(c,this.currentUrlTree,e,h,null!=u?u:null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=wa(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function C(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new At(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){var o,s,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,h=H(t)&&u&&!H(u.source),f=u.rawUrl.toString()===e.toString(),b=u.id===(null===(o=this.currentNavigation)||void 0===o?void 0:o.id);if(h&&f&&b)return Promise.resolve(!0);let ee,he,Oe;d?(ee=d.resolve,he=d.reject,Oe=d.promise):Oe=new Promise((Kt,Pa)=>{ee=Kt,he=Pa});const gt=++this.navigationId;let dt;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),dt=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):dt=0,this.setTransition({id:gt,targetPageId:dt,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:ee,reject:he,promise:Oe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Oe.catch(Kt=>Promise.reject(Kt))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){var r,l;if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===d?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===d&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}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){const r=new Ft(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function H(n){return"imperative"!==n}let O=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new He.xQ,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:J(this.skipLocationChange),replaceUrl:J(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:J(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.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:[i.TTD]}),n})(),z=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new He.xQ,this.subscription=e.events.subscribe(l=>{l instanceof At&&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,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const o={skipLocationChange:J(this.skipLocationChange),replaceUrl:J(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!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:J(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.Y36(w.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();function J(n){return""===n||!!n}class ot{}class kt{preload(a,e){return e().pipe((0,wn.K)(()=>(0,$e.of)(null)))}}class ai{preload(a,e){return(0,$e.of)(null)}}let Bi=(()=>{class n{constructor(e,t,r,l){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=new gh(r,t,s=>e.triggerEvent(new Fa(s)),s=>e.triggerEvent(new Qo(s)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,jt.h)(e=>e instanceof At),(0,vs.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const d=l._loadedConfig;r.push(this.processRoutes(d.module,d.routes))}else l.loadChildren&&!l.canLoad?r.push(this.preloadConfig(e,l)):l.children&&r.push(this.processRoutes(e,l.children));return(0,dn.D)(r).pipe((0,$o.J)(),(0,ut.U)(l=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,$e.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,G.zg)(l=>(t._loadedConfig=l,this.processRoutes(l.module,l.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rt),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(ot))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Pr=(()=>{class n{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 Xt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof At&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Wu&&(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 Wu(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yl=new i.OlP("ROUTER_CONFIGURATION"),j1=new i.OlP("ROUTER_FORROOT_GUARD"),WA=[w.Ye,{provide:Cd,useClass:vd},{provide:rt,useFactory:function ZA(n,a,e,t,r,l,d={},o,s){const c=new rt(null,n,a,e,t,r,Mi(l));return o&&(c.urlHandlingStrategy=o),s&&(c.routeReuseStrategy=s),function $A(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(d,c),d.enableTracing&&c.events.subscribe(u=>{var h,f;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(f=console.groupEnd)||void 0===f||f.call(console)}),c},deps:[Cd,pl,w.Ye,i.zs3,i.Sil,Ar,yl,[class z1{},new i.FiY],[class Bf{},new i.FiY]]},pl,{provide:nr,useFactory:function W1(n){return n.routerState.root},deps:[rt]},Bi,ai,kt,{provide:yl,useValue:{enableTracing:!1}}];function Rs(){return new i.PXZ("Router",rt)}let Os=(()=>{class n{constructor(e,t){}static forRoot(e,t){return{ngModule:n,providers:[WA,Y1(e),{provide:j1,useFactory:GA,deps:[[rt,new i.FiY,new i.tp0]]},{provide:yl,useValue:t||{}},{provide:w.S$,useFactory:UA,deps:[w.lw,[new i.tBr(w.mr),new i.FiY],yl]},{provide:Pr,useFactory:q1,deps:[rt,w.EM,yl]},{provide:ot,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:ai},{provide:i.PXZ,multi:!0,useFactory:Rs},[zf,{provide:i.ip1,multi:!0,useFactory:JA,deps:[zf]},{provide:U1,useFactory:QA,deps:[zf]},{provide:i.tb,multi:!0,useExisting:U1}]]}}static forChild(e){return{ngModule:n,providers:[Y1(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(j1,8),i.LFG(rt,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function q1(n,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new Pr(n,a,e)}function UA(n,a,e={}){return e.useHash?new w.Do(n,a):new w.b0(n,a)}function GA(n){return"guarded"}function Y1(n){return[{provide:i.deG,multi:!0,useValue:n},{provide:Ar,multi:!0,useValue:n}]}let zf=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He.xQ}appInitializer(){return this.injector.get(w.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const r=new Promise(o=>t=o),l=this.injector.get(rt),d=this.injector.get(yl);return"disabled"===d.initialNavigation?(l.setUpLocationChangeListener(),t(!0)):"enabled"===d.initialNavigation||"enabledBlocking"===d.initialNavigation?(l.hooks.afterPreactivation=()=>this.initNavigation?(0,$e.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),l.initialNavigation()):t(!0),r})}bootstrapListener(e){const t=this.injector.get(yl),r=this.injector.get(Bi),l=this.injector.get(Pr),d=this.injector.get(rt),o=this.injector.get(i.z2F);e===o.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&d.initialNavigation(),r.setUpPreloading(),l.init(),d.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function JA(n){return n.appInitializer.bind(n)}function QA(n){return n.bootstrapListener.bind(n)}const U1=new i.OlP("Router Initializer");let zt=(()=>{class n{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.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l(0,Ff.k)(r)?t(...r):t(r))):new Ri.y(r=>{bh(n,a,function l(d){r.next(arguments.length>1?Array.prototype.slice.call(arguments):d)},r,e)})}function bh(n,a,e,t,r){let l;if(function Z1(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const d=n;n.addEventListener(a,e,r),l=()=>d.removeEventListener(a,e,r)}else if(function jv(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const d=n;n.on(a,e),l=()=>d.off(a,e)}else if(function Fv(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const d=n;n.addListener(a,e),l=()=>d.removeListener(a,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let d=0,o=n.length;d0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Ah=1;const $1=Promise.resolve(),kc={};function J1(n){return n in kc&&(delete kc[n],!0)}const $i={setImmediate(n){const a=Ah++;return kc[a]=!0,$1.then(()=>J1(a)&&n()),a},clearImmediate(n){J1(n)}},yh=new class Wf extends qf.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,r=-1,l=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++r0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=$i.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&($i.clearImmediate(e),a.scheduled=void 0)}});var Mh=x(353),Q1=x(826),X1=x(9054);class ny{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new qv(a,this.durationSelector))}}class qv extends Q1.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(a)}catch(r){return this.destination.error(r)}const t=(0,X1.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function K1(n){return!(0,Ff.k)(n)&&n-parseFloat(n)+1>=0}function Pc(n=0,a,e){let t=-1;return K1(a)?t=Number(a)<1?1:Number(a):(0,za.K)(a)&&(e=a),(0,za.K)(e)||(e=Mh.P),new Ri.y(r=>{const l=K1(n)?n:+n-e.now();return e.schedule(ar,l,{index:0,period:t,subscriber:r})})}function ar(n){const{index:a,period:e,subscriber:t}=n;if(t.next(a),!t.closed){if(-1===e)return t.complete();n.index=a+1,this.schedule(n,e)}}function Vd(n,a=Mh.P){return function iy(n){return function(e){return e.lift(new ny(n))}}(()=>Pc(n,a))}function tt(n){return a=>a.lift(new eg(n))}class eg{constructor(a){this.notifier=a}call(a,e){const t=new Wn(a),r=(0,X1.D)(t,this.notifier);return r&&!t.seenValue?(t.add(r),e.subscribe(t)):t}}class Wn extends Q1.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,r,l){this.seenValue=!0,this.complete()}notifyComplete(){}}let Ml;try{Ml="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Ml=!1}let Oc,xi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,w.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&&!Ml)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Uf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function tg(){if(Oc)return Oc;if("object"!=typeof document||!document)return Oc=new Set(Uf),Oc;let n=document.createElement("input");return Oc=new Set(Uf.filter(a=>(n.setAttribute("type",a),n.type===a))),Oc}let Ic,wh,wl,Gf;function $a(n){return function ry(){if(null==Ic&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ic=!0}))}finally{Ic=Ic||!1}return Ic}()?n:!!n.capture}function Ch(){if(null==wl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wl=!1,wl;if("scrollBehavior"in document.documentElement.style)wl=!0;else{const n=Element.prototype.scrollTo;wl=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return wl}function zd(){if("object"!=typeof document||!document)return 0;if(null==wh){const n=document.createElement("div"),a=n.style;n.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",n.appendChild(e),document.body.appendChild(n),wh=0,0===n.scrollLeft&&(n.scrollLeft=1,wh=0===n.scrollLeft?1:2),n.remove()}return wh}function vh(n){if(function Zf(){if(null==Gf){const n="undefined"!=typeof document?document.head:null;Gf=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Gf}()){const a=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function $f(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function Un(n){return n.composedPath?n.composedPath()[0]:n.target}function Jf(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const ay=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function sy(){return(0,i.f3M)(w.K0)}}),oy=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Cn=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function ly(n){const a=(null==n?void 0:n.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?oy.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ay,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),sr=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new He.xQ,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 Ri.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Vd(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,$e.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,jt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=zi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ta(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(xi),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Th=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new He.xQ,this._elementScrolled=new Ri.y(d=>this.ngZone.runOutsideAngular(()=>Ta(this.elementRef.nativeElement,"scroll").pipe(tt(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,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!=zd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==zd()?e.left=e.right:1==zd()&&(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;Ch()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==zd()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==zd()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b),i.Y36(Cn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Ja=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new He.xQ,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.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,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Vd(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 n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Cl,Rc,xa],Cl,xa]}),n})();class Do{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 Nc extends Do{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class vl extends Do{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}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 fy extends Do{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class Fd{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Nc?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof vl?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof fy?(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 my extends Fd{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const o=d.element,s=this._document.createComment("dom-portal");o.parentNode.insertBefore(s,o),this.outletElement.appendChild(o),this._attachedPortal=d,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(o,s)})},this._document=l}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),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{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);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 Qf=(()=>{class n extends Fd{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,o=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(o,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(d,o)})},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,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,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);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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Tl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Si=x(6787);class Ay{constructor(a,e){this.predicate=a,this.inclusive=e}call(a,e){return e.subscribe(new sg(a,this.predicate,this.inclusive))}}class sg extends Sr.L{constructor(a,e,t){super(a),this.predicate=e,this.inclusive=t,this.index=0}_next(a){const e=this.destination;let t;try{t=this.predicate(a,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(a,t)}nextOrComplete(a,e){const t=this.destination;Boolean(e)?t.next(a):(this.inclusive&&t.next(a),t.complete())}}function vn(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const c0=Ch();class $y{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=en(-this._previousScrollPosition.left),a.style.top=en(-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,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),c0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),c0&&(t.scrollBehavior=l,r.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 Qy{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 Cg{enable(){}disable(){}attach(){}}function or(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function vg(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class Xy{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();or(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 DT=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new Cg,this.close=d=>new Qy(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new $y(this._viewportRuler,this._document),this.reposition=d=>new Xy(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(sr),i.LFG(Ja),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Hh{constructor(a){if(this.scrollStrategy=new Cg,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 eM{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class iM{constructor(a,e,t,r,l,d,o,s,c){this._portalOutlet=a,this._host=e,this._pane=t,this._config=r,this._ngZone=l,this._keyboardDispatcher=d,this._document=o,this._location=s,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new He.xQ,this._attachments=new He.xQ,this._detachments=new He.xQ,this._locationChanges=re.w.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new He.xQ,this._outsidePointerEvents=new He.xQ,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){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Zt.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),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=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},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=en(this._config.width),a.height=en(this._config.height),a.minWidth=en(this._config.minWidth),a.minHeight=en(this._config.minHeight),a.maxWidth=en(this._config.maxWidth),a.maxHeight=en(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._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const r=Lc(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(tt((0,Si.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.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let d0=(()=>{class n{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||Jf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;l{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let o of this._preferredPositions){let s=this._getOriginPoint(a,r,o),c=this._getOverlayPoint(s,e,o),u=this._getOverlayFit(c,e,t,o);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!d||d.overlayFit.visibleAreas&&(s=u,o=c)}return this._isPushed=!1,void this._applyPosition(o.position,o.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&&ko(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xg),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,l;if("center"==t.originX)r=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,o=this._isRtl()?a.left:a.right;r="start"==t.originX?d:o}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=Dg(e);let{x:d,y:o}=a,s=this._getOffset(r,"x"),c=this._getOffset(r,"y");s&&(d+=s),c&&(o+=c);let f=0-o,b=o+l.height-t.height,V=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ee=this._subtractOverflows(l.height,f,b),he=V*ee;return{visibleArea:he,isCompletelyWithinViewport:l.width*l.height===he,fitsInViewportVertically:ee===l.height,fitsInViewportHorizontally:V==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=Eg(this._overlayRef.getConfig().minHeight),o=Eg(this._overlayRef.getConfig().minWidth),c=a.fitsInViewportHorizontally||null!=o&&o<=l;return(a.fitsInViewportVertically||null!=d&&d<=r)&&c}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=Dg(e),l=this._viewportRect,d=Math.max(a.x+r.width-l.width,0),o=Math.max(a.y+r.height-l.height,0),s=Math.max(l.top-t.top-a.y,0),c=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:a.xV&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),V=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>V&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-V/2)}return{top:d,left:h,bottom:o,right:f,width:u,height:l}}_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 l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=en(t.height),r.top=en(t.top),r.bottom=en(t.bottom),r.width=en(t.width),r.left=en(t.left),r.right=en(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",l&&(r.maxHeight=en(l)),d&&(r.maxWidth=en(d))}this._lastBoundingBoxSize=t,ko(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ko(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ko(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();ko(t,this._getExactOverlayY(e,a,u)),ko(t,this._getExactOverlayX(e,a,u))}else t.position="static";let o="",s=this._getOffset(e,"x"),c=this._getOffset(e,"y");s&&(o+=`translateX(${s}px) `),c&&(o+=`translateY(${c}px)`),t.transform=o.trim(),d.maxHeight&&(r?t.maxHeight=en(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=en(d.maxWidth):l&&(t.maxWidth="")),ko(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=en(l.y),r}_getExactOverlayX(a,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=en(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vg(a,t),isOriginOutsideView:or(a,t),isOverlayClipped:vg(e,t),isOverlayOutsideView:or(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?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Lc(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 i.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 ko(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function Eg(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(Sg);return e&&"px"!==e?null:parseFloat(a)}return n||null}function Dg(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const u0="cdk-global-overlay-wrapper";class Hg{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}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(u0),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-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._justifyContent="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:l,maxWidth:d,maxHeight:o}=t,s=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||o&&"100%"!==o&&"100vh"!==o);a.position=this._cssPosition,a.marginLeft=s?"0":this._leftOffset,a.marginTop=c?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"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(u0),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let rM=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Hg}flexibleConnectedTo(e){return new nM(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ja),i.LFG(w.K0),i.LFG(xi),i.LFG(d0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sa=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),h0=(()=>{class n extends Sa{constructor(e){super(e),this._keydownListener=t=>{const r=this._attachedOverlays;for(let l=r.length-1;l>-1;l--)if(r[l]._keydownEvents.observers.length>0){r[l]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aM=(()=>{class n extends Sa{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Un(r)},this._clickListener=r=>{const l=Un(r),d="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const c=o[s];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(l)||c.overlayElement.contains(d))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sM=0,Zr=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=o,this._ngZone=s,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new Hh(e);return d.direction=d.direction||this._directionality.value,new iM(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+sM++,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(i.z2F)),new my(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(DT),i.LFG(d0),i.LFG(i._Vd),i.LFG(rM),i.LFG(h0),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(Cn),i.LFG(w.Ye),i.LFG(aM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Lg=[{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"}],kg=new i.OlP("cdk-connected-overlay-scroll-strategy");let Pg=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Rg=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=re.w.EMPTY,this._attachSubscription=re.w.EMPTY,this._detachSubscription=re.w.EMPTY,this._positionSubscription=re.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new vl(t,r),this._scrollStrategyFactory=l,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=je(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=je(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=je(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=je(e)}get push(){return this._push}set push(e){this._push=je(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=Lg);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&&!vn(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 Hh({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 Pg?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(function by(n,a=!1){return e=>e.lift(new Ay(n,a))}(()=>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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(kg),i.Y36(Cn,8))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})();const oM={provide:kg,deps:[Zr],useFactory:function p0(n){return()=>n.scrollStrategies.reposition()}};let zc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Zr,oM],imports:[[Cl,Tl,Qa],Qa]}),n})();var kh=x(13);function Ph(n){return a=>a.lift(new m0(n))}class m0{constructor(a){this.total=a}call(a,e){return e.subscribe(new Og(a,this.total))}}class Og extends Sr.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}function Rh(n,a){return e=>e.lift(new lM(n,a))}class lM{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new g0(a,this.compare,this.keySelector))}}class g0 extends Sr.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:r}=this;e=r?r(a):a}catch(r){return this.destination.error(r)}let t=!1;if(this.hasKey)try{const{compare:r}=this;t=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let cM=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dM=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=zi(e);return new Ri.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.xQ,r=this._mutationObserverFactory.create(l=>t.next(l));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 n.\u0275fac=function(e){return new(e||n)(i.LFG(cM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=oi(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,kh.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dM),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),Wd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[cM]}),n})();function $r(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const Ng="cdk-describedby-message",Ih="cdk-describedby-host";let uM=0,Bh=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+uM++,this._document=e}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Nh(t,r);"string"!=typeof t?(Vh(t),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const d=Nh(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const o=this._messageRegistry.get(d);o&&0===o.referenceCount&&this._deleteMessageElement(d)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Ih}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Ng));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function Ig(n,a,e){const t=$r(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Ih,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function Bg(n,a,e){const r=$r(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Ih)}_isElementDescribedByMessage(e,t){const r=$r(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Nh(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function Vh(n){n.id||(n.id=`${Ng}-${uM++}`)}class Fc{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.xQ,this._typeaheadSubscription=re.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.xQ,this.change=new He.xQ,a instanceof i.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,I.b)(e=>this._pressedLetters.push(e)),(0,kh.b)(a),(0,jt.h)(()=>this._pressedLetters.length>0),(0,ut.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-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||vn(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),r=e[t];this._activeItem=null==r?null:r,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 i.n_E?this._items.toArray():this._items}}class Vg extends Fc{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class jc extends Fc{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 zh=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function pM(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function zg(n){try{return n.frameElement}catch(a){return null}}(function _M(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===jg(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=jg(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function gM(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Yc(n){return!function fM(n){return function Fg(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function A0(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function mM(n){return function qc(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||y0(n))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function y0(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function jg(n){if(!y0(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class bM{constructor(a,e,t,r,l=!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,l||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 null==t||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,Zt.q)(1)).subscribe(a)}}let qg=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new bM(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zh),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ud(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Fh(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const wM=new i.OlP("cdk-input-modality-detector-options"),CM={ignoreKeys:[18,17,224,91,16]},Dl=$a({passive:!0,capture:!0});let LT=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Ki(null),this._lastTouchMs=0,this._onKeydown=d=>{var o,s;(null===(s=null===(o=this._options)||void 0===o?void 0:o.ignoreKeys)||void 0===s?void 0:s.some(c=>c===d.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Un(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ud(d)?"keyboard":"mouse"),this._mostRecentTarget=Un(d))},this._onTouchstart=d=>{Fh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Un(d))},this._options=Object.assign(Object.assign({},CM),l),this.modalityDetected=this._modality.pipe(Ph(1)),this.modalityChanged=this.modalityDetected.pipe(Rh()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Dl),r.addEventListener("mousedown",this._onMousedown,Dl),r.addEventListener("touchstart",this._onTouchstart,Dl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Dl),document.removeEventListener("mousedown",this._onMousedown,Dl),document.removeEventListener("touchstart",this._onTouchstart,Dl))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(wM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ug=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function vM(){return null}}),TM=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let kT=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>new Promise(o=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,o(),"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,d){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 He.xQ,this._rootNodeFocusAndBlurListener=o=>{const s=Un(o),c="focus"===o.type?this._onFocus:this._onBlur;for(let u=s;u;u=u.parentElement)c.call(this,o,u)},this._document=l,this._detectionMode=(null==d?void 0:d.detectionMode)||0}monitor(e,t=!1){const r=zi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,$e.of)(null);const l=vh(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const o={checkChildren:t,subject:new He.xQ,rootNode:l};return this._elementInfo.set(r,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const t=zi(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 l=zi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([o,s])=>this._originChanged(o,t,s)):(this._setOrigin(t),"function"==typeof l.focus&&l.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:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0: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),l=Un(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),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.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.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,jh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,jh)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(tt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!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,jh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jh),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.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(xi),i.LFG(LT),i.LFG(w.K0,8),i.LFG(M0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const SM="cdk-high-contrast-black-on-white",Jr="cdk-high-contrast-white-on-black",Gg="cdk-high-contrast-active";let EM=(()=>{class n{constructor(e,t){this._platform=e,this._document=t}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,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Gg),e.remove(SM),e.remove(Jr),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Gg),e.add(SM)):2===t&&(e.add(Gg),e.add(Jr))}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),w0=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(EM))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Rc,Wd]]}),n})();class C0{}const Fs="*";function wi(n,a){return{type:7,name:n,definitions:a,options:{}}}function Ct(n,a=null){return{type:4,styles:a,timings:n}}function qh(n,a=null){return{type:3,steps:n,options:a}}function $g(n,a=null){return{type:2,steps:n,options:a}}function Re(n){return{type:6,styles:n,offset:null}}function Nt(n,a,e){return{type:0,name:n,styles:a,options:e}}function Hl(n){return{type:5,steps:n}}function Ht(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function Jg(n=null){return{type:9,options:n}}function yr(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function Qg(n){Promise.resolve(null).then(n)}class js{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(a)}onDone(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(){Qg(()=>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}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 Xg{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 l=this.players.length;0==l?Qg(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,o)=>Math.max(d,o.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}}function T0(){return"undefined"!=typeof window&&void 0!==window.document}function Qr(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xr(n){switch(n.length){case 0:return new js;case 1:return n[0];default:return new Xg(n)}}function In(n,a,e,t,r={},l={}){const d=[],o=[];let s=-1,c=null;if(t.forEach(u=>{const h=u.offset,f=h==s,b=f&&c||{};Object.keys(u).forEach(V=>{let ee=V,he=u[V];if("offset"!==V)switch(ee=a.normalizePropertyName(ee,d),he){case"!":he=r[V];break;case Fs:he=l[V];break;default:he=a.normalizeStyleValue(V,ee,he,d)}b[ee]=he}),f||o.push(b),c=b,s=h}),d.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${d.join(u)}`)}return o}function qs(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&Wc(e,"start",n)));break;case"done":n.onDone(()=>t(e&&Wc(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&Wc(e,"destroy",n)))}}function Wc(n,a,e){const t=e.totalTime,l=Mr(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,null==t?n.totalTime:t,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function Mr(n,a,e,t,r="",l=0,d){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function lr(n,a,e){let t;return n instanceof Map?(t=n.get(a),t||n.set(a,t=e)):(t=n[a],t||(t=n[a]=e)),t}function Ll(n){const a=n.indexOf(":");return[n.substring(1,a),n.substr(a+1)]}let Po=(n,a)=>!1,kl=(n,a,e)=>[];(Qr()||"undefined"!=typeof Element)&&(Po=T0()?(n,a)=>{for(;a&&a!==document.documentElement;){if(a===n)return!0;a=a.parentNode||a.host}return!1}:(n,a)=>n.contains(a),kl=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Kr=null,Pl=!1;function Rl(n){Kr||(Kr=function Gc(){return"undefined"!=typeof document?document.body:null}()||{},Pl=!!Kr.style&&"WebkitAppearance"in Kr.style);let a=!0;return Kr.style&&!function Uc(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Kr.style,!a&&Pl&&(a="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Kr.style)),a}const Yh=Po,x0=kl;let S0=(()=>{class n{validateStyleProperty(e){return Rl(e)}matchesElement(e,t){return!1}containsElement(e,t){return Yh(e,t)}query(e,t,r){return x0(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,o=[],s){return new js(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Wh=(()=>{class n{}return n.NOOP=new S0,n})();const Uh="ng-enter",Gh="ng-leave",$d="ng-trigger",Zh=".ng-trigger",D0="ng-animating",$h=".ng-animating";function Ol(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:H0(parseFloat(a[1]),a[2])}function H0(n,a){return"s"===a?1e3*n:n}function Jd(n,a,e){return n.hasOwnProperty("duration")?n:function HM(n,a,e){let r,l=0,d="";if("string"==typeof n){const o=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return a.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=H0(parseFloat(o[1]),o[2]);const s=o[3];null!=s&&(l=H0(parseFloat(s),o[4]));const c=o[5];c&&(d=c)}else r=n;if(!e){let o=!1,s=a.length;r<0&&(a.push("Duration values below 0 are not allowed for this animation step."),o=!0),l<0&&(a.push("Delay values below 0 are not allowed for this animation step."),o=!0),o&&a.splice(s,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:l,easing:d}}(n,a,e)}function Il(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function Ro(n,a,e={}){if(a)for(let t in n)e[t]=n[t];else Il(n,e);return e}function LM(n,a,e){return e?a+":"+e+";":""}function i_(n){let a="";for(let e=0;e{const r=L0(t);e&&!e.hasOwnProperty(t)&&(e[t]=n.style[r]),n.style[r]=a[t]}),Qr()&&i_(n))}function Ys(n,a){n.style&&(Object.keys(a).forEach(e=>{const t=L0(e);n.style[t]=""}),Qr()&&i_(n))}function Qd(n){return Array.isArray(n)?1==n.length?n[0]:$g(n):n}const n_=new RegExp("{{\\s*(.+?)\\s*}}","g");function kM(n){let a=[];if("string"==typeof n){let e;for(;e=n_.exec(n);)a.push(e[1]);n_.lastIndex=0}return a}function Jh(n,a,e){const t=n.toString(),r=t.replace(n_,(l,d)=>{let o=a[d];return a.hasOwnProperty(d)||(e.push(`Please provide a value for the animation param ${d}`),o=""),o.toString()});return r==t?n:r}function Xd(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const IT=/-+([a-z0-9])/g;function L0(n){return n.replace(IT,(...a)=>a[1].toUpperCase())}function Zc(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Or(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function k0(n,a){return window.getComputedStyle(n)[a]}function RM(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function a_(n,a,e){if(":"==n[0]){const s=function OM(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof s)return void a.push(s);n=s}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${n}" is not supported`),a;const r=t[1],l=t[2],d=t[3];a.push(s_(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&a.push(s_(d,r))}(t,e,a)):e.push(n),e}const Qh=new Set(["true","1"]),Xh=new Set(["false","0"]);function s_(n,a){const e=Qh.has(n)||Xh.has(n),t=Qh.has(a)||Xh.has(a);return(r,l)=>{let d="*"==n||n==r,o="*"==a||a==l;return!d&&e&&"boolean"==typeof r&&(d=r?Qh.has(n):Xh.has(n)),!o&&t&&"boolean"==typeof l&&(o=l?Qh.has(a):Xh.has(a)),d&&o}}const l_=new RegExp("s*:selfs*,?","g");function P0(n,a,e){return new c_(n).build(a,e)}class c_{constructor(a){this._driver=a}build(a,e){const t=new I0(e);return this._resetContextStyleTimingState(t),Or(this,Qd(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(o=>{if(this._resetContextStyleTimingState(e),0==o.type){const s=o,c=s.name;c.toString().split(/\s*,\s*/).forEach(u=>{s.name=u,l.push(this.visitState(s,e))}),s.name=c}else if(1==o.type){const s=this.visitTransition(o,e);t+=s.queryCount,r+=s.depCount,d.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:l,transitions:d,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 l=new Set,d=r||{};if(t.styles.forEach(o=>{if(B0(o)){const s=o;Object.keys(s).forEach(c=>{kM(s[c]).forEach(u=>{d.hasOwnProperty(u)||l.add(u)})})}}),l.size){const o=Xd(l.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${o.join(", ")}`)}}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Or(this,Qd(a.animation),e);return{type:1,matchers:RM(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Oo(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Or(this,t,e)),options:Oo(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(d=>{e.currentTime=t;const o=Or(this,d,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:l,options:Oo(a.options)}}visitAnimate(a,e){const t=function Kd(n,a){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return eu(Jd(n,a).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=eu(0,0,"");return l.dynamic=!0,l.strValue=t,l}return e=e||Jd(t,a),eu(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:Re({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=a.styles,o=!1;if(!d){o=!0;const c={};t.easing&&(c.easing=t.easing),d=Re(c)}e.currentTime+=t.duration+t.delay;const s=this.visitStyle(d,e);s.isEmptyStep=o,r=s}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=[];Array.isArray(a.styles)?a.styles.forEach(d=>{"string"==typeof d?d==Fs?t.push(d):e.errors.push(`The provided style string value ${d} is not allowed.`):t.push(d)}):t.push(a.styles);let r=!1,l=null;return t.forEach(d=>{if(B0(d)){const o=d,s=o.easing;if(s&&(l=s,delete o.easing),!r)for(let c in o)if(o[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:t,easing:l,offset:a.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&Object.keys(d).forEach(o=>{if(!this._driver.validateStyleProperty(o))return void e.errors.push(`The provided animation property "${o}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],c=s[o];let u=!0;c&&(l!=r&&l>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${o}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${l}ms" and "${r}ms"`),u=!1),l=c.startTime),u&&(s[o]={startTime:l,endTime:r}),e.options&&function OT(n,a,e){const t=a.params||{},r=kM(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(`Unable to resolve the local animation param ${l} in the given list of values`)})}(d[o],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let l=0;const d=[];let o=!1,s=!1,c=0;const u=a.steps.map(Oe=>{const gt=this._makeStyleAst(Oe,e);let dt=null!=gt.offset?gt.offset:function IM(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(B0(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(B0(n)&&n.hasOwnProperty("offset")){const e=n;a=parseFloat(e.offset),delete e.offset}return a}(gt.styles),Kt=0;return null!=dt&&(l++,Kt=gt.offset=dt),s=s||Kt<0||Kt>1,o=o||Kt0&&l{const dt=f>0?gt==b?1:f*gt:d[gt],Kt=dt*he;e.currentTime=V+ee.delay+Kt,ee.duration=Kt,this._validateStyleAst(Oe,e),Oe.offset=dt,t.styles.push(Oe)}),t}visitReference(a,e){return{type:8,animation:Or(this,Qd(a.animation),e),options:Oo(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Oo(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Oo(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,d]=function O0(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(l_,"")),n=n.replace(/@\*/g,Zh).replace(/@\w+/g,e=>Zh+"-"+e.substr(1)).replace(/:animating/g,$h),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,lr(e.collectedStyles,e.currentQuerySelector,{});const o=Or(this,Qd(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:o,originalSelector:a.selector,options:Oo(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:Jd(a.timings,e.errors,!0);return{type:12,animation:Or(this,Qd(a.animation),e),timings:t,options:null}}}class I0{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function B0(n){return!Array.isArray(n)&&"object"==typeof n}function Oo(n){return n?(n=Il(n)).params&&(n.params=function BT(n){return n?Il(n):null}(n.params)):n={},n}function eu(n,a,e){return{duration:n,delay:a,easing:e}}function tu(n,a,e,t,r,l,d=null,o=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:o}}class Kh{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 d_=new RegExp(":enter","g"),BM=new RegExp(":leave","g");function iu(n,a,e,t,r,l={},d={},o,s,c=[]){return(new z0).buildKeyframes(n,a,e,t,r,l,d,o,s,c)}class z0{buildKeyframes(a,e,t,r,l,d,o,s,c,u=[]){c=c||new Kh;const h=new ep(a,e,c,r,l,u,[]);h.options=s,h.currentTimeline.setStyles([d],null,h.errors,s),Or(this,t,h);const f=h.timelines.filter(b=>b.containsAnimation());if(Object.keys(o).length){let b;for(let V=f.length-1;V>=0;V--){const ee=f[V];if(ee.element===e){b=ee;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([o],null,h.errors,s)}return f.length?f.map(b=>b.buildKeyframes()):[tu(e,[],[],[],0,0,"",!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),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=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 l=e.currentTimeline.currentTime;const d=null!=t.duration?Ol(t.duration):null,o=null!=t.delay?Ol(t.delay):null;return 0!==d&&a.forEach(s=>{const c=e.appendInstructionToTimeline(s,d,o);l=Math.max(l,c.duration+c.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),Or(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=nu);const d=Ol(l.delay);r.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Or(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?Ol(a.options.delay):0;a.steps.forEach(d=>{const o=e.createSubContext(a.options);l&&o.delayNextStep(l),Or(this,d,o),r=Math.max(r,o.currentTimeline.currentTime),t.push(o.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return Jd(e.params?Jh(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 l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.getCurrentStyleProperties().length&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,o=e.createSubContext().currentTimeline;o.easing=t.easing,a.styles.forEach(s=>{o.forwardTime((s.offset||0)*l),o.setStyles(s.styles,s.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?Ol(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=nu);let d=t;const o=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let s=null;o.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,c);l&&h.delayNextStep(l),c===e.element&&(s=h.currentTimeline),Or(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),s&&(e.currentTimeline.mergeTimelineCollectedStyles(s),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,d=Math.abs(l.duration),o=d*(e.currentQueryTotal-1);let s=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":s=o-s;break;case"full":s=t.currentStaggerTime}const u=e.currentTimeline;s&&u.delayNextStep(s);const h=u.currentTime;Or(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const nu={};class ep{constructor(a,e,t,r,l,d,o,s){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new $c(this._driver,e,0),o.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=Ol(t.duration)),null!=t.delay&&(r.delay=Ol(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(o=>{(!e||!d.hasOwnProperty(o))&&(d[o]=Jh(l[o],d,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,l=new ep(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=nu,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},l=new u_(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,d){let o=[];if(r&&o.push(this.element),a.length>0){a=(a=a.replace(d_,"."+this._enterClassName)).replace(BM,"."+this._leaveClassName);let c=this._driver.query(this.element,a,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),o.push(...c)}return!l&&0==o.length&&d.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class $c{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new $c(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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Fs,this._currentKeyframe[e]=Fs}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&(this._previousKeyframe.easing=e);const l=r&&r.params||{},d=function j0(n,a){const e={};let t;return n.forEach(r=>{"*"===r?(t=t||Object.keys(a),t.forEach(l=>{e[l]=Fs})):Ro(r,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(d).forEach(o=>{const s=Jh(d[o],l,t);this._pendingStyles[o]=s,this._localTimelineStyles.hasOwnProperty(o)||(this._backFill[o]=this._globalTimelineStyles.hasOwnProperty(o)?this._globalTimelineStyles[o]:Fs),this._updateStyle(o,s)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[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){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],r=a._styleSummary[e];(!t||r.time>t.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((o,s)=>{const c=Ro(o,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?a.add(u):h==Fs&&e.add(u)}),t||(c.offset=s/this.duration),r.push(c)});const l=a.size?Xd(a.values()):[],d=e.size?Xd(e.values()):[];if(t){const o=r[0],s=Il(o);o.offset=0,s.offset=1,r=[o,s]}return tu(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class u_ extends $c{constructor(a,e,t,r,l,d,o=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=o,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:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,o=e/d,s=Ro(a[0],!1);s.offset=0,l.push(s);const c=Ro(a[0],!1);c.offset=F0(o),l.push(c);const u=a.length-1;for(let h=1;h<=u;h++){let f=Ro(a[h],!1);f.offset=F0((e+f.offset*t)/d),l.push(f)}t=d,e=0,r="",a=l}return tu(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function F0(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class q0{}class p_ extends q0{normalizePropertyName(a,e){return L0(a)}normalizeStyleValue(a,e,t,r){let l="";const d=t.toString().trim();if(Y0[e]&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const o=t.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push(`Please provide a CSS unit value for ${a}:${t}`)}return d+l}}const Y0=(()=>function f_(n){const a={};return n.forEach(e=>a[e]=!0),a}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function m_(n,a,e,t,r,l,d,o,s,c,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:o,queriedElements:s,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const tp={};class W0{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function U0(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){const r=this._stateStyles["*"],l=this._stateStyles[a],d=r?r.buildStyles(e,t):{};return l?l.buildStyles(e,t):d}build(a,e,t,r,l,d,o,s,c,u){const h=[],f=this.ast.options&&this.ast.options.params||tp,V=this.buildStyles(t,o&&o.params||tp,h),ee=s&&s.params||tp,he=this.buildStyles(r,ee,h),Oe=new Set,gt=new Map,dt=new Map,Kt="void"===r,Pa={params:Object.assign(Object.assign({},f),ee)},fs=u?[]:iu(a,e,this.ast.animation,l,d,V,he,Pa,c,h);let Vr=0;if(fs.forEach(rc=>{Vr=Math.max(rc.duration+rc.delay,Vr)}),h.length)return m_(e,this._triggerName,t,r,Kt,V,he,[],[],gt,dt,Vr,h);fs.forEach(rc=>{const ac=rc.element,mD=lr(gt,ac,{});rc.preStyleProps.forEach(zu=>mD[zu]=!0);const k1=lr(dt,ac,{});rc.postStyleProps.forEach(zu=>k1[zu]=!0),ac!==e&&Oe.add(ac)});const nc=Xd(Oe.values());return m_(e,this._triggerName,t,r,Kt,V,he,fs,nc,gt,dt,Vr)}}class ip{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},r=Il(this.defaultParams);return Object.keys(a).forEach(l=>{const d=a[l];null!=d&&(r[l]=d)}),this.styles.styles.forEach(l=>{if("string"!=typeof l){const d=l;Object.keys(d).forEach(o=>{let s=d[o];s.length>1&&(s=Jh(s,r,e));const c=this.normalizer.normalizePropertyName(o,e);s=this.normalizer.normalizeStyleValue(o,c,s,e),t[c]=s})}}),t}}class g_{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new ip(r.style,r.options&&r.options.params||{},t)}),Z0(this.states,"true","1"),Z0(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new W0(a,r,this.states))}),this.fallbackTransition=function __(n,a,e){return new W0(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,o)=>!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(d=>d.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function Z0(n,a,e){n.hasOwnProperty(a)?n.hasOwnProperty(e)||(n[e]=n[a]):n.hasOwnProperty(e)&&(n[a]=n[e])}const b_=new Kh;class A_{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],r=P0(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=r}_buildPlayer(a,e,t){const r=a.element,l=In(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations[a];let d;const o=new Map;if(l?(d=iu(this._driver,e,l,Uh,Gh,{},{},t,b_,r),d.forEach(u=>{const h=lr(o,u.element,{});u.postStyleProps.forEach(f=>h[f]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),d=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);o.forEach((u,h)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(h,f,Fs)})});const c=Xr(d.map(u=>{const h=o.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[a]=c,c.onDestroy(()=>this.destroy(a)),this.players.push(c),c}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,r){const l=Mr(e,"","","");return qs(this._getPlayer(a),t,l,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 l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const $0="ng-animate-queued",M_="ng-animate-disabled",FM=[],pn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},C_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ta="__ng_removed";class J0{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function qM(n){return null!=n?n:null}(t?a.value:a),t){const l=Il(a);delete l.value,this.options=l}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 Jc="void",Q0=new J0(Jc);class v_{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,wr(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function YM(n){return"start"==n||"done"==n}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const l=lr(this._elementListeners,a,[]),d={name:e,phase:t,callback:r};l.push(d);const o=lr(this._engine.statesByElement,a,{});return o.hasOwnProperty(e)||(wr(a,$d),wr(a,$d+"-"+e),o[e]=Q0),()=>{this._engine.afterFlush(()=>{const s=l.indexOf(d);s>=0&&l.splice(s,1),this._triggers[e]||delete o[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),d=new Io(this.id,e,a);let o=this._engine.statesByElement.get(a);o||(wr(a,$d),wr(a,$d+"-"+e),this._engine.statesByElement.set(a,o={}));let s=o[e];const c=new J0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&s&&c.absorbOptions(s.options),o[e]=c,s||(s=Q0),c.value!==Jc&&s.value===c.value){if(!function Ha(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Ys(a,he),ea(a,Oe)})}return}const f=lr(this._engine.playersByElement,a,[]);f.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let b=l.matchTransition(s.value,c.value,a,c.params),V=!1;if(!b){if(!r)return;b=l.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:s,toState:c,player:d,isFallbackTransition:V}),V||(wr(a,$0),d.onStart(()=>{cr(a,$0)})),d.onDone(()=>{let ee=this.players.indexOf(d);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(a);if(he){let Oe=he.indexOf(d);Oe>=0&&he.splice(Oe,1)}}),this.players.push(d),f.push(d),d}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[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,Zh,!0);t.forEach(r=>{if(r[ta])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),d=new Map;if(l){const o=[];if(Object.keys(l).forEach(s=>{if(d.set(s,l[s].value),this._triggers[s]){const c=this.trigger(a,s,Jc,r);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Xr(o).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(l=>{const d=l.name;if(r.has(d))return;r.add(d);const s=this._triggers[d].fallbackTransition,c=t[d]||Q0,u=new J0(Jc),h=new Io(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:s,fromState:c,toState:u,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 l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[ta];(!l||l===pn)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){wr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(o=>{if(o.name==t.triggerName){const s=Mr(l,t.triggerName,t.fromState.value,t.toState.value);s._data=a,qs(t.player,o.phase,s,o.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d: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 T_{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,l)=>{}}_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 v_(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.length-1;if(t>=0){let r=!1;for(let l=t;l>=0;l--)if(this.driver.containsElement(this._namespaceList[l].hostElement,e)){this._namespaceList.splice(l+1,0,a),r=!0;break}r||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.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){const r=Object.keys(t);for(let l=0;l=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.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),wr(a,M_)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),cr(a,M_))}removeNode(a,e,t,r){if(ru(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[ta]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return ru(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,Zh,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,$h,!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 Xr(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[ta];if(t&&t.setForRemoval){if(a[ta]=pn,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?void 0:e.contains(M_))&&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?Xr(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new Kh,r=[],l=new Map,d=[],o=new Map,s=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(at=>{u.add(at);const _t=this.driver.query(at,".ng-animate-queued",!0);for(let wt=0;wt<_t.length;wt++)u.add(_t[wt])});const h=this.bodyNode,f=Array.from(this.statesByElement.keys()),b=np(f,this.collectedEnterElements),V=new Map;let ee=0;b.forEach((at,_t)=>{const wt=Uh+ee++;V.set(_t,wt),at.forEach(ci=>wr(ci,wt))});const he=[],Oe=new Set,gt=new Set;for(let at=0;atOe.add(ci)):gt.add(_t))}const dt=new Map,Kt=np(f,Array.from(Oe));Kt.forEach((at,_t)=>{const wt=Gh+ee++;dt.set(_t,wt),at.forEach(ci=>wr(ci,wt))}),a.push(()=>{b.forEach((at,_t)=>{const wt=V.get(_t);at.forEach(ci=>cr(ci,wt))}),Kt.forEach((at,_t)=>{const wt=dt.get(_t);at.forEach(ci=>cr(ci,wt))}),he.forEach(at=>{this.processLeaveNode(at)})});const Pa=[],fs=[];for(let at=this._namespaceList.length-1;at>=0;at--)this._namespaceList[at].drainQueuedTransitions(e).forEach(wt=>{const ci=wt.player,Qn=wt.element;if(Pa.push(ci),this.collectedEnterElements.length){const zr=Qn[ta];if(zr&&zr.setForMove){if(zr.previousTriggersValues&&zr.previousTriggersValues.has(wt.triggerName)){const Fu=zr.previousTriggersValues.get(wt.triggerName),bd=this.statesByElement.get(wt.element);bd&&bd[wt.triggerName]&&(bd[wt.triggerName].value=Fu)}return void ci.destroy()}}const Uo=!h||!this.driver.containsElement(h,Qn),Ra=dt.get(Qn),_d=V.get(Qn),an=this._buildInstruction(wt,t,_d,Ra,Uo);if(an.errors&&an.errors.length)return void fs.push(an);if(Uo)return ci.onStart(()=>Ys(Qn,an.fromStyles)),ci.onDestroy(()=>ea(Qn,an.toStyles)),void r.push(ci);if(wt.isFallbackTransition)return ci.onStart(()=>Ys(Qn,an.fromStyles)),ci.onDestroy(()=>ea(Qn,an.toStyles)),void r.push(ci);const bD=[];an.timelines.forEach(zr=>{zr.stretchStartingKeyframe=!0,this.disabledNodes.has(zr.element)||bD.push(zr)}),an.timelines=bD,t.append(Qn,an.timelines),d.push({instruction:an,player:ci,element:Qn}),an.queriedElements.forEach(zr=>lr(o,zr,[]).push(ci)),an.preStyleProps.forEach((zr,Fu)=>{const bd=Object.keys(zr);if(bd.length){let ju=s.get(Fu);ju||s.set(Fu,ju=new Set),bd.forEach(Iv=>ju.add(Iv))}}),an.postStyleProps.forEach((zr,Fu)=>{const bd=Object.keys(zr);let ju=c.get(Fu);ju||c.set(Fu,ju=new Set),bd.forEach(Iv=>ju.add(Iv))})});if(fs.length){const at=[];fs.forEach(_t=>{at.push(`@${_t.triggerName} has failed due to:\n`),_t.errors.forEach(wt=>at.push(`- ${wt}\n`))}),Pa.forEach(_t=>_t.destroy()),this.reportError(at)}const Vr=new Map,nc=new Map;d.forEach(at=>{const _t=at.element;t.has(_t)&&(nc.set(_t,_t),this._beforeAnimationBuild(at.player.namespaceId,at.instruction,Vr))}),r.forEach(at=>{const _t=at.element;this._getPreviousPlayers(_t,!1,at.namespaceId,at.triggerName,null).forEach(ci=>{lr(Vr,_t,[]).push(ci),ci.destroy()})});const rc=he.filter(at=>ia(at,s,c)),ac=new Map;WM(ac,this.driver,gt,c,Fs).forEach(at=>{ia(at,s,c)&&rc.push(at)});const k1=new Map;b.forEach((at,_t)=>{WM(k1,this.driver,new Set(at),s,"!")}),rc.forEach(at=>{const _t=ac.get(at),wt=k1.get(at);ac.set(at,Object.assign(Object.assign({},_t),wt))});const zu=[],gD=[],_D={};d.forEach(at=>{const{element:_t,player:wt,instruction:ci}=at;if(t.has(_t)){if(u.has(_t))return wt.onDestroy(()=>ea(_t,ci.toStyles)),wt.disabled=!0,wt.overrideTotalTime(ci.totalTime),void r.push(wt);let Qn=_D;if(nc.size>1){let Ra=_t;const _d=[];for(;Ra=Ra.parentNode;){const an=nc.get(Ra);if(an){Qn=an;break}_d.push(Ra)}_d.forEach(an=>nc.set(an,Qn))}const Uo=this._buildAnimation(wt.namespaceId,ci,Vr,l,k1,ac);if(wt.setRealPlayer(Uo),Qn===_D)zu.push(wt);else{const Ra=this.playersByElement.get(Qn);Ra&&Ra.length&&(wt.parentPlayer=Xr(Ra)),r.push(wt)}}else Ys(_t,ci.fromStyles),wt.onDestroy(()=>ea(_t,ci.toStyles)),gD.push(wt),u.has(_t)&&r.push(wt)}),gD.forEach(at=>{const _t=l.get(at.element);if(_t&&_t.length){const wt=Xr(_t);at.setRealPlayer(wt)}}),r.forEach(at=>{at.parentPlayer?at.syncPlayerEvents(at.parentPlayer):at.destroy()});for(let at=0;at!Uo.destroyed);Qn.length?UM(this,_t,Qn):this.processLeaveNode(_t)}return he.length=0,zu.forEach(at=>{this.players.push(at),at.onDone(()=>{at.destroy();const _t=this.players.indexOf(at);this.players.splice(_t,1)}),at.play()}),zu}elementContainsData(a,e){let t=!1;const r=e[ta];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,l){let d=[];if(e){const o=this.playersByQueriedElement.get(a);o&&(d=o)}else{const o=this.playersByElement.get(a);if(o){const s=!l||l==Jc;o.forEach(c=>{c.queued||!s&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(o=>!(t&&t!=o.namespaceId||r&&r!=o.triggerName))),d}_beforeAnimationBuild(a,e,t){const l=e.element,d=e.isRemovalTransition?void 0:a,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const c=s.element,u=c!==l,h=lr(t,c,[]);this._getPreviousPlayers(c,u,d,o,e.toState).forEach(b=>{const V=b.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),b.destroy(),h.push(b)})}Ys(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,d){const o=e.triggerName,s=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(V=>{const ee=V.element;u.add(ee);const he=ee[ta];if(he&&he.removedBeforeQueried)return new js(V.duration,V.delay);const Oe=ee!==s,gt=function x_(n){const a=[];return Da(n,a),a}((t.get(ee)||FM).map(Vr=>Vr.getRealPlayer())).filter(Vr=>!!Vr.element&&Vr.element===ee),dt=l.get(ee),Kt=d.get(ee),Pa=In(0,this._normalizer,0,V.keyframes,dt,Kt),fs=this._buildPlayer(V,Pa,gt);if(V.subTimeline&&r&&h.add(ee),Oe){const Vr=new Io(a,o,ee);Vr.setRealPlayer(fs),c.push(Vr)}return fs});c.forEach(V=>{lr(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function jM(n,a,e){let t;if(n instanceof Map){if(t=n.get(a),t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}}else if(t=n[a],t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&delete n[a]}return t}(this.playersByQueriedElement,V.element,V))}),u.forEach(V=>wr(V,D0));const b=Xr(f);return b.onDestroy(()=>{u.forEach(V=>cr(V,D0)),ea(s,e.toStyles)}),h.forEach(V=>{lr(r,V,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new js(a.duration,a.delay)}}class Io{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new js,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>qs(a,e,void 0,t))}),this._queuedCallbacks={},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){lr(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 ru(n){return n&&1===n.nodeType}function X0(n,a){const e=n.style.display;return n.style.display=null!=a?a:"none",e}function WM(n,a,e,t,r){const l=[];e.forEach(s=>l.push(X0(s)));const d=[];t.forEach((s,c)=>{const u={};s.forEach(h=>{const f=u[h]=a.computeStyle(c,h,r);(!f||0==f.length)&&(c[ta]=C_,d.push(c))}),n.set(c,u)});let o=0;return e.forEach(s=>X0(s,l[o++])),d}function np(n,a){const e=new Map;if(n.forEach(o=>e.set(o,[])),0==a.length)return e;const r=new Set(a),l=new Map;function d(o){if(!o)return 1;let s=l.get(o);if(s)return s;const c=o.parentNode;return s=e.has(c)?c:r.has(c)?1:d(c),l.set(o,s),s}return a.forEach(o=>{const s=d(o);1!==s&&e.get(s).push(o)}),e}function wr(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function cr(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function UM(n,a,e){Xr(e).onDone(()=>n.processLeaveNode(a))}function Da(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class au{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new T_(a,e,t),this._timelineEngine=new A_(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const d=a+"-"+r;let o=this._triggerCache[d];if(!o){const s=[],c=P0(this._driver,l,s);if(s.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${s.join("\n - ")}`);o=function G0(n,a,e){return new g_(n,a,e)}(r,c,this._normalizer),this._triggerCache[d]=o}this._transitionEngine.registerTrigger(e,r,o)}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[l,d]=Ll(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[d,o]=Ll(t);return this._timelineEngine.listen(d,e,o,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let GM=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l={}),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&ea(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ea(this._element,this._initialStyles),this._endStyles&&(ea(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ys(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ys(this._element,this._endStyles),this._endStyles=null),ea(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function K0(n){let a=null;const e=Object.keys(n);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:k0(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class em{validateStyleProperty(a){return Rl(a)}matchesElement(a,e){return!1}containsElement(a,e){return Yh(a,e)}query(a,e,t){return x0(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,d=[]){const s={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(s.easing=l);const c={},u=d.filter(f=>f instanceof E_);(function PM(n,a){return 0===n||0===a})(t,r)&&u.forEach(f=>{let b=f.currentSnapshot;Object.keys(b).forEach(V=>c[V]=b[V])}),e=function r_(n,a,e){const t=Object.keys(e);if(t.length&&a.length){let l=a[0],d=[];if(t.forEach(o=>{l.hasOwnProperty(o)||d.push(o),l[o]=e[o]}),d.length)for(var r=1;rRo(f,!1)),c);const h=function S_(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=K0(a[0]),a.length>1&&(t=K0(a[a.length-1]))):a&&(e=K0(a)),e||t?new GM(n,e,t):null}(a,e);return new E_(a,e,s,h)}}let su=(()=>{class n extends C0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?$g(e):e;return H_(this._renderer,null,t,"register",[r]),new $M(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class $M extends class Zg{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new D_(this._id,a,e||{},this._renderer)}}class D_{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 H_(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!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function H_(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const tm="@.disabled";let rp=(()=>{class n{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=(l,d)=>{const o=null==d?void 0:d.parentNode(l);o&&d.removeChild(o,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new L_("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(d,o,e,u.name,u)};return t.data.animation.forEach(s),new k_(this,o,l,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(l=>{const[d,o]=l;d(o)}),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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(au),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class L_{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==tm?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 k_ extends L_{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==tm?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function P_(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.substr(1),d="";return"@"!=l.charAt(0)&&([l,d]=function im(n){const a=n.indexOf(".");return[n.substring(0,a),n.substr(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,o=>{this.factory.scheduleListenerCallback(o._data||-1,t,o)})}return this.delegate.listen(a,e,t)}}let ap=(()=>{class n extends au{constructor(e,t,r){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Wh),i.LFG(q0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Bn=new i.OlP("AnimationModuleType"),sp=[{provide:C0,useClass:su},{provide:q0,useFactory:function nm(){return new p_}},{provide:au,useClass:ap},{provide:i.FYo,useFactory:function R_(n,a,e){return new rp(n,a,e)},deps:[ke,au,i.R0b]}],rm=[{provide:Wh,useFactory:()=>new em},{provide:Bn,useValue:"BrowserAnimations"},...sp],O_=[{provide:Wh,useClass:S0},{provide:Bn,useValue:"NoopAnimations"},...sp];let I_=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?O_:rm}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:rm,imports:[ue]}),n})();function XM(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function KM(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const ew=["*"];let tw=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),iw=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const rw=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function nw(){return!0}});let ht=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.LFG(EM),i.LFG(rw,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Cl],Cl]}),n})();function ts(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=je(a)}}}function Bo(n,a){return class extends n{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 na(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=je(a)}}}function Nl(n,a=0){return class extends n{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?oi(e):this.defaultTabIndex}}}function op(n){return class extends n{constructor(...a){super(...a),this.stateChanges=new He.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function am(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ri.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 N_=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function V_(){return(0,i.f3M)(i.soG)}});class ra{constructor(){this._localeChanges=new He.xQ,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 lu=new i.OlP("mat-date-formats"),z_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function lp(n,a){const e=Array(n);for(let t=0;t{class n extends ra{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 lp(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return lp(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 lp(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 l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e){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,Object.assign(Object.assign({},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(z_.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 l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_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 n.\u0275fac=function(e){return new(e||n)(i.LFG(N_,8),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const om={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 lm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ra,useClass:sm}],imports:[[Rc]]}),n})(),No=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:lu,useValue:om}],imports:[[lm]]}),n})(),Qc=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function zl(n,a,e){n.nativeElement.classList.toggle(a,e)}let cm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})();class F_{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const dm={enterDuration:225,exitDuration:150},pt=$a({passive:!0}),j_=["mousedown","touchstart"],q_=["mouseup","mouseleave","touchend","touchcancel"];class Y_{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=zi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l=Object.assign(Object.assign({},dm),t.animation);t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function sw(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-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),o=a-r.left,s=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-d+"px",u.style.top=s-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function cp(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new F_(this,u,t);return h.state=0,this._activeRipples.add(h),t.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const f=h===this._mostRecentTransientRipple;h.state=1,!t.persistent&&(!f||!this._isPointerDown)&&h.fadeOut()},c),h}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,r=Object.assign(Object.assign({},dm),a.config.animation);t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=zi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(j_))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(q_),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Ud(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,pt)})})}_removeTriggerEvents(){this._triggerElement&&(j_.forEach(a=>{this._triggerElement.removeEventListener(a,this,pt)}),this._pointerUpEventsRegistered&&q_.forEach(a=>{this._triggerElement.removeEventListener(a,this,pt)}))}}const cu=new i.OlP("mat-ripple-global-options");let Gn=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new Y_(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:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(xi),i.Y36(cu,8),i.Y36(Bn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.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"]}),n})(),ii=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht,Rc],ht]}),n})(),ow=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),dp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht]]}),n})();const um=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),up=new i.OlP("MatOptgroup");let uw=0;class W_{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let hw=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+uw++,this.onSelectionChange=new i.vpe,this._stateChanges=new He.xQ}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=je(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)&&!vn(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 W_(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),La=(()=>{class n extends hw{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(um,8),i.Y36(up,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:ew,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&&(i.F$t(),i.YNc(0,XM,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,KM,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[ow,w.O5,Gn],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function hm(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let d=0;de+t?Math.max(0,n-t+a):e}let du=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,w.ez,ht,dp]]}),n})();function hp(n,a){}class uu{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const G_={dialogContainer:wi("dialogContainer",[Nt("void, exit",Re({opacity:0,transform:"scale(0.7)"})),Nt("enter",Re({transform:"none"})),Ht("* => enter",Ct("150ms cubic-bezier(0, 0, 0.2, 1)",Re({transform:"none",opacity:1}))),Ht("* => void, * => exit",Ct("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Re({opacity:0})))])};let fw=(()=>{class n extends Fd{constructor(e,t,r,l,d,o,s,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=r,this._config=d,this._interactivityChecker=o,this._ngZone=s,this._focusMonitor=c,this._animationStateChanged=new i.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=d.ariaLabelledBy||null,this._document=l}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=$f(),r=this._elementRef.nativeElement;(!t||t===this._document.body||t===r||r.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=$f())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=$f();return e===t||e.contains(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qg),i.Y36(i.sBO),i.Y36(w.K0,8),i.Y36(uu),i.Y36(zh),i.Y36(i.R0b),i.Y36(Rr))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(Qf,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},features:[i.qOj]}),n})(),hu=(()=>{class n extends fw{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),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()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._id),i.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._state))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,hp,0,0,"ng-template",0)},directives:[Qf],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[G_.dialogContainer]}}),n})(),pu=0;class Fi{constructor(a,e,t="mat-dialog-"+pu++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new He.xQ,this._afterClosed=new He.xQ,this._beforeClosed=new He.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,jt.h)(r=>"opened"===r.state),(0,Zt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,jt.h)(r=>"closed"===r.state),(0,Zt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,jt.h)(r=>27===r.keyCode&&!this.disableClose&&!vn(r))).subscribe(r=>{r.preventDefault(),Z_(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Z_(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,jt.h)(e=>"closing"===e.state),(0,Zt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();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._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Z_(n,a,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=a),n.close(e)}const Sn=new i.OlP("MatDialogData"),$_=new i.OlP("mat-dialog-default-options"),pm=new i.OlP("mat-dialog-scroll-strategy"),J_={provide:pm,deps:[Zr],useFactory:function gw(n){return()=>n.scrollStrategies.block()}};let _w=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.xQ,this._afterOpenedAtThisLevel=new He.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=ma(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_i(void 0))),this._scrollStrategy=o}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){if(t=function UT(n,a){return Object.assign(Object.assign({},a),n)}(t,this._defaultOptions||new uu),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(t),l=this._attachDialogContainer(r,t);if("NoopAnimations"!==this._animationMode){const o=l._animationStateChanged.subscribe(s=>{"opening"===s.state&&(this._dialogAnimatingOpen=!0),"opened"===s.state&&(this._dialogAnimatingOpen=!1,o.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new re.w),this._animationStateSubscriptions.add(o)}const d=this._attachDialogContent(e,l,r,t);return this._lastDialogRef=d,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(d),d.afterClosed().subscribe(()=>this._removeOpenDialog(d)),this.afterOpened.next(d),l._initializeWithAttachedContent(),d}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(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new Hh({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const l=i.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:uu,useValue:t}]}),d=new Nc(this._dialogContainerType,t.viewContainerRef,l,t.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,t,r,l){const d=new this._dialogRefConstructor(r,t,l.id);if(e instanceof i.Rgc)t.attachTemplatePortal(new vl(e,null,{$implicit:l.data,dialogRef:d}));else{const o=this._createInjector(l,d,t),s=t.attachComponentPortal(new Nc(e,l.viewContainerRef,o));d.componentInstance=s.instance}return d.updateSize(l.width,l.height).updatePosition(l.position),d}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!l||!l.get(Cn,null,i.XFs.Optional))&&d.push({provide:Cn,useValue:{value:e.direction,change:(0,$e.of)()}}),i.zs3.create({parent:l||this._injector,providers:d})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,l)=>{r?l.setAttribute("aria-hidden",r):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),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--){let l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n}),n})(),Ji=(()=>{class n extends _w{constructor(e,t,r,l,d,o,s,c){super(e,t,l,o,s,d,Fi,hu,Sn,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zr),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG($_,8),i.LFG(pm),i.LFG(n,12),i.LFG(d0),i.LFG(Bn,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),GT=0,En=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+GT++}ngOnInit(){this._dialogRef||(this._dialogRef=function bw(n,a){let e=n.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi,8),i.Y36(i.SBq),i.Y36(Ji))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),ji=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),pp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Ji,J_],imports:[[zc,Tl,ht],ht]}),n})();var fp=x(6114);let ka=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(rt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(o=>{o.idpFilter&&(this.filterShortname=String(o.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),r=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(r.prompt="consent"),sessionStorage.getItem("mfa_route")&&(r.acr_values="https://refeds.org/profile/mfa",r.prompt="login",r.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:r}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,jt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(o=>{const s=o.split("=");d[s[0]]=s[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,jt.h)(e=>e instanceof At)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}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}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(e=>(localStorage.setItem("refresh_token",e.refresh_token),!0),()=>!1)}verifyAuthentication(e,t){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(r=>!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(zt),i.LFG(Ji),i.LFG(nr),i.LFG(fp.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function is(n){return!!n&&(n instanceof Ri.y||"function"==typeof n.lift&&"function"==typeof n.subscribe)}var Aw=x(7830);function fm(...n){if(1===n.length){const a=n[0];if((0,Ff.k)(a))return mp(a,null);if((0,Aw.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return mp(e.map(t=>a[t]),e)}}if("function"==typeof n[n.length-1]){const a=n.pop();return mp(n=1===n.length&&(0,Ff.k)(n[0])?n[0]:n,null).pipe((0,ut.U)(e=>a(...e)))}return mp(n,null)}function mp(n,a){return new Ri.y(e=>{const t=n.length;if(0===t)return void e.complete();const r=new Array(t);let l=0,d=0;for(let o=0;o{c||(c=!0,d++),r[o]=u},error:u=>e.error(u),complete:()=>{l++,(l===t||!c)&&(d===t&&e.next(a?a.reduce((u,h,f)=>(u[h]=r[f],u),{}):r),e.complete())}}))}})}const Mw=new class Q_ extends qf.v{}(class yw extends jf.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var mm=x(9312);class mu extends Sr.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(mu.dispatch,this.delay,new Cw(a,this.destination)))}_next(a){this.scheduleMessage(mm.P.createNext(a))}_error(a){this.scheduleMessage(mm.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(mm.P.createComplete()),this.unsubscribe()}}class Cw{constructor(a,e){this.notification=a,this.destination=e}}var X_=x(5283);class vw extends He.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new K_(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,l=t.length;let d;if(this.closed)throw new Ad.N;if(this.isStopped||this.hasError?d=re.w.EMPTY:(this.observers.push(a),d=new X_.W(this,a)),r&&a.add(a=new mu(a,r)),e)for(let o=0;oe&&(d=Math.max(d,l-e)),d>0&&r.splice(0,d),r}}class K_{constructor(a,e){this.time=a,this.value=e}}function eb(n,a,e){let t;return t=n&&"object"==typeof n?n:{bufferSize:n,windowTime:a,refCount:!1,scheduler:e},r=>r.lift(function gm({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let r,d,l=0,o=!1,s=!1;return function(u){l++,(!r||o)&&(o=!1,r=new vw(n,a,t),d=u.subscribe({next(f){r.next(f)},error(f){o=!0,r.error(f)},complete(){s=!0,d=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{l--,h.unsubscribe(),d&&!s&&e&&0===l&&(d.unsubscribe(),d=void 0,r=void 0)})}}(t))}class gu{}let _m=(()=>{class n extends gu{getTranslation(e){return(0,$e.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class gp{}let tb=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function _p(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,d,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in d=Object.create(null),n){if(!_p(n[l],a[l]))return!1;d[l]=!0}for(l in a)if(!(l in d)&&void 0!==a[l])return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{_u(a[t])?t in n?e[t]=ib(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class bu{}let nb=(()=>{class n extends bu{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(),!Vo(e)||!Vo(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,l)=>{let d=this.getValue(t,l);return Vo(d)?d:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class bp{}let rb=(()=>{class n extends bp{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ab{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const bm=new i.OlP("USE_STORE"),Am=new i.OlP("USE_DEFAULT_LANG"),ym=new i.OlP("DEFAULT_LANGUAGE"),Mm=new i.OlP("USE_EXTEND");let li=(()=>{class n{constructor(e,t,r,l,d,o=!0,s=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=o,this.isolate=s,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}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);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Zt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,$e.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,Zt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,$e.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||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(eb(1),(0,Zt.q)(1));return this.loadingTranslations=t.pipe((0,ut.U)(r=>this.compiler.compileTranslations(r,e)),eb(1),(0,Zt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},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]?ib(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 l;if(t instanceof Array){let d={},o=!1;for(let s of t)d[s]=this.getParsedResult(e,s,r),is(d[s])&&(o=!0);return o?fm(t.map(c=>is(d[c])?d[c]:(0,$e.of)(d[c]))).pipe((0,ut.U)(c=>{let u={};return c.forEach((h,f)=>{u[t[f]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),void 0===l&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),void 0===l){let d={key:t,translateService:this};void 0!==r&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return void 0!==l?l:t}get(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,vs.b)(r=>is(r=this.getParsedResult(r,e,t))?r:(0,$e.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return is(r)?r:(0,$e.of)(r)}}getStreamOnTranslationChange(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');return Ms(ma(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Ui.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,$e.of)(l)})))}stream(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');return Ms(ma(()=>this.get(e,t)),this.onLangChange.pipe((0,Ui.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return is(l)?l:(0,$e.of)(l)})))}instant(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(is(r)){if(e instanceof Array){let l={};return e.forEach((d,o)=>{l[e[o]]=e[o]}),l}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("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)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 n.\u0275fac=function(e){return new(e||n)(i.LFG(ab),i.LFG(gu),i.LFG(bp),i.LFG(bu),i.LFG(gp),i.LFG(Am),i.LFG(bm),i.LFG(Mm),i.LFG(ym))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),lt=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);is(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(_p(e,this.lastKey)&&_p(t,this.lastParams))return this.value;let r;if(Vo(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch(d){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(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ap=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:gu,useClass:_m},e.compiler||{provide:bp,useClass:rb},e.parser||{provide:bu,useClass:nb},e.missingTranslationHandler||{provide:gp,useClass:tb},ab,{provide:bm,useValue:e.isolate},{provide:Am,useValue:e.useDefaultLang},{provide:Mm,useValue:e.extend},{provide:ym,useValue:e.defaultLanguage},li]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:gu,useClass:_m},e.compiler||{provide:bp,useClass:rb},e.parser||{provide:bu,useClass:nb},e.missingTranslationHandler||{provide:gp,useClass:tb},{provide:bm,useValue:e.isolate},{provide:Am,useValue:e.useDefaultLang},{provide:Mm,useValue:e.extend},{provide:ym,useValue:e.defaultLanguage},li]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),sb=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi))},n.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[fn],pipes:[lt],styles:[""]}),n})();const xw=["mat-button",""],Sw=["*"],Cm=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ob=Bo(ts(na(class{constructor(n){this._elementRef=n}})));let Pt=(()=>{class n extends ob{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 l of Cm)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Rr),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,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&&i.Gf(Gn,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:xw,ngContentSelectors:Sw,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&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Gn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),ns=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,ht],ht]}),n})();const vm=["connectionContainer"],Ew=["inputContainer"],lb=["label"];function Dw(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15),i._UZ(3,"div",16),i._UZ(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i.qZA(),i.BQk())}function cb(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Hw(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function db(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function JT(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Lw(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.YNc(2,Hw,4,1,"ng-container",12),i.YNc(3,db,1,0,"ng-content",12),i.YNc(4,JT,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.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),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Au(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function kw(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Xc(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function yu(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function Pw(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,yu,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const QT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ub=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Rw=0;const hb=new i.OlP("MatError");let Fl=(()=>{class n{constructor(e,t){this.id="mat-error-"+Rw++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:hb,useExisting:n}])]}),n})();const Ow={transitionMessages:wi("transitionMessages",[Nt("enter",Re({opacity:1,transform:"translateY(0%)"})),Ht("void => enter",[Re({opacity:0,transform:"translateY(-5px)"}),Ct("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Kc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),Mu=0;const fb=new i.OlP("MatHint");let mb=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+Mu++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:fb,useExisting:n}])]}),n})(),rs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Iw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const Bw=new i.OlP("MatPrefix"),yp=new i.OlP("MatSuffix");let gb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:yp,useExisting:n}])]}),n})(),Nw=0;const ed=Bo(class{constructor(n){this._elementRef=n}},"primary"),bb=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),as=new i.OlP("MatFormField");let mn=(()=>{class n extends ed{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Nw++,this._labelId="mat-form-field-label-"+Nw++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==s,this.appearance=l&&l.appearance?l.appearance:"legacy",this._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=je(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(_i(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(tt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Si.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(_i(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(_i(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(tt(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,Ta(this._label.nativeElement,"transitionend").pipe((0,Zt.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(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.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",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*V+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ht,Wd],ht]}),n})();function xm(n){return n&&"function"==typeof n.connect}class jw{applyChanges(a,e,t,r,l){a.forEachOperation((d,o,s)=>{let c,u;if(null==d.previousIndex){const h=t(d,o,s);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==s?(e.remove(o),u=3):(c=e.get(o),e.move(c,s),u=2);l&&l({context:null==c?void 0:c.context,operation:u,record:d})})}detach(){}}class tn{constructor(a=!1,e,t=!0){this._multiple=a,this._emitChanges=t,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new He.xQ,e&&e.length&&(a?e.forEach(r=>this._markSelected(r)):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(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...a){this._verifyValueAssignment(a),a.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(a){this.isSelected(a)?this.deselect(a):this.select(a)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(a){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._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){}}let Mp=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const td=new i.OlP("_ViewRepeater");let Ab=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),jl=(()=>{class n extends Ab{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Zn=new i.OlP("NgValueAccessor"),Ww={provide:Zn,useExisting:(0,i.Gpc)(()=>nn),multi:!0},wu=new i.OlP("CompositionEventMode");let nn=(()=>{class n extends Ab{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Uw(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(wu,8))},n.\u0275dir=i.lG2({type:n,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&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([Ww]),i.qOj]}),n})();function Us(n){return null==n||0===n.length}function Em(n){return null!=n&&"number"==typeof n.length}const gn=new i.OlP("NgValidators"),Gs=new i.OlP("NgAsyncValidators"),Mb=/^(?=.{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 Dn{static min(a){return function Dm(n){return a=>{if(Us(a.value)||Us(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Us(a.value)||Us(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return Lm(a)}static requiredTrue(a){return function wb(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function Cb(n){return Us(n.value)||Mb.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function id(n){return a=>Us(a.value)||!Em(a.value)?null:a.value.lengthEm(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function wp(n){if(!n)return Ir;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(Us(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 vu(a)}static composeAsync(a){return Eb(a)}}function Lm(n){return Us(n.value)?{required:!0}:null}function Ir(n){return null}function Tb(n){return null!=n}function Cu(n){const a=(0,i.QGY)(n)?(0,dn.D)(n):n;return(0,i.CqO)(a),a}function nd(n){let a={};return n.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function xb(n,a){return a.map(e=>e(n))}function Sb(n){return n.map(a=>function Gw(n){return!n.validate}(a)?a:e=>a.validate(e))}function vu(n){if(!n)return null;const a=n.filter(Tb);return 0==a.length?null:function(e){return nd(xb(e,a))}}function rd(n){return null!=n?vu(Sb(n)):null}function Eb(n){if(!n)return null;const a=n.filter(Tb);return 0==a.length?null:function(e){return fm(xb(e,a).map(Cu)).pipe((0,ut.U)(nd))}}function km(n){return null!=n?Eb(Sb(n)):null}function Pm(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function Rm(n){return n._rawValidators}function Cp(n){return n._rawAsyncValidators}function vp(n){return n?Array.isArray(n)?n:[n]:[]}function Tp(n,a){return Array.isArray(n)?n.includes(a):n===a}function Db(n,a){const e=vp(a);return vp(n).forEach(r=>{Tp(e,r)||e.push(r)}),e}function Zw(n,a){return vp(a).filter(e=>!Tp(n,e))}class xp{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=rd(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=km(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 Br extends xp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $n extends xp{get formDirective(){return null}get path(){return null}}class Sp{constructor(a){this._cd=a}is(a){var e,t,r;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===r?void 0:r[a])}}let _n=(()=>{class n extends Sp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Br,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.qOj]}),n})(),Ep=(()=>{class n extends Sp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($n,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[i.qOj]}),n})();function Hp(n,a){return[...a.path,n]}function Lp(n,a){Nm(n,a),a.valueAccessor.writeValue(n.value),function eC(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Pp(n,a)})}(n,a),function Rb(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function tC(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Pp(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function Bm(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function zo(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),xu(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function kp(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Nm(n,a){const e=Rm(n);null!==a.validator?n.setValidators(Pm(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=Cp(n);null!==a.asyncValidator?n.setAsyncValidators(Pm(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();kp(a._rawValidators,r),kp(a._rawAsyncValidators,r)}function xu(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=Rm(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=Cp(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return kp(a._rawValidators,t),kp(a._rawAsyncValidators,t),e}function Pp(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Vm(n,a){Nm(n,a)}function Op(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function zm(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function sd(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===nn?e=l:function iC(n){return Object.getPrototypeOf(n.constructor)===jl}(l)?t=l:r=l}),r||t||e||null}function Ip(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}const ql="VALID",Fm="INVALID",od="PENDING",Eu="DISABLED";function Bp(n){return(Vp(n)?n.validators:n)||null}function Bb(n){return Array.isArray(n)?rd(n):n||null}function Np(n,a){return(Vp(a)?a.asyncValidators:n)||null}function jm(n){return Array.isArray(n)?km(n):n||null}function Vp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const qm=n=>n instanceof Cr,Du=n=>n instanceof Fp,Nb=n=>n instanceof nC;function Ym(n){return qm(n)?n.value:n.getRawValue()}function Wm(n,a){const e=Du(n),t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[a])throw new i.vHH(1001,"")}function Um(n,a){Du(n),n._forEachChild((t,r)=>{if(void 0===a[r])throw new i.vHH(1002,"")})}class zp{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=Bb(this._rawValidators),this._composedAsyncValidatorFn=jm(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===ql}get invalid(){return this.status===Fm}get pending(){return this.status==od}get disabled(){return this.status===Eu}get enabled(){return this.status!==Eu}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=Bb(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=jm(a)}addValidators(a){this.setValidators(Db(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(Db(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Zw(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Zw(a,this._rawAsyncValidators))}hasValidator(a){return Tp(this._rawValidators,a)}hasAsyncValidator(a){return Tp(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=od,!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=Eu,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=ql,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},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}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ql||this.status===od)&&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()?Eu:ql}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=od,this._hasOwnPendingAsyncValidator=!0;const e=Cu(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){return function Ib(n,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=n;return a.forEach(r=>{t=Du(t)?t.controls.hasOwnProperty(r)?t.controls[r]:null:Nb(t)&&t.at(r)||null}),t}(this,a,".")}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 i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Eu:this.errors?Fm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(od)?od:this._anyControlsHaveStatus(Fm)?Fm:ql}_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)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Vp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Cr extends zp{constructor(a=null,e,t){super(Bp(e),Np(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}),Vp(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(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){Ip(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Ip(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){this._isBoxedValue(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}}class Fp extends zp{constructor(a,e,t){super(Bp(e),Np(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={}){Um(this,a),Object.keys(a).forEach(t=>{Wm(this,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=>{this.controls[t]&&this.controls[t].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]=Ym(e),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 of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),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}}class nC extends zp{constructor(a,e,t){super(Bp(e),Np(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[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={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){Um(this,a),a.forEach((t,r)=>{Wm(this,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=>Ym(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_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)}}const Vb={provide:$n,useExisting:(0,i.Gpc)(()=>ld)},jp=(()=>Promise.resolve(null))();let ld=(()=>{class n extends $n{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new Fp({},rd(e),km(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){jp.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Lp(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){jp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){jp.then(()=>{const t=this._findContainer(e.path),r=new Fp({});Vm(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){jp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){jp.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,zm(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Vb]),i.qOj]}),n})();const sx={provide:Br,useExisting:(0,i.Gpc)(()=>ur)},qp=(()=>Promise.resolve(null))();let ur=(()=>{class n extends Br{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new Cr,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=sd(0,l)}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),Op(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(){Lp(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){qp.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=""===t||t&&"false"!==t;qp.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?Hp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($n,9),i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([sx]),i.qOj,i.TTD]}),n})(),Yp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const aC={provide:Zn,useExisting:(0,i.Gpc)(()=>Wp),multi:!0};let Wp=(()=>{class n extends jl{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t.onChange(l.target.value)})("blur",function(){return t.onTouched()})},features:[i._Bn([aC]),i.qOj]}),n})(),Zm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Up=new i.OlP("NgModelWithFormControlWarning"),ox={provide:Br,useExisting:(0,i.Gpc)(()=>ss)};let ss=(()=>{class n extends Br{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=sd(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&zo(t,this,!1),Lp(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Op(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&zo(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 n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([ox]),i.qOj,i.TTD]}),n})();const lx={provide:$n,useExisting:(0,i.Gpc)(()=>Fo)};let Fo=(()=>{class n extends $n{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 i.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&&(xu(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 Lp(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){zo(e.control||null,e,!1),Ip(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,zm(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&&(zo(t||null,e),qm(r)&&(Lp(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Vm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Rp(n,a){return xu(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Nm(this.form,this),this._oldForm&&xu(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([lx]),i.qOj,i.TTD]}),n})();const lC={provide:Br,useExisting:(0,i.Gpc)(()=>Jn)};let Jn=(()=>{class n extends Br{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=sd(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Op(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 Hp(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36($n,13),i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([lC]),i.qOj,i.TTD]}),n})(),Yl=(()=>{class n{constructor(){this._validator=Ir}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):Ir,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const fC={provide:gn,useExisting:(0,i.Gpc)(()=>Nr),multi:!0};let Nr=(()=>{class n extends Yl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function t1(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>Lm}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([fC]),i.qOj]}),n})(),bC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Zm]]}),n})(),Jp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bC]}),n})(),dd=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Up,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bC]}),n})(),Qb=(()=>{class n{group(e,t=null){const r=this._reduceControls(e);let o,l=null,d=null;return null!=t&&(function hx(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(t)?(l=null!=t.validators?t.validators:null,d=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,d=null!=t.asyncValidator?t.asyncValidator:null)),new Fp(r,{asyncValidators:d,updateOn:o,validators:l})}control(e,t,r){return new Cr(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new nC(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return qm(e)||Du(e)||Nb(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:dd}),n})();const AC=["trigger"],yC=["panel"];function fx(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function mx(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function gx(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function _x(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,mx,2,1,"span",10),i.YNc(2,gx,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function bx(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.TgZ(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){return i.CHM(e),i.oxw()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)}),i.Hsn(3,1),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const MC=[[["mat-select-trigger"]],"*"],Qp=["mat-select-trigger","*"],Xb={transformPanelWrap:wi("transformPanelWrap",[Ht("* => void",yr("@transformPanel",[Jg()],{optional:!0}))]),transformPanel:wi("transformPanel",[Nt("void",Re({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Nt("showing",Re({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Nt("showing-multiple",Re({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ht("void => *",Ct("120ms cubic-bezier(0, 0, 0.2, 1)")),Ht("* => void",Ct("100ms 25ms linear",Re({opacity:0})))])};let o1=0;const vC=new i.OlP("mat-select-scroll-strategy"),Mx=new i.OlP("MAT_SELECT_CONFIG"),wx={provide:vC,deps:[Zr],useFactory:function yx(n){return()=>n.scrollStrategies.reposition()}};class Kb{constructor(a,e){this.source=a,this.value=e}}const TC=na(Nl(ts(op(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r}})))),xC=new i.OlP("MatSelectTrigger");let SC=(()=>{class n extends TC{constructor(e,t,r,l,d,o,s,c,u,h,f,b,V,ee){var he,Oe,gt;super(d,l,s,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=o,this._parentFormField=u,this._liveAnnouncer=V,this._defaultOptions=ee,this._panelOpen=!1,this._compareWith=(dt,Kt)=>dt===Kt,this._uid="mat-select-"+o1++,this._triggerAriaLabelledBy=null,this._destroy=new He.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+o1++,this._panelDoneAnimatingStream=new He.xQ,this._overlayPanelClass=(null===(he=this._defaultOptions)||void 0===he?void 0:he.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(gt=null===(Oe=this._defaultOptions)||void 0===Oe?void 0:Oe.disableOptionCentering)&&void 0!==gt&>,this.ariaLabel="",this.optionSelectionChanges=ma(()=>{const dt=this.options;return dt?dt.changes.pipe(_i(dt),(0,Ui.w)(()=>(0,Si.T)(...dt.map(Kt=>Kt.onSelectionChange)))):this._ngZone.onStable.pipe((0,Zt.q)(1),(0,Ui.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,jt.h)(dt=>dt),(0,ut.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,jt.h)(dt=>!dt),(0,ut.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ee?void 0:ee.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ee.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||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,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Dn.required))&&void 0!==l&&l}set required(e){this._required=je(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=je(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=oi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new tn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Rh(),tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(tt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(_i(null),tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,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,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!vn(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const o=this.selected;d.onKeydown(e);const s=this.selected;s&&o!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||vn(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const o=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(o?s.select():s.deselect())})}else{const o=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&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,Zt.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._selectValue(t)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(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(l){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new Vg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(tt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(tt(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,Si.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(tt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Si.T)(...this.options.map(t=>t._stateChanges)).pipe(tt(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){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ja),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(Qc),i.Y36(i.SBq),i.Y36(Cn,8),i.Y36(ld,8),i.Y36(Fo,8),i.Y36(as,8),i.Y36(Br,10),i.$8M("tabindex"),i.Y36(vC),i.Y36(kT),i.Y36(Mx,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(AC,5),i.Gf(yC,5),i.Gf(Rg,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),ku=(()=>{class n extends SC{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 l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(tt(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,Zt.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=hm(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:U_((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 Kb(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const o=0-(e.left+d-(r?l:0)),s=e.right+d-t.width+(r?0:l);o>0?d+=o+8:s>0&&(d-=s+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,o=Math.floor(256/l);let s;return this.disableOptionCentering?0:(s=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-o))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*s-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):o>l?this._adjustPanelDown(o,l,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 l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,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),d=t*e-r;let o;o=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),o+=hm(o,this.options,this.optionGroups);const s=r/2;this._scrollTop=this._calculateOverlayScroll(o,s,d),this._offsetY=this._calculateOverlayOffsetY(o,s,d),this._checkOverlayWithinViewport(d)}_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 n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xC,5),i.Suo(r,La,5),i.Suo(r,up,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.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-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),i.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:[i._Bn([{provide:Kc,useExisting:n},{provide:um,useExisting:n}]),i.qOj],ngContentSelectors:Qp,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&&(i.F$t(MC),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,fx,2,1,"span",3),i.YNc(5,_x,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA(),i.qZA(),i.YNc(8,bx,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.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)}},directives:[Pg,w.RF,w.n9,w.ED,Rg,w.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[Xb.transformPanelWrap,Xb.transformPanel]},changeDetection:0}),n})(),hd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wx],imports:[[w.ez,zc,du,ht],xa,Ws,du,ht]}),n})();const eA=new Set;let pd,tA=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vx}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Kp(n){if(!eA.has(n))try{pd||(pd=document.createElement("style"),pd.setAttribute("type","text/css"),document.head.appendChild(pd)),pd.sheet&&(pd.sheet.insertRule(`@media ${n} {body{ }}`,0),eA.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function vx(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let iA=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Pu(Lc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=Pu(Lc(e)).map(d=>this._registerQuery(d).observable);let l=(0,io.aj)(r);return l=Ms(l.pipe((0,Zt.q)(1)),l.pipe(Ph(1),(0,kh.b)(0))),l.pipe((0,ut.U)(d=>{const o={matches:!1,breakpoints:{}};return d.forEach(({matches:s,query:c})=>{o.matches=o.matches||s,o.breakpoints[c]=s}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Ri.y(d=>{const o=s=>this._zone.run(()=>d.next(s));return t.addListener(o),()=>{t.removeListener(o)}}).pipe(_i(t),(0,ut.U)(({matches:d})=>({query:e,matches:d})),tt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(tA),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Pu(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const HC={tooltipState:wi("state",[Nt("initial, void, hidden",Re({opacity:0,transform:"scale(0)"})),Nt("visible",Re({transform:"scale(1)"})),Ht("* => visible",Ct("200ms cubic-bezier(0, 0, 0.2, 1)",Hl([Re({opacity:0,transform:"scale(0)",offset:0}),Re({opacity:.5,transform:"scale(0.99)",offset:.5}),Re({opacity:1,transform:"scale(1)",offset:1})]))),Ht("* => hidden",Ct("100ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:0})))])},kC="tooltip-panel",nA=$a({passive:!0}),rA=new i.OlP("mat-tooltip-scroll-strategy"),OC={provide:rA,deps:[Zr],useFactory:function RC(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},IC=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function BC(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Sx=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,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.xQ,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(tt(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=je(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=oi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=oi(e)}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(tt(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,nA)}),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 Nc(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.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(tt(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}-${kC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(tt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(tt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!vn(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),l.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),l.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:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_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:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Zt.q)(1),tt(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:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const o=this._overlayRef;if(o){const s=`${this._cssClassPrefix}-${kC}-`;o.removePanelClass(s+this._currentPosition),o.addPanelClass(s+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",()=>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,nA)})}_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 n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),vr=(()=>{class n extends Sx{constructor(e,t,r,l,d,o,s,c,u,h,f,b){super(e,t,r,l,d,o,s,c,u,h,f,b),this._tooltipComponent=Dx}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(xi),i.Y36(Bh),i.Y36(Rr),i.Y36(rA),i.Y36(Cn,8),i.Y36(IC,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),Ex=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new He.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n}),n})(),Dx=(()=>{class n extends Ex{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(iA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&i.Udp("zoom","visible"===t._visibility?1:null)},features:[i.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(l){return t._animationDone(l)}),i.ALo(1,"async"),i._uU(2),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(1,5,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),i.xp6(2),i.Oqu(t.message)}},directives:[w.mk],pipes:[w.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[HC.tooltipState]},changeDetection:0}),n})(),Ru=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[OC],imports:[[w0,w.ez,zc,ht],ht,xa]}),n})();function NC(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function Hx(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16),i.TgZ(1,"mat-select",17),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw(2)._changePageSize(r.value)}),i.YNc(2,NC,2,2,"mat-option",18),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function Lx(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function kx(n,a){if(1&n&&(i.TgZ(0,"div",12),i.TgZ(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,Hx,3,6,"mat-form-field",14),i.YNc(4,Lx,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function Px(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(e),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function p(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let m=(()=>{class n{constructor(){this.changes=new He.xQ,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 l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _={provide:m,deps:[[new i.FiY,new i.tp0,m]],useFactory:function g(n){return n||new m}},D=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),k=ts(am(class{}));let P=(()=>{class n extends k{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.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:o,showFirstLastButtons:s}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=o&&(this._hidePageSize=o),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(oi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=oi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(oi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>oi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=je(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=je(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 n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),n})(),F=(()=>{class n extends P{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(m),i.Y36(i.sBO),i.Y36(D,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.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","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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,kx,5,3,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,Px,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA(),i.qZA(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA(),i.qZA(),i.YNc(13,p,3,5,"button",11),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},directives:[mn,ku,La,Pt,w.O5,w.sg,vr],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),W=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[_],imports:[[w.ez,ns,hd,Ru,ht]]}),n})();var te=x(943);const se=["mat-menu-item",""];function pe(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const ve=["*"];function Ve(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)})("click",function(){return i.CHM(e),i.oxw().closed.emit("click")})("@transformMenu.start",function(r){return i.CHM(e),i.oxw()._onAnimationStart(r)})("@transformMenu.done",function(r){return i.CHM(e),i.oxw()._onAnimationDone(r)}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ye={transformMenu:wi("transformMenu",[Nt("void",Re({opacity:0,transform:"scale(0.8)"})),Ht("void => enter",Ct("120ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:1,transform:"scale(1)"}))),Ht("* => void",Ct("100ms 25ms linear",Re({opacity:0})))]),fadeInItems:wi("fadeInItems",[Nt("showing",Re({opacity:1})),Ht("void => *",[Re({opacity:0}),Ct("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ct=new i.OlP("MatMenuContent"),Ou=new i.OlP("MAT_MENU_PANEL"),c1=na(ts(class{}));let Gl=(()=>{class n extends c1{constructor(e,t,r,l,d){var o;super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.xQ,this._focused=new He.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(o=null==l?void 0:l.addItem)||void 0===o||o.call(l,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 l=0;l{class n{constructor(e,t,r){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=re.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+u1++}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=je(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(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 jc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(_i(this._directDescendantItems),(0,Ui.w)(e=>(0,Si.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(_i(this._directDescendantItems),(0,Ui.w)(t=>(0,Si.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:vn(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.lazyContent?this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===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}_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(_i(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ef))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ct,5),i.Suo(r,Gl,5),i.Suo(r,Gl,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.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"}}),n})(),Rx=(()=>{class n extends Zl{constructor(e,t,r){super(e,t,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ef))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Ou,useExisting:n}]),i.qOj],ngContentSelectors:ve,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&&(i.F$t(),i.YNc(0,Ve,3,6,"ng-template"))},directives:[w.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Ye.transformMenu,Ye.fadeInItems]},changeDetection:0}),n})();const Ox=new i.OlP("mat-menu-scroll-strategy"),YD={provide:Ox,deps:[Zr],useFactory:function qD(n){return()=>n.scrollStrategies.reposition()}},Bx=$a({passive:!0});let WD=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=o,this._dir=s,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=re.w.EMPTY,this._hoverSubscription=re.w.EMPTY,this._menuCloseSubscription=re.w.EMPTY,this._handleTouchStart=u=>{Fh(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=d instanceof Zl?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Bx),o&&(o._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._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Bx),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),r=t.positionStrategy;this._setPosition(r),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Zl&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(tt(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.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(){var e;null===(e=this._overlayRef)||void 0===e||e.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 Zl?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,jt.h)(r=>"void"===r.toState),(0,Zt.q)(1),tt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Hh({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,d]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[l,d],[c,u]=[t,r],h=0;this.triggersSubmenu()?(u=t="before"===this.menu.xPosition?"start":"end",r=c="end"===t?"start":"end",h="bottom"===l?8:-8):this.menu.overlapTrigger||(o="top"===l?"bottom":"top",s="top"===d?"bottom":"top"),e.withPositions([{originX:t,originY:o,overlayX:c,overlayY:l,offsetY:h},{originX:r,originY:o,overlayX:u,overlayY:l,offsetY:h},{originX:t,originY:s,overlayX:c,overlayY:d,offsetY:-h},{originX:r,originY:s,overlayX:u,overlayY:d,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,$e.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,jt.h)(d=>d!==this._menuItemInstance),(0,jt.h)(()=>this._menuOpen)):(0,$e.of)();return(0,Si.T)(e,r,l,t)}_handleMousedown(e){Ud(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,jt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,te.g)(0,yh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Zl&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Zt.q)(1),(0,te.g)(0,yh),tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new vl(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(Ox),i.Y36(Ou,8),i.Y36(Gl,10),i.Y36(Cn,8),i.Y36(Rr))},n.\u0275dir=i.lG2({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("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"}}),n})(),Nx=(()=>{class n extends WD{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),h1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[YD],imports:[[w.ez,ht,ii,zc],xa,ht]}),n})();var oA=x(1737),UD=x(2474);const GD=["*"];let lA;function p1(n){var a;return(null===(a=function ZD(){if(void 0===lA&&(lA=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(lA=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return lA}())||void 0===a?void 0:a.createHTML(n))||n}function Vx(n){return Error(`Unable to find icon with the name "${n}"`)}function zx(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Fx(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Iu{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let f1=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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",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,l){return this._addSvgIconConfig(e,t,new Iu(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw Fx(r);const o=p1(d);return this._addSvgIconConfig(e,t,new Iu("",o,l))}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 Iu(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Fx(t);const d=p1(l);return this._addSvgIconSetConfig(e,new Iu("",d,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(i.q3G.RESOURCE_URL,e);if(!t)throw zx(e);const r=this._cachedIconsByUrl.get(t);return r?(0,$e.of)(cA(r)):this._loadSvgIconFromConfig(new Iu(e,null)).pipe((0,I.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ut.U)(l=>cA(l)))}getNamedSvgIcon(e,t=""){const r=jx(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,oA._)(Vx(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,$e.of)(cA(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ut.U)(t=>cA(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,$e.of)(r):fm(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,wn.K)(o=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${o.message}`;return this._errorHandler.handleError(new Error(c)),(0,$e.of)(null)})))).pipe((0,ut.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Vx(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),o=this._extractSvgIconFromSet(d,e,l.options);if(o)return o}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,I.b)(t=>e.svgText=t),(0,ut.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,$e.of)(null):this._fetchIcon(e).pipe((0,I.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const o=this._svgElementFromString(p1(""));return o.appendChild(d),this._setSvgAttributes(o,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(p1("")),r=e.attributes;for(let l=0;lp1(u)),ye(()=>this._inProgressUrlFetches.delete(o)),(0,UD.B)());return this._inProgressUrlFetches.set(o,c),c}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(jx(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:""}}}),qx=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],t2=qx.map(n=>`[${n}]`).join(", "),n2=/^url\(['"]?#(.*?)['"]?\)$/;let bn=(()=>{class n extends XD{constructor(e,t,r,l,d){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._currentIconFetch=re.w.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=je(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=e.querySelectorAll("style");for(let l=0;l{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(t2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const o=t[l],s=o.getAttribute(d),c=s?s.match(n2):null;if(c){let u=r.get(o);u||(u=[],r.set(o,u)),u.push({name:d,value:c[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,Zt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(f1),i.$8M("aria-hidden"),i.Y36(KD),i.Y36(i.qLn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.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),i.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:[i.qOj],ngContentSelectors:GD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),n})(),$l=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})(),Yx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[W,h1,$l,ns,Ap,w.ez]]}),n})();var r2=x(655),a2=x(9441);const tf=[5,10,25,100];function Pi(){const n=new uu;return n.disableClose=!0,n.autoFocus=!1,n}function Bu(n){return"virt"===n.namespace.split(":")[4]}const m2=new Intl.Collator("cs",{numeric:!0});function m1(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,d)=>{const o=e(l,t),s=e(d,t);return m2.compare(o,s)*("asc"===r?1:-1)}):n}function g1(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function nf(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};a.forEach(o=>{var s;d[o]=(null!==(s=e(l,o))&&void 0!==s?s:"").split('"').join("''").trim()}),t.push(d)}),t}function rf(n,a="csv",e="export"){if("csv"===a){const t=(s,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(s=>r.map(c=>JSON.stringify(s[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),o=new Blob([d],{type:"text/csv"});(0,a2.saveAs)(o,`${e}.${a}`)}}const Ux="GUI_CONFIG.PREF_PAGE_SIZE.";let _2=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b2=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Ux+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(Ux+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_2))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),A2=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"button",1),i.TgZ(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA(),i.qZA(),i.TgZ(4,"mat-menu",null,2),i.TgZ(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-menu",null,4),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[Pt,Nx,bn,Rx,Gl],pipes:[lt],styles:[""]}),n})();function y2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}function M2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}const w2=["*"];let os=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=tf,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}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)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(b2))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(F,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:w2,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,y2,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1),i.TgZ(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,M2,1,0,"perun-web-apps-table-options",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},directives:[F,w.O5,A2],styles:[""]}),n})();class C2{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 VC=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Pi();this.dialog.open(sb,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ka),i.LFG(zt),i.LFG(ys),i.LFG(Wi),i.LFG(Ji),i.LFG(rt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gx=(()=>{class n{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/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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(f1),i.LFG(fr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),v2=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi))},n.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[En,fn,ji,Pt],pipes:[lt],styles:[""]}),n})(),dA=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tr=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.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,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){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:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(li))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zx=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=o}intercept(e,t){const r=this.store.get("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.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const o=Pi();o.width="450px",this.dialogRefSessionExpiration=this.dialog.open(v2,o),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ye(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}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()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,I.b)(o=>{o instanceof M.Zn&&d&&this.initAuthService.loadPrincipal()},o=>{const s=this.formatErrors(o,e);return void 0===s?(0,oA._)(o):l?void this.notificator.showRPCError(s):(0,oA._)(s)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ka),i.LFG(dA),i.LFG(Tr),i.LFG(zt),i.LFG(Ji),i.LFG(VC))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$x=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),T2=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new M.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,wn.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,wn.K)(o=>this.formatErrors(o,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:o}).pipe((0,wn.K)(s=>this.formatErrors(s,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,wn.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,oA._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Tr),i.LFG(ka),i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,o,s,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?o.data.length:o.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),o.sortData(o.filteredData,s).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(o=>o.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const o of l){const s=o.split("=");"lang"===s[0]&&(d=s[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nr),i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jC=(()=>{class n{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const r of e)if(r.newApps.admin===t||r.newApps.profile===t||r.newApps.pwdReset===t)return r;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),d=l[0]+"//"+l[2],o=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let s;if(o.newApps[e])s=o.newApps[e],"pwdReset"===e&&(s+=`?login-namespace=${t}`);else switch(s=o.oldGuiDomain+"/fed",e){case"admin":s+="/gui/";break;case"profile":s+="/profile/";break;case"pwdReset":s+=`/pwd-reset/?login-namespace=${t}`}return s}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();wi("openClose",[Nt("open",Re({overflow:"hidden"})),Nt("closed",Re({height:"0px",overflow:"hidden"})),Ht("open <=> closed",[Ct(".3s ease-in")])]);const x2=wi("flyInOut",[Ht(":enter",[Re({transform:"translateX(100%)"}),Ct(".25s")]),Ht(":leave",[Ct(".5s",Re({transform:"translateX(100%)"}))])]);wi("rollInOut",[Ht(":enter",[Re({height:"0px"}),Ct(".25s")]),Ht(":leave",[Ct(".25s",Re({height:"0px"}))])]),wi("routeAnimations",[Ht("* => *",[Re({position:"relative"}),yr(":enter",[Re({width:"100%",opacity:0})],{optional:!0}),yr(":leave",[Re({position:"absolute",width:"100%",opacity:1}),Ct("0.15s",Re({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),yr(":enter",[Re({position:"absolute",width:"100%",opacity:0}),Ct("0.15s",Re({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),wi("tagsOpenClose",[Nt("open",Re({})),Nt("closed",Re({width:"0px",height:"0px"})),Ht("open <=> closed",[Ct(".3s ease-in")])]),wi("switchAnimations",[Ht("true => false",[yr(":enter, :leave",Re({})),qh([yr(":enter",[Re({transform:"translateX(-100%)"}),Ct("1s ease-in-out",Re({transform:"translateX(0%)"}))],{optional:!0}),yr(":leave",[Re({transform:"translateX(0%)",position:"absolute"}),Ct("1s ease-in-out",Re({transform:"translateX(100%)"}))],{optional:!0})])]),Ht("false => true",[yr(":enter, :leave",Re({})),qh([yr(":enter",[Re({transform:"translateX(100%)"}),Ct("1s ease-in-out",Re({transform:"translateX(0%)"}))],{optional:!0}),yr(":leave",[Re({transform:"translateX(0%)",position:"absolute"}),Ct("1s ease-in-out",Re({transform:"translateX(-100%)"}))],{optional:!0})])])]),wi("slideInOutLeft",[Ht(":enter",[Re({transform:"translateX(-100%)",position:"relative"}),Ct("0.5s ease-in",Re({transform:"translateX(0%)"}))]),Ht(":leave",[Ct("0.5s ease-in",Re({transform:"translateX(-100%)"}))])]),wi("slideInOutRight",[Ht(":enter",[Re({transform:"translateX(100%)",position:"fixed"}),Ct("0.5s ease-in",Re({transform:"translateX(0%)"}))]),Ht(":leave",[Re({transform:"translateX(-100%)",position:"relative"}),Ct("0.5s ease-in",Re({transform:"translateX(100%)"}))])]);let Jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez]]}),n})(),uA=(()=>{class n{transform(e){let r="";return null!==e.titleBefore&&(r+=e.titleBefore+" "),null!==e.firstName&&(r+=e.firstName+" "),null!==e.middleName&&(r+=e.middleName+" "),null!==e.lastName&&(r+=e.lastName+" "),null!==e.titleAfter&&(r+=e.titleAfter+" "),r.endsWith(" ")&&(r=r.substring(0,r.length-1)),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})(),si=(()=>{class n{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.get("custom_labels");if(r)for(const l of r)if(l.label===e)return l[t];return e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li,16),i.Y36(zt,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();class S2{isErrorState(a){return!(!(null==a?void 0:a.invalid)||!(null==a?void 0:a.dirty))}}const E2=(n,a,e,t=500)=>r=>Pc(t).pipe((0,Ui.w)(()=>(e.dontHandleErrorForNext(),n&&"No namespace"!==n?a.checkPasswordStrength(r.value,n):(0,$e.of)(null))),(0,ut.U)(()=>null),(0,wn.K)(l=>{const d=l.error,o={backendError:d.message.substring(d.message.indexOf(":")+1)};return(0,$e.of)(o)})),Qx=$a({passive:!0});let D2=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Mn.E;const t=zi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new He.xQ,d="cdk-text-field-autofilled",o=s=>{"cdk-text-field-autofill-start"!==s.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===s.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",o,Qx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",o,Qx)}}),l}stopMonitoring(e){const t=zi(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 n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hA=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new He.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=oi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=oi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=je(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(()=>{Ta(this._getWindow(),"resize").pipe(Vd(16),tt(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,l=r&&this._hasFocus,d=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const o=e.scrollHeight-4;return e.classList.remove(d),l&&(e.style.marginBottom=t),o}_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 l=this._measureScrollHeight(),d=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(i.R0b),i.Y36(w.K0,8))},n.\u0275dir=i.lG2({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&i.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),n})(),Xx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Rc]]}),n})();const Kx=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),H2=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let L2=0;const k2=op(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let Hn=(()=>{class n extends k2{constructor(e,t,r,l,d,o,s,c,u,h){super(o,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+L2++,this.focused=!1,this.stateChanges=new He.xQ,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(V=>tg().has(V));const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=s||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",V=>{const ee=V.target;!ee.value&&0===ee.selectionStart&&0===ee.selectionEnd&&(ee.setSelectionRange(1,1),ee.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.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=je(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,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Dn.required))&&void 0!==l&&l}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&tg().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=je(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)}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,t;const r=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){H2.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(Br,10),i.Y36(ld,8),i.Y36(Fo,8),i.Y36(Qc),i.Y36(Kx,10),i.Y36(D2),i.Y36(i.R0b),i.Y36(as,8))},n.\u0275dir=i.lG2({type:n,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&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.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),i.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:[i._Bn([{provide:Kc,useExisting:n}]),i.qOj,i.TTD]}),n})(),_1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Qc],imports:[[Xx,Ws,ht],Xx,Ws]}),n})();function P2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.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)),i.uIk("r",e._getCircleRadius())}}function R2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function O2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.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)),i.uIk("r",e._getCircleRadius())}}function I2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const V2=Bo(class{constructor(n){this._elementRef=n}},"primary"),eS=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function z2(){return{diameter:100}}});class Jl extends V2{constructor(a,e,t,r,l,d,o,s){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=re.w.EMPTY,this.mode="determinate";const c=Jl._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,l&&(l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&o&&d&&s&&(this._resizeSubscription=o.change(150).subscribe(()=>{"indeterminate"===this.mode&&s.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=oi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=oi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,oi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=vh(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=Jl._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),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(".","_")}}Jl._diameters=new WeakMap,Jl.\u0275fac=function(a){return new(a||Jl)(i.Y36(i.SBq),i.Y36(xi),i.Y36(w.K0,8),i.Y36(Bn,8),i.Y36(eS),i.Y36(i.sBO),i.Y36(Ja),i.Y36(i.R0b))},Jl.\u0275cmp=i.Xpm({type:Jl,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.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),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.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&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,P2,1,11,"circle",2),i.YNc(3,R2,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[w.RF,w.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});let Ln=(()=>{class n extends Jl{constructor(e,t,r,l,d,o,s,c){super(e,t,r,l,d,o,s,c),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(w.K0,8),i.Y36(Bn,8),i.Y36(eS),i.Y36(i.sBO),i.Y36(Ja),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[i.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(e,t){1&e&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,O2,1,11,"circle",2),i.YNc(3,I2,1,9,"circle",3),i.qZA()),2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===t.mode),i.uIk("viewBox",t._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[w.RF,w.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0}),n})(),b1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht,w.ez],ht]}),n})();function j2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function q2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function Y2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function W2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const U2=["*"];let Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:U2,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&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,j2,2,0,"mat-icon",1),i.YNc(2,q2,2,0,"mat-icon",1),i.YNc(3,Y2,2,0,"mat-icon",1),i.YNc(4,W2,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.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),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},directives:[w.O5,bn],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}"]}),n})();function G2(n,a){1&n&&i._UZ(0,"mat-spinner",12),2&n&&i.Q6J("diameter",18)}function Z2(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1," error "),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function $2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function J2(n,a){if(1&n&&(i.TgZ(0,"mat-error",14),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip()),i.xp6(1),i.Oqu(e.getErrorTooltip())}}function Q2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function X2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let K2=(()=>{class n{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new S2,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const r=e.userAttributes.find(l=>"preferredLanguage"===l.friendlyName);this.language=null!==(t=null==r?void 0:r.value)&&void 0!==t?t:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),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.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Hi),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[i.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["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"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.YNc(4,G2,1,1,"mat-spinner",3),i.TgZ(5,"mat-icon",4),i.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),i._uU(6),i.qZA(),i.YNc(7,Z2,2,2,"mat-icon",5),i.YNc(8,$2,3,3,"mat-error",6),i.YNc(9,J2,2,2,"mat-error",7),i.qZA(),i.TgZ(10,"mat-form-field",8),i.TgZ(11,"mat-label"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i._UZ(14,"input",9),i.TgZ(15,"mat-icon",4),i.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),i._uU(16),i.qZA(),i.YNc(17,Q2,3,3,"mat-error",6),i.YNc(18,X2,3,3,"mat-error",6),i.qZA(),i.TgZ(19,"perun-web-apps-alert",10),i._UZ(20,"div",11),i.qZA(),i.qZA()),2&e&&(i.Q6J("formGroup",t.formGroup),i.xp6(1),i.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),i.xp6(1),i.s9C("placeholder",i.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),i.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),i.xp6(2),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),i.xp6(2),i.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),i.xp6(3),i.Oqu(i.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),i.xp6(2),i.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),i.xp6(2),i.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),i.xp6(2),i.Q6J("innerHTML",t.passwordRequirement,i.oJD))},directives:[Ep,Fo,mn,vr,Hn,nn,_n,Jn,Nr,w.O5,Ln,gb,bn,Fl,rs,Nn],pipes:[lt],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)}"]}),n})();function sH(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function oH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function lH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function cH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"mat-form-field"),i.TgZ(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().subject=r}),i.qZA(),i.YNc(7,oH,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field"),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().message=r}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,lH,3,3,"mat-error",11),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let dH=(()=>{class n{constructor(e,t,r,l,d,o){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var e,t;(null===(t=null===(e=this.data)||void 0===e?void 0:e.error)||void 0===t?void 0:t.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.get("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 l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(li),i.Y36(Tr),i.Y36(cn),i.Y36(Sn),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,sH,1,0,"mat-spinner",1),i.YNc(4,cH,17,13,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[En,w.O5,Ln,fn,mn,rs,Hn,nn,Nr,_n,ur,Fl,ji,Pt],pipes:[lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),uH=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Pi();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(dH,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Ji),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[En,fn,ji,Pt],pipes:[lt],styles:[""]}),n})();const hH=[[["caption"]],[["colgroup"],["col"]]],pH=["caption","colgroup, col"];function YC(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=je(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const af=new i.OlP("CDK_TABLE");let sf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),lf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),pA=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class _H{}const bH=YC(_H);let Ql=(()=>{class n extends bH{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=je(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,sf,5),i.Suo(r,lf,5),i.Suo(r,pA,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class WC{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let UC=(()=>{class n extends WC{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),GC=(()=>{class n extends WC{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class iS{constructor(){this.tasks=[],this.endTasks=[]}}const ZC=new i.OlP("_COALESCED_STYLE_SCHEDULER");let nS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.xQ}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 iS,this._getScheduleObservable().pipe(tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new iS;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,dn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Zt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$C=(()=>{class n{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 A1?e.headerCell.template:this instanceof y1?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class AH extends $C{}const yH=YC(AH);let A1=(()=>{class n extends yH{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class MH extends $C{}const wH=YC(MH);let y1=(()=>{class n extends wH{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),fA=(()=>{class n extends $C{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Xl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),JC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),XC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),mA=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const rS=["top","bottom","left","right"];class CH{constructor(a,e,t,r,l=!0,d=!0,o){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=o,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 l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],d=l.children.length,o=this._getCellWidths(l,r),s=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",V=f?"left":"right";for(const ee of a)for(let he=0;hee[he]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:o.slice(h).map((ee,he)=>t[he+h]?ee:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,d=[],o=[],s=[];for(let u=0,h=0;u{var u,h;for(let f=0;f{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]);rS.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 rS)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 l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const KC=new i.OlP("CDK_SPL");let gA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),_A=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),bA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),AA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),yA=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new He.xQ,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 i.vpe,this.viewChange=new Ki({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=o,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=je(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=je(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(tt(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(),xm(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,l,d)=>this._getEmbeddedViewArgs(r.item,d),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&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Zt.q)(1),tt(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 l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.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((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let o=0;o{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const o=r&&r.has(d)?r.get(d):[];if(o.length){const s=o.shift();return s.dataIndex=t,s}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),MA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=MA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=MA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=MA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,o)=>d||!!o.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],xm(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;xm(this.dataSource)?e=this.dataSource.connect(this):is(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,$e.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(tt(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(o=>this._columnDefsByName.get(o)),l=r.map(o=>o.sticky),d=r.map(o=>o.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Xl.mostRecentCellOutlet&&Xl.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 l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}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 CH(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,$e.of)()).pipe(tt(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 l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&(null==d?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Cn,8),i.Y36(w.K0),i.Y36(xi),i.Y36(td),i.Y36(ZC),i.Y36(Ja),i.Y36(KC,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,mA,5),i.Suo(r,Ql,5),i.Suo(r,fA,5),i.Suo(r,A1,5),i.Suo(r,y1,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(gA,7),i.Gf(_A,7),i.Gf(bA,7),i.Gf(AA,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:af,useExisting:n},{provide:td,useClass:jw},{provide:ZC,useClass:nS},{provide:KC,useValue:null}])],ngContentSelectors:pH,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(hH),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[_A,gA,AA,bA],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function MA(n,a){return n.concat(Array.from(a))}let TH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa]]}),n})();const xH=[[["caption"]],[["colgroup"],["col"]]],SH=["caption","colgroup, col"];let Zs=(()=>{class n extends yA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:td,useClass:jw},{provide:yA,useExisting:n},{provide:af,useExisting:n},{provide:ZC,useClass:nS},{provide:KC,useValue:null}]),i.qOj],ngContentSelectors:SH,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(xH),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[_A,gA,AA,bA],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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),ls=(()=>{class n extends sf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:sf,useExisting:n}]),i.qOj]}),n})(),cs=(()=>{class n extends lf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:lf,useExisting:n}]),i.qOj]}),n})(),ds=(()=>{class n extends Ql{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Ql,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),us=(()=>{class n extends UC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),hs=(()=>{class n extends GC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),$s=(()=>{class n extends A1{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:A1,useExisting:n}]),i.qOj]}),n})(),Js=(()=>{class n extends fA{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:fA,useExisting:n}]),i.qOj]}),n})(),Qs=(()=>{class n extends JC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:JC,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),Xs=(()=>{class n extends XC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:XC,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),wA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[TH,ht],ht]}),n})();class qo extends class NH extends class zw{}{constructor(a=[]){super(),this._renderData=new Ki([]),this._filter=new Ki(""),this._internalPageChanges=new He.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Hc(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,o)=>{let s=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(o,r);const u=typeof s,h=typeof c;u!==h&&("number"===u&&(s+=""),"number"===h&&(c+=""));let f=0;return null!=s&&null!=c?s>c?f=1:s{const r=Object.keys(e).reduce((d,o)=>d+e[o]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new Ki(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,Si.T)(this._sort.sortChange,this._sort.initialized):(0,$e.of)(null),t=this._paginator?(0,Si.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,$e.of)(null),l=(0,io.aj)([this._data,this._filter]).pipe((0,ut.U)(([s])=>this._filterData(s))),d=(0,io.aj)([l,e]).pipe((0,ut.U)(([s])=>this._orderData(s))),o=(0,io.aj)([d,t]).pipe((0,ut.U)(([s])=>this._pageData(s)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=o.subscribe(s=>this._renderData.next(s))}_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}}{}function VH(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function zH(n,a){1&n&&i._UZ(0,"th",15)}function FH(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function jH(n,a){1&n&&i._UZ(0,"tr",17)}function qH(n,a){1&n&&i._UZ(0,"tr",18)}function YH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",4),i.TgZ(2,"p"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"div",5),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"table",6),i.ynx(11,7),i.YNc(12,zH,1,0,"th",8),i.YNc(13,FH,2,1,"td",9),i.BQk(),i.YNc(14,jH,1,0,"tr",10),i.YNc(15,qH,1,0,"tr",11),i.qZA(),i.qZA(),i.TgZ(16,"div",12),i.TgZ(17,"button",13),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.TgZ(21,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(22),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,7,i.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(8,11,i.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(3),i.hij(" ",i.lcZ(19,15,i.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(23,19,i.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let WH=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=l,this.notificator=d,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(o=>this.successMessage=o)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new qo(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(Hi),i.Y36(li),i.Y36(Tr))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div"),i.YNc(5,VH,1,0,"mat-spinner",1),i.YNc(6,YH,25,23,"div",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),i.xp6(3),i.Tol(t.theme),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,Zs,ds,cs,us,ls,hs,$s,Qs,Js,Xs,ji,Pt],pipes:[lt,si],styles:[""]}),n})();class UH{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,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(t){}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let GH=(()=>{class n{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new UH(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ZH=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let ev=(()=>{class n{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new i.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 l=()=>{const d=r.copy();d||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(d)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(l,1))};l()}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 n.\u0275fac=function(e){return new(e||n)(i.Y36(GH),i.Y36(i.R0b),i.Y36(ZH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),n})(),sS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),CA=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.TgZ(3,"textarea",2),i._uU(4),i.qZA(),i.qZA(),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(3),i.Oqu(t.value),i.xp6(3),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),i.xp6(2),i.Q6J("cdkCopyToClipboard",t.value),i.xp6(1),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[En,fn,hA,Hn,ji,Pt,ev],pipes:[lt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),n})(),$H=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"textarea",2),i.NdJ("ngModelChange",function(l){return t.attributeValue=l}),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),i.xp6(4),i.Q6J("ngModel",t.attributeValue),i.xp6(3),i.hij(" ",i.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[En,fn,mn,hA,Hn,nn,_n,ur,ji,Pt],pipes:[lt],styles:[""]}),n})(),JH=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"div"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",2),i._uU(8),i.qZA(),i.qZA(),i.TgZ(9,"div",3),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),i.xp6(4),i.hij(" ",i.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),i.xp6(3),i.hij(" ",t.data.name," "),i.xp6(3),i.hij(" ",i.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[En,fn,ji,Pt],pipes:[lt],styles:[""]}),n})();function QH(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.pendingEmailsMessage)}}function XH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let KH=(()=>{class n{constructor(e,t,r,l,d,o){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=l,this.usersManagerService=d,this.authService=o,this.pendingMails=[],r.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(s=>this.successMessage=s),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(s=>this.pendingEmailsMessageStart=s),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(s=>this.pendingEmailsMessageEnd=s)}ngOnInit(){this.emailControl=new Cr(null,[Dn.required,Dn.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,l,d)=>l===d.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(li),i.Y36(Tr),i.Y36(Hi),i.Y36(ka))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,QH,2,1,"perun-web-apps-alert",2),i.TgZ(6,"mat-form-field",3),i.TgZ(7,"label",3),i._UZ(8,"input",4),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.YNc(11,XH,4,5,"mat-error",5),i.qZA(),i.qZA(),i.TgZ(12,"div",6),i.TgZ(13,"button",7),i.NdJ("click",function(){return t.onCancel()}),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"button",8),i.NdJ("click",function(){return t.onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.pendingMails.length),i.xp6(3),i.s9C("placeholder",i.lcZ(9,12,i.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.emailControl),i.xp6(3),i.Q6J("ngIf",t.emailControl.invalid),i.xp6(3),i.hij(" ",i.lcZ(15,16,i.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!t.emailControl.valid),i.xp6(1),i.hij(" ",i.lcZ(19,20,i.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[En,fn,w.O5,Nn,mn,Hn,nn,Nr,_n,ss,Fl,ji,Pt],pipes:[lt,si],styles:[""]}),n})(),lL=(()=>{class n{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([]),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),i.xp6(4),i.Oqu(i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),i.xp6(4),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[En,fn,Nn,ji,Pt],pipes:[lt],styles:[""]}),n})();function cL(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function dL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"form",5),i.TgZ(1,"div",6),i.TgZ(2,"mat-form-field"),i.TgZ(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i._UZ(6,"input",7),i.TgZ(7,"mat-icon",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.showOldPassword=!r.showOldPassword}),i._uU(8),i.qZA(),i.YNc(9,cL,3,3,"mat-error",9),i.qZA(),i._UZ(10,"perun-web-apps-password-form",10),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("formGroup",e.formGroup),i.xp6(4),i.Oqu(i.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),i.xp6(2),i.Q6J("type",e.showOldPassword?"text":"password"),i.xp6(2),i.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",e.oldPwd.hasError("required")),i.xp6(1),i.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function uL(n,a){1&n&&i._UZ(0,"mat-spinner",11)}function hL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.TgZ(1,"div",13),i.TgZ(2,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().close()}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"button",15),i.NdJ("click",function(){return i.CHM(e),i.oxw().changePassword()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),i.xp6(1),i.hij(" ",i.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let pL=(()=>{class n{constructor(e,t,r,l,d,o,s){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=l,this.apiRequestConfiguration=d,this.notificator=o,this.translate=s,this.showOldPassword=!1,s.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",Dn.required],passwordCtrl:["",Dn.required,[E2(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:C2.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(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(Qb),i.Y36(Hi),i.Y36(dA),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.YNc(4,dL,11,9,"form",2),i.YNc(5,uL,1,0,"mat-spinner",3),i.qZA(),i.YNc(6,hL,8,7,"div",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,fn,w.O5,Yp,Ep,Fo,mn,rs,nn,Hn,_n,Jn,Nr,bn,gb,Fl,K2,Ln,ji,Pt],pipes:[lt],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}"]}),n})();const fL=["input"],mL=function(n){return{enterDuration:n}},gL=["*"],_L=new i.OlP("mat-radio-default-options",{providedIn:"root",factory:function bL(){return{color:"accent"}}});let lS=0;const AL={provide:Zn,useExisting:(0,i.Gpc)(()=>uS),multi:!0};class cS{constructor(a,e){this.source=a,this.value=e}}const dS=new i.OlP("MatRadioGroup");let yL=(()=>{class n{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+lS++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.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=je(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=je(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 cS(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})(),uS=(()=>{class n extends yL{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,hS,5),2&e){let l;i.iGM(l=i.CRH())&&(t._radios=l)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i._Bn([AL,{provide:dS,useExisting:n}]),i.qOj]}),n})();class ML{constructor(a){this._elementRef=a}}const wL=na(Nl(ML));let CL=(()=>{class n extends wL{constructor(e,t,r,l,d,o,s,c){super(t),this._changeDetector=r,this._focusMonitor=l,this._radioDispatcher=d,this._providerOverride=s,this._uniqueId="mat-radio-"+ ++lS,this.id=this._uniqueId,this.change=new i.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===o,c&&(this.tabIndex=oi(c,0)),this._removeUniqueSelectionListener=d.listen((u,h)=>{u!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=je(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(je(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=je(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)}ngAfterViewInit(){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 cS(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())}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(fL,5),2&e){let r;i.iGM(r=i.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:[i.qOj]}),n})(),hS=(()=>{class n extends CL{constructor(e,t,r,l,d,o,s,c){super(e,t,r,l,d,o,s,c)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dS,8),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Rr),i.Y36(Mp),i.Y36(Bn,8),i.Y36(_L,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(i.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.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:[i.qOj],ngContentSelectors:gL,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i._UZ(3,"span",3),i._UZ(4,"span",4),i.TgZ(5,"input",5,6),i.NdJ("change",function(l){return t._onInputInteraction(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA(),i.qZA(),i.TgZ(9,"span",9),i.TgZ(10,"span",10),i._uU(11,"\xa0"),i.qZA(),i.Hsn(12),i.qZA(),i.qZA()),2&e){const r=i.MAs(1);i.uIk("for",t.inputId),i.xp6(5),i.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),i.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,mL,t._noopAnimations?0:150)),i.xp6(2),i.ekj("mat-radio-label-before","before"==t.labelPosition)}},directives:[Gn],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-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;-moz-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),n})(),pS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,ht],ht]}),n})();function vL(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function TL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function xL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function SL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-radio-group",12),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(2).asyncValidation=r}),i.TgZ(1,"span",13),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-radio-button",14),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"mat-radio-button",14),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("ngModel",e.asyncValidation),i.xp6(2),i.hij(" ",i.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),i.xp6(2),i.Q6J("value",!1),i.xp6(1),i.hij(" ",i.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),i.xp6(2),i.Q6J("value",!0),i.xp6(1),i.hij(" ",i.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function EL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function DL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function HL(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"p",6),i._uU(2),i.TgZ(3,"span",7),i._uU(4),i.qZA(),i._uU(5),i.TgZ(6,"span",7),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"p"),i.TgZ(9,"strong",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA(),i.TgZ(13,"p"),i.TgZ(14,"strong",8),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17),i.qZA(),i.YNc(18,TL,3,3,"span",9),i.YNc(19,xL,3,3,"span",9),i.YNc(20,SL,10,12,"mat-radio-group",10),i.YNc(21,EL,3,3,"span",9),i.YNc(22,DL,3,3,"span",9),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e.group.name," "),i.xp6(2),i.hij("#",e.group.id,""),i.xp6(1),i.hij(" - ",e.resource.name," "),i.xp6(2),i.hij("#",e.resource.id,""),i.xp6(3),i.hij(" ",i.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),i.xp6(2),i.hij(" ",e.status," "),i.xp6(3),i.hij(" ",i.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),i.xp6(2),i.hij(" ",e.getReversedStatus()," "),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf","ACTIVE"===e.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function LL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",15),i.TgZ(1,"button",16),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",17),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let kL=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=l,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(fi),i.Y36(Di))},n.\u0275cmp=i.Xpm({type:n,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"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,vL,1,0,"mat-spinner",1),i.YNc(5,HL,23,17,"div",2),i.YNc(6,LL,7,7,"div",3),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.hij(" ",i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,uS,_n,ur,hS,ji,Pt],pipes:[lt],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),n})();function PL(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function RL(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let OL=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.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=Pi();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(uH,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function s2(n,a){return(0,r2.mG)(this,void 0,void 0,function*(){yield function o2(n){return new Promise(a=>setTimeout(a,n))}(n),a()})}(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36($x))},n.\u0275cmp=i.Xpm({type:n,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"],[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&&(i.TgZ(0,"div"),i.TgZ(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,PL,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,RL,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},directives:[w.O5,bn],pipes:[lt],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}"]}),n})();function IL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index;return i.oxw().removeNotification(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const BL=function(n){return{top:n}};let NL=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Tr),i.Y36($x))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.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&&(i.TgZ(0,"div",0),i.YNc(1,IL,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,BL,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},directives:[w.PC,w.sg,OL],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:[x2]}}),n})();const VL=["*",[["mat-toolbar-row"]]],zL=["*","mat-toolbar-row"],FL=Bo(class{constructor(n){this._elementRef=n}});let jL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),qL=(()=>{class n extends FL{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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,jL,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:zL,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(VL),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),tv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})();function fS(n){for(let a in n){let e=n[a]||"";switch(a){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;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":n["-webkit-"+a]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+a]=isNaN(+e)?"0":e}}return n}const iv="inline",vA=["row","column","row-reverse","column-reverse"];function mS(n){let[a,e,t]=function gS(n){var a;n=null!==(a=null==n?void 0:n.toLowerCase())&&void 0!==a?a:"";let[e,t,r]=n.split(" ");return vA.find(l=>l===e)||(e=vA[0]),t===iv&&(t=r!==iv?r:"",r=iv),[e,YL(t),!!r]}(n);return function WL(n,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":a||null}}(a,e,t)}function YL(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}const GL={provide:i.tb,useFactory:function UL(n,a){return()=>{if((0,w.NF)(a)){const e=Array.from(n.querySelectorAll(`[class*=${_S}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${_S}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[w.K0,i.Lbi],multi:!0},_S="flex-layout-";let nv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[GL]}),n})();class Nu{constructor(a=!1,e="all",t="",r="",l=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=l,this.property=""}clone(){return new Nu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let ZL=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const l=this.stylesheet.get(e);l?l.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 l="";if(r){const d=r.get(t);("number"==typeof d||"string"==typeof d)&&(l=d+"")}return l}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Ks=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>rv}),cf=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),av=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function bS(n,a){return n=n?n.clone():new Nu,a&&(n.mqAlias=a.alias,n.mediaQuery=a.mediaQuery,n.suffix=a.suffix,n.priority=a.priority),n}class An{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let qi=(()=>{class n{constructor(e,t,r,l){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=l}applyStyleToElement(e,t,r=null){let l={};"string"==typeof t&&(l[t]=r,t=l),l=this.layoutConfig.disableVendorPrefixes?t:fS(t),this._applyMultiValueStyleToElement(l,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:fS(e);t.forEach(l=>{this._applyMultiValueStyleToElement(r,l)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,w.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,w.NF)(this._platformId)?e.style.getPropertyValue(t):function $L(n,a){var e;return null!==(e=AS(n)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let l="";return e&&((l=this.lookupInlineStyle(e,t))||((0,w.NF)(this._platformId)?r||(l=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(l=this._serverStylesheet.getStyleForElement(e,t)))),l?l.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const l=e[r],d=Array.isArray(l)?l:[l];d.sort();for(let o of d)o=o?o+"":"",(0,w.NF)(this._platformId)||!this._serverModuleLoaded?(0,w.NF)(this._platformId)?t.style.setProperty(r,o):JL(t,r,o):this._serverStylesheet.addStyleToElement(t,r,o)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ZL),i.LFG(cf),i.LFG(i.Lbi),i.LFG(Ks))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function JL(n,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=AS(n);t[a]=null!=e?e:"",function QL(n,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);n.setAttribute("style",e)}(n,t)}function AS(n){const a={},e=n.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const d=l.indexOf(":");if(-1===d)throw new Error(`Invalid CSS style: ${l}`);a[l.substr(0,d).trim()]=l.substr(d+1).trim()}}}return a}function w1(n,a){return(a&&a.priority||0)-(n&&n.priority||0)}function XL(n,a){return(n.priority||0)-(a.priority||0)}let sv=(()=>{class n{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new Ki(new Nu(!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;const r=this.registry.get(e);return null!==(t=null==r?void 0:r.matches)&&void 0!==t?t:this.registerQuery(e).some(l=>l.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,jt.h)(d=>!t||e.indexOf(d.mediaQuery)>-1)),l=new Ri.y(d=>{const o=this.registerQuery(e);if(o.length){const s=o.pop();o.forEach(c=>{d.next(c)}),this.source.next(s)}d.complete()});return(0,Si.T)(l,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function KL(n,a){const e=n.filter(t=>!yS[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(l=>yS[l]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(l=>{const d=s=>{this._zone.run(()=>this.source.next(new Nu(s.matches,l)))};let o=this.registry.get(l);o||(o=this.buildMQL(l),o.addListener(d),this.pendingRemoveListenerFns.push(()=>o.removeListener(d)),this.registry.set(l,o)),o.matches&&r.push(new Nu(!0,l))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function ek(n,a){return a&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,w.NF)(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const yS={},tk=[{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}],MS="(orientation: portrait) and (max-width: 599.98px)",wS="(orientation: landscape) and (max-width: 959.98px)",CS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",vS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",TS="(orientation: portrait) and (min-width: 840px)",xS="(orientation: landscape) and (min-width: 1280px)",ec={HANDSET:`${MS}, ${wS}`,TABLET:`${CS} , ${vS}`,WEB:`${TS}, ${xS} `,HANDSET_PORTRAIT:`${MS}`,TABLET_PORTRAIT:`${CS} `,WEB_PORTRAIT:`${TS}`,HANDSET_LANDSCAPE:`${wS}`,TABLET_LANDSCAPE:`${vS}`,WEB_LANDSCAPE:`${xS}`},ik=[{alias:"handset",priority:2e3,mediaQuery:ec.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ec.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ec.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ec.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ec.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ec.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ec.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ec.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ec.WEB_PORTRAIT,overlapping:!0}],nk=/(\.|-|_)/g;function rk(n){let a=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return a.toUpperCase()+e}const lk=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,i.f3M)(av),a=(0,i.f3M)(Ks),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function ok(n,a=[]){const e={};return n.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Kl(n,...a){if(null==n)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)&&(n[t]=e[t]);return n}(e[t.alias],t):e[t.alias]=t}),function sk(n){return n.forEach(a=>{a.suffix||(a.suffix=function ak(n){return n.replace(nk,"|").split("|").map(rk).join("")}(a.alias),a.overlapping=!!a.overlapping)}),n}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:tk).concat(a.addOrientationBps?ik:[]),e)}});let ov=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(XL)}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=null==e?void 0:e.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let l=this.findByMap.get(e);return l||(l=null!==(r=this.items.find(t))&&void 0!==r?r:null,this.findByMap.set(e,l)),null!=l?l:null}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(lk))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const df="print",ck={alias:df,mediaQuery:df,priority:1e3};let dk=(()=>{class n{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 uk,this.deactivations=[]}withPrintQuery(e){return[...e,df]}isPrintEvent(e){return e.mediaQuery.startsWith(df)}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(w1)}updateEvent(e){var t;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(t=null==r?void 0:r.mediaQuery)&&void 0!==t?t:""),bS(e,r)}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 Nu(!0,df))),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 l=this.formerActivations&&this.formerActivations.includes(r),d=!this.formerActivations&&e.activatedBreakpoints.includes(r);(l||d)&&(this.deactivations.push(r),this.deactivations.sort(w1))}}}}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 n.\u0275fac=function(e){return new(e||n)(i.LFG(ov),i.LFG(Ks),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class uk{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(ck),a.sort(w1),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function hk(n){var a;return null!==(a=null==n?void 0:n.mediaQuery.startsWith(df))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let Qi=(()=>{class n{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 He.xQ,this.observeActivations()}get activatedAlias(){var e,t;return null!==(t=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==t?t:""}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=bS(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(w1),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(w1),this.updateStyles())}}init(e,t,r,l,d=[]){SS(this.updateMap,e,t,r),SS(this.clearMap,e,t,l),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,d)}getValue(e,t,r){const l=this.elementMap.get(e);if(l){const d=void 0!==r?l.get(r):this.getActivatedValues(l,t);if(d)return d.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);if(l)return void 0!==l.get(t)||!1}return!1}setValue(e,t,r,l){var d;let o=this.elementMap.get(e);if(o){const c=(null!==(d=o.get(l))&&void 0!==d?d:new Map).set(t,r);o.set(l,c),this.elementMap.set(e,o)}else o=(new Map).set(l,(new Map).set(t,r)),this.elementMap.set(e,o);const s=this.getValue(e,t);void 0!==s&&this.updateElement(e,t,s)}trackValue(e,t){return this.subject.asObservable().pipe((0,jt.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let l=this.getActivatedValues(e);l&&l.forEach((d,o)=>{this.updateElement(t,o,d),r.delete(o)}),r.forEach(d=>{if(l=this.getActivatedValues(e,d),l){const o=l.get(d);this.updateElement(t,d,o)}else this.clearElement(t,d)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const l=r.get(t);l&&(l(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const l=this.updateMap.get(e);if(l){const d=l.get(t);d&&(d(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(l=>l.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((l,d)=>r.delete(d)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);l&&(t?this.updateElement(e,t,l.get(t)):l.forEach((d,o)=>this.updateElement(e,o,d)))}}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 l=this.watcherMap.get(e);if(l||(l=new Map,this.watcherMap.set(e,l)),!l.get(t)){const o=(0,Si.T)(...r).subscribe(()=>{const s=this.getValue(e,t);this.updateElement(e,t,s)});l.set(t,o)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let l=0;lt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,I.b)(this.hook.interceptEvents(this)),(0,jt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(sv),i.LFG(ov),i.LFG(dk))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function SS(n,a,e,t){var r;if(void 0!==t){const l=null!==(r=n.get(a))&&void 0!==r?r:new Map;l.set(e,t),n.set(a,l)}}let rn=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=l,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new He.xQ,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,l=r.shouldCache;let d=this.styleCache.get(e);(!d||!l)&&(d=r.buildStyles(e,t),l&&this.styleCache.set(e,d)),this.mru=Object.assign({},d),this.applyStyleToElement(d),r.sideEffect(e,d,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,l]=this.styler.getFlowDirection(e);if(!l&&t){const d=mS(r);this.styler.applyStyleToElements(d,[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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(An),i.Y36(qi),i.Y36(Qi))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class Sk{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 LS(n){let a=typeof n;return"object"===a?n.constructor===Array?"array":n.constructor===Set?"set":"object":a}function PS(n){const[a,...e]=n.split(":");return new Sk(a,e.join(":"))}function RS(n,a){return a.key&&(n[a.key]=a.value),n}let Hk=(()=>{class n extends rn{constructor(e,t,r,l,d,o,s,c,u){var h;super(e,null,t,r),this.sanitizer=l,this.ngStyleInstance=s,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new w.PC(e,d,o)),this.init();const f=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=c&&(0,w.PM)(u)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},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 l;return null!==(l=this.sanitizer.sanitize(i.q3G.STYLE,r))&&void 0!==l?l:""};if(e)switch(LS(e)){case"string":return OS(function Ek(n,a=";"){return String(n).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return OS(e,t);default:return function kS(n,a){let e=[];return"set"===LS(n)?n.forEach(t=>e.push(t)):Object.keys(n).forEach(t=>{e.push(`${t}:${n[t]}`)}),function Dk(n,a){return n.map(PS).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(RS,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qi),i.Y36(Qi),i.Y36(fr),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(w.PC,10),i.Y36(cf),i.Y36(i.Lbi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Lk=["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 xA=(()=>{class n extends Hk{constructor(){super(...arguments),this.inputs=Lk}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,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:[i.qOj]}),n})();function OS(n,a){return n.map(PS).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(RS,{})}let IS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[nv]]}),n})();const cv=function(n){return{color:n}};function kk(n,a){if(1&n&&(i.TgZ(0,"button",8),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3," apps "),i.qZA(),i.qZA()),2&n){const e=i.oxw(),t=i.MAs(2);i.Q6J("matMenuTriggerFor",t)("matTooltip",i.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),i.xp6(2),i.Q6J("ngStyle",i.VKq(5,cv,e.iconColor))}}function Pk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){return i.CHM(e),i.oxw().onLogOut()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let Rk=(()=>{class n{constructor(e,t,r,l){this.authService=e,this.authzResolverService=t,this.notificator=r,this.translateService=l}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ka),i.Y36(Wi),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(e,t){if(1&e&&(i.YNc(0,kk,4,7,"button",0),i.TgZ(1,"mat-menu",null,1),i.TgZ(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"button",3),i.TgZ(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.TgZ(9,"span",5),i._uU(10),i.qZA(),i.qZA(),i.TgZ(11,"mat-menu",null,6),i.YNc(13,Pk,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(12);i.Q6J("ngIf",t.url),i.xp6(5),i.Oqu(t.label),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,cv,t.iconColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(13,cv,t.textColor)),i.xp6(1),i.xDo(" ",t.user.titleBefore," ",t.user.firstName," ",t.user.middleName," ",t.user.lastName," ",t.user.titleAfter," "),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},directives:[w.O5,Pt,Nx,vr,bn,w.PC,Rx,Gl],pipes:[lt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})();const BS=function(n){return{color:n}};function Ok(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onToggleSidenav()}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,BS,e.iconColor))}}function Ik(n,a){1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"span",9),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",10),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",9),i._uU(6," \u{1f5f2} ~ "),i.qZA(),i.qZA())}const Bk=function(n){return{background:n}},Nk=function(){return[]},Vk=function(){return["/"]};let zk=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.translate=r,this.otherApplicationService=l,this.sidenavToggle=new i.vpe,this.hideToggle=!1,this.disableLogo=!1,this.label=this.storeService.get("header_label_en"),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.adminLabel=this.storeService.get("admin_gui_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.translate.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}isLinkToGuiActive(){this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(fr),i.Y36(li),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:8,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"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"url","label","user","logoutEnabled","iconColor","textColor"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-toolbar",0),i.TgZ(1,"div",1),i.YNc(2,Ok,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA(),i.qZA(),i.YNc(6,Ik,7,0,"div",5),i._UZ(7,"perun-web-apps-header-menu",6),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(13,Bk,t.bgColor)),i.xp6(2),i.Q6J("ngIf",!t.hideToggle),i.xp6(1),i.Q6J("innerHTML",t.logo,i.oJD)("routerLink",t.disableLogo?i.DdM(15,Nk):i.DdM(16,Vk)),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,BS,t.textColor)),i.xp6(1),i.Oqu(t.label),i.xp6(1),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},directives:[qL,w.PC,xA,w.O5,Pt,bn,z,Rk],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;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 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function NS(n){return a=>a.lift(new Fk(n))}class Fk{constructor(a){this.value=a}call(a,e){return e.subscribe(new jk(a,this.value))}}class jk extends Sr.L{constructor(a,e){super(a),this.value=e}_next(a){this.destination.next(this.value)}}const SA=["*"],qk=["content"];function Yk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Wk(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Uk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Gk=["mat-drawer","mat-drawer-content","*"];function Zk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function $k(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const Jk=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Qk=["mat-sidenav","mat-sidenav-content","*"],VS={transformDrawer:wi("transform",[Nt("open, open-instant",Re({transform:"none",visibility:"visible"})),Nt("void",Re({"box-shadow":"none",visibility:"hidden"})),Ht("void => open-instant",Ct("0ms")),Ht("void <=> open, open-instant => void",Ct("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Kk=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function eP(){return!1}}),dv=new i.OlP("MAT_DRAWER_CONTAINER");let EA=(()=>{class n extends Th{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>FS)),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Th,useExisting:n}]),i.qOj],ngContentSelectors:SA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),zS=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new He.xQ,this._animationEnd=new He.xQ,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,jt.h)(u=>u),(0,ut.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,jt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),NS(void 0)),this._closedStream=this.openedChange.pipe((0,jt.h)(u=>!u),(0,ut.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,jt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),NS(void 0)),this._destroyed=new He.xQ,this.onPositionChanged=new i.vpe,this._modeChanged=new He.xQ,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Ta(this._elementRef.nativeElement,"keydown").pipe((0,jt.h)(u=>27===u.keyCode&&!this.disableClose&&!vn(u)),tt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Rh((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&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=je(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=je(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(je(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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(l=>{this.openedChange.pipe((0,Zt.q)(1)).subscribe(d=>l(d?"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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qg),i.Y36(Rr),i.Y36(xi),i.Y36(i.R0b),i.Y36(zh),i.Y36(w.K0,8),i.Y36(dv,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(qk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.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:SA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Th],encapsulation:2,data:{animation:[VS.transformDrawer]},changeDetection:0}),n})(),FS=(()=>{class n{constructor(e,t,r,l,d,o=!1,s){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=s,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new He.xQ,this._doCheckSubject=new He.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new He.xQ,e&&e.change.pipe(tt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(tt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=je(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:je(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(_i(this._allDrawers),tt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(_i(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,kh.b)(10),tt(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,jt.h)(t=>t.fromState!==t.toState),tt(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(tt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(tt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Zt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(tt((0,Si.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Cn,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(Ja),i.Y36(Kk),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,EA,5),i.Suo(r,zS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(EA,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:dv,useExisting:n}])],ngContentSelectors:Gk,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&&(i.F$t(Uk),i.YNc(0,Yk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Wk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[EA,w.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),uv=(()=>{class n extends EA{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>qS)),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Th,useExisting:n}]),i.qOj],ngContentSelectors:SA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),jS=(()=>{class n extends zS{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=je(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=oi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=oi(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.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:[i.qOj],ngContentSelectors:SA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Th],encapsulation:2,data:{animation:[VS.transformDrawer]},changeDetection:0}),n})(),qS=(()=>{class n extends FS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,uv,5),i.Suo(r,jS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:dv,useExisting:n}]),i.qOj],ngContentSelectors:Qk,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&&(i.F$t(Jk),i.YNc(0,Zk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,$k,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[uv,w.O5],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),hv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ht,Rc,xa],xa,ht]}),n})(),tP=(()=>{class n{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.get("displayed_tabs"),t=[];return e.forEach(l=>{switch(l){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.get("external_services").forEach(l=>{const d={icon:"insert_link",link:l.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supported_languages").forEach(s=>{var c;d[`label_${s}`]=null!==(c=String(l[`label_${s}`]))&&void 0!==c?c:l.label_en}),t.push(d)}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})();const fv=["*"],iP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],nP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],WS=ts(na(class{})),lP=na(class{}),US=new i.OlP("MatList"),GS=new i.OlP("MatNavList");let cP=(()=>{class n extends WS{constructor(){super(...arguments),this._stateChanges=new He.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:GS,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:fv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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:transparent;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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0}),n})(),mv=(()=>{class n extends WS{constructor(e){super(),this._elementRef=e,this._stateChanges=new He.xQ,"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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:US,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:fv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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:transparent;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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0}),n})(),ZS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),$S=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),DA=(()=>{class n extends lP{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new He.xQ,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(tt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=je(e)}ngAfterContentInit(){!function aw(n,a,e="mat"){n.changes.pipe(_i(n)).subscribe(({length:t})=>{zl(a,`${e}-2-line`,!1),zl(a,`${e}-3-line`,!1),zl(a,`${e}-multi-line`,!1),2===t||3===t?zl(a,`${e}-${t}-line`,!0):t>3&&zl(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(GS,8),i.Y36(US,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ZS,5),i.Suo(r,$S,5),i.Suo(r,Vl,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:nP,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&&(i.F$t(iP),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[Gn],encapsulation:2,changeDetection:0}),n})(),gv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cm,ii,ht,dp,w.ez],cm,ht,dp,pv]}),n})(),QS=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})();const mP=function(n){return{color:n}};function gP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return l.external?d.goToURL(l.link):d.shouldHideMenu()}),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"localisedText"),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.external?null:e.link),i.Q6J("ngStyle",i.VKq(16,mP,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(e.external?i.Dn7(5,7,e,t.lang,"label"):i.lcZ(6,11,i.xi3(7,13,e.label,t.lang)))}}let _P=(()=>{class n{constructor(e,t,r,l){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=l,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(d=>{d instanceof At&&(this.currentUrl=d.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.get("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 n.\u0275fac=function(e){return new(e||n)(i.Y36(tP),i.Y36(zt),i.Y36(rt),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,gP,8,18,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[cP,w.sg,DA,Gn,w.PC,xA,O,bn],pipes:[QS,lt,si],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}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();function bP(n,a){if(1&n&&(i.TgZ(0,"span",1),i.TgZ(1,"a",2),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("routerLink",e.routerLink),i.xp6(1),i.Oqu(e.label)}}let AP=(()=>{class n{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,jt.h)(e=>e instanceof At)).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(l=>{const d=l.snapshot.url.map(s=>s.path).join("/");""!==d&&(t+=`/${d}`);const o=this.translate.instant(l.snapshot.data[n.ROUTE_DATA_BREADCRUMB]);return o&&(!this.menuItems[this.menuItems.length-1]||o!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:o,routerLink:t}),this.createBreadcrumbs(l,t)})}}return n.ROUTE_DATA_BREADCRUMB="breadcrumb",n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],["queryParamsHandling","merge",1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&i.YNc(0,bP,3,2,"span",0),2&e&&i.Q6J("ngForOf",t.menuItems)},directives:[w.sg,z],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}']}),n})();function yP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let MP=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("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: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(li),i.Y36(Tr),i.Y36(cn),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,yP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field"),i.TgZ(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(21,"div",6),i.TgZ(22,"div",7),i.TgZ(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[En,fn,mn,rs,Hn,nn,Nr,_n,ur,w.O5,Fl,mb,ji,Pt],pipes:[lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),wP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),CP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function vP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function TP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function xP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,vP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,TP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const SP=function(n){return{"min-height":n}};function EP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,xP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,SP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const md=function(n){return{color:n}};function DP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,md,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function HP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(3).openDialog(r.dialog)}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,md,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function LP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,md,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function kP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,md,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function PP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,DP,2,4,"i",17),i.YNc(2,HP,3,8,"span",18),i.YNc(3,LP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,kP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const RP=function(n){return{height:n}};function OP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,PP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,RP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function IP(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,EP,2,4,"div",9),i.YNc(5,OP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,md,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function BP(n,a){if(1&n&&(i.TgZ(0,"span"),i.TgZ(1,"a",6),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,md,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const NP=function(n){return{background:n}};let XS=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("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.get("footer","copyright_items")}openDialog(e){const t=Pi();"reportIssue"===e&&(t.width="550px",this.dialog.open(MP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(li),i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,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&&(i.TgZ(0,"footer",0),i.TgZ(1,"div",1),i.YNc(2,IP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,BP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(8,NP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,md,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,md,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},directives:[w.PC,w.sg,w.O5],pipes:[QS,wP,CP],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:-webkit-fit-content;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:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),n})();function VP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function zP(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11),i._UZ(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function FP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"a",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const jP=function(n){return{color:n}};function qP(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,jP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const YP=function(n,a){return{background:n,color:a}},WP=function(n,a){return{"min-height":n,"background-color":a}};let UP=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(fr),i.Y36(FC),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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&&(i.TgZ(0,"div",0),i.YNc(1,VP,2,1,"div",1),i.YNc(2,zP,3,1,"div",2),i.YNc(3,FP,2,1,"div",1),i.YNc(4,qP,2,4,"p",3),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",7),i._UZ(10,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.WLB(6,YP,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf","user-profile"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(9,WP,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[w.PC,w.O5,bn,hi,XS],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}"]}),n})();const GP=["footer"],KS=function(n){return{background:n}},ZP=function(n){return{"min-height":n}};function $P(n,a){if(1&n){const e=i.EpF();i._UZ(0,"perun-web-apps-notificator"),i.TgZ(1,"div",2),i.TgZ(2,"perun-web-apps-header",3),i.NdJ("sidenavToggle",function(){return i.CHM(e),i.MAs(5).toggle()}),i.qZA(),i.TgZ(3,"mat-sidenav-container"),i.TgZ(4,"mat-sidenav",4,5),i._UZ(6,"perun-web-apps-side-menu",6),i.qZA(),i.TgZ(7,"mat-sidenav-content",7),i.TgZ(8,"div",8),i._UZ(9,"perun-web-apps-breadcrumbs"),i._UZ(10,"router-outlet"),i.qZA(),i.TgZ(11,"div",null,9),i._UZ(13,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(5),t=i.oxw();i.xp6(4),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(6,KS,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,KS,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,ZP,t.contentHeight))}}function JP(n,a){if(1&n&&i._UZ(0,"perun-web-apps-login-screen-base",10),2&n){const e=i.oxw();i.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let QP=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=l,this.changeDetector=d,this.preferredLangService=o,this.titleService=s,this.document=c,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.get("header_label_en"),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{const t=this.store.get("document_title",e.lang);this.titleService.setTitle(t),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown?this.headerLabel=this.store.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`):this.isServiceAccess||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const r=e.find(o=>"preferredLanguage"===o.friendlyName),l=null!==(t=null==r?void 0:r.value)&&void 0!==t?t:null,d=this.preferredLangService.getPreferredLanguage(l);this.translateService.use(d)})}isMobile(){return window.innerWidth<=n.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){var e,t,r,l;const d=null!==(l=null===(r=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===r?void 0:r.toString())&&void 0!==l?l:"0";this.contentHeight="calc(100vh - 84px - "+d+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(li),i.Y36(VC),i.Y36(i.sBO),i.Y36(FC),i.Y36(it),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(GP,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"sidenavToggle"],["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&&(i.YNc(0,$P,14,12,"ng-template",0),i.YNc(1,JP,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(i.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},directives:[w.O5,NL,zk,qS,jS,w.PC,xA,_P,uv,AP,hi,XS,UP],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}"]}),n})();var XP=x(1158);function KP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().index;return i.oxw().removeValue(r)}),i.TgZ(1,"mat-icon"),i._uU(2," indeterminate_check_box "),i.qZA(),i.qZA()}}function eR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",9),i.TgZ(1,"mat-form-field",10),i._UZ(2,"label",11),i.TgZ(3,"input",12),i.NdJ("click",function(){const l=i.CHM(e).index,d=i.oxw();return d.readonly&&d.attribute.displayName&&d.showValue(d.keys[l],d.attribute.displayName)})("ngModelChange",function(r){const d=i.CHM(e).index;return i.oxw().keys[d]=r}),i.qZA(),i.qZA(),i.TgZ(4,"mat-form-field",10),i._UZ(5,"label",11),i.TgZ(6,"input",13),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.readonly&&void 0!==d.attribute.displayName&&d.showValue(l,d.attribute.displayName)})("ngModelChange",function(r){const d=i.CHM(e).index;return i.oxw().values[d]=r}),i.qZA(),i.qZA(),i.YNc(7,KP,3,0,"button",14),i.qZA()}if(2&n){const e=a.index,t=i.oxw();i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-key-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.hYB("id","",t.attribute.id,"-key-",e,""),i.MGl("name","key-",e,""),i.Q6J("ngModel",t.keys[e])("readonly",t.readonly),i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-value-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.MGl("name","value-",e,""),i.hYB("id","",t.attribute.id,"-value-",e,""),i.Q6J("readonly",t.readonly)("ngModel",t.values[e]),i.xp6(1),i.Q6J("ngIf",!t.readonly)}}function tR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function iR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function nR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){return i.CHM(e),i.oxw().onShowChange()}),i.YNc(1,tR,2,0,"mat-icon",17),i.YNc(2,iR,2,0,"mat-icon",17),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function rR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){return i.CHM(e),i.oxw().addValue()}),i.TgZ(1,"mat-icon"),i._uU(2," add_box "),i.qZA(),i.qZA()}}let aR=(()=>{class n{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=Bu(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),i.xp6(1),i.Q6J("ngIf",!t.readonly))},directives:[Yp,Ep,ld,w.sg,mn,Hn,nn,Nr,_n,ur,w.O5,Pt,bn,vr],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}"]}),n})();const sR=["input"],oR=function(n){return{enterDuration:n}},lR=["*"],cR=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:eE});function eE(){return{color:"accent",clickAction:"check-indeterminate"}}let dR=0;const tE=eE(),uR={provide:Zn,useExisting:(0,i.Gpc)(()=>tc),multi:!0};class hR{}const pR=Nl(Bo(na(ts(class{constructor(n){this._elementRef=n}}))));let tc=(()=>{class n extends pR{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._focusMonitor=r,this._ngZone=l,this._animationMode=o,this._options=s,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++dR,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||tE,this.color=this.defaultColor=this._options.color||tE.color,this.tabIndex=parseInt(d)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=je(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=je(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._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){const e=new hR;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const r=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===t)r="unchecked-checked";else{if(3!=t)return"";r="unchecked-indeterminate"}break;case 2:r=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Rr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(Bn,8),i.Y36(cR,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(i.Gf(sR,5),i.Gf(Gn,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null),i.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",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([uR]),i.qOj],ngContentSelectors:lR,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i.TgZ(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA(),i.qZA(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,oR,"NoopAnimations"===t._animationMode?0:150))}},directives:[Gn,Oh],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),iE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),C1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,ht,Wd,iE],ht,iE]}),n})(),_v=(()=>{class n{transform(e){return e.replace(/\s/g,"-").toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"multiWordDataCy",type:n,pure:!0}),n})();function gR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",2),i.NdJ("change",function(){return i.CHM(e),i.oxw()._sendEventToParent()})("ngModelChange",function(r){return i.CHM(e),i.oxw().attribute.value=r}),i.ALo(1,"multiWordDataCy"),i.qZA()}if(2&n){const e=i.oxw();i.Q2q("data-cy","",i.lcZ(1,2,e.attribute.displayName),"-value"),i.Q6J("ngModel",e.attribute.value)}}function _R(n,a){if(1&n&&(i.TgZ(0,"mat-label"),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.attribute.value)}}let bR=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div"),i.YNc(1,gR,2,4,"mat-checkbox",0),i.YNc(2,_R,2,1,"mat-label",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.readonly),i.xp6(1),i.Q6J("ngIf",t.readonly))},directives:[w.O5,tc,_n,ur,rs],pipes:[_v],styles:[""]}),n})();function yR(n){const{subscriber:a,counter:e,period:t}=n;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function bv(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,(null==e?void 0:e.has(t))?"important":""):n.removeProperty(t)}return n}function uf(n,a){const e=a?"":"none";bv(n.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 nE(n,a,e){bv(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function HA(n,a){return a&&"none"!=a?n+" "+a:n}function rE(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function Av(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function yv(n){const a=n.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 Mv(n,a,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&a>=l&&a<=d}function v1(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function aE(n,a,e,t){const{top:r,right:l,bottom:d,left:o,width:s,height:c}=n,u=s*a,h=c*a;return t>r-h&&to-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:yv(e)})})}handleScroll(a){const e=Un(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const o=r.top-l,s=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&v1(c.clientRect,o,s)}),r.top=l,r.left=d,{top:o,left:s}}}function oE(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const s=this._handles.find(c=>o.target&&(o.target===c||c.contains(o.target)));s&&!this._disabledHandles.has(s)&&!this.disabled&&this._initializeDragSequence(s,o)}else this.disabled||this._initializeDragSequence(this._rootElement,o)},this._pointerMove=o=>{const s=this._getPointerPositionOnPage(o);if(!this._hasStartedDragging){if(Math.abs(s.x-this._pickupPositionOnPage.x)+Math.abs(s.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(o),V=this._dropContainer;if(!b)return void this._endDragSequence(o);(!V||!V.isDragging()&&!V.isReceiving())&&(o.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(o)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),o.preventDefault();const c=this._getConstrainedPointerPosition(s);if(this._hasMoved=!0,this._lastKnownPointerPosition=s,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,s);else{const u=this._activeTransform;u.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,u.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:o,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=o=>{this._endDragSequence(o)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new sE(t,l),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=je(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>uf(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=>zi(t)),this._handles.forEach(t=>uf(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=zi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,hE),e.addEventListener("touchstart",this._pointerDown,uE)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?zi(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===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.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),uf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),uf(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}),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})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){T1(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),nE(t,!1,wv),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=T1(e),l=!r&&0!==e.button,d=this._rootElement,o=Un(e),s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Fh(e):Ud(e);if(o&&o.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||s||c)return;if(this._handles.length){const f=d.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=yv(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(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){nE(this._rootElement,!0,wv),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),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 l=a.matchSize?this._rootElement.getBoundingClientRect():null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),r=fE(d,this._document),this._previewRef=d,a.matchSize?mE(r,l):r.style.transform=LA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const l=this._rootElement;r=oE(l),mE(r,l.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return bv(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},wv),uf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):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 MR(n){const a=getComputedStyle(n),e=Av(a,"transition-property"),t=e.find(o=>"transform"===o||"all"===o);if(!t)return 0;const r=e.indexOf(t),l=Av(a,"transition-duration"),d=Av(a,"transition-delay");return rE(l[r])+rE(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{var o;(!d||Un(d)===this._preview&&"transform"===d.propertyName)&&(null===(o=this._preview)||void 0===o||o.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=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=fE(this._placeholderRef,this._document)):t=oE(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),r=a===this._rootElement?null:a,l=r?r.getBoundingClientRect():t,d=T1(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:l.left-t.left+(d.pageX-l.left-o.left),y:l.top-t.top+(d.pageY-l.top-o.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=T1(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const o=this._ownerSVGElement.createSVGPoint();return o.x=r,o.y=l,o.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,o=this._boundaryRect,s=this._previewRect,c=o.top+d,u=o.bottom-(s.height-d);t=pE(t,o.left+l,o.right-(s.width-l)),r=pE(r,c,u)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),o=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),o>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,uf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,hE),a.removeEventListener("touchstart",this._pointerDown,uE)}_applyRootElementTransform(a,e){const t=LA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=HA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,l=LA(a,e);this._preview.style.transform=HA(l,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._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===r.width&&0===r.height)return;const l=t.left-r.left,d=r.right-t.right,o=t.top-r.top,s=r.bottom-t.bottom;t.width>r.width?(l>0&&(a+=l),d>0&&(a-=d)):a=0,t.height>r.height?(o>0&&(e+=o),s>0&&(e-=s)):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:T1(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)&&v1(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(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=vh(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 zi(t)}}function LA(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function pE(n,a,e){return Math.max(a,Math.min(e,n))}function T1(n){return"t"===n.type[0]}function fE(n,a){const e=n.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 mE(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=LA(a.left,a.top)}function gE(n,a,e){const t=x1(a,n.length-1),r=x1(e,n.length-1);if(t===r)return;const l=n[t],d=r!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.xQ,this.entered=new He.xQ,this.exited=new He.xQ,this.dropped=new He.xQ,this.sorted=new He.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=re.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function AR(n=0,a=Mh.P){return(!K1(n)||n<0)&&(n=0),(!a||"function"!=typeof a.schedule)&&(a=Mh.P),new Ri.y(e=>(e.add(a.schedule(yR,n,{subscriber:e,counter:0,period:n})),e))}(0,Yf).pipe(tt(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,o=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-o):2===this._verticalScrollDirection&&d.scrollBy(0,o),1===this._horizontalScrollDirection?d.scrollBy(-o,0):2===this._horizontalScrollDirection&&d.scrollBy(o,0)})},this.element=zi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new sE(t,l)}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){let l;this._draggingStarted(),null==r?(l=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===l&&(l=this._getItemIndexFromPointerPosition(a,e,t))):l=r;const d=this._activeDraggables,o=d.indexOf(a),s=a.getPlaceholderElement();let c=d[l];if(c===a&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(s,u),d.splice(l,0,a)}else zi(this.element).appendChild(s),d.push(a);s.style.transform="",this._cacheItemPositions(),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,l,d,o){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint: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._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=zi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!aE(this._clientRect,.05,e,t))return;const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,r);if(-1===d&&l.length>0)return;const o="horizontal"===this._orientation,s=l.findIndex(he=>he.drag===a),c=l[d],h=c.clientRect,f=s>d?1:-1,b=this._getItemOffsetPx(l[s].clientRect,h,f),V=this._getSiblingOffsetPx(s,l,f),ee=l.slice();gE(l,s,d),this.sorted.next({previousIndex:s,currentIndex:d,container:this,item:a}),l.forEach((he,Oe)=>{if(ee[Oe]===he)return;const gt=he.drag===a,dt=gt?b:V,Kt=gt?a.getPlaceholderElement():he.drag.getRootElement();he.offset+=dt,o?(Kt.style.transform=HA(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),v1(he.clientRect,0,dt)):(Kt.style.transform=HA(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),v1(he.clientRect,dt,0))}),this._previousSwap.overlaps=Mv(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?r.x:r.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,o)=>{o===this._document||!d.clientRect||t||aE(d.clientRect,.05,a,e)&&([r,l]=function xR(n,a,e,t){const r=AE(a,t),l=yE(a,e);let d=0,o=0;if(r){const s=n.scrollTop;1===r?s>0&&(d=1):n.scrollHeight-s>n.clientHeight&&(d=2)}if(l){const s=n.scrollLeft;1===l?s>0&&(o=1):n.scrollWidth-s>n.clientWidth&&(o=2)}return[d,o]}(o,d.clientRect,a,e),(r||l)&&(t=o))}),!r&&!l){const{width:d,height:o}=this._viewportRuler.getViewportSize(),s={width:d,height:o,top:0,right:d,bottom:o,left:0};r=AE(s,e),l=yE(s,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=zi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=zi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_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:yv(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=zi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const r=e.getRootElement();if(r){const l=null===(t=this._itemPositions.find(d=>d.drag===e))||void 0===t?void 0:t.initialTransform;r.style.transform=l||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this._orientation,l=e[a].clientRect,d=e[a+-1*t];let o=l[r?"width":"height"]*t;if(d){const s=r?"left":"top",c=r?"right":"bottom";-1===t?o-=d.clientRect[s]-l[c]:o+=l[s]-d.clientRect[c]}return o}_getItemOffsetPx(a,e,t){const r="horizontal"===this._orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_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 d=t[t.length-1].clientRect;return r?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this._orientation,d=this._itemPositions.findIndex(({drag:o,clientRect:s})=>{if(o===a)return!1;if(r){const c=l?r.x:r.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(s.left)&&e=Math.floor(s.top)&&tr._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Mv(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=zi(this.element);return r===l||l.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._itemPositions.forEach(({clientRect:t})=>{v1(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=vh(zi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function AE(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function yE(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const kA=$a({passive:!1,capture:!0});let SR=(()=>{class n{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 He.xQ,this.pointerUp=new He.xQ,this.scroll=new He.xQ,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,kA)})}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,kA)}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:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:kA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:kA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.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 Ri.y(r=>this._ngZone.runOutsideAngular(()=>{const d=o=>{this._activeDragInstances.length&&r.next(o)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Si.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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ER={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Cv=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=ER){return new vR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new TR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b),i.LFG(Ja),i.LFG(SR))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ME=new i.OlP("CDK_DRAG_PARENT"),wE=new i.OlP("CdkDropListGroup"),CE=new i.OlP("CDK_DRAG_CONFIG");let DR=0;const vE=new i.OlP("CdkDropList");let HR=(()=>{class n{constructor(e,t,r,l,d,o,s){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=l,this._dir=d,this._group=o,this._destroyed=new He.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+DR++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.sorted=new i.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,s&&this._assignDefaults(s),this._dropListRef.enterPredicate=(c,u)=>this.enterPredicate(c.data,u.data),this._dropListRef.sortPredicate=(c,u,h)=>this.sortPredicate(c,u.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),o&&o._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=je(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=n._dropLists.indexOf(this);e>-1&&n._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(_i(this._dir.value),tt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=Lc(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(d=>d.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(l=>l.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=je(this.sortingDisabled),e.autoScrollDisabled=je(this.autoScrollDisabled),e.autoScrollStep=oi(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}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:l,listAutoScrollDisabled:d,listOrientation:o}=e;this.disabled=null!=r&&r,this.sortingDisabled=null!=l&&l,this.autoScrollDisabled=null!=d&&d,this.orientation=o||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Cv),i.Y36(i.sBO),i.Y36(sr),i.Y36(Cn,8),i.Y36(wE,12),i.Y36(CE,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id),i.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:[i._Bn([{provide:wE,useValue:void 0},{provide:vE,useExisting:n}])]}),n})();const TE=new i.OlP("CdkDragHandle"),LR=new i.OlP("CdkDragPlaceholder"),kR=new i.OlP("CdkDragPreview");let RR=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,f){this.element=e,this.dropContainer=t,this._ngZone=l,this._viewContainerRef=d,this._dir=s,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new He.xQ,this.started=new i.vpe,this.released=new i.vpe,this.ended=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.dropped=new i.vpe,this.moved=new Ri.y(b=>{const V=this._dragRef.moved.pipe((0,ut.U)(ee=>({source:this,pointerPosition:ee.pointerPosition,event:ee.event,delta:ee.delta,distance:ee.distance}))).subscribe(b);return()=>{V.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5,zIndex:null==o?void 0:o.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),o&&this._assignDefaults(o),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=je(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()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Zt.q)(1),tt(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=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var e;const t=this.element.nativeElement;let r=t;this.rootElementSelector&&(r=void 0!==t.closest?t.closest(this.rootElementSelector):null===(e=t.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||t)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):zi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,l=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,d=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:oi(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(l).withPreviewTemplate(d).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,Zt.q)(1)).subscribe(()=>{var t;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(r.classList.contains("cdk-drag")){e.withParent((null===(t=n._dragInstances.find(l=>l.element.nativeElement===r))||void 0===t?void 0:t._dragRef)||null);break}r=r.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),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})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:l,previewClass:d,boundaryElement:o,draggingDisabled:s,rootElementSelector:c,previewContainer:u}=e;this.disabled=null!=s&&s,this.dragStartDelay=r||0,t&&(this.lockAxis=t),l&&(this.constrainPosition=l),d&&(this.previewClass=d),o&&(this.boundaryElement=o),c&&(this.rootElementSelector=c),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(_i(this._handles),(0,I.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,Ui.w)(e=>(0,Si.T)(...e.map(t=>t._stateChanges.pipe(_i(t))))),tt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vE,12),i.Y36(w.K0),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(CE,8),i.Y36(Cn,8),i.Y36(Cv),i.Y36(i.sBO),i.Y36(TE,10),i.Y36(ME,12))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,kR,5),i.Suo(r,LR,5),i.Suo(r,TE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._previewTemplate=l.first),i.iGM(l=i.CRH())&&(t._placeholderTemplate=l.first),i.iGM(l=i.CRH())&&(t._handles=l)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&i.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:[i._Bn([{provide:ME,useExisting:n}]),i.TTD]}),n})(),OR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Cv],imports:[xa]}),n})();const IR=["*"],xE=new i.OlP("MatChipRemove"),SE=new i.OlP("MatChipAvatar"),EE=new i.OlP("MatChipTrailingIcon");class BR{constructor(a){this._elementRef=a}}const NR=Nl(Bo(na(BR),"primary"),-1);let PA=(()=>{class n extends NR{constructor(e,t,r,l,d,o,s,c){super(e),this._ngZone=t,this._changeDetectorRef=d,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new He.xQ,this._onBlur=new He.xQ,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=o.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Y_(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=l||{},this._animationsDisabled="NoopAnimations"===s,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=je(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=je(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=je(e)}get removable(){return this._removable}set removable(e){this._removable=je(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,Zt.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(xi),i.Y36(cu,8),i.Y36(i.sBO),i.Y36(w.K0),i.Y36(Bn,8),i.$8M("tabindex"))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,SE,5),i.Suo(r,EE,5),i.Suo(r,xE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.avatar=l.first),i.iGM(l=i.CRH())&&(t.trailingIcon=l.first),i.iGM(l=i.CRH())&&(t.removeIcon=l.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(i.uIk("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),i.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),n})();const DE=new i.OlP("mat-chips-default-options");let jR=0,HE=(()=>{class n{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new i.vpe,this.placeholder="",this.id="mat-chip-list-input-"+jR++,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=je(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=je(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&&!vn(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}),null==e||e.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!vn(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(DE))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._keydown(l)})("keyup",function(l){return t._keyup(l)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(i.Ikx("id",t.id),i.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:[i.TTD]}),n})();const qR=op(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let YR=0;class WR{constructor(a,e){this.source=a,this.value=e}}let LE=(()=>{class n extends qR{constructor(e,t,r,l,d,o,s){super(o,l,d,s),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new He.xQ,this._uid="mat-chip-list-"+YR++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,u)=>c===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.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.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=je(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,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Dn.required))&&void 0!==l&&l}set required(e){this._required=je(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=je(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=je(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,Si.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,Si.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,Si.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,Si.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new jc(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(tt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(tt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(_i(null),tt(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 tn(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){this._ariaDescribedby=e.join(" ")}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(l=>null!=l.value&&this._compareWith(l.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 WR(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Cn,8),i.Y36(ld,8),i.Y36(Fo,8),i.Y36(Qc),i.Y36(Br,10))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,PA,5),2&e){let l;i.iGM(l=i.CRH())&&(t.chips=l)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.Ikx("id",t._uid),i.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("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),i.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{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:[i._Bn([{provide:Kc,useExisting:n}]),i.qOj],ngContentSelectors:IR,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),n})(),UR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Qc,{provide:DE,useValue:{separatorKeyCodes:[13]}}],imports:[[ht]]}),n})();function GR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",9),i.NdJ("mousedown",function(){return i.CHM(e),i.oxw(2).dragDisabled=!1}),i._uU(1,"drag_indicator"),i.qZA()}}function ZR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().edit(r)}),i._uU(1,"edit"),i.qZA()}}function $R(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().remove(r)}),i._uU(1,"cancel"),i.qZA()}}function JR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-chip",4),i.NdJ("removed",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.remove(l),d._sendEventToParent()}),i.YNc(1,GR,2,0,"mat-icon",5),i.TgZ(2,"div",6),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.readonly&&void 0!==d.attribute.displayName&&d.showValue(l,d.attribute.displayName)}),i._uU(3),i.qZA(),i.YNc(4,ZR,2,0,"mat-icon",7),i.YNc(5,$R,2,0,"mat-icon",8),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.xp6(1),i.hij(" ",e," "),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable)}}function QR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function XR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function KR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.TgZ(1,"span",13),i.TgZ(2,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().onShowChange()}),i.YNc(3,QR,2,0,"mat-icon",15),i.YNc(4,XR,2,0,"mat-icon",15),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),i.xp6(2),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function eO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",12),i.TgZ(1,"input",16),i.NdJ("matChipInputTokenEnd",function(r){return i.CHM(e),i.oxw().add(r)})("change",function(){return i.CHM(e),i.oxw()._sendEventToParent()}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(),t=i.MAs(2);i.xp6(1),i.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let tO=(()=>{class n{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new i.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=!Bu(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=Bu(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=Pi();t.width="400px",t.data={name:e},this.dialog.open(JH,t).afterClosed().subscribe(l=>{if(l){const d=this.attribute.value.indexOf(e);this.attribute.value.splice(d,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,gE(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=Pi();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open($H,r).afterClosed().subscribe(d=>{d&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=Pi();r.width="350px",r.data={value:e,title:t},this.dialog.open(CA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div"),i.TgZ(1,"mat-chip-list",0,1),i.NdJ("cdkDropListDropped",function(l){return t.drop(l),t._sendEventToParent()}),i.YNc(3,JR,6,9,"mat-chip",2),i.YNc(4,KR,5,4,"div",3),i.YNc(5,eO,2,3,"mat-form-field",3),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Q6J("cdkDropListDisabled",t.dragDisabled),i.xp6(2),i.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),i.xp6(1),i.Q6J("ngIf",t.values.length>t.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},directives:[LE,HR,w.sg,PA,RR,w.O5,bn,vr,Pt,mn,Hn,HE],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}"]}),n})(),iO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=Pi();r.width="350px",r.data={value:e,title:t},this.dialog.open(CA,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-form-field",0),i.TgZ(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.ALo(2,"multiWordDataCy"),i.qZA(),i.qZA()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.value),i.Q2q("data-cy","",i.lcZ(2,6,t.attribute.displayName),"-value"),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[mn,Hn,nn,_n,ur],pipes:[_v],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),nO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=Pi();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(CA,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-form-field",0),i.TgZ(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.qZA(),i.qZA()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[mn,Hn,Wp,nn,_n,ur],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();const rO=["map"];function aO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-boolean",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function sO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-list",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function oO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function lO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-string",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function cO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-integer",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let vv=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent2=new i.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&i.Gf(rO,5),2&e){let r;i.iGM(r=i.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&&(i.TgZ(0,"div"),i.YNc(1,aO,1,2,"perun-web-apps-attribute-value-boolean",0),i.YNc(2,sO,1,2,"perun-web-apps-attribute-value-list",0),i.TgZ(3,"div",1),i.NdJ("click",function(){return t._sendEventToParent2()}),i.YNc(4,oO,2,2,"perun-web-apps-attribute-value-map",2),i.qZA(),i.YNc(5,lO,1,2,"perun-web-apps-attribute-value-string",0),i.YNc(6,cO,1,2,"perun-web-apps-attribute-value-integer",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),i.xp6(2),i.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},directives:[w.O5,bR,tO,aR,iO,nO],styles:[""]}),n})();function dO(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function uO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeLanguage(l)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"uppercase"),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",i.lcZ(2,2,i.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function hO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13),i.TgZ(1,"mat-select",14),i.NdJ("valueChange",function(r){return i.CHM(e),i.oxw(3).currentLang=r}),i.YNc(2,uO,4,6,"mat-option",15),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentLang),i.xp6(1),i.Q6J("ngForOf",e.languages)}}function pO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"a",17),i._uU(2),i.qZA(),i.TgZ(3,"button",18),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).changeEmail()}),i.TgZ(4,"mat-icon"),i._uU(5," edit "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.MGl("href","mailto:",e.email,"",i.LSH),i.xp6(1),i.Oqu(e.email)}}function fO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeTimeZone(l)}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function mO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13),i.TgZ(1,"mat-select",19),i.NdJ("valueChange",function(r){return i.CHM(e),i.oxw(3).currentTimezone=r}),i.YNc(2,fO,2,2,"mat-option",15),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentTimezone),i.xp6(1),i.Q6J("ngForOf",e.timeZones)}}function gO(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1,"-"),i.qZA())}function _O(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value",22),2&n){const e=i.oxw(2).$implicit;i.Q6J("attribute",e.attribute)("readonly",!0)}}function bO(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,gO,2,0,"p",20),i.YNc(2,_O,1,2,"perun-web-apps-attribute-value",21),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",!e.attribute.value),i.xp6(1),i.Q6J("ngIf",e.attribute.value)}}function AO(n,a){if(1&n&&(i.TgZ(0,"tr"),i.TgZ(1,"td",7),i.TgZ(2,"div",8),i._uU(3),i.qZA(),i.qZA(),i.TgZ(4,"td",9),i.YNc(5,hO,3,2,"mat-form-field",10),i.YNc(6,pO,6,2,"div",11),i.YNc(7,mO,3,2,"mat-form-field",10),i.YNc(8,bO,3,2,"div",12),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(2),i.Q6J("matTooltip",e["tooltip_"+t.currentLang]),i.xp6(1),i.hij(" ",e["displayName_"+t.currentLang]," "),i.xp6(1),i.Q6J("ngSwitch",e.attribute.friendlyName),i.xp6(1),i.Q6J("ngSwitchCase","preferredLanguage"),i.xp6(1),i.Q6J("ngSwitchCase","preferredMail"),i.xp6(1),i.Q6J("ngSwitchCase","timezone")}}function yO(n,a){if(1&n&&(i.TgZ(0,"table",4),i.TgZ(1,"tbody"),i.TgZ(2,"tr"),i.TgZ(3,"td",5),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"td"),i._uU(8),i.qZA(),i.qZA(),i.YNc(9,AO,9,6,"tr",6),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,"PROFILE_PAGE.NAME"))),i.xp6(4),i.Oqu(e.fullName),i.xp6(1),i.Q6J("ngForOf",e.additionalAttributes)}}let MO=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,f){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=l,this.usersManagerService=d,this.route=o,this.router=s,this.notificator=c,this.storeService=u,this.apiRequestConfiguration=h,this.preferredLangService=f,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=XP.tz.names().filter(b=>!b.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(b=>this.successMessage=b)}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(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const l=Pi();l.width="600px",this.dialog.open(lL,l).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{var r,l,d,o,s;this.fullName=(new uA).transform(t);const c=t.userAttributes.find(ee=>"preferredMail"===ee.friendlyName);this.email=null!==(r=null==c?void 0:c.value)&&void 0!==r?r:"-",this.languageAttribute=t.userAttributes.find(ee=>"preferredLanguage"===ee.friendlyName);const u=null!==(d=null===(l=this.languageAttribute)||void 0===l?void 0:l.value)&&void 0!==d?d:null,h=this.preferredLangService.getPreferredLanguage(u);this.translateService.use(h),this.currentLang=h,this.timezoneAttribute=t.userAttributes.find(ee=>"timezone"===ee.friendlyName),this.currentTimezone=null!==(s=null===(o=this.timezoneAttribute)||void 0===o?void 0:o.value)&&void 0!==s?s:"-";const f=this.storeService.get("profile_page_attributes");let b=0;const V=this.storeService.get("supported_languages");f.forEach(ee=>{const he=t.userAttributes.find(Oe=>Oe.friendlyName===ee.friendly_name);he?(b++,this.addAttribute(he,ee,V)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${ee.is_virtual?"virt":"def"}:${ee.friendly_name}`).subscribe(Oe=>{this.addAttribute(Oe,ee,V),b++,this.loading=b!==f.length}),this.loading=b!==f.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=Pi();e.width="350px",e.data={userId:this.userId},this.dialog.open(KH,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{var t;this.email=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"-"})}addAttribute(e,t,r){var l,d;const o={attribute:e};for(const s of r)o[`displayName_${s}`]=(null===(l=null==t?void 0:t[`display_name_${s}`])||void 0===l?void 0:l.length)?t[`display_name_${s}`]:e.displayName,o[`tooltip_${s}`]=null!==(d=t[`tooltip_${s}`])&&void 0!==d?d:"";this.additionalAttributes.push(o)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Ji),i.Y36(Wi),i.Y36(ni),i.Y36(Hi),i.Y36(nr),i.Y36(rt),i.Y36(Tr),i.Y36(zt),i.Y36(dA),i.Y36(FC))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.YNc(1,dO,1,0,"mat-spinner",1),i.YNc(2,yO,10,7,"table",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,Ln,w.sg,vr,w.RF,w.n9,mn,ku,La,Pt,bn,w.ED,vv],pipes:[lt,si,w.gd],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}"]}),n})();const wO=["mat-sort-header",""];function CO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!1}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6),i._UZ(4,"div",7),i._UZ(5,"div",8),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const vO=["*"],gd=iw.ENTERING+" "+tw.STANDARD_CURVE,hf={indicator:wi("indicator",[Nt("active-asc, asc",Re({transform:"translateY(0px)"})),Nt("active-desc, desc",Re({transform:"translateY(10px)"})),Ht("active-asc <=> active-desc",Ct(gd))]),leftPointer:wi("leftPointer",[Nt("active-asc, asc",Re({transform:"rotate(-45deg)"})),Nt("active-desc, desc",Re({transform:"rotate(45deg)"})),Ht("active-asc <=> active-desc",Ct(gd))]),rightPointer:wi("rightPointer",[Nt("active-asc, asc",Re({transform:"rotate(45deg)"})),Nt("active-desc, desc",Re({transform:"rotate(-45deg)"})),Ht("active-asc <=> active-desc",Ct(gd))]),arrowOpacity:wi("arrowOpacity",[Nt("desc-to-active, asc-to-active, active",Re({opacity:1})),Nt("desc-to-hint, asc-to-hint, hint",Re({opacity:.54})),Nt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Re({opacity:0})),Ht("* => asc, * => desc, * => active, * => hint, * => void",Ct("0ms")),Ht("* <=> *",Ct(gd))]),arrowPosition:wi("arrowPosition",[Ht("* => desc-to-hint, * => desc-to-active",Ct(gd,Hl([Re({transform:"translateY(-25%)"}),Re({transform:"translateY(0)"})]))),Ht("* => hint-to-desc, * => active-to-desc",Ct(gd,Hl([Re({transform:"translateY(0)"}),Re({transform:"translateY(25%)"})]))),Ht("* => asc-to-hint, * => asc-to-active",Ct(gd,Hl([Re({transform:"translateY(25%)"}),Re({transform:"translateY(0)"})]))),Ht("* => hint-to-asc, * => active-to-asc",Ct(gd,Hl([Re({transform:"translateY(0)"}),Re({transform:"translateY(-25%)"})]))),Nt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Re({transform:"translateY(0)"})),Nt("hint-to-desc, active-to-desc, desc",Re({transform:"translateY(-25%)"})),Nt("hint-to-asc, active-to-asc, asc",Re({transform:"translateY(25%)"}))]),allowChildren:wi("allowChildren",[Ht("* <=> *",[yr("@*",Jg(),{optional:!0})])])};let RA=(()=>{class n{constructor(){this.changes=new He.xQ}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xO={provide:RA,deps:[[new i.FiY,new i.tp0,RA]],useFactory:function TO(n){return n||new RA}},SO=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),EO=am(ts(class{}));let ps=(()=>{class n extends EO{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new He.xQ,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(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,l;if(!e)return"";const d=null!==(r=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==r?r:!!(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableClear);let o=function DO(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,d),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(SO,8))},n.\u0275dir=i.lG2({type:n,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:[i.qOj,i.TTD]}),n})();const HO=ts(class{});let S1=(()=>{class n extends HO{constructor(e,t,r,l,d,o,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=o,this._ariaDescriber=s,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(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('[role="button"]'),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,Si.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 n.\u0275fac=function(e){return new(e||n)(i.Y36(RA),i.Y36(i.sBO),i.Y36(ps,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(Rr),i.Y36(i.SBq),i.Y36(Bh,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.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:[i.qOj],attrs:wO,ngContentSelectors:vO,decls:4,vars:6,consts:[["role","button",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&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,CO,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},directives:[w.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-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}\n"],encapsulation:2,data:{animation:[hf.indicator,hf.leftPointer,hf.rightPointer,hf.arrowOpacity,hf.arrowPosition,hf.allowChildren]},changeDetection:0}),n})(),OA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[xO],imports:[[w.ez,ht]]}),n})(),LO=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),kE=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),kO=(()=>{class n{transform(e){var t;const r=e.find(l=>"mail"===l.friendlyName);return null!==(t=null==r?void 0:r.value)&&void 0!==t?t:"N/A"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getMailFromAttributes",type:n,pure:!0}),n})();function PO(n,a){1&n&&i._UZ(0,"th",18)}function RO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"span",20),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.TgZ(4,"mat-checkbox",21),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),i.xp6(3),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function OO(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function IO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.id," ")}}function BO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function NO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.ALo(2,"getMailFromAttributes"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.attributes)," ")}}function VO(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function zO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function FO(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function jO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.login," ")}}function qO(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function YO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function WO(n,a){1&n&&i._UZ(0,"tr",26)}const PE=function(n,a){return["/admin","users",n,"identities",a]};function UO(n,a){if(1&n&&i._UZ(0,"tr",27),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.WLB(6,PE,t.userId,e.userExtSource.id))("routerLink",t.disableRouting?null:i.WLB(9,PE,t.userId,e.userExtSource.id))}}function GO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ZO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let $O=(()=>{class n{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new tn,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=tf}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(l=>"mail"===l.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 qo(this.userExtSources),this.setDataSource()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e.userExtSource)?"deselect":"select"} row ${e.userExtSource.id+1}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nr),i.Y36(ys))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[i.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,PO,1,0,"th",4),i.YNc(5,RO,5,10,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,OO,4,5,"th",7),i.YNc(8,IO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,BO,4,5,"th",10),i.YNc(11,NO,3,3,"td",8),i.BQk(),i.ynx(12,11),i.YNc(13,VO,4,5,"th",7),i.YNc(14,zO,2,1,"td",8),i.BQk(),i.ynx(15,12),i.YNc(16,FO,4,5,"th",7),i.YNc(17,jO,2,1,"td",8),i.BQk(),i.ynx(18,13),i.YNc(19,qO,4,5,"th",7),i.YNc(20,YO,3,4,"td",14),i.BQk(),i.YNc(21,WO,1,0,"tr",15),i.YNc(22,UO,1,12,"tr",16),i.qZA(),i.qZA(),i.qZA(),i.YNc(23,GO,3,3,"perun-web-apps-alert",17),i.YNc(24,ZO,4,5,"perun-web-apps-alert",17)),2&e&&(i.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(19),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),i.xp6(1),i.Q6J("ngIf",0===t.userExtSources.length))},directives:[os,Zs,ps,ds,cs,us,ls,hs,vr,tc,S1,$s,Qs,Js,Xs,kE,O,w.O5,Nn],pipes:[lt,si,kO,w.uU],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}"]}),n})();function JO(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function QO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).addIdentity()}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return r.removeIdentity(r.certSelection)}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",11),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,10,i.lcZ(4,12,"IDENTITIES.CERT"))),i.xp6(4),i.hij(" ",i.lcZ(7,14,i.lcZ(8,16,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.certSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,18,i.lcZ(12,20,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function XO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){return i.CHM(e),i.oxw().addIdentity()}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.removeIdentity(r.idpSelection)}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",7),i.YNc(14,QO,14,22,"div",2),i.TgZ(15,"h1",8),i._uU(16),i.ALo(17,"translate"),i.ALo(18,"customTranslate"),i.TgZ(19,"mat-icon",9),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i._uU(22," info_outline "),i.qZA(),i.qZA(),i._UZ(23,"perun-web-apps-user-ext-sources-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,17,i.lcZ(4,19,"IDENTITIES.IDP"))),i.xp6(4),i.hij(" ",i.lcZ(7,21,i.lcZ(8,23,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.idpSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,25,i.lcZ(12,27,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),i.xp6(1),i.Q6J("ngIf",e.displayCertificates),i.xp6(2),i.hij(" ",i.lcZ(17,29,i.lcZ(18,31,"IDENTITIES.OTHER"))," "),i.xp6(3),i.Q6J("matTooltip",i.lcZ(20,33,i.lcZ(21,35,"IDENTITIES.OTHER_TOOLTIP"))),i.xp6(4),i.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let KO=(()=>{class n{constructor(e,t,r,l,d){this.usersManagerService=e,this.storage=t,this.registrarManagerService=r,this.dialog=l,this.attributesManagerService=d,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new tn(!0,[]),this.certSelection=new tn(!0,[]),this.otherSelection=new tn(!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","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("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.getUserExtSourceAttributeByName(r.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(l=>{(null==l?void 0:l.value)?(r.userExtSource.extSource.name=l.value,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(d=>{t--,(null==d?void 0:d.value)&&(r.userExtSource.extSource.name=d.value),this.loading=0!==t,this.addToList(r)})})})})}addIdentity(){this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.get("consolidator_base_url");window.location.href=`${r}${(null==t?void 0:t.endsWith("X509"))?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}removeIdentity(e){const t=Pi();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(WH,t).afterClosed().subscribe(l=>{l&&(e.clear(),this.refreshTables())})}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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(zt),i.Y36(ri),i.Y36(Ji),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",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&&(i.TgZ(0,"div",0),i.YNc(1,JO,1,0,"mat-spinner",1),i.YNc(2,XO,24,37,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,Ln,Pt,$O,bn,vr],pipes:[lt,si],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n})();const eI=["panel"];function tI(n,a){if(1&n&&(i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA()),2&n){const e=a.id,t=i.oxw();i.Q6J("id",t.id)("ngClass",t._classList),i.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const iI=["*"];let nI=0;class rI{constructor(a,e){this.source=a,this.option=e}}const aI=na(class{}),RE=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function sI(){return{autoActiveFirstOption:!1}}});let oI=(()=>{class n extends aI{constructor(e,t,r,l){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=re.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.vpe,this.opened=new i.vpe,this.closed=new i.vpe,this.optionActivated=new i.vpe,this._classList={},this.id="mat-autocomplete-"+nI++,this.inertGroups=(null==l?void 0:l.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}set classList(e){this._classList=e&&e.length?function Vv(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Vg(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 rI(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(RE),i.Y36(xi))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(i.Rgc,7),i.Gf(eI,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.template=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),lI=(()=>{class n extends oI{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,up,5),i.Suo(r,La,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.optionGroups=l),i.iGM(l=i.CRH())&&(t.options=l)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i._Bn([{provide:um,useExisting:n}]),i.qOj],ngContentSelectors:iI,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,tI,3,4,"ng-template"))},directives:[w.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}\n"],encapsulation:2,changeDetection:0}),n})();const OE=new i.OlP("mat-autocomplete-scroll-strategy"),dI={provide:OE,deps:[Zr],useFactory:function cI(n){return()=>n.scrollStrategies.reposition()}},uI={provide:Zn,useExisting:(0,i.Gpc)(()=>IE),multi:!0};let hI=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,f){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=l,this._changeDetectorRef=d,this._dir=s,this._formField=c,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=re.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new He.xQ,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=ma(()=>{const b=this.autocomplete?this.autocomplete.options:null;return b?b.changes.pipe(_i(b),(0,Ui.w)(()=>(0,Si.T)(...b.map(V=>V.onSelectionChange)))):this._zone.onStable.pipe((0,Zt.q)(1),(0,Ui.w)(()=>this.optionSelections))}),this._scrollStrategy=o}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&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();void 0!==e&&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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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,Si.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,jt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,jt.h)(()=>this._overlayAttached)):(0,$e.of)()).pipe((0,ut.U)(e=>e instanceof W_?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Si.T)(Ta(this._document,"click"),Ta(this._document,"auxclick"),Ta(this._document,"touchend")).pipe((0,jt.h)(e=>{const t=Un(e),r=this._formField?this._formField._elementRef.nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&(!r||!r.contains(t))&&(!l||!l.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode;if(27===t&&!vn(e)&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!vn(e))this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,l=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):l&&this._canOpen()&&this.openPanel(),(l||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,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}_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,Zt.q)(1)),t=this.autocomplete.options.changes.pipe((0,I.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,te.g)(0));return(0,Si.T)(e,t).pipe((0,Ui.w)(()=>{const r=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,Zt.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,r=null!=t?t:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(e){const t=e&&e.source;t&&(this._clearPreviousSelectedOption(t),this._setTriggerValue(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(){var e;let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new vl(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(l=>{(27===l.keyCode&&!vn(l)||38===l.keyCode&&vn(l,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),l.stopPropagation(),l.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})})),t&&!t.hasAttached()&&(t.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 Hh({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,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let d;d="above"===this.position?l:"below"===this.position?t:[...t,...l],e.withPositions(d)}_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=hm(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const l=t.options.toArray()[e];if(l){const d=l._getHostElement(),o=U_(d.offsetTop,d.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(o)}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Zr),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(OE),i.Y36(Cn,8),i.Y36(as,9),i.Y36(w.K0,8),i.Y36(Ja),i.Y36(RE,8))},n.\u0275dir=i.lG2({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[i.TTD]}),n})(),IE=(()=>{class n extends hI{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&i.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(l){return t._handleInput(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.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)},exportAs:["matAutocompleteTrigger"],features:[i._Bn([uI]),i.qOj]}),n})(),pI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[dI],imports:[[zc,du,ht,w.ez],xa,du,ht]}),n})(),fI=(()=>{class n{transform(e){var t;return null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"never"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"validateExpiration",type:n,pure:!0}),n})();function mI(n,a){1&n&&i._UZ(0,"th",17)}function gI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.ALo(2,"validateExpiration"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled","never"===i.lcZ(2,3,e.expirationAttribute))}}function _I(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function bI(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.name)}}function AI(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function yI(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.description)}}function MI(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function wI(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.ALo(2,"validateExpiration"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.expirationAttribute)," ")}}function CI(n,a){1&n&&i._UZ(0,"th",20)}function vI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22),i.TgZ(1,"button",24),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().extend(l)}),i.ALo(2,"validateExpiration"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(1),i.Q6J("disabled","never"===i.lcZ(2,2,e.expirationAttribute)),i.xp6(2),i.hij(" ",i.lcZ(4,4,i.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function TI(n,a){1&n&&i._UZ(0,"tr",25)}function xI(n,a){1&n&&i._UZ(0,"tr",26)}function SI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",27),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let BE=(()=>{class n{constructor(){this.members=[],this.searchString="",this.selection=new tn(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new i.vpe,this.pageSizeOptions=tf}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){var r,l;switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return null!==(l=null===(r=null==e?void 0:e.expirationAttribute)||void 0===r?void 0:r.value)&&void 0!==l?l:"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new qo(this.members),this.setDataSource()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.entity.id+1}`}extend(e){this.extendMembership.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,mI,1,0,"th",4),i.YNc(5,gI,3,5,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,_I,4,5,"th",7),i.YNc(8,bI,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,AI,4,5,"th",7),i.YNc(11,yI,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,MI,4,5,"th",12),i.YNc(14,wI,3,3,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,CI,1,0,"th",7),i.YNc(17,vI,6,8,"td",10),i.BQk(),i.YNc(18,TI,1,0,"tr",14),i.YNc(19,xI,1,0,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,SI,4,5,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",!t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length))},directives:[os,Zs,ps,ds,cs,us,ls,hs,tc,S1,Pt,$s,Qs,Js,Xs,w.O5,Nn],pipes:[fI,lt,si],styles:[""]}),n})();function EI(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function DI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",7),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",8),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.TgZ(7,"mat-autocomplete",9,10),i.NdJ("optionSelected",function(r){return i.CHM(e),i.oxw().filterByVo(r)}),i.TgZ(9,"mat-option",11),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i.YNc(13,EI,2,2,"mat-option",12),i.ALo(14,"async"),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(8),t=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,7,"GROUPS.SELECT_VO")),i.xp6(2),i.s9C("placeholder",i.lcZ(5,9,i.lcZ(6,11,"GROUPS.SELECT_VO"))),i.Q6J("formControl",t.myControl)("matAutocomplete",e),i.xp6(3),i.Q6J("displayWith",t.displayFn),i.xp6(3),i.Oqu(i.lcZ(11,13,i.lcZ(12,15,"GROUPS.ALL"))),i.xp6(3),i.Q6J("ngForOf",i.lcZ(14,17,t.filteredVos))}}function HI(n,a){1&n&&i._UZ(0,"mat-spinner",14)}function LI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const kI=function(){return["name","description","expirationAttribute","extend"]};function PI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-membership-list",17),i.NdJ("extendMembership",function(r){return i.CHM(e),i.oxw().extendMembership(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,4,i.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),i.xp6(3),i.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",i.DdM(8,kI))}}const RI=function(){return["name","description"]};function OI(n,a){if(1&n&&(i.TgZ(0,"div",18),i.TgZ(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i._UZ(5,"perun-web-apps-membership-list",19),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),i.xp6(3),i.Q6J("members",e.adminMemberships)("displayedColumns",i.DdM(7,RI))}}let II=(()=>{class n{constructor(e,t,r,l,d,o){this.usersService=e,this.memberService=t,this.groupService=r,this.store=l,this.vosManagerService=d,this.attributesManagerService=o,this.loading=!1,this.vos=[],this.myControl=new Cr,this.selection=new tn(!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(_i(""),(0,ut.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(l=>{t--,this.groupService.getMemberGroups(l).subscribe(d=>{e+=d.length,this.loading=0===e&&0!==t,d.forEach(o=>{this.attributesManagerService.getMemberGroupAttributes(l,o.id).subscribe(s=>{e--,this.userMemberships.push({entity:o,expirationAttribute:s.find(c=>"groupMembershipExpiration"===c.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(l=>{l.forEach(d=>{this.adminMemberships.push({entity:d,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(l=>{let d=l.length;this.loading=0!==d,l.forEach(o=>{this.attributesManagerService.getMemberGroupAttributes(r.id,o.id).subscribe(s=>{d--,this.userMemberships.push({entity:o,expirationAttribute:s.find(c=>"groupMembershipExpiration"===c.friendlyName)}),this.loading=0!==d})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(l=>{this.adminMemberships.push({entity:l,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.get("registrar_base_url"),r=e.entity,l=this.vos.find(d=>d.id===r.voId).shortName;window.location.href=`${t}?vo=${l}&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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(Mt),i.Y36(Di),i.Y36(zt),i.Y36(_s),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,DI,15,19,"mat-form-field",2),i.YNc(6,HI,1,0,"mat-spinner",3),i.YNc(7,LI,4,5,"perun-web-apps-alert",4),i.YNc(8,PI,6,9,"div",5),i.YNc(9,OI,6,8,"div",6),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"GROUPS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},directives:[w.O5,mn,rs,Hn,nn,IE,_n,ss,lI,La,w.sg,Ln,Nn,BE],pipes:[lt,si,w.Ov],styles:[""]}),n})();function BI(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function NI(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let pf=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Cr}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,BI,2,4,"input",1),i.YNc(2,NI,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},directives:[mn,w.O5,Hn,nn,LO,_n,ss],pipes:[lt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),n})(),VI=0;const Tv=new i.OlP("CdkAccordion");let zI=(()=>{class n{constructor(){this._stateChanges=new He.xQ,this._openCloseAllActions=new He.xQ,this.id="cdk-accordion-"+VI++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=je(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 n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:Tv,useExisting:n}]),i.TTD]}),n})(),FI=0,jI=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=re.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+FI++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=je(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=je(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Tv,12),i.Y36(i.sBO),i.Y36(Mp))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:Tv,useValue:void 0}])]}),n})(),qI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const YI=["body"];function WI(n,a){}const UI=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],GI=["mat-expansion-panel-header","*","mat-action-row"];function ZI(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const $I=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],JI=["mat-panel-title","mat-panel-description","*"],xv=new i.OlP("MAT_ACCORDION"),NE="225ms cubic-bezier(0.4,0.0,0.2,1)",VE={indicatorRotate:wi("indicatorRotate",[Nt("collapsed, void",Re({transform:"rotate(0deg)"})),Nt("expanded",Re({transform:"rotate(180deg)"})),Ht("expanded <=> collapsed, void => collapsed",Ct(NE))]),bodyExpansion:wi("bodyExpansion",[Nt("collapsed, void",Re({height:"0px",visibility:"hidden"})),Nt("expanded",Re({height:"*",visibility:"visible"})),Ht("expanded <=> collapsed, void => collapsed",Ct(NE))])};let E1=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),QI=0;const zE=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let D1=(()=>{class n extends jI{constructor(e,t,r,l,d,o,s){super(e,t,r),this._viewContainerRef=l,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new He.xQ,this._headerId="mat-expansion-panel-header-"+QI++,this._bodyAnimationDone=new He.xQ,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(Rh((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),s&&(this.hideToggle=s.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=je(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.opened.pipe(_i(null),(0,jt.h)(()=>this.expanded&&!this._portal),(0,Zt.q)(1)).subscribe(()=>{this._portal=new vl(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(xv,12),i.Y36(i.sBO),i.Y36(Mp),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(Bn,8),i.Y36(zE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,E1,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(YI,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.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:[i._Bn([{provide:xv,useValue:void 0}]),i.qOj,i.TTD],ngContentSelectors:GI,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&&(i.F$t(UI),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,WI,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},directives:[Qf],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[VE.bodyExpansion]},changeDetection:0}),n})();class XI{}const KI=Nl(XI);let H1=(()=>{class n extends KI{constructor(e,t,r,l,d,o,s){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=o,this._parentChangeSubscription=re.w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,jt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):Mn.E;this.tabIndex=parseInt(s||"")||0,this._parentChangeSubscription=(0,Si.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,jt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,jt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.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:vn(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(D1,1),i.Y36(i.SBq),i.Y36(Rr),i.Y36(i.sBO),i.Y36(zE,8),i.Y36(Bn,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.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:[i.qOj],ngContentSelectors:JI,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t($I),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,ZI,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},directives:[w.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[VE.indicatorRotate]},changeDetection:0}),n})(),IA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),BA=(()=>{class n extends zI{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=je(e)}ngAfterContentInit(){this._headers.changes.pipe(_i(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new jc(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,H1,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:xv,useExisting:n}]),i.qOj]}),n})(),Sv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ht,qI,Tl]]}),n})();function eB(n,a){1&n&&(i.TgZ(0,"mat-icon",1),i.ALo(1,"translate"),i._uU(2," visibility\n"),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let tB=(()=>{class n{constructor(){this.recentIds=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&i.YNc(0,eB,3,3,"mat-icon",0),2&e&&i.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},directives:[w.O5,bn,vr],pipes:[lt],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),n})();function iB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3,"check_circle_outline"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function nB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",5),i._uU(3,"block"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function rB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",6),i._uU(3,"report"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.hYB("matTooltip","",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function aB(n,a){1&n&&(i.TgZ(0,"span",7),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",8),i._uU(3,"autorenew"),i.qZA(),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let sB=(()=>{class n{constructor(e){this.dialog=e,this.status="",this.statusChange=new i.vpe}changeStatus(){const e=Pi();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(kL,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",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&&(i.TgZ(0,"div",0),i.YNc(1,iB,4,3,"span",1),i.YNc(2,nB,4,3,"span",1),i.YNc(3,rB,4,4,"span",1),i.YNc(4,aB,4,3,"span",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","ACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","FAILED"===t.status),i.xp6(1),i.Q6J("ngIf","PROCESSING"===t.status))},directives:[w.O5,vr,bn],pipes:[lt],styles:[""]}),n})(),oB=(()=>{class n{transform(e){if(null==e)return null;let r="";return e.forEach(function(l){r=r.concat(l.tagName)}),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"resourceTagsToString",type:n,pure:!0}),n})(),lB=(()=>{class n{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getResourceRoute",type:n,pure:!0}),n})();function cB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",24),i.TgZ(1,"mat-checkbox",25),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function dB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",26),i.TgZ(1,"span",27),i.ALo(2,"translate"),i.TgZ(3,"mat-checkbox",28),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),i.xp6(2),i.Q2q("data-cy","",e.name,"-checkbox"),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function uB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function hB(n,a){if(1&n&&(i.TgZ(0,"td",30),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function pB(n,a){1&n&&i._UZ(0,"th",31)}function fB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._UZ(1,"perun-web-apps-recently-viewed-icon",33),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("recentIds",t.recentIds)("id",e.id)}}function mB(n,a){1&n&&i._UZ(0,"th",31)}function gB(n,a){1&n&&(i.TgZ(0,"mat-icon",35),i.ALo(1,"translate"),i._uU(2,"account_tree"),i.qZA()),2&n&&i.Q6J("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function _B(n,a){if(1&n&&(i.TgZ(0,"td",32),i.YNc(1,gB,3,3,"mat-icon",34),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.sourceGroupId)}}function bB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function AB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function yB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function MB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.vo.name)}}function wB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function CB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.voId)}}function vB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function TB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",32),i.TgZ(1,"perun-web-apps-group-resource-status",36),i.NdJ("mouseenter",function(){return i.CHM(e),i.oxw().disabledRouting=!0})("mouseleave",function(){i.CHM(e);const r=i.oxw();return r.disabledRouting=r.disableRouting})("statusChange",function(){return i.CHM(e),i.oxw().refreshTable.emit()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function xB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function SB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facility.name)}}function EB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function DB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facilityId)}}function HB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function LB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.ALo(2,"resourceTagsToString"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.resourceTags)," ")}}function kB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function PB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function RB(n,a){1&n&&i._UZ(0,"tr",37)}const OB=function(n){return[n]};function IB(n,a){if(1&n&&(i._UZ(0,"tr",38),i.ALo(1,"getResourceRoute"),i.ALo(2,"getResourceRoute")),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",i.VKq(12,OB,t.disabledRouting?null:i.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:i.xi3(2,9,e,t.routingVo))}}function BB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function NB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let VB=(()=>{class n{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new tn(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=tf,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new i.vpe,this.allSelected=new i.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,l)=>n.getDataForColumn(r,l,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 d="";return e.resourceTags.forEach(function(o){d=d.concat(o.tagName)}),d}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()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new qo,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>m1(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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()}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}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 n.\u0275fac=function(e){return new(e||n)(i.Y36(ys),i.Y36(zC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.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:[i.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["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"],["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"],["mat-header-cell","",1,"align-checkbox"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,cB,2,3,"th",4),i.YNc(5,dB,4,9,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,uB,3,3,"th",7),i.YNc(8,hB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,pB,1,0,"th",10),i.YNc(11,fB,2,2,"td",11),i.BQk(),i.ynx(12,12),i.YNc(13,mB,1,0,"th",10),i.YNc(14,_B,2,1,"td",11),i.BQk(),i.ynx(15,13),i.YNc(16,bB,3,3,"th",7),i.YNc(17,AB,2,1,"td",11),i.BQk(),i.ynx(18,14),i.YNc(19,yB,3,3,"th",7),i.YNc(20,MB,2,1,"td",11),i.BQk(),i.ynx(21,15),i.YNc(22,wB,3,3,"th",7),i.YNc(23,CB,2,1,"td",11),i.BQk(),i.ynx(24,16),i.YNc(25,vB,3,3,"th",7),i.YNc(26,TB,2,5,"td",11),i.BQk(),i.ynx(27,17),i.YNc(28,xB,3,3,"th",7),i.YNc(29,SB,2,1,"td",11),i.BQk(),i.ynx(30,18),i.YNc(31,EB,3,3,"th",7),i.YNc(32,DB,2,1,"td",11),i.BQk(),i.ynx(33,19),i.YNc(34,HB,3,3,"th",7),i.YNc(35,LB,3,3,"td",11),i.BQk(),i.ynx(36,20),i.YNc(37,kB,3,3,"th",7),i.YNc(38,PB,2,1,"td",11),i.BQk(),i.YNc(39,RB,1,0,"tr",21),i.YNc(40,IB,3,14,"tr",22),i.qZA(),i.qZA(),i.qZA(),i.YNc(41,BB,3,3,"perun-web-apps-alert",23),i.YNc(42,NB,3,3,"perun-web-apps-alert",23)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(37),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),i.xp6(1),i.Q6J("ngIf",0===t.resources.length))},directives:[os,Zs,ps,ds,cs,us,tc,ls,hs,vr,S1,tB,w.O5,bn,sB,$s,Qs,Js,Xs,kE,O,Nn],pipes:[lt,oB,lB],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}"]}),n})();function zB(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const FB=function(){return["name","description"]};function jB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-resources-list",9),2&n){const e=i.oxw(3);i.Q6J("resources",e.resources)("displayedColumns",i.DdM(3,FB))("disableRouting",!0)}}function qB(n,a){if(1&n&&(i.YNc(0,zB,1,0,"mat-spinner",6),i.YNc(1,jB,1,4,"perun-web-apps-resources-list",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function YB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",4),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw().getMemberData(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,qB,2,2,"ng-template",5),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let WB=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=l,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(Mt),i.Y36(fi),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"mat-accordion"),i.YNc(9,YB,5,1,"mat-expansion-panel",3),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"SERVICES.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,7,i.lcZ(7,9,"SERVICES.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[pf,BA,w.sg,D1,H1,IA,E1,w.O5,Ln,VB],pipes:[lt,si],styles:[""]}),n})();function UB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilter(r)}),i.qZA()}2&n&&i.Q6J("placeholder","ORGANIZATIONS.FILTER")}function GB(n,a){1&n&&i._UZ(0,"mat-spinner",6)}const ZB=function(){return["name","expirationAttribute","extend"]};function $B(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-membership-list",11),i.NdJ("extendMembership",function(r){return i.CHM(e),i.oxw(2).extendMembership(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",i.DdM(4,ZB))}}function JB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function QB(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,$B,2,5,"div",9),i.YNc(6,JB,4,5,"perun-web-apps-alert",10),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),i.xp6(3),i.Q6J("ngIf",0!==e.userMemberships.length),i.xp6(1),i.Q6J("ngIf",0===e.userMemberships.length)}}function XB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const KB=function(){return["name"]};function e3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-membership-list",14),2&n){const e=i.oxw(2);i.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",i.DdM(3,KB))}}function t3(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,XB,4,5,"perun-web-apps-alert",10),i.YNc(6,e3,1,4,"perun-web-apps-membership-list",13),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),i.xp6(3),i.Q6J("ngIf",!e.adminMemberships.length),i.xp6(1),i.Q6J("ngIf",e.adminMemberships.length)}}let n3=(()=>{class n{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new tn(!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.get("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(l=>{const d=r.find(o=>o.voId===l.id);d?this.membersService.getRichMemberWithAttributes(d.id).subscribe(o=>{const s=o.memberAttributes.find(c=>"membershipExpiration"===c.friendlyName);t.push({entity:l,expirationAttribute:s}),this.isEverythingLoaded()}):(t.push({entity:l,expirationAttribute:null}),this.isEverythingLoaded())})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(zt),i.Y36(Mt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,UB,1,1,"perun-web-apps-immediate-filter",2),i.YNc(6,GB,1,0,"mat-spinner",3),i.YNc(7,QB,7,7,"div",4),i.YNc(8,t3,7,7,"div",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"ORGANIZATIONS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,pf,Ln,BE,Nn],pipes:[lt,si],styles:[""]}),n})(),r3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i._UZ(1,"router-outlet"),i.qZA())},directives:[hi],styles:[""]}),n})(),a3=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"label"),i._UZ(10,"input",2),i.qZA(),i.qZA(),i.TgZ(11,"div",3),i.TgZ(12,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",5),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),i.xp6(5),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),i.xp6(4),i.Q6J("value",t.password),i.xp6(3),i.hij(" ",i.lcZ(14,14,i.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),i.xp6(3),i.Q6J("cdkCopyToClipboard",t.password),i.xp6(1),i.hij(" ",i.lcZ(18,18,i.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[En,fn,ji,Pt,ev],pipes:[lt,si],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),n})();function s3(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function o3(n,a){1&n&&i._UZ(0,"th",16)}function l3(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function c3(n,a){1&n&&i._UZ(0,"tr",18)}function d3(n,a){1&n&&i._UZ(0,"tr",19)}function u3(n,a){if(1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",9),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"table",10),i.ynx(10,11),i.YNc(11,o3,1,0,"th",12),i.YNc(12,l3,2,1,"td",13),i.BQk(),i.YNc(13,c3,1,0,"tr",14),i.YNc(14,d3,1,0,"tr",15),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,i.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(7,9,i.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}let h3=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new qo(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(Hi))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,s3,1,0,"mat-spinner",2),i.qZA(),i.YNc(6,u3,15,13,"div",3),i.TgZ(7,"div",4),i.TgZ(8,"button",5),i.NdJ("click",function(){return t.onCancel()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"button",6),i.NdJ("click",function(){return t.onSubmit()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(10,9,i.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(14,13,i.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[En,w.O5,Ln,fn,Zs,ds,cs,us,ls,hs,$s,Qs,Js,Xs,ji,Pt],pipes:[lt,si],styles:[""]}),n})();function p3(n,a){1&n&&i._UZ(0,"th",12)}function f3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",13),i.TgZ(1,"mat-checkbox",14),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function m3(n,a){if(1&n&&(i.TgZ(0,"th",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.headerColumnText)}}function g3(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function _3(n,a){1&n&&i._UZ(0,"tr",17)}function b3(n,a){1&n&&i._UZ(0,"tr",18)}function A3(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.alertText,"\n")}}let FE=(()=>{class n{constructor(){this.values=[],this.selection=new tn(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new qo(this.values),this.setDataSource()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&i.Gf(os,7),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[i.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportData"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,p3,1,0,"th",4),i.YNc(5,f3,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,m3,2,1,"th",7),i.YNc(8,g3,2,1,"td",8),i.BQk(),i.YNc(9,_3,1,0,"tr",9),i.YNc(10,b3,1,0,"tr",10),i.qZA(),i.qZA(),i.qZA(),i.YNc(11,A3,2,1,"perun-web-apps-alert",11)),2&e&&(i.Q6J("hidden",!t.values.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(7),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.values.length))},directives:[os,Zs,ds,cs,us,ls,hs,tc,$s,Qs,Js,Xs,w.O5,Nn],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),n})();function y3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-string-list",10),2&n){const e=i.oxw();i.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function M3(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let w3=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.usersManagerService=d,this.altPasswordCtrl=new Cr(null,[Dn.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new tn(!1,[]),l.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(o=>this.removeDialogDescription=o),l.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(o=>this.removeDialogTitle=o),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(o=>this.alertText=o),l.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(o=>this.headerColumnText=o)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",e).subscribe(()=>{const t=Pi();t.width="600px",t.data={password:e},this.dialog.open(a3,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",l=0;const d=t.length;for(;l<16;++l)r+=t.charAt(Math.random()*d);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=Pi();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(h3,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li),i.Y36(Hi))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"mat-form-field",2),i.TgZ(6,"label",2),i._UZ(7,"input",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.createPassword()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"perun-web-apps-alert",5),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"h1",6),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",7),i.NdJ("click",function(){return t.removeAltPasswords()}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.YNc(26,y3,1,4,"perun-web-apps-string-list",8),i.YNc(27,M3,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,11,i.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),i.xp6(5),i.s9C("placeholder",i.lcZ(8,15,i.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.altPasswordCtrl),i.xp6(3),i.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,19,i.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),i.xp6(4),i.Oqu(i.lcZ(16,23,i.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),i.xp6(4),i.Oqu(i.lcZ(20,27,i.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),i.xp6(3),i.Q6J("disabled",t.selection.isEmpty()),i.xp6(1),i.hij(" ",i.lcZ(24,31,i.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[mn,Hn,nn,_n,ss,Pt,Nn,w.O5,FE,Ln],pipes:[lt,si],styles:[""]}),n})();function C3(n,a){if(1&n&&(i.TgZ(0,"mat-list-item",1),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"p",2),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n){const e=a.$implicit;i.Q6J("routerLink",e.url),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,e.label)))}}let v3=(()=>{class n{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.get("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 n.\u0275fac=function(e){return new(e||n)(i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"mat-list"),i.YNc(1,C3,7,7,"mat-list-item",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[mv,w.sg,DA,Gn,O,bn],pipes:[lt,si],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),n})(),T3=(()=>{class n extends An{buildStyles(e,{display:t}){const r=mS(e);return Object.assign(Object.assign({},r),{display:"none"===t?t:r.display})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const x3=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let S3=(()=>{class n extends rn{constructor(e,t,r,l,d){super(e,r,t,l),this._config=d,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var t;const l=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(t=qE.get(l))&&void 0!==t?t:new Map,qE.set(l,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:l}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qi),i.Y36(T3),i.Y36(Qi),i.Y36(Ks))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),jE=(()=>{class n extends S3{constructor(){super(...arguments),this.inputs=x3}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.qOj]}),n})();const qE=new Map;let sN=(()=>{class n extends An{buildStyles(e){const t={};switch(e=e||"stretch"){case"start":t["align-self"]="flex-start";break;case"end":t["align-self"]="flex-end";break;default:t["align-self"]=e}return t}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oN=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let lN=(()=>{class n extends rn{constructor(e,t,r,l){super(e,r,t,l),this.DIRECTIVE_KEY="flex-align",this.styleCache=cN,this.init()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qi),i.Y36(sN),i.Y36(Qi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const cN=new Map;let UE=(()=>{class n extends lN{constructor(){super(...arguments),this.inputs=oN}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[i.qOj]}),n})(),GE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[nv,Cl]]}),n})();function xN(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.Q6J("value",t.selectedUnit),i.xp6(1),i.hij(" ",e," ")}}let SN=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=l,this.translate=d,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",d.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(o=>this.successMessage=o)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Cr(null,[Dn.required]),this.newValueControl=new Cr(null,[Dn.required,Dn.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new uA).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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(cn),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"div"),i.TgZ(6,"p",2),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"p"),i._uU(11),i.qZA(),i.qZA(),i.TgZ(12,"div"),i.TgZ(13,"p",2),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"p"),i._uU(18),i.qZA(),i.qZA(),i.TgZ(19,"div",3),i.TgZ(20,"mat-form-field"),i.TgZ(21,"label",4),i._UZ(22,"input",5),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(25,"mat-select",6),i.NdJ("valueChange",function(l){return t.selectedUnit=l}),i.YNc(26,xN,2,2,"mat-option",7),i.qZA(),i.qZA(),i.TgZ(27,"div"),i.TgZ(28,"mat-form-field",8),i.TgZ(29,"label",4),i._UZ(30,"textarea",9),i.ALo(31,"translate"),i.ALo(32,"customTranslate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(33,"div",10),i.TgZ(34,"button",11),i.NdJ("click",function(){return t.onCancel()}),i._uU(35),i.ALo(36,"translate"),i.ALo(37,"customTranslate"),i.qZA(),i.TgZ(38,"button",12),i.NdJ("click",function(){return t.onSubmit()}),i._uU(39),i.ALo(40,"translate"),i.ALo(41,"customTranslate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,14,i.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),i.xp6(6),i.hij(" ",i.lcZ(8,18,i.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),i.xp6(4),i.Oqu(t.resource),i.xp6(3),i.hij(" ",i.lcZ(15,22,i.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),i.xp6(4),i.Oqu(t.currentQuota),i.xp6(4),i.s9C("placeholder",i.lcZ(23,26,i.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),i.Q6J("formControl",t.newValueControl),i.xp6(3),i.Q6J("value",t.selectedUnit),i.xp6(1),i.Q6J("ngForOf",t.units),i.xp6(4),i.s9C("placeholder",i.lcZ(31,30,i.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),i.Q6J("formControl",t.reasonControl),i.xp6(5),i.hij(" ",i.lcZ(36,34,i.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.reasonControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(40,38,i.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[En,jE,UE,mn,Hn,Wp,nn,Nr,_n,ss,ku,w.sg,La,ji,Pt],pipes:[lt,si],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}"]}),n})();function EN(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function DN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function HN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"p"),i.TgZ(2,"strong"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i._uU(6),i.qZA(),i.TgZ(7,"p",10),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3).$implicit;return i.oxw().requestChangeQuota(l,r)}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(5);i.xp6(3),i.Oqu(i.lcZ(4,4,i.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),i.xp6(3),i.hij(" ",e.quotasMarkup," "),i.xp6(2),i.Oqu(i.lcZ(9,8,i.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),i.xp6(4),i.hij(" ",i.lcZ(13,12,i.lcZ(14,14,"DATA_QUOTAS.CHANGE"))," ")}}function LN(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function kN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw(4).getResAttributes(l.id)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,HN,15,16,"div",7),i.YNc(5,LN,4,5,"p",7),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.xp6(3),i.hij(" ",e.name," "),i.xp6(1),i.Q6J("ngIf",t.defaultQuota),i.xp6(1),i.Q6J("ngIf",!t.defaultQuota)}}function PN(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,kN,6,3,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function RN(n,a){if(1&n&&(i.YNc(0,EN,1,0,"mat-spinner",5),i.YNc(1,DN,4,5,"perun-web-apps-alert",6),i.YNc(2,PN,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function ON(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw().getMembersResources(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,RN,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let IN=(()=>{class n{constructor(e,t,r,l,d,o){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=d,this.dialog=o,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,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 l=r.length;l||(this.loading=!1),r.forEach(d=>{this.attributesManagerService.getResourceAttributes(d.id).subscribe(o=>{l--,o.find(s=>"defaultDataQuotas"===s.friendlyName)&&this.resources.push(d),this.loading=0!==l})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(l=>"dataQuotas"===l.friendlyName);if(null==r?void 0:r.value){const l=Object.entries(r.value).map(d=>String(d[1]));this.currentQuota=l[0]}else this.currentQuota="";if(r=t.find(l=>"defaultDataQuotas"===l.friendlyName),null==r?void 0:r.value){const l=Object.entries(r.value).map(d=>String(d[1]));this.defaultQuota=l[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=Pi();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(SN,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 n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(Hi),i.Y36(Mt),i.Y36(fi),i.Y36(ni),i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-data-quotas"]],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"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,ON,5,1,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DATA_QUOTAS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"DATA_QUOTAS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[pf,BA,w.sg,D1,H1,IA,E1,w.O5,Ln,Nn,Pt],pipes:[lt,si],styles:[""]}),n})();function BN(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function NN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function VN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){return i.CHM(e),i.oxw(4).deselectResource()})("afterExpand",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeSelectedResource(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.TgZ(4,"div",10),i.TgZ(5,"mat-checkbox",11),i.NdJ("change",function(){return i.CHM(e),i.oxw(4).setOptOut()}),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.Q6J("expanded",e.name===t.selectedResource),i.xp6(3),i.hij(" ",e.name," "),i.xp6(2),i.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),i.xp6(2),i.Oqu(i.lcZ(8,4,i.lcZ(9,6,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL")))}}function zN(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,VN,10,8,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function FN(n,a){if(1&n&&(i.YNc(0,BN,1,0,"mat-spinner",5),i.YNc(1,NN,4,5,"perun-web-apps-alert",6),i.YNc(2,zN,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function jN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){return i.CHM(e),i.oxw().deselectVo()})("afterExpand",function(){const l=i.CHM(e).$implicit;return i.oxw().changeSelectedVo(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,FN,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("expanded",e.shortName===t.selectedVo),i.xp6(3),i.hij(" ",e.name," ")}}let qN=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=d,this.route=o,this.router=s,this.notificator=c,this.translate=u,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t,this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),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.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.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(d=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,d.id).subscribe(o=>{this.attributesManagerService.getResourceAttributeByName(d.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(s=>{l--;const c=o.find(u=>"optOutMailingList"===u.friendlyName);c&&"true"!==(null==s?void 0:s.value)&&(this.optOuts.push({resource:d.id,member:t.id,attribute:c}),this.resources.push(d),this.selectedResource===d.name&&(this.getOptOutAttribute(d),this.changeSelectedResource(d))),this.loading=0!==l})})})})})}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("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("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.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(Hi),i.Y36(Mt),i.Y36(fi),i.Y36(ni),i.Y36(nr),i.Y36(rt),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-mailing-lists"]],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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,jN,5,2,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[pf,BA,w.sg,D1,H1,IA,E1,w.O5,Ln,Nn,tc],pipes:[lt,si],styles:[""]}),n})();function YN(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function WN(n,a){1&n&&i._UZ(0,"th",17)}function UN(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function GN(n,a){1&n&&i._UZ(0,"tr",19)}function ZN(n,a){1&n&&i._UZ(0,"tr",20)}function $N(n,a){if(1&n&&(i.TgZ(0,"table",11),i.ynx(1,12),i.YNc(2,WN,1,0,"th",13),i.YNc(3,UN,2,1,"td",14),i.BQk(),i.YNc(4,GN,1,0,"tr",15),i.YNc(5,ZN,1,0,"tr",16),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function JN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",1),i.TgZ(1,"div",5),i.TgZ(2,"p"),i._uU(3),i.qZA(),i.TgZ(4,"div",6),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,$N,6,3,"table",7),i.qZA(),i.TgZ(9,"div",8),i.TgZ(10,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",e.description," "),i.xp6(2),i.hij(" ",i.lcZ(6,5,i.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),i.xp6(3),i.Q6J("ngIf",e.dataSource.data.length),i.xp6(3),i.hij(" ",i.lcZ(12,9,i.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(16,13,i.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let VA=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new qo(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){var e,t;if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let r=null!==(t=null===(e=this.data.attribute)||void 0===e?void 0:e.value)&&void 0!==t?t:[];void 0!==this.data.valueIndex?r.splice(this.data.valueIndex,1):r=r.filter(l=>!this.data.values.find(d=>d===l)),this.data.attribute.value=r}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.YNc(3,YN,1,0,"mat-spinner",2),i.qZA(),i.YNc(4,JN,18,17,"div",3)),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,Zs,ds,cs,us,ls,hs,$s,Qs,Js,Xs,ji,Pt],pipes:[lt,si],styles:[""]}),n})();function QN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",5),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function XN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",11),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).changeValue()}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e)}}function KN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item"),i.TgZ(1,"mat-form-field",7),i.TgZ(2,"mat-select",8),i.NdJ("valueChange",function(r){const d=i.CHM(e).index;return i.oxw(2).shells[d]=r}),i.YNc(3,XN,2,2,"mat-option",9),i.qZA(),i.qZA(),i.TgZ(4,"button",10),i.NdJ("click",function(){const l=i.CHM(e).index;return i.oxw(2).removeShell(l)}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.index,t=i.oxw(2);i.xp6(2),i.Q6J("value",t.shells[e]),i.xp6(1),i.Q6J("ngForOf",t.defaultShells),i.xp6(2),i.hij(" ",i.lcZ(6,3,i.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function eV(n,a){if(1&n&&(i.TgZ(0,"mat-list"),i.YNc(1,KN,8,7,"mat-list-item",6),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.shells)}}let tV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],l.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d)}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=Pi();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(VA,t).afterClosed().subscribe(l=>{l&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{var t,r;this.prefShellsAttribute=e,this.shells=null!==(r=null===(t=this.prefShellsAttribute)||void 0===t?void 0:t.value)&&void 0!==r?r:[],this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-alert",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",2),i.NdJ("click",function(){return t.addShell()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.YNc(12,QN,4,5,"perun-web-apps-alert",3),i.YNc(13,eV,2,1,"mat-list",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,9,i.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),i.xp6(4),i.hij(" ",i.lcZ(10,13,i.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.loading&&0===t.shells.length),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Nn,Pt,w.O5,mv,w.sg,DA,mn,ku,La],pipes:[lt,si],styles:[""]}),n})();function iV(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function nV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field",6),i.TgZ(3,"label",6),i._UZ(4,"input",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(5,"div",8),i.TgZ(6,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Q6J("formControl",e.inputControl),i.xp6(3),i.hij(" ",i.lcZ(8,4,i.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,8,i.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let rV=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new Cr(null,Dn.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=>{var t;const r=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:[];r.push(this.inputControl.value),e.value=r,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,iV,1,0,"mat-spinner",2),i.YNc(6,nV,14,12,"div",3),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,mn,Hn,nn,Nr,_n,ss,ji,Pt],pipes:[lt,si],styles:[""]}),n})();function aV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.TgZ(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"button",3),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().addGroupName(l)}),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"button",4),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index;return i.oxw().removeGroupName(l,d)}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i._UZ(10,"perun-web-apps-string-list",5),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(2),i.Oqu(e),i.xp6(2),i.hij(" ",i.lcZ(5,8,i.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),i.xp6(3),i.Q6J("disabled",0===r.selectionList[t].selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),i.xp6(2),i.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let sV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(d=>this.alertText=d),l.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(d=>this.headerColumnText=d)}ngOnInit(){this.namespaces=this.store.get("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 tn(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{var r;const l=null!==(r=null==t?void 0:t.value)&&void 0!==r?r:[];this.groupNames.set(e,l),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=Pi();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(rV,r).afterClosed().subscribe(d=>{d&&this.getAttribute(e)})}removeGroupName(e,t){const r=Pi();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(VA,r).afterClosed().subscribe(d=>{d&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,aV,11,14,"div",1)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,2,i.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),i.xp6(3),i.Q6J("ngForOf",t.namespaces))},directives:[w.sg,Pt,FE],pipes:[lt,si],styles:[""]}),n})();function oV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function lV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function cV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let dV=(()=>{class n{constructor(e,t,r,l,d){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=l,this.translate=d,d.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(o=>this.successMessage=o),d.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(o=>this.showPwdTooltip=o),d.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(o=>this.hidePwdTooltip=o)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Cr("",[Dn.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(this.userId,e,"samba-du",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 n.\u0275fac=function(e){return new(e||n)(i.Y36(ni),i.Y36(zt),i.Y36(Hi),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,oV,4,5,"perun-web-apps-alert",1),i.YNc(5,lV,4,5,"perun-web-apps-alert",1),i.TgZ(6,"mat-form-field",2),i.TgZ(7,"label",2),i._UZ(8,"input",3),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(11,"button",4),i.NdJ("click",function(){return t.showPassword=!t.showPassword}),i.TgZ(12,"mat-icon"),i._uU(13),i.qZA(),i.qZA(),i.TgZ(14,"button",5),i.NdJ("click",function(){return t.setSambaPassword()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.YNc(18,cV,4,5,"perun-web-apps-alert",6)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,11,i.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),i.xp6(3),i.Q6J("ngIf",!t.sambaExists),i.xp6(1),i.Q6J("ngIf",t.sambaExists),i.xp6(3),i.s9C("placeholder",i.lcZ(9,15,i.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),i.xp6(3),i.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),i.xp6(2),i.Oqu(t.showPassword?"visibility_off":"visibility"),i.xp6(1),i.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(16,19,i.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),i.xp6(3),i.Q6J("ngIf",t.sambaControl.invalid))},directives:[w.O5,Nn,mn,Hn,nn,_n,ss,Pt,vr,bn],pipes:[lt,si],styles:[""]}),n})();function uV(n,a){1&n&&(i.TgZ(0,"mat-error",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Yo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Cr(null,[Dn.required,Dn.pattern(Yo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){var a,e;const t=null!==(e=null===(a=this.data.attribute)||void 0===a?void 0:a.value)&&void 0!==e?e:[],r=this.sshControl.value;t.includes(r)||t.push(r),this.data.attribute.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{t.pop()})}}Yo.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"],Yo.sshKeyPattern="^("+Yo.allowedSshKeys.join("|")+").+$",Yo.\u0275fac=function(a){return new(a||Yo)(i.Y36(Fi),i.Y36(Sn),i.Y36(ni))},Yo.\u0275cmp=i.Xpm({type:Yo,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"mat-form-field",2),i.TgZ(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,uV,4,5,"mat-error",4),i.qZA(),i.qZA(),i.TgZ(11,"div",5),i.TgZ(12,"button",6),i.NdJ("click",function(){return e.onCancel()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",7),i.NdJ("click",function(){return e.onSubmit()}),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA(),i.qZA()),2&a&&(i.xp6(1),i.Oqu(i.lcZ(2,7,i.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),i.xp6(6),i.s9C("placeholder",i.lcZ(8,11,i.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),i.Q6J("formControl",e.sshControl),i.xp6(3),i.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),i.xp6(3),i.hij(" ",i.lcZ(14,15,i.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",e.sshControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(18,19,i.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},directives:[En,fn,mn,Hn,hA,nn,Nr,_n,ss,w.O5,Fl,ji,Pt],pipes:[lt,si],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 hV=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"textarea",1),i._uU(2),i.qZA(),i.qZA(),i.TgZ(3,"mat-dialog-actions"),i.TgZ(4,"button",2),i.NdJ("click",function(){return t.onClose()}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(t.sshKey),i.xp6(3),i.hij(" ",i.lcZ(6,2,i.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},directives:[Hn,hA,ji,Pt],pipes:[lt,si],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),n})();function pV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4),i.TgZ(1,"p",5),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showWholeKey(l)}),i._uU(2),i.qZA(),i.TgZ(3,"button",6),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.TgZ(6,"mat-icon"),i._uU(7," file_copy "),i.qZA(),i.qZA(),i.TgZ(8,"button",7),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().removeKey(l,!1)}),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"mat-icon"),i._uU(12," delete "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.s9C("matTooltip",i.lcZ(4,4,i.lcZ(5,6,"SSH_KEYS.COPY_TOOLTIP"))),i.Q6J("cdkCopyToClipboard",e),i.xp6(5),i.s9C("matTooltip",i.lcZ(9,8,i.lcZ(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function fV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4),i.TgZ(1,"label",8),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showWholeKey(l)}),i._uU(2),i.qZA(),i.TgZ(3,"button",9),i.TgZ(4,"mat-icon"),i._uU(5," file_copy "),i.qZA(),i.qZA(),i.TgZ(6,"button",10),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().removeKey(l,!0)}),i.TgZ(7,"mat-icon"),i._uU(8," delete "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.Q6J("cdkCopyToClipboard",e)}}let mV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,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 tn(!1,[]),this.selectionAdmin=new tn(!1,[]),l.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(d=>this.alertText=d),l.get("SSH_KEYS.HEADER_COLUMN").subscribe(d=>this.headerColumnText=d)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("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("SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=Pi();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Yo,t).afterClosed().subscribe(l=>{l&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=Pi();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(VA,r).afterClosed().subscribe(d=>{d&&(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=Pi();t.width="600px",t.data={value:e},this.dialog.open(hV,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,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","matRipple","","style","width: auto",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item",2,"width","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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"p"),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",1),i.NdJ("click",function(){return t.addKey(!1)}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"mat-list"),i.YNc(13,pV,13,12,"mat-list-item",2),i.qZA(),i.TgZ(14,"h1",3),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"p"),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",1),i.NdJ("click",function(){return t.addKey(!0)}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.TgZ(26,"mat-list"),i.YNc(27,fV,9,2,"mat-list-item",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(6,12,i.lcZ(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(10,16,i.lcZ(11,18,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.userKeys),i.xp6(2),i.Oqu(i.lcZ(16,20,i.lcZ(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(20,24,i.lcZ(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(24,28,i.lcZ(25,30,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.adminKeys))},directives:[Pt,mv,w.sg,DA,Gn,ev,vr,bn],pipes:[lt,si],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}"]}),n})(),gV=(()=>{class n{transform(e){return"virt"===e.namespace.split(":")[4]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"isVirtualAttribute",type:n,pure:!0}),n})();function _V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function bV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"mat-checkbox",20),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null}),i.ALo(2,"multiWordDataCy"),i.ALo(3,"isVirtualAttribute"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q2q("data-cy","",i.lcZ(2,4,e.displayName),"-checkbox"),i.Q6J("checked",t.selection.isSelected(e))("disabled",i.lcZ(3,6,e)||!e.writable)("aria-label",t.checkboxLabel(e))}}function AV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function yV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function MV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function wV(n,a){if(1&n&&(i.TgZ(0,"td",23),i.TgZ(1,"div",24),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",t.getAttributeFullName(e)),i.xp6(1),i.hij(" ",e.displayName," ")}}function CV(n,a){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function vV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",23),i.TgZ(1,"perun-web-apps-attribute-value",26),i.NdJ("sendEventToParent2",function(){const l=i.CHM(e).$implicit;return i.oxw().onValueChange(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function TV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function xV(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function SV(n,a){1&n&&i._UZ(0,"tr",27)}function EV(n,a){if(1&n&&(i._UZ(0,"tr",28),i.ALo(1,"translate")),2&n){const e=a.$implicit,t=i.oxw();i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),i.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function DV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function HV(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,e.emptyListText),"\n")}}let LV=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new tn(!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=tf}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!Bu(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""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new qo(function d2(n){return n.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns.concat("urn"),n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,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)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){n.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ys),i.Y36(zC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7),i.Gf(vv,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first),i.iGM(r=i.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["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"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,_V,2,3,"th",4),i.YNc(5,bV,4,8,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,AV,3,3,"th",7),i.YNc(8,yV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,MV,3,3,"th",7),i.YNc(11,wV,3,2,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,CV,3,3,"th",12),i.YNc(14,vV,2,2,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,TV,3,3,"th",7),i.YNc(17,xV,2,1,"td",10),i.BQk(),i.YNc(18,SV,1,0,"tr",14),i.YNc(19,EV,2,5,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,DV,3,3,"perun-web-apps-alert",16),i.YNc(21,HV,3,3,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},directives:[os,Zs,ps,ds,cs,us,tc,ls,hs,S1,vr,vv,$s,Qs,Js,Xs,w.O5,Nn],pipes:[_v,gV,lt],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})();function kV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function PV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function RV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(3);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function OV(n,a){if(1&n&&(i.YNc(0,PV,1,0,"mat-spinner",3),i.YNc(1,RV,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function IV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function BV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(4);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function NV(n,a){if(1&n&&(i.YNc(0,IV,1,0,"mat-spinner",3),i.YNc(1,BV,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(3);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function VV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",6),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw(2).getMemberData(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.qZA(),i.YNc(6,NV,2,2,"ng-template",7),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.AsE(" ",i.lcZ(4,2,i.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function zV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-accordion"),i.TgZ(1,"mat-expansion-panel",6),i.NdJ("opened",function(){return i.CHM(e),i.oxw().getUserData()}),i.TgZ(2,"mat-expansion-panel-header"),i.TgZ(3,"mat-panel-title"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA(),i.YNc(7,OV,2,2,"ng-template",7),i.qZA(),i.YNc(8,VV,7,6,"mat-expansion-panel",8),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.hij(" ",i.lcZ(5,2,i.lcZ(6,4,"PRIVACY.USER_INFO"))," "),i.xp6(4),i.Q6J("ngForOf",e.filteredVos)}}let FV=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=l,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 uA).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 n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(Mt),i.Y36(ni),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,kV,1,0,"mat-spinner",3),i.YNc(9,zV,9,6,"mat-accordion",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,i.lcZ(3,6,"PRIVACY.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,8,i.lcZ(7,10,"SERVICES.FILTER"))),i.xp6(3),i.Q6J("ngIf",t.outerLoading),i.xp6(1),i.Q6J("ngIf",!t.outerLoading))},directives:[pf,w.O5,Ln,BA,D1,H1,IA,E1,LV,w.sg],pipes:[lt,si],styles:[""]}),n})(),jV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],styles:[""]}),n})(),Ev=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[$l,w.ez]]}),n})(),GV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),tz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[GV,ht],ht]}),n})(),uz=(()=>{class n{constructor(){this.changes=new He.xQ,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"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fz={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[Zr],useFactory:function pz(n){return()=>n.scrollStrategies.reposition()}};let Pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[uz,fz],imports:[[w.ez,ns,zc,w0,Tl,ht],xa]}),n})(),Mz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,dd,ns,C1,$l,b1,Ru]]}),n})(),Rv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cm,ht],cm,ht]}),n})(),vz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Cl]]}),n})(),Ov=(()=>{class n{constructor(){this.changes=new He.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Oz={provide:Ov,deps:[[new i.FiY,new i.tp0,Ov]],useFactory:function Rz(n){return n||new Ov}};let eD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Oz,Qc],imports:[[ht,w.ez,Tl,ns,vz,$l,ii],ht]}),n})(),Iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Rv,pv,Sv,ns,XE,C1,$l,wA,pp,b1,Ws,_1,Qa,Jp,dd,eD,Pv,No,hv,gv,h1,tv,OA,W,Ru,hd,ii],Rv,pv,Sv,ns,XE,C1,$l,wA,pp,b1,Ws,_1,Qa,Jp,dd,eD,Pv,No,hv,gv,h1,tv,OA,W,Ru,hd,ii]}),n})(),Bz=(()=>{class n extends sm{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Nz={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 tD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ra,useClass:Bz},{provide:lu,useValue:Nz}],imports:[[w.ez,C1,wA,Jp,UR,OR,Ap,Os,OA,W,b1,Ev,$l,h1,ns,Ru,Ws,dd,_1,ii,Jx,sS,tz,Pv,pS,du,hd,Mz,Qa,pp,Yx,Iz]]}),n})();function Vz(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function zz(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Fz(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyNameParameter)}}function jz(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function qz(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.value)}}function Yz(n,a){1&n&&i._UZ(0,"th",16)}function Wz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"button",20),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().resetPassword(l.friendlyNameParameter)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function Uz(n,a){1&n&&i._UZ(0,"th",16)}function Gz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"button",21),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().changePassword(l)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function Zz(n,a){1&n&&i._UZ(0,"tr",22)}function $z(n,a){1&n&&i._UZ(0,"tr",23)}let Jz=(()=>{class n{constructor(e,t,r,l,d,o){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=l,this.router=d,this.otherApplicationService=o,this.logins=[],this.displayedColumns=["namespace","value","reset","change"],this.nameSpaces=[]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(e=>{const t=this.nameSpaces.map(d=>{const o=d.split(":");return o[o.length-1]});this.logins=e.filter(d=>t.includes(d.friendlyNameParameter)),this.dataSource=new qo(e);const l=this.route.snapshot.queryParamMap.get("namespace");if(l){const d=this.logins.find(o=>o.friendlyNameParameter===l);d&&this.changePassword(d)}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",e),"_blank")}changePassword(e){this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=Pi();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(pL,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ni),i.Y36(zt),i.Y36(Ji),i.Y36(nr),i.Y36(rt),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-reset"]],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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,Vz,4,5,"perun-web-apps-alert",1),i.TgZ(5,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"div",4),i.TgZ(8,"table",5),i.ynx(9,6),i.YNc(10,zz,4,5,"th",7),i.YNc(11,Fz,2,1,"td",8),i.BQk(),i.ynx(12,9),i.YNc(13,jz,4,5,"th",7),i.YNc(14,qz,2,1,"td",10),i.BQk(),i.ynx(15,11),i.YNc(16,Yz,1,0,"th",7),i.YNc(17,Wz,5,6,"td",12),i.BQk(),i.ynx(18,13),i.YNc(19,Uz,1,0,"th",7),i.YNc(20,Gz,5,6,"td",12),i.BQk(),i.YNc(21,Zz,1,0,"tr",14),i.YNc(22,$z,1,0,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.logins.length),i.xp6(4),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns))},directives:[w.O5,Nn,Zs,ps,ds,cs,us,ls,hs,Pt,$s,Qs,Js,Xs],pipes:[lt,si],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),n})();function pF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function fF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function mF(n,a){if(1&n&&(i.TgZ(0,"div",13),i._UZ(1,"img",14),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("src",e.newImage,i.LSH)}}function gF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let bF=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=l,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){var t,r,l;const d=null!==(r=null===(t=e.dataTransfer)||void 0===t?void 0:t.files[0])&&void 0!==r?r:null===(l=e.target)||void 0===l?void 0:l.files[0],s=new FileReader;d.type.match(/image-*/)?(s.onload=this._handleReaderLoaded.bind(this),this.imageType=d.type,s.readAsDataURL(d)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const l=()=>{d(t.result).then(o=>{r>50&&o.length>6144?(r-=10,l()):(this.newImage=o,this.imgTooLong=this.newImage.length>=6144)}).catch(o=>console.error(o))},d=o=>new Promise((s,c)=>{const u=new Image;u.src=o,u.onload=()=>{const h=document.createElement("canvas");let f=u.width,b=u.height;f>b?f>r&&(b*=r/f,f=r):b>r&&(f*=r/b,b=r),h.width=f,h.height=b;const V=h.getContext("2d");V.drawImage(u,0,0,f,b);const ee=V.canvas.toDataURL();s(ee)},u.onerror=h=>c(h)});l()}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 c(f,b,V,ee){ee.beginPath(),ee.rect(20*f,20*b,20,20),ee.fillStyle="rgb("+V.join(",")+")",ee.fill()}this.newImage=function h(){const f=function s(){const f=document.createElement("canvas");f.width=100,f.height=100;const b=f.getContext("2d");return b.beginPath(),b.rect(0,0,100,100),b.fillStyle="#FFFFFF",b.fill(),f}(),b=f.getContext("2d"),V=function u(){const f=[];for(let b=0;b<3;b++){const V=Math.floor(256*Math.random()),ee=Math.max(120,V),he=Math.min(200,ee);f.push(he)}return f}();for(let ee=0;ee({disableToggleValue:!1})});let TF=0;const xF={provide:Zn,useExisting:(0,i.Gpc)(()=>rD),multi:!0};class SF{constructor(a,e){this.source=a,this.checked=e}}const EF=Nl(Bo(na(ts(class{constructor(n){this._elementRef=n}}))));let rD=(()=>{class n extends EF{constructor(e,t,r,l,d,o){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=d,this._onChange=s=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++TF,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(l)||0,this.color=this.defaultColor=d.color||"accent",this._noopAnimations="NoopAnimations"===o}get required(){return this._required}set required(e){this._required=je(e)}get checked(){return this._checked}set checked(e){this._checked=je(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_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()}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new SF(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Rr),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(vF),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&(i.Gf(AF,5),i.Gf(yF,5),i.Gf(MF,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._thumbEl=r.first),i.iGM(r=i.CRH())&&(t._thumbBarEl=r.first),i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.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",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"},exportAs:["matSlideToggle"],features:[i._Bn([xF]),i.qOj],ngContentSelectors:CF,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2,3),i.TgZ(4,"input",4,5),i.NdJ("change",function(l){return t._onChangeEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(6,"span",6,7),i._UZ(8,"span",8),i.TgZ(9,"span",9),i._UZ(10,"span",10),i.qZA(),i.qZA(),i.qZA(),i.TgZ(11,"span",11,12),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(13,"span",13),i._uU(14,"\xa0"),i.qZA(),i.Hsn(15),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(12);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(2),i.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),i.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(5),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,wF,t._noopAnimations?0:150))}},directives:[Gn,Oh],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.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;-moz-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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),n})(),aD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),LF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[aD,ii,ht,Wd],aD,ht]}),n})();const kF=["toggle"];function PF(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"img",12),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("src",e.imageSrc,i.LSH)}}function RF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"h1",2),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.YNc(9,PF,2,1,"div",9),i.TgZ(10,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddImg()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onDeleteImg()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,6,i.lcZ(4,8,"AUTHENTICATION.TITLE"))),i.xp6(4),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO"))),i.xp6(3),i.Q6J("ngIf",e.imageSrc&&e.imageSrc.length),i.xp6(2),i.hij(" ",i.lcZ(12,14,i.lcZ(13,16,"AUTHENTICATION.NEW_IMG"))," "),i.xp6(3),i.Q6J("disabled",!e.imgAtt||!e.imgAtt.value),i.xp6(1),i.hij(" ",i.lcZ(16,18,i.lcZ(17,20,"AUTHENTICATION.DELETE_IMG"))," ")}}function OF(n,a){1&n&&i._UZ(0,"mat-spinner",13)}let IF=(()=>{class n{constructor(e,t,r,l,d,o,s){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=l,this.oauthService=d,this.authService=o,this.notificatorService=s,this.imageSrc="",this.mfaUrl="",this.mfaAvailable=!1,this.mfaApiUrl="",this.loadingMfa=!1,this.loadingImg=!1,this.saveImgSuccess="",this.removeImgSuccess="",l.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(c=>this.removeDialogDescription=c),l.get("AUTHENTICATION.SAVE_IMG_SUCCESS").subscribe(c=>this.saveImgSuccess=c),l.get("AUTHENTICATION.REMOVE_IMG_SUCCESS").subscribe(c=>this.removeImgSuccess=c)}ngAfterViewInit(){this.toggle.change.subscribe(e=>{this.reAuthenticate(e.checked)})}ngOnInit(){this.loadingMfa=!0,this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(e=>this.removeDialogDescription=e),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang)}),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang),this.mfaApiUrl=this.store.get("mfa","api_url"),fetch(this.mfaApiUrl+"mfaAvailable",{method:"GET",headers:{Authorization:"Bearer "+this.oauthService.getIdToken()}}).then(e=>e.text()).then(e=>{this.mfaAvailable="true"===e,this.mfaAvailable?this.loadMfa():this.loadingMfa=!1}).catch(e=>{console.error(e),this.loadingMfa=!1}),this.displayImageBlock=this.store.get("mfa","enable_security_image"),this.displayImageBlock&&this.loadImage()}onAddImg(){const e=Pi();e.width="500px",e.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(bF,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.saveImgSuccess),this.loadImage())})}reAuthenticate(e){sessionStorage.setItem("enforce_mfa",e.toString()),sessionStorage.setItem("mfa_route","/profile/settings/auth"),localStorage.removeItem("refresh_token"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}enableMfa(e){const t=this.oauthService.getIdToken(),l=`${this.mfaApiUrl}mfaEnforced`,d=`value=${String(e)}`;return fetch(l,{method:"PUT",body:d,headers:{Authorization:`Bearer ${t}`}})}onDeleteImg(){const e=Pi();e.width="600px",e.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(VA,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.removeImgSuccess),this.loadImage())})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}loadImage(){this.loadingImg=!0;const e=this.store.get("mfa","security_image_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe(t=>{t?(this.imgAtt=t,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(r=>{this.imgAtt=r}),this.loadingImg=!1},t=>{console.error(t),this.loadingImg=!1})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");this.enableMfa("true"===t).then(r=>{r.ok&&"true"===t&&this.toggle.toggle(),this.loadingMfa=!1}).catch(r=>{console.error(r),this.loadingMfa=!1})}else{const t=this.store.get("mfa","enforce_mfa_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(r=>{r.value&&this.toggle.toggle(),this.loadingMfa=!1},r=>{console.error(r),this.loadingMfa=!1})}sessionStorage.getItem("mfa_route")&&(sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36(ni),i.Y36(zt),i.Y36(li),i.Y36(fp.Ct),i.Y36(ka),i.Y36(Tr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&i.Gf(kF,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:19,vars:23,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["matTooltipPosition","right",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"disabled"],["toggle",""],["mat-flat-button","","color","accent",1,"mt-3",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"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,RF,18,22,"div",1),i.TgZ(2,"h1",2),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"span",3),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.TgZ(9,"mat-slide-toggle",4,5),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.qZA(),i._UZ(14,"br"),i.TgZ(15,"button",6),i.NdJ("click",function(){return t.redirectToMfa()}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.qZA(),i.YNc(18,OF,1,0,"mat-spinner",7)),2&e&&(i.Q6J("hidden",t.loadingMfa||t.loadingImg),i.xp6(1),i.Q6J("ngIf",t.displayImageBlock),i.xp6(2),i.Oqu(i.lcZ(4,9,i.lcZ(5,11,"AUTHENTICATION.MFA"))),i.xp6(3),i.Q6J("matTooltip",i.lcZ(7,13,i.lcZ(8,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),i.xp6(3),i.Q6J("disabled",!t.mfaAvailable),i.xp6(2),i.Oqu(i.lcZ(12,17,i.lcZ(13,19,"AUTHENTICATION.MFA_TOGGLE"))),i.xp6(5),i.hij(" ",i.lcZ(17,21,"AUTHENTICATION.MFA_INFO")," "),i.xp6(2),i.Q6J("ngIf",t.loadingMfa||t.loadingImg))},directives:[w.O5,Pt,vr,rD,Ln],pipes:[lt,si],styles:[""]}),n})(),BF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ns,$l,Os,tD,Ap,Ws,dd,_1,Ev]]}),n})(),NF=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ka),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[Pt,bn],pipes:[lt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function VF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let zF=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Cr(null,[Dn.required]),this.passwordCtrl=new Cr(null,[Dn.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Wi))},n.\u0275cmp=i.Xpm({type:n,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"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,VF,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4),i.TgZ(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",4),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA(),i.qZA(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[w.O5,Nn,mn,rs,Hn,nn,Nr,_n,ss,Fl,Pt,bn],pipes:[lt],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}"]}),n})(),FF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],styles:[""]}),n})();function jF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function qF(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function YF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",5),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",6),i._uU(6),i.qZA(),i.TgZ(7,"div"),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"ul"),i.YNc(12,qF,2,1,"li",7),i.qZA(),i.qZA(),i.TgZ(13,"div",0),i.TgZ(14,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().rejectConsent()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().grantConsent()}),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),i.xp6(4),i.Oqu(e.consent.consentHub.name),i.xp6(2),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),i.xp6(4),i.Q6J("ngForOf",e.consent.attributes),i.xp6(3),i.hij(" ",i.lcZ(16,14,i.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),i.xp6(4),i.hij(" ",i.lcZ(20,18,i.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let WF=(()=>{class n{constructor(e,t,r,l,d,o){this.notificator=e,this.translate=t,this.consentService=r,this.route=l,this.apiRequest=d,this.router=o,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(r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},r=>{this.loading=!1;const l=r.error;"ConsentNotExistsException"!==l.name&&this.notificator.showRPCError(l),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(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Tr),i.Y36(li),i.Y36(Ei),i.Y36(nr),i.Y36(dA),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,jF,1,0,"mat-spinner",2),i.YNc(3,YF,22,22,"div",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,Ln,w.sg,Pt],pipes:[lt,si],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),n})();function UF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",1),i._uU(2,"priority_high"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function GF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",1),i._uU(2,"close"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function ZF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",2),i._uU(2,"check"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let $F=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,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&&(i.YNc(0,UF,7,5,"span",0),i.YNc(1,GF,7,5,"span",0),i.YNc(2,ZF,7,5,"span",0)),2&e&&(i.Q6J("ngIf","UNSIGNED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","REVOKED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","GRANTED"===t.consentStatus))},directives:[w.O5,bn],pipes:[lt,si],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();function JF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function QF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.isSelected(e))}}function XF(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function KF(n,a){if(1&n&&(i.TgZ(0,"td",20),i._UZ(1,"perun-web-apps-consent-status",21),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("consentStatus",e.status)}}function ej(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function tj(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.consentHub.name," ")}}function ij(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function nj(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function rj(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function aj(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function sj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().rejectConsent.emit(r.id)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}if(2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,i.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 oj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().grantConsent.emit(r.id)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function lj(n,a){if(1&n&&(i.TgZ(0,"td",20),i.TgZ(1,"div",22),i.TgZ(2,"div",23),i.YNc(3,ij,4,5,"div",24),i.YNc(4,nj,4,5,"div",24),i.YNc(5,rj,4,5,"div",24),i.TgZ(6,"ul"),i.YNc(7,aj,2,1,"li",25),i.qZA(),i.TgZ(8,"div",26),i.YNc(9,sj,4,5,"button",27),i.YNc(10,oj,4,5,"button",28),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.uIk("colspan",t.displayedColumns.length),i.xp6(1),i.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),i.xp6(2),i.Q6J("ngIf","GRANTED"===e.status),i.xp6(1),i.Q6J("ngIf","REVOKED"===e.status),i.xp6(1),i.Q6J("ngIf","UNSIGNED"===e.status),i.xp6(2),i.Q6J("ngForOf",e.attributes),i.xp6(2),i.Q6J("ngIf","REVOKED"!==e.status),i.xp6(1),i.Q6J("ngIf","GRANTED"!==e.status)}}function cj(n,a){1&n&&i._UZ(0,"tr",31)}function dj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.expandedConsent=d.expandedConsent===l?null:l}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("example-expanded-row",t.expandedConsent===e)}}function uj(n,a){1&n&&i._UZ(0,"tr",33)}function hj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function pj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const fj=function(){return["expandedDetail"]};let mj=(()=>{class n{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new tn(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new i.vpe,this.rejectConsent=new i.vpe,this.pageSizeOptions=tf}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 qo(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,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.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),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 n.\u0275fac=function(e){return new(e||n)(i.Y36(zC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[i.TTD],decls:19,vars:11,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["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"],["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&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,JF,2,2,"th",4),i.YNc(5,QF,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,XF,4,5,"th",7),i.YNc(8,KF,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,ej,4,5,"th",7),i.YNc(11,tj,2,1,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,lj,11,8,"td",8),i.BQk(),i.YNc(14,cj,1,0,"tr",11),i.YNc(15,dj,1,2,"tr",12),i.YNc(16,uj,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,hj,4,5,"perun-web-apps-alert",14),i.YNc(18,pj,4,5,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(12),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",i.DdM(10,fj)),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},directives:[os,Zs,ps,ds,cs,us,tc,ls,hs,S1,$F,w.O5,w.sg,Pt,$s,Qs,Js,Xs,Nn],pipes:[lt,si],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:[wi("detailExpand",[Nt("collapsed",Re({height:"0px",minHeight:"0"})),Nt("expanded",Re({height:"*"})),Ht("expanded <=> collapsed",Ct("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const sD=function(){return["status","name"]};function gj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilterUnsigned(r)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",6),i.NdJ("grantConsent",function(r){return i.CHM(e),i.oxw().grantConsent(r)})("rejectConsent",function(r){return i.CHM(e),i.oxw().rejectConsent(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",i.DdM(14,sD))}}function _j(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",7),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilterSigned(r)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",8),i.NdJ("grantConsent",function(r){return i.CHM(e),i.oxw().grantConsent(r)})("rejectConsent",function(r){return i.CHM(e),i.oxw().rejectConsent(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",i.DdM(14,sD))}}function bj(n,a){1&n&&i._UZ(0,"mat-spinner",9)}function yj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"button",3),i.NdJ("click",function(){const l=i.CHM(e).ngIf;return i.oxw().openPwdReset(!l.exists)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.ngIf;i.xp6(2),i.hij(" ",i.lcZ(3,1,i.lcZ(4,3,e.exists?"LOCAL_ACCOUNT.CHANGE_PWD":"LOCAL_ACCOUNT.ACTIVATE"))," ")}}const Mj=function(n){return{exists:n}},wj=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:NF},{path:"service-access",component:zF},{path:"profile",component:jV,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:MO,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:KO,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:II,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:WB,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:n3,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:FV,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:FF,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.notificator=t,this.translate=r,this.storeService=l,this.consentService=d,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(()=>{var t;const r=null!==(t=this.unsignedConsents.find(d=>d.id===e))&&void 0!==t?t:this.signedConsents.find(d=>d.id===e);this.moveConsent(r);const l=this.translate.instant("GRANTED"===r.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");r.status="REVOKED",this.notificator.showSuccess(l+r.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(()=>{var t;const r=null!==(t=this.unsignedConsents.find(l=>l.id===e))&&void 0!==t?t:this.signedConsents.find(l=>l.id===e);this.moveConsent(r),r.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+r.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(Tr),i.Y36(li),i.Y36(zt),i.Y36(Ei))},n.\u0275cmp=i.Xpm({type:n,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&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,gj,9,15,"div",2),i.YNc(6,_j,9,15,"div",2),i.YNc(7,bj,1,0,"mat-spinner",3),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,i.lcZ(3,6,"CONSENTS.TITLE")),"\n"),i.xp6(4),i.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[w.O5,pf,mj,Ln],pipes:[lt,si],styles:[""]}),n})(),data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:WF,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:r3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:v3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:w3,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:IF,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:IN,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class n{constructor(e,t,r){this.userService=e,this.store=t,this.appUrlService=r,this.namespace=this.store.get("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.store.getPerunPrincipal().userId,this.namespace)}openPwdReset(e){let t=this.appUrlService.getUrlForOtherApplication("pwdReset",this.namespace);t+="&"+(e?"activation":"reset")+"=true",window.open(t,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(zt),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,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"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,yj,5,5,"div",2),i.ALo(9,"async")),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,7,i.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),i.xp6(3),i.Q6J("ngIf",i.VKq(13,Mj,i.lcZ(9,11,t.loginExists$))))},directives:[w.O5,Pt],pipes:[lt,si,w.Ov],styles:[""]}),n})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:qN,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:tV,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:sV,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:dV,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:mV,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:Jz,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Cj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Os.forRoot(wj,{preloadingStrategy:kt,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]]}),n})();class vj{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 Tj=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function xj(n){return[oa(tinycolor(n).lighten(52),"50"),oa(tinycolor(n).lighten(37),"100"),oa(tinycolor(n).lighten(26),"200"),oa(tinycolor(n).lighten(12),"300"),oa(tinycolor(n).lighten(6),"400"),oa(tinycolor(n),"500"),oa(tinycolor(n).darken(6),"600"),oa(tinycolor(n).darken(12),"700"),oa(tinycolor(n).darken(18),"800"),oa(tinycolor(n).darken(24),"900"),oa(tinycolor(n).lighten(50).saturate(30),"A100"),oa(tinycolor(n).lighten(30).saturate(30),"A200"),oa(tinycolor(n).lighten(10).saturate(15),"A400"),oa(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const s=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(s,c)}}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=>{var r;this.storeService.setInstanceConfig(t);const l=document.location.hostname;(null===(r=null==t?void 0:t.brandings)||void 0===r?void 0:r[l])&&this.storeService.setBanding(l),e()},()=>{e()})})}getNoCacheHeaders(){return new M.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.get("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.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt),i.LFG(Wi),i.LFG(it),i.LFG(Dt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oa(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let Sj=(()=>{class n{constructor(e,t,r){this.initAuthService=e,this.appConfigService=t,this.location=r,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-link-active",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 console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(VC),i.LFG(Tj),i.LFG(w.Ye))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[nv]]}),n})(),J4=(()=>{class n{constructor(e,t){(0,w.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Ks,useValue:Object.assign(Object.assign({},rv),e)},{provide:av,useValue:t,multi:!0},{provide:cf,useValue:!0}]:[{provide:Ks,useValue:Object.assign(Object.assign({},rv),e)},{provide:av,useValue:t,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(cf),i.LFG(i.Lbi))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[GE,IS,fD],GE,IS,fD]}),n})();const Q4=new i.OlP("perun-api-service"),X4={provide:M.TP,useExisting:(0,i.Gpc)(()=>Zx),multi:!0};function K4(n){return new vj(n,"./assets/i18n/",".json")}function eq(n){const a={basePath:n.get("api_url")};return new Xe(a)}const tq=n=>()=>n.initialize();let iq=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Gx),i.LFG(li))},n.\u0275mod=i.oAB({type:n,bootstrap:[QP]}),n.\u0275inj=i.cJS({providers:[Gx,{provide:i.ip1,useFactory:tq,multi:!0,deps:[Sj]},{provide:Xe,useFactory:eq,deps:[zt]},uA,Zx,X4,{provide:Q4,useClass:T2},it],imports:[[ue,I_,M.JF,Ap.forRoot({loader:{provide:gu,useFactory:K4,deps:[M.eN]}}),Cj,$l,hv,gv,Os,ns,J4,tv,tD,Ev,Sv,Ws,hd,pp,wA,_1,dd,C1,W,b1,OA,Rv,sS,Jx,pI,ii,Ru,LF,pS,Jp,BF,Yx,h1,fp.zr.forRoot()]]}),n})();(0,i.G48)(),Fr().bootstrapModule(iq).catch(n=>console.error(n))},1302:function(Y,U,x){var w;!function(i,E){var T={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=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 T(ie,ce,ne,de,me){for(var Ne,ze,Je,vt,Rt,Qe,Yi,St,yt,fe,Ae,Ce,Me;me>=64;){for(Ne=ce[0],ze=ce[1],Je=ce[2],vt=ce[3],Rt=ce[4],Qe=ce[5],Yi=ce[6],St=ce[7],fe=0;fe<16;fe++)ie[fe]=(255&ne[Ae=de+4*fe])<<24|(255&ne[Ae+1])<<16|(255&ne[Ae+2])<<8|255&ne[Ae+3];for(fe=16;fe<64;fe++)ie[fe]=((Ce=((yt=ie[fe-2])>>>17|yt<<15)^(yt>>>19|yt<<13)^yt>>>10)+ie[fe-7]|0)+((Me=((yt=ie[fe-15])>>>7|yt<<25)^(yt>>>18|yt<<14)^yt>>>3)+ie[fe-16]|0);for(fe=0;fe<64;fe++)Ce=(((Rt>>>6|Rt<<26)^(Rt>>>11|Rt<<21)^(Rt>>>25|Rt<<7))+(Rt&Qe^~Rt&Yi)|0)+(St+(E[fe]+ie[fe]|0)|0)|0,Me=((Ne>>>2|Ne<<30)^(Ne>>>13|Ne<<19)^(Ne>>>22|Ne<<10))+(Ne&ze^Ne&Je^ze&Je)|0,St=Yi,Yi=Qe,Qe=Rt,Rt=vt+Ce|0,vt=Je,Je=ze,ze=Ne,Ne=Ce+Me|0;ce[0]+=Ne,ce[1]+=ze,ce[2]+=Je,ce[3]+=vt,ce[4]+=Rt,ce[5]+=Qe,ce[6]+=Yi,ce[7]+=St,de+=64,me-=64}return de}var S=function(){function ie(){this.digestLength=i.digestLength,this.blockSize=i.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 ie.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},ie.prototype.clean=function(){for(var ce=0;ce0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;64===this.bufferLength&&(T(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(de=T(this.temp,this.state,ce,de,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;return this},ie.prototype.finish=function(ce){if(!this.finished){var ne=this.bytesHashed,de=this.bufferLength,me=ne/536870912|0,Ne=ne<<3,ze=ne%64<56?64:128;this.buffer[de]=128;for(var Je=de+1;Je>>24&255,this.buffer[ze-7]=me>>>16&255,this.buffer[ze-6]=me>>>8&255,this.buffer[ze-5]=me>>>0&255,this.buffer[ze-4]=Ne>>>24&255,this.buffer[ze-3]=Ne>>>16&255,this.buffer[ze-2]=Ne>>>8&255,this.buffer[ze-1]=Ne>>>0&255,T(this.temp,this.state,this.buffer,0,ze),this.finished=!0}for(Je=0;Je<8;Je++)ce[4*Je+0]=this.state[Je]>>>24&255,ce[4*Je+1]=this.state[Je]>>>16&255,ce[4*Je+2]=this.state[Je]>>>8&255,ce[4*Je+3]=this.state[Je]>>>0&255;return this},ie.prototype.digest=function(){var ce=new Uint8Array(this.digestLength);return this.finish(ce),ce},ie.prototype._saveState=function(ce){for(var ne=0;nethis.blockSize)(new S).update(ce).finish(ne).clean();else for(var de=0;de1&&ce.update(ie),ne&&ce.update(ne),ce.update(de),ce.finish(ie),de[0]++}i.HMAC=L,i.hash=R,i.default=R,i.hmac=N;var q=new Uint8Array(i.digestLength);i.hkdf=function $(ie,ce,ne,de){void 0===ce&&(ce=q),void 0===de&&(de=32);for(var me=new Uint8Array([1]),Ne=N(ce,ie),ze=new L(Ne),Je=new Uint8Array(ze.digestLength),vt=Je.length,Rt=new Uint8Array(de),Qe=0;Qe>>24&255,ze[1]=Yi>>>16&255,ze[2]=Yi>>>8&255,ze[3]=Yi>>>0&255,me.reset(),me.update(ce),me.update(ze),me.finish(vt);for(var St=0;St=$.status}function L(q){try{q.dispatchEvent(new MouseEvent("click"))}catch(X){var $=document.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),q.dispatchEvent($)}}var R="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,N=R.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),j=R.saveAs||("object"!=typeof window||window!==R?function(){}:"download"in HTMLAnchorElement.prototype&&!N?function(q,$,X){var ie=R.URL||R.webkitURL,ce=document.createElement("a");ce.download=$=$||q.name||"download",ce.rel="noopener","string"==typeof q?(ce.href=q,ce.origin===location.origin?L(ce):S(ce.href)?T(q,$,X):L(ce,ce.target="_blank")):(ce.href=ie.createObjectURL(q),setTimeout(function(){ie.revokeObjectURL(ce.href)},4e4),setTimeout(function(){L(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(q,$,X){if($=$||q.name||"download","string"!=typeof q)navigator.msSaveOrOpenBlob(function E(q,$){return void 0===$?$={autoBom:!1}:"object"!=typeof $&&(console.warn("Deprecated: Expected third argument to be a object"),$={autoBom:!$}),$.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(q.type)?new Blob(["\ufeff",q],{type:q.type}):q}(q,X),$);else if(S(q))T(q,$,X);else{var ie=document.createElement("a");ie.href=q,ie.target="_blank",setTimeout(function(){L(ie)})}}:function(q,$,X,ie){if((ie=ie||open("","_blank"))&&(ie.document.title=ie.document.body.innerText="downloading..."),"string"==typeof q)return T(q,$,X);var ce="application/octet-stream"===q.type,ne=/constructor/i.test(R.HTMLElement)||R.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||ce&&ne||N)&&"undefined"!=typeof FileReader){var me=new FileReader;me.onloadend=function(){var Je=me.result;Je=de?Je:Je.replace(/^data:[^;]*;/,"data:attachment/file;"),ie?ie.location.href=Je:location=Je,ie=null},me.readAsDataURL(q)}else{var Ne=R.URL||R.webkitURL,ze=Ne.createObjectURL(q);ie?ie.location=ze:location.href=ze,ie=null,setTimeout(function(){Ne.revokeObjectURL(ze)},4e4)}});R.saveAs=j.saveAs=j,Y.exports=j}.apply(U,[]))&&(Y.exports=i)},1158:(Y,U,x)=>{(Y.exports=x(7867)).tz.load(x(1128))},7867:function(Y,U,x){var w,i,E;!function(T,S){"use strict";Y.exports?Y.exports=S(x(5439)):(i=[x(5439)],void 0!==(E="function"==typeof(w=S)?w.apply(U,i):w)&&(Y.exports=E))}(0,function(T){"use strict";void 0===T.version&&T.default&&(T=T.default);var $,L={},R={},N={},j={},q={};(!T||"string"!=typeof T.version)&&pi("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var X=T.version.split("."),ie=+X[0],ce=+X[1];function ne(ue){return ue>96?ue-87:ue>64?ue-29:ue-48}function de(ue){var Le=0,_e=ue.split("."),We=_e[0],Ue=_e[1]||"",it=1,Te=0,ae=1;for(45===ue.charCodeAt(0)&&(Le=1,ae=-1);Le= 2.6.0. You are using Moment.js "+T.version+". See momentjs.com"),vt.prototype={_set:function(ue){this.name=ue.name,this.abbrs=ue.abbrs,this.untils=ue.untils,this.offsets=ue.offsets,this.population=ue.population},_index:function(ue){var We,Le=+ue,_e=this.untils;for(We=0;We<_e.length;We++)if(Le<_e[We])return We},countries:function(){var ue=this.name;return Object.keys(N).filter(function(Le){return-1!==N[Le].zones.indexOf(ue)})},parse:function(ue){var it,Qt,Te,ae,Le=+ue,_e=this.offsets,We=this.untils,Ue=We.length-1;for(ae=0;aeTe&&Ut.moveInvalidForward&&(it=Te),Le3){var Le=j[ge(ue)];if(Le)return Le;pi("Moment Timezone found "+ue+" from the Intl api, but did not have that data loaded.")}}catch(oe){}var Qt,Te,ae,_e=function yt(){var We,Ue,it,ue=(new Date).getFullYear()-2,Le=new Qe(new Date(ue,0,1)),_e=[Le];for(it=1;it<48;it++)(Ue=new Qe(new Date(ue,it,1))).offset!==Le.offset&&(We=St(Le,Ue),_e.push(We),_e.push(new Qe(new Date(We.at+6e4)))),Le=Ue;for(it=0;it<4;it++)_e.push(new Qe(new Date(ue+it,0,1))),_e.push(new Qe(new Date(ue+it,6,1)));return _e}(),We=_e.length,Ue=function Ce(ue){var Ue,it,Qt,Le=ue.length,_e={},We=[];for(Ue=0;Ue0?it[0].zone.name:void 0}()),$},Ut.names=function Ci(){var ue,Le=[];for(ue in j)j.hasOwnProperty(ue)&&(L[ue]||L[R[ue]])&&j[ue]&&Le.push(j[ue]);return Le.sort()},Ut.Zone=vt,Ut.unpack=Je,Ut.unpackBase60=de,Ut.needsOffset=sn,Ut.moveInvalidForward=!0,Ut.moveAmbiguousForward=!1,Ut.countries=function st(){return Object.keys(N)},Ut.zonesForCountry=function Ke(ue,Le){if(!(ue=function yi(ue){return ue=ue.toUpperCase(),N[ue]||null}(ue)))return null;var _e=ue.zones.sort();return Le?_e.map(function(We){return{name:We,offset:Lt(We).utcOffset(new Date)}}):_e};var on=T.fn;function la(ue){return function(){return this._z?this._z.abbr(this):ue.call(this)}}function ca(ue){return function(){return this._z=null,ue.apply(this,arguments)}}T.tz=Ut,T.defaultZone=null,T.updateOffset=function(ue,Le){var We,_e=T.defaultZone;if(void 0===ue._z&&(_e&&sn(ue)&&!ue._isUTC&&(ue._d=T.utc(ue._a)._d,ue.utc().add(_e.parse(ue),"minutes")),ue._z=_e),ue._z)if(We=ue._z.utcOffset(ue),Math.abs(We)<16&&(We/=60),void 0!==ue.utcOffset){var Ue=ue._z;ue.utcOffset(-We,Le),ue._z=Ue}else ue.zone(We,Le)},on.tz=function(ue,Le){if(ue){if("string"!=typeof ue)throw new Error("Time zone name must be a string, got "+ue+" ["+typeof ue+"]");return this._z=Lt(ue),this._z?T.updateOffset(this,Le):pi("Moment Timezone has no data for "+ue+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},on.zoneName=la(on.zoneName),on.zoneAbbr=la(on.zoneAbbr),on.utc=ca(on.utc),on.local=ca(on.local),on.utcOffset=function Fr(ue){return function(){return arguments.length>0&&(this._z=null),ue.apply(this,arguments)}}(on.utcOffset),T.tz.setDefault=function(ue){return(ie<2||2===ie&&ce<9)&&pi("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+T.version+"."),T.defaultZone=ue?Lt(ue):null,T};var Pn=T.momentProperties;return"[object Array]"===Object.prototype.toString.call(Pn)?(Pn.push("_z"),Pn.push("_a")):Pn&&(Pn._z=null),T})},7088:function(Y,U,x){!function(w){"use strict";w.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(E){return/^nm$/i.test(E)},meridiem:function(E,T,S){return E<12?S?"vm":"VM":S?"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(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(Y,U,x){!function(w){"use strict";var i=function(R){return 0===R?0:1===R?1:2===R?2:R%100>=3&&R%100<=10?3:R%100>=11?4:5},E={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"]},T=function(R){return function(N,j,q,$){var X=i(N),ie=E[R][i(N)];return 2===X&&(ie=ie[j?0:1]),ie.replace(/%d/i,N)}},S=["\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"];w.defineLocale("ar-dz",{months:S,monthsShort:S,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(R){return"\u0645"===R},meridiem:function(R,N,j){return R<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:T("s"),ss:T("s"),m:T("m"),mm:T("m"),h:T("h"),hh:T("h"),d:T("d"),dd:T("d"),M:T("M"),MM:T("M"),y:T("y"),yy:T("y")},postformat:function(R){return R.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},4519:function(Y,U,x){!function(w){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(N){return 0===N?0:1===N?1:2===N?2:N%100>=3&&N%100<=10?3:N%100>=11?4:5},T={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"]},S=function(N){return function(j,q,$,X){var ie=E(j),ce=T[N][E(j)];return 2===ie&&(ce=ce[q?0:1]),ce.replace(/%d/i,j)}},L=["\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"];w.defineLocale("ar-ly",{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(N){return"\u0645"===N},meridiem:function(N,j,q){return N<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:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(N){return N.replace(/\u060c/g,",")},postformat:function(N){return N.replace(/\d/g,function(j){return i[j]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},7642:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};w.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(S){return"\u0645"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},7038:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},T=function(j){return 0===j?0:1===j?1:2===j?2:j%100>=3&&j%100<=10?3:j%100>=11?4:5},S={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(j){return function(q,$,X,ie){var ce=T(q),ne=S[j][T(q)];return 2===ce&&(ne=ne[$?0:1]),ne.replace(/%d/i,q)}},R=["\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"];w.defineLocale("ar",{months:R,monthsShort:R,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(j){return"\u0645"===j},meridiem:function(j,q,$){return j<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(j){return j.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(q){return E[q]}).replace(/\u060c/g,",")},postformat:function(j){return j.replace(/\d/g,function(q){return i[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(T)},meridiem:function(T,S,L){return T<4?"gec\u0259":T<12?"s\u0259h\u0259r":T<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(T){if(0===T)return T+"-\u0131nc\u0131";var S=T%10;return T+(i[S]||i[T%100-S]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(Y,U,x){!function(w){"use strict";function E(S,L,R){return"m"===R?L?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===R?L?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,L){var R=S.split("_");return L%10==1&&L%100!=11?R[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?R[1]:R[2]}({ss:L?"\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:L?"\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:L?"\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"}[R],+S)}w.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:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,L,R){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,L){switch(L){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===T?E+"-\u0432\u0438":2===T?E+"-\u0440\u0438":7===T||8===T?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},5903:function(Y,U,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.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(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},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(S,L){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===L?S<4?S:S+12:"\u09ad\u09cb\u09b0"===L||"\u09b8\u0995\u09be\u09b2"===L?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===L?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===L||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(Y,U,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.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(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===L&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===L&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===L?S+12:S},meridiem:function(S,L,R){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(Y,U,x){!function(w){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};w.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(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},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(S,L){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===L&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===L&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===L?S+12:S},meridiem:function(S,L,R){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(Y,U,x){!function(w){"use strict";function i(ne,de,me){return ne+" "+function S(ne,de){return 2===de?function L(ne){var de={m:"v",b:"v",d:"z"};return void 0===de[ne.charAt(0)]?ne:de[ne.charAt(0)]+ne.substring(1)}(ne):ne}({mm:"munutenn",MM:"miz",dd:"devezh"}[me],ne)}function T(ne){return ne>9?T(ne%10):ne}var R=[/^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],N=/^(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,ie=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];w.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:ie,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:ie,monthsRegex:N,monthsShortRegex:N,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:R,longMonthsParse:R,shortMonthsParse:R,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:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ne){switch(T(ne)){case 1:case 3:case 4:case 5:case 9:return ne+" bloaz";default:return ne+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ne){return ne+(1===ne?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ne){return"g.m."===ne},meridiem:function(ne,de,me){return ne<12?"a.m.":"g.m."}})}(x(5439))},4792:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var R=T+" ";switch(L){case"ss":return R+(1===T?"sekunda":2===T||3===T||4===T?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===T?"minuta":2===T||3===T||4===T?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===T?"sat":2===T||3===T||4===T?"sata":"sati");case"dd":return R+(1===T?"dan":"dana");case"MM":return R+(1===T?"mjesec":2===T||3===T||4===T?"mjeseca":"mjeseci");case"yy":return R+(1===T?"godina":2===T||3===T||4===T?"godine":"godina")}}w.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:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(Y,U,x){!function(w){"use strict";w.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(E,T){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===T||"W"===T)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(Y,U,x){!function(w){"use strict";var i={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("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),T=[/^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],S=/^(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 L(j){return j>1&&j<5&&1!=~~(j/10)}function R(j,q,$,X){var ie=j+" ";switch($){case"s":return q||X?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return q||X?ie+(L(j)?"sekundy":"sekund"):ie+"sekundami";case"m":return q?"minuta":X?"minutu":"minutou";case"mm":return q||X?ie+(L(j)?"minuty":"minut"):ie+"minutami";case"h":return q?"hodina":X?"hodinu":"hodinou";case"hh":return q||X?ie+(L(j)?"hodiny":"hodin"):ie+"hodinami";case"d":return q||X?"den":"dnem";case"dd":return q||X?ie+(L(j)?"dny":"dn\xed"):ie+"dny";case"M":return q||X?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return q||X?ie+(L(j)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ie+"m\u011bs\xedci";case"y":return q||X?"rok":"rokem";case"yy":return q||X?ie+(L(j)?"roky":"let"):ie+"lety"}}w.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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:R,ss:R,m:R,mm:R,h:R,hh:R,d:R,dd:R,M:R,MM:R,y:R,yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},365:function(Y,U,x){!function(w){"use strict";w.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(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\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}})}(x(5439))},2092:function(Y,U,x){!function(w){"use strict";w.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(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},9459:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.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:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(Y,U,x){!function(w){"use strict";var i=["\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"],E=["\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"];w.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,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(S){return"\u0789\u078a"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(Y,U,x){!function(w){"use strict";w.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(T,S){return T?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[T.month()]:this._monthsNominativeEl[T.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(T,S,L){return T>11?L?"\u03bc\u03bc":"\u039c\u039c":L?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(T){return"\u03bc"===(T+"").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(T,S){var L=this._calendarEl[T],R=S&&S.hours();return function i(T){return"undefined"!=typeof Function&&T instanceof Function||"[object Function]"===Object.prototype.toString.call(T)}(L)&&(L=L.apply(S)),L.replace("{}",R%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}})}(x(5439))},4369:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}})}(x(5439))},9998:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}})}(x(5439))},9615:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(Y,U,x){!function(w){"use strict";w.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(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,T,S){return E>11?S?"p.t.m.":"P.T.M.":S?"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}})}(x(5439))},8944:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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;w.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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}})}(x(5439))},9116:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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;w.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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"})}(x(5439))},3609:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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;w.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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}})}(x(5439))},6866:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(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;w.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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"})}(x(5439))},6725:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[T+"sekundi",T+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[T+" minuti",T+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[T+" tunni",T+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[T+" kuu",T+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[T+" aasta",T+" aastat"]};return S?N[L][2]?N[L][2]:N[L][1]:R?N[L][0]:N[L][1]}w.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},6417:function(Y,U,x){!function(w){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};w.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(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,L,R){return S<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(S){return S.replace(/[\u06f0-\u06f9]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(Y,U,x){!function(w){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function T(R,N,j,q){var $="";switch(j){case"s":return q?"muutaman sekunnin":"muutama sekunti";case"ss":$=q?"sekunnin":"sekuntia";break;case"m":return q?"minuutin":"minuutti";case"mm":$=q?"minuutin":"minuuttia";break;case"h":return q?"tunnin":"tunti";case"hh":$=q?"tunnin":"tuntia";break;case"d":return q?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":$=q?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return q?"kuukauden":"kuukausi";case"MM":$=q?"kuukauden":"kuukautta";break;case"y":return q?"vuoden":"vuosi";case"yy":$=q?"vuoden":"vuotta"}return function S(R,N){return R<10?N?E[R]:i[R]:R}(R,q)+" "+$}w.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:T,ss:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(Y,U,x){!function(w){"use strict";w.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(E){return E},week:{dow:1,doy:4}})}(x(5439))},5867:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},6848:function(Y,U,x){!function(w){"use strict";w.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(E,T){switch(T){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(x(5439))},7773:function(Y,U,x){!function(w){"use strict";w.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(E,T){switch(T){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(Y,U,x){!function(w){"use strict";var T=/(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,S=[/^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];w.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:T,monthsShortRegex:T,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:S,longMonthsParse:S,shortMonthsParse:S,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(R,N){switch(N){case"D":return R+(1===R?"er":"");default:case"M":case"Q":case"DDD":case"d":return R+(1===R?"er":"e");case"w":case"W":return R+(1===R?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");w.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,L){return S?/-MMM-/.test(L)?E[S.month()]:i[S.month()]:i},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(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(Y,U,x){!function(w){"use strict";w.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(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(Y,U,x){!function(w){"use strict";w.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(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(Y,U,x){!function(w){"use strict";w.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(E){return 0===E.indexOf("un")?"n"+E:"en "+E},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}})}(x(5439))},2457:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={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:[T+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",T+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[T+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",T+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[T+" \u0935\u0930\u093e\u0902\u0928\u0940",T+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[T+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",T+" \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:[T+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",T+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[T+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",T+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return R?N[L][0]:N[L][1]}w.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(T,S){return"D"===S?T+"\u0935\u0947\u0930":T},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(T,S){return 12===T&&(T=0),"\u0930\u093e\u0924\u0940"===S?T<4?T:T+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?T:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?T>12?T:T+12:"\u0938\u093e\u0902\u091c\u0947"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"\u0930\u093e\u0924\u0940":T<12?"\u0938\u0915\u093e\u0933\u0940\u0902":T<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":T<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["thoddea sekondamni","thodde sekond"],ss:[T+" sekondamni",T+" sekond"],m:["eka mintan","ek minut"],mm:[T+" mintamni",T+" mintam"],h:["eka voran","ek vor"],hh:[T+" voramni",T+" voram"],d:["eka disan","ek dis"],dd:[T+" disamni",T+" dis"],M:["eka mhoinean","ek mhoino"],MM:[T+" mhoineamni",T+" mhoine"],y:["eka vorsan","ek voros"],yy:[T+" vorsamni",T+" vorsam"]};return R?N[L][0]:N[L][1]}w.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(T,S){return"D"===S?T+"er":T},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(T,S){return 12===T&&(T=0),"rati"===S?T<4?T:T+12:"sokallim"===S?T:"donparam"===S?T>12?T:T+12:"sanje"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"rati":T<12?"sokallim":T<16?"donparam":T<20?"sanje":"rati"}})}(x(5439))},2641:function(Y,U,x){!function(w){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};w.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(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===L?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===L?S:"\u0aac\u0aaa\u0acb\u0ab0"===L?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(Y,U,x){!function(w){"use strict";w.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(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \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(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,T,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},T=[/^\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];w.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:T,longMonthsParse:T,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(R){return R.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(N){return E[N]})},postformat:function(R){return R.replace(/\d/g,function(N){return i[N]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(R,N){return 12===R&&(R=0),"\u0930\u093e\u0924"===N?R<4?R:R+12:"\u0938\u0941\u092c\u0939"===N?R:"\u0926\u094b\u092a\u0939\u0930"===N?R>=10?R:R+12:"\u0936\u093e\u092e"===N?R+12:void 0},meridiem:function(R,N,j){return R<4?"\u0930\u093e\u0924":R<10?"\u0938\u0941\u092c\u0939":R<17?"\u0926\u094b\u092a\u0939\u0930":R<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var R=T+" ";switch(L){case"ss":return R+(1===T?"sekunda":2===T||3===T||4===T?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===T?"minuta":2===T||3===T||4===T?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===T?"sat":2===T||3===T||4===T?"sata":"sati");case"dd":return R+(1===T?"dan":"dana");case"MM":return R+(1===T?"mjesec":2===T||3===T||4===T?"mjeseca":"mjeseci");case"yy":return R+(1===T?"godina":2===T||3===T||4===T?"godine":"godina")}}w.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:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(Y,U,x){!function(w){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(L,R,N,j){var q=L;switch(N){case"s":return j||R?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return q+(j||R)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(j||R?" perc":" perce");case"mm":return q+(j||R?" perc":" perce");case"h":return"egy"+(j||R?" \xf3ra":" \xf3r\xe1ja");case"hh":return q+(j||R?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(j||R?" nap":" napja");case"dd":return q+(j||R?" nap":" napja");case"M":return"egy"+(j||R?" h\xf3nap":" h\xf3napja");case"MM":return q+(j||R?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(j||R?" \xe9v":" \xe9ve");case"yy":return q+(j||R?" \xe9v":" \xe9ve")}return""}function T(L){return(L?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}w.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(L){return"u"===L.charAt(1).toLowerCase()},meridiem:function(L,R,N){return L<12?!0===N?"de":"DE":!0===N?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return T.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return T.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3165:function(Y,U,x){!function(w){"use strict";w.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(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<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(E,T){switch(T){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(x(5439))},8780:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"pagi"===T?E:"siang"===T?E>=11?E:E+12:"sore"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"siang":E<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}})}(x(5439))},4205:function(Y,U,x){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,L,R,N){var j=S+" ";switch(R){case"s":return L||N?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?j+(L||N?"sek\xfandur":"sek\xfandum"):j+"sek\xfanda";case"m":return L?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?j+(L||N?"m\xedn\xfatur":"m\xedn\xfatum"):L?j+"m\xedn\xfata":j+"m\xedn\xfatu";case"hh":return i(S)?j+(L||N?"klukkustundir":"klukkustundum"):j+"klukkustund";case"d":return L?"dagur":N?"dag":"degi";case"dd":return i(S)?L?j+"dagar":j+(N?"daga":"d\xf6gum"):L?j+"dagur":j+(N?"dag":"degi");case"M":return L?"m\xe1nu\xf0ur":N?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?L?j+"m\xe1nu\xf0ir":j+(N?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):L?j+"m\xe1nu\xf0ur":j+(N?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return L||N?"\xe1r":"\xe1ri";case"yy":return i(S)?j+(L||N?"\xe1r":"\xe1rum"):j+(L||N?"\xe1r":"\xe1ri")}}w.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:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(Y,U,x){!function(w){"use strict";w.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(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},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}})}(x(5439))},4211:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},1003:function(Y,U,x){!function(w){"use strict";w.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(E,T){return"\u5143"===T[1]?1:parseInt(T[1]||E,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(E){return"\u5348\u5f8c"===E},meridiem:function(E,T,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,T){switch(T){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},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"}})}(x(5439))},420:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"enjing"===T?E:"siyang"===T?E>=11?E:E+12:"sonten"===T||"ndalu"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"enjing":E<15?"siyang":E<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}})}(x(5439))},851:function(Y,U,x){!function(w){"use strict";w.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(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(T,S,L){return"\u10d8"===L?S+"\u10e8\u10d8":S+L+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},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(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(Y,U,x){!function(w){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};w.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(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(Y,U,x){!function(w){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};w.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(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},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(S,L){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===L?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===L?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===L?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(Y,U,x){!function(w){"use strict";w.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(E,T){switch(T){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,T,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},T=["\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"];w.defineLocale("ku",{months:T,monthsShort:T,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(L){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(L)},meridiem:function(L,R,N){return L<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(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(R){return E[R]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(R){return i[R]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(Y,U,x){!function(w){"use strict";function i(R,N,j,q){var $={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 N?$[j][0]:$[j][1]}function S(R){if(R=parseInt(R,10),isNaN(R))return!1;if(R<0)return!0;if(R<10)return 4<=R&&R<=7;if(R<100){var N=R%10;return S(0===N?R/10:N)}if(R<1e4){for(;R>=10;)R/=10;return S(R)}return S(R/=1e3)}w.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 E(R){return S(R.substr(0,R.indexOf(" ")))?"a "+R:"an "+R},past:function T(R){return S(R.substr(0,R.indexOf(" ")))?"viru "+R:"virun "+R},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(Y,U,x){!function(w){"use strict";w.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(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,T,S){return E<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(E){return"\u0e97\u0eb5\u0ec8"+E}})}(x(5439))},2400:function(Y,U,x){!function(w){"use strict";var i={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 T(j,q,$,X){return q?L($)[0]:X?L($)[1]:L($)[2]}function S(j){return j%10==0||j>10&&j<20}function L(j){return i[j].split("_")}function R(j,q,$,X){var ie=j+" ";return 1===j?ie+T(0,q,$[0],X):q?ie+(S(j)?L($)[1]:L($)[0]):X?ie+L($)[1]:ie+(S(j)?L($)[1]:L($)[2])}w.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 E(j,q,$,X){return q?"kelios sekund\u0117s":X?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:R,m:T,mm:R,h:T,hh:R,d:T,dd:R,M:T,MM:R,y:T,yy:R},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(j){return j+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(Y,U,x){!function(w){"use strict";var i={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 E(N,j,q){return q?j%10==1&&j%100!=11?N[2]:N[3]:j%10==1&&j%100!=11?N[0]:N[1]}function T(N,j,q){return N+" "+E(i[q],N,j)}function S(N,j,q){return E(i[q],N,j)}w.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 L(N,j){return j?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:T,m:S,mm:T,h:S,hh:T,d:S,dd:T,M:S,MM:T,y:S,yy:T},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(Y,U,x){!function(w){"use strict";var i={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(T,S){return 1===T?S[0]:T>=2&&T<=4?S[1]:S[2]},translate:function(T,S,L){var R=i.words[L];return 1===L.length?S?R[0]:R[1]:T+" "+i.correctGrammaticalCase(T,R)}};w.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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},5943:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===T?E+"-\u0432\u0438":2===T?E+"-\u0440\u0438":7===T||8===T?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===T&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===T||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===T?E+12:E},meridiem:function(E,T,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){switch(L){case"s":return S?"\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 T+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return T+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return T+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return T+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return T+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return T+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return T}}w.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(T){return"\u04ae\u0425"===T},meridiem:function(T,S,L){return T<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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(T,S){switch(S){case"d":case"D":case"DDD":return T+" \u04e9\u0434\u04e9\u0440";default:return T}}})}(x(5439))},6184:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function T(L,R,N,j){var q="";if(R)switch(N){case"s":q="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":q="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":q="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":q="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":q="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":q="%d \u0924\u093e\u0938";break;case"d":q="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":q="%d \u0926\u093f\u0935\u0938";break;case"M":q="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":q="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":q="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":q="%d \u0935\u0930\u094d\u0937\u0947"}else switch(N){case"s":q="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":q="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":q="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":q="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":q="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":q="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":q="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":q="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":q="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":q="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":q="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":q="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return q.replace(/%d/i,L)}w.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:T,ss:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(R){return E[R]})},postformat:function(L){return L.replace(/\d/g,function(R){return i[R]})},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(L,R){return 12===L&&(L=0),"\u092a\u0939\u093e\u091f\u0947"===R||"\u0938\u0915\u093e\u0933\u0940"===R?L:"\u0926\u0941\u092a\u093e\u0930\u0940"===R||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===R||"\u0930\u093e\u0924\u094d\u0930\u0940"===R?L>=12?L:L+12:void 0},meridiem:function(L,R,N){return L>=0&&L<6?"\u092a\u0939\u093e\u091f\u0947":L<12?"\u0938\u0915\u093e\u0933\u0940":L<17?"\u0926\u0941\u092a\u093e\u0930\u0940":L<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"pagi"===T?E:"tengahari"===T?E>=11?E:E+12:"petang"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"tengahari":E<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}})}(x(5439))},485:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"pagi"===T?E:"tengahari"===T?E>=11?E:E+12:"petang"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"tengahari":E<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}})}(x(5439))},6681:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},2024:function(Y,U,x){!function(w){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};w.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(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},8914:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};w.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(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===L?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===L?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===L?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===L?S+12:void 0},meridiem:function(S,L,R){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<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}})}(x(5439))},2272:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),T=[/^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],S=/^(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;w.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),T=[/^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],S=/^(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;w.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,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:T,longMonthsParse:T,shortMonthsParse:T,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(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},2797:function(Y,U,x){!function(w){"use strict";w.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(E,T){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===T||"W"===T)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(Y,U,x){!function(w){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};w.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(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===L?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===L?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===L?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(Y,U,x){!function(w){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),T=[/^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 S(N){return N%10<5&&N%10>1&&~~(N/10)%10!=1}function L(N,j,q){var $=N+" ";switch(q){case"ss":return $+(S(N)?"sekundy":"sekund");case"m":return j?"minuta":"minut\u0119";case"mm":return $+(S(N)?"minuty":"minut");case"h":return j?"godzina":"godzin\u0119";case"hh":return $+(S(N)?"godziny":"godzin");case"ww":return $+(S(N)?"tygodnie":"tygodni");case"MM":return $+(S(N)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return $+(S(N)?"lata":"lat")}}w.defineLocale("pl",{months:function(N,j){return N?/D MMMM/.test(j)?E[N.month()]:i[N.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:T,longMonthsParse:T,shortMonthsParse:T,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:L,m:L,mm:L,h:L,hh:L,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:L,M:"miesi\u0105c",MM:L,y:"rok",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(Y,U,x){!function(w){"use strict";w.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"})}(x(5439))},4225:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},5128:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var N=" ";return(T%100>=20||T>=100&&T%100==0)&&(N=" de "),T+N+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[L]}w.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:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(Y,U,x){!function(w){"use strict";function E(L,R,N){return"m"===N?R?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":L+" "+function i(L,R){var N=L.split("_");return R%10==1&&R%100!=11?N[0]:R%10>=2&&R%10<=4&&(R%100<10||R%100>=20)?N[1]:N[2]}({ss:R?"\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:R?"\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"}[N],+L)}var T=[/^\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];w.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:T,longMonthsParse:T,shortMonthsParse:T,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(L){if(L.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(L){if(L.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:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(L)},meridiem:function(L,R,N){return L<4?"\u043d\u043e\u0447\u0438":L<12?"\u0443\u0442\u0440\u0430":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(L,R){switch(R){case"M":case"d":case"DDD":return L+"-\u0439";case"D":return L+"-\u0433\u043e";case"w":case"W":return L+"-\u044f";default:return L}},week:{dow:1,doy:4}})}(x(5439))},2525:function(Y,U,x){!function(w){"use strict";var i=["\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"],E=["\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"];w.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,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(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},3123:function(Y,U,x){!function(w){"use strict";w.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(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,T,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},9635:function(Y,U,x){!function(w){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function T(R){return R>1&&R<5}function S(R,N,j,q){var $=R+" ";switch(j){case"s":return N||q?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return N||q?$+(T(R)?"sekundy":"sek\xfand"):$+"sekundami";case"m":return N?"min\xfata":q?"min\xfatu":"min\xfatou";case"mm":return N||q?$+(T(R)?"min\xfaty":"min\xfat"):$+"min\xfatami";case"h":return N?"hodina":q?"hodinu":"hodinou";case"hh":return N||q?$+(T(R)?"hodiny":"hod\xedn"):$+"hodinami";case"d":return N||q?"de\u0148":"d\u0148om";case"dd":return N||q?$+(T(R)?"dni":"dn\xed"):$+"d\u0148ami";case"M":return N||q?"mesiac":"mesiacom";case"MM":return N||q?$+(T(R)?"mesiace":"mesiacov"):$+"mesiacmi";case"y":return N||q?"rok":"rokom";case"yy":return N||q?$+(T(R)?"roky":"rokov"):$+"rokmi"}}w.defineLocale("sk",{months:i,monthsShort:E,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:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N=T+" ";switch(L){case"s":return S||R?"nekaj sekund":"nekaj sekundami";case"ss":return N+(1===T?S?"sekundo":"sekundi":2===T?S||R?"sekundi":"sekundah":T<5?S||R?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return N+(1===T?S?"minuta":"minuto":2===T?S||R?"minuti":"minutama":T<5?S||R?"minute":"minutami":S||R?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return N+(1===T?S?"ura":"uro":2===T?S||R?"uri":"urama":T<5?S||R?"ure":"urami":S||R?"ur":"urami");case"d":return S||R?"en dan":"enim dnem";case"dd":return N+(1===T?S||R?"dan":"dnem":2===T?S||R?"dni":"dnevoma":S||R?"dni":"dnevi");case"M":return S||R?"en mesec":"enim mesecem";case"MM":return N+(1===T?S||R?"mesec":"mesecem":2===T?S||R?"meseca":"mesecema":T<5?S||R?"mesece":"meseci":S||R?"mesecev":"meseci");case"y":return S||R?"eno leto":"enim letom";case"yy":return N+(1===T?S||R?"leto":"letom":2===T?S||R?"leti":"letoma":T<5?S||R?"leta":"leti":S||R?"let":"leti")}}w.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(Y,U,x){!function(w){"use strict";w.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(E){return"M"===E.charAt(0)},meridiem:function(E,T,S){return E<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}})}(x(5439))},2872:function(Y,U,x){!function(w){"use strict";var i={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(T,S){return T%10>=1&&T%10<=4&&(T%100<10||T%100>=20)?T%10==1?S[0]:S[1]:S[2]},translate:function(T,S,L,R){var N=i.words[L];if(1===L.length)return"y"===L&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":R||S?N[0]:N[1];const j=i.correctGrammaticalCase(T,N);return"yy"===L&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===j?T+" \u0433\u043e\u0434\u0438\u043d\u0430":T+" "+j}};w.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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(Y,U,x){!function(w){"use strict";var i={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(T,S){return T%10>=1&&T%10<=4&&(T%100<10||T%100>=20)?T%10==1?S[0]:S[1]:S[2]},translate:function(T,S,L,R){var N=i.words[L];if(1===L.length)return"y"===L&&S?"jedna godina":R||S?N[0]:N[1];const j=i.correctGrammaticalCase(T,N);return"yy"===L&&S&&"godinu"===j?T+" godina":T+" "+j}};w.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:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(Y,U,x){!function(w){"use strict";w.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(E,T,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,T){return 12===E&&(E=0),"ekuseni"===T?E:"emini"===T?E>=11?E:E+12:"entsambama"===T||"ebusuku"===T?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?":e":1===T||2===T?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},2732:function(Y,U,x){!function(w){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};w.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(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},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(S,L,R){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,L){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===L?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===L||"\u0b95\u0bbe\u0bb2\u0bc8"===L||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===L&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===T?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===T?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===T?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===T?E+12:void 0},meridiem:function(E,T,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T,S){return 12===T&&(T=0),"\u0448\u0430\u0431"===S?T<4?T:T+12:"\u0441\u0443\u0431\u04b3"===S?T:"\u0440\u04ef\u0437"===S?T>=11?T:T+12:"\u0431\u0435\u0433\u043e\u04b3"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"\u0448\u0430\u0431":T<11?"\u0441\u0443\u0431\u04b3":T<16?"\u0440\u04ef\u0437":T<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},4486:function(Y,U,x){!function(w){"use strict";w.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(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,T,S){return E<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"}})}(x(5439))},1310:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T,S){switch(S){case"d":case"D":case"Do":case"DD":return T;default:if(0===T)return T+"'unjy";var L=T%10;return T+(i[L]||i[T%100-L]||i[T>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(Y,U,x){!function(w){"use strict";w.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(E){return E},week:{dow:1,doy:4}})}(x(5439))},6645:function(Y,U,x){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(N,j,q,$){var X=function L(N){var j=Math.floor(N%1e3/100),q=Math.floor(N%100/10),$=N%10,X="";return j>0&&(X+=i[j]+"vatlh"),q>0&&(X+=(""!==X?" ":"")+i[q]+"maH"),$>0&&(X+=(""!==X?" ":"")+i[$]),""===X?"pagh":X}(N);switch(q){case"ss":return X+" lup";case"mm":return X+" tup";case"hh":return X+" rep";case"dd":return X+" jaj";case"MM":return X+" jar";case"yy":return X+" DIS"}}w.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 E(N){var j=N;return-1!==N.indexOf("jaj")?j.slice(0,-3)+"leS":-1!==N.indexOf("jar")?j.slice(0,-3)+"waQ":-1!==N.indexOf("DIS")?j.slice(0,-3)+"nem":j+" pIq"},past:function T(N){var j=N;return-1!==N.indexOf("jaj")?j.slice(0,-3)+"Hu\u2019":-1!==N.indexOf("jar")?j.slice(0,-3)+"wen":-1!==N.indexOf("DIS")?j.slice(0,-3)+"ben":j+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(Y,U,x){!function(w){"use strict";var i={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"};w.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(T,S,L){return T<12?L?"\xf6\xf6":"\xd6\xd6":L?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(T){return"\xf6s"===T||"\xd6S"===T},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(T,S){switch(S){case"d":case"D":case"Do":case"DD":return T;default:if(0===T)return T+"'\u0131nc\u0131";var L=T%10;return T+(i[L]||i[T%100-L]||i[T>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(Y,U,x){!function(w){"use strict";function E(T,S,L,R){var N={s:["viensas secunds","'iensas secunds"],ss:[T+" secunds",T+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[T+" m\xeduts",T+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[T+" \xfeoras",T+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[T+" ziuas",T+" ziuas"],M:["'n mes","'iens mes"],MM:[T+" mesen",T+" mesen"],y:["'n ar","'iens ar"],yy:[T+" ars",T+" ars"]};return R||S?N[L][0]:N[L][1]}w.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(T){return"d'o"===T.toLowerCase()},meridiem:function(T,S,L){return T>11?L?"d'o":"D'O":L?"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:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},1595:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},6050:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===T||"\u0633\u06d5\u06be\u06d5\u0631"===T||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===T?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===T||"\u0643\u06d5\u0686"===T?E+12:E>=11?E:E+12},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":L<900?"\u0633\u06d5\u06be\u06d5\u0631":L<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":L<1230?"\u0686\u06c8\u0634":L<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(E,T){switch(T){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(Y,U,x){!function(w){"use strict";function E(R,N,j){return"m"===j?N?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===j?N?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":R+" "+function i(R,N){var j=R.split("_");return N%10==1&&N%100!=11?j[0]:N%10>=2&&N%10<=4&&(N%100<10||N%100>=20)?j[1]:j[2]}({ss:N?"\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:N?"\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:N?"\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"}[j],+R)}function S(R){return function(){return R+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}w.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 T(R,N){var j={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===R?j.nominative.slice(1,7).concat(j.nominative.slice(0,1)):R?j[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(N)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(N)?"genitive":"nominative"][R.day()]:j.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:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\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:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(R){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(R)},meridiem:function(R,N,j){return R<4?"\u043d\u043e\u0447\u0456":R<12?"\u0440\u0430\u043d\u043a\u0443":R<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(R,N){switch(N){case"M":case"d":case"DDD":case"w":case"W":return R+"-\u0439";case"D":return R+"-\u0433\u043e";default:return R}},week:{dow:1,doy:7}})}(x(5439))},6077:function(Y,U,x){!function(w){"use strict";var i=["\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"],E=["\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"];w.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,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(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,L,R){return S<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(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},2862:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},8093:function(Y,U,x){!function(w){"use strict";w.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(E){return/^ch$/i.test(E)},meridiem:function(E,T,S){return E<12?S?"sa":"SA":S?"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(E){return E},week:{dow:1,doy:4}})}(x(5439))},5590:function(Y,U,x){!function(w){"use strict";w.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(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(Y,U,x){!function(w){"use strict";w.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}})}(x(5439))},7908:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:E>=11?E:E+12},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},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}})}(x(5439))},8867:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1200?"\u4e0a\u5348":1200===L?"\u4e2d\u5348":L<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(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},1133:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<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(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},3291:function(Y,U,x){!function(w){"use strict";w.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(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<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(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},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"}})}(x(5439))},5439:function(Y,U,x){(Y=x.nmd(Y)).exports=function(){"use strict";var w,de;function i(){return w.apply(null,arguments)}function T(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function S(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function L(C,H){return Object.prototype.hasOwnProperty.call(C,H)}function R(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var H;for(H in C)if(L(C,H))return!1;return!0}function N(C){return void 0===C}function j(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function q(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function $(C,H){var z,O=[],J=C.length;for(z=0;z>>0;for(z=0;z0)for(O=0;O=0?O?"+":"":"-")+Math.pow(10,Math.max(0,H-z.length)).toString().substr(1)+z}var st=/(\[[^\[]*\])|(\\)?([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,bt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,kn={},yi={};function Ke(C,H,O,z){var J=z;"string"==typeof z&&(J=function(){return this[z]()}),C&&(yi[C]=J),H&&(yi[H[0]]=function(){return Ci(J.apply(this,arguments),H[1],H[2])}),O&&(yi[O]=function(){return this.localeData().ordinal(J.apply(this,arguments),C)})}function di(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function sn(C,H){return C.isValid()?(H=pi(H,C.localeData()),kn[H]=kn[H]||function hr(C){var O,z,H=C.match(st);for(O=0,z=H.length;O=0&&bt.test(C);)C=C.replace(bt,z),bt.lastIndex=0,O-=1;return C}var Ue={};function it(C,H){var O=C.toLowerCase();Ue[O]=Ue[O+"s"]=Ue[H]=C}function Qt(C){return"string"==typeof C?Ue[C]||Ue[C.toLowerCase()]:void 0}function Te(C){var O,z,H={};for(z in C)L(C,z)&&(O=Qt(z))&&(H[O]=C[z]);return H}var ae={};function oe(C,H){ae[C]=H}function De(C){return C%4==0&&C%100!=0||C%400==0}function Fe(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function xe(C){var H=+C,O=0;return 0!==H&&isFinite(H)&&(O=Fe(H)),O}function Ge(C,H){return function(O){return null!=O?(Ni(this,C,O),i.updateOffset(this,H),this):It(this,C)}}function It(C,H){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+H]():NaN}function Ni(C,H,O){C.isValid()&&!isNaN(O)&&("FullYear"===H&&De(C.year())&&1===C.month()&&29===C.date()?(O=xe(O),C._d["set"+(C._isUTC?"UTC":"")+H](O,C.month(),fi(O,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+H](O))}var M,Vi=/\d/,ft=/\d\d/,Ze=/\d{3}/,Vn=/\d{4}/,Gt=/[+-]?\d{6}/,Et=/\d\d?/,pr=/\d\d\d\d?/,Xn=/\d\d\d\d\d\d?/,zn=/\d{1,3}/,sc=/\d{1,4}/,Oa=/[+-]?\d{1,6}/,da=/\d+/,ua=/[+-]?\d+/,fr=/Z|[+-]\d\d:?\d\d/gi,ms=/Z|[+-]\d\d(?::?\d\d)?/gi,eo=/[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 Be(C,H,O){M[C]=Ae(H)?H:function(z,J){return z&&O?O:H}}function vi(C,H){return L(M,C)?M[C](H._strict,H._locale):new RegExp(function ln(C){return Xe(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,O,z,J,le){return O||z||J||le}))}(C))}function Xe(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}M={};var ni={};function xt(C,H){var O,J,z=H;for("string"==typeof C&&(C=[C]),j(H)&&(z=function(le,we){we[H]=xe(le)}),J=C.length,O=0;O68?1900:2e3)};var On=Ge("FullYear",!0);function Zo(C,H,O,z,J,le,we){var ot;return C<100&&C>=0?(ot=new Date(C+400,H,O,z,J,le,we),isFinite(ot.getFullYear())&&ot.setFullYear(C)):ot=new Date(C,H,O,z,J,le,we),ot}function Va(C){var H,O;return C<100&&C>=0?((O=Array.prototype.slice.call(arguments))[0]=C+400,H=new Date(Date.UTC.apply(null,O)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(C)):H=new Date(Date.UTC.apply(null,arguments)),H}function pa(C,H,O){var z=7+H-O;return-(7+Va(C,0,z).getUTCDay()-H)%7+z-1}function tr(C,H,O,z,J){var kt,ai,ot=1+7*(H-1)+(7+O-z)%7+pa(C,z,J);return ot<=0?ai=Na(kt=C-1)+ot:ot>Na(C)?(kt=C+1,ai=ot-Na(C)):(kt=C,ai=ot),{year:kt,dayOfYear:ai}}function As(C,H,O){var le,we,z=pa(C.year(),H,O),J=Math.floor((C.dayOfYear()-z-1)/7)+1;return J<1?le=J+fa(we=C.year()-1,H,O):J>fa(C.year(),H,O)?(le=J-fa(C.year(),H,O),we=C.year()+1):(we=C.year(),le=J),{week:le,year:we}}function fa(C,H,O){var z=pa(C,H,O),J=pa(C+1,H,O);return(Na(C)-z+J)/7}Ke("w",["ww",2],"wo","week"),Ke("W",["WW",2],"Wo","isoWeek"),it("week","w"),it("isoWeek","W"),oe("week",5),oe("isoWeek",5),Be("w",Et),Be("ww",Et,ft),Be("W",Et),Be("WW",Et,ft),Wi(["w","ww","W","WW"],function(C,H,O,z){H[z.substr(0,1)]=xe(C)});function ys(C,H){return C.slice(H,7).concat(C.slice(0,H))}Ke("d",0,"do","day"),Ke("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),Ke("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),Ke("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),Ke("e",0,0,"weekday"),Ke("E",0,0,"isoWeekday"),it("day","d"),it("weekday","e"),it("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Be("d",Et),Be("e",Et),Be("E",Et),Be("dd",function(C,H){return H.weekdaysMinRegex(C)}),Be("ddd",function(C,H){return H.weekdaysShortRegex(C)}),Be("dddd",function(C,H){return H.weekdaysRegex(C)}),Wi(["dd","ddd","dddd"],function(C,H,O,z){var J=O._locale.weekdaysParse(C,z,O._strict);null!=J?H.d=J:ne(O).invalidWeekday=C}),Wi(["d","e","E"],function(C,H,O,z){H[z]=xe(C)});var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),dn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=eo,Ad=eo,Ki=eo;function $o(C,H,O){var z,J,le,we=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)le=ie([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(le,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(le,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(le,"").toLocaleLowerCase();return O?"dddd"===H?-1!==(J=ri.call(this._weekdaysParse,we))?J:null:"ddd"===H?-1!==(J=ri.call(this._shortWeekdaysParse,we))?J:null:-1!==(J=ri.call(this._minWeekdaysParse,we))?J:null:"dddd"===H?-1!==(J=ri.call(this._weekdaysParse,we))||-1!==(J=ri.call(this._shortWeekdaysParse,we))||-1!==(J=ri.call(this._minWeekdaysParse,we))?J:null:"ddd"===H?-1!==(J=ri.call(this._shortWeekdaysParse,we))||-1!==(J=ri.call(this._weekdaysParse,we))||-1!==(J=ri.call(this._minWeekdaysParse,we))?J:null:-1!==(J=ri.call(this._minWeekdaysParse,we))||-1!==(J=ri.call(this._weekdaysParse,we))||-1!==(J=ri.call(this._shortWeekdaysParse,we))?J:null}function Zt(){function C(Bi,Pr){return Pr.length-Bi.length}var le,we,ot,kt,ai,H=[],O=[],z=[],J=[];for(le=0;le<7;le++)we=ie([2e3,1]).day(le),ot=Xe(this.weekdaysMin(we,"")),kt=Xe(this.weekdaysShort(we,"")),ai=Xe(this.weekdays(we,"")),H.push(ot),O.push(kt),z.push(ai),J.push(ot),J.push(kt),J.push(ai);H.sort(C),O.sort(C),z.sort(C),J.sort(C),this._weekdaysRegex=new RegExp("^("+J.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function za(){return this.hours()%12||12}function Sr(C,H){Ke(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Cs(C,H){return H._meridiemParse}Ke("H",["HH",2],0,"hour"),Ke("h",["hh",2],0,za),Ke("k",["kk",2],0,function _i(){return this.hours()||24}),Ke("hmm",0,0,function(){return""+za.apply(this)+Ci(this.minutes(),2)}),Ke("hmmss",0,0,function(){return""+za.apply(this)+Ci(this.minutes(),2)+Ci(this.seconds(),2)}),Ke("Hmm",0,0,function(){return""+this.hours()+Ci(this.minutes(),2)}),Ke("Hmmss",0,0,function(){return""+this.hours()+Ci(this.minutes(),2)+Ci(this.seconds(),2)}),Sr("a",!0),Sr("A",!1),it("hour","h"),oe("hour",13),Be("a",Cs),Be("A",Cs),Be("H",Et),Be("h",Et),Be("k",Et),Be("HH",Et,ft),Be("hh",Et,ft),Be("kk",Et,ft),Be("hmm",pr),Be("hmmss",Xn),Be("Hmm",pr),Be("Hmmss",Xn),xt(["H","HH"],3),xt(["k","kk"],function(C,H,O){var z=xe(C);H[3]=24===z?0:z}),xt(["a","A"],function(C,H,O){O._isPm=O._locale.isPM(C),O._meridiem=C}),xt(["h","hh"],function(C,H,O){H[3]=xe(C),ne(O).bigHour=!0}),xt("hmm",function(C,H,O){var z=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z)),ne(O).bigHour=!0}),xt("hmmss",function(C,H,O){var z=C.length-4,J=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z,2)),H[5]=xe(C.substr(J)),ne(O).bigHour=!0}),xt("Hmm",function(C,H,O){var z=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z))}),xt("Hmmss",function(C,H,O){var z=C.length-4,J=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z,2)),H[5]=xe(C.substr(J))});var wn=Ge("Hours",!0);var ga,Jo={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:xr,monthsShort:mi,week:{dow:0,doy:6},weekdays:jt,weekdaysMin:$e,weekdaysShort:dn,meridiemParse:/[ap]\.?m?\.?/i},bi={},Ts={};function cc(C,H){var O,z=Math.min(C.length,H.length);for(O=0;O0;){if(J=B(le.slice(0,O).join("-")))return J;if(z&&z.length>=O&&cc(le,z)>=O-1)break;O--}H++}return ga}(C)}function Se(C){var H,O=C._a;return O&&-2===ne(C).overflow&&(H=O[1]<0||O[1]>11?1:O[2]<1||O[2]>fi(O[0],O[1])?2:O[3]<0||O[3]>24||24===O[3]&&(0!==O[4]||0!==O[5]||0!==O[6])?3:O[4]<0||O[4]>59?4:O[5]<0||O[5]>59?5:O[6]<0||O[6]>999?6:-1,ne(C)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ne(C)._overflowWeeks&&-1===H&&(H=7),ne(C)._overflowWeekday&&-1===H&&(H=8),ne(C).overflow=H),C}var nt=/^\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)?)?$/,Yt=/^\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)?)?$/,Xt=/Z|[+-]\d\d(?::?\d\d)?/,At=[["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]],Ft=[["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/]],Gi=/^\/?Date\((-?\d+)/i,Ti=/^(?:(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}))$/,ki={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _a(C){var H,O,le,we,ot,kt,z=C._i,J=nt.exec(z)||Yt.exec(z),ai=At.length,Bi=Ft.length;if(J){for(ne(C).iso=!0,H=0,O=ai;H7)&&(kt=!0)):(le=C._locale._week.dow,we=C._locale._week.doy,ai=As(Mi(),le,we),O=ao(H.gg,C._a[0],ai.year),z=ao(H.w,ai.week),null!=H.d?((J=H.d)<0||J>6)&&(kt=!0):null!=H.e?(J=H.e+le,(H.e<0||H.e>6)&&(kt=!0)):J=le),z<1||z>fa(O,le,we)?ne(C)._overflowWeeks=!0:null!=kt?ne(C)._overflowWeekday=!0:(ot=tr(O,z,J,le,we),C._a[0]=ot.year,C._dayOfYear=ot.dayOfYear)}(C),null!=C._dayOfYear&&(we=ao(C._a[0],J[0]),(C._dayOfYear>Na(we)||0===C._dayOfYear)&&(ne(C)._overflowDayOfYear=!0),O=Va(we,0,C._dayOfYear),C._a[1]=O.getUTCMonth(),C._a[2]=O.getUTCDate()),H=0;H<3&&null==C._a[H];++H)C._a[H]=z[H]=J[H];for(;H<7;H++)C._a[H]=z[H]=null==C._a[H]?2===H?1:0:C._a[H];24===C._a[3]&&0===C._a[4]&&0===C._a[5]&&0===C._a[6]&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?Va:Zo).apply(null,z),le=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&void 0!==C._w.d&&C._w.d!==le&&(ne(C).weekdayMismatch=!0)}}function ba(C){if(C._f!==i.ISO_8601)if(C._f!==i.RFC_2822){C._a=[],ne(C).empty=!0;var O,z,J,le,we,ai,Bi,H=""+C._i,ot=H.length,kt=0;for(Bi=(J=pi(C._f,C._locale).match(st)||[]).length,O=0;O0&&ne(C).unusedInput.push(we),H=H.slice(H.indexOf(z)+z.length),kt+=z.length),yi[le]?(z?ne(C).empty=!1:ne(C).unusedTokens.push(le),Go(le,z,C)):C._strict&&!z&&ne(C).unusedTokens.push(le);ne(C).charsLeftOver=ot-kt,H.length>0&&ne(C).unusedInput.push(H),C._a[3]<=12&&!0===ne(C).bigHour&&C._a[3]>0&&(ne(C).bigHour=void 0),ne(C).parsedDateParts=C._a.slice(0),ne(C).meridiem=C._meridiem,C._a[3]=function Zi(C,H,O){var z;return null==O?H:null!=C.meridiemHour?C.meridiemHour(H,O):(null!=C.isPM&&((z=C.isPM(O))&&H<12&&(H+=12),!z&&12===H&&(H=0)),H)}(C._locale,C._a[3],C._meridiem),null!==(ai=ne(C).era)&&(C._a[0]=C._locale.erasConvertYear(ai,C._a[0])),be(C),Se(C)}else Ko(C);else _a(C)}function uc(C){var H=C._i,O=C._f;return C._locale=C._locale||re(C._l),null===H||void 0===O&&""===H?Ne({nullInput:!0}):("string"==typeof H&&(C._i=H=C._locale.preparse(H)),Qe(H)?new Rt(Se(H)):(q(H)?C._d=H:T(O)?function dc(C){var H,O,z,J,le,we,ot=!1,kt=C._f.length;if(0===kt)return ne(C).invalidFormat=!0,void(C._d=new Date(NaN));for(J=0;Jthis?this:C:Ne()});function ei(C,H){var O,z;if(1===H.length&&T(H[0])&&(H=H[0]),!H.length)return Mi();for(O=H[0],z=1;z=0?new Date(C+400,H,O)-dl:new Date(C,H,O).valueOf()}function yc(C,H,O){return C<100&&C>=0?Date.UTC(C+400,H,O)-dl:Date.UTC(C,H,O)}function kd(C,H){return H.erasAbbrRegex(C)}function lh(){var J,le,C=[],H=[],O=[],z=[],we=this.eras();for(J=0,le=we.length;J(le=fa(C,z,J))&&(H=le),Df.call(this,C,H,O,z,J))}function Df(C,H,O,z,J){var le=tr(C,H,O,z,J),we=Va(le.year,0,le.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ke("N",0,0,"eraAbbr"),Ke("NN",0,0,"eraAbbr"),Ke("NNN",0,0,"eraAbbr"),Ke("NNNN",0,0,"eraName"),Ke("NNNNN",0,0,"eraNarrow"),Ke("y",["y",1],"yo","eraYear"),Ke("y",["yy",2],0,"eraYear"),Ke("y",["yyy",3],0,"eraYear"),Ke("y",["yyyy",4],0,"eraYear"),Be("N",kd),Be("NN",kd),Be("NNN",kd),Be("NNNN",function Tf(C,H){return H.erasNameRegex(C)}),Be("NNNNN",function xf(C,H){return H.erasNarrowRegex(C)}),xt(["N","NN","NNN","NNNN","NNNNN"],function(C,H,O,z){var J=O._locale.erasParse(C,z,O._strict);J?ne(O).era=J:ne(O).invalidEra=C}),Be("y",da),Be("yy",da),Be("yyy",da),Be("yyyy",da),Be("yo",function I1(C,H){return H._eraYearOrdinalRegex||da}),xt(["y","yy","yyy","yyyy"],0),xt(["yo"],function(C,H,O,z){var J;O._locale._eraYearOrdinalRegex&&(J=C.match(O._locale._eraYearOrdinalRegex)),H[0]=O._locale.eraYearOrdinalParse?O._locale.eraYearOrdinalParse(C,J):parseInt(C,10)}),Ke(0,["gg",2],0,function(){return this.weekYear()%100}),Ke(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fl("gggg","weekYear"),fl("ggggg","weekYear"),fl("GGGG","isoWeekYear"),fl("GGGGG","isoWeekYear"),it("weekYear","gg"),it("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Be("G",ua),Be("g",ua),Be("GG",Et,ft),Be("gg",Et,ft),Be("GGGG",sc,Vn),Be("gggg",sc,Vn),Be("GGGGG",Oa,Gt),Be("ggggg",Oa,Gt),Wi(["gggg","ggggg","GGGG","GGGGG"],function(C,H,O,z){H[z.substr(0,2)]=xe(C)}),Wi(["gg","GG"],function(C,H,O,z){H[z]=i.parseTwoDigitYear(C)}),Ke("Q",0,"Qo","quarter"),it("quarter","Q"),oe("quarter",7),Be("Q",Vi),xt("Q",function(C,H){H[1]=3*(xe(C)-1)}),Ke("D",["DD",2],"Do","date"),it("date","D"),oe("date",9),Be("D",Et),Be("DD",Et,ft),Be("Do",function(C,H){return C?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),xt(["D","DD"],2),xt("Do",function(C,H){H[2]=xe(C.match(Et)[0])});var qn=Ge("Date",!0);Ke("DDD",["DDDD",3],"DDDo","dayOfYear"),it("dayOfYear","DDD"),oe("dayOfYear",4),Be("DDD",zn),Be("DDDD",Ze),xt(["DDD","DDDD"],function(C,H,O){O._dayOfYear=xe(C)}),Ke("m",["mm",2],0,"minute"),it("minute","m"),oe("minute",14),Be("m",Et),Be("mm",Et,ft),xt(["m","mm"],4);var gl=Ge("Minutes",!1);Ke("s",["ss",2],0,"second"),it("second","s"),oe("second",15),Be("s",Et),Be("ss",Et,ft),xt(["s","ss"],5);var Gr,_l,Ca=Ge("Seconds",!1);for(Ke("S",0,0,function(){return~~(this.millisecond()/100)}),Ke(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ke(0,["SSS",3],0,"millisecond"),Ke(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ke(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ke(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ke(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ke(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ke(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),it("millisecond","ms"),oe("millisecond",16),Be("S",zn,Vi),Be("SS",zn,ft),Be("SSS",zn,Ze),Gr="SSSS";Gr.length<=9;Gr+="S")Be(Gr,da);function ch(C,H){H[6]=xe(1e3*("0."+C))}for(Gr="S";Gr.length<=9;Gr+="S")xt(Gr,ch);_l=Ge("Milliseconds",!1),Ke("z",0,0,"zoneAbbr"),Ke("zz",0,0,"zoneName");var Ie=Rt.prototype;function va(C){return C}Ie.add=Ku,Ie.calendar=function eh(C,H){1===arguments.length&&(arguments[0]?co(arguments[0])?(C=arguments[0],H=void 0):ir(arguments[0])&&(H=arguments[0],C=void 0):(C=void 0,H=void 0));var O=C||Mi(),z=lo(O,this).startOf("day"),J=i.calendarFormat(this,z)||"sameElse",le=H&&(Ae(H[J])?H[J].call(this,O):H[J]);return this.format(le||this.localeData().calendar(J,this,Mi(O)))},Ie.clone=function th(){return new Rt(this)},Ie.diff=function _c(C,H,O){var z,J,le;if(!this.isValid())return NaN;if(!(z=lo(C,this)).isValid())return NaN;switch(J=6e4*(z.utcOffset()-this.utcOffset()),H=Qt(H)){case"year":le=ho(this,z)/12;break;case"month":le=ho(this,z);break;case"quarter":le=ho(this,z)/3;break;case"second":le=(this-z)/1e3;break;case"minute":le=(this-z)/6e4;break;case"hour":le=(this-z)/36e5;break;case"day":le=(this-z-J)/864e5;break;case"week":le=(this-z-J)/6048e5;break;default:le=this-z}return O?le:Fe(le)},Ie.endOf=function rh(C){var H,O;if(void 0===(C=Qt(C))||"millisecond"===C||!this.isValid())return this;switch(O=this._isUTC?yc:Dd,C){case"year":H=O(this.year()+1,0,1)-1;break;case"quarter":H=O(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=O(this.year(),this.month()+1,1)-1;break;case"week":H=O(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=O(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=O(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=ya-mo(H+(this._isUTC?0:this.utcOffset()*Wa),ya)-1;break;case"minute":H=this._d.valueOf(),H+=Wa-mo(H,Wa)-1;break;case"second":H=this._d.valueOf(),H+=1e3-mo(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Ie.format=function Ds(C){C||(C=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=sn(this,C);return this.localeData().postformat(H)},Ie.from=function bc(C,H){return this.isValid()&&(Qe(C)&&C.isValid()||Mi(C).isValid())?Hr({to:this,from:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ie.fromNow=function R1(C){return this.from(Mi(),C)},Ie.to=function nh(C,H){return this.isValid()&&(Qe(C)&&C.isValid()||Mi(C).isValid())?Hr({from:this,to:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ie.toNow=function cl(C){return this.to(Mi(),C)},Ie.get=function Vt(C){return Ae(this[C=Qt(C)])?this[C]():this},Ie.invalidAt=function Ma(){return ne(this).overflow},Ie.isAfter=function P1(C,H){var O=Qe(C)?C:Mi(C);return!(!this.isValid()||!O.isValid())&&("millisecond"===(H=Qt(H)||"millisecond")?this.valueOf()>O.valueOf():O.valueOf()9999?sn(O,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ae(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",sn(O,"Z")):sn(O,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ie.inspect=function po(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O,z,C="moment",H="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),O="["+C+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(O+z+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ie.toJSON=function ah(){return this.isValid()?this.toISOString():null},Ie.toString=function Ya(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ie.unix=function Cf(){return Math.floor(this.valueOf()/1e3)},Ie.valueOf=function Hd(){return this._d.valueOf()-6e4*(this._offset||0)},Ie.creationData=function Ld(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ie.eraName=function Ao(){var C,H,O,z=this.localeData().eras();for(C=0,H=z.length;Cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ie.isLocal=function Oi(){return!!this.isValid()&&!this._isUTC},Ie.isUtcOffset=function mc(){return!!this.isValid()&&this._isUTC},Ie.isUtc=rl,Ie.isUTC=rl,Ie.zoneAbbr=function B1(){return this._isUTC?"UTC":""},Ie.zoneName=function N1(){return this._isUTC?"Coordinated Universal Time":""},Ie.dates=St("dates accessor is deprecated. Use date instead.",qn),Ie.months=St("months accessor is deprecated. Use month instead",Ba),Ie.years=St("years accessor is deprecated. Use year instead",On),Ie.zone=St("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Cd(C,H){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,H),this):-this.utcOffset()}),Ie.isDSTShifted=St("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Dr(){if(!N(this._isDSTShifted))return this._isDSTShifted;var H,C={};return vt(C,this),(C=uc(C))._a?(H=C._isUTC?ie(C._a):Mi(C._a),this._isDSTShifted=this.isValid()&&function il(C,H,O){var we,z=Math.min(C.length,H.length),J=Math.abs(C.length-H.length),le=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var ti=ke.prototype;function wo(C,H,O,z){var J=re(),le=ie().set(z,H);return J[O](le,C)}function bl(C,H,O){if(j(C)&&(H=C,C=void 0),C=C||"",null!=H)return wo(C,H,O,"month");var z,J=[];for(z=0;z<12;z++)J[z]=wo(C,z,O,"month");return J}function Od(C,H,O,z){"boolean"==typeof C?(j(H)&&(O=H,H=void 0),H=H||""):(O=H=C,C=!1,j(H)&&(O=H,H=void 0),H=H||"");var we,J=re(),le=C?J._week.dow:0,ot=[];if(null!=O)return wo(H,(O+le)%7,z,"day");for(we=0;we<7;we++)ot[we]=wo(H,(we+le)%7,z,"day");return ot}ti.calendar=function Lt(C,H,O){var z=this._calendar[C]||this._calendar.sameElse;return Ae(z)?z.call(H,O):z},ti.longDateFormat=function on(C){var H=this._longDateFormat[C],O=this._longDateFormat[C.toUpperCase()];return H||!O?H:(this._longDateFormat[C]=O.match(st).map(function(z){return"MMMM"===z||"MM"===z||"DD"===z||"dddd"===z?z.slice(1):z}).join(""),this._longDateFormat[C])},ti.invalidDate=function ca(){return this._invalidDate},ti.ordinal=function ue(C){return this._ordinal.replace("%d",C)},ti.preparse=va,ti.postformat=va,ti.relativeTime=function _e(C,H,O,z){var J=this._relativeTime[O];return Ae(J)?J(C,H,O,z):J.replace(/%d/i,C)},ti.pastFuture=function We(C,H){var O=this._relativeTime[C>0?"future":"past"];return Ae(O)?O(H):O.replace(/%s/i,H)},ti.set=function Ce(C){var H,O;for(O in C)L(C,O)&&(Ae(H=C[O])?this[O]=H:this["_"+O]=H);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ti.eras=function wa(C,H){var O,z,J,le=this._eras||re("en")._eras;for(O=0,z=le.length;O=0)return le[z]},ti.erasConvertYear=function bo(C,H){var O=C.since<=C.until?1:-1;return void 0===H?i(C.since).year():i(C.since).year()+(H-C.offset)*O},ti.erasAbbrRegex=function pl(C){return L(this,"_erasAbbrRegex")||lh.call(this),C?this._erasAbbrRegex:this._erasRegex},ti.erasNameRegex=function O1(C){return L(this,"_erasNameRegex")||lh.call(this),C?this._erasNameRegex:this._erasRegex},ti.erasNarrowRegex=function hi(C){return L(this,"_erasNarrowRegex")||lh.call(this),C?this._erasNarrowRegex:this._erasRegex},ti.months=function _s(C,H){return C?T(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||ha).test(H)?"format":"standalone"][C.month()]:T(this._months)?this._months:this._months.standalone},ti.monthsShort=function Ia(C,H){return C?T(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[ha.test(H)?"format":"standalone"][C.month()]:T(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ti.monthsParse=function bs(C,H,O){var z,J,le;if(this._monthsParseExact)return oc.call(this,C,H,O);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if(J=ie([2e3,z]),O&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months(J,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort(J,"").replace(".","")+"$","i")),!O&&!this._monthsParse[z]&&(le="^"+this.months(J,"")+"|^"+this.monthsShort(J,""),this._monthsParse[z]=new RegExp(le.replace(".",""),"i")),O&&"MMMM"===H&&this._longMonthsParse[z].test(C))return z;if(O&&"MMM"===H&&this._shortMonthsParse[z].test(C))return z;if(!O&&this._monthsParse[z].test(C))return z}},ti.monthsRegex=function gi(C){return this._monthsParseExact?(L(this,"_monthsRegex")||lc.call(this),C?this._monthsStrictRegex:this._monthsRegex):(L(this,"_monthsRegex")||(this._monthsRegex=Dt),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},ti.monthsShortRegex=function Kn(C){return this._monthsParseExact?(L(this,"_monthsRegex")||lc.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(L(this,"_monthsShortRegex")||(this._monthsShortRegex=Hi),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},ti.week=function gf(C){return As(C,this._week.dow,this._week.doy).week},ti.firstDayOfYear=function bf(){return this._week.doy},ti.firstDayOfWeek=function _f(){return this._week.dow},ti.weekdays=function io(C,H){var O=T(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===C?ys(O,this._week.dow):C?O[C.day()]:O},ti.weekdaysMin=function no(C){return!0===C?ys(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},ti.weekdaysShort=function Ri(C){return!0===C?ys(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},ti.weekdaysParse=function yd(C,H,O){var z,J,le;if(this._weekdaysParseExact)return $o.call(this,C,H,O);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if(J=ie([2e3,1]).day(z),O&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays(J,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort(J,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin(J,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(le="^"+this.weekdays(J,"")+"|^"+this.weekdaysShort(J,"")+"|^"+this.weekdaysMin(J,""),this._weekdaysParse[z]=new RegExp(le.replace(".",""),"i")),O&&"dddd"===H&&this._fullWeekdaysParse[z].test(C))return z;if(O&&"ddd"===H&&this._shortWeekdaysParse[z].test(C))return z;if(O&&"dd"===H&&this._minWeekdaysParse[z].test(C))return z;if(!O&&this._weekdaysParse[z].test(C))return z}},ti.weekdaysRegex=function ws(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(L(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},ti.weekdaysShortRegex=function ut(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(L(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ad),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ti.weekdaysMinRegex=function Ui(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(L(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ki),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ti.isPM=function Md(C){return"p"===(C+"").toLowerCase().charAt(0)},ti.meridiem=function vs(C,H,O){return C>11?O?"pm":"PM":O?"am":"AM"},G("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(C){var H=C%10;return C+(1===xe(C%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=St("moment.lang is deprecated. Use moment.locale instead.",G),i.langData=St("moment.langData is deprecated. Use moment.localeData instead.",re);var br=Math.abs;function vo(C,H,O,z){var J=Hr(H,O);return C._milliseconds+=z*J._milliseconds,C._days+=z*J._days,C._months+=z*J._months,C._bubble()}function dh(C){return C<0?Math.floor(C):Math.ceil(C)}function uh(C){return 4800*C/146097}function vc(C){return 146097*C/4800}function kr(C){return function(){return this.as(C)}}var Rf=kr("ms"),hn=kr("s"),hh=kr("m"),Of=kr("h"),Nd=kr("d"),To=kr("w"),V1=kr("M"),ph=kr("Q"),fh=kr("y");function Za(C){return function(){return this.isValid()?this._data[C]:NaN}}var So=Za("milliseconds"),If=Za("seconds"),mh=Za("minutes"),Tc=Za("hours"),xc=Za("days"),Sc=Za("months"),Bf=Za("years");var Yn=Math.round,Ar={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gh(C,H,O,z,J){return J.relativeTime(H||1,!!O,C,z)}var Ec=Math.abs;function Eo(C){return(C>0)-(C<0)||+C}function Dc(){if(!this.isValid())return this.localeData().invalidDate();var z,J,le,we,kt,ai,Bi,Pr,C=Ec(this._milliseconds)/1e3,H=Ec(this._days),O=Ec(this._months),ot=this.asSeconds();return ot?(z=Fe(C/60),J=Fe(z/60),C%=60,z%=60,le=Fe(O/12),O%=12,we=C?C.toFixed(3).replace(/\.?0+$/,""):"",kt=ot<0?"-":"",ai=Eo(this._months)!==Eo(ot)?"-":"",Bi=Eo(this._days)!==Eo(ot)?"-":"",Pr=Eo(this._milliseconds)!==Eo(ot)?"-":"",kt+"P"+(le?ai+le+"Y":"")+(O?ai+O+"M":"")+(H?Bi+H+"D":"")+(J||z||C?"T":"")+(J?Pr+J+"H":"")+(z?Pr+z+"M":"")+(C?Pr+we+"S":"")):"P0D"}var rt=hc.prototype;return rt.isValid=function $u(){return this._isValid},rt.abs=function wc(){var C=this._data;return this._milliseconds=br(this._milliseconds),this._days=br(this._days),this._months=br(this._months),C.milliseconds=br(C.milliseconds),C.seconds=br(C.seconds),C.minutes=br(C.minutes),C.hours=br(C.hours),C.months=br(C.months),C.years=br(C.years),this},rt.add=function Bd(C,H){return vo(this,C,H,1)},rt.subtract=function Cc(C,H){return vo(this,C,H,-1)},rt.as=function Pf(C){if(!this.isValid())return NaN;var H,O,z=this._milliseconds;if("month"===(C=Qt(C))||"quarter"===C||"year"===C)switch(H=this._days+z/864e5,O=this._months+uh(H),C){case"month":return O;case"quarter":return O/3;case"year":return O/12}else switch(H=this._days+Math.round(vc(this._months)),C){case"week":return H/7+z/6048e5;case"day":return H+z/864e5;case"hour":return 24*H+z/36e5;case"minute":return 1440*H+z/6e4;case"second":return 86400*H+z/1e3;case"millisecond":return Math.floor(864e5*H)+z;default:throw new Error("Unknown unit "+C)}},rt.asMilliseconds=Rf,rt.asSeconds=hn,rt.asMinutes=hh,rt.asHours=Of,rt.asDays=Nd,rt.asWeeks=To,rt.asMonths=V1,rt.asQuarters=ph,rt.asYears=fh,rt.valueOf=function Al(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*xe(this._months/12):NaN},rt._bubble=function kf(){var J,le,we,ot,kt,C=this._milliseconds,H=this._days,O=this._months,z=this._data;return C>=0&&H>=0&&O>=0||C<=0&&H<=0&&O<=0||(C+=864e5*dh(vc(O)+H),H=0,O=0),z.milliseconds=C%1e3,J=Fe(C/1e3),z.seconds=J%60,le=Fe(J/60),z.minutes=le%60,we=Fe(le/60),z.hours=we%24,H+=Fe(we/24),O+=kt=Fe(uh(H)),H-=dh(vc(kt)),ot=Fe(O/12),O%=12,z.days=H,z.months=O,z.years=ot,this},rt.clone=function xo(){return Hr(this)},rt.get=function Ga(C){return C=Qt(C),this.isValid()?this[C+"s"]():NaN},rt.milliseconds=So,rt.seconds=If,rt.minutes=mh,rt.hours=Tc,rt.days=xc,rt.weeks=function Nf(){return Fe(this.days()/7)},rt.months=Sc,rt.years=Bf,rt.humanize=function F1(C,H){if(!this.isValid())return this.localeData().invalidDate();var J,le,O=!1,z=Ar;return"object"==typeof C&&(H=C,C=!1),"boolean"==typeof C&&(O=C),"object"==typeof H&&(z=Object.assign({},Ar,H),null!=H.s&&null==H.ss&&(z.ss=H.s-1)),le=function z1(C,H,O,z){var J=Hr(C).abs(),le=Yn(J.as("s")),we=Yn(J.as("m")),ot=Yn(J.as("h")),kt=Yn(J.as("d")),ai=Yn(J.as("M")),Bi=Yn(J.as("w")),Pr=Yn(J.as("y")),Ps=le<=O.ss&&["s",le]||le0,Ps[4]=z,gh.apply(null,Ps)}(this,!O,z,J=this.localeData()),O&&(le=J.pastFuture(+this,le)),J.postformat(le)},rt.toISOString=Dc,rt.toString=Dc,rt.toJSON=Dc,rt.locale=fo,rt.localeData=Hs,rt.toIsoString=St("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dc),rt.lang=Ac,Ke("X",0,0,"unix"),Ke("x",0,0,"valueOf"),Be("x",ua),Be("X",/[+-]?\d+(\.\d{1,3})?/),xt("X",function(C,H,O){O._d=new Date(1e3*parseFloat(C))}),xt("x",function(C,H,O){O._d=new Date(xe(C))}),i.version="2.29.2",function E(C){w=C}(Mi),i.fn=Ie,i.min=function un(){return ei("isBefore",[].slice.call(arguments,0))},i.max=function Gu(){return ei("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=ie,i.unix=function rr(C){return Mi(1e3*C)},i.months=function Hf(C,H){return bl(C,H,"months")},i.isDate=q,i.locale=G,i.invalid=Ne,i.duration=Hr,i.isMoment=Qe,i.weekdays=function Lf(C,H,O){return Od(C,H,O,"weekdays")},i.parseZone=function Rd(){return Mi.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=xs,i.monthsShort=function Mc(C,H){return bl(C,H,"monthsShort")},i.weekdaysMin=function Id(C,H,O){return Od(C,H,O,"weekdaysMin")},i.defineLocale=I,i.updateLocale=function Q(C,H){if(null!=H){var O,z,J=Jo;null!=bi[C]&&null!=bi[C].parentLocale?bi[C].set(Me(bi[C]._config,H)):(null!=(z=B(C))&&(J=z._config),H=Me(J,H),null==z&&(H.abbr=C),(O=new ke(H)).parentLocale=bi[C],bi[C]=O),G(C)}else null!=bi[C]&&(null!=bi[C].parentLocale?(bi[C]=bi[C].parentLocale,C===G()&&G(C)):null!=bi[C]&&delete bi[C]);return bi[C]},i.locales=function ye(){return ge(bi)},i.weekdaysShort=function Co(C,H,O){return Od(C,H,O,"weekdaysShort")},i.normalizeUnits=Qt,i.relativeTimeRounding=function _h(C){return void 0===C?Yn:"function"==typeof C&&(Yn=C,!0)},i.relativeTimeThreshold=function Vf(C,H){return void 0!==Ar[C]&&(void 0===H?Ar[C]:(Ar[C]=H,"s"===C&&(Ar.ss=H-1),!0))},i.calendarFormat=function qa(C,H){var O=C.diff(H,"days",!0);return O<-6?"sameElse":O<-1?"lastWeek":O<0?"lastDay":O<1?"sameDay":O<2?"nextDay":O<7?"nextWeek":"sameElse"},i.prototype=Ie,i.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"},i}()},1869:(Y,U,x)=>{"use strict";x.d(U,{d:()=>i});var w=x(3489);class i extends w.L{constructor(T,S,L){super(),this.parent=T,this.outerValue=S,this.outerIndex=L,this.index=0}_next(T){this.parent.notifyNext(this.outerValue,T,this.outerIndex,this.index++,this)}_error(T){this.parent.notifyError(T,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(Y,U,x)=>{"use strict";x.d(U,{P:()=>S});var w=x(8896),i=x(1086),E=x(1737);class S{constructor(R,N,j){this.kind=R,this.value=N,this.error=j,this.hasValue="N"===R}observe(R){switch(this.kind){case"N":return R.next&&R.next(this.value);case"E":return R.error&&R.error(this.error);case"C":return R.complete&&R.complete()}}do(R,N,j){switch(this.kind){case"N":return R&&R(this.value);case"E":return N&&N(this.error);case"C":return j&&j()}}accept(R,N,j){return R&&"function"==typeof R.next?this.observe(R):this.do(R,N,j)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,E._)(this.error);case"C":return(0,w.c)()}throw new Error("unexpected notification kind value")}static createNext(R){return void 0!==R?new S("N",R):S.undefinedValueNotification}static createError(R){return new S("E",void 0,R)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},2916:(Y,U,x)=>{"use strict";x.d(U,{y:()=>$});var w=x(3489),E=x(7668),T=x(3292),L=x(3821),R=x(5379);var q=x(2830);let $=(()=>{class ie{constructor(ne){this._isScalar=!1,ne&&(this._subscribe=ne)}lift(ne){const de=new ie;return de.source=this,de.operator=ne,de}subscribe(ne,de,me){const{operator:Ne}=this,ze=function S(ie,ce,ne){if(ie){if(ie instanceof w.L)return ie;if(ie[E.b])return ie[E.b]()}return ie||ce||ne?new w.L(ie,ce,ne):new w.L(T.c)}(ne,de,me);if(ze.add(Ne?Ne.call(ze,this.source):this.source||q.v.useDeprecatedSynchronousErrorHandling&&!ze.syncErrorThrowable?this._subscribe(ze):this._trySubscribe(ze)),q.v.useDeprecatedSynchronousErrorHandling&&ze.syncErrorThrowable&&(ze.syncErrorThrowable=!1,ze.syncErrorThrown))throw ze.syncErrorValue;return ze}_trySubscribe(ne){try{return this._subscribe(ne)}catch(de){q.v.useDeprecatedSynchronousErrorHandling&&(ne.syncErrorThrown=!0,ne.syncErrorValue=de),function i(ie){for(;ie;){const{closed:ce,destination:ne,isStopped:de}=ie;if(ce||de)return!1;ie=ne&&ne instanceof w.L?ne:null}return!0}(ne)?ne.error(de):console.warn(de)}}forEach(ne,de){return new(de=X(de))((me,Ne)=>{let ze;ze=this.subscribe(Je=>{try{ne(Je)}catch(vt){Ne(vt),ze&&ze.unsubscribe()}},Ne,me)})}_subscribe(ne){const{source:de}=this;return de&&de.subscribe(ne)}[L.L](){return this}pipe(...ne){return 0===ne.length?this:function j(ie){return 0===ie.length?R.y:1===ie.length?ie[0]:function(ne){return ie.reduce((de,me)=>me(de),ne)}}(ne)(this)}toPromise(ne){return new(ne=X(ne))((de,me)=>{let Ne;this.subscribe(ze=>Ne=ze,ze=>me(ze),()=>de(Ne))})}}return ie.create=ce=>new ie(ce),ie})();function X(ie){if(ie||(ie=q.v.Promise||Promise),!ie)throw new Error("no Promise impl found");return ie}},3292:(Y,U,x)=>{"use strict";x.d(U,{c:()=>E});var w=x(2830),i=x(2782);const E={closed:!0,next(T){},error(T){if(w.v.useDeprecatedSynchronousErrorHandling)throw T;(0,i.z)(T)},complete(){}}},826:(Y,U,x)=>{"use strict";x.d(U,{L:()=>i});var w=x(3489);class i extends w.L{notifyNext(T,S,L,R,N){this.destination.next(S)}notifyError(T,S){this.destination.error(T)}notifyComplete(T){this.destination.complete()}}},8929:(Y,U,x)=>{"use strict";x.d(U,{Yc:()=>R,xQ:()=>N});var w=x(2916),i=x(3489),E=x(2654),T=x(5279),S=x(5283),L=x(7668);class R extends i.L{constructor($){super($),this.destination=$}}let N=(()=>{class q extends w.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[L.b](){return new R(this)}lift(X){const ie=new j(this,this);return ie.operator=X,ie}next(X){if(this.closed)throw new T.N;if(!this.isStopped){const{observers:ie}=this,ce=ie.length,ne=ie.slice();for(let de=0;denew j($,X),q})();class j extends N{constructor($,X){super(),this.destination=$,this.source=X}next($){const{destination:X}=this;X&&X.next&&X.next($)}error($){const{destination:X}=this;X&&X.error&&this.destination.error($)}complete(){const{destination:$}=this;$&&$.complete&&this.destination.complete()}_subscribe($){const{source:X}=this;return X?this.source.subscribe($):E.w.EMPTY}}},5283:(Y,U,x)=>{"use strict";x.d(U,{W:()=>i});var w=x(2654);class i extends w.w{constructor(T,S){super(),this.subject=T,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const T=this.subject,S=T.observers;if(this.subject=null,!S||0===S.length||T.isStopped||T.closed)return;const L=S.indexOf(this.subscriber);-1!==L&&S.splice(L,1)}}},3489:(Y,U,x)=>{"use strict";x.d(U,{L:()=>R});var w=x(7043),i=x(3292),E=x(2654),T=x(7668),S=x(2830),L=x(2782);class R extends E.w{constructor(q,$,X){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!q){this.destination=i.c;break}if("object"==typeof q){q instanceof R?(this.syncErrorThrowable=q.syncErrorThrowable,this.destination=q,q.add(this)):(this.syncErrorThrowable=!0,this.destination=new N(this,q));break}default:this.syncErrorThrowable=!0,this.destination=new N(this,q,$,X)}}[T.b](){return this}static create(q,$,X){const ie=new R(q,$,X);return ie.syncErrorThrowable=!1,ie}next(q){this.isStopped||this._next(q)}error(q){this.isStopped||(this.isStopped=!0,this._error(q))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(q){this.destination.next(q)}_error(q){this.destination.error(q),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:q}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=q,this}}class N extends R{constructor(q,$,X,ie){super(),this._parentSubscriber=q;let ce,ne=this;(0,w.m)($)?ce=$:$&&(ce=$.next,X=$.error,ie=$.complete,$!==i.c&&(ne=Object.create($),(0,w.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=ce,this._error=X,this._complete=ie}next(q){if(!this.isStopped&&this._next){const{_parentSubscriber:$}=this;S.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,q)&&this.unsubscribe():this.__tryOrUnsub(this._next,q)}}error(q){if(!this.isStopped){const{_parentSubscriber:$}=this,{useDeprecatedSynchronousErrorHandling:X}=S.v;if(this._error)X&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,q),this.unsubscribe()):(this.__tryOrUnsub(this._error,q),this.unsubscribe());else if($.syncErrorThrowable)X?($.syncErrorValue=q,$.syncErrorThrown=!0):(0,L.z)(q),this.unsubscribe();else{if(this.unsubscribe(),X)throw q;(0,L.z)(q)}}}complete(){if(!this.isStopped){const{_parentSubscriber:q}=this;if(this._complete){const $=()=>this._complete.call(this._context);S.v.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable?(this.__tryOrSetError(q,$),this.unsubscribe()):(this.__tryOrUnsub($),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(q,$){try{q.call(this._context,$)}catch(X){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw X;(0,L.z)(X)}}__tryOrSetError(q,$,X){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,X)}catch(ie){return S.v.useDeprecatedSynchronousErrorHandling?(q.syncErrorValue=ie,q.syncErrorThrown=!0,!0):((0,L.z)(ie),!0)}return!1}_unsubscribe(){const{_parentSubscriber:q}=this;this._context=null,this._parentSubscriber=null,q.unsubscribe()}}},2654:(Y,U,x)=>{"use strict";x.d(U,{w:()=>L});var w=x(6688),i=x(7830),E=x(7043);const S=(()=>{function N(j){return Error.call(this),this.message=j?`${j.length} errors occurred during unsubscription:\n${j.map((q,$)=>`${$+1}) ${q.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=j,this}return N.prototype=Object.create(Error.prototype),N})();class L{constructor(j){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,j&&(this._unsubscribe=j)}unsubscribe(){let j;if(this.closed)return;let{_parentOrParents:q,_unsubscribe:$,_subscriptions:X}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,q instanceof L)q.remove(this);else if(null!==q)for(let ie=0;iej.concat(q instanceof S?q.errors:q),[])}L.EMPTY=((N=new L).closed=!0,N)},2830:(Y,U,x)=>{"use strict";x.d(U,{v:()=>i});let w=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(E){if(E){const T=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+T.stack)}else w&&console.log("RxJS: Back to a better error behavior. Thank you. <3");w=E},get useDeprecatedSynchronousErrorHandling(){return w}}},1762:(Y,U,x)=>{"use strict";x.d(U,{c:()=>S,N:()=>L});var w=x(8929),i=x(2916),E=x(2654),T=x(4327);class S extends i.y{constructor($,X){super(),this.source=$,this.subjectFactory=X,this._refCount=0,this._isComplete=!1}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let $=this._connection;return $||(this._isComplete=!1,$=this._connection=new E.w,$.add(this.source.subscribe(new R(this.getSubject(),this))),$.closed&&(this._connection=null,$=E.w.EMPTY)),$}refCount(){return(0,T.x)()(this)}}const L=(()=>{const q=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:q._subscribe},_isComplete:{value:q._isComplete,writable:!0},getSubject:{value:q.getSubject},connect:{value:q.connect},refCount:{value:q.refCount}}})();class R extends w.Yc{constructor($,X){super($),this.connectable=X}_error($){this._unsubscribe(),super._error($)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const $=this.connectable;if($){this.connectable=null;const X=$._connection;$._refCount=0,$._subject=null,$._connection=null,X&&X.unsubscribe()}}}},6053:(Y,U,x)=>{"use strict";x.d(U,{aj:()=>R});var w=x(2866),i=x(6688),E=x(826),T=x(9054),S=x(3009);const L={};function R(...q){let $=null,X=null;return(0,w.K)(q[q.length-1])&&(X=q.pop()),"function"==typeof q[q.length-1]&&($=q.pop()),1===q.length&&(0,i.k)(q[0])&&(q=q[0]),(0,S.n)(q,X).lift(new N($))}class N{constructor($){this.resultSelector=$}call($,X){return X.subscribe(new j($,this.resultSelector))}}class j extends E.L{constructor($,X){super($),this.resultSelector=X,this.active=0,this.values=[],this.observables=[]}_next($){this.values.push(L),this.observables.push($)}_complete(){const $=this.observables,X=$.length;if(0===X)this.destination.complete();else{this.active=X,this.toRespond=X;for(let ie=0;ie{"use strict";x.d(U,{E:()=>i,c:()=>E});var w=x(2916);const i=new w.y(S=>S.complete());function E(S){return S?function T(S){return new w.y(L=>S.schedule(()=>L.complete()))}(S):i}},5254:(Y,U,x)=>{"use strict";x.d(U,{D:()=>ne});var w=x(2916),i=x(9249),E=x(2654),T=x(3821),R=x(6454),N=x(5430),$=x(8955),X=x(8515);function ne(de,me){return me?function ce(de,me){if(null!=de){if(function q(de){return de&&"function"==typeof de[T.L]}(de))return function S(de,me){return new w.y(Ne=>{const ze=new E.w;return ze.add(me.schedule(()=>{const Je=de[T.L]();ze.add(Je.subscribe({next(vt){ze.add(me.schedule(()=>Ne.next(vt)))},error(vt){ze.add(me.schedule(()=>Ne.error(vt)))},complete(){ze.add(me.schedule(()=>Ne.complete()))}}))})),ze})}(de,me);if((0,$.t)(de))return function L(de,me){return new w.y(Ne=>{const ze=new E.w;return ze.add(me.schedule(()=>de.then(Je=>{ze.add(me.schedule(()=>{Ne.next(Je),ze.add(me.schedule(()=>Ne.complete()))}))},Je=>{ze.add(me.schedule(()=>Ne.error(Je)))}))),ze})}(de,me);if((0,X.z)(de))return(0,R.r)(de,me);if(function ie(de){return de&&"function"==typeof de[N.hZ]}(de)||"string"==typeof de)return function j(de,me){if(!de)throw new Error("Iterable cannot be null");return new w.y(Ne=>{const ze=new E.w;let Je;return ze.add(()=>{Je&&"function"==typeof Je.return&&Je.return()}),ze.add(me.schedule(()=>{Je=de[N.hZ](),ze.add(me.schedule(function(){if(Ne.closed)return;let vt,Rt;try{const Qe=Je.next();vt=Qe.value,Rt=Qe.done}catch(Qe){return void Ne.error(Qe)}Rt?Ne.complete():(Ne.next(vt),this.schedule())}))})),ze})}(de,me)}throw new TypeError((null!==de&&typeof de||de)+" is not observable")}(de,me):de instanceof w.y?de:new w.y((0,i.s)(de))}},3009:(Y,U,x)=>{"use strict";x.d(U,{n:()=>T});var w=x(2916),i=x(3650),E=x(6454);function T(S,L){return L?(0,E.r)(S,L):new w.y((0,i.V)(S))}},6787:(Y,U,x)=>{"use strict";x.d(U,{T:()=>S});var w=x(2916),i=x(2866),E=x(9146),T=x(3009);function S(...L){let R=Number.POSITIVE_INFINITY,N=null,j=L[L.length-1];return(0,i.K)(j)?(N=L.pop(),L.length>1&&"number"==typeof L[L.length-1]&&(R=L.pop())):"number"==typeof j&&(R=L.pop()),null===N&&1===L.length&&L[0]instanceof w.y?L[0]:(0,E.J)(R)((0,T.n)(L,N))}},1086:(Y,U,x)=>{"use strict";x.d(U,{of:()=>T});var w=x(2866),i=x(3009),E=x(6454);function T(...S){let L=S[S.length-1];return(0,w.K)(L)?(S.pop(),(0,E.r)(S,L)):(0,i.n)(S)}},1946:(Y,U,x)=>{"use strict";x.d(U,{S3:()=>S});var w=x(6688),i=x(3009),E=x(826),T=x(9054);function S(...N){if(1===N.length){if(!(0,w.k)(N[0]))return N[0];N=N[0]}return(0,i.n)(N,void 0).lift(new L)}class L{call(j,q){return q.subscribe(new R(j))}}class R extends E.L{constructor(j){super(j),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(j){this.observables.push(j)}_complete(){const j=this.observables,q=j.length;if(0===q)this.destination.complete();else{for(let $=0;${"use strict";x.d(U,{_:()=>i});var w=x(2916);function i(T,S){return new w.y(S?L=>S.schedule(E,0,{error:T,subscriber:L}):L=>L.error(T))}function E({error:T,subscriber:S}){S.error(T)}},7221:(Y,U,x)=>{"use strict";x.d(U,{K:()=>T});var w=x(826),i=x(1869),E=x(9054);function T(R){return function(j){const q=new S(R),$=j.lift(q);return q.caught=$}}class S{constructor(N){this.selector=N}call(N,j){return j.subscribe(new L(N,this.selector,this.caught))}}class L extends w.L{constructor(N,j,q){super(N),this.selector=j,this.caught=q}error(N){if(!this.isStopped){let j;try{j=this.selector(N,this.caught)}catch(X){return void super.error(X)}this._unsubscribeAndRecycle();const q=new i.d(this,void 0,void 0);this.add(q);const $=(0,E.D)(this,j,void 0,void 0,q);$!==q&&this.add($)}}}},1406:(Y,U,x)=>{"use strict";x.d(U,{b:()=>i});var w=x(1709);function i(E,T){return(0,w.zg)(E,T,1)}},13:(Y,U,x)=>{"use strict";x.d(U,{b:()=>E});var w=x(3489),i=x(353);function E(R,N=i.P){return j=>j.lift(new T(R,N))}class T{constructor(N,j){this.dueTime=N,this.scheduler=j}call(N,j){return j.subscribe(new S(N,this.dueTime,this.scheduler))}}class S extends w.L{constructor(N,j,q){super(N),this.dueTime=j,this.scheduler=q,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(N){this.clearDebounce(),this.lastValue=N,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:N}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(N)}}clearDebounce(){const N=this.debouncedSubscription;null!==N&&(this.remove(N),N.unsubscribe(),this.debouncedSubscription=null)}}function L(R){R.debouncedNext()}},7314:(Y,U,x)=>{"use strict";x.d(U,{d:()=>i});var w=x(3489);function i(S=null){return L=>L.lift(new E(S))}class E{constructor(L){this.defaultValue=L}call(L,R){return R.subscribe(new T(L,this.defaultValue))}}class T extends w.L{constructor(L,R){super(L),this.defaultValue=R,this.isEmpty=!0}_next(L){this.isEmpty=!1,this.destination.next(L)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(Y,U,x)=>{"use strict";x.d(U,{g:()=>S});var w=x(353),i=x(2697),E=x(3489),T=x(9312);function S(j,q=w.P){const X=(0,i.J)(j)?+j-q.now():Math.abs(j);return ie=>ie.lift(new L(X,q))}class L{constructor(q,$){this.delay=q,this.scheduler=$}call(q,$){return $.subscribe(new R(q,this.delay,this.scheduler))}}class R extends E.L{constructor(q,$,X){super(q),this.delay=$,this.scheduler=X,this.queue=[],this.active=!1,this.errored=!1}static dispatch(q){const $=q.source,X=$.queue,ie=q.scheduler,ce=q.destination;for(;X.length>0&&X[0].time-ie.now()<=0;)X.shift().notification.observe(ce);if(X.length>0){const ne=Math.max(0,X[0].time-ie.now());this.schedule(q,ne)}else this.unsubscribe(),$.active=!1}_schedule(q){this.active=!0,this.destination.add(q.schedule(R.dispatch,this.delay,{source:this,destination:this.destination,scheduler:q}))}scheduleNotification(q){if(!0===this.errored)return;const $=this.scheduler,X=new N($.now()+this.delay,q);this.queue.push(X),!1===this.active&&this._schedule($)}_next(q){this.scheduleNotification(T.P.createNext(q))}_error(q){this.errored=!0,this.queue=[],this.destination.error(q),this.unsubscribe()}_complete(){this.scheduleNotification(T.P.createComplete()),this.unsubscribe()}}class N{constructor(q,$){this.time=q,this.notification=$}}},2198:(Y,U,x)=>{"use strict";x.d(U,{h:()=>i});var w=x(3489);function i(S,L){return function(N){return N.lift(new E(S,L))}}class E{constructor(L,R){this.predicate=L,this.thisArg=R}call(L,R){return R.subscribe(new T(L,this.predicate,this.thisArg))}}class T extends w.L{constructor(L,R,N){super(L),this.predicate=R,this.thisArg=N,this.count=0}_next(L){let R;try{R=this.predicate.call(this.thisArg,L,this.count++)}catch(N){return void this.destination.error(N)}R&&this.destination.next(L)}}},7224:(Y,U,x)=>{"use strict";x.d(U,{P:()=>R});var w=x(4450),i=x(2198),E=x(2986),T=x(7314),S=x(4907),L=x(5379);function R(N,j){const q=arguments.length>=2;return $=>$.pipe(N?(0,i.h)((X,ie)=>N(X,ie,$)):L.y,(0,E.q)(1),q?(0,T.d)(j):(0,S.T)(()=>new w.K))}},4850:(Y,U,x)=>{"use strict";x.d(U,{U:()=>i});var w=x(3489);function i(S,L){return function(N){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return N.lift(new E(S,L))}}class E{constructor(L,R){this.project=L,this.thisArg=R}call(L,R){return R.subscribe(new T(L,this.project,this.thisArg))}}class T extends w.L{constructor(L,R,N){super(L),this.project=R,this.count=0,this.thisArg=N||this}_next(L){let R;try{R=this.project.call(this.thisArg,L,this.count++)}catch(N){return void this.destination.error(N)}this.destination.next(R)}}},9146:(Y,U,x)=>{"use strict";x.d(U,{J:()=>E});var w=x(1709),i=x(5379);function E(T=Number.POSITIVE_INFINITY){return(0,w.zg)(i.y,T)}},1709:(Y,U,x)=>{"use strict";x.d(U,{zg:()=>L});var w=x(9054),i=x(826),E=x(1869),T=x(4850),S=x(5254);function L(j,q,$=Number.POSITIVE_INFINITY){return"function"==typeof q?X=>X.pipe(L((ie,ce)=>(0,S.D)(j(ie,ce)).pipe((0,T.U)((ne,de)=>q(ie,ne,ce,de))),$)):("number"==typeof q&&($=q),X=>X.lift(new R(j,$)))}class R{constructor(q,$=Number.POSITIVE_INFINITY){this.project=q,this.concurrent=$}call(q,$){return $.subscribe(new N(q,this.project,this.concurrent))}}class N extends i.L{constructor(q,$,X=Number.POSITIVE_INFINITY){super(q),this.project=$,this.concurrent=X,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(q){this.active0?this._next($.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Y,U,x)=>{"use strict";x.d(U,{x:()=>i});var w=x(3489);function i(){return function(L){return L.lift(new E(L))}}class E{constructor(L){this.connectable=L}call(L,R){const{connectable:N}=this;N._refCount++;const j=new T(L,N),q=R.subscribe(j);return j.closed||(j.connection=N.connect()),q}}class T extends w.L{constructor(L,R){super(L),this.connectable=R}_unsubscribe(){const{connectable:L}=this;if(!L)return void(this.connection=null);this.connectable=null;const R=L._refCount;if(R<=0)return void(this.connection=null);if(L._refCount=R-1,R>1)return void(this.connection=null);const{connection:N}=this,j=L._connection;this.connection=null,j&&(!N||j===N)&&j.unsubscribe()}}},2474:(Y,U,x)=>{"use strict";x.d(U,{B:()=>R});var w=x(1762);class E{constructor(j,q){this.subjectFactory=j,this.selector=q}call(j,q){const{selector:$}=this,X=this.subjectFactory(),ie=$(X).subscribe(j);return ie.add(q.subscribe(X)),ie}}var T=x(4327),S=x(8929);function L(){return new S.xQ}function R(){return N=>(0,T.x)()(function i(N,j){return function($){let X;if(X="function"==typeof N?N:function(){return N},"function"==typeof j)return $.lift(new E(X,j));const ie=Object.create($,w.N);return ie.source=$,ie.subjectFactory=X,ie}}(L)(N))}},7545:(Y,U,x)=>{"use strict";x.d(U,{w:()=>L});var w=x(826),i=x(1869),E=x(9054),T=x(4850),S=x(5254);function L(j,q){return"function"==typeof q?$=>$.pipe(L((X,ie)=>(0,S.D)(j(X,ie)).pipe((0,T.U)((ce,ne)=>q(X,ce,ie,ne))))):$=>$.lift(new R(j))}class R{constructor(q){this.project=q}call(q,$){return $.subscribe(new N(q,this.project))}}class N extends w.L{constructor(q,$){super(q),this.project=$,this.index=0}_next(q){let $;const X=this.index++;try{$=this.project(q,X)}catch(ie){return void this.destination.error(ie)}this._innerSub($,q,X)}_innerSub(q,$,X){const ie=this.innerSubscription;ie&&ie.unsubscribe();const ce=new i.d(this,$,X),ne=this.destination;ne.add(ce),this.innerSubscription=(0,E.D)(this,q,void 0,void 0,ce),this.innerSubscription!==ce&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:q}=this;(!q||q.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(q){this.destination.remove(q),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(q,$,X,ie,ce){this.destination.next($)}}},2986:(Y,U,x)=>{"use strict";x.d(U,{q:()=>T});var w=x(3489),i=x(4231),E=x(8896);function T(R){return N=>0===R?(0,E.c)():N.lift(new S(R))}class S{constructor(N){if(this.total=N,this.total<0)throw new i.W}call(N,j){return j.subscribe(new L(N,this.total))}}class L extends w.L{constructor(N,j){super(N),this.total=j,this.count=0}_next(N){const j=this.total,q=++this.count;q<=j&&(this.destination.next(N),q===j&&(this.destination.complete(),this.unsubscribe()))}}},2868:(Y,U,x)=>{"use strict";x.d(U,{b:()=>T});var w=x(3489);function i(){}var E=x(7043);function T(R,N,j){return function($){return $.lift(new S(R,N,j))}}class S{constructor(N,j,q){this.nextOrObserver=N,this.error=j,this.complete=q}call(N,j){return j.subscribe(new L(N,this.nextOrObserver,this.error,this.complete))}}class L extends w.L{constructor(N,j,q,$){super(N),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=q||i,this._tapComplete=$||i,(0,E.m)(j)?(this._context=this,this._tapNext=j):j&&(this._context=j,this._tapNext=j.next||i,this._tapError=j.error||i,this._tapComplete=j.complete||i)}_next(N){try{this._tapNext.call(this._context,N)}catch(j){return void this.destination.error(j)}this.destination.next(N)}_error(N){try{this._tapError.call(this._context,N)}catch(j){return void this.destination.error(j)}this.destination.error(N)}_complete(){try{this._tapComplete.call(this._context)}catch(N){return void this.destination.error(N)}return this.destination.complete()}}},4907:(Y,U,x)=>{"use strict";x.d(U,{T:()=>E});var w=x(4450),i=x(3489);function E(R=L){return N=>N.lift(new T(R))}class T{constructor(N){this.errorFactory=N}call(N,j){return j.subscribe(new S(N,this.errorFactory))}}class S extends i.L{constructor(N,j){super(N),this.errorFactory=j,this.hasValue=!1}_next(N){this.hasValue=!0,this.destination.next(N)}_complete(){if(this.hasValue)return this.destination.complete();{let N;try{N=this.errorFactory()}catch(j){N=j}this.destination.error(N)}}}function L(){return new w.K}},6227:(Y,U,x)=>{"use strict";x.d(U,{V:()=>$});var w=x(353);const E=(()=>{function X(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return X.prototype=Object.create(Error.prototype),X})();var T=x(2697),S=x(826),L=x(9054);class N{constructor(ie,ce,ne,de){this.waitFor=ie,this.absoluteTimeout=ce,this.withObservable=ne,this.scheduler=de}call(ie,ce){return ce.subscribe(new j(ie,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class j extends S.L{constructor(ie,ce,ne,de,me){super(ie),this.absoluteTimeout=ce,this.waitFor=ne,this.withObservable=de,this.scheduler=me,this.action=null,this.scheduleTimeout()}static dispatchTimeout(ie){const{withObservable:ce}=ie;ie._unsubscribeAndRecycle(),ie.add((0,L.D)(ie,ce))}scheduleTimeout(){const{action:ie}=this;ie?this.action=ie.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(j.dispatchTimeout,this.waitFor,this))}_next(ie){this.absoluteTimeout||this.scheduleTimeout(),super._next(ie)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var q=x(1737);function $(X,ie=w.P){return function R(X,ie,ce=w.P){return ne=>{let de=(0,T.J)(X),me=de?+X-ce.now():Math.abs(X);return ne.lift(new N(me,de,ie,ce))}}(X,(0,q._)(new E),ie)}},6454:(Y,U,x)=>{"use strict";x.d(U,{r:()=>E});var w=x(2916),i=x(2654);function E(T,S){return new w.y(L=>{const R=new i.w;let N=0;return R.add(S.schedule(function(){N!==T.length?(L.next(T[N++]),L.closed||R.add(this.schedule())):L.complete()})),R})}},6686:(Y,U,x)=>{"use strict";x.d(U,{o:()=>E});var w=x(2654);class i extends w.w{constructor(S,L){super()}schedule(S,L=0){return this}}class E extends i{constructor(S,L){super(S,L),this.scheduler=S,this.work=L,this.pending=!1}schedule(S,L=0){if(this.closed)return this;this.state=S;const R=this.id,N=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(N,R,L)),this.pending=!0,this.delay=L,this.id=this.id||this.requestAsyncId(N,this.id,L),this}requestAsyncId(S,L,R=0){return setInterval(S.flush.bind(S,this),R)}recycleAsyncId(S,L,R=0){if(null!==R&&this.delay===R&&!1===this.pending)return L;clearInterval(L)}execute(S,L){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(S,L);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,L){let N,R=!1;try{this.work(S)}catch(j){R=!0,N=!!j&&j||new Error(j)}if(R)return this.unsubscribe(),N}_unsubscribe(){const S=this.id,L=this.scheduler,R=L.actions,N=R.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==N&&R.splice(N,1),null!=S&&(this.id=this.recycleAsyncId(L,S,null)),this.delay=null}}},2268:(Y,U,x)=>{"use strict";x.d(U,{v:()=>i});let w=(()=>{class E{constructor(S,L=E.now){this.SchedulerAction=S,this.now=L}schedule(S,L=0,R){return new this.SchedulerAction(this,S).schedule(R,L)}}return E.now=()=>Date.now(),E})();class i extends w{constructor(T,S=w.now){super(T,()=>i.delegate&&i.delegate!==this?i.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(T,S=0,L){return i.delegate&&i.delegate!==this?i.delegate.schedule(T,S,L):super.schedule(T,S,L)}flush(T){const{actions:S}=this;if(this.active)return void S.push(T);let L;this.active=!0;do{if(L=T.execute(T.state,T.delay))break}while(T=S.shift());if(this.active=!1,L){for(;T=S.shift();)T.unsubscribe();throw L}}}},353:(Y,U,x)=>{"use strict";x.d(U,{P:()=>E});var w=x(6686);const E=new(x(2268).v)(w.o)},5430:(Y,U,x)=>{"use strict";x.d(U,{hZ:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Y,U,x)=>{"use strict";x.d(U,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Y,U,x)=>{"use strict";x.d(U,{b:()=>w});const w="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Y,U,x)=>{"use strict";x.d(U,{W:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return E.prototype=Object.create(Error.prototype),E})()},4450:(Y,U,x)=>{"use strict";x.d(U,{K:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return E.prototype=Object.create(Error.prototype),E})()},5279:(Y,U,x)=>{"use strict";x.d(U,{N:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return E.prototype=Object.create(Error.prototype),E})()},2782:(Y,U,x)=>{"use strict";function w(i){setTimeout(()=>{throw i},0)}x.d(U,{z:()=>w})},5379:(Y,U,x)=>{"use strict";function w(i){return i}x.d(U,{y:()=>w})},6688:(Y,U,x)=>{"use strict";x.d(U,{k:()=>w});const w=Array.isArray||(i=>i&&"number"==typeof i.length)},8515:(Y,U,x)=>{"use strict";x.d(U,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2697:(Y,U,x)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(+i)}x.d(U,{J:()=>w})},7043:(Y,U,x)=>{"use strict";function w(i){return"function"==typeof i}x.d(U,{m:()=>w})},7830:(Y,U,x)=>{"use strict";function w(i){return null!==i&&"object"==typeof i}x.d(U,{K:()=>w})},8955:(Y,U,x)=>{"use strict";function w(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}x.d(U,{t:()=>w})},2866:(Y,U,x)=>{"use strict";function w(i){return i&&"function"==typeof i.schedule}x.d(U,{K:()=>w})},9249:(Y,U,x)=>{"use strict";x.d(U,{s:()=>$});var w=x(3650),i=x(2782),T=x(5430),L=x(3821),N=x(8515),j=x(8955),q=x(7830);const $=X=>{if(X&&"function"==typeof X[L.L])return(X=>ie=>{const ce=X[L.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(ie)})(X);if((0,N.z)(X))return(0,w.V)(X);if((0,j.t)(X))return(X=>ie=>(X.then(ce=>{ie.closed||(ie.next(ce),ie.complete())},ce=>ie.error(ce)).then(null,i.z),ie))(X);if(X&&"function"==typeof X[T.hZ])return(X=>ie=>{const ce=X[T.hZ]();for(;;){const ne=ce.next();if(ne.done){ie.complete();break}if(ie.next(ne.value),ie.closed)break}return"function"==typeof ce.return&&ie.add(()=>{ce.return&&ce.return()}),ie})(X);{const ce=`You provided ${(0,q.K)(X)?"an invalid object":`'${X}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},3650:(Y,U,x)=>{"use strict";x.d(U,{V:()=>w});const w=i=>E=>{for(let T=0,S=i.length;T{"use strict";x.d(U,{D:()=>T});var w=x(1869),i=x(9249),E=x(2916);function T(S,L,R,N,j=new w.d(S,R,N)){if(!j.closed)return L instanceof E.y?L.subscribe(j):(0,i.s)(L)(j)}},6700:(Y,U,x)=>{var w={"./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":3165,"./hy-am.js":3165,"./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":9635,"./sk.js":9635,"./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":4486,"./th.js":4486,"./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 i(T){var S=E(T);return x(S)}function E(T){if(!x.o(w,T)){var S=new Error("Cannot find module '"+T+"'");throw S.code="MODULE_NOT_FOUND",S}return w[T]}i.keys=function(){return Object.keys(w)},i.resolve=E,Y.exports=i,i.id=6700},655:(Y,U,x)=>{"use strict";function N(fe,Ae,Ce,Me){return new(Ce||(Ce=Promise))(function(ge,Tt){function Lt(bt){try{st(Me.next(bt))}catch(kn){Tt(kn)}}function Ci(bt){try{st(Me.throw(bt))}catch(kn){Tt(kn)}}function st(bt){bt.done?ge(bt.value):function ke(ge){return ge instanceof Ce?ge:new Ce(function(Tt){Tt(ge)})}(bt.value).then(Lt,Ci)}st((Me=Me.apply(fe,Ae||[])).next())})}x.d(U,{mG:()=>N})},9808:(Y,U,x)=>{"use strict";x.d(U,{mr:()=>ze,Ov:()=>qu,ez:()=>za,K0:()=>R,uU:()=>He,Do:()=>vt,V_:()=>q,Ye:()=>Rt,S$:()=>me,mk:()=>Ia,sg:()=>yn,O5:()=>Kn,PC:()=>As,RF:()=>On,n9:()=>er,ED:()=>Zo,b0:()=>Je,lw:()=>N,gd:()=>dn,EM:()=>Ts,JF:()=>Li,NF:()=>Fn,PM:()=>wn,w_:()=>L,bD:()=>_i,q:()=>E,Mx:()=>_s,HT:()=>S});var w=x(5e3);let i=null;function E(){return i}function S(B){i||(i=B)}class L{}const R=new w.OlP("DocumentToken");let N=(()=>{class B{historyGo(I){throw new Error("Not implemented")}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275prov=w.Yz7({token:B,factory:function(){return function j(){return(0,w.LFG)($)}()},providedIn:"platform"}),B})();const q=new w.OlP("Location Initialized");let $=(()=>{class B extends N{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(I){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",I,!1),()=>Q.removeEventListener("popstate",I)}onHashChange(I){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",I,!1),()=>Q.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,Q,re){X()?this._history.pushState(I,Q,re):this.location.hash=re}replaceState(I,Q,re){X()?this._history.replaceState(I,Q,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(R))},B.\u0275prov=w.Yz7({token:B,factory:function(){return function ie(){return new $((0,w.LFG)(R))}()},providedIn:"platform"}),B})();function X(){return!!window.history.pushState}function ce(B,G){if(0==B.length)return G;if(0==G.length)return B;let I=0;return B.endsWith("/")&&I++,G.startsWith("/")&&I++,2==I?B+G.substring(1):1==I?B+G:B+"/"+G}function ne(B){const G=B.match(/#|\?|$/),I=G&&G.index||B.length;return B.slice(0,I-("/"===B[I-1]?1:0))+B.slice(I)}function de(B){return B&&"?"!==B[0]?"?"+B:B}let me=(()=>{class B{historyGo(I){throw new Error("Not implemented")}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275prov=w.Yz7({token:B,factory:function(){return function Ne(B){const G=(0,w.LFG)(R).location;return new Je((0,w.LFG)(N),G&&G.origin||"")}()},providedIn:"root"}),B})();const ze=new w.OlP("appBaseHref");let Je=(()=>{class B extends me{constructor(I,Q){if(super(),this._platformLocation=I,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}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 ce(this._baseHref,I)}path(I=!1){const Q=this._platformLocation.pathname+de(this._platformLocation.search),re=this._platformLocation.hash;return re&&I?`${Q}${re}`:Q}pushState(I,Q,re,ye){const Se=this.prepareExternalUrl(re+de(ye));this._platformLocation.pushState(I,Q,Se)}replaceState(I,Q,re,ye){const Se=this.prepareExternalUrl(re+de(ye));this._platformLocation.replaceState(I,Q,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,I)}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(N),w.LFG(ze,8))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})(),vt=(()=>{class B extends me{constructor(I,Q){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}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 Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(I){const Q=ce(this._baseHref,I);return Q.length>0?"#"+Q:Q}pushState(I,Q,re,ye){let Se=this.prepareExternalUrl(re+de(ye));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.pushState(I,Q,Se)}replaceState(I,Q,re,ye){let Se=this.prepareExternalUrl(re+de(ye));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.replaceState(I,Q,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,I)}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(N),w.LFG(ze,8))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})(),Rt=(()=>{class B{constructor(I,Q){this._subject=new w.vpe,this._urlChangeListeners=[],this._platformStrategy=I;const re=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=ne(St(re)),this._platformStrategy.onPopState(ye=>{this._subject.emit({url:this.path(!0),pop:!0,state:ye.state,type:ye.type})})}path(I=!1){return this.normalize(this._platformStrategy.path(I))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(I,Q=""){return this.path()==this.normalize(I+de(Q))}normalize(I){return B.stripTrailingSlash(function Yi(B,G){return B&&G.startsWith(B)?G.substring(B.length):G}(this._baseHref,St(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._platformStrategy.prepareExternalUrl(I)}go(I,Q="",re=null){this._platformStrategy.pushState(re,"",I,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+de(Q)),re)}replaceState(I,Q="",re=null){this._platformStrategy.replaceState(re,"",I,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+de(Q)),re)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(I=0){var Q,re;null===(re=(Q=this._platformStrategy).historyGo)||void 0===re||re.call(Q,I)}onUrlChange(I){this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(I="",Q){this._urlChangeListeners.forEach(re=>re(I,Q))}subscribe(I,Q,re){return this._subject.subscribe({next:I,error:Q,complete:re})}}return B.normalizeQueryParams=de,B.joinWithSlash=ce,B.stripTrailingSlash=ne,B.\u0275fac=function(I){return new(I||B)(w.LFG(me),w.LFG(N))},B.\u0275prov=w.Yz7({token:B,factory:function(){return function Qe(){return new Rt((0,w.LFG)(me),(0,w.LFG)(N))}()},providedIn:"root"}),B})();function St(B){return B.replace(/\/index.html$/,"")}var Ae=(()=>((Ae=Ae||{})[Ae.Zero=0]="Zero",Ae[Ae.One=1]="One",Ae[Ae.Two=2]="Two",Ae[Ae.Few=3]="Few",Ae[Ae.Many=4]="Many",Ae[Ae.Other=5]="Other",Ae))(),Ce=(()=>((Ce=Ce||{})[Ce.Format=0]="Format",Ce[Ce.Standalone=1]="Standalone",Ce))(),Me=(()=>((Me=Me||{})[Me.Narrow=0]="Narrow",Me[Me.Abbreviated=1]="Abbreviated",Me[Me.Wide=2]="Wide",Me[Me.Short=3]="Short",Me))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function di(B,G){return Ue((0,w.cg1)(B)[w.wAp.DateFormat],G)}function hr(B,G){return Ue((0,w.cg1)(B)[w.wAp.TimeFormat],G)}function sn(B,G){return Ue((0,w.cg1)(B)[w.wAp.DateTimeFormat],G)}function pi(B,G){const I=(0,w.cg1)(B),Q=I[w.wAp.NumberSymbols][G];if(void 0===Q){if(G===ge.CurrencyDecimal)return I[w.wAp.NumberSymbols][ge.Decimal];if(G===ge.CurrencyGroup)return I[w.wAp.NumberSymbols][ge.Group]}return Q}const Pn=w.kL8;function ue(B){if(!B[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${B[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ue(B,G){for(let I=G;I>-1;I--)if(void 0!==B[I])return B[I];throw new Error("Locale data API: locale data undefined")}function it(B){const[G,I]=B.split(":");return{hours:+G,minutes:+I}}const oe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pe={},De=/((?:[^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 Fe=(()=>((Fe=Fe||{})[Fe.Short=0]="Short",Fe[Fe.ShortGMT=1]="ShortGMT",Fe[Fe.Long=2]="Long",Fe[Fe.Extended=3]="Extended",Fe))(),xe=(()=>((xe=xe||{})[xe.FullYear=0]="FullYear",xe[xe.Month=1]="Month",xe[xe.Date=2]="Date",xe[xe.Hours=3]="Hours",xe[xe.Minutes=4]="Minutes",xe[xe.Seconds=5]="Seconds",xe[xe.FractionalSeconds=6]="FractionalSeconds",xe[xe.Day=7]="Day",xe))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function It(B,G,I,Q){let re=function Be(B){if(ln(B))return B;if("number"==typeof B&&!isNaN(B))return new Date(B);if("string"==typeof B){if(B=B.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(B)){const[re,ye=1,Se=1]=B.split("-").map(nt=>+nt);return Ni(re,ye-1,Se)}const I=parseFloat(B);if(!isNaN(B-I))return new Date(I);let Q;if(Q=B.match(oe))return function vi(B){const G=new Date(0);let I=0,Q=0;const re=B[8]?G.setUTCFullYear:G.setFullYear,ye=B[8]?G.setUTCHours:G.setHours;B[9]&&(I=Number(B[9]+B[10]),Q=Number(B[9]+B[11])),re.call(G,Number(B[1]),Number(B[2])-1,Number(B[3]));const Se=Number(B[4]||0)-I,nt=Number(B[5]||0)-Q,Yt=Number(B[6]||0),Xt=Math.floor(1e3*parseFloat("0."+(B[7]||0)));return ye.call(G,Se,nt,Yt,Xt),G}(Q)}const G=new Date(B);if(!ln(G))throw new Error(`Unable to convert "${B}" into a date`);return G}(B);G=Vt(I,G)||G;let nt,Se=[];for(;G;){if(nt=De.exec(G),!nt){Se.push(G);break}{Se=Se.concat(nt.slice(1));const At=Se.pop();if(!At)break;G=At}}let Yt=re.getTimezoneOffset();Q&&(Yt=gs(Q,Yt),re=function M(B,G,I){const Q=I?-1:1,re=B.getTimezoneOffset();return function eo(B,G){return(B=new Date(B.getTime())).setMinutes(B.getMinutes()+G),B}(B,Q*(gs(G,re)-re))}(re,Q,!0));let Xt="";return Se.forEach(At=>{const Ft=function ms(B){if(fr[B])return fr[B];let G;switch(B){case"G":case"GG":case"GGG":G=Gt(Ge.Eras,Me.Abbreviated);break;case"GGGG":G=Gt(Ge.Eras,Me.Wide);break;case"GGGGG":G=Gt(Ge.Eras,Me.Narrow);break;case"y":G=Ze(xe.FullYear,1,0,!1,!0);break;case"yy":G=Ze(xe.FullYear,2,0,!0,!0);break;case"yyy":G=Ze(xe.FullYear,3,0,!1,!0);break;case"yyyy":G=Ze(xe.FullYear,4,0,!1,!0);break;case"Y":G=ua(1);break;case"YY":G=ua(2,!0);break;case"YYY":G=ua(3);break;case"YYYY":G=ua(4);break;case"M":case"L":G=Ze(xe.Month,1,1);break;case"MM":case"LL":G=Ze(xe.Month,2,1);break;case"MMM":G=Gt(Ge.Months,Me.Abbreviated);break;case"MMMM":G=Gt(Ge.Months,Me.Wide);break;case"MMMMM":G=Gt(Ge.Months,Me.Narrow);break;case"LLL":G=Gt(Ge.Months,Me.Abbreviated,Ce.Standalone);break;case"LLLL":G=Gt(Ge.Months,Me.Wide,Ce.Standalone);break;case"LLLLL":G=Gt(Ge.Months,Me.Narrow,Ce.Standalone);break;case"w":G=da(1);break;case"ww":G=da(2);break;case"W":G=da(1,!0);break;case"d":G=Ze(xe.Date,1);break;case"dd":G=Ze(xe.Date,2);break;case"c":case"cc":G=Ze(xe.Day,1);break;case"ccc":G=Gt(Ge.Days,Me.Abbreviated,Ce.Standalone);break;case"cccc":G=Gt(Ge.Days,Me.Wide,Ce.Standalone);break;case"ccccc":G=Gt(Ge.Days,Me.Narrow,Ce.Standalone);break;case"cccccc":G=Gt(Ge.Days,Me.Short,Ce.Standalone);break;case"E":case"EE":case"EEE":G=Gt(Ge.Days,Me.Abbreviated);break;case"EEEE":G=Gt(Ge.Days,Me.Wide);break;case"EEEEE":G=Gt(Ge.Days,Me.Narrow);break;case"EEEEEE":G=Gt(Ge.Days,Me.Short);break;case"a":case"aa":case"aaa":G=Gt(Ge.DayPeriods,Me.Abbreviated);break;case"aaaa":G=Gt(Ge.DayPeriods,Me.Wide);break;case"aaaaa":G=Gt(Ge.DayPeriods,Me.Narrow);break;case"b":case"bb":case"bbb":G=Gt(Ge.DayPeriods,Me.Abbreviated,Ce.Standalone,!0);break;case"bbbb":G=Gt(Ge.DayPeriods,Me.Wide,Ce.Standalone,!0);break;case"bbbbb":G=Gt(Ge.DayPeriods,Me.Narrow,Ce.Standalone,!0);break;case"B":case"BB":case"BBB":G=Gt(Ge.DayPeriods,Me.Abbreviated,Ce.Format,!0);break;case"BBBB":G=Gt(Ge.DayPeriods,Me.Wide,Ce.Format,!0);break;case"BBBBB":G=Gt(Ge.DayPeriods,Me.Narrow,Ce.Format,!0);break;case"h":G=Ze(xe.Hours,1,-12);break;case"hh":G=Ze(xe.Hours,2,-12);break;case"H":G=Ze(xe.Hours,1);break;case"HH":G=Ze(xe.Hours,2);break;case"m":G=Ze(xe.Minutes,1);break;case"mm":G=Ze(xe.Minutes,2);break;case"s":G=Ze(xe.Seconds,1);break;case"ss":G=Ze(xe.Seconds,2);break;case"S":G=Ze(xe.FractionalSeconds,1);break;case"SS":G=Ze(xe.FractionalSeconds,2);break;case"SSS":G=Ze(xe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":G=pr(Fe.Short);break;case"ZZZZZ":G=pr(Fe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":G=pr(Fe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":G=pr(Fe.Long);break;default:return null}return fr[B]=G,G}(At);Xt+=Ft?Ft(re,I,Yt):"''"===At?"'":At.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Xt}function Ni(B,G,I){const Q=new Date(0);return Q.setFullYear(B,G,I),Q.setHours(0,0,0),Q}function Vt(B,G){const I=function Lt(B){return(0,w.cg1)(B)[w.wAp.LocaleId]}(B);if(Pe[I]=Pe[I]||{},Pe[I][G])return Pe[I][G];let Q="";switch(G){case"shortDate":Q=di(B,ke.Short);break;case"mediumDate":Q=di(B,ke.Medium);break;case"longDate":Q=di(B,ke.Long);break;case"fullDate":Q=di(B,ke.Full);break;case"shortTime":Q=hr(B,ke.Short);break;case"mediumTime":Q=hr(B,ke.Medium);break;case"longTime":Q=hr(B,ke.Long);break;case"fullTime":Q=hr(B,ke.Full);break;case"short":const re=Vt(B,"shortTime"),ye=Vt(B,"shortDate");Q=jr(sn(B,ke.Short),[re,ye]);break;case"medium":const Se=Vt(B,"mediumTime"),nt=Vt(B,"mediumDate");Q=jr(sn(B,ke.Medium),[Se,nt]);break;case"long":const Yt=Vt(B,"longTime"),Xt=Vt(B,"longDate");Q=jr(sn(B,ke.Long),[Yt,Xt]);break;case"full":const At=Vt(B,"fullTime"),Ft=Vt(B,"fullDate");Q=jr(sn(B,ke.Full),[At,Ft])}return Q&&(Pe[I][G]=Q),Q}function jr(B,G){return G&&(B=B.replace(/\{([^}]+)}/g,function(I,Q){return null!=G&&Q in G?G[Q]:I})),B}function Vi(B,G,I="-",Q,re){let ye="";(B<0||re&&B<=0)&&(re?B=1-B:(B=-B,ye=I));let Se=String(B);for(;Se.length0||nt>-I)&&(nt+=I),B===xe.Hours)0===nt&&-12===I&&(nt=12);else if(B===xe.FractionalSeconds)return function ft(B,G){return Vi(B,3).substr(0,G)}(nt,G);const Yt=pi(Se,ge.MinusSign);return Vi(nt,G,Yt,Q,re)}}function Gt(B,G,I=Ce.Format,Q=!1){return function(re,ye){return function Et(B,G,I,Q,re,ye){switch(I){case Ge.Months:return function bt(B,G,I){const Q=(0,w.cg1)(B),ye=Ue([Q[w.wAp.MonthsFormat],Q[w.wAp.MonthsStandalone]],G);return Ue(ye,I)}(G,re,Q)[B.getMonth()];case Ge.Days:return function st(B,G,I){const Q=(0,w.cg1)(B),ye=Ue([Q[w.wAp.DaysFormat],Q[w.wAp.DaysStandalone]],G);return Ue(ye,I)}(G,re,Q)[B.getDay()];case Ge.DayPeriods:const Se=B.getHours(),nt=B.getMinutes();if(ye){const Xt=function Le(B){const G=(0,w.cg1)(B);return ue(G),(G[w.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?it(Q):[it(Q[0]),it(Q[1])])}(G),At=function _e(B,G,I){const Q=(0,w.cg1)(B);ue(Q);const ye=Ue([Q[w.wAp.ExtraData][0],Q[w.wAp.ExtraData][1]],G)||[];return Ue(ye,I)||[]}(G,re,Q),Ft=Xt.findIndex(Gi=>{if(Array.isArray(Gi)){const[Ti,ki]=Gi,_a=Se>=Ti.hours&&nt>=Ti.minutes,Er=Se0?Math.floor(re/60):Math.ceil(re/60);switch(B){case Fe.Short:return(re>=0?"+":"")+Vi(Se,2,ye)+Vi(Math.abs(re%60),2,ye);case Fe.ShortGMT:return"GMT"+(re>=0?"+":"")+Vi(Se,1,ye);case Fe.Long:return"GMT"+(re>=0?"+":"")+Vi(Se,2,ye)+":"+Vi(Math.abs(re%60),2,ye);case Fe.Extended:return 0===Q?"Z":(re>=0?"+":"")+Vi(Se,2,ye)+":"+Vi(Math.abs(re%60),2,ye);default:throw new Error(`Unknown zone width "${B}"`)}}}function Oa(B){return Ni(B.getFullYear(),B.getMonth(),B.getDate()+(4-B.getDay()))}function da(B,G=!1){return function(I,Q){let re;if(G){const ye=new Date(I.getFullYear(),I.getMonth(),1).getDay()-1,Se=I.getDate();re=1+Math.floor((Se+ye)/7)}else{const ye=Oa(I),Se=function sc(B){const G=Ni(B,0,1).getDay();return Ni(B,0,1+(G<=4?4:11)-G)}(ye.getFullYear()),nt=ye.getTime()-Se.getTime();re=1+Math.round(nt/6048e5)}return Vi(re,B,pi(Q,ge.MinusSign))}}function ua(B,G=!1){return function(I,Q){return Vi(Oa(I).getFullYear(),B,pi(Q,ge.MinusSign),G)}}const fr={};function gs(B,G){B=B.replace(/:/g,"");const I=Date.parse("Jan 01, 1970 00:00:00 "+B)/6e4;return isNaN(I)?G:I}function ln(B){return B instanceof Date&&!isNaN(B.valueOf())}class mi{}let Hi=(()=>{class B extends mi{constructor(I){super(),this.locale=I}getPluralCategory(I,Q){switch(Pn(Q||this.locale)(I)){case Ae.Zero:return"zero";case Ae.One:return"one";case Ae.Two:return"two";case Ae.Few:return"few";case Ae.Many:return"many";default:return"other"}}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(w.soG))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})();function _s(B,G){G=encodeURIComponent(G);for(const I of B.split(";")){const Q=I.indexOf("="),[re,ye]=-1==Q?[I,""]:[I.slice(0,Q),I.slice(Q+1)];if(re.trim()===G)return decodeURIComponent(ye)}return null}let Ia=(()=>{class B{constructor(I,Q,re,ye){this._iterableDiffers=I,this._keyValueDiffers=Q,this._ngEl=re,this._renderer=ye,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,w.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(Q=>this._toggleClass(Q.key,Q.currentValue)),I.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),I.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),I.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(I).forEach(Q=>this._toggleClass(Q,!!I[Q])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(I).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(I,Q){(I=I.trim())&&I.split(/\s+/g).forEach(re=>{Q?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),B})();class bs{constructor(G,I,Q,re){this.$implicit=G,this.ngForOf=I,this.index=Q,this.count=re}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 yn=(()=>{class B{constructor(I,Q,re){this._viewContainer=I,this._template=Q,this._differs=re,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 Q=this._viewContainer;I.forEachOperation((re,ye,Se)=>{if(null==re.previousIndex)Q.createEmbeddedView(this._template,new bs(re.item,this._ngForOf,-1,-1),null===Se?void 0:Se);else if(null==Se)Q.remove(null===ye?void 0:ye);else if(null!==ye){const nt=Q.get(ye);Q.move(nt,Se),Ba(nt,re)}});for(let re=0,ye=Q.length;re{Ba(Q.get(re.currentIndex),re)})}static ngTemplateContextGuard(I,Q){return!0}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),B})();function Ba(B,G){B.context.$implicit=G.item}let Kn=(()=>{class B{constructor(I,Q){this._viewContainer=I,this._context=new gi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){lc("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){lc("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,Q){return!0}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),B})();class gi{constructor(){this.$implicit=null,this.ngIf=null}}function lc(B,G){if(G&&!G.createEmbeddedView)throw new Error(`${B} must be a TemplateRef, but received '${(0,w.AaK)(G)}'.`)}class Na{constructor(G,I){this._viewContainerRef=G,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(G){G&&!this._created?this.create():!G&&this._created&&this.destroy()}}let On=(()=>{class B{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 Q=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let Q=0;Q{class B{constructor(I,Q,re){this.ngSwitch=re,re._addCase(),this._view=new Na(I,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(On,9))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),B})(),Zo=(()=>{class B{constructor(I,Q,re){re._addDefault(new Na(I,Q))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(On,9))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngSwitchDefault",""]]}),B})(),As=(()=>{class B{constructor(I,Q,re){this._ngEl=I,this._differs=Q,this._renderer=re,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,Q){const[re,ye]=I.split(".");null!=(Q=null!=Q&&ye?`${Q}${ye}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,re,Q):this._renderer.removeStyle(this._ngEl.nativeElement,re)}_applyChanges(I){I.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),I.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),I.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),B})();function mr(B,G){return new w.vHH(2100,"")}class _f{createSubscription(G,I){return G.subscribe({next:I,error:Q=>{throw Q}})}dispose(G){G.unsubscribe()}onDestroy(G){G.unsubscribe()}}class bf{createSubscription(G,I){return G.then(I,Q=>{throw Q})}dispose(G){}onDestroy(G){}}const Af=new bf,yf=new _f;let qu=(()=>{class B{constructor(I){this._ref=I,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}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,Q=>this._updateLatestValue(I,Q))}_selectStrategy(I){if((0,w.QGY)(I))return Af;if((0,w.F4k)(I))return yf;throw mr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,Q){I===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.sBO,16))},B.\u0275pipe=w.Yjl({name:"async",type:B,pure:!1}),B})(),dn=(()=>{class B{transform(I){if(null==I)return null;if("string"!=typeof I)throw mr();return I.toUpperCase()}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275pipe=w.Yjl({name:"uppercase",type:B,pure:!0}),B})();const $e=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let He=(()=>{class B{constructor(I,Q){this.locale=I,this.defaultTimezone=Q}transform(I,Q="mediumDate",re,ye){var Se;if(null==I||""===I||I!=I)return null;try{return It(I,Q,ye||this.locale,null!==(Se=null!=re?re:this.defaultTimezone)&&void 0!==Se?Se:void 0)}catch(nt){throw mr()}}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.soG,16),w.Y36($e,24))},B.\u0275pipe=w.Yjl({name:"date",type:B,pure:!0}),B})(),za=(()=>{class B{}return B.\u0275fac=function(I){return new(I||B)},B.\u0275mod=w.oAB({type:B}),B.\u0275inj=w.cJS({providers:[{provide:mi,useClass:Hi}]}),B})();const _i="browser";function Fn(B){return B===_i}function wn(B){return"server"===B}let Ts=(()=>{class B{}return B.\u0275prov=(0,w.Yz7)({token:B,providedIn:"root",factory:()=>new ga((0,w.LFG)(R),window)}),B})();class ga{constructor(G,I){this.document=G,this.window=I,this.offset=()=>[0,0]}setOffset(G){this.offset=Array.isArray(G)?()=>G:G}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(G){this.supportsScrolling()&&this.window.scrollTo(G[0],G[1])}scrollToAnchor(G){if(!this.supportsScrolling())return;const I=function ro(B,G){const I=B.getElementById(G)||B.getElementsByName(G)[0];if(I)return I;if("function"==typeof B.createTreeWalker&&B.body&&(B.body.createShadowRoot||B.body.attachShadow)){const Q=B.createTreeWalker(B.body,NodeFilter.SHOW_ELEMENT);let re=Q.currentNode;for(;re;){const ye=re.shadowRoot;if(ye){const Se=ye.getElementById(G)||ye.querySelector(`[name="${G}"]`);if(Se)return Se}re=Q.nextNode()}}return null}(this.document,G);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(G){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=G)}}scrollToElement(G){const I=G.getBoundingClientRect(),Q=I.left+this.window.pageXOffset,re=I.top+this.window.pageYOffset,ye=this.offset();this.window.scrollTo(Q-ye[0],re-ye[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const G=cc(this.window.history)||cc(Object.getPrototypeOf(this.window.history));return!(!G||!G.writable&&!G.set)}catch(G){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(G){return!1}}}function cc(B){return Object.getOwnPropertyDescriptor(B,"scrollRestoration")}class Li{}},520:(Y,U,x)=>{"use strict";x.d(U,{TP:()=>Lt,eN:()=>ge,JF:()=>Ue,qT:()=>ze,WM:()=>q,LE:()=>me,Zn:()=>Ce});var w=x(9808),i=x(5e3),E=x(1086),T=x(2916),S=x(1406),L=x(2198),R=x(4850);class N{}class j{}class q{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(oe=>{const Pe=oe.indexOf(":");if(Pe>0){const De=oe.slice(0,Pe),Fe=De.toLowerCase(),xe=oe.slice(Pe+1).trim();this.maybeSetNormalizedName(De,Fe),this.headers.has(Fe)?this.headers.get(Fe).push(xe):this.headers.set(Fe,[xe])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(oe=>{let Pe=ae[oe];const De=oe.toLowerCase();"string"==typeof Pe&&(Pe=[Pe]),Pe.length>0&&(this.headers.set(De,Pe),this.maybeSetNormalizedName(oe,De))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const oe=this.headers.get(ae.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,oe){return this.clone({name:ae,value:oe,op:"a"})}set(ae,oe){return this.clone({name:ae,value:oe,op:"s"})}delete(ae,oe){return this.clone({name:ae,value:oe,op:"d"})}maybeSetNormalizedName(ae,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,ae)}init(){this.lazyInit&&(this.lazyInit instanceof q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ae=>this.applyUpdate(ae)),this.lazyUpdate=null))}copyFrom(ae){ae.init(),Array.from(ae.headers.keys()).forEach(oe=>{this.headers.set(oe,ae.headers.get(oe)),this.normalizedNames.set(oe,ae.normalizedNames.get(oe))})}clone(ae){const oe=new q;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof q?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),oe}applyUpdate(ae){const oe=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let Pe=ae.value;if("string"==typeof Pe&&(Pe=[Pe]),0===Pe.length)return;this.maybeSetNormalizedName(ae.name,oe);const De=("a"===ae.op?this.headers.get(oe):void 0)||[];De.push(...Pe),this.headers.set(oe,De);break;case"d":const Fe=ae.value;if(Fe){let xe=this.headers.get(oe);if(!xe)return;xe=xe.filter(Ge=>-1===Fe.indexOf(Ge)),0===xe.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,xe)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>ae(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ${encodeKey(ae){return ne(ae)}encodeValue(ae){return ne(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const ie=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(Te){return encodeURIComponent(Te).replace(ie,(ae,oe)=>{var Pe;return null!==(Pe=ce[oe])&&void 0!==Pe?Pe:ae})}function de(Te){return`${Te}`}class me{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new $,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X(Te,ae){const oe=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(De=>{const Fe=De.indexOf("="),[xe,Ge]=-1==Fe?[ae.decodeKey(De),""]:[ae.decodeKey(De.slice(0,Fe)),ae.decodeValue(De.slice(Fe+1))],It=oe.get(xe)||[];It.push(Ge),oe.set(xe,It)}),oe}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(oe=>{const Pe=ae.fromObject[oe];this.map.set(oe,Array.isArray(Pe)?Pe:[Pe])})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const oe=this.map.get(ae);return oe?oe[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,oe){return this.clone({param:ae,value:oe,op:"a"})}appendAll(ae){const oe=[];return Object.keys(ae).forEach(Pe=>{const De=ae[Pe];Array.isArray(De)?De.forEach(Fe=>{oe.push({param:Pe,value:Fe,op:"a"})}):oe.push({param:Pe,value:De,op:"a"})}),this.clone(oe)}set(ae,oe){return this.clone({param:ae,value:oe,op:"s"})}delete(ae,oe){return this.clone({param:ae,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const oe=this.encoder.encodeKey(ae);return this.map.get(ae).map(Pe=>oe+"="+this.encoder.encodeValue(Pe)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const oe=new me({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(ae),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ae=>this.map.set(ae,this.cloneFrom.map.get(ae))),this.updates.forEach(ae=>{switch(ae.op){case"a":case"s":const oe=("a"===ae.op?this.map.get(ae.param):void 0)||[];oe.push(de(ae.value)),this.map.set(ae.param,oe);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let Pe=this.map.get(ae.param)||[];const De=Pe.indexOf(de(ae.value));-1!==De&&Pe.splice(De,1),Pe.length>0?this.map.set(ae.param,Pe):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class ze{constructor(){this.map=new Map}set(ae,oe){return this.map.set(ae,oe),this}get(ae){return this.map.has(ae)||this.map.set(ae,ae.defaultValue()),this.map.get(ae)}delete(ae){return this.map.delete(ae),this}has(ae){return this.map.has(ae)}keys(){return this.map.keys()}}function vt(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function Rt(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Qe(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class St{constructor(ae,oe,Pe,De){let Fe;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function Je(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==Pe?Pe:null,Fe=De):Fe=Pe,Fe&&(this.reportProgress=!!Fe.reportProgress,this.withCredentials=!!Fe.withCredentials,Fe.responseType&&(this.responseType=Fe.responseType),Fe.headers&&(this.headers=Fe.headers),Fe.context&&(this.context=Fe.context),Fe.params&&(this.params=Fe.params)),this.headers||(this.headers=new q),this.context||(this.context=new ze),this.params){const xe=this.params.toString();if(0===xe.length)this.urlWithParams=oe;else{const Ge=oe.indexOf("?");this.urlWithParams=oe+(-1===Ge?"?":GeVi.set(ft,ae.setHeaders[ft]),Ni)),ae.setParams&&(Vt=Object.keys(ae.setParams).reduce((Vi,ft)=>Vi.set(ft,ae.setParams[ft]),Vt)),new St(Pe,De,xe,{params:Vt,headers:Ni,context:jr,reportProgress:It,responseType:Fe,withCredentials:Ge})}}var yt=(()=>((yt=yt||{})[yt.Sent=0]="Sent",yt[yt.UploadProgress=1]="UploadProgress",yt[yt.ResponseHeader=2]="ResponseHeader",yt[yt.DownloadProgress=3]="DownloadProgress",yt[yt.Response=4]="Response",yt[yt.User=5]="User",yt))();class fe{constructor(ae,oe=200,Pe="OK"){this.headers=ae.headers||new q,this.status=void 0!==ae.status?ae.status:oe,this.statusText=ae.statusText||Pe,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class Ae extends fe{constructor(ae={}){super(ae),this.type=yt.ResponseHeader}clone(ae={}){return new Ae({headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Ce extends fe{constructor(ae={}){super(ae),this.type=yt.Response,this.body=void 0!==ae.body?ae.body:null}clone(ae={}){return new Ce({body:void 0!==ae.body?ae.body:this.body,headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Me extends fe{constructor(ae){super(ae,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ae.url||"(unknown url)"}`:`Http failure response for ${ae.url||"(unknown url)"}: ${ae.status} ${ae.statusText}`,this.error=ae.error||null}}function ke(Te,ae){return{body:ae,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let ge=(()=>{class Te{constructor(oe){this.handler=oe}request(oe,Pe,De={}){let Fe;if(oe instanceof St)Fe=oe;else{let It,Ni;It=De.headers instanceof q?De.headers:new q(De.headers),De.params&&(Ni=De.params instanceof me?De.params:new me({fromObject:De.params})),Fe=new St(oe,Pe,void 0!==De.body?De.body:null,{headers:It,context:De.context,params:Ni,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const xe=(0,E.of)(Fe).pipe((0,S.b)(It=>this.handler.handle(It)));if(oe instanceof St||"events"===De.observe)return xe;const Ge=xe.pipe((0,L.h)(It=>It instanceof Ce));switch(De.observe||"body"){case"body":switch(Fe.responseType){case"arraybuffer":return Ge.pipe((0,R.U)(It=>{if(null!==It.body&&!(It.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return It.body}));case"blob":return Ge.pipe((0,R.U)(It=>{if(null!==It.body&&!(It.body instanceof Blob))throw new Error("Response is not a Blob.");return It.body}));case"text":return Ge.pipe((0,R.U)(It=>{if(null!==It.body&&"string"!=typeof It.body)throw new Error("Response is not a string.");return It.body}));default:return Ge.pipe((0,R.U)(It=>It.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete(oe,Pe={}){return this.request("DELETE",oe,Pe)}get(oe,Pe={}){return this.request("GET",oe,Pe)}head(oe,Pe={}){return this.request("HEAD",oe,Pe)}jsonp(oe,Pe){return this.request("JSONP",oe,{params:(new me).append(Pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,Pe={}){return this.request("OPTIONS",oe,Pe)}patch(oe,Pe,De={}){return this.request("PATCH",oe,ke(De,Pe))}post(oe,Pe,De={}){return this.request("POST",oe,ke(De,Pe))}put(oe,Pe,De={}){return this.request("PUT",oe,ke(De,Pe))}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(N))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class Tt{constructor(ae,oe){this.next=ae,this.interceptor=oe}handle(ae){return this.interceptor.intercept(ae,this.next)}}const Lt=new i.OlP("HTTP_INTERCEPTORS");let Ci=(()=>{class Te{intercept(oe,Pe){return Pe.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const sn=/^\)\]\}',?\n/;let Ut=(()=>{class Te{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Pe=>{const De=this.xhrFactory.build();if(De.open(oe.method,oe.urlWithParams),oe.withCredentials&&(De.withCredentials=!0),oe.headers.forEach((ft,Ze)=>De.setRequestHeader(ft,Ze.join(","))),oe.headers.has("Accept")||De.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const ft=oe.detectContentTypeHeader();null!==ft&&De.setRequestHeader("Content-Type",ft)}if(oe.responseType){const ft=oe.responseType.toLowerCase();De.responseType="json"!==ft?ft:"text"}const Fe=oe.serializeBody();let xe=null;const Ge=()=>{if(null!==xe)return xe;const ft=De.statusText||"OK",Ze=new q(De.getAllResponseHeaders()),Vn=function pi(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(De)||oe.url;return xe=new Ae({headers:Ze,status:De.status,statusText:ft,url:Vn}),xe},It=()=>{let{headers:ft,status:Ze,statusText:Vn,url:Gt}=Ge(),Et=null;204!==Ze&&(Et=void 0===De.response?De.responseText:De.response),0===Ze&&(Ze=Et?200:0);let pr=Ze>=200&&Ze<300;if("json"===oe.responseType&&"string"==typeof Et){const Xn=Et;Et=Et.replace(sn,"");try{Et=""!==Et?JSON.parse(Et):null}catch(zn){Et=Xn,pr&&(pr=!1,Et={error:zn,text:Et})}}pr?(Pe.next(new Ce({body:Et,headers:ft,status:Ze,statusText:Vn,url:Gt||void 0})),Pe.complete()):Pe.error(new Me({error:Et,headers:ft,status:Ze,statusText:Vn,url:Gt||void 0}))},Ni=ft=>{const{url:Ze}=Ge(),Vn=new Me({error:ft,status:De.status||0,statusText:De.statusText||"Unknown Error",url:Ze||void 0});Pe.error(Vn)};let Vt=!1;const jr=ft=>{Vt||(Pe.next(Ge()),Vt=!0);let Ze={type:yt.DownloadProgress,loaded:ft.loaded};ft.lengthComputable&&(Ze.total=ft.total),"text"===oe.responseType&&!!De.responseText&&(Ze.partialText=De.responseText),Pe.next(Ze)},Vi=ft=>{let Ze={type:yt.UploadProgress,loaded:ft.loaded};ft.lengthComputable&&(Ze.total=ft.total),Pe.next(Ze)};return De.addEventListener("load",It),De.addEventListener("error",Ni),De.addEventListener("timeout",Ni),De.addEventListener("abort",Ni),oe.reportProgress&&(De.addEventListener("progress",jr),null!==Fe&&De.upload&&De.upload.addEventListener("progress",Vi)),De.send(Fe),Pe.next({type:yt.Sent}),()=>{De.removeEventListener("error",Ni),De.removeEventListener("abort",Ni),De.removeEventListener("load",It),De.removeEventListener("timeout",Ni),oe.reportProgress&&(De.removeEventListener("progress",jr),null!==Fe&&De.upload&&De.upload.removeEventListener("progress",Vi)),De.readyState!==De.DONE&&De.abort()}})}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(w.JF))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const on=new i.OlP("XSRF_COOKIE_NAME"),la=new i.OlP("XSRF_HEADER_NAME");class ca{}let Fr=(()=>{class Te{constructor(oe,Pe,De){this.doc=oe,this.platform=Pe,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(on))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Pn=(()=>{class Te{constructor(oe,Pe){this.tokenService=oe,this.headerName=Pe}intercept(oe,Pe){const De=oe.url.toLowerCase();if("GET"===oe.method||"HEAD"===oe.method||De.startsWith("http://")||De.startsWith("https://"))return Pe.handle(oe);const Fe=this.tokenService.getToken();return null!==Fe&&!oe.headers.has(this.headerName)&&(oe=oe.clone({headers:oe.headers.set(this.headerName,Fe)})),Pe.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(ca),i.LFG(la))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ue=(()=>{class Te{constructor(oe,Pe){this.backend=oe,this.injector=Pe,this.chain=null}handle(oe){if(null===this.chain){const Pe=this.injector.get(Lt,[]);this.chain=Pe.reduceRight((De,Fe)=>new Tt(De,Fe),this.backend)}return this.chain.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(j),i.LFG(i.zs3))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),We=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:Pn,useClass:Ci}]}}static withOptions(oe={}){return{ngModule:Te,providers:[oe.cookieName?{provide:on,useValue:oe.cookieName}:[],oe.headerName?{provide:la,useValue:oe.headerName}:[]]}}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[Pn,{provide:Lt,useExisting:Pn,multi:!0},{provide:ca,useClass:Fr},{provide:on,useValue:"XSRF-TOKEN"},{provide:la,useValue:"X-XSRF-TOKEN"}]}),Te})(),Ue=(()=>{class Te{}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[ge,{provide:N,useClass:ue},Ut,{provide:j,useExisting:Ut}],imports:[[We.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Te})()},5e3:(Y,U,x)=>{"use strict";x.d(U,{deG:()=>kd,tb:()=>zb,AFp:()=>Yp,ip1:()=>qp,CZH:()=>ur,hGG:()=>BC,z2F:()=>cd,sBO:()=>px,Sil:()=>$m,_Vd:()=>Au,EJc:()=>Up,SBq:()=>yu,qLn:()=>Un,vpe:()=>Ir,tBr:()=>xo,XFs:()=>_e,OlP:()=>hi,zs3:()=>Ea,ZZ4:()=>Kp,aQg:()=>Pu,soG:()=>Lu,YKP:()=>bb,h0i:()=>ed,PXZ:()=>Ub,R0b:()=>Jn,FiY:()=>Ga,Lbi:()=>Zm,g9A:()=>sC,n_E:()=>Cu,Qsj:()=>Rw,FYo:()=>ub,JOm:()=>Is,q3G:()=>$i,tp0:()=>So,Rgc:()=>nd,dDg:()=>hC,GfV:()=>Kc,s_b:()=>rd,ifc:()=>Fe,eFA:()=>Gb,G48:()=>Jp,Gpc:()=>$,f3M:()=>Of,_c5:()=>nA,VLi:()=>qb,c2e:()=>Fb,zSh:()=>Vh,wAp:()=>pt,vHH:()=>ne,EiD:()=>$1,mCW:()=>zt,qzn:()=>Os,JVY:()=>UA,pB0:()=>$A,eBb:()=>Y1,L6k:()=>GA,LAX:()=>ZA,cg1:()=>zl,kL8:()=>F_,yhl:()=>q1,dqk:()=>Vt,sIi:()=>js,CqO:()=>F0,QGY:()=>$c,F4k:()=>u_,RDi:()=>cc,AaK:()=>N,z3N:()=>Rs,qOj:()=>qh,TTD:()=>ws,_Bn:()=>lb,xp6:()=>ky,uIk:()=>lr,Q2q:()=>Yh,Tol:()=>x_,Gre:()=>QM,ekj:()=>wr,Suo:()=>$w,Xpm:()=>Oa,lG2:()=>Be,Yz7:()=>di,cJS:()=>sn,oAB:()=>gs,Yjl:()=>vi,Y36:()=>Kd,_UZ:()=>d_,GkF:()=>nu,BQk:()=>z0,ynx:()=>iu,qZA:()=>V0,TgZ:()=>N0,EpF:()=>ep,n5z:()=>Ma,Ikx:()=>om,LFG:()=>hn,$8M:()=>wa,$Z:()=>Oo,NdJ:()=>j0,CRH:()=>Jw,kcU:()=>Td,O4$:()=>mc,oxw:()=>f_,ALo:()=>Mb,lcZ:()=>Dm,xi3:()=>Hm,Dn7:()=>Lm,Hsn:()=>W0,F$t:()=>tp,Q6J:()=>eu,s9C:()=>U0,MGl:()=>ip,hYB:()=>G0,DdM:()=>qw,VKq:()=>Mp,WLB:()=>td,iGM:()=>Dp,MAs:()=>D0,Jf7:()=>dy,CHM:()=>ba,oJD:()=>ey,LSH:()=>Wf,Udp:()=>np,WFA:()=>h_,d8E:()=>lm,YNc:()=>$d,_uU:()=>P_,Oqu:()=>im,hij:()=>ap,AsE:()=>nm,xDo:()=>sp,Gf:()=>Lb});var w=x(8929),i=x(2654),E=x(2916),T=x(6787),S=x(2474);function L(p){for(let m in p)if(p[m]===L)return m;throw Error("Could not find renamed property on target object.")}function R(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function N(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(N).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function j(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const q=L({__forward_ref__:L});function $(p){return p.__forward_ref__=$,p.toString=function(){return N(this())},p}function X(p){return ie(p)?p():p}function ie(p){return"function"==typeof p&&p.hasOwnProperty(q)&&p.__forward_ref__===$}class ne extends Error{constructor(m,g){super(function de(p,m){return`NG0${Math.abs(p)}${m?": "+m:""}`}(m,g)),this.code=m}}function me(p){return"string"==typeof p?p:null==p?"":String(p)}function Ne(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():me(p)}function Rt(p,m){const g=m?` in ${m}`:"";throw new ne(-201,`No provider for ${Ne(p)} found${g}`)}function st(p,m){null==p&&function bt(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function di(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function sn(p){return{providers:p.providers||[],imports:p.imports||[]}}function pi(p){return Ut(p,Fr)||Ut(p,ue)}function Ut(p,m){return p.hasOwnProperty(m)?p[m]:null}function ca(p){return p&&(p.hasOwnProperty(Pn)||p.hasOwnProperty(Le))?p[Pn]:null}const Fr=L({\u0275prov:L}),Pn=L({\u0275inj:L}),ue=L({ngInjectableDef:L}),Le=L({ngInjectorDef:L});var _e=(()=>((_e=_e||{})[_e.Default=0]="Default",_e[_e.Host=1]="Host",_e[_e.Self=2]="Self",_e[_e.SkipSelf=4]="SkipSelf",_e[_e.Optional=8]="Optional",_e))();let We;function it(p){const m=We;return We=p,m}function Qt(p,m,g){const _=pi(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&_e.Optional?null:void 0!==m?m:void Rt(N(p),"Injector")}function ae(p){return{toString:p}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Fe=(()=>{return(p=Fe||(Fe={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",Fe;var p})();const xe="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,It="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Vt=xe||"undefined"!=typeof global&&global||Ge||It,ft={},Ze=[],Vn=L({\u0275cmp:L}),Gt=L({\u0275dir:L}),Et=L({\u0275pipe:L}),pr=L({\u0275mod:L}),Xn=L({\u0275fac:L}),zn=L({__NG_ELEMENT_ID__:L});let sc=0;function Oa(p){return ae(()=>{const g={},_={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:p.selectors||Ze,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||Fe.Emulated,id:"c",styles:p.styles||Ze,_:null,setInput:null,schemas:p.schemas||null,tView:null},y=p.directives,v=p.features,D=p.pipes;return _.id+=sc++,_.inputs=M(p.inputs,g),_.outputs=M(p.outputs),v&&v.forEach(k=>k(_)),_.directiveDefs=y?()=>("function"==typeof y?y():y).map(ua):null,_.pipeDefs=D?()=>("function"==typeof D?D():D).map(fr):null,_})}function ua(p){return ln(p)||function Xe(p){return p[Gt]||null}(p)}function fr(p){return function ni(p){return p[Et]||null}(p)}const ms={};function gs(p){return ae(()=>{const m={type:p.type,bootstrap:p.bootstrap||Ze,declarations:p.declarations||Ze,imports:p.imports||Ze,exports:p.exports||Ze,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null};return null!=p.id&&(ms[p.id]=p.type),m})}function M(p,m){if(null==p)return ft;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,m&&(m[y]=v)}return g}const Be=Oa;function vi(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,onDestroy:p.type.prototype.ngOnDestroy||null}}function ln(p){return p[Vn]||null}function xt(p,m){const g=p[pr]||null;if(!g&&!0===m)throw new Error(`Type ${N(p)} does not have '\u0275mod' property.`);return g}function On(p){return Array.isArray(p)&&"object"==typeof p[1]}function er(p){return Array.isArray(p)&&!0===p[1]}function Zo(p){return 0!=(8&p.flags)}function Va(p){return 2==(2&p.flags)}function pa(p){return 1==(1&p.flags)}function tr(p){return null!==p.template}function As(p){return 0!=(512&p[2])}function Mn(p,m){return p.hasOwnProperty(Xn)?p[Xn]:null}class ma{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function ws(){return ut}function ut(p){return p.type.prototype.ngOnChanges&&(p.setInput=Zt),Ui}function Ui(){const p=_i(this),m=null==p?void 0:p.current;if(m){const g=p.previous;if(g===ft)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Zt(p,m,g,_){const y=_i(p)||function Sr(p,m){return p[za]=m}(p,{previous:ft,current:null}),v=y.current||(y.current={}),D=y.previous,k=this.declaredInputs[g],P=D[k];v[k]=new ma(P&&P.currentValue,m,D===ft),p[_]=m}ws.ngInherit=!0;const za="__ngSimpleChanges__";function _i(p){return p[za]||null}let ga;function cc(p){ga=p}function ro(){return void 0!==ga?ga:"undefined"!=typeof document?document:void 0}function Li(p){return!!p.listen}const B={createRenderer:(p,m)=>ro()};function I(p){for(;Array.isArray(p);)p=p[0];return p}function ye(p,m){return I(m[p])}function Se(p,m){return I(m[p.index])}function Yt(p,m){return p.data[m]}function Xt(p,m){return p[m]}function At(p,m){const g=m[p];return On(g)?g:g[0]}function Ft(p){return 4==(4&p[2])}function Gi(p){return 128==(128&p[2])}function ki(p,m){return null==m?null:p[m]}function _a(p){p[18]=0}function Er(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const mt={lFrame:Qu(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Yu(){return mt.bindingsEnabled}function be(){return mt.lFrame.lView}function $t(){return mt.lFrame.tView}function ba(p){return mt.lFrame.contextLView=p,p[8]}function Zi(){let p=dc();for(;null!==p&&64===p.type;)p=p.parent;return p}function dc(){return mt.lFrame.currentTNode}function qr(p,m){const g=mt.lFrame;g.currentTNode=p,g.isParent=m}function uc(){return mt.lFrame.isParent}function gr(){mt.lFrame.isParent=!1}function tl(){return mt.isInCheckNoChangesMode}function wd(p){mt.isInCheckNoChangesMode=p}function ei(){const p=mt.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function un(){return mt.lFrame.bindingIndex}function so(){return mt.lFrame.bindingIndex++}function jn(p){const m=mt.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function Ju(p,m){const g=mt.lFrame;g.bindingIndex=g.bindingRootIndex=p,xs(m)}function xs(p){mt.lFrame.currentDirectiveIndex=p}function oo(p){const m=mt.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function il(){return mt.lFrame.currentQueryIndex}function Yr(p){mt.lFrame.currentQueryIndex=p}function Wt(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function ja(p,m,g){if(g&_e.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&_e.Host||(y=Wt(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=mt.lFrame=Wr();return _.currentTNode=m,_.lView=p,!0}function lo(p){const m=Wr(),g=p[1];mt.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function Wr(){const p=mt.lFrame,m=null===p?null:p.child;return null===m?Qu(p):m}function Qu(p){const m={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:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function Cd(){const p=mt.lFrame;return mt.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const vd=Cd;function pc(){const p=Cd();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function xn(){return mt.lFrame.selectedIndex}function Dr(p){mt.lFrame.selectedIndex=p}function Oi(){const p=mt.lFrame;return Yt(p.tView,p.selectedIndex)}function mc(){mt.lFrame.currentNamespace="svg"}function Td(){!function Xu(){mt.lFrame.currentNamespace=null}()}function al(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:k,ngAfterViewInit:P,ngAfterViewChecked:F,ngOnDestroy:W}=v;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),P&&(p.viewHooks||(p.viewHooks=[])).push(-g,P),F&&((p.viewHooks||(p.viewHooks=[])).push(g,F),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,F)),null!=W&&(p.destroyHooks||(p.destroyHooks=[])).push(g,W)}}function Es(p,m,g){Ku(p,m,3,g)}function sl(p,m,g,_){(3&p[2])===g&&Ku(p,m,g,_)}function gc(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function Ku(p,m,g,_){const v=null!=_?_:-1,D=m.length-1;let k=0;for(let P=void 0!==_?65535&p[18]:0;P=_)break}else m[P]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===m){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class co{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function ol(p,m,g){const _=Li(p);let y=0;for(;ym){D=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let Ds=!0;function bc(p){const m=Ds;return Ds=p,m}let fo=0;function Hs(p,m){const g=Wa(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Ls(_.data,p),Ls(m,null),Ls(_.blueprint,null));const y=ya(p,m),v=p.injectorIndex;if(ho(y)){const D=Ya(y),k=po(y,m),P=k[1].data;for(let F=0;F<8;F++)m[v+F]=k[D+F]|P[D+F]}return m[v+8]=y,v}function Ls(p,m){p.push(0,0,0,0,0,0,0,0,m)}function Wa(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function ya(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){const v=y[1],D=v.type;if(_=2===D?v.declTNode:1===D?y[6]:null,null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function dl(p,m,g){!function Ac(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(zn)&&(_=g[zn]),null==_&&(_=g[zn]=fo++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:Hd:m}(g);if("function"==typeof v){if(!ja(m,p,_))return _&_e.Host?Dd(y,g,_):yc(m,g,_,y);try{const D=v(_);if(null!=D||_&_e.Optional)return D;Rt(g)}finally{vd()}}else if("number"==typeof v){let D=null,k=Wa(p,m),P=-1,F=_&_e.Host?m[16][6]:null;for((-1===k||_&_e.SkipSelf)&&(P=-1===k?ya(p,m):m[k+8],-1!==P&&sh(_,!1)?(D=m[1],k=Ya(P),m=po(P,m)):k=-1);-1!==k;){const W=m[1];if(ah(v,k,W.data)){const te=Cf(k,m,g,D,_,F);if(te!==rh)return te}P=m[k+8],-1!==P&&sh(_,m[1].data[k+8]===F)&&ah(v,k,m)?(D=W,k=Ya(P),m=po(P,m)):k=-1}}}return yc(m,g,_,y)}const rh={};function Hd(){return new Ua(Zi(),be())}function Cf(p,m,g,_,y,v){const D=m[1],k=D.data[p+8],W=hl(k,D,g,null==_?Va(k)&&Ds:_!=D&&0!=(3&k.type),y&_e.Host&&v===k);return null!==W?go(m,D,W,k):rh}function hl(p,m,g,_,y){const v=p.providerIndexes,D=m.data,k=1048575&v,P=p.directiveStart,W=v>>20,se=y?k+W:p.directiveEnd;for(let pe=_?k:k+W;pe=P&&ve.type===g)return pe}if(y){const pe=D[P];if(pe&&tr(pe)&&pe.type===g)return P}return null}function go(p,m,g,_){let y=p[g];const v=m.data;if(function xd(p){return p instanceof co}(y)){const D=y;D.resolving&&function ze(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ne(-200,`Circular dependency in DI detected for ${p}${g}`)}(Ne(v[g]));const k=bc(D.canSeeViewProviders);D.resolving=!0;const P=D.injectImpl?it(D.injectImpl):null;ja(p,_,_e.Default);try{y=p[g]=D.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function Ss(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const D=ut(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],m)}finally{null!==P&&it(P),bc(k),D.resolving=!1,vd()}}return y}function ah(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[Xn]||Ld(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[Xn]||Ld(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function Ld(p){return ie(p)?()=>{const m=Ld(X(p));return m&&m()}:Mn(p)}function wa(p){return function mo(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(ih(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===m)return g[y+1];y+=2}}}return null}(Zi(),p)}const bo="__parameters__";function Ur(p,m,g){return ae(()=>{const _=function ks(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...v){if(this instanceof y)return _.apply(this,v),this;const D=new y(...v);return k.annotation=D,k;function k(P,F,W){const te=P.hasOwnProperty(bo)?P[bo]:Object.defineProperty(P,bo,{value:[]})[bo];for(;te.length<=W;)te.push(null);return(te[W]=te[W]||[]).push(D),P}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class hi{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=di({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const kd=new hi("AnalyzeForEntryComponents");function _r(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?qn(g,m):m(g))}function Pd(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function gl(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Ca(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function ch(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Rd(p,m){const g=va(p,m);if(g>=0)return p[1|g]}function va(p,m){return function wo(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),D=p[v<m?y=v:_=v+1}return~(y<({token:p})),-1),Ga=To(Ur("Optional"),8),So=To(Ur("SkipSelf"),4);let rt,le;function H(p){var m;return(null===(m=function C(){if(void 0===rt&&(rt=null,Vt.trustedTypes))try{rt=Vt.trustedTypes.createPolicy("angular",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return rt}())||void 0===m?void 0:m.createHTML(p))||p}function ot(p){var m;return(null===(m=function we(){if(void 0===le&&(le=null,Vt.trustedTypes))try{le=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return le}())||void 0===m?void 0:m.createHTML(p))||p}class Bi{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Pr extends Bi{getTypeName(){return"HTML"}}class Ps extends Bi{getTypeName(){return"Style"}}class yl extends Bi{getTypeName(){return"Script"}}class j1 extends Bi{getTypeName(){return"URL"}}class WA extends Bi{getTypeName(){return"ResourceURL"}}function Rs(p){return p instanceof Bi?p.changingThisBreaksApplicationSecurity:p}function Os(p,m){const g=q1(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function q1(p){return p instanceof Bi&&p.getTypeName()||null}function UA(p){return new Pr(p)}function GA(p){return new Ps(p)}function Y1(p){return new yl(p)}function ZA(p){return new j1(p)}function $A(p){return new WA(p)}class zf{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(H(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class JA{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=H(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=H(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0zt(m.trim())).join(", ")),this.buf.push(" ",D,'="',Yf(P),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();G1.hasOwnProperty(g)&&!Lc.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(Yf(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const qf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,KA=/([^\#-~ |!])/g;function Yf(p){return p.replace(/&/g,"&").replace(qf,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(KA,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let Ah;function $1(p,m){let g=null;try{Ah=Ah||function W1(p){const m=new JA(p);return function QA(){try{return!!(new window.DOMParser).parseFromString(H(""),"text/html")}catch(p){return!1}}()?new zf(m):m}(p);let _=m?String(m):"";g=Ah.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=Ah.getInertBodyElement(_)}while(_!==v);return H((new XA).sanitizeChildren(kc(g)||g))}finally{if(g){const _=kc(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function kc(p){return"content"in p&&function J1(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var $i=(()=>(($i=$i||{})[$i.NONE=0]="NONE",$i[$i.HTML=1]="HTML",$i[$i.STYLE=2]="STYLE",$i[$i.SCRIPT=3]="SCRIPT",$i[$i.URL=4]="URL",$i[$i.RESOURCE_URL=5]="RESOURCE_URL",$i))();function ey(p){const m=Pc();return m?ot(m.sanitize($i.HTML,p)||""):Os(p,"HTML")?ot(Rs(p)):$1(ro(),me(p))}function Wf(p){const m=Pc();return m?m.sanitize($i.URL,p)||"":Os(p,"URL")?Rs(p):zt(me(p))}function Pc(){const p=be();return p&&p[12]}const eg="__ngContext__";function Wn(p,m){p[eg]=m}function xi(p){const m=function Ml(p){return p[eg]||null}(p);return m?Array.isArray(m)?m:m.lView:null}function Zf(p){return p.ngOriginalError}function $f(p,...m){p.error(...m)}class Un{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m),_=function vh(p){return p&&p.ngErrorLogger||$f}(m);_(this._console,"ERROR",m),g&&_(this._console,"ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Zf(m);for(;g&&Zf(g);)g=Zf(g);return g||null}}const cy=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Vt))();function dy(p){return p.ownerDocument.defaultView}function sr(p){return p instanceof Function?p():p}var Is=(()=>((Is=Is||{})[Is.Important=1]="Important",Is[Is.DashCase=2]="DashCase",Is))();function ng(p,m){return undefined(p,m)}function Qa(p){const m=p[3];return er(m)?m[3]:m}function rg(p){return py(p[13])}function ag(p){return py(p[4])}function py(p){for(;null!==p&&!er(p);)p=p[4];return p}function Do(p,m,g,_,y){if(null!=_){let v,D=!1;er(_)?v=_:On(_)&&(D=!0,_=_[0]);const k=I(_);0===p&&null!==g?null==y?xh(m,g,k):Bs(m,g,k,y||null,!0):1===p&&null!==g?Bs(m,g,k,y||null,!0):2===p?function jd(p,m,g){const _=Sh(p,m);_&&function Xa(p,m,g,_){Li(p)?p.removeChild(m,g,_):m.removeChild(g)}(p,_,m,g)}(m,k,D):3===p&&m.destroyNode(k),null!=v&&function tT(p,m,g,_,y){const v=g[7];v!==I(g)&&Do(m,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=gl(p,10+m);!function Qv(p,m){Ho(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=v[19];null!==D&&D.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function _y(p,m){if(!(256&m[2])){const g=m[11];Li(g)&&g.destroyNode&&Ho(p,m,g,3,null,null),function Kv(p){let m=p[13];if(!m)return Si(p[1],p);for(;m;){let g=null;if(On(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)On(m)&&Si(m[1],m),m=m[3];null===m&&(m=p),On(m)&&Si(m[1],m),g=m&&m[4]}m=g}}(m)}}function Si(p,m){if(!(256&m[2])){m[2]&=-129,m[2]|=256,function Ay(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=F]():_[y=-F].unsubscribe(),v+=2}else{const D=_[y=g[v+1]];g[v].call(D)}if(null!==_){for(let v=y+1;v<_.length;v++)_[v]();m[7]=null}}(p,m),1===m[1].type&&Li(m[11])&&m[11].destroy();const g=m[17];if(null!==g&&er(m[3])){g!==m[3]&&gy(g,m);const _=m[19];null!==_&&_.detachView(p)}}}function sg(p,m,g){return function yy(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===Fe.None||y===Fe.Emulated)return null}return Se(_,g)}(p,m.parent,g)}function Bs(p,m,g,_,y){Li(p)?p.insertBefore(m,g,_,y):m.insertBefore(g,_,y)}function xh(p,m,g){Li(p)?p.appendChild(m,g):m.appendChild(g)}function My(p,m,g,_,y){null!==_?Bs(p,m,g,_,y):xh(p,m,g)}function Sh(p,m){return Li(p)?p.parentNode(m):m.parentNode}function og(p,m,g){return vy(p,m,g)}let vy=function Cy(p,m,g){return 40&p.type?Se(p,g):null};function Xf(p,m,g,_){const y=sg(p,_,m),v=m[11],k=og(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let P=0;Pv?"":y[te+1].toLowerCase();const pe=8&_?se:null;if(pe&&-1!==xy(pe,F,0)||2&_&&F!==se){if(Ka(_))return!1;D=!0}}}}else{if(!D&&!Ka(_)&&!Ka(P))return!1;if(D&&Ka(P))continue;D=!1,_=P|1&_}}return Ka(_)||D}function Ka(p){return 0==(1&p)}function Dy(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!Ka(D)&&(m+=Ly(v,y),y=""),_=D,v=v||!Ka(_);g++}return""!==y&&(m+=Ly(v,y)),m}const Ot={};function ky(p){Py($t(),be(),xn()+p,tl())}function Py(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&Es(m,v,g)}else{const v=p.preOrderHooks;null!==v&&sl(m,v,0,g)}Dr(g)}function r0(p,m){return p<<17|m<<2}function es(p){return p>>17&32767}function dg(p){return 2|p}function Lo(p){return(131068&p)>>2}function ug(p,m){return-131069&p|m<<2}function hg(p){return 1|p}function Yy(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_20&&Py(p,m,20,tl()),g(_,y)}finally{Dr(v)}}function Uy(p,m,g){if(Zo(m)){const y=m.directiveEnd;for(let v=m.directiveStart;v0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(k)!=P&&k.push(P),k.push(_,y,D)}}function Sg(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function ko(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function Dg(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&p0(g)}}function p0(p){for(let _=rg(p);null!==_;_=ag(_))for(let y=10;y<_.length;y++){const v=_[y];if(1024&v[2]){const D=v[1];Vc(D,v,D.template,v[8])}else v[5]>0&&p0(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&p0(y)}}function oM(p,m){const g=At(m,p),_=g[1];(function zc(p,m){for(let g=m.length;gPromise.resolve(null))();function Oh(p){return p[7]||(p[7]=[])}function Wd(p){return p.cleanup||(p.cleanup=[])}function _0(p,m,g){return(null===p||tr(p))&&(g=function Q(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function Ig(p,m){const g=p[9],_=g?g.get(Un,null):null;_&&_.handleError(m)}function Bg(p,m,g,_,y){for(let v=0;vthis.processProvider(k,m,g)),qn([m],k=>this.processInjectorType(k,[],v)),this.records.set(Bh,qc(void 0,this));const D=this.records.get(Vh);this.scope=null!=D?D.value:null,this.source=y||("object"==typeof m?null:N(m))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(m=>m.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(m,g=vo,_=_e.Default){this.assertNotDestroyed();const y=kr(this),v=it(void 0);try{if(!(_&_e.SkipSelf)){let k=this.records.get(m);if(void 0===k){const P=function HT(p){return"function"==typeof p||"object"==typeof p&&p instanceof hi}(m)&&pi(m);k=P&&this.injectableDefInScope(P)?qc(A0(m),Fc):null,this.records.set(m,k)}if(null!=k)return this.hydrate(m,k)}return(_&_e.Self?hM():this.parent).get(m,g=_&_e.Optional&&g===vo?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[Cc]=D[Cc]||[]).unshift(N(m)),y)throw D;return function ph(p,m,g,_){const y=p[Cc];throw m[vc]&&y.unshift(m[vc]),p.message=function fh(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.substr(2):p;let y=N(m);if(Array.isArray(m))y=m.map(N).join(" -> ");else if("object"==typeof m){let v=[];for(let D in m)if(m.hasOwnProperty(D)){let k=m[D];v.push(D+":"+("string"==typeof k?JSON.stringify(k):N(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(kf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[Cc]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{it(v),kr(y)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(m=>this.get(m))}toString(){const m=[];return this.records.forEach((_,y)=>m.push(N(y))),`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(m,g,_){if(!(m=X(m)))return!1;let y=ca(m);const v=null==y&&m.ngModule||void 0,D=void 0===v?m:v,k=-1!==_.indexOf(D);if(void 0!==v&&(y=ca(v)),null==y)return!1;if(null!=y.imports&&!k){let W;_.push(D);try{qn(y.imports,te=>{this.processInjectorType(te,g,_)&&(void 0===W&&(W=[]),W.push(te))})}finally{}if(void 0!==W)for(let te=0;tethis.processProvider(ve,se,pe||Ze))}}this.injectorDefTypes.add(D);const P=Mn(D)||(()=>new D);this.records.set(D,qc(P,Fc));const F=y.providers;if(null!=F&&!k){const W=m;qn(F,te=>this.processProvider(te,W,F))}return void 0!==v&&void 0!==m.providers}processProvider(m,g,_){let y=Yc(m=X(m))?m:X(m&&m.provide);const v=function mM(p,m,g){return y0(p)?qc(void 0,p.useValue):qc(Fg(p),Fc)}(m);if(Yc(m)||!0!==m.multi)this.records.get(y);else{let D=this.records.get(y);D||(D=qc(void 0,Fc,!0),D.factory=()=>Nd(D.multi),this.records.set(y,D)),y=m,D.multi.push(m)}this.records.set(y,v)}hydrate(m,g){return g.value===Fc&&(g.value=Vg,g.value=g.factory()),"object"==typeof g.value&&g.value&&function qg(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=X(m.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function A0(p){const m=pi(p),g=null!==m?m.factory:Mn(p);if(null!==g)return g;if(p instanceof hi)throw new ne(204,!1);if(p instanceof Function)return function fM(p){const m=p.length;if(m>0)throw Ca(m,"?"),new ne(204,!1);const g=function on(p){const m=p&&(p[Fr]||p[ue]);if(m){const g=function la(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ne(204,!1)}function Fg(p,m,g){let _;if(Yc(p)){const y=X(p);return Mn(y)||A0(y)}if(y0(p))_=()=>X(p.useValue);else if(function gM(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Nd(p.deps||[]));else if(function jg(p){return!(!p||!p.useExisting)}(p))_=()=>hn(X(p.useExisting));else{const y=X(p&&(p.useClass||p.provide));if(!function bM(p){return!!p.deps}(p))return Mn(y)||A0(y);_=()=>new y(...Nd(p.deps))}return _}function qc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function y0(p){return null!==p&&"object"==typeof p&&Pf in p}function Yc(p){return"function"==typeof p}let Ea=(()=>{class p{static create(g,_){var y;if(Array.isArray(g))return zh({name:""},_,g,"");{const v=null!==(y=g.name)&&void 0!==y?y:"";return zh({name:v},g.parent,g.providers,v)}}}return p.THROW_IF_NOT_FOUND=vo,p.NULL=new Nh,p.\u0275prov=di({token:p,providedIn:"any",factory:()=>hn(Bh)}),p.__NG_ELEMENT_ID__=-1,p})();function Fs(p,m){al(xi(p)[1],Zi())}function qh(p){let m=function Ct(p){return Object.getPrototypeOf(p.prototype).constructor}(p.type),g=!0;const _=[p];for(;m;){let y;if(tr(p))y=m.\u0275cmp||m.\u0275dir;else{if(m.\u0275cmp)throw new ne(903,"");y=m.\u0275dir}if(y){if(g){_.push(y);const D=p;D.inputs=Re(p.inputs),D.declaredInputs=Re(p.declaredInputs),D.outputs=Re(p.outputs);const k=y.hostBindings;k&&Ht(p,k);const P=y.viewQuery,F=y.contentQueries;if(P&&Nt(p,P),F&&Hl(p,F),R(p.inputs,y.inputs),R(p.declaredInputs,y.declaredInputs),R(p.outputs,y.outputs),tr(y)&&y.data.animation){const W=p.data;W.animation=(W.animation||[]).concat(y.data.animation)}}const v=y.features;if(v)for(let D=0;D=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=ll(y.hostAttrs,g=ll(g,y.hostAttrs))}}(_)}function Re(p){return p===ft?{}:p===Ze?[]:p}function Nt(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function Hl(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function Ht(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let yr=null;function Gd(){if(!yr){const p=Vt.Symbol;if(p&&p.iterator)yr=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(I(Jt[_.index])):_.index;if(Li(g)){let Jt=null;if(!k&&P&&(Jt=function q0(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vP?k[P]:null}"string"==typeof D&&(v+=2)}return null}(p,m,y,_.index)),null!==Jt)(Jt.__ngLastListenerFn__||Jt).__ngNextListenerFn__=v,Jt.__ngLastListenerFn__=v,pe=!1;else{v=Y0(_,m,te,v,!1);const Ai=g.listen(et,y,v);se.push(v,Ai),W&&W.push(y,ct,Ee,Ee+1)}}else v=Y0(_,m,te,v,!0),et.addEventListener(y,v,D),se.push(v),W&&W.push(y,ct,Ee,D)}else v=Y0(_,m,te,v,!1);const ve=_.outputs;let Ve;if(pe&&null!==ve&&(Ve=ve[y])){const Ye=Ve.length;if(Ye)for(let et=0;et0;)m=m[15],p--;return m}(p,mt.lFrame.contextLView))[8]}(p)}function m_(p,m){let g=null;const _=function sT(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const pn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function C_(p){return p.substring(pn.key,pn.keyEnd)}function Jc(p,m){const g=pn.textEnd;return g===m?-1:(m=pn.keyEnd=function jM(p,m,g){for(;m32;)m++;return m}(p,pn.key=m,g),Io(p,m,g))}function Io(p,m,g){for(;m=0;g=Jc(m,g))rr(p,C_(m),!0)}function Ha(p,m,g,_){const y=be(),v=$t(),D=jn(2);v.firstUpdatePass&&S_(v,p,D,_),m!==Ot&&In(y,D,m)&&ou(v,v.data[xn()],y,y[11],p,y[D+1]=function L_(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=N(Rs(p)))),p}(m,g),_,D)}function ia(p,m,g,_){const y=$t(),v=jn(2);y.firstUpdatePass&&S_(y,null,v,_);const D=be();if(g!==Ot&&In(D,v,g)){const k=y.data[xn()];if(k_(k,_)&&!au(y,v)){let P=_?k.classesWithoutHost:k.stylesWithoutHost;null!==P&&(g=j(P,g||"")),tu(y,k,D,g,_)}else!function H_(p,m,g,_,y,v,D,k){y===Ot&&(y=Ze);let P=0,F=0,W=0=p.expandoStartIndex}function S_(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[xn()],D=au(p,g);k_(v,_)&&null===m&&!D&&(m=!1),m=function GM(p,m,g,_){const y=oo(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=su(g=em(null,p,m,g,_),m.attrs,_),v=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=em(y,p,m,g,_),null===v){let P=function K0(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==Lo(_))return p[es(_)]}(p,m,_);void 0!==P&&Array.isArray(P)&&(P=em(null,p,m,P[1],_),P=su(P,m.attrs,_),function ZM(p,m,g,_){p[es(g?m.classBindings:m.styleBindings)]=_}(p,m,_,P))}else v=function E_(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(F=!0)}else W=g;if(y)if(0!==P){const se=es(p[k+1]);p[_+1]=r0(se,k),0!==se&&(p[se+1]=ug(p[se+1],_)),p[k+1]=function hT(p,m){return 131071&p|m<<17}(p[k+1],_)}else p[_+1]=r0(k,0),0!==k&&(p[k+1]=ug(p[k+1],_)),k=_;else p[_+1]=r0(P,0),0===k?k=_:p[P+1]=ug(p[P+1],_),P=_;F&&(p[_+1]=dg(p[_+1])),w_(p,W,_,!0),w_(p,W,_,!1),function zM(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&va(v,m)>=0&&(g[_+1]=hg(g[_+1]))}(m,W,p,_,v),D=r0(k,P),v?m.classBindings=D:m.styleBindings=D}(y,v,m,g,D,_)}}function em(p,m,g,_,y){let v=null;const D=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const P=p[y],F=Array.isArray(P),W=F?P[1]:P,te=null===W;let se=g[y+1];se===Ot&&(se=te?Ze:void 0);let pe=te?Rd(se,_):W===_?se:void 0;if(F&&!rp(pe)&&(pe=Rd(P,_)),rp(pe)&&(k=pe,D))return k;const ve=p[y+1];y=D?es(ve):Lo(ve)}if(null!==m){let P=v?m.residualClasses:m.residualStyles;null!=P&&(k=Rd(P,_))}return k}function rp(p){return void 0!==p}function k_(p,m){return 0!=(p.flags&(m?16:32))}function P_(p,m=""){const g=be(),_=$t(),y=p+20,v=_.firstCreatePass?qd(_,y,1,m,null):_.data[y],D=g[y]=function Nc(p,m){return Li(p)?p.createText(m):p.createTextNode(m)}(g[11],m);Xf(_,g,D,v),qr(v,!1)}function im(p){return ap("",p,""),im}function ap(p,m,g){const _=be(),y=Po(_,p,m,g);return y!==Ot&&$r(_,xn(),y),ap}function nm(p,m,g,_,y){const v=be(),D=kl(v,p,m,g,_,y);return D!==Ot&&$r(v,xn(),D),nm}function sp(p,m,g,_,y,v,D,k,P,F,W){const te=be(),se=Kr(te,p,m,g,_,y,v,D,k,P,F,W);return se!==Ot&&$r(te,xn(),se),sp}function QM(p,m,g){ia(rr,Da,Po(be(),p,m,g),!0)}function om(p,m,g){const _=be();return In(_,so(),m)&&or($t(),Oi(),_,p,m,_[11],g,!0),om}function lm(p,m,g){const _=be();if(In(_,so(),m)){const v=$t(),D=Oi();or(v,D,_,p,m,_0(oo(v.data),D,_),g,!0)}return lm}const No=void 0;var Qc=["en",[["a","p"],["AM","PM"],No],[["AM","PM"],No,No],[["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"]],No,[["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"]],No,[["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}",No,"{1} 'at' {0}",No],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function qT(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let Vl={};function zl(p){const m=function j_(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=dm(m);if(g)return g;const _=m.split("-")[0];if(g=dm(_),g)return g;if("en"===_)return Qc;throw new Error(`Missing locale data for the locale "${p}".`)}function F_(p){return zl(p)[pt.PluralCase]}function dm(p){return p in Vl||(Vl[p]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[p]),Vl[p]}var pt=(()=>((pt=pt||{})[pt.LocaleId=0]="LocaleId",pt[pt.DayPeriodsFormat=1]="DayPeriodsFormat",pt[pt.DayPeriodsStandalone=2]="DayPeriodsStandalone",pt[pt.DaysFormat=3]="DaysFormat",pt[pt.DaysStandalone=4]="DaysStandalone",pt[pt.MonthsFormat=5]="MonthsFormat",pt[pt.MonthsStandalone=6]="MonthsStandalone",pt[pt.Eras=7]="Eras",pt[pt.FirstDayOfWeek=8]="FirstDayOfWeek",pt[pt.WeekendRange=9]="WeekendRange",pt[pt.DateFormat=10]="DateFormat",pt[pt.TimeFormat=11]="TimeFormat",pt[pt.DateTimeFormat=12]="DateTimeFormat",pt[pt.NumberSymbols=13]="NumberSymbols",pt[pt.NumberFormats=14]="NumberFormats",pt[pt.CurrencyCode=15]="CurrencyCode",pt[pt.CurrencySymbol=16]="CurrencySymbol",pt[pt.CurrencyName=17]="CurrencyName",pt[pt.Currencies=18]="Currencies",pt[pt.Directionality=19]="Directionality",pt[pt.PluralCase=20]="PluralCase",pt[pt.ExtraData=21]="ExtraData",pt))();const cp="en-US";let dp=cp;function wm(p,m,g,_,y){if(p=X(p),Array.isArray(p))for(let v=0;v>20;if(Yc(p)||!p.multi){const pe=new co(P,y,Kd),ve=Pt(k,m,y?W:W+se,te);-1===ve?(dl(Hs(F,D),v,k),Cm(v,p,m.length),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(pe),D.push(pe)):(g[ve]=pe,D[ve]=pe)}else{const pe=Pt(k,m,W+se,te),ve=Pt(k,m,W,W+se),Ve=pe>=0&&g[pe],Ye=ve>=0&&g[ve];if(y&&!Ye||!y&&!Ve){dl(Hs(F,D),v,k);const et=function Ew(p,m,g,_,y){const v=new co(p,g,Kd);return v.multi=[],v.index=m,v.componentProviders=0,ob(v,y,_&&!g),v}(y?ns:$T,g.length,y,_,P);!y&&Ye&&(g[ve].providerFactory=et),Cm(v,p,m.length,0),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(et),D.push(et)}else Cm(v,p,pe>-1?pe:ve,ob(g[y?ve:pe],P,!y&&_));!y&&_&&Ye&&g[ve].componentProviders++}}}function Cm(p,m,g,_){const y=Yc(m),v=function _M(p){return!!p.useClass}(m);if(y||v){const P=(v?X(m.useClass):m).prototype.ngOnDestroy;if(P){const F=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const W=F.indexOf(g);-1===W?F.push(g,[_,P]):F[W+1].push(_,P)}else F.push(g,P)}}}function ob(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function Pt(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function $T(p,m,g,_){return vm(this.multi,[])}function ns(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const D=this.providerFactory.componentProviders,k=go(g,g[1],this.providerFactory.index,_);v=k.slice(0,D),vm(y,v);for(let P=D;P{g.providersResolver=(_,y)=>function ZT(p,m,g){const _=$t();if(_.firstCreatePass){const y=tr(p);wm(g,_.data,_.blueprint,y,!0),wm(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class cb{}class Lw{resolveComponentFactory(m){throw function Hw(p){const m=Error(`No component factory found for ${N(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let Au=(()=>{class p{}return p.NULL=new Lw,p})();function kw(){return Xc(Zi(),be())}function Xc(p,m){return new yu(Se(p,m))}let yu=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=kw,p})();function Pw(p){return p instanceof yu?p.nativeElement:p}class ub{}let Rw=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function Fl(){const p=be(),g=At(Zi().index,p);return function hb(p){return p[11]}(On(g)?g:p)}(),p})(),Ow=(()=>{class p{}return p.\u0275prov=di({token:p,providedIn:"root",factory:()=>null}),p})();class Kc{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const XT=new Kc("13.2.2"),pb={};function Tm(p,m,g,_,y=!1){for(;null!==g;){const v=m[g.index];if(null!==v&&_.push(I(v)),er(v))for(let k=10;k-1&&(Tl(m,_),gl(g,_))}this._attachedToViewContainer=!1}_y(this._lView[1],this._lView)}onDestroy(m){c0(this._lView[1],this._lView,null,m)}markForCheck(){Lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){m0(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Rh(p,m,g){wd(!0);try{m0(p,m,g)}finally{wd(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Xv(p,m){Ho(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=m}}class fb extends Mu{constructor(m){super(m),this._view=m}detectChanges(){Og(this._view)}checkNoChanges(){!function lM(p){wd(!0);try{Og(p)}finally{wd(!1)}}(this._view)}get context(){return null}}class mb extends Au{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=ln(m);return new yp(g,this.ngModule)}}function rs(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}const Bw=new hi("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>cy});class yp extends cb{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function dT(p){return p.map(cT).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return rs(this.componentDef.inputs)}get outputs(){return rs(this.componentDef.outputs)}create(m,g,_,y){const v=(y=y||this.ngModule)?function KT(p,m){return{get:(g,_,y)=>{const v=p.get(g,pb,y);return v!==pb||_===pb?v:m.get(g,_,y)}}}(m,y.injector):m,D=v.get(ub,B),k=v.get(Ow,null),P=D.createRenderer(null,this.componentDef),F=this.componentDef.selectors[0][0]||"div",W=_?function vn(p,m,g){if(Li(p))return p.selectRootElement(m,g===Fe.ShadowDom);let _="string"==typeof m?p.querySelector(m):m;return _.textContent="",_}(P,_,this.componentDef.encapsulation):Fd(D.createRenderer(null,this.componentDef),F,function Iw(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(F)),te=this.componentDef.onPush?576:528,se=function Zg(p,m){return{components:[],scheduler:p||cy,clean:dM,playerHandler:m||null,flags:0}}(),pe=l0(0,null,null,1,0,null,null,null,null,null),ve=Eh(null,pe,se,te,null,null,D,P,k,v);let Ve,Ye;lo(ve);try{const et=function w0(p,m,g,_,y,v){const D=g[1];g[20]=p;const P=qd(D,20,2,"#host",null),F=P.mergedAttrs=m.hostAttrs;null!==F&&(b0(P,F,!0),null!==p&&(ol(y,p,F),null!==P.classes&&t0(y,p,P.classes),null!==P.styles&&cg(y,p,P.styles)));const W=_.createRenderer(p,m),te=Eh(g,Gy(m),null,m.onPush?64:16,g[20],P,_,W,v||null,null);return D.firstCreatePass&&(dl(Hs(P,g),D,m.type),ko(D,P),u0(P,g.length,1)),f0(g,te),g[20]=te}(W,this.componentDef,ve,D,P);if(W)if(_)ol(P,W,["ng-version",XT.full]);else{const{attrs:Ee,classes:ct}=function uT(p){const m=[],g=[];let _=1,y=2;for(;_0&&t0(P,W,ct.join(" "))}if(Ye=Yt(pe,20),void 0!==g){const Ee=Ye.projection=[];for(let ct=0;ctP(D,m)),m.contentQueries){const P=Zi();m.contentQueries(1,D,P.directiveStart)}const k=Zi();return!v.firstCreatePass||null===m.hostBindings&&null===m.hostAttrs||(Dr(k.index),tM(g[1],k,0,k.directiveStart,k.directiveEnd,m),Sg(m,D)),D}(et,this.componentDef,ve,se,[Fs]),Dh(pe,ve,null)}finally{pc()}return new Vw(this.componentType,Ve,Xc(Ye,ve),ve,Ye)}}class Vw extends class Dw{}{constructor(m,g,_,y,v){super(),this.location=_,this._rootLView=y,this._tNode=v,this.instance=g,this.hostView=this.changeDetectorRef=new fb(y),this.componentType=m}get injector(){return new Ua(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(m){this.hostView.onDestroy(m)}}class ed{}class bb{}const as=new Map;class Sm extends ed{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new mb(this);const _=xt(m);this._bootstrapComponents=sr(_.bootstrap),this._r3Injector=zg(m,g,[{provide:ed,useValue:this},{provide:Au,useValue:this.componentFactoryResolver}],N(m)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(m)}get(m,g=Ea.THROW_IF_NOT_FOUND,_=_e.Default){return m===Ea||m===ed||m===Bh?this:this._r3Injector.get(m,g,_)}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class tn extends bb{constructor(m){super(),this.moduleType=m,null!==xt(m)&&function zw(p){const m=new Set;!function g(_){const y=xt(_,!0),v=y.id;null!==v&&(function Ws(p,m,g){if(m&&m!==g)throw new Error(`Duplicate module registered for ${p} - ${N(m)} vs ${N(m.name)}`)}(v,as.get(v),_),as.set(v,_));const D=sr(y.imports);for(const k of D)m.has(k)||(m.add(k),g(k))}(p)}(m)}create(m){return new Sm(this.moduleType,m)}}function qw(p,m,g){const _=ei()+p,y=be();return y[_]===Ot?Qr(y,_,g?m.call(g):m()):function Xr(p,m){return p[m]}(y,_)}function Mp(p,m,g,_){return nn(be(),ei(),p,m,g,_)}function td(p,m,g,_,y){return Us(be(),ei(),p,m,g,_,y)}function wu(p,m){const g=p[m];return g===Ot?void 0:g}function nn(p,m,g,_,y,v){const D=m+g;return In(p,D,y)?Qr(p,D+1,v?_.call(v,y):_(y)):wu(p,D+1)}function Us(p,m,g,_,y,v,D){const k=m+g;return qs(p,k,y,v)?Qr(p,k+2,D?_.call(D,y,v):_(y,v)):wu(p,k+2)}function Em(p,m,g,_,y,v,D,k){const P=m+g;return function Wc(p,m,g,_,y){const v=qs(p,m,g,_);return In(p,m+2,y)||v}(p,P,y,v,D)?Qr(p,P+3,k?_.call(k,y,v,D):_(y,v,D)):wu(p,P+3)}function Mb(p,m){const g=$t();let _;const y=p+20;g.firstCreatePass?(_=function Dn(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=Mn(_.type)),D=it(Kd);try{const k=bc(!1),P=v();return bc(k),function Zh(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,be(),y,P),P}finally{it(D)}}function Dm(p,m,g){const _=p+20,y=be(),v=Xt(y,_);return id(y,_)?nn(y,ei(),m,v.transform,g,v):v.transform(g)}function Hm(p,m,g,_){const y=p+20,v=be(),D=Xt(v,y);return id(v,y)?Us(v,ei(),m,D.transform,g,_,D):D.transform(g,_)}function Lm(p,m,g,_,y){const v=p+20,D=be(),k=Xt(D,v);return id(D,v)?Em(D,ei(),m,k.transform,g,_,y,k):k.transform(g,_,y)}function id(p,m){return p[1].data[m].pure}function wp(p){return m=>{setTimeout(p,void 0,m)}}const Ir=class vb extends w.xQ{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){var y,v,D;let k=m,P=g||(()=>null),F=_;if(m&&"object"==typeof m){const te=m;k=null===(y=te.next)||void 0===y?void 0:y.bind(te),P=null===(v=te.error)||void 0===v?void 0:v.bind(te),F=null===(D=te.complete)||void 0===D?void 0:D.bind(te)}this.__isAsync&&(P=wp(P),k&&(k=wp(k)),F&&(F=wp(F)));const W=super.subscribe({next:k,error:P,complete:F});return m instanceof i.w&&m.add(W),W}};function Tb(){return this._results[Gd()]()}class Cu{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Gd(),_=Cu.prototype;_[g]||(_[g]=Tb)}get changes(){return this._changes||(this._changes=new Ir)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=_r(m);(this._changesDetected=!function Df(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=Sb,p})();const xb=nd,Gw=class extends xb{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m){const g=this._declarationTContainer.tViews,_=Eh(this._declarationLView,g,m,16,null,g.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(_[19]=v.createEmbeddedView(g)),Dh(g,_,m),new Mu(_)}};function Sb(){return vu(Zi(),be())}function vu(p,m){return 4&p.type?new Gw(m,p,Xc(p,m)):null}let rd=(()=>{class p{}return p.__NG_ELEMENT_ID__=Eb,p})();function Eb(){return vp(Zi(),be())}const km=rd,Pm=class extends km{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return Xc(this._hostTNode,this._hostLView)}get injector(){return new Ua(this._hostTNode,this._hostLView)}get parentInjector(){const m=ya(this._hostTNode,this._hostLView);if(ho(m)){const g=po(m,this._hostLView),_=Ya(m);return new Ua(g[1].data[_+8],g)}return new Ua(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=Rm(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){const y=m.createEmbeddedView(g||{});return this.insert(y,_),y}createComponent(m,g,_,y,v){const D=m&&!function ml(p){return"function"==typeof p}(m);let k;if(D)k=g;else{const te=g||{};k=te.index,_=te.injector,y=te.projectableNodes,v=te.ngModuleRef}const P=D?m:new yp(ln(m)),F=_||this.parentInjector;if(!v&&null==P.ngModule&&F){const te=F.get(ed,null);te&&(v=te)}const W=P.create(F,y,void 0,v);return this.insert(W.hostView,k),W}insert(m,g){const _=m._lView,y=_[1];if(function Ti(p){return er(p[3])}(_)){const W=this.indexOf(m);if(-1!==W)this.detach(W);else{const te=_[3],se=new Pm(te,te[6],te[3]);se.detach(se.indexOf(m))}}const v=this._adjustIndex(g),D=this._lContainer;!function eT(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[k/2]);else{const F=v[k+1],W=m[-P];for(let te=10;te{class p{constructor(g){this.appInits=g,this.resolve=Hu,this.reject=Hu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:P})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(hn(qp,8))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Yp=new hi("AppId"),Wp={provide:Yp,useFactory:function aC(){return`${Gm()}${Gm()}${Gm()}`},deps:[]};function Gm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const sC=new hi("Platform Initializer"),Zm=new hi("Platform ID"),zb=new hi("appBootstrapListener");let Fb=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Lu=new hi("LocaleId"),Up=new hi("DefaultCurrencyCode");class Fo{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let $m=(()=>{class p{compileModuleSync(g){return new tn(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=sr(xt(g).declarations).reduce((D,k)=>{const P=ln(k);return P&&D.push(new yp(P)),D},[]);return new Fo(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Qm=(()=>Promise.resolve(0))();function Gp(p){"undefined"==typeof Zone?Qm.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Jn{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ir(!1),this.onMicrotaskEmpty=new Ir(!1),this.onStable=new Ir(!1),this.onError=new Ir(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const y=this;y._nesting=0,y._outer=y._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function lC(){let p=Vt.requestAnimationFrame,m=Vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function Xm(p){const m=()=>{!function dC(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(Vt,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Km(p),p.isCheckStableRunning=!0,Zp(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Km(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,D,k)=>{try{return jb(p),g.invokeTask(y,v,D,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),e1(p)}},onInvoke:(g,_,y,v,D,k,P)=>{try{return jb(p),g.invoke(y,v,D,k,P)}finally{p.shouldCoalesceRunChangeDetection&&m(),e1(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Km(p),Zp(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Jn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Jn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,D=v.scheduleEventTask("NgZoneEvent: "+y,m,cC,Hu,Hu);try{return v.runTask(D,g,_)}finally{v.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const cC={};function Zp(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Km(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function jb(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function e1(p){p._nesting--,Zp(p)}class uC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ir,this.onMicrotaskEmpty=new Ir,this.onStable=new Ir,this.onError=new Ir}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}let hC=(()=>{class p{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Jn.assertNotInAngularZone(),Gp(()=>{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())Gp(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!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(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(hn(Jn))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})(),$p=(()=>{class p{constructor(){this._applications=new Map,t1.addToWindow(this)}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return t1.findTestabilityInTree(this,g,_)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();class pC{addToWindow(m){}findTestabilityInTree(m,g,_){return null}}function qb(p){t1=p}let aa,t1=new pC;const Wb=new hi("AllowMultipleToken");class Ub{constructor(m,g){this.name=m,this.token=g}}function Gb(p,m,g=[]){const _=`Platform: ${m}`,y=new hi(_);return(v=[])=>{let D=Zb();if(!D||D.injector.get(Wb,!1))if(p)p(g.concat(v).concat({provide:y,useValue:!0}));else{const k=g.concat(v).concat({provide:y,useValue:!0},{provide:Vh,useValue:"platform"});!function fC(p){if(aa&&!aa.destroyed&&!aa.injector.get(Wb,!1))throw new ne(400,"");aa=p.get(r1);const m=p.get(sC,null);m&&m.forEach(g=>g())}(Ea.create({providers:k,name:_}))}return function Nr(p){const m=Zb();if(!m)throw new ne(401,"");return m}()}}function Zb(){return aa&&!aa.destroyed?aa:null}let r1=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const k=function mC(p,m){let g;return g="noop"===p?new uC:("zone.js"===p?void 0:p)||new Jn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==m?void 0:m.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==m?void 0:m.ngZoneRunCoalescing)}),g}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),P=[{provide:Jn,useValue:k}];return k.run(()=>{const F=Ea.create({providers:P,parent:this.injector,name:g.moduleType.name}),W=g.create(F),te=W.injector.get(Un,null);if(!te)throw new ne(402,"");return k.runOutsideAngular(()=>{const se=k.onError.subscribe({next:pe=>{te.handleError(pe)}});W.onDestroy(()=>{a1(this._modules,W),se.unsubscribe()})}),function $b(p,m,g){try{const _=g();return $c(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(te,k,()=>{const se=W.injector.get(ur);return se.runInitializers(),se.donePromise.then(()=>(function um(p){st(p,"Expected localeId to be defined"),"string"==typeof p&&(dp=p.toLowerCase().replace(/_/g,"-"))}(W.injector.get(Lu,cp)||cp),this._moduleDoBootstrap(W),W))})})}bootstrapModule(g,_=[]){const y=Jb({},_);return function Yl(p,m,g){const _=new tn(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(cd);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ne(403,"");g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(hn(Ea))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();function Jb(p,m){return Array.isArray(m)?m.reduce(Jb,p):Object.assign(Object.assign({},p),m)}let cd=(()=>{class p{constructor(g,_,y,v,D){this._zone=g,this._injector=_,this._exceptionHandler=y,this._componentFactoryResolver=v,this._initStatus=D,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const k=new E.y(F=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{F.next(this._stable),F.complete()})}),P=new E.y(F=>{let W;this._zone.runOutsideAngular(()=>{W=this._zone.onStable.subscribe(()=>{Jn.assertNotInAngularZone(),Gp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,F.next(!0))})})});const te=this._zone.onUnstable.subscribe(()=>{Jn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{F.next(!1)}))});return()=>{W.unsubscribe(),te.unsubscribe()}});this.isStable=(0,T.T)(k,P.pipe((0,S.B)()))}bootstrap(g,_){if(!this._initStatus.done)throw new ne(405,"");let y;y=g instanceof cb?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(y.componentType);const v=function Yb(p){return p.isBoundToModule}(y)?void 0:this._injector.get(ed),k=y.create(Ea.NULL,[],_||y.selector,v),P=k.location.nativeElement,F=k.injector.get(hC,null),W=F&&k.injector.get($p);return F&&W&&W.registerApplication(P,F),k.onDestroy(()=>{this.detachView(k.hostView),a1(this.components,k),W&&W.unregisterApplication(P)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;a1(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(zb,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return p.\u0275fac=function(g){return new(g||p)(hn(Jn),hn(Ea),hn(Un),hn(Au),hn(ur))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();function a1(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let gC=!0;function Jp(){gC=!1}let px=(()=>{class p{}return p.__NG_ELEMENT_ID__=AC,p})();function AC(p){return function yC(p,m,g){if(Va(p)&&!g){const _=At(p.index,m);return new Mu(_,_)}return 47&p.type?new Mu(m[16],m):null}(Zi(),be(),16==(16&p))}class Kb{constructor(){}supports(m){return js(m)}create(m){return new xC(m)}}const TC=(p,m)=>m;class xC{constructor(m){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=m||TC}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,k,D,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let v;return null===m?v=this._itTail:(v=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,v,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,v,y)):m=this._addAfter(new Cx(g,_),v,y),m}_verifyReinsertion(m,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?m=this._reinsertAfter(v,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}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(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,v=m._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new ku),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ku),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class Cx{constructor(m,g){this.item=m,this.trackById=g,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 SC{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class ku{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new SC,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hd(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const v=y._prev,D=y._next;return v&&(v._next=D),D&&(D._prev=v),y._next=null,y._prev=null,y}const _=new pd(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class pd{constructor(m){this.key=m,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 tA(){return new Kp([new Kb])}let Kp=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||tA()),deps:[[p,new So,new Ga]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ne(901,"")}}return p.\u0275prov=di({token:p,providedIn:"root",factory:tA}),p})();function iA(){return new Pu([new EC])}let Pu=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||iA()),deps:[[p,new So,new Ga]]}}find(g){const _=this.factories.find(v=>v.supports(g));if(_)return _;throw new ne(901,"")}}return p.\u0275prov=di({token:p,providedIn:"root",factory:iA}),p})();const DC=[new EC],LC=new Kp([new Kb]),Tx=new Pu(DC),nA=Gb(null,"core",[{provide:Zm,useValue:"unknown"},{provide:r1,deps:[Ea]},{provide:$p,deps:[]},{provide:Fb,deps:[]}]),OC=[{provide:cd,useClass:cd,deps:[Jn,Ea,Un,Au,ur]},{provide:Bw,deps:[Jn],useFactory:function IC(p){let m=[];return p.onStable.subscribe(()=>{for(;m.length;)m.pop()()}),function(g){m.push(g)}}},{provide:ur,useClass:ur,deps:[[new Ga,qp]]},{provide:$m,useClass:$m,deps:[]},Wp,{provide:Kp,useFactory:function PC(){return LC},deps:[]},{provide:Pu,useFactory:function xx(){return Tx},deps:[]},{provide:Lu,useFactory:function rA(p){return p||function RC(){return"undefined"!=typeof $localize&&$localize.locale||cp}()},deps:[[new xo(Lu),new Ga,new So]]},{provide:Up,useValue:"USD"}];let BC=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(hn(cd))},p.\u0275mod=gs({type:p}),p.\u0275inj=sn({providers:OC}),p})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),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 U;return function(w){return(U||(U=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(w||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(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,w){this.data.set(x,w)}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(U){this.type=U}}class OAuthSuccessEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(U,x,w=null){super(U),this.reason=x,this.params=w}}function b64DecodeUnicode(Y){const U=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(U).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(U){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=x=>{location.href=x},U&&Object.assign(this,U)}}class WebHttpUrlEncodingCodec{encodeKey(U){return encodeURIComponent(U)}encodeValue(U){return encodeURIComponent(U)}decodeKey(U){return decodeURIComponent(U)}decodeValue(U){return decodeURIComponent(U)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(U){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let x=this.inferHashAlgorithm(U.idTokenHeader),w=yield this.calcHash(U.accessToken,x),E=base64UrlEncode(w.substr(0,w.length/2)),T=U.idTokenClaims.at_hash.replace(/=/g,"");return E!==T&&(console.error("exptected at_hash: "+E),console.error("actual at_hash: "+T)),E===T})}inferHashAlgorithm(U){let x=U.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(x){let w=x||window.location.hash;if(w=decodeURIComponent(w),0!==w.indexOf("#"))return{};const i=w.indexOf("?");return w=w.substr(i>-1?i+1:1),this.parseQueryString(w)}parseQueryString(x){const w={};let i,E,T,S,L,R,N;if(null===x)return w;i=x.split("&");for(let j=0;j>6,E[S++]=128|63&L):L<55296||L>=57344?(E[S++]=224|L>>12,E[S++]=128|L>>6&63,E[S++]=128|63&L):(L=65536+((1023&L)<<10|1023&Y.charCodeAt(++w)),E[S++]=240|L>>18,E[S++]=128|L>>12&63,E[S++]=128|L>>6&63,E[S++]=128|63&L);Y=E}else{if("object"!==i)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(U,!0).update(Y).array());var R=[],N=[];for(w=0;w<64;++w){var j=Y[w]||0;R[w]=92^j,N[w]=54^j}Sha256.call(this,U,x),this.update(N),this.oKeyPad=R,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(Y){if(!this.finalized){var U,x=typeof Y;if("string"!==x){if("object"!==x)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);U=!0}for(var w,E,i=0,T=Y.length,S=this.blocks;i>2]|=Y[i]<>2]|=w<>2]|=(192|w>>6)<>2]|=(128|63&w)<=57344?(S[E>>2]|=(224|w>>12)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<>2]|=(240|w>>18)<>2]|=(128|w>>12&63)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}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,U=this.lastByteIndex;Y[16]=this.block,Y[U>>2]|=EXTRA[3&U],this.block=Y[16],U>=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 R,$,ce,ne,de,me,Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=this.blocks;for(R=16;R<64;++R)L[R]=L[R-16]+((($=L[R-15])>>>7|$<<25)^($>>>18|$<<14)^$>>>3)+L[R-7]+((($=L[R-2])>>>17|$<<15)^($>>>19|$<<13)^$>>>10)<<0;for(me=U&x,R=0;R<64;R+=4)this.first?(this.is224?(ce=300032,S=($=L[0]-1413257819)-150054599<<0,w=$+24177077<<0):(ce=704751109,S=($=L[0]-210244248)-1521486534<<0,w=$+143694565<<0),this.first=!1):(S=w+($=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&T)+K[R]+L[R])<<0,w=$+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((ce=Y&U)^Y&x^me))<<0),T=x+($=T+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[R+1]+L[R+1])<<0,x=$+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ne=w&Y)^w&U^ce))<<0,E=U+($=E+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&S^~T&i)+K[R+2]+L[R+2])<<0,U=$+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&w)^x&Y^ne))<<0,i=Y+($=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&T^~E&S)+K[R+3]+L[R+3])<<0,Y=$+(((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+((me=U&x)^U&w^de))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+U<<0,this.h2=this.h2+x<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+T<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=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[U>>28&15]+HEX_CHARS[U>>24&15]+HEX_CHARS[U>>20&15]+HEX_CHARS[U>>16&15]+HEX_CHARS[U>>12&15]+HEX_CHARS[U>>8&15]+HEX_CHARS[U>>4&15]+HEX_CHARS[15&U]+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[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[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+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];return this.is224||(L+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),L},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,U>>24&255,U>>16&255,U>>8&255,255&U,x>>24&255,x>>16&255,x>>8&255,255&x,w>>24&255,w>>16&255,w>>8&255,255&w,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,T>>24&255,T>>16&255,T>>8&255,255&T];return this.is224||L.push(S>>24&255,S>>16&255,S>>8&255,255&S),L},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),U=new DataView(Y);return U.setUint32(0,this.h0),U.setUint32(4,this.h1),U.setUint32(8,this.h2),U.setUint32(12,this.h3),U.setUint32(16,this.h4),U.setUint32(20,this.h5),U.setUint32(24,this.h6),this.is224||U.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 U,x=Y,w=new Uint8Array(x.length);for(U=0;U{class Y{calcHash(x,w){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})}toHashString2(x){let w="";for(let i of x)w+=String.fromCharCode(i);return w}toHashString(x){const w=new Uint8Array(x);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(x,w,i,E,T,S,L,R,N,j){var q;super(),this.ngZone=x,this.http=w,this.config=T,this.urlHelper=S,this.logger=L,this.crypto=R,this.dateTimeService=j,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=N,T||(T={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),T&&this.configure(T);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=null===(q=null==window?void 0:window.navigator)||void 0===q?void 0:q.userAgent;((null==$?void 0:$.includes("MSIE "))||(null==$?void 0:$.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const x="test";try{return void 0!==window.localStorage&&(localStorage.setItem(x,x),localStorage.removeItem(x),!0)}catch(w){return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),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)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(T=>{"token_received"===T.type?E=!0:"logout"===T.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_expires"===T.type&&(null==w||"any"===w||T.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(T=>{E&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const w=[],i=this.validateUrlForHttps(x),E=this.validateUrlAgainstIssuer(x);return i||w.push("https for all urls required. Also for urls received by discovery."),E||w.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),w}validateUrlForHttps(x){if(!x)return!0;const w=x.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,w){if(!x)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${w}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,x);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)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,x);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)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}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(x,w){const i=this.dateTimeService.now();return Math.max(0,(w-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((w,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(T=>{const L=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:T});this.eventsSubject.next(L),w(L)}).catch(T=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",T)),i(T)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("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((x,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):x(null)})}validateDiscoveryDocument(x){let w;return this.skipIssuerCheck||x.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!x.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: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,w,i).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((x,w)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let T=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||T.sub!==S.sub))return void w("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");T=Object.assign({},S,T),this._storage.setItem("id_token_claims_obj",JSON.stringify(T)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:T})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),w(E)})})}fetchTokenUsingPasswordFlow(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:w},i)}fetchTokenUsingGrant(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(T,this.customQueryParams[T]);for(const T of Object.keys(w))E=E.set(T,w[T]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((T,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(L=>{this.debug("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).then(R=>{this.storeIdToken(R),T(L)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),T(L)},L=>{this.logger.error("Error performing ${grantType} flow",L),this.eventsSubject.next(new OAuthErrorEvent("token_error",L)),S(L)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,w)=>{let i=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")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(T,this.customQueryParams[T]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(T=>T.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(T.id_token,T.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>T)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(T))).subscribe(T=>{this.debug("refresh tokenResponse",T),this.storeAccessTokenResponse(T.access_token,T.refresh_token,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,T.scope,this.extractRecognizedCustomParameters(T)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(T)},T=>{this.logger.error("Error refreshing token",T),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",T)),w(T)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const w=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const T=this.document.createElement("iframe");T.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,x).then(j=>{T.setAttribute("src",j),this.silentRefreshShowIFrame||(T.style.display="none"),this.document.body.appendChild(T)});const L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>j instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),R=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_received"===j.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),N=(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__.S3)([L,R,N]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(j=>{if(j instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===j.type||(j=new OAuthErrorEvent("silent_refresh_error",j)),this.eventsSubject.next(j),j;return"token_received"===j.type&&(j=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(j)),j})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let L,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const R=X=>{this.tryLogin({customHashFragment:X,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{j(),i(!0)},ie=>{j(),E(ie)})};S?L=window.setInterval(()=>{(!S||S.closed)&&(j(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const j=()=>{window.clearInterval(L),window.removeEventListener("storage",$),window.removeEventListener("message",q),null!==S&&S.close(),S=null},q=X=>{const ie=this.processMessageEventMessage(X);ie&&null!==ie?(window.removeEventListener("storage",$),R(ie)):console.log("false event firing")},$=X=>{"auth_hash"===X.key&&(window.removeEventListener("message",q),R(X.newValue))};window.addEventListener("message",q),window.addEventListener("storage",$)}))}calculatePopupFeatures(x){const w=x.height||470,i=x.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${w},top=${window.screenTop+(window.outerHeight-w)/2},left=${E}`}processMessageEventMessage(x){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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=x=>{const w=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(x.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",x)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",x)},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(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{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)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.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 x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const w=this.document.createElement("iframe");w.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),w.setAttribute("src",this.sessionCheckIFrameUrl),w.style.display="none",this.document.body.appendChild(w),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 x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(x="",w="",i="",E=!1,T={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const S=this;let L;L=i||this.redirectUri;const R=yield this.createAndSaveNonce();if(x=x?R+this.config.nonceStateSeparator+encodeURIComponent(x):R,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const N=S.loginUrl.indexOf("?")>-1?"&":"?";let j=S.scope;this.oidc&&!j.match(/(^|\s)openid($|\s)/)&&(j="openid "+j);let q=S.loginUrl+N+"response_type="+encodeURIComponent(S.responseType)+"&client_id="+encodeURIComponent(S.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(j);if(this.responseType.includes("code")&&!this.disablePKCE){const[$,X]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",X):this._storage.setItem("PKCE_verifier",X),q+="&code_challenge="+$,q+="&code_challenge_method=S256"}w&&(q+="&login_hint="+encodeURIComponent(w)),S.resource&&(q+="&resource="+encodeURIComponent(S.resource)),S.oidc&&(q+="&nonce="+encodeURIComponent(R)),E&&(q+="&prompt=none");for(const $ of Object.keys(T))q+="&"+encodeURIComponent($)+"="+encodeURIComponent(T[$]);if(this.customQueryParams)for(const $ of Object.getOwnPropertyNames(this.customQueryParams))q+="&"+$+"="+encodeURIComponent(this.customQueryParams[$]);return q})}initImplicitFlowInternal(x="",w=""){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 i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(T=>{console.error("Error in initImplicitFlow",T),this.inImplicitFlow=!1})}initImplicitFlow(x="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const w=this;if(x.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,w,i,E,T){if(this._storage.setItem("access_token",x),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,R=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+R)}w&&this._storage.setItem("refresh_token",w),T&&T.forEach((S,L)=>{this._storage.setItem(L,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(w=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const w=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(w),E=i.code,T=i.state,S=i.session_state;if(!x.preventClearHashAfterLogin){const N=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,N)}let[L,R]=this.parseState(T);if(this.state=R,i.error){this.debug("error trying to login"),this.handleLoginError(x,i);const N=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(N),Promise.reject(N)}if(!x.disableNonceCheck){if(!L)return this.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!this.validateNonce(L)){const j=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(j),Promise.reject(j)}return this.storeSessionState(S),E&&(yield this.getTokenFromCode(E,x),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,w)}fetchAndProcessToken(x,w){w=w||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((E,T)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,w.disableNonceCheck).then(L=>{this.storeIdToken(L),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(L=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",L)),console.error("Error validating tokens"),console.error(L),T(L)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),T(S)})})}tryLoginImplicitFlow(x=null){let w;w=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,T]=this.parseState(i);if(this.state=T,w.error){this.debug("error trying to login"),this.handleLoginError(x,w);const j=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(j),Promise.reject(j)}const S=w.access_token,L=w.id_token,R=w.session_state,N=w.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!L)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!R&&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&&!x.disableNonceCheck&&!this.validateNonce(E)){const q=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(q),Promise.reject(q)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,N),this.oidc?this.processIdToken(L,S,x.disableNonceCheck).then(j=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:j.idTokenClaims,idToken:j.idToken,state:i}).then(q=>j):j).then(j=>(this.storeIdToken(j),this.storeSessionState(R),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(j=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),this.logger.error("Error validating tokens"),this.logger.error(j),Promise.reject(j))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let w=x,i="";if(x){const E=x.indexOf(this.config.nonceStateSeparator);E>-1&&(w=x.substr(0,E),i=x.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(x){let w;return w=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===x||(console.error("Validating access_token failed, wrong state/nonce.",w,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,w){x.onLoginError&&x.onLoginError(w),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,w,i=!1){const E=x.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),L=JSON.parse(S),N=b64DecodeUnicode(this.padBase64(E[1])),j=JSON.parse(N);let q;if(q=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(j.aud)){if(j.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+j.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(j.aud!==this.clientId){const de="Wrong audience: "+j.aud;return this.logger.warn(de),Promise.reject(de)}if(!j.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==j.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${j.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!j.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&j.iss!==this.issuer){const de="Wrong issuer: "+j.iss;return this.logger.warn(de),Promise.reject(de)}if(!i&&j.nonce!==q){const de="Wrong nonce: "+j.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!j.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const $=this.dateTimeService.now(),X=1e3*j.iat,ie=1e3*j.exp,ce=this.getClockSkewInMsec();if(X-ce>=$||ie+ce<=$){const de="Token has expired";return console.error(de),console.error({now:$,issuedAtMSec:X,expiresAtMSec:ie}),Promise.reject(de)}const ne={accessToken:w,idToken:x,jwks:this.jwks,idTokenClaims:j,idTokenHeader:L,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(de=>({idToken:x,idTokenClaims:j,idTokenClaimsJson:N,idTokenHeader:L,idTokenHeaderJson:S,idTokenExpiresAt:ie})):this.checkAtHash(ne).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const me="Wrong at_hash";return this.logger.warn(me),Promise.reject(me)}return this.checkSignature(ne).then(me=>{const ze={idToken:x,idTokenClaims:j,idTokenClaimsJson:N,idTokenHeader:L,idTokenHeaderJson:S,idTokenExpiresAt:ie};return this.disableAtHashCheck?ze:this.checkAtHash(ne).then(Je=>{if(this.requestAccessToken&&!Je){const vt="Wrong at_hash";return this.logger.warn(vt),Promise.reject(vt)}return ze})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}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 x=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},w=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const E=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(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let T;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)T=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const L=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";L&&(S=S.set("post_logout_redirect_uri",L),w&&(S=S.set("state",w)));for(let R in x)S=S.set(R,x[R]);T=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(T)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(w){return x.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",w):x._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const T="undefined"==typeof self?null:self.crypto||self.msCrypto;if(T){let S=new Uint8Array(i);T.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(L=>w.charCodeAt(L%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,w))}initCodeFlowInternal(x="",w={}){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 i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(T=>{console.error("Error in initAuthorizationCodeFlow"),console.error(T)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(x,"sha-256")),x]})}extractRecognizedCustomParameters(x){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&w.set(i,JSON.stringify(x[i]))}),w}revokeTokenAndLogout(x={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),T=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const R=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+R)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const R of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(R,this.customQueryParams[R]);return new Promise((R,N)=>{let j,q;if(E){let $=S.set("token",E).set("token_type_hint","access_token");j=this.http.post(i,$,{headers:L})}else j=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(T){let $=S.set("token",T).set("token_type_hint","refresh_token");q=this.http.post(i,$,{headers:L})}else q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(j=j.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($))),q=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([j,q]).subscribe($=>{this.logOut(x),R($),this.logger.info("Token successfully revoked")},$=>{this.logger.error("Error revoking token",$),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",$)),N($)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(x){return new(x||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(U){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(x,w,i){this.oAuthService=x,this.errorHandler=w,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>x.toLowerCase().startsWith(w.toLowerCase()))}intercept(x,w){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?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)(T=>!!T)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(T=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(T=>{if(T){const L=x.headers.set("Authorization","Bearer "+T);x=x.clone({headers:L})}return w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>this.errorHandler.handleError(T))):w.handle(x)}}return Y.\u0275fac=function(x){return new(x||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(U){return Promise.resolve(null)}validateAtHash(U){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(x=null,w=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:w},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(x){return new(x||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")},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:"8.0.0"}}},Y=>{Y(Y.s=6396)}]); \ No newline at end of file